/* =========================================================================
   About (about.html)
   An editorial page: the river hero, a small sticky "On this page" nav,
   then five calm sections. Shared pieces come from styles.css (.page-hero,
   .badge-*, .input, .hint, .req, .form-status, .fine-print, kbd).

   Layout
     >= 1024px   two columns: a sticky side list + the reading column
     <  1024px   one column; the list becomes a frosted rail under the header
   ========================================================================= */

/* ---------- Page frame ---------- */
.about {
  --toc-gap: clamp(48px, 6vw, 104px);
  --sec-space: clamp(44px, 5.6vw, 76px);
  padding-block: clamp(40px, 6vw, 88px) var(--space-section-sm);
}
.about-body { min-width: 0; max-width: 50rem; }

#main { overflow-x: clip; } /* lets the sunken band below run edge to edge */
.about-sec { position: relative; }
.about-sec + .about-sec {
  margin-top: var(--sec-space);
  padding-top: var(--sec-space);
  border-top: 1px solid var(--line);
}
/* The suggestion form sits in a quiet sunken band, so the card floats on it.
   The band replaces the hairlines on either side. */
.about-sec.is-band { padding-bottom: var(--sec-space); border-top-color: transparent; }
.about-sec.is-band::before {
  content: "";
  position: absolute;
  inset: 0 -100vmax;
  z-index: -1;
  background: var(--paper-2);
  pointer-events: none;
}
.about-sec.is-band + .about-sec { margin-top: 0; border-top-color: transparent; }
.about-body { position: relative; z-index: 0; }
.about-sec .title { margin: 0 0 14px; }
.sec-head { margin-bottom: clamp(28px, 4vw, 40px); }
.sec-head .title { margin-bottom: 12px; }
.sec-lead {
  max-width: 36em;
  margin: 0;
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.prose p { max-width: 38em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- On this page ---------- */
.toc-title {
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: 0;
}
.toc-list { position: relative; margin: 0; padding: 0; list-style: none; }
.toc-list a {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-2);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-1) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.toc-list a:hover,
.toc-list a[aria-current] { color: var(--ink); }

/* Side list (wide screens) */
@media (min-width: 1024px) {
  .about {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr);
    column-gap: var(--toc-gap);
    align-items: start;
  }
  .toc {
    --toc-mode: side;
    position: sticky;
    z-index: 1;
    top: calc(var(--header-h) + 36px);
    padding-top: .45rem;
  }
  .toc-list { padding-left: 1px; }
  /* the track and the moss thumb that glides to the current section */
  .toc-list::before,
  .toc-list::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    pointer-events: none;
  }
  .toc-list::before { bottom: 0; background: var(--line-2); }
  .toc-list::after {
    left: -.5px;
    width: 2px;
    height: var(--thumb-h, 36px);
    border-radius: 2px;
    background: var(--moss);
    opacity: 0;
    transform: translateY(var(--thumb-y, 0));
    transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out);
  }
  .toc-list.has-thumb::after { opacity: 1; }
  .toc-list a { min-height: 36px; padding: 6px 10px 6px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
  .toc-list a:focus-visible { outline-offset: 0; }
}

/* Rail (phones, tablets): frosted, scrolls sideways, sticks under the header */
@media (max-width: 1023.98px) {
  html { scroll-padding-top: calc(var(--header-h) + 3.25rem + 20px); }
  .about { padding-top: clamp(28px, 6vw, 48px); }
  .toc {
    --toc-mode: rail;
    position: sticky;
    top: var(--header-h);
    z-index: calc(var(--z-header) - 1);
    margin: 0 calc(-1 * var(--gutter)) clamp(36px, 7vw, 56px);
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line);
  }
  .toc-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .toc-list {
    display: flex;
    gap: 2px;
    padding: 6px var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black var(--gutter), black calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(to right, transparent, black var(--gutter), black calc(100% - var(--gutter)), transparent);
  }
  .toc-list::-webkit-scrollbar { display: none; }
  .toc-list li { flex: none; }
  .toc-list a {
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    font-size: .875rem;
    white-space: nowrap;
  }
  .toc-list a::before { content: ""; position: absolute; inset: -2px 0; } /* 44px tap target */
  .toc-list a[aria-current] { background: var(--fill-2); }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .toc { background: var(--paper); }
}
/* Larger text on mid-size screens: give the reading column the room */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  html:is([data-text="3"], [data-text="4"]) .about { display: block; }
  html:is([data-text="3"], [data-text="4"]) .toc { position: static; margin-bottom: 48px; padding: 0; }
  html:is([data-text="3"], [data-text="4"]) .toc-list { display: flex; flex-wrap: wrap; gap: 4px 24px; }
  html:is([data-text="3"], [data-text="4"]) .toc-list::before,
  html:is([data-text="3"], [data-text="4"]) .toc-list::after { display: none; }
  html:is([data-text="3"], [data-text="4"]) .toc-list a { padding-left: 0; }
  html:is([data-text="3"], [data-text="4"]) .toc-list a[aria-current] { text-decoration: underline; text-decoration-color: var(--moss); text-decoration-thickness: 2px; text-underline-offset: .35em; }
}

