/* ============================================================
   ZENITH — Minimalist Japanese / Zen-Inspired Theme
   Palette: Charcoal #1A1A1A · Off-white #FAFAF9 · Vermillion #D4432F
   ============================================================ */

/* --------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------- */
:root {
  --zn-primary: #D4432F;
  --zn-primary-dark: #b83525;
  --zn-primary-rgb: 212,67,47;
  --zn-secondary: #1A1A1A;
  --zn-accent: #D4432F;
  --zn-bg: #FAFAF9;
  --zn-surface: #FFFFFF;
  --zn-text: #1A1A1A;
  --zn-text-secondary: #555555;
  --zn-muted: #999999;
  --zn-line: #E0E0DC;
  --zn-radius: 4px;
  --zn-radius-sm: 4px;
  --zn-radius-xs: 2px;
  --zn-shadow: 0 1px 3px rgba(0,0,0,.04);
  --zn-shadow-lg: 0 2px 8px rgba(0,0,0,.06);
  --zn-shadow-xl: 0 4px 16px rgba(0,0,0,.08);
  --zn-font: 'Noto Sans', system-ui, -apple-system, sans-serif;
  --zn-font-display: 'Noto Serif Display', 'Noto Sans', serif;
  --zn-container: 1200px;
  --zn-header-h: 64px;
  --zn-transition: .25s ease;
  --zn-transition-slow: .45s ease;
}

/* --------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--zn-font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--zn-text);
  background: var(--zn-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--zn-primary); text-decoration: none; transition: color var(--zn-transition); }
a:hover { color: var(--zn-primary-dark); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* --------------------------------------------------
   3. TYPOGRAPHY SCALE
   -------------------------------------------------- */
