/* Snap Staffing - Resources section styles.
   Additive only: loads AFTER /assets/site.css and reuses its tokens
   (--bg, --panel, --hair, --gold, --display, --body, --mono ...).
   Upload once to /assets/resources.css. Bump ?v= when it changes. */

/* hero meta line under the H1 */
.res-meta{display:flex;flex-wrap:wrap;align-items:center;column-gap:1.2rem;row-gap:.6rem;font-family:var(--mono);font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--text-3);overflow:hidden}
.res-meta span{display:inline-flex;align-items:center;gap:.6rem;position:relative}
.res-meta span + span::before{content:"";position:absolute;left:-.6rem;top:50%;transform:translate(-50%,-50%);width:1px;height:12px;background:var(--hair-2)}
.res-meta .tag{color:var(--gold)}

/* article layout: body + sticky aside */
.res-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:clamp(2rem,5vw,4.5rem);align-items:start}
@media (max-width:980px){.res-layout{grid-template-columns:1fr}}
.res-aside{position:sticky;top:112px;display:grid;gap:1.2rem}
@media (max-width:980px){.res-aside{position:static}}
.res-toc{border:1px solid var(--hair);border-radius:3px;padding:1.3rem 1.4rem;background:var(--bg-2);display:grid;gap:.8rem}
.res-toc ol{list-style:none;margin:0;padding:0;display:grid;gap:.15rem;counter-reset:toc}
.res-toc li{counter-increment:toc}
.res-toc a{display:grid;grid-template-columns:1.9rem 1fr;gap:.2rem;padding:.42rem 0;color:var(--text-2);text-decoration:none;font-size:.93rem;line-height:1.4;transition:color .25s}
.res-toc a::before{content:counter(toc,decimal-leading-zero);font-family:var(--mono);font-size:.7rem;letter-spacing:.12em;color:var(--gold);padding-top:.18rem}
.res-toc a:hover{color:var(--text)}
@media (max-width:980px){.res-toc-wrap{display:none}}
.res-aside .appt{gap:.9rem;padding:1.5rem}
.res-aside .appt h2{font-size:1.3rem}
.res-aside .appt .btn,.res-aside .appt .btn-line{width:100%;padding-inline:1rem}

/* long-form body: extends .doc from site.css */
.res-body{max-width:720px;gap:1.15rem}
.res-body > h2{font-size:clamp(1.45rem,2.3vw,1.9rem);font-weight:300;letter-spacing:-.03em;margin-top:2.2rem;color:var(--text);scroll-margin-top:110px}
.res-body > h2:first-child{margin-top:0}
.res-body h3{font-size:1.15rem;font-weight:400;letter-spacing:-.015em;margin-top:1rem;color:var(--text)}
.res-body p,.res-body li{line-height:1.75}
.res-body strong{color:var(--text);font-weight:600}
.res-body ol{padding-left:1.4rem;display:grid;gap:.5rem;color:var(--text-2)}
.res-body ol li::marker{color:var(--gold);font-family:var(--mono);font-size:.85em}
.res-body ul li::marker{color:var(--gold)}

/* short-answer box (the AEO block): extends .terms-note */
.res-short{border-left:2px solid var(--gold);background:linear-gradient(90deg,var(--gold-dim),transparent 75%),var(--bg-2);max-width:720px}
.res-short .eyebrow{font-size:.66rem}
.res-short p{color:var(--text);font-size:1.04rem;line-height:1.7}

/* tables */
.res-table-wrap{overflow-x:auto;border:1px solid var(--hair);border-radius:3px;margin-block:.4rem}
.res-table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:560px}
.res-table caption{caption-side:top;text-align:left;padding:.9rem 1rem;font-family:var(--mono);font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);border-bottom:1px solid var(--hair)}
.res-table th,.res-table td{padding:.8rem 1rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--hair)}
.res-table thead th{font-family:var(--mono);font-weight:400;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);background:var(--panel)}
.res-table tbody th{font-weight:500;color:var(--text)}
.res-table td{color:var(--text-2)}
.res-table tr:last-child th,.res-table tr:last-child td{border-bottom:0}
/* Under ~640px, stack each row so tables don't scroll sideways (Morla, Nov 24).
   Row heading stays a heading; other cells use data-label as a gold mono label. */
