/* Cyber Comparison Tool (cysecin.com/compare). Layers on styles.css and v2.css, the same form as /assess: tokens only,
   plus #C9D6EC, the light navy the form already uses. No text on orange anywhere on this page. */

/* the hero line is longer than the other Secure pages' */
.page-compare .ph h1 { max-width: 19ch; font-size: clamp(40px, 5.2vw, 84px); }

/* questions */
.cmp-q .cmp-note { margin: -14px 0 16px; font-size: 12.5px; color: var(--slate); }
.cmp-o { display: grid; gap: 2px; min-width: 0; }
.cmp-o > span { font-weight: 500; line-height: 1.3; }
.cmp-o small { font-size: 12.5px; line-height: 1.4; color: var(--slate); }
.cmp-o small.cmp-c { font-family: var(--mono); font-size: 11px; color: var(--slate); }
.as-opts.cmp-two { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) { .as-opts.cmp-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* start: the circle of what is compared */
.cmp-welcome { gap: 14px; }
.cmp-welcome h3 { text-wrap: balance; }
.cmp-wrap .as-cats a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.cmp-wrap .as-cats a:hover { color: var(--orange-deep); text-decoration-color: currentColor; }
.cmp-dial { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; width: 100%; max-width: 640px; margin: 0 auto 6px; text-align: left; }
.cmp-donut { margin: 0; width: 200px; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.cmp-donut:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.cmp-donut svg { display: block; width: 100%; height: auto; overflow: visible; }
.cmp-donut path { fill: none; stroke-width: 26; transition: stroke var(--t-fast); }
.cmp-donut path.d { stroke: var(--navy); }
.cmp-donut path.r { stroke: #C9D6EC; }
.cmp-donut .cmp-sl.on path.d { stroke: var(--orange-deep); }
.cmp-donut .cmp-sl.on path.r { stroke: var(--orange-soft); }
.cmp-donut text.big { font-family: var(--serif); font-weight: 400; font-size: 46px; fill: var(--charcoal); }
.cmp-donut text.sm { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; fill: var(--slate-2); }
.cmp-side { display: grid; gap: 12px; min-width: 0; }
.cmp-views button { font-size: 12.5px; }
.cmp-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cmp-leg li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 36px; gap: 10px; align-items: center; padding: 2px 0; font-family: var(--sans); font-size: 12.5px; line-height: 1.3; color: var(--slate); }
.cmp-leg li i { display: block; height: 6px; background: #C9D6EC; }
.cmp-leg li i em { display: block; height: 100%; background: var(--navy); }
.cmp-leg li b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-align: right; color: var(--charcoal); }
.cmp-leg li.on span { color: var(--charcoal); font-weight: 600; }
.cmp-leg li.on i { background: var(--orange-soft); }
.cmp-leg li.on i em { background: var(--orange-deep); }
.cmp-leg li.cmp-lmore { display: block; font-family: var(--mono); font-size: 11px; color: var(--slate-2); }

/* the answer */
.cmp-ph { display: none; }
.cmp-result > h4 { margin-top: 30px; }
.cmp-result > .cmp-score + h4 { margin-top: 6px; }
.cmp-result a:not(.btn) { color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.cmp-result a:not(.btn):hover { color: var(--orange-deep); text-decoration-color: currentColor; }
.cmp-result a.btn-primary { color: #fff; }
.cmp-result a.cmp-src { font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--orange-deep); text-decoration: none; white-space: nowrap; margin-left: 2px; }
.cmp-result a.cmp-src:hover { text-decoration: underline; }
.cmp-mk { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--slate-2); }
.cmp-recs li { align-items: start; }
.cmp-n { width: 30px; height: 30px; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--mono); font-size: 12px; }
.cmp-recs p { margin-top: 3px; line-height: 1.5; }
.cmp-how { margin-top: -8px; font-size: 12px; line-height: 1.55; }
.cmp-key { margin: 0 0 12px; }
.cmp-key b { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.cmp-key b i { margin: 0; }
.cmp-om, .cmp-km { display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: 1px; flex: none; }
.cmp-om { background: var(--navy); }
.cmp-km { border: 1.5px solid var(--navy); }

/* each option: its name, the reasons with their sources, then what to watch */
.cmp-opt .as-fw-h { align-items: flex-start; }
.cmp-opt .as-fw-h b { line-height: 1.4; }
.cmp-opt .as-fw-h b .cmp-mk { display: inline-block; }
.cmp-lb { flex: none; font-style: normal; font-family: var(--mono); font-size: 10px !important; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--orange-deep) !important; border: 1px solid var(--orange-soft); padding: 2px 7px; }
.cmp-opt.lead { background: var(--paper-2); border-left: 3px solid var(--orange); padding: 14px 14px 14px 16px; margin: 6px 0; border-bottom-color: transparent; }
.cmp-rs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.cmp-rs li { position: relative; padding-left: 14px; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--slate); }
.cmp-rs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--navy); }
.cmp-wo li::before { background: var(--crimson); }
.cmp-woh { margin: 8px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); }
.cmp-cf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.cmp-cf .as-type { margin-left: 0; }
.cmp-pick { padding: 6px 12px; }
.cmp-pick[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.cmp-pick:focus-visible, .cmp-more button:focus-visible, .cmp-scroll:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.cmp-more { margin: 10px 0 0; }
.cmp-also { margin: 10px 0 0; font-family: var(--sans); font-size: 13px; line-height: 1.75; color: var(--slate); }
.cmp-also > span:first-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-2); margin-right: 4px; }
.cmp-also .as-redo { font-size: 12.5px; padding: 0; }
.cmp-ln { overflow-wrap: anywhere; }

