/*
Theme Name: WindowFilm Guide
Theme URI: https://windowfilm.zibsuri.com/
Author: MUN HO YOUNG
Author URI: https://munhoyoung.com/
Description: 창문 단열필름 정보 검색 플랫폼 전용 테마. 사이트 빌드(html.php) 디자인 시스템을 상속하며 글·페이지·아카이브에 동일한 톤앤매너를 적용합니다.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: windowfilm
*/

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --navy: #132A4A;
  --navy-deep: #0E2038;
  --navy-soft: #E9EFF6;
  --teal: #1E6E7E;
  --teal-deep: #165361;
  --teal-soft: #E7F1F3;
  --gold: #C79A4E;
  --gold-soft: #F7EEDC;
  --amber: #D9A441;
  --ivory: #F7F4EC;
  --bg: #FBF9F4;
  --white: #FFFFFF;
  --ink: #22262B;
  --gray: #5B6672;
  --gray-light: #98A2AE;
  --line: #E7E9E3;
  --line-strong: #D6DAD1;
  --danger: #B4512F;
  --ok: #2E7D5B;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(19,42,74,.06);
  --shadow-md: 0 12px 32px rgba(19,42,74,.10);
  --shadow-lg: 0 28px 64px rgba(19,42,74,.16);
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-serif: "Noto Serif KR", "Pretendard Variable", serif;
  --content-w: 780px;
  --page-w: 1160px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-soft); color: var(--navy); }
