/* ============================================================
   Course Studio — instructor console (Design A2 · SEU)
   Southeastern University · Fire Red on Cool Gray + Black.
   Home: pinned course cards with live manifest stats, the library
   cards, and tools. Subpages: the course index, the lecture deck
   index, the interactives directory.
   Tokens come from tokens.css.
   ============================================================ */

* { box-sizing: border-box; }

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  border-top: 3px solid var(--accent);   /* letterhead rule */
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main,
.masthead,
.colophon {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 8px;
}

.masthead h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 14px;
}
.masthead h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--accent);
}

.masthead-org {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* ---------- Sections ---------- */

section {
  margin: 44px 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-soft);
}

.section-note {
  margin: -8px 0 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* A section head with a link at its far end (Pinned -> All courses). The head keeps
   its rule, which now stops short of the link. */
.section-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}
.section-bar .section-head {
  flex: 1;
  margin: 0;
}
.section-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.section-link:hover { color: var(--accent-deep); }

/* ---------- Pinned course cards (home) ---------- */

#pinned { margin-top: 34px; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* A card is not one <a>: it holds a pin button and resource links, and interactive
   elements cannot nest. The title link's ::after covers the whole card instead, and
   the card's own controls sit above that layer (position + z-index). */
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease;
}
/* First paint only: the grid rebuilt after an unpin must not replay the entrance. */
.course-card--enter {
  animation: card-enter 0.45s ease both;
  animation-delay: var(--enter-delay, 0ms);
}
.course-card:hover {
  border-color: var(--accent);
  background: var(--paper-tint);
}

.course-link {
  text-decoration: none;
}
.course-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
/* The link's own outline would ring only the title text; ring the card it covers. */
@supports selector(:has(*)) {
  .course-link:focus-visible { outline: none; }
  .course-card:has(.course-link:focus-visible) {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}

.course-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.course-eyebrow-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.course-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
}
.course-lock {
  flex: none;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--ink-mute);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip-draft {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid var(--warn-rule);
  border-radius: var(--radius);
  padding: 2px 8px;
}

.course-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

.course-stats {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  min-height: 1.4em;
}
.course-rendered {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-mute);
}

.course-open {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}
.course-open .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.course-card:hover .course-open .arrow {
  transform: translateX(4px);
}

/* The course's own resources: its derived courses (the in-person section) plus
   COURSE_LINKS in app.js, chipped like a deck module's packet link. Each chip -- not
   the row of them -- sits above the stretched link, so the gaps still open the course. */
.course-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}
.course-quick {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 4px 9px;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.course-quick:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Pin button (home cards + course index rows) ---------- */

.pin-btn {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -7px -8px -7px 0;   /* a 32px target without growing the eyebrow's line */
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.pin-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pin-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.pin-btn[aria-pressed="true"] { color: var(--accent); }
/* pinned reads as a filled pin: the head path takes its stroke colour as fill */
.pin-btn[aria-pressed="true"] svg path:last-child { fill: currentColor; }

/* ---------- Nothing pinned ---------- */

.pin-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 26px 28px;
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper-tint);
}
.pin-empty-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pin-empty-copy p { margin: 0; }
.pin-empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.pin-empty-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.pin-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  background: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.pin-empty-action:hover { background: var(--accent-deep); }

@keyframes card-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Library cards (courses / decks / interactives index) ---------- */

.lib-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lib-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  text-decoration: none;
  background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lib-card:hover {
  border-color: var(--accent);
  background: var(--paper-tint);
}

