
:root {
  color-scheme: light;
  --page: #fff;
  --paper: #f7f7f7;
  --ink: #111;
  --muted: var(--ink);
  --line: #d6d6d6;
  --accent: var(--ink);
  --accent-deep: var(--ink);
  --soft: #ededed;
  --action-hover: #333;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
  font-kerning: normal;
  text-align: start;
}
a {
  color: inherit;
  text-decoration-thickness: var(--link-underline-width, .075em);
  text-underline-offset: .2em;
  transition: text-decoration-color 180ms ease, text-decoration-thickness 180ms ease,
    text-underline-offset 180ms ease;
}
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  text-decoration-thickness: .16em;
  text-underline-offset: .28em;
}
@media (hover: hover) {
  a:hover {
    color: var(--accent);
    text-decoration-thickness: .16em;
    text-underline-offset: .28em;
  }
}
::selection { background: var(--line); color: var(--ink); }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(100% - 4rem, 72rem); margin-inline: auto; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--paper);
  translate: 0 -180%;
}
.skip-link:focus { translate: 0; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}
.masthead-inner { min-height: 4.75rem; }
.brand {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  text-decoration: none;
  font-size: .96rem;
  font-weight: 680;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-deep);
  color: #fff;
  font: 1.08rem/1 var(--serif);
}
.nav-link { font-weight: 620; font-size: .92rem; text-decoration: none; }
.nav-link:hover, .brand:hover { text-decoration: underline; }
.welcome {
  display: grid;
  grid-template-columns: 1fr minmax(13rem, 19rem);
  align-items: end;
  gap: 1.15rem 2rem;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.85rem);
}
.eyebrow, .feature-topic {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 680;
}
.welcome .eyebrow { grid-column: 1 / -1; }
.welcome h1, .story-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.058em;
  line-height: .99;
}
.welcome h1 { font-size: clamp(3.4rem, 10.6vw, 8rem); }
.welcome-note { color: var(--muted); font-size: clamp(1.06rem, 2.2vw, 1.28rem); line-height: 1.5; padding-bottom: .35rem; }
.articles { padding-bottom: clamp(3rem, 8vw, 6rem); scroll-margin-top: 1rem; }
.section-label { border-top: 1px solid var(--line); font-size: .95rem; font-weight: 700; padding-block: .95rem 1.15rem; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .85rem;
  overflow: hidden;
}
.feature-image { display: block; background: var(--soft); }
.feature-image img { height: 100%; min-height: 25rem; object-fit: cover; object-position: 49% 52%; }
.feature-text { padding: clamp(1.75rem, 4vw, 3.5rem); align-self: center; }
.feature h3 {
  margin-block: .65rem .95rem;
  font: 400 clamp(1.85rem, 3.5vw, 3rem)/1.07 var(--serif);
  letter-spacing: -.043em;
}
.feature h3 a { text-decoration: none; }
.feature-text > p:not(.feature-topic) { color: var(--muted); max-width: 34ch; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .63rem 1.1rem;
  background: var(--accent-deep);
  border: 1px solid transparent;
  border-radius: .42rem;
  color: #fff;
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}
.button:hover { color: #fff; background: var(--action-hover); }
.button:active { background: #000; }
.feature .button { margin-top: 1.4rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 5.5rem; padding-block: .85rem; font-size: .9rem; }

.story-header { grid-area: intro; min-inline-size: 0; }
.breadcrumb { color: var(--accent); font-size: .92rem; margin-bottom: 1.45rem; }
.story-title { font: 750 clamp(2rem, 1.25rem + 3vw, 3.25rem)/1.12 var(--sans); letter-spacing: -.025em; }
.dek { max-inline-size: 59ch; margin-top: 1rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.dek p + p { margin-top: .65em; }
.byline { margin-top: 1.25rem; color: var(--muted); font-size: .9375rem; }
.story-photo { max-width: 62rem; margin-inline: auto; overflow: hidden; border-radius: .85rem; background: var(--soft); }
.story-photo img { aspect-ratio: 2.35; object-fit: cover; object-position: center 54%; }
.story-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 40rem);
  grid-template-areas: "contents intro" "contents body";
  gap: clamp(1.75rem, 3.25vw, 2.75rem) clamp(2.5rem, 6vw, 5rem);
  justify-content: center;
  width: min(100%, 62rem);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem);
}
.story-nav {
  grid-area: contents;
  align-self: start;
  position: sticky;
  top: 1.4rem;
  border-top: 1px solid var(--line);
  padding-block-start: .25rem;
}
.story-nav p { color: var(--muted); font-size: .86rem; font-weight: 650; }
.story-nav a { display: block; width: fit-content; margin-top: .75rem; font-size: .92rem; font-weight: 550; }
.story-body {
  grid-area: body;
  min-inline-size: 0;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.6;
}
.story-body p + p { margin-top: .75em; }
:is(.edition-title, .edition-links h2, .story-title, .story-body h2, .story-body h3) { text-wrap: balance; }
:is(.edition-intro, .dek p, .story-body p, .story-body li, .story-body figcaption) { text-wrap: pretty; }
.enforcement-number-example { margin-block: 1.15rem; scroll-margin-top: 1rem; }
.enforcement-number-example img { border: 1px solid var(--line); border-radius: .65rem; }
.enforcement-number-example figcaption { margin-top: .46rem; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.story-body > section:first-child { margin-block-start: 0; }
.story-body section { margin-top: clamp(2.5rem, 4vw, 3.25rem); scroll-margin-top: 1.5rem; }
.story-body h2 { margin-bottom: .75rem; font: 700 1.6em/1.2 var(--sans); letter-spacing: -.015em; }
.story-body ol { margin-block: 1rem; padding-left: 1.5rem; }
.story-body li { padding-left: .27rem; }
.story-body li + li { margin-top: .6rem; }
.story-body a { color: var(--accent-deep); }
.story-body a:hover { color: var(--accent); }
.story-body .next-step { padding: clamp(1.25rem, 4vw, 2.15rem); border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); }
.story-body .next-step p { max-width: 48ch; }
.story-body .next-step .button { margin-top: .95rem; color: #fff; }
.story-sources { margin-top: 2rem; color: var(--muted); font-size: .92rem; }
.story-sources summary { cursor: pointer; width: fit-content; font-weight: 650; }
.story-sources ul { margin-block: .65rem 0; padding-left: 1.4rem; }
@media (max-width: 48rem) {
  .shell { width: calc(100% - 2.5rem); }
  .feature { grid-template-columns: 1fr; }
  .feature-image img { min-height: 0; aspect-ratio: 1.55; }
}
@media (max-width: 33rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 4rem; }
  .welcome { grid-template-columns: 1fr; padding-block: 2.6rem 2.4rem; }
  .welcome h1 { font-size: clamp(3.05rem, 12vw, 4.6rem); }
  .welcome-note { max-width: 30ch; }
  .feature-text { padding: 1.35rem; }
  .story-photo img { aspect-ratio: 1.53; }
  .footer-inner { align-items: start; flex-direction: column; gap: .4rem; padding-block: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (min-width: 54.001rem) and (max-height: 30rem) {
  .story-nav { position: static; }
}

.story-body h3 {
  margin-bottom: .35rem;
  font-size: 1.16em;
  line-height: 1.3;
}
.story-body p + h3 { margin-top: 1.55rem; }
.payment-route {
  inline-size: 100%;
  margin-block: 1rem;
  table-layout: fixed;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--paper);
}
.payment-route :is(th, td) {
  padding: .75rem clamp(.75rem, 2vw, 1rem);
  text-align: start;
  vertical-align: top;
}
.payment-route th { line-height: 1.4; }
.payment-route thead th {
  border-block-end: 1px solid var(--line);
  font-size: .86em;
}
.payment-route thead th:first-child { inline-size: 30%; }
.payment-route tbody tr + tr > * { border-block-start: 1px solid var(--line); }
@media (max-width: 38rem) {
  .payment-route :is(tbody, tbody tr, tbody th, tbody td) { display: block; }
  .payment-route { display: block; }
  .payment-route thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .payment-route tbody th { padding-block-end: .3rem; }
  .payment-route tbody td { padding-block-start: 0; }
  .payment-route tbody tr + tr { border-block-start: 1px solid var(--line); }
  .payment-route tbody tr + tr > * { border-block-start: 0; }
}
.case-note {
  margin-top: 1.4rem;
  padding: .28rem 0 .28rem 1.1rem;
  border-left: 3px solid var(--line);
}
.request-example {
  margin-block: 1.1rem;
  padding: clamp(1rem, 4vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--paper);
}
.request-example ol { margin-bottom: 0; }
.story-body a { overflow-wrap: anywhere; }

.story-lead-action { margin-top: .75rem; color: var(--accent-deep); font-weight: 600; }


  .edition-shell { width: min(100% - 4.5rem, 74rem); margin-inline: auto; }
  .edition-head { background: var(--page); border-bottom: 1px solid var(--line); }
  .edition-head-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .edition-name { margin: 0; font-size: clamp(1.175rem, 1rem + 1vw, 1.75rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 750; }
  .edition-name a { display: inline-flex; align-items: center; gap: .65rem; }
  .edition-mark {
    display: grid;
    place-items: center;
    flex: 0 0 .8em;
    inline-size: .8em;
    block-size: .8em;
    border-radius: .12rem;
    background: var(--ink);
    color: #fff;
    transform: rotate(-12deg);
  }
  .edition-mark span { font: 700 .68em/1 var(--serif); letter-spacing: normal; }
  .edition-head-nav { display: flex; align-items: center; gap: clamp(.75rem, 2.4vw, 2rem); }
  .edition-head-nav a { font-size: .94rem; font-weight: 700; }
  :is(.edition-name, .edition-head-nav, .edition-title) a {
    text-decoration-line: underline;
    text-decoration-color: transparent;
  }
  :is(.edition-name, .edition-head-nav, .edition-title) a:focus-visible {
    text-decoration-color: currentColor;
  }
  @media (hover: hover) {
    :is(.edition-name, .edition-head-nav, .edition-title) a:hover {
      text-decoration-color: currentColor;
    }
  }
  .edition-main { padding-block: clamp(1.75rem, 4.8vw, 4.2rem) 2.1rem; }
  .edition-feature { display: grid; grid-template-columns: minmax(0, .99fr) minmax(0, 1.01fr); background: var(--page); border: 1px solid var(--line); }
  .edition-copy { min-width: 0; padding: clamp(1.6rem, 4.2vw, 3.55rem); display: flex; align-items: flex-start; flex-direction: column; justify-content: center; }
  .edition-kicker { color: var(--accent); font-size: .9375rem; font-weight: 700; line-height: 1.4; margin: 0 0 .7rem; }
  .edition-title { margin: 0; font: 750 clamp(2.125rem, 1.6rem + 2.6vw, 3.65rem)/1.12 var(--sans); letter-spacing: -.025em; }
  .edition-intro { max-width: 36ch; margin: .9rem 0 0; color: var(--muted); font-size: clamp(1rem, .95rem + .35vw, 1.2rem); line-height: 1.55; }
  .edition-author { margin-top: clamp(1rem, 2.1vw, 1.65rem); color: var(--muted); font-size: .88rem; }
  .edition-read { background: var(--accent); color: white; display: inline-flex; align-items: center; gap: 1rem; min-height: 3rem; margin-top: .75rem; padding-inline: 1rem; font-weight: 700; text-decoration: none; }
  .edition-read:hover { background: var(--action-hover); color: white; }
  .edition-cover { position: relative; min-width: 0; min-height: 100%; display: block; overflow: hidden; background: var(--soft); }
  .edition-cover img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 49% 50%; display: block; transition: filter 180ms ease; }
  @media (hover: hover) {
    .edition-cover:hover img { filter: brightness(.9); }
  }
  .edition-links { margin-top: clamp(1.65rem, 4vw, 2.9rem); }
  .edition-links h2 { margin: 0 0 .8rem; font-size: clamp(1.35rem, 2.1vw, 1.8rem); letter-spacing: -.045em; line-height: 1.12; font-weight: 700; }
  .edition-links ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 0; padding: 0; list-style: none; }
  .edition-links a { min-height: 3.8rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .75rem .9rem; background: var(--paper); border: 1px solid var(--line); font-size: .99rem; line-height: 1.3; font-weight: 700; text-decoration: none; }
  .edition-links a span {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.3rem;
    transition: transform 180ms ease;
  }
  .edition-links a:focus-visible span { transform: translateX(.22rem); }
  @media (hover: hover) {
    .edition-links a:hover span { transform: translateX(.22rem); }
  }
  .edition-links a:hover { color: var(--accent); border-color: var(--accent); }
  .edition-home a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
  @media (max-width: 60rem) {
    .edition-shell { width: calc(100% - 2.5rem); }
    .edition-copy { padding-inline: clamp(1.35rem, 3.6vw, 2.75rem); }
  }
  @media (max-width: 46rem) {
    .edition-main { padding-top: 1.25rem; }
    .edition-feature { grid-template-columns: minmax(0, 1fr); }
    .edition-cover { aspect-ratio: 3 / 2; min-height: 0; }
    .edition-links ul { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
    .edition-links a { min-height: 3.15rem; }
  }
  @media (max-width: 27rem) {
    .edition-shell { width: calc(100% - 1.75rem); }
    .edition-head-inner { min-height: 3.85rem; gap: .6rem; }
    .edition-name a { gap: .42rem; }
    .edition-head-nav { gap: .65rem; }
    .edition-head-nav a { font-size: .8rem; }
    .edition-copy { padding: 1.25rem; }
  }

    .edition-identity { min-width: 0; padding-block: .65rem; }
    .edition-identity .edition-author { margin: .3rem 0 0; padding-inline-start: 1.75rem; font-size: .84rem; line-height: 1.3; }
    .edition-head-nav { flex-shrink: 0; }
    .edition-feature { grid-template-areas: "copy cover" "links links"; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); overflow: hidden; border: 1px solid var(--line); border-radius: 1.25rem; }
    .edition-main { padding-top: clamp(1.25rem, 4vw, 3.45rem); }
    .edition-copy { grid-area: copy; padding: clamp(1.4rem, 3.3vw, 2.9rem); }
    .edition-cover { grid-area: cover; margin: .85rem .85rem .85rem 0; align-self: center; aspect-ratio: 3 / 2; border-radius: .82rem; min-height: 0; }
    .edition-links { grid-area: links; margin: 0; padding: 1rem clamp(1.25rem, 3.4vw, 2.3rem) 1.25rem; border-top: 1px solid var(--line); }
    .edition-links h2 { margin: 0 0 .62rem; font: 700 1.25rem/1.3 var(--sans); }
    .edition-links a { min-height: 2.9rem; border-radius: .5rem; }
    .edition-head-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
    .edition-read { border-radius: .52rem; }
    .edition-read { margin-top: 1.05rem; }
    .edition-read, .edition-links a, .button, .template-copy { transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
    .edition-read:active { background: #000; }
    .preview-article .story-nav a { display: flex; align-items: center; min-height: 2.75rem; margin-top: .12rem; }
    .preview-article .story-nav a[aria-current] { --link-underline-width: .12em; color: var(--accent); font-weight: 750; }
    .preview-article :is(a, button, summary, [tabindex]):focus-visible,
    .edition-home :is(a, [tabindex]):focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
    #obrazets-hodataistva { scroll-margin-top: 1.1rem; }
    .template-tools { display: flex; align-items: center; gap: .2rem; margin: -.35rem 0 .4rem; }
    .story-body .template-tools h3 { margin: 0; }
    .template-copy {
      flex: 0 0 2.75rem;
      inline-size: 2.75rem;
      block-size: 2.75rem;
      padding: 0;
      border: 0;
      border-radius: .45rem;
      color: var(--accent);
      background: var(--paper);
      cursor: pointer;
    }
    .template-copy:not([hidden]) { display: inline-grid; place-items: center; }
    .template-copy:is(:hover, :active) { background: var(--soft); }
    .template-copy-icon { position: relative; inline-size: 1.18rem; block-size: 1.18rem; background: inherit; }
    .template-copy-icon::before, .template-copy-icon::after {
      content: "";
      position: absolute;
      inline-size: .74rem;
      block-size: .84rem;
      border: 1.5px solid currentColor;
      border-radius: .15rem;
      background: inherit;
    }
    .template-copy-icon::before { inset-block-start: 0; inset-inline-end: 0; }
    .template-copy-icon::after { inset-block-end: 0; inset-inline-start: 0; }
    .template-status:not(:empty) {
      position: fixed;
      z-index: 5;
      inset-inline: 1rem;
      inset-block-end: calc(1rem + env(safe-area-inset-bottom, 0px));
      width: fit-content;
      max-width: calc(100% - 2rem);
      margin-inline: auto;
      padding: .56rem .88rem;
      border-radius: .5rem;
      color: var(--ink);
      background: var(--paper);
      border: 1px solid var(--line);
      font: 700 .9rem/1.35 var(--sans);
      pointer-events: none;
    }
    @media (max-width: 46rem) {
      .edition-feature { grid-template-areas: "copy" "links" "cover"; grid-template-columns: minmax(0, 1fr); }
      .edition-copy { padding-bottom: 1.05rem; }
      .edition-cover { margin: 0 .55rem .55rem; }
      .edition-identity .edition-author { padding-inline-start: 1.3rem; font-size: .8125rem; }
      .edition-links { border-top: 0; padding: .1rem 1.25rem 1.05rem; }
      .edition-links a { min-height: 2.75rem; }
    }
    @media (max-width: 54rem) {
      .story-layout {
        grid-template-columns: minmax(0, 40rem);
        grid-template-areas: "intro" "contents" "body";
        row-gap: 1.4rem;
        padding-block-start: clamp(1.6rem, 6vw, 2.65rem);
      }
      .story-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: .65rem;
        padding: .65rem .75rem .35rem;
        border: 1px solid var(--line);
        border-radius: .65rem;
        background: var(--paper);
      }
      .story-nav p { grid-column: 1 / -1; }
      .preview-article .story-nav a { width: auto; margin: 0; line-height: 1.3; }
    }
    @media (prefers-reduced-motion: reduce) {
      a, .edition-read, .edition-links a, .edition-links a span, .edition-cover img, .button, .template-copy {
        transition: none;
      }
      .edition-links a:is(:hover, :focus-visible) span { transform: none; }
    }

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #151515;
  --paper: #202020;
  --ink: #f4f4f4;
  --muted: #ccc;
  --line: #494949;
  --soft: #303030;
  --action-hover: #d7d7d7;
}
[data-theme="dark"] :is(.edition-mark, .button, .button:hover, .story-body .next-step .button) {
  color: var(--page);
}
[data-theme="dark"] .button:active { background: var(--action-hover); }

