/* ==========================================================================
   Common Sense Cruising: Welcome Aboard
   Deep teal and gold, a pale ground, near-black teal text.
   Friendly shapes (12px cards, pill buttons), DM Serif Display headings over Inter text, big tap targets, phone first.
   Tokens live in tokens.css (load it first).
   Rules: one primary button (.btn-primary) per screen; .btn-sun is decoration and never the
   primary; text is never under 16px; every control is at least var(--tap) tall.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--text)/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
p { margin: 0 0 1em; font-size: max(1rem, 1em); }
a { color: var(--sea); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.muted { color: var(--muted); }

h1, h2, h3 { color: var(--ink); font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: 0; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); }

.label { font: 800 1rem/1.4 var(--font); color: var(--muted); }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 40rem) { .wrap { width: min(100% - 3rem, var(--wrap)); } }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1.25rem; background: var(--ink); color: var(--on-ink); font-weight: 800; border-radius: var(--pill); }
.skip:focus { left: var(--s1); top: var(--s1); }

/* ---------- header ---------- */
.masthead { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 4rem; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; min-height: var(--tap); border-radius: var(--radius-sm); }
.brand img { display: block; height: 2.5rem; width: auto; }
.logo-full { display: none !important; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 1.25rem; background: var(--ground); color: var(--ink); border: 2px solid var(--line); border-radius: var(--pill); font: 800 1rem/1 var(--font); cursor: pointer; }
.nav-toggle::before { content: ""; width: 1.1rem; height: .8rem; background: linear-gradient(var(--ink) 0 0) top / 100% 2px no-repeat, linear-gradient(var(--ink) 0 0) center / 100% 2px no-repeat, linear-gradient(var(--ink) 0 0) bottom / 100% 2px no-repeat; }
.nav-toggle[aria-expanded="true"] { background: var(--sky-soft); border-color: var(--sky); }
#nav { display: none; flex-basis: 100%; flex-direction: column; gap: .25rem; padding: .5rem 0 .75rem; border-top: 1px solid var(--line); }
#nav.open { display: flex; }
#nav a { display: flex; align-items: center; min-height: var(--tap); padding: 0 1rem; border-radius: var(--radius-sm); color: var(--ink); font: 800 1.0625rem/1.2 var(--font); text-decoration: none; }
#nav a:hover { background: var(--ground); }
#nav a[aria-current="page"] { background: var(--sky-soft); color: var(--sea-deep); }
@media (min-width: 52rem) {
  .masthead .wrap { flex-wrap: nowrap; min-height: 4.5rem; }
  .logo-full { display: block !important; }
  .logo-compact { display: none !important; }
  .nav-toggle { display: none; }
  #nav { display: flex; flex-basis: auto; flex-direction: row; align-items: center; gap: .25rem; padding: 0; border: 0; white-space: nowrap; }
  #nav a { padding: 0 .9rem; border-radius: var(--pill); font-size: 1rem; }
}

/* ---------- buttons ----------
   .btn          secondary: white pill with an ink outline
   .btn-primary  the one main action: sea pill, white text
   .btn-sun      decorative accent (sunshine pill, ink text); never counted as the primary */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: var(--tap); padding: .5rem 1.5rem; background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--pill); font: 800 1rem/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--sky-soft); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sea); color: #fff; border-color: var(--sea); }
