/*
Theme Name: RozumTech
Theme URI: https://rozumtech.com/
Author: RozumTech
Author URI: https://rozumtech.com/
Description: A fast, accessible editorial WordPress theme for Ukrainian technology and AI coverage.
Version: 1.2.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.2
Text Domain: rozumtech
*/

:root {
  --rt-ink: #101828;
  --rt-muted: #596579;
  --rt-faint: #8a94a6;
  --rt-line: #dfe4ec;
  --rt-surface: #ffffff;
  --rt-soft: #f3f6fb;
  --rt-brand: #4f46e5;
  --rt-brand-dark: #3730a3;
  --rt-accent: #0f9f8f;
  --rt-dark: #0b1220;
  --rt-radius-sm: 10px;
  --rt-radius: 18px;
  --rt-radius-lg: 28px;
  --rt-shadow: 0 18px 50px rgba(15, 23, 42, .09);
  --rt-container: 1180px;
  --rt-reading: 760px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--rt-ink);
  background: var(--rt-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }

img { max-width: 100%; height: auto; }

figure { margin: 0; }

a {
  color: var(--rt-brand-dark);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover { color: var(--rt-brand); }

button,
input,
select,
textarea { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .45);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 18px;
  color: #fff;
  background: var(--rt-dark);
  border-radius: var(--rt-radius-sm);
}

.rt-container {
  width: min(calc(100% - 40px), var(--rt-container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(223, 228, 236, .9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
}

.site-branding,
.site-branding a {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--rt-ink);
  text-decoration: none;
}

.site-branding img,
.brand-icon {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 11px;
}

.site-title {
  margin: 0;
  font-size: 23px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.04em;
}

.primary-nav { justify-self: end; }

.primary-nav ul,
.footer-nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a {
  display: block;
  padding: 10px 11px;
  color: #364152;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 680;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
  color: var(--rt-brand-dark);
  background: #eeefff;
}

.header-actions { display: flex; gap: 8px; align-items: center; }

.icon-button,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--rt-ink);
  background: transparent;
  border: 1px solid var(--rt-line);
  border-radius: 12px;
  cursor: pointer;
}

.icon-button:hover,
.menu-toggle:hover { background: var(--rt-soft); }

.menu-toggle { display: none; }

.header-search {
  display: none;
  padding: 16px 0;
  background: #fff;
  border-top: 1px solid var(--rt-line);
}

.header-search.is-open { display: block; }

.header-search .search-form { margin-left: auto; }

.rt-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }

.site-main { min-height: 60vh; }

.home-intro {
  padding: 62px 0 28px;
}

.home-kicker,
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--rt-brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-kicker::before,
.eyebrow::before {
  width: 22px;
  height: 3px;
  background: var(--rt-accent);
  border-radius: 3px;
  content: "";
}

.home-intro h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.home-intro p {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--rt-muted);
  font-size: 19px;
}

.topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 0 32px;
}

