/* ================================================
   THEME VARIABLES
   Defaults overridden per-site via wp_head injection
   ================================================ */
:root {
  --color-accent:       #1a56db;
  --color-accent-light: #eff6ff;
  --color-bg:           #ffffff;
  --color-bg-muted:     #f9fafb;
  --color-header-bg:    #ffffff;
  --color-footer-bg:    #111827;
  --color-text:         #111827;
  --color-text-muted:   #6b7280;
  --color-border:       #e5e7eb;
  --font-heading:       Georgia, 'Times New Roman', serif;
  --font-body:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;

  --max-width:  1200px;
  --radius:     2px;

  --header-logo-height: 64px;
  --header-nav-height:  44px;
  --header-height:      108px;
}

/* ================================================
   RESET + BASE
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul  { list-style: none; }

/* ================================================
   LAYOUT UTILITIES
   ================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.text-muted { color: var(--color-text-muted); }
.text-sm    { font-size: 13px; }

/* ================================================
   CATEGORY LABELS  (blue text, no pill — vs T01's solid orange pill)
   ================================================ */
.tag {
  display: inline-block;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  line-height: 1;
}
.tag:hover { text-decoration: underline; }
.tag--small { font-size: 10px; }

.tag-multi {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag-multi .tag { margin-bottom: 0; }
.tag-multi .tag + .tag::before {
  content: '·';
  color: var(--color-border);
  font-weight: 400;
  margin-right: 6px;
}

/* ================================================
   HEADER — centered logo, white background
   ================================================ */
.site-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo row */
.site-header__logo-row {
  height: var(--header-logo-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}
.site-header__logo-row .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.site-header__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  white-space: nowrap;
}
.site-header__logo:hover { text-decoration: none; opacity: 0.85; }

.site-header__logo-row-inner {
  position: relative;
  width: 100%;
  height: var(--header-logo-height);
  display: flex;
  align-items: center;
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}

.btn-subscribe {
  display: inline-block;
  background: var(--color-text);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.btn-subscribe:hover { background: var(--color-accent); text-decoration: none; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 1;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* Nav row */
.site-header__nav-bar {
  height: var(--header-nav-height);
  display: flex;
  align-items: center;
}
.site-header__nav-bar .container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item { position: relative; }

.site-header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 0 14px;
  height: var(--header-nav-height);
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.site-header__nav-link:hover,
.site-header__nav-link.is-current {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

/* Dropdown caret */
.nav-item--has-dropdown > .site-header__nav-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  transition: transform 0.15s;
}
.nav-item--has-dropdown:hover > .site-header__nav-link::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* ================================================
   NAV DROPDOWN — 3-column image grid of recent posts
   (matching Hague's hover behavior from the screenshot)
   ================================================ */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  z-index: 200;
  min-width: 540px;
}
.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown.is-open .nav-dropdown { display: block; }

.nav-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.nav-dropdown__item {
  display: block;
  padding: var(--space-lg);
  border-right: 1px solid var(--color-border);
  transition: background 0.1s;
}
.nav-dropdown__item:last-child { border-right: none; }
.nav-dropdown__item:hover { background: var(--color-bg-muted); text-decoration: none; }

.nav-dropdown__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  display: block;
}

.nav-dropdown__title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}
.nav-dropdown__item:hover .nav-dropdown__title { color: var(--color-accent); }

/* ================================================
   HERO SECTION (homepage) — 2/3 featured + 1/3 latest
   ================================================ */
.hero {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
  align-items: start;
}

.hero__featured { position: relative; }

.hero__featured-img-link { display: block; }
.hero__featured-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}

.hero__featured-tag { margin-bottom: var(--space-sm); }

.hero__featured-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}
.hero__featured-title a:hover { text-decoration: underline; }

.hero__featured-excerpt {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  max-width: 640px;
}

.hero__featured-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 13px;
  color: var(--color-text-muted);
}
.hero__featured-author { font-weight: 500; color: var(--color-text); }

/* Latest strip (right column) */
.hero__latest {
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-2xl);
}

.hero__latest-heading {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-text);
  margin-bottom: var(--space-lg);
}

