/* ==========================================================================
   CareerKadam – public site styles
   Plain CSS, no build step. Tokens first, then layout, components, pages.
   ========================================================================== */

:root {
  --ink: #172A3A;
  --ink-2: #22313F;
  --text: #2E3C48;
  --muted: #51606E;
  --muted-2: #66737F;
  --line: #DDE3E1;
  --line-soft: #EDF1EF;
  --field: #C9D3CF;
  --bg: #F7F9F8;
  --surface: #FFFFFF;
  --green: #0E7C5A;
  --green-dark: #0A5C43;
  --green-deep: #083F2E;
  --mint-1: #E7F2EE;
  --mint-2: #CFE7DE;
  --mint-3: #A9D6C4;
  --mint-4: #7DC2A8;
  --gold: #F4B400;
  --gold-soft: #FFD666;
  --gold-text: #3A3200;
  --peach: #FCE3D2;
  --sky: #DCEBF7;
  --night-line: #2A3F51;
  --night-text: #C8D2DA;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
mark { background: #FFE7A3; color: inherit; padding: 0 2px; border-radius: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.container-read { max-width: 800px; margin: 0 auto; padding: 0 var(--gutter); }

/* ----- Buttons ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0F1D29; color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E2A700; color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid #5A6B7A; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { cursor: progress; opacity: .85; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--green); }
.link-strong { font-weight: 700; color: var(--green); }
.link-strong:hover { color: var(--green-dark); text-decoration: underline; }

/* ----- Header ----------------------------------------------------------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.hdr { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 27px; letter-spacing: -0.01em; }
.nav-main { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1 1 auto; font-weight: 600; font-size: 15px; }
.nav-main a { padding: 10px 0; }
.nav-main a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); }
.hdr-actions { display: flex; align-items: center; gap: 10px; padding: 12px 0; margin-left: auto; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--green); align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.mobile-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; font-size: 17px; }
.mobile-nav .btn { margin-top: 14px; width: 100%; }

/* ----- Breadcrumb -------------------------------------------------------- */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.breadcrumb li + li::before { content: "/"; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb [aria-current="page"] { color: var(--muted); max-width: min(46ch, 100%); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-dark .breadcrumb, .on-dark .breadcrumb a, .on-dark .breadcrumb [aria-current="page"] { color: var(--night-text); }

/* ----- Ads --------------------------------------------------------------- */
.ad-slot { display: block; text-align: center; min-height: 96px; }
.ad-slot--sidebar { min-height: 250px; }
.ad-placeholder { border: 1px dashed #B9C4C0; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 13px; min-height: inherit; height: 100%; }
.ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.ad-wrap { margin-top: 28px; }

/* ----- Section headings -------------------------------------------------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 34px; letter-spacing: -0.01em; }
.section-rule { padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.section-rule h2 { font-size: 30px; }

/* ----- Home hero + staircase -------------------------------------------- */
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero-inner { padding-top: 56px; padding-bottom: 0; }
.hero-top { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-end; margin-bottom: 44px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero h1 { margin: 0 0 14px; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -0.02em; }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.search-pill { flex: 1 1 340px; display: flex; gap: 8px; max-width: 460px; }
.search-pill input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 1.5px solid var(--field); border-radius: 999px; font-size: 16px; background: var(--bg); }

.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; }
.step { flex: 1 1 170px; min-width: 0; border-radius: 14px 14px 0 0; padding: 18px 18px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; position: relative; }
.step-num { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1; }
.step-title { font-weight: 700; font-size: 18px; }
.step-link { font-size: 14px; line-height: 1.4; }
.step--1 { min-height: 150px; background: var(--mint-1); } .step--1 .step-num { color: var(--green); } .step--1 .step-link { color: #3E4C59; }
.step--2 { min-height: 182px; background: var(--mint-2); } .step--2 .step-num { color: var(--green-dark); } .step--2 .step-link { color: #2E3C48; }
.step--3 { min-height: 214px; background: var(--mint-3); } .step--3 .step-num { color: var(--green-dark); } .step--3 .step-link { color: #1E2D3A; }
.step--4 { min-height: 246px; background: var(--mint-4); } .step--4 .step-num { color: var(--green-deep); } .step--4 .step-link { color: var(--ink); }
.step--5 { min-height: 278px; background: var(--green); } .step--5 .step-num { color: var(--gold-soft); } .step--5 .step-title, .step--5 .step-link { color: #fff; }
.step--6 { min-height: 310px; background: var(--green-dark); } .step--6 .step-num { color: var(--gold-soft); } .step--6 .step-title, .step--6 .step-link { color: #fff; }
.step--5 .step-link, .step--6 .step-link { color: #E3F3EC; }
.step--5 a:hover, .step--6 a:hover { color: var(--gold-soft); }
.step-flag { position: absolute; top: 16px; right: 16px; }

/* ----- Cards ------------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--mint-4); color: var(--ink); }
.card:hover .card-title { color: var(--green-dark); }
.card-media { display: block; width: 100%; object-fit: cover; background: var(--mint-1); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.kicker { color: var(--green); font-weight: 700; font-size: 14px; }
.card-title { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.22; }
.card-excerpt { color: var(--muted); line-height: 1.6; }
.meta { color: var(--muted-2); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; }

.feature-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.card--lead { flex: 3 1 520px; min-width: 0; }
.card--lead .card-media { aspect-ratio: 400 / 220; }
.card--lead .card-body { padding: 24px 28px 28px; gap: 10px; }
.card--lead .card-title { font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; }
.card--lead .card-excerpt { font-size: 17px; }
.feature-side { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.card--side { flex: 1 1 auto; }
.card--side .card-media { height: 150px; object-position: 50% 55%; }
.card--side .card-title { font-size: 22px; line-height: 1.2; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 24px; }
.card-grid .card-media { aspect-ratio: 2 / 1; }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 0; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.mini-card { display: flex; flex-direction: column; gap: 10px; }
.mini-card img { border-radius: var(--radius-sm); aspect-ratio: 22 / 13; object-fit: cover; width: 100%; background: var(--mint-1); }
.mini-card h3 { font-size: 19px; line-height: 1.3; }

/* Row list (title + reading time) */
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; justify-content: space-between; }
.row-list li:last-child { border-bottom: 0; }
.row-list a { flex: 1 1 360px; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.3; }
.row-list--bordered li:last-child { border-bottom: 1px solid var(--line); }

/* Article rows with thumbnail (category, search, tag, author) */
.article-rows { list-style: none; margin: 0; padding: 0; }
.article-row { display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.article-row__thumb { flex: 0 0 180px; }
.article-row__thumb img { display: block; width: 180px; height: 120px; border-radius: var(--radius-sm); object-fit: cover; background: var(--mint-1); }
.article-row__body { flex: 1 1 300px; min-width: 0; }
.article-row__body h3, .article-row__body h2 { margin: 6px 0 8px; font-size: 23px; line-height: 1.25; }
.article-row__body p.excerpt { color: var(--muted); line-height: 1.55; margin-bottom: 8px; }

/* ----- Layout with sidebar ---------------------------------------------- */
.with-sidebar { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.with-sidebar > .main-col { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.with-sidebar > .side-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.page-section { padding-top: 48px; padding-bottom: 72px; }

.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.widget h2 { font-size: 23px; margin-bottom: 6px; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.rank-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rank-list .rank { font-family: var(--serif); font-weight: 700; font-size: 28px; color: var(--green); width: 22px; line-height: 1; flex: none; }
.rank-list a { font-weight: 600; line-height: 1.4; }

.box-dark { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; }
.box-dark h2 { color: #fff; font-size: 23px; line-height: 1.15; margin-bottom: 8px; }
.box-dark p { color: var(--night-text); line-height: 1.5; margin-bottom: 16px; }

.newsletter { background: var(--gold); border-radius: var(--radius); padding: 26px 24px; }
.newsletter h2 { font-size: 25px; line-height: 1.15; margin-bottom: 8px; }
.newsletter p.lead { color: var(--gold-text); line-height: 1.5; margin-bottom: 16px; }
.newsletter form { display: flex; flex-direction: column; gap: 8px; }
.newsletter label { font-weight: 700; font-size: 14px; }
.newsletter input[type="email"] { height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: #fff; }
.newsletter .btn { border-radius: 10px; min-height: 48px; }
.form-msg { font-size: 14px; font-weight: 600; margin-top: 6px; }
.form-msg.is-ok { color: var(--green-dark); }
.form-msg.is-error { color: #A12A1B; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tool-teaser { background: var(--ink); color: #fff; border-radius: 22px; padding: 36px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.tool-teaser h2 { color: #fff; font-size: 32px; line-height: 1.1; margin-bottom: 10px; }
.tool-teaser .copy { flex: 1 1 280px; min-width: 0; }
.tool-teaser .copy p { color: var(--night-text); line-height: 1.55; }
.tool-teaser form { flex: 1 1 280px; min-width: 0; background: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tool-teaser label { color: var(--ink); font-weight: 700; font-size: 15px; }
.tool-teaser input { width: 100%; min-width: 0; height: 50px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 10px; font-size: 18px; color: var(--ink); }
.tool-teaser .btn { border-radius: 10px; min-height: 48px; }

/* ----- Category / listing hero ------------------------------------------ */
.list-hero { background: #fff; border-bottom: 1px solid var(--line); }
.list-hero .container { padding-top: 36px; padding-bottom: 32px; }
.list-hero__row { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-end; justify-content: space-between; }
.list-hero h1 { margin: 0 0 12px; font-size: clamp(38px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.02em; }
.step-bar { flex: 0 1 380px; display: flex; flex-direction: column; gap: 10px; }
.step-bar p { font-size: 14px; color: var(--muted); }
.step-bar ol { margin: 0; padding: 0; list-style: none; display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.step-bar li { flex: 1; background: var(--mint-1); border-radius: 6px 6px 0 0; position: relative; }
.step-bar li a { display: block; height: 100%; }
.step-bar li.is-current { background: var(--green); }
.step-bar li.is-current::after { content: ""; position: absolute; left: 50%; top: -14px; transform: translateX(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.step-bar .step-nav { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.step-bar .step-nav a { color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field); background: #fff; color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; }
.chip.is-active, .chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.lead-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-wrap: wrap; color: var(--ink); }
.lead-card:hover { border-color: var(--mint-4); color: var(--ink); }
.lead-card img { display: block; flex: 1 1 280px; min-width: 0; min-height: 220px; height: auto; align-self: stretch; object-fit: cover; background: var(--mint-1); }
.lead-card .lead-card__body { flex: 1 1 320px; padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.lead-card h2 { font-size: 30px; line-height: 1.15; }

.list-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.list-toolbar h2 { font-size: 28px; }
.select { height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 10px; background: #fff; }

/* ----- Load more + skeleton --------------------------------------------- */
.loadmore { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.loadmore .count { color: var(--muted-2); font-size: 14px; }
.loadmore .done { color: var(--muted); font-weight: 600; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--mint-2); border-top-color: var(--green); display: inline-block; animation: ck-spin .8s linear infinite; }
@keyframes ck-spin { to { transform: rotate(360deg); } }
.sk { background: linear-gradient(90deg, #E4EAE7 25%, #F3F6F4 40%, #E4EAE7 60%); background-size: 300% 100%; animation: ck-shimmer 1.3s ease-in-out infinite; }
@keyframes ck-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-row { display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.sk-thumb { flex: 0 0 180px; height: 120px; border-radius: var(--radius-sm); }
.sk-lines { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.sk-line { height: 14px; border-radius: 6px; }
.sk-line--title { height: 20px; border-radius: 8px; }
.fade-in { animation: ck-in .45s ease-out both; }
@keyframes ck-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sk, .spin, .fade-in { animation: none; } }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.pagination [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.js .pagination--enhanced { display: none; }

/* ----- Article page ------------------------------------------------------ */
.article-head { background: #fff; }
.article-head .container-read { padding-top: 40px; padding-bottom: 32px; }
.step-kicker { margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--green-dark); }
.article-head h1 { margin: 0 0 18px; font-size: clamp(34px, 4.8vw, 54px); line-height: 1.05; letter-spacing: -0.02em; }
.standfirst { margin: 0 0 28px; font-family: var(--serif); font-size: 22px; line-height: 1.45; color: #3E4C59; }
.byline-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--mint-1); color: var(--green-dark); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 19px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 64px; height: 64px; font-size: 24px; }
.byline .who { font-weight: 700; }
.byline .when { color: var(--muted); font-size: 14px; margin-top: 2px; }
.share { display: flex; gap: 8px; }
.hero-figure { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.hero-figure img { display: block; width: 100%; height: auto; border-radius: 20px; background: var(--mint-1); }
.hero-figure figcaption { font-size: 14px; color: var(--muted-2); margin-top: 8px; }

.article-layout { max-width: 1040px; margin: 0 auto; padding: 40px var(--gutter) 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.article-side { flex: 0 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
.article-main { flex: 999 1 600px; min-width: 0; max-width: 700px; }
.toc { border-left: 2px solid var(--line); padding-left: 18px; }
.toc p { margin: 0 0 12px; font-weight: 700; font-size: 15px; }
.toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; line-height: 1.4; font-size: 15px; color: var(--muted); }
.toc a { color: #3E4C59; }
.toc a.is-active { color: var(--green); font-weight: 600; }
.toc .toc-sub { margin-left: 8px; font-size: 14px; }

.summary-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; margin-bottom: 40px; font-size: 17px; line-height: 1.6; }
.summary-box p.title { margin: 0 0 10px; font-weight: 700; color: var(--green-dark); }
.summary-box ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Long-form typography */
.prose { font-family: var(--serif); font-size: 21px; line-height: 1.7; color: var(--ink-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; margin-top: 44px; margin-bottom: -6px; scroll-margin-top: 24px; }
.prose h3 { font-size: 26px; line-height: 1.2; margin-top: 32px; margin-bottom: -8px; scroll-margin-top: 24px; }
.prose h4 { font-size: 21px; margin-top: 28px; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--green-dark); }
.prose ul, .prose ol { padding-left: 26px; }
.prose li + li { margin-top: 8px; }
.prose blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--gold); font-size: 26px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.prose img { border-radius: 14px; display: block; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8em; background: var(--mint-1); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: #0D1B26; color: #E7F2EE; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose .table-wrap { font-family: var(--sans); overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; min-width: 520px; color: var(--ink); }
.prose th { background: var(--mint-1); text-align: left; padding: 14px 18px; }
.prose td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.prose input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); vertical-align: -3px; margin-right: 8px; }
.prose li:has(> input[type="checkbox"]) { list-style: none; margin-left: -26px; }

.cta-dark { font-family: var(--sans); display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 16px; padding: 22px 26px; text-decoration: none !important; }
.cta-dark:hover { color: #fff; background: #0F1D29; }
.cta-dark .cta-copy { flex: 1 1 280px; font-size: 18px; line-height: 1.45; }
.cta-dark .cta-copy strong { display: block; }
.cta-dark .cta-copy span { color: var(--night-text); font-size: 16px; }
.cta-dark .cta-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 10px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 16px; }

.inline-card { font-family: var(--sans); display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none !important; color: var(--ink) !important; }
.inline-card img { width: 96px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.inline-card small { display: block; color: var(--green); font-weight: 700; font-size: 13px; }
.inline-card strong { font-family: var(--serif); font-size: 19px; line-height: 1.25; }

.faq { font-family: var(--sans); border-top: 1px solid var(--line); font-size: 17px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--green); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { margin-top: 12px; line-height: 1.65; color: #3E4C59; }
.faq .answer p + p { margin-top: 10px; }
.article-section-title { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.15; margin: 48px 0 18px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.tag-list a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--field); font-weight: 600; font-size: 14px; background: #fff; }

.author-box { display: flex; flex-wrap: wrap; gap: 20px; padding: 28px 0; border-top: 2px solid var(--ink); margin: 40px 0 32px; }
.author-box .who { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.author-box p { line-height: 1.6; color: #3E4C59; margin-bottom: 10px; }

.next-step { display: flex; gap: 20px; align-items: center; background: var(--green-dark); color: #fff; border-radius: var(--radius); padding: 26px 28px; }
.next-step:hover { color: #fff; background: var(--green-deep); }
.next-step .label { display: block; color: var(--mint-2); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.next-step .title { display: block; font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.2; }

.keep-reading { background: #fff; border-top: 1px solid var(--line); }
.keep-reading .container { padding-top: 52px; padding-bottom: 64px; }
.keep-reading h2 { font-size: 32px; margin-bottom: 24px; }

/* ----- Tools ------------------------------------------------------------- */
.tool-hero { background: var(--ink); color: #fff; }
.tool-hero .container { padding-top: 40px; padding-bottom: 128px; }
.tool-hero h1 { color: #fff; margin: 0 0 12px; font-size: clamp(38px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.02em; }
.tool-hero p { color: var(--night-text); font-size: 19px; line-height: 1.55; max-width: 34em; }
.tool-panels { margin-top: -96px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.panel { flex: 1 1 420px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.panel h2 { font-size: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field-label { font-weight: 700; }
.field .hint { color: var(--muted); font-size: 14px; line-height: 1.5; }
.input, .textarea, .field select { height: 52px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.textarea { height: auto; padding: 14px; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--green); }
.affix { display: flex; align-items: stretch; border: 1.5px solid var(--field); border-radius: 12px; overflow: hidden; background: #fff; }
.affix span { padding: 0 14px; font-size: 20px; color: var(--muted); background: var(--bg); display: flex; align-items: center; border-right: 1px solid var(--line); }
.affix input { flex: 1; min-width: 0; height: 54px; padding: 0 14px; border: 0; font-size: 20px; font-weight: 600; }
.range-row { display: flex; justify-content: space-between; align-items: baseline; }
.range-row output { font-weight: 700; color: var(--green); }
input[type="range"] { accent-color: var(--green); width: 100%; height: 44px; }
.result-big { font-family: var(--serif); font-weight: 600; font-size: 60px; line-height: 1.05; letter-spacing: -0.02em; color: var(--green-dark); }
.split-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: var(--line-soft); }
.split-bar span { display: block; height: 100%; transition: width .3s; }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: #3E4C59; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.breakdown { margin: 0; border-top: 1px solid var(--line); }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.breakdown div:last-child { border-bottom: 0; }
.breakdown dt { color: #3E4C59; }
.breakdown dd { margin: 0; font-weight: 700; }
.fineprint { color: var(--muted); font-size: 14px; line-height: 1.55; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.winner { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--mint-1); color: var(--green-dark); font-weight: 700; font-size: 13px; }
.tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tool-card h3 { font-size: 23px; }
.tool-card p { color: var(--muted); line-height: 1.5; }
.tool-card .soon { color: var(--muted-2); font-weight: 600; font-size: 14px; }

/* ----- About ------------------------------------------------------------- */
.about-hero { background: #fff; border-bottom: 1px solid var(--line); }
.about-hero .container { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.about-hero h1 { margin: 0 0 20px; font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
.about-hero .copy { flex: 1 1 520px; min-width: 0; }
.portrait { flex: 0 1 380px; margin: 0; }
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; background: var(--mint-1); }
.journey { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; }
.journey li { flex: 1 1 220px; min-width: 0; border-radius: 14px 14px 0 0; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; position: relative; }
.journey .year { font-size: 14px; }
.journey .what { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value h3 { margin: 14px 0 8px; font-size: 23px; }
.value p { color: var(--muted); line-height: 1.55; }
.cta-band { background: var(--ink); color: #fff; border-radius: 24px; padding: 44px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; font-size: 34px; line-height: 1.1; margin-bottom: 10px; }
.cta-band p { color: var(--night-text); font-size: 17px; line-height: 1.5; }

/* ----- Contact ----------------------------------------------------------- */
.contact-layout { padding-top: 56px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.contact-layout .copy { flex: 1 1 380px; min-width: 0; }
.contact-layout h1 { margin: 0 0 16px; font-size: clamp(38px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.02em; }
.contact-list { margin: 36px 0 0; border-top: 1px solid var(--line); }
.contact-list > div { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-weight: 700; margin-bottom: 4px; }
.contact-list dd { margin: 0; color: var(--muted); line-height: 1.5; }
.contact-list a { color: var(--green); text-decoration: underline; }
.form-card { flex: 1 1 480px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row > .field { flex: 1 1 200px; }
.check { display: flex; gap: 12px; align-items: flex-start; color: #3E4C59; font-size: 15px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.check a { color: var(--green); text-decoration: underline; }
.field-error { color: #A12A1B; font-size: 14px; font-weight: 600; }
.input.is-invalid, .textarea.is-invalid { border-color: #C2412D; }
.alert { border-radius: 14px; padding: 16px 18px; font-weight: 600; line-height: 1.5; }
.alert-success { background: var(--mint-1); color: var(--green-dark); border: 1px solid var(--mint-3); }
.alert-error { background: #FDECEA; color: #8A2316; border: 1px solid #F3C2BA; }

/* ----- Legal ------------------------------------------------------------- */
.page-hero { background: #fff; border-bottom: 1px solid var(--line); }
.page-hero .container-narrow { padding-top: 40px; padding-bottom: 36px; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(38px, 5vw, 54px); line-height: 1.04; letter-spacing: -0.02em; }
.page-hero p { color: var(--muted); font-size: 17px; }
.legal-layout { padding: 40px var(--gutter) 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.legal-nav { flex: 0 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.legal-nav a { padding: 12px 16px; border-radius: 12px; font-weight: 600; color: #3E4C59; }
.legal-nav a[aria-current="page"] { background: var(--mint-1); color: var(--green-dark); font-weight: 700; }
.legal-nav a.boxed { margin-top: 12px; border: 1px solid var(--line); background: #fff; }
.legal { flex: 999 1 560px; min-width: 0; max-width: 720px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; margin: 44px 0 12px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--text); }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal a { color: var(--green); text-decoration: underline; }
.legal .summary-box { margin-bottom: 8px; }
.notice-warn { display: flex; gap: 16px; background: #FFF6DB; border: 1px solid #F2DC9A; border-radius: 16px; padding: 22px 24px; margin-bottom: 8px; color: #4A3A00; }
.notice-warn p { color: #4A3A00 !important; margin: 0 !important; }

/* ----- Search ------------------------------------------------------------ */
.search-hero { background: #fff; border-bottom: 1px solid var(--line); }
.search-hero .container { padding-top: 36px; }
.search-big { display: flex; gap: 10px; max-width: 760px; }
.search-big .box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; border: 2px solid var(--green); border-radius: 999px; background: #fff; }
.search-big input { flex: 1; min-width: 0; height: 100%; border: 0; font-size: 19px; background: transparent; outline: none; }
.search-big .btn { min-height: 60px; }
.search-hero h1 { margin: 28px 0 0; font-size: 34px; line-height: 1.15; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 18px; font-weight: 600; }
.tabs a { padding: 12px 0; color: #3E4C59; }
.tabs a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px 0 var(--green); }
.tool-hit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px 28px; }
.tool-hit:hover { color: #fff; background: #0F1D29; }
.tool-hit .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--gold); display: flex; align-items: center; justify-content: center; flex: none; }
.tool-hit .txt { flex: 1 1 260px; min-width: 0; }
.tool-hit small { display: block; color: var(--gold); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.tool-hit strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; }
.tool-hit .sub { display: block; color: var(--night-text); margin-top: 4px; }
.tool-hit .go { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; }
.pill-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-links a { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--field); font-weight: 600; font-size: 15px; }
.empty-state { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }
.empty-state h2 { font-size: 26px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); }

/* ----- Error page -------------------------------------------------------- */
.error-wrap { padding-top: 48px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.error-wrap .copy { flex: 1 1 420px; min-width: 0; }
.error-wrap h1 { margin: 0 0 16px; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.error-wrap figure { flex: 1 1 480px; min-width: 0; margin: 0; }
.error-wrap figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.quick-links a { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.quick-links small { color: var(--green); font-weight: 700; font-size: 14px; }
.quick-links strong { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.25; }

/* ----- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--night-text); }
.site-footer .cols { padding-top: 52px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 40px; }
.site-footer .about { flex: 2 1 300px; min-width: 0; }
.site-footer .about p { line-height: 1.65; max-width: 34ch; }
.site-footer nav { flex: 1 1 150px; display: flex; flex-direction: column; gap: 10px; }
.site-footer nav p { margin: 0 0 4px; font-weight: 700; color: #fff; }
.site-footer a { color: var(--night-text); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span { font-family: var(--serif); font-weight: 700; font-size: 24px; color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--night-line); display: inline-flex; align-items: center; justify-content: center; }
.footer-bottom { border-top: 1px solid var(--night-line); }
.footer-bottom .container { padding-top: 18px; padding-bottom: 18px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ----- Responsive -------------------------------------------------------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .nav-main, .sub-btn { display: none !important; }
  .menu-btn { display: inline-flex; }
  .hdr { column-gap: 12px; }
  .brand-name { font-size: 23px; }
  .steps { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scroll-snap-type: x mandatory; }
  .steps > li { flex: 0 0 150px; scroll-snap-align: start; }
  .step--1 { min-height: 130px; } .step--2 { min-height: 146px; } .step--3 { min-height: 162px; }
  .step--4 { min-height: 178px; } .step--5 { min-height: 194px; } .step--6 { min-height: 210px; }
  .card--side .card-media { max-height: 190px; }
  .article-side { order: 2; flex: 1 1 100%; position: static; }
  .prose { font-size: 19px; }
  .prose h2 { font-size: 29px; }
  .journey li { min-height: 0 !important; border-radius: 12px; }
  .journey li:nth-child(1) { margin-right: 30%; } .journey li:nth-child(2) { margin-left: 10%; margin-right: 20%; }
  .journey li:nth-child(3) { margin-left: 20%; margin-right: 10%; } .journey li:nth-child(4) { margin-left: 30%; padding-right: 56px; }
  .portrait { max-width: 260px; }
  .panel, .form-card { padding: 24px; }
  .tool-teaser, .cta-band { padding: 28px; }
  .result-big { font-size: 48px; }
  .article-row__thumb, .article-row__thumb img { width: 100%; flex-basis: 100%; height: auto; aspect-ratio: 3 / 2; }
  .sk-thumb { flex-basis: 100%; height: 200px; }
  .search-big .btn { padding: 0 18px; }
}

@media print {
  .site-header, .site-footer, .ad-slot, .ad-wrap, .share, .article-side, .newsletter, .keep-reading, .next-step { display: none !important; }
  body { background: #fff; }
}

/* Small phones: keep the search box and breadcrumb inside the screen. */
@media (max-width: 480px) {
  .search-pill { flex-basis: 100%; max-width: 100%; min-width: 0; }
  .search-pill .btn { padding-left: 18px; padding-right: 18px; }
  .breadcrumb li:last-child { flex: 1 1 0; }
  .tool-teaser, .cta-band { padding: 22px; }
  .tool-teaser form { padding: 16px; }
}