/* ==========================================================================
   Shop styles: home, need pages, rules pages.
   Look: the editor's shelf home (feature card, need tiles, rules strip) with need-led cards (three per row).
   Tokens only (tokens.css). Text is never under 1rem; every control is at least var(--tap) tall.
   The card buttons are secondary (.btn). The one primary button on a page is the sign-up submit.
   ========================================================================== */

.lede { font-size: 1.125rem; color: var(--muted); max-width: var(--measure); margin: 0 0 var(--s3); }
main > .wrap { padding-block: var(--s4) var(--s5); }
main section { margin-block: var(--s4); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 800; }

/* ---------- cards ---------- */
.picks { display: grid; gap: var(--s2); grid-template-columns: 1fr; align-items: stretch; margin-block: var(--s3); }
@media (min-width: 40rem) { .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); } }

.pick { padding: var(--s3); gap: .5rem; min-width: 0; height: 100%; }
.pick > p { margin: 0; }
.card-art { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--sky-soft); }
.card-art { position: relative; }
.card-art svg { display: block; width: 100%; height: 100%; }
.card-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.price-note { font-size: 1rem; margin-top: 1rem; }
.price-note[hidden] { display: none; }
.pick-cheaper .card-art { background: var(--sun-soft); }
.pick-upgrade .card-art { background: var(--cream); }
@media (max-width: 39.99rem) { .card-art { aspect-ratio: 5 / 2; } }
.pick-large .card-art { aspect-ratio: 5 / 2; }

.pick h3 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.pick .reason { color: var(--ink); }
.pick .btn { margin-top: auto; align-self: stretch; }
.pick .price-row { margin-top: auto; }
.pick .price-row + .checked { margin-top: 0; }
.pick .price-row:has(.price:empty) { display: none; }
.pick .price { font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.pick .checked, .pick .disclosure { font-size: 1rem; }
.pick .disclosure { padding-top: .5rem; border-top: 1px solid var(--line); }

.badge { align-self: flex-start; padding: .125rem .75rem; border-radius: var(--pill); font-size: 1rem; font-weight: 800; line-height: 1.5; background: var(--sea); color: var(--on-ink); }
.badge-our { background: var(--sea); color: var(--on-ink); }
.badge-cheaper { background: var(--sky-soft); color: var(--sea-deep); border: 1px solid var(--sky); }
.badge-upgrade { background: var(--sun); color: var(--ink); }

.catch { background: var(--sun-soft); color: var(--ink); border-radius: var(--radius-sm); padding: .5rem .75rem; }

.pick-our { border-color: var(--sea); border-width: 2px; }

/* ---------- pick of the week (the feature card) ---------- */
.week .pick-large { padding: var(--s3); border-color: var(--sea); border-width: 2px; background: var(--card); }
.week .pick-large h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
.week .pick-large .reason { font-size: 1.125rem; }
@media (min-width: 40rem) {
  .week .pick-large { padding: var(--s4); max-width: 44rem; }
  .week .pick-large .btn { align-self: flex-start; min-width: 14rem; }
}

/* ---------- need tiles ---------- */
.tiles { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s2); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); } }
.tile { padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.tile:nth-child(even) { background: var(--sun-soft); }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tile a { display: flex; flex-direction: column; min-height: var(--tap); height: 100%; color: var(--ink); text-decoration: none; }
.tile a:focus-visible { outline-offset: -3px; }
.tile-art { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: var(--sky-soft); }
.tile-art svg { display: block; width: 100%; height: 100%; }
.tile-title { padding: var(--s2) var(--s2) 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; }
.tile-who { padding: .25rem var(--s2) var(--s2); }

/* ---------- need page header ---------- */
.need-art { border-radius: var(--radius); overflow: hidden; height: clamp(6rem, 18vw, 10rem); margin-bottom: var(--s3); background: var(--sky-soft); }
.need-art svg { display: block; width: 100%; height: 100%; }

/* ---------- rules tracker ---------- */
.rules-strip { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.rules-strip h2 { margin-bottom: .25rem; }
.rules-strip p { max-width: var(--measure); }
.rules-strip p:last-child { margin-bottom: 0; }
.rules-strip a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 800; }

.rules-list { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: .5rem; }
.rules-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .25rem var(--s2); display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s2); }
.rules-list a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 800; }
/* "Questions about {line}" on each rules line page: one tap-size link per row. */
.line-items { list-style: none; margin: 0 0 var(--s3); padding: 0; }
.line-items a { display: flex; align-items: center; min-height: var(--tap); padding-block: .25rem; }

