/*
Theme Name: ConexGuide v37
Theme URI: https://conexguide.com
Author: Conex Guide
Description: A premium editorial theme for an independent finance and property guide. One responsive design for every screen, article discovery built into the homepage, everything editable from the WordPress admin.
Version: 3.7.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: conex-editorial
*/

/* ---------- Tokens ----------
   Steel Night  #11191d  page
   Container    #172229  surfaces
   Rib          #22323a  raised and hover surfaces
   Weld         #2a3b44  lines
   Fog          #e8edec  text
   Mist         #9db0b4  secondary text
   Accent comes from Customize > Brand & Color (default #4B7C2F) */
:root {
    --bg: #11191d; --surface: #172229; --raised: #1e2d35; --line: #2a3b44;
    --text: #e8edec; --muted: #9db0b4; --paper: #f2f5f4; --footer: #0c1316;
    --accent: #4B7C2F; --accent-ink: #9ccb7a; --accent-deep: #2f5a19; --on-accent: #fff;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wrap: 1180px; --read: 720px; --pad: clamp(18px, 4vw, 40px);
    --r-card: 14px; --r-sm: 10px; --r-lg: 20px;
    --header-bg: rgba(17, 25, 29, .84); --scrim: rgba(5, 9, 11, .7); --shadow-c: rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 70px -34px rgba(0, 0, 0, .85); --shadow-pop: 0 24px 50px -20px rgba(0, 0, 0, .8); color-scheme: dark;
    --field: #5b717a; --warn: #d9a441; --warn-ink: #e5b85c;
    --glass-opacity: .55; --glass-blur: 16px; --glass-radius: 20px; --hero-overlay: .45; --hero-scale: 1;
}

/* ---------- Light scheme (Customize > Header & Reading > Color scheme) ---------- */
/* The scheme lives on <html data-scheme>, so a visitor's sun/moon choice applies before first paint. */
:root[data-scheme="light"] {
    --bg: #ffffff; --surface: #f5f8f6; --raised: #e8efeb; --line: #dce5e0;
    --text: #14212a; --muted: #55696f; --footer: #eef3f0; --field: #74868c; --warn: #b8791a; --warn-ink: #7a4d00;
    --header-bg: rgba(255, 255, 255, .88); --scrim: rgba(18, 30, 36, .55); --shadow-c: rgba(21, 45, 35, .3);
    --shadow-lg: 0 30px 60px -34px rgba(21, 45, 35, .35); --shadow-pop: 0 24px 50px -22px rgba(21, 45, 35, .3);
    color-scheme: light;
}
:root[data-scheme="light"] .topics.is-solid { --accent-ink: var(--accent-deep); }
:root[data-scheme="light"] .topics.is-solid, :root[data-scheme="light"] .topics.is-solid h2, :root[data-scheme="light"] .topics.is-solid a { color: var(--text); }
:root[data-scheme="light"] .topics.is-solid .topic-text span { color: var(--muted); }
:root[data-scheme="light"] .topics.is-solid li + li { border-top-color: var(--line); }
.logo-silhouette { filter: brightness(0); }
.logo-light { display: none; }
:root[data-scheme="light"] .logo-light { display: inline-block; }
:root[data-scheme="light"] .logo-dark { display: none; }
.custom-logo-link { display: inline-flex; align-items: center; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; scroll-behavior: smooth; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
main:focus { outline: none; }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; color: var(--text); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; z-index: 300; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; }
.center { text-align: center; }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.wrap-read { width: min(100% - 2 * var(--pad), var(--read)); margin-inline: auto; }
.page-pad { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px); }