@media (max-width:640px){
  .res-table-wrap{overflow:visible}
  .res-table{min-width:0}
  .res-table thead{display:none}
  .res-table,.res-table tbody,.res-table tr,.res-table th,.res-table td,.res-table caption{display:block;width:auto}
  .res-table tbody tr{padding:.9rem 1rem;border-bottom:1px solid var(--hair)}
  .res-table tbody tr:last-child{border-bottom:0}
  .res-table tbody th,.res-table tbody td{border-bottom:0;padding:.2rem 0}
  .res-table tbody th{padding-top:0;padding-bottom:.45rem;font-size:1.05rem;font-weight:500;letter-spacing:-.015em;color:var(--text)}
  .res-table tbody td + td{padding-top:.55rem}
  .res-table tbody td::before{content:attr(data-label);display:block;margin-bottom:.2rem;font-family:var(--mono);font-weight:400;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
  .res-table tbody td:not([data-label])::before,
  .res-table tbody td[data-label=""]::before{content:none;margin:0}
}

/* checklist (printable) */
.res-check{list-style:none!important;padding:0!important;display:grid;gap:0!important;border-top:1px solid var(--hair)}
.res-check li{display:grid;grid-template-columns:22px 1fr;gap:.9rem;align-items:start;padding:.85rem 0;border-bottom:1px solid var(--hair);color:var(--text-2)}
.res-check li::before{content:"";width:16px;height:16px;margin-top:.3rem;border:1px solid var(--gold);border-radius:2px;background:var(--gold-dim)}
.res-check li strong{display:block;margin-bottom:.1rem}

/* two-column "person / AI agent" panels */
.res-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--hair);border:1px solid var(--hair);border-radius:3px;margin-block:.4rem}
@media (max-width:640px){.res-split{grid-template-columns:1fr}}
.res-split > div{background:var(--bg);padding:1.4rem 1.5rem;display:grid;gap:.8rem;align-content:start}
.res-split h3{margin-top:0;font-size:1.08rem}
.res-split .mini-list li{font-size:.95rem}

/* resources index cards */
.res-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:clamp(1rem,2vw,1.5rem);margin-top:clamp(1.6rem,3vw,2.4rem)}
.res-card{position:relative;display:grid;gap:1rem;align-content:start;padding:clamp(1.5rem,2.6vw,2.1rem);border:1px solid var(--hair);border-radius:3px;background:linear-gradient(180deg,var(--panel-2),var(--panel));text-decoration:none;color:inherit;transition:border-color .4s var(--ease),transform .4s var(--ease)}
.res-card::before{content:"";position:absolute;inset:0 0 auto 0;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);opacity:.6}
.res-card:hover{border-color:rgb(201 166 107 / .38);transform:translateY(-3px)}
.res-card h3{font-size:clamp(1.2rem,1.8vw,1.45rem);font-weight:400;letter-spacing:-.02em;line-height:1.2}
.res-card p{color:var(--text-2);font-size:.97rem}
.res-card .link-more{justify-self:start;margin-top:.3rem}
.res-card-text{display:grid;gap:1rem;align-content:start}
.res-card .res-meta .tag{letter-spacing:.16em}
/* one resource only: full-width featured card, text left, button right; stacks on phones */
.res-grid.one{grid-template-columns:minmax(0,1fr)}
.res-card.feat{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1.5rem clamp(2rem,5vw,4rem);padding:clamp(1.8rem,3.4vw,2.8rem)}
.res-card.feat h3{font-size:clamp(1.45rem,2.4vw,2rem);font-weight:300;letter-spacing:-.03em;max-width:28ch}
.res-card.feat p{max-width:62ch}
.res-card.feat .btn-line{white-space:nowrap}
.res-card.feat:hover .btn-line{border-color:var(--gold);color:var(--gold-2);background:var(--gold-dim)}
@media (max-width:760px){.res-card.feat{grid-template-columns:1fr}.res-card.feat .btn-line{justify-self:stretch;white-space:normal}}
@media (prefers-reduced-motion:reduce){.res-card{transition:none}.res-card:hover{transform:none}}

/* free tools: simple calculator form, reuses .fld from site.css */
.res-tool{border:1px solid var(--hair);border-radius:3px;background:var(--bg-2);padding:clamp(1.4rem,2.8vw,2.2rem);display:grid;gap:1.2rem;max-width:720px}
.res-tool .row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.15rem}
@media (max-width:560px){.res-tool .row2{grid-template-columns:1fr}}
.res-out{border-top:1px solid var(--hair);padding-top:1.1rem;display:grid;gap:.4rem}
.res-out output{font-family:var(--display);font-size:clamp(1.4rem,2.4vw,1.9rem);font-weight:300;color:var(--gold-2)}

