/* Loan-type site: picker, loan pages, calculators, news, old-timer's guide. Builds on site.css tokens. */

.lf-page { padding: 6.5rem clamp(1.25rem, 4vw, 3rem) 4rem; color: var(--ink-secondary); background: var(--canvas); }
.lf-wrap { max-width: var(--container); margin: 0 auto; }
.lf-page h1 { font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.2rem); letter-spacing: -0.02em; line-height: 1.08; color: var(--ink); margin-bottom: 1rem; }
.lf-page h2 { font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: -0.01em; color: var(--ink); margin: 3rem 0 0.9rem; }
.lf-page h3 { font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 1.6rem 0 0.5rem; }
.lf-page p, .lf-page li { line-height: 1.7; color: var(--muted); }
.lf-page p { max-width: 68ch; margin-bottom: 1rem; }
.lf-page ul, .lf-page ol { max-width: 68ch; padding-left: 1.2rem; margin-bottom: 1.2rem; }
.lf-page li { margin-bottom: 0.4rem; }
.lf-page li strong, .lf-page p strong { color: var(--ink-secondary); font-weight: 600; }
.lf-page a:not(.lf-btn):not(.lf-card) { color: var(--accent); }
.lf-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 0.9rem; }
.lf-lede { font-size: 1.1rem; color: var(--fog); max-width: 62ch; }
.lf-crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.2rem; }
.lf-crumbs a { color: var(--fog); }

.lf-btn { display: inline-block; border: 1px solid var(--accent-border); color: var(--ink); padding: 0.7rem 1.4rem; border-radius: var(--pill); font-size: 0.9rem; background: rgba(52, 213, 154, 0.08); transition: border-color 0.3s, background 0.3s; cursor: pointer; font-family: inherit; }
.lf-btn:hover { border-color: var(--accent); background: rgba(52, 213, 154, 0.16); }
.lf-btn--ghost { background: transparent; border-color: var(--line-strong); }

/* ---------- Home hero + finder ---------- */
.lf-hero { padding: 7.5rem clamp(1.25rem, 4vw, 3rem) 3rem; background: radial-gradient(ellipse 70% 60% at 75% 20%, rgba(52, 213, 154, 0.12), transparent 60%), var(--canvas); }
.lf-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 16ch; }
.lf-finder { margin-top: 2rem; background: var(--surface); border: 1px solid var(--line-strong); padding: 1.4rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: end; }
.lf-finder label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.4rem; }
.lf-finder select { width: 100%; padding: 0.75rem; background: var(--canvas); border: 1px solid var(--line-strong); color: var(--ink); font: inherit; font-size: 0.92rem; }
.lf-picks { margin-top: 1.1rem; }
.lf-picks[hidden] { display: none; }
.lf-picks h2 { margin-top: 0; font-size: 1.1rem; }

.lf-grid-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); margin-top: 1.4rem; }
.lf-card { display: flex; flex-direction: column; gap: 0.55rem; background: var(--surface); padding: 1.5rem 1.4rem; transition: background 0.3s; color: var(--ink-secondary); }
.lf-card:hover, .lf-card.is-pick { background: var(--surface-hover); }
.lf-card.is-pick { outline: 1px solid var(--accent); outline-offset: -1px; }
.lf-card h3 { margin: 0; font-size: 1.15rem; }
.lf-card .lf-for { font-size: 0.88rem; color: var(--muted); line-height: 1.55; flex: 1; }
.lf-card .lf-facts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.3rem 0; }
.lf-chip { font-size: 0.72rem; color: var(--fog); border: 1px solid var(--line-strong); padding: 0.2rem 0.55rem; border-radius: var(--pill); }
.lf-card .lf-go { font-size: 0.85rem; color: var(--accent); }
.lf-why { font-size: 0.8rem; color: var(--accent); }

.lf-rates { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--surface); margin-top: 1.4rem; font-size: 0.88rem; }
.lf-rates b { color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-weight: 500; margin-left: 0.4rem; }
.lf-rates small { color: var(--muted); width: 100%; }

.lf-steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1.2rem; counter-reset: s; }
.lf-steps > div { border-top: 1px solid var(--accent-border); padding-top: 1rem; counter-increment: s; }
.lf-steps > div::before { content: counter(s, decimal-leading-zero); font-family: 'IBM Plex Mono', monospace; color: var(--accent); font-size: 0.8rem; }

