/* TVF Korea Chapter — foundation chrome overrides */

:root {
  /* Legacy tokens (kept; values unchanged in light) */
  --tvf-black: #111111;
  --tvf-ink: #1a1a1a;
  --tvf-muted: #5c5c5c;
  --tvf-line: #e5e5e5;
  --tvf-blue: #5B9BD5;
  --tvf-blue-dark: #3d7eb8;
  --tvf-cream: #F8FAFC;
  --tvf-white: #ffffff;
  --tvf-navy: #0f2744;
  --tvf-serif: 'Cormorant Garamond', 'Noto Serif KR', 'Times New Roman', Georgia, serif;
  /* serif titles: weight 600 kept after Noto Serif KR check (see polish notes) */
  --tvf-sans: 'Source Sans 3', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Semantic tokens — BOTH themes; values swap under dark (light = current look) */
  --tvf-bg: #ffffff;
  --tvf-surface: #ffffff;
  --tvf-surface-alt: #F8FAFC; /* pale blue-gray sections (hero/chapter) — light only look */
  --tvf-text: #1a1a1a;
  --tvf-text-strong: #111111;
  --tvf-text-muted: #3f3f3f; /* body/desc contrast polish */
  --tvf-text-secondary: #4a4a4a; /* community desc / mobile hero */
  --tvf-text-subtle: #7a7a7a; /* recent meta/date */
  --tvf-border: #e5e5e5;
  --tvf-accent: #5B9BD5;
  --tvf-accent-strong: #3d7eb8;
  --tvf-button-primary-bg: #111111;
  --tvf-button-primary-fg: #ffffff;
  --tvf-button-primary-hover: #3d7eb8;
  --tvf-button-secondary-bg: transparent;
  --tvf-button-secondary-fg: #1a1a1a;
  --tvf-button-secondary-border: #e5e5e5;
  --tvf-footer-bg: #F8FAFC;
  --tvf-hero-bg: #F8FAFC;
  --tvf-cta-bg: #0f172a;
  --tvf-hover-wash: rgba(248, 250, 252, 0.95);
  --tvf-input-bg: #fafafa;
  --tvf-input-border: #d4d4d4;
}

body, #app {
  font-family: var(--tvf-sans) !important;
  color: var(--tvf-text);
  background: var(--tvf-bg) !important;
}

/* Soften stock gray shell */
.min-h-screen.bg-gray-50,
.min-h-screen.flex.flex-col.bg-gray-50 {
  background: var(--tvf-bg) !important;
}

/* Hide ecommerce / community-board chrome on public TVF site */
[data-testid="nav-popular"],
[data-testid="nav-shop"],
[data-testid="currency-switcher"],
header button[aria-label="shopping cart"],
header .fa-shopping-cart,
button .fa-shopping-cart {
  display: none !important;
}

/* Hide stock Header bottom tab nav — replaced by .tvf-primary-nav */
header nav.border-t {
  display: none !important;
}

/* Desktop header polish */
header.sticky,
header.block {
  background: var(--tvf-surface) !important;
  border-bottom: 1px solid var(--tvf-border) !important;
  box-shadow: none !important;
}

header img {
  height: 44px !important;
  width: auto !important;
  max-width: 280px;
  object-fit: contain;
}

/* Primary TVF nav */
.tvf-primary-nav {
  background: var(--tvf-white);
  border-bottom: 1px solid var(--tvf-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.tvf-primary-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 3rem;
  flex-wrap: wrap;
}
.tvf-primary-nav a,
.tvf-nav-link {
  font-family: var(--tvf-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--tvf-ink) !important;
  text-decoration: none !important;
  padding: 0.75rem 0.9rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  background: transparent;
  cursor: pointer;
}
.tvf-primary-nav a:hover,
.tvf-nav-link:hover {
  color: var(--tvf-blue-dark) !important;
  border-bottom-color: var(--tvf-blue);
}

/* Hero */
.tvf-hero {
  text-align: center;
  padding: 5rem 1.5rem 4.25rem;
  background: var(--tvf-hero-bg);
  border-bottom: 1px solid var(--tvf-border);
}
.tvf-hero-logo {
  width: min(380px, 72vw);
  height: auto;
  margin: 0 auto 1.85rem;
  display: block;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.tvf-hero-kicker {
  font-family: var(--tvf-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tvf-blue);
  margin-bottom: 0.85rem;
}
.tvf-hero-title {
  font-family: var(--tvf-serif) !important;
  font-size: clamp(1.65rem, 3.8vw, 2.6rem) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--tvf-black) !important;
  margin: 0 auto 1.1rem !important;
  max-width: 36rem;
}
.tvf-hero-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--tvf-muted);
  max-width: 40rem;
  margin: 0 auto 2.15rem;
}
.tvf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.tvf-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  background: var(--tvf-button-primary-bg) !important;
  color: var(--tvf-button-primary-fg) !important;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px !important;
  text-decoration: none !important;
  border: 1px solid var(--tvf-button-primary-bg);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tvf-btn-primary:hover {
  background: var(--tvf-button-primary-hover) !important;
  border-color: var(--tvf-button-primary-hover);
  color: var(--tvf-button-primary-fg) !important;
}
.tvf-btn-primary:focus-visible {
  outline: 2px solid var(--tvf-accent);
  outline-offset: 2px;
}
.tvf-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  background: var(--tvf-button-secondary-bg) !important;
  color: var(--tvf-button-secondary-fg) !important;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 2px !important;
  text-decoration: none !important;
  border: 1px solid var(--tvf-button-secondary-border);
  cursor: pointer;
}
.tvf-btn-ghost:hover {
  border-color: var(--tvf-accent);
  color: var(--tvf-accent-strong) !important;
}
.tvf-btn-ghost:focus-visible {
  outline: 2px solid var(--tvf-accent);
  outline-offset: 2px;
}

/* Sections */
.tvf-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.75rem 1.5rem;
}
.tvf-section + .tvf-section {
  border-top: 1px solid var(--tvf-line);
}
.tvf-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tvf-blue);
  margin-bottom: 0.65rem;
}
.tvf-section-title {
  font-family: var(--tvf-serif) !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  font-weight: 600 !important;
  color: var(--tvf-black) !important;
  margin: 0 0 1.15rem !important;
}
.tvf-section-body {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--tvf-muted);
  max-width: 48rem;
}
.tvf-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 2.35rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .tvf-pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tvf-pillar {
  border: 1px solid var(--tvf-border);
  background: var(--tvf-surface);
  padding: 1.75rem 1.4rem;
  min-height: 11rem;
  border-radius: 2px;
  box-shadow: none;
  height: 100%;
}
.tvf-pillar h3 {
  font-family: var(--tvf-serif) !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: var(--tvf-black) !important;
  margin: 0 0 0.6rem !important;
}
.tvf-pillar p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--tvf-muted);
  margin: 0;
}
.tvf-divider {
  width: 3rem;
  height: 1px;
  background: var(--tvf-blue);
  margin: 0 auto 1.25rem;
}
.tvf-cta {
  text-align: center;
  background: var(--tvf-cta-bg);
  color: #fff;
  padding: 3.5rem 1.5rem;
}
.tvf-cta h2 {
  font-family: var(--tvf-serif) !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin: 0 0 0.75rem !important;
}
.tvf-cta p {
  color: rgba(255,255,255,0.78);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}
.tvf-cta .tvf-btn-primary {
  background: var(--tvf-blue) !important;
  border-color: var(--tvf-blue);
}
.tvf-cta .tvf-btn-ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,0.35);
}
.tvf-cta .tvf-btn-ghost:hover {
  border-color: #fff;
  color: #fff !important;
}

/* Footer polish */
footer {
  background: var(--tvf-footer-bg) !important;
  border-top: 1px solid var(--tvf-border) !important;
  color: var(--tvf-text);
}
footer h3, footer h4 {
  font-family: var(--tvf-serif) !important;
}

/* Register CTA in header — quieter foundation look */
header a[href="/register"],
header button.bg-emerald-500 {
  background: var(--tvf-black) !important;
  border-radius: 2px !important;
}

/* Page content readability */
.prose, .tvf-page-shell {
  font-family: var(--tvf-sans);
}

/* Home: escape stock Container (max-w-7xl px-8) without 100vw breakout
   (100vw + overflow-x:hidden was clipping the entire hero off-screen). */
