/* 2027 new-year pages: /first-payroll-2027-checklist/ and /open-enrollment-payroll-runbook/.
   Builds on pay-2027.css, pay-audiences.css and pay-hris.css. Theme variables with light fallbacks, like the other pay-*.css files. */

/* Status badges */
.ye27-final,.ye27-draft{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:2px 8px;border-radius:999px;border:1px solid;white-space:nowrap}
.ye27-final{border-color:var(--pay-color-success-border,#387951);background:var(--pay-color-success-bg,#edf5ef);color:var(--pay-color-success-text,#265d3c)}
.ye27-draft{border-color:var(--pay-color-info-border,#3e789a);background:var(--pay-color-info-bg,#e9f1f7);color:var(--pay-color-info-text,#214f70)}
.ye27-key tbody th{min-width:180px}
.ye27-key td:nth-child(3){white-space:nowrap}

/* Phase navigation and dated checklist */
.ye27-phase-nav{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.ye27-phase-nav a{display:inline-block;padding:6px 10px;border:1px solid var(--pay-color-border,#d3dad8);border-radius:6px;text-decoration:none;font-weight:700;font-size:14px}
.ye27-phase-nav a:hover{background:var(--pay-color-surface-2,#e9f0f3)}
.ye27-phase{scroll-margin-top:90px;margin-top:22px}
.ye27-phase h3{margin:0 0 4px;font:600 22px/1.35 Georgia,serif}
.ye27-when{display:inline-block;vertical-align:middle;margin:0 8px 4px 0;padding:2px 9px;border-radius:4px;border:1px solid var(--pay-color-accent,#935532);background:var(--pay-color-surface-2,#e9f0f3);color:var(--pay-color-text,#172d3c);font:800 12px/1.6 system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase}
.ye27-checklist{list-style:none;padding:0;margin:10px 0 0}
.tech-card .ye27-checklist{padding-left:0}
.tech-card .ye27-checklist li+li{margin-top:0}
.ye27-checklist li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:4px 10px;padding:12px 0;border-top:1px solid var(--pay-color-border,#d3dad8);break-inside:avoid;scroll-margin-top:90px}
.ye27-checklist input{width:20px;height:20px;margin:3px 0 0;accent-color:var(--pay-color-accent,#935532);cursor:pointer}
.ye27-checklist label{cursor:pointer}
.ye27-num{display:inline-block;min-width:1.6em;font-weight:800;color:var(--pay-color-accent,#935532)}
.ye27-checklist p{margin:4px 0 0;font-size:15px}
.ye27-checklist .ye27-links{font-size:14px}
.ye27-print-foot,.ye27-print-head{display:none}
[data-ye27-print][hidden]{display:none}
.ye27-print-btn{font:inherit;font-weight:650;cursor:pointer}

/* Worked examples */
.ye27-why{display:block;font-size:13px;color:var(--pay-color-muted,#52626c);margin-top:2px}
.ye27-bonus td,.ye27-spread td{font-variant-numeric:tabular-nums}
.ye27-bonus{min-width:0}
.ye27-spread{min-width:0}
.ye27-spread tbody th{min-width:200px}
.ye27-tax td:nth-child(2),.ye27-tax td:nth-child(3){min-width:110px}
.ye27-raci{min-width:520px}

/* Employee note */
.ye27-note{border:1px solid var(--pay-color-info-border,#3e789a);border-left-width:6px;background:var(--pay-color-info-bg,#e9f1f7);color:var(--pay-color-info-text,#214f70);border-radius:7px;padding:14px 18px;margin:18px 0 10px;overflow-wrap:anywhere}
.ye27-note h3{margin:0 0 6px;font:600 20px/1.3 Georgia,serif}
.ye27-note p:last-child{margin-bottom:0}

.ye27-phase-nav a:focus-visible,.ye27-print-btn:focus-visible,.ye27-checklist input:focus-visible{outline:3px solid var(--pay-color-focus,#b87942);outline-offset:2px}

@media(max-width:760px){
 .ye27-key tbody th,.ye27-spread tbody th{min-width:0}
 .ye27-key td:nth-child(3){white-space:normal}
 .ye27-phase h3{font-size:20px}
 .ye27-phase h3 .ye27-when{display:table;margin:0 0 6px}
 /* RACI: one card per activity, the three teams side by side */
 .ye27-raci,.ye27-raci tbody,.ye27-raci caption{display:block;min-width:0}
 .ye27-raci thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .ye27-raci tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 8px;border-top:1px solid var(--pay-color-border,#d3dad8);padding:10px 0}
 .pay-ref-table.ye27-raci tbody th{grid-column:1/-1;min-width:0;border:0;padding:0 0 6px;font-size:15px}
 .pay-ref-table.ye27-raci td{display:block;border:0;padding:2px 0;text-align:left}
 .pay-ref-table.ye27-raci td:before{content:attr(data-label);display:block;margin-bottom:3px;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--pay-color-muted,#52626c)}
}

@media print{
 .pay-newsletter-signup,.ye27-noprint,.aud-actions,[data-ye27-print]{display:none!important}
 #checklist,.ye27-check{break-inside:auto}
 .ye27-checklist li{break-inside:avoid}
 .ye27-checklist input{appearance:none;-webkit-appearance:none;width:15px;height:15px;border:1.5px solid #000;border-radius:2px;margin-top:4px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .ye27-note{border-color:#777;background:#fff;color:#000}
 .pay-faq details{break-inside:avoid}
 html.ye27-print-checklist main>*:not(#checklist){display:none!important}
 html.ye27-print-checklist #checklist{border:0;padding:0;margin:0;box-shadow:none}
 html.ye27-print-checklist .ye27-print-foot{display:block;font-size:11px;margin-top:14px}
 html.ye27-print-checklist .ye27-print-head{display:block;font:600 16pt/1.3 Georgia,serif;margin:0 0 6px}
 html.ye27-print-checklist .tech-header,html.ye27-print-checklist .tech-footer,html.ye27-print-checklist .pay-site-topbar,html.ye27-print-checklist .pay-site-sidebar{display:none!important}
 .ye27-checklist .ye27-links a[href^="http"]:after{content:none}
}