.edition-head-inner > .edition-identity { margin-inline-end: auto; }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--page);
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle[hidden], .theme-toggle .theme-sun,
[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
.theme-toggle:hover { background: var(--soft); border-color: var(--ink); }
.theme-toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.theme-moon {
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  translate: .1rem -.14rem;
  box-shadow: -.22rem .24rem 0 0 currentColor;
}
[data-theme="dark"] .theme-toggle .theme-sun {
  display: block;
  font: 1.4rem/1 "Segoe UI Symbol", var(--sans);
}

.author-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(.75rem, 1.25vw, 1.125rem);
  min-height: clamp(24rem, 36vw, 32rem);
  margin-top: clamp(1.25rem, 4vw, 3.5rem);
}
.author-intro-copy,
.author-intro-media {
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.author-intro-copy {
  display: flex;
  background: var(--paper);
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.625rem);
}
.author-intro h1 {
  font: 780 clamp(2.5rem, 5.6vw, 5.1rem)/1.02 var(--sans);
  letter-spacing: -.055em;
  text-wrap: balance;
}
.author-intro-copy > p {
  max-width: 100%;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.35rem);
  line-height: 1.52;
  text-wrap: pretty;
}
.author-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: clamp(1.4rem, 3vw, 2.3rem);
}
.author-topics { display: none; }
.author-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--page);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.author-action:hover { border-color: var(--ink); background: var(--soft); }
.author-action-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--page);
}
.author-action-primary:hover { background: var(--action-hover); color: var(--page); }
.author-intro-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.author-intro-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 25%;
}

