/* Ledgely — warm editorial redesign. No external fonts, stylesheets, or scripts. */
:root {
  color-scheme: dark;
  --bg: #12130f;
  --bg-soft: #181914;
  --panel: #1c1d17;
  --panel-2: #22231b;
  --panel-3: #29291f;
  --ink: #f1eee2;
  --ink-2: #d6d1c2;
  --muted: #aaa797;
  --quiet: #817f72;
  --line: rgba(230, 225, 204, .13);
  --line-strong: rgba(230, 225, 204, .22);
  --green: #228450;
  --green-2: #2d9c62;
  --mint: #c2efd2;
  --gold: #e7ad22;
  --gold-soft: #f6d481;
  --danger: #e37d69;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--mint); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}
::selection { color: #10120f; background: var(--mint); }

.skip-link {
  position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-160%);
  border-radius: 8px; padding: 10px 14px; color: #10120f; background: var(--mint); font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(790px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 78px; }
.section.compact { padding-block: 48px; }
.section-rule { border-top: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px;
  color: var(--gold-soft); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .8; }
.display, h1, h2, h3, h4 { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 5vw, 4.7rem); line-height: 1.03; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); line-height: 1.12; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; }
h4 { font-size: 1rem; line-height: 1.35; }
p { margin: 0 0 1.1em; }
.lede { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; }
.small { font-size: .86rem; color: var(--muted); }
.fine { color: var(--quiet); font-size: .77rem; line-height: 1.55; }
.accent { color: var(--mint); }
.gold { color: var(--gold-soft); }
.muted { color: var(--muted); }
.green-text { color: var(--mint); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { max-width: 680px; margin-bottom: 0; }
.section-heading p { max-width: 420px; margin: 0; color: var(--muted); }
.center { text-align: center; }
.center .section-heading { justify-content: center; text-align: center; }
.center .section-heading p { margin-inline: auto; }

.site-header {
  position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--line);
  background: rgba(18, 19, 15, .88); backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(225, 183, 93, .42); border-radius: 10px; background: #17140d; box-shadow: 0 5px 22px rgba(224, 173, 66, .12); }
.brand-mark img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.brand-name { font-family: var(--serif); font-size: 1.42rem; font-weight: 700; letter-spacing: -.035em; }
.brand-name span { color: var(--mint); }
.nav-wrap { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .91rem; font-weight: 600; transition: color .18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--mint); }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 21px; height: 21px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px;
  padding: 0 18px; border: 1px solid transparent; border-radius: 10px; background: var(--green-2); color: #f6fff9;
  font-weight: 750; font-size: .92rem; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); background: #35a66c; color: #fff; box-shadow: 0 10px 26px rgba(34, 132, 80, .22); }
