/* ============================================
   Subpage Components
   ============================================ */

/* ── Page Header (hero-style bg) ── */
.page-header {
  position: relative;
  padding: 150px 0 48px;
  overflow: hidden;
  box-shadow: 1px 1px 45px rgba(0, 0, 0, 0.11) inset;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    #CBD6E0;
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: var(--font-family-head);
  font-size: 40px;
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  color: #000;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: rgba(0, 0, 0, 0.6);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: #000;
}

/* ── Page Content ── */
.page-content {
  max-width: 960px;
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.page-date {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

ul[type="disc"] {
  list-style: disc;
  padding-inline-start: 25px;
  margin-bottom: 20px;
}

.content-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-primary);
  text-align: justify;
}

.content-text p {
  margin-bottom: 20px;
}

.content-text h2 {
  font-family: var(--font-family-head);
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 40px 0 20px;
  line-height: 1.3;
}

.content-text h3 {
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin: 32px 0 16px;
}

/* ── Bullet List ── */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  list-style: none;
  padding: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-yellow);
}

.bullet-list .bullet-list {
  margin: 8px 0 4px;
  gap: 6px;
}

.bullet-list .bullet-list li::before {
  width: 4px;
  height: 4px;
  top: 10px;
  border-radius: 0;
  background: var(--color-text-tertiary);
}

/* ── Glass Card — uses liquid-glass from glass.css ── */
.glass-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 0.5px rgba(255, 255, 255, 0.12),
    var(--glass-inner-shadow);
}

[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .glass-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  border-color: rgba(0, 0, 0, 0.15);
}

.glass-card h3 {
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.glass-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 2;
}

/* ── Accordion — liquid glass items ── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
}

.accordion__item {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--glass-shadow);
}

/* Specular rim light */
.accordion__item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  background:
    radial-gradient(ellipse 50% 35% at 12% 8%, rgba(255,255,255,0.03), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 25%),
    linear-gradient(90deg, rgba(255,255,255,0.025) 0%, transparent 15%);
}

/* Inner edge catch */
.accordion__item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  transition: box-shadow 0.3s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 1px 0 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.10),
    inset -1px 0 0 rgba(0,0,0,0.05);
}

.accordion__item:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.accordion__item:hover::before {
  opacity: 1;
}

.accordion__item:hover::after {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 1px 0 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.14),
    inset -1px 0 0 rgba(0,0,0,0.08);
}

/* Light theme */
[data-theme="light"] .accordion__item {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .accordion__item:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .accordion__item::before {
  background:
    radial-gradient(ellipse 50% 35% at 12% 8%, rgba(0,0,0,0.05), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, transparent 25%),
    linear-gradient(90deg, rgba(0,0,0,0.03) 0%, transparent 15%);
}

[data-theme="light"] .accordion__item::after {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.90),
    inset 1px 0 0 rgba(255,255,255,0.50),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    inset -1px 0 0 rgba(0,0,0,0.08);
}

[data-theme="light"] .accordion__item:hover::after {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 1px 0 0 rgba(255,255,255,0.60),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    inset -1px 0 0 rgba(0,0,0,0.12);
}

.accordion__toggle {
  display: none;
}

.accordion__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  background: transparent;
  position: relative;
  z-index: 2;
  transition: background 0.3s ease;
}

.accordion__header:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .accordion__header:hover {
  background: rgba(255, 255, 255, 0.3);
}

.accordion__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  margin-left: auto;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion__icon svg {
  width: 16px;
  height: 16px;
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  position: relative;
  z-index: 2;
}

.accordion__content {
  padding: 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 2;
}

.accordion__content p { margin-bottom: 12px; }
.accordion__content p:last-child { margin-bottom: 0; }

.accordion__toggle:checked ~ .accordion__header {
  color: var(--color-text-primary);
}

.accordion__toggle:checked ~ .accordion__header .accordion__icon {
  transform: rotate(180deg);
}

.accordion__toggle:checked ~ .accordion__body {
  max-height: 600px;
}

.accordion__toggle:checked ~ .accordion__body .accordion__content {
  padding: 16px 24px 24px;
}

.accordion__badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(248, 215, 72, 0.12);
  border: 1px solid rgba(248, 215, 72, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-yellow);
  flex-shrink: 0;
}

