:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #2d6a4f;
  --accent: #e07a5f;
  --dark: #1b4332;
  --shadow: 0 2px 16px rgba(27, 67, 50, .06);
  --shadow-lg: 0 8px 32px rgba(27, 67, 50, .1);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.7; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.main { min-height: 62vh; }
.eyebrow { color: var(--primary); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.section { padding: 72px 0; }
.section-soft { background: #f3f0ea; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 5px 0 0; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.25; letter-spacing: -.02em; font-family: "Playfair Display", Georgia, serif; }
.section-head p { margin: 0; max-width: 540px; color: var(--muted); }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header { height: 68px; background: rgba(27, 67, 50, .96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(45, 106, 79, .2); transition: .25s ease; }
.site-header.is-scrolled { border-bottom-color: rgba(224, 122, 95, .3); box-shadow: 0 2px 20px rgba(0,0,0,.12); }
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.brand img { height: 36px; width: auto; object-fit: contain; border-radius: 8px; }
.brand span { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; color: inherit; }
.desktop-nav { display: flex; align-items: center; gap: 2px; }
.desktop-nav a { padding: 7px 14px; border-radius: 8px; color: rgba(255,255,255,.75); font-size: .76rem; font-weight: 600; transition: .2s; text-transform: uppercase; letter-spacing: .06em; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: #fff; background: rgba(224, 122, 95, .85); }
.menu-button { display: none; width: 40px; height: 40px; border: 0; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.mobile-menu, .menu-overlay { display: none; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; min-height: 540px; display: grid; align-items: center; color: #fff; background: var(--dark); }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(27,67,50,.95), rgba(45,106,79,.4) 50%, rgba(224,122,95,.2)); z-index: 1; }
.hero-bg, .page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background-image: radial-gradient(circle at 25% 75%, rgba(224,122,95,.08) 0%, transparent 50%), radial-gradient(circle at 75% 25%, rgba(45,106,79,.06) 0%, transparent 50%); }
.hero-content { position: relative; z-index: 2; padding: 80px 0; max-width: 800px; }
.hero h1 { margin: 10px 0 20px; max-width: 780px; font-size: clamp(2.4rem, 5.5vw, 4.5rem); line-height: 1.08; letter-spacing: -.03em; font-family: "Playfair Display", Georgia, serif; }
.hero-copy { max-width: 640px; color: rgba(255,255,255,.78); font-size: clamp(.92rem, 1.7vw, 1.08rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 10px; font-size: .8rem; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; text-transform: uppercase; letter-spacing: .07em; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 0 6px 18px rgba(45,106,79,.2); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 4px 12px rgba(45,106,79,.25); }
.button-ghost { color: rgba(255,255,255,.85); border: 2px solid rgba(255,255,255,.2); background: transparent; }
.button-ghost:hover { border-color: var(--accent); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; color: rgba(255,255,255,.6); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-stats strong { display: block; color: #fff; font-size: 1.25rem; letter-spacing: 0; text-transform: none; }

/* ── Category Grid ──────────────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card { position: relative; overflow: hidden; min-height: 160px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.95); transition: .25s; }
.category-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -35px; bottom: -45px; border-radius: 50%; background: color-mix(in srgb, var(--category) 8%, transparent); transition: .3s; }
.category-card:hover { transform: translateY(-3px); border-color: var(--category); box-shadow: 0 10px 28px color-mix(in srgb, var(--category) 12%, transparent); }
.category-card:hover::after { transform: scale(1.12); }
.category-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 10px; color: #fff; background: var(--category); font-size: 1rem; font-weight: 800; box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.category-card h3 { margin: 0 0 5px; font-size: .98rem; letter-spacing: -.01em; font-family: "Playfair Display", Georgia, serif; }
.category-card p { margin: 0; max-width: 88%; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.category-count { display: inline-block; margin-top: 12px; color: var(--category); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* ── Article Grid & Cards ───────────────────────────────────────── */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { overflow: hidden; height: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: .25s; }
.article-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.card-image-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(135deg, #f3f0ea, #e8e0d4); }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .card-image { transform: scale(1.03); }
.card-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; color: #fff; border-radius: 6px; background: var(--category, var(--primary)); font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.card-body { padding: 16px 18px; }
.card-body h3 { margin: 0 0 8px; font-size: .96rem; line-height: 1.35; letter-spacing: -.01em; font-family: "Playfair Display", Georgia, serif; }
.card-body p { display: -webkit-box; margin: 0 0 14px; overflow: hidden; color: var(--muted); font-size: .76rem; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid #f3f0ea; color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── Homepage: Section Headings ─────────────────────────────────── */
.home-heading { margin-bottom: 30px; }
.home-heading > span { color: var(--primary); font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.home-heading h2 { margin: 4px 0 0; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.25; letter-spacing: -.02em; font-family: "Playfair Display", Georgia, serif; }
.home-heading h2 b { font-weight: inherit; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-heading p { max-width: 660px; margin: 8px 0 0; color: var(--muted); font-size: .86rem; }
.home-heading.centered { text-align: center; }
.home-heading.centered p { margin-inline: auto; }

/* ── Homepage: Spotlight ────────────────────────────────────────── */
.spotlight { padding: 56px 0 40px; }
.spotlight-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.spotlight-main { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: .25s; }
.spotlight-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.spotlight-main-img { aspect-ratio: 16/9; overflow: hidden; background: #f3f0ea; }
.spotlight-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.spotlight-main:hover .spotlight-main-img img { transform: scale(1.03); }
.spotlight-main-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.spotlight-main-body .card-badge { align-self: flex-start; }
.spotlight-main-body strong { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.25; letter-spacing: -.02em; font-family: "Playfair Display", Georgia, serif; }
.spotlight-main-body p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.spotlight-main-body small { color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; }
.spotlight-side { display: flex; flex-direction: column; gap: 20px; }
.spotlight-card { display: grid;grid-template-columns: 230px 1fr; gap: 0; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: .25s; flex: 1; }
.spotlight-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); }
.spotlight-card-img { overflow: hidden; background: #f3f0ea; }
.spotlight-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.spotlight-card:hover .spotlight-card-img img { transform: scale(1.04); }
.spotlight-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.spotlight-card-body .card-badge { align-self: flex-start; }
.spotlight-card-body strong { font-size: .88rem; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: "Playfair Display", Georgia, serif; }
.spotlight-card-body small { color: var(--muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── Homepage: Latest Grid ──────────────────────────────────────── */
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.latest-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: .25s; }
.latest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.latest-card-img { aspect-ratio: 16/10; overflow: hidden; background: #f3f0ea; }
.latest-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.latest-card:hover .latest-card-img img { transform: scale(1.04); }
.latest-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.latest-card-body .card-badge { align-self: flex-start; }
.latest-card-body strong { font-size: .94rem; line-height: 1.32; letter-spacing: -.01em; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: "Playfair Display", Georgia, serif; }
.latest-card-body p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; flex: 1; }
.latest-card-body small { color: var(--muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; margin-top: auto; }

/* ── Homepage: Trending Strips ──────────────────────────────────── */
.trending-list { display: flex; flex-direction: column; gap: 0; max-width: 960px; margin-inline: auto; }
.trending-item { display: grid; grid-template-columns: 56px 120px 1fr; gap: 20px; align-items: center; padding: 20px 16px; border-bottom: 1px solid var(--line); transition: background .2s; border-radius: 12px; }
.trending-item:first-child { border-top: 1px solid var(--line); }
.trending-item:hover { background: rgba(45,106,79,.03); }
.trending-num { font-size: 2rem; font-weight: 900; line-height: 1; background: linear-gradient(150deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: "Playfair Display", Georgia, serif; text-align: center; }
.trending-thumb { width: 120px; height: 80px; border-radius: 10px; overflow: hidden; background: #f3f0ea; }
.trending-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trending-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.trending-body strong { font-size: .96rem; line-height: 1.3; letter-spacing: -.01em; font-family: "Playfair Display", Georgia, serif; transition: color .2s; }
.trending-item:hover .trending-body strong { color: var(--primary); }
.trending-body small { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── Homepage: Category Showcase ────────────────────────────────── */
.cat-showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cat-panel { overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: .25s; }
.cat-panel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--cat-color, var(--primary)); }
.cat-panel-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cat-panel-head .shelf-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--cat-color, var(--primary)); font-size: .9rem; font-weight: 800; flex-shrink: 0; }
.cat-panel-head h3 { margin: 0; font-size: 1rem; font-weight: 700; font-family: "Playfair Display", Georgia, serif; }
.cat-panel-head a { margin-left: auto; color: var(--cat-color, var(--primary)); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.cat-panel-head a:hover { text-decoration: underline; }
.cat-panel-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cat-panel-article { display: flex; flex-direction: column; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .15s; }
.cat-panel-article:nth-child(even) { border-right: none; }
.cat-panel-article:nth-last-child(-n+2) { border-bottom: none; }
.cat-panel-article:hover { background: rgba(45,106,79,.02); }
.cat-panel-article strong { font-size: .82rem; line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: "Playfair Display", Georgia, serif; margin-bottom: 6px; }
.cat-panel-article:hover strong { color: var(--cat-color, var(--primary)); }
.cat-panel-article small { color: var(--muted); font-size: .58rem; text-transform: uppercase; letter-spacing: .04em; margin-top: auto; }

/* ── Page Hero ──────────────────────────────────────────────────── */
.page-hero { position: relative; overflow: hidden; min-height: 300px; display: flex; align-items: center; color: #fff; background: var(--dark); }
.page-hero-content { position: relative; z-index: 2; padding: 60px 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; color: rgba(255,255,255,.55); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.breadcrumbs a:hover { color: var(--accent); }
.page-hero h1 { margin: 8px 0 10px; max-width: 860px; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.1; letter-spacing: -.03em; font-family: "Playfair Display", Georgia, serif; }
.page-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.72); }
.category-title-row { display: flex; align-items: center; gap: 16px; }
.category-title-row .category-icon { flex: 0 0 auto; width: 54px; height: 54px; margin: 0; border-radius: 12px; }

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font-size: .74rem; font-weight: 700; }
.pagination a:hover, .pagination .current { color: #fff; border-color: var(--primary); background: var(--primary); }
.pagination .disabled { color: var(--muted); background: #f3f0ea; }

/* ── Article Page ───────────────────────────────────────────────── */
.article-hero { position: relative; min-height: 460px; display: flex; align-items: end; overflow: hidden; color: #fff; background: var(--dark); }
.article-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(27,67,50,.25), rgba(27,67,50,.92)); }
.article-hero-content { position: relative; z-index: 2; width: 100%; padding: 54px 0 48px; }
.article-hero h1 { max-width: 860px; margin: 12px 0 16px; font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1.12; letter-spacing: -.02em; font-family: "Playfair Display", Georgia, serif; }
.article-lead { max-width: 760px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(.9rem, 1.8vw, 1.02rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; color: rgba(255,255,255,.6); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.reading-progress { position: fixed; z-index: 80; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; padding: 48px 0 68px; }
.article-layout.no-toc { grid-template-columns: minmax(0, 940px); justify-content: center; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: 0 3px 12px rgba(0,0,0,.03); }
.toc strong { display: block; margin-bottom: 10px; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.toc a { display: block; padding: 4px 0; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.toc a.sub { padding-left: 11px; color: #9ca3af; }
.toc a:hover { color: var(--primary); }
.article-panel { min-width: 0; padding: clamp(22px, 4.5vw, 48px); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.article-body { color: #374151; font-size: .98rem; line-height: 1.85; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body h2, .article-body h3, .article-body h4 { color: var(--text); line-height: 1.25; letter-spacing: -.02em; scroll-margin-top: 92px; font-family: "Playfair Display", Georgia, serif; }
.article-body h2 { margin: 2.2em 0 .7em; padding-bottom: .35em; border-bottom: 1px solid var(--line); font-size: 1.6rem; }
.article-body h3 { margin: 1.7em 0 .6em; font-size: 1.25rem; }
.article-body p { margin: 1em 0; }
.article-body a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(224,122,95,.4); text-underline-offset: 3px; }
.article-body img { width: auto; max-height: 680px; margin: 1.6em auto; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.article-body blockquote { margin: 1.5em 0; padding: 10px 18px; border-left: 4px solid var(--primary); border-radius: 0 10px 10px 0; background: #f8f6f0; color: #374151; }
.article-body pre { overflow: auto; padding: 16px; border-radius: 10px; background: var(--dark); color: rgba(255,255,255,.78); border: 1px solid rgba(45,106,79,.2); }
.article-body code { padding: .12em .32em; border-radius: 5px; background: #f3f0ea; font-size: .86em; }
.article-body pre code { padding: 0; background: transparent; }
.article-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.article-body th, .article-body td { padding: 9px 11px; border: 1px solid var(--line); text-align: left; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.disclaimer { margin-top: 36px; padding: 16px 18px; border: 1px solid rgba(224,122,95,.3); border-radius: 10px; background: #fdf6f0; color: #92400e; font-size: .72rem; }

/* ── Content Pages ──────────────────────────────────────────────── */
.content-page { padding: 72px 0; }
.content-card { max-width: 880px; margin: 0 auto; padding: clamp(24px, 4.5vw, 48px); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.content-card h2 { margin-top: 1.6em; font-size: 1.4rem; letter-spacing: -.01em; font-family: "Playfair Display", Georgia, serif; }
.content-card p, .content-card li { color: #374151; }
.content-card a { color: var(--primary); }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0; }
.info-box { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f8f6f0; }
.info-box h3 { margin: 0 0 6px; font-size: .88rem; font-family: "Playfair Display", Georgia, serif; }
.info-box p { margin: 0; font-size: .8rem; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { color: #9ca3af; background: var(--dark); border-top: 1px solid rgba(45,106,79,.2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; padding: 54px 0 38px; }
.footer-brand p { max-width: 380px; margin-top: 14px; color: #6b7280; font-size: .8rem; }
.footer-title { margin: 0 0 14px; color: #fff; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #6b7280; font-size: .76rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.08); color: #6b7280; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── Ad Slots ───────────────────────────────────────────────────── */
.template-ad-slot { max-width: 1180px; margin: 0 auto; }

/* ── Animations ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.empty { padding: 64px 18px; text-align: center; color: var(--muted); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; place-items: center; }
  .menu-overlay { display: block; position: fixed; z-index: 59; inset: 0; visibility: hidden; opacity: 0; background: rgba(0,0,0,.45); transition: .25s; }
  .menu-overlay.is-open { visibility: visible; opacity: 1; }
  .mobile-menu { display: block; position: fixed; z-index: 60; top: 0; right: 0; width: min(320px, 85vw); height: 100vh; padding: 22px; background: #fff; transform: translateX(102%); transition: transform .28s ease; box-shadow: -6px 0 20px rgba(27,67,50,.08); }
  .mobile-menu.is-open { transform: none; }
  .mobile-menu .brand { margin-bottom: 26px; color: var(--text); }
  .mobile-menu nav { display: grid; gap: 4px; }
  .mobile-menu nav a { padding: 11px 13px; border-radius: 8px; color: #374151; font-weight: 700; text-transform: uppercase; font-size: .76rem; letter-spacing: .03em; }
  .mobile-menu nav a:hover { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
  .category-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .footer-grid { gap: 30px; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .spotlight-side { flex-direction: row; }
  .spotlight-card { grid-template-columns: 120px 1fr; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-showcase { grid-template-columns: 1fr; }
  .trending-item { grid-template-columns: 44px 100px 1fr; gap: 14px; }
  .trending-thumb { width: 100px; height: 68px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .section { padding: 50px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .category-grid, .article-grid, .info-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 145px; }
  .page-hero { min-height: 270px; }
  .category-title-row { align-items: flex-start; }
  .category-title-row .category-icon { width: 46px; height: 46px; border-radius: 10px; }
  .article-hero { min-height: 0; display: block; background: var(--dark); }
  .article-hero-image { position: relative; inset: auto; height: 320px; object-position: center 55%; }
  .article-hero::after { display: none; }
  .article-hero-content { padding: 28px 0 36px; background: var(--dark); }
  .article-hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.6rem); }
  .article-panel { border-radius: 14px; }
  .article-body { font-size: .92rem; }
  .article-body h2 { font-size: 1.35rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px 0; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .spotlight { padding: 36px 0 24px; }
  .spotlight-grid { gap: 16px; }
  .spotlight-side { flex-direction: column; }
  .spotlight-card { grid-template-columns: 110px 1fr; }
  .latest-grid { grid-template-columns: 1fr; gap: 16px; }
  .cat-showcase { grid-template-columns: 1fr; gap: 16px; }
  .cat-panel-body { grid-template-columns: 1fr; }
  .cat-panel-article { border-right: none !important; }
  .cat-panel-article:nth-child(even) { border-bottom: 1px solid var(--line); }
  .cat-panel-article:last-child { border-bottom: none; }
  .trending-item { grid-template-columns: 36px 80px 1fr; gap: 10px; padding: 14px 8px; }
  .trending-num { font-size: 1.5rem; }
  .trending-thumb { width: 80px; height: 58px; border-radius: 8px; }
  .trending-body strong { font-size: .84rem; }
}

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