/* style.css: Naukowa Przystań, tokeny i komponenty */

/* ============================================
   FONTY z naszego serwera (DM Sans, DM Serif Display; SIL OFL 1.1, licencje w /fonts/)
   ============================================ */
/* DM Sans, latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans, latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* DM Sans, latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans, latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* DM Sans, latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans, latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* DM Serif Display, latin-ext */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-serif-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Serif Display, latin */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-serif-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   TOKENY
   ============================================ */
:root {
  --text-xs:   clamp(0.8125rem, 0.75rem + 0.25vw, 0.875rem); /* min 13 px (01.11) */
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    4.5rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-golden: cubic-bezier(0.16, 1, 0.3, 1);

  --content-default: 960px;
  --content-wide: 1200px;
  --header-h: 4.5rem;

  /* Pasma zawsze ciemne (hero, kontakt) */
  --band-bg: #0D0B1F;
  --band-text: #ffffff;
  --band-muted: rgb(255 255 255 / 0.78);
  --band-gold: #F0B400;
}

/* ============================================
   TRYB JASNY
   ============================================ */
:root, [data-theme="light"] {
  color-scheme: light;
  --color-bg:               #faf9f6;
  --color-surface:          #ffffff;
  --color-surface-2:        #f3f1ec;
  --color-surface-offset:   #ecebe5;
  --color-surface-dynamic:  #e2e0d9;
  --color-divider:          #d6d3cc;
  --color-border:           #c4c2bb;

  --color-text:           #0D0B1F;
  --color-text-muted:     #4f4d63;
  --color-text-faint:     #625f75;
  --color-text-inverse:   #faf9f6;

  --color-primary:          #C48A00; /* zloto dekoracyjne */
  --color-primary-hover:    #A37300;
  --color-primary-highlight: #f3e9cf;
  --color-link:             #7D5800; /* zloto do tekstu, 6,4:1 */
  --color-link-hover:       #5e4200;
  --color-focus:            #7D5800;

  --color-cat-neuro:    #6f5210;
  --color-cat-physics:  #1a5580;
  --color-cat-eng:      #44622a;
  --color-cat-med:      #923434;
  --color-cat-bio:      #226b4e;
  --color-cat-math:     #60438f;

  --shadow-md: 0 4px 12px rgb(30 25 10 / 0.08);
  --shadow-lg: 0 12px 32px rgb(30 25 10 / 0.12);
}

/* ============================================
   TRYB CIEMNY
   ============================================ */
[data-theme="dark"] {
  color-scheme: dark;
  --color-bg:               #0D0B1F;
  --color-surface:          #141228;
  --color-surface-2:        #110f25;
  --color-surface-offset:   #161430;
  --color-surface-dynamic:  #2a2845;
  --color-divider:          #2d2a48;
  --color-border:           #3a3758;

  --color-text:           #ece9e1;
  --color-text-muted:     #b1aec5;
  --color-text-faint:     #9895ae;
  --color-text-inverse:   #0D0B1F;

  --color-primary:          #F0B400;
  --color-primary-hover:    #FFC52E;
  --color-primary-highlight: #2a2518;
  --color-link:             #F0B400;
  --color-link-hover:       #FFD660;
  --color-focus:            #FFD660;

  --color-cat-neuro:    #E8AF34;
  --color-cat-physics:  #6aa2d4;
  --color-cat-eng:      #7dbb55;
  --color-cat-med:      #e57f89;
  --color-cat-bio:      #4fc294;
  --color-cat-math:     #b688e6;

  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.4);
}

