/*
Theme Name: Fluxaivory Child
Template: astra
Version: 2.3.0
*/
:root{--color-cream:#F5F0E8;--color-ivory:#EDE8DC;--color-beige:#D9CEBC;--color-warm-brown:#8B6F47;--color-khaki:#6B7C5A;--color-charcoal:#2C2C2A;--color-muted-gray:#9A9A90;--color-dark-bg:#1E1D1A;--color-dark-surface:#2A2926;--color-dark-text:#E8E3D8;--bg-primary:var(--color-cream);--bg-secondary:var(--color-ivory);--text-primary:var(--color-charcoal);--text-muted:var(--color-muted-gray);--font-serif:"Playfair Display",Georgia,serif;--font-sans:"Inter",system-ui,sans-serif;--leading-tight:1.15;--leading-body:1.85}
[data-theme="dark"]{--bg-primary:var(--color-dark-bg);--bg-secondary:var(--color-dark-surface);--text-primary:var(--color-dark-text);--text-muted:var(--color-dark-muted)}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}
body{background-color:var(--bg-primary);color:var(--text-primary);font-family:var(--font-sans);line-height:var(--leading-body);margin:0}
h1,h2,h3,h4,h5,h6{font-family:var(--font-serif);line-height:var(--leading-tight);color:var(--text-primary)}
a{color:inherit}img,video{max-width:100%;display:block}
#masthead,.ast-mobile-header-wrap,.main-header-bar-wrap,.ast-above-header-wrap,.ast-below-header-section,.ast-desktop-header{display:none!important}
#fluxaivory-header{position:sticky;top:0;z-index:200;background:rgba(245,240,232,.93);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--color-beige)}
[data-theme="dark"] #fluxaivory-header{background:rgba(30,29,26,.93);border-color:#3A3835}
.fx-header-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;max-width:1200px;margin-inline:auto;padding:.875rem clamp(1rem,4vw,3rem)}
.fx-header-left{display:flex;align-items:center}.fx-header-right{display:flex;align-items:center;gap:.75rem;justify-content:flex-end}
.fx-logo{text-decoration:none;display:block}.fx-logo__text{font-family:var(--font-serif);font-size:1.4rem;color:var(--text-primary);letter-spacing:-.02em}
.fx-logo img{height:38px;width:auto}
.fx-nav__list{list-style:none;margin:0;padding:0;display:flex;gap:1.75rem}
.fx-nav__list li a{font-family:var(--font-sans);font-size:.875rem;color:var(--text-primary);text-decoration:none;transition:color .2s}
.fx-nav__list li a:hover{color:var(--color-warm-brown)}
.fx-search-toggle,.fx-darkmode-toggle,.fx-mobile-menu-toggle{background:none;border:none;cursor:pointer;color:var(--text-primary);padding:.45rem;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background .2s}
.fx-search-toggle:hover,.fx-darkmode-toggle:hover{background:rgba(44,44,42,.08)}
[data-theme="dark"] .fx-icon-sun{display:none}
:root:not([data-theme="dark"]) .fx-icon-moon,[data-theme="light"] .fx-icon-moon{display:none}
.fx-mobile-menu-toggle{display:none;flex-direction:column;gap:5px}
.fx-mobile-menu-toggle span{display:block;width:22px;height:1.5px;background:currentColor;border-radius:2px}
.fx-category-bar{background:var(--color-ivory);border-top:1px solid var(--color-beige);border-bottom:1px solid var(--color-beige)}
[data-theme="dark"] .fx-category-bar{background:#252320;border-color:#3A3835}
.fx-category-bar__inner{display:flex;gap:.5rem;overflow-x:auto;scrollbar-width:none;padding:.6rem clamp(1rem,4vw,3rem);max-width:1200px;margin-inline:auto}
.fx-category-bar__inner::-webkit-scrollbar{display:none}
.fx-category-bar__inner a{white-space:nowrap;padding:.3rem 1rem;border-radius:999px;border:1px solid var(--color-beige);font-size:.8rem;font-family:var(--font-sans);color:var(--text-muted);text-decoration:none;transition:all .22s ease}
.fx-category-bar__inner a:hover,.fx-category-bar__inner a.active{background:var(--color-warm-brown);border-color:var(--color-warm-brown);color:#fff}
.fx-search-overlay{position:fixed;inset:0;background:rgba(245,240,232,.97);z-index:500;display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .25s ease}
.fx-search-overlay.is-open{opacity:1;pointer-events:auto}
.fx-search-overlay__close{position:absolute;top:1.5rem;right:2rem;background:none;border:none;font-size:2rem;cursor:pointer;color:var(--text-primary);line-height:1}
.fx-search-overlay__inner{width:min(90%,700px)}
.fx-search-overlay__inner input[type="search"]{width:100%;font-size:clamp(1.5rem,4vw,2.5rem);font-family:var(--font-serif);border:none;border-bottom:2px solid var(--color-warm-brown);background:transparent;outline:none;padding-block:.5rem;color:var(--text-primary)}
.fx-hero{position:relative;height:100svh;min-height:580px;display:grid;place-items:center;overflow:hidden}
.fx-hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:sepia(.12) saturate(.88);z-index:0}
.fx-hero__overlay{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(245,240,232,.05) 0%,rgba(245,240,232,.75) 100%);z-index:1}
.fx-hero__content{position:relative;z-index:2;text-align:center;padding:2rem;max-width:900px}
.fx-hero__kicker{font-family:var(--font-sans);font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--color-warm-brown);margin:0 0 .75rem}
.fx-hero__title{font-family:var(--font-serif);font-size:clamp(2.5rem,7vw,5.5rem);line-height:1.08;margin:0 0 1rem}
.fx-hero__title a{color:var(--color-charcoal);text-decoration:none}.fx-hero__title a:hover{color:var(--color-warm-brown)}
.fx-hero__excerpt{font-family:var(--font-sans);color:var(--color-charcoal);max-width:52ch;margin:0 auto 1.1rem;font-size:clamp(1rem,1.5vw,1.1rem);line-height:1.8}
.fx-hero__promise{font-family:var(--font-sans);max-width:56ch;margin:0 auto 1.4rem;padding:.75rem 1rem;background:rgba(255,255,255,.62);border:1px solid rgba(26,54,93,.18);border-radius:10px;color:#1A202C;font-size:clamp(.95rem,1.35vw,1.03rem);line-height:1.65}
.fx-hero__promise strong{font-weight:700;color:#0B2748}
.fx-hero__cta{display:inline-block;padding:.7rem 1.75rem;border:1.5px solid var(--color-warm-brown);border-radius:999px;font-family:var(--font-sans);font-size:.9rem;color:var(--color-charcoal);text-decoration:none;transition:all .22s ease}
.fx-hero__cta:hover{background:var(--color-warm-brown);color:#fff}
.fx-site-content{max-width:1200px;margin-inline:auto;padding:4rem clamp(1rem,4vw,3rem)}
.fx-section-title{font-family:var(--font-serif);font-size:clamp(1.5rem,3vw,2rem);color:var(--text-primary);margin:0 0 2rem;padding-bottom:.75rem;border-bottom:1px solid var(--color-beige)}
.fx-post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.25rem,2.5vw,2rem)}
.fx-post-card--featured{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:center}
.fx-post-card{background:var(--color-ivory);border-radius:12px;overflow:hidden;transition:transform .28s ease,box-shadow .28s ease}
[data-theme="dark"] .fx-post-card{background:var(--color-dark-surface)}
.fx-post-card:hover{transform:translateY(-5px);box-shadow:0 16px 36px -8px rgba(44,44,42,.14)}
.fx-post-card__thumb{display:block;overflow:hidden;aspect-ratio:16/10}
.fx-post-card__thumb img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.fx-post-card:hover .fx-post-card__thumb img{transform:scale(1.05)}
.fx-post-card__body{padding:1.25rem}
.fx-post-card__cat{font-family:var(--font-sans);font-size:.75rem;color:var(--color-deep-blue, #1A365D);text-transform:uppercase;letter-spacing:.08em;display:block;margin-bottom:.5rem;font-weight:700}
.fx-post-card__title{font-family:var(--font-serif);font-size:clamp(1rem,1.4vw,1.2rem);line-height:1.35;margin:0 0 .5rem}
.fx-post-card__title a{color:var(--text-primary);text-decoration:none}.fx-post-card__title a:hover{color:var(--color-warm-brown)}
.fx-post-card__meta{font-size:.82rem;color:#4B4B45;margin:0;font-weight:500}
[data-animate]{opacity:0;transform:translateY(20px);transition:opacity .55s ease-out,transform .55s ease-out}
[data-animate].is-visible{opacity:1;transform:translateY(0)}
@media (prefers-reduced-motion:reduce){[data-animate]{opacity:1;transform:none;transition:none}}
:focus-visible{outline:3px solid var(--color-deep-blue, #1A365D);outline-offset:3px;border-radius:4px}
@media (max-width:900px){.fx-post-grid{grid-template-columns:repeat(2,1fr)}.fx-post-card--featured{grid-template-columns:1fr}}
@media (max-width:600px){.fx-post-grid{grid-template-columns:1fr}.fx-nav{display:none}.fx-mobile-menu-toggle{display:flex}.fx-header-inner{grid-template-columns:auto 1fr auto}}

/* Fallback: animate without JS */
[data-animate] { opacity: 1 !important; transform: none !important; }
.fx-hero { background-color: var(--color-charcoal); }
.fx-hero__content { background: rgba(245,240,232,0.88); border-radius: 16px; padding: 3rem 2.5rem; }

/* === FEATURED CARD FIX === */
.fx-post-card--featured {
  overflow: visible !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.fx-post-card--featured .fx-post-card__thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
}
.fx-post-card--featured .fx-post-card__body {
  padding: 1.5rem;
  background: var(--color-ivory);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
}
.fx-post-card--featured .fx-post-card__title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
/* === HERO SECTION: full-height background === */
.fx-hero {
  min-height: 90vh !important;
  background: var(--color-charcoal) !important;
}
/* === REMOVE DUPLICATE ASTRA HEADER BLOCKER === */
.site-header, #masthead { display: none !important; }

/* === [TAC 개선] SEO & 마이크로 퍼포먼스 패치 === */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}

@media (max-width: 768px) {
  #fluxaivory-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(245, 240, 232, 0.98) !important;
  }
}

/* =============================================
   2026 Trend Update: Colors, Typography, Organic Grid
   ============================================= */

:root {
  /* 새로운 기초 색상 (자연 톤 + 딥블루 포인트) */
  --color-ivory: #F4F1EA;
  --color-beige: #E6DFD3;
  --color-khaki: #8F8C73;
  --color-deep-blue: #1A365D;
  --color-charcoal: #2A2A28;
  --text-muted: #5E5E57;
  
  /* 타이포그래피 스케일업 (기본 18px) */
  --text-base: 1.125rem;
}

body {
  font-size: var(--text-base);
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
  line-height: 1.6;
}

/* ── 헤더 & 카테고리 태그 리뉴얼 ── */
#fluxaivory-header {
  background: rgba(244, 241, 234, 0.94) !important;
  border-bottom: 1px solid var(--color-beige);
}

.fx-category-bar {
  background: var(--color-ivory) !important;
  border-top: 1px solid var(--color-beige) !important;
}

.fx-category-bar__inner a {
  font-size: 0.9rem;
  padding: 0.4rem 1.1rem;
  border-color: var(--color-beige);
  color: var(--text-muted);
}
/* 카테고리 활성 및 호버 시 딥블루 색상 적용 */
.fx-category-bar__inner a:hover,
.fx-category-bar__inner a.active {
  background: var(--color-deep-blue) !important;
  border-color: var(--color-deep-blue) !important;
  color: #ffffff !important;
}

/* ── 히어로 섹션 임팩트 강화 ── */
.fx-hero__kicker {
  color: var(--color-khaki) !important;
  font-size: 0.95rem !important;
  font-weight: 600;
  letter-spacing: 0.15em;
}
.fx-hero__cta {
  font-size: 1rem !important;
  padding: 0.8rem 2rem !important;
  border-width: 2px !important;
  border-color: var(--color-khaki) !important;
  color: #fff !important;
  background: rgba(42, 42, 40, 0.4);
  backdrop-filter: blur(5px);
}
/* CTA 호버 시 딥블루로 강렬한 전환 */
.fx-hero__cta:hover {
  background: var(--color-deep-blue) !important;
  border-color: var(--color-deep-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 54, 93, 0.3);
}

/* ── 비대칭 유기적 포스트 그리드 (Bento Style) ── */
.fx-post-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2.5rem !important;
}

/* 카드 배경 및 마이크로 인터랙션 */
.fx-post-card {
  background: #ffffff !important;
  border: 1px solid var(--color-beige);
  border-radius: 16px !important;
  display: flex;
  flex-direction: column;
}
.fx-post-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 22px 40px -12px rgba(42, 42, 40, 0.12) !important;
  border-color: var(--color-khaki);
}

/* 태그 색상 카키 적용 */
.fx-post-card__cat {
  color: var(--color-khaki) !important;
  font-weight: 600;
}

/* 제목 호버 시 딥블루 */
.fx-post-card__title {
  font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
}
.fx-post-card__title a:hover {
  color: var(--color-deep-blue) !important;
}

/* --- 비대칭 배치 매직 --- */
/* 2번째 카드: 2칸 차지 (크게 보기) */
.fx-post-card:nth-child(2) {
  grid-column: span 2;
}
/* 5번째 카드: 2칸 차지 (엇갈리게 배치) */
.fx-post-card:nth-child(5) {
  grid-column: span 2;
}
/* 이미지가 큰 카드 비율 재조정 */
.fx-post-card:nth-child(2) .fx-post-card__thumb,
.fx-post-card:nth-child(5) .fx-post-card__thumb {
  aspect-ratio: 21/9 !important;
}

/* ── 반응형 모바일 최적화 ── */
@media (max-width: 900px) {
  .fx-post-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .fx-post-card:nth-child(2),
  .fx-post-card:nth-child(5) {
    grid-column: span 2 !important; /* 모바일에서도 큰 카드는 2칸 */
  }
}
@media (max-width: 600px) {
  .fx-post-grid {
    grid-template-columns: 1fr !important;
  }
  .fx-post-card {
    grid-column: 1 / -1 !important; /* 전부 1칸 */
  }
  .fx-post-card:nth-child(n) .fx-post-card__thumb {
    aspect-ratio: 16/10 !important;
  }
}

/* === [긴급 UX/UI 픽스] 메뉴 가독성 및 아카이브 디자인 복구 === */

/* 상단 메뉴 진하게 (가독성 확보) */
.fx-nav__list li a {
  color: var(--color-deep-blue, #1A365D) !important;
  font-weight: 600 !important;
}
.fx-nav__list li a:hover {
  color: var(--color-khaki, #8F8C73) !important;
}

/* 파란색 깨진 테마 버튼 및 검색 버튼 투명화 */
button#fx-search-open, 
button#fx-darkmode-toggle,
.fx-search-toggle,
.fx-darkmode-toggle {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--color-deep-blue, #1A365D) !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem !important;
}

/* 카테고리 바 강제 노출 */
.fx-category-bar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100%;
}
.fx-category-bar__inner {
  display: flex !important;
}

/* 아카이브 페이지 타이틀 및 페이지네이션 */
.fx-section-title {
  color: var(--color-deep-blue, #1A365D) !important;
  font-weight: 800 !important;
  border-bottom: 2px solid var(--color-khaki, #8F8C73) !important;
}

.fx-pagination ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  margin-top: 3rem;
}
.fx-pagination ul li a,
.fx-pagination ul li span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-beige, #E6DFD3);
  color: var(--color-deep-blue, #1A365D);
  text-decoration: none;
  border-radius: 8px;
  background: white;
  transition: all 0.2s;
  font-weight: 600;
}
.fx-pagination ul li span.current {
  background: var(--color-deep-blue, #1A365D);
  color: #fff;
  border-color: var(--color-deep-blue, #1A365D);
}
.fx-pagination ul li a:hover {
  background: var(--color-khaki, #8F8C73);
  color: #fff;
  border-color: var(--color-khaki, #8F8C73);
}

/* === [긴급 UX/UI 픽스] 서브메뉴(드롭다운) CSS === */
.fx-nav__list li { position: relative; }

/* 서브메뉴 기본 숨김 */
.fx-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
  z-index: 999;
}

/* hover/focus 시 노출 */
.fx-nav__list li:hover > .sub-menu,
.fx-nav__list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fx-nav__list .sub-menu li { width: 100%; }

.fx-nav__list .sub-menu a {
  display: block;
  padding: 8px 12px;
  color: #1f2937;
  white-space: nowrap;
  text-decoration: none;
  font-size: 14px;
}

.fx-nav__list .sub-menu a:hover,
.fx-nav__list .sub-menu a:focus {
  background: #f3f4f6;
  color: #111827;
}

/* 모바일 메뉴에서는 토글된 경우에만 서브메뉴를 노출 */
@media (max-width: 600px) {
  .fx-nav__list .sub-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0.75rem 1rem;
    margin-top: -0.15rem;
    background: transparent;
  }

  .fx-nav__list .menu-item-has-children.is-submenu-open > .sub-menu {
    display: block;
  }
}

/* === [버그 수정] 다크모드/검색 버튼 파란 배경 제거 === */
button#fx-search-open,
button#fx-darkmode-toggle,
.fx-search-toggle,
.fx-darkmode-toggle,
button.fx-search-toggle,
button.fx-darkmode-toggle {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--color-deep-blue, #1A365D) !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem !important;
}

/* 검색창 오버레이 보이기 설정 강제 */
.fx-search-overlay.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: flex !important;
}

/* === 1. 다크모드 완벽 대응 (색상 변환) === */
[data-theme="dark"] {
  --color-ivory: #1A1A1A;
  --color-beige: #2D2D2D;
  --color-khaki: #C2C0A6;
  --color-deep-blue: #63B3ED;
  --color-charcoal: #F4F1EA;
  --text-muted: #A0AEC0;
}
body {
  transition: background-color 0.4s ease, color 0.4s ease;
}
[data-theme="dark"] body {
  background: var(--color-ivory);
  color: var(--color-charcoal);
}
[data-theme="dark"] #fluxaivory-header,
[data-theme="dark"] .fx-category-bar {
  background: rgba(26, 26, 26, 0.95) !important;
  border-bottom-color: #333 !important;
}
[data-theme="dark"] .fx-post-card {
  background: var(--color-beige) !important;
  border-color: #333 !important;
}
[data-theme="dark"] .fx-nav__list .sub-menu {
  background: rgba(45, 45, 45, 0.98);
  border-color: #444;
}
[data-theme="dark"] .fx-nav__list li a,
[data-theme="dark"] .fx-post-card a,
[data-theme="dark"] .entry-title a {
  color: var(--color-charcoal) !important;
}
[data-theme="dark"] button#fx-darkmode-toggle,
[data-theme="dark"] button#fx-search-open {
  color: var(--color-charcoal) !important;
}

/* === 2. 읽기 모드 (Focus/Reading Mode) 기능 === */
.fx-reading-mode #fluxaivory-header,
.fx-reading-mode .fx-category-bar,
.fx-reading-mode .site-footer,
.fx-reading-mode .widget-area,
.fx-reading-mode .sidebar,
.fx-reading-mode .ast-breadcrumbs {
  display: none !important;
}
.fx-reading-mode .fx-single-content,
.fx-reading-mode .entry-content,
.fx-reading-mode article .entry-content {
  font-size: 1.15rem;
  line-height: 1.9;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 5vh;
}
.fx-readmode-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #1A365D;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
[data-theme="dark"] .fx-readmode-toggle {
  background: #63B3ED;
  color: #0b1220;
}

/* === 4. 모바일 최적화 디테일 패치 === */
@media (max-width: 768px) {
  .fx-post-card,
  .entry-content,
  .fx-single-content {
    padding-left: 14px;
    padding-right: 14px;
  }
  .entry-content,
  .fx-single-content {
    font-size: 1.02rem;
    line-height: 1.75;
  }
  .fx-readmode-toggle {
    right: 12px;
    bottom: 12px;
    font-size: 13px;
    padding: 9px 12px;
  }
}

/* === [HOMEPAGE-CRITICAL-5] mobile a11y + hit target patch === */
.fx-nav__list a,
.fx-search-toggle,
.fx-theme-toggle,
#fx-darkmode-toggle,
#fx-search-open,
.fx-search-close,
.fx-search-submit,
.fx-hero__cta {
  min-width: 44px;
  min-height: 44px;
}

.fx-nav__list a,
.fx-search-submit,
.fx-search-form input,
.fx-post-card__meta,
.fx-post-card__cat,
button {
  font-size: 14px;
}

.fx-search-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  z-index: 99999;
}
.fx-search-overlay.is-open { display: flex; }
.fx-search-overlay__panel {
  width: min(640px, 92vw);
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}
.fx-search-form { display: flex; gap: 8px; }
.fx-search-form .search-field { flex: 1; min-height: 44px; }

@media (max-width: 768px) {
  .fx-nav__list a,
  .fx-search-submit,
  .fx-search-form input,
  .fx-post-card__meta,
  .fx-post-card__cat,
  button { font-size: 16px; }
}


/* === [RECHECK-2] mobile DoD hardening === */
.fx-logo,
.fx-logo__text,
#fluxaivory-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
}

.site-footer a,
.site-footer .menu a,
.site-footer .widget a,
.footer-adv-overlay a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 6px;
}

