/* ==========================================================================
   Workflowy.net stylesheet
   Light theme, Poppins, 1140px content width
   ========================================================================== */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --brand: #5587ac;
  --primary: #3b6e97;
  --primary-dark: #2c5778;
  --deep: #22496a;
  --ink: #1b2a39;
  --text: #3c4a59;
  --muted: #627487;
  --line: #dbe5ee;
  --pale: #e9f2f9;
  --bg: #f5f9fc;
  --white: #ffffff;
  --green: #217a52;
  --green-pale: #e8f5ee;
  --amber: #9a5f12;
  --amber-pale: #fbf2e4;
  --radius: 14px;
  --shadow: 0 10px 30px -14px rgba(34, 73, 106, .28);
  --shadow-lg: 0 22px 44px -18px rgba(34, 73, 106, .35);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Poppins", Arial, sans-serif; font-size: 16px; line-height: 1.7;
  overflow-x: hidden; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }
code { font-family: "Poppins", Arial, sans-serif; background: var(--pale); color: var(--deep); padding: .1em .45em; border-radius: 6px; font-size: .9em; word-break: break-word; }
:focus-visible { outline: 3px solid #7fb3dc; outline-offset: 3px; border-radius: 6px; }
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 200; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.ico { width: 24px; height: 24px; flex: none; }
.ico-sm { width: 18px; height: 18px; }
.ico-xs { width: 15px; height: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px; border-radius: 999px; font-weight: 500; font-size: 15px; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 18px -8px rgba(44, 87, 120, .6); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--primary-dark); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-lg small { display: inline; font-weight: 400; opacity: .85; font-size: 13px; margin-left: 2px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; min-height: var(--header-h); background: rgba(245, 249, 252, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
#site-header:empty { display: block; height: var(--header-h); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(34, 73, 106, .35); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.brand:hover { color: var(--ink); }
.main-nav ul { display: flex; list-style: none; gap: 4px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); font-weight: 500; font-size: 15px; transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a.is-active { background: var(--pale); color: var(--deep); }
.header-cta { justify-self: end; }
.main-nav .nav-cta-m { display: none; }
.menu-toggle { display: none; justify-self: end; background: var(--white); border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- Sections (shared) ---------- */
.section { padding: 84px 0 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; letter-spacing: -.015em; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }
.rounded { border-radius: var(--radius); }

/* reveal on scroll (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 1. Hero ---------- */
.hero { padding: 36px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 44px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--deep); background: var(--white); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.025em; margin-bottom: 16px; }
.lead { font-size: 17.5px; color: var(--text); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 22px; }
.os-row { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; color: var(--muted); font-size: 14px; }
.os-row li { display: inline-flex; align-items: center; gap: 6px; }
.os-row .ico { color: var(--brand); }
.hero-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.hero-visual { position: relative; }
.hero-img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 2. About: media + ruled fact list ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-media { margin: 0; }
.about-media img { box-shadow: var(--shadow); }
.about-copy p { font-size: 16.5px; }
.fact-list { margin: 22px 0 0; border-top: 1px solid var(--line); }
.fact-list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact-list dt { font-weight: 700; color: var(--deep); }
.fact-list dd { margin: 0; color: var(--text); }

/* ---------- 3. Features: open icon grid with top rules ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
.feat { position: relative; padding: 22px 6px 0 0; border-top: 2px solid var(--line); transition: border-color .25s, transform .25s; }
.feat::before { content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 2px; background: var(--brand); transition: width .3s; }
.feat:hover { transform: translateY(-3px); }
.feat:hover::before { width: 100%; }
.feat-ico { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; background: var(--pale); color: var(--primary); margin-bottom: 14px; transition: transform .25s; }
.feat:hover .feat-ico { transform: rotate(-8deg) scale(1.06); }
.feat h3 { font-size: 17.5px; margin-bottom: 6px; }
.feat p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- 4. How it works: connected timeline ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; counter-reset: none; }
.steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 34px; border-top: 2px dashed #b9cfe1; }
.step { text-align: center; position: relative; padding: 0 6px; }
.step-ico { position: relative; z-index: 1; display: inline-flex; width: 68px; height: 68px; border-radius: 50%; align-items: center; justify-content: center; background: var(--white); color: var(--primary); border: 2px solid #b9cfe1; box-shadow: 0 0 0 8px var(--bg); transition: background .25s, color .25s, border-color .25s; }
.step:hover .step-ico { background: var(--primary); color: var(--white); border-color: var(--primary); }
.step-tag { display: block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin: 16px 0 4px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- 5. Compatibility: data table ---------- */
.c-table { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.c-row { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 16px; align-items: center; padding: 15px 26px; border-top: 1px solid var(--line); transition: background .2s; }
.c-row:first-child { border-top: 0; }
.c-row:not(.c-headrow):hover { background: #f8fbfe; }
.c-headrow { background: var(--pale); font-size: 13px; font-weight: 700; color: var(--deep); text-transform: uppercase; letter-spacing: .06em; padding-block: 12px; }
.c-plat { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.c-plat .ico { color: var(--primary); }
.c-fmt { color: var(--muted); font-size: 15px; }
.c-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; }
.c-link a:hover .ico { transform: translateX(3px); }
.c-link .ico { transition: transform .2s; }

/* ---------- 6. Use cases: vertical tabs ---------- */
.u-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 34px; align-items: start; }
.u-tabs { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--line); }
.u-tab { display: flex; gap: 14px; align-items: center; text-align: left; background: none; border: 0; padding: 12px 16px; margin-left: -2px; border-left: 2px solid transparent; cursor: pointer; color: var(--muted); border-radius: 0 10px 10px 0; transition: background .2s, color .2s, border-color .2s; }
.u-tab strong { display: block; color: var(--ink); font-size: 16px; font-weight: 500; }
.u-tab small { display: block; font-size: 13.5px; }
.u-tab:hover { background: var(--white); }
.u-tab[aria-selected="true"] { border-left-color: var(--primary); background: var(--white); color: var(--primary); }
.u-tab[aria-selected="true"] strong { color: var(--deep); font-weight: 700; }
.u-panel { padding: 8px 0 0 10px; }
.u-big { display: inline-flex; width: 58px; height: 58px; border-radius: 16px; background: var(--primary); color: var(--white); align-items: center; justify-content: center; margin-bottom: 18px; }
.u-big .ico { width: 28px; height: 28px; }
.u-panel h3 { font-size: 24px; }
.u-panel p { font-size: 16.5px; max-width: 620px; }
.tick { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.tick li { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.tick .ico { color: var(--green); }

/* ---------- 7. Benefits: quote + divided list ---------- */
.ben-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.ben-quote { margin: 0; position: sticky; top: calc(var(--header-h) + 30px); padding-left: 26px; border-left: 4px solid var(--brand); }
.ben-quote p { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.ben-quote span { color: var(--muted); }
.ben-list { list-style: none; }
.ben { display: flex; gap: 18px; padding: 20px 10px; border-bottom: 1px solid var(--line); border-radius: 10px; transition: background .2s; }
.ben:first-child { padding-top: 0; }
.ben:hover { background: rgba(255, 255, 255, .7); }
.ben > .ico { color: var(--primary); width: 28px; height: 28px; margin-top: 2px; }
.ben h3 { font-size: 18px; margin-bottom: 4px; }
.ben p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- 8. Install: three columns divided ---------- */
.inst-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.inst-col { padding: 4px 30px; border-left: 1px solid var(--line); }
.inst-col:first-child { border-left: 0; padding-left: 0; }
.inst-col:last-child { padding-right: 0; }
.inst-col h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--deep); margin-bottom: 18px; }
.inst-col h3 .ico { color: var(--primary); }
.inst-col ul { list-style: none; display: grid; gap: 16px; }
.inst-col li { display: flex; gap: 12px; }
.inst-col li .ico { color: var(--brand); margin-top: 4px; }
.inst-col strong { display: block; color: var(--ink); font-weight: 500; }
.inst-col span { color: var(--muted); font-size: 15px; }
.inst-mobile { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; text-align: center; margin: 34px 0 0; color: var(--muted); font-size: 15px; }
.inst-mobile .ico { color: var(--primary); }

/* ---------- 9. Download panel ---------- */
.dl-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.dl-media { background: linear-gradient(160deg, #eef5fb, #e2edf7); display: flex; align-items: center; padding: 28px; }
.dl-media img { width: 100%; }
.dl-body { padding: 36px 38px; }
.dl-body h3 { font-size: 24px; }
.dl-body > p { color: var(--muted); }
.dl-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 16px; }
.dl-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, background .2s, transform .2s; }
.dl-list a:hover { border-color: var(--brand); background: #f6fafd; transform: translateY(-2px); }
.dl-list a > .ico:first-child { color: var(--primary); }
.dl-list span { flex: 1; min-width: 0; }
.dl-list strong { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.dl-list small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.dl-list .go { color: var(--muted); }
.dl-note { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- 10. Safety strip ---------- */
.safe-strip { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.safe-strip li { padding: 26px 20px; border-left: 1px solid var(--line); text-align: center; transition: background .2s; }
.safe-strip li:first-child { border-left: 0; }
.safe-strip li:hover { background: #f8fbfe; }
.safe-strip .ico { color: var(--primary); width: 30px; height: 30px; margin: 0 auto 12px; }
.safe-strip h3 { font-size: 16px; margin-bottom: 6px; }
.safe-strip p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- 11. Pros and cons ---------- */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pc-col { padding: 30px 34px; transition: box-shadow .2s; }
.pc-col h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.pros { background: var(--green-pale); }
.pros h3 { color: var(--green); }
.cons { background: var(--amber-pale); }
.cons h3 { color: var(--amber); }
.pc-col ul { list-style: none; display: grid; gap: 12px; }
.pc-col li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); transition: transform .2s; }
.pc-col li:hover { transform: translateX(4px); }
.pros .ico { color: var(--green); }
.cons .ico { color: var(--amber); }

/* ---------- 12. Release info: rail ---------- */
.rel-wrap { display: grid; gap: 0; max-width: 860px; margin: 0 auto; position: relative; }
.rel-wrap::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.rel-item { display: flex; gap: 22px; padding: 0 0 26px; position: relative; }
.rel-item > .ico { flex: none; width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); color: var(--primary); position: relative; }
.rel-item h3 { font-size: 18px; margin: 10px 0 6px; }
.rel-item p { color: var(--muted); margin: 0; }

/* ---------- 13. Troubleshooting ---------- */
.tr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; }
.tr-item { padding-left: 18px; border-left: 3px solid var(--pale); transition: border-color .25s; }
.tr-item:hover { border-color: var(--brand); }
.tr-item .ico { color: var(--primary); margin-bottom: 10px; }
.tr-item h3 { font-size: 17px; margin-bottom: 6px; }
.tr-item p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- 14. Guides preview ---------- */
.g-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; margin-bottom: 30px; }
.g-feature, .g-small { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s; }
.g-feature:hover, .g-small:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d9e7; color: var(--text); }
.g-feature img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.g-feature > div { padding: 22px 26px 26px; }
.g-feature h3 { font-size: 22px; }
.g-side { display: grid; gap: 26px; }
.g-small { display: grid; grid-template-columns: 44% 1fr; }
.g-small img { height: 100%; object-fit: cover; aspect-ratio: auto; }
.g-small > div { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.g-small h3 { font-size: 17px; }
.chip { display: inline-block; background: var(--pale); color: var(--deep); font-size: 12.5px; font-weight: 500; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 500; font-size: 14.5px; }

/* ---------- 15. FAQ ---------- */
.faq { padding-bottom: 90px; }
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.faq-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--white); color: var(--text); padding: 10px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all .2s; }
.faq-tabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--white); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 17px; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: 0; padding: 18px 4px; text-align: left; color: var(--ink); font-size: 16.5px; font-weight: 500; cursor: pointer; }
.faq-q:hover { color: var(--primary); }
.faq-ico { color: var(--primary); transition: transform .25s; }
.faq-q[aria-expanded="true"] .faq-ico { transform: rotate(45deg); }
.faq-a { padding: 0 4px 18px; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.f-brand p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 380px; }
.f-title { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--deep); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--text); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; font-size: 14px; color: var(--muted); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-bottom a { font-size: 14px; color: var(--primary); font-weight: 500; }