.zn-title-xxl {
  font-family: var(--zn-font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.zn-title-xl {
  font-family: var(--zn-font-display);
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.zn-title-lg {
  font-family: var(--zn-font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.zn-title-md {
  font-family: var(--zn-font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
}
.zn-title-sm {
  font-family: var(--zn-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.zn-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--zn-primary);
  margin-bottom: 8px;
}
.zn-meta {
  font-size: 13px;
  color: var(--zn-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.zn-meta__dot::before { content: '\b7'; margin: 0 2px; }

/* --------------------------------------------------
   4. LAYOUT: CONTAINER & GRIDS
   -------------------------------------------------- */
.zn-container {
  width: 100%;
  max-width: var(--zn-container);
  margin: 0 auto;
  padding: 0 32px;
}
.zn-section { padding: 80px 0; }
.zn-section--tight { padding: 48px 0; }
.zn-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.zn-grid { display: grid; gap: 24px; }
.zn-grid--2 { grid-template-columns: repeat(2, 1fr); }
.zn-grid--3 { grid-template-columns: repeat(3, 1fr); }
.zn-grid--4 { grid-template-columns: repeat(4, 1fr); }
.zn-grid--sidebar { grid-template-columns: 1fr 340px; gap: 48px; }

.zn-featured {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.zn-featured > :first-child { grid-row: 1 / -1; }

.zn-masonry { column-count: 3; column-gap: 24px; }
.zn-masonry > * { break-inside: avoid; margin-bottom: 24px; }

.zn-magazine-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.zn-magazine-grid > :first-child { grid-row: 1 / -1; }

/* --------------------------------------------------
   5. UTILITY CLASSES
   -------------------------------------------------- */
.zn-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-radius: var(--zn-radius);
  background: transparent;
  color: var(--zn-primary);
  border: 1px solid var(--zn-primary);
  line-height: 1.5;
}
.zn-badge--outline {
  background: transparent;
  color: var(--zn-primary);
  border: 1px solid var(--zn-primary);
  padding: 2px 8px;
  font-size: 9px;
}
.zn-badge--accent {
  background: var(--zn-primary);
  color: #fff;
  border-color: var(--zn-primary);
}
.zn-badge--navy {
  background: var(--zn-secondary);
  color: #fff;
  border-color: var(--zn-secondary);
}

.zn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--zn-radius);
  background: var(--zn-primary);
  color: #fff;
  transition: background var(--zn-transition), color var(--zn-transition);
  border: 1px solid var(--zn-primary);
  letter-spacing: .02em;
}
.zn-btn:hover {
  background: var(--zn-primary-dark);
  border-color: var(--zn-primary-dark);
  color: #fff;
}
.zn-btn--sm {
  padding: 8px 20px;
  font-size: 13px;
}
.zn-btn--lg {
  padding: 14px 36px;
  font-size: 16px;
}
.zn-btn--ghost {
  background: transparent;
  color: var(--zn-text);
  border: 1px solid var(--zn-line);
}
.zn-btn--ghost:hover {
  border-color: var(--zn-primary);
  color: var(--zn-primary);
  background: transparent;
}

/* --------------------------------------------------
   6. READING PROGRESS BAR
   -------------------------------------------------- */
.zn-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--zn-primary);
  z-index: 9999;
  transition: width 60ms linear;
}

/* --------------------------------------------------
   7. TOPBAR
   -------------------------------------------------- */
.zn-topbar {
  background: var(--zn-secondary);
  color: rgba(255,255,255,.7);
  font-size: 12px;
}
.zn-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
}
.zn-topbar__contact {
  display: flex;
  align-items: center;
  gap: 20px;
}
.zn-topbar__contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.7);
  transition: color var(--zn-transition);
}
.zn-topbar__contact a:hover { color: #fff; }
.zn-topbar__contact svg { flex-shrink: 0; }
.zn-topbar__social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.zn-topbar__social a {
  color: rgba(255,255,255,.5);
  transition: color var(--zn-transition);
}
.zn-topbar__social a:hover { color: #fff; }
.zn-topbar__social svg { width: 14px; height: 14px; fill: currentColor; }

/* --------------------------------------------------
   8. HEADER & NAVIGATION
   -------------------------------------------------- */
.zn-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--zn-surface);
  border-bottom: 1px solid var(--zn-line);
  transition: border-color var(--zn-transition);
}
.zn-header--scrolled { border-color: #ccc; }
.zn-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--zn-header-h);
}
.zn-header__logo { display: flex; align-items: center; }
.zn-header__logo img { height: 36px; width: auto; }
.zn-header__nav { display: flex; align-items: center; gap: 4px; }
.zn-header__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--zn-text);
  position: relative;
  padding: 8px 14px;
  border-radius: var(--zn-radius);
  letter-spacing: .02em;
  transition: color var(--zn-transition);
}
.zn-header__link:hover {
  color: var(--zn-primary);
}
.zn-header__link--active {
  color: var(--zn-primary);
}
.zn-header__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--zn-primary);
}
.zn-header__actions { display: flex; align-items: center; gap: 12px; }
.zn-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--zn-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--zn-radius);
  border: 1px solid var(--zn-primary);
  transition: background var(--zn-transition), color var(--zn-transition);
}
.zn-header__cta:hover {
  background: transparent;
  color: var(--zn-primary);
}
.zn-header__cta svg { flex-shrink: 0; stroke: currentColor; }

/* --------------------------------------------------
   9. MOBILE NAVIGATION
   -------------------------------------------------- */
.zn-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.zn-nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--zn-text);
  transition: transform var(--zn-transition), opacity var(--zn-transition);
}
.zn-nav-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.zn-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.zn-nav-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------------------------------
   10. INTRO SECTION
   -------------------------------------------------- */
.zn-intro {
  padding: 56px 0 48px;
  background: var(--zn-bg);
  text-align: center;
}
.zn-intro__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.zn-intro__title {
  font-family: var(--zn-font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--zn-text);
}
.zn-intro__desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--zn-text-secondary);
  max-width: 560px;
}

/* --------------------------------------------------
   11. HERO IMAGE
   -------------------------------------------------- */
