@font-face {
  font-family: Onest;
  src: url("./fonts/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Onest;
  src: url("./fonts/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --ink: #14213b;
  --muted: #364867;
  --quiet: #506181;
  --line: #dce8f8;
  --surface: #f5f9ff;
  --surface-hover: #e8f2ff;
  --accent: #195aca;
  --panel-shadow: 0 2px 4px #264c8a0b, 0 8px 21px -12px #264c8a30;
  --feed-gap: 18px;
  --section-gap: clamp(26px, 3vw, 36px);
  --sidebar-width: 222px;
  --radius: 20px;
  --page-width: min(1376px, calc(100% - 88px));
  --topbar-height: 77px;
  --sidebar-top: calc(var(--topbar-height) + 20px);
  font-family: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-padding-top: var(--topbar-height);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.48;
}
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }
img { display: block; width: 100%; }
svg { display: block; flex: 0 0 auto; }
h1, h2, h3, p { margin: 0; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 10; background: #fff; padding: 10px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.topbar { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.top-inner, .layout { width: var(--page-width); margin-inline: auto; }
.top-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(225px, 510px) 1fr;
  align-items: center;
  gap: 28px;
}
.wordmark { display: inline-flex; align-items: center; gap: 7px; width: max-content; font-size: 31px; line-height: .95; letter-spacing: -.075em; font-weight: 720; }
.brand-mark { flex: 0 0 auto; width: 30px; height: 30px; }
.wordmark-dot { color: var(--accent); }
.top-brand { min-width: 0; }
.brand-tagline { margin-top: 5px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.search { display: flex; align-items: center; height: 44px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding-inline: 10px; }
.search:focus-within { border-color: var(--accent); background: #fff; }
.search button { background: transparent; color: var(--muted); border: 0; padding: 5px; border-radius: 50%; }
.search input { width: 100%; min-width: 0; background: transparent; border: 0; color: var(--ink); padding: 6px; outline: none; }
.search input::placeholder, input::placeholder, textarea::placeholder { color: var(--quiet); opacity: 1; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.button {
  min-height: 43px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  background: transparent;
  transition: background .16s, border-color .16s;
}
.button.primary { color: #fff; background: linear-gradient(112deg, #1555d5, #246be2); }
.button.primary:hover { background: linear-gradient(112deg, #124bbb, #185ccf); }
.button.secondary { background: #fff; border-color: var(--line); }
.button.secondary:hover, .button.ghost:hover { background: var(--surface); border-color: var(--line); }
.top-actions .button { min-height: 43px; padding-inline: 17px; }
.top-actions .primary { padding-inline: 20px; box-shadow: 0 2px 5px #2169e430; }
.top-actions .secondary svg { color: var(--accent); }
.button svg, .icon-button svg { width: 18px; height: 18px; }
.profile { position: relative; }
.profile summary { list-style: none; max-width: 176px; cursor: pointer; }
.profile summary::-webkit-details-marker { display: none; }
.profile summary .avatar { width: 30px; height: 30px; font-size: 14px; }
.profile-name { overflow: hidden; text-overflow: ellipsis; }
.profile-menu {
  width: 184px;
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  background: #fff;
  box-shadow: 0 8px 30px #23263015;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 10px;
  z-index: 2;
}
.profile-menu p { padding: 4px 8px; font-weight: 550; overflow-wrap: anywhere; }

.layout { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr) 264px; gap: 28px; padding: 34px 0 72px; align-items: start; }
.left, .right, main { min-width: 0; }
.left { padding-top: 1px; }
@media (min-width: 706px) {
  .layout > :is(.left, .right) {
    position: sticky;
    top: var(--sidebar-top);
    max-height: calc(100vh - var(--sidebar-top) - 16px);
    max-height: calc(100dvh - var(--sidebar-top) - 16px);
    overflow-y: auto;
    scrollbar-width: thin;
    margin: -4px -6px 0;
    padding: 4px 6px 10px;
  }
}
.nav-list { display: grid; gap: 1px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 9px;
  font-weight: 400;
  font-size: 16px;
  border-radius: 12px;
  color: var(--muted);
  min-height: 44px;
  line-height: 1.25;
}
.nav-item:hover { background: var(--surface); }
.nav-item[aria-current="page"] { background: var(--surface-hover); color: #144ca7; font-weight: 500; }
.nav-icon { display: grid; place-items: center; flex: 0 0 28px; }
.topics-list .nav-item { min-height: 41px; }
.topic-nav { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; }
.nav-label { padding: 0 10px 7px; color: var(--quiet); font-size: 14px; font-weight: 400; }
.topic-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
}
.topic-icon.neutral { color: #2057a8; background: #eaf1fd; }
.unread-badge { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 21px; height: 21px; padding-inline: 4px; border-radius: 99px; background: #de310d; color: #fff; font-size: 12px; font-weight: 650; line-height: 1; }
.mobile-menu[open] > summary > .unread-badge { display: none; }
.mobile-menu { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.page-head h1, .topic-heading h1 { font-size: clamp(31px, 3.3vw, 43px); font-weight: 620; line-height: 1.1; letter-spacing: -.041em; overflow-wrap: anywhere; }
.page-head .muted { margin-top: 6px; }
.tabs { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.tabs a { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); }
.tabs a:is(:hover,[aria-current="page"]) { background: var(--surface-hover); color: #144ca7; }
.feature, .card, .rail-card, .detail, .comments, .editor, .empty, .saved-notice {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--panel-shadow);
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  gap: 19px;
  align-items: center;
  padding: 10px 17px 10px 10px;
  border-radius: var(--radius);
}
.feature-inner { padding: 4px 0; }
.feature:not(:has(.feature-image)) { grid-template-columns: minmax(0, 1fr); }
.feature h2 { margin-top: 9px; font-weight: 640; line-height: 1.1; letter-spacing: -.043em; font-size: clamp(28px, 2.8vw, 43px); }
.feature p { color: var(--muted); margin-top: 11px; line-height: 1.45; }
.feature-image { display: block; overflow: hidden; align-self: center; aspect-ratio: 16/9; border-radius: 17px; background: var(--surface); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 22px 0 13px; }
.section-heading h2, .rail-title { font-size: 22px; line-height: 1.18; font-weight: 590; letter-spacing: -.024em; }
.text-link { color: var(--ink); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 5px; }
.text-link:hover, .tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--feed-gap); }
.card { border-radius: 16px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.card:focus-within, .feature:focus-within { border-color: #a8c6f8; }
@media (hover: hover) {
  .card, .feature { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
  .card:hover, .feature:hover { transform: translateY(-2px) scale(1.006); border-color: #a8c6f8; box-shadow: 0 6px 19px #264c8a22; }
  :is(.card, .feature) :is(h2, h3) a { transition: color .18s ease; }
  :is(.card, .feature):hover :is(h2, h3) a { color: var(--accent); }
}
.card-image { display: block; background: var(--surface); overflow: hidden; }
.card-image img { aspect-ratio: 16/9; object-fit: cover; }
.card-copy { padding: 14px 15px; min-width: 0; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.tag { display: inline-block; font-size: 14px; font-weight: 500; line-height: 1.25; color: var(--muted); }
.feature .tag { color: var(--accent); font-weight: 550; }
.card-kicker { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 9px; color: var(--quiet); font-size: 14px; }
.card-kicker time { font-variant-numeric: tabular-nums; }
.card-kicker > :not(:first-child)::before { content: "·"; padding-right: 9px; }
.card h2, .card h3 { font-size: 20px; line-height: 1.24; font-weight: 580; letter-spacing: -.02em; margin: 7px 0 6px; overflow-wrap: anywhere; }
.rail-item a:hover { color: var(--accent); }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 7px; overflow-wrap: anywhere; }
.feed-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; width: 100%; margin-top: auto; }
.feature .feed-actions { margin-top: 10px; }
.feed-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 6px;
  min-width: 33px;
  min-height: 35px;
  background: transparent;
  color: var(--quiet);
  border: 0;
  border-radius: 8px;
  font-size: 14px;
}
.feed-action:hover { background: var(--surface-hover); color: var(--ink); }
.feed-action[aria-pressed="true"] { color: var(--accent); }
.feed-action[aria-pressed="true"] svg { fill: currentColor; }
.feed-share { margin-inline-start: auto; }
.feed-share:hover { color: var(--accent); }

.right { display: grid; gap: 14px; }
.rail-card { padding: 17px; border-radius: var(--radius); }
.rail-items { padding: 0; margin: 4px 0 11px; list-style: none; }
.rail-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.rail-item time, .rail-discussion .muted { color: var(--quiet); font-size: 14px; }
.rail-item time { display: block; margin-top: 3px; }
.rail-item a { display: block; font-size: 15px; font-weight: 400; line-height: 1.36; overflow-wrap: anywhere; }
.rail-discussion .rail-item { border: 0; padding-bottom: 0; }
.rail-discussion .discussion-title { margin-bottom: 5px; }

.topic-heading p { color: var(--muted); margin-top: 8px; }
.quick-write { margin-bottom: var(--feed-gap); }
.quick-write.secondary:hover { background: #fff; border-color: #a6b7d0; }
.topic-heading + .quick-write { margin-top: var(--feed-gap); }
.quick-write + .topic-tabs { margin-top: 0; }
.topic-tabs { display: flex; column-gap: 23px; border-bottom: 1px solid var(--line); margin: 12px 0 14px; }
.topic-tabs a { color: var(--muted); padding: 12px 0 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.topic-tabs a:hover { color: var(--ink); }
.topic-tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-color: var(--accent); }
.topic-feed, .feed-list { grid-template-columns: minmax(0, 1fr); }
:is(.topic-feed, .feed-list) .card { flex-direction: row-reverse; }
:is(.topic-feed, .feed-list) .card-image { width: 31%; min-width: 120px; flex: 0 0 auto; align-self: center; margin: 12px 12px 12px 0; border-radius: 11px; }
.topic-feed .card-kicker .tag { display: none; }
.topic-feed .card-kicker time::before { content: none; }
.topic-feed .card-kicker .post-format + time::before { content: "·"; }
.topic-feed .card-kicker .post-format::before { content: none; }

.muted { color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 13px; }
.back-link:hover { text-decoration: underline; }
.back-link svg { width: 17px; height: 17px; }
.detail, .comments, .editor, .empty { border-radius: var(--radius); padding: clamp(17px, 3vw, 29px); }
.saved-notice { display: flex; align-items: center; gap: 13px; padding: 16px; margin: 0 0 18px; border-radius: 16px; }
.saved-notice.is-unread { border-left: 3px solid var(--accent); padding-left: 14px; }
.saved-notice:is(:hover, :focus-visible) strong { text-decoration: underline; text-underline-offset: 3px; }
.notice-icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: var(--accent); }
.notice-copy { display: grid; gap: 3px; min-width: 0; }
.notice-copy strong { font-weight: 560; }
.notice-copy .muted, .notice-label { font-size: 14px; }
.notice-label { color: var(--quiet); }
.is-unread .notice-label { color: var(--accent); }
.saved-notice > svg { margin-left: auto; color: var(--accent); }
.detail h1 { font-size: clamp(30px, 4.5vw, 54px); font-weight: 710; line-height: 1.06; letter-spacing: -.049em; margin: 9px 0 10px; overflow-wrap: anywhere; }
.detail .lead { font-size: 19px; line-height: 1.5; }
.byline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%; background: var(--surface-hover); color: var(--ink); font-size: 20px; font-weight: 600; object-fit: cover; }
.author-link { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-weight: 560; }
a.author-link:is(:hover,:focus-visible) { color: var(--accent); }
a.author-link:hover span:not(.avatar) { text-decoration: underline; text-underline-offset: 3px; }
.detail-img { margin: 18px 0; }
.article-body { font-size: 17px; line-height: 1.68; overflow-wrap: anywhere; }
.article-body p + p { margin-top: 15px; }
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.reactions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 21px; }
.reactions button[aria-pressed="true"] { background: var(--surface); color: var(--accent); border-color: var(--line); }
.comments { margin-top: 14px; scroll-margin-top: 15px; }
.comments h2 { font-weight: 650; font-size: 23px; letter-spacing: -.035em; }
.comment-prompt { margin: 4px 0 10px; color: var(--muted); }
.comment-list { list-style: none; padding: 0; margin: 15px 0; }
.comment { border-top: 1px solid var(--line); padding: 13px 0; }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 6px; overflow-wrap: anywhere; }
.comment-head .avatar { width: 44px; height: 44px; font-size: 18px; }
.comment-head time { margin-left: auto; color: var(--quiet); font-size: 14px; }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 6px; }
.comment-replies { list-style: none; padding: 0 0 0 14px; margin-top: 10px; border-left: 2px solid var(--line); }
.comment-replies .comment:last-child { padding-bottom: 3px; }
.inline-button { background: none; border: 0; padding: 3px 0; font-size: 15px; color: var(--ink); font-weight: 500; }
.inline-button:hover { text-decoration: underline; }
.reply-form { margin-top: 10px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
label { display: grid; gap: 6px; color: var(--ink); font-size: 15px; font-weight: 500; }
label input, label select, label textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 11px 12px; font-size: 16px; font-weight: 400; }
textarea { resize: vertical; min-height: 84px; }
.editor-form { display: grid; gap: 15px; }
.editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.editor-preview { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.editor-preview h2 { margin: 6px 0; overflow-wrap: anywhere; }
.empty p:has(+ button) { margin-bottom: 12px; }
dialog { width: min(420px, calc(100% - 32px)); padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: 0 20px 70px #12131d26; }
dialog::backdrop { background: #11131a60; }
.dialog-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.dialog-head h2 { font-size: 25px; font-weight: 650; letter-spacing: -.04em; }
dialog p { margin: 8px 0 16px; }
.auth-submit { width: 100%; margin-top: 10px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface); }
.icon-button:hover { background: var(--surface-hover); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 30px); z-index: 3; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; box-shadow: 0 8px 32px #181a2230; border-radius: 999px; }
.toast:not(:empty) { padding: 10px 16px; }
.no-script { padding: 20px; }

[hidden] { display: none !important; }
button:disabled { cursor: default; opacity: .5; }
.card-byline { margin: 8px 0 4px; }
.card-byline .avatar { width: 44px; height: 44px; font-size: 18px; }
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(#fff, #f6faff); color: var(--muted); font-size: 14px; }
.footer-inner { width: var(--page-width); margin-inline: auto; padding-block: clamp(28px, 4.5vw, 52px); display: grid; grid-template-columns: minmax(180px, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 25px; }
.footer-brand .wordmark { color: var(--ink); }
.footer-tagline { display: block; margin-top: 9px; }
.footer-inner nav { display: grid; gap: 8px; align-content: start; justify-items: start; }
.footer-inner h2 { margin-bottom: 3px; color: var(--ink); font-size: 15px; font-weight: 620; }
.footer-inner nav a:hover, .auth-agreements a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-ad { width: var(--page-width); margin-inline: auto; }
.footer-ad:empty { display: none; }
.info-page { max-width: 700px; }
.info-page h2 { margin-top: 18px; }
.info-page p + p, .info-page form { margin-top: 16px; }
.owner-bio, .inbox-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.info-page p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.info-page .check { display: flex; align-items: flex-start; }
.legal-page p + p { margin-top: 14px; }
.legal-page p { white-space: pre-wrap; overflow-wrap: anywhere; }
.legal-page form { margin-top: 18px; }
dialog form { display: grid; gap: 11px; }
dialog .auth-submit { margin-top: 0; }
.auth-agreements { display: grid; gap: 8px; padding-block: 3px; }
.auth-agreements a { color: #165bcf; }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 16px; }
.catalog-search { margin-bottom: 16px; display: flex; align-items: end; gap: 8px; }
.catalog-search label { flex: 1; }
.catalog-search input { background: #fff; }
.catalog-search input:focus { border-color: var(--accent); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.catalog-card { min-height: 104px; display: flex; align-items: flex-start; gap: 11px; padding: 16px; background: #fff; border-radius: 16px; box-shadow: var(--panel-shadow); }
.catalog-card:hover { box-shadow: 0 7px 22px #234b852a; }
.catalog-card strong { font-weight: 580; }
.catalog-card p { margin-top: 3px; font-size: 14px; color: var(--quiet); }
.home-feed { display: grid; gap: var(--section-gap); }
.home-feed .section-heading { margin: 0 0 var(--feed-gap); }
.home-feed > .ads-slot { margin-block: 0; }
.conversation-list > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.cover-field { display: grid; gap: 7px; }
.cover-field .muted, .cover-error { font-size: 14px; }
.cover-error { color: #a52820; }
.cover-field input[aria-invalid="true"] { border-color: #b63128; }
.comment-actions, .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.comment-actions button[aria-pressed="true"] { color: var(--accent); }
.report-button { color: var(--quiet); font-size: 13px; margin-left: 4px; }
.article-body > :not(:first-child) { margin-top: 16px; }
.article-body figure { margin: 18px 0; }
.detail-img, .article-body figure img, .article-body video, .article-body iframe { display: block; width: 100%; height: auto; border-radius: 13px; }
.article-body video, .article-body iframe { background: #131f35; border: 0; }
.article-body video { width: auto; max-width: 100%; max-height: min(72vh, 680px); aspect-ratio: auto 16/9; margin-inline: auto; object-fit: contain; }
.article-body iframe { aspect-ratio: 16/9; }
.article-body figcaption { margin-top: 6px; font-size: 14px; color: var(--quiet); }
.article-body .video-embed { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px; background: #edf3ff; border-radius: 12px; color: #1b4a9b; text-decoration: none; }
.article-body blockquote { margin-inline: 0; padding: 10px 15px; border-left: 3px solid var(--accent); background: #f4f7fd; }
.article-sources { padding-top: 14px; border-top: 1px solid var(--line); }
.article-sources ol { margin-top: 8px; padding-left: 21px; }
.article-sources h2 { font-size: 22px; }
.article-share {
  margin-top: var(--feed-gap);
  scroll-margin-top: 15px;
}
.article-share summary { width: fit-content; min-height: 49px; padding-inline: 18px; cursor: pointer; list-style: none; }
.article-share summary::-webkit-details-marker { display: none; }
.article-share summary svg { width: 21px; height: 21px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share-url { max-width: 560px; margin-top: 14px; }
.share-url input { background: #fff; }
.share-status, dialog .share-status { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.breadcrumbs { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--quiet); }
.breadcrumbs a:hover, .related a:hover { color: var(--accent); text-decoration: underline; }
.related { margin-top: 20px; }
.related ul { margin-bottom: 0; }
.related li + li { margin-top: 5px; }
.editor-block { display: grid; gap: 10px; padding: 14px; background: #f6f8fc; border: 1px solid #e9eff8; border-radius: 14px; }
.editor-block summary { cursor: pointer; }
.editor-block details, details.editor-block label { margin-top: 8px; }
.block-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.source-fields, .block-insert { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.source-fields label, .block-insert label { flex: 1 1 130px; }
.upload-preview img { width: auto; max-width: 100%; max-height: 120px; border-radius: 8px; }
.profile-avatar { margin-bottom: 14px; }
.profile-avatar :is(.avatar,img) { width: 88px; height: 88px; border-radius: 50%; font-size: 36px; object-fit: cover; }
#profile-form { margin-top: 16px; }
.author-profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 27px);
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-hover), #fff 78%);
}
.author-profile-header .avatar {
  width: clamp(84px, 10vw, 104px);
  height: auto;
  aspect-ratio: 1;
  border: 3px solid #fff;
  font-size: clamp(34px, 5vw, 43px);
}
.author-profile-info h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.05; letter-spacing: -.05em; overflow-wrap: anywhere; }
.author-bio { max-width: 65ch; margin-top: 11px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.author-profile-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.author-profile-actions .button { overflow-wrap: anywhere; white-space: normal; }
.author-publications { margin-top: var(--section-gap); }
.author-publications h2 { margin-bottom: 13px; font-size: 24px; letter-spacing: -.035em; }
.author-index { display: grid; gap: 12px; padding-left: 22px; }
.author-index a { text-decoration: underline; text-underline-offset: 3px; }
.author-index time { color: var(--muted); font-size: 14px; }
.ads-slot { margin: 12px 0 18px; }
.direct-ad, .rsya-preview { padding: 15px; border-radius: 14px; background: #fff; box-shadow: var(--panel-shadow); overflow-wrap: anywhere; }
.direct-ad a { display: block; }
.direct-ad a:hover strong { text-decoration: underline; }
.direct-ad img { margin: 5px 0 9px; max-height: 260px; object-fit: contain; border-radius: 8px; }
.ad-meta { display: block; margin-bottom: 5px; font-size: 12px; color: var(--quiet); }
.rsya-slot > [data-rsya], .rsya-preview { min-height: 125px; }
.ad-rail.rsya-slot > [data-rsya], .ad-rail.rsya-preview { min-height: 230px; }
.rsya-preview { display: grid; place-content: center; text-align: center; background: var(--surface); border: 1px dashed #9bbcf1; box-shadow: none; color: var(--muted); }
.rsya-preview p { margin: 0; }
.rsya-preview small { color: var(--quiet); }
.layout.admin-layout { display: block; width: min(1030px, var(--page-width)); }
.admin-layout :is(.left, .right) { display: none; }
.admin-shell header { margin-bottom: 18px; }
.admin-shell h1 { font-size: clamp(29px, 5vw, 43px); letter-spacing: -.05em; }
.admin-tabs, .admin-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.admin-tabs a, .admin-links a { border-radius: 10px; padding: 7px 10px; background: #fff; color: #24497f; font-size: 14px; }
.admin-tabs a[aria-current="page"], .admin-links a[aria-current="page"] { background: #e1edff; color: #1448a7; }
.admin-tabs a:hover, .admin-links a:hover { text-decoration: underline; }
.admin-panel > .muted + .admin-links { margin-top: 12px; }
.admin-content, .ad-fields, .admin-form { display: grid; gap: 12px; }
.admin-form { max-width: 760px; }
.admin-form > .button { justify-self: start; }
.admin-inline { display: flex; align-items: end; flex-wrap: wrap; gap: 7px; padding: 7px 0; }
.admin-inline label { flex: 1 1 120px; }
.admin-panel { background: #fff; padding: clamp(14px, 3vw, 24px); border-radius: 18px; box-shadow: var(--panel-shadow); min-width: 0; }
.admin-panel h2 { margin-bottom: 12px; font-size: 22px; letter-spacing: -.035em; }
.admin-row, .member-row { border-top: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
.admin-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.member-row summary { cursor: pointer; }
.compact { min-height: 34px; padding: 5px 11px; }
.stats-grid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.stat span { display: block; color: var(--quiet); font-size: 14px; }
.stat strong { font-size: 27px; font-weight: 600; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 8px 9px; border-bottom: 1px solid var(--line); }
.author-analytics { display: grid; gap: 14px; }
.author-analytics .stats-grid .stat { background: var(--surface); box-shadow: none; }
.author-analytics td:first-child { min-width: 150px; }
.author-analytics :is(th,td):not(:first-child) { white-space: nowrap; }
.report-period { margin-bottom: 0; }
.report-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.report-summary h2 { margin-bottom: 4px; }
.report-summary > .muted { flex-basis: 100%; }
.report-note { margin-bottom: 8px; }
.report-chart { display: flex; align-items: end; height: 135px; gap: 2px; border-bottom: 1px solid var(--line); }
.report-chart div { flex: 1; min-width: 0; height: 100%; display: flex; align-items: end; }
.report-chart span { flex: 1; height: var(--bar-height); background: var(--accent); border-radius: 3px 3px 0 0; }
.report-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 13px; }

@media (max-width: 1150px) {
  :root { --page-width: calc(100% - 48px); --sidebar-width: 212px; }
  .layout { grid-template-columns: var(--sidebar-width) minmax(0, 1fr) 219px; gap: 22px; }
  .top-inner { grid-template-columns: var(--sidebar-width) minmax(175px, 405px) 1fr; gap: 22px; }
  .nav-item { padding-inline: 6px; gap: 6px; }
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
  .top-inner { grid-template-columns: 150px minmax(0, 1fr) auto; }
  .top-brand .wordmark { font-size: 26px; gap: 5px; }
  .top-brand .brand-mark { width: 24px; height: 24px; }
  .right { display: none; }
}
@media (max-width: 705px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 15px; }
  :root { --page-width: calc(100% - 32px); }
  .top-inner { min-height: auto; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 6px; padding: 10px 0; }
  .wordmark { gap: 5px; }
  .footer-brand .wordmark { font-size: clamp(21px, 5vw, 25px); }
  .footer-brand .brand-mark { width: 23px; height: 23px; }
  .top-brand .wordmark { font-size: clamp(23px, 7vw, 27px); }
  .top-actions { grid-column: 2; grid-row: 1; gap: 4px; }
  .top-actions .button { font-size: 14px; min-height: 40px; padding-inline: 10px; }
  .profile-name { display: none; }
  .search { grid-row: 2; grid-column: 1 / -1; }
  .layout { display: block; padding-top: 13px; }
  .left { padding: 0; margin-bottom: 22px; }
  .left .desktop-menu { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 43px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 11px; background: #fff; font-size: 15px; font-weight: 400; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary svg:last-child { margin-left: auto; }
  .mobile-menu[open] summary svg:last-child { rotate: 180deg; }
  .mobile-menu[open] .nav-list { margin-top: 5px; }
  .topic-nav { margin-top: 11px; padding-top: 8px; }
  .page-head h1, .topic-heading h1 { font-size: clamp(27px, 7vw, 38px); }
  .topic-heading p { font-size: 15px; }
  .topic-feed .card-copy { padding: 12px; }
  .card h2, .card h3 { font-size: 20px; }
}
@media (max-width: 505px) {
  .author-profile-header { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 9px; }
  .feature-inner { padding: 3px 6px 7px; }
  .feature h2 { max-width: 13em; }
  .cards, .editor-fields { grid-template-columns: minmax(0, 1fr); }
  .feed-list .card { flex-direction: column; }
  .feed-list .card-image { align-self: stretch; width: auto; margin: 0; border-radius: 0; }
  .topic-feed .card-image { width: 25%; min-width: 80px; }
  .topic-feed .card h2 { font-size: 19px; }
  .section-heading h2 { font-size: 20px; }
  .tabs a { padding-inline: 7px; }
}
@media (max-width: 370px) {
  :root { --page-width: calc(100% - 22px); }
  .top-actions .button.secondary svg { display: none; }
  .top-actions .profile .button.secondary svg { display: block; }
  .top-inner { padding: 7px 0; }
  .top-actions .button { padding-inline: 8px; }
  .page-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  :is(.card, .feature):hover,
}
