/* css/base.css */
@font-face {
  font-family: 'Commissioner';
  src: url('/fonts/Commissioner-Variable.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  font-size: var(--fs-text);
  line-height: var(--lh-text);
  font-variant-numeric: tabular-nums;
}

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

/* Images from the files table carry width/height attributes (issue #208), so
   the page does not jump while they load. An attribute height is a CSS
   height, though: without this rule a photo capped by max-width would keep
   its full height and stretch. Every rule that sizes an image on purpose
   (object-fit boxes, the hero) is a class selector and still wins. */
img {
  height: auto;
}


a {
  color: var(--blue);
  text-decoration: none;
}

/* A link inside a sentence is told apart from the words around it by more
   than its colour (WCAG 1.4.1, axe link-in-text-block): the text of a page
   or a post, a contact line, a search result's section. Links that carry a
   class of their own — cards, menus, buttons — are styled by it. */
p a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}


button,
input,
select,
textarea,
.photo-slot,
[class*='card'],
[class*='btn'] {
  border-radius: var(--radius);
  box-shadow: none;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-8); 
}

@media (max-width: 1279px) {
  .container {
    padding-inline: 32px;
  }
}

@media (max-width: 767px) {
  .container {
    padding-inline: var(--space-5); 
  }
}



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

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-3);
  z-index: 1000;
  background: var(--paper);
  color: var(--blue);
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  border: 1.5px solid var(--blue);
}

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

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


.md-align-left {
  text-align: left;
}

.md-align-center {
  text-align: center;
}

.md-align-right {
  text-align: right;
}

.md-indent {
  padding-left: var(--space-7);
}


figure {
  width: fit-content;
  max-width: 100%;
  margin: var(--space-5) auto;
}

figure.md-align-left,
.md-align-left figure {
  margin-left: 0;
  margin-right: auto;
}

figure.md-align-center,
.md-align-center figure {
  margin-inline: auto;
}

figure.md-align-right,
.md-align-right figure {
  margin-left: auto;
  margin-right: 0;
}

figure img {
  max-width: 100%;
  border-radius: 2px;
}

figcaption {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--fs-meta-lg);
  text-align: center;
}

blockquote {
  margin: var(--space-5) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--accent);
  color: var(--body);
  font-style: italic;
}

/* Content blocks emitted by src/lib/renderMarkdown.js */

.md-table {
  overflow-x: auto;
  margin: var(--space-5) 0;
}

.md-table table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: var(--fs-text);
}

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

.md-table th {
  background: var(--line-soft);
  font-weight: 700;
}

.md-map,
.md-video {
  width: 100%;
  margin: var(--space-6) 0;
}

.md-map iframe,
.md-video iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
}

.md-map iframe {
  height: 360px;
}

.md-video iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.md-map figcaption a {
  font-weight: 600;
}

.md-button {
  display: inline-block;
  background: var(--blue);
  color: var(--paper);
  font-weight: 700;
  padding: var(--space-3) var(--space-6);
  border: 1.5px solid var(--blue);
}

.md-button:hover {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: var(--paper);
}

.md-file {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  color: var(--ink);
}

.md-file:hover {
  border-color: var(--accent);
}

.md-file-title {
  flex: 1;
  font-weight: 600;
}

.md-file-meta {
  color: var(--muted);
  font-size: var(--fs-meta-lg);
  white-space: nowrap;
}

.md-file-action {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.md-callout {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--blue);
  background: var(--line-soft);
}

.md-callout-title {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--blue);
}

.md-callout > :last-child {
  margin-bottom: 0;
}

.md-details {
  margin: var(--space-4) 0;
  border: 1px solid var(--line);
  padding: var(--space-3) var(--space-4);
}

.md-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue);
}

.md-details[open] summary {
  margin-bottom: var(--space-3);
}

/* Titles and document names typed in the admin panel: a long compound word
   or a pasted address breaks inside its column instead of widening it past
   the edge of a phone screen (lang="uk" gives hyphens: auto its rules). */
.page-h1,
.news-card-title,
.news-lead-title,
.news-row-title,
.news-opening-title,
.news-more-title,
.document-row-title,
.site-section-title,
.album-card-title,
.home-gallery-title,
.chp-title,
.chp-news-title,
.chp-doc-link {
  overflow-wrap: anywhere;
  hyphens: auto;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-7) 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Low-vision theme. The type scale itself is redefined in tokens.css; these
   are the reading and meta sizes the component files write as literals, off
   the scale, raised to the same steps: 20px+ for text, 15px for meta lines. */
:root[data-theme='low-vision'] .news-article-body {
  font-size: 22px;
}

:root[data-theme='low-vision'] .news-opening-lead,
:root[data-theme='low-vision'] .news-reading .news-article-body > p:first-child {
  font-size: 23px;
}

:root[data-theme='low-vision'] .news-card-title {
  font-size: 23px;
}

:root[data-theme='low-vision'] .news-row-title {
  font-size: 27px;
}

:root[data-theme='low-vision'] .site-footer,
:root[data-theme='low-vision'] .news-lead-summary,
:root[data-theme='low-vision'] .chp-news-summary,
:root[data-theme='low-vision'] .chp-doc-link,
:root[data-theme='low-vision'] .document-row-title,
:root[data-theme='low-vision'] .news-rail-item,
:root[data-theme='low-vision'] .section-report-table table {
  font-size: 20px;
}

:root[data-theme='low-vision'] .footer-bottom,
:root[data-theme='low-vision'] .footer-col h2,
:root[data-theme='low-vision'] .form-group label,
:root[data-theme='low-vision'] .field-error,
:root[data-theme='low-vision'] .section-nav-title,
:root[data-theme='low-vision'] .news-card-date,
:root[data-theme='low-vision'] .news-section-title,
:root[data-theme='low-vision'] .news-lead-kicker,
:root[data-theme='low-vision'] .news-flag,
:root[data-theme='low-vision'] .news-opening .breadcrumbs,
:root[data-theme='low-vision'] .news-opening-kicker,
:root[data-theme='low-vision'] .news-opening-meta,
:root[data-theme='low-vision'] .news-article-byline,
:root[data-theme='low-vision'] .news-linked-pages,
:root[data-theme='low-vision'] .news-share-link,
:root[data-theme='low-vision'] .news-cover figcaption,
:root[data-theme='low-vision'] .news-article-body figcaption,
:root[data-theme='low-vision'] .chp-chip,
:root[data-theme='low-vision'] .chp-chip-count,
:root[data-theme='low-vision'] .chp-doc-type,
:root[data-theme='low-vision'] .chp-year-count,
:root[data-theme='low-vision'] .chp-news-month,
:root[data-theme='low-vision'] .page-opening-counter,
:root[data-theme='low-vision'] .section-report-kicker,
:root[data-theme='low-vision'] .section-report-table th {
  font-size: 15px;
}

/* Photos and embedded maps/videos stay — a gallery without its photos is an
   empty page, and CSS cannot put an image's alt text in its place — but lose
   their colour, so they do not compete with the yellow-on-black text. The
   school's logo keeps its colours. */
:root[data-theme='low-vision'] img,
:root[data-theme='low-vision'] iframe {
  filter: grayscale(1);
}

:root[data-theme='low-vision'] .logo img {
  filter: none;
}

/* Print: the page's own content only — no site frame, and none of the
   screen-only reading aids (progress bar, chapter bar, share links). Loaded
   before every component file, hence !important against their display. */
@media print {
  .topbar,
  .site-header,
  .mobile-menu-overlay,
  .announcement,
  .site-footer,
  .section-nav,
  .reading-progress,
  .chp-bar,
  .news-share {
    display: none !important;
  }
}

/* css/components/photo-slot.css */
.photo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: var(--fs-meta-lg);
  text-align: center;
  padding: var(--space-5);
}


.photo-slot--1-1 {
  aspect-ratio: 1;
}

.photo-slot--16-9 {
  aspect-ratio: 16 / 9;
}

.photo-slot--3-2 {
  aspect-ratio: 3 / 2;
}

/* css/components/homepage.css */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  font-weight: 700;
  font-size: var(--fs-button);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--blue);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--blue-900);
}

.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

.btn-outline:hover {
  background: var(--paper-2);
}




.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-9);
  padding-block: var(--space-9);
  align-items: center;
}

/* No photo uploaded: the photo column isn't rendered at all, so the text
   spans the full width instead of sitting beside an empty rectangle. */
.hero--no-photo {
  grid-template-columns: minmax(0, 1fr);
}

.hero-title {
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  color: var(--blue);
  max-width: 24ch;
}

.hero-tagline {
  font-weight: 700;
  font-size: var(--fs-tagline);
  color: var(--accent);
  margin-top: 18px;
}

.hero-lead {
  font-weight: 400;
  font-size: var(--fs-text);
  line-height: 28px;
  color: var(--body);
  max-width: 46ch;
  margin-top: var(--space-5);
}

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

@media (max-width: 767px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Panorama hero (issue #155): with a photo the hero is a full-width band.
   The photo sits on the right at 16:9, anchored to the right edge so the
   building and the pitch stay in frame; a navy gradient in the colour of
   the top bar carries the text on the left. */
.hero--panorama {
  --hero-ground: var(--chrome-bar);
  --hero-ground-deep: var(--blue-950);
  --hero-ink: #ffffff;
  --hero-ink-soft: rgb(255 255 255 / 0.9);
  /* Left edge of the container, whatever the viewport width. */
  --hero-edge: max(0px, (100% - var(--container)) / 2);

  position: relative;
  display: block;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  min-height: 600px;
  background: linear-gradient(180deg, var(--hero-ground) 0%, var(--hero-ground-deep) 100%);
  color: var(--hero-ink);
}

.hero--panorama .hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  height: 100%;
  aspect-ratio: 16 / 9;
  z-index: -2;
  /* On very wide screens the photo starts where the navy is still showing;
     fading its own left edge keeps that edge from reading as a line. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}

.hero--panorama .hero-media img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  border-radius: 0;
}

/* Solid navy under the text, fading out before the facade, plus soft top
   and bottom edges so the band reads as one piece. */
.hero--panorama::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      var(--hero-ground) 0,
      var(--hero-ground) calc(var(--hero-edge) + 250px),
      var(--blue-a90) calc(var(--hero-edge) + 420px),
      var(--blue-a50) calc(var(--hero-edge) + 520px),
      var(--blue-a12) calc(var(--hero-edge) + 610px),
      transparent calc(var(--hero-edge) + 690px)
    ),
    linear-gradient(180deg, var(--blue-950-a35) 0, transparent 90px),
    linear-gradient(0deg, var(--blue-950-a45) 0, transparent 120px);
}

