/* Biopartner Junak — mobile-first layout, zero dependencies */

:root {
  color-scheme: light dark;

  --bg: #f6f9f7;
  --surface: #ffffff;
  --surface-elevated: #eef4f0;
  --text: #1a2e22;
  --text-muted: #4a6358;
  --accent: #3d6b52;
  --accent-soft: #5a8f72;
  --accent-muted: rgba(61, 107, 82, 0.12);
  --border: rgba(61, 107, 82, 0.15);
  --shadow: 0 4px 24px rgba(26, 46, 34, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --space: clamp(1rem, 4vw, 2rem);
  --max-width: 680px;
  --font-base: clamp(1rem, 2.5vw, 1.0625rem);
  --font-h1: clamp(1.875rem, 5vw, 3rem);
  --font-h2: clamp(1.35rem, 3.5vw, 1.75rem);
}

@media (min-width: 768px) {
  :root {
    --max-width: 960px;
  }
}

@media (min-width: 1200px) {
  :root {
    --max-width: 1120px;
  }
}

[data-theme="dark"] {
  --bg: #121a16;
  --surface: #1a2420;
  --surface-elevated: #222e28;
  --text: #e8f2ec;
  --text-muted: #9bb5a8;
  --accent: #6baf88;
  --accent-soft: #8ec9a4;
  --accent-muted: rgba(107, 175, 136, 0.14);
  --border: rgba(107, 175, 136, 0.18);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a16;
    --surface: #1a2420;
    --surface-elevated: #222e28;
    --text: #e8f2ec;
    --text-muted: #9bb5a8;
    --accent: #6baf88;
    --accent-soft: #8ec9a4;
    --accent-muted: rgba(107, 175, 136, 0.14);
    --border: rgba(107, 175, 136, 0.18);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  }
}

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

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

[id] {
  scroll-margin-top: calc(var(--header-offset) + 0.75rem);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .nav-toggle__icon {
    transition: none;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--font-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

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

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

/* Header */

.site-header {
  --header-offset: 4.25rem;
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: calc(var(--max-width) + 2 * var(--space));
  margin-inline: auto;
  padding: 0.75rem var(--space);
  min-height: var(--header-offset);
}

.brand {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
}

@media (max-width: 899px) {
  .brand {
    max-width: calc(100% - 6.5rem);
  }
}

.brand-mark {
  flex-shrink: 0;
  height: clamp(32px, 8vw, 36px);
  width: auto;
  max-width: min(100%, 16.75rem);
}

.brand-mark__text {
  user-select: none;
}

@media (max-width: 399px) {
  .brand-mark {
    width: 87px;
  }

  .brand-mark__text {
    display: none;
  }
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
}

.header-cta:hover {
  opacity: 0.92;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: var(--surface-elevated);
  color: var(--accent);
}

.nav-toggle__icon {
  width: 22px;
  height: 22px;
}

.nav-toggle__icon--close {
  display: none;
}

.site-header.is-nav-open .nav-toggle__icon--open {
  display: none;
}

.site-header.is-nav-open .nav-toggle__icon--close {
  display: block;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  border: none;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.58);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop[hidden] {
  display: none !important;
}

[data-theme="dark"] .nav-backdrop {
  background: rgba(0, 0, 0, 0.74);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-backdrop {
    background: rgba(0, 0, 0, 0.74);
  }
}

.site-nav {
  position: fixed;
  top: var(--header-offset);
  left: 0;
  right: 0;
  z-index: 45;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0.75rem var(--space) 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  max-height: calc(100dvh - var(--header-offset));
  overflow-y: auto;
}

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

@media (max-width: 899px) {
  html.no-js .site-nav {
    display: flex;
    position: static;
    box-shadow: none;
    border-bottom: none;
    max-height: none;
    padding: 0.75rem 0 0;
    background: transparent;
  }

  html.no-js .nav-toggle,
  html.no-js .nav-backdrop {
    display: none !important;
  }

  html.no-js .header-inner {
    flex-wrap: wrap;
  }

  html.no-js .site-nav a {
    min-height: 44px;
    padding-inline: 0.25rem;
  }
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--surface-elevated);
}

.nav-cta {
  margin-top: 0.5rem;
  justify-content: center;
  color: #fff !important;
  background: var(--accent);
}

.nav-cta:hover {
  opacity: 0.92;
  background: var(--accent);
}

@media (min-width: 900px) {
  .nav-toggle,
  .nav-backdrop,
  .nav-cta {
    display: none !important;
  }

  .header-inner {
    gap: 1rem;
  }

  .brand {
    flex: 0 1 auto;
  }

  .site-nav {
    position: static;
    display: flex !important;
    flex: 1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    padding: 0 0.5rem;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }

  .site-nav a {
    min-height: auto;
    padding: 0;
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  .site-nav a:hover {
    background: transparent;
  }

  .header-cta {
    display: inline-flex;
  }

  body.nav-open {
    overflow: auto;
  }
}

.theme-notice {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding:
    0
    max(0.75rem, env(safe-area-inset-right, 0px))
    calc(0.85rem + env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.theme-notice.is-visible {
  opacity: 1;
}

.theme-notice__panel {
  position: relative;
  width: min(22rem, 100%);
  padding: 0.75rem 2.5rem 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  transform: translateY(110%);
  transition: transform 0.24s ease;
}

.theme-notice.is-visible .theme-notice__panel {
  transform: translateY(0);
}

.theme-notice__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  color: var(--text-muted);
  cursor: pointer;
}

.theme-notice__close:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
}

.theme-notice__close svg {
  width: 18px;
  height: 18px;
}

.theme-notice__title {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.theme-notice__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.theme-notice__cooldown {
  height: 2px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: var(--accent-muted);
  overflow: hidden;
}

.theme-notice__cooldown-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(1);
  animation: theme-notice-cooldown var(--theme-notice-ms, 4500ms) linear forwards;
}

@keyframes theme-notice-cooldown {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (max-width: 599px) {
  .theme-notice__panel {
    width: 100%;
    padding: 0.7rem 2.45rem 0.65rem 0.8rem;
    border-radius: var(--radius-sm);
  }

  .theme-notice__title {
    font-size: 0.8125rem;
  }

  .theme-notice__text {
    font-size: 0.75rem;
  }
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--surface-elevated);
  color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon,
.theme-toggle .icon-auto {
  display: none;
}

.theme-toggle[data-theme-mode="light"] .icon-sun {
  display: block;
}

.theme-toggle[data-theme-mode="dark"] .icon-moon {
  display: block;
}

.theme-toggle[data-theme-mode="system"] .icon-auto {
  display: block;
}

/* Layout */

.wrap {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--space));
  margin-inline: auto;
  padding-inline: var(--space);
  min-width: 0;
}

.band {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.band + .band {
  border-top: 1px solid var(--border);
}

.band-surface {
  background: var(--surface-elevated);
}

.band-hero {
  padding-top: clamp(2rem, 7vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, var(--accent-muted), transparent 70%),
    var(--bg);
}

h1,
h2 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-h1);
  margin: 0 0 0.875rem;
  max-width: 16ch;
}