@media (max-width: 768px) {
  html, body { font-size: 14px !important; }
  p, li, a, span, button, input, label, small, .site-footer, .site-footer * {
    font-size: max(14px, 1em) !important;
    line-height: 1.45;
  }
  .fx-hero__kicker { font-size: 14px !important; }
}

/* [HOMEPAGE-CRITICAL-5][RECHECK-3] Mobile accessibility tightening */
@media (max-width: 768px) {
  /* touch targets */
  #fluxaivory-header a,
  #fluxaivory-header button,
  .fx-category-bar__inner a,
  .site-footer a,
  footer a,
  footer button,
  .ast-footer a,
  .ast-footer button {
    min-height: 44px !important;
    display: inline-flex;
    align-items: center;
  }

  #fluxaivory-header .fx-logo,
  #fluxaivory-header .fx-search-toggle,
  #fluxaivory-header .fx-theme-toggle {
    min-width: 44px !important;
  }

  /* minimum legible text */
  .fx-post-card__cat,
  .fx-post-card__meta,
  .fx-category-bar__inner a,
  #fluxaivory-header .menu-link,
  footer,
  footer a,
  footer li,
  .site-footer,
  .site-footer a,
  .site-footer li {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
}

/* [HOMEPAGE-CRITICAL-5][RECHECK-3b] Final touch-target fixes */
@media (max-width: 768px) {
  .fx-post-card__title a {
    display: inline-block;
    min-height: 44px !important;
  }

  a[rel="alternate"],
  a[href*="/blog"],
  a[href*="/feed"],
  .site-footer a,
  footer a {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* === Mobile Nav Open State === */
@media (max-width: 600px) {
  .fx-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(244, 241, 234, 0.98);
    border-bottom: 1px solid var(--color-beige);
    padding: 1rem clamp(1rem, 4vw, 3rem);
    z-index: 199;
  }
  [data-theme="dark"] .fx-nav.is-open {
    background: rgba(30, 29, 26, 0.98);
    border-color: #3A3835;
  }
  .fx-nav.is-open .fx-nav__list {
    flex-direction: column;
    gap: 0;
  }
  .fx-nav.is-open .fx-nav__list > li {
    border-bottom: 1px solid var(--color-beige);
  }
  .fx-nav.is-open .fx-nav__list > li:last-child {
    border-bottom: none;
  }
  .fx-nav.is-open .fx-nav__list li a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: none;
  }
  .fx-nav.is-open .fx-nav__list .menu-item-has-children {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 0 0.5rem;
  }
  .fx-nav.is-open .fx-nav__list .menu-item-has-children > .dropdown-menu-toggle {
    display: none !important;
  }
  .fx-nav.is-open .fx-nav__list .menu-item-has-children > .ast-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--color-beige);
    border-radius: 10px;
    background: transparent;
    color: var(--color-deep-blue, #1A365D);
  }
  .fx-nav.is-open .fx-nav__list .menu-item-has-children > .sub-menu {
    grid-column: 1 / -1;
  }
  .fx-nav.is-open .fx-nav__list .sub-menu a {
    min-height: auto !important;
    padding: 0.65rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  .fx-nav.is-open .fx-nav__list .menu-item-has-children.is-submenu-open > .ast-menu-toggle .ast-arrow-svg {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
  }
  #fluxaivory-header {
    position: relative;
  }
  [data-theme="dark"] .fx-nav.is-open .fx-nav__list > li {
    border-color: #3A3835;
  }
  [data-theme="dark"] .fx-nav.is-open .fx-nav__list .menu-item-has-children > .ast-menu-toggle {
    border-color: #3A3835;
    color: #EAF4FF;
  }
}

