/* BY THE STANDARD · disclosures
   ---------------------------------------------------------------------
   The nine accreditation disclosures, wherever they land. One stylesheet
   for all of them, so the register is consistent: a disclosure should read
   as the fine print it is — quiet, legible, never competing with the thing
   it qualifies — and never as an alarm. Same tokens as everything else, so
   it follows the light/dark switch without its own logic. */

/* ------------------------------------------------------------- the footer
   Placement 2: every public page. Sits below the content on the page's own
   ground with a single hairline above it. */
.dscfoot{
  border-top:1px solid var(--line);
  margin-top:clamp(56px,9vw,120px);
  padding:clamp(28px,4vw,44px) 0 calc(clamp(28px,4vw,44px) + env(safe-area-inset-bottom));
}
.dscfoot-in{
  width:100%;max-width:var(--max);margin:0 auto;
  padding-inline:max(var(--gut),env(safe-area-inset-left));
  box-sizing:border-box;
}
.dscfoot-t{
  margin:0 0 16px;max-width:92ch;
  font-family:var(--txt);font-size:11.5px;line-height:1.75;color:var(--faint);
  text-wrap:pretty;
}
.dscfoot-t a{color:var(--mute);text-decoration:underline;text-underline-offset:2px;
  text-decoration-thickness:from-font}
.dscfoot-t a:hover{color:var(--fg)}
.dscfoot-l{margin:0 0 10px;display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;
  font-family:'JetBrains Mono',ui-monospace,Menlo,monospace;
  font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.dscfoot-l a{color:var(--mute);text-decoration:none}
.dscfoot-l a:hover{color:var(--fg)}
.dscfoot-l span{color:var(--line2)}
.dscfoot-c{margin:0;font-family:'JetBrains Mono',ui-monospace,Menlo,monospace;
  font-size:10px;letter-spacing:.08em;color:var(--faint)}

/* --------------------------------------------------- the inline disclosure
   Placements 4, 6, 7, 8: a notice sitting inside a screen that is about
   something else. Indented behind a hairline rule rather than boxed — a box
   reads as a warning, and none of these are warnings. */
.dsc{
  margin:22px 0 0;padding:0 0 0 14px;
  border-left:1px solid var(--line2);
  font-family:var(--txt);font-size:11.5px;line-height:1.75;color:var(--faint);
  max-width:84ch;text-wrap:pretty;
}
.dsc a{color:var(--mute);text-decoration:underline;text-underline-offset:2px}
.dsc a:hover{color:var(--fg)}
.dsc-lab{
  display:block;margin:0 0 5px;
  font-family:'JetBrains Mono',ui-monospace,Menlo,monospace;
  font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--line-ctl);
}
.dsc p{margin:0 0 9px}
.dsc p:last-child{margin:0}

/* Placement 4's first half is "before unlocking course content" — the same
   text, but given a little more presence the one time it is the point of
   the screen rather than a note at the foot of one. */
.dsc.dsc-gate{
  margin:0 0 26px;padding:18px 20px;
  border:1px solid var(--line);border-left-width:1px;border-radius:3px;
  background:var(--s1);color:var(--mute);font-size:12.5px;
}

/* ----------------------------------------------------- the acknowledgments
   Placements 3 and 9: a required, unchecked checkbox whose label IS the
   legal text. Full size, not fine print — someone is being asked to assert
   this, so it has to be as readable as anything else they're asked to do. */
.dscack{
  display:grid;grid-template-columns:auto 1fr;gap:0 12px;align-items:start;
  margin:0 0 16px;cursor:pointer;
}
.dscack input[type="checkbox"]{
  appearance:none;-webkit-appearance:none;
  width:17px;height:17px;margin:2px 0 0;flex:none;
  border:1px solid var(--line-ctl);border-radius:2px;background:none;
  cursor:pointer;position:relative;transition:border-color .16s,background .16s;
}
.dscack input[type="checkbox"]:hover{border-color:var(--fg)}
.dscack input[type="checkbox"]:focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px}
.dscack input[type="checkbox"]:checked{background:var(--fg);border-color:var(--fg)}
.dscack input[type="checkbox"]:checked::after{
  content:'';position:absolute;inset:0;
  background:var(--bg);
  clip-path:polygon(21% 49%,34% 62%,76% 24%,84% 33%,35% 78%,13% 57%);
}
.dscack > span{
  font-family:var(--txt);font-size:12.5px;line-height:1.7;color:var(--mute);
  text-wrap:pretty;
}
.dscack a{color:var(--fg);text-decoration:underline;text-underline-offset:2px}

/* ------------------------------------------------------- the manual's page
   Placement 5: the opening pages of the generated manual, and the
   downloadable materials. Printed, so it is sized in points and never
   relies on a token the print sheet doesn't define. */
.dscmanual{
  margin:0;padding:10pt 0 0;border-top:.5pt solid #c9c9c4;
  font-family:'Inter',system-ui,sans-serif;
  font-size:7.6pt;line-height:1.55;color:#55554f;text-align:left;
}
.dscmanual b{display:block;margin:0 0 3pt;
  font-size:6.4pt;letter-spacing:.1em;text-transform:uppercase;color:#8a8a84;font-weight:600}

/* ------------------------------------------------- inside the legal pages
   Two small registers legal.css didn't need until the disclosures landed in
   it: a lead-in line that introduces a quoted block, and the quoted block
   itself. The quote is set off by a rule rather than italics — these are
   sentences someone is asked to assert, and italics reads as an aside. */
.lgwrap .lgsub{color:var(--mute)}
.lgwrap .lgsub b{color:var(--fg);font-weight:600}
.lgwrap .lgquote{
  margin:14px 0 16px;padding:0 0 0 16px;
  border-left:2px solid var(--line2);
  color:var(--fg);
}

/* Jumped to from the checkout acknowledgment's own link. Without the scroll
   margin it lands under the sticky nav; without the flash you cannot tell
   that anything moved on a page that is mostly text. */
#endscfull{scroll-margin-top:96px}
#endscfull:target{animation:dscflash 1.6s var(--ease)}
@keyframes dscflash{
  0%,22%{border-left-color:var(--accent-ink)}
  100%{border-left-color:var(--line2)}
}
@media(prefers-reduced-motion:reduce){#endscfull:target{animation:none}}

/* Pages that already carry the full disclosure keep only the footer's
   links, so the rule above them would otherwise sit on nothing. */
.dscfoot-lean .dscfoot-l{margin-top:0}

/* ------------------------------------------- page-level disclosures
   A disclosure sitting in the page's own column, alongside its headings and
   body text, must have its TEXT on the column edge. The decorative left rule
   put the words 14px right of every other line on the page: the rule aligned,
   the text did not, and the text is what the eye reads. Measuring the element
   box said "aligned" and looked wrong, which is exactly how this survived
   three attempts.

   The rule is kept only where a .dsc is nested INSIDE something — a quiz, an
   exam paper, the certificate back — where an indent correctly reads as a
   quotation rather than a misalignment. */
.dsc.dsc-col,
#dscpage,
#dscverify,
#endscfull{
  border-left:0;
  padding-left:0;
}