/* side by side */
.cmp-f0 { margin-top: -4px; font-size: 12px; }
.cmp-bar { margin: 10px 0; }
.cmp-bar label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 13px; color: var(--slate); cursor: pointer; }
.cmp-bar input { accent-color: var(--navy); margin: 0; }
.cmp-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.cmp-sbs { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--charcoal); }
.cmp-sbs th, .cmp-sbs td { min-width: 126px; padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); background: #fff; }
.cmp-sbs thead th { font-weight: 600; border-bottom: 2px solid var(--charcoal); }
.cmp-sbs thead .cmp-mk { display: block; margin-top: 2px; }
.cmp-sbs .stick { position: sticky; left: 0; z-index: 1; min-width: 120px; max-width: 170px; font-size: 12.5px; font-weight: 600; box-shadow: 1px 0 0 var(--line); }
.cmp-sbs tr.grp th, .cmp-sbs tr.grp td { background: var(--paper-3); padding: 6px 12px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.cmp-sbs tr.grp .as-redo { font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: none; padding: 0; }
.cmp-sbs tr.lead td { background: var(--paper); }
.cmp-sbs .cmp-rs li { font-size: 12.5px; }
.cmp-sbs .cmp-km { margin-right: 4px; }
.cmp-none { color: var(--slate-2); font-size: 12.5px; }
.cmp-only { display: block; margin-top: 3px; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-deep); }

/* tablets and phones: one column that never grows past the screen; wide tables scroll inside their own box */
.cmp-panel { min-width: 0; }
@media (max-width: 900px) { .as-wrap.cmp-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .cmp-dial { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; }
  .cmp-donut { width: 180px; }
  .cmp-side { width: 100%; }
  .cmp-leg li { grid-template-columns: minmax(0, 1fr) 48px 34px; }
  .cmp-opt .as-fw-h { flex-direction: column; gap: 6px; }
  .cmp-sbs th, .cmp-sbs td { min-width: 128px; }
  .cmp-sbs .stick { min-width: 108px; max-width: 128px; }
}

/* Save as PDF: the answer alone, every option and row open */
@media print {
  body.as-print.page-compare > :is(#main, main) { display: block !important; padding: 0 !important; margin: 0 !important; }
  body.as-print.page-compare :is(#main, main) > :not(#assess) { display: none !important; }
  body.as-print .cmp-ph { display: block; margin: 14px 0; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--slate); }
  body.as-print .cmp-result .as-export, body.as-print .cmp-ai, body.as-print .cmp-pick, body.as-print .cmp-more, body.as-print .cmp-bar, body.as-print .cmp-f0, body.as-print .cmp-result .as-redo { display: none !important; }
  body.as-print .cmp-scroll { overflow: visible !important; border: 0 !important; }
  body.as-print .cmp-sbs { font-size: 10.5px; }
  body.as-print .cmp-sbs th, body.as-print .cmp-sbs td { min-width: 0 !important; padding: 5px 6px; }
  body.as-print .cmp-sbs .stick { position: static !important; box-shadow: none; }
  body.as-print .cmp-opt, body.as-print .cmp-sbs tr, body.as-print .cmp-recs li { break-inside: avoid; }
  body.as-print .cmp-n, body.as-print .cmp-om, body.as-print .cmp-opt.lead, body.as-print .cmp-sbs tr.grp th, body.as-print .cmp-sbs tr.grp td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.as-print .cmp-result a.cmp-src { color: var(--orange-deep); }
}

/* On phones the site's mobile.css makes .as-wrap a column and v2.css aligns it to the start, so the panel took the width of its widest content
   (the table, 680 px on a 390 px screen). The panel is as wide as the screen and the table scrolls inside its own box (added 2026-11-20). */
@media (max-width: 900px) {
  html:root .as-wrap.cmp-wrap { align-items: stretch !important; }
  html:root .cmp-wrap > .as-panel { width: 100%; max-width: 100%; box-sizing: border-box; }
}