.series-list {
  padding-block: clamp(2rem, 5vw, 4rem);
  scroll-margin-top: 1rem;
}
.series-list > h2 {
  margin-bottom: 1.2rem;
  font: 750 clamp(2rem, 4vw, 3rem)/1.15 var(--sans);
  letter-spacing: -.03em;
}
.series-list > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.series-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
}
.series-card > article {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.series-card h3 {
  margin: 0 0 .7rem;
  font: 740 1.28rem/1.25 var(--sans);
  letter-spacing: -.018em;
  text-wrap: pretty;
}
.series-card p { margin: .45rem 0 0; }
.series-card .series-card-meta {
  margin-top: auto;
  padding-top: .75rem;
  color: var(--muted);
  font-size: .9rem;
}
.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  font-size: .9rem;
  line-height: 1.5;
}
.article-dates time { white-space: nowrap; }
.story-header > .article-dates { margin-block: .65rem 1rem; }
@media (max-width: 62rem) {
  .series-list > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
  .author-intro { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .author-intro-media { aspect-ratio: 1; }
  .author-topics {
    display: block;
    align-self: stretch;
    margin-top: 1.2rem;
  }
  .author-topics ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .author-topics li { border-top: 1px solid var(--line); }
  .author-topics li:last-child { border-bottom: 1px solid var(--line); }
  .author-topics a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding-block: .4rem;
    font-weight: 650;
  }
  .author-intro-actions { margin-top: 1.2rem; }
}
@media (max-width: 42rem) {
  .series-list > ul {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }
}
@media (max-width: 36rem) {
  .edition-head-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 .65rem;
  }
  .edition-head-inner > .edition-identity { margin-inline-end: 0; }
  .edition-head-nav { grid-row: 2; grid-column: 1 / -1; gap: 1.35rem; }
  .theme-toggle { grid-row: 1; grid-column: 2; }
}
.series-related {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.story-body ul { padding-inline-start: 1.5rem; }
.story-body :is(ul, ol) ul { margin-block: .4rem 0; }
.series-body > h2 { margin-top: 2.6rem; scroll-margin-top: 1rem; }
.series-body > h2:first-child { margin-top: 0; }
.series-body > h3 { margin-top: 1.5rem; }
.series-body > blockquote {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border-inline-start: 3px solid var(--ink);
  background: var(--paper);
}
.table-shell {
  margin-block: 1.15rem 1.5rem;
  max-inline-size: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: .6rem;
}
.series-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  line-height: 1.4;
}
.series-table caption {
  padding: .85rem;
  text-align: left;
  font-weight: 700;
}
.series-table th,
.series-table td {
  padding: .7rem .85rem;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}