.hero__latest-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__latest-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.hero__latest-item:first-child { padding-top: 0; }
.hero__latest-item:last-child  { border-bottom: none; padding-bottom: 0; }

.hero__latest-img-link { display: block; }
.hero__latest-img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero__latest-body { display: flex; flex-direction: column; gap: 2px; }

.hero__latest-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.hero__latest-title a:hover { text-decoration: underline; color: var(--color-accent); }

.hero__latest-date { font-size: 11px; color: var(--color-text-muted); }

/* ================================================
   SPOTLIGHT — full-width editorial callout
   Second featured post, dark background + image
   ================================================ */
.spotlight {
  background: var(--color-text);
  color: #fff;
  padding: 0;
  overflow: hidden;
}

.spotlight__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
}

.spotlight__image-wrap { position: relative; overflow: hidden; }
.spotlight__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spotlight__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl);
}

.spotlight__tag {
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: block;
}
.spotlight__tag:hover { color: var(--color-accent); text-decoration: underline; }

.spotlight__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: var(--space-md);
}
.spotlight__title a { color: #fff; }
.spotlight__title a:hover { text-decoration: underline; }

.spotlight__excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-lg);
}

.spotlight__meta {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: flex;
  gap: var(--space-md);
}
.spotlight__meta-author { color: rgba(255,255,255,0.75); font-weight: 500; }

/* ================================================
   CATEGORY SECTIONS — 4-column equal grid
   (vs T01's 2fr/1fr asymmetric)
   ================================================ */
.cat-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.cat-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-text);
}

.cat-section__name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}
.cat-section__name a { color: inherit; }
.cat-section__name a:hover { color: var(--color-accent); text-decoration: none; }

.cat-section__more {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cat-section__more::after { content: '→'; }
.cat-section__more:hover { color: var(--color-accent); text-decoration: none; }

.cat-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ================================================
   ARTICLE CARD (used in cat-section grids)
   ================================================ */
.article-card { display: flex; flex-direction: column; }

.article-card__img-link { display: block; margin-bottom: var(--space-sm); overflow: hidden; }
.article-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}
.article-card__img-link:hover .article-card__img { transform: scale(1.03); }

.article-card__body { flex: 1; display: flex; flex-direction: column; }

.article-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--space-xs);
}
.article-card__title a:hover { text-decoration: underline; color: var(--color-accent); }

.article-card__excerpt {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-xs);
  flex: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: auto;
}
.article-card__meta-author { font-weight: 500; color: var(--color-text); }

/* ================================================
   NEWSLETTER SECTION
   ================================================ */
.newsletter {
  background: var(--color-bg-muted);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.newsletter__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.newsletter__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.newsletter__subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.newsletter__form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 11px var(--space-md);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  outline: none;
}
.newsletter__input:focus { border-color: var(--color-accent); }

.newsletter__btn {
  padding: 11px 24px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.15s;
}
.newsletter__btn:hover { opacity: 0.88; }

/* ================================================
   HERO PARTNERS PANEL (right column of hero)
   Replaces the "ПОСЛЕДНИ" list — shows partner logos/names.
   Same data source as footer partners (skyprime_partners option).
   ================================================ */
.hero__partners {
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-2xl);
}

.hero__partners-heading {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-text);
  margin-bottom: var(--space-lg);
}

.hero__partners-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__partners-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  opacity: 0.65;
  transition: opacity 0.15s;
  text-decoration: none;
}
.hero__partners-item:first-child { padding-top: 0; }
.hero__partners-item:last-child  { border-bottom: none; padding-bottom: 0; }
.hero__partners-item:hover       { opacity: 1; text-decoration: none; }

.hero__partners-logo {
  height: 30px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.15s;
  flex-shrink: 0;
}
.hero__partners-item:hover .hero__partners-logo { filter: grayscale(0); }

.hero__partners-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.hero__partners-arrow {
  margin-left: auto;
  font-size: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.hero__partners-empty {
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-md) 0;
}

/* ================================================
   SIDEBAR PARTNERS BLOCK
   ================================================ */
.sidebar-partners { display: flex; flex-direction: column; gap: 0; }