.rules-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: var(--s3); }
.rules-table th, .rules-table td { text-align: left; vertical-align: top; padding: .75rem; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.rules-table .col-note { overflow-wrap: anywhere; }
.rules-table .col-allowed, .rules-table .col-source { white-space: nowrap; }
.rules-table .col-allowed { min-width: 7.5rem; }
.rules-table .col-source { min-width: 6.5rem; }
.pill { display: inline-block; padding: .125rem .75rem; border-radius: var(--pill); font-weight: 800; line-height: 1.5; border: 2px solid var(--sea); background: var(--sky-soft); color: var(--sea-deep); }
.pill-no { background: var(--sea); color: var(--on-ink); }
.pill-none { background: #e6e9e9; border-color: #8a9696; color: var(--ink); }
.pill-limited { background: var(--sun-soft); color: var(--ink); border-style: dashed; }
.rules-table thead th { background: var(--sky-soft); color: var(--sea-deep); }
.rules-table a { display: inline-flex; align-items: center; min-height: var(--tap); }
@media (max-width: 39.99rem) {
  .rules-table, .rules-table tbody, .rules-table tr, .rules-table th, .rules-table td { display: block; }
  .rules-table thead { position: absolute; left: -999px; }
  .rules-table tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .rules-table th, .rules-table td { border: 0; padding: .25rem .75rem; }
  .rules-table th[scope="row"] { font-weight: 800; }
}

.rules-log { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: .5rem; }
.rules-log li { background: var(--card); border-left: 4px solid var(--sun); border-radius: var(--radius-sm); padding: .5rem var(--s2); }
.rules-log a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Hero picture under a page heading, and the thumbnails on the Guides index. */
.page-hero { display: block; width: 100%; height: auto; margin: var(--s2) 0 var(--s3); border-radius: var(--radius); }
@media (min-width: 700px) { .page-hero { max-height: 420px; object-fit: cover; object-position: center 50%; } }
.guide-cards { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s2); }
.guide-card { position: relative; display: grid; grid-template-areas: "pic" "title" "note"; gap: .25rem; padding: var(--s2); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.guide-card a { grid-area: title; display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 800; }
.guide-card a::after { content: ""; position: absolute; inset: 0; }
.guide-card:focus-within { outline: 3px solid var(--sea); outline-offset: 2px; }
.guide-card a:focus-visible { outline: none; }
.guide-card .muted { grid-area: note; }
.guide-card img { grid-area: pic; display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: .5rem; }
@media (min-width: 43.75rem) {
  .guide-card { grid-template-columns: 160px minmax(0, 1fr); grid-template-areas: "pic title" "pic note"; align-content: start; column-gap: var(--s3); }
  .guide-card img { align-self: start; margin-bottom: 0; }
}

/* one pick, or two, in a row (guides and Plain English) */
.picks-1 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .picks-1 { grid-template-columns: minmax(0, 24rem); } .picks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Plain English: search, jump bar, letter sections, word cards, gear card ---------- */
.word-search { max-width: var(--measure); margin: var(--s3) 0 var(--s2); }
.word-search[hidden], .letter[hidden], .gear-box[hidden], .word[hidden], .jump li[hidden] { display: none; }
.word-search label { display: block; margin-bottom: .5rem; font-weight: 800; }
.jump { margin: var(--s2) 0 var(--s3); }
.jump ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.jump a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 .75rem; background: var(--card); color: var(--sea); border: 2px solid var(--line); border-radius: var(--pill); font-weight: 800; text-decoration: none; }
.jump a:hover { background: var(--sky-soft); border-color: var(--sky); }
.no-match { margin: var(--s2) 0; font-weight: 800; }
.no-match:empty { display: none; }
.letter { margin-top: var(--s4); }
.letter h2 { margin: 0 0 var(--s2); padding-bottom: .25rem; border-bottom: 3px solid var(--sun); font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.2; }
.words { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); margin: 0; }
.word { min-width: 0; max-width: 70ch; padding: var(--s2) var(--s3); background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--sky); border-radius: var(--radius-sm); }
.word dt { font-weight: 800; font-size: 1.25rem; line-height: 1.3; color: var(--sea-deep); }
.word dd { margin: .25rem 0 0; }
.word-link a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 800; }
@media (min-width: 900px) { .words { display: block; column-count: 2; column-gap: 24px; } .word { break-inside: avoid; margin-bottom: var(--s2); } }
.gear-box { margin: var(--s5) 0 var(--s3); padding: var(--s3); background: var(--sky-soft); border-radius: var(--radius); }
.gear-box h2 { margin-top: 0; }
.gear-box .picks { margin-block: var(--s2); }
.gear-box .gear-link, .gear-box .associate { margin: .5rem 0 0; font-size: 1rem; }
/* Article cards (Your first cruise, Before you go) share the word card look. */
.note { max-width: 70ch; margin: 0 0 var(--s2); padding: var(--s2) var(--s3); background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--sky); border-radius: var(--radius-sm); }
.note h2 { margin: 0 0 .25rem; font-size: 1.25rem; line-height: 1.3; color: var(--sea-deep); }
.note p { margin: .25rem 0 0; }
.note .more { display: flex; flex-direction: column; margin-top: .25rem; }
.keep-reading { margin-top: var(--s5); }
.keep-reading h2 { margin: 0 0 var(--s2); }
.keep-reading a { padding-block: .5rem; text-align: center; }
.more-line { margin-top: var(--s5); font-size: 1.125rem; }
.more-line a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 800; }
.gear-box .pick { max-width: 100%; }
@media (min-width: 700px) {
  .gear-box-wide .picks-1 { grid-template-columns: minmax(0, 760px); }
  .gear-box-wide .pick { display: grid; grid-template-columns: 40% minmax(0, 1fr); column-gap: var(--s3); align-content: start; align-items: start; height: auto; }
  .gear-box-wide .pick > .card-art { grid-column: 1; grid-row: 1 / span 8; aspect-ratio: 4 / 3; width: 100%; align-self: start; }
  .gear-box-wide .pick > :not(.card-art) { grid-column: 2; }
  .gear-box-wide .pick .btn { margin-top: .5rem; }
  .gear-box-wide .pick .badge { justify-self: start; }
}
