/* One variable font for the homepage avoids downloading three extra static weights. */
body.home { --body: "Readex Pro", system-ui, sans-serif; }
/* Homepage: orientation first, compact discovery, no calculator duplication. */
.home .hero { padding-block: 44px 48px; }
.home .hero h1 { font-size: clamp(34px, 4.5vw, 58px); line-height: 1.35; text-wrap: balance; }
.home .hero .lead { font-size: 18px; line-height: 1.8; max-width: 52ch; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.home-actions .btn { min-height: 48px; }
.home-actions .btn-dark { background: var(--brand); color: var(--on-brand); }
.home-actions .btn-light { background: var(--surface); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 50%, var(--surface)); }
.home .hero .sform { margin-block: 22px 12px; }
.home .hero .stats { margin-top: 24px; padding-top: 18px; gap: 24px; }
.home .hero .stats dd { font-size: 27px; }
.home .block { padding-block: 44px; }
.home .block.pt0 { padding-top: 0; }
.home .head { margin-bottom: 22px; }
.home .head h2 { font-size: clamp(25px, 2.8vw, 32px); }
#start-here { scroll-margin-top: calc(var(--head-h) + 24px); }
.home .journey .jcard { padding: 18px; gap: 10px; }
.home .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home .tools-grid a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; grid-template-rows: auto auto; gap: 6px 14px; padding: 22px; border-radius: 18px; align-content: center; }
.home .tools-grid .tg-i { grid-column: 1; grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; align-self: center; }
.home .tools-grid h3 { grid-column: 2; grid-row: 1; margin: 0; font: 600 17px/1.6 var(--display); }
.home .tools-grid p { grid-column: 2; grid-row: 2; margin: 0; font-size: 14px; line-height: 1.7; }
.home .tools-grid .tg-go { grid-column: 3; grid-row: 1 / 3; margin: 0; color: var(--green); align-self: center; }
.home .tools-grid a:hover { border-color: var(--green); transform: translateY(-2px); }
.home-link-group { border-bottom: 1px solid var(--line); }
.home-link-group:first-of-type { margin-top: 20px; }
.home-link-group summary { min-height: 52px; font-size: 15px; }
.home-link-group .home-links { margin-block: 0 18px; }
.home-about { border-top: 1px solid var(--line); margin-top: 18px; }
.home-about summary { font-size: 16px; min-height: 52px; }
.home-about p { font-size: 16px; line-height: 1.9; margin-block: 0 16px; }
.home :is(a, button, summary, input):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
@media (max-width: 980px) {
 .home .hero .wrap { gap: 28px; grid-template-columns: minmax(0, 1fr); }
 .home .hero .wrap > div { min-width: 0; }
 .home .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
 .home .hero { padding-block: 28px 32px; }
 .home .hero h1 { font-size: 35px; margin-block: 14px; }
 .home .hero .lead { font-size: 17px; }
 .home .hero .eyebrow { font-size: 11px; line-height: 1.8; }
 .home-actions { gap: 10px; margin-top: 18px; }
 .home-actions .btn { flex: 1 1 140px; padding-inline: 12px; font-size: 13px; }
 .home .hero .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 16px; }
 .home .hero .stats dd { font-size: 23px; }
 .home .hero .stats dt { font-size: 12px; }
 .home .hv { max-width: none; padding: 0; }
 .home .hv .blob, .home .hv .minis { display: none; }
 .home .hv .main { display: grid; grid-template-columns: 100px minmax(0, 1fr); aspect-ratio: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
 .home .hv .main::after { display: none; }
 .home .hv .main img { width: 100%; height: 100%; object-fit: contain; background: var(--brand-soft); }
 .home .hv .cap { position: static; display: grid; gap: 8px; padding: 14px; color: var(--ink); }
 .home .hv .cap h2 { font-size: 15px; line-height: 1.7; color: var(--ink); }
 .home .hv .cap .m { display: none; }
 .home .hv .badge { font-size: 11px; background: var(--green-soft); color: var(--green); }
 .home .block { padding-block: 32px; }
 .home .block.pt0 { padding-top: 0; }
 .home .journey { gap: 12px; }
 .home .journey .jcard { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px 14px; padding: 16px; }
 .home .journey .dot { grid-column: 1; grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 10px; }
 .home .journey :is(h3, p, .terms, .jstart) { grid-column: 2; }
 .home .journey h3 { font-size: 17px; }
 .home .journey p { margin: 0; }
 .home .journey .jstart { margin-top: 4px; padding-top: 8px; }
 .home .journey .jstart span { font-size: 13px; }
 .home .tools-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
 .home .tools-grid a { padding: 18px; min-height: 104px; }
 .home .head { margin-bottom: 20px; align-items: start; }
 .home .head p { font-size: 15px; line-height: 1.8; }
 .home .seo-intro h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .home * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .home-link-group, .home-about { border: 0; } }

/* Desktop exposes the supplementary directories and introduction by default.
   Native details remain available for visitors who prefer to collapse them. */
@media (min-width: 981px) {
 .home-link-group { margin-top: 16px; padding: 4px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
 .home-link-group summary { font: 600 16px/1.6 var(--display); }
 .home-link-group .home-links { gap: 10px; }
 .home-about { padding: 8px 24px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
 .home-about summary { font-weight: 600; margin-bottom: 12px; }
 .home .seo-intro .wrap { max-width: 1040px; }
}

/* The search input uses its enclosing search bar as the focus indicator. */
.home .sbox:focus-within {
 border-color: var(--line);
 outline: 2px solid var(--focus);
 outline-offset: 3px;
 box-shadow: var(--shadow);
}
.home .sbox input:focus-visible { outline: none; box-shadow: none; }

/* Comfortable targets and a clear card-sized keyboard focus indicator. */
.home :is(.chip, .more) { min-height: 44px; }
.home .journey .jlink:focus-visible { outline: none; }
.home .journey .jlink:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 4px; }
.home .journey .jstart { min-height: 44px; }
.home .popular .feature { align-content: start; }
.home .rank .rt { min-width: 0; }
.home .rank h3 { overflow-wrap: anywhere; }
@media (max-width: 720px) {
 .home .latest { gap: 16px; }
 .home .latest .card:not(.big) {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
 }
 .home .latest .card:not(.big) .media { grid-column: 1; grid-row: 1 / 4; aspect-ratio: 1; border-radius: 10px; }
 .home .latest .card:not(.big) .media img { object-fit: contain; background: var(--brand-soft); }
 .home .latest .card:not(.big) .ct { grid-column: 2; grid-row: 2; padding: 0; min-width: 0; font-size: 16px; line-height: 1.7; }
 
 .home .latest .card:not(.big) .ct p { display: none; }
 .home .latest .card:not(.big) .meta { grid-column: 2; grid-row: 1; font-size: 11px; gap: 6px; }
 .home .latest .card:not(.big) .by { grid-column: 2; grid-row: 3; font-size: 11px; flex-wrap: wrap; }
 .home .latest .card:not(.big) .by .av { width: 24px; height: 24px; }
 .home .community { padding: 24px; border-radius: 20px; gap: 24px; }
 .home .faq { padding-inline: 16px; }
 .home .head .more { flex-shrink: 0; }
}
@media (max-width: 360px) {
 .home .latest .card:not(.big) { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; }
}