.button.secondary { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.button.secondary:hover { border-color: var(--green-2); background: rgba(45, 156, 98, .09); color: var(--mint); box-shadow: none; }
.button.gold-button { color: #17140b; background: var(--gold); }
.button.gold-button:hover { background: #f2bd3e; color: #14120d; }
.button.small-button { min-height: 38px; padding-inline: 13px; font-size: .83rem; }
.button svg { width: 16px; height: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); text-decoration: none; font-weight: 700; font-size: .9rem; }
.text-link:hover { color: var(--gold-soft); }
.arrow { font-size: 1.1em; transition: transform .18s ease; }
.text-link:hover .arrow { transform: translateX(3px); }

.hero { padding-block: 66px 40px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(36px, 6vw, 86px); align-items: center; }
.hero-copy { padding-block: 16px; }
.hero-copy h1 { max-width: 700px; margin-bottom: 22px; }
.hero-copy .lede { max-width: 600px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 20px; }
.hero-note { display: flex; align-items: flex-start; gap: 9px; max-width: 525px; color: var(--quiet); font-size: .8rem; line-height: 1.5; }
.check-dot { flex: 0 0 auto; width: 19px; height: 19px; display: inline-grid; place-items: center; border-radius: 99px; color: var(--mint); background: rgba(45,156,98,.17); font-size: 12px; font-weight: 900; }
.hero-art { position: relative; min-height: 475px; border-radius: 24px; overflow: hidden; background: #29291f; box-shadow: var(--shadow); isolation: isolate; }
.hero-art > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 51% 50%; }
.hero-art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,15,12,.03) 35%, rgba(14,15,12,.78) 100%), linear-gradient(90deg, rgba(14,15,12,.1), transparent 60%); }
.photo-label { position: absolute; right: 18px; top: 18px; display: inline-flex; gap: 8px; align-items: center; padding: 8px 11px; border: 1px solid rgba(244,240,222,.3); border-radius: 999px; color: #fff; background: rgba(20,21,15,.48); backdrop-filter: blur(8px); font-size: .7rem; font-weight: 700; }
.photo-caption { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.photo-caption strong { display: block; max-width: 320px; font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; }
.photo-caption span { color: rgba(255,255,255,.75); font-size: .82rem; }
.photo-caption .round-arrow { flex: 0 0 auto; display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: white; font-size: 1.2rem; text-decoration: none; }

.promise-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--line); }
.promise-item { display: flex; align-items: center; gap: 13px; min-height: 82px; padding: 17px 20px; background: var(--bg-soft); }
.promise-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(45,156,98,.28); border-radius: 10px; color: var(--mint); background: rgba(45,156,98,.1); }
.promise-icon svg { width: 17px; height: 17px; }
.promise-item strong { display: block; font-size: .87rem; line-height: 1.3; }
.promise-item span:not(.promise-icon) { color: var(--muted); font-size: .77rem; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 45%), var(--panel); box-shadow: 0 10px 35px rgba(0,0,0,.12); }
.panel-pad { padding: 26px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.topic-card { position: relative; display: flex; flex-direction: column; min-height: 170px; padding: 21px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--panel); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.topic-card:hover { transform: translateY(-3px); border-color: rgba(76,171,112,.6); background: #20241c; color: var(--ink); }
.topic-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.topic-icon { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 12px; color: #133d26; background: var(--mint); }
.topic-icon svg { width: 19px; height: 19px; }
.topic-arrow { color: var(--quiet); font-size: 1.1rem; }
.topic-card h3, .topic-card h2 { margin-bottom: 7px; font-family: var(--sans); font-size: 1rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
.topic-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.topic-links { display: grid; gap: 8px; margin: 15px 0 0; padding: 0; list-style: none; }
.topic-links a { color: var(--mint); font-size: .79rem; font-weight: 650; line-height: 1.4; text-decoration: none; }
.topic-links a:hover { color: var(--gold-soft); text-decoration: underline; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: transform .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.feature-card > a { display: block; color: inherit; text-decoration: none; }
.feature-image { aspect-ratio: 1.55 / 1; overflow: hidden; background: var(--panel-3); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.feature-card:hover .feature-image img { transform: scale(1.035); }
.feature-body { padding: 20px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 99px; color: var(--mint); background: rgba(45,156,98,.14); font-size: .69rem; font-weight: 750; letter-spacing: .02em; }
.pill.gold-pill { color: var(--gold-soft); background: rgba(231,173,34,.12); }
.feature-card h3 { margin: 12px 0 9px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.feature-card p { margin: 0 0 16px; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 13px; color: var(--quiet); font-size: .72rem; }

.tool-feature { display: grid; grid-template-columns: .88fr 1.12fr; gap: 30px; align-items: stretch; overflow: hidden; padding: 8px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.tool-intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 44px); }
.tool-intro h2 { margin-bottom: 15px; }
.tool-intro p { max-width: 430px; color: var(--muted); }
.tool-form-wrap { padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 16px; background: #171812; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { color: var(--ink-2); font-size: .82rem; font-weight: 700; }
.form-field .hint { margin-top: -3px; color: var(--quiet); font-size: .72rem; }
.input-wrap { position: relative; }
.input-prefix { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--quiet); font-size: .9rem; pointer-events: none; }
.input-suffix { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--quiet); font-size: .8rem; pointer-events: none; }
.field-input, .field-select, .field-textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--ink); background: #202119; font-size: .92rem; transition: border .18s ease, background .18s ease;
}
.input-wrap .field-input.has-prefix { padding-left: 29px; }
.input-wrap .field-input.has-suffix { padding-right: 44px; }
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: var(--green-2); background: #24261e; outline: 3px solid rgba(45,156,98,.18); }
.field-input::placeholder, .field-textarea::placeholder { color: #737366; }
.field-textarea { min-height: 140px; resize: vertical; }
.result-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; margin-top: 18px; padding: 19px 20px; border: 1px solid rgba(112,190,137,.27); border-radius: 13px; background: rgba(45,156,98,.09); }
.result-card strong { display: block; color: var(--mint); font-family: var(--serif); font-size: 1.75rem; line-height: 1; }
.result-card span { display: block; margin-top: 7px; color: var(--muted); font-size: .78rem; }
.result-card .result-side { text-align: right; }
.result-card .result-side strong { color: var(--ink); font-family: var(--sans); font-size: 1.05rem; }
.result-card .result-side span { max-width: 170px; }
.tool-disclaimer { margin: 14px 0 0; color: var(--quiet); font-size: .72rem; line-height: 1.55; }

.guide-list { display: grid; gap: 14px; }
.guide-row { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.guide-row:hover { transform: translateY(-2px); border-color: var(--line-strong); color: var(--ink); }
.guide-row-img { width: 100%; aspect-ratio: 1.35 / 1; overflow: hidden; border-radius: 10px; background: var(--panel-3); }
.guide-row-img img { width: 100%; height: 100%; object-fit: cover; }
.guide-row-content h3 { margin: 8px 0; font-family: var(--serif); font-size: 1.35rem; }
.guide-row-content p { margin: 0 0 10px; color: var(--muted); font-size: .85rem; }
.guide-meta { display: flex; gap: 15px; flex-wrap: wrap; color: var(--quiet); font-size: .73rem; }
.search-bar { display: flex; align-items: center; gap: 10px; max-width: 590px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 12px; background: #171812; }
.search-bar svg { flex: 0 0 auto; margin-left: 11px; width: 18px; height: 18px; color: var(--quiet); }
.search-bar input { flex: 1; min-width: 0; border: 0; outline: none; color: var(--ink); background: transparent; padding: 10px 4px; }
.search-bar input::placeholder { color: var(--quiet); }
.search-bar .button { min-height: 40px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0 20px; }
.filter-button { min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: transparent; font-size: .79rem; font-weight: 650; cursor: pointer; }
.filter-button:hover, .filter-button[aria-pressed="true"] { border-color: var(--green-2); color: var(--mint); background: rgba(45,156,98,.13); }
.result-count { margin-bottom: 17px; color: var(--quiet); font-size: .8rem; }

.mini-note { padding: 17px 18px; border-left: 2px solid var(--gold); border-radius: 0 10px 10px 0; color: var(--muted); background: rgba(231,173,34,.06); font-size: .85rem; }
.green-banner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(76,171,112,.28); border-radius: 20px; background: linear-gradient(120deg, #07371e, #0c4927 80%, #0b3a22); }
.green-banner h2 { margin-bottom: 9px; color: #e6f5e9; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.green-banner p { max-width: 670px; margin: 0; color: #bdd6c4; }
.green-banner .button { background: var(--gold); color: #211a08; white-space: nowrap; }

.author-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.avatar { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(231,173,34,.25); border-radius: 50%; color: var(--gold-soft); background: rgba(231,173,34,.1); font-family: var(--serif); font-size: 1.22rem; font-weight: 700; }
.author-card h3 { margin: 1px 0 4px; font-family: var(--sans); font-size: 1rem; letter-spacing: -.02em; }
.author-card p { margin: 0 0 8px; color: var(--muted); font-size: .82rem; }
.author-card .fine { margin: 0; }

.faq-list { display: grid; gap: 10px; max-width: 850px; margin-inline: auto; text-align: left; }
details.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
details.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; flex: 0 0 auto; color: var(--gold-soft); font-size: 1.25rem; font-weight: 400; }
details.faq[open] summary::after { content: '−'; }
details.faq .faq-answer { padding: 0 19px 18px; color: var(--muted); font-size: .89rem; }
details.faq .faq-answer p:last-child { margin-bottom: 0; }

.page-hero { padding-block: 62px 54px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #1b1a14 0%, var(--bg) 100%); }
.page-hero h1 { max-width: 830px; margin-bottom: 17px; font-size: clamp(2.5rem, 5vw, 4rem); }
.page-hero .lede { max-width: 720px; margin-bottom: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 23px; color: var(--quiet); font-size: .78rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--mint); }
.breadcrumbs span[aria-current="page"] { color: var(--ink-2); }

.article-top { padding-block: 50px 25px; }
.article-top h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(2.35rem, 4.7vw, 3.8rem); }
.article-deck { max-width: 780px; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.article-meta { display: flex; flex-wrap: wrap; gap: 11px 20px; align-items: center; margin-top: 23px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--quiet); font-size: .79rem; }
.article-meta strong { color: var(--ink-2); }
.article-layout { display: grid; grid-template-columns: minmax(0, 770px) 250px; gap: clamp(38px, 7vw, 92px); align-items: start; }
.article-body { color: var(--ink-2); font-size: 1.02rem; line-height: 1.82; }
.article-body h2 { margin: 2.2em 0 .65em; color: var(--ink); font-size: clamp(1.65rem, 3vw, 2.15rem); }
.article-body h3 { margin: 1.7em 0 .55em; color: var(--ink); font-family: var(--sans); font-size: 1.12rem; font-weight: 750; letter-spacing: -.02em; }
.article-body p { margin-bottom: 1.15em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.35em; }
.article-body li { margin: .48em 0; padding-left: .18em; }
.article-body a { color: var(--mint); }
.article-body strong { color: var(--ink); }
.answer-box { margin: 7px 0 32px; padding: 21px 23px; border: 1px solid rgba(45,156,98,.28); border-left: 3px solid var(--green-2); border-radius: 0 13px 13px 0; color: var(--ink-2); background: rgba(45,156,98,.08); }
.answer-box .answer-label { display: block; margin-bottom: 7px; color: var(--mint); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.answer-box p:last-child { margin-bottom: 0; }
.article-figure { margin: 28px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.article-figure img { width: 100%; max-height: 410px; object-fit: cover; }
.article-figure figcaption { padding: 10px 14px; color: var(--quiet); font-size: .73rem; }
.callout { margin: 26px 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.callout h3 { margin-top: 0; }
.source-list { display: grid; gap: 10px; padding-left: 0 !important; list-style: none; }
.source-list li { padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.source-list small { display: block; color: var(--quiet); font-size: .74rem; }
.article-aside { position: sticky; top: 102px; display: grid; gap: 13px; }
.article-aside .author-card { grid-template-columns: 1fr; padding: 18px; }
.article-aside .avatar { width: 42px; height: 42px; }
.aside-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.aside-card h3 { margin-bottom: 11px; font-family: var(--sans); font-size: .87rem; letter-spacing: -.01em; }
.toc { display: grid; gap: 9px; }
.toc a { color: var(--muted); font-size: .77rem; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--mint); }
.toc-list { display: grid; gap: 8px; margin: 0 0 13px; padding-left: 1.05em; color: var(--muted); }
.toc-list li { font-size: .77rem; line-height: 1.45; }
.toc-list a { color: var(--muted); }
.toc-list a:hover { color: var(--mint); }
.article-aside .small { font-size: .76rem; line-height: 1.5; }

.pro-system-grid .topic-card { min-height: 100%; }
.pro-system-grid .topic-card > .eyebrow { margin: 0 0 8px; font-size: .66rem; line-height: 1.4; }
.pro-system-grid .topic-card h2 { margin: 0 0 9px; font-family: var(--serif); font-size: 1.48rem; }
.pro-system-grid .topic-card h3 { margin: 18px 0 8px; color: var(--ink); font-size: .83rem; }
.pro-system-grid .topic-card .pro-deliverables { flex: 1; margin: 0 0 17px; padding-left: 1.15em; color: var(--muted); }
.pro-system-grid .topic-card .pro-deliverables li { margin: .42em 0; font-size: .8rem; line-height: 1.48; }
.pro-system-grid .topic-card .fine { margin: 0 0 15px; font-size: .75rem; }
.pro-system-grid .topic-card .text-link { margin-top: auto; }
.pro-value-grid .feature-card, .pro-price-grid .feature-card { padding: 23px; }
.pro-value-grid .feature-card .topic-icon { margin-bottom: 17px; }
.pro-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 850px; }
.pro-price { margin: 8px 0 10px !important; color: var(--ink) !important; font-family: var(--serif); font-size: 2.4rem !important; line-height: 1.1 !important; }
.pro-price span { color: var(--quiet); font: 700 .74rem var(--sans); letter-spacing: .02em; }
.pro-bundle-card { border-color: rgba(45,156,98,.42); background: linear-gradient(145deg, rgba(45,156,98,.1), transparent 55%), var(--panel); }

.tool-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.tool-card { display: flex; flex-direction: column; min-height: 240px; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.tool-card .tool-symbol { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 19px; border-radius: 12px; color: var(--mint); background: rgba(45,156,98,.14); }
.tool-card .tool-symbol svg { width: 20px; height: 20px; }
.tool-card h3 { margin-bottom: 9px; font-family: var(--sans); font-size: 1.05rem; font-weight: 750; letter-spacing: -.025em; }
.tool-card p { flex: 1; margin-bottom: 16px; color: var(--muted); font-size: .84rem; }
.calculator-section { scroll-margin-top: 100px; padding-block: 35px; border-top: 1px solid var(--line); }
.calculator-section:first-of-type { border-top: 0; }
.calculator-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 25px; align-items: start; }
.calculator-copy { padding-top: 9px; }
.calculator-copy h2 { margin-bottom: 12px; }
.calculator-copy p { color: var(--muted); }
.form-card { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.form-card .form-grid { margin-bottom: 15px; }
.math-note { padding: 12px 14px; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.035); font-size: .76rem; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: 13px; text-align: center; background: var(--panel); }
.stat-card strong { display: block; color: var(--mint); font-family: var(--serif); font-size: 1.45rem; }
.stat-card span { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.principle-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.principle-card .number { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 17px; border-radius: 9px; color: var(--gold-soft); background: rgba(231,173,34,.12); font-size: .77rem; font-weight: 800; }
.principle-card h3 { margin-bottom: 8px; font-family: var(--sans); font-size: .98rem; font-weight: 750; letter-spacing: -.02em; }
.principle-card p { margin: 0; color: var(--muted); font-size: .81rem; }

.legal-page { padding-block: 54px 90px; }
.legal-page h1 { max-width: 800px; margin-bottom: 14px; font-size: clamp(2.3rem, 4vw, 3.35rem); }
.legal-page .updated { margin-bottom: 30px; color: var(--quiet); font-size: .8rem; }
.legal-body { color: var(--ink-2); font-size: .97rem; line-height: 1.8; }
.legal-body h2 { margin: 2.1em 0 .55em; font-size: 1.65rem; }
.legal-body h3 { margin: 1.7em 0 .4em; font-family: var(--sans); font-size: 1rem; font-weight: 750; letter-spacing: -.02em; }
.legal-body a { color: var(--mint); }
.legal-body li { margin: .45em 0; }
.legal-warning { padding: 16px 18px; border: 1px solid rgba(231,173,34,.25); border-radius: 11px; color: var(--gold-soft); background: rgba(231,173,34,.08); font-size: .84rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 20px; align-items: start; }

.site-footer { margin-top: 20px; border-top: 1px solid var(--line); background: #0e1b12; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 42px; padding-block: 55px 42px; }
.footer-brand .brand { margin-bottom: 17px; }
.footer-brand p { max-width: 380px; margin-bottom: 15px; color: #b7cabb; font-size: .85rem; }
.footer-group h3 { margin: 5px 0 17px; color: var(--gold-soft); font-family: var(--serif); font-size: 1.02rem; letter-spacing: .02em; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #bdcbbf; font-size: .82rem; text-decoration: none; }
.footer-links a:hover { color: #effff2; }
.footer-bottom { display: flex; justify-content: space-between; gap: 22px; padding-block: 17px 22px; border-top: 1px solid rgba(219,235,219,.1); color: #93a495; font-size: .72rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }

.no-results { display: none; padding: 34px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); text-align: center; }
.hidden { display: none !important; }

@media (max-width: 960px) {
  .nav-wrap { gap: 14px; }
  .nav-links { gap: 16px; }
  .hero-grid { gap: 38px; }
  .hero-art { min-height: 410px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .calculator-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 14px 17px 20px;
    border-bottom: 1px solid var(--line); background: rgba(18,19,15,.98); box-shadow: 0 18px 30px rgba(0,0,0,.28);
  }
  .nav-links.is-open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .nav-links a { padding: 12px; border-radius: 8px; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(45,156,98,.1); }
}

@media (max-width: 760px) {
  .container, .narrow { width: min(100% - 34px, var(--content)); }
  .section { padding-block: 60px; }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: grid; place-items: center; }
  .header-cta { display: none; }
  .nav-wrap { gap: 10px; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 14px 17px 20px;
    border-bottom: 1px solid var(--line); background: rgba(18,19,15,.98); box-shadow: 0 18px 30px rgba(0,0,0,.28);
  }
  .nav-links.is-open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .nav-links a { padding: 12px; border-radius: 8px; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(45,156,98,.1); }
  .hero { padding-top: 39px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy h1 { max-width: 620px; font-size: clamp(2.6rem, 10vw, 4rem); }
  .hero-art { min-height: 370px; }
  .promise-row { grid-template-columns: 1fr; }
  .promise-item { min-height: 70px; }
  .topic-grid, .feature-grid, .tool-cards, .principle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-card { min-height: 158px; }
  .tool-feature { grid-template-columns: 1fr; gap: 0; }
  .tool-intro { padding: 25px 22px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 12px; }
  .section-heading p { max-width: 560px; }
  .page-hero { padding-block: 46px 40px; }
  .article-top { padding-top: 37px; }
  .article-aside { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  body { font-size: 14px; }
  .container, .narrow { width: calc(100% - 28px); }
  .brand-name { font-size: 1.28rem; }
  .hero { padding-top: 30px; }
  .hero-copy h1 { font-size: clamp(2.45rem, 12vw, 3.35rem); }
  .hero-art { min-height: 310px; border-radius: 18px; }
  .photo-caption { left: 17px; right: 17px; bottom: 17px; }
  .photo-caption strong { font-size: 1.27rem; }
  .topic-grid, .feature-grid, .tool-cards, .principle-grid, .stat-strip { grid-template-columns: 1fr; }
  .topic-card { min-height: 132px; }
  .feature-body { padding: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; }
  .result-card .result-side { text-align: left; }
  .result-card .result-side span { max-width: none; }
  .guide-row { grid-template-columns: 1fr; gap: 15px; }
  .guide-row-img { aspect-ratio: 1.8 / 1; }
  .search-bar { flex-wrap: wrap; }
  .search-bar input { min-width: 140px; }
  .search-bar .button { flex: 0 0 auto; }
  .green-banner { grid-template-columns: 1fr; }
  .green-banner .button { justify-self: start; }
  .article-body { font-size: .96rem; }
  .article-meta { gap: 8px 13px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 24px 15px; }
  .footer-bottom { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Optional, page-specific React Bits islands. Static links remain as fallbacks. */
.gallery-shell { margin-top: 34px; }
#ledgely-gallery-root { position: relative; height: clamp(320px, 42vw, 440px); border-radius: 18px; overflow: hidden; }
.gallery-fallback { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gallery-fallback li { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.gallery-fallback img { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.gallery-fallback li > div { padding: 15px; }
.gallery-fallback h3 { margin: 0 0 6px; font-family: var(--sans); font-size: 1rem; letter-spacing: -.02em; }
.gallery-fallback p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
[data-gallery-shell][data-enhanced] .gallery-fallback { display: none; }

/* AnimatedList topic directory; category cards below remain the no-JS fallback. */
.topics-browser-panel {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(20px, 3vw, 34px);
  margin: 0 0 30px;
  padding: clamp(19px, 3vw, 30px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(44, 74, 49, .34), var(--panel));
}
.topics-browser-copy { min-width: 0; }
.topics-browser-copy .eyebrow { margin-bottom: 9px; }
.topics-browser-copy h2 { margin: 0 0 11px; font-family: var(--serif); font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.12; }
.topics-browser-copy > p:not(.eyebrow) { max-width: 440px; color: var(--muted); font-size: .91rem; line-height: 1.62; }
.topics-browser-copy [role="status"] { margin: 18px 0 0; color: var(--mint); font-size: .79rem; font-weight: 650; }
.topics-browser-list { min-width: 0; }
#ledgely-topics-list-root { width: 100%; min-width: 0; }
.topics-browser-fallback { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.topics-browser-fallback a { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--bg-soft); font-size: .86rem; font-weight: 650; text-decoration: none; }
.topics-browser-fallback a::after { color: var(--gold-soft); content: '→'; }
.topics-browser-fallback a:hover { border-color: var(--green-2); color: var(--mint); }
[data-topics-list-shell][data-enhanced] .topics-browser-fallback { display: none; }
.topic-card[hidden] { display: none !important; }
.topic-grid [id^="topic-"] { scroll-margin-top: 88px; }

.coverage-stat { display: inline-flex; align-items: center; gap: 13px; margin: 14px 0 22px; padding: 12px 17px 12px 12px; border: 1px solid rgba(231, 173, 34, .27); border-radius: 14px; background: rgba(231, 173, 34, .065); }
.coverage-stat__number-fallback,
#ledgely-agent-count-root { display: inline-flex; align-items: center; justify-content: center; min-width: 60px; min-height: 54px; color: var(--gold-soft); font-family: var(--serif); font-size: 2.45rem; font-weight: 800; line-height: 1; }
.coverage-stat__label strong,
.coverage-stat__label span { display: block; }
.coverage-stat__label strong { color: var(--ink); font-size: .9rem; }
.coverage-stat__label span { color: var(--muted); font-size: .8rem; }
.coverage-stat__sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
[data-coverage-stat][data-enhanced] .coverage-stat__number-fallback { display: none; }

.ledgely-tools-menu-panel { margin: 8px 0 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.ledgely-tools-menu-panel h2 { margin: 0 0 5px; font-size: 1.45rem; }
.ledgely-tools-menu-panel p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.ledgely-tools-menu-panel .branched-menu { max-width: 100%; }

@media (max-width: 760px) {
  .gallery-fallback { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics-browser-panel { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-fallback li, .topics-browser-fallback a { transition: none !important; }
}