/* ---------- Loan page ---------- */
.lf-facts-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.6rem 0 0.5rem; }
.lf-facts-table > div { background: var(--surface); padding: 1rem 1.1rem; }
.lf-facts-table dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.3rem; }
.lf-facts-table dd { color: var(--ink); font-size: 0.98rem; line-height: 1.4; }
.lf-two { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lf-box { border: 1px solid var(--line); background: var(--surface); padding: 1.1rem 1.3rem; }
.lf-box h3 { margin-top: 0; }
.lf-box ul { margin-bottom: 0; }
.lf-apply { list-style: none; padding: 0; counter-reset: a; max-width: 74ch; }
.lf-apply li { counter-increment: a; position: relative; padding: 0 0 1.1rem 3rem; border-left: 1px solid var(--line-strong); margin-left: 1rem; }
.lf-apply li::before { content: counter(a); position: absolute; left: -1rem; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--canvas); border: 1px solid var(--accent-border); color: var(--accent); display: grid; place-items: center; font-size: 0.85rem; }
.lf-apply li strong { display: block; color: var(--ink); margin-bottom: 0.15rem; }
.lf-faq details { border-top: 1px solid var(--line); padding: 0.9rem 0; max-width: 72ch; }
.lf-faq summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.lf-faq p { margin: 0.6rem 0 0; }
.lf-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.lf-table caption { text-align: left; font-weight: 600; color: var(--ink-secondary); margin-bottom: 0.5rem; }
.lf-table th, .lf-table td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; color: var(--muted); }
.lf-table th { background: var(--surface); color: var(--ink-secondary); }
.lf-table tr.is-selected td { color: var(--ink); background: rgba(52, 213, 154, 0.08); }
.lf-disclaimer { margin: 2.5rem 0 0; border: 1px solid var(--line); background: var(--surface); padding: 1rem 1.25rem; max-width: 72ch; font-size: 0.9rem; color: var(--muted); }

