/*
 * Concurs de fotografia ICMAB-CSIC — application layer.
 * Builds on tokens.css + bundle.css (ICMAB-CSIC design system) and only uses their variables.
 * Light theme only: the ICMAB system defines no dark palette.
 */

/* ---------- Base ---------- */
:root {
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-size: 18px; line-height: 27px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface-white); }
main { flex: 1 0 auto; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink-strong); margin: 0 0 var(--space-m); text-wrap: balance; }
p { margin: 0 0 var(--space-m); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink-strong); font-weight: 600; }
code { font-size: .9em; background: var(--surface-muted); padding: 1px 5px; border-radius: var(--radius-sm); color: var(--ink-strong); }
[hidden] { display: none !important; }

/* Sections span the full width; the .container inside sets the gutters. */
.ic-section { padding-inline: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-gutter-s); }
.container--narrow { max-width: 620px; }
.container--text { max-width: 820px; }
@media (min-width: 640px) { .container { padding-inline: var(--space-gutter-m); } }
@media (min-width: 960px) { .container { padding-inline: var(--space-gutter-l); } }

.sr-only { position: absolute !important; 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: var(--space-m); top: -80px; z-index: 100; padding: 8px 20px; background: var(--icmab-purple); color: var(--on-dark); }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + var(--space-s)); color: var(--on-dark); }
.on-dark :focus-visible { outline-color: var(--on-dark); }

.icon { width: 1.1em; height: 1.1em; flex: none; }
.ic-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ic-btn .icon { width: 18px; height: 18px; }
.ic-label { display: inline-flex; align-items: center; gap: 6px; }
.ic-label .icon { width: 14px; height: 14px; }
.ic-label--muted { background: var(--surface-muted); color: var(--ink-strong); }
.ic-alert { display: flex; gap: 10px; align-items: flex-start; }

/* Research-line accents: only when a category maps to a research line */
[data-accent="mat4energy"] { --accent: var(--mat4energy); }
[data-accent="mat4electronics"] { --accent: var(--mat4electronics); }
[data-accent="mat4health"] { --accent: var(--mat4health); }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-l); min-height: 80px; }
.site-header__logos { display: flex; align-items: center; gap: var(--space-m); padding-block: 18px; margin-right: auto; }
.site-header__brand { display: block; line-height: 0; }
.site-header__brand img { height: 40px; width: auto; }
.site-header__brand img.is-banner { height: 48px; }
.site-header__partner { height: 40px; width: auto; }
.site-header__nav { display: flex; gap: 30px; align-self: stretch; }
.site-header__nav .ic-navbar__item { min-height: 60px; }
.site-header__nav .ic-navbar__item::before { bottom: -1px; }
.site-header__tools { display: flex; align-items: center; gap: var(--space-m); }
.site-header__logout { margin: 0; }

.lang-switch { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.lang-switch a { display: block; min-width: 36px; padding: 3px 8px; text-align: center; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .5px; color: var(--ink); border: 1px solid transparent; border-radius: var(--radius-sm); }
.lang-switch a:hover { color: var(--ink-strong); border-color: var(--line); text-decoration: none; }
.lang-switch a[aria-current] { color: var(--icmab-purple); border-color: var(--icmab-purple); }

@media (max-width: 860px) {
  .site-header__inner { gap: 0 var(--space-m); }
  .site-header__brand img { height: 32px; }
  .site-header__brand img.is-banner { height: 38px; }
  .site-header__nav { order: 3; width: 100%; gap: 24px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
  .site-header__nav::-webkit-scrollbar { display: none; }
  .site-header__nav .ic-navbar__item { min-height: 48px; font-size: 16px; white-space: nowrap; }
}

/* ---------- Flash messages & toast ---------- */
.flash-stack { display: grid; gap: var(--space-s); padding-block: var(--space-m) 0; }
.flash__icon { width: 20px; height: 20px; margin-top: 3px; color: var(--icmab-purple); }

.toast {
  position: fixed; left: 50%; z-index: 70;
  bottom: calc(var(--space-m) + env(safe-area-inset-bottom, 0px));
  max-width: min(92vw, 520px); padding: 14px 20px;
  display: flex; gap: 10px; align-items: center;
  background: var(--ink-deep); color: var(--on-dark); box-shadow: var(--shadow-large);
  font-size: 16px; line-height: 1.4;
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.toast .icon { width: 20px; height: 20px; color: var(--secondary-tint); }
.toast[data-type="error"] { background: var(--icmab-purple-hover); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: 60px; }
/* Corner facets: the style guide's angular triangles, in icmab-purple-soft */
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; background: var(--icmab-purple-soft); pointer-events: none; }
.hero::before { top: 0; right: 0; width: min(46vw, 520px); aspect-ratio: 1; clip-path: polygon(100% 0, 100% 100%, 22% 0); opacity: .45; }
.hero::after { bottom: 0; left: 0; width: min(22vw, 220px); aspect-ratio: 1; clip-path: polygon(0 18%, 0 100%, 100% 100%); opacity: .3; }
@media (min-width: 960px) { .hero { padding-block: 110px 90px; } }

.hero__grid { display: grid; gap: var(--space-l); }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; gap: 80px; } }
.hero__title { color: var(--on-dark); font-size: clamp(36px, 5.4vw, 52px); margin-bottom: var(--space-m); max-width: 18ch; }
.hero__lead { color: var(--on-dark); opacity: .92; max-width: 56ch; margin-bottom: 30px; }
@media (max-width: 640px) { .hero__lead { font-size: 19px; } }