/* ---------- Buttons and chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: 15.5px; cursor: pointer; text-decoration: none !important; transition: background .18s, border-color .18s, color .18s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 84%, #000); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-ink); color: var(--text); }
.btn-glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(8px); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16.5px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 28px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 15px; background: var(--surface); }
.chip:hover { border-color: var(--accent-ink); text-decoration: none; }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); border-radius: 12px; cursor: pointer; }
.icon-btn:hover { background: var(--raised); }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; white-space: nowrap; }

/* ---------- Top bar and header ---------- */
.topbar { background: var(--footer); border-bottom: 1px solid var(--line); font-size: 14px; }
.topbar-in { min-height: 38px; display: flex; align-items: center; }
.topbar p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.topbar p span { color: var(--text); font-weight: 600; margin-right: 6px; }
.site-header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -18px var(--shadow-c); }
.header-in { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.brand { margin-right: auto; display: flex; align-items: center; min-width: 0; }
.brand img, .custom-logo { max-height: 42px; width: auto; }
.brand-text { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--text); }
.brand-text:hover { text-decoration: none; }
.primary-nav { display: none; }
.primary-nav ul { list-style: none; display: flex; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav a { display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px; white-space: nowrap; color: var(--muted); font-weight: 550; font-size: 15.5px; border-radius: 10px; }
.primary-nav a:hover, .primary-nav li.is-current > a { color: var(--text); text-decoration: none; }
.primary-nav li.is-current > a { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s; box-shadow: var(--shadow-pop); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: 0 12px; }
.primary-nav .sub-menu a:hover { background: var(--raised); }
.header-actions { display: flex; align-items: center; gap: 6px; }
@media (min-width: 1060px) {
    .primary-nav { display: block; }
    .menu-btn { display: none; }
}
@media (min-width: 1060px) and (max-width: 1239px) { .primary-nav a { padding: 0 8px; font-size: 14.5px; } .header-in { gap: 14px; } }
@media (max-width: 759px) { .hide-sm { display: none !important; } .topbar { display: none; } }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent-ink); transform-origin: 0 50%; transform: scaleX(0); z-index: 120; }