.btn-primary:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.btn-sun:hover { background: #ffd666; border-color: #ffd666; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.next-line { margin: .5rem 0 0; color: var(--muted); }

/* ---------- step strip: "1 Pick · 2 Check · 3 Book" ---------- */
.step-strip { display: flex; gap: .375rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-strip > li { counter-increment: step; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .375rem; min-height: var(--tap); padding: .375rem .5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--pill); font-weight: 800; color: var(--ink); }
.step-strip > li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ground); color: var(--ink); font-weight: 800; }
@media (min-width: 40rem) { .step-strip > li { justify-content: flex-start; padding-inline: .75rem; } }
.step-strip > li[aria-current="step"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.step-strip > li[aria-current="step"]::before { background: var(--sun); color: var(--ink); }
.step-where { font-weight: 800; color: var(--muted); margin: 0 0 .5rem; }

/* ---------- cards and chips ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.25rem 1.25rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { outline: none; }
.card h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--radius); }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.card-grid > .empty { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; min-height: 2rem; padding: .25rem .75rem; background: var(--sun-soft); color: var(--ink); border-radius: var(--pill); font: 800 1rem/1.2 var(--font); }
button.chip, a.chip { min-height: var(--tap); padding: .25rem 1rem; background: var(--card); border: 2px solid var(--line); text-decoration: none; cursor: pointer; }
button.chip[aria-pressed="true"], a.chip[aria-current] { background: var(--sky-soft); border-color: var(--sea); }
.tile { background: var(--sun-soft); border-radius: var(--radius); padding: 1.25rem; }

/* ---------- forms ---------- */
label, legend { display: block; font: 800 1rem/1.4 var(--font); color: var(--ink); padding: 0; margin-bottom: .35rem; }
input[type="text"], input[type="email"], input[type="search"], select, textarea { width: 100%; min-height: var(--tap); padding: .6rem 1rem; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-sm); -webkit-appearance: none; appearance: none; transition: border-color .15s; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%230f2a4a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.75rem; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--sea); }
textarea { min-height: 9rem; resize: vertical; }
.form { display: grid; gap: var(--s3); }
.field { display: grid; gap: .25rem; }
fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.checks { display: grid; gap: .25rem var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin-top: .25rem; }
.check { display: flex; align-items: center; gap: .75rem; min-height: var(--tap); margin: 0; font: 400 1rem/1.4 var(--font); color: var(--ink); cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; width: 1.5rem; height: 1.5rem; flex: none; margin: 0; border: 2px solid var(--muted); border-radius: 6px; background: var(--card); display: grid; place-content: center; cursor: pointer; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--sea); border-color: var(--sea); }
.check input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: 100%; }
.check input[type="radio"]:checked { background: radial-gradient(circle, #fff 0 30%, var(--sea) 34%); }
.hint { font: 400 1rem/1.5 var(--font); color: var(--muted); }
.error { color: var(--error); font-weight: 800; margin: 0; }
.notice { background: var(--sun-soft); border-radius: var(--radius-sm); padding: .75rem 1rem; color: var(--ink); margin: 0 0 var(--s3); }
/* Room for the security check, so the form does not jump when it appears. */
.turnstile-box { min-height: 65px; margin: 0 0 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-ink-soft); padding-block: var(--s5) var(--s4); }
.footer .wrap { display: grid; gap: var(--s4); }
@media (min-width: 52rem) { .footer .wrap { grid-template-columns: 1.4fr 1fr 1.4fr; align-items: start; } }
.footer .brand-foot img { display: block; height: 2.5rem; width: auto; margin-bottom: var(--s2); }
.footer .signoff { color: var(--on-ink); font-weight: 800; font-size: 1.125rem; max-width: 22ch; margin: 0; }
.footer h2 { font: 800 1rem/1.4 var(--font); color: var(--sun); margin: 0 0 .5rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li a, .footer-mail a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--on-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); }
.footer li a:hover, .footer-mail a:hover { text-decoration-color: var(--sun); }
.footer a:focus-visible { outline-color: var(--sun); }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: var(--s3); }
.footer .legal p { margin: 0 0 .5rem; max-width: 52rem; }
.footer .commission { color: var(--on-ink); font-weight: 600; }
.footer-mail { margin: 0; }
.footer-contact { margin: 0; display: flex; flex-direction: column; }
.footer-contact + .footer-contact { margin-top: .5rem; }
.footer-role { font-weight: 800; color: var(--on-ink-soft); }
.footer-mail a { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .card:hover { transform: none; } }
@media print { .masthead, .footer { display: none; } body { background: #fff; } }

/* ==========================================================================
   SHARED BITS: labels, status chips, the check panel (used by trips, news and story pages)
   ========================================================================== */
.label--brass { color: var(--sea-deep); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.section-head h2, .section-head p { margin: 0; }
.count { margin: var(--s2) 0 0; }

.status { display: inline-flex; align-items: center; gap: .5em; font-weight: 800; color: var(--ink); }
.status::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--sea); flex: none; }
.status--trade::before { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.status--trade { color: var(--muted); }
.flag { font-weight: 800; color: var(--ink); background: var(--sun-soft); padding: .15rem .6rem; border-radius: var(--pill); }
.more { font-weight: 800; color: var(--sea); }
.empty { padding: var(--s4) 0; }
.empty p:first-child { font-weight: 800; font-size: 1.25rem; color: var(--ink); }

.card .summary { margin: 0 0 .25rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.quip { font-weight: 600; font-style: italic; color: var(--sea-deep); max-width: var(--measure); margin: 0 0 var(--s2); }
.card .quip { margin: .1rem 0 .5rem; }
.card .arrow { font-weight: 800; color: var(--sea); }

.crumbs { margin: 0 0 var(--s2); }
.pull { font-weight: 800; font-size: 1.25rem; color: var(--sea-deep); margin: var(--s3) 0; padding: var(--s2) var(--s3); background: var(--card); border-radius: var(--radius); max-width: var(--measure); }
.sources { list-style: none; padding: 0; margin: 0 0 var(--s2); }
.sources li { padding: .5rem 0; border-top: 1px solid var(--line); }
h2.sec { font-size: 1.125rem; margin: var(--s4) 0 var(--s1); }

.check-panel, .success { background: var(--card); border: 2px solid var(--sky); border-radius: var(--radius); padding: var(--s3) clamp(1rem, 4vw, 2rem); margin: var(--s4) 0; }
.check-panel h2 { font-size: 1.25rem; margin: 0 0 var(--s2); }
.check-panel h3 { font-size: 1rem; color: var(--sea-deep); margin: var(--s3) 0 .35rem; }
.check-panel ul { list-style: none; margin: 0; padding: 0; }
.check-panel li { position: relative; padding: .4rem 0 .4rem 1.5rem; border-top: 1px solid var(--line); }
.check-panel li:first-child { border-top: 0; }
.check-panel li::before { content: ""; position: absolute; left: .25rem; top: 1.05rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sun); }
.check-panel .tip { margin: var(--s3) 0 0; padding: .75rem 1rem; background: var(--sun-soft); border-radius: var(--radius-sm); font-weight: 600; }
.success h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.success p:last-child { margin-bottom: 0; }

/* ==========================================================================
   SHELL AND HOME (Task 7): js/main.js, js/views/home.js
   ========================================================================== */
.page-pad { padding-block: var(--s5) var(--s7); }
.lead { font-size: 1.125rem; max-width: var(--measure); }

/* hero: deep teal with a gold sun and a wave of gold at the foot; the one primary button here is gold */
.home-hero { background: radial-gradient(circle at calc(100% - 3rem) 3.75rem, var(--sun) 0 2.25rem, rgba(240, 185, 75, .28) 2.3rem 3rem, transparent 3.05rem), var(--sea); color: var(--cream); border-bottom: 6px solid var(--sun); }
.hero-inner { padding-block: var(--s4) var(--s5); }
.home-hero h1 { max-width: 14ch; padding-right: 4.5rem; color: var(--cream); }
.home-hero .lead { margin-bottom: var(--s3); color: var(--cream); }
.home-hero .next-line { color: var(--on-ink-soft); }
.home-hero .btn-primary { background: var(--sun); border-color: var(--sun); color: var(--sea); }
.home-hero .btn-primary:hover { background: #f7cf7d; border-color: #f7cf7d; color: var(--sea); }
.home-hero :focus-visible { outline-color: var(--sun); }
.home-hero .where :focus-visible { outline-color: var(--focus); }
.where { max-width: 24rem; background: var(--card); color: var(--ink); border-radius: var(--radius); padding: var(--s2) var(--s2) .75rem; box-shadow: var(--shadow); margin-bottom: var(--s3); }
.where .hint { margin: .25rem 0 0; }
.hero-action .btn-primary { min-width: 12rem; }
@media (min-width: 52rem) {
  .hero-inner { padding-block: var(--s6); }
  .home-hero h1 { padding-right: 0; }
  .home-hero { background: radial-gradient(circle at 78% 42%, var(--sun) 0 5rem, rgba(240, 185, 75, .28) 5.05rem 6.5rem, transparent 6.55rem), var(--sea); }
}

.home-section { padding-block: var(--s3); }
.home-section .section-head { align-items: baseline; gap: 0 var(--s2); margin-bottom: var(--s2); }
.home-section .section-head h2 { margin: 0; }
.home-section h2 { margin-bottom: var(--s2); }
.section-head .more { display: inline-flex; align-items: center; min-height: var(--tap); }

/* the three steps as an overview: stacked on phones, a row on wider screens */
.step-list { flex-direction: column; gap: .75rem; }
.step-list > li { flex: none; justify-content: flex-start; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: var(--radius); font-weight: 400; }
.step-list > li::before { width: 2.25rem; height: 2.25rem; background: var(--sun); font-size: 1.125rem; }
.step-text { display: flex; flex-direction: column; }
.step-text strong { font-weight: 800; font-size: 1.0625rem; }
.step-text span { color: var(--muted); }
@media (min-width: 52rem) {
  .step-list { flex-direction: row; }
  .step-list > li { flex: 1 1 0; align-items: flex-start; padding: 1rem 1.25rem; }
}

/* trip rail: swipe sideways on phones, three across on wide screens */
.trip-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 80%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; scrollbar-width: thin; }
.trip-rail > .card { scroll-snap-align: start; }
@media (min-width: 52rem) {
  .trip-rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.trip-tile { aspect-ratio: 16 / 7; overflow: hidden; background: var(--sky-soft); }
.trip-tile svg { display: block; width: 100%; height: 100%; }
.trip-nights { margin: 0; font-weight: 600; }

.teasers { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .teasers { grid-template-columns: 1fr 1fr; } }
.teaser h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.teaser p { margin-bottom: .25rem; }
.teaser .more { display: inline-flex; align-items: center; min-height: var(--tap); }
.teaser:nth-child(2) { background: var(--sky-soft); }

.news-line { display: block; padding-block: var(--s2) var(--s5); margin: 0 auto; }
.news-line .label { color: var(--ink); }
.news-line a { display: inline; font-weight: 600; }

/* ==========================================================================
   TRIPS AND TRIP PAGE (Task 8): js/views/trips.js, js/views/trip.js
   ========================================================================== */
.trips-page .steps, .trip-step .steps { margin-bottom: var(--s3); }
.trips-page h1 { margin-top: var(--s1); }
.trip-filters { display: grid; gap: .75rem 1rem; margin: var(--s3) 0 var(--s2); }
@media (min-width: 40rem) { .trip-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trip-filters label { margin-bottom: 0; }
.trips-page .count { margin: 0 0 var(--s2); font-weight: 600; }

/* the whole card is one link */
a.trip-card { min-height: var(--tap); color: var(--ink); text-decoration: none; }
a.trip-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius); }
.trip-card .card-title { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.trip-card .card-go { margin-top: auto; padding-top: .25rem; font-weight: 800; color: var(--sea); }
.trip-card .card-go::after { content: " \2192"; }
.trip-card:hover .card-go { text-decoration: underline; text-underline-offset: .2em; }
.trip-list .empty { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.trip-list .empty .btn { margin-top: .25rem; }

/* one trip */
.trip-banner { aspect-ratio: auto; height: clamp(9rem, 30vw, 17rem); }
.trip-wrap { max-width: 46rem; padding-block: var(--s3) var(--s7); }
.trip-head .back { margin: 0 0 var(--s1); }
.trip-head .back a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 800; }
.trip-head .back a::before { content: "\2190\00a0"; }
.trip-head h1 { margin: var(--s2) 0 .25rem; }
.trip-head .trip-nights { font-size: 1.125rem; margin-bottom: var(--s2); }
.trip-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) clamp(1rem, 4vw, 2rem); margin-top: var(--s4); }
.trip-step h2 { margin-bottom: .5rem; }
.trip-step h3 { font-size: 1.125rem; margin: var(--s3) 0 .5rem; }
.check-list, .fact-list, .tick-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; flex-direction: column; gap: .2rem; padding: .75rem 0 .75rem 2.25rem; border-top: 1px solid var(--line); position: relative; }
.check-list li:first-child { border-top: 0; }
.check-list li::before { content: "?"; position: absolute; left: 0; top: .8rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; }
.fact-list li { padding: .75rem 1rem; background: var(--ground); border-radius: var(--radius-sm); }
.fact-list li + li { margin-top: .75rem; }
.fact-claim { margin: 0 0 .35rem; }
.fact-source { margin: 0; }
.fact-source a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; overflow-wrap: anywhere; }
.tick-list { margin-bottom: var(--s2); }
.tick-list li { position: relative; padding: .35rem 0 .35rem 2rem; }
.tick-list li::before { content: ""; position: absolute; left: .2rem; top: .75rem; width: 1.1rem; height: .55rem; border-left: 3px solid var(--sea); border-bottom: 3px solid var(--sea); transform: rotate(-45deg); }
.trip-book .honest { font-weight: 800; font-size: 1.125rem; }
.trip-book p > a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 800; }
.disclosure { margin: var(--s2) 0; }
.trip-action { margin-top: var(--s3); }
.trip-action .btn-primary { min-width: 12rem; }
.share-status { margin: .5rem 0 0; font-weight: 800; color: var(--sea-deep); }
.share-status:empty { display: none; }
@media (max-width: 30rem) { .trip-action .btn-primary { width: 100%; } }
/* phones: a slim row card (small picture on the left) so twelve ideas do not need endless scrolling */
@media (max-width: 39.99rem) {
  .trip-list a.trip-card { flex-direction: row; }
  .trip-list .trip-tile { flex: none; width: 5.5rem; aspect-ratio: auto; }
  .trip-list .card-body { padding: .875rem 1rem; gap: .35rem; }
  .trip-list .card-go { display: none; }
}
/* narrow phones: the step strip stacks number over name so "Check the basics" never spills out of its pill */
@media (max-width: 30rem) {
  .step-strip:not(.step-list) > li { flex-direction: column; gap: .25rem; padding: .5rem .25rem; border-radius: var(--radius-sm); text-align: center; line-height: 1.2; }
}

