/* PostNutCalamity.com
   Heartopia-compatible static hub layout.
   Keep colors in tokens: update this block first, not scattered rules.
*/
:root {
  --primary: #F8A5B8;
  --primary-light: #FFCAD4;
  --primary-dark: #E8899C;
  --primary-readable: #B24F65;
  --secondary: #7BC8F6;
  --secondary-light: #A5DDFB;
  --secondary-dark: #5AADE0;
  --accent: #C9A0DC;
  --accent-light: #DFC5EC;
  --accent-dark: #A87DC2;
  --accent-readable: #714D8F;
  --gold: #F5D76E;
  --success: #8ED16C;
  --success-dark: #6DB855;
  --success-readable: #2F7D42;
  --warning: #F5916E;
  --warning-readable: #A84C2F;
  --bg-main: #FFF9F5;
  --bg-gradient: linear-gradient(135deg, #FFF9F5 0%, #F0F8FF 50%, #FFF5F8 100%);
  --bg-cream: #F6E0B5;
  --bg-warm: #FFF5F8;
  --card-bg: #FFFFFF;
  --border: #F0E6EB;
  --shadow: rgb(248 165 184 / 0.15);
  --text-dark: #4D4254;
  --text-medium: #574A60;
  --text-light: #62566A;
  --section-bg-start: #6F4E8A;
  --section-bg-end: #5F3F78;
  --on-section: #FFFFFF;
  --on-section-muted: #F9F4FF;
  --selection-bg: #FFE4AC;
  --focus-ring: #714D8F;
  --primary-rgb: 248 165 184;
  --primary-light-rgb: 255 202 212;
  --secondary-rgb: 123 200 246;
  --accent-rgb: 201 160 220;
  --accent-dark-rgb: 168 125 194;
  --gold-rgb: 245 215 110;
  --success-rgb: 142 209 108;
  --warning-rgb: 245 145 110;
  --white-rgb: 255 255 255;
  --bg-0: var(--bg-main);
  --bg-1: var(--bg-warm);
  --bg-2: #F0F8FF;
  --surface-0: rgb(var(--white-rgb) / 0.9);
  --surface-1: var(--card-bg);
  --surface-2: #FBF8FF;
  --line: var(--border);
  --line-strong: var(--accent-light);
  --text-0: var(--text-dark);
  --text-1: var(--text-medium);
  --text-2: var(--text-light);
  --brand-0: var(--primary);
  --brand-1: var(--accent-readable);
  --brand-2: var(--gold);
  --brand-3: var(--secondary);
  --brand-4: var(--success);
  --danger: var(--warning-readable);
  --shadow-soft: 0 8px 24px var(--shadow);
  --shadow-card: 0 12px 36px var(--shadow);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --container-max: 1100px;
  --header-max: 1400px;
  --font-display: "Fredoka", "Nunito", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Quicksand", "Nunito", "Avenir Next", "Trebuchet MS", "Noto Sans", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
  --font-accent: "Nunito", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

body[data-theme="core"] {
  color-scheme: light;
}

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

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

::selection {
  background: var(--selection-bg);
  color: var(--text-0);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text-0);
  background:
    linear-gradient(135deg, var(--bg-0) 0%, var(--bg-2) 50%, var(--bg-1) 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgb(var(--primary-rgb) / 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgb(var(--secondary-rgb) / 0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgb(var(--accent-rgb) / 0.08) 0%, transparent 60%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-1);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(var(--accent-rgb) / 0.14);
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--brand-1);
  line-height: 1.25;
  text-wrap: balance;
}

p {
  margin: 0 0 var(--space-md);
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(var(--accent-rgb) / 0.14);
}

.container {
  width: min(calc(100% - 2rem), var(--container-max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  background: var(--brand-1);
  color: var(--on-section);
}

.skip-link:focus {
  top: var(--space-md);
}

.top-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1001;
  height: 3px;
  background: rgb(var(--accent-rgb) / 0.16);
}

.top-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-0), var(--brand-1), var(--brand-3));
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-0);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--header-max));
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-inline: auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-0);
}

.brand img {
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-0);
}