/* ---------- Scroll to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-dark); }

/* ---------- Inner pages ---------- */
.page-wrap, .article-wrap { padding: 28px 0 80px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--primary); }
.page-head { text-align: center; max-width: 760px; margin: 10px auto 40px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em; }
.page-head p { color: var(--muted); font-size: 17px; margin: 0; }
.page-prose { max-width: 820px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 40px 46px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--radius); background: var(--pale); margin: 8px 0 26px; }
.contact-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.contact-card strong { color: var(--ink); }
.contact-card .email { margin: 0; font-size: 18px; color: var(--deep); font-weight: 500; user-select: all; }

/* Blog listing */
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.b-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s; }
.b-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d9e7; color: var(--text); }
.b-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.b-card > div { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.b-card h2 { font-size: 18.5px; margin-bottom: 8px; }
.b-card p { font-size: 14.5px; color: var(--muted); flex: 1; }

/* Article */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.post-head h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; margin-bottom: 12px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.post-img { margin: 22px 0 30px; }
.post-img img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 17px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 27px); margin: 1.7em 0 .6em; letter-spacing: -.01em; }
.prose h3 { font-size: 19.5px; margin: 1.4em 0 .5em; }
.prose p { margin-bottom: 1.05em; }
.prose ul { list-style: none; margin: 0 0 1.3em; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--pale); }
.prose a { text-decoration: underline; text-decoration-color: rgba(59, 110, 151, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; background: var(--white); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--pale); color: var(--deep); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.post .prose > h2:first-child { margin-top: 0; }

.sidebar { position: sticky; top: calc(var(--header-h) + 18px); }
.side-inner { max-height: calc(100vh - var(--header-h) - 36px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; display: grid; gap: 20px; scrollbar-width: thin; scrollbar-color: #bfd2e2 transparent; }
.side-inner::-webkit-scrollbar { width: 6px; }
.side-inner::-webkit-scrollbar-thumb { background: #bfd2e2; border-radius: 6px; }
.side-cta { background: var(--primary); color: #e9f2f9; border-radius: var(--radius); padding: 22px; }
.side-cta > .ico { width: 30px; height: 30px; color: var(--white); margin-bottom: 8px; }
.side-cta h2 { color: var(--white); font-size: 19px; margin-bottom: 4px; }
.side-cta p { font-size: 14px; margin-bottom: 14px; }
.side-cta .btn-primary { background: var(--white); color: var(--primary-dark); box-shadow: none; }
.side-cta .btn-primary:hover { background: var(--pale); }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-box h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--deep); margin-bottom: 12px; }
.toc { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--text); border-left: 2px solid transparent; line-height: 1.45; }
.toc a:hover, .toc a.is-active { background: var(--pale); color: var(--deep); border-left-color: var(--primary); }
.side-posts { list-style: none; display: grid; gap: 10px; }
.side-posts a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; color: var(--ink); font-size: 14px; line-height: 1.4; font-weight: 500; padding: 4px; border-radius: 10px; transition: background .2s; }
.side-posts a:hover { background: var(--pale); color: var(--deep); }
.side-posts .thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; }

