/* Cruise lines (2026-10 redesign, review paragraphs 6, 8, 20, 22): the line cards used on /lines/
   and the homepage, the compare selection bar, and the cruise-line page reading layout
   (short answer, contents menu, inline term definitions). Loaded after site.css. */

/* ---------- Line cards ---------- */
.lc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.lc { --lc: #1d4f9c; --lc2: #0e2a57; position: relative; display: flex; flex-direction: column; background: #fff; color: var(--paper-ink); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 10px 30px rgba(3,12,26,.22); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.lc:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.18), 0 16px 40px rgba(3,12,26,.3); }
.lc.is-picked { box-shadow: 0 0 0 3px var(--teal), 0 16px 40px rgba(3,12,26,.3); }
.lc-media { margin: 0; height: 150px; position: relative; border-radius: 0; }
.lc-media.photo img { height: 150px; }
.lc-media.photo figcaption { padding: 18px 12px 7px; font-size: .8rem; }
.lc-media.photo figcaption span { font-weight: 600; }
/* Typographic identity when there's no photo: the line's own colour and its casino's name. Never a logo. */
.lc-type { display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 22px; color: #fff; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 14px),
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(160deg, var(--lc), var(--lc2)); }
.lc-type::after { content: ""; position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; border-radius: 50%; border: 18px solid rgba(255,255,255,.08); }
.lc-type-casino { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; max-width: 14ch; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.lc-type-line { margin-top: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.lc-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 14px; border-top: 4px solid var(--lc); }
.lc h2, .lc h3 { font-family: inherit; font-size: 1.28rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.lc h2 a, .lc h3 a { color: var(--paper-ink); text-decoration: none; }
.lc h2 a:hover, .lc h3 a:hover { color: #0d5c8c; text-decoration: underline; }
.lc-why { margin-top: 6px; color: var(--paper-muted); font-size: 1rem; line-height: 1.5; }
.lc-facts { margin-top: 14px; display: grid; gap: 8px; font-size: .95rem; }
.lc-facts > div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: baseline; }
.lc-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5d6b7e; }
.lc-facts dd { color: var(--paper-ink); }
.lc-earn { color: var(--paper-muted); }
.lc-smoke { display: inline-block; white-space: nowrap; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-right: 4px; vertical-align: 1px; }
.lc-smoke.s-free { background: #dff3ea; color: #135c3c; }
.lc-smoke.s-nearly { background: #e4f1ef; color: #0d5a52; }
.lc-smoke.s-mixed { background: #fbefd9; color: #7a4a00; }
.lc-smoke.s-smoking { background: #f7e1df; color: #8a2a22; }
.lc-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lc-go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: #0d5c8c; text-decoration: none; }
.lc-go:hover { color: #083e60; text-decoration: underline; }
.lc .lc-cmp { margin: 0; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 6px 12px !important; border: 1px solid rgba(13,107,96,.35); border-radius: 10px; color: var(--teal-ink); font-weight: 600; font-size: .92rem; cursor: pointer; background: rgba(13,107,96,.05); user-select: none; }
.lc .lc-cmp:hover { background: rgba(13,107,96,.1); }
.lc .lc-cmp input { width: 18px; height: 18px; accent-color: var(--teal-ink); margin: 0; }
.lc .lc-cmp:has(input:checked) { background: var(--teal-ink); color: #fff; border-color: var(--teal-ink); }
.lc .lc-cmp:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.lc-parent { margin-top: 6px; font-size: .8rem; color: #5d6b7e; }

/* ---------- /lines/ page ---------- */
.lines-hero { padding-bottom: 40px; }
.lines-dir { padding-top: 34px; }
.lines-note { max-width: 820px; margin: 0 0 26px; }
.lines-other { margin-top: 28px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px 22px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.25); }
.lines-other h2 { font-family: inherit; font-size: 1.15rem; }
.lines-other p { color: var(--muted); max-width: 70ch; margin-top: 4px; }
.lines-glance .table-wrap { margin-top: 4px; }

/* Sticky compare bar */
.cmp-bar { position: sticky; bottom: 0; z-index: 20; background: var(--navy); border-top: 2px solid var(--teal); box-shadow: 0 -10px 30px rgba(0,0,0,.35); padding: 10px 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); animation: cmpIn var(--t) var(--ease); }
.cmp-bar[hidden] { display: none; }
.cmp-bar-in { display: flex; align-items: center; gap: 12px; }
.cmp-bar-msg { flex: 1; min-width: 0; font-size: .98rem; color: #fff; }
.cmp-bar-msg b { color: var(--gold-soft); }
.cmp-bar-clear { min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #dfe7f1; font: inherit; cursor: pointer; }
.cmp-bar-clear:hover { background: rgba(255,255,255,.08); }
.cmp-bar-go[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@keyframes cmpIn { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 600px) {
  .cmp-bar-in { flex-wrap: wrap; gap: 8px; }
  .cmp-bar-msg { flex-basis: 100%; font-size: .92rem; }
  .cmp-bar-go { flex: 1; text-align: center; }
}

/* ---------- Cruise-line pages ---------- */
.lp-intro { padding: 30px 0 34px; }
.lp-intro-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 22px; align-items: start; }
.lp-intro .answer { margin: 0; font-size: 1.05rem; line-height: 1.6; box-shadow: 0 1px 2px rgba(11,37,69,.06); }
.lp-intro .toc { position: relative; }
.lp-intro .toc ol { gap: 2px; }
.lp-intro .toc a { display: inline-block; padding: 5px 0; text-decoration: none; }
.lp-intro .toc a:hover { text-decoration: underline; }
.lp-intro .toc { grid-row: span 2; }
.lp-intro .term-hint { grid-column: 1; margin-top: -8px; }
@media (max-width: 820px) {
  .lp-intro-grid { grid-template-columns: 1fr; }
  .lp-intro .toc ol { grid-template-columns: 1fr 1fr; column-gap: 18px; }
}
@media (max-width: 340px) { .lp-intro .toc ol { grid-template-columns: 1fr; } }
section[id] { scroll-margin-top: 84px; }
.lp-anchor { display: block; height: 0; scroll-margin-top: 84px; }
/* Line page chips: a calmer row so the short answer below reads first */
.phero .chips { margin-top: 24px; }

/* Inline term definitions (same markup and behaviour as the guides: <dfn class="term" tabindex="0">word<span class="term-def" role="note">…</span></dfn>) */
dfn.term { position: relative; font-style: normal; border-bottom: 2px dotted currentColor; cursor: help; border-radius: 2px; }
dfn.term:hover { background: rgba(13,107,96,.08); }
.term-def { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
dfn.term:focus, dfn.term:focus-within { background: rgba(13,107,96,.14); outline: none; border-bottom-style: solid; border-bottom-color: var(--teal-ink); }
dfn.term:focus .term-def, dfn.term:focus-within .term-def {
  position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
  display: block; margin: 6px 0 4px; padding: 10px 12px; border-radius: 10px; font-size: .92rem; line-height: 1.5; font-weight: 400; letter-spacing: 0; text-transform: none;
  background: #fff; color: var(--paper-ink); border: 1px solid rgba(13,107,96,.35); border-left: 4px solid var(--teal-ink); box-shadow: 0 6px 18px rgba(11,37,69,.12); cursor: auto; animation: termIn var(--t) var(--ease); }
@keyframes termIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.term-hint { font-size: .86rem; color: var(--paper-muted); }
.term-hint dfn { border-bottom: 2px dotted currentColor; font-style: normal; }
:not(.paper) > * .term-hint, .term-hint.on-dark { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { dfn.term:focus .term-def, dfn.term:focus-within .term-def, .cmp-bar { animation: none; } }

/* Paper sections on line pages: keep the dark-tuned inline colours legible */
.paper .facts li b { color: var(--paper-ink); }
.paper .sources span, .paper .checked { color: var(--paper-muted); }
.paper .card h3 { color: var(--paper-ink); }
.lp-intro .toc a[aria-current] { font-weight: 700; color: var(--teal-ink); }
#fleet tbody th a { display: inline-block; padding: 13px 0; margin: -13px 0; }