.status { display: inline-flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 16px; font-size: 17px; line-height: 1.45; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-white); color: var(--ink-strong); }
.status__icon { width: 20px; height: 20px; margin-top: 2px; color: var(--icmab-purple); }
.status time { font-weight: 600; }
.status a { margin-left: 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.on-dark .status { background: transparent; border-color: rgba(255,255,255,.4); color: var(--on-dark); }
.on-dark .status__icon { color: var(--secondary-tint); }
.on-dark .status a { color: var(--on-dark); }

.hero__how { background: var(--icmab-purple-deep); padding: var(--space-gutter-m); border-top: 3px solid var(--secondary); }
.hero__how-title { color: var(--on-dark); margin-bottom: var(--space-m); }
.how-list { list-style: none; margin: 0; padding: 0; counter-reset: how; display: grid; gap: 14px; }
@media (max-width: 640px) { .hero__how { padding: var(--space-m); } .how-list { gap: 10px; } .how-list li { font-size: 16px; } }
.how-list li { counter-increment: how; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 17px; line-height: 1.45; color: var(--on-dark); }
.how-list li::before { content: counter(how); font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 25px; color: var(--secondary-tint); }

.hero--compact { padding-block: 50px; }
@media (min-width: 960px) { .hero--compact { padding-block: 80px 60px; } }

/* ---------- Category bar (sticky) ---------- */
.category-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface-white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-small); }
.category-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s) var(--space-l); padding-block: 14px; }
.category-bar__pills { flex-wrap: nowrap; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: -4px; padding: 4px; }
.category-bar__pills::-webkit-scrollbar { display: none; }
.category-bar .ic-pill { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 17px; background: var(--surface-white); }
.category-bar .ic-pill[aria-current] { font-weight: 600; }
.category-bar .ic-pill[data-accent]::before { content: ""; width: 10px; height: 10px; background: var(--accent); flex: none; }
.pill-check { display: inline-flex; color: var(--icmab-purple); }
.pill-check .icon { width: 16px; height: 16px; }
.category-bar__progress { margin: 0; font-size: 16px; color: var(--ink); white-space: nowrap; }
@media (max-width: 760px) {
  .category-bar__inner { flex-direction: column; align-items: stretch; padding-block: 10px; }
  .category-bar__progress { font-size: 15px; }
}

/* ---------- Gallery ---------- */
.gallery-section { padding-top: var(--space-l); padding-bottom: 80px; }
@media (min-width: 960px) { .gallery-section { padding-top: 60px; } }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-m); margin-bottom: var(--space-l); }
.gallery-head__title { margin: 0; }
.gallery-head[data-accent] .gallery-head__title { display: flex; align-items: center; gap: 14px; }
.gallery-head[data-accent] .gallery-head__title::before { content: ""; width: 14px; height: 14px; background: var(--accent); }
.gallery-head__count { margin: 0; color: var(--ink); }
.gallery-head__desc { flex: 1 0 100%; margin: 6px 0 0; color: var(--ink); text-wrap: pretty; }
.empty { padding: var(--space-l); background: var(--surface); text-align: center; }

/* Masonry columns: photos keep their own proportions */
.gallery { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: var(--space-gutter-m); }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }
.gallery__item { break-inside: avoid; margin-bottom: var(--space-gutter-m); scroll-margin-top: 100px; }

.photo-card { padding: 0; display: flex; flex-direction: column; }
.photo-card.is-voted { box-shadow: 0 0 0 2px var(--icmab-purple), var(--shadow-medium); }
.photo-card__media { position: relative; display: block; background: var(--surface-muted); line-height: 0; overflow: hidden; }
.photo-card__media img { width: 100%; height: auto; }
.photo-card__media:focus-visible { outline-offset: -4px; outline-color: var(--on-dark); }
.photo-card__zoom { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 36px; height: 36px; background: rgba(28, 34, 39, .72); color: var(--on-dark); opacity: 0; transition: opacity .15s ease; }
.photo-card__zoom .icon { width: 18px; height: 18px; }
.photo-card__media:hover .photo-card__zoom, .photo-card__media:focus-visible .photo-card__zoom { opacity: 1; }
@media (hover: none) { .photo-card__zoom { opacity: 1; } }

