/* WR Score · Guides (build-guides.mjs). Provisional until Design draws the How-to section (Architect 31 Oct 13:36). */
.sch-gd__back { font-weight: 700; color: var(--wr-black-72); text-decoration: none; }
.sch-gd__back::before { content: "← "; }
.sch-gd__part { font-weight: 800; color: var(--wr-orange); text-transform: uppercase; letter-spacing: .06em; font-size: clamp(12px, 1vw, 14px); }

.sch-gd__index { display: grid; gap: clamp(32px, 4vw, 56px); }
.sch-gd__group { display: grid; gap: 16px; }
.sch-gd__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.sch-gd__card { display: grid; align-content: start; gap: 6px; height: 100%; padding: clamp(18px, 2vw, 24px); border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--wr-black-06); color: var(--wr-black); text-decoration: none; transition: box-shadow .2s; }
.sch-gd__card:hover, .sch-gd__card:focus-visible { box-shadow: 0 0 0 2px var(--wr-orange); }
.sch-gd__card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 8px; background: var(--wr-black); }
.sch-gd__card b { font-weight: 800; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.25; }
.sch-gd__card span { color: var(--wr-black-72); line-height: 1.45; }

.sch-gd__video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; background: var(--wr-black); margin-bottom: clamp(32px, 4vw, 56px); }
.sch-gd__video.is-soon { display: grid; place-items: center; color: #fff; background: radial-gradient(120% 120% at 100% 100%, var(--wr-orange) 0%, var(--wr-black) 55%); }
.sch-gd__video.is-soon span { font-weight: 800; font-size: clamp(16px, 1.6vw, 22px); }

.sch-gd__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(24px, 3vw, 40px); }
.sch-gd__step { display: grid; gap: clamp(16px, 2.5vw, 40px); align-items: start; padding: clamp(20px, 2.5vw, 32px); border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--wr-black-06); }
.sch-gd__step.has-pic { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sch-gd__words { display: grid; gap: 10px; line-height: 1.55; }
.sch-gd__words p, .sch-gd__words ul { margin: 0; }
.sch-gd__words ul { padding-left: 1.2em; }
.sch-gd__n { font-weight: 800; color: var(--wr-orange); font-size: clamp(12px, 1vw, 14px); text-transform: uppercase; letter-spacing: .06em; }
.sch-gd__pic img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--wr-black-06); }

@media (max-width: 767px) { .sch-gd__step.has-pic { grid-template-columns: 1fr; } }

/* A case (kind: case): Design's picture, then the story's sections in one readable column */
.sch-gd__case { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3.5vw, 48px); }
.sch-gd__case > * { max-width: 52rem; }
.sch-gd__case-pic img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg, 1rem); }

.sch-gd__case-key { margin-top: var(--space-2, .5rem); }

/* Docs' How-tos: numbered steps (Design's .sch-guide step, the number in a black disc), the fields' table */
.sch-gd__sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; line-height: 1.55; }
.sch-gd__sec p, .sch-gd__sec ul { margin: 0; }
.sch-gd__sec ul { padding-left: 1.2em; }
.sch-gd__sec code { font-size: .92em; padding: .08em .35em; border-radius: 6px; background: var(--wr-black-06); overflow-wrap: anywhere; }
.sch-gd__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sch-gd__list > li { position: relative; padding-left: 2.25em; }
.sch-gd__list ul { margin: .5em 0 0; padding-left: 1.2em; list-style: disc; }
.sch-gd__list > li::before { content: counter(list-item); position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--wr-black); color: #fff; font-weight: 800; font-size: .85em; }
.sch-gd__table { overflow-x: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--wr-black-06); background: #fff; }
.sch-gd__table table { width: 100%; border-collapse: collapse; }
.sch-gd__table th:first-child, .sch-gd__table td:first-child { padding-left: clamp(1rem, 2vw, 1.5rem); }
.sch-gd__table th:last-child, .sch-gd__table td:last-child { padding-right: clamp(1rem, 2vw, 1.5rem); }
.sch-gd__table tr:first-child th { padding-top: clamp(1rem, 2vw, 1.5rem); }
.sch-gd__table tr:last-child td { padding-bottom: clamp(1rem, 2vw, 1.5rem); }
.sch-gd__table th, .sch-gd__table td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--wr-black-06); }
.sch-gd__table th { border-top: 0; font-weight: 800; }