.lib-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.lib-stats {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.lib-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.lib-open {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}
.lib-open .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.lib-card:hover .lib-open .arrow {
  transform: translateX(4px);
}

/* ---------- Back link (library subpages) ---------- */

.backlink {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.15s ease;
}
.backlink:hover { color: var(--accent); }

/* ---------- Course index (courses.html) ---------- */

.course-group { margin-bottom: 30px; }
.course-group:last-child { margin-bottom: 0; }

.course-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

/* A row is the pin button plus the course link -- siblings, for the reason a deck
   row's side links are: a button cannot sit inside a link. */
.course-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
  border-bottom: 1px solid var(--rule-soft);
  border-left: 3px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.course-row:hover {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}
/* a course and the course generated from it read as one entry */
.course-row--parent { border-bottom: 0; }
.course-row .pin-btn { margin: 0; }
.course-row .pin-btn:hover { background: var(--paper); }
.pin-spacer {
  flex: none;
  width: 32px;
}

.course-row-link {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 190px 110px 16px;
  align-items: center;
  gap: 14px;
  padding: 11px 12px 11px 6px;
  text-decoration: none;
}
.course-row--sub .course-row-link { padding-top: 3px; }

.course-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.course-row--sub .course-row-title {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.course-row-branch svg {
  display: block;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.5;
}
.course-row-stats {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.course-row-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.course-row-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  transition: transform 0.15s ease;
}
.course-row:hover .course-row-arrow { transform: translateX(3px); }

/* ---------- Lecture decks ---------- */

.deck-group {
  margin-bottom: 26px;
}
.deck-group:last-child { margin-bottom: 0; }

.deck-module {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;   /* the packet chip drops below the title rather than overflowing on a phone */
  gap: 6px 12px;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.deck-module-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.deck-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 28px;
}

.deck-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 10px;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.deck-link:hover {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.deck-num {
  flex-shrink: 0;
  width: 2.4em;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.deck-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.deck-link:hover .deck-title,
.deck-row:hover .deck-title { color: var(--ink); }

/* The module's printed packet, chipped onto the module heading. Sized like .deck-tag so
   the heading keeps one visual weight, but interactive: it is a link, not a label. */
.deck-packet {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 2px 8px 2px 6px;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.deck-packet svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.deck-packet:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* A deck row is the deck link plus its two side links (lesson page, worksheet PDF).
   The side links sit OUTSIDE .deck-link — nested anchors are invalid HTML — so the
   row is the flex container and .deck-link takes the slack. */
.deck-row {
  display: flex;
  align-items: center;
  min-width: 0;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.deck-row:hover {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}
/* the row now owns the highlight, so the link inside it must not paint a second
   band that stops short of the icons */
.deck-row .deck-link {
  flex: 1;
  min-width: 0;
  border-left: 0;
  border-radius: var(--radius);
}
.deck-row .deck-link:hover { background: none; }

.deck-aside {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 4px;
}
.deck-aside-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  color: var(--ink-mute);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, opacity 0.12s ease;
}
.deck-aside-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.deck-aside-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Reveal on hover only where hovering is possible. On a touch screen — the iPad this
   console is installed on as a home-screen app — there is no hover state to enter, so
   the icons stay visible rather than becoming unreachable. Keyboard focus reveals them
   too, so they are never tab-reachable while invisible. */
@media (hover: hover) and (pointer: fine) {
  .deck-aside-link {
    opacity: 0;
  }
  .deck-row:hover .deck-aside-link,
  .deck-row:focus-within .deck-aside-link {
    opacity: 1;
  }
}

.deck-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 1px 6px;
  white-space: nowrap;
}

/* ---------- Interactives ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.demo-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.demo-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.demo-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.demo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.demo-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Tools ---------- */

.tools-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 14px;
}

.tools-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.tool-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
a.tool-card:hover {
  border-color: var(--accent);
  background: var(--paper-tint);
}
.tool-card--static {
  background: var(--paper-soft);
  border-color: var(--rule-soft);
}

.tool-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
.tool-title .ext { color: var(--accent); }

.tool-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.tool-desc code,
.tools-note code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
  white-space: nowrap;
}

/* ---------- Colophon ---------- */

.colophon {
  margin-top: 56px;
  padding-top: 16px;
  padding-bottom: 28px;
  border-top: 1px solid var(--rule-soft);
}
.colophon p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 28px;
  }
  .course-grid,
  .deck-list,
  .lib-row,
  .tools-row {
    grid-template-columns: 1fr;
  }
  section { margin: 36px 0; }

  /* Sides only: a `padding` shorthand here would zero the masthead's padding-top
     (set just above) and the colophon's padding-bottom, which win by order. */
  main,
  .masthead,
  .colophon { padding-inline: 18px; }

  .masthead h1 { font-size: 25px; }
  .course-card { padding: 20px 20px 18px; }
  .lib-card { padding: 18px 18px 16px; }

  /* Uppercase 11.5px on its own line is a 15px-tall target — give the one
     link that leaves these subpages a thumb-sized box. */
  .backlink {
    padding: 12px 0;
    margin-bottom: 0;
  }

  /* Deck rows are the main thing you tap on decks.html. */
  .deck-link { padding: 11px 10px; }
  .deck-aside-link { width: 38px; height: 38px; }

  /* Pins are tapped: give them a thumb-sized box. */
  .pin-btn { width: 40px; height: 40px; margin: -11px -10px -11px 0; }
  .course-row .pin-btn { margin: 0; }
  .pin-spacer { width: 40px; }
  .pin-empty { padding: 20px; }

  /* Course rows stack: code and arrow, then the title, then stats beside the date. */
  .course-row-link {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "code  arrow"
      "title title"
      "stats date";
    gap: 4px 12px;
    padding: 12px 10px 12px 4px;
  }
  .course-row-link .course-code { grid-area: code; }
  .course-row-title { grid-area: title; }
  .course-row-stats { grid-area: stats; }
  .course-row-date { grid-area: date; }
  .course-row-arrow { grid-area: arrow; justify-self: end; }
  /* a sub-row has no code line to spend: the spacer's indent already nests it */
  .course-row--sub .course-row-link {
    grid-template-areas:
      "title arrow"
      "stats date";
  }
  .course-row--sub .course-row-branch { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .course-card--enter { animation: none; }
  .course-open .arrow,
  .course-row,
  .course-row-arrow,
  .course-quick,
  .pin-btn,
  .pin-empty-action,
  .section-link,
  .deck-link,
  .deck-row,
  .deck-aside-link,
  .deck-packet,
  .demo-card,
  .course-card,
  .lib-card,
  .lib-open .arrow,
  .backlink,
  .tool-card { transition: none; }
}

/* ---------- Home-screen web app (iPadOS) ---------- */
/* viewport-fit=cover runs content under the translucent status bar; pad it back out. */

@media (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top); }
}

/* ===== Passcode gate (standalone course pages) =====
   A curtain, not a lock: the page is served from public GitHub Pages and the
   check runs client-side, so this keeps a draft course out of casual view
   rather than securing anything. Nothing behind it is confidential — answer
   keys are `_`-prefixed and never built (see courses/sdev1003/CLAUDE.md §3).
   Mirrors the viewer's gate in online/online.css so both look the same. */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 19, 21, 0.55);
  backdrop-filter: blur(2px);
}
.gate-overlay[hidden] { display: none; }

.gate-card {
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(17, 19, 21, 0.28);
  padding: 24px 22px;
  text-align: center;
}
.gate-card h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
}
.gate-card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.gate-input {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.gate-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate-submit {
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.gate-submit:hover { background: var(--accent-deep); }
.gate-error {
  margin: 10px 0 0;
  min-height: 1.2em;
  font-size: 13px;
  color: var(--bad);
}
