/* ==========================================================================
   Pono Petroleum — base.css
   Token-driven layout and components. Every color, font, radius, shadow,
   and density value comes from custom properties defined per design
   direction in themes.css. This file contains no theme-specific values.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image: var(--bg-texture, none);
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--h-weight, 700);
  text-transform: var(--h-transform, none);
  letter-spacing: var(--h-tracking, normal);
  line-height: var(--h-line, 1.15);
  color: var(--c-heading, var(--c-text));
  overflow-wrap: break-word;
}

p,
li,
dd,
dt {
  overflow-wrap: break-word;
}

a {
  color: var(--c-accent);
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

/* --------------------------------------------------------------------------
   Focus & accessibility utilities
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--c-accent-strong);
  color: var(--c-on-accent);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--content-max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

.section--alt {
  background-color: var(--c-bg-alt);
  background-image: var(--bg-texture-alt, none);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--wide-text {
    grid-template-columns: 1.2fr 1fr;
  }
}

.flow > * + * {
  margin-top: var(--stack-gap, 1rem);
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.kicker {
  font-family: var(--font-data, var(--font-body));
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-kicker, var(--c-accent));
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  max-width: 60ch;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 46rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

.section-head .lede {
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Placeholder media blocks — replaced later by real photography.
   Keep the same aspect-ratio when swapping in an <img>.
   -------------------------------------------------------------------------- */
.ph {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 1rem;
  background: var(--ph-bg);
  border: 2px dashed var(--ph-border);
  border-radius: var(--radius-md);
  color: var(--ph-label);
  font-family: var(--font-data, var(--font-body));
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* People-forward alternate placeholder — hidden except where a theme
   (Community & Trust) swaps it in */
.ph--people {
  display: none;
}

/* Aspect-ratio utilities for media slots — themes may override these to
   reshape a slot, so keep ratios as classes, not inline styles. */
.r-16x9 {
  aspect-ratio: 16 / 9;
}

.r-21x9 {
  aspect-ratio: 21 / 9;
}

.r-4x3 {
  aspect-ratio: 4 / 3;
}

.r-3x2 {
  aspect-ratio: 3 / 2;
}

.r-3x4 {
  aspect-ratio: 3 / 4;
}

.r-1x1 {
  aspect-ratio: 1 / 1;
}

.r-3x1 {
  aspect-ratio: 3 / 1;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8em 1.6em;
  border-radius: var(--btn-radius);
  font-family: var(--font-heading);
  font-weight: var(--btn-weight, 600);
  text-transform: var(--btn-transform, none);
  letter-spacing: var(--btn-tracking, normal);
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--c-accent-strong);
  color: var(--c-on-accent);
  box-shadow: var(--btn-shadow, none);
}

.btn--primary:hover {
  background: var(--c-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--c-heading, var(--c-text));
  border-color: var(--c-border);
}

.btn--ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--c-header-bg, var(--c-bg));
  border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--c-heading, var(--c-text));
}

.logo__img {
  display: block;
  height: 3rem;
  width: auto;
  flex: none;
}

.footer__brand .logo__img {
  height: 3.6rem;
}

/* On dark themes the color logo sits on a soft light chip so it stays
   legible; light themes place it directly on the background. */
[data-theme="coastal"] .logo__img,
[data-theme="industrial"] .logo__img {
  background: #f7f4ee;
  padding: 0.3rem 0.55rem;
  border-radius: 10px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--c-text);
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--c-accent);
}

.site-nav a[aria-current="page"] {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

/* The nav CTA is a button, not a text link — undo link styling, and pin the
   label color: .site-nav a's color would otherwise out-specify .btn--primary */
.site-nav .nav-cta {
  border-bottom: none;
  color: var(--c-on-accent);
}

.site-nav .nav-cta:hover {
  color: var(--c-on-accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}

.nav-toggle__bars {
  position: relative;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 5px;
}

/* Mobile nav: without JS the link list simply wraps below the logo and
   stays usable; with JS (html.js) it becomes a hamburger disclosure. */
@media (max-width: 767px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0.5rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--c-border);
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--c-border);
    box-shadow: inset 3px 0 0 var(--c-accent);
    padding-left: 0.75rem;
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    border-bottom: 2px solid transparent;
  }

  /* Hamburger layout only activates once main.js has actually run (it
     removes the button's hidden attribute) — if the script fails to load,
     the link list stays visible instead of hiding behind a dead button. */
  html.js .nav-toggle:not([hidden]) {
    display: inline-flex;
  }

  html.js .nav-toggle:not([hidden]) ~ .site-nav {
    display: none;
  }

  html.js .nav-toggle:not([hidden]) ~ .site-nav.is-open {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Hero (Home) — superset markup re-laid-out per theme in themes.css.
   Default layout = Modern Local: text left, photo right.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--section-pad);
  background-image: var(--bg-texture-hero, none);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-areas: "text media";
  grid-template-columns: 1.1fr 1fr;
}