/* ---------- Drawer and search ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden], .search-overlay[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .2s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(92vw, 400px); background: var(--surface); border-left: 1px solid var(--line); padding: 14px 20px 24px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; transform: translateX(100%); transition: transform .24s ease; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-title { font-family: var(--serif); font-size: 20px; }
.drawer-search { display: flex; border: 1px solid var(--field); border-radius: 12px; background: var(--bg); }
.drawer-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; min-height: 46px; outline: 0; }
.drawer-search button { border: 0; background: transparent; color: var(--muted); padding: 0 14px; cursor: pointer; }
.drawer nav ul { list-style: none; }
.drawer nav a { display: flex; align-items: center; min-height: 52px; font-family: var(--serif); font-size: 20px; color: var(--text); border-bottom: 1px solid var(--line); }
.drawer nav .sub-menu { margin: 0 0 8px 14px; list-style: none; }
.drawer nav .sub-menu a { font-family: var(--sans); font-size: 16px; color: var(--muted); min-height: 44px; }
.drawer-foot { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 12px; }
.search-overlay { position: fixed; inset: 0; z-index: 210; background: var(--scrim); backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s; padding: 12vh var(--pad) 0; }
.search-overlay.is-open { opacity: 1; }
.search-box { width: min(100%, 680px); margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.search-box form { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 18px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; min-height: 54px; border: 0; background: transparent; outline: 0; font-size: 18px; color: var(--text); }
.search-live { list-style: none; border-top: 1px solid var(--line); }
.search-live:empty { display: none; }
.search-live a { display: block; padding: 14px 20px; color: var(--text); border-bottom: 1px solid var(--line); }
.search-live a:hover { background: var(--raised); text-decoration: none; }
.search-none { padding: 16px 20px; color: var(--muted); }
.search-live small { margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.search-live .search-all a { color: var(--accent-ink); font-weight: 600; }
.search-live[aria-busy="true"] { opacity: .55; }

/* ---------- Hero ---------- */
.hero, .topics { --accent-ink: var(--accent-ink-dark, #9ccb7a); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #1b2a31, #11191d); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(17, 25, 29, 0) 55%, var(--bg) 100%), linear-gradient(90deg, rgba(9, 15, 18, .78), rgba(9, 15, 18, 0) 72%), rgba(9, 15, 18, var(--hero-overlay)); }
.hero-ribs { position: absolute; inset: 0; z-index: -1; opacity: .5; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 2px, rgba(0, 0, 0, .1) 2px 5px, transparent 5px 18px); -webkit-mask-image: linear-gradient(90deg, #000, transparent 85%); mask-image: linear-gradient(90deg, #000, transparent 85%); }
.hero-in { display: grid; gap: 32px; padding-block: calc(var(--hero-scale) * clamp(48px, 8vw, 96px)) calc(var(--hero-scale) * clamp(48px, 8vw, 96px) + 56px); align-items: center; }
.hero-copy { max-width: 600px; }
.hero-badge { display: inline-block; padding: 6px 14px; margin-bottom: 18px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 80%, transparent); color: var(--on-accent); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-sub { margin: 18px 0 26px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-pillar { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 12px 16px; max-width: 480px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(9, 15, 18, .42); backdrop-filter: blur(8px); border-radius: 14px; color: #fff; }
.hero-pillar:hover { text-decoration: none; border-color: var(--accent-ink); }
.hero-pillar-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.hero-pillar span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hero-pillar small { color: rgba(255, 255, 255, .66); font-size: 13px; }
.hero-pillar strong { font-weight: 600; font-size: 15px; line-height: 1.35; }
.topics { border-radius: var(--glass-radius); padding: 22px; color: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.topics.is-glass { background: rgba(20, 31, 37, var(--glass-opacity)); backdrop-filter: blur(var(--glass-blur)) saturate(1.2); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2); }
.topics.is-solid { background: var(--surface); border-color: var(--line); }
.topics h2 { font-size: 20px; margin-bottom: 8px; color: #fff; }
.topics ul { list-style: none; }
.topics li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.topics a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; color: #fff; min-height: 56px; }
@media (max-width: 520px) { .topics { padding: 16px; } .topics a { padding: 9px 2px; min-height: 52px; } .topic-ico { width: 36px; height: 36px; } }
.topics a:hover { text-decoration: none; }
.topics a:hover .topic-go { transform: translateX(3px); }
.topic-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--on-accent); }
.topic-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.topic-text strong { font-weight: 600; font-size: 16px; }
.topic-text span { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.topic-go { transition: transform .15s; opacity: .8; }
@media (min-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1fr) 390px; gap: 56px; } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(30px, 5vw, 56px); }
.sec.lead { padding-top: clamp(30px, 5vw, 56px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.sec-head h2, .start-intro h2, .news-copy h2, .trust-panel h2 { font-size: clamp(26px, 3.4vw, 36px); }
.sec-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.tool-ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--raised); color: var(--accent-ink); }

.tools.lead { margin-top: -64px; position: relative; z-index: 3; padding-top: 0; }
.tools-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.tools-panel .sec-head { margin-bottom: 20px; }
.tools-panel .sec-head h2 { font-size: clamp(22px, 2.6vw, 28px); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); color: var(--muted); font-size: 14.5px; line-height: 1.45; transition: border-color .18s, background .18s; }
.tool-card:hover { text-decoration: none; border-color: var(--accent-ink); background: var(--raised); }
.tool-card strong { color: var(--text); font-family: var(--serif); font-size: 17px; line-height: 1.25; font-weight: 600; }
.tool-card .tool-ico { margin-bottom: 6px; background: var(--raised); }
.tools-grid--hub { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 759px) {
    .tools.lead { margin-top: -44px; }
    .tools-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * clamp(20px, 3vw, 32px)); padding: 2px clamp(20px, 3vw, 32px) 8px; scrollbar-width: none; }
    .tools-grid::-webkit-scrollbar { display: none; }
    .tools-grid .tool-card { flex: 0 0 74%; max-width: 270px; scroll-snap-align: start; }
    .tools-grid--hub { display: grid; margin: 0; padding: 0; overflow: visible; }
    .tools-grid--hub .tool-card { flex: initial; max-width: none; }
}

