/* JM Henderson CRE — Site styles
 * Last updated: 2026-05-21
 * Brand: navy #1B2A4A, accent gold #C9A961, neutral grays.
 * Typography: Georgia serif for headlines, system stack for body.
 */

:root {
  --navy: #1B2A4A;
  --navy-dark: #0E1730;
  --navy-light: #2E4170;
  --gold: #C9A961;
  /* --gold-dark was #A88A47 until 2026-08-14. It measured 3.28:1 on --bg and
   * 3.09:1 on --bg-alt against SC 1.4.3's 4.5:1 for normal text, and it is the
   * only colour Lighthouse's color-contrast audit names on this site. #886F39
   * is the same hue and saturation, darker: HSL(41.0, 40.9%, 37.8%) against
   * HSL(41.4, 40.6%, 46.9%). It measures 4.79:1 on --bg and 4.51:1 on --bg-alt.
   * Adopted by operator ruling, Phase 4. Verify with scripts/contrast.py.
   * --gold #C9A961 is the ornament colour (rules, borders, button faces) and is
   * deliberately unchanged; it carries no text on a light background. */
  --gold-dark: #886F39;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --text: #1A1F2E;
  --text-muted: #5B6478;
  --border: #E5E7EB;
  --max-width: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy-dark);
  margin: 2rem 0 1rem;
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: 2.5rem; letter-spacing: -0.015em; margin-top: 1rem; }
h2 { font-size: 1.75rem; margin-top: 2.5rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2rem; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
strong { font-weight: 600; color: var(--navy-dark); }

/* Reverse colors inside dark backgrounds */
.hero strong,
.cta-block strong,
.site-footer strong { color: var(--gold); }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
main { padding: 2.5rem 0 4rem; }

/* Header */
.site-header {
  background: var(--navy-dark);
  color: #fff;
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-header a { color: #fff; text-decoration: none; }
.brand { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 600; letter-spacing: 0.01em; }
.brand .accent { color: var(--gold); }
nav.primary ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
nav.primary a { font-size: 0.95rem; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
nav.primary a:hover { border-bottom-color: var(--gold); }

/* Eyebrow / breadcrumb */
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
nav.breadcrumb { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 1.5rem; }
nav.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
nav.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--border); }
nav.breadcrumb a { color: var(--navy); text-decoration: none; }
nav.breadcrumb a:hover { text-decoration: underline; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 4rem 0 4.5rem;
  margin-bottom: 2rem;
}
.hero h1 { color: #fff; font-size: 2.8rem; margin-top: 0.5rem; }
.hero p.lede { font-size: 1.2rem; color: #D9DDE8; max-width: 720px; margin-bottom: 2rem; }
.hero .eyebrow { color: var(--gold); }
.hero .meta { font-size: 0.9rem; color: #B6BCCC; margin-top: 1.5rem; }

/* Buttons / CTA */
.btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
/* The reverse-direction use of --gold-dark: white text ON the token, not the
 * token as text. Lighthouse never measures it because axe only samples the
 * non-hover state. It needed the same 4.5:1 and had the same 3.28:1.
 * The WCAG contrast ratio (L_lighter+0.05)/(L_darker+0.05) is symmetric in
 * foreground and background, so the token change fixes this direction by the
 * identical amount: #FFFFFF on #886F39 measures 4.79:1, the same figure as
 * #886F39 on #FFFFFF. No separate remedy is required here. */
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--gold); color: #fff; }
.btn-tertiary { background: var(--navy-dark); color: #fff; }
.btn-tertiary:hover { background: var(--navy); }

/* Sections */
section { margin: 2.5rem 0; }
.section-alt { background: var(--bg-alt); padding: 3rem 0; margin: 3rem -1.5rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.card {
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(27,42,74,0.1); }
.card .num { color: var(--gold-dark); font-family: Georgia, serif; font-size: 0.9rem; }
.card h3 { margin: 0.4rem 0 0.5rem; color: var(--navy-dark); font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Transaction list */
.txn-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.txn-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.txn-list li strong { color: var(--navy-dark); }
.txn-list li .note { color: var(--text-muted); font-size: 0.92rem; }

/* Submarket tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1rem 0 2rem; list-style: none; }
.tag-list li {
  padding: 0.35rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--navy);
  border-radius: 2px;
}

/* CTA Block */
.cta-block {
  background: var(--navy-dark);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
  border-radius: 4px;
}
.cta-block h2 { color: #fff; margin-top: 0; }
.cta-block p { color: #D9DDE8; max-width: 600px; margin: 0 auto 1.5rem; }

/* Article body */
article.insight .article-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
article.insight p { max-width: 720px; }
article.insight h2, article.insight h3 { max-width: 720px; }
article.insight ul, article.insight ol { max-width: 720px; padding-left: 1.4rem; }
article.insight li { margin-bottom: 0.4rem; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #D9DDE8; padding: 3rem 0 2rem; margin-top: 4rem; }
.site-footer a { color: #D9DDE8; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
/* Footer column labels. These were <h4> until 2026-08-14 and every page's
 * document outline jumped straight to them from an <h2>, which axe's
 * heading-order rule fails. They are now <h2>: a decrease from h2 or h3 is
 * unrestricted, and the one page that ends on <h1> (/404.html) gets a legal
 * +1 step. The declarations below reproduce the <h4> rendering exactly —
 * .footer-grid h2 is (0,1,1) and outranks the h2 rule at line 42, so
 * font-size stays 0.85rem and margin-top stays 0. Nothing moves on screen. */
.footer-grid h2 { color: #fff; font-family: -apple-system, sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-legal { font-size: 0.85rem; color: #8A92A6; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
.footer-legal p { margin: 0.3rem 0; max-width: none; }

/* Responsive */
@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 2.5rem 0 3rem; }
  nav.primary ul { gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-alt { margin-left: -1rem; margin-right: -1rem; padding: 2rem 1rem; }
}

/* Accessibility / utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-dark); padding: 0.5rem 1rem; font-weight: 600; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------------------
 * Phase 2 — CSP remediation utilities.  Added 2026-08-13.
 *
 * These carry the declarations that were previously written as inline
 * style="" attributes on 180 elements across all 36 pages. Inline styles are
 * refused by `style-src 'self'`, so they were the entire distance between a
 * Report-Only CSP and an enforced one.
 *
 * Each rule reproduces its former inline declarations verbatim.
 *
 * WHY THE CLASS NAME IS REPEATED THREE TIMES
 *
 * An inline style attribute outranks every selector in this file. A plain
 * single-class selector does not, so a straight swap silently loses wherever a
 * more specific rule already targets the same property. That is not a theory —
 * it happened here and was caught by scripts/style-parity.py:
 *
 *     article.insight p { max-width: 720px }   (0,1,2)  beat  .u-lede  (0,1,0)
 *       -> the lede on /ai-citation-pack/, /transaction-box/,
 *          /market-signals/ and /disposition-questions/ narrowed 760px -> 720px
 *     .cta-block p      { color: #D9DDE8 }     (0,1,1)  beat  .u-gold  (0,1,0)
 *       -> the gold eyebrow on / turned pale blue
 *
 * Repeating the class raises specificity to (0,3,0) without !important and
 * without touching any existing rule. The most specific selector above is
 * `nav.breadcrumb li + li::before` at (0,2,3); (0,3,0) outranks it, so these
 * utilities now win everywhere an inline attribute used to, which is exactly
 * the property being preserved. Measured: 0 differences across 5,524 elements.
 *
 * Do not add a new inline style attribute to this site. Add a class here.
 * scripts/csp-inline-scan.mjs counts every one that reappears.
 * ------------------------------------------------------------------------ */
.u-dre-line.u-dre-line.u-dre-line          { margin-top: 1rem; font-size: 0.85rem; }
.u-btn-center.u-btn-center.u-btn-center    { justify-content: center; }
.u-mb-15.u-mb-15.u-mb-15                   { margin-bottom: 1.5rem; }
.u-mb-14.u-mb-14.u-mb-14                   { margin-bottom: 1.4rem; }
.u-mb-03.u-mb-03.u-mb-03                   { margin: 0 0 0.3rem 0; }
.u-m-0.u-m-0.u-m-0                         { margin: 0; }
.u-fs-085.u-fs-085.u-fs-085                { font-size: 0.85rem; }
.u-lede.u-lede.u-lede                      { font-size: 1.15rem; max-width: 760px; }
.u-lede-720.u-lede-720.u-lede-720          { font-size: 1.15rem; max-width: 720px; }
.u-lede-narrow.u-lede-narrow.u-lede-narrow { font-size: 1.15rem; max-width: 560px; margin: 0 auto 2rem; }
.u-mw-760.u-mw-760.u-mw-760                { max-width: 760px; }
.u-plain-link.u-plain-link.u-plain-link    { text-decoration: none; color: inherit; }
.u-note.u-note.u-note                      { border-left: 3px solid #C8A86E; padding: 0.75rem 1rem; margin: 1.25rem 0; background: rgba(200,168,110,0.07); }
.u-note-tight.u-note-tight.u-note-tight    { border-left: 3px solid #C8A86E; padding: 0.6rem 1rem; margin: 0.8rem 0; background: rgba(200,168,110,0.07); }
.u-scroll-x.u-scroll-x.u-scroll-x          { overflow-x: auto; }
.u-muted-sm.u-muted-sm.u-muted-sm          { color: var(--text-muted); font-size: 0.9rem; }
.u-center-pad.u-center-pad.u-center-pad    { text-align: center; padding: 4rem 0; }
.u-endnote.u-endnote.u-endnote             { margin-top: 3rem; padding: 1.5rem; background: var(--bg-alt); border-left: 3px solid var(--gold); font-size: 0.92rem; color: var(--text-muted); }
.u-gold.u-gold.u-gold                      { color: var(--gold); }

/* Glossary definition list — formerly the one inline <style> block on the
 * site, at /glossary/ line 59. <dl>/<dt>/<dd> occur on that page and nowhere
 * else (verified: 1 of 36 pages contains <dl), so promoting these to the
 * shared stylesheet changes no other page. */
dt { font-weight: 600; color: var(--navy-dark); margin-top: 1.5rem; font-family: Georgia, serif; }
dd { margin: 0.3rem 0 0; padding-left: 0; max-width: 760px; }