.brand-copy span {
  font-size: 0.85rem;
  color: var(--text-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-nav > a,
.lang-switcher summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  color: var(--text-0);
  cursor: pointer;
}

.site-nav > a:hover,
.lang-switcher summary:hover {
  background: rgb(var(--primary-light-rgb) / 0.55);
  color: var(--brand-1);
}

.nav-toggle {
  display: none;
  min-height: 42px;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--brand-1);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.lang-switcher {
  position: relative;
}

.lang-switcher summary {
  list-style: none;
}

.lang-switcher summary::-webkit-details-marker {
  display: none;
}

.lang-menu {
  position: absolute;
  top: calc(100% + var(--space-xs));
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 0.25rem;
  padding: var(--space-sm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
}

.lang-menu a {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  color: var(--text-1);
}

.lang-menu a:hover {
  background: var(--bg-1);
}

.heartopia-home {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0 var(--space-3xl);
}

.hero-bg,
.hero-decoration {
  position: absolute;
  pointer-events: none;
}

.hero-bg {
  inset: 0;
  overflow: hidden;
}

.hero-decoration {
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.68;
  animation: float 7s ease-in-out infinite;
}

.hero-decoration-1 {
  width: 320px;
  height: 320px;
  top: 8%;
  right: 8%;
  background: radial-gradient(circle, rgb(var(--primary-rgb) / 0.42), transparent 70%);
}

.hero-decoration-2 {
  width: 260px;
  height: 260px;
  bottom: 12%;
  left: 6%;
  background: radial-gradient(circle, rgb(var(--secondary-rgb) / 0.28), transparent 70%);
  animation-delay: 1.8s;
}

.hero-decoration-3 {
  width: 160px;
  height: 160px;
  top: 42%;
  left: 18%;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.36), transparent 70%);
  animation-delay: 3.5s;
}

.hero-content {
  position: relative;
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  box-shadow: var(--shadow-soft);
  color: var(--brand-1);
  font-weight: 700;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-4);
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  letter-spacing: -0.04em;
}

.hero h1 .highlight {
  position: relative;
  color: var(--primary-readable);
}

.hero h1 .highlight::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.06em;
  left: 0;
  z-index: -1;
  height: 0.18em;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgb(var(--primary-light-rgb) / 0.76), rgb(var(--accent-rgb) / 0.45));
}

.hero-tagline {
  margin-bottom: var(--space-md);
  font-family: var(--font-accent);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: var(--danger);
  font-style: italic;
  font-weight: 800;
}

.hero-description {
  max-width: 730px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  font-size: clamp(1.04rem, 1.6vw, 1.24rem);
  color: var(--text-1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.btn,
.button,
.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: var(--space-md) var(--space-xl);
  border: 0;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.btn:hover,
.button:hover,
.chip-button:hover {
  transform: translateY(-2px);
}

.btn-primary,
.button.primary {
  color: var(--text-0);
  background: linear-gradient(135deg, var(--brand-0), var(--primary-dark));
  box-shadow: var(--shadow-card), 0 4px 15px rgb(var(--primary-rgb) / 0.36);
}

.btn-secondary,
.button.ghost,
.chip-button {
  color: var(--brand-1);
  background: var(--surface-1);
  border: 2px solid var(--line);
}

.btn-outline {
  color: var(--danger);
  background: transparent;
  border: 2px solid var(--danger);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--danger);
  line-height: 1;
}

.hero-stat-label {
  margin-top: var(--space-xs);
  color: var(--text-2);
  font-size: 0.88rem;
}

.section,
.download-section {
  padding: var(--space-4xl) 0;
}

.section-header,
.section-header-inline {
  max-width: 860px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.section-header h2,
.section-header-inline h2,
.section-head h2 {
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  margin-bottom: var(--space-md);
}

.section-header p,
.section-header-inline p,
.section-intro {
  color: var(--text-1);
  font-size: 1.04rem;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--space-lg);
}

.quick-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 205px;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  color: inherit;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.quick-nav-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.quick-nav-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  background: rgb(var(--accent-rgb) / 0.16);
  font-size: 2rem;
}

.quick-nav-item:nth-child(2n) .quick-nav-icon {
  background: rgb(var(--secondary-rgb) / 0.15);
}

.quick-nav-item:nth-child(3n) .quick-nav-icon {
  background: rgb(var(--primary-rgb) / 0.16);
}

.quick-nav-title {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  color: var(--text-0);
  font-weight: 800;
}

.quick-nav-count {
  color: var(--text-2);
  font-size: 0.84rem;
}

.search-panel {
  max-width: 820px;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-0);
  box-shadow: var(--shadow-soft);
}

.search-panel label {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
}

.search-row {
  display: flex;
  gap: var(--space-md);
}

