/* ============================================================
   StarDAO site theme — "Refined light beach" (2026-09)
   Professional pass across every page:
   · warm sand background + ocean-blue accents (kept identity)
   · ALL information panels are solid white cards with a crisp
     border + soft layered shadow — no translucency, no glass
   · text colours raised for readability; buttons solid
   · photo cards become photo-header + white body (no text over
     images, no overlap)
   Loaded LAST on every page so it wins the cascade.
   ============================================================ */

:root {
  --bg: #f5f1e6;
  --bg-soft: #ffffff;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3eddf;
  --panel: #ffffff;
  --panel-strong: #f3eddf;
  --border: #e1d9c4;
  --text: #1c2a33;
  --muted: #4d5d69;
  --faint: #76868f;
  --accent: #0a7cae;
  --accent-2: #178fc0;
  --blue: #0a7cae;
  --cyan: #178fc0;
  --ok: #1f8fc0;
  --warn: #b97e16;
  --bad: #c3523f;
  --shadow-sm: 0 1px 2px rgba(28, 42, 51, 0.05), 0 8px 18px -12px rgba(28, 42, 51, 0.14);
  --shadow: 0 1px 2px rgba(28, 42, 51, 0.04), 0 18px 38px -20px rgba(28, 42, 51, 0.18);
  --glow: 0 0 0;
}

html,
body {
  background: var(--bg);
  color: var(--text);
}

/* ---------- header / footer: solid, clearly separated ---------- */
.sd-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.sd-footer {
  background: #ece5d3;
  border-top: 1px solid var(--border);
}
.sd-brand strong,
.site-footer strong {
  color: var(--text);
}

/* ---------- ALL information panels: solid white cards ---------- */
.mini-card,
.info-card,
.stat-card,
.service-card,
.quick-card,
.listing-card,
.category-tile,
.pricing-card,
.rfq-panel,
.media-panel,
.optimized-services-panel,
.hero-card,
.trust-item,
.panel,
.discovery-related-card,
.discovery-why-card,
.discovery-listing-card,
.discovery-faq,
.discovery-visitor,
.discovery-about,
.discovery-location,
.discovery-sources,
.profile-gallery-card,
.category-overview-card,
.category-block {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* chips, badges and form controls: solid, never washed-out */
.chip,
.badge {
  background: #ffffff;
  border: 1px solid #d6cdb4;
  color: var(--text);
}
.input,
.select,
.textarea {
  background: #ffffff;
  border: 1px solid #d6cdb4;
  box-shadow: inset 0 1px 2px rgba(28, 42, 51, 0.04);
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 124, 174, 0.14);
}

/* ---------- buttons: solid, high-affordance ---------- */
.btn {
  background: #ffffff;
  border: 1px solid #d6cdb4;
  color: var(--text);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: #096a99;
  border-color: #096a99;
}
.btn-secondary {
  background: #ffffff;
  border-color: #bcd4e0;
  color: var(--accent);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: #f2f9fd;
}

/* ---------- tinted "photo" panels → clean solid info cards ---------- */
.listing-card.listing-card-image,
.shortcut-card,
.category-overview-card,
.category-hub-grid .category-tile.landing-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.listing-card.listing-card-image::before,
.listing-card.listing-card-image::after,
.shortcut-card::before,
.shortcut-card::after,
.category-overview-card::before,
.category-overview-card::after,
.category-hub-grid .category-tile.landing-card::before,
.category-hub-grid .category-tile.landing-card::after {
  display: none;
  content: none;
}
.listing-card.listing-card-image h3,
.shortcut-card h3,
.category-overview-card h3,
.category-hub-grid .category-tile.landing-card h3 {
  color: var(--text);
  margin-top: 6px;
}
.listing-card.listing-card-image .meta,
.shortcut-card p,
.category-overview-card p,
.category-overview-card .availability-note,
.category-hub-grid .category-tile.landing-card p {
  color: var(--muted);
  max-width: 46ch;
}
.listing-card.listing-card-image .btn-secondary,
.shortcut-card .btn-secondary,
.category-overview-card .btn-secondary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.listing-card.listing-card-image .btn-secondary:hover,
.shortcut-card .btn-secondary:hover,
.category-overview-card .btn-secondary:hover {
  background: #096a99;
}
/* cards that were using space-between over a tall gradient now flow naturally */
.listing-card.listing-card-image {
  justify-content: flex-start;
  min-height: 0;
}

