/*
Theme Name: 樣板洞察誌
Theme URI: https://wp-demo03.cosmogrid.io/
Author: Cosmogrid Demo Studio
Description: 為付費內容、會員訂閱與數位報告打造的現代編輯型 WordPress 佈景主題。
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: sample-insights
*/

:root {
  --ink: #101722;
  --navy: #101d33;
  --navy-2: #172a49;
  --cobalt: #245de8;
  --cobalt-dark: #1746b2;
  --amber: #ef9b2d;
  --amber-soft: #fff0d6;
  --paper: #f7f5f0;
  --paper-2: #ece9e2;
  --white: #ffffff;
  --muted: #647084;
  --line: rgba(16, 23, 34, 0.13);
  --shadow: 0 20px 60px rgba(17, 28, 48, 0.12);
  --radius: 22px;
  --radius-sm: 12px;
  --content: 1180px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
::selection { color: var(--white); background: var(--cobalt); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  background: var(--white);
  z-index: 99999;
}

.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.reading-width { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; }
.section { padding: 92px 0; }
.section--compact { padding: 64px 0; }
.section--white { background: var(--white); }
.section--navy { color: var(--white); background: var(--navy); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--cobalt);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section--navy .eyebrow { color: #8eb0ff; }
.section-title,
.archive-title {
  margin: 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}
.section-copy { max-width: 650px; color: var(--muted); }
.section--navy .section-copy { color: rgba(255,255,255,.72); }
.text-link { color: var(--cobalt); font-weight: 800; }
.text-link:hover { color: var(--cobalt-dark); }

.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--white) !important;
  background: var(--cobalt) !important;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  color: var(--white) !important;
  background: var(--cobalt-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36, 93, 232, .22);
}
.button--amber { color: var(--navy) !important; background: var(--amber) !important; }
.button--amber:hover { color: var(--navy) !important; background: #ffb345 !important; }
.button--ghost { color: var(--ink) !important; background: transparent !important; border-color: var(--line); }
.button--ghost:hover { color: var(--cobalt) !important; background: var(--white) !important; }
.button--light { color: var(--navy) !important; background: var(--white) !important; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--white);
  background: rgba(14, 25, 44, .94);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.brand-mark {
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 58% 40%, var(--amber) 0 18%, transparent 19%), linear-gradient(135deg, var(--cobalt), var(--navy-2));
}
.brand-mark::after { content: ""; width: 14px; height: 1px; background: var(--white); transform: rotate(-24deg); }
.brand small { display: block; color: rgba(255,255,255,.58); font-size: .58rem; font-weight: 700; letter-spacing: .12em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 700; }
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .button { min-height: 42px; padding: 9px 17px; font-size: .85rem; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }

/* Hero */
.insights-hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.insights-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-image, linear-gradient(135deg, var(--navy), var(--navy-2))) center / cover no-repeat;
}
.insights-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(9,18,33,.96) 0%, rgba(9,18,33,.84) 38%, rgba(9,18,33,.18) 73%, rgba(9,18,33,.1) 100%), linear-gradient(0deg, rgba(9,18,33,.45), transparent 50%);
}
.hero-copy { max-width: 680px; padding: 90px 0 110px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: #b9caff; font-size: .8rem; font-weight: 800; letter-spacing: .14em; }
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--amber); }
.hero-title {
  max-width: 680px;
  margin: 0 0 24px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: -.065em;
}
.hero-title span { color: var(--amber); }
.hero-description { max-width: 600px; margin: 0 0 34px; color: rgba(255,255,255,.74); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 54px; display: flex; flex-wrap: wrap; gap: 28px; color: rgba(255,255,255,.65); font-size: .82rem; }
.hero-meta strong { display: block; color: var(--white); font-family: Georgia, serif; font-size: 1.55rem; }

/* Topic and article cards */
.topic-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.topic-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.topic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(36,93,232,.3); }
.topic-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -35px;
  width: 105px;
  height: 105px;
  border: 22px solid var(--paper-2);
  border-radius: 50%;
}
.topic-card__index { color: var(--cobalt); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.topic-card h3 { margin: 48px 0 8px; font-size: 1.05rem; line-height: 1.35; }
.topic-card p { margin: 0; color: var(--muted); font-size: .82rem; }

.articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-card__image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-2); }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .article-card__image img { transform: scale(1.035); }
.premium-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--amber);
  font-size: .7rem;
  font-weight: 900;
}
.article-card__body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.article-card__meta { display: flex; gap: 8px; color: var(--muted); font-size: .73rem; font-weight: 700; }
.article-card h3 { margin: 12px 0 10px; font-family: Georgia, "Noto Serif TC", serif; font-size: 1.45rem; line-height: 1.35; letter-spacing: -.025em; }
.article-card h3 a:hover { color: var(--cobalt); }
.article-card__excerpt { margin: 0 0 22px; color: var(--muted); font-size: .9rem; }
.article-card__footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .76rem; }