.search-row input {
  flex: 1;
  min-height: 52px;
  padding: 0 var(--space-lg);
  border: 2px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface-1);
  color: var(--text-0);
}

.search-row input:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.14);
}

.microcopy,
.search-results {
  color: var(--text-2);
  font-size: 0.92rem;
}

.search-results {
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.content-stack {
  display: block;
}

.content-stack > section {
  scroll-margin-top: 90px;
}

.content-stack > section:nth-child(odd):not(.tools-section):not(.community-section):not(.codes-section) {
  background: rgb(var(--white-rgb) / 0.35);
}

.content-stack > section:nth-child(even):not(.tools-section):not(.community-section):not(.codes-section) {
  background: rgb(var(--primary-light-rgb) / 0.22);
}

.content-stack > section > * {
  width: min(calc(100% - 2rem), var(--container-max));
  margin-inline: auto;
}

.download-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 22%, rgb(var(--primary-rgb) / 0.15) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgb(var(--secondary-rgb) / 0.12) 0%, transparent 45%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-0) 100%);
}

.download-section .callout,
.download-section .cta-grid {
  margin-top: var(--space-lg);
}

.codes-section,
.tools-section {
  position: relative;
  overflow: hidden;
  color: var(--on-section);
  background: linear-gradient(135deg, var(--section-bg-start), var(--section-bg-end));
}

.codes-section::before,
.tools-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 80%, rgb(var(--primary-rgb) / 0.14), transparent 50%),
    radial-gradient(circle at 80% 20%, rgb(var(--secondary-rgb) / 0.16), transparent 50%);
}

.codes-section > *,
.tools-section > * {
  position: relative;
  z-index: 1;
}

.codes-section h2,
.codes-section h3,
.tools-section h2,
.tools-section h3,
.tools-section h4,
.community-section h2,
.community-section h3 {
  color: var(--on-section);
}

.codes-section p,
.tools-section p,
.community-section p {
  color: var(--on-section-muted);
}

.beginner-section,
.recipe-section,
.npc-section {
  background: var(--bg-cream);
}

.database-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-1) 100%);
}

.community-section {
  color: var(--on-section);
  text-align: center;
  background: linear-gradient(135deg, var(--section-bg-start), var(--section-bg-end));
}

.codes-section .eyebrow,
.tools-section .eyebrow,
.community-section .eyebrow {
  color: var(--on-section-muted);
}

.fish-preview-section,
.gallery-section,
.events-section,
.faq-section {
  background: var(--bg-0);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: var(--space-xs);
  color: var(--brand-1);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background: rgb(var(--accent-rgb) / 0.16);
}

.surface,
.route-card,
.cta-card,
.mini-card,
.cluster-card,
.lang-card,
.stat-card,
.faq-item,
.callout,
.table-wrap {
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: var(--shadow-soft);
}

.codes-section :is(.surface, .route-card, .cta-card, .mini-card, .cluster-card, .lang-card, .stat-card, .faq-item, .callout, .table-wrap),
.tools-section :is(.surface, .route-card, .cta-card, .mini-card, .cluster-card, .lang-card, .stat-card, .faq-item, .callout, .table-wrap),
.community-section :is(.surface, .route-card, .cta-card, .mini-card, .cluster-card, .lang-card, .stat-card, .faq-item, .callout, .table-wrap) {
  color: var(--text-0);
  background: var(--surface-1);
}

.codes-section :is(.surface, .route-card, .cta-card, .mini-card, .cluster-card, .lang-card, .stat-card, .faq-item, .callout, .table-wrap) :is(h2, h3, h4, strong),
.tools-section :is(.surface, .route-card, .cta-card, .mini-card, .cluster-card, .lang-card, .stat-card, .faq-item, .callout, .table-wrap) :is(h2, h3, h4, strong),
.community-section :is(.surface, .route-card, .cta-card, .mini-card, .cluster-card, .lang-card, .stat-card, .faq-item, .callout, .table-wrap) :is(h2, h3, h4, strong) {
  color: var(--brand-1);
}