/* VA vs in-house cost calculator results. Scoped to #cost-calc so other
   resource pages and any future .res-tool forms are unchanged. */
#cost-calc .cc-results{background:var(--panel);border-top:1px solid var(--gold);padding:1.25rem 1.3rem 1.15rem;display:grid;gap:.9rem}
#cost-calc .cc-results-cols{display:grid;grid-template-columns:1fr 1fr;align-items:start}
#cost-calc .cc-result{min-width:0;padding-right:1.2rem}
#cost-calc .cc-result + .cc-result{border-left:1px solid var(--hair);padding-left:1.2rem;padding-right:0}
#cost-calc .cc-result-label{margin:0;font-family:var(--mono);font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--text-3);white-space:nowrap}
#cost-calc .cc-results output{display:block;margin:0.2rem 0 0;font-family:var(--display);font-size:42px;font-weight:300;line-height:1.12;letter-spacing:-.03em;color:var(--text);font-variant-numeric:tabular-nums}
#cost-calc .cc-results output.is-empty{color:var(--text-3)}
#cost-calc .cc-month{margin:.2rem 0 0;font-size:.85rem;line-height:1.3;color:var(--text-3);font-variant-numeric:tabular-nums}
#cost-calc .cc-month.is-empty{visibility:hidden}
#cost-calc .cc-diff{margin:0;color:var(--gold);font-family:var(--display);font-weight:400;font-size:1.05rem;line-height:1.4;letter-spacing:-.01em}
#cost-calc .cc-note{margin:0;color:var(--text-3);font-size:.95rem;line-height:1.5}
#cost-calc .cc-clear{margin:0}
#cost-calc .cc-clear-link{appearance:none;-webkit-appearance:none;background:none;border:0;padding:0;margin:0;font-family:var(--mono);font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--text-3);cursor:pointer}
#cost-calc .cc-clear-link:hover{color:var(--gold)}
@media (max-width:640px){
  #cost-calc .cc-results-cols{grid-template-columns:1fr}
  #cost-calc .cc-result{padding:0 0 1rem}
  #cost-calc .cc-result + .cc-result{border-left:0;border-top:1px solid var(--hair);padding:1rem 0 0}
  #cost-calc .cc-results output{font-size:34px}
}


/* desktop readability lift (Morla, Nov 14): ~17px / 1.7 / #C8D0DE on body copy, lists and table cells.
   Phone layout unchanged. Kept near the end so it wins over the base rules above. */