.hero--panorama .hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
  padding-block: var(--space-10);
}

.hero--panorama .hero-copy {
  max-width: 470px;
}

.hero--panorama .hero-title {
  color: var(--hero-ink);
}

.hero--panorama .hero-tagline {
  color: var(--accent-light);
}

.hero--panorama .hero-lead {
  max-width: none;
  color: var(--hero-ink-soft);
}

.hero--panorama .md-callout {
  margin: 0;
  background: rgb(255 255 255 / 0.08);
  border-left-color: var(--accent-light);
}

.hero--panorama .md-callout-title {
  color: var(--hero-ink);
}

.hero--panorama .md-callout p {
  color: var(--hero-ink-soft);
}

/* Buttons inverted for the dark ground. */
.hero--panorama .btn-primary {
  background: var(--paper);
  color: var(--blue);
  border-color: var(--paper);
}

.hero--panorama .btn-primary:hover {
  background: var(--chrome-tint);
  border-color: var(--chrome-tint);
}

.hero--panorama .btn-outline {
  background: transparent;
  color: var(--hero-ink);
  border-color: rgb(255 255 255 / 0.75);
}

.hero--panorama .btn-outline:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: var(--hero-ink);
}

.hero--panorama .btn:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}

/* The band has its own edge; the next section's hairline would double it. */
.hero--panorama + .home-about {
  border-top: 0;
}

/* Narrower screens cannot keep the facade clear of the text, so the layout
   stacks: copy on navy, then the whole photo, the navy melting into the sky. */
@media (max-width: 1179px) {
  .hero--panorama {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--hero-ground);
  }

  .hero--panorama::before {
    display: none;
  }

  .hero--panorama .hero-inner {
    order: 1;
    width: 100%;
    min-height: 0;
    padding-block: var(--space-9) var(--space-8);
  }

  .hero--panorama .hero-copy {
    max-width: 560px;
  }

  .hero--panorama .hero-media {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    z-index: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero--panorama .hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--hero-ground) 0, transparent 32%);
  }
}

@media (max-width: 767px) {
  .hero--panorama .hero-title {
    font-size: 44px;
  }
}

/* Low-vision theme: no photo, plain high-contrast text on black. */
:root[data-theme='low-vision'] .hero--panorama {
  background: #000000;
}

:root[data-theme='low-vision'] .hero--panorama .hero-media,
:root[data-theme='low-vision'] .hero--panorama::before {
  display: none;
}

:root[data-theme='low-vision'] .hero--panorama .btn-primary {
  background: #ffdd00;
  color: #000000;
  border-color: #ffdd00;
}

.site-sections {
  padding-block: var(--space-10);
}

.section-rubric {
  font-size: var(--fs-meta-sm);
  font-weight: 700;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--blue);
  padding-bottom: var(--space-3);
  display: inline-block;
}

.site-sections-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  margin-top: var(--space-7);
}

.site-sections-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.site-section-title {
  font-size: var(--fs-menu-index);
  font-weight: 700;
  letter-spacing: var(--ls-heading);
  color: var(--ink);
}

.site-section-title--accent {
  color: var(--accent);
}

.site-section-note {
  font-size: var(--fs-meta-lg);
  color: var(--muted);
  white-space: nowrap;
}

.site-sections-list li:hover .site-section-title {
  color: var(--accent);
}

.site-sections-list li:hover .site-section-note {
  color: var(--ink);
}

@media (max-width: 767px) {
  .site-sections-list {
    grid-template-columns: minmax(0, 1fr);
  }
}


.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
}

.section-link {
  font-weight: 700;
  font-size: var(--fs-button);
  white-space: nowrap;
}

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

.news-heading,
.documents-heading {
  font-weight: 800;
  font-size: var(--fs-h2-news);
  color: var(--ink);
}


.news-preview {
  padding-block: var(--space-10);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  margin-top: var(--space-7);
}

.news-card {
  display: block;
  color: inherit;
}

.news-card-photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.news-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.news-card-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-top: var(--space-4);
}

.news-card-title {
  font-size: 19px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover .news-card-title {
  color: var(--blue);
}

.news-card:hover .news-card-photo img {
  transform: scale(1.03);
}

@media (max-width: 767px) {
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


.documents-preview {
  padding-block: var(--space-10);
}

.documents-preview-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-9); 
  margin-top: var(--space-7);
}

.documents-preview-intro p {
  margin-top: var(--space-4);
  max-width: 40ch;
}

.documents-preview-intro .section-link {
  display: inline-block;
  margin-top: var(--space-5);
}

.document-rows {
  margin-bottom: var(--space-8);
}

.document-row {
  display: grid;
  grid-template-columns: 1fr 130px 110px;
  gap: var(--space-5);
  padding-block: 15px;
  color: inherit;
  border-top: 1px solid var(--line);
}

.document-row:first-child {
  border-top: 2px solid var(--blue);
}

.document-row:hover {
  background: var(--paper-2);
  margin-inline: -16px;
  padding-inline: 16px;
}

.document-row-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.document-row:hover .document-row-title {
  color: var(--blue);
}

.document-row-type {
  font-size: var(--fs-meta-sm);
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-filetype);
}

.document-row-date {
  font-size: var(--fs-meta-lg);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.document-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.document-group-col h3 {
  font-size: var(--fs-nav);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.document-group-col a {
  display: block;
  font-size: var(--fs-nav);
  color: var(--body);
  padding-block: var(--space-1);
}

.document-group-col a:hover {
  color: var(--accent);
}

@media (max-width: 767px) {
  .documents-preview-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-1);
  }

  .document-row-date {
    text-align: left;
  }

  .document-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Optional home page blocks: an excerpt of the "about" page, the latest
   album, contacts with a map. */

.home-about {
  padding-block: var(--space-10);
  border-top: 1px solid var(--line);
}

.home-about-heading,
.home-gallery-heading,
.home-contacts-heading {
  font-weight: 800;
  font-size: var(--fs-h2-news);
  color: var(--ink);
}

.home-about-text {
  margin-top: var(--space-6);
  max-width: 68ch;
  font-size: var(--fs-text);
  line-height: var(--lh-text);
  color: var(--body);
}

.home-about-text p {
  margin-bottom: var(--space-4);
}

.home-about-text p:last-child {
  margin-bottom: 0;
}

.home-gallery {
  padding-block: var(--space-10);
}

.home-gallery-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
  margin-top: var(--space-6);
}

.home-gallery-photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-2);
}

.home-gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.home-gallery-card:hover .home-gallery-photo img {
  transform: scale(1.03);
}

.home-gallery-title {
  font-size: var(--fs-card-title);
  font-weight: 700;
  letter-spacing: var(--ls-h3);
  line-height: var(--lh-h3);
  color: var(--ink);
}

.home-gallery-card:hover .home-gallery-title {
  color: var(--accent);
}

.home-gallery-meta {
  margin-top: var(--space-2);
  font-size: var(--fs-meta-lg);
  color: var(--muted);
}

.home-contacts {
  padding-block: var(--space-10);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-9);
  align-items: start;
}

.home-contacts--no-map {
  grid-template-columns: minmax(0, 1fr);
}

.home-contacts-list {
  margin: var(--space-6) 0 0;
  display: grid;
  gap: var(--space-3);
}

.home-contacts-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: var(--space-3);
  font-size: var(--fs-text);
  line-height: var(--lh-text);
  color: var(--body);
}

.home-contacts-row dt {
  font-weight: 700;
  color: var(--ink);
}

.home-contacts-row dd {
  margin: 0;
}

.home-contacts-info .chrome-social {
  margin-top: var(--space-5);
}

.home-contacts-actions {
  margin-top: var(--space-6);
}

.home-contacts-map iframe {
  display: block;
  border: 1px solid var(--line);
}

.home-contacts-map .contacts-map-link {
  margin-top: var(--space-2);
  font-size: var(--fs-meta-lg);
}

@media (max-width: 767px) {
  .home-gallery-card,
  .home-contacts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* css/components/news.css */
/* Page heading used by the plain text pages, galleries, the library and
   contacts. The news pages have their own navy opening instead. */
.page-h1 {
  font-weight: 800;
  font-size: var(--fs-h2-news);
  color: var(--ink);
  padding-block: var(--space-9) var(--space-5);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.filter-chip {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: var(--fs-nav);
  padding: var(--space-2) var(--space-5);
  cursor: pointer;
  font-family: inherit;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--paper);
}

/* The chips are links: filtering happens on the server, so every
   combination of year and rubric has an address of its own. */
a.filter-chip {
  display: inline-block;
  text-decoration: none;
}

.filter-chip.is-active:hover {
  color: var(--paper);
}

.news-empty {
  color: var(--muted);
  padding-block: var(--space-8);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-7);
  border-top: 1px solid var(--line);
}

.pagination-link {
  font-weight: 700;
  color: var(--accent);
}

.pagination-status {
  color: var(--muted);
  font-size: var(--fs-meta-lg);
}

/* ==========================================================================
   «Журнал» — the news feed as a magazine front, a post as an immersive
   opening followed by a reading column. The navy grounds continue the site
   frame (top bar, footer, the home page panorama).
   ========================================================================== */

.news-front,
.news-opening {
  --news-ground: var(--chrome-bar);
  --news-ground-deep: var(--blue-950);
  --news-ink: #ffffff;
  --news-ink-soft: rgb(255 255 255 / 0.88);
  --news-ink-faint: rgb(255 255 255 / 0.76);
  --news-hair: rgb(255 255 255 / 0.22);

  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--news-ground) 0%, var(--news-ground-deep) 100%);
  color: var(--news-ink);
}

.news-front :focus-visible,
.news-opening :focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}

.news-arrow {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform var(--transition-fast);
}

/* A cover or a header photo as a framed print: a white mat, a shadow and a
   second sheet behind it. A poster with its own lettering stays an object
   beside the headline instead of a banner competing with it. */
.news-frame {
  position: relative;
  display: block;
  background: var(--paper);
  padding: 8px;
  box-shadow:
    0 28px 56px -22px var(--blue-shadow-a60),
    0 2px 8px var(--blue-shadow-a22);
}

.news-frame::before {
  content: '';
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--accent-light-a55);
  z-index: -1;
}

