/* Homepage (2026-10 redesign, review paragraphs 4, 5, 6, 7). Loaded after site.css and lines.css. */

/* ---------- Opening ---------- */
.home-hero { padding: 96px 0 40px; background:
  radial-gradient(900px 500px at 85% -10%, rgba(232,182,76,.16), transparent 60%),
  linear-gradient(180deg, var(--navy) 0%, var(--sea) 100%); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 44px; align-items: center; }
.home-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.08; max-width: 17ch; }
.home-hero .lede { margin-top: 16px; font-size: 1.15rem; max-width: 46ch; color: #c6d3e3; }
.hero-search { margin-top: 26px; display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 14px; padding: 6px 6px 6px 14px; max-width: 520px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--paper-muted); stroke-width: 2.2; stroke-linecap: round; }
.hero-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--paper-ink); font: inherit; font-size: 1.05rem; padding: 6px 4px; }
.hero-search input::placeholder { color: #6b778a; }
.hero-search input:focus-visible { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--teal), 0 10px 30px rgba(0,0,0,.25); }
.hero-search .btn { padding: 10px 18px; }
.hero-start { margin-top: 14px; color: #b9c7d8; font-size: .97rem; }
.hero-start a { color: #fff; text-underline-offset: 3px; display: inline-block; padding: 6px 0; margin: -6px 0; }
.hero-start a:hover { color: var(--gold-soft); }

.hero-photo { margin: 0; min-height: 420px; aspect-ratio: 4 / 3; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.hero-photo img { position: absolute; inset: 0; }
.hero-photo figcaption { font-size: .9rem; padding: 40px 18px 12px; }
.hero-photo figcaption > span { font-weight: 600; }
.hero-photo-year { font-weight: 400; opacity: .85; }
.hero-photo.is-empty { background: linear-gradient(160deg, #13315c, #0b2545); border: 1px solid rgba(255,255,255,.08); }

/* ---------- New on Slots at Sea (a compact strip under the opening; links only, no images or script) ---------- */
.home-new { background: var(--sea); padding: 4px 0 24px; }
.home-new-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.home-new-head h2 { font-family: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.home-new-head a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-size: .93rem; font-weight: 600; text-underline-offset: 3px; }
.home-new-list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.home-new-list a { display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 64px; padding: 11px 14px 12px; border-radius: 12px; background: rgba(7,26,51,.45); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.home-new-list a:hover { background: rgba(7,26,51,.7); border-color: rgba(232,182,76,.55); color: var(--ink); }
.home-new-list small { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); }
.home-new-list b { font-size: .95rem; font-weight: 600; line-height: 1.3; }

/* ---------- Three starting routes ---------- */
.routes { padding: 0 0 56px; background: linear-gradient(180deg, var(--sea) 0, var(--sea) 60px, var(--deep) 60px); }
.routes-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.route { position: relative; border-radius: 18px; padding: 22px 22px 18px; display: flex; flex-direction: column; }
.route-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.route h3 { font-size: 1.3rem; line-height: 1.25; margin-top: 4px; letter-spacing: -.01em; }
.route-form { margin-top: 14px; }
.route-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
.route-form select, .route-form input { width: 100%; min-height: 48px; border-radius: 10px; font: inherit; font-size: 1rem; padding: 10px 12px; }
.route-alt { margin-top: auto; padding-top: 14px; font-size: .93rem; }
.route-alt a { font-weight: 600; display: inline-block; padding: 6px 0; margin: -6px 0; }

/* 1. Choosing: warm paper, navy action */
.route-choose { background: var(--paper); color: var(--paper-ink); border-top: 5px solid var(--gold); box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.route-choose .route-kicker { color: #8a5a00; }
.route-choose select { border: 1px solid var(--paper-line); background: #fff; color: var(--paper-ink); }
.route-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.route-choose .btn { margin-top: 12px; width: 100%; background: var(--navy); color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.route-choose .btn:hover { background: var(--sea); }
.route-choose .route-alt a { color: #0d5c8c; }
.route-choose .route-alt { color: var(--paper-muted); }

/* 2. Booked: deep teal, ship search */
.route-booked { background: linear-gradient(160deg, #0f5a57, #0a3b40); color: #fff; border: 1px solid rgba(60,194,176,.4); }
.route-booked .route-kicker { color: #9ff0e3; }
.route-booked .route-alt { color: #cfe9e5; }
.route-booked .route-alt a { color: #fff; }

/* 3. Machine: casino plum with gold */
.route-machine { background: radial-gradient(120% 120% at 100% 0%, rgba(232,182,76,.22), transparent 55%), linear-gradient(160deg, #4a1838, #2a0d22); color: #fff; border: 1px solid rgba(232,182,76,.35); }
.route-machine .route-kicker { color: var(--gold); }
.route-machine .route-alt { color: #e8d6e1; }
.route-machine .route-alt a { color: var(--gold-soft); }

.route-booked input, .route-machine input { border: 0; background: #fff; color: var(--paper-ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.route-booked input::placeholder, .route-machine input::placeholder { color: #6b778a; }

/* Typeahead */
.ta { position: relative; }
.ta-list { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 6px); list-style: none; background: #fff; color: var(--paper-ink); border-radius: 12px; box-shadow: 0 18px 44px rgba(0,0,0,.4); padding: 6px; max-height: 320px; overflow-y: auto; }
.ta-list a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--paper-ink); min-height: 44px; }
.ta-list a:hover, .ta-list a[aria-selected="true"] { background: var(--paper-2); }
.ta-list b { display: block; font-weight: 650; }
.ta-list small { display: block; color: var(--paper-muted); font-size: .84rem; line-height: 1.35; }
.ta-list mark { background: rgba(232,182,76,.35); color: inherit; border-radius: 2px; }
.ta-list .ta-empty { padding: 12px; color: var(--paper-muted); font-size: .94rem; }
.ta-list .ta-all a { color: #0d5c8c; font-weight: 600; font-size: .93rem; }

/* ---------- Section heads ---------- */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; margin-bottom: 26px; }
.home-head > div { max-width: 640px; }
.home-head p { margin-top: 8px; color: var(--muted); font-size: 1.04rem; }
.home-head-links { display: flex; gap: 10px; flex-wrap: wrap; }
.home-head-links .btn { padding: 10px 16px; }

/* ---------- Featured lines ---------- */
.home-lines { padding: 64px 0; background: var(--deep); }
.lc-feature { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lc-feature .lc-facts > div { grid-template-columns: 1fr; gap: 2px; }
.lc-feature .lc-type-casino { font-size: 1.45rem; }
@media (max-width: 1100px) { .lc-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Tool preview ---------- */
.home-try { padding: 64px 0; background: radial-gradient(900px 400px at 0% 0%, rgba(60,194,176,.12), transparent 60%), linear-gradient(180deg, #0a2140, var(--navy)); border-top: 1px solid rgba(255,255,255,.06); }
.try-tag { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0a2b29; background: var(--teal); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.home-try .home-head a { color: #9ff0e3; }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.try-form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 20px; }
.try-form fieldset { border: 0; }
.try-form legend, .try-form label { font-size: .9rem; font-weight: 600; color: #dfe7f1; margin-bottom: 6px; display: block; }
.try-form label small { font-weight: 400; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: rgba(7,26,51,.6); padding: 4px; border-radius: 12px; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 6px 8px; border-radius: 9px; text-align: center; color: #c9d5e4; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.seg span:hover { background: rgba(255,255,255,.06); }
.seg input:checked + span { background: var(--teal); color: #062623; }
.seg input:focus-visible + span { outline: 3px solid var(--ring, var(--teal)); outline-offset: 2px; }
.try-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.try-form input[type=number] { width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(7,26,51,.7); color: #fff; font: inherit; font-size: 1.02rem; padding: 8px 12px; }
.money { position: relative; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input[type=number] { padding-left: 26px; }
.try-assume { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.try-out { background: var(--paper); color: var(--paper-ink); border-radius: 18px; padding: 20px 22px; box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.try-theo { font-size: .98rem; color: var(--paper-muted); }
.try-theo b { color: var(--paper-ink); font-variant-numeric: tabular-nums; }
.try-list { list-style: none; counter-reset: r; margin-top: 14px; display: grid; gap: 10px; }
.try-list > li { counter-increment: r; position: relative; padding: 12px 14px 12px 52px; border-radius: 12px; background: #fff; border: 1px solid var(--paper-line); }
.try-list > li::before { content: counter(r); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--navy); color: #fff; }
.try-list > li:first-child { border-color: rgba(138,90,0,.45); background: #fffaf0; }
.try-list > li:first-child::before { background: var(--gold); color: var(--navy); }
.try-list > li.try-wait { padding-left: 14px; color: var(--paper-muted); }
.try-list > li.try-wait::before { display: none; }
.try-list h3 { font-size: 1.04rem; line-height: 1.3; }
.try-list h3 a { color: var(--paper-ink); text-decoration: none; }
.try-list h3 a:hover { text-decoration: underline; color: #0d5c8c; }
.try-list h3 small { font-weight: 400; color: var(--paper-muted); font-size: .9rem; }
.try-tier { margin-top: 2px; font-size: .9rem; font-weight: 600; color: #0d6b60; }
.try-why { margin-top: 4px; font-size: .95rem; color: var(--paper-muted); line-height: 1.5; }
.try-note { margin-top: 12px; font-size: .86rem; color: var(--paper-muted); }
.try-go { margin-top: 14px; width: 100%; text-align: center; background: var(--gold); color: var(--navy); }
.try-out dfn.term { color: var(--paper-ink); }

/* ---------- Recent changes ---------- */
.home-latest { padding: 60px 0; }
.home-latest .home-head p { color: var(--paper-muted); }
.more-updates { margin-top: 14px; }
.more-updates summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(13,107,96,.4); color: var(--teal-ink); background: rgba(13,107,96,.06); font-weight: 700; cursor: pointer; list-style: none; }
.more-updates summary::-webkit-details-marker { display: none; }
.more-updates summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 6px; transition: transform var(--t) var(--ease); }
.more-updates[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.more-updates summary span { font-weight: 400; }
.more-updates .timeline { margin-top: 16px; }

/* ---------- Basics and reference ---------- */
.home-more { padding: 56px 0 64px; }
.home-more-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.home-more h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
.basics { list-style: none; margin-top: 14px; display: grid; gap: 12px; }
.basics li { padding-left: 16px; border-left: 3px solid rgba(138,90,0,.4); color: var(--paper-muted); }
.basics b { color: var(--paper-ink); }
.home-ref ul { list-style: none; margin-top: 12px; display: grid; gap: 4px; }
.home-ref a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; background: #fff; border: 1px solid var(--paper-line); }
.home-ref a:hover { border-color: rgba(13,92,140,.45); }
.home-ref b { display: block; color: var(--paper-ink); }
.home-ref small { display: block; color: var(--paper-muted); font-size: .88rem; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 980px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .routes { background: var(--deep); padding-top: 28px; }
  .routes-grid { grid-template-columns: 1fr 1fr; }
  .route-choose { grid-column: 1 / -1; }
  /* The strip scrolls sideways instead of wrapping into rows */
  .home-new { background: var(--deep); padding: 14px 0 0; }
  .home-new-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -20px; padding: 2px 20px 10px; scrollbar-width: thin; }
  .home-new-list > li { flex: 0 0 210px; scroll-snap-align: start; }
  .try-grid { grid-template-columns: 1fr; }
  .home-more-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .home-hero { padding: 76px 0 18px; }
  .home-hero h1 { font-size: 1.9rem; max-width: none; }
  .home-hero .lede { font-size: 1rem; margin-top: 10px; line-height: 1.5; }
  .hero-search { margin-top: 16px; padding-left: 12px; }
  .hero-search input { width: 0; } /* no intrinsic width, so the box and its button fit at 320 px */
  .hero-search .btn { min-height: 44px; padding: 10px 14px; flex: none; }
  .hero-start { display: none; }
  .hero-photo { aspect-ratio: auto; height: 200px; border-radius: 14px; }
  .hero-photo figcaption { padding: 26px 12px 8px; font-size: .82rem; }
  .routes { padding: 20px 0 40px; }
  .routes-grid { grid-template-columns: 1fr; gap: 14px; }
  .route { padding: 18px 16px 16px; }
  .route h3 { font-size: 1.18rem; }
  .home-lines, .home-try, .home-latest { padding: 44px 0; }
  /* Featured lines scroll sideways on phones instead of stacking four tall cards */
  .lc-feature { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 4px 20px 16px; scrollbar-width: thin; }
  .lc-feature > .lc { flex: 0 0 82%; scroll-snap-align: start; }
  .try-form, .try-out { padding: 16px; }
  .try-list > li { padding-left: 46px; }
  .try-list > li::before { left: 12px; }
}
/* The shorter placeholder ("Ship, game or guide") fits from 375 px. Below that the field gets 16px text (still no iOS
   zoom), tighter gaps, a narrower Search button and no magnifier icon, so it isn't cut off at 320 (rehearsal 2 N5; WebKit ignores a
   font-size on ::placeholder). */
@media (max-width: 370px) {
  .hero-search { gap: 4px; font-size: 16px; } /* 1em for site.css's touch-screen max(16px, 1em) on fields */
  .hero-search input { font-size: 16px; }
  .hero-search .btn { padding: 10px 11px; }
  .hero-search svg { display: none; } /* decorative; the button says Search */
}
@media (max-width: 380px) { .route-pair, .try-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hero-photo.is-empty { display: none; } }

/* ---------- Premium polish (showcase, 2026-10-22) ----------
   Type rhythm, card states and small line icons (inline SVG, no requests). Motion is transform/opacity only and
   is switched off by the reduced-motion rule in site.css; nothing here changes a box's size after load (CLS 0). */
.home-hero h1 { letter-spacing: -.02em; text-wrap: balance; }
.home-hero .lede { line-height: 1.55; }
.hero-search { border: 1px solid rgba(255,255,255,.7); transition: box-shadow var(--t) var(--ease); }
.hero-photo { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 7px rgba(232,182,76,.07), 0 24px 60px rgba(0,0,0,.4); }

/* Section heads: a short gold rule above each serif heading */
.home-head h2, .home-more h2 { letter-spacing: -.01em; text-wrap: balance; }
.home-head h2::before, .home-more h2::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), rgba(232,182,76,.15)); }
.paper .home-head h2::before, .home-more h2::before { background: linear-gradient(90deg, #b07a12, rgba(176,122,18,.15)); }
.home-try .home-head h2::before { display: none; } /* the "Try it here" tag already sits there */

/* New on Slots at Sea: cards lift, a gold edge and an arrow answer hover and focus */
.home-new-list a { position: relative; overflow: hidden; padding-right: 34px; transition: transform var(--t) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.home-new-list a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); opacity: 0; transition: opacity var(--t) var(--ease); }
.home-new-list a::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--gold-soft); border-right: 2px solid var(--gold-soft); transform: rotate(45deg); opacity: .55; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.home-new-list a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.home-new-list a:hover::before, .home-new-list a:focus-visible::before { opacity: 1; }
.home-new-list a:hover::after, .home-new-list a:focus-visible::after { opacity: 1; transform: translateX(3px) rotate(45deg); }
.home-new-list a:active { transform: none; box-shadow: none; }

/* Starting routes: an icon beside each kicker, a lift on hover, and 44px "see all" links */
.route { transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.route-kicker { display: flex; align-items: center; gap: 10px; }
.route-kicker::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 9px; background: center / 18px 18px no-repeat; }
.route-choose .route-kicker::before { background-color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8b64c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M5 8h14M5 8l-3 6a3 3 0 0 0 6 0zM19 8l-3 6a3 3 0 0 0 6 0zM8 20h8'/%3E%3C/svg%3E"); }
.route-booked .route-kicker::before { background-color: rgba(159,240,227,.14); box-shadow: inset 0 0 0 1px rgba(159,240,227,.35); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ff0e3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14h18l-2.5 5h-13zM6 14V9h12v5M10 9V5h4v4'/%3E%3C/svg%3E"); }
.route-machine .route-kicker::before { background-color: rgba(232,182,76,.14); box-shadow: inset 0 0 0 1px rgba(232,182,76,.4); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8b64c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='15' height='14' rx='2'/%3E%3Cpath d='M8 5v14M13 5v14M18 9h2V6'/%3E%3Ccircle cx='20' cy='5' r='1.2'/%3E%3C/svg%3E"); }
.route:hover { transform: translateY(-2px); }
.route-choose:hover { box-shadow: 0 20px 48px rgba(0,0,0,.36); }
.route-booked:hover, .route-machine:hover { box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.route-alt a { padding: 10px 0; margin: -10px 0; }
.route-form select:focus-visible, .route-form input:focus-visible { outline-offset: 1px; }
.route-choose .btn { box-shadow: 0 6px 16px rgba(11,37,69,.25); }

/* Featured lines: the photo eases in on hover; the card shows a ring while a link inside has focus */
.lc-feature .lc-media img { transition: transform 400ms var(--ease); }
.lc-feature .lc:hover .lc-media img { transform: scale(1.04); }
.lc-feature .lc:focus-within { box-shadow: 0 0 0 3px var(--teal), 0 16px 40px rgba(3,12,26,.3); }
.lc-feature .lc-go span { transition: transform var(--t) var(--ease); }
.lc-feature .lc-go:hover span { transform: translateX(3px); }

/* Try it: the result card's top ranks read as a podium */
.try-form, .try-out { box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 14px 40px rgba(0,0,0,.3); }
.try-form input[type=number]:hover { border-color: rgba(255,255,255,.32); }
.try-list > li { transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.try-list > li:first-child { box-shadow: 0 6px 18px rgba(138,90,0,.12); }
.try-go { box-shadow: 0 8px 20px rgba(232,182,76,.22); }

/* Recent changes: the "More" link stays with its arrow */
.home-latest .timeline > li { padding: 2px 0; }
.home-latest .timeline > li a { white-space: nowrap; }

/* Basics: numbered gold markers instead of a plain rule; reference links get an arrow */
.basics { counter-reset: basic; }
.basics li { counter-increment: basic; position: relative; padding: 14px 16px 14px 56px; border-left: 0; border-radius: 12px; background: #fff; border: 1px solid var(--paper-line); }
.basics li::before { content: counter(basic); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); font: 700 .95rem Georgia, "Times New Roman", serif; }
.home-ref ul { gap: 8px; }
.home-ref a { position: relative; padding: 12px 44px 12px 16px; border-radius: 12px; box-shadow: 0 1px 2px rgba(11,37,69,.05); transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.home-ref a::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--teal-ink); border-right: 2px solid var(--teal-ink); transform: rotate(45deg); transition: transform var(--t) var(--ease); }
.home-ref a:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11,37,69,.1); }
.home-ref a:hover::after, .home-ref a:focus-visible::after { transform: translateX(3px) rotate(45deg); }
@media (max-width: 640px) {
  .home-head h2::before, .home-more h2::before { margin-bottom: 10px; width: 36px; }
  .basics li { padding: 12px 14px 12px 50px; }
  .home-head-links { width: 100%; }
  .home-head-links .btn { flex: 1 1 auto; white-space: nowrap; text-align: center; }
  .basics li::before { left: 12px; top: 12px; }
}
@media (hover: none) { .route:hover, .home-new-list a:hover, .home-ref a:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .route:hover, .home-new-list a:hover, .home-ref a:hover, .lc-feature .lc:hover .lc-media img, .lc-feature .lc-go:hover span { transform: none; }
  .home-new-list a:hover::after, .home-ref a:hover::after { transform: rotate(45deg); }
}

/* ---------- 404 page ---------- */
.nf-search { margin-top: 22px; }
.nf-dest { padding: 44px 0 60px; }
.nf-h { font-family: inherit; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); margin-bottom: 12px; }
.nf-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.nf-list a { display: block; height: 100%; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--paper-line); text-decoration: none; }
.nf-list a:hover { border-color: rgba(13,92,140,.45); }
.nf-list b { display: block; color: var(--paper-ink); }
.nf-list small { display: block; color: var(--paper-muted); font-size: .9rem; margin-top: 2px; }
@media (max-width: 640px) { .nf-search .btn { display: inline-block; } }