.photo-card__body { display: flex; flex-direction: column; gap: 6px; padding: var(--space-m) var(--space-m) 22px; }
.photo-card__title { font-size: 21px; line-height: 1.3; font-weight: 600; margin: 0; }
.photo-card__author { margin: 0; font-size: 16px; line-height: 1.4; color: var(--ink); font-weight: 600; }
.photo-card__desc { margin: 2px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-clamp: 3; overflow: hidden; }

/* ---------- Vote control ---------- */
.vote { display: flex; align-items: center; gap: var(--space-s); margin-top: 12px; min-height: 37px; }
.vote__form { margin: 0; }
.vote__form[aria-busy="true"] .ic-btn { opacity: .6; cursor: progress; }
.vote__label { font-size: 16px; padding: 6px 12px; }
.vote__label:focus { outline: none; }
.vote__label:focus-visible { outline: 2px dotted var(--ink-strong); outline-offset: 2px; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink-deep); color: var(--on-dark); overflow: hidden; }
.lightbox::backdrop { background: rgba(28, 34, 39, .92); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
@media (min-width: 1000px) { .lightbox[open] { grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: none; } }
.has-dialog { overflow: hidden; }

.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 16px; }
.lightbox__figure { margin: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (min-width: 1000px) { .lightbox__stage { padding: 40px 88px; } }

.lightbox__nav, .lightbox__close { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.35); background: rgba(28, 34, 39, .6); color: var(--on-dark); cursor: pointer; transition: border-color .1s ease, background-color .1s ease; }
.lightbox__nav:hover, .lightbox__close:hover { border-color: var(--secondary); background: rgba(28, 34, 39, .85); }
.lightbox__nav .icon, .lightbox__close .icon { width: 22px; height: 22px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 999px) { .lightbox__nav { top: auto; bottom: 16px; transform: none; } }
.lightbox:has(.lightbox__panel[data-single]) .lightbox__nav { display: none; }

.lightbox__panel { background: var(--surface-white); color: var(--ink); padding: 20px var(--space-m) calc(env(safe-area-inset-bottom, 0px) + 24px); overflow-y: auto; max-height: 46vh; }
@media (min-width: 1000px) { .lightbox__panel { max-height: none; padding: 30px 30px 40px; } }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-m); }
.lightbox__counter { margin: 0; font-size: 15px; color: var(--ink); }
.lightbox__close { border-color: var(--line); background: var(--surface-white); color: var(--ink-strong); width: 44px; height: 44px; }
.lightbox__close:hover { background: var(--surface-white); }
.lightbox__title { margin-bottom: 6px; }
.lightbox__author { font-weight: 600; margin-bottom: var(--space-m); }
.lightbox__desc { font-size: 17px; white-space: pre-line; }
.lightbox__vote .vote { margin-top: var(--space-m); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in .18s ease-out; }
  @keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Photo page (no-JS / shared links) ---------- */
.photo-detail { padding-top: 30px; padding-bottom: 80px; }
.photo-detail__back { margin-bottom: var(--space-m); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-strong); font-weight: 600; }
.back-link .icon { width: 18px; height: 18px; }
.photo-detail__grid { display: grid; gap: var(--space-gutter-m); align-items: start; }
@media (min-width: 1000px) { .photo-detail__grid { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); } }
.photo-detail__figure { margin: 0; background: var(--ink-deep); display: flex; justify-content: center; }
.photo-detail__figure img { max-height: 80vh; width: auto; }
.photo-detail__info { background: var(--surface-white); }
.photo-detail__meta { font-size: 16px; color: var(--ink); margin-bottom: var(--space-s); }
.photo-detail__title { margin-bottom: 6px; }
.photo-detail__author { font-weight: 600; }
.photo-detail__pager { display: flex; gap: var(--space-s); flex-wrap: wrap; margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid var(--line); }

/* ---------- Narrow pages: access, verify, errors ---------- */
.narrow-page { padding-block: 60px 100px; }
.panel { background: var(--surface-white); padding: 30px var(--space-m); box-shadow: var(--shadow-small); }
@media (min-width: 640px) { .panel { padding: 50px; } }
.panel > :last-child { margin-bottom: 0; }
.panel__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-m); background: var(--icmab-purple); color: var(--on-dark); }
.panel__icon .icon { width: 26px; height: 26px; }
.panel__code { font-family: var(--font-display); font-size: 52px; line-height: 1; font-weight: 600; color: var(--icmab-purple); margin-bottom: var(--space-m); }
.panel .status { margin-bottom: var(--space-m); }
.lead-s { font-size: 20px; line-height: 1.5; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-l); }
.access__pending { margin-bottom: var(--space-l); }