.flex-1 > .max-w-7xl:has(.tvf-home),
.flex-1 .max-w-7xl:has(.tvf-home) {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.tvf-home {
  width: 100%;
  max-width: none;
  margin: 0;
}
.tvf-hero {
  text-align: center;
}
.tvf-primary-nav {
  position: relative;
  z-index: 40;
}
/* Keep header sticky; nav scrolls with page for cleaner single bar feel */
header.sticky {
  z-index: 50;
}

/* Refined chrome: de-emphasize stock marketplace header bits */
header [data-testid="currency-switcher"],
header a[href*="orders"],
header a[href*="/login?redirect=/mypage/orders"] {
  display: none !important;
}

/* Kill leftover stock header tab labels (Home/Popular/Shop) */
header nav.border-t,
header nav.border-t a,
header [data-testid="nav-home"],
header [data-testid="nav-popular"],
header [data-testid="nav-shop"],
header .border-t.border-gray-200 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
/* Soften / hide marketplace utilities in header row */
header a[href*="/login?redirect=/mypage/orders"],
header a[href="/mypage/orders"],
header [data-testid="currency-switcher"] {
  display: none !important;
}


/* hide pre-header stock crumbs */
body .min-h-screen.flex.flex-col > a {
  display: none !important;
}

/* Community / board section on home */
.tvf-board-section .tvf-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 2.25rem;
}
@media (min-width: 768px) {
  .tvf-board-section .tvf-board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.tvf-board-card {
  border: 1px solid var(--tvf-line);
  background: var(--tvf-cream);
  min-height: 6.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tvf-board-card:hover {
  border-color: var(--tvf-blue);
  box-shadow: none;
}
.tvf-board-card-btn {
  display: block;
  width: 100%;
  height: 100%;
  text-align: left !important;
  padding: 1.15rem 1.1rem !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
  color: inherit !important;
}
.tvf-board-card-btn h3 {
  font-family: var(--tvf-serif) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: var(--tvf-black) !important;
  margin: 0 0 0.35rem !important;
}
.tvf-board-card-btn p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--tvf-muted);
  margin: 0;
}
.tvf-recent-posts {
  border-top: 1px solid var(--tvf-line);
  padding-top: 1.5rem;
}
.tvf-recent-posts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.tvf-recent-posts-head h3 {
  font-family: var(--tvf-serif) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: var(--tvf-black) !important;
  margin: 0 !important;
}
.tvf-btn-sm {
  padding: 0.4rem 0.85rem !important;
  font-size: 0.8rem !important;
}
.tvf-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tvf-recent-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left !important;
  padding: 0.7rem 0.35rem !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tvf-line) !important;
  border-radius: 0 !important;
  cursor: pointer;
  color: inherit !important;
}
.tvf-recent-item:hover .tvf-recent-title {
  color: var(--tvf-blue-dark) !important;
}
.tvf-recent-item-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}
.tvf-recent-board {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tvf-blue-dark);
  background: rgba(91, 155, 213, 0.12);
  padding: 0.15rem 0.45rem;
}
.tvf-recent-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tvf-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tvf-recent-new {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: #c45c5c;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}
.tvf-recent-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--tvf-muted);
}
.tvf-recent-empty {
  padding: 1.5rem 0;
  color: var(--tvf-muted);
  font-size: 0.95rem;
}

/* Soften stock board pages under TVF chrome */
.tvf-board-section,
[class*="board"] .tvf-section-title {
  /* keep branding consistent */
}

/* ===== Desktop Header logo size override (G7 Header hardcodes h-8 / bar h-16) ===== */
header.sticky .flex.items-center.justify-between.h-16,
header.sticky .flex.items-center.justify-between.h-20,
header.sticky div.flex.items-center.justify-between {
  min-height: 6.5rem !important;
  height: auto !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
header.sticky button img.h-8,
header.sticky img.h-8,
header.sticky img.tvf-nav-logo,
header.sticky a img,
header.sticky button img {
  height: 4.5rem !important;
  width: auto !important;
  max-width: 520px !important;
  object-fit: contain !important;
  background: transparent !important;
}
@media (min-width: 1024px) {
  header.sticky button img.h-8,
  header.sticky img.h-8,
  header.sticky img.tvf-nav-logo,
  header.sticky button img {
    height: 5rem !important;
    max-width: 560px !important;
  }
}
/* Mobile header logo */
.tvf-nav-logo {
  height: 4rem !important;
  width: auto !important;
  max-width: 360px !important;
  object-fit: contain !important;
}
@media (min-width: 768px) {
  .tvf-nav-logo {
    height: 4.5rem !important;
    max-width: 440px !important;
  }
}

/* ——— 정회원 디렉터리 (/page/membership) ——— */
.tvf-member-directory {
  background: var(--tvf-white);
  color: var(--tvf-ink);
}
.tvf-member-hero {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
}
.tvf-member-kicker {
  font-family: var(--tvf-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--tvf-blue);
  margin-bottom: 0.75rem;
}
.tvf-member-title {
  font-family: var(--tvf-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--tvf-black);
  margin: 0 0 1rem;
  line-height: 1.25;
}
.tvf-member-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--tvf-ink);
  margin: 1.25rem auto 0.75rem;
  max-width: 40rem;
}
.tvf-member-note {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--tvf-muted);
  margin: 0 auto 1.5rem;
  max-width: 40rem;
}
.tvf-member-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.tvf-member-body {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}
.tvf-member-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tvf-line);
}
.tvf-member-section-title {
  font-family: var(--tvf-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tvf-black);
  margin: 0;
  margin-right: auto;
}
.tvf-member-count {
  font-size: 0.875rem;
  color: var(--tvf-muted);
  margin: 0;
}
.tvf-member-search {
  width: 100%;
  max-width: 22rem;
}
.tvf-member-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tvf-member-chip {
  appearance: none;
  border: 1px solid var(--tvf-line);
  background: var(--tvf-white);
  color: var(--tvf-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tvf-member-chip:hover {
  border-color: var(--tvf-blue);
  color: var(--tvf-blue-dark);
}
.tvf-member-chip-active {
  background: var(--tvf-blue);
  border-color: var(--tvf-blue);
  color: var(--tvf-white);
}
.tvf-member-chip-active:hover {
  background: var(--tvf-blue-dark);
  border-color: var(--tvf-blue-dark);
  color: var(--tvf-white);
}
.tvf-member-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .tvf-member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tvf-member-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tvf-member-card {
  background: var(--tvf-white);
  border: 1px solid var(--tvf-line);
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 7.5rem;
}
.tvf-member-card:hover {
  border-color: var(--tvf-blue);
  box-shadow: 0 6px 20px rgba(91, 155, 213, 0.12);
  transform: translateY(-1px);
}
.tvf-member-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.tvf-member-name {
  font-family: var(--tvf-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--tvf-black);
  margin: 0;
  line-height: 1.3;
}
.tvf-member-specialty {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tvf-blue-dark);
  background: rgba(91, 155, 213, 0.12);
  border: 1px solid rgba(91, 155, 213, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}
.tvf-member-meta {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--tvf-muted);
  margin: 0;
}
.tvf-member-loading,
.tvf-member-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--tvf-muted);
  border: 1px dashed var(--tvf-line);
  border-radius: 0.75rem;
  background: var(--tvf-cream);
}
.tvf-member-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.tvf-member-footnote {
  margin-top: 2rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--tvf-muted);
  text-align: center;
}
/* 정회원 게시글 상세 본문 */
.tvf-member-fields {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tvf-ink);
}
.tvf-member-label {
  font-weight: 600;
  color: var(--tvf-blue-dark);
  margin-right: 0.35rem;
}

/* ——— 임원진 (Officers) ——— */
.tvf-officers-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.tvf-officers {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 2.5rem;
}
.tvf-officers-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.tvf-officers-kicker {
  font-family: var(--tvf-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--tvf-blue);
  margin: 0 0 0.5rem;
}
.tvf-officers-title {
  font-family: var(--tvf-serif);
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 600;
  color: var(--tvf-black);
  margin: 0 0 0.65rem;
  line-height: 1.25;
}
.tvf-officers-lead {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--tvf-muted);
  margin: 0 auto;
  max-width: 36rem;
}
.tvf-officers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .tvf-officers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tvf-officers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.tvf-officer-card {
  background: var(--tvf-white);
  border: 1px solid var(--tvf-line);
  border-radius: 0.85rem;
  padding: 1.5rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tvf-officer-card:hover {
  border-color: var(--tvf-blue);
  box-shadow: 0 8px 24px rgba(91, 155, 213, 0.14);
  transform: translateY(-2px);
}
.tvf-officer-photo {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: var(--tvf-cream);
  border: 2px solid var(--tvf-line);
  margin-bottom: 0.55rem;
  display: block;
}
.tvf-officer-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tvf-white);
  background: var(--tvf-black);
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
  margin-bottom: 0.15rem;
}
.tvf-officer-name {
  font-family: var(--tvf-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tvf-black);
  margin: 0;
  line-height: 1.3;
}
.tvf-officer-meta {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--tvf-muted);
  margin: 0.15rem 0 0;
  max-width: 16rem;
}
.tvf-officers-note {
  margin: 1.25rem auto 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--tvf-muted);
  text-align: center;
  max-width: 40rem;
}

html.dark .tvf-officer-card,
html[data-theme="dark"] .tvf-officer-card {
  background: #1f2937;
  border-color: var(--tvf-line);
  color: var(--tvf-ink);
}
html.dark .tvf-officer-role,
html[data-theme="dark"] .tvf-officer-role {
  background: var(--tvf-blue);
  color: #0b1220;
}
html.dark .tvf-officer-photo,
html[data-theme="dark"] .tvf-officer-photo {
  border-color: var(--tvf-line);
  background: #111827;
}


/* ——— 임원 카드 클릭 ——— */
.tvf-officer-card-link {
  cursor: pointer;
}
.tvf-officer-card-link:focus-visible {
  outline: 2px solid var(--tvf-blue);
  outline-offset: 2px;
}
.tvf-officer-more {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tvf-blue-dark);
}

