/* Site v4: the nav with a Menu on phones, the route and step pages, the home, the questions, the room's report parts.
   Tokens come from site.css. Colour names a round type; on the route it names a stage (the ring's four arcs). */

.skip, .skip2 { position: absolute; left: 12px; top: -80px; background: var(--ink); color: var(--board); padding: 12px 18px; border-radius: 10px; z-index: 40; }
.skip:focus, .skip2:focus { top: 10px; }
.skip2 { position: static; display: block; width: max-content; margin: 8px 0; }
.skip2:not(:focus) { position: absolute; }

/* nav: the five links on wide screens; on a phone a Menu that opens without any script */
.nav ul { gap: clamp(14px, 2vw, 26px); }
.nav ul a[aria-current="page"], .menu a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2.5px 0 var(--ink); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 650; font-size: 15px;
  box-shadow: inset 0 0 0 1.5px var(--line-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 7px; height: 7px; margin-left: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.menu[open] summary::after { transform: rotate(-135deg) translate(-2px, 0); }
.menu > div { position: absolute; left: 0; right: 0; top: 100%; display: grid; background: var(--board); border-bottom: 1px solid var(--line); padding: 6px var(--gut) 14px; box-shadow: var(--shadow); }
.menu > div a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); box-shadow: none; }
.menu > div a[aria-current="page"] { box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 760px) { .nav ul { display: none; } .menu { display: block; } .nav .acct { margin-left: 8px; } }
.nav .wrap { position: relative; }
.acct { min-height: 44px; }

/* page head */
.pagehead { padding: clamp(28px, 5vw, 72px) 0 clamp(24px, 4vw, 48px); }
.pagehead h1 { font-size: clamp(38px, 5.2vw, 76px); max-width: 15em; }
.pagehead .lead { margin-top: 20px; }
.pagehead .cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--mute); }

.faq-wrap h2 { margin-bottom: 20px; }

/* videos */
.vidgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .vidgrid { grid-template-columns: 1fr; } }
.channel { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 24px; }

/* the room: typing, AI follow-up, richer report */
.typed { margin-top: 18px; }
.typed summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 8px 0; }
.typed textarea { width: 100%; min-height: 110px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 "Mona Sans", sans-serif; padding: 12px 14px; resize: vertical; }
.typed textarea:focus-visible { outline: 3px solid var(--code); }
.followup { margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--c); font-size: 16px; }
.followup span { display: block; font-size: 13px; color: var(--mute); margin-bottom: 2px; }
.clock { font-weight: 700; font-stretch: 85%; font-size: 28px; letter-spacing: -.02em; }
.livebar { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; color: var(--mute); font-size: 14px; }
.scope { margin: 18px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--board); font-size: 15px; }
.weak { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.weak li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--board); border-left: 5px solid var(--c); }
.weak b { display: block; font-size: 16px; }
.weak span { color: var(--mute); font-size: 14px; }
.weak.ok li { border-left-color: var(--go); }
@media (max-width: 560px) { .weak li { grid-template-columns: 1fr; } }
.moves { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.moves li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
.moves .m { flex: none; width: 1.3em; font-weight: 800; }
.moves .hit .m { color: var(--hit); } .moves .miss .m { color: var(--miss); }
.trend { margin-top: 40px; background: var(--paper); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.trend h2 { font-size: 28px; }
.trend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.trend-grid svg { width: 100%; height: 56px; display: block; color: var(--c); }
.trend-grid b { font-size: 24px; font-weight: 760; font-stretch: 85%; }
.trend-grid span { display: block; font-size: 14px; color: var(--mute); }
.trend select { font: inherit; padding: 8px 12px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--paper); color: var(--ink); margin-top: 10px; }
@media (max-width: 760px) { .trend-grid { grid-template-columns: 1fr; } }
.week { margin-top: 18px; font-size: 15px; color: var(--mute); }
.week b { color: var(--ink); }
.toggle .ai-warn { display: block; }
@media (prefers-reduced-motion: reduce) { .door, .pill, .btn { transition: none; } }

/* the room is built by script: stay invisible (not collapsed) until it is, so nothing jumps */
.room.pending > *, .room.pending ~ footer { visibility: hidden; }

@media (max-width: 600px) { .pagehead h1 { font-size: 32px; } }
/* rubric self-score in the report */
.rubric { margin-top: 28px; }
.rubric small { color: var(--mute); font-size: 15px; }
.rubric .checks label { grid-template-columns: 22px 1fr; }
#score-n { margin-left: 10px; font-weight: 650; }