/* Bez JS: motyw systemowy */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --color-bg: #0D0B1F;
    --color-surface: #141228;
    --color-surface-2: #110f25;
    --color-surface-offset: #161430;
    --color-surface-dynamic: #2a2845;
    --color-divider: #2d2a48;
    --color-border: #3a3758;
    --color-text: #ece9e1;
    --color-text-muted: #b1aec5;
    --color-text-faint: #9895ae;
    --color-text-inverse: #0D0B1F;
    --color-primary: #F0B400;
    --color-primary-hover: #FFC52E;
    --color-primary-highlight: #2a2518;
    --color-link: #F0B400;
    --color-link-hover: #FFD660;
    --color-focus: #FFD660;
    --color-cat-neuro: #E8AF34;
    --color-cat-physics: #6aa2d4;
    --color-cat-eng: #7dbb55;
    --color-cat-med: #e57f89;
    --color-cat-bio: #4fc294;
    --color-cat-math: #b688e6;
    --shadow-md: 0 4px 12px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.4);
  }
}

/* ============================================
   PASEK POSTEPU
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
  pointer-events: none;
}

/* ============================================
   UKLAD
   ============================================ */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}

.container--narrow {
  max-width: var(--content-default);
}

/* ============================================
   NAGLOWEK
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-3) 0;
}

.header-gold-line {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.7;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 56px;
  width: auto;
}

@media (max-width: 768px) {
  .nav-logo img { height: 46px; }
}

/* Logo zgodne z motywem */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-light { display: none; }
  :root:not([data-theme]) .logo-dark { display: block; }
}

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

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  padding-block: var(--space-2);
  transition: color var(--transition-interactive);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-link);
}

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

.theme-toggle,
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}

.theme-toggle:hover,
.hamburger:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}

/* Bez dzialajacego app.js przelacznik motywu nic nie robi, wiec go nie pokazujemy */
html:not(.js-ready) .theme-toggle,
html:not(.js-ready) .hamburger { display: none !important; }

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition-interactive), opacity var(--transition-interactive);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobilne */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--color-bg);
  padding: var(--space-6);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav[hidden] { display: none; }

body.menu-open { overflow: hidden; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav-links a {
  display: block;
  padding: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
}

.mobile-nav-links a:hover {
  background: var(--color-surface-offset);
  color: var(--color-link);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  html.js-ready .hamburger { display: flex; }
}

/* Bez JS na telefonie: zwykla lista linkow pod logo */
@media (max-width: 768px) {
  html:not(.js-ready) .nav-inner { flex-wrap: wrap; }
  html:not(.js-ready) .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    width: 100%;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #0D0B1F 0%, #161430 55%, #1a1840 100%);
  color: var(--band-text);
  padding: clamp(var(--space-16), 9vw, var(--space-24)) 0 clamp(var(--space-16), 7vw, var(--space-20));
  min-height: min(64vh, 640px);
  display: flex;
  align-items: center;
}

.hero > .container { position: relative; z-index: 2; }

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
}

.hero-bg-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(13 11 31 / 0.85) 0%, rgb(13 11 31 / 0.45) 55%, rgb(13 11 31 / 0.15) 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 920px;
}

.hero-content h1 { max-width: 760px; }

.hero-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--band-gold);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-3xl);
  line-height: 1.08;
  color: var(--band-text);
  margin-bottom: var(--space-6);
}

@media (max-width: 640px) {
  .hero h1 { font-size: var(--text-2xl); }
}

.hero-subtitle {
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--band-muted);
  max-width: 34em; /* czytelna miara linii, ok. 70 znakow (01.11) */
  margin-bottom: var(--space-8);
}
.hero-subtitle:has(+ .hero-subtitle) { margin-bottom: var(--space-4); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ============================================
   PRZYCISKI
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

/* Granat na zlocie: 6,4:1 i wiecej w obu motywach */
.btn-primary {
  background: var(--band-gold);
  color: #0D0B1F;
}
.btn-primary:hover {
  background: #FFC52E;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--band-text);
  border-color: rgb(255 255 255 / 0.45);
}
.btn-outline:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.7);
}

/* Na ciemnych pasmach obrys focusu jasny */
.hero :focus-visible,
.contact :focus-visible {
  outline-color: var(--band-gold);
}

/* ============================================
   NAGLOWKI SEKCJI
   ============================================ */
