/* Staff Security Training: a layout used on no other page. A typographic
   hero with fanned lesson cards, a "what would your staff do?" quiz, training
   levels drawn as a staircase, a lined sign-up sheet as the mid-page call to
   action, a captioned photo mosaic, and a closing statement. */

/* Hero: soft red-tinted ground, big title, three fanned lesson cards. */
.st-hero { overflow: hidden; background: linear-gradient(135deg, #fff 0%, #fbf3f5 55%, #f3f5f9 100%); }
.st-hero-inner { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 7rem); }
.sv-page .st-hero h1 { margin: 0 0 1.25rem; font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; }
.st-hero h1 span { display: block; margin-bottom: .75rem; color: var(--accent); font-family: var(--font-accent); font-size: clamp(.9375rem, 1vw, 1.0625rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.st-hero .sv-lead { max-width: 34rem; }
.st-lessons { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.st-lessons li { display: grid; gap: .25rem; padding: 1.25rem 1.5rem; border-left: 5px solid var(--accent); background: #fff; box-shadow: 0 14px 34px rgb(18 22 42 / .1); }
.st-lessons strong { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.st-lessons span { color: var(--muted); }

/* Quiz: one card per situation; main.js turns the options into buttons. */
.st-quiz-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.st-questions { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.st-question { min-width: 0; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--sv-line); border-radius: .75rem; background: #fff; }
.sv-page .st-q-label { margin: 0 0 .5rem; color: var(--accent); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sv-page .st-question h3 { margin-bottom: 1.25rem; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.35; }
.st-options { display: grid; gap: .625rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.st-options li { padding: .75rem 1rem; border: 1px solid var(--sv-line); border-radius: .5rem; background: var(--sv-panel); line-height: 1.45; }
.st-option { display: block; width: 100%; min-height: 48px; padding: .75rem 1rem; border: 2px solid var(--sv-line); border-radius: .5rem; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.45; text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.st-options li:has(.st-option) { padding: 0; border: 0; background: none; }
.st-option:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.st-option[aria-pressed="true"].is-right, .st-answered .st-option.is-right { border-color: #2e7d5b; background: rgb(46 125 91 / .08); font-weight: 700; }
.st-option[aria-pressed="true"]:not(.is-right) { border-color: #8b93a8; background: var(--sv-panel); text-decoration: line-through; text-decoration-color: #8b93a8; }
.st-answer summary { color: var(--accent); font-weight: 700; cursor: pointer; }
.st-answer summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sv-page .st-answer p { margin: .75rem 0 0; padding: 1rem 1.25rem; border-left: 4px solid #2e7d5b; background: rgb(46 125 91 / .07); }

/* Levels as a staircase: each step sits a little higher than the last. */
.st-levels { background: var(--sv-panel); }
.st-levels h2 { max-width: 20ch; }
.st-stairs { display: grid; gap: 1rem; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; }
.st-step { min-width: 0; padding: clamp(1.5rem, 2.5vw, 2rem); border-top: 6px solid var(--muted); background: #fff; }
.st-step:nth-child(2) { border-top-color: #b7425a; }
.st-step:nth-child(3) { border-top-color: var(--accent); }
.st-step-featured { box-shadow: 0 18px 44px rgb(18 22 42 / .12); }
.sv-page .st-step-level { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .5rem; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.st-step-level span { padding: .2rem .6rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; }
.sv-page .st-step-for { margin-bottom: .75rem; color: var(--accent); font-size: 1rem; font-weight: 700; }
.st-step > p:not([class]) { color: var(--muted); }
.st-step ul { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--sv-line); list-style: none; }
.st-step ul li { position: relative; padding-left: 1.25rem; line-height: 1.45; }
.st-step ul li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.sv-page .st-topics { max-width: 60rem; margin: clamp(2rem, 4vw, 3rem) 0 0; color: var(--muted); }
.st-topics b { color: var(--ink); }

/* Mid-page call to action as a lined sign-up sheet. */
.st-sheet { position: relative; max-width: 52rem; margin-inline: auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5.5rem); background: #fff repeating-linear-gradient(180deg, transparent 0 calc(2rem - 1px), #e3e8f2 calc(2rem - 1px) 2rem); box-shadow: 0 18px 44px rgb(18 22 42 / .12); transform: rotate(-.6deg); }
.st-sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(1.75rem, 4.5vw, 3.75rem); width: 2px; background: rgb(203 25 57 / .45); }
.sv-page .st-sheet-label { margin: 0 0 .75rem; color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.st-sheet-actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 1.75rem; }

/* How it works: captioned photo mosaic. */
.st-how h2 { max-width: 20ch; }
.st-mosaic { display: grid; gap: 1rem; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; counter-reset: st-step; }
.st-mosaic li { position: relative; min-height: 18rem; overflow: hidden; border-radius: .75rem; background: var(--sv-ph); counter-increment: st-step; }
.st-mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The wall camera sits at the left edge of the first photo. */
.st-mosaic li:first-child img { object-position: 8% center; }
.st-mosaic-caption { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; padding: 1rem 1.25rem; border-radius: .5rem; background: rgb(255 255 255 / .95); }
.st-mosaic-caption::before { content: "Step " counter(st-step); display: block; margin-bottom: .25rem; color: var(--accent); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sv-page .st-mosaic h3 { margin-bottom: .25rem; font-size: 1.125rem; }
.sv-page .st-mosaic p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* Closing statement. */
.st-final { border-top: 1px solid var(--sv-line); background: #fff; }
.st-final-inner { display: grid; gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: end; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sv-page .st-final h2 { margin: 0; padding-bottom: 1.25rem; font-size: clamp(2.25rem, 4.6vw, 3.75rem); background: linear-gradient(var(--accent), var(--accent)) left bottom / 6rem 6px no-repeat; }
.st-final-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.st-final-call { color: var(--ink); font-weight: 700; text-underline-offset: .2em; white-space: nowrap; }
.st-final-call:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .st-option:not(:disabled):hover { border-color: var(--ink); }
  .st-final-call:hover { color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .st-option { transition: none; }
}
@media (min-width: 48rem) {
  .st-questions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-question { display: flex; flex-direction: column; }
  .st-answer { margin-top: auto; }
  /* Tops step up from left to right, whatever each card's height. */
  .st-stairs { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .st-step:nth-child(1) { margin-top: 5rem; }
  .st-step:nth-child(2) { margin-top: 2.5rem; }
  .st-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .st-hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .st-lessons li:nth-child(1) { transform: rotate(-3deg) translateX(1rem); }
  .st-lessons li:nth-child(2) { transform: rotate(1.5deg) translateX(-.5rem); }
  .st-lessons li:nth-child(3) { transform: rotate(-1deg) translateX(1.5rem); }
  .st-mosaic { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, minmax(16rem, auto)); }
  .st-mosaic li:first-child { grid-row: span 2; }
  .st-mosaic li:last-child { grid-column: 2 / span 2; }
  .st-final-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.sv-page .st-feedback { margin: 0 0 .75rem; font-weight: 700; }
.sv-page .st-feedback:empty { margin: 0; }
