/* res.css: the one design system for every public resource page (body.res) and the shared
   newsletter + contact band (.cta-band, also used on the homepage).

   Type scale (nothing outside it):
     h1 40px · h2 26px · h3 19px · lede 18px · body 16px · small 14px · label 12px · stat 30px
   Spacing scale: 8 · 16 · 24 · 32 · 48 · 64
   Surfaces: page cream, card #FFFBF4 with a 1px rule border, 10px radius, no shadows, no hover lift. */

body.res{--card:#FFFBF4;--line:#E6D7BF;--r:10px;
  --h1:clamp(32px,3.6vw,40px);--h2:26px;--h3:19px;--lede:18px;--body:16px;--sm:14px;--lbl:12px;--stat:30px}

/* ---------- page frame ---------- */
body.res main.wrap{max-width:1200px;padding:0 32px 64px;min-height:0}
body.res .mast .wrap,body.res footer .wrap{max-width:1200px;padding-left:32px;padding-right:32px}
@media (max-width:700px){body.res main.wrap{padding:0 20px 48px}}
body.res .crumb{margin:32px 0 0;font-size:var(--sm);position:relative;z-index:2}
body.res header.page{padding:24px 0 0!important;max-width:820px}
body.res header.page .eyebrow{font-size:var(--lbl);letter-spacing:2px}
body.res header.page h1{font-size:var(--h1)!important;line-height:1.1!important;margin:12px 0 16px!important}
body.res header.page .lede{font-size:var(--lede)!important;line-height:1.55;max-width:680px;margin:0}
body.res h2,body.res h2.sec{font-size:var(--h2)!important;line-height:1.2;margin:0 0 16px!important}
body.res h3{font-size:var(--h3)!important;line-height:1.3!important;margin:0}
body.res p{font-size:var(--body);line-height:1.6}
body.res section,body.res .rg-h{padding:0}
body.res .eyebrow,body.res .ro-k,body.res .fk,body.res .rm-card-k,body.res .rm-toc-k{font-size:var(--lbl)!important;letter-spacing:1.6px;text-transform:uppercase;font-weight:600}
/* every block on a page is separated by the same 48px; a rule always has 32px of air below it */
body.res main > * + *{margin-top:48px}
body.res main > .crumb + header.page,body.res main > header.page:first-child{margin-top:0}

/* ---------- cards ---------- */
body.res .res-card,body.res .rm-card,body.res .bf,body.res .st-card,body.res .gl-t,body.res .sub-list li,
body.res .sos-r,body.res .br-card,body.res .calc,body.res .faq details,body.res .rm-toc,body.res .g-letter{
  background:var(--card)!important;border:1px solid var(--line)!important;border-radius:var(--r)!important;box-shadow:none!important}
body.res .res-card:hover,body.res .rm-card:hover,body.res .bf:hover{transform:none!important;border-color:var(--cherry)!important}
body.res .res-cards,body.res .rm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:0}
body.res .res-cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}
body.res .res-card,body.res .rm-card{padding:24px!important;display:flex;flex-direction:column;gap:8px}
body.res .res-card p,body.res .rm-card p{font-size:var(--sm)!important;color:var(--muted);margin:0}
body.res .res-card .go{margin-top:auto;padding-top:8px;font-size:var(--sm)!important}
body.res .rm-card .rm-formula{margin-top:auto}
@media (max-width:900px){body.res .res-cards,body.res .res-cards.two,body.res .rm-grid{grid-template-columns:minmax(0,1fr)}}

/* resource hub groups */
body.res .res-group{margin:0}
body.res .res-group + .res-group{margin-top:48px}
body.res .rg-h{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:32px!important;margin:0 0 24px!important}
body.res .rg-h h2{margin:0!important}
body.res .rg-h p{margin:0;color:var(--muted);font-size:var(--sm)}

/* ---------- stats: one divided strip ---------- */
body.res .rp-stats,body.res .br-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0!important;
  background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin-bottom:0}
body.res .br-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
body.res .rp-stats > div,body.res .br-kpis > div{background:none!important;border:0!important;border-radius:0!important;
  border-left:1px solid var(--line)!important;padding:20px 24px!important;display:flex;flex-direction:column;gap:4px}
body.res .rp-stats > div:first-child,body.res .br-kpis > div:first-child{border-left:0!important}
body.res .rp-stats b,body.res .br-kpis b{font-family:var(--serif);font-weight:500;font-size:var(--stat)!important;line-height:1.1}
body.res .rp-stats span,body.res .br-kpis span{font-size:var(--sm)!important;color:var(--muted);line-height:1.45}
@media (max-width:900px){body.res .rp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.res .rp-stats > div:nth-child(odd){border-left:0!important}
  body.res .rp-stats > div:nth-child(n+3){border-top:1px solid var(--line)!important}}

