/* Ship casino comparison (/ships/compare/). Loaded after site.css, compare.css (rows, names, jump links, empty
   state) and ships.css (smoking badges, "Not published"). Only what the ship picker and ship cards add. */

/* ---------- Picker ---------- */
.sc-chosen { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sc-chosen[hidden] { display: none; }
.sc-chip { display: flex; align-items: stretch; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--k, var(--navy)); border-left-width: 5px; background: #fff; max-width: 100%; }
.sc-chip a { display: flex; flex-direction: column; justify-content: center; padding: 4px 6px 4px 12px; color: var(--paper-ink); text-decoration: none; min-width: 0; }
.sc-chip a:hover b { text-decoration: underline; }
.sc-chip b { font-size: .97rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.sc-chip small { font-size: .8rem; color: var(--paper-muted); line-height: 1.3; }
.sc-x { flex: none; min-width: 44px; min-height: 44px; border: 0; border-left: 1px solid var(--paper-line); border-radius: 0 10px 10px 0; background: transparent; color: var(--paper-ink); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sc-x:hover { background: #fbeee8; color: #9a2f1f; }

.sc-combo { margin-top: 16px; max-width: 560px; }
.sc-combo[hidden] { display: none; }
.sc-label { display: block; font-weight: 650; font-size: .95rem; color: var(--paper-ink); margin-bottom: 6px; }
.sc-field { position: relative; }
.sc-field input { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--paper-ink); background: #fff; border: 1.5px solid var(--paper-line); border-radius: 12px; }
.sc-field input:focus { outline: 3px solid rgba(13,107,96,.35); outline-offset: 1px; border-color: var(--teal-ink); }
.sc-field input:disabled { background: var(--paper-2); color: var(--paper-muted); }
.sc-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); list-style: none; max-height: min(60vh, 420px); overflow-y: auto; background: #fff; border: 1px solid var(--paper-line); border-radius: 12px; box-shadow: 0 10px 28px rgba(11,37,69,.18); padding: 4px; }
.sc-list[hidden] { display: none; }
.sc-opt { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--paper-ink); }
.sc-opt b { font-weight: 650; font-size: .98rem; line-height: 1.25; }
.sc-opt small { color: var(--paper-muted); font-size: .82rem; line-height: 1.3; }
.sc-opt:hover, .sc-opt[aria-selected="true"] { background: #e3f3f0; }
.sc-opt[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--teal-ink); }
.sc-none { padding: 12px; color: var(--paper-muted); font-size: .95rem; }
.sc-hint { margin-top: 6px; font-size: .86rem; color: var(--paper-muted); }
.sc-ignored { margin-top: 12px; padding: 10px 14px; border-radius: 0 10px 10px 0; border-left: 4px solid #9a5d00; background: #fff6e0; color: var(--paper-ink); font-size: .95rem; }
.sc-ignored[hidden] { display: none; }

/* ---------- Empty, loading, error ---------- */
.sc-empty p, .sc-error p { color: var(--paper-ink); }
.sc-error { border-style: solid; border-color: #d9a38f; background: #fff8f5; }
.sc-error .cmp-actions { margin-top: 12px; }
.sc-pairs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.paper .sc-pairs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(13,107,96,.4); background: #fff; color: var(--teal-ink); font-weight: 650; text-decoration: none; }
.paper .sc-pairs a:hover { background: rgba(13,107,96,.08); }
.sc-pairs span { font-weight: 500; color: var(--paper-muted); }
.sc-loading { font-style: italic; }

/* ---------- Ship cards (one column per ship, lined up with the rows) ---------- */
.sc-ships { display: grid; grid-template-columns: var(--cols); gap: 10px; margin-bottom: 18px; }
.sc-ship { min-width: 0; background: #fff; border: 1px solid var(--paper-line); border-top: 4px solid var(--k); border-radius: 0 0 12px 12px; padding: 0 0 12px; display: flex; flex-direction: column; }
.sc-ph { position: relative; margin: 0; }
.sc-ph img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.sc-ph .ph-kind { position: absolute; top: 8px; left: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: rgba(3,12,26,.75); color: #fff; }
.sc-ph figcaption { font-size: .72rem; color: var(--paper-muted); padding: 4px 12px 0; line-height: 1.35; overflow-wrap: anywhere; }
.sc-ph figcaption a { color: var(--paper-muted); }
.sc-type { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 14px; background: linear-gradient(135deg, var(--navy), var(--sea)); color: var(--ink); }
.sc-type span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); }
.sc-type b { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.2; }
.sc-type small { font-size: .78rem; color: var(--muted); }
.sc-ship h3 { font-size: 1.08rem; line-height: 1.25; padding: 10px 12px 0; }
.sc-ship h3 a { color: var(--paper-ink); display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; }
.sc-line { font-size: .84rem; color: var(--paper-muted); padding: 0 12px; line-height: 1.35; }
.sc-status { margin: 6px 12px 0; font-size: .8rem; font-weight: 700; color: #8a4b00; }
.sc-rm { align-self: flex-start; margin: 10px 12px 0; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--paper-line); background: transparent; color: var(--paper-ink); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.sc-rm:hover { border-color: #c98b78; color: #9a2f1f; }

/* ---------- Values ---------- */
.sc-sub { display: block; margin-top: 4px; font-size: .9rem; line-height: 1.45; color: var(--paper-muted); }
.sc-muted { color: var(--paper-muted); }
.sc .smk { font-size: .84rem; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.sc-tags .tag { font-size: .82rem; padding: 2px 9px; color: var(--paper-ink); border-color: var(--paper-line); }
.sc-tags .tag.sc-only { background: #e3f3f0; border-color: rgba(13,107,96,.55); color: var(--teal-ink); font-weight: 650; }
.sc-games { list-style: none; margin-top: 6px; display: grid; gap: 2px; }
.sc-games li { font-size: .94rem; }
.sc-games small { color: var(--paper-muted); }
.sc-games a, .sc-more { display: inline-block; padding: 3px 0; }
.sc-more { font-size: .9rem; font-weight: 600; }
.sc .cmp-row dd .src-kind { color: var(--teal-ink); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; padding: 2px 7px; border-radius: 5px; border: 1px solid currentColor; }
.sc-flag { display: inline-block; margin-top: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: var(--teal-ink); background: #e3f3f0; border: 1px solid rgba(13,107,96,.4); border-radius: 999px; padding: 1px 8px; vertical-align: 1px; }
.sc-hi dd { font-weight: 600; }
.sc .provenance { color: var(--paper-muted); }
.sc .provenance .src-kind { color: var(--teal-ink); }
.sc-about p { max-width: 72ch; color: var(--muted); }
.sc-about .sc-links { margin-top: 12px; }
.sc-about .sc-links a { display: inline-block; padding: 8px 0; }

@media (max-width: 700px) {
  /* Phones: ship cards side by side when they fit, stacked rows below (compare.css). */
  .sc-ships { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 6px; }
  .sc-ships-lab { display: none; }
  .sc-ship h3 { font-size: .95rem; padding: 8px 8px 0; }
  .sc-line { font-size: .76rem; padding: 0 8px; }
  .sc-type { padding: 8px; }
  .sc-type b { font-size: .95rem; }
  .sc-ph figcaption { padding: 4px 8px 0; font-size: .66rem; }
  .sc-rm { margin: 8px 8px 0; padding: 6px 10px; }
  .sc-status { margin: 4px 8px 0; }
  .sc-hi { box-shadow: inset 0 0 0 1px rgba(13,107,96,.45); }
}
@media (max-width: 400px) {
  .sc-ships { grid-template-columns: 1fr 1fr; }
  .sc-type small, .sc-type span { display: none; }
}
.cmp-same.sc-key { color: var(--teal-ink); background: #e3f3f0; }