.section {
  padding: clamp(var(--space-12), 7vw, var(--space-24)) 0;
}

.section-header {
  margin-bottom: var(--space-10);
}

.section-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-link);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  color: var(--color-text);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 62ch;
}

/* ============================================
   ZAPOWIEDZI ARTYKULOW
   ============================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}

.article-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.article-card-visual {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface-dynamic);
}

.article-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 12%, var(--color-surface));
}

.badge-neuro   { --cat: var(--color-cat-neuro); }
.badge-physics { --cat: var(--color-cat-physics); }
.badge-eng     { --cat: var(--color-cat-eng); }
.badge-med     { --cat: var(--color-cat-med); }
.badge-bio     { --cat: var(--color-cat-bio); }
.badge-math    { --cat: var(--color-cat-math); }

.article-status {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
}

.article-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.article-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.article-card .article-source {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.article-source a {
  color: var(--color-link);
}

.article-source a:hover {
  color: var(--color-link-hover);
}

/* ============================================
   DZIEDZINY
   ============================================ */
.section--categories {
  background: var(--color-surface-2);
}
/* mniejsza przerwa przed Zapowiedziami (01.11) */
.section--categories + .section--latest { padding-top: clamp(var(--space-10), 5vw, var(--space-16)); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-4);
}

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-top: 3px solid var(--cat-accent, var(--color-primary));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.category-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--cat-accent) 12%, var(--color-surface));
  color: var(--cat-accent);
}

.category-icon svg {
  width: 24px;
  height: 24px;
}

.category-info h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.category-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Karta dziedziny z tekstami = link do /artykuly/?dzial=... (cala karta klikalna, 07.10) */
.category-card {
  position: relative;
}

.category-info h3 a {
  color: inherit;
  text-decoration: none;
}

.category-info h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.category-card:has(h3 a) {
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.category-card:has(h3 a:hover) {
  border-color: var(--cat-accent);
  box-shadow: var(--shadow-md);
}

.category-card:has(h3 a:focus-visible) {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.category-info h3 a:focus-visible {
  outline: none;
}

.category-info .category-more {
  margin-top: var(--space-3);
  color: var(--color-link);
  font-weight: 600;
}

.category-info .category-more--soon {
  color: var(--color-text-muted);
  font-weight: 400;
  font-style: italic;
}

/* /artykuly/: przyciski dzialow (filtr w JS; bez JS linki pokazuja pelna liste) */
.cat-filter ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.cat-filter a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}

.cat-filter a[data-badge]::before {
  content: "";
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--cat);
}

.cat-filter a:hover {
  border-color: var(--cat, var(--color-text-muted));
}

.cat-filter a[aria-current="page"] {
  border-color: var(--cat, var(--color-text));
  background: color-mix(in srgb, var(--cat, var(--color-text)) 14%, var(--color-surface));
}

.cat-filter-count {
  color: var(--color-text-muted);
  font-weight: 400;
}

.cat-filter-status {
  margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cat-filter-status:empty {
  display: none;
}

.article-card[hidden] {
  display: none;
}

/* ============================================
   KOLEJNE TEMATY
   ============================================ */
.latest-list {
  display: flex;
  flex-direction: column;
}

.latest-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-divider);
}

.latest-item:first-child {
  border-top: 1px solid var(--color-divider);
}

.latest-item-thumb {
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-dynamic);
}

.latest-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.latest-item-title {
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.4;
}

.latest-item-category {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cat);
}

@media (max-width: 640px) {
  .latest-item { gap: var(--space-3); align-items: flex-start; }
  .latest-item-thumb { width: 88px; }
}

/* ============================================
   O NAS
   ============================================ */
.section--about {
  background: var(--color-surface-2);
}

.about-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 860px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.about-text .section-title { margin-bottom: var(--space-6); }

.about-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.principle-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.principle-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-link);
  line-height: 1.2;
}

.principle-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 520px) {
  .about-principles { grid-template-columns: 1fr; gap: var(--space-3); }
  .principle-card {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-3);
    text-align: left;
    padding: var(--space-4) var(--space-5);
  }
}

