/* Trendarium — editorial interface. Dark by default, with an explicit light theme. */
:root {
  color-scheme: dark;
  --page: #080e1d;
  --paper: var(--page);
  --surface: #101a2e;
  --surface-raised: #15213a;
  --surface-soft: #0c1527;
  --ink: #edf2ff;
  --text: var(--ink);
  --muted: #a5b5d0;
  --secondary: #c0cde2;
  --faint: #96a7c4;
  --line: #273650;
  --line-strong: #435575;
  --control-line: #526383;
  --blue: #a8b6ff;
  --blue-soft: #1a2748;
  --blue-line: #40547d;
  --violet: #c6abff;
  --violet-soft: #201f3c;
  --button-bg: #a5b2ff;
  --button-hover: #bdc6ff;
  --button-ink: #101735;
  --green: #8ce1b8;
  --green-soft: #10271f;
  --green-raised: #153329;
  --green-line: #305747;
  --green-muted: #b2d0c0;
  --green-button: #89ddb6;
  --green-button-hover: #a3ebca;
  --green-button-ink: #10271e;
  --yellow: #e3cd91;
  --yellow-soft: #2b281d;
  --yellow-line: #5c5234;
  --danger: #ffb5b0;
  --danger-soft: #372127;
  --code-bg: #0a1222;
  --code-ink: #cedbf6;
  --header: rgb(8 14 29 / 92%);
  --footer: #0b1425;
  --grid-line: rgb(140 166 231 / 4%);
  --glow: rgb(70 94 180 / 14%);
  --selection: #354a7e;
  --shadow: 0 12px 34px rgb(1 6 19 / 14%);
  --dialog-shadow: 0 26px 100px rgb(0 3 12 / 55%);
  --radius: 18px;
  --container: 1240px;
  --header-height: 78px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #f4f6fb;
  --surface: #ffffff;
  --surface-raised: #f0f3fc;
  --surface-soft: #edf1f8;
  --ink: #17243b;
  --muted: #53637b;
  --secondary: #3f526c;
  --faint: #596b84;
  --line: #dce3ef;
  --line-strong: #aab9d4;
  --control-line: #8d9fbd;
  --blue: #4056bd;
  --blue-soft: #e9edff;
  --blue-line: #b7c3ed;
  --violet: #7053aa;
  --violet-soft: #eeeafa;
  --button-bg: #4558c9;
  --button-hover: #3347b5;
  --button-ink: #ffffff;
  --green: #216448;
  --green-soft: #eaf4ef;
  --green-raised: #dceee4;
  --green-line: #bdd9c9;
  --green-muted: #476a57;
  --green-button: #236c4f;
  --green-button-hover: #18583f;
  --green-button-ink: #ffffff;
  --yellow: #775a1b;
  --yellow-soft: #faf3df;
  --yellow-line: #e2d3a9;
  --danger: #a43b42;
  --danger-soft: #fff0ef;
  --code-bg: #edf1f9;
  --code-ink: #24395b;
  --header: rgb(248 250 255 / 94%);
  --footer: #ffffff;
  --grid-line: rgb(72 100 157 / 4%);
  --glow: rgb(146 168 234 / 11%);
  --selection: #d8e1ff;
  --shadow: 0 10px 30px rgb(31 51 85 / 5%);
  --dialog-shadow: 0 26px 100px rgb(20 36 68 / 22%);
}

/* Base, keyboard access and shared controls. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0; min-width: 280px; min-height: 100vh;
  color: var(--ink); background: radial-gradient(ellipse 1050px 650px at 38% 0, var(--glow), transparent 80%), var(--page);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 850px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(#000, transparent);
}
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; text-decoration: none; }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 720; }
h1, h2, h3 { letter-spacing: -.035em; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: var(--selection); color: var(--ink); }
.container { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 100; padding: 12px 20px; background: var(--button-bg); color: var(--button-ink); border-radius: 10px; font-weight: 650; }
.skip-link:focus { top: 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.button, .save-button, .filter-chip, .icon-button, .search-trigger, .saved-remove { transition: border-color .16s ease, box-shadow .16s ease; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 18px; border: 1px solid var(--button-bg); border-radius: 11px;
  background: var(--button-bg); color: var(--button-ink); font-size: 14px; line-height: 1.5; font-weight: 650; text-align: center;
}
.button:hover { background: var(--button-hover); border-color: var(--button-hover); }
.button .icon { width: 18px; height: 18px; }
.button-secondary, .button-light { background: var(--surface); border-color: var(--control-line); color: var(--ink); }
.button-secondary:hover, .button-light:hover { background: var(--surface-raised); border-color: var(--blue); }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.save-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 44px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--control-line);
  border-radius: 10px; background: transparent; color: var(--secondary); font-size: 13px; line-height: 1.4; font-weight: 550;
}
.save-button .icon { width: 18px; height: 18px; }
.save-button:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
.save-button[aria-pressed="true"] { border-color: var(--blue-line); color: var(--blue); background: var(--blue-soft); }
.save-button[aria-pressed="true"] .icon { fill: currentColor; fill-opacity: .16; }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--blue); font-size: 14px; line-height: 1.5; font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .icon { width: 18px; height: 18px; }
.text-button { padding: 0; border: 0; background: none; }
.icon-button, .dialog-close { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 11px; color: var(--secondary); background: transparent; }
.icon-button:hover, .dialog-close:hover { color: var(--ink); background: var(--surface-raised); border-color: var(--line-strong); }
:root:not([data-theme="light"]) .theme-icon-moon, :root[data-theme="light"] .theme-icon-sun { display: none; }
.theme-toggle { border-color: var(--line); background: var(--surface); color: var(--blue); }
.theme-toggle[aria-pressed="true"] { color: var(--violet); }

/* Compact persistent navigation. */
.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: var(--header-height); }
.brand { display: inline-flex; gap: 11px; align-items: center; flex: 0 0 auto; line-height: 1.1; }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--blue-line); border-radius: 12px; color: var(--blue); background: linear-gradient(140deg, var(--blue-soft), var(--violet-soft)); box-shadow: inset 0 1px 0 rgb(200 210 255 / 6%); }
.brand-mark > .icon { width: 27px; height: 27px; stroke-width: 1.6; }
.brand-name { display: block; font-size: 17px; font-weight: 800; letter-spacing: 1.6px; }
.brand-caption { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .35px; color: var(--muted); font-weight: 500; }
.primary-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; white-space: nowrap; }
.primary-nav a { position: relative; display: inline-flex; align-items: center; min-height: 48px; color: var(--secondary); font-size: 14px; font-weight: 550; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--blue); }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 1px; right: 0; left: 0; height: 2px; border-radius: 2px; background: var(--blue); }
.header-actions { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.icon-button [data-saved-count] { position: absolute; top: 0; right: -1px; display: grid; place-items: center; min-width: 18px; height: 18px; padding-inline: 4px; border: 2px solid var(--surface-soft); border-radius: 20px; color: var(--button-ink); background: var(--button-bg); font-size: 10px; line-height: 1; font-weight: 750; }
.search-trigger { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--secondary); background: var(--surface-soft); font-size: 13px; }
.search-trigger:hover { border-color: var(--blue); background: var(--surface-raised); }
.search-trigger kbd { margin-left: 3px; padding: 1px 5px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--muted); font: 10px "Segoe UI", sans-serif; }
.mobile-menu-toggle { display: none; }
.article-reading-progress, .reading-progress { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; overflow: hidden; pointer-events: none; }
.reading-progress-bar { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--violet)); }