/* ——— 임원 상세 페이지 ——— */
.tvf-officer-detail {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}
.tvf-officer-detail-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tvf-officer-detail-back {
  align-self: flex-start;
}
.tvf-officer-detail-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 1.25rem 0 0.5rem;
}
@media (min-width: 640px) {
  .tvf-officer-detail-hero {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.75rem;
  }
}
.tvf-officer-detail-photo {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: var(--tvf-cream);
  border: 3px solid var(--tvf-line);
  flex-shrink: 0;
  display: block;
}
.tvf-officer-detail-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
@media (min-width: 640px) {
  .tvf-officer-detail-identity {
    align-items: flex-start;
  }
}
.tvf-officer-detail-kicker {
  font-family: var(--tvf-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--tvf-blue);
  margin: 0;
}
.tvf-officer-detail-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tvf-white);
  background: var(--tvf-black);
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
}
.tvf-officer-detail-name {
  font-family: var(--tvf-serif);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 600;
  color: var(--tvf-black);
  margin: 0.15rem 0 0;
  line-height: 1.2;
}
.tvf-officer-detail-meta {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--tvf-muted);
  margin: 0.25rem 0 0;
}
.tvf-officer-detail-divider {
  margin: 0.25rem 0 0.5rem;
}
.tvf-officer-detail-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tvf-officer-detail-section-title {
  font-family: var(--tvf-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--tvf-black);
  margin: 0.85rem 0 0.15rem;
}
.tvf-officer-detail-intro {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--tvf-ink);
  margin: 0;
}
.tvf-officer-detail-career {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: var(--tvf-cream);
  border: 1px solid var(--tvf-line);
  border-radius: 0.75rem;
}
.tvf-officer-detail-career-item {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--tvf-ink);
  margin: 0;
}
.tvf-officer-detail-note {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--tvf-muted);
  margin: 0.5rem 0 0;
}
.tvf-officer-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

html.dark .tvf-officer-detail-photo,
html[data-theme="dark"] .tvf-officer-detail-photo {
  border-color: var(--tvf-line);
  background: #111827;
}
html.dark .tvf-officer-detail-role,
html[data-theme="dark"] .tvf-officer-detail-role {
  background: var(--tvf-blue);
  color: #0b1220;
}
html.dark .tvf-officer-detail-career,
html[data-theme="dark"] .tvf-officer-detail-career {
  background: #1f2937;
  border-color: var(--tvf-line);
}

/* ——— Dark mode (html.dark / data-theme=dark) ———
   TVF chrome forced light tokens; remap so dark: pages stay readable. */
html.dark,
html[data-theme="dark"] {
  /* Hierarchy (no gradients): page darkest → section → card → footer distinct */
  --tvf-bg: #0a1220;
  --tvf-surface: #152338;
  --tvf-surface-alt: #101c30; /* chapter/section band — NOT white paper */
  --tvf-text: #e6edf5;
  --tvf-text-strong: #f3f7fb;
  --tvf-text-muted: #c5d0de; /* readable body on navy */
  --tvf-text-secondary: #a9b7c9;
  --tvf-text-subtle: #8fa0b4;
  --tvf-border: #3d5470;
  --tvf-accent: #7eb3e0;
  --tvf-accent-strong: #93c5e8;
  --tvf-button-primary-bg: #e6edf5;
  --tvf-button-primary-fg: #0a1220;
  --tvf-button-primary-hover: #93c5e8;
  --tvf-button-secondary-bg: transparent;
  --tvf-button-secondary-fg: #e6edf5;
  --tvf-button-secondary-border: #4a6582;
  --tvf-footer-bg: #0d1829; /* muted navy, distinct from page */
  --tvf-hero-bg: #0c1526;
  --tvf-cta-bg: #060d18; /* boundary vs page bg */
  --tvf-hover-wash: rgba(21, 35, 56, 0.85);
  --tvf-input-bg: var(--tvf-bg);
  --tvf-input-border: var(--tvf-border);

  /* Legacy aliases → semantic (keeps existing var() call sites working) */
  --tvf-black: var(--tvf-text-strong);
  --tvf-ink: var(--tvf-text);
  --tvf-muted: var(--tvf-text-secondary);
  --tvf-line: var(--tvf-border);
  --tvf-blue: var(--tvf-accent);
  --tvf-blue-dark: var(--tvf-accent-strong);
  --tvf-cream: var(--tvf-footer-bg);
  --tvf-white: var(--tvf-bg);
  --tvf-navy: #9ec0e0;
  color-scheme: dark;
}

html.dark body,
html.dark #app,
html[data-theme="dark"] body,
html[data-theme="dark"] #app {
  color: var(--tvf-text) !important;
  background: var(--tvf-bg) !important;
}

html.dark .min-h-screen.bg-gray-50,
html.dark .min-h-screen.flex.flex-col.bg-gray-50,
html.dark .min-h-screen.bg-gray-50.dark\:bg-gray-900,
html[data-theme="dark"] .min-h-screen.bg-gray-50 {
  background: var(--tvf-bg) !important;
}

html.dark .tvf-hero,
html[data-theme="dark"] .tvf-hero {
  background: var(--tvf-hero-bg) !important;
}

/* Stock page cards / board chrome often get dark:bg + TVF black titles */
html.dark .bg-white,
html[data-theme="dark"] .bg-white {
  background-color: var(--tvf-surface) !important;
}
html.dark .text-gray-900,
html.dark .text-gray-800,
html.dark .text-gray-700,
html[data-theme="dark"] .text-gray-900,
html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-gray-700 {
  color: var(--tvf-ink) !important;
}
html.dark .text-gray-600,
html.dark .text-gray-500,
html.dark .text-gray-400,
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-gray-500 {
  color: var(--tvf-muted) !important;
}
html.dark .border-gray-200,
html.dark .border-gray-300,
html[data-theme="dark"] .border-gray-200,
html[data-theme="dark"] .border-gray-300 {
  border-color: var(--tvf-line) !important;
}

/* Member directory cards already use CSS vars; tighten chip/empty states */
html.dark .tvf-member-chip,
html[data-theme="dark"] .tvf-member-chip {
  background: var(--tvf-surface);
  border-color: var(--tvf-border);
  color: var(--tvf-text) !important;
}
html.dark .tvf-member-chip-active,
html[data-theme="dark"] .tvf-member-chip-active {
  background: rgba(126, 179, 224, 0.2);
  border-color: var(--tvf-blue);
  color: var(--tvf-blue-dark) !important;
}
html.dark .tvf-member-card,
html[data-theme="dark"] .tvf-member-card {
  background: var(--tvf-surface);
  border-color: var(--tvf-border);
  color: var(--tvf-text);
}
html.dark .tvf-member-empty,
html[data-theme="dark"] .tvf-member-empty {
  color: var(--tvf-muted);
}

/* Keep CTA band intentionally dark on dark mode too */
html.dark .tvf-cta,
html[data-theme="dark"] .tvf-cta {
  background: var(--tvf-cta-bg) !important;
  color: #fff !important;
  border-top-color: rgba(255,255,255,0.08);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* Prose / CMS HTML inside pages */
html.dark .prose,
html.dark .prose p,
html.dark .prose li,
html.dark .prose h1,
html.dark .prose h2,
html.dark .prose h3,
html[data-theme="dark"] .prose,
html[data-theme="dark"] .prose p,
html[data-theme="dark"] .prose li {
  color: var(--tvf-ink) !important;
}

/* Header icon buttons: stock gray on dark */
html.dark header button,
html[data-theme="dark"] header button {
  color: var(--tvf-ink) !important;
}
html.dark header .text-gray-600,
html.dark header .text-gray-700,
html[data-theme="dark"] header .text-gray-600 {
  color: var(--tvf-muted) !important;
}


/* ——— Dark-mode logos (white versions) ——— */
.tvf-nav-logo-dark,
.tvf-hero-logo-dark {
  display: none !important;
}
html.dark .tvf-nav-logo-light,
html[data-theme="dark"] .tvf-nav-logo-light,
html.dark .tvf-hero-logo-light,
html[data-theme="dark"] .tvf-hero-logo-light {
  display: none !important;
}
html.dark .tvf-nav-logo-dark,
html[data-theme="dark"] .tvf-nav-logo-dark {
  display: block !important;
  height: 4.5rem !important;
  width: auto !important;
  max-width: 520px !important;
  object-fit: contain !important;
  background: transparent !important;
}
@media (min-width: 1024px) {
  html.dark .tvf-nav-logo-dark,
  html[data-theme="dark"] .tvf-nav-logo-dark {
    height: 5rem !important;
    max-width: 560px !important;
  }
}
html.dark .tvf-hero-logo-dark,
html[data-theme="dark"] .tvf-hero-logo-dark {
  display: block !important;
  margin-left: auto;
  margin-right: auto;
}

/* Member card body text contrast in dark mode */
html.dark .tvf-member-meta,
html[data-theme="dark"] .tvf-member-meta,
html.dark .tvf-member-card .tvf-member-meta,
html[data-theme="dark"] .tvf-member-card p,
html.dark .tvf-member-card p {
  color: #d1d5db !important;
}
html.dark .tvf-member-card .tvf-member-name,
html[data-theme="dark"] .tvf-member-card .tvf-member-name {
  color: #f9fafb !important;
}


/* Header 컴포넌트는 logo prop 1개뿐 → 다크에서 흰 가로 로고로 교체 */
html.dark header img.tvf-nav-logo:not(.tvf-nav-logo-dark),
html[data-theme="dark"] header img.tvf-nav-logo:not(.tvf-nav-logo-dark),
html.dark img.tvf-nav-logo:not(.tvf-nav-logo-light):not(.tvf-nav-logo-dark),
html[data-theme="dark"] img.tvf-nav-logo:not(.tvf-nav-logo-light):not(.tvf-nav-logo-dark) {
  content: url("/assets/tvf/tvf-korea-logo-horizontal-dark.png?v=5");
}

/* === TVF nav dropdowns === */
.tvf-nav-item.tvf-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.tvf-nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.tvf-nav-dropdown-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
  margin-top: 1px;
}
.tvf-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 11rem;
  padding: 0.4rem 0;
  margin: 0;
  background: var(--tvf-white, #ffffff);
  border: 1px solid var(--tvf-line, #e5e7eb);
  border-radius: 2px;
  box-shadow: none;
  z-index: 70;
}
.tvf-nav-dropdown:hover .tvf-nav-dropdown-menu,
.tvf-nav-dropdown:focus-within .tvf-nav-dropdown-menu {
  display: block;
}
.tvf-nav-dropdown-link {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--tvf-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--tvf-ink) !important;
  text-decoration: none !important;
  padding: 0.55rem 1rem;
  border: 0;
  border-bottom: none !important;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.tvf-nav-dropdown-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--tvf-blue-dark, #1e3a8a) !important;
  border-bottom-color: transparent !important;
}

