/*
Theme Name: IMA Platform
Theme URI: https://ima.edu.vn
Author: Antigravity AI
Description: Nền tảng tri thức và kỹ năng số thế hệ mới.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ima
*/

/* ==================== 1. CSS DESIGN TOKENS ==================== */
:root {
  --bg: #fafafa;
  --bg-surface: #ffffff;
  --bg-subtle: #f4f4f5;
  
  --text: #09090b;
  --text-muted: #71717a;
  --text-soft: #a1a1aa;
  
  --border: #e4e4e7;
  --border-dark: #27272a;
  
  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --brand-soft: #eff6ff;
  --brand-border: #bfdbfe;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1200px;
  --radius: 8px;
}

/* ==================== 2. BASE & RESET ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

button, input {
  font-family: inherit;
}

::selection {
  background: var(--text);
  color: #fff;
}

.container {
  width: min(calc(100% - 48px), var(--container-max));
  margin-left: auto;
  margin-right: auto;
}

.hairline-b { border-bottom: 1px solid var(--border); }
.hairline-t { border-top: 1px solid var(--border); }

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--brand);
  width: 0%;
  z-index: 100;
  transition: width 0.1s ease;
}

/* ==================== 3. HEADER & NAV ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 250, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand__name {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand__tag {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 15px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav__link:hover, .nav__link--active, 
.header__left .menu-item a:hover, 
.header__left .current-menu-item > a {
  color: var(--text);
}

.header__left .menu-item a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.header__left ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.search-btn kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.btn--primary {
  background: var(--text);
  color: #fff;
}

.btn--primary:hover {
  background: #27272a;
}

.btn--outline {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--border-dark);
}

/* Mobile Hamburger Trigger */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
}

/* ==================== 4. MOBILE DRAWER & BACKDROP ==================== */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.4);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg-surface);
  z-index: 60;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -4px 0 25px rgba(0,0,0,0.08);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.is-active {
  transform: translateX(0);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer__close {
  width: 34px;
  height: 34px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav__link, .mobile-nav ul li a {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}

.mobile-nav__link:hover, .mobile-nav__link--active,
.mobile-nav ul li a:hover, .mobile-nav ul li.current-menu-item a {
  background: var(--bg-subtle);
}

.mobile-nav__link span, .mobile-nav ul li a span.menu-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
}

.mobile-drawer__footer {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ==================== 5. HERO SECTION ==================== */
.hero {
  background: var(--bg-surface);
  padding: 80px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.eyebrow-badge__dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.hero__title {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__title-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #27272a;
}

.hero__subtitle {
  font-size: 18.5px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-search {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.hero-search__form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  transition: all 0.2s ease;
}

.hero-search__form:focus-within {
  background: #fff;
  border-color: var(--border-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.hero-search__icon {
  padding: 0 10px 0 14px;
  color: var(--text-soft);
  font-size: 16px;
}

.hero-search__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15.5px;
  color: var(--text);
}

.hero-search__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-search__tags a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}

.hero-search__tags a:hover {
  color: var(--brand);
}

/* ==================== 6. SECTION COMMONS ==================== */
.section {
  padding: 64px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: block;
  margin-bottom: 4px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.section-link:hover { color: var(--text); }

/* ==================== 7. TOPICS GRID ==================== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.topic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 175px;
  transition: all 0.15s ease;
}

.topic-card:hover {
  border-color: #a1a1aa;
  transform: translateY(-1px);
}

.topic-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topic-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
}

.topic-card__glyph {
  font-size: 18px;
  color: var(--text-muted);
}

.topic-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.topic-card__desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==================== 8. FEATURED & MOST READ ==================== */
.feature-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
}

.featured-article__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.badge-category {
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.featured-article__title {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.featured-article__title a:hover {
  color: var(--brand);
}

.featured-article__excerpt {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.featured-article__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.author-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-lockup__avatar {
  width: 32px;
  height: 32px;
  background: var(--text);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.author-lockup__text strong {
  display: block;
  font-size: 12.5px;
}
.author-lockup__text span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
}

.read-link {
  font-size: 14px;
  font-weight: 600;
}
.read-link:hover { color: var(--brand); }

/* Most Read List */
.most-read__list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-item__num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1;
}

.rank-item:hover .rank-item__num {
  color: var(--brand);
}

.rank-item__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-soft);
  display: block;
  margin-bottom: 2px;
}

.rank-item__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.rank-item:hover .rank-item__title {
  color: var(--brand);
}

/* ==================== 9. DISPATCH & RESOURCES ==================== */
.dual-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  transition: all 0.15s ease;
}

.post-card:hover {
  border-color: #a1a1aa;
}

.post-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.post-card__title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.post-card:hover .post-card__title a {
  color: var(--brand);
}

.post-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Utility Tools List */
.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  transition: all 0.15s ease;
}

.tool-card:hover {
  border-color: var(--border-dark);
  transform: translateY(-1px);
}

.tool-card__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tool-card__icon {
  width: 40px;
  height: 40px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.tool-card__heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-card__title {
  font-size: 14.5px;
  font-weight: 700;
}

.tool-card:hover .tool-card__title {
  color: var(--brand);
}

.tool-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.tool-card__desc {
  font-size: 12.5px;
  color: var(--text-muted);
}

.tool-card__arrow {
  color: var(--text-soft);
  font-size: 14px;
  padding-left: 8px;
}

.tool-card:hover .tool-card__arrow {
  color: var(--text);
}

/* ==================== 10. NEWSLETTER & FOOTER ==================== */
.newsletter {
  background: var(--bg-surface);
  padding: 80px 0;
  text-align: center;
}

.newsletter__inner {
  max-width: 580px;
  margin: 0 auto;
}

.newsletter__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.newsletter__desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.newsletter__form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto 12px;
}

.newsletter__input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  outline: none;
  font-size: 14.5px;
}

.newsletter__input:focus {
  border-color: var(--border-dark);
  background: #fff;
}

.footer {
  padding: 48px 0 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__links ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links ul li a {
  text-decoration: none;
  color: inherit;
}

.footer__links ul li a:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
}

/* ==================== 11. SINGLE POST & TOC ==================== */
.article-hero {
  background: var(--bg-surface);
  padding: 60px 0 44px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--text);
}

