/*
  LD2-A: Today (a signed-in learner's home), the visitor's landing, and the onboarding with the plan it ends in.
  Loaded after pages.css on the home and Start pages (Looks/LearnStyles.cs). Calm and dense (LD2 §0.1): three type
  sizes (--td-xl, --td-m, --td-s), the world's colours plus one accent, one motion at a time, four modules above the
  fold. Teens are flat with hard offset edges; children have their own home (kids.css). Light and dark, right to
  left, 390 px phones.
*/
.ln-tdpage, .ln-land, .ln-ob, .ln-plan-page {
  --td-xl: clamp(28px, 3.3vw, 42px);
  --td-m: 18px;
  --td-s: 13.5px;
  --td-gap: 20px;
  --td-r: 22px;
}
.ln--teen :is(.ln-tdpage, .ln-land, .ln-ob, .ln-plan-page) { --td-r: 6px; }
.ln-main > :is(.ln-tdpage, .ln-land, .ln-ob, .ln-plan-page) { max-width: none; padding: 0; }
/* What the scripts hide stays hidden, whatever display a part has. */
:is(.ln-tdpage, .ln-land, .ln-ob, .ln-plan-page) [hidden] { display: none !important; }

/* ---------- Shared parts ---------- */
.ln-td-card { background: var(--ln-card); border-radius: var(--td-r); box-shadow: var(--ln-z1); }
.ln-td-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ln-td-h { font-family: var(--ln-display); font-weight: 600; font-size: var(--td-m); line-height: 1.2; }
.ln-td-sub { font-size: var(--td-s); color: var(--ln-muted); }
.ln-td-link { color: var(--w-ink); font-weight: 700; }
.ln-td-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ln--teen .ln-td-h { font-family: var(--ln-sans); font-weight: 800; letter-spacing: -.02em; }