.feature-story { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 470px; overflow: hidden; border-radius: 28px; color: var(--white); background: var(--navy); box-shadow: var(--shadow); }
.feature-story__image { min-height: 420px; background: var(--navy-2); }
.feature-story__image img { width: 100%; height: 100%; object-fit: cover; }
.feature-story__copy { padding: clamp(36px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.feature-story__copy h2 { margin: 0 0 20px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2rem,4vw,3.5rem); line-height: 1.15; letter-spacing: -.04em; }
.feature-story__copy p { color: rgba(255,255,255,.7); }

/* Reports and plans */
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.report-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.report-card__cover {
  position: relative;
  aspect-ratio: 4/5;
  margin-bottom: 24px;
  padding: 26px;
  overflow: hidden;
  color: var(--white);
  border-radius: 15px;
  background: linear-gradient(145deg, var(--navy), var(--cobalt-dark));
}
.report-card__cover::before { content: ""; position: absolute; width: 160px; height: 160px; right: -45px; bottom: -45px; border: 30px solid rgba(255,255,255,.11); border-radius: 50%; }
.report-card__cover::after { content: ""; position: absolute; width: 90px; height: 90px; right: 30px; top: 35px; border-radius: 50%; background: var(--amber); opacity: .9; }
.report-card__cover small { position: relative; z-index: 1; font-weight: 800; letter-spacing: .1em; }
.report-card__cover strong { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 28px; font-family: Georgia, "Noto Serif TC", serif; font-size: 1.5rem; line-height: 1.3; }
.report-card h3 { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.4; }
.report-card p { color: var(--muted); font-size: .88rem; }

.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.plan-card--featured { color: var(--white); border-color: var(--navy); background: var(--navy); transform: translateY(-12px); box-shadow: var(--shadow); }
.plan-card__label { color: var(--cobalt); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.plan-card--featured .plan-card__label { color: var(--amber); }
.plan-card h3 { margin: 10px 0; font-family: Georgia, "Noto Serif TC", serif; font-size: 1.8rem; }
.plan-card__price { margin: 4px 0 18px; font-size: 2.5rem; font-weight: 900; letter-spacing: -.05em; }
.plan-card__price small { font-size: .82rem; font-weight: 600; letter-spacing: 0; }
.plan-card ul { flex: 1; padding: 0; margin: 10px 0 28px; list-style: none; }
.plan-card li { position: relative; padding: 8px 0 8px 26px; color: var(--muted); font-size: .9rem; }
.plan-card--featured li { color: rgba(255,255,255,.72); }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--cobalt); font-weight: 900; }
.plan-card--featured li::before { color: var(--amber); }

/* Newsletter */
.newsletter {
  position: relative;
  overflow: hidden;
  padding: 50px;
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cobalt-dark), var(--navy));
}
.newsletter::after { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -80px; border: 42px solid rgba(255,255,255,.08); border-radius: 50%; }
.newsletter__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.newsletter h2 { margin: 0 0 10px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2rem,4vw,3rem); line-height: 1.2; }
.newsletter p { color: rgba(255,255,255,.72); }
.newsletter-form { display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: var(--white); }
.newsletter-form input { min-width: 0; flex: 1; padding: 10px 16px; border: 0; outline: 0; background: transparent; }
.newsletter-form button { flex: 0 0 auto; border: 0; }
.form-note { margin: 9px 10px 0; font-size: .72rem; color: rgba(255,255,255,.55); }

/* Archives and single */
.archive-hero { padding: 82px 0 54px; border-bottom: 1px solid var(--line); background: var(--white); }
.archive-description { max-width: 700px; margin-top: 16px; color: var(--muted); }
.archive-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.filter-chip { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); font-size: .8rem; font-weight: 700; }
.filter-chip:hover { color: var(--cobalt); border-color: var(--cobalt); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }

.single-hero { padding: 74px 0 42px; background: var(--white); }
.single-hero__inner { max-width: 960px; }
.single-kicker { color: var(--cobalt); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.single-title { margin: 16px 0 22px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2.65rem,6vw,5.2rem); line-height: 1.08; letter-spacing: -.055em; }
.single-deck { max-width: 780px; color: var(--muted); font-size: 1.15rem; }
.single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; color: var(--muted); font-size: .82rem; }
.single-media { width: min(calc(100% - 40px), 1180px); margin: 0 auto 56px; }
.single-media img { width: 100%; max-height: 680px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: var(--reading); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--content); }
.entry-content > .alignfull { max-width: none; }
.entry-content p { margin-top: 0; margin-bottom: 1.55em; }
.entry-content h2 { margin-top: 2.2em; margin-bottom: .7em; font-family: Georgia, "Noto Serif TC", serif; font-size: 2rem; line-height: 1.3; letter-spacing: -.025em; }
.entry-content h3 { margin-top: 1.8em; font-size: 1.35rem; }
.entry-content blockquote { padding: 26px 30px; border-left: 4px solid var(--amber); border-radius: 0 14px 14px 0; color: var(--navy); background: var(--amber-soft); font-family: Georgia, "Noto Serif TC", serif; font-size: 1.18rem; }
.entry-content a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }

.paywall {
  max-width: 820px;
  margin: 54px auto 0;
  padding: clamp(34px, 6vw, 62px);
  border-radius: 28px;
  color: var(--white);
  text-align: center;
  background: radial-gradient(circle at 80% 10%, rgba(239,155,45,.28), transparent 28%), linear-gradient(145deg, var(--navy-2), var(--navy));
  box-shadow: var(--shadow);
}
.paywall__icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--amber); background: rgba(255,255,255,.06); font-size: 1.4rem; }
.paywall h2 { margin: 0 0 12px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2rem,4vw,3rem); }
.paywall p { max-width: 590px; margin: 0 auto 26px; color: rgba(255,255,255,.68); }
.paywall__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.paywall__note { margin-top: 18px !important; font-size: .75rem; }

.author-box { display: grid; grid-template-columns: 110px 1fr; gap: 26px; max-width: var(--reading); margin: 70px auto; padding-top: 36px; border-top: 1px solid var(--line); }
.author-box__avatar { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: linear-gradient(135deg, var(--cobalt), var(--navy)); font-family: Georgia, serif; font-size: 2rem; }
.author-box h3 { margin: 0 0 6px; }
.author-box p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Author and member */
.author-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.author-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.author-card__avatar { width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; color: var(--white); background: linear-gradient(135deg,var(--cobalt),var(--navy)); font-family: Georgia, serif; font-size: 1.5rem; }
.author-card h3 { margin: 0 0 4px; }
.author-card__role { color: var(--cobalt); font-size: .8rem; font-weight: 800; }
.author-card p { color: var(--muted); font-size: .88rem; }
.member-panel { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.member-status { display: inline-flex; padding: 7px 12px; border-radius: 999px; color: #126a44; background: #e2f5ec; font-size: .78rem; font-weight: 800; }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { margin: 36px 0; color: var(--muted); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.15rem; }
.woocommerce ul.products li.product .price { color: var(--cobalt); font-weight: 900; }
.woocommerce-message,
.woocommerce-info { border-top-color: var(--cobalt); background: var(--white); }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--cobalt); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }

/* Footer */
.site-footer { padding: 72px 0 28px; color: rgba(255,255,255,.72); background: #0b1424; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 54px; }
.footer-brand p { max-width: 360px; margin-top: 20px; color: rgba(255,255,255,.56); font-size: .88rem; }
.footer-title { margin: 0 0 18px; color: var(--white); font-size: .82rem; letter-spacing: .08em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 9px 0; }
.footer-links a { font-size: .86rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 58px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.45); font-size: .74rem; }

.pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
.page-numbers.current { color: var(--white); border-color: var(--cobalt); background: var(--cobalt); }
.empty-state { padding: 60px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--white); }

@media (max-width: 1024px) {
  .primary-nav { position: fixed; inset: 78px 0 auto; display: none; padding: 22px 20px 30px; background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 4px; }
  .primary-nav a { display: block; padding: 10px 0; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .header-actions .button:first-child { display: none; }
  .topic-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .articles-grid,
  .archive-grid,
  .report-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1.4fr repeat(2,1fr); }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  .section { padding: 68px 0; }
  .insights-hero { min-height: 610px; }
  .hero-copy { padding: 76px 0 86px; }
  .hero-title { font-size: clamp(2.8rem,13vw,4.4rem); }
  .insights-hero::after { background: linear-gradient(90deg, rgba(9,18,33,.96), rgba(9,18,33,.72)); }
  .feature-story { grid-template-columns: 1fr; }
  .feature-story__image { min-height: 300px; }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card--featured { transform: none; }
  .newsletter { padding: 36px 26px; }
  .newsletter__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 620px) {
  .container,
  .reading-width,
  .single-media { width: min(calc(100% - 28px), var(--content)); }
  .header-inner { min-height: 70px; gap: 10px; }
  .brand { font-size: .92rem; }
  .brand small { display: none; }
  .primary-nav { inset-block-start: 70px; }
  .header-actions .button { min-height: 38px; padding: 8px 12px; font-size: .76rem; }
  .hero-meta { gap: 18px; }
  .hero-meta strong { font-size: 1.25rem; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .topic-grid,
  .articles-grid,
  .archive-grid,
  .report-grid,
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .topic-card { min-height: 150px; }
  .topic-card h3 { margin-top: 30px; }
  .single-title { font-size: 2.55rem; }
  .author-box { grid-template-columns: 72px 1fr; }
  .author-box__avatar { width: 72px; height: 72px; font-size: 1.4rem; }
  .author-grid { grid-template-columns: 1fr; }
  .newsletter-form { align-items: stretch; flex-direction: column; border-radius: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

