/* The Claddagh — Meaning Explorer & Quiz (02-DESIGN) */

:root {
  --bg-primary: #0a0e1a;
  --bg-surface: #1a2035;
  --bg-surface-hover: #232a42;
  --gold: #c9a84c;
  --gold-light: #dfc777;
  --green: #2d6b4f;
  --green-light: #3d8a68;
  --ivory: #f0ead6;
  --ivory-muted: #a89f8b;
  --copper: #b87333;
  --red-heart: #8b2e3b;
  --border: rgba(201, 168, 76, 0.15);
  --container-max: 1200px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ivory);
  background-color: transparent;
  position: relative;
  z-index: 1;
}

/* Fixed Claddagh ring plate (extracted still); content scrolls over it */
.page-fixed-ring {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-fixed-ring__img {
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero-ring-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Do not use background-attachment: fixed here — iOS Safari breaks fixed backgrounds on child layers; .page-fixed-ring is position:fixed */
}

.page-fixed-ring__shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.4);
}

#main-content {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #c9a84c, #dfc777, #c9a84c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gold);
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ivory);
}

@media (min-width: 1024px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  body {
    font-size: 1.125rem;
  }
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 64px;
  }
}

.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gold);
}

.site-logo:hover {
  text-decoration: none;
  color: var(--gold-light);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ivory-muted);
}

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

.section {
  padding: 80px 0;
  position: relative;
  scroll-margin-top: 72px;
  background: rgba(10, 14, 26, 0.82);
}

@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }
}

.section--surface {
  background: rgba(26, 32, 53, 0.85);
}

.section--hero {
  /* Fully transparent so fixed ring shows through */
  background: transparent;
  padding-top: 48px;
  padding-bottom: 80px;
}

@media (min-width: 1024px) {
  .section--hero {
    padding-top: 64px;
    padding-bottom: 120px;
  }
}

.knot-divider {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 24px;
  margin: 0 auto;
  opacity: 0.18;
  color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-grid {
  display: block;
  max-width: 40rem;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero__subhead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ivory-muted);
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .hero__subhead {
    font-size: 1.5rem;
  }
}

.hero__lead {
  font-weight: 400;
}

.hero__lead strong {
  color: var(--ivory);
  font-weight: 600;
}

.hero-animate .hero__title {
  animation: fadeUp 0.8s var(--ease-out) both;
}

.hero-animate .hero__subhead {
  animation: fadeUp 0.8s var(--ease-out) 0.15s both;
}

.hero-animate .hero__lead {
  animation: fadeUp 0.8s var(--ease-out) 0.3s both;
}

.hero-animate .hero__trust-inline {
  animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}

.hero-animate .hero__actions {
  animation: fadeUp 0.8s var(--ease-out) 0.5s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-animate .hero__title,
  .hero-animate .hero__subhead,
  .hero-animate .hero__lead,
  .hero-animate .hero__trust-inline,
  .hero-animate .hero__actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.trust-micro {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ivory-muted);
  line-height: 1.5;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.trust-micro--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.trust-micro span {
  white-space: nowrap;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ivory-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

@media (min-width: 1024px) {
  .btn {
    font-size: 1rem;
  }
}

.btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--gold);
  color: var(--bg-primary);
}

.btn--primary:hover {
  background: var(--gold-light);
  transform: scale(1.02);
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.25);
}

.btn--secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  text-decoration: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1rem;
}

.claddagh-ring-svg {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(201, 168, 76, 0.12));
}

@media (min-width: 1024px) {
  .claddagh-ring-svg {
    max-width: 400px;
  }
}

.claddagh-ring-svg .stroke-main {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.claddagh-ring-svg .heart-fill {
  fill: none;
  stroke: var(--red-heart);
  stroke-width: 2;
}

.claddagh-ring-svg .hit {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
}

.claddagh-ring-svg .hit:focus {
  outline: none;
}

.claddagh-ring-svg .hit:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
  border-radius: 4px;
}

.claddagh-ring-svg.is-draw .draw-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawRing 2s var(--ease-in-out) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .claddagh-ring-svg.is-draw .draw-path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@keyframes drawRing {
  to {
    stroke-dashoffset: 0;
  }
}

.symbol-glow-heart .heart-glow,
.symbol-glow-crown .crown-glow,
.symbol-glow-hands .hands-glow {
  opacity: 0.55;
}

.heart-glow,
.crown-glow,
.hands-glow {
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}

.ring-anatomy-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ring-anatomy-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.symbol-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.symbol-card:hover,
.symbol-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.1);
}

.symbol-card:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.symbol-card__gaelic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ivory-muted);
  margin-bottom: 0.25rem;
}

.symbol-card__label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.how-wear-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .how-wear-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wear-option {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  min-height: 48px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.wear-option:hover {
  border-color: rgba(201, 168, 76, 0.5);
}

.wear-option.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.08);
}

.wear-option:not(.is-active) {
  opacity: 0.65;
}

.wear-option:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.wear-option__status {
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

.how-wear-visual {
  margin: 2rem auto;
  max-width: 280px;
}

.legend-chapter {
  margin-bottom: 3rem;
  max-width: 42rem;
}

.legend-chapter h3 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.mens-subsection {
  margin: 2rem 0;
}

.mens-subsection h3 {
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.mens-subsection ul {
  margin: 0;
  padding-left: 1.25rem;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 2rem 0;
}

@media (min-width: 1024px) {
  .product-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-mini {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.product-mini:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.1);
}

.product-mini__link {
  display: block;
  color: inherit;
}

.product-mini img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.product-mini__body {
  padding: 12px;
}

.product-mini__name {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  color: var(--ivory);
}

.product-mini__meta {
  font-size: 0.75rem;
  color: var(--ivory-muted);
}

.celtic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out);
}