/* Dark mode dropdown */
html.dark .tvf-nav-dropdown-menu,
html[data-theme="dark"] .tvf-nav-dropdown-menu {
  background: var(--tvf-surface);
  border-color: var(--tvf-border);
  box-shadow: none;
}
html.dark .tvf-nav-dropdown-link,
html[data-theme="dark"] .tvf-nav-dropdown-link {
  color: var(--tvf-text) !important;
}
html.dark .tvf-nav-dropdown-link:hover,
html[data-theme="dark"] .tvf-nav-dropdown-link:hover {
  background: rgba(126, 179, 224, 0.12);
  color: var(--tvf-accent-strong) !important;
}

/* Touch / keyboard: keep menu usable when focus moves into it */
@media (hover: none) {
  .tvf-nav-dropdown.is-open .tvf-nav-dropdown-menu,
  .tvf-nav-dropdown:focus-within .tvf-nav-dropdown-menu {
    display: block;
  }
}


/* ===== Homepage polish v12 — quiet research-institution feel ===== */

.tvf-section-alt {
  max-width: none;
  width: 100%;
  background: var(--tvf-surface-alt);
  border-top: 1px solid var(--tvf-border);
  border-bottom: 1px solid var(--tvf-border);
  padding: 5rem max(1.5rem, calc((100% - 72rem) / 2 + 1.5rem));
}
.tvf-section + .tvf-section-alt,
.tvf-section-alt + .tvf-section {
  border-top-color: transparent;
}
.tvf-section-alt .tvf-section-body {
  max-width: 52rem;
}

.tvf-global {
  text-align: center;
  padding-top: 3.75rem;
  padding-bottom: 3.75rem;
}
.tvf-global .tvf-section-title {
  margin-bottom: 0.85rem !important;
}
.tvf-global-body {
  margin: 0 auto 0.55rem;
  max-width: 40rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.tvf-global-axes {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--tvf-blue-dark);
  font-weight: 500;
}

.tvf-cta {
  padding: 4.25rem 1.5rem;
}
.tvf-cta p {
  max-width: 38rem;
  font-size: 0.98rem;
}

.tvf-board-card {
  background: var(--tvf-surface);
  border: 1px solid var(--tvf-border);
  border-radius: 2px;
  box-shadow: none;
  min-height: 6.75rem;
}
.tvf-board-card-btn {
  padding: 1.25rem 1.2rem !important;
}

.tvf-recent-item {
  padding: 0.8rem 0.5rem !important;
  transition: background 0.12s ease;
}
.tvf-recent-item:hover {
  background: var(--tvf-hover-wash) !important;
}
.tvf-recent-board {
  background: transparent;
  border: 1px solid rgba(91, 155, 213, 0.35);
  color: var(--tvf-blue-dark);
  font-weight: 500;
}

/* Primary nav: 1px underline feel */
.tvf-primary-nav a,
.tvf-nav-link {
  border-bottom-width: 1px;
}

/* De-emphasize Powered by */
footer .mt-8.pt-8 > p:last-child,
footer p:has(+ *) + p {
  font-size: 0.7rem !important;
  opacity: 0.42;
  letter-spacing: 0.01em;
}
footer .mt-8.pt-8 p:last-child {
  font-size: 0.7rem !important;
  opacity: 0.42;
}

/* Content rhythm between major home blocks */
.tvf-home > .tvf-hero + .tvf-section {
  padding-top: 5rem;
}

@media (max-width: 767px) {
  .tvf-hero {
    padding: 3.25rem 1.15rem 3rem;
  }
  .tvf-hero-logo {
    width: min(260px, 68vw);
    margin-bottom: 1.35rem;
  }
  .tvf-hero-title {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem) !important;
    line-height: 1.4 !important;
    max-width: 20.5rem;
  }
  .tvf-hero-lead {
    font-size: 0.95rem;
    margin-bottom: 1.6rem;
  }
  .tvf-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 18rem;
    margin: 0 auto;
  }
  .tvf-hero-actions .tvf-btn-primary,
  .tvf-hero-actions .tvf-btn-ghost {
    width: 100%;
  }
  .tvf-section {
    padding: 3.25rem 1.15rem;
  }
  .tvf-section-alt {
    padding: 3.5rem 1.15rem;
  }
  .tvf-pillars {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .tvf-pillar {
    min-height: 0;
    padding: 1.35rem 1.15rem;
  }
  .tvf-board-section .tvf-board-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .tvf-board-card-btn h3 {
    font-size: 1rem !important;
  }
  .tvf-board-card-btn p {
    font-size: 0.78rem;
  }
  .tvf-recent-item {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .tvf-recent-title {
    font-size: 0.88rem;
  }
  .tvf-recent-date {
    font-size: 0.72rem;
  }
  .tvf-cta {
    padding: 3rem 1.15rem;
  }
  .tvf-cta .tvf-hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 16rem;
    margin-left: auto;
    margin-right: auto;
  }
  .tvf-global {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }
  .tvf-global-axes {
    letter-spacing: 0.03em;
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .tvf-board-section .tvf-board-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== v13 second polish: nav / hubs / membership intro / page shell ===== */

/* Primary nav: spacing, weight, hover, active alignment */
.tvf-primary-nav {
  background: var(--tvf-surface);
  border-bottom: 1px solid var(--tvf-border);
}
.tvf-primary-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: 3.15rem;
  gap: 0.15rem;
  justify-content: center;
  align-items: stretch;
}
.tvf-primary-nav a,
.tvf-nav-link {
  font-family: var(--tvf-sans);
  font-size: 0.86rem;
  font-weight: 550;
  letter-spacing: 0.045em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 0.95rem;
  color: var(--tvf-ink) !important;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.tvf-primary-nav a:hover,
.tvf-nav-link:hover {
  color: var(--tvf-blue-dark) !important;
  border-bottom-color: var(--tvf-blue);
  background: transparent;
}
.tvf-primary-nav a:focus-visible,
.tvf-nav-link:focus-visible,
.tvf-nav-dropdown-link:focus-visible {
  outline: 2px solid rgba(91, 155, 213, 0.45);
  outline-offset: 2px;
}
.tvf-nav-link[aria-current="page"],
.tvf-nav-link.is-active,
.tvf-primary-nav a[aria-current="page"] {
  color: var(--tvf-navy) !important;
  border-bottom-color: var(--tvf-navy);
  font-weight: 600;
}

.tvf-nav-item.tvf-nav-dropdown {
  display: inline-flex;
  align-items: stretch;
}
.tvf-nav-dropdown-trigger {
  gap: 0.35rem;
}
.tvf-nav-dropdown-trigger::after {
  font-size: 0.55rem;
  margin-left: 0.2rem;
  opacity: 0.55;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.tvf-nav-dropdown:hover .tvf-nav-dropdown-trigger::after,
.tvf-nav-dropdown:focus-within .tvf-nav-dropdown-trigger::after {
  opacity: 0.9;
}
.tvf-nav-dropdown-menu {
  min-width: 11.5rem;
  padding: 0.4rem 0;
  border: 1px solid var(--tvf-line);
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.08);
  top: calc(100% - 1px);
}
.tvf-nav-dropdown-link {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.65rem 1rem;
  color: var(--tvf-ink) !important;
  border-left: 2px solid transparent;
}
.tvf-nav-dropdown-link:hover {
  color: var(--tvf-accent-strong) !important;
  background: var(--tvf-surface-alt) !important;
  border-left-color: var(--tvf-accent);
}

/* Hub pages: events / resources */
.tvf-hub {
  width: 100%;
  max-width: none;
}
.flex-1 > .max-w-7xl:has(.tvf-hub),
.flex-1 .max-w-7xl:has(.tvf-hub),
.flex-1 > .max-w-7xl:has(.tvf-member-directory),
.flex-1 .max-w-7xl:has(.tvf-member-directory) {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.tvf-hub-hero,
.tvf-member-intro,
.tvf-hub-body {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.tvf-hub-hero {
  text-align: center;
  padding-top: 3.75rem;
  padding-bottom: 2.75rem;
  background: var(--tvf-surface-alt);
  border-bottom: 1px solid var(--tvf-border);
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.tvf-hub-hero > * {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.tvf-hub-kicker {
  font-family: var(--tvf-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tvf-blue);
  margin-bottom: 0.7rem;
}
.tvf-hub-title {
  font-family: var(--tvf-serif) !important;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem) !important;
  font-weight: 600 !important;
  color: var(--tvf-navy) !important;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}
.tvf-hub-lead {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--tvf-ink);
  margin: 1.1rem auto 0.75rem;
}
.tvf-hub-note {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--tvf-muted);
  margin: 0 auto 1.35rem;
}
.tvf-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 0.35rem;
}
.tvf-hub-body {
  padding-top: 3.25rem;
  padding-bottom: 4rem;
}
.tvf-hub-section-title {
  font-family: var(--tvf-serif) !important;
  font-size: 1.45rem !important;
  font-weight: 600 !important;
  color: var(--tvf-navy) !important;
  margin-bottom: 0.55rem;
}
.tvf-hub-section-lead {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--tvf-muted);
  max-width: 40rem;
  margin-bottom: 1.75rem;
}
.tvf-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}
@media (min-width: 640px) {
  .tvf-hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .tvf-hub-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.tvf-hub-card {
  border: 1px solid var(--tvf-line);
  background: var(--tvf-white);
  padding: 1.35rem 1.25rem;
  border-radius: 2px;
  min-height: 8.5rem;
}
.tvf-hub-card h3 {
  font-family: var(--tvf-serif) !important;
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  color: var(--tvf-navy) !important;
  margin-bottom: 0.55rem;
}
.tvf-hub-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--tvf-muted);
  margin: 0;
}
.tvf-hub-aside {
  border-top: 1px solid var(--tvf-line);
  padding-top: 2rem;
  max-width: 44rem;
}
.tvf-hub-aside h3 {
  font-family: var(--tvf-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: var(--tvf-navy) !important;
  margin-bottom: 0.75rem;
}
.tvf-hub-aside p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--tvf-ink);
  margin-bottom: 0.65rem;
}
.tvf-hub-aside .tvf-hub-actions {
  justify-content: flex-start;
  margin-top: 1.1rem;
}