.form { display: grid; gap: var(--space-m); margin-top: var(--space-l); }
.form .ic-btn { justify-self: start; }
.field__label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink-strong); }
.field .ic-input { height: 46px; font-size: 18px; }
.field.has-error .ic-input { border-color: var(--danger); }
.field__error { margin: 8px 0 0; font-size: 16px; color: var(--ink-strong); padding-left: 12px; border-left: 3px solid var(--danger); }
.form-note { margin-top: var(--space-m); font-size: 15px; line-height: 1.5; color: var(--ink); }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.cf-turnstile { min-height: 65px; }

/* ---------- Content pages ---------- */
.page-content { padding-block: 60px 100px; }
.prose { max-width: 820px; }
.prose .lead { margin-bottom: var(--space-l); }
.prose h2 { margin-top: var(--space-l); }
.prose ul { margin: 0 0 var(--space-m); padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--icmab-purple); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Results ---------- */
.results-category { padding-block: 60px; background: var(--surface-white); }
.results-category:nth-of-type(even) { background: var(--surface); }
.results-category__title { margin-bottom: var(--space-l); }
.results-category[data-accent] .results-category__title { display: flex; align-items: center; gap: 14px; }
.results-category[data-accent] .results-category__title::before { content: ""; width: 14px; height: 14px; background: var(--accent); }
.winner { display: grid; gap: var(--space-gutter-m); margin-bottom: var(--space-l); align-items: center; }
@media (min-width: 900px) { .winner { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 50px; } }
.winner__media { margin: 0; background: var(--ink-deep); box-shadow: var(--shadow-medium); }
.winner__media img { width: 100%; }
.winner__title { font-size: clamp(26px, 3vw, 30px); margin: 14px 0 6px; }
.winner__author { font-weight: 600; }
.winner__votes { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--icmab-purple); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ranking { min-width: 560px; }
.ranking th[scope="row"] { font-size: 18px; font-weight: 600; text-transform: none; letter-spacing: 0; vertical-align: top; padding: 16px 12px; border-top: 1px solid var(--line); }
.ranking td { vertical-align: middle; }
.ranking__rank { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink-strong); width: 70px; }
.ranking__thumb { width: 120px; }
.ranking__thumb img { width: 96px; height: 64px; object-fit: cover; background: var(--surface-muted); }
.ranking__file { display: block; font-size: 14px; font-weight: 400; color: var(--ink); }
.ranking .num { text-align: right; white-space: nowrap; }
.ranking .ic-badge { min-width: 32px; height: 26px; font-size: 14px; }

/* ---------- Admin ---------- */
.admin { padding-block: 40px 100px; }
.admin__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-m); margin-bottom: var(--space-l); }
.admin__head h1 { margin: 0; }
.admin__grid { display: grid; gap: var(--space-gutter-m); margin-bottom: 60px; }
@media (min-width: 1000px) { .admin__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.admin__card { background: var(--surface-white); }
.admin__actions { display: grid; gap: var(--space-s); }
.admin__actions form { margin: 0; }
.admin__actions .ic-btn { width: 100%; }
.admin__actions .form-note { margin: 6px 0 0; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 14px; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-strong); font-weight: 600; }
.facts--numbers dd { font-family: var(--font-display); font-size: 30px; line-height: 1.2; font-weight: 700; }
.admin__ranking-title { margin-bottom: var(--space-l); }
.admin__category { margin-bottom: 50px; }
.admin__total { font-family: var(--font-sans); font-size: 16px; font-weight: 400; color: var(--ink); margin-left: 8px; }
.ranking__title a { color: var(--ink-strong); }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; padding-block: 50px calc(50px + env(safe-area-inset-bottom, 0px)); }
.site-footer__inner { display: grid; gap: var(--space-l); align-items: start; }
@media (min-width: 860px) { .site-footer__inner { grid-template-columns: auto 1fr; gap: 80px; } }
.site-footer__logos { display: flex; flex-wrap: wrap; gap: var(--space-m); align-items: center; }
.site-footer__logos img { height: 44px; width: auto; }
.site-footer__org { font-size: 16px; line-height: 1.5; color: var(--on-dark); opacity: .9; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; font-size: 16px; }
.site-footer a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--secondary-tint); }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header__tools, .category-bar, .vote, .toast, .lightbox, .hero::before, .hero::after { display: none !important; }
  .gallery { columns: 2; }
}
