/* History-page-only editorial layout. Shared pages keep their existing styles. */
body.wp-theme-SimplePress #content.uihistory-content { padding-top: 28px !important; }
body.wp-theme-SimplePress .uihistory { --history-red: #9d3c47; --history-green: #206650; width: 100%; }
body.wp-theme-SimplePress .uihistory * { box-sizing: border-box; }
body.wp-theme-SimplePress .uihistory :is(section,header,aside,figure,nav) { min-width: 0; }
body.wp-theme-SimplePress .uihistory [id] { scroll-margin-top: 28px; }
body.wp-theme-SimplePress .uihistory .uihistory-hero { position: relative; margin: 0 0 36px; min-height: 360px; background: #164d51; overflow: hidden; }
body.wp-theme-SimplePress .uihistory .uihistory-hero > img { display: block; width: 100%; height: 410px !important; max-height: none !important; object-fit: cover; object-position: center; margin: 0 !important; border-radius: 0 !important; }
body.wp-theme-SimplePress .uihistory .uihistory-hero::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg,rgba(9,26,25,.78),rgba(9,26,25,0)); pointer-events: none; }
body.wp-theme-SimplePress .uihistory .uihistory-hero-copy { position: absolute; left: 44px; right: 36px; bottom: 34px; z-index: 1; max-width: 760px; }
body.wp-theme-SimplePress #content .uihistory .uihistory-hero h1 { font-size: 48px !important; line-height: 1.1 !important; color: #fff !important; margin: 0 !important; padding: 0 !important; border: 0 !important; text-wrap: balance; }
body.wp-theme-SimplePress #content .uihistory .uihistory-eyebrow { font-size: 13px !important; font-family: "Union Sans",sans-serif !important; font-weight: 650; line-height: 1.5 !important; color: var(--history-green); margin: 0 0 14px !important; }
body.wp-theme-SimplePress #content .uihistory .uihistory-hero .uihistory-eyebrow { color: #fff; }
body.wp-theme-SimplePress #content .uihistory .uihistory-intro { max-width: 780px; margin: 0 auto 42px; }
body.wp-theme-SimplePress #content .uihistory .uihistory-intro > p:first-child { font-size: 20px !important; line-height: 1.7 !important; }
body.wp-theme-SimplePress #content .uihistory .uihistory-byline { color: var(--ui-muted); font-size: 13px !important; line-height: 1.6 !important; margin-bottom: 0 !important; }
body.wp-theme-SimplePress .uihistory .uihistory-timeline { border-block: 1px solid var(--ui-line); padding: 30px 0 34px; margin: 0 0 64px; }
body.wp-theme-SimplePress #content .uihistory .uihistory-timeline h2 { font-family: "Union Sans",sans-serif !important; font-size: 18px !important; margin: 0 0 25px !important; }
body.wp-theme-SimplePress .uihistory .uihistory-timeline ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px 24px; padding: 0 !important; margin: 0 !important; list-style: none !important; }
body.wp-theme-SimplePress #content .uihistory .uihistory-timeline li { position: relative; padding: 17px 0 0 !important; margin: 0 !important; border-top: 2px solid var(--ui-line); list-style: none !important; background: none; }
body.wp-theme-SimplePress .uihistory .uihistory-timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 8px; height: 8px; background: var(--history-red); }
body.wp-theme-SimplePress #content .uihistory .uihistory-timeline a { display: block; color: var(--ui-ink) !important; text-decoration: none; }
body.wp-theme-SimplePress #content .uihistory .uihistory-timeline a:hover span { text-decoration: underline; text-underline-offset: 3px; }
body.wp-theme-SimplePress .uihistory .uihistory-timeline strong { display: block; font-family: "Union Display",serif; font-weight: 400; font-size: 24px; line-height: 1.3; margin-bottom: 5px; }
body.wp-theme-SimplePress .uihistory .uihistory-timeline span { display: block; color: var(--ui-muted); font-size: 14px; line-height: 1.5; max-width: 24ch; }
body.wp-theme-SimplePress .uihistory .uihistory-chapter { margin: 0 0 68px; }
body.wp-theme-SimplePress .uihistory .uihistory-chapter-head { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 24px; align-items: start; border-top: 1px solid var(--ui-line); padding-top: 24px; margin-bottom: 28px; }
body.wp-theme-SimplePress #content .uihistory .uihistory-chapter-number { font-family: "Union Display",serif !important; font-size: 42px !important; line-height: 1 !important; color: var(--history-red); margin: 4px 0 0 !important; }
body.wp-theme-SimplePress #content .uihistory .uihistory-chapter h2 { max-width: 760px; font-size: 34px !important; line-height: 1.2 !important; margin: 0 !important; }
body.wp-theme-SimplePress .uihistory .uihistory-prose { max-width: 760px; margin-inline: auto; }
body.wp-theme-SimplePress #content .uihistory .uihistory-prose p { font-size: 17px !important; line-height: 1.85 !important; margin-bottom: 22px !important; }
body.wp-theme-SimplePress .uihistory .uihistory-prose > :last-child { margin-bottom: 0 !important; }
body.wp-theme-SimplePress .uihistory .uihistory-split { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: 44px; align-items: start; }
body.wp-theme-SimplePress .uihistory .uihistory-split .uihistory-prose { max-width: none; margin: 0; }
body.wp-theme-SimplePress .uihistory figure { margin: 0; }
body.wp-theme-SimplePress #content #posts .uihistory figure img { display: block; width: 100%; height: auto !important; max-height: none !important; border-radius: 3px; margin: 0 !important; }
body.wp-theme-SimplePress #content .uihistory figcaption { color: var(--ui-muted); font: 13px/1.65 "Union Sans",sans-serif !important; padding-top: 11px; }
body.wp-theme-SimplePress #content .uihistory figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.wp-theme-SimplePress .uihistory .uihistory-wide { margin-block: 30px; }
body.wp-theme-SimplePress .uihistory .uihistory-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-block: 30px; }
body.wp-theme-SimplePress #content #posts .uihistory .uihistory-gallery img { aspect-ratio: 4/3; object-fit: cover; }
body.wp-theme-SimplePress .uihistory .uihistory-note { border-left: 3px solid var(--history-green); background: #f2f6f4; margin: 28px auto; padding: 22px 26px; max-width: 760px; }
body.wp-theme-SimplePress #content .uihistory .uihistory-note h3 { font-family: "Union Sans",sans-serif !important; font-size: 18px !important; margin: 0 0 10px !important; }
body.wp-theme-SimplePress #content .uihistory .uihistory-note p { font-size: 16px !important; line-height: 1.75 !important; margin: 0 !important; }
body.wp-theme-SimplePress .uihistory sup { vertical-align: super; font-size: 11px; line-height: 0; margin-left: 2px; }
body.wp-theme-SimplePress .uihistory sup a { text-decoration: none; padding: 2px; }
body.wp-theme-SimplePress .uihistory .uihistory-sources { border-top: 1px solid var(--ui-line); padding-top: 28px; margin-top: 56px; }
body.wp-theme-SimplePress #content .uihistory .uihistory-sources h2 { font-family: "Union Sans",sans-serif !important; font-size: 23px !important; margin: 0 0 18px !important; }
body.wp-theme-SimplePress .uihistory .uihistory-sources ol { columns: 2; column-gap: 42px; margin: 0; padding-left: 22px; }
body.wp-theme-SimplePress #content .uihistory .uihistory-sources li { break-inside: avoid; color: var(--ui-muted); font-size: 13px !important; line-height: 1.65 !important; padding-left: 4px; margin-bottom: 13px !important; }
body.wp-theme-SimplePress #content .uihistory .uihistory-sources > p { font-size: 13px !important; color: var(--ui-muted); line-height: 1.7 !important; max-width: 900px; margin-top: 22px !important; }
@media (max-width: 980px) {
    body.wp-theme-SimplePress .uihistory .uihistory-split { gap: 28px; }
    body.wp-theme-SimplePress .uihistory .uihistory-hero > img { height: 370px !important; }
    body.wp-theme-SimplePress #content .uihistory .uihistory-hero h1 { font-size: 42px !important; }
}
@media (max-width: 680px) {
    body.wp-theme-SimplePress #content.uihistory-content { padding-top: 20px !important; }
    body.wp-theme-SimplePress .uihistory .uihistory-hero { min-height: 0; margin-bottom: 26px; }
    body.wp-theme-SimplePress .uihistory .uihistory-hero > img { height: 300px !important; object-position: 53% center; }
    body.wp-theme-SimplePress .uihistory .uihistory-hero-copy { left: 20px; right: 18px; bottom: 22px; }
    body.wp-theme-SimplePress #content .uihistory .uihistory-hero h1 { font-size: 34px !important; }
    body.wp-theme-SimplePress #content .uihistory .uihistory-eyebrow { font-size: 12px !important; margin-bottom: 9px !important; }
    body.wp-theme-SimplePress #content .uihistory .uihistory-intro > p:first-child { font-size: 18px !important; }
    body.wp-theme-SimplePress #content .uihistory .uihistory-intro { margin-bottom: 30px; }
    body.wp-theme-SimplePress .uihistory .uihistory-timeline { padding-block: 25px; margin-bottom: 42px; }
    body.wp-theme-SimplePress .uihistory .uihistory-timeline ol { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 20px; }
    body.wp-theme-SimplePress .uihistory .uihistory-timeline strong { font-size: 22px; }
    body.wp-theme-SimplePress .uihistory .uihistory-timeline span { font-size: 13px; }
    body.wp-theme-SimplePress .uihistory .uihistory-chapter { margin-bottom: 44px; }
    body.wp-theme-SimplePress .uihistory .uihistory-chapter-head { grid-template-columns: 42px minmax(0,1fr); gap: 14px; padding-top: 22px; margin-bottom: 22px; }
    body.wp-theme-SimplePress #content .uihistory .uihistory-chapter-number { font-size: 31px !important; }
    body.wp-theme-SimplePress #content .uihistory .uihistory-chapter h2 { font-size: 28px !important; }
    body.wp-theme-SimplePress #content .uihistory .uihistory-prose p { font-size: 16px !important; line-height: 1.8 !important; }
    body.wp-theme-SimplePress .uihistory .uihistory-split { grid-template-columns: minmax(0,1fr); gap: 25px; }
    body.wp-theme-SimplePress .uihistory .uihistory-gallery { grid-template-columns: minmax(0,1fr); gap: 25px; margin-block: 24px; }
    body.wp-theme-SimplePress .uihistory .uihistory-note { padding: 20px; margin-block: 24px; }
    body.wp-theme-SimplePress .uihistory .uihistory-sources ol { columns: 1; }
}
@media (max-width: 360px) {
    body.wp-theme-SimplePress #content .uihistory .uihistory-hero h1 { font-size: 30px !important; }
    body.wp-theme-SimplePress .uihistory .uihistory-hero > img { height: 290px !important; }
}