[data-theme="light"] .accordion__badge {
  background: rgba(248, 215, 72, 0.25);
  color: #5C4A00;
}

/* ── Numbered Steps — liquid glass markers ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
  padding-left: 4px;
}

.step {
  display: flex;
  gap: 20px;
  position: relative;
}

.step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand-yellow);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(248, 215, 72, 0.3);
}

.step__line {
  width: 2px;
  flex: 1;
  background: var(--glass-border);
  min-height: 20px;
}

.step:last-child .step__line {
  display: none;
}

.step__body {
  padding-bottom: 28px;
  flex: 1;
}

.step:last-child .step__body {
  padding-bottom: 0;
}

.step__title {
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: 6px;
  line-height: 36px;
}

.step__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ── Timeline — glass dot + hover glow ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--glass-border);
}

.timeline__item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  position: relative;
  border-radius: var(--radius-lg);
  transition: background 0.3s ease;
}

.timeline__item:hover {
  background: var(--glass-bg);
}

.timeline__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--color-brand-yellow);
  background: var(--color-bg-primary);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-top: 3px;
  transition: box-shadow 0.3s ease;
}

.timeline__item:first-child .timeline__dot {
  background: var(--color-brand-yellow);
  box-shadow: 0 0 12px rgba(248, 215, 72, 0.4);
}

.timeline__item:hover .timeline__dot {
  box-shadow: 0 0 8px rgba(248, 215, 72, 0.3);
}

.timeline__body {
  flex: 1;
  min-width: 0;
}

.timeline__date {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.timeline__title {
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: 1.45;
  margin-bottom: 4px;
}

.timeline__title a {
  transition: color 0.2s;
}

.timeline__title a:hover {
  color: var(--color-brand-yellow);
}

.timeline__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.timeline__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(248, 215, 72, 0.12);
  border: 1px solid rgba(248, 215, 72, 0.18);
  color: var(--color-brand-yellow);
  margin-top: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .timeline__tag {
  background: rgba(248, 215, 72, 0.25);
  border-color: rgba(248, 215, 72, 0.35);
  color: #5C4A00;
}

/* ── Document List — glass row hover ── */
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 20px 0;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.doc-row:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  transform: translateX(4px);
}

[data-theme="light"] .doc-row:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.doc-row__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(248, 215, 72, 0.1);
  border: 1px solid rgba(248, 215, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-brand-yellow);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.doc-row:hover .doc-row__icon {
  background: rgba(248, 215, 72, 0.18);
  border-color: rgba(248, 215, 72, 0.3);
}

[data-theme="light"] .doc-row__icon {
  background: rgba(248, 215, 72, 0.15);
  color: #5C4A00;
}

.doc-row__icon svg {
  width: 18px;
  height: 18px;
}

.doc-row__info {
  flex: 1;
  min-width: 0;
}

.doc-row__title {
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.45;
}