/* Membership soft intro */
.tvf-member-intro {
  padding-top: 2.75rem;
  padding-bottom: 0.5rem;
}
.tvf-member-soft-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0 2.5rem;
}
@media (min-width: 768px) {
  .tvf-member-soft-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tvf-member-soft-card-wide {
    grid-column: 1 / -1;
  }
}
.tvf-member-soft-card {
  border: 1px solid var(--tvf-border);
  background: var(--tvf-surface-alt);
  padding: 1.25rem 1.2rem;
  border-radius: 2px;
}
.tvf-member-soft-card h3 {
  font-family: var(--tvf-serif) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: var(--tvf-navy) !important;
  margin-bottom: 0.45rem;
}
.tvf-member-soft-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--tvf-muted);
  margin: 0;
}
.tvf-member-dir-head {
  border-top: 1px solid var(--tvf-line);
  padding-top: 2.25rem;
  margin-bottom: 0.25rem;
}
.tvf-member-dir-head .tvf-hub-kicker {
  text-align: left;
  margin-bottom: 0.35rem;
}
.tvf-member-dir-head .tvf-member-section-title {
  margin-bottom: 0.35rem;
}
.tvf-member-hero .tvf-member-title {
  color: var(--tvf-navy) !important;
}

/* Generic page shell (about/mission/contact) */
.tvf-page-wrap {
  background: var(--tvf-white);
}
.tvf-page-shell {
  max-width: 46rem;
  margin: 0 auto;
  border: 1px solid var(--tvf-line);
  border-radius: 2px;
  box-shadow: none !important;
  background: var(--tvf-white) !important;
}
.tvf-page-title {
  font-family: var(--tvf-serif) !important;
  font-weight: 600 !important;
  color: var(--tvf-navy) !important;
  letter-spacing: -0.01em;
}
.tvf-page-shell .prose,
.tvf-page-shell p,
.tvf-page-shell li {
  font-family: var(--tvf-sans);
  line-height: 1.75;
  color: var(--tvf-ink);
}
.tvf-page-shell a {
  color: var(--tvf-blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Home community clarity: slightly quieter board card meta */
.tvf-board-card-btn p {
  color: var(--tvf-muted);
}

/* Header row alignment with primary nav */
header.sticky .tvf-nav-logo,
header.block .tvf-nav-logo {
  display: block;
}
@media (min-width: 1024px) {
  .tvf-primary-nav-inner {
    padding: 0 1.75rem;
    gap: 0.2rem;
  }
  .tvf-primary-nav a,
  .tvf-nav-link {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }
}

@media (max-width: 767px) {
  .tvf-hub-hero {
    padding-top: 2.75rem;
    padding-bottom: 2.25rem;
  }
  .tvf-hub-body {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }
  .tvf-hub-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 16.5rem;
    margin-left: auto;
    margin-right: auto;
  }
  .tvf-hub-aside .tvf-hub-actions {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .tvf-member-intro {
    padding-top: 2rem;
  }
}

html.dark .tvf-hub-card,
html[data-theme="dark"] .tvf-hub-card,
html.dark .tvf-member-soft-card,
html[data-theme="dark"] .tvf-member-soft-card,
html.dark .tvf-page-shell,
html[data-theme="dark"] .tvf-page-shell {
  background: var(--tvf-surface) !important;
  border-color: var(--tvf-border) !important;
}
html.dark .tvf-hub-hero,
html[data-theme="dark"] .tvf-hub-hero {
  background: var(--tvf-hero-bg) !important;
}
html.dark .tvf-hub-title,
html[data-theme="dark"] .tvf-hub-title,
html.dark .tvf-hub-card h3,
html[data-theme="dark"] .tvf-hub-card h3,
html.dark .tvf-page-title,
html[data-theme="dark"] .tvf-page-title {
  color: var(--tvf-text-strong) !important;
}

/* ===== v14 polish: header hierarchy, type, spacing, chrome ===== */

/* Main nav should read clearer than utility/search */
.tvf-primary-nav a,
.tvf-nav-link {
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  color: var(--tvf-ink) !important;
}
.tvf-primary-nav-inner {
  min-height: 3.25rem;
}

/* Narrow desktop search so it doesn't bury the chrome hierarchy */
@media (min-width: 768px) {
  header form.flex.flex-1.max-w-lg,
  header form.max-w-lg {
    max-width: 15.5rem !important;
    flex: 0 1 15.5rem !important;
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
  header form.max-w-lg input {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    font-size: 0.875rem !important;
    border-radius: 2px !important;
    border-color: var(--tvf-input-border) !important;
    background: var(--tvf-input-bg) !important;
    color: var(--tvf-text) !important;
  }
  header form.max-w-lg input:focus {
    background: var(--tvf-surface) !important;
    border-color: var(--tvf-accent) !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
  }
}

/* Remove shop chrome: cart parent (order-inquiry removed in Header.tsx) */
header button:has(.fa-shopping-cart),
header button:has(i[aria-label="shopping cart"]),
header a:has(.fa-shopping-cart),
header a[href*="/cart"],
header button[aria-label="shopping cart"] {
  display: none !important;
}
/* Soft-hide theme toggle "settings-like" chrome for general users — keep language */
/* (theme toggle kept; only shop/settings-admin chrome removed) */

/* Mobile drawer: hide guest order inquiry link/button */
a[href="/login?redirect=/mypage/orders"],
a[href*="redirect=/mypage/orders"],
button[onclick*="mypage/orders"] {
  display: none !important;
}

/* Hero: intentional line breaks via block spans; readable lead */
.tvf-hero-title {
  max-width: 42rem !important;
}
.tvf-hero-title-line {
  display: block;
}
.tvf-hero-lead {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: var(--tvf-text-muted) !important;
  max-width: 42rem;
}
@media (max-width: 767px) {
  .tvf-hero-lead {
    font-size: 0.98rem !important;
    color: var(--tvf-text-secondary) !important;
  }
}

/* WHAT WE DO cards: slightly larger/darker body, tighter title gap, equal height */
.tvf-pillar {
  display: flex;
  flex-direction: column;
  min-height: 11.5rem;
  height: 100%;
}
.tvf-pillar h3 {
  margin: 0 0 0.4rem !important;
}
.tvf-pillar p {
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
  color: var(--tvf-text-muted) !important;
  flex: 1;
}

/* Chapter band: reduce floaty padding ~12% */
.tvf-section-alt {
  padding-top: 4.4rem;
  padding-bottom: 4.4rem;
}
.tvf-section-alt .tvf-section-body {
  max-width: 48rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--tvf-text-muted);
}
@media (max-width: 767px) {
  .tvf-section-alt {
    padding-top: 3.1rem;
    padding-bottom: 3.1rem;
  }
}

/* Community cards: keep quiet; readable subtitles */
.tvf-board-card-btn p {
  font-size: 0.88rem !important;
  line-height: 1.55;
  color: var(--tvf-text-secondary);
}
.tvf-board-card-btn h3 {
  margin-bottom: 0.3rem !important;
}

/* Recent posts: title > meta; subtle hover only */
.tvf-recent-title {
  font-size: 0.98rem !important;
  font-weight: 550;
  color: var(--tvf-ink) !important;
}
.tvf-recent-author,
.tvf-recent-meta,
.tvf-recent-item .tvf-recent-author {
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  color: var(--tvf-text-subtle) !important;
}
.tvf-recent-date {
  font-size: 0.78rem !important;
  color: var(--tvf-text-subtle) !important;
}
.tvf-recent-item:hover {
  background: var(--tvf-hover-wash) !important;
}
.tvf-recent-item:hover .tvf-recent-title {
  color: var(--tvf-blue-dark) !important;
}

/* Global Connection: quieter, less floaty (~12%) */
.tvf-global {
  padding-top: 3.3rem !important;
  padding-bottom: 3.3rem !important;
}
@media (max-width: 767px) {
  .tvf-global {
    padding-top: 2.4rem !important;
    padding-bottom: 2.4rem !important;
  }
}

/* Footer: readable labels; hide Powered by */
footer {
  font-size: 0.9rem !important;
}
footer a {
  font-size: 0.875rem !important;
  line-height: 1.7 !important;
  color: var(--tvf-text-muted) !important;
}
footer h3,
footer h4 {
  font-size: 0.95rem !important;
  margin-bottom: 0.65rem !important;
}
footer .mt-8.pt-8 > p:last-child,
footer p:has(+ *) + p,
footer .mt-8.pt-8 p:last-child {
  display: none !important;
  font-size: 0 !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Body rhythm */
.tvf-section-body,
.tvf-home p {
  line-height: 1.7;
}
.tvf-section {
  font-size: 15.5px;
}
@media (min-width: 768px) {
  .tvf-section {
    font-size: 16px;
  }
  .tvf-section-body {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--tvf-text-muted);
  }
}


/* ===== v15 final pre-launch polish ===== */

/* Body typography */
body, #app {
  font-size: 15.5px;
  line-height: 1.7;
}
@media (min-width: 1024px) {
  body, #app {
    font-size: 16px;
    line-height: 1.75;
  }
}

