/* Step Up AVL — "The Broadsheet", organization profile layer.
 *
 * Companion to assets/broadsheet.css (which must load first: this file uses its
 * tokens and its shared shell). Spec: DELTA-v15-v16-org-profile-and-about-pages.md.
 *
 * A landing page, not an article: cream, inside the 1140px container, no sheet.
 * The old white stat pills and the three white action cards with rust/green/navy
 * buttons are gone. In their place: a ruled stat table, three ruled columns with
 * the site's action hierarchy (filled Donate / outlined Volunteer / gold-underlined
 * Learn), and a ruled program list.
 *
 * Two renderers emit this markup and must stay in step:
 *   - org_main() in scripts/seo-build.py -> the static org-<id>.html pages (canonical)
 *   - initOrg()  in assets/app.js        -> the client-rendered /org?id=<id> fallback
 */

.org-page { padding: 28px 0 44px; }

.org-back {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--avl-green);
}

.org-head { max-width: 820px; margin-top: 18px; }
.org-head .kicker { margin-bottom: 10px; }
/* Org names are never set in red italic: the accent is reserved for our own
 * headlines, and an organization's name is not ours to style. */
.org-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.org-mission {
  font-size: 19px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

/* ------------------------------------------------------------- section heads */

.org-crosshead {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-top: 34px;
}
.org-page > .wrap > .org-crosshead:first-of-type { margin-top: 0; }
.org-crosshead .ck {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--article-red);
}
.org-crosshead .ct {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.org-crosshead .cnote {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------- the record table */

.org-record {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--panel-rule);
}
.org-record .cell {
  border-right: 1px solid var(--panel-rule);
  border-bottom: 1px solid var(--panel-rule);
  padding: 18px 20px;
}
/* Every cell keeps its bottom hairline, so the table closes on a rule whatever the
 * stat count is. (The mock drops it on the last row, but it has exactly six stats;
 * the orgs carry between four and six, and a partial last row looked broken.) */
.org-record .v {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--deep-green);
}
.org-record .l {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-top: 7px;
}

/* --------------------------------------------------------- three ways to act */

.org-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--panel-rule);
}
.org-actions .act {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--panel-rule);
  padding: 20px 22px;
}
.org-actions h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.org-actions p {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--body-text);
  margin: 0;
  flex: 1;
}

/* The action hierarchy: give money, give time, give attention. */
.org-actions .btn {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}
.org-actions .btn.donate {
  background: var(--avl-green);
  color: var(--paper);
  padding: 10px 18px;
}
.org-actions .btn.donate:hover { background: var(--deep-green); color: var(--paper); }
.org-actions .btn.volunteer {
  border: 1px solid var(--avl-green);
  color: var(--avl-green);
  padding: 9px 17px;
}
.org-actions .btn.volunteer:hover { background: var(--panel-bg); }
.org-actions .btn.learn {
  color: var(--ink);
  padding: 9px 0;
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
}
.org-actions .btn.learn:hover { color: var(--deep-green); }

/* -------------------------------------------------------------- program list */

.org-programs { max-width: 820px; padding-top: 6px; }
.org-programs .prog {
  padding: 14px 0;
  border-bottom: 1px solid var(--panel-rule);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--body-text);
}
.org-programs .prog:last-child { border-bottom: 0; }
.org-programs .prog strong { font-weight: 600; color: var(--ink); }

/* ------------------------------------------------------------------- sources */

.org-sources {
  max-width: 820px;
  margin-top: 30px;
  background: var(--panel-bg);
  border-top: 3px solid var(--avl-green);
  padding: 16px 20px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.org-sources strong { color: var(--text-tertiary); }

.org-empty { padding: 60px 0; font-size: 18px; color: var(--text-secondary); }

/* ----------------------------------------------------------------- responsive */

@media (max-width: 760px) {
  .org-head h1 { font-size: 33px; }
  .org-mission { font-size: 17px; }
  .org-record,
  .org-actions { grid-template-columns: 1fr; border-left: 0; }
  .org-record .cell {
    border-right: 0;
    border-bottom: 1px solid var(--panel-rule);
  }
  .org-record .cell:last-child { border-bottom: 0; }
  .org-actions .act {
    border-right: 0;
    border-bottom: 1px solid var(--panel-rule);
  }
  .org-actions .act:last-child { border-bottom: 0; }
}

@media print {
  .trust, .masthead, .navrule-thin, .site-foot, .org-back { display: none; }
}

/* ------------------------------------------------- mobile legibility floor */

@media (max-width: 760px) {
  .org-back { font-size: 13px; }
  .org-crosshead .ck { font-size: 12.5px; letter-spacing: 0.12em; }
  .org-crosshead .cnote { font-size: 12px; }
  .org-record .l { font-size: 13.5px; }
  .org-sources { font-size: 13.5px; }
}