.zn-hero--image {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 56px;
  background-size: cover;
  background-position: center;
}
.zn-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1;
}
.zn-hero--image .zn-hero__inner,
.zn-hero--image .zn-container { position: relative; z-index: 2; }
.zn-hero--image .zn-title-xxl,
.zn-hero--image h1 { color: #fff; }

/* --------------------------------------------------
   12. PARALLAX BREAK
   -------------------------------------------------- */
.zn-parallax-break {
  position: relative;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zn-parallax-break::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,.7);
}
.zn-parallax-break__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.zn-parallax-break__quote {
  font-family: var(--zn-font-display);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 600;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
  font-style: italic;
}
@media (max-width: 768px) {
  .zn-parallax-break { background-attachment: scroll; min-height: 240px; }
}

/* --------------------------------------------------
   13. CARDS
   -------------------------------------------------- */
.zn-card {
  background: var(--zn-surface);
  border-radius: var(--zn-radius);
  overflow: hidden;
  border: 1px solid var(--zn-line);
  transition: border-color var(--zn-transition);
}
.zn-card:hover {
  border-color: #bbb;
}
.zn-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.zn-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .4s ease;
}
.zn-card:hover .zn-card__image img { opacity: .92; }
.zn-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.zn-card__body { padding: 20px 22px; }
.zn-card__title {
  font-family: var(--zn-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--zn-text);
}
.zn-card__title a { color: inherit; }
.zn-card__title a:hover { color: var(--zn-primary); }
.zn-card__excerpt {
  font-size: 14px;
  color: var(--zn-text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card: Featured */
.zn-card--featured .zn-card__image { aspect-ratio: 16/9; }
.zn-card--featured .zn-card__title { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }

/* Card: Hero */
.zn-card--hero {
  position: relative;
  display: flex;
  flex-direction: column;
}
.zn-card--hero .zn-card__image {
  aspect-ratio: auto;
  flex: 1;
  min-height: 400px;
}
.zn-card--hero .zn-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(26,26,26,.88) 0%, rgba(26,26,26,.4) 60%, transparent 100%);
  border-radius: 0 0 var(--zn-radius) var(--zn-radius);
}
.zn-card--hero .zn-card__title {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  color: #fff;
}
.zn-card--hero .zn-card__title a { color: #fff; }
.zn-card--hero .zn-card__title a:hover { color: var(--zn-primary); }
.zn-card--hero .zn-card__excerpt { color: rgba(255,255,255,.75); }
.zn-card--hero .zn-meta { color: rgba(255,255,255,.55); }
.zn-card--hero .zn-badge { background: var(--zn-primary); color: #fff; border-color: var(--zn-primary); }

/* Card: Horizontal */
.zn-card--horizontal {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-radius: var(--zn-radius);
}
.zn-card--horizontal .zn-card__image { aspect-ratio: auto; height: 100%; }
.zn-card--horizontal .zn-card__body { display: flex; flex-direction: column; justify-content: center; }

/* News Hero */
.zn-news-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--zn-line);
  align-items: center;
}
.zn-news-hero__image {
  display: block;
  border-radius: var(--zn-radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.zn-news-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .4s ease;
}
.zn-news-hero__image:hover img { opacity: .92; }
.zn-news-hero__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.zn-news-hero__title {
  font-family: var(--zn-font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--zn-text);
}
.zn-news-hero__title a { color: inherit; }
.zn-news-hero__title a:hover { color: var(--zn-primary); }
.zn-news-hero__excerpt {
  font-size: 15px;
  color: var(--zn-text-secondary);
  line-height: 1.75;
}

/* Card: Mini */
.zn-card--mini {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--zn-line);
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
  align-items: flex-start;
}
.zn-card--mini:hover { border-color: var(--zn-line); }
.zn-card--mini .zn-card__rank {
  font-family: var(--zn-font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--zn-line);
  line-height: 1;
  min-width: 48px;
  flex-shrink: 0;
}
.zn-card--mini .zn-card__title { font-size: .95rem; margin-bottom: 4px; }

/* --------------------------------------------------
   14. SECTION HEADERS
   -------------------------------------------------- */
.zn-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}
.zn-section-header__title {
  font-family: var(--zn-font-display);
  font-size: 1.4rem;
  font-weight: 600;
  position: relative;
  padding-left: 16px;
}
.zn-section-header__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--zn-primary);
}

/* --------------------------------------------------
   15. DARK BAND
   -------------------------------------------------- */