.doc-row__meta {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.doc-row__action {
  font-size: 13px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}

.doc-row:hover .doc-row__action {
  color: var(--color-brand-yellow);
}

/* ── Feature List — glass icon boxes ── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
}

[data-theme="light"] .feature-item:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feature-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(248, 215, 72, 0.12);
  border: 1px solid rgba(248, 215, 72, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-brand-yellow);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover .feature-item__icon {
  background: rgba(248, 215, 72, 0.2);
  box-shadow:
    0 4px 12px rgba(248, 215, 72, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}

[data-theme="light"] .feature-item__icon {
  background: rgba(248, 215, 72, 0.15);
  border-color: rgba(248, 215, 72, 0.3);
  color: #5C4A00;
}

.feature-item__icon svg {
  width: 20px;
  height: 20px;
}

.feature-item__body {
  flex: 1;
}

.feature-item__title {
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.feature-item__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── Info Banner — liquid glass callout ── */
.info-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: rgba(248, 215, 72, 0.06);
  border: 1px solid rgba(248, 215, 72, 0.15);
  margin: 24px 0;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-banner:hover {
  border-color: rgba(248, 215, 72, 0.25);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

[data-theme="light"] .info-banner {
  background: rgba(248, 215, 72, 0.1);
  border-color: rgba(248, 215, 72, 0.3);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

[data-theme="light"] .info-banner:hover {
  border-color: rgba(248, 215, 72, 0.45);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.info-banner__icon {
  flex-shrink: 0;
  color: var(--color-brand-yellow);
}

.info-banner__icon svg {
  width: 20px;
  height: 20px;
}

.info-banner__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.info-banner__text strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}

/* ── Stat Pills — liquid glass capsules ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-pill:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

[data-theme="light"] .stat-pill {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}

[data-theme="light"] .stat-pill:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.9);
  border-color: rgba(0, 0, 0, 0.12);
}

.stat-pill__value {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.stat-pill__label {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

/* ── Team Grid — liquid glass cards ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.team-card {
  text-align: center;
  padding: 36px 24px;
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(248, 215, 72, 0.12);
  border: 2px solid rgba(248, 215, 72, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--color-brand-yellow);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(248, 215, 72, 0.15);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover .team-card__avatar {
  box-shadow: 0 8px 24px rgba(248, 215, 72, 0.25);
  border-color: rgba(248, 215, 72, 0.4);
}

.team-card__avatar svg {
  width: 32px;
  height: 32px;
}

[data-theme="light"] .team-card__avatar {
  background: rgba(248, 215, 72, 0.18);
  border-color: var(--color-brand-yellow);
}

.team-card__info h3 {
  text-align: center;
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  margin-bottom: 6px;
}

.team-card__role {
  font-size: 13px;
  color: var(--color-text-tertiary);
  line-height: 1.45;
}

/* ── Contacts Grid ── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.contact-card {
  padding: 32px 28px;
}

.contact-card h3 {
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.map-placeholder {
  margin-top: 24px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Media Grid — glass hover ── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.media-card {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-tertiary);
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .media-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .media-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  border-color: rgba(0, 0, 0, 0.15);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card svg {
  width: 40px;
  height: 40px;
  color: var(--color-text-tertiary);
  opacity: 0.6;
}

/* ── Responsive (subpages) ── */
@media (max-width: 1024px) {
  .page-header { padding: 120px 0 36px; }
  .page-title { font-size: 32px; }
}

@media (max-width: 768px) {
  .page-header { padding: 100px 0 28px; }
  .page-title { font-size: 24px; }
  .page-content { padding: var(--space-lg) 0 var(--space-2xl); }
  .team-grid, .contacts-grid, .media-grid { grid-template-columns: 1fr; }
  .accordion__header { padding: 14px 16px; font-size: 14px; }
  .accordion__toggle:checked ~ .accordion__body .accordion__content { padding: 12px 16px 20px; }
  .step__title { font-size: 14px; }
  .feature-item { padding: 12px 14px; }
  .feature-item__icon { width: 36px; height: 36px; }
  .timeline::before { left: 5px; }
  .timeline__dot { width: 12px; height: 12px; }
  .doc-row { padding: 12px 14px; }
  .doc-row__icon { width: 32px; height: 32px; }
}

/* ============================================
   Road-theme polish — subpage redesign layer
   ============================================ */

/* ── Page header: themed band + road markings ── */
.page-header {
  padding: 150px 0 56px;
  box-shadow: none;
  border-bottom: 1px solid var(--color-border);
}
.page-header::before {
  background:
    linear-gradient(rgba(16, 21, 27, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 21, 27, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #CBD6E0 0%, #D6DEE6 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}
/* road line along the band's bottom edge */
.page-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--color-accent-blue) 0 16px,
    transparent 16px 30px);
  opacity: 0.5;
}
.page-title {
  font-size: clamp(38px, 4.6vw, 56px);
  letter-spacing: -0.02em;
}
.page-title::after {
  content: '';
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 16px;
  background: repeating-linear-gradient(90deg,
    var(--color-accent-blue) 0 14px,
    transparent 14px 24px);
}
.breadcrumbs a:hover { color: var(--color-accent-blue); }

[data-theme="dark"] .page-header::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #141A21 0%, #10151B 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}
[data-theme="dark"] .page-title { color: #fff; }
[data-theme="dark"] .page-title::after,
[data-theme="dark"] .page-header::after {
  background: repeating-linear-gradient(90deg,
    var(--color-brand-yellow) 0 14px,
    transparent 14px 24px);
}
[data-theme="dark"] .breadcrumbs { color: rgba(255, 255, 255, 0.45); }
[data-theme="dark"] .breadcrumbs a { color: rgba(255, 255, 255, 0.62); }
[data-theme="dark"] .breadcrumbs a:hover { color: var(--color-brand-yellow); }

/* ── Content headings: small road marking ── */
.content-text h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  background: repeating-linear-gradient(90deg,
    var(--color-brand-yellow) 0 10px,
    transparent 10px 18px);
}
[data-theme="light"] .content-text h2::after {
  background: repeating-linear-gradient(90deg,
    var(--color-accent-blue) 0 10px,
    transparent 10px 18px);
}

/* ── Dashed connector lines (road motif) ── */
.step__line {
  width: 0;
  background: none;
  border-left: 2px dashed var(--color-border-strong);
}
.timeline::before {
  width: 0 !important;
  background: none !important;
  border-left: 2px dashed var(--color-border-strong);
}

/* ── Light theme: yellow micro-accents → sign-blue ── */
[data-theme="light"] .bullet-list li::before { background: var(--color-accent-blue); }
[data-theme="light"] .timeline__dot { border-color: var(--color-accent-blue); }
[data-theme="light"] .timeline__item:first-child .timeline__dot {
  background: var(--color-accent-blue);
  box-shadow: 0 0 12px rgba(0, 87, 184, 0.35);
}
[data-theme="light"] .timeline__item:hover .timeline__dot { box-shadow: 0 0 8px rgba(0, 87, 184, 0.3); }
[data-theme="light"] .timeline__tag {
  background: rgba(0, 87, 184, 0.08);
  border-color: rgba(0, 87, 184, 0.22);
  color: var(--color-accent-blue);
}
[data-theme="light"] .feature-item__icon {
  background: rgba(0, 87, 184, 0.08);
  border-color: rgba(0, 87, 184, 0.22);
  color: var(--color-accent-blue);
}
[data-theme="light"] .feature-item:hover .feature-item__icon {
  background: rgba(0, 87, 184, 0.14);
  box-shadow: 0 4px 12px rgba(0, 87, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
[data-theme="light"] .team-card__avatar {
  background: rgba(0, 87, 184, 0.08);
  border-color: rgba(0, 87, 184, 0.3);
  color: var(--color-accent-blue);
  box-shadow: 0 4px 16px rgba(0, 87, 184, 0.12);
}
[data-theme="light"] .glass-card:hover .team-card__avatar {
  box-shadow: 0 8px 24px rgba(0, 87, 184, 0.2);
  border-color: rgba(0, 87, 184, 0.45);
}

/* ── Team grid: centered, tidy at any card count ── */
.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: 24px;
}

/* ── Contacts map card: destination marker ── */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 44px 24px;
  margin-top: 20px;
  text-decoration: none;
  border-style: dashed !important;
  border-width: 1.5px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.map-placeholder:hover { transform: translateY(-2px); }
.map-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--color-accent-blue);
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 87, 184, 0.3);
}
.map-pin::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
}
[data-theme="dark"] .map-pin {
  background: var(--color-brand-yellow);
  box-shadow: 0 6px 16px rgba(255, 213, 0, 0.25);
}
[data-theme="dark"] .map-pin::after { background: #14181D; }
.map-addr {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
  text-align: center;
}
.map-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
}
[data-theme="dark"] .map-cta { color: var(--color-brand-yellow); }