.sidebar-partners__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  opacity: 0.65;
  transition: opacity 0.15s;
  text-decoration: none;
}
.sidebar-partners__item:first-child { padding-top: 0; }
.sidebar-partners__item:last-child  { border-bottom: none; padding-bottom: 0; }
.sidebar-partners__item:hover       { opacity: 1; text-decoration: none; }

.sidebar-partners__logo {
  height: 24px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.15s;
  flex-shrink: 0;
}
.sidebar-partners__item:hover .sidebar-partners__logo { filter: grayscale(0); }

.sidebar-partners__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

/* ================================================
   LATEST ARTICLES — list format with sidebar
   ================================================ */
.latest-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.latest-section__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
  align-items: start;
}

.latest-section__heading {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-text);
  margin-bottom: var(--space-xl);
}

.latest-list { display: flex; flex-direction: column; gap: 0; }

.latest-item {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
.latest-item:first-child { padding-top: 0; }

.latest-item__body { order: 1; }

.latest-item__img-wrap { order: 2; }
.latest-item__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
.latest-item__img-link:hover { text-decoration: none; }
.latest-item__img-link:hover .latest-item__img { opacity: 0.9; }

.latest-item__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}
.latest-item__title a:hover { text-decoration: underline; color: var(--color-accent); }

.latest-item__excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.latest-item__meta {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-md);
}
.latest-item__meta-author { font-weight: 500; color: var(--color-text); }

/* ================================================
   SIDEBAR
   ================================================ */
.sidebar { position: sticky; top: calc(var(--header-height) + var(--space-lg)); }

.sidebar-block {
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}
.sidebar-block:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.sidebar-block__heading {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-text);
  margin-bottom: var(--space-lg);
}

/* About Us block */
.sidebar-about__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.sidebar-about__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Category list with counts */
.sidebar-cats { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cats__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}
.sidebar-cats__item:last-child { border-bottom: none; }
.sidebar-cats__item a { color: var(--color-text); }
.sidebar-cats__item a:hover { color: var(--color-accent); text-decoration: none; }
.sidebar-cats__count {
  font-size: 11px;
  color: var(--color-text-muted);
  background: var(--color-bg-muted);
  padding: 1px 6px;
  border-radius: 10px;
}

/* Search form */
.sidebar-search {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-search__input {
  flex: 1;
  padding: 9px var(--space-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg-muted);
  outline: none;
}
.sidebar-search__input:focus { background: #fff; }
.sidebar-search__btn {
  background: var(--color-text);
  color: #fff;
  border: none;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
.sidebar-search__btn:hover { background: var(--color-accent); }

/* Recent posts in sidebar */
.sidebar-recent { display: flex; flex-direction: column; gap: 0; }
.sidebar-recent__item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-recent__item:first-child { padding-top: 0; }
.sidebar-recent__item:last-child  { border-bottom: none; padding-bottom: 0; }
.sidebar-recent__img {
  width: 60px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius);
}
.sidebar-recent__body { display: flex; flex-direction: column; gap: 2px; }
.sidebar-recent__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}
.sidebar-recent__title:hover { color: var(--color-accent); text-decoration: none; }
.sidebar-recent__date { font-size: 11px; color: var(--color-text-muted); }

/* ================================================
   PAGE HEADER (category / search)
   ================================================ */
.page-header {
  background: var(--color-bg-muted);
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

.page-header__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.page-header__description {
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.6;
}

/* ================================================
   CATEGORY PAGE LAYOUT
   ================================================ */
.category-content {
  padding: 0 0 var(--space-2xl);
}

.category-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-2xl);
  align-items: start;
}

/* Featured post (first on category page) */
.cat-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.cat-featured__img-link { display: block; }
.cat-featured__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.cat-featured__body { display: flex; flex-direction: column; justify-content: center; }

.cat-featured__title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}
.cat-featured__title a:hover { text-decoration: underline; color: var(--color-accent); }

.cat-featured__excerpt {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.cat-featured__meta {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-md);
}

/* Post list (category page) */
.cat-post-list { display: flex; flex-direction: column; gap: 0; }