/* Institutional page sections (about/mission/contact) */
.tvf-inst-section {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--tvf-line);
}
.tvf-inst-section:last-of-type {
  border-bottom: 0;
}
.tvf-inst-eyebrow {
  font-family: var(--tvf-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tvf-blue);
  margin: 0 0 0.55rem;
}
.tvf-inst-copy {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--tvf-ink);
  margin: 0.65rem 0 0;
}
.tvf-inst-closing {
  max-width: 42rem;
  margin: 0.5rem auto 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--tvf-line);
}
.tvf-mission-grid {
  grid-template-columns: 1fr !important;
}
@media (min-width: 768px) {
  .tvf-mission-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
.tvf-contact-grid {
  grid-template-columns: 1fr !important;
}
@media (min-width: 768px) {
  .tvf-contact-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
.tvf-contact-card .tvf-inst-eyebrow {
  margin-bottom: 0.75rem;
}
.tvf-contact-card p {
  margin-top: 0.35rem;
}

/* Upcoming events empty state */
.tvf-upcoming {
  margin-bottom: 3rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--tvf-line);
}
.tvf-empty-state {
  border: 1px solid var(--tvf-line);
  background: var(--tvf-cream);
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 2px;
}
.tvf-empty-state-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--tvf-muted);
  line-height: 1.65;
}

/* Resources prep note */
.tvf-resource-prep {
  margin-top: 0.85rem !important;
  font-size: 0.8rem !important;
  color: var(--tvf-muted) !important;
  letter-spacing: 0.02em;
}

/* CMS show page — less document-viewer for guests */
.tvf-page-shell-clean {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.tvf-page-wrap {
  background: var(--tvf-white);
}

/* Boards index polish */
.tvf-boards-index h1 {
  font-family: var(--tvf-serif) !important;
  font-weight: 600 !important;
  color: var(--tvf-navy, #0f2744) !important;
}
.tvf-board-index-card {
  border-radius: 2px !important;
  box-shadow: none !important;
  border-color: var(--tvf-line) !important;
}
.tvf-board-index-card:hover {
  border-color: var(--tvf-blue) !important;
  box-shadow: none !important;
}
.tvf-board-index-title {
  font-family: var(--tvf-serif) !important;
  font-weight: 600 !important;
}
.tvf-board-count {
  color: #4a6d8c !important;
  background: #eef3f8 !important;
  border: 1px solid #d7e3ef !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
  padding: 0.15rem 0.55rem !important;
  font-size: 0.75rem !important;
}
.tvf-board-index-link {
  color: var(--tvf-blue-dark) !important;
  font-weight: 500 !important;
}

/* Officers meta typography */
.tvf-officer-meta {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--tvf-muted);
  letter-spacing: 0.01em;
}

/* Soften member directory meta that still carries raw DB separators */
.tvf-member-meta {
  font-size: 0.86rem;
  line-height: 1.6;
}

/* Hide members board card if filter misses */
.tvf-boards-index a[href="/board/members"],
.tvf-boards-index button[onclick*="members"] {
  /* backup; primary hide is layout if */
}

/* Home Chapter / Global spacing tighten ~10–12% if still floaty */
.tvf-section-alt {
  padding-top: 3.9rem;
  padding-bottom: 3.9rem;
}
.tvf-global {
  padding-top: 2.95rem !important;
  padding-bottom: 2.95rem !important;
}
@media (max-width: 767px) {
  .tvf-section-alt {
    padding-top: 2.85rem;
    padding-bottom: 2.85rem;
  }
  .tvf-global {
    padding-top: 2.2rem !important;
    padding-bottom: 2.2rem !important;
  }
}

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
}
.tvf-hub, .tvf-home, .tvf-officers, .tvf-member-directory {
  max-width: 100%;
  overflow-x: clip;
}

/* Dark mode tweaks for new bits */
html.dark .tvf-empty-state,
html[data-theme="dark"] .tvf-empty-state {
  background: var(--tvf-surface-alt) !important;
  border-color: var(--tvf-border) !important;
  color: var(--tvf-text-muted) !important;
}
html.dark .tvf-board-count,
html[data-theme="dark"] .tvf-board-count {
  color: var(--tvf-accent-strong) !important;
  background: var(--tvf-surface) !important;
  border-color: var(--tvf-border) !important;
}
html.dark .tvf-page-shell-clean,
html[data-theme="dark"] .tvf-page-shell-clean {
  background: transparent !important;
}

/* Hero mobile linebreak: avoid orphan 조사 "를"; keep 공동체를 together */
.tvf-nowrap {
  white-space: nowrap;
}
.tvf-hero-seg {
  display: inline;
}
@media (max-width: 767px) {
  .tvf-hero-seg {
    display: block;
  }
}

/* Past events section spacing */
.tvf-past-events {
  margin: 2.5rem 0 2rem;
}
.tvf-past-events .tvf-hub-section-title {
  margin-bottom: 0.5rem;
}
.tvf-contact-note {
  font-size: 0.9rem;
  color: var(--tvf-muted);
  margin-top: 0.35rem;
}

/* Mobile header utilities: theme / user / hamburger vertical center + theme menu below */
@media (max-width: 767px) {
  #mobile_header,
  #mobile_header_right {
    overflow: visible !important;
  }
  #mobile_header_right {
    display: flex !important;
    align-items: center !important;
    gap: 0.15rem !important;
  }
  /* Keep ThemeToggle wrapper relative for dropdown; do NOT force flex/height
     (flex+fixed height breaks absolute menu static position → clips at viewport top). */
  #mobile_theme_btn {
    position: relative !important;
    display: block !important;
    align-self: center !important;
    height: auto !important;
    line-height: normal !important;
    overflow: visible !important;
  }
  #mobile_header_right button[aria-label="Toggle theme"],
  #mobile_user_btn,
  #mobile_menu_toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem !important;
    min-height: 2.25rem !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }
  #mobile_header_right button[aria-label="Toggle theme"] i,
  #mobile_header_right button[aria-label="Toggle theme"] svg,
  #mobile_user_btn i,
  #mobile_user_btn svg,
  #mobile_menu_toggle i,
  #mobile_menu_toggle svg {
    width: 1.125rem !important;
    height: 1.125rem !important;
    font-size: 1.125rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    vertical-align: middle !important;
  }
  #mobile_header_right button[aria-label="Toggle theme"] i.fa-sun,
  #mobile_header_right button[aria-label="Toggle theme"] i.fa-moon {
    transform: translateY(1px);
  }
  /* Force theme menu fully below the button (never flush/clipped at viewport top) */
  #mobile_theme_btn > .absolute,
  #mobile_theme_btn > [class*="absolute"] {
    top: 100% !important;
    bottom: auto !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 0.5rem !important;
    z-index: 60 !important;
  }
}

/* GLOBAL CONNECTION title: natural mobile breaks; keep 연결 together */
.tvf-global .tvf-section-title,
.tvf-global-title {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}
.tvf-global-title-line {
  display: inline;
}
@media (max-width: 767px) {
  .tvf-global-title-line {
    display: block;
  }
}



/* ========== v17 UX final polish (2026-09-29 KST) ========== */
/* NO font-family / font-weight / webfont changes in this block. */