.codes-section :is(.surface, .route-card, .cta-card, .mini-card, .cluster-card, .lang-card, .stat-card, .faq-item, .callout, .table-wrap) p,
.codes-section :is(.surface, .route-card, .cta-card, .mini-card, .cluster-card, .lang-card, .stat-card, .faq-item, .callout, .table-wrap) li,
.tools-section :is(.surface, .route-card, .cta-card, .mini-card, .cluster-card, .lang-card, .stat-card, .faq-item, .callout, .table-wrap) p,
.tools-section :is(.surface, .route-card, .cta-card, .mini-card, .cluster-card, .lang-card, .stat-card, .faq-item, .callout, .table-wrap) li,
.community-section :is(.surface, .route-card, .cta-card, .mini-card, .cluster-card, .lang-card, .stat-card, .faq-item, .callout, .table-wrap) p,
.community-section :is(.surface, .route-card, .cta-card, .mini-card, .cluster-card, .lang-card, .stat-card, .faq-item, .callout, .table-wrap) li {
  color: var(--text-1);
}

.surface,
.route-card,
.cta-card,
.mini-card,
.cluster-card,
.lang-card,
.callout {
  padding: var(--space-lg);
}

.route-grid,
.cards-grid,
.cluster-grid,
.cta-grid,
.note-grid,
.two-col,
.lang-grid {
  display: grid;
  gap: var(--space-lg);
}

.route-grid,
.cards-grid,
.cluster-grid,
.cta-grid,
.note-grid,
.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lang-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lang-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta-card,
.route-card,
.mini-card,
.cluster-card,
.lang-card {
  color: inherit;
}

.cta-card:hover,
.route-card:hover,
.mini-card:hover,
.cluster-card:hover,
.lang-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.copy-link {
  flex: 0 0 auto;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface-1);
  color: var(--brand-1);
  cursor: pointer;
}

.copy-link.copied {
  color: var(--success-dark);
  border-color: var(--success);
}

.callout.warning {
  border: 2px solid rgb(var(--warning-rgb) / 0.28);
  background: rgb(var(--white-rgb) / 0.76);
}

.meta-list,
.ordered-list,
.footer-links {
  margin: 0;
  padding-left: var(--space-lg);
}

.meta-list li + li,
.ordered-list li + li,
.footer-links li + li {
  margin-top: var(--space-sm);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

th,
td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: white;
  background: var(--brand-1);
}

tbody tr:hover {
  background: rgb(var(--primary-light-rgb) / 0.22);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 0;
  margin: var(--space-sm) 0 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background: var(--surface-1);
  color: var(--text-1);
  box-shadow: var(--shadow-soft);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: var(--space-md) 0 var(--space-md) var(--space-2xl);
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 0.25rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-0), var(--brand-1));
  box-shadow: 0 0 0 5px rgb(var(--primary-rgb) / 0.16);
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 2.1rem;
  bottom: -0.4rem;
  left: 0.66rem;
  width: 2px;
  background: rgb(var(--accent-rgb) / 0.35);
}

.timeline li:last-child::after {
  display: none;
}

.timeline-title {
  display: block;
  color: var(--brand-1);
  font-weight: 800;
}

.faq-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.faq-list {
  display: grid;
  gap: var(--space-md);
}

.faq-item {
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-lg);
  font-family: var(--font-display);
  font-weight: 800;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-1);
}

.footer {
  padding: var(--space-3xl) 0 var(--space-lg);
  border-top: 1px solid var(--line);
  background: var(--surface-1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 1fr;
  gap: var(--space-2xl);
}

.footer h4 {
  margin-bottom: var(--space-md);
}

.footer-brand {
  display: grid;
  align-items: start;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

[data-filter-state="dimmed"] {
  opacity: 0.28;
}

mark.search-hit {
  border-radius: 0.2em;
  background: rgb(var(--gold-rgb) / 0.46);
  color: var(--text-0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: var(--space-md);
    left: var(--space-md);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-1);
    box-shadow: var(--shadow-card);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: var(--space-3xl);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .footer-grid,
  .route-grid,
  .cards-grid,
  .cluster-grid,
  .cta-grid,
  .note-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .content-stack > section > * {
    width: min(calc(100% - 1.25rem), var(--container-max));
  }

  .header-inner {
    width: min(calc(100% - 1.25rem), var(--header-max));
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero-badge {
    align-items: flex-start;
    border-radius: var(--radius-lg);
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(1.62rem, 7vw, 1.75rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero h1 .highlight {
    display: block;
  }

  .hero-tagline,
  .hero-description {
    max-width: 28ch;
    margin-inline: auto;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.94rem;
  }

  .hero-actions,
  .search-row,
  .footer-bottom {
    flex-direction: column;
  }

  .btn,
  .button,
  .chip-button {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .quick-nav-grid,
  .lang-grid,
  .lang-grid.compact {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