.cat-post-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
.cat-post-item:last-child { border-bottom: none; }

.cat-post-item__img {
  width: 140px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
.cat-post-item__img-link:hover .cat-post-item__img { opacity: 0.88; }

.cat-post-item__body { display: flex; flex-direction: column; gap: var(--space-xs); }

.cat-post-item__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.cat-post-item__title a:hover { text-decoration: underline; color: var(--color-accent); }

.cat-post-item__excerpt {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.cat-post-item__meta {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-md);
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-xl);
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 var(--space-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  transition: background 0.1s, border-color 0.1s;
}
.pagination a:hover { background: var(--color-bg-muted); text-decoration: none; }
.pagination .current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ================================================
   SINGLE POST
   ================================================ */
.post__header {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.post__header-inner { max-width: 780px; }

.post__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
.post__breadcrumbs a { color: var(--color-text-muted); }
.post__breadcrumbs a:hover { color: var(--color-accent); text-decoration: none; }
.post__breadcrumbs span:last-child {
  color: var(--color-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}
.post__breadcrumbs-sep { opacity: 0.35; }

.post__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: var(--space-sm) 0 var(--space-md);
}

.post__meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 13px;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}
.post__meta-author { font-weight: 600; color: var(--color-text); }

.post__share {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  padding: 0;
}
.share-btn:hover { text-decoration: none; }
.share-btn--twitter:hover  { background: #000; color: #fff; border-color: #000; }
.share-btn--facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn--copy:hover     { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

.post__hero-img-wrap { padding: var(--space-xl) 0 0; }
.post__hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.post__summary {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 780px;
}
.post__summary-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}
.post__summary p { font-size: 15px; line-height: 1.6; color: var(--color-text-muted); }

.post__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-2xl);
  padding: var(--space-xl) 0 var(--space-2xl);
  align-items: start;
}

/* ================================================
   PROSE (post body)
   ================================================ */
.prose {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
}
.prose h2 { font-family: var(--font-heading); font-size: 26px; font-weight: 700; margin: 2em 0 0.6em; }
.prose h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin: 1.5em 0 0.5em; }
.prose p  { margin-bottom: 1.3em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose a  { color: var(--color-accent); text-decoration: underline; }
.prose a:hover { opacity: 0.8; }
.prose blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-sm) var(--space-lg);
  margin: var(--space-lg) 0;
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 18px;
  background: var(--color-accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose img { border-radius: var(--radius); margin: var(--space-lg) 0; width: 100%; }

/* Related posts at bottom of single */
.related-posts {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-xl);
}
.related-posts__heading {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-text);
  margin-bottom: var(--space-lg);
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ================================================
   TAGS LIST (post tags)
   ================================================ */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}
.post-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: var(--radius);
  transition: border-color 0.15s, color 0.15s;
}
.post-tag:hover { border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; }

/* ================================================
   COMMENTS
   ================================================ */
.comments-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-xl);
}
.comments-section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: var(--space-lg);
}
.comment-list { list-style: none; padding: 0; }
.comment { padding: var(--space-lg) 0; border-bottom: 1px solid var(--color-border); }
.comment__author { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.comment__date { font-size: 12px; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.comment__body { font-size: 15px; line-height: 1.65; }
.comment-respond { padding-top: var(--space-xl); }
.comment-respond h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: var(--space-xl); }

/* Two-column row for name + email */
.comment-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Each field wrapper */
.comment-form p,
.comment-form__field {
  margin: 0 0 var(--space-md) 0;
  padding: 0;
}

.comment-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  display: block;
  width: 100%;
  padding: 10px var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--color-bg-muted);
  color: var(--color-text);
  transition: border-color 0.15s, background 0.15s;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}

.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form input[type="submit"] {
  display: inline-block;
  width: auto;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px var(--space-xl);
  transition: opacity 0.15s;
  margin-top: var(--space-xs);
}
.comment-form input[type="submit"]:hover { opacity: 0.88; }

@media (max-width: 600px) {
  .comment-form__row { grid-template-columns: 1fr; }
}

/* ================================================
   PARTNERS
   ================================================ */