/* --- P1: Resources — drop per-card prep chrome; keep cards title+desc --- */
.tvf-resource-prep {
  display: none !important;
}
.tvf-hub-section-lead {
  max-width: 40rem;
  margin: 0 0 1.35rem;
  color: var(--tvf-muted);
  line-height: 1.65;
}
.tvf-hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* --- P2: Mobile footer accordion --- */
@media (max-width: 767px) {
  footer.tvf-footer-acc-active .grid,
  footer.tvf-footer-acc-active > div > .grid {
    grid-template-columns: 1fr !important;
    gap: 0.35rem !important;
  }
  footer.tvf-footer-acc-active [data-tvf-footer-acc="brand"] {
    margin-bottom: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--tvf-line);
  }
  footer.tvf-footer-acc-active [data-tvf-footer-acc="group"] {
    border-bottom: 1px solid var(--tvf-line);
    padding: 0;
  }
  footer.tvf-footer-acc-active .tvf-footer-acc-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 !important;
    padding: 0.85rem 0.1rem !important;
    cursor: pointer;
    user-select: none;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
  }
  footer.tvf-footer-acc-active .tvf-footer-acc-btn:focus-visible {
    outline: 2px solid var(--tvf-blue);
    outline-offset: 2px;
  }
  footer.tvf-footer-acc-active .tvf-footer-acc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--tvf-muted);
    flex-shrink: 0;
  }
  footer.tvf-footer-acc-active .tvf-footer-acc-panel {
    display: none;
    margin: 0 !important;
    padding: 0 0.1rem 0.85rem !important;
  }
  footer.tvf-footer-acc-active .tvf-footer-acc-panel.is-open,
  footer.tvf-footer-acc-active [data-tvf-footer-acc="group"].is-open .tvf-footer-acc-panel {
    display: block;
  }
  footer.tvf-footer-acc-active .tvf-footer-acc-panel li + li {
    margin-top: 0.35rem;
  }
}
/* Desktop/tablet: accordion chrome inert */
@media (min-width: 768px) {
  footer .tvf-footer-acc-icon {
    display: none !important;
  }
  footer .tvf-footer-acc-btn {
    cursor: default !important;
  }
  footer .tvf-footer-acc-panel {
    display: block !important;
  }
}

/* --- P3: Mobile spacing ~10–15% tighter (no font-size cuts) --- */
@media (max-width: 767px) {
  .tvf-pillars {
    gap: 0.95rem !important;
    margin-top: 1.85rem !important;
  }
  .tvf-pillar {
    padding: 1.35rem 1.15rem !important;
    min-height: 0 !important;
  }
  .tvf-section-alt {
    padding-top: 2.45rem !important;
    padding-bottom: 2.45rem !important;
  }
  .tvf-board-section .tvf-board-grid {
    gap: 0.7rem !important;
    margin: 1.15rem 0 1.65rem !important;
    grid-template-columns: 1fr !important;
  }
  .tvf-board-card {
    min-height: 0 !important;
  }
  .tvf-board-card-btn {
    padding: 1rem 1rem !important;
  }
  .tvf-board-card-btn p {
    margin-top: 0.2rem !important;
  }
  .tvf-recent-posts {
    margin-top: 0.35rem !important;
    margin-bottom: 0.25rem !important;
    padding-bottom: 0.5rem !important;
  }
  .tvf-board-section {
    padding-bottom: 2.2rem !important;
  }
  .tvf-global {
    padding-top: 1.9rem !important;
    padding-bottom: 1.9rem !important;
    margin-top: 0 !important;
  }
  .tvf-home > .tvf-section + .tvf-section,
  .tvf-home > .tvf-section + .tvf-board-section,
  .tvf-home > .tvf-board-section + .tvf-section {
    /* slightly tighter vertical rhythm between home blocks */
  }
  .tvf-section {
    padding-top: 2.55rem;
    padding-bottom: 2.55rem;
  }
}

/* --- P4: Recent posts mobile hierarchy / ellipsis --- */
@media (max-width: 767px) {
  .tvf-recent-item {
    align-items: flex-start !important;
    gap: 0.65rem !important;
    padding: 0.7rem 0.25rem !important;
  }
  .tvf-recent-item-main {
    min-width: 0;
    flex: 1 1 auto;
  }
  .tvf-recent-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.45 !important;
  }
  .tvf-recent-date {
    flex-shrink: 0;
    white-space: nowrap;
    padding-top: 0.15rem;
  }
  .tvf-recent-author,
  .tvf-recent-meta,
  .tvf-recent-item .tvf-recent-author {
    opacity: 0.85;
  }
  .tvf-recent-posts-head {
    margin-bottom: 0.35rem;
  }
}

/* --- P5: Guest — hide admin/edit chrome leaks (admin keeps own UI when logged in) --- */
/* Soft-hide common G7 layout-editor / CMS chrome for anonymous sessions.
   Logged-in admin still gets /admin via user menu; do not remove those nodes. */
body:not([data-tvf-admin="1"]) [data-editor-type],
body:not([data-tvf-admin="1"]) [data-editor-id],
body:not([data-tvf-admin="1"]) .g7-layout-edit-btn,
body:not([data-tvf-admin="1"]) .g7-page-edit,
body:not([data-tvf-admin="1"]) a[href*="/admin/layout"],
body:not([data-tvf-admin="1"]) a[href*="/admin/pages"],
body:not([data-tvf-admin="1"]) button[aria-label*="Edit layout"],
body:not([data-tvf-admin="1"]) button[aria-label*="레이아웃 편집"],
body:not([data-tvf-admin="1"]) a[href="/admin"][data-tvf-guest-hide],
body:not([data-tvf-admin="1"]) .fa-cog.tvf-admin-only,
body:not([data-tvf-admin="1"]) .fa-gear.tvf-admin-only {
  /* placeholders — real guest leak selectors applied after QA */
}

/* --- P6: Officers equal height + meta wrap --- */
.tvf-officers-grid {
  align-items: stretch;
}
.tvf-officer-card {
  height: 100%;
  min-height: 100%;
}
.tvf-officer-meta {
  word-break: keep-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}
@media (max-width: 1023px) {
  .tvf-officer-meta {
    max-width: none;
  }
}

/* Membership: search/filters wrap; no forced horizontal scroll; card balance */
.tvf-member-toolbar {
  width: 100%;
  max-width: 100%;
}
.tvf-member-search {
  max-width: 100%;
  min-width: 0;
  flex: 1 1 12rem;
}
.tvf-member-filters {
  max-width: 100%;
  overflow-x: visible;
}
.tvf-member-grid {
  align-items: stretch;
}
.tvf-member-card {
  height: 100%;
}
@media (max-width: 767px) {
  .tvf-member-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .tvf-member-section-title {
    margin-right: 0;
  }
  .tvf-member-search {
    max-width: 100%;
    width: 100%;
  }
  .tvf-member-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .tvf-member-hero-actions > * {
    width: 100%;
  }
}

/* Events empty states — slightly shorter on tablet/mobile */
@media (max-width: 1023px) {
  .tvf-empty-state {
    padding: 1.45rem 1.15rem !important;
  }
}
@media (max-width: 767px) {
  .tvf-empty-state {
    padding: 1.2rem 1rem !important;
  }
  .tvf-upcoming {
    margin-bottom: 2.15rem;
    padding-bottom: 1.65rem;
  }
  .tvf-past-events {
    margin: 1.85rem 0 1.5rem;
  }
}


/* ===== v18 dark-mode semantic leakage fixes (light unchanged via tokens) ===== */

/* Chapter / alt sections already use --tvf-surface-alt; ensure no white paper leak */
html.dark .tvf-section-alt,
html[data-theme="dark"] .tvf-section-alt {
  background: var(--tvf-surface-alt) !important;
  border-color: var(--tvf-border) !important;
  color: var(--tvf-text);
}
html.dark .tvf-section-alt .tvf-section-title,
html[data-theme="dark"] .tvf-section-alt .tvf-section-title,
html.dark .tvf-section-title,
html[data-theme="dark"] .tvf-section-title {
  color: var(--tvf-text-strong) !important;
}
html.dark .tvf-section-alt .tvf-section-body,
html[data-theme="dark"] .tvf-section-alt .tvf-section-body,
html.dark .tvf-section-body,
html[data-theme="dark"] .tvf-section-body {
  color: var(--tvf-text-muted) !important;
}

/* WHAT WE DO cards */
html.dark .tvf-pillar,
html[data-theme="dark"] .tvf-pillar {
  background: var(--tvf-surface) !important;
  border-color: var(--tvf-border) !important;
}
html.dark .tvf-pillar h3,
html[data-theme="dark"] .tvf-pillar h3 {
  color: var(--tvf-text-strong) !important;
}
html.dark .tvf-pillar p,
html[data-theme="dark"] .tvf-pillar p {
  color: var(--tvf-text-muted) !important;
}

/* Hero lead readable on navy */
html.dark .tvf-hero-lead,
html[data-theme="dark"] .tvf-hero-lead {
  color: var(--tvf-text-muted) !important;
}
html.dark .tvf-hero-title,
html[data-theme="dark"] .tvf-hero-title {
  color: var(--tvf-text-strong) !important;
}
html.dark .tvf-hero-kicker,
html[data-theme="dark"] .tvf-hero-kicker {
  color: var(--tvf-accent) !important;
}

