/* River Cruise Choice: one stylesheet. Colours are the five brand values, white and one neutral grey only. */
@font-face { font-family: "Newsreader"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/newsreader-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-500.woff2") format("woff2"); }

:root {
  --navy: #16213A;
  --copper: #B4693F;          /* headings and accents at 24px or larger only */
  --copper-btn: #9A5530;      /* buttons, and any copper text under 24px */
  --copper-on-navy: #D08A5E;
  --stone: #EFEAE3;
  --white: #FFFFFF;
  --grey: #55607A;            /* the one neutral grey: secondary text, rules */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--copper-btn); text-underline-offset: 3px; }
a:hover { color: var(--copper-btn); }
:focus-visible { outline: 3px solid var(--copper-btn); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 22px; }
.accent { color: var(--copper); }           /* used only on text of 24px and larger */
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.small { font-size: 14px; color: var(--grey); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--stone); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand img { height: 34px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { font-weight: 500; font-size: 15px; text-decoration: none; padding: 10px 0; display: inline-block; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--copper-btn); }
@media (max-width: 560px) {
  .site-header .wrap { min-height: 0; padding-top: 10px; padding-bottom: 4px; }
  .brand img { height: 28px; }
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: 14px; padding: 6px 0; }
}

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 17px; line-height: 1.2; border-radius: 999px; padding: 15px 28px; border: 2px solid var(--copper-btn); background: var(--copper-btn); color: var(--white); text-decoration: none; cursor: pointer; min-height: 48px; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-quiet { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-quiet:hover { background: var(--navy); color: var(--white); }
.btn-link { background: none; border: 0; color: var(--navy); text-decoration: underline; text-decoration-color: var(--copper-btn); font: inherit; cursor: pointer; padding: 10px 0; min-height: 44px; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy); }
.hero picture img { width: 100%; height: clamp(440px, 72vh, 640px); object-fit: cover; object-position: 50% 60%; }
.hero-text { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(180deg, rgba(22, 33, 58, 0) 25%, rgba(22, 33, 58, .82) 100%); }
.hero-text .wrap { width: 100%; padding-bottom: 48px; }
.hero h1 { color: var(--white); max-width: 14em; text-shadow: 0 1px 12px rgba(22, 33, 58, .5); }
.hero .lede { font-size: clamp(18px, 2.2vw, 22px); max-width: 32em; margin-bottom: 24px; }
.credit { font-size: 13px; color: var(--grey); margin: 6px 0 0; }
.credit a { color: var(--grey); }

/* Sections */
.section { padding: 64px 0; }
.section-stone { background: var(--stone); }
.band { background: var(--navy); color: var(--stone); padding: 56px 0; }
.band h2 { color: var(--stone); }
.band .accent-on-navy { color: var(--copper-on-navy); }
.band a { color: var(--stone); text-decoration-color: var(--copper-on-navy); }
.grid3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.panel { background: var(--white); border: 1px solid var(--stone); border-radius: 10px; padding: 24px; }
.section-stone .panel { border-color: var(--white); }
.step-num { font-family: var(--serif); font-size: 30px; color: var(--copper); line-height: 1; margin-bottom: 8px; }
.line-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.line-list a { font-weight: 500; }
.tag { font-family: var(--sans); display: inline-block; font-size: 13px; font-weight: 500; border: 1px solid var(--copper-btn); color: var(--copper-btn); border-radius: 999px; padding: 1px 10px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }

/* Footer */
.site-footer { background: var(--navy); color: var(--stone); padding: 40px 0 48px; font-size: 15px; }
.site-footer a { color: var(--stone); text-decoration-color: var(--copper-on-navy); }
.site-footer .disclosure { max-width: 46em; }
.site-footer ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Quiz */
.quiz-page main { min-height: 60vh; }
.quiz { padding-top: 20px; padding-bottom: 40px; }
.quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; min-height: 44px; }
.quiz h1 { font-size: 20px; font-family: var(--sans); font-weight: 500; margin: 0; }
.progress { font-size: 14px; color: var(--grey); }
.q h2 { font-size: clamp(26px, 6.5vw, 34px); margin: 4px 0 6px; }
.q .hint { font-size: 15px; color: var(--grey); margin-bottom: 12px; }
.options { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.options legend { padding: 0; }
.opt { display: block; width: 100%; text-align: left; font: inherit; font-weight: 500; color: var(--navy); background: var(--white); border: 1.5px solid var(--grey); border-radius: 10px; padding: 11px 16px; min-height: 48px; cursor: pointer; }
.opt span { display: block; font-weight: 400; font-size: 14px; color: var(--grey); }
.opt:hover, .opt[aria-pressed="true"] { border-color: var(--copper-btn); background: var(--stone); }
.q select, .form input, .form select { font: inherit; color: var(--navy); background: var(--white); border: 1.5px solid var(--grey); border-radius: 10px; padding: 11px 14px; min-height: 48px; width: 100%; }
.q-actions { display: flex; gap: 16px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.sub { margin-top: 14px; }
.results h2 { margin-top: 8px; }
.relaxed { background: var(--stone); border-left: 4px solid var(--copper-btn); padding: 12px 16px; border-radius: 6px; margin: 0 0 16px; }
#quiz[data-state="results"] { max-width: 1120px; }
.rows { display: grid; gap: 16px; margin: 16px 0 28px; }
.row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 260px; gap: 20px; border: 1px solid var(--stone); border-radius: 12px; padding: 16px; background: var(--white); align-items: start; }
.row.row-two { grid-template-columns: 240px minmax(0, 1fr); }
.row-media { position: relative; }
.row-media img:not(.row-logo) { width: 100%; height: auto; border-radius: 8px; background: var(--stone); }
.row-logo { position: absolute; top: 8px; left: 8px; width: auto; max-width: 45%; height: 32px; object-fit: contain; background: var(--white); border-radius: 6px; padding: 4px 8px; }
.row-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--stone); border-radius: 8px; padding: 12px; text-align: center; }
.row-placeholder span { min-width: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.15; color: var(--navy); overflow-wrap: break-word; }
.row-main { min-width: 0; overflow-wrap: break-word; }
.row-main h3 { margin-bottom: 4px; }
.row-main p { margin: 0 0 8px; }
.rank { font-weight: 500; font-size: 14px; color: var(--grey); }
.perk { font-size: 15px; }
.row-sailing { min-width: 0; background: var(--stone); border-radius: 10px; padding: 14px 16px; overflow-wrap: anywhere; }
.row-sailing p { margin: 0 0 6px; }
.row-sailing .btn { max-width: 100%; white-space: normal; }
@media (max-width: 900px) {
  .row, .row.row-two { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .row-media { order: 1; }
  .row-sailing { order: 2; }
  .row-main { order: 3; }
}
.gate { background: var(--stone); border-radius: 12px; padding: 24px; }
.form { display: grid; gap: 14px; max-width: 520px; }
.form label { font-weight: 500; display: block; margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--copper-btn); }
.msg { padding: 10px 14px; border-radius: 8px; background: var(--white); border-left: 4px solid var(--copper-btn); }
.notfound { padding: 80px 20px; }