.hero__text {
  grid-area: text;
}

.hero__media {
  grid-area: media;
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
}

/* Key-phrase emphasis in the headline — each theme styles it its own way */
.hero__title em {
  font-style: normal;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--c-text-muted);
  max-width: 54ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 899px) {
  .hero__inner {
    grid-template-areas:
      "text"
      "media";
    grid-template-columns: 1fr;
  }
}

/* Stat strip */
.hero__stats {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat dd {
  font-family: var(--font-data, var(--font-heading));
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--c-heading, var(--c-text));
  line-height: 1.1;
}

.stat dt {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-top: 0.35rem;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
}

.stats-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   Cards (services overview)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: var(--card-border, 1px solid var(--c-border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card__media {
  padding: var(--card-media-pad, 0);
}

.card__media .ph {
  border-radius: 0;
  border-width: 0 0 2px;
  height: 100%;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
  padding: var(--card-pad);
}

.card__title {
  font-size: 1.15rem;
}

.card__text {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.card__link {
  font-weight: 600;
  text-decoration: none;
  color: var(--c-accent);
}

.card__link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Feature rows (differentiators)
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--c-accent);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}

.feature__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Industries / logo strip
   -------------------------------------------------------------------------- */
.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.industry-list li {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--c-border);
  border-radius: var(--btn-radius);
  background: var(--c-surface);
}

.logo-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
}

.logo-strip .ph {
  font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: var(--section-pad);
  background: var(--c-cta-bg, var(--c-bg-alt));
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--c-cta-text, var(--c-heading, var(--c-text)));
}

.cta-band p {
  margin: 0.75rem auto 1.75rem;
  max-width: 44rem;
  color: var(--c-cta-muted, var(--c-text-muted));
}

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */
.page-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: var(--c-bg-alt);
  background-image: var(--bg-texture-hero, none);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  max-width: 24ch;
}

.page-hero .lede {
  margin-top: 1rem;
}

.page-hero__banner {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   Service articles & spec list
   -------------------------------------------------------------------------- */
.service + .service {
  border-top: 1px solid var(--c-border);
}

.service h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.service ul:not([class]) {
  padding-left: 1.2rem;
}

.service li + li {
  margin-top: 0.4rem;
}

.spec-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-list > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--c-surface);
}

.spec-list > div:nth-child(even) {
  background: var(--c-bg-alt);
}

.spec-list dt {
  font-weight: 700;
  font-family: var(--font-data, var(--font-body));
  font-size: 0.9rem;
}

.spec-list dd {
  color: var(--c-text-muted);
}

@media (max-width: 600px) {
  .spec-list > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* --------------------------------------------------------------------------
   Values row (About)
   -------------------------------------------------------------------------- */
.value-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
}

.value {
  padding: var(--card-pad);
  background: var(--c-surface);
  border: var(--card-border, 1px solid var(--c-border));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.value h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.value p {
  font-size: 0.95rem;
  color: var(--c-text-muted);
}

/* Leadership card */
.leader-card {
  display: grid;
  gap: 2rem;
  align-items: start;
  max-width: 52rem;
}

@media (min-width: 700px) {
  .leader-card {
    grid-template-columns: 14rem 1fr;
  }
}

.leader-card h3 {
  font-size: 1.3rem;
}

.leader-card .role {
  color: var(--c-accent);
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
}

/* Story slots (About community section) */
.story-slot {
  padding: var(--card-pad);
  background: var(--c-surface);
  border: var(--card-border, 1px solid var(--c-border));
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius-md);
  color: var(--c-text-muted);
}

.story-slot + .story-slot {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.info-block + .info-block {
  margin-top: 1.5rem;
}

.info-block h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  margin-bottom: 0.35rem;
}

.info-block a {
  color: var(--c-accent);
  font-weight: 600;
}

/* FAQ */
.faq {
  max-width: 46rem;
}

.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-surface);
}

.faq__item + .faq__item {
  margin-top: 0.75rem;
}

.faq__item summary {
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: var(--h-weight, 700);
  cursor: pointer;
}

.faq__item summary:hover {
  color: var(--c-accent);
}