/* ---------- What this is ---------- */
/* The one serif moment on the page */
.pull {
  max-width: 19em;
  margin: clamp(26px, 3.6vw, 40px) 0 clamp(30px, 4vw, 44px);
  color: var(--ink);
  font-size: clamp(1.75rem, 3.3vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pull em { color: var(--moss); }

/* Closest help first: Oconee, then Athens, then Georgia, then nationwide */
.reach {
  --dot: 11px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 40rem;
  margin: clamp(28px, 4vw, 36px) 0 clamp(30px, 4vw, 40px);
  padding: 0;
  list-style: none;
}
.reach li {
  position: relative;
  padding: calc(var(--dot) + 14px) 12px 0 0;
  color: var(--text-2);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.reach li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - .5px);
  left: calc(var(--dot) / 2);
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--sage), var(--line-2));
}
.reach-dot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: var(--dot);
  height: var(--dot);
  border: 1.5px solid var(--sage);
  border-radius: 50%;
  background: var(--paper);
}
.reach .is-home { color: var(--ink); font-weight: 600; }
.reach .is-home .reach-dot {
  border-color: var(--moss);
  background: var(--moss);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px color-mix(in srgb, var(--moss) 30%, transparent), 0 0 0 9px var(--paper), 0 0 0 10px color-mix(in srgb, var(--moss) 14%, transparent);
}
@media (max-width: 479.98px) {
  .reach { grid-template-columns: 1fr; }
  .reach li { padding: 0 0 16px calc(var(--dot) + 18px); }
  .reach li:last-child { padding-bottom: 0; }
  .reach li:not(:last-child)::before { top: calc(.68em + var(--dot) / 2); left: calc(var(--dot) / 2 - .5px); width: 1px; height: 100%; background: linear-gradient(to bottom, var(--sage), var(--line-2)); }
  .reach-dot { top: .68em; margin-top: calc(var(--dot) / -2); }
}
@media (max-width: 767.98px) {
  html:is([data-text="3"], [data-text="4"]) .reach { grid-template-columns: 1fr; }
  html:is([data-text="3"], [data-text="4"]) .reach li { padding: 0 0 16px calc(var(--dot) + 18px); }
  html:is([data-text="3"], [data-text="4"]) .reach li:last-child { padding-bottom: 0; }
  html:is([data-text="3"], [data-text="4"]) .reach li:not(:last-child)::before { top: calc(.68em + var(--dot) / 2); left: calc(var(--dot) / 2 - .5px); width: 1px; height: 100%; background: linear-gradient(to bottom, var(--sage), var(--line-2)); }
  html:is([data-text="3"], [data-text="4"]) .reach-dot { top: .68em; margin-top: calc(var(--dot) / -2); }
}

/* ---------- How we check listings ---------- */
/* Three small listings built from the real badge styles. Each caption comes
   first in the source (heading, then words, then the example link); the
   example is drawn on top. */
.checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(18px, 2.4vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.check { display: flex; flex-direction: column; min-width: 0; }
.check .spec { order: -1; }
@supports (grid-template-rows: subgrid) {
  .check { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .check .spec { grid-row: 1; }
  .check h3 { grid-row: 2; }
  .check p { grid-row: 3; }
}
.check h3 { margin: 22px 0 6px; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.014em; }
.check p { margin: 0; color: var(--text-2); font-size: .9375rem; line-height: 1.5; }

.spec {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 9.25rem;
  padding: 18px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.spec:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.spec:active { transform: translateY(0) scale(.99); }
.spec:focus-visible { outline-offset: 3px; }
.spec-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 24px; }
.spec-cats { color: var(--moss); font-size: .8125rem; font-weight: 600; letter-spacing: -0.005em; }
.spec-name {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.spec-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--text-2);
  font-size: .875rem;
}
.spec-meta svg { width: 16px; height: 16px; }
.spec.is-placeholder { border: 1px dashed var(--line-strong); background: transparent; box-shadow: none; }
.spec.is-placeholder:hover { border-color: var(--text-2); box-shadow: none; }

.checks-note { margin-top: clamp(28px, 4vw, 36px); }
.checks-note a { white-space: nowrap; }

@media (max-width: 719.98px) {
  .checks { grid-template-columns: 1fr; row-gap: 36px; }
  .check { display: flex; grid-row: auto; }
  .check .spec { max-width: 26rem; min-height: 0; }
  .check h3 { margin-top: 18px; }
}
@media (max-width: 1279.98px) {
  html[data-text="4"] .checks { grid-template-columns: 1fr; row-gap: 36px; }
  html[data-text="4"] .check { display: flex; grid-row: auto; }
  html[data-text="4"] .check .spec { max-width: 30rem; min-height: 0; }
}

/* ---------- Suggest or correct a resource ---------- */
.form-card {
  --field-bg: color-mix(in srgb, var(--paper) 55%, var(--surface));
  position: relative;
  padding: clamp(22px, 4.2vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  transition: box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out);
}
.form-card.is-sent {
  border-color: color-mix(in srgb, var(--moss) 34%, transparent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--lichen) 60%, transparent), var(--shadow-2);
}
.form-grid { display: grid; gap: 22px; }
.form-grid .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 639.98px) { .form-grid .row { grid-template-columns: 1fr; } }
html[data-text="4"] .form-grid .row { grid-template-columns: 1fr; }

.form-legend { margin: -2px 0 -4px; color: var(--text-2); font-size: .875rem; }
.form-legend .req { font-weight: 600; }

.form-card .field label {
  margin-bottom: 8px;
  transition: color var(--dur-2) var(--ease-out);
}
.form-card .field:focus-within label { color: var(--pine); }
.form-card .opt { color: var(--text-2); font-weight: 400; }
.form-card .field:focus-within .opt { color: var(--text-2); }

/* Fields: a quiet well that lifts on focus, and a ring that settles onto it
   (the outline starts wide and transparent, then draws in) */
.form-card .input {
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 12px;
  background-color: var(--field-bg);
  outline: 3px solid transparent;
  outline-offset: 7px;
  transition:
    border-color var(--dur-1) var(--ease-out),
    background-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    outline-color var(--dur-2) var(--ease-out),
    outline-offset var(--dur-2) var(--ease-out);
}
.form-card textarea.input { min-height: 148px; }
.form-card .input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--pine);
  background-color: var(--surface);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--focus) 13%, transparent);
}
.form-card .input[aria-invalid="true"] {
  border-color: var(--danger);
  background-color: color-mix(in srgb, var(--danger) 5%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--danger);
}
.form-card .input[aria-invalid="true"]:focus-visible {
  outline-color: var(--danger);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--danger) 11%, transparent);
}
.form-card .field:has(.input[aria-invalid="true"]) label { color: var(--danger); }
.form-card .field:has(.input[aria-invalid="true"]) .opt { color: inherit; }

.hint-private { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
.hint-private svg { width: 15px; height: 15px; margin-top: 2px; color: var(--moss); }

#suggest-errors:empty { display: none; }
.form-card .form-status { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; line-height: 1.5; }
.form-card .form-status > svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-card .form-status p { margin: 0; }
.form-problems { margin: 0; padding: 0; list-style: none; }
.form-problems li + li { margin-top: 4px; }
.form-card .form-status.is-error {
  background: color-mix(in srgb, var(--danger) 7%, var(--surface));
  color: var(--danger);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 26%, transparent);
}
.form-status.is-sent { background: var(--lichen); color: var(--ink); }
.form-status.is-sent > svg { color: var(--pine); }
.form-status.is-sent a { color: var(--pine); font-weight: 560; overflow-wrap: anywhere; }
html.motion-ok .form-card .form-status { animation: about-status-in var(--dur-3) var(--ease-out) both; }
html.motion-ok .form-card .form-status.is-sent > svg { animation: about-check-in var(--dur-3) var(--ease-spring) 140ms both; }
@keyframes about-status-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
@keyframes about-check-in { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 4px; }
.form-foot .btn { flex: none; }
.form-foot .btn svg { width: 1.05em; height: 1.05em; margin-left: -2px; }
.form-foot .hint { flex: 1 1 15rem; max-width: 30em; margin: 0; }
@media (max-width: 559.98px) {
  .form-foot .btn { width: 100%; }
}

