/* BancoPřehled — Premium Financial Editorial Design */
/* Palette: #0F172A | #1E40AF | #059669 | #FFFFFF */

:root {
  --bg-deep: #0f172a;
  --bg-card: #ffffff;
  --bg-muted: #f8fafc;
  --bg-elevated: #1e293b;
  --accent: #1e40af;
  --accent-light: #3b82f6;
  --accent-soft: rgba(30, 64, 175, 0.12);
  --secondary: #059669;
  --secondary-soft: rgba(5, 150, 105, 0.12);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-on-dark: #f1f5f9;
  --border: #e2e8f0;
  --border-dark: #334155;
  --warning-bg: #fffbeb;
  --warning-border: #f59e0b;
  --warning-text: #92400e;
  --disclosure-bg: #f0f9ff;
  --disclosure-border: #bae6fd;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.15);
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 500;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.filter-btn:focus-visible {
  outline-offset: 2px;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-on-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #93c5fd;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--light {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.section--light a {
  color: var(--accent);
}

.section--light a:hover {
  color: var(--accent-light);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.section--light .section-header__label {
  color: var(--accent);
}

.section-header__title {
  margin-bottom: 0.75rem;
}

.section-header__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 640px;
}

.section--light .section-header__desc {
  color: var(--text-secondary);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  height: var(--header-height);
}

.header__inner {
  position: relative;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.logo:hover {
  color: var(--text-on-dark);
}

.logo__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

.logo__mark--hero {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 6px 20px rgba(30, 64, 175, 0.35));
}

.logo__wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #f1f5f9;
}

.logo__wordmark-pre {
  color: #93c5fd;
}

.logo--full .logo__mark {
  width: 40px;
  height: 40px;
}

.logo--full .logo__wordmark {
  font-size: 1.375rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--text-on-dark);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-on-dark);
  cursor: pointer;
  padding: 0.5rem;
}

/* Disclosure bar */
.disclosure-bar {
  background: var(--disclosure-bg);
  border-bottom: 1px solid var(--disclosure-border);
  padding: 0.625rem 0;
  font-size: 0.8125rem;
  color: #0c4a6e;
  text-align: center;
}

.disclosure-bar a {
  color: var(--accent);
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__logo {
  margin-bottom: 1.25rem;
}

.hero__logo .logo__mark--hero {
  display: block;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(30, 64, 175, 0.3);
  color: #93c5fd;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
}

.hero__title {
  margin-bottom: 1.25rem;
}

.hero__title span {
  color: #93c5fd;
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__meta-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.hero__card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.hero__card-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-family: var(--font);
  font-weight: 600;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.hero__stat {
  padding: 1rem;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Disclaimer */
.disclaimer {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--warning-text);
  margin: 1.5rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.disclaimer svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--warning-border);
}

.disclaimer--inline {
  margin: 0 0 1.5rem;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.update-badge svg {
  color: var(--secondary);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  padding: 0.625rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text-on-dark);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.section--light .filter-btn {
  background: white;
  border-color: var(--border);
  color: var(--text-secondary);
}

.section--light .filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section--light .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Table */
.table-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-scroll {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: var(--text-primary);
}

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

.comparison-table th {
  background: var(--bg-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.comparison-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.comparison-table th.sortable:hover {
  color: var(--accent);
}

.comparison-table th .sort-icon {
  display: inline-block;
  margin-left: 0.25rem;
  opacity: 0.4;
}

.comparison-table th.sorted .sort-icon {
  opacity: 1;
  color: var(--accent);
}

.comparison-table tbody tr:hover {
  background: rgba(30, 64, 175, 0.03);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.bank-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.bank-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

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

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

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

.btn--primary:hover {
  background: #1d4ed8;
  color: white;
}

.btn--sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn--text {
  background: none;
  border: none;
  color: var(--accent);
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
}

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

/* Bank cards */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.bank-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text-primary);
  transition: box-shadow 0.2s, transform 0.2s;
}

.bank-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.bank-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bank-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), var(--secondary-soft));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.bank-card__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.bank-card__type {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.bank-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.bank-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.bank-card__actions {
  display: flex;
  gap: 0.75rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-feature {
  display: flex;
  gap: 1rem;
}

.about-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--secondary-soft);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature__title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.about-feature__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Education */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.education-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}

.education-card:hover {
  box-shadow: var(--shadow);
}

.education-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.education-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.education-card__excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border-dark);
}

.section--light .faq-item {
  border-color: var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.section--light .faq-answer {
  color: var(--text-secondary);
}

.faq-item.open .faq-answer {
  display: block;
}

/* Methodology box */
.methodology-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

.methodology-box h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.methodology-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.methodology-box li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.methodology-box li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
}

.section--light .methodology-box {
  background: white;
  border-color: var(--border);
}

.section--light .methodology-box li {
  color: var(--text-secondary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.modal__close:hover {
  background: var(--bg-muted);
}

.modal__body {
  padding: 1.5rem;
}

.modal__section {
  margin-bottom: 1.5rem;
}

.modal__section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.modal__row {
  display: flex;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.modal__row:last-child {
  border-bottom: none;
}

.modal__row-label {
  color: var(--text-secondary);
}

.modal__row-value {
  font-weight: 500;
  text-align: right;
}

.modal__footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #0a0f1a;
  border-top: 1px solid var(--border-dark);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__logo {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0;
}

.footer__brand-pre {
  color: #93c5fd;
}

.footer__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--text-on-dark);
}

.footer__disclosure {
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.footer__disclosure-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-on-dark);
}

.footer__disclosure-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Legal pages */
.legal-page {
  background: var(--bg-muted);
  min-height: 100vh;
  color: var(--text-primary);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.legal-content .update-badge {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-content ul {
  margin: 1rem 0 1rem 1.5rem;
}

/* Responsive */
@media (max-width: 968px) {
  .hero__grid,
  .about-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__card {
    order: -1;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-deep);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-dark);
  }

  .nav.open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  .filter-btn {
    white-space: nowrap;
  }
}

/* Search bar */
.search-bar {
  position: relative;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.search-bar svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar__input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-on-dark);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

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

.search-bar__input:focus {
  outline: none;
  border-color: var(--accent);
}

.section--light .search-bar__input {
  background: white;
  border-color: var(--border);
  color: var(--text-primary);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12);
  padding: 1.25rem 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-banner__text a {
  color: var(--accent);
  font-weight: 500;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

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

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page__title {
  margin-bottom: 0.75rem;
}

.error-page__desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Category pages */
.category-hero {
  padding: 3rem 0 1.5rem;
}

.category-hero h1 {
  margin-bottom: 0.75rem;
}

.category-hero__desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 640px;
  margin-bottom: 1.25rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--accent-light);
}

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

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.category-nav__link {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  text-decoration: none;
  transition: all 0.2s;
}

.category-nav__link:hover {
  color: var(--text-on-dark);
  border-color: var(--accent);
}

.category-nav__link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.education-note {
  background: var(--secondary-soft);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.education-note__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

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

/* Category cards on homepage */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

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

.category-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
}

.category-card__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