/* ---------- Calculators ---------- */
.lf-calc { border: 1px solid var(--line-strong); background: var(--surface); margin: 1.4rem 0; }
.lf-title { margin: 0 !important; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); font-size: 1.05rem !important; }
.lf-grid { display: grid; gap: 1rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 1.3rem 1.4rem; }
.lf-field label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.4rem; }
.lf-field small { display: block; color: var(--muted); font-size: 0.74rem; margin-top: 0.3rem; line-height: 1.4; }
.lf-input { display: flex; align-items: stretch; border: 1px solid var(--line-strong); background: var(--canvas); }
.lf-input:focus-within { border-color: var(--accent); }
.lf-affix { padding: 0 0.7rem; display: flex; align-items: center; color: var(--muted); font-size: 0.85rem; background: var(--surface); white-space: nowrap; }
.lf-input .lf-affix:first-child { border-right: 1px solid var(--line); }
.lf-input .lf-affix:last-child { border-left: 1px solid var(--line); }
.lf-input input, .lf-input select { flex: 1; min-width: 0; width: 100%; padding: 0.7rem 0.8rem; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.lf-input input[type="text"] { text-align: right; -moz-appearance: textfield; appearance: textfield; }
.lf-input input::-webkit-outer-spin-button, .lf-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lf-select select option { background: var(--surface); color: var(--ink); }
.lf-result { border-top: 1px solid var(--line); padding: 1.3rem 1.4rem 1.4rem; background: rgba(52, 213, 154, 0.03); }
.lf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.9rem; }
.lf-head span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.lf-head strong { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--accent); font-weight: 500; font-family: 'IBM Plex Mono', monospace; text-shadow: 0 0 24px var(--accent-glow); }
.lf-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.lf-rows dt { color: var(--muted); }
.lf-rows dd { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.lf-notes { margin: 0.9rem 0 0 !important; font-size: 0.82rem; max-width: none !important; }

/* ---------- Tidbits (old sayings, quotes) ---------- */
.lf-tidbit { margin: 2rem 0; padding: 1rem 1.3rem; border-left: 2px solid var(--accent); background: linear-gradient(90deg, rgba(52, 213, 154, 0.07), transparent); max-width: 72ch; }
.lf-tidbit q { display: block; font-size: 1.08rem; line-height: 1.55; color: var(--ink); quotes: "\201C" "\201D"; }
.lf-tidbit cite { display: block; margin-top: 0.5rem; font-style: normal; font-size: 0.8rem; color: var(--muted); }
.lf-badge { display: inline-block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em; border: 1px solid var(--line-strong); padding: 0.1rem 0.45rem; border-radius: var(--pill); margin-left: 0.5rem; color: var(--fog); vertical-align: middle; }
.lf-badge--doc { color: var(--accent); border-color: var(--accent-border); }
.lf-tidbit p { margin: 0.5rem 0 0; font-size: 0.86rem; }

.lf-wisdom-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lf-wisdom-grid > div { background: var(--surface); padding: 1.3rem; }
.lf-wisdom-grid h3 { margin-top: 0; }
.lf-pic { font-size: 0.78rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.lf-myth { padding: 1rem 0; border-top: 1px solid var(--line); max-width: 74ch; }
.lf-myth b { color: var(--danger); font-weight: 500; }
.lf-myth span { color: var(--accent); }

/* ---------- News ---------- */
.lf-news { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 1.2rem; }
.lf-news article { background: var(--surface); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.lf-news .lf-meta { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.lf-news h3 { margin: 0; font-size: 1rem; line-height: 1.4; }
.lf-news h3 a { color: var(--ink); }
.lf-news p { font-size: 0.84rem; margin: 0; flex: 1; }
.lf-news time { font-size: 0.74rem; color: var(--muted); }
.lf-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 0; }
.lf-filter button { background: transparent; border: 1px solid var(--line-strong); color: var(--fog); padding: 0.4rem 0.9rem; border-radius: var(--pill); font: inherit; font-size: 0.82rem; cursor: pointer; }
.lf-filter button[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: rgba(52, 213, 154, 0.1); }
.lf-social { border: 1px dashed var(--line-strong); padding: 1.3rem; margin-top: 1.4rem; max-width: 72ch; }
.lf-social blockquote { margin: 1rem 0; }

/* ============================================================
   Desktop-first layout. Phones get the single-column rules at the bottom.
   ============================================================ */
.lf-page { padding: 6.25rem 2rem 5rem; }
.lf-wrap { max-width: 1240px; }
.lf-page p, .lf-page li { font-size: 1.02rem; }
.lf-lede { font-size: 1.18rem; max-width: 70ch; }

/* Home hero: copy on the left, finder card on the right */
.lf-hero { padding: 8rem 2rem 3.5rem; }
.lf-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: 4rem; align-items: center; }
.lf-hero h1 { max-width: 14ch; font-size: clamp(2.6rem, 5vw, 4.4rem); }
.lf-hero-card { background: var(--surface); border: 1px solid var(--line-strong); border-top: 2px solid var(--accent); padding: 1.8rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.lf-hero-card h2 { margin: 0 0 1.1rem; font-size: 1.15rem; }
.lf-hero-card .lf-finder { margin: 0; padding: 0; background: none; border: 0; grid-template-columns: 1fr; gap: 1.1rem; }
.lf-hero-card .lf-finder select { padding: 0.9rem; }
.lf-hero-card .lf-hint { margin: 1rem 0 0; font-size: 0.82rem; }
.lf-grid-cards { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.lf-picks { margin-top: 2rem; }

/* Loan and content pages: article plus sticky sidebar */
.lf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; align-items: start; margin-top: 2rem; }
.lf-main { container-type: inline-size; min-width: 0; }
.lf-main > h2:first-child { margin-top: 0; }
.lf-side { position: sticky; top: 96px; display: grid; gap: 1.25rem; }
.lf-side .lf-box { padding: 1.1rem 1.2rem; }
.lf-side h3 { margin: 0 0 0.6rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-weight: 400; }
.lf-side ul { list-style: none; padding: 0; margin: 0; }
.lf-side li { margin: 0; }
.lf-side li a { display: block; padding: 0.4rem 0; font-size: 0.93rem; color: var(--fog); border-bottom: 1px solid var(--line); }
.lf-side li:last-child a { border-bottom: 0; }
.lf-side li a:hover, .lf-side li a.is-current { color: var(--accent); }
.lf-side .ad-slot { min-height: 250px; margin: 0; max-width: none; }

/* Calculators: inputs on the left, live result on the right when there is room */
@container (min-width: 700px) {
  .lf-calc { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
  .lf-title { grid-column: 1 / -1; }
  .lf-calc .lf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
  .lf-calc .lf-result { border-top: 0; border-left: 1px solid var(--line); }
}

.lf-hero-grid + .lf-picks .lf-grid-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lf-news { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.lf-wisdom-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.lf-wisdom-grid > div { padding: 1.5rem; }

@media (max-width: 1100px) {
  .lf-layout { grid-template-columns: 1fr; gap: 2rem; }
  .lf-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .lf-hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .lf-hero h1 { max-width: 18ch; }
}

@media (max-width: 640px) {
  .lf-page { padding: 5.2rem 1.1rem 3.5rem; }
  .lf-hero { padding: 6rem 1.1rem 2rem; }
  .lf-hero-card { padding: 1.2rem; }
  .lf-lede { font-size: 1.05rem; }
  .lf-grid-cards, .lf-news, .lf-wisdom-grid { grid-template-columns: 1fr; }
  .lf-facts-table { grid-template-columns: 1fr 1fr; }
  .lf-table { display: block; overflow-x: auto; white-space: nowrap; }
  .lf-side { grid-template-columns: 1fr; }
  .lf-btn { display: block; text-align: center; margin-bottom: 0.6rem; }
}

/* home-art:start */
/* ============================================================
   Home start page, loan page headers, icons and charts
   ============================================================ */
.home { position: relative; min-height: 100vh; padding: 7.5rem 2rem 4rem; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 70% 55% at 72% 18%, rgba(52, 213, 154, 0.13), transparent 60%), radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 176, 32, 0.06), transparent 60%), var(--canvas); }
.home .art-flow { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); pointer-events: none; }
.home-inner { position: relative; z-index: 1; width: 100%; max-width: 920px; text-align: center; }
.home-motto { font-size: 0.86rem; color: var(--fog); margin-bottom: 1.4rem; letter-spacing: 0.02em; font-style: normal; font-weight: 400; }
.home h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); letter-spacing: -0.025em; line-height: 1.08; color: var(--ink); font-weight: 600; margin-bottom: 0.9rem; }
.home-sub { color: var(--muted); font-size: 1.08rem; margin: 0 auto 2.1rem; max-width: 56ch; line-height: 1.6; }

