/* Guide pages, Session 39 (Taylor approved the mockups, Nov 18, 2026): the same treatments as the service pages and Contact.
   Sections alternate white and cream; every heading has a green icon tile; the four-part test sits in a dark panel with icon
   tiles and amber number badges; expense cards are lifted white cards with a colored top edge; study steps are icon cards with
   amber badges; link lists are tiles with the green arrow circle; tables get a dark header (cards on phones). On phones each
   section keeps its question and first answering paragraph, and the rest sits behind "Read More" (answer-first folds, option A).
   Graphics (.gx) only where they show something faster than the text: credit vs. deduction and Section 174A on the R&D guide,
   the claim routes on the 179D guide, the recovery periods to scale on the cost seg guide. Loaded only by resources-guide.njk. */
@layer legacy, foundation;
@layer legacy {
.res-legacy .g-sec{border-bottom:0;margin-bottom:0;padding:44px 0;position:relative}
.res-legacy .g-sec.alt::before{content:"";position:absolute;inset:0 -40px;background:#F4F3EE;border-radius:20px;z-index:-1}
.res-legacy article{position:relative;z-index:0}
.res-legacy .g-sec>h2{font-size:1.75rem;display:flex;gap:14px;align-items:center}   /* 28 px: on the type scale (T1) */
.res-legacy .hic{flex:none;width:44px;height:44px;border-radius:12px;background:#1D6B35;display:grid;place-items:center}
.res-legacy .hic svg,.res-legacy .pic svg{width:24px;height:24px;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.res-legacy .hic svg{stroke:#fff}
.res-legacy .pic{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;flex:none}
.res-legacy .pic svg{width:22px;height:22px}
/* four-part test: dark panel */
.res-legacy .prongs.dk{background:#0D1F14;border-radius:18px;padding:22px;gap:14px;box-shadow:0 14px 34px rgba(13,31,20,.18)}
.res-legacy .prongs.dk .prong{background:rgba(255,255,255,.06);border:1px solid rgba(244,243,238,.4);color:#fff}
.res-legacy .prongs.dk .prong h3{color:#fff}
.res-legacy .prongs.dk .prong p{color:rgba(255,255,255,.9)}
.res-legacy .prongs.dk .prong p a{color:#F5C66A}
.res-legacy .prongs.dk .n{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#E09B2D;color:#0D1F14;font-weight:800;font-size:.9375rem}
.res-legacy .prongs.dk .pic{background:rgba(245,198,106,.14)} .res-legacy .prongs.dk .pic svg{stroke:#F5C66A}
/* expense cards: lifted, colored top edge */
.res-legacy .prongs.lift .prong{background:#fff;border:1px solid rgba(13,31,20,.16);border-top:6px solid #1D6B35;border-radius:14px;box-shadow:0 1px 2px rgba(13,31,20,.06),0 10px 28px rgba(13,31,20,.10)}
.res-legacy .prongs.lift .prong:nth-child(3n+2){border-top-color:#E09B2D} .res-legacy .prongs.lift .prong:nth-child(3n){border-top-color:#0D1F14}
.res-legacy .prongs.lift .pic{background:#E8F1EA} .res-legacy .prongs.lift .pic svg{stroke:#1D6B35}
/* tables */
.res-legacy .g-table-wrap{border:0;border-radius:14px;box-shadow:0 1px 2px rgba(13,31,20,.06),0 10px 28px rgba(13,31,20,.10);background:#fff}
.res-legacy .g-table th{background:#0D1F14;color:#fff;border:0}
.res-legacy .g-table td{background:#fff}
.res-legacy .act-wrap{background:#fff;border-radius:14px}
/* steps */
.res-legacy .gstep{background:#fff;border:1px solid rgba(13,31,20,.16);border-radius:14px;box-shadow:0 10px 28px rgba(13,31,20,.10);padding:26px 18px 18px;position:relative;display:grid;grid-template-columns:auto 1fr;column-gap:14px;align-content:start}
.res-legacy .gstep .gn{position:absolute;top:-12px;left:16px;background:#E09B2D;color:#0D1F14}
.res-legacy .gstep .pic{grid-row:1/3;background:#E8F1EA} .res-legacy .gstep .pic svg{stroke:#1D6B35}
.res-legacy .gstep h3,.res-legacy .gstep p{grid-column:2;margin-top:0}
.res-legacy .gsteps{gap:16px}
/* link lists: tiles with the green arrow circle */
.res-legacy .g-list.tiles{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:none}
.res-legacy .g-list.tiles li{margin:0}
.res-legacy .g-list.tiles li>a:only-child{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:10px 14px;border:1px solid rgba(13,31,20,.4);border-radius:12px;background:#fff;color:#0D1F14;font-weight:700;text-decoration:none;box-shadow:0 6px 18px rgba(13,31,20,.08)}
.res-legacy .g-list.tiles li>a:only-child:hover{border-color:#1D6B35}
.res-legacy .g-list.tiles .ar{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#1D6B35}
.res-legacy .g-list.tiles .ar svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
/* two columns for card groups in the article column (the 4-across cards squeezed the text) */
@media(min-width:641px){
 .res-legacy .prongs.dk,.res-legacy .prongs.lift:not(.c3),.res-legacy .gsteps{grid-template-columns:repeat(2,minmax(0,1fr))}
 .res-legacy .prongs.dk .prong,.res-legacy .prongs.lift .prong{display:grid;grid-template-columns:auto 1fr;column-gap:14px;align-content:start}
 .res-legacy .prong .pic{grid-row:1/4} .res-legacy .prong>.n{grid-column:2;margin:0 0 6px} .res-legacy .prong h3,.res-legacy .prong p{grid-column:2}
}
/* graphics */
.res-legacy .gx{margin:22px 0 4px;background:#fff;border:1px solid rgba(13,31,20,.16);border-radius:16px;padding:20px 22px;box-shadow:0 1px 2px rgba(13,31,20,.06),0 10px 28px rgba(13,31,20,.10)}
.res-legacy .gx-t{font-weight:800;font-size:1.0625rem;color:#0D1F14;margin:0 0 14px}
.res-legacy .gx-row,.res-legacy .gx-seg{display:grid;grid-template-columns:170px minmax(0,1fr);gap:12px;align-items:center;margin:10px 0}
.res-legacy .gx-lbl{font-weight:700;color:#0D1F14;font-size:.9375rem;line-height:1.3}
.res-legacy .gx-track{position:relative;height:40px;background:#F4F3EE;border-radius:10px;overflow:hidden}
.res-legacy .gx-bar{position:absolute;top:0;bottom:0;left:0;border-radius:10px;display:flex;align-items:center;padding:0 12px;font-weight:800;font-size:.9375rem;white-space:nowrap}
.res-legacy .gx-bar.g{background:#1D6B35;color:#fff} .res-legacy .gx-bar.a{background:#E09B2D;color:#0D1F14} .res-legacy .gx-bar.k{background:#0D1F14;color:#fff} .res-legacy .gx-bar.s{background:#6E786F;color:#fff}
.res-legacy .gx-note{font-size:.9375rem;color:#0D1F14;margin:12px 0 0;line-height:1.5}
.res-legacy .gx-cells{display:grid;gap:8px;align-items:center}
.res-legacy .gx-cell{border-radius:10px;padding:10px 12px;font-weight:700;font-size:.9375rem;text-align:center;line-height:1.35}
.res-legacy .gx-cell.o{background:#1D6B35;color:#fff} .res-legacy .gx-cell.c{background:#0D1F14;color:#fff} .res-legacy .gx-cell.x{background:#F4F3EE;color:#0D1F14;border:1px dashed rgba(13,31,20,.5)}
.res-legacy .gx-or{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)} .res-legacy .gx-ortxt{font-weight:700;color:#0D1F14}
.res-legacy .gx-flow{display:flex;align-items:stretch;gap:10px;margin:10px 0}
.res-legacy .gx-node{flex:1 1 0;border:1px solid rgba(13,31,20,.4);border-radius:12px;padding:12px 14px;background:#F4F3EE;color:#0D1F14}
.res-legacy .gx-node.hot{background:#0D1F14;color:#fff;border-color:#0D1F14}
.res-legacy .gx-k{display:block;font-size:.9375rem;font-weight:700;color:#1D6B35} .res-legacy .gx-node.hot .gx-k{color:#F5C66A}
.res-legacy .gx-v{display:block;font-size:1.0625rem;font-weight:800;margin-top:2px;line-height:1.3}
.res-legacy .gx-arr{flex:none;align-self:center;width:28px;height:28px;border-radius:50%;background:#1D6B35;display:grid;place-items:center}
.res-legacy .gx-arr svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.res-legacy .gx-route+.gx-route{margin-top:16px;padding-top:16px;border-top:1px solid rgba(13,31,20,.16)}
/* answer-first folds (phones; the script marks them) */
.res-legacy .gf-btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:8px;font-weight:700;color:#1D6B35;cursor:pointer}
.res-legacy .gf-btn:focus-visible{outline:3px solid #1D6B35;outline-offset:2px}
.res-legacy .gf-btn svg{width:18px;height:18px;transition:transform .2s} .res-legacy .g-sec.gf-open .gf-btn svg{transform:rotate(180deg)}
@media(max-width:960px){.res-legacy .g-sec.alt::before{inset:0 -24px}}
@media(max-width:640px){
 .res-legacy .g-sec{padding:32px 0} .res-legacy .g-sec.alt::before{inset:0 -20px;border-radius:0}
 .res-legacy .g-sec>h2{font-size:1.25rem;gap:12px}   /* 20 px */ .res-legacy .hic{width:38px;height:38px}
 .res-legacy .g-sec:not(.gf-open) .gf-more{display:none}
 .res-legacy .prongs.dk{padding:14px}
 .res-legacy .prongs.dk .prong,.res-legacy .prongs.lift .prong{padding:12px 14px;display:grid;grid-template-columns:auto 1fr;column-gap:12px}
 .res-legacy .prong{position:relative} .res-legacy .prong .pic{grid-row:1/4} .res-legacy .prong>.n{position:absolute;top:-10px;left:8px;width:22px;height:22px;font-size:.8125rem;margin:0}
 .res-legacy .prong h3,.res-legacy .prong p{grid-column:2;margin:0}
 .res-legacy .gsteps{grid-template-columns:1fr;gap:10px}
 .res-legacy .gstep{padding:14px} .res-legacy .gstep .gn{top:6px;left:36px;width:22px;height:22px;font-size:.8125rem}
 .res-legacy .gstep h3,.res-legacy .gstep p{margin:0}
 .res-legacy .g-table thead{display:none} .res-legacy .g-table,.res-legacy .g-table tbody,.res-legacy .g-table tr,.res-legacy .g-table td{display:block;width:auto}
 .res-legacy .g-table-wrap{box-shadow:none;background:none;overflow:visible} .res-legacy .g-table tr{background:#fff;border:1px solid rgba(13,31,20,.16);border-top:6px solid #1D6B35;border-radius:14px;padding:12px 14px;margin:0 0 10px;box-shadow:0 10px 28px rgba(13,31,20,.10)}
 .res-legacy .g-table td{padding:0;border:0;background:none} .res-legacy .g-table td:first-child{font-size:1.0625rem;margin-bottom:4px}
 .res-legacy .g-table td+td{margin-top:6px} .res-legacy .g-table td[data-label]::before{content:attr(data-label) ": ";font-weight:700;color:#0D1F14}
 .res-legacy .gx{padding:16px} .res-legacy .gx-row,.res-legacy .gx-seg{grid-template-columns:1fr;gap:6px}
 .res-legacy .gx-flow{flex-direction:column} .res-legacy .gx-arr{transform:rotate(90deg)} .res-legacy .gx-node{flex:none}
}
}
@layer legacy{.res-legacy .gx-key{display:inline-block;width:14px;height:14px;border-radius:4px;vertical-align:-2px;margin:0 6px 0 0}.res-legacy .gx-key.a{background:#E09B2D}.res-legacy .gx-key.s{background:#6E786F;margin-left:14px}}
@layer legacy{
.res-legacy .g-cta{margin:18px 0 0}
.res-legacy .g-cta a{display:inline-flex;align-items:center;min-height:44px;font-size:1.25rem;font-weight:700;line-height:1.35;color:#F5C66A;text-decoration:underline;text-underline-offset:4px}
.res-legacy .g-cta a:hover{color:#fff}
}
@layer legacy{
/* T3: paragraphs capped at 38em, as on the other pages (Session 38) */
.res-legacy article .g-p,.res-legacy article .g-note,.res-legacy article .g-list:not(.tiles) li{max-width:37em}
/* C1: the "Where to Go Next" cards keep a 3:1 edge and a white fill on the cream band */
.res-legacy .next a{background:#fff;border-color:rgba(13,31,20,.4)}
.res-legacy .next a.dark{background:#0D1F14;border-color:#0D1F14}
}
@layer legacy{.res-legacy .gq-t{text-transform:none;letter-spacing:normal;font-size:1.0625rem}}   /* T2: no uppercase text */
