/* AMA Transparency and Membership Voice. House style (kranitz-style-guide): one gold accent
   that means a primary action or a selected state, never hover or focus; Inter; hairline
   panels with soft shadows; content anchored left with a gutter. */
:root {
  --gold: #d3a03b; --gold-soft: #faf3e2; --gold-line: #ecd9a8; --gold-text: #8c6300;
  --charcoal: #1a1d23; --ink: #1f2329; --muted: #6b7280; --faint: #9aa0aa;
  --page: #f3f4f6; --card: #ffffff; --line: #e6e7ea; --line-2: #d7d9dd; --chip: #f6f7f9;
  --danger: #c0392b; --live: #1f9254; --live-bg: #e9f5ee;
  --warn: #a4690f; --warn-bg: #fdf6e7; --warn-line: #f0dfb8;
  --hover-line: #c9cdd6; --focus-ring: #aeb4be;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1.08; font-weight: 800; margin: 0 0 18px; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 800; margin: 0 0 10px; }
h3 { font-size: 16.5px; line-height: 1.35; font-weight: 700; margin: 0 0 6px; }
a { color: var(--ink); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
:target, section[id] { scroll-margin-top: 44px; } /* clears the sticky draft banner */

/* left-anchored content with a gutter */
.wrap { max-width: 1180px; margin: 0; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.draft { background: var(--charcoal); color: #fff; border-bottom: 2px solid var(--gold); text-align: center; font-weight: 600; font-size: 13px; padding: 8px 16px; position: sticky; top: 0; z-index: 10; }

/* buttons: 9px radius, never wrap; gold = primary */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 14.5px/1 Inter, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: var(--hover-line); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { border-color: #b98a2c; }
.btn.big { min-height: 50px; padding: 0 22px; font-size: 15.5px; }
.btn.huge { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn.full { width: 100%; }
.btn.ondark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn.ondark:hover { border-color: rgba(255,255,255,.7); }
.btn:disabled { opacity: .6; cursor: default; }

/* hero: eyebrow on its own grid row so the KPI panel aligns to the headline */
.hero { background: var(--charcoal); color: #fff; padding: 52px 0 56px; }
.hero h1 { color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); column-gap: 56px; row-gap: 0; align-items: start; }
.split > .eyebrow { grid-column: 1; grid-row: 1; }
.split__body { grid-column: 1; grid-row: 2; }
.split > .kpi { grid-column: 2; grid-row: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; row-gap: 28px; }
  .split > .eyebrow, .split__body, .split > .kpi { grid-column: 1; grid-row: auto; }
  .split > .eyebrow { margin-bottom: -14px; }
}
.eyebrow { margin: 0 0 16px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lede { font-size: 18px; line-height: 1.6; color: #c9cdd6; max-width: 60ch; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* KPI: the one tinted block */
.kpi { background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 14px; padding: 20px 22px 18px; color: var(--ink); box-shadow: 0 1px 3px rgba(20,22,26,.06), 0 6px 18px rgba(20,22,26,.04); }
.kpi-label { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.kpi-value { margin: 0; font-size: 15px; color: var(--muted); }
.kpi-value b { font-size: 40px; line-height: 1.1; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.progress { margin: 12px 0 0; }
.progress-bar { height: 10px; background: #efe3c4; border-radius: 99px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 99px; transition: width .6s ease; }
.kpi-sub { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.kpi-sub b { color: var(--ink); }
.kpi-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--gold-line); font-size: 13.5px; }
.kpi-note a { color: var(--gold-text); font-weight: 600; }

/* bands */
.band { padding: 48px 0; }
.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose { max-width: 68ch; margin: 0 0 20px; }
.srcnote { margin: 14px 0 0; font-size: 12.5px; color: var(--faint); }

/* panels (Class Studio recipe) */
.panel { background: #fff; border: 1px solid #eaeaea; border-radius: 14px; box-shadow: 0 1px 3px rgba(20,22,26,.06), 0 6px 18px rgba(20,22,26,.04); overflow: hidden; }
.panelhead { background: #e5e5e5; border-bottom: 1px solid #c2c2c2; padding: 12px 18px; min-height: 46px; display: flex; align-items: center; }
.panelhead h2 { margin: 0; font-size: 17px; }
.panelhead.ok { background: var(--live-bg); border-bottom-color: #cfe6d8; }
.panelhead.ok h2 { color: var(--live); }
.panelbody { background: #f8f8f8; padding: 14px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 18px 20px 18px 16px; }
.ord { width: 30px; height: 30px; border-radius: 8px; background: var(--chip); border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.card p { margin: 0; color: #3a3f47; max-width: 76ch; }
.src { display: block; width: fit-content; margin: 5px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.card p > .src:first-of-type { margin-top: 12px; }
.src:hover { color: var(--ink); }

.warnbox { margin-top: 16px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 11px; padding: 16px 20px; }
.warnbox h3 { color: var(--warn); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.warnbox p { margin: 0; }

.cta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.cta-line p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* facts are bands, not boxes: nothing to set here */
.factrow { display: flex; flex-wrap: wrap; gap: 10px; }
.fact { flex: 1 1 200px; background: var(--chip); border-radius: 10px; padding: 12px 16px 13px; display: flex; flex-direction: column; gap: 2px; }
.fact-l { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.fact-v { font-size: 15px; font-weight: 700; }

/* share */
.share-band { background: var(--charcoal); color: #fff; padding: 44px 0 40px; }
.share-band h2 { color: #fff; font-size: 24px; }
.share-band p { color: #c9cdd6; max-width: 60ch; }
.share-box { margin-top: 14px; }
.share-main { width: 100%; max-width: 420px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 13.5px/1 Inter, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip:hover { border-color: var(--hover-line); }
.on-dark .chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.on-dark .chip:hover { border-color: rgba(255,255,255,.65); }
.share-url { margin-top: 10px; max-width: 420px; }
.share-status { min-height: 1.4em; margin: 8px 0 0; font-size: 13.5px; font-weight: 600; }
.on-dark .share-status { color: var(--gold); }
.share-box h3 { margin-top: 18px; }

/* letter page */
.topbar { background: var(--charcoal); padding: 15px 0; }
.topbar .brand { color: var(--gold); text-decoration: none; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.pagehead { padding: 34px 0 22px; max-width: 760px; }
.pagehead h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); margin-bottom: 10px; }
.lede-dark { color: var(--muted); font-size: 16.5px; margin: 0; }
.letter-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 980px) { .letter-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; } .side { position: sticky; top: 52px; } }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 3px rgba(20,22,26,.06), 0 10px 30px rgba(20,22,26,.06); padding: 26px 22px; }
@media (min-width: 640px) { .paper { padding: 40px 48px; } }
.paper-meta { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 14px; margin: 0 0 20px; }
.paper-meta span:last-child { color: var(--ink); font-weight: 700; font-size: 14px; }
.letter { font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.65; color: #23272e; }
.letter p { margin: 0 0 14px; }
.letter ul { padding-left: 1.3em; margin: 0 0 14px; }
.letter li { margin-bottom: 8px; }
.letter .ph { color: var(--faint); font-style: italic; }

/* form */
.form-body { padding: 18px; }
.row2 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.hint { margin: -2px 0 8px; font-size: 12.5px; color: var(--faint); }
input, select, textarea { width: 100%; height: 44px; font: 16px Inter, sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 12px; }
input:hover { border-color: var(--hover-line); }
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(211,160,59,.18); }
.in-num { max-width: 176px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.5; color: #3a3f47; cursor: pointer; margin: 4px 0 18px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.ts { min-height: 66px; margin-bottom: 12px; }
.err { color: var(--danger); background: #fbeceb; border: 1px solid #efc2bd; border-radius: 9px; padding: 10px 12px; margin: 0 0 14px; font-size: 14px; }
.fine { color: var(--muted); font-size: 13px; margin: 10px 0 0; text-align: center; }
.done .panelbody { padding: 18px; }
.done .panelbody > p { margin-top: 0; }

.privacy { margin: 36px 0 0; max-width: 760px; }
.privacy ul { padding-left: 1.2em; }
.privacy li { margin-bottom: 8px; color: #3a3f47; font-size: 15px; }

.foot { margin-top: 56px; background: var(--charcoal); color: #c9cdd6; padding: 28px 0 40px; font-size: 14px; }
.foot a { color: var(--gold); }
.letter-page .foot, .band + .foot { margin-top: 0; }

/* server-rendered pages (report, link-not-found) */
.wrap.narrow { max-width: 720px; padding-top: 36px; padding-bottom: 48px; }
.kicker a { color: var(--gold-text); text-decoration: none; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.disclaimer { margin-top: 36px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; }

/* admin */
.wrap.wide { max-width: 1400px; padding-top: 24px; }
.settings { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; }
.pill { background: var(--chip); border: 1px solid var(--line-2); border-radius: 8px; padding: 2px 9px; font-weight: 600; }
.pill.live { background: #fbeceb; border-color: #efc2bd; color: var(--danger); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.btn.ghost { background: #fff; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
td.note { white-space: normal; min-width: 240px; }
th { background: #e5e5e5; position: sticky; top: 0; }

.nowrap { white-space: nowrap; }

/* member committee */
.qual { max-width: 760px; }
.quals { margin: 0; padding: 4px 4px 4px 22px; }
.quals li { margin: 0 0 10px; color: #3a3f47; }
.quals li:last-child { margin-bottom: 0; }
.letter-grid > aside.qual { align-self: start; }
@media (min-width: 980px) { .letter-grid > aside.qual { position: sticky; top: 52px; } }
.label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; }
textarea { height: auto; min-height: 140px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(211,160,59,.18); }
/* option chips: selected = light gold wash with a gold edge */
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipck { position: relative; cursor: pointer; }
.chipck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chipck span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.chipck span:hover { border-color: var(--hover-line); }
.chipck input:checked + span { background: rgba(211,160,59,.22); border-color: rgba(211,160,59,.75); color: var(--gold-text); }
.chipck input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* land value estimate */
.worth { margin-top: 20px; }
.panelhead .tag { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: 3px 9px; }
.worth-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.worth-cell { flex: 1 1 260px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 16px 18px; }
.worth-v { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin: 2px 0 8px; white-space: nowrap; }
.worth-cell p { margin: 0 0 4px; font-size: 14.5px; color: #3a3f47; }
.worth-cell .src:first-of-type { margin-top: auto; padding-top: 10px; }
.worth-why { margin: 14px 4px 2px; font-weight: 600; max-width: 76ch; }

/* way back from the form pages */
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .back { color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 600; white-space: nowrap; border: 1px solid rgba(255,255,255,.3); border-radius: 9px; padding: 7px 12px; }
.topbar .back:hover { border-color: rgba(255,255,255,.65); }
@media (max-width: 520px) { .topbar .brand { font-size: 10.5px; letter-spacing: .06em; } }
.reread { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.reread a { color: var(--gold-text); font-weight: 600; }