/* ── Migrated content extras ── */
.content-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 20px 0;
  border: 1px solid var(--color-border);
}
.content-img--hero {
  width: 100%;
  height: auto;
  margin: 4px 0 28px;
}
.doc-row--dead { opacity: 0.55; cursor: default; }
.doc-dead {
  color: var(--color-text-tertiary);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.content-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.content-text td,
.content-text th {
  border: 1px solid var(--color-border-strong);
  padding: 10px 12px;
  color: var(--color-text-secondary);
  vertical-align: top;
}
.content-text th { color: var(--color-text-primary); font-weight: var(--font-weight-semibold); }

/* ── News content: links, lists, prev/next (readable defaults over the global reset) ── */
.content-text a {
  color: var(--color-accent-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.content-text a:hover { color: var(--color-brand-navy-light); }
[data-theme="dark"] .content-text a { color: var(--color-brand-navy-light); }
[data-theme="dark"] .content-text a:hover { color: var(--color-brand-yellow); }

.content-text ul,
.content-text ol {
  margin: 0 0 20px;
  padding-left: 1.5em;
}
.content-text ul { list-style: disc; }
.content-text ol { list-style: decimal; }
.content-text ul ul { list-style: circle; }
.content-text li { margin-bottom: 8px; }
.content-text li:last-child { margin-bottom: 0; }

.post-nav {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.post-nav__link {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, background 0.2s;
}
.post-nav__link:hover {
  border-color: var(--color-accent-blue);
  background: rgba(0, 87, 184, 0.05);
}
.post-nav__next { margin-left: auto; text-align: right; }
.post-nav__label {
  font-size: 13px;
  color: var(--color-text-tertiary);
  letter-spacing: 0.02em;
}
.post-nav__title {
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: 1.4;
}
@media (max-width: 640px) {
  .post-nav { flex-direction: column; }
  .post-nav__next { margin-left: 0; text-align: left; }
}

/* ── Contrast fixes (light theme especially) ── */
.timeline__title a { color: var(--color-text-primary); }
.timeline__title a:hover { color: var(--color-accent-blue); }
[data-theme="dark"] .timeline__title a:hover { color: var(--color-brand-yellow); }

[data-theme="light"] .info-banner {
  background: rgba(0, 87, 184, 0.06);
  border-color: rgba(0, 87, 184, 0.25);
  box-shadow: 0 4px 16px rgba(16, 24, 34, 0.08);
}
[data-theme="light"] .info-banner:hover {
  border-color: rgba(0, 87, 184, 0.4);
  box-shadow: 0 8px 24px rgba(16, 24, 34, 0.12);
}
[data-theme="light"] .info-banner__icon { color: var(--color-accent-blue); }
[data-theme="light"] .info-banner__text { color: var(--color-text-secondary); }
[data-theme="light"] .info-banner__text strong { color: var(--color-text-primary); }

/* ── News catalogue — square card grid ── */
/* Full-bleed variant of .page-content: lets a grid use the whole container. */
.page-content--wide { max-width: none; }

.newsgrid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.newsgrid-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  border-radius: var(--radius-xl);
}
.newsgrid-card__img {
  flex: none;
  aspect-ratio: 4 / 3;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--color-bg-tertiary);
}
/* Most news carry no featured image — keep the square intact with brand wash. */
.newsgrid-card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(120% 120% at 50% 0%, rgba(0, 87, 184, 0.18), rgba(0, 87, 184, 0.03) 70%);
}
.newsgrid-card__img--empty::after {
  content: "";
  width: 34%;
  max-width: 72px;
  aspect-ratio: 1;
  opacity: 0.5;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230057B8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='8.5' cy='8.5' r='1.5'/><path d='M21 15l-5-5L5 21'/></svg>") center / contain no-repeat;
}
[data-theme="dark"] .newsgrid-card__img--empty {
  background-image: radial-gradient(120% 120% at 50% 0%, rgba(255, 213, 0, 0.18), rgba(255, 213, 0, 0.03) 70%);
}
[data-theme="dark"] .newsgrid-card__img--empty::after {
  opacity: 0.55;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD500' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='8.5' cy='8.5' r='1.5'/><path d='M21 15l-5-5L5 21'/></svg>");
}
.newsgrid-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
  min-height: 0;
}
/* Fixed-height rows: the square has no slack, so nothing may flex-shrink
   (shrinking silently eats clamped lines). */