.news-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.news-section-title {
  margin: 0;
  padding-top: var(--space-3);
  border-top: 3px solid var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--blue);
}

.news-more-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--fs-button);
  font-weight: 700;
  color: var(--accent);
}

/* ---------- list: the front ---------- */

.news-front {
  overflow: hidden;
}

.news-front::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--blue-950-a35) 0, transparent 90px),
    linear-gradient(0deg, var(--blue-950-a50) 0, transparent 140px);
  pointer-events: none;
}

.news-front-inner {
  padding-block: var(--space-7) var(--space-10);
}

.news-front-inner:has(.news-lead) {
  padding-bottom: var(--space-11);
}

.news-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-7);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--news-hair);
}

.news-masthead-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--news-ink);
}

.news-masthead-filters {
  display: grid;
  justify-items: end;
  gap: var(--space-2);
}

.news-front .chip-row {
  margin: 0;
  gap: var(--space-2);
}

.news-front .filter-chip {
  min-height: 34px;
  padding: 5px 14px;
  font-size: 13.5px;
  color: var(--news-ink);
  border: 1px solid rgb(255 255 255 / 0.45);
}

.news-front .filter-chip:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: var(--news-ink);
  color: var(--news-ink);
}

.news-front .filter-chip.is-active {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--blue);
}

.news-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
  margin-top: var(--space-9);
}

.news-lead--no-cover {
  grid-template-columns: minmax(0, 1fr);
}

.news-lead--no-cover .news-lead-copy {
  max-width: 760px;
}

.news-lead-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-5);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
}

.news-flag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--blue-950);
}

.news-lead-rubric {
  font-weight: 700;
  color: var(--news-ink);
}

.news-lead-title {
  margin: 0;
  font-size: clamp(27px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.news-lead-title a {
  color: var(--news-ink);
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.news-lead-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
}

.news-lead-summary {
  margin: var(--space-5) 0 0;
  max-width: 52ch;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--news-ink-soft);
}

.news-lead-btn {
  gap: var(--space-3);
  margin-top: var(--space-7);
  background: var(--paper);
  color: var(--blue);
  border-color: var(--paper);
  text-decoration: none;
}

.news-lead-btn:hover {
  background: var(--chrome-tint);
  border-color: var(--chrome-tint);
}

.news-lead-media {
  position: relative;
  display: block;
  isolation: isolate;
  margin-right: 16px; /* room for the second sheet */
}

/* The cover once more, blurred into the navy — the list's echo of the home
   page panorama, where the photo melts into the band. */
.news-lead-glow {
  position: absolute;
  inset: -35% -60% -35% -25%;
  width: auto;
  max-width: none;
  height: auto;
  object-fit: cover;
  filter: blur(64px) saturate(1.1);
  opacity: 0.32;
  z-index: -2;
  pointer-events: none;
}

.news-lead-btn:hover .news-arrow,
.news-row:hover .news-arrow,
.news-more-card:hover .news-arrow {
  transform: translateX(3px);
}

/* ---------- list: the rows ---------- */

.news-feed {
  padding-block: var(--space-10) var(--space-11);
}

.news-rows-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-row {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 300px;
  gap: var(--space-8);
  align-items: start;
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--line);
}

.news-row--no-cover {
  grid-template-columns: 120px minmax(0, 1fr);
}

.news-row[hidden] {
  display: none;
}

.news-row-date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  color: var(--blue);
}

.news-row-day {
  font-size: 52px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: var(--ls-heading);
  font-variant-numeric: tabular-nums;
}

.news-row-month {
  font-size: var(--fs-meta-lg);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.news-row-rubric {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-meta-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.news-row-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: var(--ls-h3);
  color: var(--ink);
  text-wrap: balance;
}

.news-row-link,
.news-more-card-link {
  color: inherit;
  text-decoration: none;
}

/* The whole row / card is the click target; the title is the one link. */
.news-row-link::after,
.news-more-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.news-row:hover .news-row-link,
.news-more-card:hover .news-more-card-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.news-row-link:focus-visible,
.news-more-card-link:focus-visible {
  outline: none;
}

.news-row-link:focus-visible::after,
.news-more-card-link:focus-visible::after {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.news-row-summary,
.news-more-summary {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-text);
  line-height: 1.6;
  color: var(--body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.news-row-media,
.news-more-media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--chrome-tint);
}

.news-row-media {
  outline: 1px solid var(--line);
}

.news-row-media img,
.news-more-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.news-row:hover .news-row-media img,
.news-more-card:hover .news-more-media img {
  transform: scale(1.03);
}

.news-feed .pagination {
  margin-top: var(--space-7);
}

/* ---------- post: the opening ---------- */

.news-opening-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: var(--space-10);
  align-items: end;
  padding-block: var(--space-6) var(--space-10);
}

.news-opening--no-cover .news-opening-inner {
  grid-template-columns: minmax(0, 1fr);
}

.news-opening--no-cover .news-opening-copy {
  max-width: 820px;
}

.news-opening .draft-preview-banner {
  margin-bottom: var(--space-5);
  color: var(--ink);
}

.news-opening .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  font-size: 13.5px;
  color: var(--news-ink-faint);
}

.news-opening .breadcrumbs a {
  color: var(--news-ink-faint);
  text-decoration: none;
}

.news-opening .breadcrumbs a:hover {
  color: var(--news-ink);
  text-decoration: underline;
}

.news-opening-kicker {
  display: inline-block;
  margin: 0 0 var(--space-4);
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--blue-950);
}

.news-opening-title {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--news-ink);
  text-wrap: balance;
}

.news-opening-lead {
  margin: var(--space-6) 0 0;
  max-width: 56ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--news-ink-soft);
}

.news-opening-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-7) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--news-hair);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
}

.news-opening-meta > * + *::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: var(--space-5);
  vertical-align: middle;
  background: var(--news-hair);
}

/* «Текст: … · Фото: …» (#182), under the date line. */
.news-article-byline {
  margin: var(--space-3) 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--news-ink-soft);
}

/* «Також у розділах: Харчування» — the info pages that show this post
   (#181), each a way back to its news chapter. */
.news-linked-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: 14px;
}

.news-linked-pages-label {
  font-weight: 600;
  color: var(--news-ink-faint);
}

.news-linked-page {
  padding: 3px 10px;
  border: 1px solid var(--news-hair);
  font-weight: 700;
  color: var(--news-ink);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.news-linked-page:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: var(--accent-light);
}

@media (prefers-reduced-motion: reduce) {
  .news-linked-page {
    transition: none;
  }
}

:root[data-theme='low-vision'] .news-linked-page {
  border: 2px solid var(--line);
  color: var(--ink);
}

/* The cover hangs out of the band into the page. */
.news-cover {
  position: relative;
  z-index: 1;
  margin: 0 16px -112px 0;
}

.news-cover img {
  cursor: zoom-in;
}

.news-cover figcaption {
  margin-top: var(--space-4);
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}

/* ---------- post: reading column + side rail ---------- */

.news-reading {
  display: grid;
  grid-template-columns: 172px minmax(0, 680px);
  gap: var(--space-11);
  padding-block: var(--space-9) var(--space-10);
}

.news-opening:not(.news-opening--no-cover) + .news-reading {
  padding-top: 136px;
}

.news-rail {
  position: sticky;
  top: 112px;
  align-self: start;
  display: grid;
  gap: var(--space-5);
  padding-top: var(--space-2);
  border-top: 3px solid var(--blue);
}

.news-rail-item {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.news-rail-label,
.news-share-label {
  font-size: var(--fs-meta-sm);
  font-weight: 700;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--muted);
}

.news-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.news-share-label {
  margin-right: var(--space-2);
}

.news-share-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 6px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  background: var(--paper);
  border: 1.5px solid var(--line);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.news-share-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
}

.news-share-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.news-share--rail {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.news-share--rail .news-share-label {
  margin: 0 0 var(--space-2);
}

.news-share--rail .news-share-link {
  min-height: 40px;
  padding-inline: 0;
  border-width: 0 0 1px;
  border-color: var(--line-soft);
}

.news-share--rail .news-share-link:hover {
  border-color: var(--accent);
}

/* ---------- post: the text ---------- */

/* Also the class of the admin editor's live preview
   (src/admin/views/news/form.ejs), so text looks there as it will here. */
.news-article-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--body);
}

.news-article-body > :first-child {
  margin-top: 0;
}

.news-article-body p {
  margin-top: var(--space-4);
}

.news-article-body strong {
  color: var(--ink);
}

.news-article-body h2 {
  position: relative;
  margin: var(--space-9) 0 var(--space-4);
  padding-top: var(--space-5);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: var(--ls-h3);
  color: var(--blue);
  text-wrap: balance;
}

.news-article-body h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--accent);
}

.news-article-body h3 {
  margin: var(--space-7) 0 var(--space-3);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.news-article-body blockquote {
  margin: var(--space-7) 0;
  padding: 0 0 0 var(--space-6);
  border-left: 3px solid var(--accent);
  font-size: 21px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--blue);
}

.news-article-body figure {
  margin-block: var(--space-8);
}

.news-article-body figure img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.news-article-body figcaption {
  margin-top: var(--space-2);
  font-size: 14px;
  color: var(--muted);
}

/* The video: a navy screen with a caption strip. */
.news-article-body .md-video {
  margin-block: var(--space-5) var(--space-8);
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-950) 100%);
  box-shadow: 0 28px 56px -22px var(--blue-shadow-a60);
}

.news-article-body .md-video::after {
  content: 'Відео · YouTube';
  display: block;
  margin-top: 12px;
  padding-left: 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: linear-gradient(var(--accent-light), var(--accent-light)) 0 50% / 12px 2px no-repeat;
}

.news-article-body .md-video iframe {
  background: var(--blue-950);
}

.news-article-body .md-map {
  margin-block: var(--space-7);
}

.news-article-body .md-callout {
  margin-block: var(--space-8) 0;
  padding: var(--space-6) var(--space-7);
  background: var(--chrome-tint);
  border-left: 4px solid var(--accent);
}

.news-article-body .md-callout-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
}

/* On the public page (not in the editor preview) the first paragraph is the
   way in: a size up, and a drop cap when it starts with words. */
.news-reading .news-article-body > p:first-child {
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
}

.news-reading .news-article-body.has-dropcap > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-size: 3.6em;
  font-weight: 800;
  line-height: 0.8;
  color: var(--blue);
}

