/* Cabin category pages and the ship cabins overview
   (rust/crates/cs-web/src/routes/cabin_category.rs, views/cabin_category_*.mustache,
   views/cabin_ship_overview.mustache). Versioned filename: change the name and
   PAGE_CSS together; keep this file while cached pages reference it. */
[data-class] { --cc-class: #FED470; --cc-on-class: #131943; }
[data-class="outside"] { --cc-class: #006279; --cc-on-class: #fff; }
[data-class="balcony"] { --cc-class: #508543; --cc-on-class: #fff; }
[data-class="suite"] { --cc-class: #F16279; --cc-on-class: #fff; }

/* Phone breadcrumb trail; the shared bar takes over from 768px. */
.cc-crumbs { margin: -12px 0 14px; font-size: 13px; line-height: 1.5; color: #64748B; }
.cc-crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.cc-crumbs li + li::before { content: "›"; margin: 0 6px; color: #94A3B8; }
.cc-crumbs a { color: #006279; text-decoration: none; }
.cc-crumbs a:hover { text-decoration: underline; }
.cc-crumbs [aria-current] { color: #10233A; }
@media (min-width: 768px) { .cc-crumbs { display: none; } }

/* Fact summary: the cabin page's verdict card, class-coloured top rule. */
.cc-facts { margin-top: 20px; padding: 18px 20px; border: 1px solid #dbe2e8; border-top: 4px solid var(--cc-class); border-radius: 12px; background: #F9FAFB; color: #10233A; }
.cc-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 0; }
.cc-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #64748B; }
.cc-facts dd { margin: 3px 0 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.cc-facts-desc { margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.cc-facts-desc span { font-weight: 600; }
.cc-facts small { display: block; margin-top: 12px; font-size: 12px; color: #64748B; }
@media (min-width: 768px) { .cc-facts dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cc-facts dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Bed setups (Carnival categories): one row per variant code. */
.cc-setups td:first-of-type { line-height: 1.5; }
.cc-setups td strong { font-weight: 600; }
.cc-setups tbody tr:target > * { background: #FFF8E6; }
.cc-common { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: #374151; max-width: 60rem; }
.cc-common span { font-weight: 600; color: #10233A; }
.cc-table .cc-variant { color: #006279; font-weight: 600; text-decoration: none; }
.cc-table .cc-variant:hover { text-decoration: underline; }

/* Guidance. */
.cc-guide { color: #10233A; }
.cc-guide > p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: #374151; max-width: 60rem; }
.cc-highlights { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
@media (min-width: 768px) { .cc-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-hl { padding: 14px 16px; border: 1px solid #E5E7EB; border-left: 4px solid #508543; border-radius: 8px; background: #fff; }
.cc-hl[data-tone="warn"] { border-left-color: #E5A100; }
.cc-hl h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #131943; }
.cc-hl ul, .cc-pills, .cc-cards { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.cc-hl a, .cc-pills a { display: inline-block; padding: 4px 9px; border: 1px solid #dbe2e8; border-radius: 6px; background: #fff; color: #006279; font-size: 13px; text-decoration: none; font-variant-numeric: tabular-nums; }
.cc-hl a:hover, .cc-pills a:hover { background: rgba(0, 98, 121, .06); text-decoration: underline; }
.cc-more { align-self: center; font-size: 13px; color: #64748B; }

/* Cabin list: the itinerary data-table recipe. */
.cc-deck { margin: 0 0 26px; }
.cc-deck h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 10px; font-size: 18px; font-weight: 700; color: #131943; }
.cc-deck h3 span { font-weight: 400; font-size: 15px; color: #64748B; }
.cc-deck h3 a { margin-left: auto; font-size: 14px; font-weight: 600; color: #006279; }
.cc-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid #E5E7EB; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .03); font-size: 14px; color: #10233A; }
.cc-table thead th { padding: 10px 12px; background: #F9FAFB; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-align: left; text-transform: uppercase; color: #10233A; border-bottom: 1px solid #E5E7EB; }
.cc-table tbody th, .cc-table td { padding: 8px 12px; text-align: left; font-weight: 400; vertical-align: top; font-variant-numeric: tabular-nums; }
.cc-table tbody tr:nth-child(even) > * { background: rgba(0, 98, 121, .06); }
.cc-table tbody th a { color: #006279; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; }
.cc-table tbody th a:hover { text-decoration-style: solid; }
.cc-table .cc-warn { color: #92400E; }
@media (max-width: 639px) {
  .cc-table { font-size: 13px; }
  .cc-table thead th { padding: 8px 6px; font-size: 11px; letter-spacing: 0; }
  .cc-table tbody th, .cc-table td { padding: 7px 6px; }
}

/* Alternatives. */
.cc-links h3 { margin: 22px 0 10px; font-size: 18px; font-weight: 700; color: #131943; }
.cc-links h3:first-child { margin-top: 0; }
.cc-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .cc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cc-cards a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border: 1px solid #E5E7EB; border-radius: 8px; background: #fff; color: #10233A; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.cc-cards a:hover { border-color: #006279; background: rgba(0, 98, 121, .04); }
.cc-card-text { display: flex; flex-direction: column; min-width: 0; }
.cc-card-text strong { font-size: 15px; font-weight: 600; color: #006279; }
.cc-card-text span { font-size: 13px; color: #64748B; }
.cc-code { display: inline-block; min-width: 2.6rem; padding: 3px 7px; border-radius: 6px; background: var(--cc-class, #E5E7EB); color: var(--cc-on-class, #131943); font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.cc-hub { margin: 22px 0 0; }
.cc-hub a, .cc-class-link a { color: #006279; font-weight: 600; text-decoration: underline; }

/* Ship overview. */
.cc-jump ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.cc-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #dbe2e8; border-left: 4px solid var(--cc-class, #006279); border-radius: 6px; background: #fff; color: #10233A; font-size: 14px; font-weight: 600; text-decoration: none; }
.cc-jump a:not([data-class]) { border-left-color: #131943; }
.cc-jump a span { font-weight: 400; color: #64748B; }
.cc-class { margin-top: 36px; }
.cc-class h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 12px; padding-left: 12px; border-left: 5px solid var(--cc-class, #131943); font-size: 24px; font-weight: 700; color: #111827; }
.cc-class h2 span { font-size: 15px; font-weight: 400; color: #64748B; }
.cc-overview tbody th a { text-decoration: none; }
.cc-overview tbody th a:hover { text-decoration: underline; }
.cc-overview .cc-code { margin-right: 6px; }
.cc-thin { display: block; margin-top: 4px; font-size: 13px; }
.cc-thin a { margin-right: 8px; color: #006279; }
.cc-muted { color: #94A3B8; }
.cc-class-link { margin: 10px 0 0; font-size: 14px; }