.container { max-width: var(--page-w); margin: 0 auto; padding: 0 28px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0; z-index: 999; }
.skip-link:focus { left: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  text-decoration: none; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(19,42,74,.22); }
.btn-primary:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(19,42,74,.28); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(30,110,126,.22); }
.btn-teal:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); background: var(--white); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--ivory); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251,249,244,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; }
.brand-name { font-family: var(--font-serif); font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: var(--gray); margin-top: 2px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px;
  font-size: 15px; font-weight: 600; color: var(--ink); border-radius: 999px;
}
.main-nav a:hover { color: var(--teal); background: var(--teal-soft); }
.main-nav .nav-cta { background: var(--navy); color: #fff; margin-left: 10px; padding: 0 20px; }
.main-nav .nav-cta:hover { background: var(--navy-deep); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; border-radius: 10px; min-width: 44px; min-height: 44px; }
.nav-toggle svg { display: block; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { justify-content: flex-start; border-radius: 12px; }
  .main-nav .nav-cta { margin-left: 0; margin-top: 8px; justify-content: center; }
}

/* ============================================================
   Hero (html.php)
   ============================================================ */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(58,147,163,.34), transparent 60%),
    radial-gradient(46% 48% at 8% 96%, rgba(201,154,78,.20), transparent 62%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 96px 0 108px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08);
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: #D9E4EF; margin-bottom: 22px;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  margin: 0 0 18px; font-family: var(--font-serif); font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 800; line-height: 1.16; letter-spacing: -.03em;
}
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.8; color: #CBD8E6; max-width: 34em; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; margin: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #B9C7D6; }
.hero-facts svg { color: var(--gold); flex: 0 0 auto; }
.hero-media { position: relative; }
.hero-media .frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.16); transform: rotate(1.2deg);
}
.hero-media .frame img { display: block; width: 100%; height: auto; }
.hero-media .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,32,56,.05) 0%, rgba(14,32,56,.34) 100%);
}
.hero-float {
  position: absolute; left: -26px; bottom: 34px; z-index: 2;
  background: #fff; color: var(--ink); border-radius: var(--r-md);
  padding: 16px 20px; box-shadow: var(--shadow-lg); max-width: 250px;
  display: flex; gap: 14px; align-items: center;
}
.hero-float .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: 0 0 42px; }
.hero-float strong { display: block; font-size: 15px; line-height: 1.3; }
.hero-float span { font-size: 12.5px; color: var(--gray); line-height: 1.45; display: block; margin-top: 3px; }
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 72px; gap: 36px; }
  .hero-float { left: 8px; bottom: 18px; }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-ivory { background: var(--ivory); }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--teal); text-transform: uppercase;
}
.sec-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.sec-head.center .sec-eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.sec-title { margin: 0 0 14px; font-family: var(--font-serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.28; letter-spacing: -.02em; color: var(--navy); }
.sec-desc { margin: 0; font-size: 16.5px; line-height: 1.75; color: var(--gray); }

/* Persona cards */
.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px; transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.p-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.p-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.p-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--gray); }
.ic-navy { background: var(--navy); } .ic-teal { background: var(--teal); } .ic-gold { background: var(--gold); } .ic-amber { background: var(--amber); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px;
  border-radius: var(--r-lg); overflow: hidden; padding: 22px; color: #fff;
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: #fff; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,32,56,0) 28%, rgba(14,32,56,.82) 100%); z-index: 1; }
.cat-tile .tt-body { position: relative; z-index: 2; }
.cat-tile .tt-count { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; opacity: .9; margin-bottom: 6px; display: block; }
.cat-tile .tt-name { font-family: var(--font-serif); font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 4px; }
.cat-tile .tt-desc { font-size: 13px; line-height: 1.5; opacity: .88; margin: 0; }
.cat-tile.solid { background: var(--navy); }
.cat-tile.solid.teal { background: var(--teal); }
.cat-tile.solid.gold { background: #A97E36; }
.cat-tile.solid.amber { background: var(--amber); }
.cat-tile .tt-arrow { position: absolute; top: 18px; right: 18px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr 1fr; } .persona-grid { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

/* ============================================================
   Post Cards
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); color: inherit; }
.post-card .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,32,56,0) 55%, rgba(14,32,56,.28) 100%); }
.post-card .cat-badge {
  position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 12px; border-radius: 999px;
  background: rgba(14,32,56,.78); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.post-card .pc-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.post-card h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 700; line-height: 1.42; letter-spacing: -.01em; color: var(--navy); }
.post-card .pc-excerpt { margin: 0 0 16px; font-size: 14.5px; line-height: 1.65; color: var(--gray); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .pc-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-light); }
.post-card .pc-meta .go { margin-left: auto; color: var(--teal); font-weight: 600; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Carousel
   ============================================================ */
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 18px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
.carousel .c-item { flex: 0 0 340px; scroll-snap-align: start; }
.carousel .c-item.wide { flex-basis: 420px; }
@media (max-width: 640px) { .carousel .c-item, .carousel .c-item.wide { flex-basis: 82%; } }

/* Split feature sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual { position: relative; }
.split .visual img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); display: block; }
.split .visual .tick {
  position: absolute; left: 18px; bottom: 18px; background: #fff; border-radius: var(--r-md);
  padding: 12px 16px; box-shadow: var(--shadow-md); font-size: 13px; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 8px;
}
.split h3 { margin: 0 0 12px; font-family: var(--font-serif); font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; color: var(--navy); }
.split p { margin: 0 0 16px; color: var(--gray); font-size: 16px; line-height: 1.75; }
.split ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.split ul li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.split ul li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal);
}
.split ul li::after {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--teal);
}
.split .links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip .visual { order: -1; } }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 55%, #16364F 100%);
  border-radius: 26px; color: #fff; padding: 56px 60px; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,154,78,.28), transparent 70%);
}
.cta-band h2 { margin: 0 0 12px; font-family: var(--font-serif); font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.cta-band p { margin: 0 0 26px; color: #C7D4E2; font-size: 16px; max-width: 44em; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 2; }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; gap: 14px; padding: 20px 24px; cursor: pointer;
  font-size: 16.5px; font-weight: 700; color: var(--navy); list-style: none; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q { width: 26px; height: 26px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: 0 0 26px; }
.faq-item summary .pm { margin-left: auto; color: var(--gray-light); transition: transform .2s ease; }
.faq-item[open] summary .pm { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 22px 64px; font-size: 15px; line-height: 1.7; color: var(--gray); }

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer { background: var(--navy-deep); color: #B9C7D6; margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 76px 0 52px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 14.5px; line-height: 1.7; margin: 18px 0 0; max-width: 30em; color: #9FB0C2; }
.footer-col h4 { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: #E7EEF6; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #9FB0C2; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-notices { border-top: 1px solid rgba(255,255,255,.12); padding: 26px 0 20px; }
.legal-notice { background: rgba(255,255,255,.05); border-radius: var(--r-md); padding: 16px 18px; font-size: 12.5px; line-height: 1.7; color: #8FA0B4; }
.legal-notice p { margin: 4px 0; }
.ai-notice { font-size: 12.5px; color: #8FA0B4; margin: 12px 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 18px 0 30px; font-size: 13px; color: #7C8DA1; border-top: 1px solid rgba(255,255,255,.08); margin-top: 22px; }
.footer-bottom a { color: #9FB0C2; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 920px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* ============================================================
   Posts & Pages (single/page content)
   ============================================================ */
.site-main { padding: 56px 0 96px; }
.page-hero {
  background: linear-gradient(150deg, var(--navy) 0%, #173A5E 100%); color: #fff;
  padding: 64px 0 56px; position: relative; overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(201,154,78,.22), transparent 70%); }
.page-hero .crumbs { font-size: 13.5px; color: #9FB6CC; margin-bottom: 14px; }
.page-hero .crumbs a { color: #CFE0EF; }
.page-hero h1 { margin: 0 0 10px; font-family: var(--font-serif); font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.24; letter-spacing: -.02em; }
.page-hero .page-desc { margin: 0; font-size: 16px; color: #C3D2E1; max-width: 46em; line-height: 1.7; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-size: 13.5px; color: #A8BCD0; }
.post-meta .cat a { color: var(--gold); font-weight: 600; }

.entry-wrap { max-width: var(--content-w); margin: 0 auto; }
.entry-body { margin-top: 0; }
.entry-body .featured { border-radius: var(--r-lg); overflow: hidden; margin: 0 0 34px; box-shadow: var(--shadow-sm); }
.entry-body .featured img { display: block; width: 100%; }
.entry-body h2 {
  margin: 48px 0 18px; padding-top: 8px; font-family: var(--font-serif);
  font-size: clamp(23px, 2.6vw, 29px); font-weight: 800; line-height: 1.34; letter-spacing: -.015em; color: var(--navy);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.entry-body h3 { margin: 34px 0 14px; font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.4; scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-body h2::before { content: ""; display: inline-block; width: 7px; height: 22px; border-radius: 4px; background: linear-gradient(180deg, var(--gold), var(--amber)); margin-right: 12px; vertical-align: -3px; }
.entry-body p { margin: 0 0 20px; font-size: 17px; line-height: 1.82; }
.entry-body ul, .entry-body ol { margin: 0 0 24px; padding-left: 4px; display: grid; gap: 8px; }
.entry-body ul li, .entry-body ol li { margin-left: 1.35em; padding-left: 6px; line-height: 1.75; }
.entry-body li::marker { color: var(--teal); font-weight: 700; }
.entry-body strong { color: var(--navy); font-weight: 700; }
.entry-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(30,110,126,.4); }
.entry-body a:hover { text-decoration-color: var(--teal); }
.entry-body blockquote {
  margin: 30px 0; padding: 20px 24px 20px 26px; border-left: 4px solid var(--gold);
  background: var(--ivory); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 16px; line-height: 1.75; color: var(--ink);
}
.entry-body blockquote p { margin: 0; }
.entry-body img { border-radius: var(--r-md); }
.entry-body .aligncenter { display: block; margin: 0 auto; }
.entry-body .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 48%; }
.entry-body .alignright { float: right; margin: 6px 0 16px 24px; max-width: 48%; }

/* post summary box */
.wf-summary {
  background: linear-gradient(160deg, var(--teal-soft), #F2F8F9); border: 1px solid #CFE3E7;
  border-radius: var(--r-md); padding: 22px 26px; margin: 26px 0 34px;
}
.wf-summary strong { display: block; font-size: 15px; font-weight: 800; color: var(--teal-deep); margin-bottom: 10px; letter-spacing: .01em; }
.wf-summary ul { margin: 0 !important; padding: 0 !important; display: grid; gap: 7px !important; }
.wf-summary li { margin: 0 !important; padding-left: 0 !important; list-style: none; font-size: 15px; line-height: 1.65; color: var(--ink); position: relative; padding-left: 26px !important; }
.wf-summary li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }

/* tables */
.wf-table { margin: 28px 0 34px; }
.wf-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.wf-table caption { caption-side: top; text-align: left; font-size: 14px; font-weight: 700; color: var(--navy); padding: 0 0 10px 4px; }
.wf-table th {
  background: var(--navy); color: #fff; text-align: left; padding: 13px 16px; font-weight: 700; font-size: 14px;
}
.wf-table td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); }
.wf-table tbody tr:nth-child(even) { background: #F8F9F6; }
.wf-table tbody tr:hover { background: var(--ivory); }
@media (max-width: 640px) {
  .wf-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wf-table table { min-width: 520px; }
}

/* charts */
.wf-chart { margin: 28px 0 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 26px; }
.wf-chart-title { font-size: 14.5px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.bar-row { display: grid; grid-template-columns: 210px 1fr 120px; gap: 14px; align-items: center; margin-bottom: 13px; }
.bar-label { font-size: 13.5px; font-weight: 600; color: var(--gray); line-height: 1.4; }
.bar-track { height: 12px; background: var(--navy-soft); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--teal-light)); }
.bar-fill.gold { background: linear-gradient(90deg, var(--gold), var(--amber)); }
.bar-val { font-size: 13px; font-weight: 700; color: var(--navy); }
@media (max-width: 640px) { .bar-row { grid-template-columns: 1fr; gap: 6px; } .bar-val { grid-column: 1; } }

/* figure */
.wf-fig { margin: 30px 0 34px; }
.wf-fig img { display: block; width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.wf-fig figcaption { font-size: 13px; color: var(--gray-light); text-align: center; margin-top: 10px; line-height: 1.6; }

/* lead */
.entry-body .lead { font-size: 18px; line-height: 1.8; color: var(--gray); }

/* notices in content */
.entry-body .legal-notice { background: #f8f9fa; border-left: 3px solid #cbd5e1; padding: 10px 14px; margin-top: 2em; border-radius: 0 6px 6px 0; font-size: .85em; color: #777; }
.entry-body .ai-notice { font-size: .85em; color: #888; margin-top: 2em; }

/* TOC (easy-table-of-contents) */
.ez-toc-widget-container, .ez-toc-v2_0_86_1, #ez-toc-container {
  background: var(--white) !important; border: 1px solid var(--line) !important; border-radius: var(--r-md) !important;
  padding: 18px 22px !important; margin: 0 0 34px !important; box-shadow: var(--shadow-sm);
}
#ez-toc-container .ez-toc-title { font-size: 15px !important; font-weight: 800; color: var(--navy) !important; }
#ez-toc-container ul { list-style: none !important; margin: 12px 0 0 !important; padding: 0 !important; display: grid; gap: 6px; }
#ez-toc-container li { margin: 0 !important; padding: 0 !important; }
#ez-toc-container a { color: var(--gray) !important; font-size: 14.5px; }
#ez-toc-container a:hover { color: var(--teal) !important; }

/* related posts */
.related-wrap { max-width: var(--content-w); margin: 64px auto 0; }
.related-title { font-family: var(--font-serif); font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* entry footer / share */
.entry-cats { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.entry-cats a { background: var(--teal-soft); color: var(--teal-deep); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.entry-cats a:hover { background: var(--teal); color: #fff; }

/* archive / blog headers */
.archive-head { background: linear-gradient(150deg, var(--navy) 0%, #173A5E 100%); color: #fff; padding: 60px 0 52px; }
.archive-head h1 { margin: 0 0 10px; font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.archive-head p { margin: 0; color: #C3D2E1; font-size: 16px; }

/* search */
.search-form { display: flex; gap: 10px; max-width: 560px; }
.search-form input[type=search] {
  flex: 1; min-height: 52px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  padding: 0 22px; font-size: 16px; font-family: var(--font-sans); background: var(--white); color: var(--ink);
}
.search-form input[type=search]:focus { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--teal); }

/* 404 */
.notfound { text-align: center; padding: 110px 0; }
.notfound .code { font-family: var(--font-serif); font-size: 96px; font-weight: 800; color: var(--navy-soft); line-height: 1; }
.notfound h1 { font-family: var(--font-serif); font-size: 30px; color: var(--navy); margin: 8px 0 12px; }
.notfound p { color: var(--gray); margin-bottom: 26px; }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .page-numbers:hover { border-color: var(--navy); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* WP core alignment cleanup */
.wp-caption, .alignnone { max-width: 100%; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.gallery-item { margin: 0; }