/* The video and the photos are a little wider than the text. */
.news-reading .news-article-body .md-video,
.news-reading .news-article-body figure:not(.md-video):not(.md-map) {
  width: calc(100% + 80px);
  max-width: none;
  margin-inline: -40px;
}

.news-article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.news-article-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.news-article-back:hover {
  text-decoration: underline;
}

.news-article-back:hover .news-arrow--back {
  transform: translateX(-3px);
}

/* ---------- post: «Читайте також» ---------- */

.news-more {
  padding-block: var(--space-9) var(--space-11);
  background: var(--chrome-tint);
  border-top: 1px solid var(--chrome-tint-line);
}

.news-more .news-section-title {
  margin-bottom: var(--space-7);
}

.news-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-7);
}

.news-more-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--chrome-tint-line);
}

.news-more-copy {
  padding: var(--space-5) var(--space-6) var(--space-6);
}

.news-more-date {
  margin: 0;
  font-size: var(--fs-meta-lg);
  font-weight: 700;
  color: var(--accent);
}

.news-more-title {
  margin: var(--space-2) 0 0;
  font-size: var(--fs-card-title);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

/* One related post: a wide card, not a lonely third of a row. */
.news-more-card:only-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.news-more-card:only-child:not(:has(.news-more-media)) {
  grid-template-columns: minmax(0, 1fr);
}

.news-more-card:only-child .news-more-copy {
  align-self: center;
  padding: var(--space-7) var(--space-8);
}

.news-more-card:only-child .news-more-title {
  font-size: 24px;
  line-height: 1.25;
}

/* ---------- reading-progress bar (public/js/reading-progress.js) ---------- */

.reading-progress {
  display: none;
}

.has-reading-progress .reading-progress {
  display: block;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  height: 4px;
  pointer-events: none;
}

.reading-progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.6);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 90ms linear;
}

/* ---------- a feed inside a dropdown: the side menu takes the left, so
   the bands become panels in the right column ---------- */

.section-layout-main .news-front .news-front-inner,
.section-layout-main .news-opening .news-opening-inner {
  padding-inline: var(--space-7);
}

.section-layout-main .news-opening-inner {
  grid-template-columns: minmax(0, 1fr);
}

.section-layout-main .news-cover {
  max-width: 460px;
}

.section-layout-main .news-reading {
  grid-template-columns: minmax(0, 1fr);
}

.section-layout-main .news-rail {
  display: none;
}

.section-layout-main .news-lead {
  gap: var(--space-8);
}

.section-layout-main .news-reading-main {
  max-width: 680px;
}

.section-layout-main .news-reading .news-article-body .md-video,
.section-layout-main .news-reading .news-article-body figure:not(.md-video):not(.md-map) {
  width: 100%;
  margin-inline: 0;
}

@media (min-width: 900px) {
  .section-layout-main .news-row {
    grid-template-columns: 96px minmax(0, 1fr) 220px;
    gap: var(--space-7);
  }

  .section-layout-main .news-row--no-cover {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

.section-layout-main .news-feed,
.section-layout-main .news-more {
  padding-top: var(--space-8);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1179px) {
  .news-opening-inner {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: var(--space-8);
  }

  .news-reading {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: var(--space-8);
  }
}

@media (max-width: 899px) {
  .news-lead {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-7);
  }

  .news-front-inner:has(.news-lead) {
    padding-bottom: var(--space-9);
  }

  .news-masthead-filters {
    justify-items: start;
  }

  .news-row,
  .news-row--no-cover {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: var(--space-3) var(--space-5);
    padding-block: var(--space-6);
  }

  .news-row--no-cover .news-row-copy {
    grid-column: 1 / -1;
  }

  .news-row-date {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-2);
  }

  .news-row-day,
  .news-row-month {
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--blue);
  }

  .news-row-title {
    font-size: 19px;
  }

  .news-row-media {
    aspect-ratio: 1;
  }

  .news-opening-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .news-opening .breadcrumbs {
    margin-bottom: var(--space-6);
  }

  .news-cover {
    margin-bottom: -96px;
  }

  .news-reading {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-opening:not(.news-opening--no-cover) + .news-reading {
    padding-top: 128px;
  }

  /* The share block at the end of the text covers small screens. */
  .news-rail {
    display: none;
  }

  .news-reading .news-article-body .md-video,
  .news-reading .news-article-body figure:not(.md-video):not(.md-map) {
    width: calc(100% + 2 * var(--space-5));
    margin-inline: calc(-1 * var(--space-5));
  }

  .news-more-grid,
  .news-more-card:only-child {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-more-card:only-child .news-more-copy {
    padding: var(--space-5) var(--space-6) var(--space-6);
  }

  .news-more-card:only-child .news-more-title {
    font-size: var(--fs-card-title);
  }
}

@media (max-width: 767px) {
  .news-masthead-title {
    font-size: 24px;
  }

  .news-lead-summary {
    font-size: 16.5px;
  }

  .news-row-summary {
    grid-column: 1 / -1;
  }

  .news-opening-lead {
    font-size: 17.5px;
  }

  .news-article-body {
    font-size: 17px;
  }

  .news-reading .news-article-body > p:first-child {
    font-size: 18.5px;
  }

  .news-article-body h2 {
    font-size: 23px;
  }

  .news-article-body .md-video {
    padding: 8px 8px 12px;
  }

  .news-article-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-layout-main .news-front .news-front-inner,
  .section-layout-main .news-opening .news-opening-inner {
    padding-inline: var(--space-5);
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .news-arrow,
  .reading-progress-bar,
  .news-row-media img,
  .news-more-media img {
    transition: none;
  }

  .news-row:hover .news-row-media img,
  .news-more-card:hover .news-more-media img,
  .news-lead-btn:hover .news-arrow,
  .news-row:hover .news-arrow,
  .news-more-card:hover .news-arrow,
  .news-article-back:hover .news-arrow--back {
    transform: none;
  }
}

/* ---------- low-vision theme: black grounds, no photo tricks ----------
   Its tokens turn --blue-950 yellow, so the navy gradients would run from
   black to yellow; the bands become black with a yellow rule instead. */

:root[data-theme='low-vision'] .news-front,
:root[data-theme='low-vision'] .news-opening {
  background: var(--paper);
  border-block: 2px solid var(--line);
}

:root[data-theme='low-vision'] .news-front::before,
:root[data-theme='low-vision'] .news-lead-glow,
:root[data-theme='low-vision'] .news-frame::before {
  display: none;
}

:root[data-theme='low-vision'] .news-frame {
  padding: 0;
  border: 2px solid var(--line);
  box-shadow: none;
}

:root[data-theme='low-vision'] .news-flag,
:root[data-theme='low-vision'] .news-opening-kicker {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--ink);
}

:root[data-theme='low-vision'] .news-lead-btn {
  border-color: var(--line);
}

:root[data-theme='low-vision'] .news-article-body .md-video {
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: none;
}

:root[data-theme='low-vision'] .news-article-body .md-video::after {
  color: var(--ink);
  background: none;
  padding-left: 0;
}

:root[data-theme='low-vision'] .reading-progress-bar {
  background: var(--accent);
  box-shadow: none;
}

/* css/components/document-library.css */
.doc-library {
  padding-block: var(--space-9) var(--space-10);
}

.doc-library-controls {
  margin-bottom: var(--space-7);
}

.doc-search {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 48px;
  border: 1px solid var(--line-strong);
  padding-inline: var(--space-5);
  font-family: inherit;
  font-size: var(--fs-text);
  margin-bottom: var(--space-5);
}

.doc-search:focus-visible {
  border-color: var(--accent);
}


.doc-library-rows {
  border-top: 2px solid var(--blue);
}

.doc-library-rows .document-row:first-child {
  border-top: none;
}


.document-row[hidden] {
  display: none;
}

.doc-library-empty {
  color: var(--muted);
  padding-block: var(--space-8);
}

.doc-library-empty p {
  margin-bottom: var(--space-4);
}

/* Second row: the sections of the chosen group, lighter than the group
   chips so the two levels read as such. */
.chip-row--sections {
  margin-top: calc(-1 * var(--space-4));
  padding-left: var(--space-3);
  border-left: 3px solid var(--line);
}

.chip-row--sections[hidden] {
  display: none;
}

.filter-chip--small {
  font-size: var(--fs-meta-lg);
  padding: var(--space-1) var(--space-4);
}

.filter-chip-count {
  margin-left: var(--space-2);
  font-weight: 600;
  opacity: 0.7;
}

/* css/components/text-page.css */
.text-page {
  padding-block: var(--space-9) var(--space-10);
}

/* A page inside a dropdown: the rest of its section on the left, the page on
   the right (layouts/base.ejs). The page keeps its own markup; its outer
   container and vertical padding give way to the layout's. */
.section-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: var(--space-9);
  align-items: start;
  padding-block: var(--space-9) var(--space-10);
}

/* Two classes, so it outranks the page wrappers' own padding rules
   (gallery, library, news), whichever stylesheet loads last. */
.section-layout .section-layout-main > * {
  padding-block: 0;
}

.section-layout-main .container {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.section-layout-main .page-h1 {
  padding-top: 0;
}

.section-nav {
  position: sticky;
  top: 100px;
  border-top: 3px solid var(--blue);
  background: var(--chrome-tint);
  padding: var(--space-4) var(--space-2) var(--space-3);
}

.section-nav-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 0 var(--space-3) var(--space-2);
}

.section-nav ul {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.section-nav a {
  display: block;
  font-size: var(--fs-nav-side);
  line-height: 1.35;
  color: var(--body);
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid transparent;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.section-nav a:hover {
  color: var(--blue);
  background: var(--paper);
}

.section-nav a.active {
  color: var(--blue);
  background: var(--paper);
  border-left-color: var(--accent);
  font-weight: 700;
}

/* Tablets and phones: the section becomes a scrollable row of links above
   the page, so the page itself stays in the first screen. */
@media (max-width: 1023px) {
  .section-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    padding-top: var(--space-6);
  }

  .section-nav {
    position: static;
    padding: var(--space-3) 0 0;
  }

  .section-nav-title {
    padding-inline: var(--space-3);
  }

  .section-nav ul {
    display: flex;
    gap: var(--space-1);
    overflow-x: auto;
    padding: 0 var(--space-3) var(--space-3);
    scrollbar-width: thin;
  }

  .section-nav li {
    flex: none;
  }

  .section-nav a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid transparent;
    background: var(--paper);
    padding: var(--space-1) var(--space-3);
  }

  .section-nav a.active {
    border-bottom-color: var(--accent);
  }
}