.newsgrid-card__body > * { flex: none; }
.newsgrid-card__date {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}
.newsgrid-card__title {
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.newsgrid-card:hover .newsgrid-card__title { color: var(--color-accent-blue); }
[data-theme="dark"] .newsgrid-card:hover .newsgrid-card__title { color: var(--color-brand-yellow); }
.newsgrid-card__excerpt {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.newsgrid-card__tag {
  margin-top: auto;
  align-self: flex-start;
  flex: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(0, 87, 184, 0.08);
  border: 1px solid rgba(0, 87, 184, 0.22);
  color: var(--color-accent-blue);
}
[data-theme="dark"] .newsgrid-card__tag {
  background: rgba(255, 213, 0, 0.1);
  border-color: rgba(255, 213, 0, 0.25);
  color: var(--color-brand-yellow);
}

/* ── Pagination (the_posts_pagination) ── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
}
.pagination {
  margin-top: var(--space-2xl);
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  background: var(--color-bg-elevated);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pagination a.page-numbers:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
}
.pagination .page-numbers.current {
  background: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
  color: #fff;
  font-weight: var(--font-weight-semibold);
}
.pagination .page-numbers.dots {
  min-width: auto;
  padding: 0 4px;
  border: none;
  background: none;
  color: var(--color-text-tertiary);
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  font-weight: var(--font-weight-semibold);
}
[data-theme="dark"] .pagination a.page-numbers:hover {
  border-color: var(--color-brand-yellow);
  color: var(--color-brand-yellow);
}
[data-theme="dark"] .pagination .page-numbers.current {
  background: var(--color-brand-yellow);
  border-color: var(--color-brand-yellow);
  color: var(--color-text-inverse);
}

/* ── Archive page template — child pages as square cards ── */
/* Intro prose keeps its measure; the card grid below uses the full container. */
.page-content--flush { padding-bottom: var(--space-lg); }
.archive-grid { padding-bottom: var(--space-3xl); }
.archive-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1 / 1;
  padding: 20px;
  text-decoration: none;
  border-radius: var(--radius-xl);
}
.archive-card__title {
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--color-text-primary);
}
.archive-card:hover .archive-card__title { color: var(--color-accent-blue); }
[data-theme="dark"] .archive-card:hover .archive-card__title { color: var(--color-brand-yellow); }
.archive-card__meta {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

/* ============================================
   Subpage rework — index-aligned components
   ============================================ */

/* ── Lead paragraph ── */
.page-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--color-text-primary);
  max-width: 46em;
  margin-bottom: 8px;
}

