/* ==========================================================================
   vCISO page (/vciso). Builds on e8.css (shared guide layout).
   The self-check counts ticks with CSS counters and :has(), no JavaScript.
   ========================================================================== */

.vc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Duties ------------------------------------------------------------------ */
.vc-duties { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vc-duties article { position: relative; padding: 22px 22px 22px 76px; border-radius: 16px; background: var(--cream); }
.vc-duty-n {
    position: absolute; left: 20px; top: 22px; width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; background: var(--navy); color: var(--cream); font-weight: 700; font-size: 14px;
}
.vc-duties h3 { font-size: 17px; line-height: 1.3; color: var(--ink); }
.vc-duties p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--blue-900); }

/* Self-check -------------------------------------------------------------- */
.vc-check { margin-top: 26px; padding: 28px; border-radius: 22px; background: var(--navy); color: var(--white); }
.vc-check fieldset { border: 0; margin: 0; padding: 0; min-width: 0; counter-reset: ticked; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vc-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vc-in:checked { counter-increment: ticked; }
.vc-item {
    display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
    background: #16293f; color: #d6dee8; font-size: 15px; line-height: 1.5; cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.vc-item:hover { background: #1d3550; }
.vc-box {
    flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; background: #2a3d55;
    display: grid; place-items: center; color: var(--white); font-size: 14px; font-weight: 700;
}
.vc-in:checked + .vc-item { background: var(--cream); color: var(--ink); }
.vc-in:checked + .vc-item .vc-box { background: var(--orange); }
.vc-in:checked + .vc-item .vc-box::before { content: "\2713"; }
.vc-in:focus-visible + .vc-item { outline: 3px solid var(--orange); outline-offset: 2px; }

.vc-result { grid-column: 1 / -1; margin-top: 10px; padding: 20px 22px; border-radius: 14px; background: var(--white); color: var(--ink); }
.vc-score { font-size: 22px; font-weight: 700; }
.vc-count::before { content: counter(ticked); color: #c4541a; font-size: 30px; }
.vc-msg { display: none; margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text); }
.vc-result a { color: var(--blue-600); font-weight: 600; text-underline-offset: 3px; }
.vc-check:not(:has(.vc-in:checked)) .vc-msg--0 { display: block; }
.vc-check:has(.vc-in:checked):not(:has(.vc-in:checked ~ .vc-in:checked ~ .vc-in:checked)) .vc-msg--low { display: block; }
.vc-check:has(.vc-in:checked ~ .vc-in:checked ~ .vc-in:checked) .vc-msg--high { display: block; }
.vc-check:has(.vc-in:checked ~ .vc-in:checked ~ .vc-in:checked) .vc-result { background: var(--orange); color: var(--white); }
.vc-check:has(.vc-in:checked ~ .vc-in:checked ~ .vc-in:checked) .vc-result :is(.vc-msg, a) { color: var(--white); }
.vc-check:has(.vc-in:checked ~ .vc-in:checked ~ .vc-in:checked) .vc-count::before { color: var(--white); }

/* Comparison table -------------------------------------------------------- */
.vc-table-wrap { margin-top: 28px; overflow-x: auto; border-radius: 18px; background: #f4f6f9; }
.vc-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.vc-table th, .vc-table td { padding: 14px 16px; text-align: left; vertical-align: top; }
.vc-table thead th { font-weight: 700; color: var(--slate); background: #e3e8ef; }
.vc-table tbody th { font-weight: 700; color: var(--ink); font-size: 14px; width: 24%; }
.vc-table tbody tr + tr > * { box-shadow: inset 0 1px 0 #e3e8ef; }
.vc-table td { color: var(--slate); }
.vc-table .vc-us { background: var(--white); color: var(--ink); font-weight: 600; }
.vc-table thead .vc-us { background: var(--blue-900); color: var(--white); }

/* First year timeline ----------------------------------------------------- */
.vc-year { list-style: none; padding: 0; margin-top: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; }
.vc-year::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--orange), var(--blue-600)); }
.vc-year > li { position: relative; padding-top: 50px; }
.vc-year > li::before {
    content: ""; position: absolute; top: 8px; left: 0; width: 26px; height: 26px; border-radius: 50%;
    background: var(--white); box-shadow: 0 0 0 5px var(--navy) inset;
}
.vc-when { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #a8470f; }
.vc-year h3 { margin-top: 4px; font-size: 18px; line-height: 1.3; color: var(--ink); }
.vc-year ul { list-style: none; padding: 14px 16px; margin-top: 12px; border-radius: 14px; background: var(--cream); display: grid; gap: 8px; }
.vc-year ul li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.5; color: var(--blue-900); }
.vc-year ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* Obligations ------------------------------------------------------------- */
.vc-obl { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vc-obl article { padding: 22px; border-radius: 16px; background: #f4f6f9; }
.vc-obl article:first-child { background: var(--blue-900); }
.vc-obl article:first-child h3 { color: var(--white); }
.vc-obl article:first-child p { color: #d6e4ee; }
.vc-obl h3 { font-size: 18px; color: var(--ink); }
.vc-obl p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text); }

.page-vciso .e8-not { margin-top: 20px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1060px) {
    .vc-year { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
    .vc-year::before { display: none; }
}
@media (max-width: 640px) {
    .vc-duties, .vc-obl, .vc-check fieldset { grid-template-columns: minmax(0, 1fr); }
    .vc-check { padding: 20px 16px; border-radius: 16px; }
    .vc-year { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .vc-item { transition: none; }
}