/* ============================================
   KONTAKT
   ============================================ */
.contact {
  background: var(--band-bg);
  color: var(--band-text);
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.contact-desc {
  font-size: var(--text-base);
  color: var(--band-muted);
  margin: 0 auto var(--space-8);
}

/* ============================================
   STOPKA
   ============================================ */
.site-footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 34ch;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a,
.footer-plain li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--color-link);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* Obserwuj nas w hero: jeden obrys, napis + ikony Facebooka i Instagrama (07.10) */
.hero-follow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  padding: 1px var(--space-1) 1px var(--space-5);
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: var(--radius-md);
  color: var(--band-text);
  font-size: var(--text-sm);
  font-weight: 600;
}

.hero-follow-label {
  margin-right: var(--space-2);
}

.hero-follow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--band-text);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}

.hero-follow a:hover {
  background: rgb(255 255 255 / 0.12);
  color: var(--band-gold);
}

/* Pasek Magazynu "Astronomia": waski, w barwach magazynu, zawsze ciemny (lustro paska Naukowej Przystani
   na astronomia.media.pl). Na glownej pod hero, na podstronach nad stopka, link w nowej karcie (07.10) */
.astro-strip {
  padding: var(--space-8) 0;
}

.astro-strip--top {
  padding: var(--space-6) 0 0;
}

.astro-strip-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 3.6rem;
  padding: 0.55rem 1.1rem;
  color: #e8eaf6;
  text-decoration: none;
  background: linear-gradient(100deg, #080a16 0%, #0d1020 62%, #2c255e 100%);
  border: 1px solid rgb(124 92 252 / 0.45);
  border-left: 3px solid #7c5cfc;
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.astro-strip-link:hover {
  border-color: rgb(124 92 252 / 0.85);
  box-shadow: 0 10px 34px rgb(124 92 252 / 0.18);
  transform: translateY(-1px);
}

.astro-strip-logo {
  flex: 0 0 auto;
  width: auto;
  height: 30px;
}

.astro-strip-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: var(--text-sm);
  line-height: 1.35;
  color: #a9b1cf;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.astro-strip-text strong {
  color: #fff;
  font-weight: 700;
}

.astro-strip-kicker {
  margin-right: 0.6rem;
  padding: 0.12rem 0.45rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #7c5cfc;
  border-radius: 4px;
  vertical-align: 0.12em;
}

.astro-strip-cta {
  flex: 0 0 auto;
  color: #c3b5ff;
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .astro-strip-more,
  .astro-strip-kicker {
    display: none;
  }

  .astro-strip-link {
    gap: var(--space-3);
    padding: 0.5rem 0.85rem;
  }

  .astro-strip-logo {
    height: 24px;
  }

  .astro-strip-text {
    white-space: normal;
  }

  .astro-strip-cta {
    font-size: 0;
  }

  .astro-strip-cta span[aria-hidden] {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .astro-strip-link,
  .astro-strip-link:hover {
    transition: none;
    transform: none;
  }
}

.footer-social {
  display: flex;
  gap: var(--space-2);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.footer-social a:hover {
  color: var(--color-link);
  background: var(--color-primary-highlight);
}

/* ============================================
   ODSLANIANIE PRZY PRZEWIJANIU
   Tylko gdy JS potwierdzil, ze observer dziala.
   ============================================ */
.reveal-ready .scroll-reveal:not(.visible) {
  opacity: 0;
  transform: translateY(16px);
}

.reveal-ready .scroll-reveal {
  transition: opacity 0.6s var(--ease-golden), transform 0.6s var(--ease-golden);
}

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: 0;
  left: var(--space-4);
  transform: translateY(-120%);
  background: var(--band-gold);
  color: #0D0B1F;
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  z-index: 300;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: transform var(--transition-interactive);
}

.skip-link:focus {
  transform: translateY(0);
}

main:focus { outline: none; }

/* ============================================
   STRONA ARTYKULU
   ============================================ */
.container--text { max-width: 760px; }

.post { padding-block: var(--space-10) var(--space-16); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-8);
}
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); }
.breadcrumbs a { color: var(--color-link); }