@media (min-width:761px){
  .res-body p,.res-body li,.res-body ol,.res-split p,.res-check li{font-size:1.0625rem;line-height:1.7;color:#C8D0DE}
  .res-table{font-size:1rem}
  .res-table th{line-height:1.5}
  .res-table td{color:#C8D0DE;line-height:1.6}
}

@media print{
  .site-header,.footer,.res-aside,.cta-band,#related,.skip{display:none!important}
  body{background:#fff;color:#111;padding:0}
  body::after{display:none}
  .res-body p,.res-body li,.res-check li,.res-table td{color:#222}
  .res-check li::before{background:none;border-color:#555}
}

/* "Person or AI?" quick sorter (Nov 23). Scoped to #ps-sorter so other
   resource pages, the cost calculator and any future .res-tool forms are unchanged.
   Results panel follows Morla's calculator pattern (panel, gold top rule, mono label, Clear text link). */
#ps-sorter .ps-q{display:grid;gap:.55rem;padding-top:1.05rem;border-top:1px solid var(--hair)}
#ps-sorter .ps-q legend{display:flex;gap:.7rem;align-items:baseline;float:left;width:100%;margin:0 0 .15rem;font-family:var(--body);font-size:1.02rem;letter-spacing:0;text-transform:none;color:var(--text);line-height:1.45}
#ps-sorter .ps-q legend + *{clear:both}
#ps-sorter .ps-num{flex:none;font-family:var(--mono);font-size:.68rem;letter-spacing:.16em;color:var(--gold)}
#ps-sorter .ps-hint{display:block;padding-left:1.75rem;font-size:.92rem;line-height:1.5;color:var(--text-3)}
#ps-sorter .ps-q .choices{padding-left:1.75rem}
#ps-sorter .ps-q .choice span{min-width:4.6rem;justify-content:center}
#ps-sorter .ps-results{background:var(--panel);border-top:1px solid var(--gold);padding:1.25rem 1.3rem 1.15rem;display:grid;gap:.7rem;margin-top:.3rem}
#ps-sorter .ps-label{margin:0;font-family:var(--mono);font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--text-3);overflow-wrap:anywhere}
#ps-sorter .ps-label span{text-transform:none;letter-spacing:.06em}
#ps-sorter .ps-verdict{margin:0;font-family:var(--display);font-size:clamp(1.6rem,3vw,2.15rem);font-weight:300;line-height:1.18;letter-spacing:-.03em;color:var(--text)}
#ps-sorter .ps-verdict.is-empty{color:var(--text-3)}
#ps-sorter .ps-summary{margin:0;color:var(--text-2);font-size:.98rem;line-height:1.6}
#ps-sorter .ps-why{margin:0;padding-left:1.1rem;display:grid;gap:.25rem}
#ps-sorter .ps-why li{color:var(--text-3);font-size:.92rem;line-height:1.5}
#ps-sorter .ps-why li::marker{color:var(--gold)}
#ps-sorter .ps-next{margin:.1rem 0 0}
#ps-sorter .ps-next a{color:var(--gold);font-family:var(--display);font-size:1.02rem;text-decoration:none;border-bottom:1px solid rgb(201 166 107 / .4)}
#ps-sorter .ps-next a:hover{color:var(--gold-2);border-bottom-color:var(--gold-2)}
#ps-sorter[data-result] .ps-results{border-top-width:2px}
#ps-sorter .ps-clear{margin:0}
#ps-sorter .ps-clear-link{appearance:none;-webkit-appearance:none;background:none;border:0;padding:0;margin:0;font-family:var(--mono);font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--text-3);cursor:pointer}
#ps-sorter .ps-clear-link:hover{color:var(--gold)}
.res-body .ps-small{font-size:.9rem;color:var(--text-3)}
@media (max-width:560px){
  #ps-sorter .ps-hint,#ps-sorter .ps-q .choices{padding-left:0}
  #ps-sorter .ps-results{padding:1.1rem 1rem 1rem}
}
@media print{#ps-sorter .ps-clear{display:none}}

/* AI Agent rules & handoffs worksheet (Nov 30). Blank write-in cells, scoped to .rh-sheet
   so other tables are unchanged. Prints with light borders and room to write. */
.rh-sheet td.rh-fill,.rh-sheet th.rh-fill{height:3rem}
@media (min-width:641px){.rh-sheet .res-table thead th:first-child{width:36%}}
.rh-sheet td.rh-fill{background:linear-gradient(transparent calc(100% - 1px),var(--hair-2) 0) bottom/100% 100% no-repeat}
@media (max-width:640px){
  .rh-sheet td.rh-fill{height:auto;min-height:3.2rem;background:none}
  .rh-sheet td.rh-fill::after{content:"";display:block;height:2rem;border-bottom:1px solid var(--hair-2)}
  .rh-sheet th.rh-fill{display:none}
}
@media print{
  .rh-sheet{border-color:#999;break-inside:avoid}
  .rh-sheet .res-table caption,.rh-sheet .res-table thead th{background:none;color:#444;border-color:#999}
  .rh-sheet .res-table th,.rh-sheet .res-table td{color:#222;border-color:#bbb}
  .rh-sheet td.rh-fill,.rh-sheet th.rh-fill{height:2.6rem;background:none}
}

/* Delegation hours estimator (Nov 30). Scoped to #dh-est so other resource pages,
   the cost calculator and the sorter are unchanged. Tick boxes match the checklist
   squares; results panel follows the calculator pattern (panel, gold top rule, mono label, Clear text link). */
#dh-est .dh-days{max-width:320px}
#dh-est .dh-role{display:grid;gap:0;padding-top:1.05rem;border-top:1px solid var(--hair)}
#dh-est .dh-role legend{float:left;width:100%;margin:0 0 .3rem;font-family:var(--mono);font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
#dh-est .dh-role legend + *{clear:both}
#dh-est .dh-role-link,#dh-est .dh-note{margin:0 0 .5rem;font-size:.9rem;line-height:1.5;color:var(--text-3)}
#dh-est .dh-role-link a{color:var(--text-2)}
#dh-est .dh-role-link a:hover{color:var(--gold)}
#dh-est .dh-task{display:grid;gap:.7rem;padding:.75rem 0;border-bottom:1px solid var(--hair)}
#dh-est .dh-task:last-child{border-bottom:0}
#dh-est .dh-tick{display:grid;grid-template-columns:22px minmax(0,1fr);gap:.9rem;align-items:start;cursor:pointer;font-family:var(--body);font-size:1rem;letter-spacing:0;text-transform:none;color:var(--text-2)}
#dh-est .dh-tick input{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin:.3rem 0 0;border:1px solid var(--gold);border-radius:2px;background:var(--gold-dim);display:grid;place-content:center;cursor:pointer}
#dh-est .dh-tick input::before{content:"";width:9px;height:9px;background:var(--on-gold);clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0,43% 62%);transform:scale(0);transition:transform .15s}
#dh-est .dh-tick input:checked{background:var(--gold)}
#dh-est .dh-tick input:checked::before{transform:scale(1)}
#dh-est .dh-tick input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
#dh-est .dh-tick strong{display:block;font-weight:500;color:var(--text);line-height:1.45}
#dh-est .dh-tick small{display:block;font-size:.9rem;line-height:1.5;color:var(--text-3)}
#dh-est .dh-task.is-on .dh-tick strong{color:var(--gold-2)}
#dh-est .dh-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;padding-left:calc(22px + .9rem)}
#dh-est .dh-inputs[hidden]{display:none}
#dh-est .dh-own .dh-inputs{padding-left:0}
#dh-est .dh-inputs .fld label{font-size:.62rem;letter-spacing:.16em}
#dh-est .dh-inputs .fld input,#dh-est .dh-inputs .fld select,#dh-est .dh-own > .fld input{width:100%;min-width:0;padding:.5rem .1rem}
#dh-est .dh-results{background:var(--panel);border-top:1px solid var(--gold);padding:1.25rem 1.3rem 1.15rem;display:grid;gap:.5rem;margin-top:.3rem}
#dh-est .dh-label{margin:0;font-family:var(--mono);font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--text-3)}
#dh-est .dh-results output{display:block;margin:.1rem 0 0;font-family:var(--display);font-size:42px;font-weight:300;line-height:1.12;letter-spacing:-.03em;color:var(--text);font-variant-numeric:tabular-nums}
#dh-est .dh-results output.is-empty{color:var(--text-3)}
#dh-est .dh-month{margin:0;font-size:.9rem;line-height:1.4;color:var(--text-3);font-variant-numeric:tabular-nums}
#dh-est .dh-month.is-empty{visibility:hidden}
#dh-est .dh-break{margin:.2rem 0 0;padding-left:1.1rem;display:grid;gap:.2rem}
#dh-est .dh-break li{color:var(--text-2);font-size:.92rem;line-height:1.5;font-variant-numeric:tabular-nums}
#dh-est .dh-break li::marker{color:var(--gold)}
#dh-est .dh-msg{margin:0;color:var(--text-3);font-size:.95rem;line-height:1.5}
#dh-est .dh-next{margin:.2rem 0 0}
#dh-est .dh-next a{color:var(--gold);font-family:var(--display);font-size:1.02rem;text-decoration:none;border-bottom:1px solid rgb(201 166 107 / .4)}
#dh-est .dh-next a:hover{color:var(--gold-2);border-bottom-color:var(--gold-2)}
#dh-est[data-total] .dh-results{border-top-width:2px}
#dh-est .dh-clear{margin:0}
#dh-est .dh-clear-link{appearance:none;-webkit-appearance:none;background:none;border:1px solid var(--line,rgba(255,255,255,.18));border-radius:2px;padding:.45rem .9rem;margin:0;font-family:var(--body);font-size:.9rem;letter-spacing:0;text-transform:none;color:var(--text-2);cursor:pointer}
#dh-est .dh-clear-link:hover{border-color:var(--gold)}
.res-body .dh-small{font-size:.9rem;color:var(--text-3)}
@media (max-width:560px){
  #dh-est .dh-inputs{grid-template-columns:repeat(2,minmax(0,1fr));padding-left:0}
  #dh-est .dh-inputs .fld:last-child{grid-column:1 / -1}
  #dh-est .dh-results{padding:1.1rem 1rem 1rem}
  #dh-est .dh-results output{font-size:34px}
}
@media print{#dh-est .dh-clear{display:none}}
/* Morla fix Nov 30: lock tick boxes to a fixed square so unticked matches ticked */
#dh-est .dh-tick input[type="checkbox"]{box-sizing:border-box;width:16px!important;height:16px!important;min-width:16px;max-width:16px;min-height:16px;max-height:16px;aspect-ratio:1/1;padding:0;flex:0 0 16px;align-self:start;justify-self:start}