.text-page-content {
  max-width: 68ch;
}

.text-page-content .page-h1 {
  padding-top: 0;
}

/* An info page with a header photo opens with a navy band (partials/
   page-opening.ejs, colours and type from .news-opening in news.css) across
   the whole width above the section side menu. Unlike a news cover, which
   is often a poster with text and is framed whole, the page photo is a
   panorama like the home hero: it fills the right part of the band and
   fades into the navy, so nothing hangs out and the page follows directly. */
.page-opening {
  overflow: hidden;
}

.page-opening .news-opening-inner {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 340px;
  padding-block: var(--space-9);
}

.page-opening .news-opening-copy {
  position: relative;
  z-index: 1;
  max-width: 46%;
}

.page-opening .news-cover {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  margin: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%);
  mask-image: linear-gradient(90deg, transparent 0, #000 35%);
}

.page-opening .news-frame {
  height: 100%;
  padding: 0;
  background: none;
  box-shadow: none;
}

.page-opening .news-frame::before {
  display: none;
}

.page-opening .news-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: default;
}

/* A page without a side menu has no heading of its own once the band
   carries the title, so its text column takes the heading's spacing. */
main > .page-opening + .text-page-content {
  padding-block: var(--space-9) var(--space-10);
}

/* ...and lines up with the title in the band: the container's left edge,
   the reading measure kept on its children. */
main > .page-opening + .text-page-content {
  max-width: var(--container);
}

main > .page-opening + .text-page-content > * {
  max-width: 68ch;
}

/* Narrow screens: the title on navy, then the whole photo under it, the
   navy melting into its sky. */
@media (max-width: 899px) {
  .page-opening .news-opening-inner {
    min-height: 0;
    padding-block: var(--space-8) var(--space-6);
  }

  .page-opening .news-opening-copy {
    max-width: none;
  }

  .page-opening .news-cover {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0, #000 30%);
  }
}

/* Without a header photo (#183): a plain navy band — the title, the
   description and the counters, no empty right half. Only pages with news,
   documents or photos get it; a page with only text keeps its white heading. */
.page-opening--plain .news-opening-inner {
  min-height: 0;
  padding-block: var(--space-9) var(--space-8);
}

.page-opening--plain .news-opening-copy {
  max-width: 760px;
}

/* «10 новин · 6 документів · 9 фото» — each a jump to its chapter. */
.page-opening-counters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: var(--space-6) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--news-hair);
}

.page-opening-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--news-ink-soft);
  text-decoration: none;
}

.page-opening-count {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--ls-heading);
  font-variant-numeric: tabular-nums;
  color: var(--news-ink);
}

.page-opening-counter:hover {
  color: var(--news-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-underline-offset: 5px;
}

@media (max-width: 899px) {
  .page-opening--plain .news-opening-inner {
    padding-block: var(--space-8);
  }

  .page-opening-count {
    font-size: 22px;
  }
}

:root[data-theme='low-vision'] .page-opening .news-cover {
  display: none;
}

:root[data-theme='low-vision'] .page-opening .news-opening-copy {
  max-width: none;
}

.text-page-contact {
  margin-top: var(--space-9);
  padding-top: var(--space-7);
  border-top: 1px solid var(--line);
}

.text-page-contact p {
  margin-bottom: var(--space-2);
}

.text-page-contact .btn {
  margin-top: var(--space-4);
}



.director-card {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.director-photo {
  width: 140px;
  height: 140px;
  flex: none;
}

.director-name {
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--ink);
}

.director-text {
  margin-top: var(--space-7);
}


.team-banner {
  margin-top: var(--space-7);
}

/* Optional intro above the cards on a people page (story #97). */
.team-intro {
  margin-top: var(--space-7);
}

.team-intro > :first-child {
  margin-top: 0;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.team-photo {
  width: 96px;
  height: 96px;
}

.team-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.team-name,
.team-position,
.team-meta,
.team-bio {
  
  flex-basis: 100%;
}

.team-name {
  font-size: var(--fs-nav);
  font-weight: 700;
  color: var(--ink);
}

.team-position {
  font-size: var(--fs-meta-lg);
  color: var(--muted);
}

.team-meta {
  font-size: var(--fs-meta-sm);
  color: var(--muted);
}

.team-qualification {
  font-weight: 600;
  color: var(--accent);
}

.team-bio {
  font-size: var(--fs-meta-lg);
  color: var(--ink);
  margin-top: var(--space-2);
}

@media (max-width: 767px) {
  .team-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Printable school-year list of a page's news (#184, section-report.ejs). */
.section-report {
  padding-block: var(--space-8) var(--space-10);
}

.section-report-back {
  margin-bottom: var(--space-6);
  font-size: var(--fs-meta-lg);
}

.section-report-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-report-title {
  margin-top: var(--space-2);
  font-size: var(--fs-h2-news);
  font-weight: 800;
  color: var(--ink);
}

.section-report-year {
  margin-top: var(--space-2);
  color: var(--muted);
}

.section-report-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-block: var(--space-6);
}

.section-report-tools .chip-row {
  margin: 0;
}

.section-report-table {
  overflow-x: auto;
  border-top: 3px solid var(--blue);
}

.section-report-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.section-report-table th,
.section-report-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.section-report-table th {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-report-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.section-report-link a {
  word-break: break-all;
}

/* The site frame is hidden in print by base.css; this is the report's own. */
@media print {
  .section-report-back,
  .section-report-tools {
    display: none !important;
  }

  .section-layout {
    display: block;
    padding: 0;
  }

  .section-report {
    padding: 0;
    max-width: none;
  }

  .section-report-table {
    overflow: visible;
    border-top-color: #000;
  }

  .section-report-table table {
    font-size: 11pt;
  }

  .section-report-link a {
    color: #000;
  }
}

/* css/components/contacts.css */
.contacts-page {
  max-width: 68ch;
  padding-block: var(--space-9) var(--space-10);
}

.contacts-info p {
  margin-bottom: var(--space-2);
}

.contacts-map {
  margin-top: var(--space-7);
}

.contacts-map iframe {
  display: block;
  border: 1px solid var(--line);
}

.contacts-map-link {
  margin-top: var(--space-2);
  font-size: var(--fs-meta-lg);
}

.contacts-hours {
  margin-top: var(--space-8);
}


.contact-form {
  margin-top: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--body);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  height: 48px;
  border: 1px solid var(--line-strong);
  padding-inline: var(--space-4);
  font-family: inherit;
  font-size: var(--fs-text);
}

.form-group textarea {
  height: auto;
  padding-block: var(--space-3);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--accent);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--error);
}

.field-error {
  font-size: 13px;
  color: var(--error);
  margin-top: var(--space-2);
}


.contact-result {
  max-width: 60ch;
  padding-block: var(--space-9) var(--space-10);
}

.contact-result-message {
  margin-top: var(--space-4);
  margin-bottom: var(--space-7);
}

/* css/components/gallery.css */
.gallery-container {
  padding-block: var(--space-9);
}


.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  box-shadow: 0 6px 18px var(--blue-a16);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 899px) {
  .masonry-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .masonry-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}


.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background-color: var(--blue-950-a92);
  backdrop-filter: blur(6px);
}


.modal[hidden] {
  display: none;
}

.modal-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
}

.modal-content {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: gallery-zoom-in var(--transition-base);
}

#modal-caption {
  margin-top: var(--space-4);
  color: var(--paper);
  font-size: var(--fs-text);
  text-align: center;
  max-width: 60ch;
  line-height: var(--lh-text);
}

.modal-counter {
  margin-top: var(--space-2);
  color: var(--accent-light);
  font-size: var(--fs-meta-lg);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
}

.close-modal,
.modal-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--paper);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.close-modal:hover,
.modal-nav:hover {
  background: var(--paper);
  color: var(--blue-950);
}

.close-modal {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  font-family: inherit;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav--prev {
  left: var(--space-6);
}

.modal-nav--next {
  right: var(--space-6);
}


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

@keyframes gallery-zoom-in {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .modal {
    padding: var(--space-3);
  }

  .close-modal {
    top: var(--space-3);
    right: var(--space-3);
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .modal-nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .modal-nav--prev {
    left: var(--space-2);
  }

  .modal-nav--next {
    right: var(--space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-content {
    animation: none;
  }

  .gallery-item img {
    transition: none;
  }
}


/* Albums (story #96): a gallery page lists albums, and one album shows its
   captioned photos. The photo grid reuses .masonry-gallery so the shared
   lightbox finds the images; the <figure> wrapper needs .gallery-item to stay
   a block. */

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.album-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: box-shadow var(--transition-fast);
}

.album-card:hover,
.album-card:focus-visible {
  box-shadow: 0 6px 18px var(--blue-a16);
}

.album-card-cover {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-2);
}

.album-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}

.album-card:hover .album-card-cover img {
  transform: scale(1.04);
}

.album-card-body {
  display: block;
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.album-card-title {
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.album-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
  font-size: var(--fs-meta-lg);
  color: var(--muted);
}

.album-back {
  padding-top: var(--space-7);
}

.album-date {
  color: var(--muted);
  margin-bottom: var(--space-6);
}

.album-photo {
  margin: 0;
}

.album-photo .gallery-item {
  display: block;
}

.album-photo-caption {
  margin-top: var(--space-2);
  font-size: var(--fs-meta-lg);
  color: var(--muted);
}

@media (max-width: 899px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .album-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }
}

/* css/components/section-page.css */
/* ==========================================================================
   «Розділи» — the info page as one calm column of chapters (#183,
   partials/section-page.ejs). Under the opening band: a slim sticky
   «На сторінці» bar naming only the parts that exist, then numbered chapters
   separated by thin navy rules — the text, the news, the documents, the
   photos. Long lists are folded after a few items, so a full page stays short
   and a sparse one stays tidy. A page with only text never gets here.
   ========================================================================== */

.section-page {
  --chp-header: 72px; /* the compact sticky site header */
  --chp-bar-h: 52px;
  --chp-gap: 72px; /* between chapters */
  --chp-offset: calc(var(--chp-header) + var(--chp-bar-h) + 20px);

  padding-block: var(--space-9) var(--space-10);
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.chp-bar) {
    scroll-behavior: smooth;
  }
}

/* ---------- the chapter bar ---------- */