.post-header { margin-bottom: var(--space-8); }
.post-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  margin: var(--space-4) 0 var(--space-6);
}
.post-lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.post-meta { font-size: var(--text-sm); color: var(--color-text-faint); }

.post-figure { margin: 0 0 var(--space-8); }
.post-figure img { width: 100%; border-radius: var(--radius-lg); }
.np-video__box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.np-video__box picture, .np-video__box img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.np-video__box iframe { display: block; width: 100%; height: 100%; border: 0; }
.post-body .np-video__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  color: #fff; text-decoration: none; font-weight: 600; background: rgba(0, 0, 0, .35); text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.post-body .np-video__play:hover, .post-body .np-video__play:focus-visible { background: rgba(0, 0, 0, .5); color: #fff; }
.post-body .np-video__play:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; }
.np-video__ico { display: flex; align-items: center; justify-content: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: rgba(204, 0, 0, .92); font-size: 1.8rem; padding-left: .25rem; }
.np-video__note { display: block; margin-top: var(--space-1); }
.post-figure figcaption {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}

.post-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}
.post-summary h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.post-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
}
.post-summary-head h2 { margin-bottom: 0; }
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.reading-time svg { color: var(--color-link); flex-shrink: 0; }
.post-summary ul { padding-left: var(--space-5); }
.post-summary li + li { margin-top: var(--space-2); }

/* Spis tresci artykulu (sklada build_dist.py w kopiach dist/) */
.post-toc {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-10);
}
.post-toc-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.post-toc ol {
  padding-left: var(--space-5);
  columns: 2 16rem;
  column-gap: var(--space-8);
}
.post-toc li { margin-bottom: var(--space-2); break-inside: avoid; }
.post-toc li::marker { color: var(--color-primary); }
.post-toc a { color: inherit; text-decoration: none; }
.post-toc a:hover,
.post-toc a:focus-visible { color: var(--color-link); text-decoration: underline; }
.post-body h2[id] { scroll-margin-top: 6rem; }

.post-body h2,
.post-sources h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  margin: var(--space-10) 0 var(--space-4);
}
.post-body p,
.post-body ul { margin-bottom: var(--space-5); }
.post-body ul { padding-left: var(--space-6); }
.post-body li + li { margin-top: var(--space-2); }
.post-body a,
.post-sources a,
.post-back a { color: var(--color-link); }
.post-body a:hover,
.post-sources a:hover,
.post-back a:hover { color: var(--color-link-hover); }

.post-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
}

