/* Firmdura news · local, shared styles for the two static page layouts. */
:root {
  /* Evergreen & Brass, mirrored in brand/palette.css and the homepage. */
  color-scheme: light;
  --fg: #182e2b;
  --muted: #56645f;
  --bg: #f5f5ef;
  --surface: #fdfdf9;
  --line: #c7cec4;
  --line-subtle: #dde2d9;
  --accent: #24594f;
  --accent-hover: #193f38;
  --shade: #e8ece4;
  --on-accent: #fdfdf9;
  --signature: #806039;
  --link-line: #9eb3a6;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Noto Serif", "Liberation Serif", "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
svg, img { display: block; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
.skip { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--fg); color: var(--bg); font-size: 14px; border-radius: 3px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1264px; margin-inline: auto; padding-inline: 32px; }
.icon { width: 20px; height: 20px; }
.eyebrow { color: var(--signature); font: 500 14px/1.6 var(--sans); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 2px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; line-height: 1.5; transition: background-color .15s; }
.btn:hover { background: var(--accent-hover); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; color: var(--accent); font-size: 14px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link svg { width: 17px; height: 17px; }

/* Site navigation */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 174px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; }
.nav-links a { display: flex; align-items: center; min-height: 44px; }
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 7px; }

/* News listing */
.news-hero { padding: 64px 0 44px; }
.news-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.news-hero h1 { margin-top: 18px; font-family: var(--serif); font-size: clamp(2.75rem, 2rem + 2.5vw, 4rem); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }
.news-hero .lede { max-width: 37em; margin-top: 20px; color: var(--muted); font-size: 18px; text-wrap: pretty; }
.edition { padding: 12px 0 12px 24px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.edition strong { display: block; margin-bottom: 6px; color: var(--fg); font: 600 13px/1.6 var(--sans); }
.featured { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 64px; padding: 32px 0; border-block: 1px solid var(--line); }
.featured-copy { padding: 0; }
.story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 12px; }
.category { color: var(--signature); font: 600 13px/1.6 var(--sans); }
.featured h2 { margin-top: 20px; max-width: 20em; font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 400; line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
.featured h2 a:hover { color: var(--accent); }
.featured-copy > p { margin-top: 20px; max-width: 34em; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.featured-copy .text-link { margin-top: 24px; }
.featured-facts { padding-left: 24px; border-left: 1px solid var(--signature); color: var(--fg); }
.featured-facts .eyebrow { margin-bottom: 18px; color: var(--signature); }
.featured-facts dl > div { padding: 16px 0; border-top: 1px solid var(--line); }
.featured-facts dt { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.featured-facts dd { font-size: 15px; font-weight: 500; line-height: 1.5; }
.story-section { padding: 56px 0 64px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -.025em; }
.section-heading p { color: var(--muted); font-size: 12px; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.news-card { display: flex; min-width: 0; padding: 26px 0; border-top: 1px solid var(--line); }
.card-link { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.card-link h3 { margin-top: 16px; font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.25; letter-spacing: -.015em; text-wrap: pretty; }
.card-link > p { margin-top: 14px; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.read-more { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 20px; color: var(--accent); font-size: 13px; font-weight: 600; }
.card-link:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.editorial-note { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: 28px 0; border-top: 1px solid var(--line); }
.editorial-note h2 { font-size: 17px; font-weight: 600; }
.editorial-note p { max-width: 53em; color: var(--muted); font-size: 13px; }
.news-bottom { padding-bottom: 56px; }

/* Full article */
.article-page { background: var(--bg); }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { padding-block: 4px; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumbs span[aria-hidden] { color: var(--line); }
.article-header { padding-top: 36px; padding-bottom: 40px; }
.article-header h1 { max-width: 20em; margin-top: 20px; font-family: var(--serif); font-size: clamp(2.125rem, 1.3rem + 3vw, 3.5rem); font-weight: 400; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.standfirst { max-width: 43em; margin-top: 24px; color: var(--muted); font-size: 19px; line-height: 1.65; text-wrap: pretty; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.byline strong { color: var(--fg); font-weight: 600; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 280px); justify-content: space-between; gap: 64px; padding-top: 40px; padding-bottom: 64px; border-top: 1px solid var(--line-subtle); }
.article-body { min-width: 0; font-size: 17px; line-height: 1.85; }
.article-body h2 { margin-top: 40px; margin-bottom: 16px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.25; letter-spacing: -.025em; }
.article-body > h2:first-child { margin-top: 0; }
.article-body p + p { margin-top: 18px; }
.article-body ul { padding-left: 22px; }
.article-body li + li { margin-top: 12px; }
.article-body li::marker { color: var(--fg); }
.article-body code { font: .85em/1.6 var(--mono); padding: 2px 4px; background: var(--shade); color: var(--fg); border: 1px solid var(--line); border-radius: 2px; overflow-wrap: anywhere; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 4px; overflow-wrap: anywhere; }
.article-body a:hover { text-decoration-color: currentColor; }
.article-body .citation { font-size: 12px; vertical-align: super; text-decoration: none; white-space: nowrap; }
.takeaway { margin-top: 32px; padding: 24px 0 0; border-top: 1px solid var(--signature); }
.takeaway h2 { margin: 0 0 10px; font-family: var(--sans); font-size: 18px; font-weight: 600; }
.takeaway p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.article-body .sources { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.sources h2 { margin: 0 0 16px; font-family: var(--sans); font-size: 18px; font-weight: 600; }
.source-list { padding-left: 22px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.source-list li + li { margin-top: 14px; }
.source-list span { display: block; margin-top: 3px; }
.review-date { margin-top: 18px; color: var(--muted); font-size: 12px; }
.article-aside { align-self: start; position: sticky; top: 108px; }
.briefing-card { padding-left: 24px; border-left: 1px solid var(--signature); }
.briefing-card h2 { margin-bottom: 20px; color: var(--fg); font: 600 14px/1.6 var(--sans); }
.briefing-card dl > div { padding: 14px 0; border-top: 1px solid var(--line-subtle); }
.briefing-card dl > div:last-child { padding-bottom: 0; }
.briefing-card dt { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.briefing-card dd { font-size: 14px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.on-this-page { margin-top: 28px; padding-inline: 4px; }
.on-this-page h2 { margin-bottom: 12px; color: var(--muted); font: 600 13px/1.6 var(--sans); }
.on-this-page a { display: block; padding: 7px 0; color: var(--muted); font-size: 13px; }
.on-this-page a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.article-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.article-pagination a { padding-block: 8px; color: var(--accent); font-size: 14px; }
.article-pagination a:last-child { text-align: right; }
.article-pagination span { display: block; margin-bottom: 7px; color: var(--muted); font: 13px/1.5 var(--sans); }
.article-pagination a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 13px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer .brand img { width: 156px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; }
.footer p a, .footer-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 959px) {
  .nav .wrap { gap: 22px; }
  .nav-links { gap: 20px; }
  .news-heading { grid-template-columns: 1fr; gap: 24px; }
  .edition { padding: 0; border-left: 0; }
  .edition strong { display: inline; margin-right: 12px; }
  .featured { grid-template-columns: minmax(0,1fr) 224px; gap: 40px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 224px; gap: 40px; }
  .briefing-card { padding-left: 20px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 132px; }
  .wrap { padding-inline: 24px; }
  .nav .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; min-height: 0; padding-top: 12px; padding-bottom: 4px; }
  .nav .brand { grid-column: 1; grid-row: 1; }
  .nav .brand img { width: 156px; }
  .nav > .wrap > .btn { grid-column: 2; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: space-between; margin: 0; gap: 4px 14px; font-size: 12px; }
  .news-hero { padding-top: 40px; }
  .featured { grid-template-columns: 1fr; }
  .featured-facts { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--signature); }
  .featured-facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .featured-facts dd { font-size: 14px; }
  .featured-facts .eyebrow { margin-bottom: 16px; }
  .featured-facts dl > div { padding-bottom: 0; }
  .story-section { padding-block: 40px; }
  .story-grid { grid-template-columns: 1fr; }
  .editorial-note { grid-template-columns: 1fr; gap: 12px; }
  .article-header { padding-top: 24px; padding-bottom: 32px; }
  .breadcrumbs { margin-bottom: 24px; }
  .article-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; padding-bottom: 40px; }
  .article-aside { position: static; }
  .briefing-card { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--signature); }
  .on-this-page { display: none; }
  .standfirst { font-size: 18px; }
}
@media (max-width: 639px) {
  .story-grid { gap: 0; }
  .article-pagination { grid-template-columns: 1fr; gap: 12px; }
  .article-pagination a:last-child { text-align: left; }
}
@media (max-width: 540px) {
  .wrap { padding-inline: 20px; }
  .nav .wrap { padding-inline: 16px; }
  .nav .brand img { width: 144px; }
  .nav .btn { padding-inline: 12px; font-size: 12px; }
  .news-hero { padding-bottom: 32px; }
  .news-hero .lede { font-size: 16px; }
  .edition strong { display: block; }
  .featured-facts dl { grid-template-columns: 1fr; gap: 12px; }
  .featured-facts dl > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding-top: 12px; }
  .featured-facts dt { margin: 0; }
  .featured h2 { font-size: 29px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .article-header h1 { font-size: clamp(2rem, 7.8vw, 2.5rem); }
  .standfirst { font-size: 17px; }
  .article-body { font-size: 16px; line-height: 1.8; }
  .article-body h2 { font-size: 24px; }
  .takeaway h2, .sources h2 { font-size: 18px; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