.home-search { position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.4rem 0.4rem 0.4rem 1.2rem; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5); transition: border-color 0.2s, box-shadow 0.2s; }
.home-search:focus-within { border-color: var(--accent); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(52, 213, 154, 0.13); }
.hs-icon { width: 28px; height: 28px; flex: 0 0 auto; }
.home-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 1.12rem; padding: 0.95rem 0.9rem; }
.home-search input::placeholder { color: var(--muted); }
.home-search button { border: 0; background: var(--accent); color: #04120c; font: inherit; font-weight: 600; padding: 0.9rem 1.8rem; border-radius: 999px; cursor: pointer; transition: filter 0.2s; }
.home-search button:hover { filter: brightness(1.1); }
#q-results { position: absolute; top: calc(100% + 12px); left: 0; right: 0; z-index: 20; list-style: none; margin: 0; padding: 0.45rem; text-align: left; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 34px 80px rgba(0, 0, 0, 0.65); }
#q-results li a { display: block; padding: 0.75rem 1rem; border-radius: 13px; }
#q-results li.on a, #q-results li a:hover { background: var(--surface-hover); }
#q-results strong { display: block; color: var(--ink); font-weight: 500; }
#q-results em { font-style: normal; color: var(--muted); font-size: 0.85rem; }
#q-results .none { padding: 0.9rem 1rem; color: var(--muted); }
#q-results .none a { display: inline; padding: 0; color: var(--accent); }
.home-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 1.3rem 0 2.6rem; }
.home-chips button { background: transparent; border: 1px solid var(--line-strong); color: var(--fog); padding: 0.45rem 1rem; border-radius: 999px; font: inherit; font-size: 0.86rem; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.home-chips button:hover { border-color: var(--accent); color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem 0.8rem 1.25rem; background: rgba(21, 22, 23, 0.82); border: 1px solid var(--line); border-radius: 18px; font-size: 0.95rem; color: var(--ink-secondary); transition: border-color 0.2s, transform 0.2s, background 0.2s; }
.tile:hover { border-color: var(--accent-border); transform: translateY(-3px); background: var(--surface-hover); color: var(--ink); }
.tile-ico { width: 56px; height: 56px; display: block; }
.home-links { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.7rem; justify-content: center; font-size: 0.9rem; }
.home-links a { color: var(--muted); }
.home-links a:hover { color: var(--accent); }

/* Loan page header with illustration */
.lf-pagehead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; align-items: center; }
.lf-pageart { width: 100%; max-width: 500px; justify-self: end; }
.lf-pageicon { width: 60px; height: 60px; margin-bottom: 0.9rem; }
.lf-cardico { display: block; width: 46px; height: 46px; margin-bottom: 0.4rem; }
.nav-menu a { display: grid; grid-template-columns: 36px 1fr; gap: 0.85rem; align-items: center; }
.mi { display: block; width: 36px; height: 36px; }
.nav-menu b { display: block; font-weight: 400; }
.mega-col a { padding: 0.55rem 0.7rem; }
.mega-col a span { font-size: 0.78rem; }