/* === Category Section Header More Link === */
.fx-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fx-section-more,
.fx-section-more:visited,
.fx-section-more a,
.fx-section-more a:visited {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  color: #08213D;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: #08213D;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 0;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.fx-section-more:hover,
.fx-section-more:focus-visible,
.fx-section-more a:hover,
.fx-section-more a:focus-visible {
  color: #041223;
  text-decoration-color: #041223;
}
[data-theme="dark"] .fx-section-more,
[data-theme="dark"] .fx-section-more:visited,
[data-theme="dark"] .fx-section-more a,
[data-theme="dark"] .fx-section-more a:visited {
  color: #EAF4FF;
  text-decoration-color: #EAF4FF;
}
[data-theme="dark"] .fx-section-more:hover,
[data-theme="dark"] .fx-section-more:focus-visible,
[data-theme="dark"] .fx-section-more a:hover,
[data-theme="dark"] .fx-section-more a:focus-visible {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

/* === Author Bio Inline Style Override (Astra parent theme hardcoded #ffffff) === */
.author-bio-container {
  background: var(--bg-secondary, var(--color-ivory)) !important;
  border-left-color: var(--color-warm-brown, #8B6F47) !important;
  color: var(--text-primary, var(--color-charcoal)) !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.06) !important;
}
[data-theme="dark"] .author-bio-container {
  background: var(--color-dark-surface, #2A2926) !important;
  border-left-color: var(--color-warm-brown, #8B6F47) !important;
  color: var(--color-dark-text, #E8E3D8) !important;
}

/* author bio typography (inline style 제거 후 CSS로 제어) */
.author-bio-title {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.author-bio-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.fx-empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

/* [HC-07] 비회귀 접근성 하한선: 카드 카테고리 라벨 대비 고정 */
.fx-post-card__cat {
  color: #143556 !important;
}
[data-theme="dark"] .fx-post-card__cat {
  color: #B9DEFF !important;
}

/* [IM-04] honest revisit path (no fake newsletter form) */
.fx-follow-path {
  margin-top: 2.2rem;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--color-beige, #E6DFD3);
  border-radius: 12px;
  background: #fff;
}
[data-theme="dark"] .fx-follow-path {
  background: #222;
  border-color: #444;
}
.fx-follow-path__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.fx-follow-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid #0B2748;
  border-radius: 999px;
  color: #0B2748;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
}
.fx-follow-chip:hover,
.fx-follow-chip:focus-visible {
  color: #fff;
  background: #0B2748;
}
[data-theme="dark"] .fx-follow-chip {
  border-color: #CFE7FF;
  color: #CFE7FF;
  background: transparent;
}
[data-theme="dark"] .fx-follow-chip:hover,
[data-theme="dark"] .fx-follow-chip:focus-visible {
  background: #CFE7FF;
  color: #1B1B1B;
}

/* [ARCH-02] 렌더 소스에서 inline style 제거 후 사용하는 공통 숨김 유틸 */
.fx-u-hidden {
  display: none !important;
}

/* [HC-07] Permanent accessibility + mobile quality floor (non-regression contract) */
.fx-section-more,
.fx-section-more:visited,
.fx-section-more a,
.fx-section-more a:visited {
  color: #08213D !important;
  text-decoration-color: currentColor !important;
  font-weight: 800;
}

[data-theme="dark"] .fx-section-more,
[data-theme="dark"] .fx-section-more:visited,
[data-theme="dark"] .fx-section-more a,
[data-theme="dark"] .fx-section-more a:visited {
  color: #F2F8FF !important;
  text-decoration-color: currentColor !important;
}

.fx-section-more:focus-visible,
.fx-section-more a:focus-visible,
#fx-mobile-menu-toggle:focus-visible,
.fx-nav.is-open a:focus-visible {
  outline: 3px solid #1A365D !important;
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 600px) {
  #fx-mobile-menu-toggle,
  .fx-mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px;
    height: 44px;
    border: 1.5px solid #1A365D !important;
    border-radius: 10px !important;
    background: #FFFFFF !important;
    color: #1A365D !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 210;
  }

  [data-theme="dark"] #fx-mobile-menu-toggle,
  [data-theme="dark"] .fx-mobile-menu-toggle {
    border-color: #CFE7FF !important;
    background: #1F1E1B !important;
    color: #EAF4FF !important;
  }

  #fx-mobile-menu-toggle span,
  .fx-mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor !important;
  }

  .fx-nav.is-open {
    z-index: 205;
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
  }

  .fx-nav.is-open .fx-nav__list li a {
    display: block;
    min-height: 44px !important;
    padding: 12px 0 !important;
  }

  .search .site-main,
  .category .site-main,
  .single .site-main,
  .page .site-main {
    overflow-wrap: anywhere;
  }

  .search .site-main img,
  .category .site-main img,
  .single .site-main img,
  .page .site-main img {
    max-width: 100%;
    height: auto;
  }

  .single .entry-content table,
  .page .entry-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
}

/* [P0-HOME] Shadcn-neutral tokens + ink-like IA while keeping fluxaivory tone */
:root {
  --background: 36 43% 97%;
  --foreground: 221 45% 18%;
  --card: 0 0% 100%;
  --card-foreground: 221 45% 18%;
  --primary: 217 62% 20%;
  --primary-foreground: 36 43% 97%;
  --muted: 36 30% 92%;
  --muted-foreground: 220 16% 32%;
  --border: 35 25% 84%;
  --ring: 217 62% 26%;
  --font-sans: "Noto Sans KR", "Noto Sans", system-ui, sans-serif;
  --font-serif: "Noto Serif KR", "Noto Sans KR", serif;
}

body {
  background: #faf7f0 !important;
  color: #1a2f4b !important;
}

.fx-post-grid,
.fx-post-grid .fx-post-card:nth-child(2),
.fx-post-grid .fx-post-card:nth-child(5) {
  grid-column: auto !important;
}

.fx-home-controls {
  margin-bottom: 2rem;
}

.fx-home-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.fx-home-tabs a {
  border: 1px solid #d7ccbb;
  background: #fff;
  color: #0b2748;
  text-decoration: none;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-weight: 700;
}

.fx-home-search {
  display: flex;
  gap: .5rem;
}

.fx-home-search input {
  flex: 1;
  min-height: 44px;
  border: 1px solid #c9bca8;
  border-radius: 10px;
  padding: 0 .8rem;
}

.fx-home-search button {
  min-height: 44px;
  border: 1px solid #0b2748;
  background: #0b2748;
  color: #fff;
  border-radius: 10px;
  padding: 0 1rem;
}

.fx-post-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.fx-newsletter-cta {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid #d7ccbb;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 900px) {
  .fx-post-grid--related {
    grid-template-columns: 1fr !important;
  }
}

/* === Article readability upgrade: emphasis + quick scan + verification === */
.single .entry-content mark,
.page .entry-content mark,
.single .entry-content p strong,
.single .entry-content li strong,
.page .entry-content p strong,
.page .entry-content li strong {
  color: #2c2c2a;
  font-weight: 700;
  background: linear-gradient(180deg, transparent 34%, rgba(236, 204, 145, 0.58) 34%, rgba(236, 204, 145, 0.58) 100%);
  padding: 0 0.18em;
  border-radius: 0.35em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.single .entry-content p strong,
.single .entry-content li strong,
.page .entry-content p strong,
.page .entry-content li strong {
  color: #7a4a1f;
  background: linear-gradient(180deg, transparent 38%, rgba(245, 215, 166, 0.54) 38%, rgba(245, 215, 166, 0.54) 100%);
}

.single .entry-content table:first-of-type,
.page .entry-content table:first-of-type {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d8c9b2;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(247, 238, 225, 0.98) 100%);
  box-shadow: 0 22px 52px -32px rgba(77, 56, 30, 0.34);
  margin: 1.75rem 0 2.25rem;
}

.single .entry-content table:first-of-type th,
.page .entry-content table:first-of-type th {
  background: #1a365d;
  color: #ffffff;
  border: 0;
  padding: 14px 16px;
  font-size: 0.9rem;
}

.single .entry-content table:first-of-type td,
.page .entry-content table:first-of-type td {
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 16px;
}

.single .entry-content details.verification-memo,
.page .entry-content details.verification-memo {
  margin-top: 2.5rem;
  padding: 0;
  border: 1px solid #d8c9b2;
  border-radius: 18px;
  background: #fcf8f1;
  box-shadow: 0 16px 36px -28px rgba(42, 42, 40, 0.34);
}

.single .entry-content details.verification-memo summary,
.page .entry-content details.verification-memo summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 700;
}

.single .entry-content details.verification-memo > :not(summary),
.page .entry-content details.verification-memo > :not(summary) {
  padding: 0 20px 18px;
}

@media (max-width: 768px) {
  .single .entry-content table:first-of-type th,
  .single .entry-content table:first-of-type td,
  .page .entry-content table:first-of-type th,
  .page .entry-content table:first-of-type td {
    min-width: 140px;
  }
}

/* === Stitch editorial integration: 2026-03-22 === */
:root {
  --fx-paper: #fdf8f9;
  --fx-paper-low: #f7f2f3;
  --fx-paper-high: #ffffff;
  --fx-ink: #1c1b1c;
  --fx-muted: #57423b;
  --fx-accent: #9f3c11;
  --fx-accent-soft: #c05328;
  --fx-secondary: #50634f;
  --fx-outline-soft: rgba(138, 114, 105, 0.15);
  --fx-serif: "Newsreader", Georgia, serif;
  --fx-body: "Manrope", system-ui, sans-serif;
  --fx-label: "Inter", system-ui, sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: var(--fx-body);
}

body {
  background: var(--fx-paper) !important;
  color: var(--fx-ink) !important;
}

h1, h2, h3, h4, h5, h6,
.fx-logo__text,
.fx-display-title,
.fx-section-heading,
.fx-story-card__title,
.fx-archive-featured__title,
.fx-archive-list__title,
.fx-article-list__title,
.fx-related-card__title,
.fx-single-content blockquote {
  font-family: var(--fx-serif);
}

#fluxaivory-header {
  background: rgba(253, 248, 249, 0.82) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.fx-nav__list li a,
.fx-search-toggle,
.fx-theme-toggle,
.fx-mobile-menu-toggle,
.fx-logo__text {
  color: var(--fx-ink) !important;
}

.fx-nav__list li a {
  font-family: var(--fx-serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.fx-editorial,
.fx-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.fx-editorial {
  padding: 3.5rem 1.5rem 5rem;
}

.fx-home-hero,
.fx-home-sections,
.fx-home-about,
.fx-archive-header,
.fx-archive-featured,
.fx-single-header,
.fx-single-related {
  margin-bottom: 5rem;
}

.fx-home-hero__grid,
.fx-archive-featured__grid,
.fx-single-layout,
.fx-editorial-grid,
.fx-article-list__item,
.fx-archive-list__item,
.fx-home-about__panel {
  display: grid;
  gap: 2rem;
}

.fx-home-hero__grid,
.fx-archive-featured__grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.85fr);
  align-items: end;
}

.fx-display-title {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.fx-display-title a,
.fx-story-card__title a,
.fx-archive-featured__title a,
.fx-archive-list__title a,
.fx-article-list__title a,
.fx-related-card__title a {
  color: inherit;
  text-decoration: none;
}

.fx-display-title a:hover,
.fx-story-card__title a:hover,
.fx-archive-featured__title a:hover,
.fx-archive-list__title a:hover,
.fx-article-list__title a:hover,
.fx-related-card__title a:hover {
  color: var(--fx-accent);
}

.fx-standfirst {
  max-width: 52rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.7;
  color: var(--fx-muted);
}

.fx-section-label,
.fx-kicker-chip,
.fx-story-card__kicker,
.fx-article-list__kicker,
.fx-meta-row,
.fx-meta-row__item,
.fx-sidebar-meta,
.fx-pagination-note {
  font-family: var(--fx-label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.fx-section-label,
.fx-story-card__kicker,
.fx-article-list__kicker,
.fx-kicker-chip {
  color: var(--fx-secondary);
  font-weight: 700;
  text-decoration: none;
}

.fx-kicker-chip,
.fx-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #ece7e8;
  border: 1px solid transparent;
}

.fx-meta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
  color: var(--fx-muted);
}

.fx-meta-row--wrap {
  margin-bottom: 1.4rem;
}

.fx-text-link {
  color: var(--fx-accent);
  text-decoration: none;
  font-family: var(--fx-label);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.fx-text-link:hover {
  color: var(--fx-accent-soft);
}

.fx-bleed-media,
.fx-archive-featured__media,
.fx-related-card__media,
.fx-article-list__thumb,
.fx-archive-list__thumb,
.fx-single-media {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--fx-paper-low);
}

.fx-bleed-media img,
.fx-archive-featured__media img,
.fx-related-card__media img,
.fx-article-list__thumb img,
.fx-archive-list__thumb img,
.fx-single-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fx-home-hero__media {
  position: relative;
}

.fx-bleed-media {
  aspect-ratio: 3 / 4;
}

.fx-floating-note {
  position: absolute;
  left: -1.5rem;
  bottom: -1.5rem;
  max-width: 220px;
  background: var(--fx-paper-high);
  padding: 1rem;
  border-radius: 12px;
  color: var(--fx-muted);
  font-size: 0.76rem;
  line-height: 1.55;
  box-shadow: 0 20px 40px rgba(28, 27, 28, 0.04);
}

.fx-editorial-grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fx-story-card,
.fx-related-card,
.fx-sidebar-panel,
.fx-home-about__panel {
  background: var(--fx-paper-low);
  border-radius: 18px;
}

.fx-story-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.fx-story-card__rail {
  height: 1px;
  background: linear-gradient(90deg, rgba(159, 60, 17, 0.35), transparent);
}

.fx-story-card__body,
.fx-related-card__body,
.fx-sidebar-panel {
  padding: 1.5rem;
}

.fx-sidebar-toc {
  background: #fff8ef;
  border: 1px solid rgba(159, 60, 17, 0.12);
}

.fx-sidebar-toc__list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.fx-sidebar-toc__list a {
  color: var(--fx-ink);
  text-decoration: none;
}

.fx-sidebar-toc__list a:hover {
  color: var(--fx-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fx-decision-box,
.fx-proof-box {
  background: #fff8ef;
  border: 1px solid rgba(159, 60, 17, 0.16);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
}

.fx-decision-box strong,
.fx-proof-box strong {
  color: var(--fx-accent);
}

.fx-single-content .fx-comparison-table {
  border: 1px solid var(--fx-outline-soft);
  box-shadow: 0 18px 40px rgba(28, 27, 28, 0.05);
}

.fx-story-card__title,
.fx-archive-featured__title,
.fx-article-list__title,
.fx-archive-list__title,
.fx-related-card__title {
  margin: 0.4rem 0 0.75rem;
  font-size: clamp(1.6rem, 2vw, 2.25rem);
  line-height: 1.12;
}

.fx-story-card__excerpt,
.fx-archive-featured__excerpt,
.fx-article-list__excerpt,
.fx-archive-list__excerpt,
.fx-home-about__copy,
.fx-sidebar-meta {
  color: var(--fx-muted);
  line-height: 1.7;
}

.fx-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fx-pill {
  color: var(--fx-ink);
  text-decoration: none;
}

.fx-home-about__panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding: 3rem;
}

.fx-section-heading {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.08;
}

.fx-section-heading-wrap--split {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.fx-article-list,
.fx-archive-list {
  display: grid;
  gap: 1.5rem;
}

.fx-article-list__item,
.fx-archive-list__item {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--fx-outline-soft);
}

.fx-article-list__item:first-child,
.fx-archive-list__item:first-child {
  border-top: 0;
}

.fx-article-list__thumb,
.fx-archive-list__thumb {
  aspect-ratio: 16 / 10;
}

.fx-archive-header {
  padding-top: 1rem;
}

.fx-display-title--archive,
.fx-display-title--single {
  font-size: clamp(3rem, 6.5vw, 5rem);
}

.fx-single-layout {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
}

.fx-single-sidebar {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 1rem;
}

.fx-single-content {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.85;
}

.fx-single-content > *:first-child {
  margin-top: 0;
}

.fx-single-content p,
.fx-single-content ul,
.fx-single-content ol,
.fx-single-content blockquote,
.fx-single-content table,
.fx-single-content figure,
.fx-single-content h2,
.fx-single-content h3 {
  margin-bottom: 1.5rem;
}

.fx-single-content h2,
.fx-single-content h3,
.fx-single-content h4 {
  font-family: var(--fx-serif);
  line-height: 1.15;
}

.fx-single-content a {
  color: var(--fx-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.fx-single-content blockquote {
  margin-inline: 0;
  padding: 1.75rem 2rem;
  background: var(--fx-paper-low);
  border-radius: 20px;
  color: var(--fx-secondary);
  font-size: 1.5rem;
  line-height: 1.4;
}

.fx-single-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}

.fx-single-content th,
.fx-single-content td {
  padding: 0.85rem 1rem;
  text-align: left;
}

.fx-single-content thead tr,
.fx-single-content tr:nth-child(even) {
  background: var(--fx-paper-low);
}

.fx-editorial-grid--related {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fx-pagination ul {
  justify-content: flex-start;
}

.fx-pagination ul li a,
.fx-pagination ul li span {
  background: var(--fx-paper-high);
  border-color: var(--fx-outline-soft);
  color: var(--fx-ink);
}

.fx-pagination ul li span.current {
  background: var(--fx-accent);
  border-color: var(--fx-accent);
}

@media (max-width: 900px) {
  .fx-home-hero__grid,
  .fx-archive-featured__grid,
  .fx-single-layout,
  .fx-home-about__panel,
  .fx-editorial-grid--featured,
  .fx-editorial-grid--related,
  .fx-article-list__item,
  .fx-archive-list__item {
    grid-template-columns: 1fr;
  }

  .fx-single-sidebar {
    position: static;
  }

  .fx-floating-note {
    position: static;
    margin-top: 1rem;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .fx-editorial {
    padding-inline: 1rem;
  }

  .fx-display-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .fx-home-about__panel,
  .fx-story-card__body,
  .fx-related-card__body,
  .fx-sidebar-panel {
    padding: 1.25rem;
  }
}
