/* "How We Got Here" page (bayarea/how-we-got-here.html), the home-page hook and the footer menu link.
   Uses the site palette from site-v19.css (--green, --red, --paper, --ink, --muted, --gold). */
.hwgh{--rail:#c9cfc6}
.hwgh-hero{background:#000;color:#fff;max-width:none;padding:0}
.hwgh-hero>div{max-width:1040px;margin:auto;padding:52px 22px 44px}
/* Two-column hero: heading and intro on the left, the Liberty graphic on the right (26 Nov 2026); stacked below 820px */
.hwgh-hero .hwgh-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:2rem;align-items:center}
.hwgh-hero-text,.hwgh-graphic{min-width:0}
.hwgh-hero img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 8px 30px rgba(0,0,0,.5)}
@media(max-width:820px){.hwgh-hero .hwgh-hero-grid{grid-template-columns:1fr}}
.hwgh-hero h1{color:#fff;margin-bottom:14px;overflow-wrap:anywhere}
.hwgh-hero h1 span{color:#67b647}
.hwgh-sub{font-size:1.28rem;font-weight:800;color:#e9ece6;max-width:820px;margin:0 0 22px}
.hwgh-lede{font-size:1.15rem;max-width:820px;color:#d8dedb;border-left:6px solid var(--red);padding:4px 0 4px 18px;margin:0}
.hwgh-record{display:inline-block;margin-top:22px;font-size:.85rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}

.hwgh-method .grid{grid-template-columns:repeat(2,1fr)}
.hwgh-method .card h3{margin:0 0 6px;color:#214d29}
.hwgh-method .card p{margin:0}
.hwgh-intro{max-width:760px}

.hwgh-timeline{list-style:none;margin:28px 0 0;padding:0;position:relative}
.hwgh-timeline::before{content:"";position:absolute;left:118px;top:6px;bottom:6px;width:3px;background:var(--rail)}
.hwgh-timeline li{display:grid;grid-template-columns:100px 1fr;gap:40px;padding:0 0 26px;position:relative}
.hwgh-timeline li::before{content:"";position:absolute;left:111px;top:7px;width:17px;height:17px;border-radius:50%;background:var(--red);border:3px solid var(--paper);box-shadow:0 0 0 2px var(--red)}
.hwgh-timeline li.win::before{background:var(--green);box-shadow:0 0 0 2px var(--green)}
.hwgh-year{font-weight:900;font-size:1.25rem;line-height:1.3;text-align:right;color:var(--red2);font-variant-numeric:tabular-nums}
.hwgh-timeline li.win .hwgh-year{color:var(--green)}
.hwgh-entry h3{margin:0 0 4px;font-size:1.12rem}
.hwgh-entry p{margin:0}
.hwgh-legend{font-size:.92rem;color:var(--muted);margin:10px 0 0}
.hwgh-legend i{display:inline-block;width:12px;height:12px;border-radius:50%;vertical-align:-1px;margin:0 6px 0 0}
.hwgh-legend .dot-red{background:var(--red)}
.hwgh-legend .dot-green{background:var(--green);margin-left:14px}

.hwgh-today{background:#000;color:#fff;max-width:none;padding:0}
.hwgh-today>div{max-width:1040px;margin:auto;padding:48px 22px}
.hwgh-today h2{color:#fff}
.hwgh-today p{font-size:1.15rem;max-width:820px}
.hwgh-today strong{color:var(--gold)}

.hwgh-argument .grid{grid-template-columns:repeat(2,1fr)}
.hwgh-argument .card h3{margin:0 0 8px}
.hwgh-argument .card.theirs{border-top:5px solid var(--muted)}
.hwgh-argument .card.ours{border-top:5px solid var(--red)}
.hwgh-argument .card p{margin:0}

.hwgh-close{text-align:left}
.hwgh-close h2{font-size:clamp(1.8rem,5vw,2.6rem)}
.hwgh-close p{font-size:1.15rem;max-width:820px}

.hwgh-sources ul{padding-left:20px;margin:8px 0 18px}
.hwgh-sources li{margin:4px 0}
.hwgh-sources h3{margin:18px 0 4px}

@media(max-width:780px){
  .hwgh-method .grid,.hwgh-argument .grid{grid-template-columns:1fr}
  .hwgh-timeline::before{left:7px}
  .hwgh-timeline li{grid-template-columns:1fr;gap:2px;padding-left:34px}
  .hwgh-timeline li::before{left:0}
  .hwgh-year{text-align:left}
}

/* All-black page body (24 Nov 2026): every section sits on #000 with light text; the white cards keep their dark text */
body.hwgh-page{background:#000;color:#e9ece6}
body.hwgh-page main.hwgh section{background:#000;color:#e9ece6}
body.hwgh-page .hwgh h2,body.hwgh-page .hwgh-entry h3,body.hwgh-page .hwgh-sources h3{color:#fff}
body.hwgh-page .hwgh h2{color:#67b647}
body.hwgh-page .hwgh a:not(.cta){color:#8fd16f}
body.hwgh-page .hwgh .card{color:var(--ink)}
body.hwgh-page .hwgh .card a{color:#175f2d}
body.hwgh-page .hwgh-legend,body.hwgh-page .hwgh-intro{color:#c3cac6}
body.hwgh-page .hwgh-year{color:#ff6b6b}
body.hwgh-page .hwgh-timeline li.win .hwgh-year{color:#67b647}
body.hwgh-page .hwgh-timeline li::before{border-color:#000}
body.hwgh-page .hwgh{--rail:#3a423d}
body.hwgh-page .hwgh-close{border-top-color:var(--green)}

/* Home-page hook */
.history-hook{max-width:1180px;margin:0 auto;padding:14px 22px 0;font-weight:850;font-size:1.05rem}
.history-hook a{color:var(--red,#a82424)}

/* Footer menu (shared/footer/common-top.html) */
.footer-menu{display:block;max-width:none;padding:0;margin:6px auto 18px;text-align:center;font-weight:800}
.footer-menu a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.footer-menu a:hover{color:#67b647}