.celtic-card.is-open {
  border-color: var(--gold);
}

.celtic-card__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}

.celtic-card__toggle:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: -2px;
}

.celtic-card__chevron {
  color: var(--gold);
  transition: transform 0.3s var(--ease-out);
}

.celtic-card.is-open .celtic-card__chevron {
  transform: rotate(180deg);
}

.celtic-card__panel {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}

.celtic-card.is-open .celtic-card__panel {
  display: block;
}

.celtic-card__panel p {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .trust-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item__icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.trust-item__title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ivory);
  margin-bottom: 0.25rem;
}

.trust-item__detail {
  font-size: 0.8125rem;
  color: var(--ivory-muted);
  line-height: 1.5;
}

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--ivory-muted);
  background: rgba(10, 14, 26, 0.92);
  position: relative;
  z-index: 1;
}

.audio-ambience-toggle {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(10, 14, 26, 0.95);
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.audio-ambience-toggle:hover {
  border-color: var(--gold);
  background: var(--bg-surface);
}

.audio-ambience-toggle:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.audio-ambience-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#irish-ambience-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip: rect(0, 0, 0, 0);
}

.quiz-results-notice {
  font-size: 1rem;
  color: var(--ivory-muted);
  margin-bottom: 1.25rem;
  max-width: 40rem;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 14, 26, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .sticky-cta {
    display: flex;
  }

  /* Hub: sticky bar already has Browse guides / Find ring — hide duplicate hero row */
  body.page-hub .hero__actions {
    display: none;
  }

  body {
    padding-bottom: 72px;
  }

  .audio-ambience-toggle {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

.sticky-cta .btn {
  padding: 12px 18px;
  font-size: 0.8125rem;
  min-height: 44px;
}

/* Quiz page — match explorer: navy + gold, fixed ring plate behind content */
.quiz-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

.quiz-main {
  flex: 1;
  padding: 2rem 0 4rem;
  position: relative;
  z-index: 1;
}

.quiz-layout #quiz-results {
  padding-top: 0.5rem;
}

.quiz-layout #quiz-results h2 {
  background: linear-gradient(135deg, #c9a84c, #dfc777, #c9a84c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quiz-progress {
  height: 4px;
  background: var(--bg-surface);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0%;
  transition: width 0.35s var(--ease-out);
}

.quiz-step-wrap {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  isolation: isolate;
}

.quiz-step {
  width: 100%;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

.quiz-step.is-out-left {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateX(-40px);
  opacity: 0;
  pointer-events: none;
}

.quiz-step.is-in-right {
  transform: translateX(40px);
  opacity: 0;
}

.quiz-step.is-active {
  position: relative;
  transform: translateX(0);
  opacity: 1;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.quiz-option:hover {
  border-color: rgba(201, 168, 76, 0.45);
}

.quiz-option.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.12);
}

.quiz-option:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.quiz-option__emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.quiz-meta {
  font-size: 0.875rem;
  color: var(--ivory-muted);
  margin-bottom: 1rem;
}

.quiz-back {
  margin-top: 1.5rem;
  background: none;
  border: none;
  color: var(--ivory-muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
}

.quiz-back:hover {
  color: var(--gold);
}

.quiz-skip {
  margin-top: 1rem;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.swatch--silver {
  background: linear-gradient(145deg, #e8e8e8, #a8a8a8);
}

.swatch--gold {
  background: linear-gradient(145deg, #dfc777, #a67c00);
}

.swatch--white-gold {
  background: linear-gradient(145deg, #f0f0f5, #c0c0c8);
}

.swatch--rose {
  background: linear-gradient(145deg, #e8b4b4, #b76e79);
}

.results-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.result-card {
  background: rgba(26, 32, 53, 0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.result-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.1);
}

.result-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.result-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.result-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--ivory);
}

.result-card__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(45, 107, 79, 0.35);
  color: var(--green-light);
  border: 1px solid rgba(45, 107, 79, 0.5);
  width: fit-content;
}

.result-card__trust {
  font-size: 0.75rem;
  color: var(--ivory-muted);
}

.result-card .btn {
  margin-top: auto;
  width: 100%;
}

.quiz-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ivory-muted);
}

.knot-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 3s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .knot-spinner {
    animation: none;
    border-top-color: var(--border);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.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;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--ivory-muted);
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  margin: 0 0.35rem;
  opacity: 0.7;
}

.breadcrumb__current {
  color: var(--ivory-muted);
}

.hub-cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .hub-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hub-card {
  margin: 0;
}

.hub-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: rgba(26, 32, 53, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.hub-card__link:hover {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.1);
}

.hub-card__emoji {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.hub-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.hub-card__text {
  font-size: 0.95rem;
  color: var(--ivory-muted);
  margin: 0 0 1rem;
  flex: 1;
}

.hub-card__cta {
  font-weight: 500;
  color: var(--gold-light);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.meanings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.meanings-table th,
.meanings-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.meanings-table th {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
}

.meanings-table td:first-child {
  font-weight: 500;
  color: var(--ivory);
}

.text-link {
  color: var(--gold);
  font-weight: 500;
}

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

.content-quote {
  margin: 1.5rem 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--gold);
  color: var(--ivory-muted);
}

.content-quote p {
  margin: 0;
}

.content-quote p + p {
  margin-top: 0.75rem;
}

.symbol-figure {
  margin: 1.25rem 0 0;
}

.symbol-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.faq-q {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  margin: 1.75rem 0 0.5rem;
}

#faq .faq-q:first-of-type {
  margin-top: 0;
}
