/* =====================================================================
   TIDY DASHBOARD LOOK (loaded last, after site.css and accounts.css)
   Asked by Anton on 15 Nov 2026: fewer big buttons and big lesson tiles,
   more organised, like an admin dashboard: cards with headers, compact
   lists and tables, small flat buttons. Same palette and Jost font.
   The lesson reading text stays comfortable to read.
   To go back to the old look, remove this file's <link> in base.html.
   ===================================================================== */
html { font-size: 17px; }
body { line-height: 1.55; }
h1 { font-size: 1.6rem; font-weight: 600; }
h2 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
.page { max-width: 1240px; padding: 28px 24px 56px; }
.footer { max-width: 1240px; }
.topbar-inner { max-width: 1240px; min-height: 62px; gap: 18px; }
.toolbar { margin-bottom: 22px; }
.toolbar h1 { font-size: 1.6rem; }
.toolbar .subtitle { font-size: .98rem; margin-top: 4px; }

/* Buttons: flat, compact */
.btn {
  min-height: 0; height: auto; padding: 9px 18px; border-radius: 8px;
  font-size: .92rem; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.3;
  border: 1px solid transparent; box-shadow: none; transition: background .15s, filter .15s;
}
.btn:hover { filter: brightness(.96); }
.btn:active { transform: none; }
.btn-light { box-shadow: none; border-color: var(--border-strong); }
.btn-soft { box-shadow: none; border-color: var(--primary-line); }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 7px; }
.btn-sm:active { transform: none; }
.finish .btn { font-size: 1rem; padding: 12px 24px; }
.acc-submit, .acc-google, .price-btn { min-height: 48px; font-size: 1rem; }