/* ── Numbered card grid (replaces the vertical steps tree) ── */
/* "Сітка" variant: equal columns, so cards line up and share a row height
   (the .num-steps flex variant below overrides this for sequential processes). */
.num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.num-card { padding: 22px 22px 20px; }

.num-card__badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  background: rgba(248, 215, 72, 0.12);
  border: 1px solid rgba(248, 215, 72, 0.2);
  color: var(--color-brand-yellow);
  margin-bottom: 14px;
}

[data-theme="light"] .num-card__badge {
  background: rgba(0, 87, 184, 0.08);
  border-color: rgba(0, 87, 184, 0.22);
  color: var(--color-accent-blue);
}

.num-card__title {
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: 1.45;
}

.num-card__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-top: 6px;
}

/* Numbered steps as a linear stepper connected by arrows (one row on desktop,
   a column with down-arrows on small screens). */
.num-grid.num-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.num-steps .num-card {
  flex: 1 1 0;
  min-width: 150px;
  margin: 0;
}
.num-arrow {
  flex: 0 0 auto;
  align-self: center;
  font-size: 22px;
  line-height: 1;
  color: var(--color-accent-blue);
}
[data-theme="dark"] .num-arrow { color: var(--color-brand-yellow); }

@media (max-width: 720px) {
  .num-grid.num-steps { flex-direction: column; align-items: stretch; }
  .num-steps .num-card { width: 100%; }
  .num-arrow { transform: rotate(90deg); }
}

/* ── Link tile grid (section indexes) ── */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

/* Exactly four cards read better as a 2×2 block than 3+1. */
.link-grid:has(> .link-card:nth-child(4):last-child) {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 560px) {
  .link-grid:has(> .link-card:nth-child(4):last-child) { grid-template-columns: 1fr; }
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.link-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 215, 72, 0.12);
  border: 1px solid rgba(248, 215, 72, 0.2);
  color: var(--color-brand-yellow);
}

.link-card__icon svg { width: 18px; height: 18px; }

[data-theme="light"] .link-card__icon {
  background: rgba(0, 87, 184, 0.08);
  border-color: rgba(0, 87, 184, 0.22);
  color: var(--color-accent-blue);
}