/* Home hierarchy: purpose, lead story and useful next steps. */
main { padding-top: 30px; padding-bottom: 72px; }
.page-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }
.eyebrow, .mini-label { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; line-height: 1.5; font-weight: 650; letter-spacing: 1.4px; text-transform: uppercase; color: var(--blue); }
.date-label { font-size: 13px; color: var(--muted); }
.live-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 24px; }
.section-head h1, .section-head h2 { margin: 0; line-height: 1.15; }
.section-head h1 { font-size: clamp(34px, 3.5vw, 48px); letter-spacing: -.045em; }
.section-head h2 { font-size: clamp(26px, 2.4vw, 32px); }
.section-head p { max-width: 66ch; margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.section-head > p { flex-basis: 100%; }
.section-head > div > .eyebrow { margin-bottom: 10px; }
.section-description { max-width: 68ch; margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.gradient-text { color: var(--blue); background: linear-gradient(96deg, #91bfff 4%, #b7a7ff 62%, #c8a4ec 98%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
:root[data-theme="light"] .gradient-text { background-image: linear-gradient(96deg, #365fc2 4%, #6e52b6 62%, #8152a0 98%); }
.title-dot { color: var(--blue); }
.edition { color: var(--faint); font-size: 12px; letter-spacing: 1.1px; font-family: Consolas, monospace; }
.intro-copy { max-width: 780px; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr); gap: 20px; }
.lead-story { min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow); }
.visual { display: block; overflow: hidden; background: var(--blue-soft); }
.visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.visual-network { aspect-ratio: 2.5; }
.visual-network img { transition: transform .3s ease; }
.lead-story:hover .visual-network img { transform: scale(1.02); }
.theme-art { display: block; width: 100%; height: 100%; }
.theme-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
:root:not([data-theme="light"]) .art-light, :root[data-theme="light"] .art-dark { display: none; }
.story-body { padding: 24px 28px; }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pill, .tag, .pill-status { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 9px; border-radius: 7px; font-size: 12px; line-height: 1.45; font-weight: 550; }
.pill { color: var(--blue); background: var(--blue-soft); }
.pill-status { color: var(--green); background: var(--green-raised); border: 1px solid var(--green-line); }
.pill-status::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.tag { color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); font-weight: 450; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.read-time { display: inline-flex; align-items: center; gap: 5px; }
.read-time .icon { width: 16px; height: 16px; }
.story-title { margin: 16px 0 12px; font-size: clamp(25px, 2.3vw, 31px); line-height: 1.2; letter-spacing: -.035em; }
.story-title a:hover { color: var(--blue); }
.story-summary { max-width: 65ch; margin-bottom: 20px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.story-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.side-stack { display: flex; flex-direction: column; min-width: 0; gap: 18px; }
.side-card { position: relative; flex: 1 0 auto; min-width: 0; padding: 25px 27px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; }
.offer-teaser { color: var(--ink); background: linear-gradient(135deg, var(--green-raised), var(--green-soft)); border-color: var(--green-line); }
.offer-teaser .mini-label { color: var(--green-muted); }
.offer-number { display: flex; align-items: center; gap: 15px; margin: 15px 0 8px; color: var(--green); font-size: 58px; line-height: 1.05; font-weight: 730; letter-spacing: -.045em; }
.offer-number > span { max-width: 160px; color: var(--green-muted); font-size: 14px; line-height: 1.5; font-weight: 450; letter-spacing: 0; }
.offer-number small { font-size: 18px; font-weight: 500; letter-spacing: 0; }
.offer-teaser h2 { margin: 14px 0 8px; font-size: 23px; line-height: 1.25; }
.offer-desc { max-width: 34ch; margin-bottom: 18px; color: var(--green-muted); font-size: 15px; line-height: 1.65; }
.offer-teaser .button { background: var(--green-button); border-color: var(--green-button); color: var(--green-button-ink); }
.offer-teaser .button:hover { background: var(--green-button-hover); border-color: var(--green-button-hover); }
.practice-teaser { background: linear-gradient(135deg, var(--blue-soft), var(--violet-soft)); border-color: var(--blue-line); }
.practice-teaser h2, .practice-teaser h3 { margin: 16px 0 10px; max-width: 26ch; font-size: 25px; line-height: 1.2; }
.practice-teaser p { max-width: 35ch; margin-bottom: 8px; color: var(--secondary); font-size: 15px; line-height: 1.7; }
.practice-symbol { position: absolute; top: 23px; right: 22px; width: 40px; height: 40px; opacity: .33; color: var(--violet); pointer-events: none; }
.practice-symbol .icon { width: 40px; height: 40px; stroke-width: 1.2; }
.section { margin-top: 56px; scroll-margin-top: 8px; }
.task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.task-link { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 18px 34px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .16s; }
.task-link:hover { border-color: var(--blue-line); background: var(--surface-raised); }
.task-link > span:not(.task-icon) { font-size: 14px; line-height: 1.45; font-weight: 550; }
.task-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--blue-line); border-radius: 10px; color: var(--blue); background: var(--blue-soft); }
.task-icon .icon { width: 20px; height: 20px; }
.task-link > .icon:last-child { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); }

/* Tools, offers and the material feed. */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 23px; }
.filter-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 30px; background: transparent; color: var(--muted); font-size: 13px; line-height: 1.5; }
.filter-chip:hover { color: var(--ink); background: var(--surface-raised); border-color: var(--blue-line); }
.filter-chip[aria-pressed="true"] { color: var(--button-ink); background: var(--button-bg); border-color: var(--button-bg); font-weight: 650; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface-raised), var(--surface)); transition: border-color .18s ease, box-shadow .18s ease; }
.tool-card:hover { border-color: var(--blue-line); box-shadow: var(--shadow); }
.tool-card-head { display: flex; align-items: center; gap: 13px; min-width: 0; }
.tool-logo, .product-logo { display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface-raised); color: var(--ink); font-weight: 750; }
.tool-logo { width: 48px; height: 48px; font-size: 22px; }
.tool-logo .icon, .tool-logo > svg { width: 27px; height: 27px; }
.logo-blue { color: var(--blue); background: var(--blue-soft); border-color: var(--blue-line); }
.logo-yellow { color: var(--yellow); background: var(--yellow-soft); border-color: var(--yellow-line); }
.logo-green { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.tool-name { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; }
.tool-name a:hover { color: var(--blue); }
.tool-kind { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.tool-card > p { margin: 20px 0 18px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.tool-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; margin-top: auto; padding-top: 22px; }
.offer-wide { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 30px; padding: 32px 34px; border: 1px solid var(--green-line); border-radius: 21px; background: linear-gradient(115deg, var(--green-raised), var(--green-soft)); }
.offer-wide h2, .offer-wide h3 { margin: 12px 0 10px; font-size: 29px; line-height: 1.2; }
.offer-wide p { max-width: 62ch; margin-bottom: 0; color: var(--green-muted); font-size: 16px; }
.offer-metrics { display: flex; flex-wrap: wrap; gap: 24px 34px; margin-top: 25px; }
.offer-metrics > div { display: flex; flex-direction: column; gap: 3px; }
.offer-metrics strong { color: var(--green); font-size: 21px; line-height: 1.35; }
.offer-metrics span { color: var(--green-muted); font-size: 13px; line-height: 1.5; }
.offer-wide-action { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.practice-card { display: grid; grid-template-columns: 32% minmax(0, 1fr); min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.practice-card-text { grid-template-columns: minmax(0, 1fr); }
.practice-art { min-height: 255px; overflow: hidden; background: var(--green-soft); }
.practice-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.practice-body { display: flex; flex-direction: column; align-items: flex-start; padding: 25px; }
.practice-body h3 { margin: 15px 0 10px; font-size: 23px; line-height: 1.25; }
.practice-body p { margin-bottom: 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.practice-body .text-link { margin-top: auto; }
.practice-points { display: grid; gap: 9px; margin: 0 0 18px; }
.practice-points > span { display: flex; align-items: center; gap: 8px; color: var(--secondary); font-size: 14px; }
.practice-points .icon { width: 16px; height: 16px; color: var(--blue); }
.latest-list { border-top: 1px solid var(--line); }
.latest-item { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.latest-index { align-self: start; padding-top: 5px; color: var(--blue); font: 13px Consolas, monospace; }
.latest-copy { min-width: 0; }
.latest-copy h3 { margin-bottom: 7px; font-size: 21px; line-height: 1.35; }
.latest-copy h3 a:hover { color: var(--blue); }
.latest-copy p { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.latest-kind { padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 20px; color: var(--muted); font-size: 12px; }

/* Article and detail templates. */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 26px; color: var(--faint); font-size: 13px; line-height: 1.65; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 28px; color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.breadcrumbs a:hover { color: var(--blue); text-decoration-color: currentColor; }
.breadcrumbs .icon { width: 12px; height: 12px; }
.detail-heading { max-width: 1100px; margin-bottom: 34px; }
.detail-heading h1 { max-width: 980px; margin: 18px 0 20px; font-size: clamp(34px, 3.7vw, 50px); line-height: 1.12; letter-spacing: -.045em; }
.lead { max-width: 820px; margin-bottom: 23px; color: var(--secondary); font-size: 20px; line-height: 1.65; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; color: var(--muted); font-size: 13px; }
.author-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--blue-line); border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 16px; font-weight: 750; }
.article-actions, .article-meta .button-row { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 780px) 280px; align-items: start; gap: 64px; max-width: 1140px; }
.content-column { min-width: 0; }
.sidebar { position: sticky; top: calc(var(--header-height) + 25px); min-width: 0; }
.side-panel { padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.side-panel + .side-panel { margin-top: 18px; }
.side-panel p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.side-panel .button, .side-panel .save-button { width: 100%; }
.side-panel .button + .save-button { margin-top: 10px; }
.side-panel .panel-title, .panel-title { margin: 0 0 15px; color: var(--ink); font-size: 16px; line-height: 1.4; font-weight: 650; }
.sidebar-divider { height: 1px; margin: 21px 0; background: var(--line); }
.prose { max-width: 760px; color: var(--secondary); font-size: 18px; line-height: 1.85; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 40px 0 18px; color: var(--ink); font-size: 29px; line-height: 1.25; scroll-margin-top: 8px; }
.prose h3 { margin: 29px 0 14px; color: var(--ink); font-size: 23px; line-height: 1.3; }
.prose p { margin-bottom: 23px; }
.prose a:not(.button):not(.inline-tool):not(.related-card) { color: var(--blue); text-decoration: underline; text-decoration-color: var(--blue-line); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 23px; margin-bottom: 26px; }
.prose li { padding-left: 4px; margin-bottom: 10px; }
.prose li::marker { color: var(--blue); }
.prose blockquote { margin: 30px 0; padding: 7px 0 7px 23px; border-left: 3px solid var(--blue); color: var(--ink); font-size: 22px; line-height: 1.65; }
.prose blockquote p { margin-bottom: 0; }
.prose code { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--code-bg); color: var(--code-ink); font: .88em Consolas, "Courier New", monospace; overflow-wrap: anywhere; }
.intro-paragraph { color: var(--ink); font-size: 20px; }
.article-cover { margin-bottom: 32px; }
.article-cover .theme-art, .article-cover > img { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; }
.article-cover img { display: block; width: 100%; }
.article-cover figcaption { margin-top: 12px; color: var(--faint); font-size: 13px; line-height: 1.65; }
.callout { margin: 28px 0; padding: 23px 25px; border: 1px solid var(--green-line); border-left: 3px solid var(--green); border-radius: 13px; background: var(--green-soft); }
.callout > strong { display: block; margin-bottom: 8px; font-size: 17px; }
.callout p { margin-bottom: 0; font-size: 16px; line-height: 1.75; }
.callout-blue { background: var(--blue-soft); border-color: var(--blue-line); border-left-color: var(--blue); }
.inline-tool { display: flex; align-items: center; gap: 15px; margin: 27px 0; padding: 21px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); }
.inline-tool > div:not(.tool-logo) { flex: 1; min-width: 0; }
.inline-tool strong { display: block; font-size: 18px; }
.inline-tool p, .inline-tool small { display: block; margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.inline-tool > .icon:last-child { margin-left: auto; color: var(--blue); }
.inline-tool:hover { border-color: var(--blue); background: var(--surface-raised); }
.toc ol { padding: 0; margin: 0; list-style: none; font-size: 14px; }
.toc li { margin: 0; padding: 0; }
.toc a { display: block; padding: 10px 11px; margin-inline: -11px; min-height: 44px; border-left: 2px solid transparent; border-radius: 7px; color: var(--muted); line-height: 1.55; }
.toc a:hover { color: var(--ink); background: var(--surface-raised); }
.toc a[aria-current="location"] { color: var(--blue); border-left-color: var(--blue); background: var(--blue-soft); font-weight: 600; }
.fact-list, .fact-list dl { margin: 0; }
.fact-list > div, .fact-list dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-list > div:first-child, .fact-list dl > div:first-child { padding-top: 0; }
.fact-list > div:last-child, .fact-list dl > div:last-child { border: 0; padding-bottom: 0; }
.fact-list dt { color: var(--muted); font-size: 13px; }
.fact-list dd { margin: 5px 0 0; color: var(--ink); font-size: 15px; line-height: 1.65; font-weight: 550; overflow-wrap: anywhere; }
.source-note { padding-top: 18px; margin: 22px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.7; }
.prose .source-note { font-size: 13px; }
.source-note a { color: var(--blue); text-underline-offset: 4px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.related-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.related-card .news-card-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 11px; margin-bottom: 16px; }
.related-card h3 { margin: 14px 0 10px; color: var(--ink); font-size: 23px; line-height: 1.25; }
.related-card p { margin: 0 0 17px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.related-card .text-link { margin-top: auto; }
.related-card:hover { border-color: var(--blue-line); background: var(--surface-raised); }

/* Tool details and comparison tables. */
.product-heading { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; gap: 25px; margin: 6px 0 32px; }
.product-logo { width: 88px; height: 88px; border-radius: 22px; font-size: 40px; }
.product-logo svg, .product-logo .icon { width: 49px; height: 49px; }
.product-copy h1 { margin: 4px 0 13px; font-size: 48px; line-height: 1.1; letter-spacing: -.045em; }
.product-copy .lead { max-width: 740px; margin-bottom: 18px; font-size: 19px; }
.product-copy .button-row { margin-top: 22px; }
.tool-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 31px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.tool-facts > div { padding: 20px 22px; border-right: 1px solid var(--line); }
.tool-facts > div:last-child { border-right: 0; }
.tool-facts small, .tool-facts span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tool-facts strong { display: block; font-size: 16px; line-height: 1.45; }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.capability-card { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.capability-card > .icon { margin-bottom: 13px; color: var(--blue); width: 24px; height: 24px; }
.capability-card h3 { margin: 0 0 10px; font-size: 20px; }
.capability-card p { margin: 0; font-size: 16px; line-height: 1.75; }
.table-scroll { max-width: 100%; margin: 25px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); scrollbar-color: var(--control-line) var(--surface-soft); }
.comparison-table { border-collapse: collapse; width: 100%; color: var(--secondary); font-size: 15px; line-height: 1.65; text-align: left; }
.comparison-table th { background: var(--surface-raised); color: var(--ink); font-weight: 650; }
.comparison-table th, .comparison-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table td:first-child { color: var(--ink); font-weight: 550; }
.tab-links { display: flex; flex-wrap: wrap; gap: 24px; margin: 27px 0 32px; border-bottom: 1px solid var(--line); }
.tab-links a { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 11px; color: var(--muted); font-size: 15px; }
.tab-links a:hover, .tab-links a[aria-current="page"] { margin-bottom: -1px; border-bottom: 2px solid var(--blue); color: var(--blue); }

/* Offer conditions and practical guides. */
.offer-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(180px, 1fr); align-items: center; gap: 36px; margin: 6px 0 34px; padding: 35px 38px; border: 1px solid var(--green-line); border-radius: 22px; background: linear-gradient(120deg, var(--green-raised), var(--green-soft)); }
.offer-hero-copy h1, .offer-hero-copy h2 { max-width: 680px; margin: 19px 0 15px; font-size: clamp(33px, 3.3vw, 44px); line-height: 1.15; }
.offer-hero-copy p { max-width: 58ch; margin-bottom: 21px; color: var(--green-muted); font-size: 17px; line-height: 1.7; }
.offer-hero-number { padding-left: 25px; border-left: 1px solid var(--green-line); color: var(--green); text-align: center; }
.offer-hero-number strong { display: block; font-size: 88px; line-height: 1.1; letter-spacing: -.05em; font-weight: 720; }
.offer-hero-number span { display: block; margin-top: 12px; color: var(--green-muted); font-size: 15px; line-height: 1.6; }
.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--green-muted); font-size: 13px; }
.conditions-list, .conditions-list dl { margin: 22px 0 27px; }
.conditions-list > div, .conditions-list dl > div { display: grid; grid-template-columns: minmax(120px, 31%) minmax(0, 1fr); gap: 22px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.conditions-list dt { color: var(--muted); font-size: 15px; }
.conditions-list dd { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.75; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 21px 30px 21px 0; list-style: none; color: var(--ink); font-size: 18px; line-height: 1.5; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 3px; top: 18px; color: var(--blue); font-size: 25px; font-weight: 400; }
.faq[open] summary::after { content: "−"; }
.faq p { margin-top: 0; padding: 0 5px 4px 0; font-size: 16px; }
.timeline { margin-left: 5px; padding-left: 20px !important; border-left: 1px solid var(--line-strong); list-style: none; }
.timeline li { position: relative; padding: 0 0 16px 7px !important; font-size: 15px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 8px; width: 9px; height: 9px; border: 2px solid var(--page); border-radius: 50%; background: var(--blue); }
.timeline time { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.guide-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 27px 0 35px; }
.overview-item { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.overview-item span, .overview-item small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.overview-item strong { display: block; font-size: 16px; line-height: 1.5; font-weight: 650; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 21px; margin-bottom: 34px; padding: 6px 0 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 8px; }
.step-number { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--blue-line); border-radius: 13px; color: var(--blue); background: var(--blue-soft); font-size: 16px; font-weight: 650; }
.step-content { min-width: 0; }
.step-content h2 { margin-top: 4px; margin-bottom: 18px; font-size: 28px; }
.step-content p { font-size: 18px; }
.check-row { display: flex; align-items: flex-start; gap: 11px; margin-top: 24px; padding: 15px 17px; border: 1px solid var(--control-line); border-radius: 11px; background: var(--surface); }
.check-row input { width: 20px; height: 20px; flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--button-bg); cursor: pointer; }
.check-row label { flex: 1; color: var(--secondary); font-size: 15px; line-height: 1.7; cursor: pointer; }
.check-row:has(input:checked) { background: var(--green-soft); border-color: var(--green-line); }
.check-row:has(input:checked) label { color: var(--green); }
.code-card { margin: 23px 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--code-ink); background: var(--code-bg); }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.code-toolbar button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 9px 11px; border: 1px solid var(--control-line); border-radius: 8px; color: var(--secondary); background: var(--surface); font-size: 13px; }
.code-toolbar button:hover { color: var(--ink); border-color: var(--blue); background: var(--surface-raised); }
.copy-button .icon { width: 16px; height: 16px; }
.code-card pre { max-width: 100%; margin: 0; padding: 22px; overflow-x: auto; color: var(--code-ink); font: 14px/1.9 Consolas, "Courier New", monospace; tab-size: 2; scrollbar-color: var(--control-line) var(--code-bg); }
.code-card code { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; overflow-wrap: normal; }
.progress-box { margin: 18px 0 24px; }
.progress-box progress { display: block; appearance: none; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 12px; background: var(--surface-raised); }
.progress-box progress::-webkit-progress-bar { background: var(--surface-raised); border-radius: 12px; }
.progress-box progress::-webkit-progress-value { background: var(--blue); border-radius: 12px; }
.progress-box progress::-moz-progress-bar { background: var(--blue); border-radius: 12px; }
.progress-box span, #guide-progress-label { display: block; margin-top: 11px; color: var(--muted); font-size: 13px; }
.progress-box #guide-progress-label { margin: 12px 0 18px; color: var(--ink); font-size: 22px; letter-spacing: -.02em; }
.checklist { margin: 16px 0 0; padding-left: 19px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.checklist li { margin-bottom: 10px; padding-left: 3px; }

/* Footer, search and saved materials. */
.site-footer { border-top: 1px solid var(--line); background: var(--footer); }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 36px; padding: 42px 0 33px; }
.footer-brand { flex: 1; max-width: 360px; }
.footer-brand p { margin: 19px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.footer-links { display: flex; flex: 0 0 160px; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 4px; }
.footer-links > .eyebrow { margin-bottom: 7px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.footer-about { flex: 1; min-width: 0; max-width: 390px; }
.footer-about p { margin: 17px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 25px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.site-dialog { width: min(660px, calc(100vw - 32px)); max-height: min(800px, calc(100dvh - 48px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 21px; color: var(--ink); background: var(--surface); box-shadow: var(--dialog-shadow); scrollbar-color: var(--control-line) var(--surface); }
.site-dialog::backdrop { background: rgb(3 9 22 / 64%); backdrop-filter: blur(6px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 23px 15px; }
.dialog-header h2 { margin: 0; font-size: 25px; line-height: 1.3; }
#search-input { display: block; width: calc(100% - 46px); margin: 0 23px 15px; padding: 14px 16px; border: 1px solid var(--control-line); border-radius: 11px; background: var(--surface-soft); color: var(--ink); font-size: 16px; line-height: 1.5; }
#search-input::placeholder { color: var(--muted); }
.site-dialog > p.small { margin: 0; padding: 0 23px 15px; color: var(--muted); font-size: 14px; }
.dialog-results { max-height: min(510px, 57dvh); margin: 0; padding: 0 17px 17px; overflow-y: auto; list-style: none; scrollbar-color: var(--control-line) var(--surface); }
.result-item { display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 10px; }
a.result-item:hover { background: var(--blue-soft); border-color: var(--blue-line); }
.result-type { color: var(--blue); font-size: 12px; line-height: 1.5; font-weight: 650; letter-spacing: .6px; }
.result-title { color: var(--ink); font-size: 18px; line-height: 1.4; font-weight: 650; }
.result-desc { color: var(--muted); font-size: 14px; line-height: 1.65; }
.empty-state { margin: 0; padding: 27px 24px 34px; color: var(--muted); font-size: 15px; line-height: 1.75; text-align: center; }
.empty-state strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 18px; }
.saved-remove { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 9px 11px; border: 1px solid var(--control-line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 13px; }
.saved-remove:hover { color: var(--danger); background: var(--danger-soft); border-color: var(--danger); }
.saved-item { flex-direction: row; align-items: center; gap: 12px; }
.result-copy { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.result-copy:hover .result-title { color: var(--blue); }
.saved-item .saved-remove { margin-left: auto; }
.saved-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.saved-row .result-item { flex: 1; min-width: 0; border-bottom: 0; }
.toast { position: fixed; z-index: 60; bottom: 24px; left: 50%; width: max-content; max-width: min(calc(100vw - 32px), 460px); padding: 14px 21px; border: 1px solid var(--control-line); border-radius: 12px; color: var(--ink); background: var(--surface-raised); box-shadow: var(--dialog-shadow); font-size: 14px; line-height: 1.6; text-align: center; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .16s, transform .16s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Responsive layout keeps reading text and controls at useful sizes. */
@media (max-width: 1160px) {
  .header-inner { gap: 20px; }
  .primary-nav { gap: 17px; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 44px; justify-content: center; padding: 9px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
  .feature-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .side-card { padding: 23px; }
  .story-body { padding: 23px; }
  .tool-card { padding: 22px; }
  .tool-name { font-size: 19px; }
  .task-link { gap: 10px; padding-left: 14px; }
  .task-link > span:not(.task-icon) { font-size: 13px; }
  .practice-card { grid-template-columns: minmax(0, 1fr); }
  .practice-art { aspect-ratio: 3; min-height: 0; }
}
@media (max-width: 1000px) {
  :root { --header-height: 74px; }
  .container { width: calc(100% - 44px); }
  .header-actions { margin-left: auto; }
  .mobile-menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: 100%; right: 22px; left: 22px; flex-direction: column; align-items: stretch; gap: 2px; margin: 9px 0 0; padding: 11px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); box-shadow: var(--dialog-shadow); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { min-height: 48px; padding: 10px 14px; border-radius: 8px; font-size: 15px; }
  .primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--surface-raised); }
  .primary-nav a[aria-current="page"]::after { display: none; }
  .feature-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
  .side-stack { gap: 16px; }
  .story-title { font-size: 27px; }
  .visual-network { aspect-ratio: 1.8; }
  .offer-number { font-size: 48px; }
  .offer-number > span { font-size: 13px; }
  .practice-teaser h2, .practice-teaser h3 { font-size: 24px; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-link { min-height: 78px; padding: 18px 36px 18px 18px; }
  .task-link > span:not(.task-icon) { font-size: 15px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid .tool-card:last-child { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 780px; }
  .prose { max-width: none; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .sidebar .side-panel + .side-panel { margin-top: 0; }
  .sidebar .side-panel:only-child { grid-column: 1 / -1; }
  .offer-wide { padding: 29px; gap: 24px; }
  .footer-grid { gap: 26px; }
  .footer-links { flex-basis: 135px; }
}
@media (max-width: 760px) {
  :root { --header-height: 70px; }
  .container { width: calc(100% - 36px); }
  .header-inner { gap: 12px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand-mark > .icon { width: 24px; height: 24px; }
  .brand-name { font-size: 15px; letter-spacing: 1px; }
  .brand-caption { font-size: 9px; letter-spacing: .1px; }
  .header-actions { gap: 3px; }
  main { padding-top: 24px; padding-bottom: 48px; }
  .page-topline { margin-bottom: 21px; }
  .eyebrow, .mini-label { font-size: 11px; letter-spacing: 1.1px; }
  .date-label, .edition { font-size: 12px; }
  .section-head { margin-bottom: 22px; gap: 12px 16px; }
  .section-head h1 { font-size: 38px; }
  .section-head h2 { font-size: 28px; }
  .section-head p { font-size: 16px; }
  .section-head .edition { display: none; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .visual-network { aspect-ratio: 2.25; }
  .story-body { padding: 23px; }
  .story-title { font-size: 29px; }
  .side-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-card { padding: 23px; }
  .side-card h2, .side-card h3 { font-size: 23px; }
  .offer-number { font-size: 46px; flex-wrap: wrap; gap: 10px; }
  .offer-desc, .practice-teaser p { font-size: 15px; }
  .section { margin-top: 44px; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tool-grid .tool-card:last-child { grid-column: auto; }
  .tool-card { padding: 24px; }
  .tool-name { font-size: 21px; }
  .tool-card > p { margin-top: 17px; }
  .offer-wide { grid-template-columns: minmax(0, 1fr); padding: 26px; gap: 22px; }
  .offer-wide h2, .offer-wide h3 { font-size: 28px; }
  .offer-wide-action { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
  .offer-metrics { gap: 22px 27px; margin-top: 22px; }
  .practice-grid { grid-template-columns: minmax(0, 1fr); }
  .practice-card { grid-template-columns: 31% minmax(0, 1fr); }
  .practice-card-text { grid-template-columns: minmax(0, 1fr); }
  .practice-art { aspect-ratio: auto; min-height: 240px; }
  .latest-item { grid-template-columns: 26px minmax(0, 1fr); gap: 10px 14px; padding: 23px 0; }
  .latest-kind { grid-column: 2; justify-self: start; }
  .latest-copy h3 { font-size: 20px; }
  .breadcrumbs { margin-bottom: 23px; }
  .detail-heading h1 { font-size: 38px; margin: 18px 0; }
  .lead, .product-copy .lead { font-size: 18px; }
  .article-actions, .article-meta .button-row { flex-basis: 100%; margin-left: 0; margin-top: 5px; }
  .detail-layout { gap: 28px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 18px; line-height: 1.85; }
  .prose h2 { font-size: 27px; margin-top: 34px; }
  .prose h3 { font-size: 22px; }
  .related-card { padding: 22px; }
  .related-card h3 { font-size: 21px; }
  .related-card p { font-size: 15px; }
  .product-heading { grid-template-columns: 68px minmax(0, 1fr); gap: 18px; }
  .product-logo { width: 68px; height: 68px; border-radius: 18px; }
  .product-logo svg, .product-logo .icon { width: 38px; height: 38px; }
  .product-copy h1 { font-size: 38px; }
  .product-copy .button-row { margin-left: -86px; }
  .tool-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 26px 0; }
  .tool-facts > div { padding: 18px; }
  .tool-facts > div:nth-child(2) { border-right: 0; }
  .tool-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .capability-grid { gap: 13px; }
  .capability-card { padding: 22px; }
  .comparison-table { min-width: 450px; }
  .comparison-table th, .comparison-table td { padding: 14px; }
  .offer-hero { grid-template-columns: minmax(0, 1fr); padding: 28px; gap: 24px; }
  .offer-hero-copy h1, .offer-hero-copy h2 { font-size: 36px; }
  .offer-hero-number { display: flex; align-items: center; gap: 20px; padding: 22px 0 0; border-top: 1px solid var(--green-line); border-left: 0; text-align: left; }
  .offer-hero-number strong { font-size: 65px; }
  .offer-hero-number span { max-width: 190px; margin: 0; }
  .conditions-list > div, .conditions-list dl > div { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 17px 0; }
  .guide-overview { gap: 12px; }
  .overview-item { padding: 18px 15px; }
  .step { gap: 16px; }
  .step-content h2 { font-size: 26px; }
  .code-card pre { padding: 18px; }
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 33px 0 29px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .footer-about { max-width: none; }
  .footer-links { padding: 0; }
  .footer-bottom { font-size: 12px; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .header-inner { gap: 6px; }
  .brand { gap: 7px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 13px; letter-spacing: .7px; }
  .brand-caption { display: none; }
  .header-actions { gap: 0; }
  .search-trigger { border-color: transparent; background: transparent; }
  .theme-toggle { border-color: transparent; background: transparent; }
  .primary-nav { right: 16px; left: 16px; }
  .page-topline { gap: 10px; }
  .page-topline .eyebrow { max-width: 100%; }
  .page-topline .date-label { flex-basis: 100%; }
  .section-head h1 { font-size: 34px; line-height: 1.14; }
  .section-head h2 { font-size: 27px; }
  .story-title { font-size: 27px; }
  .story-body { padding: 22px; }
  .visual-network { aspect-ratio: 2.25; }
  .story-bottom { flex-wrap: wrap; gap: 10px; }
  .story-bottom .save-button { margin-left: auto; }
  .side-stack { grid-template-columns: minmax(0, 1fr); }
  .side-card { padding: 25px; }
  .side-card h2, .side-card h3 { font-size: 25px; }
  .offer-number { flex-wrap: nowrap; font-size: 56px; gap: 17px; }
  .offer-number > span { font-size: 14px; }
  .task-link { min-height: 96px; padding: 16px 28px 16px 13px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .task-link > span:not(.task-icon) { font-size: 14px; }
  .task-link > .icon:last-child { top: 27px; transform: none; right: 10px; }
  .task-icon { width: 34px; height: 34px; }
  .tool-card { padding: 23px; }
  .filter-row { gap: 8px; }
  .filter-chip { padding-inline: 13px; }
  .filter-row > .small { flex-basis: 100%; padding-top: 4px; }
  .offer-wide { padding: 24px; }
  .offer-wide h2, .offer-wide h3 { font-size: 27px; }
  .offer-metrics { gap: 20px; }
  .offer-metrics > div { max-width: 100%; }
  .practice-card { grid-template-columns: minmax(0, 1fr); }
  .practice-art { aspect-ratio: 2.6; min-height: 0; }
  .practice-body { padding: 24px; }
  .practice-body h3 { font-size: 25px; }
  .related-grid, .capability-grid { grid-template-columns: minmax(0, 1fr); }
  .related-card { padding: 24px; }
  .detail-heading h1 { font-size: 34px; }
  .product-heading { grid-template-columns: 57px minmax(0, 1fr); gap: 15px; }
  .product-logo { width: 57px; height: 57px; border-radius: 16px; }
  .product-logo svg, .product-logo .icon { width: 33px; height: 33px; }
  .product-copy h1 { font-size: 34px; }
  .product-copy .lead { margin-left: -72px; margin-top: 24px; }
  .product-copy .button-row { margin-left: -72px; }
  .tool-facts > div { padding: 17px; }
  .tool-facts strong { font-size: 15px; }
  .inline-tool { gap: 12px; padding: 18px; }
  .inline-tool .tool-logo { width: 40px; height: 40px; }
  .inline-tool strong { font-size: 17px; }
  .callout { padding: 22px; }
  .offer-hero { padding: 25px; }
  .offer-hero-copy h1, .offer-hero-copy h2 { font-size: 32px; }
  .offer-hero-number strong { font-size: 62px; }
  .guide-overview { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .overview-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; }
  .overview-item span, .overview-item small { margin: 0; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .step-number { width: 40px; height: 40px; }
  .step-content h2 { margin-top: 2px; }
  .check-row { padding: 14px; }
  .code-toolbar { padding: 10px 12px; gap: 8px; font-size: 12px; }
  .code-toolbar button { font-size: 12px; }
  .code-card pre { padding: 16px; font-size: 13px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-brand { grid-column: auto; }
  .site-dialog { max-height: calc(100dvh - 28px); border-radius: 17px; }
  .dialog-header { padding: 17px 18px 14px; gap: 10px; }
  .dialog-header h2 { font-size: 23px; }
  #search-input { width: calc(100% - 36px); margin-inline: 18px; }
  .site-dialog > p.small { padding-inline: 18px; font-size: 13px; }
  .dialog-results { padding: 0 12px 13px; max-height: 54dvh; }
  .result-item { padding: 16px 11px; }
  .result-title { font-size: 17px; }
  .saved-row { gap: 4px; align-items: flex-start; }
  .saved-remove { margin-top: 14px; padding-inline: 9px; }
  .toast { bottom: 16px; }
}
@media (max-width: 359px) {
  .site-header .brand > span:not(.brand-mark) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .site-header .brand-mark { width: 36px; height: 36px; }
  .header-inner { gap: 10px; }
  .section-head h1 { font-size: 31px; }
  .story-title { font-size: 25px; }
  .story-body, .side-card, .practice-body { padding: 21px; }
  .offer-number { font-size: 49px; gap: 12px; }
  .offer-number > span { font-size: 13px; }
  .task-link > span:not(.task-icon) { font-size: 13px; }
  .offer-hero { padding: 22px; }
  .offer-hero-copy h1, .offer-hero-copy h2 { font-size: 30px; }
  .offer-hero-number { gap: 14px; }
  .offer-hero-number strong { font-size: 55px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  :root, :root[data-theme="light"] { --page: #fff; --surface: #fff; --surface-raised: #f5f5f5; --surface-soft: #f5f5f5; --ink: #111; --secondary: #222; --muted: #444; --faint: #555; --blue: #263d8c; --line: #ccc; --code-bg: #f5f5f5; --code-ink: #111; }
  .site-header, .site-footer, .header-actions, .save-button, .sidebar, .site-dialog, .toast, .filter-row, body::before { display: none !important; }
  body { background: #fff; color: #111; }
  .container { width: 100%; max-width: none; }
  main { padding: 0; }
  .detail-layout { display: block; }
  .prose { max-width: none; }
  .feature-grid, .tool-grid, .practice-grid { display: block; }
  .lead-story, .side-card, .tool-card, .practice-card { margin-bottom: 20px; break-inside: avoid; box-shadow: none; }
  .article-cover { max-width: 650px; }
  .button { border-color: #777; background: #fff; color: #111; }
  .gradient-text { background: none; -webkit-text-fill-color: #263d8c; }
}


/* Free AI directory and reusable verified offer cards. */
.catalog-heading { padding: 42px 0 24px; max-width: 900px; }
.catalog-heading h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.08; margin: 10px 0 18px; }
.catalog-heading .lead { max-width: 780px; }
.free-offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.free-home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.free-offer-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  display: flex; flex-direction: column; gap: 10px; padding: 20px; min-width: 0;
  box-shadow: var(--shadow);
}
.free-offer-card:hover { border-color: var(--blue-line); }
.free-offer-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.free-offer-category { color: var(--muted); font-size: 12px; text-align: right; }
.free-offer-card h3 { font-size: 18px; line-height: 1.3; margin: 5px 0 0; }
.free-offer-card h3 a:hover { color: var(--blue); }
.free-offer-limit { color: var(--green); font-size: 19px; font-weight: 750; line-height: 1.3; margin: 0; }
.free-offer-description { color: var(--secondary); font-size: 14px; line-height: 1.5; margin: 0 0 6px; }
.free-offer-tags { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.free-tag { display: inline-flex; align-items: center; min-height: 26px; border-radius: 20px; padding: 3px 9px; background: var(--surface-raised); border: 1px solid var(--line); color: var(--secondary); font-size: 12px; }
.verified-tag { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }
.verified-tag.needs-review { background: var(--yellow-soft); border-color: var(--yellow-line); color: var(--yellow); }
.free-offer-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.free-offer-footer .save-button { padding: 8px; }
.free-offer-footer .save-button span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.free-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 22px 0 12px; }
.free-filters .free-search-field { grid-column: span 2; }
.tool-directory-filters .free-search-field { grid-column: auto; }
.free-filters label { display: block; color: var(--secondary); font-size: 13px; margin-bottom: 6px; font-weight: 600; }
.free-filters select, .free-filters input, .site-search-input {
  background: var(--surface); color: var(--ink); border: 1px solid var(--control-line);
  border-radius: 10px; padding: 11px 13px; min-height: 46px; width: 100%; font-size: 14px;
}
.free-filters select:focus-visible, .free-filters input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.free-empty { margin-top: 15px; }
.info-band { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.info-band h2 { margin-bottom: 10px; }
.free-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.free-category-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.free-category-link:hover { border-color: var(--blue); color: var(--blue); }
.free-category-link .icon { width: 16px; height: 16px; }
.service-offer-links { margin: 18px 0; }
.directory-results { max-width: 840px; margin: 16px 0 32px; }
@media (max-width: 1080px) {
  .free-offer-grid, .free-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .free-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .free-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .catalog-heading { padding: 26px 0 12px; }
  .free-offer-grid, .free-home-grid, .free-filters, .free-category-grid { grid-template-columns: minmax(0,1fr); }
  .free-filters .free-search-field { grid-column: auto; }
  .free-offer-card { padding: 18px; }
  .free-offer-limit { font-size: 18px; }
  .info-band { padding: 18px; }
}


.free-shortcuts { display:flex; align-items:center; flex-wrap:wrap; gap:8px 10px; margin:12px 0 0; }
.free-shortcuts a { color:var(--blue); background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:5px 12px; font-size:13px; min-height:34px; display:inline-flex; align-items:center; }
.free-shortcuts a:hover { border-color:var(--blue); background:var(--surface-raised); }
/* Inside "Бесплатное": two clear routes to web tools and developer APIs. */
.free-entrances {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin: 20px 0 12px;
}
.free-entry {
  min-width: 0; display: flex; flex-direction: column; gap: 5px;
  padding: 22px 24px; border-radius: 16px;
  border: 1px solid var(--line-strong); background: var(--surface);
  transition: background-color .16s ease, border-color .16s ease;
}
.free-entry:hover { border-color: var(--blue); background: var(--surface-raised); }
.free-entry-current { border-color: var(--green-line); background: var(--green-soft); }
.free-entry-current .eyebrow { color: var(--green); }
.free-entry strong { font-size: 20px; line-height: 1.25; color: var(--ink); }
.free-entry > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.55; }
.free-entry:focus-visible { outline-offset: 3px; }
.footer-sublink { margin-left: 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 620px) {
  .free-entrances { grid-template-columns: minmax(0, 1fr); }
  .free-entry { padding: 18px; }
}


/* Practical comparisons and original prompt library. */
.compare-table { min-width: 840px; }
.compare-table th[scope="row"] { background: var(--surface); }
.compare-table th[scope="row"] strong,
.compare-table td strong,
.compare-table th[scope="row"] .small,
.compare-table td .small { display: block; }
.compare-table th[scope="row"] .small,
.compare-table td .small { margin-top: 6px; line-height: 1.5; }
.compare-table .text-link { min-height: 36px; }
.compare-filter { max-width: 520px; grid-template-columns: 1fr; }
.prompt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 920px; }
.prompt-card { min-width: 0; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.prompt-card h2 { margin: 10px 0 8px; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.25; }
.prompt-card p { color: var(--muted); max-width: 70ch; }
.prompt-card .code-card { margin-bottom: 0; }
.prompt-card .code-card pre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
@media (max-width: 640px) {
  .prompt-card .code-card pre { padding: 16px; font-size: 13px; }
  .prompt-card .code-toolbar { align-items: flex-start; }
}


/* Editorial reading pages (news and API offers): one centered reading flow. */
.reading-page { width: 100%; max-width: 880px; margin: 0 auto; min-width: 0; }
.reading-page > .breadcrumbs,
.reading-page > .detail-heading,
.reading-page > .article-body,
.reading-page > .reading-source { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; }
.reading-page > .article-cover { width: 100%; max-width: 880px; margin: 0 auto 34px; }
.reading-page > .article-cover img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.reading-page > .article-body { text-align: left; }
.reading-page > .article-body .conditions-list { width: 100%; }
.reading-source {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px 25px; margin-top: 36px; padding: 21px 0 0; border-top: 1px solid var(--line);
}
.reading-source-intro { min-width: 0; flex: 1 1 260px; }
.reading-source-intro h2 { margin: 0 0 5px; color: var(--ink); font-size: 17px; line-height: 1.4; }
.reading-source-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.reading-source-links { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.reading-source-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; color: var(--blue); font-size: 14px; line-height: 1.4;
  font-weight: 600; overflow-wrap: anywhere;
}
.reading-source-link:hover { background: var(--surface-raised); border-color: var(--blue-line); }
.reading-source-link .icon { flex: none; width: 16px; height: 16px; }
.reading-related { margin: 55px auto 38px; }
.reading-related-heading { margin-bottom: 16px; }
.reading-related-heading h2 { margin: 0; color: var(--ink); font-size: 27px; line-height: 1.3; }
.reading-related-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.reading-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reading-card {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start;
  gap: 16px; min-width: 0; padding: 15px;
  border: 1px solid var(--line); border-radius: 15px; background: var(--surface);
  transition: background .18s ease, border-color .18s ease;
}
.reading-card:hover { border-color: var(--blue-line); background: var(--surface-raised); }
.reading-card:focus-visible, .reading-source-link:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 3px;
}
.reading-card-image { display: block; width: 112px; height: 84px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.reading-card-copy { min-width: 0; }
.reading-card-type { display: block; margin-bottom: 7px; color: var(--blue); font-size: 11px; font-weight: 650; }
.reading-card h3 { margin: 0 0 9px; color: var(--ink); font-size: 16px; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
.reading-card-action { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-size: 12px; font-weight: 650; }
.reading-card-action .icon { width: 13px; height: 13px; }
@media (max-width: 760px) {
  .reading-related-grid { grid-template-columns: minmax(0, 1fr); }
  .reading-card { grid-template-columns: 112px minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .reading-page > .article-cover { margin-bottom: 25px; }
  .reading-source { align-items: stretch; gap: 13px; margin-top: 28px; }
  .reading-source-links { width: 100%; }
  .reading-source-link { max-width: 100%; }
  .reading-related { margin-top: 38px; }
  .reading-related-heading h2 { font-size: 24px; }
  .reading-card { grid-template-columns: 94px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .reading-card-image { width: 94px; height: 76px; }
  .reading-card h3 { font-size: 15px; }
}
