/* Coral Cache pages (/coral-cache/...). Same tokens as the policy pages. */
:root {
  color-scheme: light;
  --ink: #0f2740;
  --deep: #12344d;
  --teal: #0b7a75;
  --teal-dark: #085d59;
  --mist: #dce7ea;
  --sand: #f4f7f8;
  --card: #e9f0f2;
  --card-line: rgba(15, 39, 64, 0.16);
  --card-muted: #4a6272;
  --line: rgba(15, 39, 64, 0.12);
  --muted: #5a7281;
  --white: #ffffff;
  --sold: #8a3b12;
  --radius: 4px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
}
h1, h2, h3 {
  margin: 0;
  font-family: 'Alta', 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
main { padding: 0 0 4rem; }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.section-kicker::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.cache-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(11, 122, 117, 0.4), transparent 55%),
    linear-gradient(135deg, #0b2338 0%, #123a4d 55%, #0b7a75 140%);
  padding: 9rem 0 3.5rem;
  color: var(--white);
}
.cache-hero .section-kicker { color: rgba(255, 255, 255, 0.78); }
.cache-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.04em;
}
.cache-hero p {
  margin: 1rem 0 0;
  max-width: 44rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}
.cache-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.cache-perks li {
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.cache-shell { margin-top: 2.5rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cache-search {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.cache-search-box {
  position: relative;
  flex: 1 1 auto;
  max-width: 40rem;
}
.cache-search-box svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  color: var(--muted);
}
.cache-search-box input {
  width: 100%;
  min-height: 50px;
  padding: 0.6rem 0.9rem 0.6rem 2.6rem;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.cache-search-box input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

.cache-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.cache-groups a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep);
  text-decoration: none;
}
.cache-groups a span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--card-muted);
}
.cache-groups a:hover { border-color: var(--teal); }
.cache-groups a[aria-current="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.cache-groups a[aria-current="true"] span { color: rgba(255, 255, 255, 0.85); }
.cache-results { margin: -0.4rem 0 1.2rem; font-size: 0.9rem; color: var(--muted); }
.cache-results a { color: var(--teal); font-weight: 600; margin-left: 0.4rem; }

.cache-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin: 0.9rem 0 0;
}
.cache-specs dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cache-specs dd { margin: 0.1rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.cache-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1.25rem;
}
/* Tinted cards so they stand apart from the white page. */
.cache-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 2px 10px rgba(15, 39, 64, 0.07);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cache-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(15, 39, 64, 0.13);
  transform: translateY(-2px);
}
.cache-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #dbe5e8;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.cache-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cache-card-body {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.2rem;
}
.cache-card h2 { font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
.cache-condition {
  justify-self: start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--mist);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deep);
}
.cache-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cache-meta { margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }
.cache-card .cache-meta,
.cache-photo-placeholder { color: var(--card-muted); }
.cache-card .cache-condition { background: var(--white); }
.cache-sold-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  background: var(--sold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cache-card.is-sold .cache-card-photo img { filter: grayscale(0.7); opacity: 0.75; }
.cache-sold-badge.is-hold { background: var(--deep); }

.cache-empty {
  padding: 2.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--sand);
  text-align: center;
}
.cache-empty h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.cache-empty p { margin: 0 auto; max-width: 36rem; color: var(--muted); line-height: 1.7; }

.cache-back a { color: var(--teal); text-decoration: none; }
.cache-back a:hover { text-decoration: underline; }
.cache-back {
  display: block;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.cache-item {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.cache-gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--sand);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.cache-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cache-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.cache-thumbs button {
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--sand);
  overflow: hidden;
  cursor: pointer;
}
.cache-thumbs button[aria-current="true"] { border-color: var(--teal); }
.cache-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.cache-details h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 0.6rem 0 0.8rem; }
.cache-details .cache-price { font-size: 2rem; }
.cache-description {
  margin: 1.2rem 0 0;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-line;
}
.cache-buy {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand);
}
.cache-buy label { font-size: 0.85rem; font-weight: 700; }
.cache-buy select {
  margin-top: 0.35rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
}
.cache-buy fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 0.5rem; }
.cache-buy legend { padding: 0; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 700; }
.cache-option {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 400 !important;
  cursor: pointer;
}
.cache-option input { margin-top: 0.2rem; accent-color: var(--teal); }
.cache-option strong { display: block; }
.cache-option span span { font-size: 0.82rem; color: var(--muted); }
.cache-option:has(input:checked) { border-color: var(--teal); }
.cache-buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}
.cache-buy-row label { display: grid; }
.cache-buy-row input[type="text"] {
  width: 8.5rem;
  margin-top: 0.35rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
}
.cache-buy-row .cache-submit { min-height: 44px; padding-block: 0.6rem; }
.cache-buy fieldset.is-stale { opacity: 0.5; }
.cache-submit:disabled { opacity: 0.6; cursor: default; }
.cache-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cache-submit:hover { background: var(--teal-dark); }
.cache-submit.is-secondary { background: var(--white); color: var(--teal); border-color: var(--teal); }
.cache-fine {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}
.cache-alert {
  margin: 0 0 1.2rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--sold);
  background: #fbf1ec;
  font-size: 0.92rem;
  line-height: 1.6;
}
.cache-alert.is-info { border-left-color: var(--teal); background: #eaf5f4; }

.cache-terms {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.cache-terms p { margin: 0; font-size: 0.85rem; line-height: 1.7; color: var(--muted); }

.site-footer { padding: 2rem 0 3rem; }
.footer-card {
  padding: 2rem;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 15% 15%, rgba(11, 122, 117, 0.45), transparent 55%),
    linear-gradient(150deg, #0b2338 0%, #123a4d 60%, #0b7a75 140%);
}
.footer-card .section-kicker { color: rgba(255, 255, 255, 0.72); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: 1rem;
}
.footer-links a,
.footer-card .cookie-settings-trigger {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.7;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 900px) {
  .cache-item { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 760px) {
  .cache-hero { padding: 7rem 0 2.2rem; }
  .cache-shell { margin-top: 1.6rem; }
  .cache-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: start; }
  .footer-card { padding: 1.45rem; }
  .cache-submit { width: 100%; }
  .cache-buy-row label { flex: 1 1 8rem; }
  .cache-search .cache-submit { width: auto; }
  .cache-groups { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem 0.3rem; }
  .cache-groups a { flex: 0 0 auto; }
  .cache-buy-row input[type="text"] { width: 100%; }
}