.partners {
  background: var(--color-bg-muted);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.partners__title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-lg);
}
.partners__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
}
.partner { opacity: 0.6; transition: opacity 0.15s; }
.partner:hover { opacity: 1; text-decoration: none; }
.partner__name { font-weight: 600; font-size: 15px; }

/* ================================================
   SITE FOOTER — dark, 2-column + centered bottom
   ================================================ */
.site-footer {
  background: var(--color-footer-bg);
  color: rgba(255,255,255,0.65);
  padding-top: var(--space-2xl);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer__logo {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-sm);
}
.site-footer__logo:hover { text-decoration: none; opacity: 0.85; }
.site-footer__description { font-size: 14px; line-height: 1.65; }

.site-footer__col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-md);
}

.site-footer__links { display: flex; flex-direction: column; gap: var(--space-sm); }
.site-footer__links a { font-size: 14px; color: rgba(255,255,255,0.65); }
.site-footer__links a:hover { color: #fff; text-decoration: none; }

.site-footer__bottom {
  padding: var(--space-lg) 0;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================================================
   SEARCH PAGE
   ================================================ */
.search-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-2xl);
  padding: 0 0 var(--space-2xl);
  align-items: start;
}

/* ================================================
   404 PAGE
   ================================================ */
.notfound {
  text-align: center;
  padding: var(--space-2xl) 0;
}
.notfound__code {
  font-family: var(--font-heading);
  font-size: 120px;
  font-weight: 700;
  color: var(--color-bg-muted);
  line-height: 1;
  margin-bottom: 0;
}
.notfound__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.notfound__text {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; text-decoration: none; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .cat-section__grid { grid-template-columns: repeat(3, 1fr); }
  .latest-section__inner { grid-template-columns: 1fr 260px; }
  .post__layout { grid-template-columns: 1fr 240px; }
  .category-layout { grid-template-columns: 1fr 240px; }
  .search-layout { grid-template-columns: 1fr 240px; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__latest {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: var(--space-lg);
  }
  .spotlight__inner { grid-template-columns: 1fr; }
  .spotlight__image-wrap { height: 240px; }
  .cat-section__grid { grid-template-columns: repeat(2, 1fr); }
  .latest-section__inner { grid-template-columns: 1fr; }
  .post__layout { grid-template-columns: 1fr; }
  .category-layout { grid-template-columns: 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .cat-featured { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .related-posts__grid { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 600px) {
  .mobile-menu-toggle { display: flex; }
  .site-header__nav-bar { display: none; }
  .site-header__nav-bar.is-open {
    display: block;
    position: absolute;
    top: var(--header-logo-height);
    left: 0; right: 0;
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) 0 var(--space-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .site-header__nav-bar.is-open .container { justify-content: flex-start; }
  .site-header__nav-list { flex-direction: column; gap: 0; }
  .site-header__nav-link { height: auto; padding: 10px var(--space-lg); border-bottom: none; }

  .cat-section__grid { grid-template-columns: 1fr 1fr; }
  .hero__featured-title { font-size: 24px; }
  .post__title { font-size: 28px; }
  .spotlight__title { font-size: 22px; }
  .spotlight__body { padding: var(--space-lg); }
  .newsletter__form { flex-direction: column; border-radius: var(--radius); }
  .newsletter__input { border-right: 1px solid var(--color-border); border-radius: var(--radius) var(--radius) 0 0; }
  .newsletter__btn { border-radius: 0 0 var(--radius) var(--radius); }
  .latest-item { grid-template-columns: 1fr; }
  .latest-item__img-wrap { order: 0; }
  .cat-post-item { grid-template-columns: 90px 1fr; }
  .cat-post-item__img { width: 90px; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .related-posts__grid { grid-template-columns: 1fr; }
  .nav-dropdown { min-width: calc(100vw - 48px); left: -24px; transform: none; }
  .nav-dropdown__grid { grid-template-columns: 1fr; }
  .nav-dropdown__item { border-right: none; border-bottom: 1px solid var(--color-border); }
  .post__share { display: none; }
  .post__breadcrumbs { display: none; }
}