.start-grid { display: grid; gap: 28px; }
.start-intro p { margin: 12px 0 22px; color: var(--muted); max-width: 400px; }
.start-list { list-style: none; counter-reset: s; }
.start-list li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.start-list li:last-child { border-bottom: 1px solid var(--line); }
.start-num { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--accent-ink); width: 34px; flex: none; }
.start-title { font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--text); font-weight: 600; }
.start-list p { margin: 6px 0 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (min-width: 900px) { .start-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color .18s; min-width: 0; }
.card:hover { border-color: color-mix(in srgb, var(--accent-ink) 55%, var(--line)); }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--raised); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); background: linear-gradient(135deg, var(--raised), var(--surface)); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 13.5px; font-weight: 600; color: var(--accent-ink); line-height: 1.3; }
.card-title { font-size: 19px; line-height: 1.3; font-weight: 600; }
.card-title a { color: var(--text); }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-title a:focus-visible { outline: 0; }
.card-title a:focus-visible::after { outline: 2px solid var(--accent-ink); outline-offset: -2px; border-radius: var(--r-card); }
.card-cat { position: relative; z-index: 2; align-self: flex-start; }
.card-title a:hover { color: var(--accent-ink); text-decoration: none; }
.card-excerpt { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.meta { display: flex; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-top: auto; }
.meta span + span::before { content: ""; display: inline-block; width: 1px; height: 11px; background: var(--line); margin: 0 10px; vertical-align: -1px; }
.card-large .card-body { padding: clamp(20px, 3vw, 30px); gap: 12px; }
.card-large .card-title { font-size: clamp(24px, 3vw, 32px); }
.card-large .card-img { aspect-ratio: 16 / 9; }
.card-row { flex-direction: row; align-items: stretch; }
.card-row .card-img { width: 132px; aspect-ratio: auto; flex: none; }
.card-row .card-body { padding: 14px 16px; gap: 5px; }
.card-row .card-title { font-size: 16.5px; }
.grid-3 { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.featured-grid { display: grid; gap: 22px; }
.featured-main { min-width: 0; }
.featured-main .card { height: 100%; }
.featured-side { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 980px) { .featured-grid { grid-template-columns: 7fr 5fr; } }
.picks-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .picks-grid { grid-template-columns: 1fr 1fr; } }

.tile-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--muted); font-size: 14.5px; line-height: 1.45; transition: border-color .18s, background .18s; }
.tile:hover { text-decoration: none; border-color: var(--accent-ink); background: var(--raised); }
.tile strong { font-family: var(--serif); font-size: 18px; line-height: 1.25; color: var(--text); font-weight: 600; }
.tile-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 24%, var(--raised)); color: var(--accent-ink); margin-bottom: 4px; }
.tile-img { display: block; margin: -20px -20px 6px; aspect-ratio: 16 / 8; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .tile-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .tile { padding: 16px; } }

.catrows .wrap { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); }
.cat-row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cat-row-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cat-row-title h2 { font-size: clamp(22px, 2.6vw, 28px); }
.cat-row-title p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.row-scroll { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; }
@media (max-width: 979px) {
    .row-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--pad)); padding: 2px var(--pad) 10px; scrollbar-width: none; }
    .row-scroll::-webkit-scrollbar { display: none; }
    .row-scroll .card { flex: 0 0 min(76%, 300px); scroll-snap-align: start; }
}
@media (max-width: 560px) { .cat-row-head { align-items: flex-start; flex-direction: column; gap: 10px; } .cat-row-title p { display: none; } }
.latest .center { margin: 32px 0 0; }