.zn-band {
  background: var(--zn-secondary);
  color: #fff;
  padding: 72px 0;
}
.zn-band .zn-section-header__title { color: #fff; }
.zn-band .zn-section-header__title::before { background: var(--zn-primary); }
.zn-band .zn-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}
.zn-band .zn-card:hover {
  border-color: rgba(255,255,255,.2);
}
.zn-band .zn-card__title,
.zn-band .zn-card__title a { color: #fff; }
.zn-band .zn-card__excerpt { color: rgba(255,255,255,.6); }
.zn-band .zn-meta { color: rgba(255,255,255,.4); }
.zn-band .zn-badge { color: var(--zn-primary); border-color: var(--zn-primary); background: transparent; }
.zn-band .zn-badge--outline { color: var(--zn-primary); border-color: var(--zn-primary); }
.zn-band .zn-btn--ghost { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.2); }
.zn-band .zn-btn--ghost:hover { border-color: var(--zn-primary); color: var(--zn-primary); }

/* --------------------------------------------------
   16. PROSE / ARTICLE BODY
   -------------------------------------------------- */
.zn-prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--zn-text-secondary);
}
.zn-prose h2 {
  font-family: var(--zn-font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--zn-text);
  margin: 48px 0 16px;
}
.zn-prose h3 {
  font-family: var(--zn-font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--zn-text);
  margin: 36px 0 12px;
}
.zn-prose h4 {
  font-family: var(--zn-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--zn-text);
  margin: 28px 0 10px;
}
.zn-prose p { margin-bottom: 20px; }
.zn-prose img { border-radius: var(--zn-radius); margin: 32px 0; }
.zn-prose ul, .zn-prose ol { margin: 0 0 20px 24px; }
.zn-prose ul { list-style: disc; }
.zn-prose ol { list-style: decimal; }
.zn-prose li { margin-bottom: 8px; }
.zn-prose blockquote {
  border-left: 2px solid var(--zn-primary);
  padding: 16px 24px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--zn-text);
  background: transparent;
}
.zn-prose a {
  color: var(--zn-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.zn-prose pre {
  background: var(--zn-surface);
  border: 1px solid var(--zn-line);
  border-radius: var(--zn-radius);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
}
.zn-prose code {
  background: rgba(26,26,26,.05);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: .9em;
}
.zn-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.zn-prose th,
.zn-prose td {
  padding: 10px 14px;
  border: 1px solid var(--zn-line);
  text-align: left;
}
.zn-prose th {
  background: var(--zn-bg);
  font-weight: 600;
}

/* Dropcap */
.zn-prose--dropcap > p:first-of-type::first-letter {
  float: left;
  font-family: var(--zn-font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: .85;
  margin: 4px 12px 0 0;
  color: var(--zn-primary);
}

/* --------------------------------------------------
   17. AUTHOR BOX
   -------------------------------------------------- */
.zn-author {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--zn-surface);
  border-radius: var(--zn-radius);
  border: 1px solid var(--zn-line);
  margin: 48px 0;
}
.zn-author__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--zn-line);
}
.zn-author__name {
  font-family: var(--zn-font-display);
  font-weight: 600;
  font-size: 1rem;
}
.zn-author__bio {
  font-size: 14px;
  color: var(--zn-muted);
  line-height: 1.6;
  margin-top: 4px;
}

/* --------------------------------------------------
   18. SHARE BUTTONS
   -------------------------------------------------- */
.zn-share { display: flex; align-items: center; gap: 10px; }
.zn-share__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--zn-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.zn-share__btn {
  width: 36px;
  height: 36px;
  border-radius: var(--zn-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--zn-text-secondary);
  border: 1px solid var(--zn-line);
  transition: all var(--zn-transition);
}
.zn-share__btn:hover {
  background: var(--zn-primary);
  color: #fff;
  border-color: var(--zn-primary);
}
.zn-share__btn svg { width: 14px; height: 14px; fill: currentColor; }

/* --------------------------------------------------
   19. SIDEBAR
   -------------------------------------------------- */
