@font-face {
  font-family: 'Noto Sans AZ';
  src: url('/assets/fonts/NotoSans-Azerbaijani.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  size-adjust: 99%;
  unicode-range: U+018F;
}

@font-face {
  font-family: 'Noto Sans AZ';
  src: url('/assets/fonts/NotoSans-Azerbaijani.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  size-adjust: 95%;
  unicode-range: U+0259;
}

/* The Adobe Gotham kit omits these letters in its default character set. */
@font-face {
  font-family: 'Montserrat AZ';
  src: url('/assets/fonts/Montserrat-Black-Azerbaijani.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+011E-011F, U+0130-0131, U+015E-015F, U+018F, U+0259;
}

:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --surface: #fffefa;
  --ink: #171714;
  --muted: #55564d;
  --line: #e4e2d9;
  --input-line: #dedcd1;
  --accent: #fbdc60;
  --accent-ink: #171714;
  --accent-orange: #d85621;
  --focus: #8053d5;
  --hover: #eeece3;
  --filled-hover: #33332e;
  --filled-text: white;
  --shadow: #17171420;
  --danger: #9d281b;
  --danger-surface: #fbe5e8;
  --success: #376040;
  --success-surface: #d8efe5;
  --selected: #fbefbe;
  --selected-line: #a67d15;
  --notice-ink: #4f3e16;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans AZ', sans-serif;
  --heading-font: 'gotham', 'Montserrat AZ', var(--font);
  --radius: 21px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191916;
  --surface: #23231f;
  --ink: #f5f2e9;
  --muted: #c4c1b3;
  --line: #42423a;
  --input-line: #68685d;
  --accent-orange: #ff9a61;
  --focus: #c5a6ff;
  --hover: #383830;
  --filled-hover: #dfdacb;
  --filled-text: #171714;
  --shadow: #0007;
  --danger: #ffab9e;
  --danger-surface: #502b30;
  --success: #a7dcb4;
  --success-surface: #29463c;
  --selected: #4a3e23;
  --selected-line: #ab9455;
  --notice-ink: #f6dfa2;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 15px/1.55 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand { font-family: var(--heading-font); font-weight: 800; }
.container { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 10px 14px; background: var(--surface); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height, 42px);
  padding: var(--button-padding, 8px 16px);
  border: 1.5px solid var(--button-outline, var(--ink));
  border-radius: 999px;
  background: transparent;
  color: var(--button-outline, var(--ink));
  font: 700 var(--button-font-size, 13px)/1.25 var(--font);
  text-align: center;
  cursor: pointer;
}
.button:hover { background: var(--button-hover, var(--hover)); }
:is(.button-fill, .button[aria-current="page"], .button[aria-pressed="true"], .personal-settings[open] > summary.button) {
  border-color: var(--button-fill, var(--ink));
  background: var(--button-fill, var(--ink));
  color: var(--button-fill-text, var(--filled-text));
}
:is(.button-fill, .button[aria-current="page"], .button[aria-pressed="true"], .personal-settings[open] > summary.button):hover {
  border-color: var(--button-fill-hover, var(--filled-hover));
  background: var(--button-fill-hover, var(--filled-hover));
}
.button-small { --button-height: 34px; --button-padding: 6px 11px; --button-font-size: 12px; }
.button:disabled { opacity: .6; cursor: wait; }

.page-loading {
  position: fixed;
  z-index: 6;
  inset: 82px auto auto 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 4px 18px var(--shadow);
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
}
.loading-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: loading-spin .7s linear infinite;
}
@keyframes loading-spin { to { transform: rotate(1turn); } }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 73px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: 9px; font-size: 22px; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.brand-news { font-family: var(--font); font-weight: 600; }
.brand-mark { display: inline-flex; width: 37px; height: 37px; border-radius: 10px; align-items: center; justify-content: center; gap: 3px; flex: none; background: var(--accent); }
.brand-mark i { display: block; background: var(--accent-ink); width: 3px; height: 13px; transform: skew(-18deg); border-radius: 1px; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:last-child { height: 7px; align-self: center; margin-top: 5px; }
.main-nav { --button-font-size: 14px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.nav-index, .nav-arrow { display: none; }
.header-actions { display: flex; justify-content: flex-end; justify-self: end; align-items: center; gap: 8px; white-space: nowrap; }
.site-settings { display: flex; align-items: center; gap: 8px; }
.menu-cross, .mobile-menu-toggle[aria-expanded="true"] .menu-bars { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .menu-cross { display: initial; }
.language-picker { position: relative; }
.language-picker summary { gap: 6px; list-style: none; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.language-picker[open] summary { background: var(--hover); }
.language-picker[open] summary::after { transform: translateY(1px) rotate(225deg); }
.language-picker:not([open]) > .language-options { display: none; }
.language-options {
  position: absolute;
  z-index: 5;
  inset: calc(100% + 7px) auto auto 0;
  display: grid;
  gap: 2px;
  width: 104px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px var(--shadow);
}
.language-options button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}
.language-options button:hover { background: var(--hover); }
.language-options button[aria-pressed="true"] { background: var(--selected); }
.language-options button[aria-pressed="true"]::after {
  content: '';
  width: 11px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
.language-options button:focus-visible { outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) {
  .language-picker[open] > .language-options { animation: language-options-in .14s ease-out; }
}
@keyframes language-options-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
.header-account, .theme-toggle, .header-search, .mobile-menu-toggle { width: var(--button-height, 42px); padding: 0; }
:root:not([data-theme="dark"]) .theme-moon, :root[data-theme="dark"] .theme-sun { display: none; }
.header-account[aria-disabled="true"] { cursor: default; }
.account-symbol { position: relative; display: block; width: 18px; height: 18px; }
.account-symbol::before, .account-symbol::after { position: absolute; content: ''; border: 1.5px solid currentColor; }
.account-symbol::before { inset: 0 auto auto 5px; width: 8px; height: 8px; border-radius: 50%; }
.account-symbol::after { inset: auto 1px 0; height: 8px; border-radius: 8px 8px 3px 3px; }
.search-icon { width: 13px; height: 13px; border: 1.65px solid currentColor; border-radius: 50%; position: relative; display: inline-block; flex: none; margin-right: 3px; }
.search-icon::after { content: ''; position: absolute; width: 6px; height: 1.65px; background: currentColor; transform: rotate(45deg); top: 9px; left: 8px; border-radius: 2px; }

.masthead { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-block: 43px 29px; }
.edition-date { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.edition-mark { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #e46d2e; }
.masthead h1 { margin-top: 9px; font-size: clamp(54px, 7.25vw, 103px); line-height: .98; overflow-wrap: anywhere; }
.masthead h1 span { color: var(--accent-orange); }
.lede-layout { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(265px, 1fr); gap: 18px; margin-top: 24px; }
.featured { display: flex; position: relative; overflow: hidden; isolation: isolate; min-height: 345px; border-radius: var(--radius); background: #ff822f; color: var(--accent-ink); }
.featured-art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 58%; height: 100%; object-fit: cover; object-position: 53% center; }
.featured::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #ff8537 0%, #ff8537 40%, #ff8537cf 47%, #ff853700 61%); }
.featured-content { align-self: center; width: 59%; padding: 34px 0 34px 35px; }
.feature-label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #17171442; border-radius: 6px; background: #ffc67e; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.feature-label span { font-size: 13px; }
.featured h1 { margin-top: 14px; max-width: 470px; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.035; text-wrap: pretty; overflow-wrap: anywhere; }
.featured p { max-width: 37ch; margin-top: 14px; font-size: 14px; line-height: 1.55; font-weight: 590; }
.featured .button {
  --button-fill: #fffefa;
  --button-fill-text: var(--accent-ink);
  --button-fill-hover: #f2eee6;
  margin-top: 19px;
}

.lede-layout:has(.editor-picks[hidden]) { grid-template-columns: minmax(0, 1fr); }
.editor-picks {
  --pick-height: 7.25rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  padding: 14px 16px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.editor-picks > h2 { min-width: 0; padding-bottom: 10px; font-size: clamp(.8125rem, 1.3vw, 1.0625rem); line-height: 1.2; overflow-wrap: anywhere; }
.picks-viewport { contain: size; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .picks-viewport { overflow-y: auto; }
}
.pick {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: var(--pick-height);
  height: var(--pick-row-height, var(--pick-height));
  padding: 8px 3px;
  border-top: 1px solid var(--line);
}
.pick > a { display: block; }
.pick h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 740;
  line-height: 1.24;
  overflow-wrap: anywhere;
}
.pick > a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.pick > a:focus-visible { outline-offset: 1px; }
.pick .category-label { padding-block: 2px; }
.pick-source { overflow: hidden; color: var(--muted); font-size: .6875rem; text-overflow: ellipsis; white-space: nowrap; }

.latest { padding-top: 37px; }
.section-heading, .result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.section-heading h2 { font-size: clamp(30px, 4.25vw, 49px); line-height: 1.1; }
.category-links { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 17px 19px; }
.category-links .button:not(.button-fill) { --button-hover: var(--soft); }
.color-orange { --soft: #ffe3cb; }
.color-blue { --soft: #e5e5ff; }
.color-purple { --soft: #f1e2fb; }
.color-green { --soft: #e8f3cf; }
.color-yellow { --soft: #fbefbe; }
.color-mint { --soft: #dcf1e8; }
.color-pink { --soft: #fbe5e8; }
[data-theme="dark"] .color-orange { --soft: #503626; }
[data-theme="dark"] .color-blue { --soft: #343956; }
[data-theme="dark"] .color-purple { --soft: #493454; }
[data-theme="dark"] .color-green { --soft: #374729; }
[data-theme="dark"] .color-yellow { --soft: var(--selected); }
[data-theme="dark"] .color-mint { --soft: var(--success-surface); }
[data-theme="dark"] .color-pink { --soft: var(--danger-surface); }
.category-label { display: inline-flex; padding: 3px 8px; background: var(--soft); border-radius: 5px; font-size: 10.5px; font-weight: 770; line-height: 1.35; align-self: flex-start; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.story-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.card-art { display: block; position: relative; height: auto; aspect-ratio: 2.25; background: var(--soft); overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.story-card:hover img { transform: scale(1.03); }
.card-body { padding: 16px 19px 13px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.card-body h3 { margin-top: 9px; font-size: 22px; line-height: 1.2; }
.card-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-body p { margin: 9px 0 12px; color: var(--muted); font-size: 13.5px; }
.card-body .story-reason { color: var(--ink); margin: 9px 0 0; font-size: 12px; font-weight: 700; }
.read-toggle { margin-top: 10px; }
.story-topics { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 13px; }
.story-topics a { padding: 2px 8px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: 11px; }
.story-topics a:hover { background: var(--paper); border-color: var(--muted); }
.card-footer { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding-top: 9px; margin-top: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.card-footer .button { flex: none; }

.feed-masthead { padding-block: 42px 26px; }
.filters { display: grid; grid-template-columns: 1.3fr 1.15fr 1fr 1fr; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.filters label { min-width: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 710; }
.archive-dates { grid-column: 1 / -1; min-width: 0; border: 0; border-top: 1px solid var(--line); margin: 4px 0 0; padding: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 190px)); gap: 12px; }
.archive-dates legend { padding-right: 8px; font-size: 11px; color: var(--muted); }
.archive-dates input { padding-inline: 9px; }
.filters select, .filters input { height: 43px; width: 100%; min-width: 0; min-height: 42px; border: 1px solid var(--input-line); border-radius: 7px; background: var(--paper); font-size: 13px; font-weight: 650; }
.filters select { appearance: none; padding: 0 30px 0 11px; cursor: pointer; text-overflow: ellipsis; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 15px center, right 11px center; background-size: 4px 4px; background-repeat: no-repeat; }
.search-field { display: block; position: relative; }
.search-field .search-icon { pointer-events: none; position: absolute; left: 12px; top: 14px; color: var(--muted); }
.search-field input { padding: 0 10px 0 34px; }
.feed-query { display: flex; align-items: end; min-width: 0; gap: 8px; }
.feed-query .filter-search { flex: 1; }
.feed-search-done { display: none; }
.result-heading { align-items: center; margin-block: 18px 12px; min-height: 27px; }
.result-heading h2 { color: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 730; }
.more-results { display: flex; justify-content: center; }
.more-results > button { margin-top: 24px; }
.empty-state { padding: 48px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.empty-state h3 { font-size: 22px; }
.empty-state p { margin: 5px 0 16px; color: var(--muted); }

.site-footer { margin-top: 51px; border-top: 1px solid var(--line); }
.footer-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 14px; }
.footer-inner > span { color: var(--muted); font-size: 12px; }
.footer-inner .brand { font-size: 19px; }
.footer-inner .brand-mark { scale: .89; transform-origin: left center; margin-right: -3px; }

.article-page { max-width: 920px; margin-inline: auto; padding-top: clamp(24px, 4vw, 53px); }
.article-heading { margin: 24px auto 26px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.article-meta .category-label { color: var(--ink); }
.article-source { color: var(--muted); margin-top: 12px; font-size: 13px; }
.article-source strong { color: var(--ink); }
.article-heading h1 { margin-top: 10px; font-size: clamp(32px, 5.6vw, 70px); line-height: 1.04; text-wrap: balance; }
.article-lead { margin-top: 16px; color: var(--muted); font-size: clamp(16px, 2.2vw, 21px); line-height: 1.45; max-width: 65ch; }
.article-cover { margin: 0; }
.article-cover img { background: var(--line); border-radius: var(--radius); display: block; width: 100%; max-height: 520px; aspect-ratio: 16 / 9; object-fit: cover; }
.article-cover figcaption { margin-top: 7px; color: var(--muted); font-size: 12px; }
.article-copy { max-width: 68ch; margin: 26px auto 0; font-size: 18px; line-height: 1.64; }
.article-copy p { margin-bottom: 16px; }
.article-copy h2 { margin: 25px 0 7px; font-size: 1.3em; line-height: 1.25; }
.article-copy ul { margin: 0 0 16px; padding-inline-start: 1.35em; }
.article-copy blockquote { margin: 0 0 16px; padding-inline-start: 16px; border-inline-start: 3px solid var(--line); }
.article-copy pre { overflow: auto; margin: 0 0 16px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: .8em; }
.original-link { margin-top: 28px; padding-top: 19px; border-top: 1px solid var(--line); }
.article-discussion { max-width: 740px; margin: 34px auto 0; padding: clamp(15px, 4vw, 26px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.discussion-heading, .discussion-likes, .comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.discussion-heading { justify-content: space-between; margin-bottom: 14px; }
.discussion-heading h2 { font-size: 24px; }
.comment-hint a { text-decoration: underline; text-underline-offset: 3px; }
.article-discussion > .comment-hint { margin-bottom: 13px; }
.article-save { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; font-size: 13px; }
.article-save .form-error { flex-basis: 100%; }
.comment-form { display: grid; gap: 7px; margin-bottom: 16px; }
.comment-form label, .comment-meta strong { font-size: 13px; font-weight: 700; }
.comment-meta strong { overflow-wrap: anywhere; }
.comment-delete { --button-outline: var(--danger); --button-hover: var(--danger-surface); margin-inline-start: auto; }
.comment-form textarea { width: 100%; min-height: 80px; padding: 9px 11px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.comment-form button { justify-self: start; margin-top: 4px; }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list li { padding: 11px 0; border-top: 1px solid var(--line); }
.comment-list p { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.article-discussion .form-error { margin-top: 8px; }

.account-panel { max-width: 505px; margin: clamp(26px, 8vw, 96px) auto 0; padding: clamp(20px, 6vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.account-panel h1 { font-size: clamp(43px, 8vw, 76px); line-height: 1.02; }
.account-panel h1 span { color: var(--accent-orange); }
.account-panel > p { margin-top: 12px; color: var(--muted); }
.account-panel .account-notice { border-radius: 8px; padding: 9px 11px; background: var(--selected); color: var(--notice-ink); font-size: 13px; }
.account-form { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 24px; }
.account-form > label { font-size: 13px; font-weight: 700; }
.account-form > input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 9px 12px; }
.account-form #login-code { letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.account-form > .button { align-self: flex-start; margin-top: 7px; }
.form-error { color: var(--danger); font-size: 13px; }
.form-status { color: var(--success); font-size: 13px; }
.form-error:empty, .form-status:empty { display: none; }
.profile-panel h1 { margin-top: 12px; font-size: clamp(34px, 7vw, 54px); }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 19px; }
.interests-panel { max-width: 800px; }
.interest-group { min-width: 0; margin: 0 0 10px; border: 0; padding: 0; }
.interest-group legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 750; }
.interest-options { display: flex; align-items: start; gap: 7px; flex-wrap: wrap; }
.interest-choice { display: inline-flex; align-items: center; min-height: 40px; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; cursor: pointer; }
.interest-choice input { accent-color: var(--ink); flex: none; margin: 0; }
.interest-choice:has(input:checked) { background: var(--selected); border-color: var(--selected-line); }
.personal-actions { margin-top: 0; }
.personal-views { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.reading-resume { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 14px; margin-bottom: 22px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.reading-resume h2 { font-size: 17px; }
.reading-resume a { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.reading-resume p, .personal-highlights > p { color: var(--muted); font-size: 13px; }
.personal-highlights { margin-bottom: 24px; }
.personal-highlights > h2 { margin-bottom: 12px; font-size: clamp(21px, 4vw, 30px); }
.personal-result-heading { flex-wrap: wrap; }
.read-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.read-filter select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.personal-company-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.personal-company-filter label { font-size: 13px; font-weight: 700; }
.personal-company-filter select { flex: 1 1 130px; min-width: 0; min-height: 42px; max-width: 320px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }

.personal-dashboard { max-width: 1120px; }
.personal-dashboard .masthead {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding-block: clamp(20px, 4vw, 40px) 17px;
}
.personal-dashboard .masthead h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); }
.personal-dashboard .personal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 15px; }
.personal-settings { position: relative; }
.personal-settings summary { list-style: none; }
.personal-settings summary::-webkit-details-marker { display: none; }
.personal-settings > div {
  position: absolute;
  display: grid;
  gap: 5px;
  z-index: 2;
  inset: calc(100% + 6px) 0 auto auto;
  min-width: max-content;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px var(--shadow);
}
.personal-settings > div .button { justify-content: flex-start; white-space: nowrap; }
.personal-dashboard .personal-views { gap: 7px; margin-bottom: 23px; }
.personal-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.personal-pick {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.personal-pick img { width: 66px; height: 66px; border-radius: 6px; object-fit: cover; }
.personal-pick h3 { font-size: 16px; line-height: 1.28; }
.personal-pick a:hover { text-decoration: underline; text-underline-offset: 3px; }
.personal-pick p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.personal-dashboard .reading-resume { margin-bottom: 22px; background: transparent; }
.personal-dashboard .reading-resume h2 { font-size: 14px; }
.personal-dashboard .personal-result-heading { gap: 8px 16px; }
.personal-dashboard .personal-result-heading h2 { color: var(--ink); font-family: var(--heading-font); font-size: clamp(18px, 3vw, 22px); font-weight: 800; }
.personal-dashboard .personal-company-filter { gap: 6px 10px; padding: 0; border: 0; background: transparent; }
.personal-dashboard .personal-company-filter select { background: var(--surface); }

@media (max-width: 840px) {
  .personal-picks { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .personal-dashboard .personal-company-filter { width: 100%; }
  .personal-dashboard .personal-company-filter select { max-width: none; font-size: 16px; }
}

@media (max-width: 1050px) {
  .container { width: calc(100% - 56px); }
  .featured-content { width: 63%; padding-left: 25px; }
  .featured { min-height: 315px; }
  .featured::before { background: linear-gradient(90deg, #ff8537 0%, #ff8537 44%, #ff8537c0 53%, #ff853700 71%); }
  .lede-layout { gap: 14px; }
  .news-grid { gap: 13px; }
  .card-body h3 { font-size: 20px; }
}

@media (max-width: 960px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: auto; gap: 5px 10px; padding-block: 9px 6px; }
  .main-nav {
    --button-height: 36px;
    --button-padding: 7px clamp(8px, 1.7vw, 12px);
    --button-font-size: clamp(12px, 3.5vw, 14px);
    grid-row: 2;
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
  .header-actions { grid-row: 1; grid-column: 2; }
}

@media (max-width: 800px), (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .lede-layout { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
  .picks-viewport { height: calc(var(--pick-height) * var(--mobile-picks, 2)); }
  .featured { flex-direction: column; min-height: 0; }
  .featured::before { display: none; }
  .featured-content { display: contents; }
  .featured-heading { order: -1; padding: 12px 15px 10px; }
  .featured h1 { margin-top: 7px; font-size: clamp(20px, 5.4vw, 30px); line-height: 1.1; }
  .featured-art {
    position: static;
    z-index: auto;
    display: block;
    width: 100%;
    height: clamp(108px, 33vw, 184px);
    object-fit: contain;
    object-position: center;
    background: #21120712;
  }
  .featured-details { padding: 10px 15px 13px; }
  .featured p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
  }
  .featured .button { --button-height: 36px; margin-top: 9px; }
  .latest + .editor-picks { margin-top: 24px; }
  .editor-picks > h2 { font-size: .9375rem; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .feed-masthead { padding-block: 31px 23px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters > .feed-query { grid-column: 1 / -1; }
  .feed-query input { font-size: 16px; }
  .feed-search-open { overflow: hidden; }
  .feed-search-open :is(.site-header, .skip-link, .feed-masthead) { visibility: hidden; }
  .feed-search-active {
    position: fixed;
    z-index: 4;
    inset: var(--search-top, 0px) 0 auto;
    height: var(--search-height, 100dvh);
    padding: 0 16px 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
  }
  .feed-search-active .filters {
    position: sticky;
    z-index: 1;
    top: 0;
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    background: var(--paper);
    padding: 10px 0 6px;
  }
  .feed-search-active .filters > :not(.feed-query) { display: none; }
  .feed-search-active .feed-search-done { display: inline-flex; min-height: 43px; white-space: nowrap; }
  .feed-search-active .result-heading { margin-block: 5px 8px; }
  .feed-search-active .news-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .feed-search-active :is(.card-art, .card-body > .category-label, .card-body > p, .story-topics, .card-footer > .button) { display: none; }
  .feed-search-active .card-body { padding: 10px 12px; }
  .feed-search-active .card-body h3 { margin: 0; font-size: 16px; }
  .feed-search-active .card-footer { margin: 4px 0 0; padding: 0; border: 0; }
}

@media (max-width: 760px), (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  :root { --mobile-header-height: 64px; --mobile-menu-gutter: clamp(16px, 5.15vw, 26px); }
  #main { margin-block-end: 24px; }
  .site-footer { display: none; }
  .header-inner { min-height: calc(var(--mobile-header-height) - 1px); gap: 8px; padding-block: 8px; }
  .header-inner > .main-nav, .header-actions > :is(.language-picker, .site-settings) { display: none; }
  .header-inner > .brand { max-width: 100%; gap: 8px; font-size: clamp(16px, 4.7vw, 22px); white-space: normal; }
  .header-actions { --button-height: 44px; }
  .header-inner .brand-mark { width: 44px; height: 44px; }
  .mobile-menu-open { overflow: hidden; }
  .mobile-menu-open .site-header { position: sticky; z-index: 7; top: 0; }
  .mobile-menu-open .header-inner { width: calc(100% - 2 * var(--mobile-menu-gutter)); }
  .mobile-menu-toggle[aria-expanded="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--filled-text);
  }
  .mobile-menu {
    --mobile-nav-muted: var(--muted);
    position: fixed;
    inset: var(--mobile-header-height) 0 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(12px, 3.45dvh, 26px) var(--mobile-menu-gutter) max(20px, env(safe-area-inset-bottom));
    background: var(--paper);
  }
  :root[data-theme="dark"] .mobile-menu {
    --mobile-nav-muted: color-mix(in srgb, var(--ink) 57%, var(--paper));
  }
  .mobile-menu .main-nav { display: grid; gap: 0; white-space: normal; }
  .mobile-menu .main-nav a.button {
    display: grid;
    grid-template-columns: 2ch minmax(0, 1fr) auto;
    gap: clamp(9px, 3vw, 14px);
    min-height: clamp(62px, 10dvh, 86px);
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--mobile-nav-muted);
    text-align: start;
  }
  .mobile-menu .main-nav a.button:is(:hover, [aria-current="page"]) {
    border-color: var(--line);
    background: transparent;
    color: var(--ink);
  }
  .mobile-menu .nav-index {
    display: inline;
    font-size: 12px;
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
  }
  .mobile-menu [aria-current="page"] .nav-index { color: var(--notice-ink); }
  :root[data-theme="dark"] .mobile-menu [aria-current="page"] .nav-index { color: var(--accent); }
  .mobile-menu .nav-label {
    font: 800 clamp(25px, 8.5vw, 36px)/1.08 var(--heading-font);
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
  }
  .mobile-menu .nav-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--input-line);
    border-radius: 50%;
    font-size: 21px;
  }
  .mobile-menu [aria-current="page"] .nav-arrow {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
  }
  .mobile-menu-settings {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .mobile-menu .site-settings {
    --button-height: 44px;
    gap: 10px;
    flex: none;
  }
  .mobile-menu .language-options {
    position: static;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
    padding: 3px;
    border-radius: 999px;
    background: var(--hover);
    backdrop-filter: none;
    box-shadow: none;
  }
  .mobile-menu .language-options button {
    justify-content: center;
    min-height: 44px;
    padding: 6px 0;
    border-radius: 999px;
    color: var(--muted);
    text-transform: uppercase;
  }
  .mobile-menu .language-options button:hover { color: var(--ink); }
  .mobile-menu .language-options button[aria-pressed="true"] {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 4px var(--shadow);
  }
  :root[data-theme="dark"] .mobile-menu .language-options button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--filled-text);
  }
  .mobile-menu .language-options button[aria-pressed="true"]::after { content: none; }
  .mobile-menu a:focus-visible { outline-offset: -3px; }
}

@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .mobile-menu { gap: 12px; padding-block-start: 4px; }
  .mobile-menu .main-nav .button { min-height: 54px; padding-block: 4px; }
  .mobile-menu .nav-label { font-size: 26px; }
}

@media (max-width: 520px) {
  .personal-dashboard .personal-actions { margin-inline-start: auto; }
  .feed-masthead { flex-direction: column; align-items: start; gap: 12px; padding-block: 24px 19px; }
  .feed-masthead h1 { font-size: clamp(47px, 13vw, 68px); }
  .latest { padding-top: 28px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading { gap: 8px; }
  .news-grid { grid-template-columns: 1fr; }
  .filters { gap: 10px; padding: 11px; }
  .filters > label:last-of-type { grid-column: 1 / -1; }
  .filters select { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation: none; }
  .card-art img { transition: none; }
}

.admin-panel { max-width: 1090px; margin-inline: auto; }
.admin-masthead h1 { font-size: clamp(38px, 9vw, 72px); }
.admin-masthead h1:lang(ru) { font-size: clamp(26px, 7.5vw, 72px); }
.admin-toolbar, .admin-actions, .admin-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 16px;
}
.admin-toolbar { justify-content: space-between; margin-bottom: 14px; }
.admin-toolbar .personal-views { margin: 0; }
.admin-filters { grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr)); }
.admin-filters input { padding-inline: 11px; }
.admin-filters .admin-actions { grid-column: 1 / -1; }
.admin-count { margin: 17px 0 9px; font-size: 18px; }
.admin-rows {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.admin-rows li {
  display: grid;
  align-items: center;
  gap: 7px 17px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.admin-news li { grid-template-columns: minmax(0, 1fr) auto; }
.admin-users li { grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); font-size: 13px; }
.admin-user, .admin-caption { display: block; }
.admin-user strong { display: block; font-size: 15px; }
.admin-caption, .admin-note, .admin-form small { color: var(--muted); font-size: 13px; }
.admin-caption { font-size: 12px; }
.admin-pager, .admin-more, .admin-note { margin-top: 13px; }
.admin-badge { border-radius: 20px; padding: 4px 9px; background: var(--selected); font-size: 12px; font-weight: 700; }
.admin-badge[data-live="true"] { background: var(--success-surface); }
.admin-panel .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.admin-editor {
  max-width: 850px;
  padding: clamp(15px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.admin-form, .admin-fields { display: grid; gap: 10px; }
.admin-form label:not(.interest-choice, .admin-check) { display: grid; min-width: 0; gap: 5px; }
.admin-form label > span, .admin-topics legend { font-size: 13px; font-weight: 700; }
.admin-form input:not([type="checkbox"]), .admin-form textarea, .admin-form select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.admin-form textarea { resize: vertical; }
.admin-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-topics { min-inline-size: 0; padding: 0; margin: 0; border: 0; }
.admin-topics > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.admin-cover { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-cover > div { flex: 1 1 240px; min-width: 0; }
.admin-cover img { object-fit: cover; border-radius: 8px; }
.admin-check { display: flex; gap: 7px; align-items: center; min-height: 37px; cursor: pointer; }
.admin-check input { margin: 0; accent-color: var(--ink); }
.admin-success { color: var(--success); font-weight: 700; }
.admin-panel p:empty { display: none; }

@media (max-width: 620px) {
  .admin-fields, .admin-news li { grid-template-columns: minmax(0, 1fr); }
  .admin-users li { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-user { grid-column: 1 / -1; }
  .admin-filters input, .admin-filters select, .admin-form input, .admin-form textarea { font-size: 16px; }
}
