/* A1 -- Identity & History (/about/our-history).
   Builds on site.css tokens and phase9-public-pages.css; theme-aware through
   --ink / --muted / --line / --surface / --surface-raised / --red-500 only,
   so light and dark both follow the active theme. No images, no animation. */

.history-jump{display:flex;flex-wrap:wrap;gap:8px;padding-block:22px 0}
.history-jump a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface-raised);color:var(--ink);text-decoration:none;font-size:.86rem;font-weight:650}
.history-jump a:hover,.history-jump a:focus-visible{border-color:color-mix(in srgb,var(--red-500) 45%,var(--line))}

.history-page section[id],.history-name-card,.history-timeline-item,.history-disclaimer{scroll-margin-top:100px}

/* Timeline: a single rule with lone-star markers (the one Texas motif). */
.history-timeline{list-style:none;margin:0;padding:0 0 0 34px;position:relative;max-width:860px}
.history-timeline:before{content:"";position:absolute;left:11px;top:8px;bottom:8px;width:2px;background:color-mix(in srgb,var(--red-500) 35%,var(--line))}
.history-timeline-item{position:relative;padding:0 0 30px 18px}
.history-timeline-item:last-child{padding-bottom:0}
.history-timeline-marker{position:absolute;left:-34px;top:2px;width:24px;height:24px;background:var(--red-500);clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}
.history-timeline-when{margin:0 0 4px;color:#ff7286;font-weight:800;font-size:.78rem;letter-spacing:.13em;text-transform:uppercase}
.history-timeline-item h3{margin:0 0 6px;font-size:1.3rem;line-height:1.25}
.history-timeline-item p:last-child{margin:0;color:var(--muted)}
.history-timeline-item p:not(.history-timeline-when){color:var(--muted)}
.history-timeline-depts{margin:10px 0 0;padding-left:20px;color:var(--ink);display:grid;gap:4px}
.history-timeline-depts li{line-height:1.45}
.history-timeline-item p.history-timeline-note{margin:12px 0 0;padding-left:12px;border-left:2px solid var(--line);font-size:.95rem}

/* Former community name: beside the timeline, never inside it, so its
   position cannot imply a date. */
.history-former-name{max-width:860px;margin-top:30px;padding:20px 24px;border:1px solid var(--line);border-left:3px solid var(--red-500);border-radius:12px;background:var(--surface-raised)}
.history-former-name h3{margin:0 0 6px;font-size:1.1rem}
.history-former-name p{margin:0;color:var(--muted)}

/* Behind the names */
.history-names .section-heading p:last-child{color:var(--muted)}
.history-name-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.history-name-card{display:flex;flex-direction:column;background:var(--surface-raised);border:1px solid var(--line);border-top:3px solid var(--red-500);border-radius:18px;padding:28px}
.history-name-card h3{margin:0 0 12px;font-size:1.45rem}
.history-name-card p{margin:0 0 12px;color:var(--muted)}
.history-name-card .history-name-in-stxrp{color:var(--ink);font-weight:600}
.history-name-links{list-style:none;margin:auto 0 0;padding:14px 0 0;border-top:1px solid var(--line);display:grid;gap:6px}
.history-name-links a{color:var(--ink);font-weight:700;text-decoration-color:color-mix(in srgb,var(--red-500) 55%,transparent);text-underline-offset:3px}

/* Community today */
.history-today .section-heading p:last-child{color:var(--muted)}
.history-dept-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.history-dept-card{display:grid;gap:6px;align-content:start;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface-raised);color:var(--ink);text-decoration:none;transition:border-color .18s ease}
.history-dept-card:hover,.history-dept-card:focus-visible{border-color:color-mix(in srgb,var(--red-500) 45%,var(--line))}
.history-dept-abbr{color:#ff7286;font-weight:850;font-size:.74rem;letter-spacing:.13em}
.history-dept-card strong{font-size:1.08rem;line-height:1.3}
.history-dept-card span:last-child{color:var(--muted);font-size:.95rem}

/* Disclaimer and sources: deliberately understated. */
.history-closing{padding-bottom:20px}
.history-disclaimer{max-width:860px;padding:22px 24px;border:1px solid var(--line);border-left:3px solid var(--muted);border-radius:12px;background:var(--surface)}
.history-disclaimer h2{margin:0 0 6px;font-size:1rem;letter-spacing:.02em}
.history-disclaimer p{margin:0;color:var(--muted);font-size:.95rem}
.history-sources{max-width:860px;margin-top:28px}
.history-sources h2{margin:0 0 8px;font-size:1rem}
.history-sources ul{margin:0;padding-left:18px;color:var(--muted);font-size:.92rem}
.history-sources li{margin:4px 0}
.history-sources a{color:var(--ink)}

@media (prefers-reduced-motion:reduce){.history-dept-card{transition:none}}
@media (max-width:980px){
  .history-name-grid{grid-template-columns:1fr}
  .history-dept-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:620px){
  .history-dept-grid{grid-template-columns:1fr}
  .history-timeline{padding-left:28px}
  .history-timeline-marker{left:-28px;width:20px;height:20px}
  .history-timeline:before{left:9px}
  .history-timeline-item{padding-left:12px}
  .history-name-card{padding:22px}
}

/* Small red labels: #ff7286 is the site's existing on-dark label red
   (.cta-panel .eyebrow), >= 4.5:1 on the dark surfaces; the light theme
   uses --red-600 for the same reason. */
html[data-theme="light"] .history-timeline-when,html[data-theme="light"] .history-dept-abbr{color:var(--red-600)}
