/* Free resources pages (/resources/…) — builds on site.css tokens. */

.nav-links a[aria-current="page"]{color:var(--white);text-decoration:underline;text-underline-offset:6px;text-decoration-color:#EDA57F}

/* ── Page hero (teal band, curved bottom like the homepage) ── */
.page-hero{background:var(--teal);color:var(--white);padding:clamp(40px,6vw,72px) 0 clamp(72px,9vw,108px);position:relative;overflow:hidden}
.page-hero::after{content:"";position:absolute;inset:auto 0 0 0;height:70px;background:var(--paper);clip-path:ellipse(75% 100% at 50% 100%)}
.page-hero .wrap{position:relative;z-index:1}
.ph-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(32px,6vw,72px);align-items:center}
.ph-grid.solo{grid-template-columns:1fr;max-width:820px}
.page-hero h1{color:var(--white);font-size:clamp(2.1rem,4.6vw,3.3rem)}
.page-hero h1 .mark{font-style:italic;color:#EDA57F;font-weight:500}
.page-hero .lede{color:#C9D8DC;margin:18px 0 28px}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:.86rem;color:var(--mute-dark);margin-bottom:22px;font-weight:600}
.crumbs a{color:#D8E4E7;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.35)}
.crumbs a:hover{color:var(--white)}
.crumbs span[aria-hidden]{opacity:.6}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#EDA57F;margin-bottom:14px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;font-weight:700;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.1);color:#E3ECEE}
.chip svg{width:15px;height:15px}
.ph-note{margin-top:18px;font-size:.88rem;color:var(--mute-dark)}

/* the template preview: a sheet of paper */
.sheet{background:var(--white);border-radius:10px;box-shadow:0 18px 50px rgba(0,25,32,.35);padding:10px;max-width:420px;margin-left:auto;transform:rotate(1.5deg)}
.sheet img{width:100%;height:auto;border-radius:4px;border:1px solid var(--neutral)}
.sheet.wide{max-width:520px;transform:rotate(-1deg)}

/* ── Content sections ── */
.sec-tight{padding:clamp(48px,7vw,80px) 0}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.feature-grid.three{grid-template-columns:repeat(3,1fr)}
.feature{background:var(--white);border-radius:var(--radius);padding:24px 22px;box-shadow:var(--shadow-sm)}
.feature .step-ico{width:46px;height:46px;border-radius:12px;margin-bottom:14px}
.feature h3{font-size:1.04rem;margin-bottom:6px}
.feature p{font-size:.93rem;color:var(--mute)}

.prose{max-width:720px}
.prose h2{margin:40px 0 14px;font-size:clamp(1.5rem,2.6vw,1.95rem)}
.prose h2:first-child{margin-top:0}
.prose h3{margin:24px 0 8px}
.prose p{margin:0 0 14px;color:#2E4A54;font-size:1.02rem}
.prose ul,.prose ol{margin:0 0 18px;padding-left:0;list-style:none}
.prose li{position:relative;padding-left:28px;margin-bottom:9px;color:#2E4A54}
.prose ul li::before{content:"";position:absolute;left:4px;top:.62em;width:8px;height:8px;border-radius:50%;background:var(--terra)}
.prose ol{counter-reset:n}
.prose ol li{counter-increment:n}
.prose ol li::before{content:counter(n);position:absolute;left:0;top:.1em;width:20px;height:20px;border-radius:6px;background:var(--peach);color:var(--terra);font-weight:800;font-size:.78rem;display:grid;place-items:center}
.prose a{color:var(--terra-deep);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.prose strong{color:var(--ink)}
.callout{background:var(--peach);border-radius:var(--radius-sm);padding:20px 22px;margin:22px 0;color:#2E4A54}
.callout strong{display:block;margin-bottom:4px;color:var(--ink)}
.table-wrap{overflow-x:auto;margin:6px 0 20px}
.prose table{width:100%;border-collapse:collapse;font-size:.95rem;background:var(--white);border-radius:var(--radius-sm);overflow:hidden;box-shadow:var(--shadow-sm)}
.prose th{background:var(--teal);color:var(--white);text-align:left;padding:10px 14px;font-weight:700;font-size:.85rem}
.prose td{padding:10px 14px;border-top:1px solid var(--neutral);color:#2E4A54}

.two-col{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:clamp(32px,5vw,64px);align-items:start}
.side-card{position:sticky;top:96px;background:var(--white);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-sm);border-top:4px solid var(--terra)}
.side-card h3{font-family:var(--display);font-size:1.25rem;font-weight:700;margin-bottom:8px}
.side-card p{font-size:.93rem;color:var(--mute);margin-bottom:16px}
.side-card .btn{width:100%}
.side-card ul{list-style:none;margin:0 0 16px}
.side-card li{font-size:.9rem;color:#2E4A54;padding:6px 0;border-bottom:1px solid var(--neutral);display:flex;justify-content:space-between;gap:10px}
.side-card li b{color:var(--ink)}

/* ── Resource cards (hub + related) ── */
.res-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.res-card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden;display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease}
.res-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.res-thumb{background:var(--neutral);aspect-ratio:16/10;overflow:hidden;display:flex;align-items:flex-start;justify-content:center;padding:18px 18px 0}
.res-thumb img{width:78%;box-shadow:0 6px 20px rgba(0,59,75,.15);border-radius:4px 4px 0 0;background:#fff}
.res-thumb.tool{background:var(--peach);align-items:center;padding:18px}
.res-thumb.tool svg{width:64px;height:64px;color:var(--terra)}
.res-body{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1}
.res-kind{font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--terra);margin-bottom:8px}
.res-card h3{font-size:1.1rem;margin-bottom:6px}
.res-card p{font-size:.93rem;color:var(--mute);margin-bottom:16px}
.res-card .go{margin-top:auto;font-weight:800;color:var(--terra-deep);display:inline-flex;align-items:center;gap:6px}
.res-card .go::after{content:"→";transition:transform .15s}
.res-card:hover .go::after{transform:translateX(3px)}
.filter{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:28px}
.filter button{font:inherit;font-weight:700;font-size:.92rem;padding:9px 16px;border-radius:999px;border:2px solid var(--teal);background:transparent;color:var(--teal);cursor:pointer}
.filter button[aria-pressed="true"]{background:var(--teal);color:var(--white)}

/* ── Download pop-up ── */
.gate{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:rgba(0,30,40,.6);backdrop-filter:blur(3px)}
.gate[hidden]{display:none}
.gate-box{background:var(--white);border-radius:var(--radius);box-shadow:0 30px 80px rgba(0,20,28,.45);width:min(480px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:30px 28px 26px;position:relative}
.gate-x{position:absolute;top:12px;right:12px;width:38px;height:38px;border-radius:10px;border:none;background:var(--paper);color:var(--ink);font-size:1.3rem;cursor:pointer;line-height:1}
.gate-box h2{font-size:1.6rem;margin-bottom:6px;padding-right:40px}
.gate-box .sub{color:var(--mute);font-size:.95rem;margin-bottom:20px}
.gate form{display:flex;flex-direction:column;gap:14px}
.gate label.field{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:.9rem}
.gate label.field small{font-weight:500;color:var(--mute)}
.gate input[type=email],.gate input[type=text]{font:inherit;font-size:1rem;padding:12px 14px;border:1.5px solid #D9D3C7;border-radius:10px;background:var(--white);color:var(--ink)}
.gate input:focus{outline:none;border-color:var(--terra);box-shadow:0 0 0 3px rgba(203,106,66,.18)}
.gate .tick{display:flex;gap:12px;align-items:flex-start;background:var(--paper);border-radius:10px;padding:14px;font-size:.92rem;color:#2E4A54;cursor:pointer}
.gate .tick input{width:20px;height:20px;margin-top:1px;accent-color:var(--terra);flex:none}
.gate .small{font-size:.8rem;color:var(--mute);line-height:1.5}
.gate .small a{color:var(--terra-deep);text-decoration:underline}
.gate .btn{width:100%}
.gate .err{color:#B42318;font-weight:700;font-size:.9rem}
.gate .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.dl-list{display:flex;flex-direction:column;gap:10px;margin:6px 0 16px}
.dl-list a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:12px;background:var(--paper);font-weight:800;color:var(--ink);border:1.5px solid transparent}
.dl-list a:hover{border-color:var(--terra)}
.dl-list a span{font-size:.8rem;font-weight:700;color:var(--white);background:var(--terra);padding:4px 10px;border-radius:999px}
.done-ico{width:52px;height:52px;border-radius:14px;background:#DDF5EC;color:#00754F;display:grid;place-items:center;margin-bottom:14px}
.done-ico svg{width:28px;height:28px}

/* ── Online tools on the site ── */
.tool-sec{padding:clamp(28px,4vw,48px) 0 clamp(48px,6vw,72px)}
.tool-sec .tool-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}

@media (max-width:920px){
  .ph-grid,.two-col{grid-template-columns:1fr}
  .sheet{margin:8px auto 0;max-width:340px}
  .feature-grid,.feature-grid.three,.res-grid{grid-template-columns:1fr 1fr}
  .side-card{position:static}
}
@media (max-width:560px){
  .feature-grid,.feature-grid.three,.res-grid{grid-template-columns:1fr}
  .page-hero .btn{width:100%}
}
@media print{
  header.site,footer,.page-hero,.after-tool,.gate,.toast,.no-print{display:none!important}
  body{background:#fff}
  .tool-sec{padding:0}
}