/* A screenshot still to come: a named frame, plainly a placeholder (owner 1 Nov 11:57); the real file replaces it by name */
.sch-gd__shot { display: grid; place-items: center; margin: 12px 0 4px; padding: 16px; max-width: 34rem; border: 2px dashed var(--wr-black-30, rgba(0,0,0,.3)); border-radius: 14px; background: repeating-linear-gradient(135deg, transparent 0 12px, var(--wr-black-06) 12px 14px); text-align: center; }
.sch-gd__shot.is-16-9 { aspect-ratio: 16 / 9; }
.sch-gd__shot.is-16-10 { aspect-ratio: 16 / 10; }
.sch-gd__shot figcaption { font-weight: 700; font-size: clamp(13px, 1.1vw, 15px); line-height: 1.35; color: var(--wr-black-72); }
.sch-gd__shot-img { display: block; width: auto; max-width: min(100%, 34rem); height: auto; margin: 12px 0 4px; border-radius: 14px; box-shadow: 0 0 0 1px var(--wr-black-06); }
/* nothing over a guide's words or pictures (owner 3 Nov 00:34): these pages have no bottom blur */
.wr-edge-blur { display: none; }
/* the search as a chat (owner 3 Nov 01:10, 06:1x): pinned on the right beside the page, the same on the Guides page and on a guide; a pill at the foot on a phone */
.sch-gd__layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(20rem, 27vw, 28rem); align-items: start; }
.sch-gd__main { min-width: 0; }
.sch-gd__main > .sch-top, .sch-gd__main > .sch-block { padding-right: clamp(16px, 2.5vw, 40px); }
.sch-gd__chat { position: sticky; top: 6rem; z-index: 5; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100dvh - 7.5rem); margin: 6rem var(--wr-pad-x) 1.5rem 0; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--wr-black-06), 0 18px 48px -28px rgba(0, 0, 0, .35); overflow: hidden; }
.sch-gd__chat[hidden] { display: none; }
.sch-gd__chat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: clamp(1rem, 2vw, 1.5rem); border-bottom: 1px solid var(--wr-black-06); }
.sch-gd__chat-head b { font-weight: 800; font-size: clamp(16px, 1.2vw, 18px); }
.sch-gd__soon { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(240, 73, 35, .1); color: var(--wr-black); font-size: 12px; font-weight: 700; white-space: nowrap; }
.sch-gd__soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wr-orange); }
.sch-gd__chat-log { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; overflow-y: auto; overscroll-behavior: contain; }
.sch-gd__bubble { margin: 0; padding: clamp(1rem, 2vw, 1.5rem); border-radius: 16px; max-width: 88%; line-height: 1.4; }
.sch-gd__bubble.is-us { align-self: flex-start; background: var(--wr-black-06); border-bottom-left-radius: 4px; }
.sch-gd__bubble.is-you { align-self: flex-end; background: var(--wr-black); color: #fff; border-bottom-right-radius: 4px; overflow-wrap: anywhere; }
.sch-gd__bubble[hidden] { display: none; }
.sch-gd__asks { display: flex; flex-wrap: wrap; gap: 6px; }
.sch-gd__chat.is-asked .sch-gd__asks { display: none; }
.sch-gd__asks button { padding: 7px 12px; font: inherit; font-size: 14px; color: var(--wr-black); background: #fff; border: 1px solid var(--wr-black-10, rgba(0, 0, 0, .1)); border-radius: 999px; cursor: pointer; }
.sch-gd__asks button:hover, .sch-gd__asks button:focus-visible { border-color: var(--wr-orange); outline: 0; }
.sch-gd__find { position: relative; padding: 12px; border-top: 1px solid var(--wr-black-06); }
.sch-gd__find label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sch-gd__find svg { position: absolute; left: 28px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--wr-orange); stroke-width: 2.5; stroke-linecap: round; pointer-events: none; }
.sch-gd__find input { width: 100%; padding: 12px 18px 12px 46px; font: inherit; font-size: 16px; color: var(--wr-black); background: #fff; border: 2px solid var(--wr-orange); border-radius: 999px; -webkit-appearance: none; appearance: none; }
.sch-gd__find input::placeholder { color: var(--wr-black-72); }
.sch-gd__find input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sch-page .sch-gd__find input:focus-visible { outline: 0; border-radius: 999px; box-shadow: 0 0 0 4px rgba(240, 73, 35, .18); }
.sch-gd__results[hidden] { display: none; }
.sch-gd__hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sch-gd__hit { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px; border-radius: 12px; background: var(--wr-black-06); color: var(--wr-black); text-decoration: none; }
.sch-gd__hit:hover, .sch-gd__hit:focus-visible { outline: 2px solid var(--wr-orange); outline-offset: -2px; }
.sch-gd__hit-pic { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.sch-gd__hit div { display: grid; gap: 2px; min-width: 0; }
.sch-gd__hit b { font-size: 14px; line-height: 1.25; }
.sch-gd__hit span { color: var(--wr-black-72); font-size: 13px; line-height: 1.35; }
.sch-gd__none { margin: 0; color: var(--wr-black-72); }
@media (max-width: 1023px) {
  .sch-gd__layout { display: block; padding-bottom: 5rem; }
  .sch-gd__main > .sch-top, .sch-gd__main > .sch-block { padding-right: var(--wr-pad-x); }
  .sch-gd__chat { position: fixed; z-index: 50; top: auto; left: 0; right: 0; bottom: calc(var(--sch-kb, 0px) + env(safe-area-inset-bottom, 0px)); height: auto; max-height: 72dvh; margin: 0; padding: 0 12px 12px; display: flex; flex-direction: column; background: none; box-shadow: none; border-radius: 0; overflow: visible; pointer-events: none; }
  .sch-gd__chat > * { pointer-events: auto; }
  .sch-gd__chat.is-away { visibility: hidden; }
  .sch-gd__chat-head, .sch-gd__chat-log { display: none; background: #fff; }
  .sch-gd__chat.is-open .sch-gd__chat-head { display: flex; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 28px -14px rgba(0, 0, 0, .35); }
  .sch-gd__chat.is-open .sch-gd__chat-log { display: flex; flex: 1 1 auto; min-height: 0; border-radius: 0 0 20px 20px; margin-bottom: 8px; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .35); }
  .sch-gd__find { padding: 0; border: 0; }
  .sch-gd__find svg { left: 18px; }
  .sch-gd__find input { padding: 14px 18px 14px 48px; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .4); }
}
.sch-gd__list > li { scroll-margin-top: 6rem; }