/* ---------- Today: the head band, on the current path's world at full colour ---------- */
.ln-td-head { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--w-deep); }
.ln-td-art { position: absolute !important; inset: 0; z-index: -2; }
.ln-td-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--w-deep) 90%, transparent), color-mix(in srgb, var(--w-deep) 45%, transparent) 62%, color-mix(in srgb, var(--w-deep) 15%, transparent)); }
[dir="rtl"] .ln-td-head::after { transform: scaleX(-1); }
.ln-td-head-in { max-width: var(--ln-max); margin: 0 auto; padding: 22px 20px 88px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 36px; align-items: center; }
.ln-td-title { font-family: var(--ln-display); font-weight: 600; font-size: var(--td-xl); line-height: 1.05; letter-spacing: -.015em; margin: 8px 0 8px; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.ln-td-date { font-size: var(--td-s); color: rgba(255, 255, 255, .84); }
.ln-td-date b { color: #fff; font-weight: 700; }

/* The minutes ring: the day's own goal, closing with a soft glow. */
.ln-mring { position: relative; width: 112px; height: 112px; flex: none; }
.ln-mring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
[dir="rtl"] .ln-mring svg { transform: rotate(-90deg) scaleY(-1); }
.ln-mring circle { fill: none; stroke-width: 9; }
.ln-mring-track { stroke: rgba(255, 255, 255, .16); }
.ln-mring-fill { stroke: var(--w-glow); stroke-linecap: round; transition: stroke-dashoffset .9s var(--ln-ease); }
.ln-mring.is-closed .ln-mring-fill { filter: drop-shadow(0 0 8px var(--w-glow)); }
.ln-mring-v { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ln-mring-v b { font-family: var(--ln-display); font-weight: 600; font-size: var(--td-xl); }
.ln-mring-v small { font-size: var(--td-s); color: rgba(255, 255, 255, .8); }

/* The consistency lamp: 14 small lamps, lit, made up (half) or dark; today ringed. */
.ln-lamp { display: grid; gap: 8px; max-width: 300px; }
.ln-lamp-row { display: grid; grid-template-columns: repeat(14, 14px); gap: 5px; }
.ln-lamp-row li { height: 24px; border-radius: 8px 8px 4px 4px; background: rgba(255, 255, 255, .14); }
.ln-lamp-row li.lit { background: linear-gradient(#fff2c6, var(--w-glow) 45%, var(--w-accent)); box-shadow: 0 0 12px color-mix(in srgb, var(--w-glow) 70%, transparent); }
.ln-lamp-row li.made { background: linear-gradient(90deg, var(--w-glow) 50%, rgba(255, 255, 255, .14) 50%); }
[dir="rtl"] .ln-lamp-row li.made { background: linear-gradient(-90deg, var(--w-glow) 50%, rgba(255, 255, 255, .14) 50%); }
.ln-lamp-row li.is-today { outline: 2px solid #fff; outline-offset: 2px; }
.ln-lamp-say { font-size: var(--td-s); color: rgba(255, 255, 255, .84); }
.ln-lamp-say b { color: #fff; }

/* ---------- Today: the grid (Up next and the day side by side, the rest below) ---------- */
.ln-td-grid { position: relative; z-index: 2; max-width: var(--ln-max); margin: -68px auto 0; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--td-gap); align-items: start; }
.ln-td-main { display: grid; gap: var(--td-gap); min-width: 0; }

/* Up next: the one primary action. */
.ln-td-next { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; box-shadow: var(--ln-z2); }
.ln-td-pic { position: relative; min-height: 320px; background: var(--w-deep); }
.ln-td-pic > img, .ln-td-pic-art { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ln-td-pic > img { background: var(--w-soft); }
.ln-td-chip { position: absolute; inset-inline-start: 14px; top: 14px; max-width: calc(100% - 28px); padding: 5px 11px; border-radius: 999px; font-size: var(--td-s); font-weight: 700; color: #fff; background: rgba(0, 0, 0, .48); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-td-body { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 24px; min-width: 0; }
.ln-td-kick { font-size: var(--td-s); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--w-ink); }
.ln-td-lesson { font-family: var(--ln-display); font-weight: 600; font-size: var(--td-xl); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.ln-td-line { font-size: var(--td-s); color: var(--ln-ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ln-td-does { display: flex; flex-wrap: wrap; gap: 6px; }
.ln-td-does li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: var(--td-s); font-weight: 700; color: var(--w-ink); background: var(--w-soft); }
html[data-theme="dark"] .ln-td-does li, .ln--teen .ln-td-does li { background: color-mix(in srgb, var(--w-accent) 16%, transparent); }
.ln-td-does-ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ln-td-go { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 4px; }
.ln-td-then { font-size: var(--td-s); color: var(--ln-muted); }
.ln-td-then b { color: var(--ln-ink); }
.ln-td-hint { font-size: var(--td-s); color: var(--ln-muted); margin-top: calc(var(--td-gap) * -.5); }
.ln-td-hint a { color: var(--w-ink); font-weight: 700; }
.ln-td-next--done { grid-template-columns: 1fr; }

/* The row of three under Up next: review, deeds, plan. */
.ln-td-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--td-gap); }
.ln-td-tile { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-width: 0; }
.ln-td-count { font-size: var(--td-s); color: var(--ln-ink-2); }
.ln-td-count b { font-family: var(--ln-display); font-weight: 600; font-size: var(--td-xl); line-height: 1; color: var(--ln-ink); margin-inline-end: 6px; }
.ln-td-plan .ln-td-count b { font-family: var(--ln-sans); font-size: var(--td-m); font-weight: 750; }
/* The first cards due, one tile each: its stage, and the lesson it is from. Fewer tiles when the card is narrow. */
.ln-td-review { container-type: inline-size; }
.ln-td-stack { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.ln-td-stack li { min-height: 54px; padding: 7px 9px; border-radius: 10px; display: grid; align-content: start; gap: 2px; min-width: 0;
  background: color-mix(in srgb, var(--w-accent) 12%, var(--ln-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--w-accent) 30%, transparent); }
.ln-td-stack li.is-manzil { background: color-mix(in srgb, var(--w-deep) 14%, var(--ln-card)); }
.ln-td-stack small { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--w-ink); }
.ln-td-stack span { font-size: 12.5px; font-weight: 650; line-height: 1.3; max-height: calc(2 * 1.3em); color: var(--ln-ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[dir="rtl"] .ln-td-stack small { letter-spacing: 0; text-transform: none; font-size: 11.5px; }
@container (max-width: 460px) { .ln-td-stack li:nth-child(n + 4) { display: none; } }
@container (max-width: 300px) { .ln-td-stack li:nth-child(n + 3) { display: none; } }
.ln-td-mini { margin-top: auto; display: grid; place-items: center; min-height: 42px; border-radius: 12px; font-weight: 800; font-size: var(--td-s); box-shadow: inset 0 0 0 1.5px var(--ln-ink); }

/* Ticks: a deed done (Today's tile and the day share them). */
.ln-deed-list { display: grid; }
.ln-deed-list > li + li { border-top: 1px solid var(--ln-line); }
.ln-td-tick { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 0; text-align: start; min-height: 44px; }
.ln-td-tick-box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--ln-line-2); transition: background .2s, box-shadow .2s; }
.ln-td-tick-ico { width: 14px; height: 14px; fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ln-td-tick[aria-pressed="true"] .ln-td-tick-box { background: var(--ln-good); box-shadow: none; }
.ln-td-tick[aria-pressed="true"] .ln-td-tick-ico { stroke: var(--ln-on-good); }
.ln-td-tick[aria-pressed="true"] b { text-decoration: line-through; text-decoration-color: var(--ln-muted); color: var(--ln-ink-2); }
.ln-td-slot-what { display: grid; gap: 1px; min-width: 0; font-size: var(--td-s); }
.ln-td-slot-what b { font-weight: 700; color: var(--ln-ink); overflow-wrap: anywhere; }
.ln-td-slot-what small { font-size: var(--td-s); color: var(--ln-muted); }
.ln-deed-ask { padding: 8px 0; display: grid; gap: 6px; font-size: var(--td-s); }
.ln-deed-ask small { color: var(--ln-muted); font-size: var(--td-s); }
.ln-deed-did { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ln-muted); }
.ln-deed-did button { min-height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 800; font-size: var(--td-s); box-shadow: inset 0 0 0 1.5px var(--ln-line-2); }
.ln-deed-did .ln-chip-yes { background: var(--ln-good); color: var(--ln-on-good); box-shadow: none; }
.ln-deed-ask.is-answered .ln-deed-did { color: var(--ln-good-ink); font-weight: 700; }

/* Your plan: the paths as one compact route, the current one lit. */
.ln-plan-route { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 8px 4px 2px; }
.ln-plan-route::before { content: ""; position: absolute; inset-inline: 6px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--ln-line-2); }
.ln-plan-route li { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--ln-card); box-shadow: inset 0 0 0 3px var(--ln-line-2); }
.ln-plan-route li.is-done { background: var(--w-accent); box-shadow: none; }
.ln-plan-route li.is-here { width: 26px; height: 26px; background: var(--ln-card); box-shadow: inset 0 0 0 4px var(--w-accent), 0 0 0 6px color-mix(in srgb, var(--w-accent) 22%, transparent); }
.ln-plan-path { position: absolute; inset: -12px; border-radius: 50%; }

/* Keep going: the other courses in progress, a row of four. */
.ln-td-keep { display: grid; gap: 12px; }
.ln-td-keep-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ln-td-keep-card { display: grid; border-radius: calc(var(--td-r) * .75); overflow: hidden; background: var(--ln-card); box-shadow: var(--ln-z1); transition: transform .25s var(--ln-ease); }
.ln-td-keep-card:hover { transform: translateY(-2px); }
.ln-td-keep-art { height: 84px; }
.ln-td-keep-body { display: grid; gap: 3px; padding: 10px 12px 12px; font-size: var(--td-s); min-width: 0; }
.ln-td-keep-body b { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-td-keep-body small { color: var(--ln-muted); font-size: var(--td-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-td-bar { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: var(--ln-line); overflow: hidden; }
.ln-td-bar i { display: block; height: 100%; background: var(--w-accent); border-radius: 4px; }
.ln-td-explore { font-size: var(--td-s); }

/* ---------- Your day: the five prayers ---------- */
.ln-td-side { display: grid; gap: var(--td-gap); min-width: 0; }
.ln-td-day { padding: 20px; }
.ln-td-day-list { position: relative; margin-top: 12px; }
.ln-td-day-list::before { content: ""; position: absolute; inset-inline-start: 21px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px; background: linear-gradient(var(--w-glow), var(--w-accent), var(--w-deep)); opacity: .55; }
.ln-td-slot { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 9px 0; }
.ln-td-slot-sky { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ln-muted); background: var(--ln-card); box-shadow: inset 0 0 0 2px var(--ln-line-2); }
.ln-pray-mark { width: 26px; height: 26px; }
.ln-td-slot.is-now .ln-td-slot-sky { color: var(--w-ink); box-shadow: inset 0 0 0 2px var(--w-accent), 0 0 0 5px color-mix(in srgb, var(--w-accent) 18%, transparent); }
.ln-td-slot.is-done .ln-td-slot-sky { color: var(--ln-on-good); background: var(--ln-good); box-shadow: none; }
.ln-td-slot-body { display: grid; gap: 4px; min-width: 0; padding-top: 2px; }
.ln-td-slot-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: var(--td-s); }
.ln-td-slot-name b { font-weight: 800; }
.ln-td-slot-name time { color: var(--ln-muted); font-variant-numeric: tabular-nums; }
.ln-td-slot-now { padding: 1px 8px; border-radius: 999px; font-size: var(--td-s); font-weight: 800; color: var(--w-ink); background: var(--w-soft); }
html[data-theme="dark"] .ln-td-slot-now, .ln--teen .ln-td-slot-now { background: color-mix(in srgb, var(--w-accent) 18%, transparent); }
.ln-td-slot-free { font-size: var(--td-s); color: var(--ln-muted); }
.ln-td-slot-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ln-td-slot-item > .ln-td-slot-what { flex: 1; }
.ln-td-slot-item.is-done .ln-td-slot-what b { color: var(--ln-ink-2); }
.ln-td-slot-item .ln-td-tick { padding: 2px 0; min-height: 0; }
.ln-done-dot { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-inline-end: 4px; border-radius: 50%; background: var(--ln-good); vertical-align: -3px; }
.ln-done-dot .ln-td-tick-ico { width: 11px; height: 11px; stroke: var(--ln-on-good); }
.ln-td-slot-go { flex: none; display: inline-grid; place-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: var(--td-s); font-weight: 800; color: var(--w-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.ln-td-slot-go.is-first { color: #fff; background: var(--w-strong); box-shadow: none; }
.ln-remind { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--ln-muted); transition: background .2s, color .2s; }
.ln-remind svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ln-remind:hover { background: var(--ln-card-2); color: var(--ln-ink); }
.ln-remind[aria-pressed="true"] { color: var(--w-ink); background: var(--w-soft); }
.ln-remind[aria-pressed="true"] svg { fill: currentColor; }
html[data-theme="dark"] .ln-remind[aria-pressed="true"] { background: color-mix(in srgb, var(--w-accent) 18%, transparent); }
.ln-td-day-foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--ln-line-2); font-size: var(--td-s); color: var(--ln-muted); }
.ln-td-day-foot a { color: var(--w-ink); font-weight: 700; margin-inline-start: 4px; }

/* The season: the Islamic year moving Today. */
.ln-td-season { position: relative; isolation: isolate; display: block; overflow: hidden; border-radius: var(--td-r); color: #fff; background: var(--w-deep); box-shadow: var(--ln-z2); }
.ln-td-season-art { position: absolute !important; inset: 0; z-index: -2; }
.ln-td-season::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--w-deep) 92%, transparent) 30%, color-mix(in srgb, var(--w-deep) 30%, transparent)); }
.ln-td-season-in { display: grid; gap: 6px; padding: 72px 20px 18px; font-size: var(--td-s); }
.ln-td-season-in small { font-size: var(--td-s); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--w-glow); }
.ln-td-season-in b { font-family: var(--ln-display); font-weight: 600; font-size: var(--td-m); }
.ln-td-season-in > span:not(.ln-td-season-go) { color: rgba(255, 255, 255, .86); }
.ln-td-season-go { justify-self: start; margin-top: 6px; padding: 7px 14px; border-radius: 12px; font-weight: 800; color: var(--w-deep); background: #fff; }

/* ---------- The landing (LD3: one compact band, the doors inside it, the paths straight after) ---------- */
.ln-land-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--w-deep); }
.ln-land-art { position: absolute !important; inset: 0; z-index: -2; }
.ln-land-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--w-deep) 94%, transparent), color-mix(in srgb, var(--w-deep) 70%, transparent) 55%, color-mix(in srgb, var(--w-deep) 35%, transparent)); }
[dir="rtl"] .ln-land-hero::after { transform: scaleX(-1); }
.ln-land-in { max-width: var(--ln-max); margin: 0 auto; padding: 26px 20px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: stretch; }
.ln-land-copy { display: grid; gap: 10px; align-content: start; justify-items: start; min-width: 0; }
.ln-land-title { font-family: var(--ln-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.ln-land-sub { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 56ch; }
.ln-land-quiet { font-size: var(--td-s); font-weight: 700; color: inherit; opacity: .9; }
.ln-land-quiet:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
/* The sample: a real screen of a real lesson, playable here, as tall as the band and scrolling inside itself. */
.ln-land-sample { margin: 0; display: flex; flex-direction: column; min-height: 0; max-height: 440px; color: var(--ln-ink); background: var(--ln-card); border-radius: var(--td-r); box-shadow: var(--ln-z2); overflow: hidden; }
.ln-land-sample-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 10px 16px; border-bottom: 1px solid var(--ln-line); font-size: var(--td-s); }
.ln-land-sample-cap b { font-weight: 800; }
.ln-land-sample-cap small { flex: 1 1 100%; color: var(--ln-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-land-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ln-good); box-shadow: 0 0 0 4px var(--ln-good-soft); }
.ln-land-screen { flex: 1 1 auto; min-height: 0; padding: 12px 16px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ln-land-screen .ln-q { font-size: 15.5px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.ln-land-screen .ln-reveal-grid { gap: 8px; }
.ln-land-screen-title { font-family: var(--ln-display); font-weight: 600; font-size: 17px; line-height: 1.2; margin-bottom: 6px; }
.ln-land-sample-foot { flex: none; padding: 8px 16px 10px; border-top: 1px solid var(--ln-line); font-size: 12.5px; color: var(--ln-muted); }
.ln-land-sample.is-done .ln-land-sample-foot { color: var(--ln-good-ink); font-weight: 700; }
/* Wide screens: the sample is as tall as the words and doors beside it (never taller), its screen a little smaller. */
@media (min-width: 901px) {
  .ln-land-sample { contain: size; min-height: 320px; max-height: none; }
  .ln-land-screen { zoom: .86; }
}
.ln-land-h { font-family: var(--ln-display); font-weight: 600; font-size: var(--td-m); line-height: 1.2; }
.ln--teen .ln-land-h { font-family: var(--ln-sans); font-weight: 850; }
.ln-land-note { font-size: var(--td-s); color: var(--ln-muted); }
/* The three doors, inside the band: the visitor's first step. */
.ln-land-doors { width: 100%; display: grid; gap: 8px; margin-top: 6px; }
.ln-land-ask { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.ln-land-ask .ln-land-h { font-size: 19px; color: #fff; }
.ln-land-ask .ln-land-note { color: rgba(255, 255, 255, .8); }
.ln-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ln-door { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; height: 100%; min-height: 76px; padding: 12px 12px 12px 12px; border-radius: calc(var(--td-r) * .75); color: var(--ln-ink); background: var(--ln-card); box-shadow: var(--ln-z2); transition: transform .25s var(--ln-ease), box-shadow .25s; }
.ln-door:hover { transform: translateY(-2px); box-shadow: var(--ln-z2), 0 0 0 2px var(--w-glow); }
.ln-door-ico { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--w-ink); background: var(--w-soft); }
html[data-theme="dark"] .ln-door-ico, .ln--teen .ln-door-ico { background: color-mix(in srgb, var(--w-accent) 18%, transparent); }
.ln-door-svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ln-door b { align-self: end; font-size: 15.5px; font-weight: 800; line-height: 1.2; }
.ln-door small { align-self: start; grid-column: 2; font-size: 12.5px; line-height: 1.35; color: var(--ln-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ln-door-go { grid-column: 3; grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; background: var(--w-strong); transition: transform .25s var(--ln-ease); }
.ln-door:hover .ln-door-go { transform: translateX(3px); }
[dir="rtl"] .ln-door:hover .ln-door-go { transform: translateX(-3px); }
/* Three across when the band is wide enough, else one under another. */
.ln-land-copy { container-type: inline-size; }
@container (max-width: 660px) {
  .ln-doors { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ln-door { min-height: 62px; padding: 10px 12px; }
}
.ln-land-mine { font-size: var(--td-s); font-weight: 700; }
.ln-land-mine a { color: var(--w-glow); }
/* The worlds as a mosaic: one row per heading, a tile per world (adults) or per path (teens). */
.ln-mosaic { max-width: var(--ln-max); margin: 0 auto; padding: 24px 20px 0; display: grid; gap: 26px; }
.ln-mosaic-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.ln-mosaic-head { display: grid; gap: 6px; align-content: start; position: sticky; top: 80px; padding-top: 2px; }
.ln-mosaic-tiles { display: flex; flex-wrap: wrap; gap: 12px; }
/* Each tile grows with its paths, so every row is filled edge to edge. */
.ln-mtile { position: relative; isolation: isolate; overflow: hidden; flex: 1 1 220px; min-height: 190px; border-radius: calc(var(--td-r) * .8); color: #fff; background: var(--w-deep); box-shadow: var(--ln-z1); }
.ln-mtile--m { flex: 2 1 300px; }
.ln-mtile--l { flex: 3 1 420px; min-height: 240px; }
.ln-mtile-art { position: absolute !important; inset: 0; z-index: -2; }
.ln-mtile-art .ln-scene { transition: transform 1.2s var(--ln-ease); }
.ln-mtile:hover .ln-mtile-art .ln-scene { transform: scale(1.05); }
.ln-mtile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--w-deep) 94%, transparent) 25%, color-mix(in srgb, var(--w-deep) 20%, transparent) 75%); }
.ln-mtile-in { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; }
.ln-mtile-kick { font-size: var(--td-s); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--w-glow); }
.ln-mtile-paths { display: grid; gap: 2px; }
.ln-mosaic-path { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--td-s); }
.ln-mtile-paths li:first-child .ln-mosaic-path { border-top: 0; }
.ln-mosaic-path b { font-size: var(--td-m); font-weight: 700; line-height: 1.2; }
.ln-mtile--s .ln-mosaic-path b, .ln-mtile--m .ln-mosaic-path b { font-size: var(--td-s); }
.ln-mtile--l .ln-mtile-paths li:first-child .ln-mosaic-path b { font-family: var(--ln-display); font-weight: 600; font-size: var(--td-xl); }
.ln--teen .ln-mtile--l .ln-mtile-paths li:first-child .ln-mosaic-path b { font-family: var(--ln-sans); font-weight: 850; }
.ln-mosaic-path small { flex: none; color: rgba(255, 255, 255, .78); font-size: var(--td-s); }
.ln-mosaic-path:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ln-mtile-more { font-size: var(--td-s); font-weight: 700; color: var(--w-glow); }
.ln-land-certs { max-width: var(--ln-max); margin: 40px auto 0; padding: 0 20px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }

/* ---------- The onboarding: five screens on the world's sky (LD3: at the top, the steps in view, Next by the choices) ---------- */
/* The sky fills the screen under the bars; the steps, the plan building up and what it gives start at its top. */
.ln-ob { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - var(--ln-above, 0px) - 64px); min-height: calc(100dvh - var(--ln-above, 0px) - 64px); color: #fff; background: var(--w-deep); }
.ln-ob-art { position: absolute !important; inset: 0; z-index: -2; }
.ln-ob::after, .ln-plan-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--w-deep) 40%, transparent), color-mix(in srgb, var(--w-deep) 88%, transparent) 70%); }
.ln-ob::after { background: linear-gradient(180deg, color-mix(in srgb, var(--w-deep) 82%, transparent), color-mix(in srgb, var(--w-deep) 55%, transparent) 70%, color-mix(in srgb, var(--w-deep) 30%, transparent)); }
.ln-ob-form { width: min(1100px, 100%); margin: 0 auto; padding: 28px 20px 40px; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 20px 40px; align-items: start; }
/* The steps: a rail on the left (wide screens), dots above the question on a phone. */
.ln-ob-top { position: sticky; top: 84px; display: grid; gap: 14px; align-content: start; }
/* The sky stays dark in every look, so the kicker keeps the sky's light (teens: their bright cyan, not the light cards' ink). */
.ln .ln-ob-top .ln-kicker { color: var(--w-glow, #ffd27a); }
.ln--teen .ln-ob-top .ln-kicker { color: #67e8f9; }
.ln-ob-dots { display: none; gap: 6px; }
.ln-ob-dots li { flex: 1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .22); transition: background .3s; }
.ln-ob-dots li.is-done { background: var(--w-glow); }
.ln-ob-dots li.is-here { background: #fff; }
.ln-ob-rail { position: relative; display: grid; gap: 4px; }
.ln-ob-rail::before { content: ""; position: absolute; inset-inline-start: 15px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.ln-ob-rail li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13.5px; font-weight: 650; line-height: 1.25; color: rgba(255, 255, 255, .62); transition: color .3s; }
.ln-ob-rail i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .8); background: color-mix(in srgb, var(--w-deep) 80%, #000); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28); transition: background .3s, box-shadow .3s, color .3s; }
.ln-ob-rail li.is-done { color: rgba(255, 255, 255, .85); }
.ln-ob-rail li.is-done i { color: var(--w-deep); background: var(--w-glow); box-shadow: none; }
.ln-ob-rail li.is-here { color: #fff; font-weight: 800; }
.ln-ob-rail li.is-here i { color: var(--w-deep); background: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--w-glow) 35%, transparent); }
/* Under each step already answered, what was chosen: the plan building up. */
.ln-ob-rail span { display: grid; min-width: 0; }
.ln-ob-rail small { font-size: 12px; font-weight: 650; color: var(--w-glow); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-ob-rail small:empty { display: none; }
.ln-ob-free { font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .72); padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
/* The question, its choices, and Back and Next straight under them. */
.ln-ob-stage { display: grid; gap: 16px; min-width: 0; }
.ln-ob-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
/* The question is floated out of the fieldset's border (a legend otherwise straddles it), so it sits in the step's own
   flow, with the step's gap below it, above its choices. */
.ln-ob-q { float: inline-start; width: 100%; margin: 0; padding: 0; font-family: var(--ln-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.ln--teen .ln-ob-q { font-family: var(--ln-sans); font-weight: 800; letter-spacing: -.02em; }
.ln-ob-q:focus { outline: none; }
.ln-ob-say { font-size: var(--td-s); color: rgba(255, 255, 255, .86); margin-top: -4px; }
.ln-ob-picks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ln-ob-picks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ln-ob-picks--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ln-ob-picks--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ln-ob-pick { position: relative; }
.ln-ob-pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ln-ob-pick > span { position: relative; display: grid; gap: 6px; justify-items: start; align-content: start; height: 100%; min-height: 56px; padding: 16px; border-radius: 16px; font-size: var(--td-s); color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .26); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s, box-shadow .2s, transform .2s, color .2s; pointer-events: none; }
.ln-ob-pick b { font-size: 17px; font-weight: 800; line-height: 1.2; }
.ln-ob-pick small { color: rgba(255, 255, 255, .82); font-size: var(--td-s); line-height: 1.45; }
/* The first question's choices are the big ones: an icon, the answer and its line, and an arrow (one tap goes on). */
.ln-ob-step[data-step="1"] .ln-ob-pick > span { min-height: 128px; padding: 18px 18px 50px; }
.ln-ob-step[data-step="1"] .ln-ob-pick > span::after { content: "\2192"; position: absolute; inset-inline-end: 14px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--w-deep); background: rgba(255, 255, 255, .9); transition: transform .2s; }
[dir="rtl"] .ln-ob-step[data-step="1"] .ln-ob-pick > span::after { content: "\2190"; }
.ln-ob-step[data-step="1"] .ln-ob-pick:hover > span::after { transform: translateX(3px); }
[dir="rtl"] .ln-ob-step[data-step="1"] .ln-ob-pick:hover > span::after { transform: translateX(-3px); }
.ln-ob-ico, .ln-ob-pick .ln-pray-mark { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--w-glow); }
.ln-ob-pick .ln-pray-mark { stroke-width: 2; }
.ln-ob-pick--tile > span, .ln-ob-pick--sky > span { justify-items: center; text-align: center; }
.ln-ob-pick--small > span { justify-items: center; padding: 14px; }
.ln-ob-pick:hover > span { background: rgba(255, 255, 255, .17); transform: translateY(-2px); }
.ln-ob-pick input:checked + span { color: var(--w-deep); background: var(--w-glow); box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .6); }
.ln-ob-pick input:checked + span small { color: color-mix(in srgb, var(--w-deep) 82%, transparent); }
.ln-ob-pick input:checked + span :is(.ln-ob-ico, .ln-pray-mark) { color: var(--w-deep); }
.ln-ob-pick input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.ln-ob-pick input:disabled + span { opacity: .45; }
.ln-ob-city { display: grid; gap: 6px; justify-items: start; font-size: var(--td-s); color: rgba(255, 255, 255, .86); }
.ln-ob-city select { min-height: 46px; min-width: min(360px, 100%); padding: 0 14px; border-radius: 14px; border: 0; color: var(--ln-ink); background: var(--ln-card); font-size: var(--td-s); }
.ln-ob-qs { display: grid; }
.ln-ob-qq { display: grid; gap: 12px; padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); }
.ln-ob-qq + .ln-ob-qq { margin-top: 12px; }
.ln-ob.is-live .ln-ob-qq + .ln-ob-qq { margin-top: 0; }
.ln-ob-qtext { font-size: var(--td-m); font-weight: 700; line-height: 1.35; }
.ln-ob-qtext small { display: block; margin-bottom: 4px; font-size: var(--td-s); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--w-glow); }
.ln-ob-answers { display: grid; gap: 8px; }
.ln-ob-ans { position: relative; }
.ln-ob-ans input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ln-ob-ans span { display: block; padding: 12px 16px; border-radius: 14px; font-size: var(--td-s); font-weight: 650; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); pointer-events: none; transition: background .2s; }
.ln-ob-ans input:checked + span { color: var(--w-deep); background: var(--w-glow); }
.ln-ob-ans input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.ln-ob-ans--unsure span { background: transparent; color: rgba(255, 255, 255, .8); }
.ln-ob-skip { justify-self: start; min-height: 40px; font-size: var(--td-s); font-weight: 700; color: rgba(255, 255, 255, .86); text-decoration: underline; text-underline-offset: 3px; }
.ln-ob-nav { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.ln-ob-nav [data-ob-back] { margin-inline-end: auto; }
.ln-ob-nav .ln-btn--big { min-height: 52px; padding: 12px 26px; }
.ln-ob-status { min-height: 1.5em; margin-top: -8px; font-size: var(--td-s); color: var(--w-glow); }
.ln-ob-status:empty { min-height: 0; margin: 0; }
/* The plan's picture, building up with the answers: chips for what was chosen, the first week's days lit. */
.ln-ob-preview { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border-radius: 18px; background: rgba(0, 0, 0, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ln-ob-preview-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 28px; font-size: 12.5px; }
.ln-ob-preview-top b { margin-inline-end: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--w-glow); }
.ln-ob-preview-top span { padding: 3px 10px; border-radius: 999px; font-weight: 700; color: var(--w-deep); background: var(--w-glow); }
.ln-ob-preview-top span:empty { display: none; }
.ln-ob-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ln-ob-week li { display: grid; align-content: start; gap: 5px; min-height: 78px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .3s, box-shadow .3s; }
.ln-ob-week li:first-child { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--w-glow) 70%, transparent); }
.ln-ob-week small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
[dir="rtl"] .ln-ob-week small { letter-spacing: 0; }
.ln-ob-week i { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); transition: background .3s; }
.ln-ob-week i:nth-of-type(2) { width: 80%; }
.ln-ob-week i:nth-of-type(3) { width: 60%; }
.ln-ob-week em { font-style: normal; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .86); }
.ln-ob-preview.has-journey .ln-ob-week li { background: rgba(255, 255, 255, .09); }
.ln-ob-preview:is([data-slots="1"], [data-slots="2"], [data-slots="3"]) .ln-ob-week i:nth-of-type(1),
.ln-ob-preview:is([data-slots="2"], [data-slots="3"]) .ln-ob-week i:nth-of-type(2),
.ln-ob-preview[data-slots="3"] .ln-ob-week i:nth-of-type(3) { background: linear-gradient(90deg, var(--w-glow), var(--w-accent)); }
.ln--teen .ln-ob-preview, .ln--teen .ln-ob-week li { border-radius: 6px; }
/* What the plan gives: three quiet parts under the choices, so the page ends complete. */
.ln-ob-gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ln-ob-gets li { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: start; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ln-ob-gets-ico { grid-row: 1 / span 2; width: 34px; height: 34px; padding: 7px; border-radius: 10px; fill: none; stroke: var(--w-glow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: rgba(255, 255, 255, .08); }
.ln-ob-gets b { font-size: 14px; font-weight: 800; line-height: 1.25; }
.ln-ob-gets small { font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.ln--teen .ln-ob-gets li { border-radius: 6px; }
.ln-ob .ln-btn--primary { color: var(--w-deep); background: #fff; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.ln-ob .ln-btn--ghost { color: #fff; }

/* ---------- The plan ---------- */
.ln-plan-head { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--w-deep); }
.ln-plan-head-in { max-width: var(--ln-max); margin: 0 auto; padding: 24px 20px 26px; display: grid; gap: 12px; justify-items: start; }
.ln-plan-title { font-family: var(--ln-display); font-weight: 600; font-size: var(--td-xl); line-height: 1.05; letter-spacing: -.015em; }
.ln--teen .ln-plan-title { font-family: var(--ln-sans); font-weight: 800; }
.ln-plan-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.ln-plan-facts li { padding: 7px 14px; border-radius: 999px; font-size: var(--td-s); background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.ln-plan-facts b { font-weight: 800; }
.ln-plan-go { display: flex; flex-wrap: wrap; gap: 12px; }
.ln-plan-go .ln-btn--primary { color: var(--w-deep); background: #fff; }
.ln-plan-known { font-size: var(--td-s); color: rgba(255, 255, 255, .88); max-width: 70ch; }
.ln-plan-body { max-width: var(--ln-max); margin: 0 auto; padding: 22px 20px 0; display: grid; gap: 24px; }
.ln-plan-week, .ln-plan-route-list { display: grid; gap: 14px; }
.ln-pweek-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.ln-pweek-strip > li { display: grid; align-content: start; gap: 8px; padding: 12px; border-radius: 16px; background: var(--ln-card); box-shadow: var(--ln-z1); min-width: 0; }
.ln-pweek-strip > li.is-today { box-shadow: inset 0 0 0 2px var(--w-accent), var(--ln-z1); }
.ln-pweek-day { font-size: var(--td-s); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--w-ink); }
.ln-pweek-lesson { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; font-size: var(--td-s); background: var(--ln-card-2); box-shadow: inset 3px 0 0 var(--w-accent); }
[dir="rtl"] .ln-pweek-lesson { box-shadow: inset -3px 0 0 var(--w-accent); }
.ln-pweek-lesson b { font-weight: 700; overflow-wrap: anywhere; }
.ln-pweek-lesson small { color: var(--ln-muted); font-size: var(--td-s); }
.ln-plan-note, .ln-plan-keep { font-size: var(--td-s); color: var(--ln-muted); }
.ln-plan-keep a { color: var(--w-ink); font-weight: 800; }
/* The route: the paths as stops joined by a line, each in its own world. */
.ln-route-steps { position: relative; display: grid; gap: 14px; counter-reset: route; padding-inline-start: 54px; }
.ln-route-steps::before { content: ""; position: absolute; top: 24px; bottom: 24px; inset-inline-start: 19px; width: 4px; border-radius: 4px; background: repeating-linear-gradient(180deg, var(--w-accent, #f29a3f) 0 10px, transparent 10px 16px); opacity: .6; }
.ln-route-step { position: relative; counter-increment: route; }
.ln-route-step::before { content: counter(route); position: absolute; inset-inline-start: -54px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: var(--td-s); color: #fff; background: var(--w-strong); box-shadow: 0 0 0 5px var(--ln-paper), 0 0 0 7px color-mix(in srgb, var(--w-accent) 40%, transparent); z-index: 1; }
.ln-route-step > a, .ln-route-coming { position: relative; display: grid; grid-template-columns: 260px minmax(0, 1fr); border-radius: var(--td-r); overflow: hidden; background: var(--ln-card); box-shadow: var(--ln-z1); transition: transform .3s var(--ln-ease); }
.ln-route-coming { grid-template-columns: 1fr; box-shadow: inset 0 0 0 1.5px var(--ln-line-2); background: transparent; }
.ln-route-step > a:hover { transform: translateX(4px); }
[dir="rtl"] .ln-route-step > a:hover { transform: translateX(-4px); }
.ln-route-art { min-height: 120px; }
.ln-route-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; justify-content: center; font-size: var(--td-s); }
.ln-route-body b { font-family: var(--ln-display); font-weight: 600; font-size: var(--td-m); line-height: 1.15; }
.ln-route-body span { color: var(--ln-ink-2); }
.ln-route-body small { color: var(--w-ink); font-weight: 750; font-size: var(--td-s); }

/* ---------- Teens: flat planes, hard edges, offset shadows ---------- */
.ln--teen :is(.ln-td-card, .ln-door, .ln-td-keep-card, .ln-pweek-strip > li, .ln-land-sample, .ln-route-step > a) { box-shadow: 0 0 0 2px var(--ln-line-2), 6px 6px 0 color-mix(in srgb, var(--w-accent) 70%, transparent); }
.ln--teen .ln-td-next { box-shadow: 0 0 0 2px var(--w-accent), 8px 8px 0 color-mix(in srgb, var(--w-accent) 55%, #000); }
.ln--teen :is(.ln-td-title, .ln-td-lesson, .ln-land-title, .ln-mring-v b, .ln-td-count b) { font-family: var(--ln-sans); font-weight: 800; letter-spacing: -.025em; }
.ln--teen :is(.ln-ob-pick > span, .ln-ob-qq, .ln-ob-ans span, .ln-mtile) { border-radius: 6px; }
.ln--teen .ln-door-go, .ln--teen .ln-td-slot-go.is-first { border-radius: 6px; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .ln-td-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .ln-td-keep-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ln-mosaic-row, .ln-land-certs { grid-template-columns: 1fr; gap: 12px; }
  .ln-mosaic-head { position: static; }
  .ln-pweek-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ln-td-head-in { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 20px; padding: 22px 16px 84px; }
  .ln-lamp { grid-column: 1 / -1; max-width: none; }
  .ln-lamp-row { grid-template-columns: repeat(14, minmax(0, 1fr)); }
  .ln-mring { width: 92px; height: 92px; }
  .ln-td-grid { grid-template-columns: minmax(0, 1fr); padding: 0 12px; margin-top: -62px; gap: 14px; }
  .ln-td-main { gap: 14px; }
  .ln-td-next { grid-template-columns: minmax(0, 1fr); }
  .ln-td-pic { min-height: 0; aspect-ratio: 16 / 6; }
  .ln-td-body { padding: 18px 18px 20px; }
  /* On a phone the day comes straight after Up next. */
  .ln-td-grid { display: flex; flex-direction: column; align-items: stretch; }
  .ln-td-main, .ln-td-side { display: contents; }
  .ln-td-next { order: 1; }
  .ln-td-hint { order: 2; margin-top: -4px; }
  .ln-td-day { order: 3; }
  .ln-td-trio { order: 4; }
  .ln-td-season { order: 5; }
  .ln-td-keep, .ln-td-explore { order: 6; }
  .ln-land-in { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 14px 20px; }
  .ln-land-sample { max-height: 400px; }
  .ln-mosaic-path { flex-wrap: wrap; gap: 0 8px; }
  .ln-doors { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ln-door { min-height: 64px; padding: 10px 12px; }
  .ln-mosaic { padding: 20px 12px 0; gap: 22px; }
  .ln-mtile, .ln-mtile--m { flex-basis: 150px; min-height: 160px; }
  .ln-mtile--l { flex-basis: 100%; min-height: 200px; }
  .ln-land-certs { padding: 0 12px; }
  .ln-ob-form { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 20px; gap: 12px; }
  .ln-ob-top { position: static; gap: 8px; }
  .ln-ob-top .ln-kicker { font-size: 11.5px; }
  .ln-ob-dots { display: flex; }
  .ln-ob-rail, .ln-ob-free { display: none; }
  .ln-ob-q { font-size: 26px; }
  .ln-ob-gets { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ln-ob-preview { padding: 10px; margin-top: 4px; }
  .ln-ob-week { gap: 4px; }
  .ln-ob-week li { min-height: 64px; padding: 6px 5px; border-radius: 9px; }
  .ln-ob-week small { font-size: 10px; letter-spacing: 0; }
  .ln-ob-week em { font-size: 10px; }
  .ln-ob-gets li { padding: 10px; }
  .ln-ob-picks--3, .ln-ob-picks--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ln-ob-picks--3 > :only-child, .ln-ob-step[data-step="1"] .ln-ob-picks--3 { grid-template-columns: minmax(0, 1fr); }
  .ln-ob-step[data-step="1"] .ln-ob-pick > span { min-height: 0; padding: 14px 54px 14px 14px; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; }
  [dir="rtl"] .ln-ob-step[data-step="1"] .ln-ob-pick > span { padding: 14px 14px 14px 54px; }
  .ln-ob-step[data-step="1"] .ln-ob-pick .ln-ob-ico { grid-row: 1 / span 2; }
  .ln-ob-step[data-step="1"] .ln-ob-pick small { grid-column: 2; }
  .ln-ob-step[data-step="1"] .ln-ob-pick > span::after, .ln-ob-step[data-step="1"] .ln-ob-pick:hover > span::after,
  [dir="rtl"] .ln-ob-step[data-step="1"] .ln-ob-pick:hover > span::after { bottom: 50%; transform: translateY(50%); }
  /* Back and Next stay at the foot of the screen, above the tabs, like an app's. */
  .ln-ob-nav { position: sticky; bottom: calc(var(--ln-tabs-h, 0px) + env(safe-area-inset-bottom) + 10px); z-index: 3; padding: 8px; margin-inline: -6px; border-radius: 20px; background: color-mix(in srgb, var(--w-deep) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .ln-ob-nav:not(:has(> :not([hidden]))) { display: none; }
  .ln-ob-nav .ln-btn--big { flex: 1 1 auto; justify-content: center; min-height: 48px; }
  .ln-ob-picks--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .ln-ob-pick--sky > span { padding: 12px 4px; }
  .ln-ob-pick--sky b { font-size: var(--td-s); }
  .ln-route-step > a { grid-template-columns: minmax(0, 1fr); }
  .ln-route-art { min-height: 100px; }
  .ln-pweek-strip { grid-template-columns: repeat(7, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
  .ln-pweek-strip > li { scroll-snap-align: start; }
}
@media (max-width: 480px) {
  .ln-td-keep-row { grid-template-columns: minmax(0, 1fr); }
  .ln-td-keep-card { grid-template-columns: 96px minmax(0, 1fr); }
  .ln-td-keep-art { height: 100%; min-height: 72px; }
  .ln-td-go .ln-btn { width: 100%; justify-content: center; }
  .ln-route-steps { padding-inline-start: 44px; }
  .ln-route-step::before { inset-inline-start: -44px; width: 34px; height: 34px; }
  .ln-route-steps::before { inset-inline-start: 15px; }
}

/* ---------- Motion: one at a time, and none with less motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ln-td-next, .ln-land-sample, .ln-ob-step:not([hidden]) { animation: ln-td-rise .5s var(--ln-ease) both; }
  .ln-td-slot.is-now .ln-td-slot-sky { animation: ln-td-pulse 2.6s ease-in-out infinite; }
  @keyframes ln-td-rise { from { opacity: 0; transform: translateY(12px); } }
  @keyframes ln-td-pulse { 50% { box-shadow: inset 0 0 0 2px var(--w-accent), 0 0 0 9px color-mix(in srgb, var(--w-accent) 6%, transparent); } }
}
@media (prefers-reduced-motion: reduce) {
  .ln-mring-fill { transition: none; }
  .ln-td-keep-card:hover, .ln-door:hover, .ln-ob-pick:hover > span, .ln-route-step > a:hover { transform: none; }
}