.link-card__title {
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: 1.4;
}

.link-card__desc {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.link-card__cta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  color: var(--color-accent-blue);
}

[data-theme="dark"] .link-card__cta { color: var(--color-brand-yellow); }

/* ── Contacts: map left + aside right ── */
.contact-layout {
  display: grid;
  grid-template-columns: 100% minmax(280px, 1fr);
  gap: 20px;
  align-items: stretch;
}

.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  min-height: 480px;
  background: var(--color-bg-tertiary);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-aside .contact-card { padding: 22px 24px; }

.contact-card a { color: inherit; transition: color 0.2s; }
.contact-card a:hover { color: var(--color-accent-blue); }
[data-theme="dark"] .contact-card a:hover { color: var(--color-brand-yellow); }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map { min-height: 320px; }
}

/* ── Operator chips (е-ТТН) ── */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.op-chip {
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 13.5px;
  color: var(--color-text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .op-chip {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
}

/* ── CTA banner ── */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  margin: 28px 0;
  border-radius: var(--radius-xl);
}

.cta-banner__title {
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.cta-banner__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.cta-banner .btn { flex-shrink: 0; }

/* ── Empty / mock state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 56px 24px;
  margin: 24px 0;
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-xl);
  color: var(--color-text-secondary);
}

.empty-state__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-text-tertiary);
}

.empty-state__icon svg { width: 22px; height: 22px; }

.empty-state__title {
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.empty-state__desc {
  font-size: 14px;
  max-width: 46ch;
  line-height: 1.6;
}

/* ============================================
   Signature polish — road-brand details
   ============================================ */

/* ── Route-gradient border on card hover (sign-blue → brand-yellow) ── */
.glass-card { position: relative; }

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg,
    rgba(0, 87, 184, 0.65),
    rgba(0, 87, 184, 0) 38%,
    rgba(255, 213, 0, 0) 62%,
    rgba(255, 213, 0, 0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover::before { opacity: 1; }

/* ── Icon tiles: soft brand gradient ── */
.link-card__icon,
.feature-item__icon,
.doc-row__icon {
  background-image: linear-gradient(145deg, rgba(255, 213, 0, 0.18), rgba(255, 213, 0, 0.04));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

[data-theme="light"] .link-card__icon,
[data-theme="light"] .feature-item__icon,
[data-theme="light"] .doc-row__icon {
  background-image: linear-gradient(145deg, rgba(0, 87, 184, 0.14), rgba(0, 87, 184, 0.03));
}

.link-card:hover .link-card__icon,
.feature-item:hover .feature-item__icon,
.doc-row:hover .doc-row__icon {
  transform: translateY(-2px) rotate(-4deg);
}

.link-card:hover .link-card__icon {
  box-shadow: 0 6px 16px rgba(255, 213, 0, 0.18);
}

[data-theme="light"] .link-card:hover .link-card__icon {
  box-shadow: 0 6px 16px rgba(0, 87, 184, 0.18);
}

/* ── Numbered badge → roundabout road sign ── */
.num-card__badge {
  position: relative;
  border-radius: 50%;
  background-image: linear-gradient(145deg, rgba(255, 213, 0, 0.2), rgba(255, 213, 0, 0.05));
}

.num-card__badge::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1.5px dashed currentColor;
  opacity: 0.45;
  transition: transform 0.6s ease;
}

.num-card:hover .num-card__badge::after { transform: rotate(60deg); }

[data-theme="light"] .num-card__badge {
  background-image: linear-gradient(145deg, rgba(0, 87, 184, 0.14), rgba(0, 87, 184, 0.03));
}

/* ── Arrows drive forward on hover ── */
.link-card__cta,
.doc-row__action {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s;
}

.link-card:hover .link-card__cta,
.doc-row:hover .doc-row__action { transform: translateX(5px); }

/* ── Section headings: road marking draws in on reveal ── */
.content-text[data-reveal] h2::after {
  width: 0;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.content-text[data-reveal].is-visible h2::after { width: 56px; }

/* ── Page header: soft aurora blob behind the title ── */
.page-header .container::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -110px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 87, 184, 0.13), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
}

[data-theme="dark"] .page-header .container::before {
  background: radial-gradient(closest-side, rgba(255, 213, 0, 0.07), transparent 72%);
}

/* ── Route progress: dashed road builds along the top on scroll ── */
.route-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2000;
  pointer-events: none;
  background: repeating-linear-gradient(90deg,
    var(--color-accent-blue) 0 14px,
    transparent 14px 24px);
  clip-path: inset(0 calc(100% - var(--rp, 0%)) 0 0);
  opacity: 0.75;
}

[data-theme="dark"] .route-progress {
  background: repeating-linear-gradient(90deg,
    var(--color-brand-yellow) 0 14px,
    transparent 14px 24px);
}

/* ── Primary button: shine sweep ── */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 40%;
  left: -70%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.65s ease;
  pointer-events: none;
}