.chp-bar {
  position: sticky;
  top: var(--chp-header);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--chp-bar-h);
  margin-bottom: var(--space-9);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.chp-bar-label {
  flex: none;
  margin: 0;
  font-size: var(--fs-meta-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.chp-bar-list {
  display: flex;
  gap: var(--space-1);
  margin: 0;
  padding: var(--space-2) 3px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.chp-bar-list::-webkit-scrollbar {
  display: none;
}

.chp-bar-list li {
  flex: none;
}

.chp-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px var(--space-3);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.chp-chip:hover {
  background: var(--chrome-tint);
  color: var(--blue);
}

.chp-chip-count {
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.chp-chip.is-active {
  background: var(--blue);
  color: var(--paper);
}

.chp-chip.is-active .chp-chip-count {
  color: var(--accent-light);
}

.chp-chip:focus-visible,
.chp-year:focus-visible,
.chp-btn:focus-visible,
.chp-report-link:focus-visible,
.chp-news-link:focus-visible,
.chp-doc-link:focus-visible,
.chp-photo img:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- a chapter ---------- */

.chp {
  scroll-margin-top: var(--chp-offset);
}

.chp + .chp {
  margin-top: var(--chp-gap);
}

.chp-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--blue);
}

.chp-head--plain {
  grid-template-columns: minmax(0, 1fr);
}

/* The first chapter sits right under the bar (or the heading); a rule there
   would double it. */
.chp:first-of-type .chp-head {
  border-top: 0;
  padding-top: 0;
}

.chp-num {
  font-size: 56px;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: var(--ls-heading);
  font-variant-numeric: tabular-nums;
  color: var(--blue);
}

.chp-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.chp-meta {
  margin: 6px 0 0;
  font-size: var(--fs-meta-lg);
  color: var(--muted);
}

/* ---------- buttons ---------- */

.chp-btn,
.chp-report-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px var(--space-5);
  border: 1.5px solid var(--blue);
  background: var(--paper);
  color: var(--blue);
  font: inherit;
  font-size: var(--fs-button);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.chp-btn:hover,
.chp-report-link:hover {
  background: var(--chrome-tint);
}

.chp-btn[hidden] {
  display: none;
}

.chp-btn-count {
  font-weight: 600;
  color: var(--muted);
}

.chp-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.chp-expand {
  margin-top: var(--space-6);
}

.chp-expand::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.chp-expand[aria-expanded='true']::after {
  transform: translateY(2px) rotate(-135deg);
}

/* ---------- 01 text ---------- */

.chp-text {
  max-width: 68ch;
}

.chp-text > :first-child,
.chp-text-body > :first-child {
  margin-top: 0;
}

/* Reading rhythm for the editors' text inside the chapter: paragraphs,
   headings and lists get the air a single long column needs. */
.chp-text-body p,
.chp-text-body ul,
.chp-text-body ol,
.chp-text-body table {
  margin-bottom: var(--space-4);
}

.chp-text-body ul,
.chp-text-body ol {
  padding-left: 1.3em;
}

.chp-text-body h2,
.chp-text-body h3 {
  margin: var(--space-8) 0 var(--space-3);
  font-weight: 800;
  letter-spacing: var(--ls-h3);
  color: var(--ink);
}

.chp-text-body h2 {
  font-size: 22px;
}

.chp-text-body h3 {
  font-size: 19px;
}

.chp-text .director-card {
  margin-top: 0;
  margin-bottom: var(--space-7);
}

/* ---------- 02 news ---------- */

.chp-news-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
}

.chp-years {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chp-year {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px var(--space-4);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--body);
  font-size: var(--fs-nav);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.chp-year:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chp-year.is-active {
  border-color: var(--blue);
  background: var(--chrome-tint);
  color: var(--blue);
}

.chp-year-count {
  font-size: 12px;
  color: var(--muted);
}

.chp-years-single {
  margin: 0;
  font-size: var(--fs-nav);
  font-weight: 600;
  color: var(--muted);
}

.chp-report-link {
  border-color: var(--line);
  padding-block: 7px;
}

.chp-report-link:hover {
  border-color: var(--blue);
}

/* The latest post across the column, then cards two by two. */
.chp-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-7);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chp-news {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.chp-news-media {
  display: block;
}

.chp-news-media .news-frame {
  padding: 0;
  box-shadow: none;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--chrome-tint);
}

.chp-news-media .news-frame::before {
  display: none;
}

.chp-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.chp-news:hover .chp-news-media img {
  transform: scale(1.03);
}

.chp-news-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: start;
}

.chp-news-copy > * {
  grid-column: 2;
}

.chp-news-date {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding-top: 2px;
  color: var(--blue);
}

.chp-news-day {
  font-size: 36px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: var(--ls-heading);
  font-variant-numeric: tabular-nums;
}

.chp-news-month {
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
}

.chp-news-title {
  margin: 0;
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}

.chp-news-link {
  color: inherit;
  text-decoration: none;
}

/* The whole card is the link. */
.chp-news-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.chp-news:hover .chp-news-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.chp-news-summary {
  margin: var(--space-2) 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}

/* A card without a cover: the date carries it, on a tinted ground. */
.chp-news--no-cover:not(.is-featured) {
  align-self: start;
  padding: var(--space-5);
  background: var(--chrome-tint);
  border-top: 3px solid var(--blue);
}

/* Featured: framed like the «Журнал» front, on a light tint. */
.chp-news.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-7) var(--space-7) var(--space-7) var(--space-6);
  background: var(--chrome-tint);
  border-top: 3px solid var(--blue);
}

.chp-news.is-featured.chp-news--no-cover {
  grid-template-columns: minmax(0, 1fr);
}

.chp-news.is-featured .chp-news-media {
  margin-right: 14px; /* room for the second sheet */
}

.chp-news.is-featured .chp-news-media .news-frame {
  padding: 7px;
  overflow: visible;
  background: var(--paper);
  box-shadow:
    0 22px 44px -24px var(--blue-shadow-a45),
    0 2px 6px var(--blue-shadow-a14);
}

.chp-news.is-featured .chp-news-media .news-frame::before {
  display: block;
  inset: 14px -14px -14px 14px;
  border-color: var(--blue-a28);
}

.chp-news.is-featured .chp-news-media img {
  height: 100%;
}

.chp-news.is-featured .chp-news-copy {
  display: block;
}

.chp-news-flag {
  margin: 0 0 var(--space-3);
}

.chp-news.is-featured .news-flag {
  background: var(--blue);
  color: var(--paper);
}

.chp-news.is-featured .chp-news-date {
  flex-direction: row;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding: 0;
}

.chp-news.is-featured .chp-news-day {
  font-size: 44px;
}

.chp-news.is-featured .chp-news-month {
  margin: 0;
  font-size: var(--fs-meta-lg);
  text-align: left;
}

.chp-news.is-featured .chp-news-title {
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

.chp-news.is-featured .chp-news-summary {
  margin-top: var(--space-4);
  font-size: 15.5px;
  line-height: 1.6;
}

.chp-news-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--fs-button);
  font-weight: 700;
  color: var(--accent);
}

.chp-news:hover .news-arrow {
  transform: translateX(3px);
}

/* A lone card after the featured one reads as a row, not half a grid. */
.chp-news.is-alone {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.chp-news.is-alone.chp-news--no-cover {
  grid-template-columns: minmax(0, 1fr);
}

.chp-news-foot {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

/* ---------- 03 documents ---------- */

.chp-docs {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.chp-doc {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-4) var(--space-2) var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--transition-fast);
}

.chp-doc[hidden],
.chp-photo[hidden] {
  display: none !important;
}

.chp-doc:hover {
  background: var(--paper-2);
}

.chp-doc-type {
  display: grid;
  place-items: center;
  width: 52px;
  height: 40px;
  border: 1.5px solid currentColor;
  background: var(--paper);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: var(--ls-filetype);
  color: var(--blue);
}

.chp-doc-type--pdf {
  color: var(--error);
}

.chp-doc-type--doc,
.chp-doc-type--docx,
.chp-doc-type--odt {
  color: var(--accent);
}

.chp-doc-link {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
}

/* The whole row is the link. */
.chp-doc-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.chp-doc:hover .chp-doc-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.chp-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--space-4);
  margin: 4px 0 0;
  font-size: var(--fs-meta-lg);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.chp-doc-dl {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line);
  color: var(--blue);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.chp-doc:hover .chp-doc-dl {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--paper);
}

/* ---------- 04 photos ---------- */

/* Two classes, so it outranks gallery.css's own column counts. */
.masonry-gallery.chp-photos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chp-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--chrome-tint);
}

.chp-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.chp-photo:hover img {
  transform: scale(1.04);
}

/* ---------- tablets and phones ---------- */

@media (max-width: 1023px) {
  .chp-bar {
    margin-bottom: var(--space-7);
  }
}

@media (max-width: 767px) {
  .section-page {
    --chp-gap: 56px;
  }

  .chp-bar {
    gap: var(--space-3);
  }

  .chp-bar-label {
    display: none;
  }

  .chp-num {
    font-size: 40px;
  }

  .chp-title {
    font-size: 25px;
  }

  .chp-news-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .chp-years {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .chp-year {
    flex: none;
  }

  .chp-report-link {
    align-self: flex-start;
  }

  .chp-news-list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .chp-news.is-featured {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    padding: var(--space-6) var(--space-5);
  }

  /* The cards shrink to rows — a small thumbnail beside the date and the
     title — so ten news do not become ten screens. */
  .chp-news:not(.is-featured) {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--line);
  }

  .chp-news:not(.is-featured) .chp-news-copy {
    display: block;
  }

  .chp-news:not(.is-featured) .chp-news-date {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    margin-bottom: 4px;
    padding: 0;
  }

  .chp-news:not(.is-featured) .chp-news-day {
    font-size: 22px;
  }

  .chp-news:not(.is-featured) .chp-news-month {
    margin: 0;
  }

  .chp-news:not(.is-featured) .chp-news-title {
    font-size: 16.5px;
  }

  .chp-news.is-alone .chp-news-summary {
    display: none;
  }

  .chp-news--no-cover:not(.is-featured) {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-4);
  }

  .chp-news-foot .chp-btn,
  .chp-expand {
    width: 100%;
    justify-content: center;
  }

  .chp-doc {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
  }

  .chp-doc-type {
    width: 44px;
    height: 36px;
    font-size: 10.5px;
  }

  .chp-doc-dl {
    display: none;
  }

  .chp-doc-link {
    font-size: 16px;
  }

  .masonry-gallery.chp-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }
}

/* ---------- motion, low vision ---------- */