/* ---------- tables ---------- */
body.res .rp-table{background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:auto;box-shadow:none!important;margin-bottom:0}
body.res main > .rp-stats + .rp-table{margin-top:24px}
body.res th{white-space:nowrap}
body.res table{width:100%;border-collapse:collapse;font-size:var(--sm)}
body.res th{text-align:left;font-size:var(--lbl)!important;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);font-weight:600;
  padding:14px 16px!important;border-bottom:1px solid var(--line)}
body.res td{padding:14px 16px!important;border-bottom:1px solid #F0E5D2;vertical-align:top;font-size:var(--sm)}
body.res tr:last-child td{border-bottom:0}
body.res th:first-child,body.res td:first-child{padding-left:24px!important}
body.res th:last-child,body.res td:last-child{padding-right:24px!important}
body.res td b{display:block;font-weight:600;font-size:var(--sm)}
body.res td small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
body.res td.r{font-family:var(--serif);font-size:17px!important;color:var(--cherry);width:64px}
body.res tr.locked td{filter:blur(5px);user-select:none;color:var(--muted)}
body.res .mv{background:none!important;padding:0!important;font-size:13px;font-weight:600;white-space:nowrap}
body.res .mv.eq{color:var(--muted)}
body.res .sos-table th[scope=row]{text-transform:none;letter-spacing:0;font-size:var(--sm)!important;color:var(--ink);border-bottom:1px solid #F0E5D2}
body.res .sos-table th[scope=row] small{display:block;font-weight:400;color:var(--muted);font-size:13px}
body.res table.mini td{padding:8px 0!important;border-bottom:1px solid #F0E5D2}
body.res table.mini td:first-child{padding-left:0!important}body.res table.mini td:last-child{padding-right:0!important;text-align:right;font-weight:600}

/* notes and link rows */
body.res .rp-note,body.res .sos-cite{font-size:13px!important;color:var(--muted);max-width:820px;margin:16px 0 0!important}
body.res .rp-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;border-top:1px solid var(--line);padding-top:32px}
body.res .rp-more nav,body.res .rp-month nav,body.res .calc-others{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:12px}
body.res .rp-more a,body.res .rp-month a,body.res .calc-others a{border:0!important;background:none!important;padding:0!important;
  font-size:var(--sm);color:var(--ink);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}
body.res .rp-more a:hover,body.res .rp-month a:hover,body.res .calc-others a:hover{color:var(--cherry)}
body.res .rp-group + .rp-group{margin-top:48px}
body.res .rp-month{margin:0 0 24px}body.res .rp-month h3{margin-bottom:4px!important}

/* ---------- subscriber gate: one slim strip ---------- */
body.res .gate{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--ink);color:#F3E9D8;
  border:0;border-radius:var(--r);padding:20px 24px!important;margin-top:16px!important}
body.res .gate p{margin:0;font-size:var(--sm);color:#F3E9D8}
body.res .gate b{color:#FFD15C;font-weight:600}
body.res .gate .btn{flex:none;padding:10px 18px;font-size:var(--sm)}
@media (max-width:700px){body.res .gate{flex-direction:column;align-items:flex-start}}

/* ---------- articles (lessons and guides) ---------- */
body.res .rm-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:48px;align-items:start}
body.res .rm-article > * + *{margin-top:32px}
body.res .rm-article header.page{padding-bottom:0!important}
body.res .rm-sec{border-top:1px solid var(--line);padding-top:32px!important;margin-top:32px!important}
body.res .rm-sec h2{margin-bottom:16px!important}
body.res .rm-sec p,body.res .rm-article > p{max-width:70ch;margin:0 0 16px}
body.res .g-list,body.res .rm-steps,body.res .g-src{font-size:var(--body);line-height:1.6;max-width:70ch}
body.res .g-answer{background:var(--ink);color:#F3E9D8;border-radius:var(--r);padding:24px 28px}
body.res .g-answer p{font-family:var(--serif);font-size:var(--lede)!important;line-height:1.55;margin:8px 0 0}
body.res .g-data{border-top:2px solid var(--ink);background:none;border-radius:0;padding:24px 0 0!important}
body.res .g-data h2{margin:8px 0 16px!important}
body.res .rm-formula{border-radius:8px}
body.res .rm-formula.big{font-size:17px;padding:20px 24px}
body.res .rm-example{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:24px;box-shadow:none}
body.res .rm-result{border-radius:8px}
body.res .rm-watch{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.res .rm-watch li{background:var(--card);border:1px solid var(--line);border-radius:var(--r);font-size:var(--sm);padding:20px 20px 20px 44px}
body.res .rm-pn{border-top:1px solid var(--line);padding-top:24px}
body.res .rm-side{position:sticky;top:92px;display:flex;flex-direction:column;gap:16px;padding-top:0!important}
body.res .rm-toc{padding:20px!important}
body.res .rm-toc a{font-size:var(--sm)!important;padding:8px 10px}
body.res .rm-wb{background:var(--card)!important;color:var(--ink)!important;border:1px solid var(--line);border-radius:var(--r);padding:20px!important;gap:6px}
body.res .rm-wb b{font-size:var(--h3)!important;color:var(--ink)}
body.res .rm-wb .rm-wb-p{color:var(--muted);opacity:1;font-size:var(--sm)}
body.res .rm-wb .go{color:var(--cherry)!important;font-size:var(--sm)}
body.res .rm-wb .fk{color:var(--cherry)}
@media (max-width:1000px){body.res .rm-layout{grid-template-columns:minmax(0,1fr)}body.res .rm-side{position:static}
  body.res .rm-watch{grid-template-columns:minmax(0,1fr)}}

/* ---------- specific pages ---------- */
body.res .br-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(440px,1fr));gap:16px}
body.res .br-card{padding:24px!important}
body.res .br-card table th:first-child,body.res .br-card table td:first-child{padding-left:0!important}
body.res .br-card table th:last-child,body.res .br-card table td:last-child{padding-right:0!important}
body.res .br-h{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:16px}
body.res .br-h h2{font-size:22px!important;margin:0!important}
body.res .br-h span{font-size:13px;color:var(--muted)}
body.res .br-kpis{margin-bottom:16px}
body.res .br-kpis > div{padding:14px 16px!important}
body.res .br-kpis b{font-size:24px!important}
body.res .br-more{margin:12px 0 0;font-size:var(--sm)}
body.res .bf-grid{gap:12px}body.res .bf{padding:16px!important}body.res .bf b{font-size:17px}
body.res .bd-jump a{border-radius:6px!important}
body.res .bd-l ul{columns:3 240px}
body.res .gl-l dl{gap:16px}body.res .gl-t{padding:20px 24px!important}
body.res .gl-t dt{font-size:var(--h3)!important}
body.res .gl-t p{font-size:var(--sm)!important}
body.res .st-grid{gap:16px}body.res .st-card{padding:24px!important}
body.res .st-card b{font-size:36px!important}body.res .st-card p{font-size:var(--body)!important}
body.res .sos-find{background:none!important;border:0!important;padding:0!important;box-shadow:none!important}
body.res .sos-list{font-size:var(--body);line-height:1.6;gap:12px;max-width:900px}
body.res .sos-grid{gap:16px}body.res .sos-r{padding:24px!important}
body.res .sos-r h3{font-size:22px!important}
body.res .method{background:none!important;border-top:1px solid var(--line);border-radius:0;padding:32px 0 0!important}
body.res .method p{font-size:var(--sm);max-width:80ch}
body.res .calc{padding:24px!important}
body.res .calc-res{border-radius:var(--r);padding:28px}
body.res .calc-main{font-size:32px!important}
body.res .faq details{padding:16px 20px!important;margin-bottom:8px}
body.res .proofstrip.boxed{border-radius:var(--r);padding:40px!important}
body.res .sub-grid{gap:24px}body.res .sub-list li{padding:20px 24px!important}
body.res .sub-list b{font-size:var(--h3)!important}
body.res .wl-dl{border-radius:var(--r);padding:28px}
body.res .bd-search{border-radius:8px}

/* ---------- the newsletter + contact band (resource pages and homepage) ---------- */
.cta-band{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,auto);column-gap:0;
  background:#1C1512;color:#F3E9D8;border-radius:10px;margin-top:64px!important;overflow:hidden}
.cta-band .cb{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:12px;padding:32px 36px}
.cta-band .cb + .cb{border-left:1px solid #3A2E25}
.cta-band .cb-k{font-size:12px;letter-spacing:1.6px;text-transform:uppercase;font-weight:600;color:#E2B04D;align-self:end}
.cta-band h3{font-family:var(--serif);font-weight:500;font-size:24px!important;line-height:1.2!important;color:#F3E9D8;margin:0}
.cta-band h3 em{color:#FFD15C;font-style:italic}
.cta-band p{margin:0;font-size:15px!important;line-height:1.55;color:#E9DCC8}
.cta-band .cb-act{align-self:start;min-height:48px;display:flex;align-items:flex-start}
.cta-band .cb-act .bh{width:100%}
.cta-band .cb-act iframe{height:78px!important;display:block}
.cta-band .cb-act .btn{margin-top:1px}
.cta-band .btn{padding:12px 20px;font-size:15px}
.cta-band .cb-fine{font-size:13px!important;color:#C9B9A3!important}
.cta-band .cb-fine a{color:inherit}
@media (max-width:860px){.cta-band{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
  .cta-band .cb{grid-row:auto;display:flex;flex-direction:column}.cta-band .cb + .cb{border-left:0;border-top:1px solid #3A2E25}
  .cta-band .cb-act iframe{height:120px!important}}
.cta-band{padding:0!important}
