@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/pf-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/pf-2.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/pf-3.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/pf-4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/pf-5.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/pf-6.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/pf-7.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/pf-8.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/pf-9.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/pf-10.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/pf-11.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/pf-12.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --navy:#1B3A5C; --steel:#2E6DA4; --gold:#C8922A; --light:#EEF3F8;
  --codebg:#F4F7FB; --ink:#333; --muted:#6b7a8d; --line:#d9e2ec; --green:#1E7E34;
}
*{box-sizing:border-box}
body{margin:0;font-family:Calibri,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.6}
h1,h2,h3{font-family:"Playfair Display",Georgia,serif;color:var(--navy);margin:0}
a{color:var(--steel);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1080px;margin:0 auto;padding:0 24px}

header.top{background:var(--navy);color:#fff;position:sticky;top:0;z-index:10}
.nav{display:flex;align-items:center;justify-content:space-between;padding:16px 24px}
.brand{font-family:"Playfair Display",serif;font-weight:800;font-size:19px;color:#fff}
.brand span{color:var(--gold)}
.brand:hover{text-decoration:none}
header nav a{color:#c7d3e0;font-size:15px;font-weight:600;margin-left:22px}
header nav a:hover,header nav a.active{color:#fff;text-decoration:none}
header nav a.active{border-bottom:2px solid var(--gold);padding-bottom:4px}

.hero{background:linear-gradient(180deg,var(--light),#fff);border-bottom:1px solid var(--line)}
.hero .wrap{padding:56px 24px 40px}
.kicker{color:var(--steel);font-weight:700;letter-spacing:3px;text-transform:uppercase;font-size:13px;margin-bottom:10px}
.hero h1{font-size:44px;line-height:1.12}
.hero p{max-width:720px;color:var(--muted);font-size:18px;margin:18px 0 0}
.rule{height:3px;width:64px;background:var(--gold);margin:22px 0 0;border-radius:2px}

.note{background:#FDF8F0;border-left:4px solid var(--gold);padding:16px 20px;border-radius:0 8px 8px 0;margin:30px 0 8px}
.note strong{color:var(--gold)}

section.block{padding:40px 0}
h2.section{font-size:28px;margin-bottom:6px}
.lead{color:var(--muted);margin:0 0 22px;max-width:720px}

.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
@media(max-width:760px){.grid{grid-template-columns:1fr} .hero h1{font-size:34px} .nav{flex-wrap:wrap;gap:8px} header nav a{margin-left:0;margin-right:18px}}

.card{border:1px solid var(--line);border-radius:12px;padding:22px;background:#fff;display:flex;flex-direction:column;box-shadow:0 1px 2px rgba(27,58,92,.04)}
.card h3{font-size:21px;margin-bottom:8px}
.card p{color:var(--muted);margin:0 0 16px;flex:1}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.chip{flex:none;background:var(--light);color:var(--steel);border:1px solid var(--line);font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap}

pre.code{background:var(--codebg);border-left:3px solid var(--gold);border-radius:8px;padding:14px 16px;overflow:auto;margin:0 0 14px;flex:1}
pre.code code{font-family:"Courier New",ui-monospace,monospace;font-size:13px;color:#1A1A2E;white-space:pre;line-height:1.5}

.btn{align-self:flex-start;display:inline-block;background:var(--navy);color:#fff;border:0;border-radius:8px;padding:10px 18px;font-size:15px;font-weight:600;cursor:pointer;transition:background .15s}
.btn:hover{background:var(--steel);text-decoration:none;color:#fff}
.btn.gold{background:var(--gold)}
.btn.done{background:var(--gold)}
.btn-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.meta{color:var(--muted);font-size:13px}

table.ref{border-collapse:collapse;width:100%;margin:6px 0 0;font-size:15px}
table.ref th{background:var(--navy);color:#fff;font-family:Arial;font-size:14px;text-align:left;padding:10px 14px;border:1px solid var(--line)}
table.ref td{padding:9px 14px;border:1px solid var(--line)}
table.ref td.num{text-align:right;font-family:"Courier New",monospace;color:var(--green);font-weight:700}
table.ref tr:nth-child(even) td{background:#F5F8FB}

footer{background:var(--navy);color:#c7d3e0;margin-top:20px}
.foot{padding:26px 24px;display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;align-items:center;font-size:14px}
footer strong{color:#fff}

/* ---- chapters page ---- */
.sec-band{margin:34px 0 14px}
.sec-band h2{font-size:24px}
.sec-band .klabel{color:var(--steel);font-weight:700;letter-spacing:2px;text-transform:uppercase;font-size:12px}
.chrow{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.chnum{flex:none;width:44px;height:44px;border-radius:10px;background:var(--navy);color:#fff;font-family:"Playfair Display",serif;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:18px}
.chmain{flex:1;min-width:220px}
.chmain h3{font-size:18px}
.chmain .cht{color:var(--muted);font-size:14px}
.chlinks{display:flex;gap:8px;flex-wrap:wrap}
.tag{font-size:13px;font-weight:600;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--steel)}
.tag:hover{background:var(--light);text-decoration:none}
.tag.file{color:var(--green);border-color:#cfe6d6;background:#f4fbf6}
.tag.muted{color:var(--muted);background:#f7f9fb;cursor:default}
/* ---- bonus / gate ---- */
.gate{background:linear-gradient(180deg,#fff,var(--light));border:1px solid var(--line);border-radius:16px;padding:34px;margin:8px 0 0}
.gate h2{font-size:26px}
.gate ul{color:var(--ink);margin:16px 0 22px;padding-left:20px}
.gate li{margin:7px 0}
.gate-form{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.gate-form input[type=email]{flex:1;min-width:240px;padding:13px 16px;border:1px solid var(--line);border-radius:8px;font-size:16px;font-family:inherit}
.gate-form input[type=email]:focus{outline:none;border-color:var(--steel)}
.consent{color:var(--muted);font-size:13px;margin-top:12px}
.xsell{border:1px solid var(--line);border-left:4px solid var(--gold);border-radius:0 12px 12px 0;padding:20px 24px;margin-top:26px;background:#FDF8F0}
.xsell h3{font-size:19px;color:var(--navy)}
.xsell p{color:var(--muted);margin:6px 0 12px}

/* ---- cookie banner ---- */
#cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:50;background:var(--navy);color:#e7edf4;display:none}
#cookie-banner.show{display:block}
#cookie-banner .cb{max-width:1080px;margin:0 auto;padding:16px 24px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;justify-content:space-between;font-size:14px}
#cookie-banner a{color:#fff;text-decoration:underline}
#cookie-banner .cb-actions{display:flex;gap:10px;flex-wrap:wrap}
#cookie-banner button{border:0;border-radius:8px;padding:9px 16px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit}
#cookie-banner .accept{background:var(--gold);color:#1a1a1a}
#cookie-banner .reject{background:transparent;color:#fff;border:1px solid #6a819a}
/* ---- legal pages ---- */
.legal{max-width:800px}
.legal h2{font-size:22px;margin:28px 0 8px}
.legal p,.legal li{color:var(--ink)}
.legal ul{padding-left:20px}
.legal .fill{background:#FDF8F0;border:1px dashed var(--gold);border-radius:6px;padding:2px 6px;font-size:14px;color:#8a6d3b}
.legal .updated{color:var(--muted);font-size:14px}
