/* Validated.Directory 2.0.0 · the nine checks (DIR 2.0.0 part D, BEA-432). Loads after /brand/waterfall.css and
   /learn/_guide/guide.css. The page's main act is the waterfall (BGA 54 and 57): BeargrassAI's own listed site falls
   past the directory's nine checks, in the directory's order. Drawn from the waterfall's first use on the design board
   (beargrassai-site/site/board/waterfall/, use 1), on our own site. Motion only under html.m. */

.wfs { position: relative; background: var(--canvas); }
/* position: relative is the kit's own .wf rule, lost today: waterfall.css's header comment closes early, so its first rule
   is read as part of a broken selector and dropped (reported as a kit fix); the page sets it again. */
.w9 { position: relative; --wf-len: 7.6; --wf-col: clamp(94px, 28vw, 128px); }

/* The head says what is read and when: one plain sentence, and the read in mono (what can be checked). */
.wf-say { margin-top: 14px; max-width: 34ch; font-size: 17px; line-height: 1.5; color: var(--cream); }
.w9 .wf-sample { margin-top: 14px; color: var(--cream); border-color: rgba(240, 230, 207, 0.5); }
.w9 .wf-sample::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--x) center / 9px no-repeat; vertical-align: 0; }
/* The payoff: the count in mono and the words in Caslon; the read under it, in mono. */
.w9 .pay-say { font-size: 13.5px; color: var(--cream); }

/* Our own site, drawn (.ws, not .site, which is the header): its address, its page (its name and the two things the
   checks read inside it) and its four files. A spot is plain until its check strikes, then lit in gold (.wf-wait). */
.ws { display: grid; gap: 14px; padding: 11px 11px 13px; background: var(--paper-hi); color: var(--ink); border: 1px solid rgba(35, 31, 26, 0.4); box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.85); }
.s-url { display: grid; row-gap: 12px; padding: 7px 8px 8px; background: #ebe2cd; border: 1px solid rgba(35, 31, 26, 0.18); font: 500 clamp(12px, 3.5vw, 13.5px)/1.3 var(--mono); }
.s-https { justify-self: start; color: var(--ink-2); }
.s-host { justify-self: start; overflow-wrap: normal; }
.s-page { display: grid; gap: 5px; padding: 9px 9px 11px; border: 1px solid rgba(35, 31, 26, 0.18); }
.s-name { font: 400 clamp(21px, 6vw, 28px)/1.05 var(--display); }
.s-kind { font: 600 12.5px/1.3 var(--sans); color: var(--ink-2); }
.s-bars { display: grid; gap: 5px; margin: 2px 0 3px; }
.s-bars i { height: 5px; background: rgba(35, 31, 26, 0.12); }
.s-bars i + i { width: 62%; }
.s-tags, .s-files { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.s-files { padding: 3px 0 2px; }
.s-tags span, .s-files span { padding: 3px 6px 4px; border: 1px solid rgba(35, 31, 26, 0.24); font: 500 12px/1.2 var(--mono); }
.s-https, .s-host, .s-tags span, .s-files span { background: rgba(244, 196, 90, 0.34); border-color: var(--gold-ink); transition: background-color 0.35s, border-color 0.35s, color 0.35s; }
.s-page { border-color: var(--gold-ink); transition: border-color 0.35s; }
.m .ws .wf-wait { background: transparent; border-color: rgba(35, 31, 26, 0.24); }
.m .s-page.wf-wait { border-color: rgba(35, 31, 26, 0.18); }
.m .s-https.wf-wait, .m .s-host.wf-wait { background: transparent; }
html:not(.m) .w9 .wf-fall { max-width: 420px; }

@media (max-width: 360px) {
  .w9 { --wf-col: 86px; }
  .s-bars { display: none; }
  .ws { gap: 10px; padding: 8px 8px 10px; }
  .s-url { row-gap: 10px; font-size: 12px; }
  .s-page { padding: 7px 7px 8px; }
  .s-name { font-size: 20px; }
  .s-kind { font-size: 11.5px; }
  .s-tags, .s-files { gap: 12px 12px; }
  .s-tags span, .s-files span { padding: 2px 4px 3px; font-size: 11px; }
}
@media (min-width: 900px) {
  .w9 { --wf-col: 150px; }
  .ws { gap: 10px; padding: 12px 14px 14px; }
  .s-url { display: flex; flex-wrap: wrap; font-size: 14.5px; }
  .s-tags span, .s-files span { font-size: 13px; }
}

@media (max-width: 899px) {
  .m .w9 .wf-say, .m .w9 .wf-sample { display: none; }   /* phones: the zone needs the room; the readout names each check */
}
@media (min-width: 900px) {
  .w9 .wf-say { font-size: 19px; max-width: 30ch; }
  .s-url { row-gap: 0; }
  .s-https + .s-host { margin-left: 20px; }
  .s-files { column-gap: 20px; }
}

/* page.js: the sky stays out of the checks' column, and a check carried up past the window's top fades out whole. */
.m .w9 .wf-sky { -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--zl, 16px) - 6px), rgba(0, 0, 0, 0.14) var(--zl, 16px), rgba(0, 0, 0, 0.14) calc(var(--zl, 16px) + var(--wf-col) + 4px), #000 calc(var(--zl, 16px) + var(--wf-col) + 20px)); mask-image: linear-gradient(90deg, #000 calc(var(--zl, 16px) - 6px), rgba(0, 0, 0, 0.14) var(--zl, 16px), rgba(0, 0, 0, 0.14) calc(var(--zl, 16px) + var(--wf-col) + 4px), #000 calc(var(--zl, 16px) + var(--wf-col) + 20px)); }
.m .w9 .wf-checks > li { transition: border-color 0.4s, opacity 0.3s; }
.m .w9 .wf-checks > li.wf-gone { opacity: 0; }