.zn-sidebar { position: sticky; top: calc(var(--zn-header-h) + 24px); }
.zn-sidebar__block { margin-bottom: 32px; }
.zn-sidebar__title {
  font-family: var(--zn-font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--zn-text);
}

/* --------------------------------------------------
   20. PAGINATION
   -------------------------------------------------- */
.zn-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.zn-pagination a, .zn-pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--zn-radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--zn-text);
  border: 1px solid var(--zn-line);
  transition: all var(--zn-transition);
}
.zn-pagination a:hover {
  border-color: var(--zn-primary);
  color: var(--zn-primary);
}
.zn-pagination .is-active {
  background: var(--zn-primary);
  color: #fff;
  border-color: var(--zn-primary);
}
.zn-pagination__dots {
  min-width: auto;
  border: none;
  background: none;
  color: var(--zn-muted);
  font-size: 16px;
  letter-spacing: 2px;
  padding: 0 4px;
}
.zn-pagination__arrow {
  font-size: 16px;
  font-weight: 600;
}

/* --------------------------------------------------
   21. FOOTER
   -------------------------------------------------- */
.zn-footer {
  background: var(--zn-secondary);
  color: #aaa;
  padding: 0;
  position: relative;
}
.zn-footer::before {
  content: '';
  display: block;
  height: 1px;
  background: #333;
}
.zn-footer__inner { padding: 56px 0 0; }
.zn-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.zn-footer__brand-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #777;
  margin-top: 16px;
}
.zn-footer__logo img { height: 28px; width: auto; }
.zn-footer__heading {
  font-family: var(--zn-font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.zn-footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: var(--zn-primary);
}
.zn-footer__links li { margin-bottom: 10px; }
.zn-footer__links a {
  color: #777;
  font-size: 14px;
  transition: color var(--zn-transition);
}
.zn-footer__links a:hover { color: #fff; }
.zn-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 12px;
  color: #555;
}
.zn-footer__social { display: flex; gap: 16px; }
.zn-footer__social a {
  color: #555;
  transition: color var(--zn-transition);
}
.zn-footer__social a:hover { color: var(--zn-primary); }
.zn-footer__social svg { width: 18px; height: 18px; fill: currentColor; }

/* --------------------------------------------------
   22. FAQ / ACCORDION
   -------------------------------------------------- */
.zn-accordion { max-width: 760px; }
.zn-accordion__item { border-bottom: 1px solid var(--zn-line); }
.zn-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--zn-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--zn-text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--zn-transition);
}
.zn-accordion__trigger:hover { color: var(--zn-primary); }
.zn-accordion__icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}
.zn-accordion__icon::before,
.zn-accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--zn-text);
  transition: transform var(--zn-transition);
}
.zn-accordion__icon::before {
  width: 12px; height: 1px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.zn-accordion__icon::after {
  width: 1px; height: 12px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.zn-accordion__item.is-open .zn-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.zn-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.zn-accordion__panel-inner {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--zn-text-secondary);
}

/* --------------------------------------------------
   23. CONTACT PAGE
   -------------------------------------------------- */
.zn-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.zn-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 20px;
  border-radius: var(--zn-radius);
  border: 1px solid var(--zn-line);
  background: var(--zn-surface);
  text-decoration: none;
  transition: border-color var(--zn-transition);
}
.zn-contact-card:hover {
  border-color: var(--zn-primary);
}
.zn-contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--zn-bg);
  border: 1px solid var(--zn-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zn-primary);
}
.zn-contact-card__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--zn-muted);
}
.zn-contact-card__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--zn-text);
}
.zn-contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--zn-radius);
  background: var(--zn-surface);
  border: 1px solid var(--zn-line);
}
.zn-contact-form-header {
  text-align: center;
  margin-bottom: 32px;
}
.zn-contact-form-desc {
  font-size: 15px;
  color: var(--zn-muted);
  margin-top: 8px;
}
.zn-contact-form { max-width: none; }
.zn-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .zn-form__row { grid-template-columns: 1fr; }
  .zn-contact-form-wrap { padding: 24px 18px; }
}
.zn-contact-success {
  margin-top: 24px;
  padding: 20px;
  background: #f0faf4;
  border: 1px solid #c6e9d4;
  border-radius: var(--zn-radius);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #1a6b3e;
}
.zn-contact-success svg { flex-shrink: 0; stroke: #2d9f5b; }
.zn-contact-error {
  margin-top: 24px;
  padding: 20px;
  background: #fef2f2;
  border: 1px solid #f5c6c6;
  border-radius: var(--zn-radius);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #991b1b;
}
.zn-contact-error svg { flex-shrink: 0; stroke: #dc2626; }

/* --------------------------------------------------
   23b. CAPTCHA
   -------------------------------------------------- */
.seo-captcha { display: block; margin: 0; padding: 0; }
.seo-captcha-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seo-captcha-q { font-size: 14px; color: var(--zn-text-secondary, #555); font-weight: 600; white-space: nowrap; }
.seo-captcha-in { width: 64px !important; height: 40px !important; min-width: 64px; border: 1px solid var(--zn-line, #E0E0DC) !important; border-radius: var(--zn-radius, 4px); padding: 0 8px !important; font-size: 16px; text-align: center; background: #fff !important; color: var(--zn-text, #1A1A1A); outline: none; transition: border-color .2s; box-sizing: border-box; }
.seo-captcha-in:focus { border-color: var(--zn-primary, #D4432F) !important; }
.seo-captcha-in::placeholder { color: #ccc; }
.seo-captcha-ref { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: none !important; background: transparent !important; color: #999; cursor: pointer; border-radius: var(--zn-radius, 4px); padding: 0; transition: color .2s; }
.seo-captcha-ref:hover { color: var(--zn-primary, #D4432F); }
.seo-captcha-ref:focus { outline: none; }
.seo-captcha-hint { display: block; font-size: 11px; color: #999; margin-top: 6px; font-weight: 400; }

/* --------------------------------------------------
   23c. FORM BASE
   -------------------------------------------------- */
.zn-form { max-width: 640px; }
.zn-form__group { margin-bottom: 20px; }
.zn-form__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--zn-text);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.zn-form__input,
.zn-form__textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--zn-surface);
  border: 1px solid var(--zn-line);
  border-radius: var(--zn-radius);
  color: var(--zn-text);
  transition: border-color var(--zn-transition);
}
.zn-form__input:focus,
.zn-form__textarea:focus {
  outline: none;
  border-color: var(--zn-primary);
}
.zn-form__textarea { min-height: 140px; resize: vertical; }

/* --------------------------------------------------
   24. 404 PAGE
   -------------------------------------------------- */
.zn-404 { text-align: center; padding: 120px 0; }
.zn-404__code {
  font-family: var(--zn-font-display);
  font-size: 8rem;
  font-weight: 700;
  color: var(--zn-line);
  line-height: 1;
}
.zn-404__title {
  font-family: var(--zn-font-display);
  font-size: 1.4rem;
  margin: 16px 0 24px;
}

/* --------------------------------------------------
   24. PAGE HEADERS
   -------------------------------------------------- */
.zn-page-header {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background: var(--zn-surface);
  border-bottom: 1px solid var(--zn-line);
}
.zn-page-header--image {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.zn-page-header--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,.7);
}
.zn-page-header__inner { position: relative; z-index: 1; }

/* --------------------------------------------------
   25. CAROUSEL / SLIDER (bxSlider)
   -------------------------------------------------- */
.zn-slider { position: relative; }
.zn-slide {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 56px;
  background-size: cover;
  background-position: center;
}
.zn-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,.55);
}
.zn-slide__content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 600px;
}
.zn-slide__title {
  font-family: var(--zn-font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}
.zn-slide__title a { color: #fff; }
.zn-slide__title a:hover { color: var(--zn-primary); }

/* bxSlider overrides */
.bx-wrapper {
  position: relative;
  border: none;
  background: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
.bx-wrapper img { max-width: 100%; display: block; }
.bx-viewport { -webkit-transform: translateZ(0); }
.bx-wrapper .bx-pager,
.bx-wrapper .bx-controls-auto {
  position: absolute;
  bottom: 20px;
  width: 100%;
  z-index: 10;
}
.bx-wrapper .bx-pager {
  text-align: center;
  font-size: 0;
  line-height: 0;
}
.bx-wrapper .bx-pager-item { display: inline-block; vertical-align: bottom; }
.bx-wrapper .bx-pager.bx-default-pager a {
  display: block;
  text-indent: -9999px;
  outline: 0;
  margin: 0 4px;
  background: rgba(255,255,255,.35);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: background .25s;
}
.bx-wrapper .bx-pager.bx-default-pager a:hover,
.bx-wrapper .bx-pager.bx-default-pager a.active {
  background: var(--zn-primary);
}
.bx-wrapper .bx-controls-direction a {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  outline: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--zn-radius);
  text-indent: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  transition: background .25s, border-color .25s;
  text-decoration: none;
}
.bx-wrapper .bx-controls-direction a:hover {
  background: var(--zn-primary);
  border-color: var(--zn-primary);
}
.bx-wrapper .bx-controls-direction a svg {
  display: block;
  pointer-events: none;
}
.bx-wrapper .bx-controls-direction a.disabled { display: none; }
.bx-wrapper .bx-prev { left: 20px; }
.bx-wrapper .bx-next { right: 20px; }

/* --------------------------------------------------
   26. SCROLL REVEAL
   -------------------------------------------------- */
.zn-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.zn-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.zn-hero .zn-reveal,
.zn-hero.zn-reveal,
.zn-intro .zn-reveal,
.zn-intro.zn-reveal,
.zn-slider .zn-reveal,
.zn-slider.zn-reveal,
.zn-slide .zn-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.zn-reveal--delay-1 { transition-delay: .1s; }
.zn-reveal--delay-2 { transition-delay: .2s; }
.zn-reveal--delay-3 { transition-delay: .3s; }

/* --------------------------------------------------
   27. GRADIENT BORDER (simplified for zen)
   -------------------------------------------------- */
.zn-gradient-border {
  position: relative;
  z-index: 0;
}
.zn-gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--zn-radius) + 2px);
  background: var(--zn-primary);
  z-index: -1;
}

/* --------------------------------------------------
   28. POLL / ANKET
   -------------------------------------------------- */
.zn-poll {
  max-width: 640px;
  margin: 0 auto;
  background: var(--zn-surface);
  border: 1px solid var(--zn-line);
  border-radius: var(--zn-radius);
  padding: 36px 32px;
  position: relative;
}
.zn-poll::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--zn-primary);
}

.zn-poll__header { text-align: center; margin-bottom: 28px; }
.zn-poll__header .zn-badge { margin-bottom: 10px; }
.zn-poll__title {
  font-family: var(--zn-font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: var(--zn-text);
  margin: 0 0 6px;
}
.zn-poll__meta {
  font-size: 13px;
  color: var(--zn-muted);
}
.zn-poll__total {
  font-weight: 600;
  color: var(--zn-primary);
  font-size: 14px;
}

.zn-poll__options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.zn-poll__option {
  position: relative;
  border-radius: var(--zn-radius);
  overflow: hidden;
  background: var(--zn-bg);
  border: 1px solid var(--zn-line);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color .2s;
}
.zn-poll__option:hover { border-color: var(--zn-primary); }

.zn-poll__bar {
  position: absolute;
  inset: 0;
  width: var(--poll-pct);
  background: rgba(212,67,47,.06);
  z-index: 0;
  transition: width .6s ease;
  border-radius: inherit;
}
.zn-poll__option--winner .zn-poll__bar {
  background: rgba(212,67,47,.12);
}

.zn-poll__option-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.zn-poll__option-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--zn-text);
}
.zn-poll__option--winner .zn-poll__option-name {
  color: var(--zn-primary);
}
.zn-poll__option-votes {
  font-size: 12px;
  color: var(--zn-muted);
}

.zn-poll__pct {
  position: relative;
  z-index: 1;
  font-family: var(--zn-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--zn-muted);
  min-width: 44px;
  text-align: right;
}
.zn-poll__option--winner .zn-poll__pct {
  color: var(--zn-primary);
  font-size: 18px;
}

.zn-poll__vote-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.zn-content-with-poll {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}
.zn-poll--inline {
  max-width: none;
  padding: 20px 18px;
  position: sticky;
  top: calc(var(--zn-header-h, 64px) + 16px);
}
.zn-poll--inline .zn-poll__title { font-size: .95rem; }
.zn-poll--inline .zn-poll__options { gap: 6px; margin-bottom: 14px; }
.zn-poll--inline .zn-poll__option { padding: 8px 10px; }
.zn-poll--inline .zn-poll__header { margin-bottom: 14px; }
.zn-poll--inline .zn-poll__pct { font-size: 13px; min-width: 32px; }
.zn-poll--inline .zn-poll__option--winner .zn-poll__pct { font-size: 15px; }
.zn-poll--inline .zn-poll__option-name { font-size: 13px; }
.zn-poll--inline .zn-poll__option-votes { font-size: 11px; }

/* --------------------------------------------------
   29. RESPONSIVE BREAKPOINTS
   -------------------------------------------------- */
@media (max-width: 1024px) {
  .zn-grid--sidebar { grid-template-columns: 1fr; }
  .zn-sidebar { position: static; }
  .zn-featured { grid-template-columns: 1fr; grid-template-rows: auto; }
  .zn-featured > :first-child { grid-row: auto; }
  .zn-magazine-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .zn-magazine-grid > :first-child { grid-row: auto; }
  .zn-card--hero .zn-card__image { min-height: 300px; }
}

@media (max-width: 900px) {
  .zn-topbar { display: none; }
  .zn-header__nav { display: none; }
  .zn-header__cta { display: none; }
  .zn-nav-toggle { display: flex; }
  .zn-header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--zn-header-h) 0 0;
    background: var(--zn-surface);
    padding: 24px;
    gap: 0;
    z-index: 999;
    overflow-y: auto;
    border-top: 1px solid var(--zn-line);
  }
  .zn-header__nav.is-open .zn-header__link {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--zn-line);
    border-radius: 0;
    background: none;
  }
  .zn-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .zn-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .zn-masonry { column-count: 2; }
  .zn-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .zn-card--horizontal { grid-template-columns: 1fr; }
  .zn-card--horizontal .zn-card__image { aspect-ratio: 16/9; }
  .zn-news-hero { grid-template-columns: 1fr; gap: 20px; }
  .zn-slide { min-height: 380px; padding: 36px 24px; }
  .zn-section { padding: 64px 0; }
  .zn-content-with-poll { grid-template-columns: 1fr; }
  .zn-poll--inline { position: static; max-width: 400px; }
}