h2 {
  font-size: var(--font-h2);
  margin: 0 0 0.75rem;
  color: var(--text);
}

.lead {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 42ch;
}

.muted {
  color: var(--text-muted);
}

.section-heading {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.section-lead {
  margin: 0;
  max-width: 48ch;
  font-size: 1.0625rem;
}

/* Hero */

.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: stretch;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    align-items: center;
  }
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  border-radius: 999px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel__label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-panel__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.hero-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.hero-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-soft);
}

.hero-panel__list li:last-child {
  margin-bottom: 0;
}

/* About */

@media (min-width: 900px) {
  .section-intro {
    display: grid;
    grid-template-columns: minmax(14rem, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
  }

  .section-intro .section-heading {
    margin-bottom: 0;
  }
}

.prose-cols {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .prose-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }
}

.prose-cols p {
  margin: 0;
}

.section-intro-more {
  margin-top: 1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
}

.btn-block {
  width: 100%;
}

/* Cards */

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  height: 100%;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Legal */

.split-section {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .split-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }

  .split-section__copy h2 {
    margin-top: 0;
  }
}

.split-section__copy p {
  margin: 0;
  max-width: 42ch;
}

.check-list {
  margin: 0;
  padding: 1.25rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--accent-soft);
  border-radius: 2px;
  transform: rotate(45deg);
}

.check-list li:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 2rem;
    padding: 1.5rem;
  }

  .check-list li {
    margin-bottom: 0;
  }
}

/* Contact */

.contact-section {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .contact-section {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
}

.contact-section__intro h2 {
  margin-top: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-style: normal;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-raised);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .footer-social {
    justify-content: flex-end;
  }
}

address.contact-links {
  margin: 0;
}

.contact-note {
  margin: 1rem 0 0;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

@media (min-width: 900px) {
  .contact-note {
    margin-top: 1.25rem;
  }

  .contact-links {
    position: sticky;
    top: 5.5rem;
  }
}

/* Footer — mobile first */

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand,
.footer-meta {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "brand meta"
      "nav nav";
    column-gap: clamp(1.5rem, 4vw, 3rem);
    row-gap: 1.25rem;
    text-align: left;
    align-items: start;
  }

  .footer-brand {
    grid-area: brand;
    text-align: left;
  }

  .footer-meta {
    grid-area: meta;
    text-align: right;
    justify-self: end;
  }

  .footer-nav {
    grid-area: nav;
    justify-content: flex-start;
  }
}

.footer-nav a {
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.site-footer p {
  margin: 0;
}

/* Subpages */

.page-header {
  padding-block: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.page-header h1 {
  margin: 0 0 0.75rem;
  font-size: var(--font-h1);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: none;
}

.page-header .lead {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(1.0625rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
}

.content-page {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.content-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: var(--font-h2);
}

.content-page h2:first-child {
  margin-top: 0;
}

.content-page h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
}

.content-page p,
.content-page li {
  color: var(--text-muted);
}

.content-page ul,
.content-page ol {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
}

.content-page li + li {
  margin-top: 0.35rem;
}

.fact-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fact-grid li {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.fact-grid strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.region-block {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.region-block h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.note-box {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-soft);
}

.link-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

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

.link-card {
  display: block;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
}

.link-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--text);
}

.link-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cta-band {
  padding-block: 2rem;
  text-align: center;
}

.site-nav a.is-active {
  color: var(--accent);
  background: var(--accent-muted);
}

/* Theme toggle — cross-fade transition (View Transitions API + opacity fallback) */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: ease;
}

html.is-theme-switching {
  transition: opacity 0.28s ease;
  opacity: 0.72;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  html.is-theme-switching {
    transition: none;
    opacity: 1;
  }

  .theme-notice,
  .theme-notice__panel,
  .theme-notice__cooldown-bar {
    transition: none;
    animation: none;
  }

  .theme-notice__cooldown-bar {
    transform: scaleX(0);
  }
}