.btn-primary:hover::after { left: 130%; }

/* ── Stat pill: gradient value ── */
.stat-pill__value {
  background: linear-gradient(120deg, var(--color-accent-blue), #19a4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .stat-pill__value {
  background: linear-gradient(120deg, #FFD500, #FFB300);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Accordion: route rail on the open item ── */
.accordion__toggle:checked ~ .accordion__header {
  box-shadow: inset 3px 0 0 var(--color-brand-yellow);
}

[data-theme="light"] .accordion__toggle:checked ~ .accordion__header {
  box-shadow: inset 3px 0 0 var(--color-accent-blue);
}

/* ── Placeholders: shimmer + floating icon ── */
.media-card {
  position: relative;
  overflow: hidden;
}

.media-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.16) 50%, transparent 68%);
  transform: translateX(-100%);
  animation: card-shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes card-shimmer {
  55%, 100% { transform: translateX(100%); }
}

.empty-state__icon { animation: float-soft 4.5s ease-in-out infinite; }

@keyframes float-soft {
  50% { transform: translateY(-6px); }
}

/* ── Chips: lift on hover ── */
.op-chip {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.op-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 213, 0, 0.45);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .op-chip:hover {
  border-color: rgba(0, 87, 184, 0.4);
  box-shadow: 0 6px 14px rgba(16, 24, 34, 0.1);
}

/* ── Reduced motion: kill the continuous bits ── */
@media (prefers-reduced-motion: reduce) {
  .media-card::after,
  .empty-state__icon,
  .num-card:hover .num-card__badge::after { animation: none; transition: none; }
  .content-text[data-reveal] h2::after { width: 56px; transition: none; }
  .btn-primary::after { display: none; }
}

/* ============================================================
   Subpage roads — borrow the index page's living road motif.
   Scoped to subpages (.page-header / .page-header + .section-bg)
   so the homepage is untouched. Continuous motion gated below.
   ============================================================ */

/* Scroll road: the top progress line becomes a real asphalt lane
   (asphalt + dashed centre) that fills as the page is scrolled. */
.route-progress {
  height: 6px;
  opacity: 0.95;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0 14px, transparent 14px 28px) 0 50% / 28px 2px repeat-x,
    linear-gradient(180deg, #9AA7B4, #7C8996);
}
[data-theme="dark"] .route-progress {
  background:
    repeating-linear-gradient(90deg, var(--color-brand-yellow) 0 14px, transparent 14px 28px) 0 50% / 28px 2px repeat-x,
    linear-gradient(180deg, #2A333D, #1B222B);
}

/* Subpage content band: solid surface (no grid/radial) under the animated
   header road — the grid overlay is dropped for a clean, solid background. */
.page-header + .section-bg::before { display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Animated top road: the header lane flows left → right. */
  .page-header::after {
    height: 5px;
    bottom: -2px;
    opacity: 0.9;
    background-size: 30px 100%;
    animation: road-dash-flow 1.5s linear infinite;
  }
  [data-theme="dark"] .page-header::after { background-size: 30px 100%; }

  /* A car rides the leading edge of the scroll-road. */
  .route-progress::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--rp, 0%);
    width: 22px;
    height: 11px;
    transform: translate(-100%, -50%);
    border-radius: 3px;
    background: #D64541;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }
}

@keyframes road-dash-flow { to { background-position-x: -30px; } }