/* ---------- subtle glass utilities → solid ---------- */
.sd-lang-switch,
.sd-tabs {
  background: #ffffff;
  border: 1px solid #d6cdb4;
}
.sd-lang-switch a.sd-lang-seg.is-on {
  background: var(--accent);
  color: #ffffff;
}

/* ---------- links ---------- */
.link-accent,
.discovery-explore-tags a,
.discovery-listing-cta,
.discovery-related-card strong a {
  color: var(--accent);
}

/* ---------- readable secondary text everywhere ---------- */
.meta,
.small-text,
.sd-muted,
.discovery-map-credit,
.discovery-sources p,
.discovery-sources li,
.discovery-listing-card p {
  color: var(--muted);
}


/* ============================================================
   Pass 2 — crisp controls, labels and footer grounding
   ============================================================ */

/* faint helper text now uses the readable muted tone */
.sd-faint {
  color: var(--muted);
}

/* eyebrow/kicker chips: solid white pill with accent text */
.sd-kicker {
  background: #ffffff;
  border: 1px solid #ccdcea;
  color: var(--accent);
  font-weight: 700;
}

/* ghost buttons get a real surface so they never look like
   floating text on sand */
.sd-btn-ghost {
  background: #ffffff;
  border-color: #d6cdb4;
  color: var(--text);
}
.sd-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* status-tinted buttons → crisp outline style */
.sd-btn-ok {
  background: #ffffff;
  border-color: var(--ok);
  color: var(--ok);
}
.sd-btn-bad {
  background: #ffffff;
  border-color: var(--bad);
  color: var(--bad);
}
.sd-btn-warn {
  background: #ffffff;
  border-color: var(--warn);
  color: var(--warn);
}

/* solid status notes/cards used on dashboards */
.sd-status,
.sd-note {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
}

/* footer: grounded, clearly separated from content */
.sd-footer {
  background: #e9e1cb;
  border-top: 1px solid #d8cdaf;
}
.sd-footer .sd-muted,
.sd-footer p {
  color: #4d5d69;
}
.sd-footer a {
  color: #1c2a33;
}
.sd-footer a:hover {
  color: var(--accent);
}

/* dashboard-style cards share the same solid language */
.sd-card {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}


/* ============================================================
   Pass 3 — buttons readable on white cards; spacing polish
   ============================================================ */
.sd-btn {
  background: #ffffff;
  border-color: #c6bca0;
  box-shadow: 0 1px 2px rgba(28, 42, 51, 0.06);
}
.sd-btn-primary,
.sd-btn-ok,
.sd-btn-bad,
.sd-btn-warn {
  box-shadow: 0 1px 2px rgba(28, 42, 51, 0.08);
}
.sd-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.sd-btn-primary:hover {
  background: #096a99;
  color: #ffffff;
}

/* body copy inside white cards keeps comfortable contrast and size */
.sd-card .sd-muted,
.sd-card p,
.sd-card .sd-card-body {
  color: #45555f;
  line-height: 1.65;
}

/* roomier gap between stats cards and their source caption */
.sd-grid-4 + .sd-faint,
.sd-grid-3 + .sd-faint,
.sd-grid-2 + .sd-faint {
  margin-top: 14px;
  display: block;
  font-size: 12.5px;
}


/* ============================================================
   Pass 4 — mobile legibility
   ============================================================ */