.series-table thead { background: var(--paper); }
.series-table tbody tr { border-top: 1px solid var(--line); }
.sample-panel {
  position: relative;
  margin-block: 1.35rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--paper);
}
.sample-panel summary {
  min-block-size: 4.25rem;
  padding: 1.15rem 4.5rem 1.15rem 1rem;
  border-radius: .65rem;
  cursor: pointer;
  font-weight: 700;
}
.sample-panel .sample-copy {
  padding: .85rem 1rem 1rem;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.sample-panel > .template-copy {
  position: absolute;
  inset: .7rem .7rem auto auto;
  width: 2.75rem;
  height: 2.75rem;
}
.series-copy-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.series-copy-status:not(:empty) {
  position: fixed;
  z-index: 10;
  inset: auto 1rem 1rem auto;
  max-width: calc(100vw - 2rem);
  padding: .7rem .85rem;
  margin: 0;
  border-radius: .5rem;
  background: var(--ink);
  color: var(--page);
}
@media (max-width: 42rem) {
  .series-table {
    display: block;
  }
  .series-table caption { display: block; }
  .series-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .series-table tbody,
  .series-table tbody tr { display: block; }
  .series-table tbody tr { padding-block: .45rem; }
  .series-table tbody tr:first-child { border-top: 0; }
  .series-table td,
  .series-table tbody th {
    display: grid;
    gap: .1rem;
    padding: .3rem .75rem;
  }
  .series-table [data-column]::before {
    content: attr(data-column);
    font-size: .84rem;
    font-weight: 700;
  }
}
@media (min-width: 54.001rem) {
  .series-body { min-width: 0; }
  .story-nav { max-height: calc(100dvh - 2.8rem); overflow: auto; }
}