/* ---------- Accessibility ---------- */
/* A hairline list: a short bold lead on the left, the detail on the right */
.features { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr);
  gap: 6px clamp(20px, 3vw, 40px);
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}
.feature h3 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.014em;
}
.feature h3 svg { width: 22px; height: 22px; margin-top: .05em; color: var(--moss); }
.feature-body p { max-width: 34em; margin: 0; color: var(--text-2); }
.feature-body kbd { color: var(--ink); }
.feature-btn { margin-top: 16px; }
.feature-btn svg { width: 17px; height: 17px; }
.features-note { margin: clamp(24px, 3vw, 32px) 0 0; color: var(--text-2); }
@media (max-width: 719.98px) {
  .feature { grid-template-columns: 1fr; padding: 20px 0 22px; }
  .feature-body { padding-left: 34px; }
}
html[data-text="4"] .feature { grid-template-columns: 1fr; }
html[data-text="4"] .feature-body { padding-left: 34px; }

/* ---------- Privacy ---------- */
.promise {
  margin: clamp(20px, 3vw, 28px) 0 clamp(26px, 3.6vw, 36px);
  color: var(--ink);
  font-size: clamp(2.375rem, 4.8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.promise span { display: block; }
.privacy-text p { color: var(--text); }
.danger-line {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: clamp(24px, 3vw, 32px) 0 0;
  padding: 12px 18px 12px 14px;
  border-radius: var(--r-pill);
  background: var(--clay-soft);
  color: var(--clay);
  font-size: .9375rem;
  font-weight: 560;
  line-height: 1.4;
}
.danger-line svg { width: 18px; height: 18px; }
.danger-line a { color: inherit; font-weight: 650; text-decoration-color: currentColor; }

/* ---------- Smooth in-page travel (off with reduced motion) ---------- */
html.motion-ok { scroll-behavior: smooth; }

/* ---------- Preferences ---------- */
html[data-contrast="high"] :is(.spec, .form-card) { border: 2px solid var(--line); box-shadow: none; transform: none; }
html[data-contrast="high"] .spec.is-placeholder { border: 2px dashed var(--line); }
html[data-contrast="high"] .form-card { --field-bg: var(--surface); }
html[data-contrast="high"] .form-card.is-sent { outline: 2px solid var(--line); outline-offset: 3px; }
html[data-contrast="high"] .form-card .input[aria-invalid="true"] { border-width: 3px; }
html[data-contrast="high"] .form-card .form-status { box-shadow: none; border: 2px solid currentColor; background: var(--surface); }
html[data-contrast="high"] .form-card .field:focus-within label,
html[data-contrast="high"] .form-card .field:focus-within .opt { color: var(--ink); }
html[data-contrast="high"] .toc { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 2px 0 var(--line); }
html[data-contrast="high"] .toc-list a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
html[data-contrast="high"] .toc-list::after { background: var(--ink); width: 4px; left: -1.5px; }
html[data-contrast="high"] .toc-list a[aria-current] { box-shadow: inset 0 0 0 2px var(--line); background: transparent; }
html[data-contrast="high"] .reach-dot { border-color: var(--ink); }
html[data-contrast="high"] .reach li:not(:last-child)::before { background: var(--ink); }
html[data-contrast="high"] .reach .is-home .reach-dot { box-shadow: none; }
html[data-contrast="high"] .about-sec + .about-sec { border-top-width: 2px; border-top-color: var(--line); }
html[data-contrast="high"] .about-sec.is-band { padding-bottom: 0; }
html[data-contrast="high"] .about-sec.is-band::before { display: none; }
html[data-contrast="high"] .about-sec.is-band + .about-sec { margin-top: var(--sec-space); }
html[data-contrast="high"] .danger-line { border: 2px solid currentColor; }
@media (min-width: 1024px) {
  html[data-contrast="high"] .toc-list a[aria-current] { box-shadow: none; }
}

@media print {
  .about { display: block; padding: 0; }
  .about-sec.is-band::before { display: none; }
  .toc, .form-card, .feature-btn { display: none !important; }
  .about-sec + .about-sec { margin-top: 18pt; padding-top: 12pt; }
  .pull { font-size: 18pt; margin: 8pt 0 12pt; }
  .promise { font-size: 18pt; }
  .spec { box-shadow: none; border: 1px solid #999999; break-inside: avoid; min-height: 0; }
  .checks, .feature { break-inside: avoid; }
  .about a[href^="http"]::after { content: " (" attr(href) ")"; color: #333333; font-size: 9pt; }
}