/* Generated pages */
.page-head { padding-top: 48px; padding-bottom: 16px; }
.facts { width: 100%; border-collapse: collapse; margin: 16px 0 32px; font-size: 16px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--stone); }
.facts thead th { font-weight: 500; border-bottom: 2px solid var(--navy); }
.facts tbody th { font-weight: 500; width: 28%; }
.src { display: block; font-size: 13px; color: var(--grey); margin-top: 2px; }
.src a { color: var(--grey); }
.table-scroll { overflow-x: auto; }
.choose { padding-left: 1.1em; }
.amenity { background: var(--stone); border-radius: 10px; padding: 16px 20px; }
@media (max-width: 640px) {
  .facts { font-size: 15px; }
  .facts th, .facts td { padding: 10px 6px; }
  .section { padding: 44px 0; }
}
@media (max-width: 560px), (max-height: 760px) {
  .quiz-page .site-footer { margin-top: 24px; }
  .quiz { padding-top: 8px; padding-bottom: 24px; }
  .quiz-head { min-height: 32px; margin-bottom: 0; }
  .quiz h1 { font-size: 16px; }
  .q h2 { font-size: 25px; margin: 2px 0 4px; }
  .q .hint { margin-bottom: 8px; font-size: 14px; }
  .options { gap: 6px; }
  .opt { padding: 7px 14px; min-height: 44px; line-height: 1.3; }
  .opt span { font-size: 13px; }
  .q-actions { margin-top: 8px; }
}

.sailing-choice { margin: 0 0 12px; color: var(--grey); overflow-wrap: anywhere; }
