/* deanprep.com/security only, loaded after site.css (security.mjs; derived from sat.css). The exam template in Dean's Security+ rust (SECURITY plan, section 9);
   every other page keeps site.css alone. */
.exam-security {
  --accent: #8f3624;        /* headings and buttons: 8.5:1 on the light ground */
  --accent-ink: #8f3624;
  --on-accent: #ffffff;
  --navy: #7a2e1f;          /* the icon's ground: bands and footer */
  --navy-2: #8f3624;
  --gold: #e3b24f;
  --tint: #fbf1ee;
  --chosen: #f6e3dd;
  --tag-ink: #7a2e1f;
  --close-ink: #f3ddd6;
}
.exam-security .btn.primary { background: #8f3624; }
.exam-security .btn.primary:hover { background: #7a2e1f; }
@media (prefers-color-scheme: dark) {
  .exam-security {
    --accent: #f0a58f;
    --accent-ink: #f0a58f;
    --on-accent: #2e120c;
    --navy-2: #f0a58f;
    --tint: #362622;
    --chosen: #47302a;
    --tag-ink: #f8d5ca;
    --bad: #f2867d;
    --ok: #6cc070;
  }
  .exam-security .btn.primary, .exam-security .btn.primary:hover { background: #a2452f; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hdr, .hdr-in { transition: none; }
}

/* The Dean Prep marks stay navy on light; only this exam's own logo is rust */
.exam-security .hdr .logo .wordmark { color: #1e2a5a; }
@media (prefers-color-scheme: dark) { .exam-security .hdr .logo .wordmark { color: #fff; } }

/* Colours site.css sets for gold, where rust needs white text (and dark text on the lighter rust in dark mode) */
.exam-security .loop li::before { color: var(--on-accent); }
.exam-security .btn.accent { background: var(--gold); color: #1a1406; }
.exam-security .tag { color: var(--tag-ink); }
.exam-security .opt.chosen { border-color: var(--accent); background: var(--chosen); }
.exam-security .price.main { border-color: var(--accent); }
.exam-security .eyebrow { color: var(--accent-ink); }
.exam-security .proof .n { color: var(--accent); }
.exam-security .feature .ic svg { display: block; }
.exam-security .table-wrap:focus-visible { outline-color: var(--accent); }

/* Hero: the sign-up has to fit on a laptop's first screen, and the demo stays put as its panes grow */
.exam-security .hero { align-items: start; }
.exam-security .hero h1 { font-size: clamp(34px, 1.6rem + 2.2vw, 72px); max-width: 18ch; }
.sec-logo { height: clamp(34px, 3vw, 48px); width: auto; margin-bottom: 18px; }
.exam-security .hero h1 span { display: block; }
.exam-security .hero h1 span[hidden] { display: none; }
.sec-mark { font-size: .85em; color: var(--muted); max-width: 68ch; margin: 0; }
html:not(.js) .exam-security .aud { display: none; }

/* Sign-up form: email and button on a line where they fit, the age confirmation below */
html:not(.js) .sec-notify { display: none; }
.sec-notify { align-items: flex-start; max-width: 620px; }
.sec-field { flex: 1 1 240px; min-width: 0; display: grid; gap: 4px; }
.sec-field label { font-weight: 600; font-size: .92em; }
.sec-notify .sec-field input { width: 100%; flex: none; }
.sec-notify .btn { margin-top: calc(1.6em * .92 + 4px); }
.sec-notify input[aria-invalid="true"] { border-color: var(--bad); }
.sec-age { flex: 1 1 100%; }
.sec-age label { display: flex; gap: 10px; align-items: flex-start; font-size: .95em; cursor: pointer; padding-block: 4px; }
.sec-age input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; accent-color: var(--accent); }
.sec-notify .sec-err { min-height: 0; font-size: .92em; font-weight: 600; }
.sec-notify .sec-err:empty { display: none; }
.sec-sent, .sec-confirmed { flex: 1 1 100%; margin: 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 12%, var(--white)); font-weight: 600; }
.sec-confirmed { margin-top: 12px; }
@media (max-width: 599px) { .sec-notify .btn { margin-top: 0; width: 100%; order: 3; } .sec-age { order: 2; } }

/* The demo */
.sec-meta { font-size: .85em; margin-bottom: .5em; }
.sec-demo-h { font-size: clamp(22px, 5cqi, 34px); margin-bottom: .5em; }
.sec-demo-h:focus, .sec-back-h:focus, .verdict:focus { outline: none; }
.sec-wrong { font-size: clamp(18px, 3.8cqi, 24px); line-height: 1.45; padding: 12px 14px; border-left: 4px solid var(--bad); background: var(--tint); border-radius: 0 10px 10px 0; }
.sec-back-h { font-size: 1.08em; line-height: 1.35; margin-bottom: .5em; }
.sec-back p:last-child { margin-bottom: 0; }
.sec-text { font-size: clamp(16px, 2.8cqi, 19px); line-height: 1.6; }
.sec-text + .sec-text { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sec-text p { margin: 0 0 .6em; }
.sec-text p:last-child { margin-bottom: 0; }
.sec-text u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sec-label { font-weight: 700; }
.sec-blank { white-space: nowrap; letter-spacing: -.02em; }
.sec-notes { margin: 0; padding-left: 1.2em; font-size: clamp(16px, 2.8cqi, 19px); line-height: 1.55; }
.sec-prompt { font-weight: 650; margin: 12px 0 0; }
.sec-opts { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; min-width: 0; }
.sec-opts legend { padding: 0; }
.sec-opts .opt { display: flex; gap: 10px; align-items: center; }
.sec-opts input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.sec-letter { font-weight: 700; color: var(--muted); }
.sec-opts .opt:has(input:disabled) { cursor: default; }
.exam-security .verdict p { margin: 0 0 .6em; }
.exam-security .verdict p:last-child { margin-bottom: 0; }
.exam-security .demo .row .btn { min-width: 0; }

/* Samples from the free set */
.sec-sample .sec-text { font-size: 1em; }
.sample .sec-choices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.sec-answer { margin-top: 12px; font-size: .95em; }
.sec-answer summary { cursor: pointer; font-weight: 650; min-height: 32px; }
.sec-answer p { margin: 8px 0 0; }
.sec-small { font-size: .9em; margin: 20px 0 0; max-width: 90ch; }
.sec-off { margin: auto 0 0; padding-top: 8px; }
.sec-after-faq { margin-top: 20px; }

/* The closing band: the form on deep plum */
.sec-close { background: var(--navy); }
.sec-close .sec-field label, .sec-close .sec-age label { color: #fff; }
.sec-close .sec-notify input[type="email"] { background: #fff; color: #1f2430; border-color: #fff; }
.sec-close .sec-err { color: #ffdcd7; }
.sec-close .sec-age input { accent-color: var(--gold); }
.sec-close .sec-sent { background: rgba(255, 255, 255, .14); color: #fff; }
.sec-close .notify-note { color: var(--close-ink); }
.sec-close a { color: #fff; }
.exam-security .foot .marks { color: #f3ddd6; }

/* Security+ only: the evidence panel (a log, email or config as monospaced lines) and multiple-response options */
.sec-evidence { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); overflow: hidden; }
.sec-evidence .sec-ev-h { margin: 0; padding: 8px 12px; font-size: .85em; font-weight: 700; border-bottom: 1px solid var(--line); }
.sec-evidence .sec-ev-kind { text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-right: 6px; }
.sec-evidence pre { margin: 0; padding: 10px 12px; font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.sec-instruction { font-weight: 700; margin: 8px 0 0; }
.sec-objective { font-size: .9em; }
.sec-domains-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.sec-domains-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.sec-domains-list .w { font-weight: 800; color: var(--accent-ink); }
.sec-domains-list p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .92em; }
.sec-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.sec-steps li { counter-increment: s; padding-left: 40px; position: relative; }
.sec-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: .9em; }

/* Product screens under the walkthrough: two phones and a laptop, wrapping on narrow screens */
.exam-security .sec-shots { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-start; margin-top: 28px; }
.exam-security .sec-shots .shot.phone { width: min(240px, 44%); height: auto; }
.exam-security .sec-shots .shot:not(.phone) { width: min(560px, 100%); height: auto; }

/* /security-questions/: one question per page, and the list by domain */
.exam-security .sec-qpage .crumbs { font-size: .9rem; margin: 0 0 12px; }
.exam-security .sec-qpage .crumbs a { color: inherit; }
.exam-security .sec-qnav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 24px 0 12px; }
.exam-security .sec-qlist { padding-left: 2.2em; margin: 0 0 28px; max-width: 80ch; }
.exam-security .sec-qlist li { margin: 0 0 10px; line-height: 1.45; }
.exam-security .sec-qlist .muted { font-size: .85rem; white-space: nowrap; }

/* Table evidence (security.mjs evTable): a real table that scrolls sideways inside its box on narrow screens */
.exam-security .sec-table-wrap { overflow-x: auto; }
.exam-security .sec-table { border-collapse: collapse; width: 100%; font-size: .9em; }
.exam-security .sec-table caption { text-align: left; padding: 8px 12px 4px; color: var(--muted); font-size: .92em; }
.exam-security .sec-table th, .exam-security .sec-table td { text-align: left; vertical-align: top; padding: 6px 12px; border-top: 1px solid var(--line); }
.exam-security .sec-table thead th { font-weight: 700; }
.exam-security .sec-table tbody th { font-weight: 600; }

/* Table evidence (security.mjs evTable): a real table that scrolls sideways inside its box on narrow screens */
.exam-security .sec-table-wrap { overflow-x: auto; }
.exam-security .sec-table { border-collapse: collapse; width: 100%; font-size: .9em; }
.exam-security .sec-table caption { text-align: left; padding: 8px 12px 4px; color: var(--muted); font-size: .92em; }
.exam-security .sec-table th, .exam-security .sec-table td { text-align: left; vertical-align: top; padding: 6px 12px; border-top: 1px solid var(--line); }
.exam-security .sec-table thead th { font-weight: 700; }
.exam-security .sec-table tbody th { font-weight: 600; }