@media (max-width: 600px) {
  .zn-container { padding: 0 18px; }
  .zn-grid--2 { grid-template-columns: 1fr; }
  .zn-grid--3 { grid-template-columns: 1fr; }
  .zn-grid--4 { grid-template-columns: 1fr; }
  .zn-masonry { column-count: 1; }
  .zn-footer__grid { grid-template-columns: 1fr; }
  .zn-intro { padding: 40px 0 32px; }
  .zn-section { padding: 48px 0; }
  .zn-section-header { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .zn-slide { min-height: 300px; padding: 28px 18px; }
  .zn-slide__title { font-size: 1.2rem; }
  .zn-404__code { font-size: 5rem; }
  .zn-card--hero .zn-card__image { min-height: 260px; }
  .zn-card--hero .zn-card__body { padding: 20px; }
  .zn-card--mini .zn-card__rank { font-size: 1.8rem; min-width: 36px; }
  .zn-author { flex-direction: column; text-align: center; }
  .zn-footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .zn-poll { padding: 24px 18px; }
  .zn-poll--inline { max-width: 100%; }
  .zn-poll__option { padding: 10px 12px; }
  .zn-pagination { flex-wrap: wrap; gap: 4px; }
  .zn-pagination a, .zn-pagination span { min-width: 32px; height: 32px; font-size: 12px; }
  .seo-captcha-q { white-space: normal; }
}

/* --------------------------------------------------
   30. SVG UTILITY
   -------------------------------------------------- */
.display-none { display: none; }