.news-band { display: grid; gap: 22px; align-items: center; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 30%, var(--surface)), var(--surface) 70%); }
.news-copy { display: flex; gap: 16px; align-items: flex-start; }
.news-copy h2 { font-size: clamp(22px, 2.8vw, 30px); }
.news-copy p { margin: 8px 0 0; color: var(--muted); }
.news-form input[type="email"], .news-form input[type="text"] { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--field); background: var(--bg); }
.news-form button, .news-form input[type="submit"] { min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); font-weight: 600; cursor: pointer; }
.admin-note { margin: 0; padding: 14px 16px; border: 1px dashed var(--accent-ink); border-radius: var(--r-sm); font-size: 14.5px; color: var(--muted); }
@media (min-width: 900px) { .news-band { grid-template-columns: 1fr 1fr; gap: 48px; } }

.trust-panel { display: grid; gap: 18px; padding: clamp(22px, 3.5vw, 34px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); align-items: center; }
.trust-panel > div:nth-child(2) p { margin: 8px 0 0; color: var(--muted); max-width: 640px; }
.trust-panel h2 { font-size: clamp(22px, 2.6vw, 28px); }
.trust-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .trust-panel { grid-template-columns: auto 1fr auto; gap: 28px; } }

/* ---------- Article ---------- */
.article-head, .article-figure, .article-layout { width: min(100% - 2 * var(--pad), var(--read)); margin-inline: auto; }
.article-head { padding-top: clamp(24px, 4vw, 44px); padding-bottom: clamp(20px, 3vw, 30px); }
.article-head h1 { font-size: clamp(32px, 4.8vw, 50px); line-height: 1.1; letter-spacing: -.02em; margin: 10px 0 16px; }
.article-summary { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; color: var(--muted); }
.article-figure { margin-block: 0 34px; }
.article-figure img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); }
.article-layout { display: block; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--muted); }
@media (max-width: 600px) { .crumbs li:last-child { display: none; } }
.crumbs a:hover { color: var(--text); }
.rail { display: none; }
.toc-inline { margin-bottom: 22px; }
@media (min-width: 1120px) {
    .article-head, .article-figure, .article-layout { width: min(100% - 2 * var(--pad), 1056px); }
    .article-head > * { max-width: var(--read); }
    .article-layout { display: grid; grid-template-columns: minmax(0, var(--read)) 280px; gap: 56px; align-items: start; }
    .rail { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
    .toc-inline { display: none; }
}
.toc { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.toc summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .18s; margin-right: 4px; }
.toc[open] summary::after { transform: rotate(-135deg); }
.toc ol { list-style: none; padding: 0 18px 14px; }
.toc li a { display: block; padding: 7px 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.toc li.is-sub { padding-left: 14px; }
.toc li a:hover, .toc li a.is-on { color: var(--accent-ink); text-decoration: none; }
.toc li a.is-on { font-weight: 600; }
.tool-box { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: var(--r-card); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.tool-box:hover { text-decoration: none; border-color: var(--accent-ink); }
.tool-box > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tool-box small { color: var(--accent-ink); font-weight: 600; font-size: 13px; }
.tool-box strong { color: var(--text); font-family: var(--serif); font-size: 17px; font-weight: 600; }
.rail-box { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.rail-box h2, .rail-box h4 { font-size: 18px; margin-bottom: 10px; }
.plain { list-style: none; } .plain li + li { margin-top: 8px; }

/* Long-form text */
.prose { font-size: 18px; line-height: 1.78; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.25em; }
.prose p { text-wrap: pretty; }
.prose + .prose, .ad-slot + .prose { margin-top: 1.25em; }
.prose + .prose > :is(h2, h3):first-child { margin-top: 1.9em; }
.prose table, .tool-body, .calc-result { font-variant-numeric: tabular-nums; }
.prose h2 { font-size: clamp(26px, 3.2vw, 32px); margin-top: 2.1em; scroll-margin-top: 96px; }
.prose h3 { font-size: clamp(21px, 2.4vw, 24px); margin-top: 1.8em; scroll-margin-top: 96px; }
.prose h4 { font-size: 19px; margin-top: 1.6em; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-ink) 50%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent-ink); }
.prose img { border-radius: var(--r-card); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.12em; color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2em; }
.prose code { background: var(--raised); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.prose pre { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; overflow-x: auto; font-size: 15px; }
.prose > table, .prose > figure.wp-block-table { display: block; overflow-x: auto; max-width: 100%; }
.prose > figure.wp-block-table table { margin: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); -webkit-overflow-scrolling: touch;
    background: linear-gradient(to right, var(--bg) 30%, transparent) left / 24px 100% no-repeat local, linear-gradient(to left, var(--bg) 30%, transparent) right / 24px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, var(--shadow-c), transparent) left / 10px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, var(--shadow-c), transparent) right / 10px 100% no-repeat scroll; }