@media (max-width: 720px) {
  /* keep the header compact: drop the tiny brand tagline, keep logo + pill */
  .sd-brand span {
    display: none;
  }
  /* larger touch target for the language pill */
  .sd-lang-switch a.sd-lang-seg {
    height: 28px;
    min-width: 40px;
    font-size: 13px;
  }
  /* readable card copy on small screens */
  .sd-card p,
  .sd-card .sd-card-body {
    font-size: 14.5px;
    color: #3f4e58;
  }
  .sd-card .sd-muted,
  .sd-tag-info .sd-muted,
  .sd-card .sd-note {
    color: #45555f;
    font-size: 13px;
  }
}


/* ============================================================
   Pass 5 — discovery entity-page spacing (no touching text)
   ============================================================ */
.discovery-info-row {
  padding: 11px 0;
}
.discovery-info-row dd {
  overflow-wrap: anywhere;
  padding-right: 6px;
}
.discovery-actions {
  margin-top: 18px;
}
.discovery-faq-item {
  padding: 14px 0 12px;
}
.discovery-faq-item:first-of-type {
  padding-top: 10px;
}
.discovery-sticky-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
}
@media (min-width: 901px) {
  .discovery-map-lower .discovery-map-band-inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  }
}
@media (max-width: 900px) {
  .discovery-map-lower .discovery-map-band-inner {
    grid-template-columns: 1fr;
  }
  .discovery-map-lower .discovery-map-frame {
    width: 100%;
    max-width: none;
  }
}
.discovery-map-legend li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.55;
}
.discovery-map-legend li a {
  white-space: normal;
}

/* nearby cards: room below the category · place caption */
.discovery-related-card {
  padding-bottom: 20px;
}
.discovery-related-card span {
  margin-top: 4px;
}

/* hero breadcrumb: breathing room below the solid header */
.discovery-hero {
  padding-top: 14px;
}
.discovery-hero .discovery-crumbs {
  margin-top: 6px;
}


/* ============================================================
   Spacing pass — more air between boxes and text (2026-09)
   ============================================================ */

/* vertical rhythm between white panels */
.discovery-section {
  padding-top: 38px;
}
.discovery-hero {
  padding-bottom: 12px;
}
.discovery-topmap,
.discovery-topgallery {
  margin: 8px 0 26px;
}

/* information panels: roomier internal padding and reading lines */
.discovery-visitor,
.discovery-about,
.discovery-location,
.discovery-sources,
.discovery-faq,
.panel.discovery-visitor,
.panel.discovery-about,
.panel.discovery-location {
  padding: 28px 28px 26px;
}
.discovery-visitor p,
.discovery-about p,
.discovery-location p,
.discovery-sources p,
.discovery-sources li,
.discovery-faq-item p,
.discovery-why-prose,
.discovery-summary {
  line-height: 1.85;
}
.discovery-info-row {
  padding: 13px 0;
}
.discovery-info-row dt {
  padding-top: 1px;
}

/* more air around cards in grids */
.discovery-related-grid,
.discovery-listing-grid,
.discovery-why-grid {
  gap: 18px;
}
.discovery-related-card,
.discovery-listing-card {
  padding: 22px;
}
.discovery-listing-card p {
  margin: 8px 0 4px;
  line-height: 1.75;
}
.discovery-faq-item h3 {
  margin: 18px 0 8px;
}
.discovery-faq-item h3:first-child {
  margin-top: 6px;
}
.discovery-section-head h2 {
  margin-bottom: 10px;
}


/* ============================================================
   Compact language switch — roughly half the previous size
   ============================================================ */
.sd-lang-switch {
  padding: 2px;
  gap: 2px;
}
.sd-lang-switch a.sd-lang-seg {
  min-width: 0;
  height: 15px;
  padding: 0 5px;
  font-size: 9.5px;
  line-height: 1;
  border-radius: 999px;
}
@media (max-width: 720px) {
  .sd-lang-switch a.sd-lang-seg {
    height: 16px;
    min-width: 20px;
    font-size: 10px;
    padding: 0 5px;
  }
}
