/**
 * OPENWORLD NOTE - Theme Custom CSS (v2 — Dynamic Kinfolk)
 *
 * Site-wide layout: header (transparent/solid), footer, hero (Ken Burns),
 * editorial feature, category row, category page, article page, animations.
 * All design tokens from design-system.md mapped to --expat-* CSS variables.
 *
 * Does NOT include .entry-content scoped styles (see gutenberg-blocks.css).
 * Does NOT include .preview-toolbar styles (preview-only).
 *
 * Reference: design-system.md, component-specs.md, page-layouts.md, responsive-rules.md
 * Created: 2026-03-28
 * Updated: 2026-03-28 (v2 — Dynamic Kinfolk redesign)
 * Consumer: WordPress theme (Additional CSS or child-theme stylesheet)
 */


/* ===================================================================
   1. WEB FONTS
   =================================================================== */

/* Noto Serif KR: Headings (400, 600, 700)
   600 was missing until 2026-04-16 — which caused archive card titles
   (.ast-blog-layout-5-grid .entry-title, weight:600) to silently
   fall back to the system sans-serif stack instead of rendering as
   serif like Latest Update (also weight:600). Adding 600 here puts
   both surfaces on the same typeface. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700&display=swap');

/* Cormorant Garamond: Display / English brand (400, 600) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&display=swap');

/* Pretendard: Body text (400, 600) via CDN */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');


/* ===================================================================
   2. CSS CUSTOM PROPERTIES (Design Tokens)
   =================================================================== */

:root {
  /* --- Color tokens --- */
  --expat-color-text:               #1A1A1A;
  --expat-color-text-secondary:     #4A4A4A;
  --expat-color-text-muted:         #8A8A8A;
  --expat-color-bg:                 #FFFFFF;
  --expat-color-card-bg:            #F7F7F5;
  --expat-color-separator:          #E8E8E8;
  --expat-border-card:              #E8E8E8;
  --expat-color-quote:              #C8A96E;
  --expat-color-quote-bg:           #F7F7F5;
  --expat-color-links-bg:           #F7F7F5;
  --expat-color-placeholder:        #F7F7F5;
  --expat-color-placeholder-border: #E8E8E8;
  --expat-color-accent:             #C8A96E;
  --expat-color-accent-hover:       #A68B55;
  --expat-color-link:               #1A1A1A;
  --expat-color-link-hover:         #C8A96E;
  --expat-color-error:              #B44D4D;
  --expat-color-overlay:            rgba(0, 0, 0, 0.4);
  --expat-color-overlay-strong:     rgba(0, 0, 0, 0.6);

  /* --- Typography tokens --- */
  --expat-font-heading: 'Noto Serif KR', 'Batang', Georgia, serif;
  --expat-font-body:    'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --expat-font-display: 'Cormorant Garamond', Georgia, serif;
  --expat-font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --expat-lh-body:      1.85;
  --expat-lh-heading:   1.4;
  --expat-fs-body:      1.0625rem;
  --expat-fs-h4:        1.125rem;
  --expat-fs-small:     0.875rem;
  --expat-fs-caption:   0.75rem;

  /* --- Spacing tokens --- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  --expat-space-block:        24px;
  --expat-space-section:      48px;
  --expat-space-card:         24px;
  --expat-space-page-section: 80px;

  /* --- Layout tokens --- */
  --expat-width-content: 680px;
  --expat-width-wide:    960px;
  --expat-width-site:    1280px;

  /* --- Border radius tokens --- */
  --expat-radius:        2px;
  --expat-radius-card:   4px;
  --expat-radius-button: 0px;

  /* --- Transition tokens --- */
  --expat-transition:      0.2s ease;
  --expat-transition-slow: 0.4s ease;
}


/* ===================================================================
   3. GLOBAL RESET & BASE
   =================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--expat-font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--expat-color-text);
  background-color: var(--expat-color-bg);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

a {
  color: var(--expat-color-link);
  text-decoration: none;
  transition: color var(--expat-transition);
}

a:hover {
  color: var(--expat-color-link-hover);
}

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


/* ===================================================================
   4. HEADER — Transparent over hero (homepage), solid on scroll / other pages
   =================================================================== */

.expat-blog-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  background: transparent;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: background 0.4s ease, border-bottom 0.4s ease, box-shadow 0.4s ease;
}