@media (prefers-reduced-motion: reduce) {
  .chp-chip,
  .chp-btn,
  .chp-report-link,
  .chp-news-media img,
  .chp-photo img,
  .chp-doc,
  .chp-doc-dl {
    transition: none;
  }

  .chp-news:hover .chp-news-media img,
  .chp-photo:hover img,
  .chp-news:hover .news-arrow {
    transform: none;
  }
}

:root[data-theme='low-vision'] .chp-news.is-featured,
:root[data-theme='low-vision'] .chp-news--no-cover:not(.is-featured) {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top-width: 3px;
}

:root[data-theme='low-vision'] .chp-news.is-featured .chp-news-media .news-frame {
  box-shadow: none;
  border: 1px solid var(--line);
}

:root[data-theme='low-vision'] .chp-news.is-featured .chp-news-media .news-frame::before {
  display: none;
}

:root[data-theme='low-vision'] .chp-year.is-active,
:root[data-theme='low-vision'] .chp-chip:hover,
:root[data-theme='low-vision'] .chp-btn:hover,
:root[data-theme='low-vision'] .chp-report-link:hover,
:root[data-theme='low-vision'] .chp-doc:hover {
  background: var(--paper);
  color: var(--blue);
  outline: 2px solid var(--blue);
}

:root[data-theme='low-vision'] .chp-doc-type {
  color: var(--blue);
  background: var(--paper);
}

:root[data-theme='low-vision'] .chp-chip.is-active .chp-chip-count {
  color: var(--paper);
}

/* css/components/authors.css */
/* ==========================================================================
   Authors (#188): the byline in a post's opening, the «Автори» cards at the
   end of a post, and the author page. Built on the «Журнал» styles of
   news.css (the navy opening, the rows, the section titles).
   ========================================================================== */

/* ---------- avatar: a photo, or the initials on a tint ---------- */

.author-av {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--chrome-tint-line);
  color: var(--blue);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.author-av img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-av--initials {
  background: var(--accent-light);
  color: var(--blue-950);
}

.author-av--xs {
  width: 22px;
  height: 22px;
  font-size: 9px;
  letter-spacing: 0;
}

.author-av--card {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

.author-av--hero {
  width: 184px;
  height: 184px;
  font-size: 64px;
  box-shadow:
    0 0 0 8px var(--paper),
    0 28px 56px -18px var(--blue-shadow-a70);
}

/* ---------- byline in the navy opening ---------- */

.author-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.author-byline-part {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--news-ink-faint);
}

.author-byline-person {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--news-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--news-hair);
  transition: border-color var(--transition-fast);
}

.author-byline-person:hover {
  border-bottom-color: var(--accent-light);
}

/* Credited but not linked: an author without recorded consent has no page,
   so nothing here may look like a link. */
.author-byline-person--plain,
.author-byline-person--plain:hover {
  border-bottom-color: transparent;
}

.author-byline-person .author-av {
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.35);
}

.author-byline-sep {
  color: var(--news-hair);
}

/* ---------- «Автори» at the end of a post ---------- */

.author-cards {
  margin-top: var(--space-9);
}

.author-cards .news-section-title {
  margin-bottom: var(--space-5);
}

.author-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.author-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-5);
  background: var(--chrome-tint);
  border: 1px solid var(--chrome-tint-line);
}

.author-card-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
}

.author-role {
  display: inline-block;
  padding: 2px 8px;
  font-size: var(--fs-meta-sm);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--blue);
  border: 1.5px solid var(--blue);
}

.author-role--photo {
  color: var(--blue);
  background: var(--paper);
}

.author-card-name {
  margin: 0;
  font-size: var(--fs-card-title);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.author-card-link {
  color: inherit;
  text-decoration: none;
}

/* The whole card is the click target; the name is the one link. */
.author-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.author-card:hover .author-card-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.author-card-link:focus-visible {
  outline: none;
}

.author-card-link:focus-visible::after {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.author-card-sign {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--body);
}

.author-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.author-card-more .news-arrow {
  width: 16px;
  height: 16px;
}

.author-card:hover .news-arrow {
  transform: translateX(3px);
}

/* ---------- author page: the navy band ---------- */

.author-hero-inner {
  padding-block: var(--space-6) var(--space-10);
}

.author-hero-grid {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}

.author-hero-sign {
  margin: var(--space-3) 0 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-light);
}

.author-hero .author-hero-bio {
  margin-top: var(--space-5);
  font-size: 17.5px;
}

.author-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--news-hair);
}

.author-stat {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--news-ink-faint);
}

.author-stat strong {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--news-ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- author page: the publications ---------- */

.author-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-7);
  margin-bottom: var(--space-7);
}

.author-filters .chip-row {
  margin: 0;
}

.author-year + .author-year {
  margin-top: var(--space-9);
}

.author-year-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
}

.author-year-count {
  font-size: var(--fs-meta-lg);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.author-row-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  letter-spacing: 0;
  text-transform: none;
}

.author-row-roles .author-role {
  font-size: 11px;
}

.author-row-co {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.author-more-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.author-more-status {
  font-size: var(--fs-meta-lg);
  color: var(--muted);
}

.author-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 22px;
  font-size: var(--fs-button);
  font-weight: 700;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.author-more-btn:hover {
  background: var(--blue);
  color: var(--paper);
}

.author-more-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- responsive ---------- */

@media (max-width: 899px) {
  .author-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
  }

  .author-av--hero {
    width: 128px;
    height: 128px;
    font-size: 44px;
    box-shadow:
      0 0 0 6px var(--paper),
      0 20px 40px -16px var(--blue-shadow-a70);
  }

  .author-hero-inner {
    padding-bottom: var(--space-8);
  }
}