.post-sources ol {
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.post-sources li + li { margin-top: var(--space-3); }
.post-sources a { overflow-wrap: anywhere; }
.post-correction {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.post-back { margin-top: var(--space-10); font-weight: 600; }

/* Czytaj też: linki do innych artykulow (dopisywane przez build_dist.py) */
.related {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.related h2 { font-size: var(--text-lg); margin: 0 0 var(--space-4); }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.related-list a { color: var(--color-link); font-weight: 600; }
.related-list a:hover { color: var(--color-link-hover); }
.related-section { display: block; font-size: var(--text-xs); color: var(--color-text-muted); }
.related + .post-back { margin-top: var(--space-6); }

.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.article-card h3 a:hover { color: var(--color-link); }
.article-read { margin-top: var(--space-4); font-size: var(--text-sm); font-weight: 600; }
.article-card .article-read { color: var(--color-link); }
.article-card:has(h3 a:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 3px; }
@supports selector(:has(*)) {
  .article-card h3 a:focus-visible { outline: none; }
}
.article-status--live { color: var(--color-link); font-weight: 600; }
.article-card .article-source a { position: relative; z-index: 1; }

/* ============================================
   PODSTRONY: lista artykulow, zasady, stopka
   ============================================ */
.section--page { padding-top: var(--space-10); }
.section--page .section-title { font-size: var(--text-2xl); }
.section-desc a { color: var(--color-link); }
.section-desc a:hover { color: var(--color-link-hover); }
.article-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}
.article-card .article-card-title a { color: inherit; text-decoration: none; }
.article-card .article-card-title a::after { content: ""; position: absolute; inset: 0; }
.article-card .article-card-title a:hover { color: var(--color-link); }
.article-card:has(.article-card-title a:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 3px; }
@supports selector(:has(*)) {
  .article-card .article-card-title a:focus-visible { outline: none; }
}
.articles-more { margin-top: var(--space-8); font-weight: 600; }
.articles-more a { color: var(--color-link); }
.articles-more a:hover { color: var(--color-link-hover); }
.post-body ol { margin-bottom: var(--space-5); padding-left: var(--space-6); }
.post-body ol li + li { margin-top: var(--space-2); }
.post-body h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: var(--space-8) 0 var(--space-3);
}
.post-erratum {
  margin-block: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-link);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.post-author {
  margin-block: var(--space-8) 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.post-author a { color: var(--color-link); }
.post-author a:hover { color: var(--color-link-hover); }
/* Reklama (oznaczona), najwyzej 760 px, bez sledzenia */
.promo { max-width: 760px; margin: var(--space-10) auto; }
.promo[hidden] { display: none; }
.promo-label {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.promo-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: border-color var(--transition-interactive);
}
.promo-link:hover { border-color: var(--color-primary); }
.promo-link img { display: block; width: 100%; height: auto; }
.promo-text { display: block; padding: var(--space-3) var(--space-4); font-size: var(--text-sm); line-height: 1.45; }
.errata-empty { color: var(--color-text-muted); font-style: italic; }
.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-link); text-decoration: underline; }

/* ============================================
   ZGODA NA STATYSTYKI (baner budowany w app.js)
   Oba przyciski rownorzedne: ten sam wyglad i rozmiar.
   ============================================ */
.consent {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 250;
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  /* przy duzym powiekszeniu baner przewija sie w sobie, zamiast uciekac poza ekran */
  max-height: calc(100vh - 2 * var(--space-4));
  max-height: calc(100dvh - 2 * var(--space-4));
  overflow-y: auto;
}
.consent[hidden] { display: none; }
.consent-title:focus { outline: none; }
.consent-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
}
.consent-text,
.consent-state {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.consent-state { color: var(--color-text-muted); }
.consent-state:empty { margin: 0; } /* pusty status zostaje w drzewie dostepnosci */
.consent-text a { color: var(--color-link); }
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.consent-btn {
  flex: 1 1 10rem;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-text);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-interactive);
}
.consent-btn:hover { background: var(--color-surface-offset); }
.consent-btn--inline { padding: var(--space-2) var(--space-6); }
.post-body code {
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  background: var(--color-surface-offset);
  font-size: 0.9em;
}
.consent-btn:focus-visible,
.footer-consent:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.footer-consent {
  min-height: 24px; /* WCAG 2.5.8: cel co najmniej 24 x 24 px */
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.footer-consent:hover { color: var(--color-link); text-decoration: underline; }

/* ============================================
   DRUK
   ============================================ */
@media print {
  .scroll-reveal,
  .reveal-ready .scroll-reveal:not(.visible) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-progress, #hero-canvas, .theme-toggle, .hamburger, .mobile-nav, .skip-link, .consent, .footer-consent { display: none !important; }
  .site-header { position: static; }
}

/* Kluczowe zdania w artykulach: cienkie zolte podkreslenie w kolorze logo (mark.hl) */
:root, [data-theme="light"] { --hl-line: #FFC20E; }
[data-theme="dark"] { --hl-line: #FFCB2E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --hl-line: #FFCB2E; } }
mark.hl { color: inherit; background: none; text-decoration: underline 3px var(--hl-line);
  text-underline-offset: 0.22em; text-decoration-skip-ink: none; }