/* Solid state — applied via JS on scroll, or on non-hero pages */
.expat-blog-header--solid {
  background: var(--expat-color-bg);
  border-bottom: 1px solid var(--expat-color-separator);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Logo — transparent state: white */
.expat-blog-header__logo {
  font-family: var(--expat-font-display);
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.15em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.4s ease;
}

.expat-blog-header--solid .expat-blog-header__logo {
  color: var(--expat-color-text);
}

/* Main navigation */
.expat-blog-header__nav {
  display: none;
  gap: 32px;
  align-items: center;
}

.expat-blog-header__nav-link {
  font-family: var(--expat-font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 4px 0;
  transition: color 0.4s ease;
}

.expat-blog-header--solid .expat-blog-header__nav-link {
  color: var(--expat-color-text);
}

.expat-blog-header__nav-link:hover {
  color: var(--expat-color-accent);
}

.expat-blog-header__nav-link--active {
  border-bottom: 2px solid var(--expat-color-accent);
  padding-bottom: 2px;
}

/* Right actions */
.expat-blog-header__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Search icon button */
.expat-blog-header__search {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.4s ease;
}

.expat-blog-header--solid .expat-blog-header__search {
  color: var(--expat-color-text);
}

.expat-blog-header__search svg {
  width: 20px;
  height: 20px;
}

/* Subscribe button */
.expat-blog-header__subscribe {
  display: none;
  font-family: var(--expat-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: var(--expat-radius-button);
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.expat-blog-header--solid .expat-blog-header__subscribe {
  color: var(--expat-color-bg);
  background: var(--expat-color-text);
  border-color: var(--expat-color-text);
}

.expat-blog-header__subscribe:hover {
  background: var(--expat-color-accent);
  border-color: var(--expat-color-accent);
  color: #fff;
}

/* Hamburger toggle */
.expat-blog-header__hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.4s ease;
}

.expat-blog-header--solid .expat-blog-header__hamburger {
  color: var(--expat-color-text);
}

.expat-blog-header__hamburger svg {
  width: 24px;
  height: 24px;
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .expat-blog-header {
    height: 64px;
    padding: 0 32px;
  }

  .expat-blog-header__logo {
    font-size: 1.125rem;
  }

  .expat-blog-header__nav {
    display: flex;
  }

  .expat-blog-header__subscribe {
    display: inline-flex;
  }

  .expat-blog-header__hamburger {
    display: none;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .expat-blog-header {
    height: 72px;
    padding: 0 48px;
  }

  .expat-blog-header__logo {
    font-size: 1.25rem;
  }
}


/* ===================================================================
   5. MOBILE MENU
   =================================================================== */

.expat-blog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 200;
}

.expat-blog-overlay--open {
  display: block;
}

.expat-blog-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--expat-color-bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 72px 32px 32px;
  overflow-y: auto;
}

.expat-blog-mobile-menu--open {
  transform: translateX(0);
}

.expat-blog-mobile-menu__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--expat-color-text);
  cursor: pointer;
  margin-left: auto;
  margin-bottom: 16px;
}

.expat-blog-mobile-menu__link {
  display: block;
  font-family: var(--expat-font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--expat-color-text);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--expat-color-separator);
  transition: color var(--expat-transition);
}

.expat-blog-mobile-menu__link:hover {
  color: var(--expat-color-link-hover);
}

@media (min-width: 768px) {
  .expat-blog-overlay,
  .expat-blog-mobile-menu {
    display: none;
  }
}


/* ===================================================================
   6. SCROLL ANIMATIONS
   =================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s;    opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s;  opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s;  opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s;  opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* Paragraph-level reveal for article content */
.article-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.article-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===================================================================
   7. HOMEPAGE HERO — Full viewport with Ken Burns zoom
   =================================================================== */

.expat-blog-hero {
  width: 100%;
  height: 100vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.expat-blog-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.expat-blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.2) 100%);
}

.expat-blog-hero__content {
  position: absolute;
  bottom: 48px;
  left: 20px;
  right: 20px;
  max-width: 100%;
}