.article-hero__title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 20px;
  max-width: 900px;
}

.article-hero__lead {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 32px;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-author__avatar {
  width: 38px;
  height: 38px;
  background: var(--text);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.meta-author__name {
  font-size: 13.5px;
  font-weight: 600;
}

.meta-author__role {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.meta-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  justify-content: space-between;
  gap: 60px;
  padding: 60px 0 80px;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.toc {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.toc__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
  display: block;
}

.toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc__link {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

.toc__link:hover, .toc__link.is-active {
  color: var(--brand);
  font-weight: 600;
  padding-left: 4px;
  border-left: 2px solid var(--brand);
}

/* ==================== 12. PROSE CONTENT ==================== */
.prose {
  font-size: 17.5px;
  line-height: 1.75;
  color: #27272a;
}

.prose p {
  margin-bottom: 24px;
}

.prose h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text);
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.prose h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 32px 0 12px;
}

.prose ul, .prose ol {
  margin: 0 0 24px 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: #18181b;
  padding: 24px 0 24px 28px;
  border-left: 3px solid var(--text);
  margin: 36px 0;
}

.prose-callout {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.prose-callout__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.prose-callout p {
  margin-bottom: 0;
  font-size: 15.5px;
  color: var(--text-muted);
}

.resource-box {
  background: var(--bg-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.resource-box__icon {
  width: 44px;
  height: 44px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.resource-box__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.resource-box__desc {
  font-size: 13.5px;
  color: var(--text-muted);
}

.article-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-muted);
}

.post-tag:hover {
  border-color: var(--text);
  color: var(--text);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.post-nav__card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.post-nav__card:hover {
  border-color: #a1a1aa;
}

.post-nav__card.next {
  text-align: right;
}

.post-nav__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
  display: block;
}

.post-nav__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.post-nav__card:hover .post-nav__title {
  color: var(--brand);
}

/* ==================== 13. BLOG ARCHIVE & CATEGORY PAGE ==================== */
.page-header {
  background: var(--bg-surface);
  padding: 60px 0 0;
  border-bottom: 1px solid var(--border);
}

.page-header__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.page-header__title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.page-header__subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 36px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.filter-tab {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  border-radius: 4px 4px 0 0;
  transition: all 0.15s ease;
}

.filter-tab:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.filter-tab.is-active {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

.filter-search {
  min-width: 220px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  margin-bottom: 8px;
}

.filter-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  width: 100%;
}

.blog-section {
  padding: 50px 0 80px;
}

.lead-post {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  transition: all 0.2s ease;
}

.lead-post:hover {
  border-color: #a1a1aa;
}

.lead-post__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

.lead-post__title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.lead-post__title a:hover {
  color: var(--brand);
}

.lead-post__excerpt {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.lead-post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
}

.lead-post__callout {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.lead-post__callout strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 6px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: all 0.15s ease;
}

.card:hover {
  border-color: #a1a1aa;
  transform: translateY(-2px);
}

.card__header {
  margin-bottom: 12px;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.card__category {
  color: var(--text);
  font-weight: 600;
}

.card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.card:hover .card__title a {
  color: var(--brand);
}

.card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 20px;
}

.card__read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Pagination */
.pagination {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pagination__numbers {
  display: flex;
  gap: 6px;
}

.page-btn, .pagination .page-numbers {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: var(--radius);
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.page-btn:hover, .pagination .page-numbers:hover {
  border-color: var(--border-dark);
}

.page-btn.is-active, .pagination .page-numbers.current {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.pagination-arrow, .pagination .next, .pagination .prev {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.pagination-arrow:hover, .pagination .next:hover, .pagination .prev:hover {
  border-color: var(--border-dark);
}

/* Category Hero Styles */
.cat-hero {
  background: var(--bg-surface);
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

.cat-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.cat-hero__title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.cat-hero__desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.subtopics-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.subtopic-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.subtopic-tag:hover, .subtopic-tag.is-active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.cat-content {
  padding: 50px 0 80px;
}

.cat-featured {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 36px;
  align-items: center;
  transition: all 0.15s ease;
}

.cat-featured:hover {
  border-color: #a1a1aa;
}

.cat-featured__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

.cat-featured__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.cat-featured__title a:hover {
  color: var(--brand);
}

.cat-featured__excerpt {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.cat-featured__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-utilities {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.cat-utilities__head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
  display: block;
}

.cat-tool-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.cat-tool-link:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cat-tool-link:hover {
  color: var(--brand);
}

.cat-tool-link span {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
  color: var(--text-muted);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ==================== 14. SEARCH & 404 STYLES ==================== */
.search-hero {
  background: var(--bg-surface);
  padding: 60px 0 0;
  border-bottom: 1px solid var(--border);
}

.search-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.search-hero__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 24px;
}

.search-hero__title span {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--brand);
}

.search-form {
  max-width: 640px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 36px;
  transition: all 0.2s ease;
}

.search-form:focus-within {
  background: #fff;
  border-color: var(--border-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.search-form__icon {
  padding: 0 10px 0 14px;
  color: var(--text-soft);
  font-size: 16px;
}

.search-form__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15.5px;
  color: var(--text);
}

.results-section {
  padding: 50px 0 80px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
}

.result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.15s ease;
}

.result-card:hover {
  border-color: #a1a1aa;
  transform: translateY(-1px);
}

.result-card__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.result-card__badge {
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.result-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.result-card:hover .result-card__title a {
  color: var(--brand);
}

.result-card__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.result-card--utility {
  border-color: var(--brand-border);
  background: #fafcff;
}

.result-card--utility .result-card__badge {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

/* 404 Styles */
.not-found {
  padding: 80px 0 100px;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
}

.not-found__inner {
  max-width: 680px;
  margin: 0 auto;
}

.not-found__code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 20px;
}

.not-found__title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.not-found__desc {
  font-size: 17.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.search-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--border-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.search-box__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  padding: 8px 12px;
  color: var(--text);
}

.suggestions {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}

.suggestions__head {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 16px;
  display: block;
}

.suggestions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sug-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.sug-card:hover {
  border-color: var(--text);
  background: var(--bg-subtle);
}

.sug-card strong {
  font-size: 13.5px;
  display: block;
  color: var(--text);
}

.sug-card span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ==================== 15. RESOURCES HUB STYLES ==================== */
.resources-hero {
  background: var(--bg-surface);
  padding: 60px 0 0;
  border-bottom: 1px solid var(--border);
}

.resources-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.resources-hero__title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.resources-hero__desc {
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 36px;
}

.resource-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.resource-tabs {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.resource-tab {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  border-radius: 4px 4px 0 0;
  transition: all 0.15s ease;
}

.resource-tab:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.resource-tab.is-active {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

.resource-search {
  min-width: 240px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  margin-bottom: 8px;
}

.resource-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  width: 100%;
}

.resources-section {
  padding: 50px 0 80px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.res-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  transition: all 0.2s ease;
}

.res-card:hover {
  border-color: var(--border-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.res-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.res-card__icon {
  width: 44px;
  height: 44px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text);
}

.res-card__badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 500;
}

.res-card__badge--blue {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-border);
}

.res-card__badge--green {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.res-card__badge--amber {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.res-card__title {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.res-card:hover .res-card__title a {
  color: var(--brand);
}

.res-card__desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.res-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  margin-top: 20px;
}

.res-card__format {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-weight: 500;
}

.contribute-box {
  background: var(--bg-surface);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contribute-box__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contribute-box__desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==================== 16. STATIC PAGES ==================== */
.page-hero {
  background: var(--bg-surface);
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--border);
}

.page-hero__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
  display: block;
}

.page-hero__title {
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 860px;
}

.page-hero__desc {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 780px;
}

.page-layout {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 0 90px;
}

.content-body {
  font-size: 17.5px;
  line-height: 1.75;
  color: #27272a;
}

.content-body p {
  margin-bottom: 24px;
}

.content-body h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 50px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.content-body h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 32px 0 12px;
}

.content-body ul {
  margin: 0 0 24px 24px;
}

.content-body li {
  margin-bottom: 10px;
}

.manifesto-box {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.5;
  font-style: italic;
  color: #18181b;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 40px 0;
  position: relative;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.pillar-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  display: block;
  margin-bottom: 8px;
}

.pillar-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.pillar-card__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card__desc {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ==================== 17. RESPONSIVE QUERIES ==================== */
@media (max-width: 1024px) {
  .nav, .search-btn { display: none !important; }
  .header__inner .menu-primary-menu-container { display: none !important; }
  .menu-toggle { display: inline-flex; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-layout, .dual-layout { grid-template-columns: 1fr; gap: 40px; }
  .most-read-col { border-left: none !important; padding-left: 0 !important; border-top: 1px solid var(--border); padding-top: 32px; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { display: none; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-post { grid-template-columns: 1fr; gap: 24px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-search { width: 100%; }
  .cat-featured { grid-template-columns: 1fr; gap: 24px; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-filter-bar { flex-direction: column; align-items: stretch; }
  .resource-search { width: 100%; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 50px 0 40px; }
  .hero__title { font-size: 34px; }
  .hero__subtitle { font-size: 16px; }
  .topics-grid { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
  .footer__top { flex-direction: column; gap: 20px; }
  .footer__links { flex-wrap: wrap; gap: 16px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .article-hero { padding: 40px 0 32px; }
  .article-hero__title { font-size: 28px; }
  .article-hero__lead { font-size: 16.5px; }
  .prose { font-size: 16.5px; }
  .prose-quote { font-size: 19px; padding-left: 18px; }
  .resource-box { flex-direction: column; align-items: flex-start; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__card.next { text-align: left; }
  .posts-grid { grid-template-columns: 1fr; }
  .lead-post { padding: 20px; }
  .page-header { padding: 40px 0 0; }
  .cat-hero { padding: 40px 0 28px; }
  .cat-hero__title { font-size: 30px; }
  .cat-hero__desc { font-size: 16px; }
  .cat-featured { padding: 20px; }
  .search-hero { padding: 40px 0 0; }
  .search-hero__title { font-size: 26px; }
  .result-card { padding: 18px; }
  .result-card__title { font-size: 17px; }
  .resources-hero { padding: 40px 0 0; }
  .resources-hero__title { font-size: 28px; }
  .resources-hero__desc { font-size: 16px; }
  .resources-grid { grid-template-columns: 1fr; }
  .contribute-box { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 48px 0 36px; }
  .page-hero__title { font-size: 30px; }
  .page-hero__desc { font-size: 16.5px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .manifesto-box { font-size: 20px; padding: 20px; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}