.related { margin-top: 64px; }
.related > h2 { text-align: center; font-size: clamp(24px, 3vw, 32px); margin-bottom: 26px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rel-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); padding-bottom: 20px; transition: transform .25s, box-shadow .25s; }
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.rel-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 14px; }
.rel-card h3 { font-size: 17px; padding: 0 20px; }
.rel-card .more { padding: 0 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 10px; font-size: 14.5px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}
@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(34, 73, 106, .45); padding: 12px 20px 20px; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 16px; border-radius: 10px; }
  .main-nav .nav-cta-m { display: flex; width: 100%; margin-top: 12px; color: var(--white); border-radius: 999px; }
  .hero-grid, .about-grid, .ben-grid, .dl-panel { grid-template-columns: 1fr; }
  .hero-grid { gap: 30px; }
  .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .ben-quote { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .u-wrap { grid-template-columns: 1fr; }
  .u-tabs { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--line); gap: 0; scrollbar-width: none; }
  .u-tabs::-webkit-scrollbar { display: none; }
  .u-tab { flex: none; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -2px; border-radius: 10px 10px 0 0; padding: 10px 14px; }
  .u-tab small { display: none; }
  .u-tab[aria-selected="true"] { border-bottom-color: var(--primary); }
  .u-panel { padding-left: 0; }
  .inst-grid { grid-template-columns: 1fr; gap: 30px; }
  .inst-col, .inst-col:first-child { border-left: 0; padding: 0 0 26px; border-bottom: 1px solid var(--line); }
  .inst-col:last-child { border-bottom: 0; padding-bottom: 0; }
  .safe-strip { grid-template-columns: repeat(2, 1fr); }
  .safe-strip li { border-left: 0; border-top: 1px solid var(--line); }
  .safe-strip li:nth-child(-n+2) { border-top: 0; }
  .safe-strip li:nth-child(even) { border-left: 1px solid var(--line); }
  .safe-strip li:last-child { grid-column: 1 / -1; border-left: 0; }
  .tr-grid { grid-template-columns: repeat(2, 1fr); }
  .g-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .b-grid, .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .side-inner { max-height: none; overflow: visible; padding-right: 0; }
}
@media (max-width: 680px) {
  .section { padding-top: 64px; }
  .sec-head { margin-bottom: 32px; }
  .sec-head p { font-size: 16px; }
  .hero { padding-top: 22px; }
  .lead { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .fact-list div { grid-template-columns: 1fr; gap: 2px; }
  .feat-grid, .steps, .tr-grid, .pc-grid, .b-grid, .rel-grid { grid-template-columns: 1fr; }
  .c-headrow { display: none; }
  .c-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .c-fmt { padding-left: 36px; }
  .c-link { padding-left: 36px; }
  .dl-body { padding: 26px 20px; }
  .dl-list { grid-template-columns: 1fr; }
  .safe-strip { grid-template-columns: 1fr; }
  .safe-strip li, .safe-strip li:nth-child(even) { border-left: 0; border-top: 1px solid var(--line); }
  .safe-strip li:first-child { border-top: 0; }
  .safe-strip li:nth-child(2) { border-top: 1px solid var(--line); }
  .pc-col { padding: 24px 20px; }
  .g-small { grid-template-columns: 1fr; }
  .g-small img { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; }
  .page-prose { padding: 26px 20px; }
  .prose { font-size: 16px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 28px); }
  .brand { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Consistent max-width layouts and illustrated site navigation */
.container { width: min(1140px, calc(100% - 40px)); }
.main-nav ul a { display: inline-flex; align-items: center; gap: 7px; }
.nav-icon { width: 17px; height: 17px; flex-shrink: 0; }
.site-footer .f-brand .brand { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--ink); gap: 10px; }
.site-footer .f-brand .brand img { width: 38px; height: 38px; }
.section .container, .page-wrap, .footer-grid, .header-inner { max-width: 1140px; }
@media (max-width: 680px) { .container { width: calc(100% - 30px); } }