.faq__item p {
  padding: 0 1.25rem 1rem;
  color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.field label .optional {
  font-weight: 400;
  color: var(--c-text-muted);
  font-size: 0.85rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 1px;
}

.field [aria-invalid="true"] {
  border-color: var(--c-error, #c0392b);
}

.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-error, #c0392b);
}

.field-error.is-visible {
  display: block;
}

.form-note {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}

/* Stays rendered (empty = zero height) so it is a live region already in
   the accessibility tree when error text is injected */
.form-alert {
  color: var(--c-error, #c0392b);
  font-weight: 600;
}

.form-alert.is-visible {
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--c-error, #c0392b);
  border-radius: var(--radius-sm);
}

.form-status {
  display: none;
  padding: var(--card-pad);
  background: var(--c-surface);
  border: 2px solid var(--c-accent);
  border-radius: var(--radius-md);
}

.form-status.is-visible {
  display: block;
}

.form-status h3 {
  margin-bottom: 0.5rem;
}

/* Honeypot — hidden from humans, present for bots */
.hp-field {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-footer-bg, var(--c-bg-alt));
  border-top: 1px solid var(--c-border);
  padding-block: clamp(2.5rem, 5vw, 4rem) 0;
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  padding-bottom: 2.5rem;
}

.footer__brand p {
  color: var(--c-text-muted);
  margin-top: 0.75rem;
  max-width: 28ch;
}

.footer__heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__col li + li {
  margin-top: 0.5rem;
}

.footer__col a {
  color: var(--c-text);
  text-decoration: none;
}

/* Contact links sit next to plain text in the same list — keep a visible
   non-hover affordance */
.footer__col a[href^="tel:"],
.footer__col a[href^="mailto:"] {
  text-decoration: underline;
}

.footer__col a:hover {
  color: var(--c-accent);
  text-decoration: underline;
}

.footer__col address {
  font-style: normal;
  color: var(--c-text-muted);
}

.footer__legal {
  border-top: 1px solid var(--c-border);
  padding-block: 1.25rem;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

.footer__legal .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Theme switcher (client design-review tool — see README to remove)
   -------------------------------------------------------------------------- */
.switcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  font-size: 0.9rem;
}

.switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
  font-weight: 600;
}

.switcher__dots {
  display: inline-flex;
  gap: 3px;
}

.switcher__dots i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: 1px solid rgb(0 0 0 / 0.15);
}

.switcher__dots i:nth-child(1) {
  background: var(--c-bg);
}

.switcher__dots i:nth-child(2) {
  background: var(--c-accent);
}

.switcher__dots i:nth-child(3) {
  background: var(--c-text);
}

.switcher__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
}

.switcher__hint {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 1rem;
}

.switcher__option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.switcher__option + .switcher__option {
  margin-top: 0.6rem;
}

.switcher__option:hover {
  border-color: var(--c-accent);
}

.switcher__option:has(input:checked) {
  border-color: var(--c-accent);
  box-shadow: inset 0 0 0 1px var(--c-accent);
}

.switcher__option input {
  margin-top: 0.2rem;
  accent-color: var(--c-accent);
}

.switcher__name {
  font-weight: 700;
}

.switcher__badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-on-accent);
  background: var(--c-accent-strong);
  border-radius: 999px;
}

.switcher__desc {
  grid-column: 2;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

.switcher__swatches {
  grid-column: 2;
  display: inline-flex;
  gap: 4px;
  margin-top: 0.4rem;
}

.switcher__swatches i {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  border: 1px solid rgb(0 0 0 / 0.2);
}

/* Preview chips show each direction's own palette regardless of the
   currently active theme, so these colors are fixed constants. */
.switcher__swatches--community i:nth-child(1) { background: #faf6ef; }
.switcher__swatches--community i:nth-child(2) { background: #556b2f; }
.switcher__swatches--community i:nth-child(3) { background: #6b4e32; }
.switcher__swatches--coastal i:nth-child(1) { background: #0c1a1f; }
.switcher__swatches--coastal i:nth-child(2) { background: #33b3a1; }
.switcher__swatches--coastal i:nth-child(3) { background: #5bb6d9; }
.switcher__swatches--industrial i:nth-child(1) { background: #131a1c; }
.switcher__swatches--industrial i:nth-child(2) { background: #e8a33d; }
.switcher__swatches--industrial i:nth-child(3) { background: #ece9e2; }
.switcher__swatches--modern i:nth-child(1) { background: #ffffff; }
.switcher__swatches--modern i:nth-child(2) { background: #1b7a43; }
.switcher__swatches--modern i:nth-child(3) { background: #4aa3c7; }

/* --------------------------------------------------------------------------
   Motion preferences — neutralize all animation/transition site-wide
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
