/* ==========================================================================
   documents.css - THE IMPORTANT DOCUMENTS PAGE'S ONE SECTION, the downloads.

   Built 2026-10-20 (client: a page that lists the documents families can open
   as a PDF and download). Two states, chosen by tools/documents-content.json
   and rendered by tools/build-documents.mjs:
     - one or more documents: a row per file, built only from the fields the
       editor's "Forms for parents" screen collects (edit/forms.html): what the
       form is called and the PDF; type and size are read from the file;
     - none: "No documents are posted here".
   It follows careers.css on purpose, so the two list pages read as one family.
   Light ground, so no dark-section dither fix is needed. No pills (body-system
   rules); the list is one raised paper panel with hairline row dividers.
   Faces: DM Sans and Libre Caslon Display, loaded by the master hero's <head>.
   ========================================================================== */
.docs{
  --docs-ink:var(--ink,#34231A);--docs-prose:#5C4C46;--docs-muted:#77655A;
  --docs-rust:var(--terracotta,#A83226);--docs-paper:#FFFDF9;--docs-line:rgba(64,30,14,.12);
  --docs-serif:"Libre Caslon Display","Cormorant Garamond",Georgia,serif;
  --docs-sans:"DM Sans",Inter,ui-sans-serif,system-ui,sans-serif;
  background:var(--paper,#F8F4EE);
  padding:clamp(64px,8vw,112px) clamp(16px,5vw,72px);
  font-family:var(--docs-sans);color:var(--docs-prose)}
.docs__in{max-width:1180px;margin:0 auto}
.docs__head{margin:0 0 clamp(28px,3.5vw,44px)}
.docs__eyebrow{margin:0 0 14px;color:var(--docs-rust);
  font:700 12px/1.4 var(--docs-sans);letter-spacing:.2em;text-transform:uppercase}
.docs h2{margin:0;font-family:var(--docs-serif);font-weight:400;
  font-size:clamp(38px,4.4vw,62px);line-height:1.04;letter-spacing:-.02em;color:var(--docs-ink)}

/* ---- the list ---- */
.docs__list{margin:0;padding:0;list-style:none;background:var(--docs-paper);border-radius:8px;overflow:hidden;
  box-shadow:0 24px 60px rgba(64,30,14,.10),0 2px 6px rgba(64,30,14,.05)}
.doc+.doc{border-top:1px solid var(--docs-line)}
.doc__link{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:6px 20px;
  padding:clamp(18px,2.2vw,26px) clamp(20px,3vw,40px);color:inherit;text-decoration:none;
  transition:background-color .2s ease;position:relative}
.doc__link:hover{background:#FBF5EC}
.doc__link:focus-visible{outline:2px solid var(--docs-rust);outline-offset:-4px}
.doc__icon{width:28px;height:28px;color:var(--docs-rust)}
.doc__title{font-family:var(--docs-serif);font-size:clamp(21px,1.9vw,26px);line-height:1.2;color:var(--docs-ink);
  overflow-wrap:anywhere}
.doc__meta{font:700 12px/1.5 var(--docs-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--docs-muted);
  white-space:nowrap}
.doc__go{font:700 15px/1.4 var(--docs-sans);color:var(--docs-rust);white-space:nowrap}
/* "(opens in a new tab)": heard by a screen reader, never seen (cms-wave L6) */
.doc__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* ---- none posted ---- */
.docs-none{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(20px,3vw,40px);align-items:center;
  background:var(--docs-paper);border-radius:8px;padding:clamp(28px,4vw,56px);
  box-shadow:0 24px 60px rgba(64,30,14,.10),0 2px 6px rgba(64,30,14,.05)}
.docs-none__mark{width:clamp(72px,8vw,108px);height:auto}
.docs-none h3{margin:0 0 12px;font-family:var(--docs-serif);font-weight:400;
  font-size:clamp(27px,2.6vw,38px);line-height:1.12;color:var(--docs-ink)}
.docs-none p{margin:0;font-size:17px;line-height:1.72;max-width:62ch}

@media (max-width:760px){
  /* icon beside the title; type and size, then Open, on the line below */
  .doc__link{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"icon title" "icon meta" "icon go"}
  .doc__icon{grid-area:icon;align-self:start}
  .doc__title{grid-area:title}
  .doc__meta{grid-area:meta}
  .doc__go{grid-area:go}
  .docs-none{grid-template-columns:1fr;text-align:center;justify-items:center}
}
@media (prefers-reduced-motion:reduce){.doc__link{transition:none}}