.table-scroll table { display: table; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; min-width: 520px; }
.prose th { text-align: left; background: var(--raised); font-weight: 600; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.callout, .prose .callout, .is-style-callout, .is-style-callout-warn, .is-style-callout-calc { padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-sm); background: var(--surface); font-size: 17px; line-height: 1.65; }
.callout > :first-child, .is-style-callout > :first-child, .is-style-callout-warn > :first-child, .is-style-callout-calc > :first-child { margin-top: 0; }
.callout > :last-child, .is-style-callout > :last-child, .is-style-callout-warn > :last-child, .is-style-callout-calc > :last-child { margin-bottom: 0; }
.callout-warn, .is-style-callout-warn { border-left-color: var(--warn); }
.callout-calc, .is-style-callout-calc { border-left-color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.callout-warn::before, .is-style-callout-warn::before, .callout-calc::before, .is-style-callout-calc::before { display: block; margin-bottom: 6px; font: 700 12.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.callout-warn::before, .is-style-callout-warn::before { content: "Heads up"; color: var(--warn-ink); }
.callout-calc::before, .is-style-callout-calc::before { content: "Worked example"; color: var(--accent-ink); }

/* Optional light paper panel for long reading (Customize > Header & Reading) */
:root[data-scheme="dark"] .reading-light .article-main .prose, :root[data-scheme="dark"] .reading-light .page-pad .prose { background: var(--paper); color: #17232a; padding: clamp(22px, 4vw, 44px); border-radius: var(--r-lg); }
:root[data-scheme="dark"] .reading-light .prose :is(h2, h3, h4, blockquote) { color: #0e1a20; }
:root[data-scheme="dark"] .reading-light .prose a { color: var(--accent-deep); }
:root[data-scheme="dark"] .reading-light .prose :is(th, .callout, code) { background: #e4eae8; color: #17232a; }
:root[data-scheme="dark"] .reading-light .prose :is(th, td), :root[data-scheme="dark"] .reading-light .prose .table-scroll { border-color: #cdd8d5; }
:root[data-scheme="dark"] .reading-light .prose .callout { background: #e9efed; border-color: #cdd8d5; border-left-color: var(--accent); }

.faq, .sources, .related { margin-top: clamp(36px, 5vw, 56px); }
.faq h2, .sources h2, .related h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 16px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 17px; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .chev { transition: transform .18s; color: var(--muted); }
.faq-item .faq-a p { margin: 0 0 18px; color: var(--muted); }
.faq-item .faq-a a { text-decoration: underline; text-underline-offset: 3px; }
.sources ol { padding-left: 1.3em; color: var(--muted); font-size: 15.5px; } .sources li + li { margin-top: 6px; }
.author-box { display: flex; gap: 18px; margin-top: clamp(36px, 5vw, 56px); padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.author-box img { border-radius: 50%; flex: none; width: 64px; height: 64px; }
.author-box .author-name { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--text); margin-bottom: 4px; } .author-box p { margin: 0 0 6px; color: var(--muted); font-size: 15.5px; }
.post-nav { display: grid; gap: 14px; margin-top: 36px; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card); color: var(--text); font-family: var(--serif); font-size: 17px; line-height: 1.35; }
.post-nav a:hover { text-decoration: none; border-color: var(--accent-ink); }
.post-nav small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.post-nav-next { text-align: right; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav-next { grid-column: 2; } }

/* ---------- Archives, search, forms, tools ---------- */
.archive-head { margin-bottom: 30px; max-width: 780px; }
.archive-title { display: flex; align-items: center; gap: 14px; }
.archive-title h1, .page-title { font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -.02em; }
.page-title { margin-bottom: 26px; }
.archive-desc { margin-top: 14px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.archive-desc p:last-child { margin-bottom: 0; }
.pinned { margin-bottom: 30px; }
.pinned-label { font-weight: 600; color: var(--accent-ink); margin-bottom: 10px; font-size: 15px; }
.pinned .card-large { flex-direction: column; }
@media (min-width: 900px) { .pinned .card-large { flex-direction: row; } .pinned .card-large .card-img { width: 48%; aspect-ratio: auto; min-height: 280px; } .pinned .card-large .card-body { justify-content: center; } }
.filter-bar, .inline-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.filter-bar input[type="search"], .inline-search input, .filter-bar select { min-height: 46px; padding: 0 14px; border: 1px solid var(--field); background: var(--surface); border-radius: var(--r-sm); }
.filter-bar input[type="search"], .inline-search input { flex: 1 1 240px; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); background: var(--surface); }
.page-numbers:hover { text-decoration: none; border-color: var(--accent-ink); }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.page-numbers.dots { border: 0; background: transparent; }
.empty, .empty-state { color: var(--muted); }
.empty-state { max-width: 620px; margin: 20px auto; text-align: center; }
.empty-state h1, .empty-state h2 { color: var(--text); margin-bottom: 12px; font-size: clamp(28px, 4vw, 38px); }
.empty-state .inline-search { justify-content: center; } .empty-state .chips { justify-content: center; }
.note { color: var(--muted); font-size: 14.5px; margin-top: 20px; }
.tool-layout { display: grid; gap: 28px; }
.tool-card-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3.5vw, 36px); min-width: 0; }
.tool-aside { display: flex; flex-direction: column; gap: 16px; }
.tool-body input, .tool-body select { min-height: 46px; padding: 0 12px; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--bg); max-width: 100%; }
.tool-body label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15.5px; }
.tool-body button, .tool-body input[type="submit"] { min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); font-weight: 600; cursor: pointer; }
@media (min-width: 960px) { .tool-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 72px); background: var(--footer); border-top: 1px solid var(--line); position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 14px); opacity: .55; }
.footer-grid { display: grid; gap: 28px; padding-block: 52px 36px; }
.footer-brand p { color: var(--muted); max-width: 340px; margin-top: 14px; font-size: 15.5px; }
.footer-logo img { max-height: 46px; width: auto; }
.footer-col summary { list-style: none; font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 14px; cursor: default; }
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col ul { list-style: none; }
.footer-col li a { display: block; padding: 5px 0; color: var(--muted); font-size: 15.5px; }
.footer-col li a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px 30px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.footer-bottom p { margin: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; } }
@media (max-width: 759px) {
    .footer-grid { gap: 0; padding-block: 36px 20px; }
    .footer-brand { margin-bottom: 22px; }
    .footer-col { border-top: 1px solid var(--line); }
    .footer-col summary { cursor: pointer; margin: 0; min-height: 56px; display: flex; align-items: center; justify-content: space-between; }
    .footer-col summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .18s; margin-right: 4px; }
    .footer-col[open] summary::after { transform: rotate(-135deg); }
    .footer-col ul { padding-bottom: 14px; }
}