/* Top menu */
.topnav { gap: 2px; }
.topnav a { padding: 8px 12px; font-size: .95rem; font-weight: 500; border-radius: 8px; }
.topnav a.active { box-shadow: none; background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.topnav a.nav-signup { color: #fff; }
.course-pill { border-radius: 8px; padding: 5px 12px; font-size: .9rem; }

/* Cards, lists, tables */
.card { border-radius: 12px; }
.card-header { padding: 12px 20px; min-height: 52px; }
.card-title { font-size: 1.02rem; font-weight: 600; }
.card-body { padding: 20px; }
.grid { gap: 20px; }
.stack { gap: 20px; }
.badge { border-radius: 6px; padding: 3px 9px; font-size: .8rem; }
.list-item { padding: 12px 20px; }
table { font-size: .98rem; }
th, td { padding: 11px 16px; vertical-align: middle; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Dashboard (course home) ---------- */
.d-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.d-head p { margin: 4px 0 0; color: var(--muted); }
.d-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.d-stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.d-stat .icon-box { flex: none; }
.d-stat b { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.d-stat span.l { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.d-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.d-next { display: flex; gap: 18px; align-items: center; }
.d-next img { width: 150px; height: 104px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); flex: none; }
.d-next h2 { margin: 2px 0 6px; font-size: 1.3rem; }
.d-next p { margin: 0 0 12px; color: var(--text-2); }
.d-kicker { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-text); }
.d-bar { height: 8px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; }
.d-bar span { display: block; height: 100%; background: var(--success-text); border-radius: 999px; }
.d-progress-row { display: flex; align-items: center; gap: 12px; }
.d-progress-row .d-bar { flex: 1; }
.d-progress-row b { font-size: .9rem; color: var(--text); white-space: nowrap; }
.d-links a { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500; }
.d-links a:last-child { border-bottom: 0; }
.d-links a:hover { background: var(--surface-2); }
.d-links a span.t { margin-left: auto; color: var(--muted); font-weight: 400; font-size: .9rem; text-align: right; }
.d-links svg.i { width: 18px; height: 18px; color: var(--primary-text); }
.d-note { color: var(--muted); font-size: .9rem; margin-top: 20px; }

/* ---------- Lesson tables (parts, chapters, coming up) ---------- */
.l-table td.n { width: 54px; color: var(--muted); font-weight: 600; }
.l-table td.t a { color: var(--text); font-weight: 600; }
.l-table td.t a:hover { color: var(--primary-text); }
.l-table td.t small { display: block; color: var(--muted); font-size: .88rem; font-weight: 400; margin-top: 1px; }
.l-table td.s { width: 130px; white-space: nowrap; }
.l-table td.a { width: 110px; text-align: right; white-space: nowrap; }
.l-table td.p { width: 220px; }
.l-table tr.next td { background: var(--primary-soft); }
.l-table tr.soon td { color: var(--muted); }
.l-table tr:hover td { background: var(--surface-2); }
.l-table tr.next:hover td { background: var(--primary-soft); }
.l-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; }
.l-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.l-dot.done { color: var(--success-text); }
.l-dot.done::before { background: var(--success-text); }
.l-dot.next { color: var(--primary-text); }
.l-dot.next::before { background: var(--primary); }
.l-chapter { margin-bottom: 20px; }
.l-chapter .card-header small { color: var(--muted); font-weight: 400; margin-left: 8px; }
.list-progress { margin-bottom: 20px; }

/* Lesson reading text stays comfortable */
.reading .prose, .g-article .prose, .dialogue, .reading .card-body { font-size: 1.08rem; line-height: 1.7; }
.reading .toolbar h1, .ol-main .toolbar h1 { font-size: 1.7rem; }
.ol-name { font-size: 1rem; }
.ol-title { font-size: 1.15rem; }
.ol-bar .ol-next { font-size: .95rem; padding: 10px 20px; }
.choose h1, .price-page h1, .doc h1 { font-size: 1.8rem; }
.choose-card h2 { font-size: 1.4rem; }
.choose-card p, .choose-lead { font-size: 1.02rem; }
.choose-card .card-body, .price-card .card-body { padding: 26px; }
.price-amount { font-size: 2.2rem; }
.doc { font-size: 1.02rem; }
.acc-card h1, .acc-page h1 { font-size: 1.6rem; }
.acc-lead, .acc-page p, .acc-list li { font-size: 1rem; }
.acc-field input { height: 48px; font-size: 1rem; border-width: 1px; border-radius: 8px; }
.acc-field label { font-size: 1rem; }

@media (max-width: 900px) {
  .d-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-cols { grid-template-columns: minmax(0, 1fr); }
  .d-next { flex-direction: column; align-items: flex-start; }
  .l-table td.p, .l-table th.p, .l-table td.s, .l-table th.s { display: none; }
}

/* ---------- Course colours: Bisaya keeps the coral pink, Tagalog is blue.
   Green (success) is shared by both. base.html puts data-course on <html>. ---------- */
html[data-course="tagalog"] {
  --bg: #f7fafd; --surface-2: #f1f6fb; --border: #e4ecf4; --border-strong: #d2dfec; --gray-soft: #e9f0f7;
  --primary: #4f8fab; --primary-hover: #437c95; --primary-soft: #edf4f7; --primary-line: #c9dde6; --primary-text: #4f8fab;
  --shadow: 0 2px 6px rgba(70, 110, 150, .05); --shadow-lg: 0 10px 30px rgba(70, 110, 150, .12);
}
.topbar .logo { font-size: 1.2rem; font-weight: 700; }

/* Course chooser and other pages outside a course: each course card in its own colour. */
.choose-card.c-bisaya { --c: #e8838f; --c-hover: #d96c79; --c-soft: #fdeef0; --c-line: #f6cdd2; --c-text: #d0606e; }
.choose-card.c-tagalog { --c: #4f8fab; --c-hover: #437c95; --c-soft: #edf4f7; --c-line: #c9dde6; --c-text: #4f8fab; }
.choose-card { border-top: 6px solid var(--c); }
.choose-card.accent { background: var(--c-soft); border-color: var(--c-line); border-top-color: var(--c); }
.choose-card h2, .choose-card .dash-label { color: var(--c-text); }
.choose-card .btn { background: var(--c); border-color: var(--c); color: #fff; }
.choose-card:hover .btn { background: var(--c-hover); }
.choose-flag { display: inline-block; width: 46px; height: 46px; border-radius: 12px; background: var(--c-soft); border: 1px solid var(--c-line); color: var(--c-text); font-weight: 700; font-size: 1.05rem; line-height: 44px; text-align: center; margin-bottom: 12px; }
html:not([data-course="bisaya"]):not([data-course="tagalog"]) .topnav a.c-bisaya { color: #d0606e; }
html:not([data-course="bisaya"]):not([data-course="tagalog"]) .topnav a.c-tagalog { color: #4f8fab; }
.logo-text span { color: var(--primary-text); }
html:not([data-course="bisaya"]):not([data-course="tagalog"]) .logo-text span { background: linear-gradient(90deg, #d0606e, #4f8fab); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Course chooser: a cartoon of each course's characters at the top of its card */
.choose-card { overflow: hidden; }
.choose-pic { aspect-ratio: 16 / 9; background: var(--c-soft); border-bottom: 1px solid var(--c-line); overflow: hidden; }
.choose-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.choose-card:hover .choose-pic img { transform: scale(1.03); }

/* ---- One logo everywhere: plain black text ---- */
.topbar .logo, .topbar .logo:hover { color: #1f1d24; }
.topbar .logo .logo-text, html .logo-text span { color: #1f1d24 !important; background: none !important; -webkit-text-fill-color: currentColor; font-weight: 700; letter-spacing: .01em; }

/* ---- Top menu: 4 items + 1 (Join, or the round user button) ---- */
.topnav { align-items: center; }
.topnav .nav-account { margin-left: 10px; display: flex; align-items: center; }
.topnav a.nav-signup { background: var(--primary); color: #fff; padding: 8px 18px; }
.topnav a.nav-signup:hover, .topnav a.nav-signup.active { background: var(--primary-hover); color: #fff; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.05rem; display: grid; place-items: center; cursor: pointer; user-select: none; }
.user-avatar:hover, .user-menu[open] .user-avatar { box-shadow: 0 0 0 3px var(--primary-soft); }
.user-drop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; }
.user-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-who strong { display: block; color: var(--text); }
.user-who span { display: block; color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; }
.user-drop a, .user-drop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--text-2); font: inherit; font-size: .95rem; background: none; border: 0; cursor: pointer; }
.user-drop a:hover, .user-drop button:hover { background: var(--primary-soft); color: var(--primary-text); }
.user-drop form { margin: 4px 0 0; border-top: 1px solid var(--border); padding-top: 4px; }
@media (max-width: 900px) {
  .topnav .nav-account { margin: 8px 0 0; }
  .user-drop { position: static; box-shadow: none; margin-top: 8px; }
}

/* ---------- Polish pass (15 Nov): slim scroll bars everywhere, calmer details ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
.part-label { display: none; }
#dialogue:empty, #grammar:empty, .stack > div:empty { display: none; }
.footer { color: var(--muted); }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--primary-text); }
.d-note { font-size: .85rem; }
.to-top { width: 44px; height: 44px; font-size: 1.1rem; }

/* ---- Usability pass (15 Nov): one title per page, one small back link top left ---- */
.back-link { display: inline-block; font-size: .92rem; font-weight: 600; margin: 0 0 12px; color: var(--primary-text); }
.back-link:hover { text-decoration: underline; }
.g-crumbs, .crumb { display: none; }

/* ---- 15 Nov: one uniform voice control everywhere (play button + 1x / 3/4x / 1/2x) ---- */
.play { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; flex: none; }
.play-btn { width: 32px; height: 32px; }
.play-btn svg { width: 14px; height: 14px; }
.play .rates { display: inline-flex; gap: 0; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.play .rates button { width: 36px; height: 26px; padding: 0; border: 0; border-left: 1px solid var(--border-strong); border-radius: 0; font-size: .78rem; font-weight: 600; line-height: 1; background: transparent; color: var(--text-2); }
.play .rates button:first-child { border-left: 0; }
.play .rates button.on { background: var(--primary); color: #fff; }
/* Vocabulary table: the word on its own line, the control under it, the same on every row */
.vocab-table td { vertical-align: top; }
.vocab-table td:first-child { width: 42%; }
.vocab-word { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.vocab-word strong { font-size: 1.05rem; color: var(--text); }
.vocab-word .play { margin-top: 0; }
td > .play { margin-top: 0; }

/* ===== 15 Nov: front page (welcome header, three cards, courses with lesson pictures) ===== */
.fp .fp-welcome { padding: 40px 34px; margin-bottom: 22px; }
.fp .fp-welcome h1 { font-size: 2.2rem; margin: 0 0 8px; }
.fp .fp-welcome p { font-size: 1.15rem; margin: 0; max-width: none; text-wrap: balance; }

.fp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 44px; }
.fp-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); color: var(--text-2); transition: transform .12s ease, border-color .12s ease; }
.fp-card:hover { transform: translateY(-2px); border-color: var(--primary-line); color: var(--text-2); }
.fp-label { font-size: .8rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fp-card-row { display: flex; align-items: flex-start; gap: 14px; }
.fp-card-row > span:last-child { padding-top: 2px; }
.fp-card-row strong { display: block; font-size: 1.12rem; color: var(--text); line-height: 1.3; }
.fp-card-row small { display: block; font-size: .98rem; color: var(--text-2); margin-top: 2px; }
.fp-ic { flex: none; display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); }
.fp-ic svg.i { width: 22px; height: 22px; }

.fp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.fp-head h2 { font-size: 1.6rem; margin: 0; }
.fp-explore { margin-bottom: 48px; scroll-margin-top: 90px; }
.fp-explore-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.fp-tabs { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fp-panels { min-width: 0; }
.fp-tab.c-bisaya, .fp-panel.c-bisaya { --c: #e8838f; --c-hover: #d96c79; --c-soft: #fdeef0; --c-line: #f6cdd2; --c-text: #d0606e; }
.fp-tab.c-tagalog, .fp-panel.c-tagalog { --c: #4f8fab; --c-hover: #437c95; --c-soft: #edf4f7; --c-line: #c9dde6; --c-text: #4f8fab; }
.fp-tab { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: 14px; background: transparent; font: inherit; text-align: left; color: var(--text-2); cursor: pointer; }
.fp-tab:hover { background: var(--surface-2); }
.fp-tab.on { background: var(--surface); border-color: var(--text); box-shadow: var(--shadow); }
.fp-tab strong { display: block; font-size: 1.1rem; color: var(--text); }
.fp-tab small { display: block; font-size: .92rem; color: var(--muted); }
.fp-tab-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--c-soft); border: 1px solid var(--c-line); color: var(--c-text); font-weight: 700; font-size: 1.1rem; }
.fp-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.fp-panel-head p { margin: 0; font-size: 1.08rem; flex: 1 1 260px; }
.fp-panel-head .btn { background: var(--c); border-color: var(--c); box-shadow: 0 4px 0 var(--c-hover); color: #fff; }
.fp-panel-head .btn:hover { background: var(--c); }
.fp-row { display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 18px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x proximity; }
.fp-row > * { scroll-snap-align: start; }
.fp-panel .cv-thumb { background: var(--c-soft); }
.fp-panel .cv-card.is-next .cv-thumb { box-shadow: 0 0 0 3px var(--c); }
.fp-panel .cv-flag { background: var(--c); }
.fp-more { display: grid; place-items: center; text-align: center; aspect-ratio: 16 / 10; border: 2px dashed var(--c-line); border-radius: 14px; color: var(--c-text); font-weight: 600; padding: 12px; }
.fp-more:hover { background: var(--c-soft); color: var(--c-text); }

.fp-how { margin-bottom: 20px; scroll-margin-top: 90px; }
.fp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.fp-feat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.fp-feat h3 { font-size: 1.15rem; margin: 14px 0 6px; }
.fp-feat p { margin: 0; font-size: 1rem; line-height: 1.5; }

/* The invitation to join (always closable) */
.join { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(45, 35, 40, .55); opacity: 0; transition: opacity .2s ease; }
.join.on { opacity: 1; }
.join[hidden] { display: none; }
.join-box { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 880px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 18px; box-shadow: 0 24px 60px rgba(40, 20, 30, .35); }
.join-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.join-x:hover { background: var(--primary-soft); color: var(--primary-text); }
.join-left { display: flex; flex-direction: column; background: linear-gradient(160deg, #d96c79 0%, #e8838f 60%, #efa0ab 100%); color: #fff; padding: 40px 34px 0; }
.join-left h2 { color: #fff; font-size: 1.9rem; margin: 0 0 18px; }
.join-left ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; font-size: 1.12rem; }
.join-left li { display: flex; align-items: flex-start; gap: 10px; }
.join-left li svg.i { flex: none; width: 20px; height: 20px; margin-top: 4px; }
.join-left img { display: block; width: 100%; margin-top: auto; border-radius: 14px 14px 0 0; }
.join-right { display: flex; flex-direction: column; padding: 48px 38px 30px; }
.join-right h2 { font-size: 1.7rem; margin: 0 0 6px; padding-right: 40px; }
.join-switch { font-size: 1.05rem; margin: 0 0 26px; }
.join-switch a, .join-small a { font-weight: 600; }
.join-btn { display: flex; width: 100%; justify-content: center; align-items: center; gap: 12px; min-height: 56px; font-size: 1.1rem; margin-bottom: 14px; box-sizing: border-box; }
.join-later { margin: 6px auto 0; padding: 10px 12px; border: 0; background: transparent; font: inherit; font-size: 1.02rem; font-weight: 500; color: var(--text-2); text-decoration: underline; cursor: pointer; }
.join-later:hover { color: var(--primary-text); }
.join-small { margin: auto 0 0; padding-top: 22px; font-size: .92rem; color: var(--muted); }

@media (max-width: 860px) {
  .fp .fp-welcome { padding: 28px 22px; }
  .fp .fp-welcome h1 { font-size: 1.7rem; }
  .fp-cards { grid-template-columns: 1fr; gap: 12px; margin-bottom: 34px; }
  .fp-explore-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fp-tabs { flex-direction: row; overflow-x: auto; }
  .fp-tab { width: auto; flex: 1 0 auto; }
  .fp-row { grid-auto-columns: 200px; }
}
@media (max-width: 700px) {
  .join-box { grid-template-columns: 1fr; max-width: 440px; }
  .join-left { padding: 26px 24px 22px; }
  .join-left h2 { font-size: 1.5rem; margin-bottom: 12px; padding-right: 44px; }
  .join-left ul { margin-bottom: 0; font-size: 1.02rem; gap: 8px; }
  .join-left img { display: none; }
  .join-right { padding: 26px 24px 24px; }
  .join-right h2 { font-size: 1.4rem; padding-right: 0; }
  .join-x { background: rgba(255, 255, 255, .9); }
}

/* ---- 15 Nov: top bar for visitors: a "Log in" button, then "New here? Sign up" ---- */
.topnav .nav-account { gap: 14px; }
.topnav .nav-new { font-size: .95rem; color: var(--text-2); white-space: nowrap; }
.topnav .nav-new a { padding: 0; background: none; border-radius: 0; font-weight: 600; color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }
.topnav .nav-new a:hover { background: none; color: var(--primary-hover); }
@media (max-width: 900px) {
  .topnav .nav-account { gap: 12px; }
  .topnav a.nav-login { text-align: center; }
  .topnav .nav-new { text-align: center; font-size: 1.05rem; padding-bottom: 4px; }
}

/* ---- 15 Nov: one width everywhere, so the top bar, the page and the footer line up on every page ---- */
main.page.has-side, body:has(.ol-layout) main.page, body.has-outline main.page { max-width: 1240px; }
.topbar-inner, .footer { max-width: 1240px; padding-left: 24px; padding-right: 24px; }
.cv-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ol-layout .ol-main .reading { max-width: none; }
.ol-layout.ol-closed .ol-main .reading { max-width: 916px; }
@media (max-width: 860px) { .topbar-inner, .footer { padding-left: 16px; padding-right: 16px; } }

/* Prices: both cards line up row by row, and both buttons sit on the same line */
.price-card .card-body { display: flex; flex-direction: column; }
.price-card .card-body form { margin-top: auto; }
.price-note-plain { color: var(--muted); font-weight: 500; }