/* ==========================================================================
   EMAIL PLAN FORM (Task 9): js/views/plan.js
   ========================================================================== */
.plan-page { max-width: 40rem; }
.plan-page .steps { margin-bottom: var(--s3); }
.plan-page h1 { margin-top: var(--s1); }
.plan-form { margin-top: var(--s3); padding: var(--s3) clamp(1rem, 4vw, 2rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.plan-form .checks { grid-template-columns: 1fr; }
.plan-form .check { padding: .25rem .5rem .25rem 0; }
.plan-form .check input { width: 1.75rem; height: 1.75rem; }
.plan-form [aria-invalid="true"]:not(fieldset) { border-color: var(--error); }
.plan-form .field-error { font-size: 1rem; }
.plan-form .plan-alert { padding: .75rem 1rem; background: #fdecea; border: 2px solid var(--error); border-radius: var(--radius-sm); }
/* Read by screen readers, not shown. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plan-actions { margin-top: var(--s1); }
.plan-actions .btn-primary { min-width: 12rem; }
.plan-actions .next-line { margin-top: .75rem; }
@media (max-width: 30rem) { .plan-actions .btn-primary { width: 100%; } }
.plan-privacy { margin: var(--s3) 0 0; }
.plan-privacy a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 800; }
.plan-done { margin-top: var(--s3); padding: var(--s4) clamp(1rem, 4vw, 2rem); background: var(--sky-soft); border: 2px solid var(--sea); border-radius: var(--radius); }
.plan-done h2 { margin-bottom: .5rem; }
.plan-done p:last-child { margin-bottom: 0; }

/* ==========================================================================
   KIT, PLAIN ENGLISH, KNOW, HELP (Task 10a): js/views/kit.js, plain.js, know.js, help.js
   ========================================================================== */
.kit-page h1, .plain-page h1, .know-page h1, .help-page h1 { margin-top: .25rem; }
.kit-page .label, .plain-page .label, .know-page .label, .help-page .label { margin: 0; }
.page-end { margin-top: var(--s4); }
.page-end .btn-primary { min-width: 12rem; }
@media (max-width: 30rem) { .page-end .btn-primary { width: 100%; } }

/* a word that links to the Plain English page */
a.term { font-weight: 800; color: var(--sea-deep); text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: .25em; }
a.term:hover { text-decoration-style: solid; }

/* kit: numbered cards in three soft colours so eight in a row do not blur together */
.kit-grid { display: grid; gap: 1rem; margin-top: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.kit-card .card-body { padding: 1.25rem 1.25rem 1.25rem; gap: .25rem; }
.kit-card--1 { background: var(--sun-soft); border-color: var(--sun-soft); }
.kit-card--2 { background: var(--sky-soft); border-color: var(--sky-soft); }
.kit-num { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: .5rem; border-radius: 50%; background: var(--sea); color: #fff; font-weight: 800; font-size: 1.125rem; }
.kit-card--1 .kit-num { background: var(--sun); color: var(--ink); }
.kit-card--2 .kit-num { background: var(--ink); }
.kit-card .card-title { font-size: 1.3rem; margin: 0 0 .25rem; }
.kit-card p { margin: 0; }
.kit-words { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1rem; margin-top: auto !important; padding-top: .5rem; }
.kit-words a.term { display: inline-flex; align-items: center; min-height: var(--tap); }
.kit-words-label { font-weight: 800; color: var(--muted); }

/* plain english: a list of word cards */
.glossary { display: grid; gap: .75rem; margin: var(--s3) 0 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.term-row { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--sky); border-radius: var(--radius-sm); padding: .875rem 1.125rem; scroll-margin-block: 6rem; transition: background .2s, border-color .2s; }
.term-row:nth-child(3n + 2) { border-left-color: var(--sun); }
.term-row:nth-child(3n) { border-left-color: var(--sea); }
dt.term { font-weight: 800; font-size: 1.2rem; line-height: 1.25; margin: 0 0 .25rem; }
dt.term::first-letter { text-transform: uppercase; }
.glossary dd { margin: 0; }
.glossary dd a.term { font-weight: 800; }
.term-row.is-current { background: var(--sun-soft); border-color: var(--sun); border-left-color: var(--sun); box-shadow: var(--shadow); }
.term-row.is-current dt.term { color: var(--ink); }
.term-row.is-current dt.term::after { content: "You looked this up"; display: block; width: fit-content; margin-top: .35rem; padding: .1rem .6rem; border-radius: var(--pill); background: var(--sun); font-size: 1rem; }

/* know before you book: numbered questions */
.know-list { list-style: none; counter-reset: know; margin: var(--s3) 0 0; padding: 0; display: grid; gap: .75rem; max-width: 46rem; }
.know-list > li { counter-increment: know; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem 1rem 4.25rem; }
.know-list > li::before { content: counter(know); position: absolute; left: 1.125rem; top: 1rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 1.125rem; }
.know-list h2 { font-size: 1.2rem; margin: .3rem 0 .35rem; }
.know-list p { margin: 0; }
.earn-box { max-width: 46rem; margin-top: var(--s4); padding: var(--s3) clamp(1rem, 4vw, 2rem); background: var(--sky-soft); border: 2px solid var(--sea); border-radius: var(--radius); }
.earn-box h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.earn-box p:last-child { margin-bottom: 0; }

/* help: one tap opens an answer */
.faq { display: grid; gap: .75rem; margin-top: var(--s3); max-width: 46rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item[open] { border-color: var(--sky); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--tap); padding: .75rem 1.25rem; font: 800 1.0625rem/1.35 var(--font); color: var(--ink); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sun-soft); font-size: 1.25rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; background: var(--sun); }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq-a { padding: 0 1.25rem 1rem; }
.faq-a p { margin: 0; }

/* ==========================================================================
   NEWS, STORY, WORK WITH US, PRIVACY (Task 10b): js/views/news.js, story.js, partner.js, privacy.js
   ========================================================================== */
.news-page h1, .story-page h1, .partner-page h1, .privacy-page h1 { margin-top: .25rem; }
.news-page .label, .partner-page .label, .privacy-page .label { margin: 0; }

.story-grid { display: grid; gap: 1rem; margin-top: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.story-card .card-title { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.story-card .card-title a { color: var(--ink); text-decoration: none; }
.story-card .card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.story-card .card-title a:focus-visible { outline: none; }
.story-card .card-title a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--radius); }
.story-card .chips { align-items: center; }
.story-meta { margin: 0; }
.story-card .summary { margin: 0; }
.story-foot { display: flex; flex-direction: column; gap: .25rem; margin: auto 0 0; padding-top: .75rem; border-top: 1px dashed var(--line); }
.story-foot span { font-weight: 600; }
.story-foot .arrow { font-weight: 800; }

.story-page { max-width: 48rem; }
.story-page .chips { margin-bottom: .5rem; align-items: center; }
.story-summary { font-size: 1.0625rem; line-height: 1.7; }
.story-back { margin-top: var(--s4); }
.story-back .more { display: inline-flex; align-items: center; min-height: var(--tap); }
.story-missing .btn-primary { min-width: 12rem; }
.sources a { display: inline-flex; align-items: center; min-height: var(--tap); }

.partner-page { max-width: 44rem; }
.partner-form { margin-top: var(--s3); }
.partner-form .btn-primary { min-width: 12rem; }
@media (max-width: 30rem) { .partner-form .btn-primary { width: 100%; } }

.privacy-page { max-width: 44rem; }
.privacy-body section { margin-top: var(--s4); }
.privacy-body h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.privacy-body p { max-width: var(--measure); }

/* ==========================================================================
   COOKIE CHOICES, CONSENT BOXES AND STORY-EMAIL BOXES
   ========================================================================== */
.footer-btn { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0; background: none; border: 0; color: var(--on-ink); font: 600 1rem/1.4 var(--font); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); cursor: pointer; }
.footer-btn:hover { text-decoration-color: var(--sun); }
.footer-btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.cookie-banner { position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--card); border-top: 4px solid var(--sun); box-shadow: 0 -10px 30px rgba(18, 41, 42, .18); padding-block: var(--s2); max-height: 70vh; overflow-y: auto; }
.cookie-inner { display: grid; gap: var(--s2); }
.cookie-text { margin: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions .btn { flex: 1 1 10rem; }
@media (min-width: 52rem) { .cookie-inner { grid-template-columns: 1fr auto; align-items: center; } .cookie-actions .btn { flex: none; } }

.prefs-dialog { width: min(100% - 2rem, 34rem); max-height: 90vh; overflow-y: auto; padding: var(--s3); border: 0; border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.prefs-dialog::backdrop { background: rgba(18, 41, 42, .6); }
.prefs-dialog h2 { margin-top: 0; }

.prefs { display: grid; gap: var(--s2); margin: var(--s2) 0; }
.pref-row { padding: .25rem 0 var(--s1); border-bottom: 1px solid var(--line); }
.pref-row .hint { margin: 0 0 0 2.25rem; }
.pref-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pref-status { margin: 0; }
.privacy-body .prefs { max-width: var(--measure); }

.consent { display: grid; gap: var(--s1); margin: var(--s2) 0; }
.consent-field { margin: 0; }
.consent-field .check { align-items: flex-start; padding-block: .5rem; }
.consent-field .check input { margin-top: .15rem; }

.subscribe-box { background: var(--sun-soft); border-radius: var(--radius); padding: var(--s3) clamp(1rem, 4vw, 2rem); margin: var(--s4) 0; max-width: 46rem; }
.subscribe-box h2 { font-size: 1.4rem; margin-bottom: .35rem; }
.subscribe-box .field input[type="email"] { max-width: 28rem; }
.subscribe-box .success h3 { margin-top: 0; }
.page-end + .subscribe-box, .subscribe-box + .page-end { margin-top: var(--s4); }
.subscribe-box input[type="email"] { border-color: var(--muted); }
.subscribe-box .field { margin-bottom: var(--s1); }

.consent-field .check span a { font-weight: 600; }
.error:empty { display: none; }
.subscribe-form { gap: var(--s2); }
.subscribe-box .consent { margin: 0; }
.subscribe-box .field { margin-bottom: 0; }
[hidden] { display: none !important; }