/* ---------- Ads ---------- */
.ad-slot { margin: 28px auto; text-align: center; }
.ad-slot-inner { margin-inline: auto; max-width: 100%; }
.ad-label { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-slot-placeholder { display: grid; place-items: center; min-height: inherit; border: 1px dashed var(--line); border-radius: var(--r-sm); color: var(--muted); font-size: 13px; padding: 12px; }
.ad-slot-placeholder small { display: block; opacity: .7; }
.ad-slot--homepage { width: min(100% - 2 * var(--pad), var(--wrap)); }
.ad-slot--anchor { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 90; background: var(--surface); }
@media (min-width: 760px) { .ad-slot--anchor { display: none; } }
@media (max-width: 759px) { body.has-anchor-ad { padding-bottom: 64px; } }
.wp-block-image img, .alignwide { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print { .tool-aside .rail-box, .post-nav, .related, .author-box, .scheme-toggle, .arrange-panel, .news-band, .faq-item .chev,
    .site-header, .topbar, .site-footer, .rail, .drawer, .search-overlay, .ad-slot, .read-progress { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- Sun / moon switch ---------- */
.scheme-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--field); border-radius: 999px; background: var(--surface); margin-right: 2px; }
.scheme-toggle button { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .18s, color .18s; }
.scheme-toggle button::after { content: ""; position: absolute; inset: -8px -3px; }
.scheme-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.scheme-toggle button:not([aria-pressed="true"]):hover { color: var(--text); }

/* ---------- Arrange sections (logged-in admins only) ---------- */
.block-bar { display: none; align-items: center; gap: 12px; width: min(100% - 2 * var(--pad), var(--wrap)); margin: 10px auto; padding: 14px 18px; border: 1px dashed var(--accent-ink); border-radius: 12px; background: var(--surface); cursor: grab; color: var(--text); }
.block-bar strong { flex: 1; font-weight: 600; }
.block-bar .grip { color: var(--muted); }
.bar-btns { display: inline-flex; gap: 6px; }
.bar-btns button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 9px; cursor: pointer; }
.bar-btns button:hover { border-color: var(--accent-ink); }
.flip { transform: rotate(180deg); }
.is-arranging .block-bar { display: flex; }
.is-arranging .home-block > :not(.block-bar) { display: none !important; }
.is-arranging .home-block.is-dragging { opacity: .35; }
.is-arranging .hero { opacity: .5; }
.arrange-panel { position: fixed; left: 16px; bottom: 16px; z-index: 160; max-width: min(92vw, 360px); padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-pop); }
.arrange-actions p { margin: 4px 4px 10px; font-size: 14px; color: var(--muted); }
.arrange-actions .btn { margin: 0 4px 4px 0; }

/* ---------- Calculator kit (optional classes for calculator pages) ----------
   .calc-grid > .field > label + .input-affix (input with a $ or % tag) ... then .calc-result for the answer, .calc-actions for buttons.
   Put aria-live="polite" on .calc-result so screen readers hear the new numbers. */
.calc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15.5px; }
.field .hint { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.input-affix { display: flex; align-items: stretch; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--bg); overflow: hidden; }
.input-affix:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.input-affix input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; border-radius: 0 !important; outline: 0; }
.input-affix .affix { display: grid; place-items: center; padding: 0 12px; background: var(--raised); color: var(--muted); font-weight: 600; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.calc-result { margin-top: 24px; padding: 22px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: var(--r-card); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.calc-result .big { display: block; font-family: var(--serif); font-size: clamp(30px, 6vw, 44px); line-height: 1.1; color: var(--text); font-weight: 600; }
.calc-result .big + span { color: var(--muted); }
.calc-result dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 16px 0 0; }
.calc-result dt { color: var(--muted); } .calc-result dd { margin: 0; font-weight: 600; text-align: right; }
.calc-result .calc-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