/* Community cards / recent posts */
html.dark .tvf-board-card,
html[data-theme="dark"] .tvf-board-card {
  background: var(--tvf-surface) !important;
  border-color: var(--tvf-border) !important;
}
html.dark .tvf-board-card-btn h3,
html[data-theme="dark"] .tvf-board-card-btn h3,
html.dark .tvf-board-card h3,
html[data-theme="dark"] .tvf-board-card h3 {
  color: var(--tvf-text-strong) !important;
}
html.dark .tvf-board-card-btn p,
html[data-theme="dark"] .tvf-board-card-btn p {
  color: var(--tvf-text-secondary) !important;
}
html.dark .tvf-recent-title,
html[data-theme="dark"] .tvf-recent-title {
  color: var(--tvf-text) !important;
}
html.dark .tvf-recent-date,
html.dark .tvf-recent-author,
html.dark .tvf-recent-meta,
html[data-theme="dark"] .tvf-recent-date,
html[data-theme="dark"] .tvf-recent-author,
html[data-theme="dark"] .tvf-recent-meta {
  color: var(--tvf-text-subtle) !important;
}
html.dark .tvf-recent-board,
html[data-theme="dark"] .tvf-recent-board {
  color: var(--tvf-accent-strong) !important;
  border-color: rgba(126, 179, 224, 0.45) !important;
  background: transparent !important;
}
html.dark .tvf-recent-item:hover,
html[data-theme="dark"] .tvf-recent-item:hover {
  background: var(--tvf-hover-wash) !important;
}
html.dark .tvf-recent-item:hover .tvf-recent-title,
html[data-theme="dark"] .tvf-recent-item:hover .tvf-recent-title {
  color: var(--tvf-accent-strong) !important;
}
html.dark .tvf-recent-posts-head h3,
html[data-theme="dark"] .tvf-recent-posts-head h3 {
  color: var(--tvf-text-strong) !important;
}
html.dark .tvf-recent-item,
html[data-theme="dark"] .tvf-recent-item {
  border-color: var(--tvf-border) !important;
}

/* Global Connection */
html.dark .tvf-global .tvf-section-title,
html.dark .tvf-global-title,
html[data-theme="dark"] .tvf-global .tvf-section-title,
html[data-theme="dark"] .tvf-global-title {
  color: var(--tvf-text-strong) !important;
}
html.dark .tvf-global-body,
html[data-theme="dark"] .tvf-global-body {
  color: var(--tvf-text-muted) !important;
}
html.dark .tvf-global-axes,
html[data-theme="dark"] .tvf-global-axes {
  color: var(--tvf-accent-strong) !important;
}

/* Header + nav */
html.dark header.sticky,
html.dark header.block,
html[data-theme="dark"] header.sticky,
html[data-theme="dark"] header.block {
  background: var(--tvf-surface) !important;
  border-bottom-color: var(--tvf-border) !important;
}
html.dark .tvf-primary-nav a,
html.dark .tvf-nav-link,
html[data-theme="dark"] .tvf-primary-nav a,
html[data-theme="dark"] .tvf-nav-link {
  color: var(--tvf-text) !important;
}
html.dark .tvf-primary-nav,
html[data-theme="dark"] .tvf-primary-nav {
  background: var(--tvf-surface) !important;
  border-color: var(--tvf-border) !important;
}

/* Header search (was hard #fafafa / #fff) */
html.dark header form.max-w-lg input,
html[data-theme="dark"] header form.max-w-lg input {
  background: var(--tvf-bg) !important;
  border-color: var(--tvf-border) !important;
  color: var(--tvf-text) !important;
}
html.dark header form.max-w-lg input:focus,
html[data-theme="dark"] header form.max-w-lg input:focus {
  background: var(--tvf-surface) !important;
  border-color: var(--tvf-accent) !important;
}

/* Footer hierarchy */
html.dark footer,
html[data-theme="dark"] footer {
  background: var(--tvf-footer-bg) !important;
  border-top-color: var(--tvf-border) !important;
  color: var(--tvf-text) !important;
}
html.dark footer a,
html[data-theme="dark"] footer a {
  color: var(--tvf-text-muted) !important;
}
html.dark footer a:hover,
html[data-theme="dark"] footer a:hover {
  color: var(--tvf-accent-strong) !important;
}
html.dark footer h3,
html.dark footer h4,
html[data-theme="dark"] footer h3,
html[data-theme="dark"] footer h4 {
  color: var(--tvf-text-strong) !important;
}
html.dark footer p,
html[data-theme="dark"] footer p {
  color: var(--tvf-text-secondary) !important;
}
html.dark footer.tvf-footer-acc-active .tvf-footer-acc-btn,
html[data-theme="dark"] footer.tvf-footer-acc-active .tvf-footer-acc-btn {
  color: var(--tvf-text-strong) !important;
  border-color: var(--tvf-border) !important;
}
html.dark footer.tvf-footer-acc-active .tvf-footer-acc-panel,
html[data-theme="dark"] footer.tvf-footer-acc-active .tvf-footer-acc-panel {
  border-color: var(--tvf-border) !important;
}

/* Buttons already tokenized; reinforce on dark */
html.dark .tvf-btn-primary,
html[data-theme="dark"] .tvf-btn-primary {
  background: var(--tvf-button-primary-bg) !important;
  color: var(--tvf-button-primary-fg) !important;
  border-color: var(--tvf-button-primary-bg) !important;
}
html.dark .tvf-btn-ghost,
html[data-theme="dark"] .tvf-btn-ghost {
  color: var(--tvf-button-secondary-fg) !important;
  border-color: var(--tvf-button-secondary-border) !important;
  background: transparent !important;
}
/* CTA keeps light-on-navy buttons */
html.dark .tvf-cta .tvf-btn-primary,
html[data-theme="dark"] .tvf-cta .tvf-btn-primary {
  background: var(--tvf-accent) !important;
  border-color: var(--tvf-accent) !important;
  color: #0a1220 !important;
}
html.dark .tvf-cta .tvf-btn-ghost,
html[data-theme="dark"] .tvf-cta .tvf-btn-ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,0.35) !important;
}

/* Stock gray / white / black leakage on inner pages */
html.dark .bg-gray-50,
html.dark .bg-gray-100,
html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-gray-100 {
  background-color: var(--tvf-bg) !important;
}
html.dark .bg-gray-800,
html.dark .bg-gray-900,
html[data-theme="dark"] .bg-gray-800,
html[data-theme="dark"] .bg-gray-900 {
  background-color: var(--tvf-surface) !important;
}
html.dark .text-black,
html[data-theme="dark"] .text-black {
  color: var(--tvf-text-strong) !important;
}
html.dark .text-white,
html[data-theme="dark"] .text-white {
  color: var(--tvf-text-strong) !important;
}
html.dark .border-gray-100,
html.dark .border-gray-800,
html[data-theme="dark"] .border-gray-100,
html[data-theme="dark"] .border-gray-800 {
  border-color: var(--tvf-border) !important;
}

/* Officers / members remaining surfaces */
html.dark .tvf-officer-card,
html[data-theme="dark"] .tvf-officer-card {
  background: var(--tvf-surface) !important;
  border-color: var(--tvf-border) !important;
  color: var(--tvf-text) !important;
}
html.dark .tvf-officer-photo,
html[data-theme="dark"] .tvf-officer-photo,
html.dark .tvf-officer-detail-photo,
html[data-theme="dark"] .tvf-officer-detail-photo {
  background: var(--tvf-surface-alt) !important;
}
html.dark .tvf-officer-detail-career,
html[data-theme="dark"] .tvf-officer-detail-career {
  background: var(--tvf-surface) !important;
  color: var(--tvf-text-muted) !important;
}
html.dark .tvf-member-meta,
html[data-theme="dark"] .tvf-member-meta,
html.dark .tvf-member-card p,
html[data-theme="dark"] .tvf-member-card p {
  color: var(--tvf-text-secondary) !important;
}
html.dark .tvf-member-card .tvf-member-name,
html[data-theme="dark"] .tvf-member-card .tvf-member-name {
  color: var(--tvf-text-strong) !important;
}

/* Hub soft badges that used light pale blue-gray */
html.dark .tvf-hub-card,
html[data-theme="dark"] .tvf-hub-card {
  color: var(--tvf-text);
}
html.dark .tvf-hub-card p,
html[data-theme="dark"] .tvf-hub-card p,
html.dark .tvf-hub-section-lead,
html[data-theme="dark"] .tvf-hub-section-lead {
  color: var(--tvf-text-muted) !important;
}

/* Section dividers / borders */
html.dark .tvf-section + .tvf-section,
html[data-theme="dark"] .tvf-section + .tvf-section {
  border-top-color: var(--tvf-border);
}

/* Contact / forms common chrome */
html.dark input:not([type="checkbox"]):not([type="radio"]),
html.dark textarea,
html.dark select,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background-color: var(--tvf-bg) !important;
  border-color: var(--tvf-border) !important;
  color: var(--tvf-text) !important;
}

/* Mobile drawer surfaces */
html.dark .dark\:bg-gray-700,
html[data-theme="dark"] .dark\:bg-gray-700 {
  background-color: var(--tvf-surface) !important;
}
