html { scroll-padding-top: var(--unified-header-height, 155px); }
.unified-site-header { position: sticky; inset-block-start: 0; z-index: 10; background: var(--paper); }
.unified-site-header .masthead { padding-block: 12px; }
.unified-site-header .wordmark { font-size: clamp(31px, 4vw, 53px); }
.unified-site-header .nav-inner { min-height: 42px; }
.ed-magazine-section .section-heading .read-link.small {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-height: 44px;
  font-size: 11px;
  line-height: 1.25;
  white-space: normal;
}
.ed-ski-date-link a { text-decoration: underline; text-underline-offset: .18em; }
body[data-page="reference"] .rc-brand-photo img,
body[data-page="reference"] .rc-model-photo img,
body[data-page="reference"] .reader .rc-gallery img { object-fit: contain; object-position: center; }
#shared-reference .rc-credit, #reader .rc-credit,
.unified-article .ed-figure .ed-credit, .unified-article .ed-photo-row .ed-credit {
  font-size: 11px;
  line-height: 1.45;
}
.rc-integrity-notice {
  padding: .75rem 1rem;
  border-inline-start: 2px solid var(--line);
  margin-block: .75rem;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  html { scroll-padding-top: var(--unified-header-height, 115px); }
  .unified-site-header .masthead { padding-block: 8px; }
  .unified-site-header .masthead .wordmark { font-size: clamp(23px, 7.5vw, 34px); }
  .unified-site-header .nav-inner { gap: clamp(8px, 3vw, 20px); }
  .topic-nav[aria-label="Рубрики журнала"] { justify-content: center; gap: 2px 8px; padding-block: 5px; }
  .topic-nav[aria-label="Рубрики журнала"] a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; font-size: 11px; }
  .ed-magazine-section .section-heading { flex-wrap: wrap; column-gap: 12px; row-gap: 0; }
  .ed-magazine-section .section-heading .read-link.small { flex: none; }
  .ed-magazine-section .section-heading .read-link.small::after { content: none; }
  #shared-reference .rc-line-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 6px; }
  #shared-reference input[type=search], #shared-reference select { font-size: 16px; }
}
/* The close target stays put when the loading message becomes a full card. */
body[data-page="reference"] #reader {
  position: fixed;
  inset: max(5dvh, env(safe-area-inset-top)) 0 auto;
  margin: 0 auto;
}