.topic-strip a,
.term-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 8px 13px;
  color: #364152;
  background: var(--rt-surface);
  border: 1px solid var(--rt-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.topic-strip a:hover,
.term-chip:hover {
  color: var(--rt-brand-dark);
  border-color: #b6b9f4;
}

.featured-story {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
  min-height: 510px;
  overflow: hidden;
  color: #fff;
  background: var(--rt-dark);
  border-radius: var(--rt-radius-lg);
  box-shadow: var(--rt-shadow);
}

.featured-media { min-height: 360px; background: linear-gradient(135deg, #252b6d, #0f9f8f); }

.featured-media img { width: 100%; height: 100%; object-fit: cover; }

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 62px);
}

.featured-content .term-chip {
  align-self: flex-start;
  color: #dcdcff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
}

.featured-title {
  margin: 18px 0 16px;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.featured-title a { color: #fff; text-decoration: none; }

.featured-title a:hover { color: #dcdcff; }

.featured-excerpt { margin: 0 0 24px; color: #c4ccda; font-size: 17px; }

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  align-items: center;
  color: var(--rt-muted);
  font-size: 14px;
}

.featured-story .story-meta { color: #aeb8c9; }

.story-meta a { color: inherit; text-decoration: none; }

.story-meta span + span::before {
  margin-right: 15px;
  color: var(--rt-faint);
  content: "•";
}

.section { padding: 68px 0 0; }

.section-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading h2,
.archive-header h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.section-link { font-size: 15px; font-weight: 750; text-decoration: none; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.story-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--rt-surface);
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.story-card:hover {
  border-color: #c7c9f4;
  box-shadow: var(--rt-shadow);
  transform: translateY(-4px);
}

.card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #dde1ff, #d5f5f0);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.story-card:hover .card-media img { transform: scale(1.035); }

.card-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--rt-brand-dark);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -.08em;
}

.card-content { display: flex; flex: 1; flex-direction: column; padding: 22px; }

.card-content .term-chip { align-self: flex-start; padding: 5px 9px; font-size: 12px; }

.card-title {
  margin: 13px 0 10px;
  font-size: 23px;
  line-height: 1.24;
  letter-spacing: -.025em;
}

.card-title a { color: var(--rt-ink); text-decoration: none; }

.card-title a:hover { color: var(--rt-brand-dark); }

.card-excerpt { margin: 0 0 18px; color: var(--rt-muted); font-size: 15.5px; }

.card-content .story-meta { margin-top: auto; }

.editorial-promise {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: center;
  padding: clamp(34px, 5vw, 58px);
  margin-top: 68px;
  color: #fff;
  background: linear-gradient(135deg, #111936, #1c2852);
  border-radius: var(--rt-radius-lg);
}

.editorial-promise h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.04em; }

.promise-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }

.promise-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: #cbd3e3; }

.promise-list li::before {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #fff;
  background: var(--rt-accent);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  content: "✓";
}

.archive-header { padding: 66px 0 34px; }

.archive-description { max-width: 760px; margin: 14px 0 0; color: var(--rt-muted); font-size: 18px; }

.archive-description p { margin: 0; }

.pagination { margin-top: 38px; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }

.pagination .page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  place-items: center;
  color: var(--rt-ink);
  background: #fff;
  border: 1px solid var(--rt-line);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.pagination .current,
.pagination a:hover { color: #fff; background: var(--rt-brand); border-color: var(--rt-brand); }

.article-shell { padding: 54px 0 80px; }

.article-header { width: min(100%, 920px); margin-inline: auto; }

.breadcrumbs { margin-bottom: 24px; color: var(--rt-muted); font-size: 14px; }

.breadcrumbs a { color: inherit; text-decoration: none; }

.breadcrumbs span { margin: 0 7px; color: var(--rt-faint); }

.article-header h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.article-dek { margin: 0 0 20px; color: var(--rt-muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  align-items: center;
  padding: 13px 16px;
  color: var(--rt-muted);
  background: #fff;
  border: 1px solid var(--rt-line);
  border-left: 4px solid var(--rt-accent);
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(15, 23, 42, .04);
  font-size: 13px;
}

.article-meta a { color: var(--rt-ink); font-weight: 700; text-decoration: none; }

.article-meta .meta-label { color: var(--rt-faint); }

.article-hero {
  width: min(100%, 1072px);
  margin: 32px auto 0;
  overflow: hidden;
  background: #dde1ff;
  border-radius: var(--rt-radius-lg);
  box-shadow: var(--rt-shadow);
}

.article-hero img { display: block; width: 100%; max-height: 650px; object-fit: cover; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 32px;
  align-items: start;
  width: min(100%, 1072px);
  margin: 38px auto 0;
}

.article-main-column { min-width: 0; }

.article-content {
  color: #253044;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.72;
}

.article-content > * { margin-top: 0; margin-bottom: 1.15em; }

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--rt-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.22;
  letter-spacing: -.035em;
  scroll-margin-top: 110px;
}

.article-content h2 { margin-top: 1.8em; margin-bottom: .62em; font-size: clamp(25px, 2.8vw, 32px); }

.article-content h3 { margin-top: 1.55em; font-size: clamp(21px, 2.2vw, 24px); }

.article-content h4 { margin-top: 1.45em; font-size: 19px; }

.article-content a { font-weight: 650; }

.article-content blockquote {
  padding: 6px 0 6px 24px;
  color: #33405a;
  border-left: 4px solid var(--rt-brand);
  font-size: 20px;
  font-style: italic;
}

.article-content :where(ul, ol) { padding-left: 1.2em; line-height: 1.58; }

.article-content li { margin-bottom: .18em; padding-left: .18em; }

.article-content li:last-child { margin-bottom: 0; }

.article-content :where(img, .wp-block-image img) { border-radius: var(--rt-radius); }

.article-content figcaption { margin-top: 8px; color: var(--rt-muted); font-family: Inter, sans-serif; font-size: 13px; text-align: center; }

.article-content table { width: 100%; border-collapse: collapse; font-family: Inter, sans-serif; font-size: 15px; }

.article-content th,
.article-content td { padding: 12px; border: 1px solid var(--rt-line); text-align: left; vertical-align: top; }

.article-content th { background: var(--rt-soft); }

.article-toc {
  padding: 18px 20px;
  margin: 24px 0 28px;
  background: #f7f8ff;
  border: 1px solid #d9dcff;
  border-radius: var(--rt-radius);
  font-family: Inter, sans-serif;
}

.article-toc h2 { margin: 0 0 9px; font-size: 17px; }

.article-toc ol { display: grid; gap: 3px; margin: 0; padding-left: 20px; line-height: 1.45; }

.article-toc li { margin: 0; padding-left: .12em; }

.article-toc a { font-size: 15px; text-decoration: none; }

.disclosure-box,
.sources-box,
.author-box {
  padding: 24px;
  margin-top: 34px;
  background: #fff;
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius);
}

.disclosure-box { background: #f1fbf9; border-color: #bde8e1; }

.disclosure-box h2,
.sources-box h2,
.author-box h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; }

.sources-box ol { margin-bottom: 0; padding-left: 20px; }

.sources-box a { overflow-wrap: anywhere; }

.post-footer { margin-top: 44px; }

.share-row { display: flex; flex-wrap: wrap; gap: 9px; padding: 24px 0; border-top: 1px solid var(--rt-line); border-bottom: 1px solid var(--rt-line); }

.button,
.share-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  color: #fff;
  background: var(--rt-brand);
  border: 0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.share-button:hover { color: #fff; background: var(--rt-brand-dark); }

.button.secondary,
.share-button.secondary { color: var(--rt-ink); background: #fff; border: 1px solid var(--rt-line); }

.button.secondary:hover,
.share-button.secondary:hover { color: var(--rt-brand-dark); background: #f7f8ff; }

.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }

.author-box .avatar { border-radius: 50%; }

.author-box p { margin: 0; color: var(--rt-muted); font-size: 15px; }

.author-posts-link { display: inline-flex; margin-top: 10px; font-size: 13px; font-weight: 780; text-decoration: none; }

.related-posts { margin-top: 68px; }

.article-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 20px;
}

.sidebar-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
}

.sidebar-card-heading { padding: 20px 20px 15px; border-bottom: 1px solid var(--rt-line); }

.sidebar-card-heading > span {
  color: var(--rt-accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sidebar-card-heading h2 { margin: 3px 0 0; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }

.sidebar-story-list,
.sidebar-comment-list { padding: 0; margin: 0; list-style: none; }

.sidebar-story-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid #edf0f5;
}

.sidebar-story-list li:last-child,
.sidebar-comment-list li:last-child { border-bottom: 0; }

.sidebar-story-number { color: #a0a9b8; font-size: 13px; font-weight: 850; }

.sidebar-story-title { display: block; color: var(--rt-ink); font-size: 14px; font-weight: 780; line-height: 1.38; text-decoration: none; }

.sidebar-story-title:hover { color: var(--rt-brand-dark); }

.sidebar-story-meta { display: block; margin-top: 5px; color: var(--rt-faint); font-size: 11px; line-height: 1.35; }

.sidebar-comment-list li { border-bottom: 1px solid #edf0f5; }

.sidebar-comment-list a { display: block; padding: 14px 18px; color: inherit; text-decoration: none; }

.sidebar-comment-list strong { display: block; color: var(--rt-brand-dark); font-size: 12px; }

.sidebar-comment-list span { display: block; margin-top: 3px; color: var(--rt-muted); font-size: 13px; line-height: 1.4; }

.sidebar-comment-list a:hover { background: #f8f9ff; }

.sidebar-empty { padding: 18px; margin: 0; color: var(--rt-muted); font-size: 13px; line-height: 1.5; }

.comments-area {
  padding-top: 68px;
  margin-top: 72px;
  border-top: 1px solid var(--rt-line);
}

.comments-intro { margin-bottom: 28px; }

.comments-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--rt-brand-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.comments-kicker::before {
  width: 20px;
  height: 3px;
  background: var(--rt-accent);
  border-radius: 3px;
  content: "";
}

.comments-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.comments-intro p { max-width: 650px; margin: 0; color: var(--rt-muted); }

.comment-list,
.comment-list .children { padding: 0; margin: 0; list-style: none; }

.comment-list { display: grid; gap: 16px; margin-bottom: 32px; }

.comment-list .children { display: grid; gap: 12px; padding: 14px 0 0 28px; }

.comment-body {
  position: relative;
  padding: 24px;
  background: var(--rt-surface);
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius);
  box-shadow: 0 8px 25px rgba(15, 23, 42, .045);
}

.comment-meta { min-height: 50px; padding-left: 62px; }

.comment-author .avatar {
  position: absolute;
  top: 22px;
  left: 22px;
  border-radius: 50%;
}

.comment-author .fn { color: var(--rt-ink); font-style: normal; font-weight: 800; }

.comment-author .says { color: var(--rt-faint); font-size: 13px; }

.comment-metadata { margin-top: 2px; color: var(--rt-faint); font-size: 13px; }

.comment-metadata a { color: inherit; text-decoration: none; }

.comment-content { margin-top: 16px; color: #344054; }

.comment-content > :last-child { margin-bottom: 0; }

.comment-reply-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--rt-brand-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.comment-navigation { margin: 24px 0; }

.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 16px; }

.comment-form-card {
  padding: clamp(26px, 5vw, 42px);
  background: linear-gradient(145deg, #fff, #f7f8ff);
  border: 1px solid #d9dcff;
  border-radius: var(--rt-radius-lg);
  box-shadow: var(--rt-shadow);
}

.comment-reply-title { margin: 0 0 8px; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -.035em; }

.comment-reply-title small { display: block; margin-top: 8px; font-size: 13px; letter-spacing: 0; }

.comment-notes,
.logged-in-as { margin: 0 0 24px; color: var(--rt-muted); font-size: 14px; }

.rt-comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.rt-comment-form > * { margin: 0; }

.rt-comment-form .comment-notes,
.rt-comment-form .logged-in-as,
.rt-comment-form .form-field-wide,
.rt-comment-form .comment-form-url,
.rt-comment-form .comment-form-cookies-consent,
.rt-comment-form .comment-policy,
.rt-comment-form .form-submit { grid-column: 1 / -1; }

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #273247;
  font-size: 14px;
  font-weight: 760;
}

.form-field label .optional { color: var(--rt-faint); font-size: 12px; font-weight: 500; }

.form-field :where(input, textarea) {
  width: 100%;
  padding: 12px 14px;
  color: var(--rt-ink);
  background: #fff;
  border: 1px solid #cfd6e4;
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.form-field input { min-height: 48px; }

.form-field textarea { min-height: 170px; resize: vertical; }

.form-field :where(input, textarea):focus {
  outline: 0;
  border-color: var(--rt-brand);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; color: var(--rt-muted); font-size: 13px; }

.comment-form-cookies-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--rt-brand); }

.comment-policy { color: var(--rt-faint); font-size: 12px; line-height: 1.55; }

.comment-submit { min-height: 48px; padding-inline: 20px; }

.comments-closed {
  padding: 18px 20px;
  color: var(--rt-muted);
  background: #fff;
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius-sm);
}

.page-shell { padding: 64px 0 84px; }

.page-card {
  width: min(100%, 900px);
  padding: clamp(28px, 5vw, 64px);
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius-lg);
  box-shadow: var(--rt-shadow);
}

.page-card > h1 { margin: 0 0 28px; font-size: clamp(34px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.045em; }

.empty-state {
  padding: 52px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius-lg);
}

.search-form { display: flex; gap: 8px; max-width: 620px; }

.search-field {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--rt-line);
  border-radius: 11px;
}

.site-footer {
  margin-top: 84px;
  color: #c8d0df;
  background: var(--rt-dark);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  padding: 56px 0 38px;
}

.footer-brand .site-title { color: #fff; }

.footer-brand p { max-width: 420px; margin: 15px 0 0; color: #9eabc0; font-size: 15px; }

.footer-nav { align-self: center; justify-self: end; }

.footer-nav ul { flex-wrap: wrap; justify-content: flex-end; }

.footer-nav a { padding: 6px 9px; color: #c8d0df; font-size: 14px; text-decoration: none; }

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #8f9bb0;
  font-size: 13px;
}

.footer-bottom a { color: inherit; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-grid; }
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--rt-line);
    border-radius: 14px;
    box-shadow: var(--rt-shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 2px; }
  .featured-story { grid-template-columns: 1fr; }
  .featured-media { max-height: 440px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-promise { grid-template-columns: 1fr; gap: 30px; }
  .article-layout { grid-template-columns: 1fr; width: min(100%, var(--rt-reading)); }
  .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  body.admin-bar .site-header { top: 46px; }
  .rt-container { width: min(calc(100% - 28px), var(--rt-container)); }
  .header-inner { min-height: 66px; }
  .site-title { font-size: 21px; }
  .site-branding img,
  .brand-icon { width: 34px; height: 34px; }
  .home-intro { padding-top: 42px; }
  .home-intro h1 { font-size: 36px; }
  .home-intro p { font-size: 17px; }
  .topic-strip { gap: 7px; padding-bottom: 26px; }
  .topic-strip a { padding: 7px 11px; font-size: 13px; }
  .featured-story { min-height: 0; border-radius: 22px; }
  .featured-media { min-height: 250px; }
  .featured-content { padding: 28px 24px 32px; }
  .featured-title { font-size: 30px; }
  .section { padding-top: 52px; }
  .story-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .editorial-promise { padding: 30px 24px; }
  .article-shell { padding-top: 36px; }
  .article-header h1 { font-size: 36px; }
  .article-dek { font-size: 18px; }
  .article-meta { gap: 6px 13px; padding: 12px 14px; }
  .article-content { font-size: 17px; line-height: 1.68; }
  .article-content h2 { font-size: 26px; }
  .article-content h3 { font-size: 22px; }
  .article-hero { margin-top: 28px; border-radius: 18px; }
  .article-layout { margin-top: 30px; }
  .article-sidebar { grid-template-columns: 1fr; }
  .comments-area { padding-top: 48px; margin-top: 54px; }
  .comment-list .children { padding-left: 14px; }
  .comment-body { padding: 20px; }
  .rt-comment-form { grid-template-columns: 1fr; }
  .rt-comment-form > * { grid-column: 1 !important; }
  .comment-form-card { padding: 24px 20px; border-radius: 20px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { justify-self: start; }
  .footer-nav ul { justify-content: flex-start; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header,
  .site-footer,
  .share-row,
  .related-posts,
  .article-sidebar,
  .comments-area { display: none !important; }
  body { background: #fff; color: #000; }
  .article-shell { padding: 0; }
  .article-content { width: 100%; color: #000; }
}