@media (max-width: 767px) {
  .author-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .author-card {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: var(--space-4);
  }

  .author-av--card {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .author-stats {
    gap: var(--space-3) var(--space-6);
  }

  .author-stat strong {
    font-size: 24px;
  }

  .author-more-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .author-byline-person,
  .author-more-btn {
    transition: none;
  }

  .author-card:hover .news-arrow {
    transform: none;
  }
}

/* ---------- low-vision theme: black grounds, yellow rules ----------
   Its tokens turn the blues and tints yellow or black, so the tinted
   avatars and cards would lose their text; outline them instead. */

:root[data-theme='low-vision'] .author-av,
:root[data-theme='low-vision'] .author-av--initials {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: none;
}

:root[data-theme='low-vision'] .author-card {
  background: var(--paper);
  border: 2px solid var(--line);
}

:root[data-theme='low-vision'] .author-role {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

:root[data-theme='low-vision'] .author-byline-person {
  border-bottom-color: var(--line);
}

/* css/components/search.css */
/* The search results page (/poshuk): a wide field, then the hits grouped
   into pages, posts and documents. */
.search-page {
  padding-bottom: var(--space-11);
}

.search-form {
  display: flex;
  gap: var(--space-3);
  max-width: 720px;
  margin-bottom: var(--space-7);
}

.search-form-input {
  appearance: none;
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 var(--space-5);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;
}

.search-form-input:focus {
  border-color: var(--accent);
}

.search-status {
  color: var(--body);
  margin-bottom: var(--space-7);
}

.search-status p {
  margin: 0;
}

.search-hint {
  color: var(--muted);
  font-size: 15px;
  margin-top: var(--space-2);
}

.search-group {
  margin-bottom: var(--space-9);
}

.search-group-title {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--blue);
  margin-bottom: var(--space-2);
}

.search-group-count {
  font-size: var(--fs-meta-lg);
  font-weight: 600;
  color: var(--muted);
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result {
  max-width: 72ch;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.search-result-title {
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--blue);
}

.search-result-title:hover {
  color: var(--accent);
  text-decoration: underline;
}

.search-result-meta {
  margin-top: var(--space-1);
  font-size: var(--fs-meta-lg);
  color: var(--muted);
}

.search-result-type {
  font-weight: 700;
  letter-spacing: var(--ls-filetype);
}

.search-result-snippet {
  margin-top: var(--space-2);
  color: var(--body);
  line-height: 1.6;
}

/* The words that matched. */
.search-page mark {
  background: #fdeeb0;
  color: inherit;
  padding-inline: 1px;
}

:root[data-theme='low-vision'] .search-page mark {
  background: var(--blue);
  color: var(--paper);
}

@media (max-width: 767px) {
  .search-form {
    flex-direction: column;
  }
}

/* css/components/transparency.css */
/* The transparency page (/prozorist): the article 30 items the school has
   published, one numbered row each, linking to the page or document. */
.transparency-page {
  padding-bottom: var(--space-11);
}

.transparency-lead {
  max-width: 720px;
  color: var(--body);
  margin-bottom: var(--space-7);
}

.transparency-list {
  max-width: 860px;
  margin: 0;
  padding-left: var(--space-6);
}

.transparency-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.transparency-link {
  font-weight: 700;
  color: var(--blue);
}

.transparency-meta {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* css/chrome.css */
.topbar {
  height: 40px;
  background: var(--chrome-bar);
  border-bottom: 1px solid var(--chrome-bar);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.topbar-contacts {
  display: flex;
  gap: var(--space-6);
  font-size: var(--fs-meta-lg);
  color: var(--chrome-bar-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
  min-width: 0;
}

.topbar-contacts a {
  color: inherit;
}

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

/* The one highlighted link in the top bar (Налаштування → Контакти). */
.topbar-important {
  background: var(--error);
  color: var(--paper);
  font-size: var(--fs-meta-lg);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  text-decoration: none;
  white-space: nowrap;
}

.topbar-important:hover,
.topbar-important:focus-visible {
  background: var(--error-dark);
  color: var(--paper);
}

.mobile-menu-overlay a.mobile-important {
  background: var(--error);
  color: var(--paper);
  font-weight: 700;
  padding-inline: var(--space-4);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

/* Focus ring on the dark bands. The site-wide ring (base.css) is the accent blue, which on the navy
   top bar and footer is 1.6:1 — a keyboard user could not see where they were (review 2026-09, F-02;
   WCAG 2.4.7, 1.4.11). --chrome-bar-strong is the bands' own white and follows the theme, as the
   dark news band already does (news.css). Not .mobile-important in the mobile menu, which the review
   also listed: the ring sits outside that red button, on the menu's white paper, where the accent
   already reads and a white ring would vanish. */
.topbar :focus-visible,
.site-footer :focus-visible,
.announcement :focus-visible {
  outline: 3px solid var(--chrome-bar-strong);
  outline-offset: 3px;
}

.low-vision-toggle {
  background: transparent;
  border: 1px solid var(--chrome-bar-line);
  color: var(--chrome-bar-strong);
  font-size: var(--fs-meta-lg);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  font-family: inherit;
}

.low-vision-toggle:hover {
  border-color: var(--chrome-bar-strong);
}

.low-vision-toggle[aria-pressed='true'] {
  background: var(--chrome-bar-strong);
  color: var(--chrome-bar);
  border-color: var(--chrome-bar-strong);
}

.chrome-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chrome-social a {
  display: flex;
  color: var(--muted);
}

.chrome-social svg {
  fill: currentColor;
  width: 18px;
  height: 18px;
}

.topbar .chrome-social a {
  color: var(--chrome-bar-ink);
}

.topbar .chrome-social a:hover {
  color: var(--chrome-bar-strong);
}

.topbar .chrome-social svg {
  width: 18px;
  height: 18px;
}


.site-header {
  height: 116px;
  background: var(--chrome-tint);
  border-bottom: 1px solid var(--chrome-tint-line);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: height var(--transition-base);
}

.site-header.is-sticky {
  height: 72px;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: inherit;
}

.logo-mark {
  flex: none;
  width: 84px;
  height: 84px;
  font-weight: 800;
  font-size: 32px;
  padding: 0;
  transition: width var(--transition-base), height var(--transition-base);
}


.site-header.is-sticky .logo-mark {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-line-1 {
  font-weight: 700;
  font-size: 19px;
  color: var(--blue);
}

.logo-line-2 {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.logo-line-3 {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.site-header.is-sticky .logo-line-1 {
  font-size: 15px;
}

.site-header.is-sticky .logo-line-2 {
  font-size: 12.5px;
}

.site-header.is-sticky .logo-line-3 {
  font-size: 10.5px;
}


.logo-mark--image {
  object-fit: contain;
  background: none;
  border: none;
  mix-blend-mode: multiply;
}

/* On the black low-vision header, multiply would black the logo out. */
:root[data-theme='low-vision'] .logo-mark--image {
  mix-blend-mode: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  flex: 1;
  justify-content: flex-end;
}

.main-nav > a,
.mega-menu-trigger {
  white-space: nowrap;
  flex: none;
  font-size: var(--fs-nav-main);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-block: var(--space-2);
}

.main-nav > a:hover,
.mega-menu-trigger:hover {
  color: var(--accent);
}

.main-nav > a.active,
.mega-menu-trigger.active {
  border-bottom-color: var(--accent);
}

.mega-menu-trigger {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.mega-menu-wrap {
  position: relative;
}

/* The dropdown sits on a white page, so it has to read as a separate layer:
   a blue edge on top, a shadow under it, and a small pointer back to the
   menu item it belongs to. */
.mega-menu-panel {
  position: absolute;
  top: calc(100% + var(--space-4));
  left: 50%;
  transform: translateX(-50%);
  background: var(--chrome-tint);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  box-shadow:
    0 2px 6px var(--blue-950-a08),
    0 18px 44px var(--blue-950-a18);
  padding: var(--space-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px var(--space-3);
  min-width: 460px;
  z-index: 50;
  animation: mega-menu-in var(--transition-fast);
}

/* Pointer: a square turned 45deg, sharing the panel's blue top edge. */
.mega-menu-panel::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--chrome-tint);
  border-top: 3px solid var(--blue);
  border-left: 3px solid var(--blue);
  transform: translateX(-50%) rotate(45deg);
}

/* Bridges the gap between the menu item and the panel, so moving the mouse
   down does not leave both and close the dropdown. */
.mega-menu-panel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: calc(var(--space-4) + 3px);
}

@keyframes mega-menu-in {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mega-menu-panel {
    animation: none;
  }
}

.mega-menu-panel[hidden] {
  display: none;
}

.mega-menu-panel a {
  display: block;
  font-size: var(--fs-nav-sub);
  font-weight: 500;
  color: var(--ink);
  padding: var(--space-2) var(--space-4);
  border-left: 3px solid transparent;
  /* A long page title wraps inside its column rather than widening the
     whole panel past the edge of the screen. */
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.mega-menu-panel a:hover,
.mega-menu-panel a:focus-visible {
  background: var(--paper);
  box-shadow: 0 1px 3px var(--blue-950-a10);
  color: var(--blue);
  border-left-color: var(--accent);
}

.mega-menu-panel a.active {
  color: var(--accent);
  font-weight: 700;
  border-left-color: var(--accent);
}

/* The open item keeps its colour and turns its arrow, so it is clear which
   menu the panel belongs to. */
.mega-menu-trigger[aria-expanded='true'] {
  color: var(--accent);
}

.mega-menu-trigger > span {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.mega-menu-trigger[aria-expanded='true'] > span {
  transform: rotate(180deg);
}

.main-nav > a.nav-cta {
  background: var(--blue);
  color: var(--paper);
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  font-size: var(--fs-button);
}

.nav-cta:hover {
  background: var(--blue-900);
}

.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hamburger-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blue);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  overflow-y: auto;
  padding: var(--space-8) var(--space-5);
}

.mobile-menu-overlay a,
.mobile-about-toggle {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.mobile-about-panel {
  padding-left: var(--space-5);
}

.mobile-about-panel a {
  min-height: 48px;
  font-size: var(--fs-nav-sub);
  font-weight: 500;
}

.mobile-menu-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* Seven top-level items and the button: tighter spacing on ordinary
   laptop widths, and below 1280px the menu folds into the burger instead of
   running off the right edge. */
@media (max-width: 1439px) {
  .main-nav {
    gap: var(--space-4);
  }

  .main-nav > a,
  .mega-menu-trigger {
    font-size: 15px;
  }
}

@media (max-width: 1279px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}


/* Site search in the header. The menu leaves no room for a standing field,
   so the header shows the magnifier only — the field's label. Focusing the
   field (a click on the magnifier, or Tab) opens it to the left, over the
   menu, as a layer of its own; leaving it folds it away again. */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
}

.header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--blue);
  cursor: pointer;
}

.header-search-toggle:hover,
.header-search:focus-within .header-search-toggle {
  color: var(--accent);
}

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

/* Folded: no width, no border, invisible, but still in the tab order. */
.header-search-input {
  appearance: none;
  position: absolute;
  top: 50%;
  right: 100%;
  z-index: 45;
  width: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  transform: translateY(-50%);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-nav-main);
  transition:
    width var(--transition-fast),
    opacity var(--transition-fast);
}

.header-search:focus-within .header-search-input {
  width: min(20rem, 60vw);
  height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--accent);
  opacity: 1;
  box-shadow: 0 8px 24px var(--blue-950-a10);
}

.header-search-input::placeholder {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .header-search-input {
    transition: none;
  }
}

/* Burger mode: the menu is gone, so the magnifier sits right, next to the
   burger, rather than floating in the middle of the header. */
@media (max-width: 1279px) {
  .header-search {
    margin-left: auto;
  }
}

/* On a phone the wordmark, the magnifier and the burger no longer fit in
   one row: at 360px the burger ends 6px past the edge. The mobile menu
   opens with a full search field of its own, so the magnifier goes. */
@media (max-width: 479px) {
  .header-search {
    display: none;
  }
}

/* The same search at the top of the mobile menu, as wide as the menu. */
.mobile-search {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.mobile-search-input {
  appearance: none;
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  /* 16px or more, or iOS zooms the page in when the field gets focus. */
  font-size: 16px;
}

.mobile-search-input:focus {
  border-color: var(--accent);
}

.mobile-search-button {
  min-height: 48px;
  padding: 0 var(--space-5);
  background: var(--blue);
  color: var(--paper);
  border: none;
  font-family: inherit;
  font-size: var(--fs-button);
  font-weight: 700;
  cursor: pointer;
}

.mobile-search-button:hover {
  background: var(--blue-900);
}

/* Site-wide announcement strip under the header, on every page: "alert" is for the rare urgent case
   (remote learning tomorrow), "info" for a calm notice. */
.announcement {
  padding-block: var(--space-3);
  font-weight: 600;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.announcement-icon {
  font-size: 1.25em;
  line-height: 1;
}

.announcement--alert {
  background: var(--error);
  color: var(--paper);
  border-bottom: 3px solid var(--error-dark);
}

.announcement--info {
  background: var(--blue);
  color: var(--paper);
}
.site-footer {
  background: var(--chrome-bar);
  color: var(--chrome-bar-ink);
  padding-block: var(--space-9);
  font-size: 13.5px;
  line-height: 1.9;
}

/* Columns are switchable from the admin panel, so the row is a wrapping
   flex line rather than a fixed 4-column grid: a hidden column leaves no gap. */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.footer-col {
  flex: 1 1 160px;
  min-width: 0;
}

.footer-about {
  flex: 1.4 1 240px;
}

.footer-contacts p {
  margin: 0;
}

.footer-contacts .chrome-social {
  margin-block: var(--space-3);
}

.footer-cta {
  display: inline-block;
  margin-top: var(--space-3);
  border: 1px solid var(--chrome-bar-line);
  padding: var(--space-1) var(--space-4);
  color: var(--chrome-bar-strong);
  font-weight: 600;
}

.footer-cta:hover {
  border-color: var(--chrome-bar-strong);
}

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom p {
  margin: 0;
}

.footer-col h2 {
  color: var(--chrome-bar-strong);
  font-size: 13px;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a {
  display: block;
  color: var(--chrome-bar-ink);
  padding-block: var(--space-1);
}

.footer-col a:hover {
  color: var(--chrome-bar-strong);
}

.footer-org-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--chrome-bar-strong);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.footer-tagline {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-light);
  margin-top: var(--space-4);
}

.footer-contacts .chrome-social a,
.footer-contacts a {
  color: var(--chrome-bar-ink);
}

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    gap: var(--space-7);
  }
}

/* Phones: the top bar keeps only its buttons; the contacts are in the footer. */
@media (max-width: 767px) {
  .topbar-contacts {
    display: none;
  }

  .topbar-inner {
    justify-content: flex-end;
  }

  .topbar-actions {
    gap: var(--space-3);
  }

  .topbar .chrome-social {
    display: none;
  }

  .low-vision-toggle,
  .topbar-important {
    white-space: nowrap;
  }
}

/* css/style.css */
.honeypot-field {
  position: absolute;
  left: -10000px;
  top: -10000px;
}

.draft-preview-banner {
  background: #fff3cd;
  border: 1px solid #ffe08a;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}