/* EDITOR'S PICK label */
.expat-blog-hero__pick-label {
  font-family: var(--expat-font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextIn 0.8s ease 0.2s forwards;
}

/* Subcategory label */
.expat-blog-hero__category {
  font-family: var(--expat-font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextIn 0.8s ease 0.4s forwards;
}

.expat-blog-hero__title {
  font-family: var(--expat-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextIn 0.8s ease 0.5s forwards;
}

.expat-blog-hero__subtitle {
  font-family: var(--expat-font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextIn 0.8s ease 0.7s forwards;
}

.expat-blog-hero__cta {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--expat-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 12px 28px;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextIn 0.8s ease 0.9s forwards;
}

.expat-blog-hero__cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

@keyframes heroTextIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.expat-blog-hero__scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: heroTextIn 0.8s ease 1.2s forwards;
}

.expat-blog-hero__scroll-text {
  font-family: var(--expat-font-body);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.expat-blog-hero__scroll-line {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.expat-blog-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%  { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .expat-blog-hero__content {
    bottom: 64px;
    left: 48px;
    right: 48px;
    max-width: 600px;
  }

  .expat-blog-hero__pick-label {
    font-size: 1.125rem;
    letter-spacing: 0.25em;
  }

  .expat-blog-hero__title {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  .expat-blog-hero__subtitle {
    font-size: 1rem;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .expat-blog-hero__content {
    bottom: 80px;
    left: 80px;
    right: 80px;
    max-width: 680px;
  }

  .expat-blog-hero__pick-label {
    font-size: 1.25rem;
  }

  .expat-blog-hero__title {
    font-size: 3rem;
  }

  .expat-blog-hero__subtitle {
    font-size: 1.0625rem;
  }
}


/* ===================================================================
   8. EDITORIAL FEATURE — Split 60/40 Layout
   =================================================================== */

.editorial-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.editorial-feature__image {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.editorial-feature__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
}

.editorial-feature__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
  background: var(--expat-color-bg);
}

.editorial-feature__category {
  font-family: var(--expat-font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--expat-color-accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.editorial-feature__title {
  font-family: var(--expat-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--expat-color-text);
  margin: 0 0 16px 0;
}

.editorial-feature__excerpt {
  font-family: var(--expat-font-body);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--expat-color-text-secondary);
  margin: 0 0 28px 0;
}

.editorial-feature__link {
  font-family: var(--expat-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--expat-color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--expat-color-text);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.editorial-feature__link:hover {
  color: var(--expat-color-accent);
  border-color: var(--expat-color-accent);
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .editorial-feature {
    grid-template-columns: 3fr 2fr;
    min-height: 500px;
  }

  .editorial-feature__image {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .editorial-feature__content {
    padding: 48px;
  }

  .editorial-feature__title {
    font-size: 1.75rem;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .editorial-feature {
    min-height: 560px;
  }

  .editorial-feature__content {
    padding: 64px;
  }

  .editorial-feature__title {
    font-size: 2rem;
  }
}


/* ===================================================================
   9. MOST LOVED BADGE — Editorial feature label with heart pulse
   =================================================================== */

.most-loved-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.most-loved-badge__label {
  font-family: var(--expat-font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--expat-color-accent);
}

.most-loved-badge__heart {
  color: #e74c3c;
  font-size: 0.875rem;
  animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

.most-loved-badge__count {
  font-family: var(--expat-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--expat-color-text-muted);
}


/* ===================================================================
   10. SECTION TITLES
   =================================================================== */

.section-header {
  max-width: var(--expat-width-site);
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-header__title {
  font-family: var(--expat-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--expat-color-text);
  margin: 0;
}

.section-header__link {
  font-family: var(--expat-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--expat-color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-header__link:hover {
  color: var(--expat-color-text);
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .section-header {
    padding: 0 32px;
    margin-bottom: 40px;
  }

  .section-header__title {
    font-size: 1.375rem;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .section-header {
    padding: 0 48px;
  }

  .section-header__title {
    font-size: 1.5rem;
  }
}


/* ===================================================================
   11. CATEGORY ROW — 1-row horizontal, per-category latest
   =================================================================== */

.category-row {
  display: flex;
  gap: 16px;
  max-width: var(--expat-width-site);
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-row::-webkit-scrollbar {
  display: none;
}

.category-row__card {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-row__image-wrap {
  overflow: hidden;
  border-radius: var(--expat-radius);
  position: relative;
}

.category-row__image {
  width: 100%;
  aspect-ratio: 4/3;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-row__card:hover .category-row__image {
  transform: scale(1.05);
}

.category-row__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: var(--expat-radius);
}

.category-row__card:hover .category-row__overlay {
  opacity: 1;
}

.category-row__body {
  padding: 14px 0 0 0;
}

.category-row__category-label {
  font-family: var(--expat-font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--expat-color-accent);
  margin-bottom: 8px;
}

.category-row__title {
  font-family: var(--expat-font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--expat-color-text);
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.category-row__card:hover .category-row__title {
  color: var(--expat-color-accent);
}

.category-row__excerpt {
  font-family: var(--expat-font-body);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--expat-color-text-secondary);
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-row__date {
  font-family: var(--expat-font-body);
  font-size: 0.6875rem;
  color: var(--expat-color-text-muted);
}

/* Scroll hint gradient (mobile) */
.category-row-wrap {
  position: relative;
}

.category-row-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to left, var(--expat-color-bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .category-row {
    gap: 20px;
    padding: 0 32px;
    overflow-x: visible;
    scroll-snap-type: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .category-row__card {
    width: auto;
    flex-shrink: unset;
  }

  .category-row-wrap::after {
    display: none;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .category-row {
    gap: 24px;
    padding: 0 48px;
    grid-template-columns: repeat(4, 1fr);
  }

  .category-row__title {
    font-size: 1.0625rem;
  }

  .category-row__excerpt {
    font-size: 0.875rem;
  }
}


/* ===================================================================
   12. EDITORIAL QUOTE
   =================================================================== */

.editorial-quote {
  padding: 64px 20px;
  text-align: center;
  border-top: 1px solid var(--expat-color-separator);
  border-bottom: 1px solid var(--expat-color-separator);
}

.editorial-quote__text {
  font-family: var(--expat-font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--expat-color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  border: none;
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .editorial-quote {
    padding: 80px 32px;
  }

  .editorial-quote__text {
    font-size: 1.5rem;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .editorial-quote {
    padding: 96px 48px;
  }

  .editorial-quote__text {
    font-size: 1.75rem;
  }
}


/* ===================================================================
   13. CITY STRIP — Horizontal scroll city tags
   =================================================================== */

.city-strip {
  padding: 0 20px;
  max-width: var(--expat-width-site);
  margin: 0 auto;
}

.city-strip__list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.city-strip__list::-webkit-scrollbar {
  display: none;
}

.city-strip__item {
  flex-shrink: 0;
  font-family: var(--expat-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--expat-color-text-secondary);
  text-decoration: none;
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

/* Active / hover state — indicated by text color contrast alone.
   2026-04-16: the outline pill + underline were both removed from
   the spec; the approved design conveys active purely through a
   darker label color against the secondary-grey inactive labels. */
.city-strip__item:hover,
.city-strip__item--active {
  color: var(--expat-color-text);
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .city-strip {
    padding: 0 32px;
  }

  .city-strip__list {
    gap: 16px;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .city-strip {
    padding: 0 48px;
  }
}


/* ===================================================================
   14. NEWSLETTER SIGNUP
   =================================================================== */

.expat-blog-newsletter {
  background: var(--expat-color-card-bg);
  border-top: 1px solid var(--expat-color-separator);
  padding: 48px 20px;
  text-align: center;
}

.expat-blog-newsletter__title {
  font-family: var(--expat-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--expat-color-text);
  margin: 0 0 12px 0;
}

.expat-blog-newsletter__desc {
  font-family: var(--expat-font-body);
  font-size: 0.875rem;
  color: var(--expat-color-text-secondary);
  margin: 0 auto 24px auto;
  max-width: 480px;
}

.expat-blog-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}

.expat-blog-newsletter__input {
  flex: 1;
  font-family: var(--expat-font-body);
  font-size: 0.875rem;
  padding: 14px 16px;
  border: 1px solid var(--expat-border-card);
  border-radius: 0;
  background: var(--expat-color-bg);
  color: var(--expat-color-text);
  outline: none;
  transition: border-color var(--expat-transition);
}

.expat-blog-newsletter__input:focus {
  border-color: var(--expat-color-text);
}

.expat-blog-newsletter__input::placeholder {
  color: var(--expat-color-text-muted);
}

.expat-blog-newsletter__button {
  font-family: var(--expat-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--expat-color-bg);
  background: var(--expat-color-text);
  border: 1px solid var(--expat-color-text);
  padding: 14px 24px;
  border-radius: var(--expat-radius-button);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--expat-transition), border-color var(--expat-transition);
  min-height: 48px;
}

.expat-blog-newsletter__button:hover {
  background: var(--expat-color-accent);
  border-color: var(--expat-color-accent);
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .expat-blog-newsletter {
    padding: 64px 32px;
  }

  .expat-blog-newsletter__title {
    font-size: 1.5rem;
  }

  .expat-blog-newsletter__desc {
    font-size: 0.9375rem;
  }

  .expat-blog-newsletter__form {
    flex-direction: row;
  }

  .expat-blog-newsletter__input {
    border-right: none;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .expat-blog-newsletter {
    padding: 64px 48px;
  }
}


/* ===================================================================
   15. FOOTER
   =================================================================== */

.expat-blog-footer {
  background: var(--expat-color-bg);
  border-top: 1px solid var(--expat-color-separator);
  padding: 48px 20px;
  margin-top: 0;
}

.expat-blog-footer__inner {
  max-width: var(--expat-width-site);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

/* Brand column */
.expat-blog-footer__brand-name {
  font-family: var(--expat-font-display);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--expat-color-text);
}

.expat-blog-footer__brand-slogan {
  font-family: var(--expat-font-heading);
  font-size: 0.875rem;
  color: var(--expat-color-text-secondary);
  margin-top: 8px;
}

/* Category links column */
.expat-blog-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expat-blog-footer__link {
  font-family: var(--expat-font-body);
  font-size: 0.875rem;
  color: var(--expat-color-text-secondary);
  text-decoration: none;
  line-height: 2.2;
  transition: color var(--expat-transition);
}

.expat-blog-footer__link:hover {
  color: var(--expat-color-text);
}

/* Legal column */
.expat-blog-footer__legal {
  font-family: var(--expat-font-body);
  font-size: 0.75rem;
  color: var(--expat-color-text-muted);
  line-height: 2;
}

.expat-blog-footer__legal a {
  color: var(--expat-color-text-muted);
  text-decoration: none;
  transition: color var(--expat-transition);
}

.expat-blog-footer__legal a:hover {
  color: var(--expat-color-text);
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .expat-blog-footer {
    padding: 64px 32px;
  }

  .expat-blog-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    text-align: left;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .expat-blog-footer {
    padding: 64px 48px;
  }

  .expat-blog-footer__inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}


/* ===================================================================
   16. PAGE SECTIONS SPACING
   =================================================================== */

.expat-blog-page-section {
  margin-top: 48px;
}

@media (min-width: 768px) {
  .expat-blog-page-section {
    margin-top: 64px;
  }
}

@media (min-width: 1025px) {
  .expat-blog-page-section {
    margin-top: var(--expat-space-page-section);
  }
}


/* ===================================================================
   17. CATEGORY PAGE — Hero Banner
   =================================================================== */

.category-hero {
  position: relative;
  background: linear-gradient(135deg, #3d0c02 0%, #6b2c0f 40%, #a04000 80%, #c8a96e 100%);
  padding: 80px 20px 48px;
  text-align: center;
  overflow: hidden;
}

.category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
}

.category-hero__label {
  font-family: var(--expat-font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  position: relative;
}

.category-hero__title {
  font-family: var(--expat-font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: #fff;
  margin: 0 0 16px 0;
  letter-spacing: 0.08em;
  position: relative;
}

.category-hero__desc {
  font-family: var(--expat-font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.category-hero__count {
  margin-top: 20px;
  font-family: var(--expat-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .category-hero {
    padding: 96px 32px 56px;
  }

  .category-hero__title {
    font-size: 3rem;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .category-hero {
    padding: 112px 48px 64px;
  }

  .category-hero__title {
    font-size: 3.5rem;
  }
}


/* ===================================================================
   18. CATEGORY TABS
   =================================================================== */

.category-tabs {
  max-width: var(--expat-width-site);
  margin: 0 auto;
  padding: 24px 20px 0;
  border-bottom: 1px solid var(--expat-color-separator);
}

.category-tabs__list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-tabs__list::-webkit-scrollbar {
  display: none;
}

.category-tabs__item {
  flex-shrink: 0;
  font-family: var(--expat-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--expat-color-text-muted);
  text-decoration: none;
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.category-tabs__item:hover {
  color: var(--expat-color-text);
}

.category-tabs__item--active {
  color: var(--expat-color-text);
  border-bottom-color: var(--expat-color-accent);
  font-weight: 600;
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .category-tabs {
    padding: 24px 32px 0;
  }

  .category-tabs__item {
    padding: 14px 24px;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .category-tabs {
    padding: 24px 48px 0;
  }
}


/* ===================================================================
   19. CATEGORY LIST CARDS — Alternating layout
   =================================================================== */

.category-list {
  max-width: var(--expat-width-site);
  margin: 0 auto;
  padding: 0 20px;
}

.category-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
  padding: 32px 0;
  border-bottom: 1px solid var(--expat-color-separator);
  transition: background 0.3s ease;
}

.category-card:last-child {
  border-bottom: none;
}

.category-card__image-wrap {
  overflow: hidden;
  border-radius: var(--expat-radius);
  position: relative;
}

.category-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.category-card:hover .category-card__image {
  transform: scale(1.04);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: var(--expat-radius);
}

.category-card:hover .category-card__overlay {
  opacity: 1;
}

.category-card__body {
  padding: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.category-card__city {
  font-family: var(--expat-font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--expat-color-accent);
}

.category-card__date {
  font-family: var(--expat-font-body);
  font-size: 0.6875rem;
  color: var(--expat-color-text-muted);
}

.category-card__title {
  font-family: var(--expat-font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--expat-color-text);
  margin: 0 0 10px 0;
  transition: color 0.2s ease;
}

.category-card:hover .category-card__title {
  color: var(--expat-color-accent);
}

.category-card__excerpt {
  font-family: var(--expat-font-body);
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--expat-color-text-secondary);
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card__read-more {
  font-family: var(--expat-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--expat-color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.category-card:hover .category-card__read-more {
  border-bottom-color: var(--expat-color-accent);
  color: var(--expat-color-accent);
}

/* --- Tablet (768px+): side-by-side, alternating --- */
@media (min-width: 768px) {
  .category-list {
    padding: 0 32px;
  }

  .category-card {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .category-card__image {
    aspect-ratio: 3/2;
  }

  .category-card__body {
    padding: 0;
  }

  /* Alternate: even cards reverse the layout */
  .category-card:nth-child(even) {
    direction: rtl;
  }

  .category-card:nth-child(even) > * {
    direction: ltr;
  }

  .category-card__title {
    font-size: 1.25rem;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .category-list {
    padding: 0 48px;
  }

  .category-card {
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    padding: 48px 0;
  }

  .category-card__title {
    font-size: 1.375rem;
  }

  .category-card__excerpt {
    -webkit-line-clamp: 3;
    font-size: 0.9375rem;
  }
}


/* ===================================================================
   20. PAGINATION
   =================================================================== */

.expat-blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 40px 0;
}

.expat-blog-pagination__item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--expat-font-body);
  font-size: 0.8125rem;
  color: var(--expat-color-text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--expat-radius);
  transition: all 0.2s ease;
}

.expat-blog-pagination__item:hover {
  color: var(--expat-color-text);
  border-color: var(--expat-color-separator);
}

.expat-blog-pagination__item--active {
  color: var(--expat-color-text);
  border-color: var(--expat-color-text);
  font-weight: 600;
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .expat-blog-pagination {
    gap: 8px;
    padding: 48px 0;
  }

  .expat-blog-pagination__item {
    width: 44px;
    height: 44px;
    font-size: 0.875rem;
  }
}


/* ===================================================================
   21. READING PROGRESS BAR (Article page)
   =================================================================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--expat-color-accent);
  z-index: 10000;
  transition: width 0.1s linear;
}


/* ===================================================================
   22. ARTICLE HERO — Parallax-style
   =================================================================== */

.article-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 300px;
  max-height: 500px;
  overflow: hidden;
}

.article-hero__image {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: -10%;
  left: 0;
  will-change: transform;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .article-hero {
    height: 55vh;
    min-height: 380px;
    max-height: 560px;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .article-hero {
    height: 60vh;
    min-height: 420px;
    max-height: 640px;
  }
}


/* ===================================================================
   23. BREADCRUMB
   =================================================================== */

.expat-blog-breadcrumb {
  font-family: var(--expat-font-body);
  font-size: var(--expat-fs-caption);
  color: var(--expat-color-text-muted);
  padding: 16px 20px;
  max-width: var(--expat-width-site);
  margin: 0 auto;
}

.expat-blog-breadcrumb a {
  color: var(--expat-color-text-muted);
  text-decoration: none;
  transition: color var(--expat-transition);
}

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

.expat-blog-breadcrumb__separator {
  margin: 0 8px;
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .expat-blog-breadcrumb {
    padding: 16px 32px;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .expat-blog-breadcrumb {
    padding: 16px 48px;
  }
}


/* ===================================================================
   24. ARTICLE META
   =================================================================== */

.expat-blog-article-meta {
  max-width: var(--expat-width-content);
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.expat-blog-article-meta__category {
  font-family: var(--expat-font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--expat-color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.expat-blog-article-meta__title {
  font-family: var(--expat-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--expat-color-text);
  margin: 0 0 16px 0;
}

.expat-blog-article-meta__info {
  display: flex;
  gap: 12px;
  font-family: var(--expat-font-body);
  font-size: 0.8125rem;
  color: var(--expat-color-text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--expat-color-separator);
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .expat-blog-article-meta {
    text-align: center;
    padding: 0;
  }

  .expat-blog-article-meta__title {
    font-size: 1.75rem;
  }

  .expat-blog-article-meta__info {
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
  }
}

/* --- Desktop (1025px+) --- */
@media (min-width: 1025px) {
  .expat-blog-article-meta__title {
    font-size: 2rem;
  }
}


/* ===================================================================
   25. ENTRY CONTENT WRAPPER (constrains pipeline-generated blocks)
   =================================================================== */

.entry-content {
  padding: 0 20px;
}

@media (min-width: 768px) {
  .entry-content {
    padding: 0 32px;
  }
}

@media (min-width: 1025px) {
  .entry-content {
    padding: 0;
  }
}


/* ===================================================================
   26. SHARE BUTTONS (Article page)
   =================================================================== */

.article-share {
  max-width: var(--expat-width-content);
  margin: 48px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-share__label {
  font-family: var(--expat-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--expat-color-text-muted);
}

.article-share__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--expat-color-separator);
  border-radius: 50%;
  background: transparent;
  color: var(--expat-color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.article-share__btn:hover {
  border-color: transparent;
  color: var(--expat-color-text);
  background: none;
}

.article-share__btn svg {
  width: 16px;
  height: 16px;
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .article-share {
    padding: 0;
  }
}


/* ===================================================================
   27. BACK TO TOP BUTTON (Article page)
   =================================================================== */

.back-to-top {
  position: fixed;
  bottom: 64px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--expat-color-bg);
  border: 1px solid var(--expat-color-separator);
  border-radius: 50%;
  color: var(--expat-color-text);
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--expat-color-text);
  background: var(--expat-color-card-bg);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .back-to-top {
    bottom: 72px;
    right: 32px;
  }
}


/* ===================================================================
   28. FOCUS & ACCESSIBILITY
   =================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--expat-color-accent);
  outline-offset: 2px;
}


/* ===================================================================
   29. CITY TAXONOMY ARCHIVE
       Feature: city-taxonomy-filter (2026-04-11)
       Template: taxonomy-city.php
       Spec: docs/web-design/component-specs.md "Component: taxonomy-city"

       Scoped under .city-taxonomy-archive / .city-archive-header so we
       never touch global h1 / archive styles in Astra parent.
   =================================================================== */

.city-taxonomy-archive {
  /* piggyback on .expat-blog-page-section's container already applied */
}

.city-archive-header {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 64px;
  padding-bottom: 48px;
  text-align: center;
}

.city-archive-header__eyebrow {
  display: block;
  font-family: var(--expat-font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--expat-color-text-secondary);
  margin-bottom: 16px;
}

.city-archive-header__title {
  font-family: var(--expat-font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--expat-color-text);
  margin: 0 0 12px;
}

.city-archive-header__count {
  font-family: var(--expat-font-body);
  font-size: 0.9375rem;
  color: var(--expat-color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Archive grid: relax the hover horizontal slider from .category-row
   (front-page uses it as a 1-row scroller) and allow multi-row wrap. */
.city-taxonomy-archive .category-row--archive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  overflow: visible;
  padding: 0;
}

.city-taxonomy-archive .category-row--archive .category-row__card {
  width: auto;
  min-width: 0;
  flex: none;
}

.city-taxonomy-archive__pagination {
  max-width: 960px;
  margin: 48px auto 0;
  text-align: center;
}

.city-taxonomy-archive__empty {
  max-width: 680px;
  margin: 48px auto;
  text-align: center;
  color: var(--expat-color-text-secondary);
  font-family: var(--expat-font-body);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .city-taxonomy-archive .category-row--archive {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 767px) {
  .city-archive-header {
    padding-top: 48px;
    padding-bottom: 32px;
  }
  .city-archive-header__title {
    font-size: 2rem;
  }
  .city-taxonomy-archive .category-row--archive {
    grid-template-columns: 1fr;
    gap: 24px 0;
  }
}


/* ===================================================================
   30. ASTRA ARCHIVE — HORIZONTAL LIST LAYOUT
       Reference: docs/web-design/page-layouts.md §2 + preview/
       site-category-food-v4.html .mn-list-item spec.

       Target layout (desktop): 260px thumbnail on the left + text on
       the right, stacked vertically one row per article. Aspect 3:2.
       Tablet scales thumb down to 200px; mobile collapses to stacked.

       2026-04-16 revision: the previous §30 forced width:100% on
       .ast-blog-featured-section, which broke Astra's flex-horizontal
       layout (the .ast-article-post contains a .blog-layout-5 flex
       row whose first child gets ast-width-md-6). That made archive
       images render at full card width (~910px) with text stacked
       below — wrong per design spec. The rules below restore the
       intended 260px/3:2 side-by-side layout.

       Scoped to .ast-blog-layout-5-grid so single posts are unaffected.
   =================================================================== */

/* --- The Astra .blog-layout-5 flex row.
       Astra injects `display:flex;flex-wrap:wrap` inline — we must
       force nowrap on tablet+ so the 260px thumb stays beside the
       text column. align-items: stretch matches card heights visually. --- */
.ast-blog-layout-5-grid .ast-article-post .blog-layout-5 {
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .ast-blog-layout-5-grid .ast-article-post .blog-layout-5 {
    flex-wrap: nowrap !important; /* override Astra's inline CSS */
  }
}

/* --- The thumbnail wrapper: fixed-width column at tablet+, full
       width on mobile. Aspect 3:2 locks every thumb to the same
       visual size regardless of the text column's height. Card
       heights will now vary slightly with title+excerpt length,
       but the thumbnail itself stays uniform. --- */
.ast-blog-layout-5-grid .ast-article-post .ast-blog-featured-section,
.ast-blog-layout-5-grid .ast-article-post .post-thumb,
.ast-blog-layout-5-grid .ast-article-post .post-thumb-img-content {
  display: block;
  width: 100%;             /* mobile default — stacked */
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--expat-radius);
  position: relative;
  flex-shrink: 0;
  align-self: flex-start;  /* don't stretch when text column is taller */
}

@media (min-width: 768px) {
  .ast-blog-layout-5-grid .ast-article-post .ast-blog-featured-section,
  .ast-blog-layout-5-grid .ast-article-post .post-thumb,
  .ast-blog-layout-5-grid .ast-article-post .post-thumb-img-content {
    width: 200px;          /* tablet — per preview-v4 spec */
  }
}

@media (min-width: 1025px) {
  .ast-blog-layout-5-grid .ast-article-post .ast-blog-featured-section,
  .ast-blog-layout-5-grid .ast-article-post .post-thumb,
  .ast-blog-layout-5-grid .ast-article-post .post-thumb-img-content {
    width: 260px;          /* desktop — per preview-v4 spec */
  }
}

/* --- The anchor that wraps the <img> needs to fill the aspect box --- */
.ast-blog-layout-5-grid .ast-article-post .ast-blog-featured-section a,
.ast-blog-layout-5-grid .ast-article-post .post-thumb a,
.ast-blog-layout-5-grid .ast-article-post .post-thumb-img-content a {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- The <img> fills the wrapper and crops to aspect via object-fit.
       Astra often inlines width/height attrs on the tag; !important is
       required to override those inline-style equivalents. --- */
.ast-blog-layout-5-grid .ast-article-post .ast-blog-featured-section img,
.ast-blog-layout-5-grid .ast-article-post .post-thumb img,
.ast-blog-layout-5-grid .ast-article-post .post-thumb-img-content img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

/* --- The right-hand content column takes the rest of the flex row.
       Astra tags it with ast-width-md-6 (= 50% width) which we must
       override — on a 910px card the thumb is 260px so the content
       column should flex to fill the remaining ~626px, not lock to
       50%. `width: auto !important` neutralises the Astra class.
       `min-width: 0` lets long titles wrap inside the flex child. --- */
@media (min-width: 768px) {
  .ast-blog-layout-5-grid .ast-article-post .blog-layout-5 > :not(.ast-blog-featured-section):not(.post-thumb) {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
  }
}

/* --- Card height uniformity.
       The archive title defaults to Astra's large entry-title size
       (~32px) which wraps to 2 lines for long titles and 1 line for
       short ones, producing the uneven card heights the user noted
       on 2026-04-16. Clamp title to 2 lines + pin a consistent
       font size so every card renders at the same height. Excerpt
       also clamped for the same reason. --- */
/* --- Archive typography matches homepage Latest Update
       (.category-row__card) with a consistent one-step upscale,
       because archive is the reader's pre-read stage and needs
       slightly larger text than a teaser grid.

       Baseline (Latest Update)   →   Archive
       title     1rem   Noto Serif 600   →   1.25rem Noto Serif 600
       excerpt   0.8125rem (13px) / 1.7  →   1rem (16px) / 1.8
       eyebrow   0.6875rem (11px)        →   0.75rem (12px)

       Original intent per commit 3299127 §33/§34 message was
       "Archive card typography matching Latest Update + excerpt
       15px/1.8 upscale" — that rule never actually landed in
       theme-custom.css (only in a server hotfix that the
       2026-04-16 rsync deploy wiped). This block restores it.
   --- */
.ast-blog-layout-5-grid .ast-article-post .entry-title,
.ast-blog-layout-5-grid .ast-article-post .entry-title a {
  /* The `a` child is targeted explicitly because style.css line 780
     defines `body .entry-title a { font-family: var(--expat-font-body) }`,
     which would otherwise silently override the heading font and make
     the title render as Pretendard (sans) instead of Noto Serif KR.
     Discovered 2026-04-16 when the h2 computed family was correct but
     the rendered width matched sans-serif — all text lived in the <a>
     and inherited the body font. */
  font-family: var(--expat-font-heading) !important;  /* Noto Serif KR */
  font-size: 1.25rem !important;                      /* 20px = 1.25× Latest Update */
  line-height: 1.4 !important;
  font-weight: 600 !important;                        /* match Latest Update weight */
}

.ast-blog-layout-5-grid .ast-article-post .entry-title {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

.ast-blog-layout-5-grid .ast-article-post .entry-content,
.ast-blog-layout-5-grid .ast-article-post .ast-excerpt-container,
.ast-blog-layout-5-grid .ast-article-post .post-content > p {
  font-family: var(--expat-font-body);                /* Pretendard */
  font-size: 1rem;                                    /* 16px — upscale from Latest Update's 13px */
  line-height: 1.8;                                   /* §34 spec */
  color: var(--expat-color-text-secondary, #555);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Eyebrow / category label upscale — Astra's default .ast-taxonomy
   and similar micro-labels, one step up from Latest Update's 11px. */
.ast-blog-layout-5-grid .ast-article-post .ast-taxonomy-container,
.ast-blog-layout-5-grid .ast-article-post .entry-meta,
.ast-blog-layout-5-grid .ast-article-post .posted-on {
  font-size: 0.75rem;                                 /* 12px */
}


/* ===================================================================
   32. SINGLE-POST RELATED POSTS — mirror Latest Update card style

   Astra's default Related Posts block renders the featured image at
   its natural aspect (~2:1) and uses the theme body font for titles.
   The approved spec (commit 3299127 §32/§33) calls for the same card
   treatment as the homepage Latest Update carousel: 4:3 thumbnail,
   Noto Serif KR title at weight 600, a small Pretendard excerpt,
   date in muted micro-caps. No pill, no outline.

   2026-04-16: the original server-hotfix variant of these rules was
   wiped by the first atomic rsync deploy. This block re-lands them
   into theme-custom.css so they survive future deploys.
   =================================================================== */

/* Thumbnail: lock to 4:3, crop via object-fit (identical to
   .category-row__image). */
.ast-related-post-featured-section,
.ast-related-posts-inner-section .post-thumb-img-content {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden;
  border-radius: var(--expat-radius);
  margin-bottom: 14px;
}

.ast-related-post-featured-section a,
.ast-related-posts-inner-section .post-thumb-img-content a {
  display: block;
  width: 100%;
  height: 100%;
}

.ast-related-post-featured-section img,
.ast-related-posts-inner-section .post-thumb-img-content img,
.ast-related-post .wp-post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

/* Title: Noto Serif KR 1rem / 600, same as .category-row__title.
   Both the wrapping <h*> AND its <a> child must be targeted because
   body .entry-title a { font-family: var(--expat-font-body) } would
   otherwise override the heading font (same issue we fixed on the
   archive grid titles — see §31). */
.ast-related-post-title,
.ast-related-post-title a,
.ast-related-post .entry-title,
.ast-related-post .entry-title a {
  font-family: var(--expat-font-heading) !important;  /* Noto Serif KR */
  font-size: 1rem !important;                         /* 16px — matches Latest Update */
  line-height: 1.45 !important;
  font-weight: 600 !important;
  color: var(--expat-color-text) !important;
}

.ast-related-post-title,
.ast-related-post .entry-title {
  margin: 0 0 6px 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

/* Excerpt / body preview: Pretendard 13px / 1.7, clamp 2 — mirrors
   .category-row__excerpt. */
.ast-related-post-content .entry-summary,
.ast-related-post-content > p,
.ast-related-post .ast-excerpt-container {
  font-family: var(--expat-font-body);
  font-size: 0.8125rem;                               /* 13px */
  line-height: 1.7;
  color: var(--expat-color-text-secondary, #555);
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Date / micro-meta: 11px muted, matches .category-row__date. */
.ast-related-post-content .entry-meta,
.ast-related-post-content .posted-on,
.ast-related-post-content time {
  font-family: var(--expat-font-body);
  font-size: 0.6875rem;                               /* 11px */
  color: var(--expat-color-text-muted, #888);
}

/* Neutralise Astra's default padding/background so the card reads
   as a flat editorial item rather than a boxed widget. */
.ast-related-post {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