/* Charts */
.lf-charts { display: grid; gap: 1.1rem; margin: 0 0 1.1rem; }
.ch { margin: 0; padding: 0.9rem 1rem 1rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.ch-t { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.7rem; }
.c1 { --c: #34d59a; } .c2 { --c: #ffb020; } .c3 { --c: #8aa2ff; } .c4 { --c: #ff8a3d; } .c5 { --c: #c9c9d1; }
.ch-bar { display: flex; height: 34px; overflow: hidden; border-radius: 6px; background: var(--canvas); }
.ch-seg { display: flex; align-items: center; justify-content: center; background: var(--c); min-width: 2px; }
.ch-seg i { font-style: normal; font-size: 0.78rem; font-weight: 600; color: #05110c; }
.ch-leg { list-style: none; padding: 0; margin: 0.7rem 0 0; display: grid; gap: 0.3rem; }
.ch-leg li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.86rem; color: var(--muted); margin: 0; }
.ch-leg b { margin-left: auto; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.sw { width: 11px; height: 11px; border-radius: 3px; background: var(--c); flex: 0 0 auto; }
.ch-donutwrap { display: flex; align-items: center; gap: 1.2rem; }
.ch-donutwrap svg { width: 132px; flex: 0 0 auto; }
.ch-donutwrap .ch-leg { flex: 1; margin: 0; }
.ch-track { fill: none; stroke: var(--canvas); stroke-width: 15; }
.ch-arc { fill: none; stroke: var(--c); stroke-width: 15; }
.ch-c1 { font: 600 11px Inter, system-ui, sans-serif; fill: #fff; }
.ch-c2 { font: 400 8px Inter, system-ui, sans-serif; fill: var(--muted); }
.ch-gauge svg { width: 100%; max-width: 280px; display: block; margin: 0 auto; }
.ch-zone { fill: none; stroke-width: 14; }
.ch-zone.z1 { stroke: #ef4444; } .ch-zone.z2 { stroke: #ffb020; } .ch-zone.z3 { stroke: #34d59a; }
.ch-needle { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.ch-hub { fill: #fff; }
.ch-big { font: 600 22px Inter, system-ui, sans-serif; fill: #fff; }
.ch-tick { font: 400 9px Inter, system-ui, sans-serif; fill: var(--muted); }
.ch-verdict { text-align: center; font-size: 0.85rem; font-weight: 500; margin-top: 0.2rem; }
.ch-verdict.v1 { color: #ef4444; } .ch-verdict.v2 { color: #ffb020; } .ch-verdict.v3 { color: #34d59a; }
.ch-row { display: grid; grid-template-columns: minmax(130px, 1.1fr) 2fr auto; gap: 0.8rem; align-items: center; padding: 0.3rem 0; font-size: 0.86rem; color: var(--muted); }
.ch-row.on { color: var(--ink); }
.ch-lab small { display: block; font-size: 0.72rem; color: var(--muted); opacity: 0.85; }
.ch-track2 { height: 12px; background: var(--canvas); border-radius: 6px; overflow: hidden; }
.ch-fill { display: block; height: 100%; background: rgba(52, 213, 154, 0.55); border-radius: 6px; }
.ch-row.on .ch-fill { background: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.ch-fill.amber { background: rgba(255, 176, 32, 0.6); }
.ch-row b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; min-width: 3.5rem; }
.ch-line svg { width: 100%; display: block; }
.ch-axis { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.ch-save { stroke: var(--accent); stroke-width: 2.4; fill: none; }
.ch-area { fill: rgba(52, 213, 154, 0.12); stroke: none; }
.ch-cost { stroke: var(--amber); stroke-width: 1.8; stroke-dasharray: 5 4; fill: none; }
.ch-be { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; stroke-dasharray: 3 3; }
.ch-dot { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.lf-figure { margin: 2rem 0; max-width: 760px; }
.lf-figure figcaption, .lf-figcap { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.5; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .lf-pagehead { grid-template-columns: 1fr; gap: 1.5rem; }
  .lf-pageart { max-width: 360px; justify-self: start; order: -1; }
}
@media (max-width: 640px) {
  .home { padding: 6rem 1.1rem 3rem; align-items: flex-start; }
  .home-search { padding-left: 0.9rem; }
  .home-search button { padding: 0.8rem 1.1rem; }
  .home-search input { font-size: 1rem; padding: 0.8rem 0.5rem; }
  .ch-row { grid-template-columns: 1fr auto; } .ch-track2 { grid-column: 1 / -1; order: 3; }
  .ch-donutwrap { flex-direction: column; align-items: stretch; } .ch-donutwrap svg { margin: 0 auto; }
}
/* home-art:end */

.home-about { max-width: 46rem; margin: 2rem auto 0; text-align: center; font-size: 0.88rem; line-height: 1.6; color: var(--muted); }
.home-about a { color: var(--accent); }

/* calc-index:start */
.nav-menu.mega.mega-2 { max-width: 640px; }
.nav-item:hover > .nav-menu.mega.mega-2, .nav-item:focus-within > .nav-menu.mega.mega-2 { grid-template-columns: repeat(2, 1fr); }
.lf-ch { padding: 0.5rem 0 1.6rem; }
.lf-cfind { margin-top: 1.4rem; display: grid; gap: 0.9rem; }
.lf-cfind input { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); font: inherit; font-size: 1.02rem; padding: 0.85rem 1.3rem; outline: 0; transition: border-color 0.2s, box-shadow 0.2s; }
.lf-cfind input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(52, 213, 154, 0.13); }
.lf-cfind input::placeholder { color: var(--muted); }
.lf-chipbar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lf-chipbtn { font: inherit; font-size: 0.85rem; color: var(--fog); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.4rem 0.9rem; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.lf-chipbtn b { font-weight: 500; color: var(--muted); margin-left: 0.3rem; }
.lf-chipbtn:hover { background: var(--surface-hover); color: var(--ink); }
.lf-chipbtn.is-on { background: var(--accent); border-color: var(--accent); color: #04120c; }
.lf-chipbtn.is-on b { color: #04120c; }
.lf-ccgrid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lf-cc { position: relative; display: flex; flex-direction: column; gap: 0.45rem; background: var(--surface); padding: 1.5rem 1.5rem 1.3rem; color: var(--ink); text-decoration: none; transition: background 0.15s; }
.lf-cc[hidden] { display: none; }
.lf-cc:hover, .lf-cc:focus-visible { background: var(--surface-hover); }
.lf-cc-ico { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(52, 213, 154, 0.06); }
.lf-cc-ico .ico { width: 26px; height: 26px; }
.lf-cc-tag { position: absolute; top: 1.5rem; right: 1.4rem; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lf-cc h3 { margin: 0.5rem 0 0; font-size: 1.1rem; line-height: 1.3; }
.lf-cc p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; flex: 1; }
.lf-cc .lf-go { margin-top: 0.5rem; font-size: 0.85rem; color: var(--accent); }
.lf-cc:hover .lf-go { text-decoration: underline; }
.lf-ccnone { color: var(--muted); padding: 2rem 0; }
.lf-ccfoot { margin-top: 1.5rem; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 980px) { .lf-ccgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lf-ccgrid { grid-template-columns: 1fr; } .lf-cc-tag { position: static; } }
/* calc-index:end */
