/* Ping My Lab - FortiGate masterclass resources (/masterclass).
   Loads after css/premium.css: the hero, the form card (the page's one live edge), the survey's option rows and the
   success panel. Tokens only: every colour is a var(--...) from site.css or premium.css. */

/* ---------- page and layout ---------- */
.mc-page { position: relative; isolation: isolate; overflow-x: clip; }
.mc-hero { padding-bottom: clamp(72px, 9vw, 128px); }
.mc-hero::after { background: radial-gradient(50% 55% at 82% 4%, var(--pr-glow-teal), transparent 70%), radial-gradient(40% 40% at 6% 60%, var(--pr-glow-blue), transparent 70%); }
/* On a phone the form follows the headline at once and "Inside the guided lab" comes after it. From 980px the intro and
   that list stack on the left, beside the card. */
.mc-hero .hero-grid { align-items: start; gap: 34px; }
@media (min-width: 980px) {
  .mc-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
    grid-template-areas: "intro card" "inside card";
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 5vw, 80px);
    row-gap: 0;
  }
  .mc-intro { grid-area: intro; }
  .mc-card { grid-area: card; }
  .mc-inside { grid-area: inside; }
}

/* ---------- intro (left) ---------- */
.mc-h1 { margin: 0 0 24px; font-size: var(--fs-page); line-height: .98; letter-spacing: -.048em; max-width: 8.424em; }
.mc-intro .pr-lead { margin-bottom: 0; }
.mc-intro .pr-lead em { color: var(--ink); font-style: normal; font-weight: 600; }

/* What the guided lab builds: four rows on hairlines, each with its own mark. */
.mc-inside .pr-kicker { margin-bottom: 16px; }
.mc-feats { list-style: none; margin: 0; padding: 0; display: grid; max-width: 640px; border-top: 1px solid var(--pr-hair-2); }
.mc-feats li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--pr-hair); color: var(--ink); line-height: 1.5; text-wrap: pretty; }
.mc-feat-i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--pr-hair-teal); border-radius: 12px; background: linear-gradient(180deg, var(--pr-wash-teal-2), var(--pr-panel)); color: var(--teal); }
.mc-feat-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mc-inside .hero-note { max-width: 56ch; margin-top: 18px; }
@media (min-width: 980px) {
  .mc-inside { margin-top: 40px; }
}
/* Wide screens: once the headline scrolls away, the list stays beside the form until the form ends (its grid area runs
   the card's full height), so the left side never goes blank. Only where the whole list fits on the screen. */
@media (min-width: 980px) and (min-height: 700px) {
  /* site.css gives .hero overflow: hidden, which makes the hero the list's scroller and stops sticky; clip cuts the
     glows the same way without that (a browser without clip keeps hidden and simply does not stick). */
  .mc-hero { overflow: clip; }
  .mc-inside { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- the card (right) ---------- */
.mc-card { padding: clamp(22px, 3vw, 32px); border-color: var(--pr-hair-2); box-shadow: var(--pr-lift-2), 0 0 120px -50px var(--pr-glow-teal-2); }
.mc-card > :not(.pr-live-ring) { position: relative; z-index: 1; }
.mc-card > h2 { font-size: 1.5rem; letter-spacing: -.022em; margin-bottom: 6px; }
.mc-card > h2:focus { outline: none; }
.mc-sub { margin: 0 0 22px; color: var(--ink-2); font-size: .9375rem; }
.mc-card .notice, .mc-card .mc-done { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--pr-hair); }
.mc-card > form { margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--pr-hair); }

/* A group of choices: a fieldset with a legend, and option rows as big as a thumb. */
.mc-group { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.mc-group legend { display: block; width: 100%; padding: 0; margin: 0 0 8px; color: var(--ink); font-weight: 600; font-size: .9375rem; line-height: 1.45; }
.mc-group .hint { margin: -2px 0 10px; font-size: .875rem; color: var(--ink-3); }
.mc-opts { display: grid; gap: 8px; }
.mc-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.mc-seg-2 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.mc-opt { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--field-bg); color: var(--ink); font-size: .9375rem; line-height: 1.35; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .2s ease; }
.mc-opt:hover { border-color: var(--field-line-hover); }
.mc-opt:has(input:checked) { border-color: var(--teal); background: var(--pr-wash-teal); box-shadow: 0 0 0 3px var(--pr-wash-teal); }
.mc-opt:has(input:focus-visible) { outline: 2px solid var(--pr-focus); outline-offset: 2px; }
.mc-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.mc-opt input:focus-visible { outline: none; }
.mc-seg .mc-opt { gap: 8px; padding: 10px 10px 10px 12px; }
.mc-group legend .opt { color: var(--ink-3); font-weight: 400; }

/* The consent box sits under the questions, apart from them. */
.mc-card .check { margin: 4px 0 6px; padding-top: 18px; border-top: 1px solid var(--pr-hair); }
.mc-consent-err { margin: 0 0 10px; font-size: .875rem; color: var(--err); }
.mc-card form .btn-block { margin-top: 16px; }

/* ---------- success panel ---------- */
.mc-actions { display: grid; gap: 12px; }
.mc-wait { margin: 0; padding: 14px 16px; border: 1px dashed var(--pr-hair-3); border-radius: 12px; background: var(--pr-panel-lo); color: var(--ink-2); font-size: .9375rem; }
.mc-deeper { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--pr-hair); }
.mc-deeper h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.mc-deeper p { margin: 0 0 14px; color: var(--ink-2); font-size: .9375rem; }
.mc-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }

/* Header: two gaps in the shared bar that tools/courses/test.js catches (they fail on this branch's base too). These
   are the same rules css/premium.css has on premium-site (from 9e08431): remove this copy once that lands here.
   The "New" pair (PAN-OS 12.1, FortiOS 7.6): 5 px padding + the 1 px border = the other links' 6 px, so every link in
   the bar has the same box. From 1025 to 1180 px the pair is a little tighter, without its LED, so the bar keeps one
   line (it ran 7 px past the screen). */
.nav-links a.nav-new { padding-top: 5px; padding-bottom: 5px; }
@media (min-width: 1025px) and (max-width: 1180px) {
  .nav-links { --pr-nav-gap: .9rem; }
  .nav-links a.nav-new { padding-left: 9px; padding-right: 9px; }
  .nav-links a.nav-start + a.nav-new::before { display: none; }
}
