/* Thai LGBT Rights — indigo nav + rose accent + warm ivory */
:root {
  --bg: #ffffff;
  --bg-muted: #f5f2ed;
  --bg-soft: #faf7f2;
  --bg-hero: #1b1b3a;
  --text: #2a2a32;
  --text-muted: #6b6b78;
  --border: #e8e4de;
  --accent: #c2185b;
  --accent-dark: #9e1449;
  --accent-hot: #9e1449;
  --accent-soft: #fce4ec;
  --signal: #c2185b;
  --signal-dark: #9e1449;
  --nav-bg: #1b1b3a;
  --nav-text: #faf7f2;
  --ink: #1b1b3a;
  --ink-deep: #12122a;
  --paper: #ffffff;
  --shadow: 0 10px 28px rgba(27, 27, 58, 0.1);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
  --max: 1200px;
  --font: "Noto Sans Thai", sans-serif;
  --font-display: "Chakra Petch", "Noto Sans Thai", sans-serif;
  --text-base: 1.0625rem;
  --text-sm: 0.95rem;
  --text-lg: 1.2rem;
  --header-h: 118px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text);
  background-color: var(--bg);
  background-image: none;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main#main {
  flex: 1;
}

h1,
h2,
.hero-brand,
.brand-name {
  font-family: var(--font-display);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}
h1,
h2,
h3,
h4 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
p {
  margin: 0 0 1em;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  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 {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.skip-link:focus {
  top: 1rem;
}

/* Page loading overlay */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(6, 21, 37, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity 0.2s var(--ease);
}
.page-loader[hidden] {
  display: none !important;
}
.page-loader-card {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.35rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(6, 21, 37, 0.22);
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}
.page-loader-spin {
  width: 1.35rem;
  height: 1.35rem;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: pageLoaderSpin 0.7s linear infinite;
}
html.is-loading,
html.is-loading body {
  cursor: progress;
}

@keyframes pageLoaderSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-spin { animation-duration: 1.4s; }
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.container.narrow {
  width: min(100% - 2rem, 720px);
}

/* Header — white bar like live site */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
body.is-home .site-header {
  position: sticky;
}
.header-mast {
  background: var(--nav-bg);
  border-bottom: 0;
}
.header-mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.header-nav-bar {
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-nav-bar .nav-desktop {
  display: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--nav-text);
  min-width: 0;
}
.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.15;
  color: var(--nav-text);
}
.brand-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(250, 247, 242, 0.72);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28ch;
}
.nav-desktop ul {
  display: flex;
  gap: 0.1rem;
  align-items: stretch;
}
.nav-desktop a {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  color: rgba(250, 247, 242, 0.78);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: #fff;
  background: transparent;
  border-bottom-color: var(--accent);
}
.nav-desktop .has-submenu {
  position: relative;
}
.nav-desktop .has-submenu > a {
  gap: 0.35rem;
}
.nav-desktop .submenu-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
}
.nav-desktop .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 13.5rem;
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--signal);
  box-shadow: 0 14px 32px rgba(7, 28, 26, 0.14);
  z-index: 40;
}
.nav-desktop .has-submenu:hover > .submenu,
.nav-desktop .has-submenu:focus-within > .submenu {
  display: block;
}
.nav-desktop .submenu a {
  display: block;
  padding: 0.65rem 0.8rem;
  margin: 0;
  border-bottom: 0;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
}
.nav-desktop .submenu a:hover,
.nav-desktop .submenu a[aria-current="page"],
.nav-desktop .submenu a.is-active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-bottom-color: transparent;
}
.nav-mobile-sub {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0 0 0 0.85rem;
}
.nav-mobile-sub a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  border-bottom-color: var(--border) !important;
  padding: 0.65rem 0 !important;
}

/* HIV hub — numbered campaign list */
.hiv-hub {
  padding: 2rem 0 1.5rem;
}
.hiv-hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.hiv-hub-item {
  display: grid;
  grid-template-columns: 2.75rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0.15rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.hiv-hub-item:hover {
  color: var(--accent-dark);
}
.hiv-hub-item:hover .sheet-num,
.hiv-hub-item:hover .hiv-hub-go {
  color: var(--signal-dark);
}
.hiv-hub-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.hiv-hub-copy strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.hiv-hub-copy span {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hiv-hub-go {
  font-size: 1.25rem;
  color: var(--accent);
}
.hiv-hub-cta {
  margin: 1.5rem 0 0;
  padding: 2.5rem 0 3.5rem;
  background: #fafafa;
  color: var(--text);
  border-top: 3px solid var(--signal);
}
.hiv-hub-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.hiv-hub-cta h2 {
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.hiv-hub-cta p {
  margin: 0;
  color: var(--text-muted);
}
.hiv-topic-book {
  margin: 2rem 0 0;
}
.knowledge-content.sheet-answers .sheet-qa > p,
.knowledge-content.sheet-answers .sheet-qa > ul,
.knowledge-content.sheet-answers .sheet-qa > .knowledge-table-wrap {
  margin-left: 3.25rem;
}
.knowledge-content .knowledge-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}
.knowledge-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.knowledge-content th,
.knowledge-content td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.knowledge-content th {
  background: var(--accent-soft);
  color: var(--ink);
}
.knowledge-content ul {
  padding-left: 1.2rem;
  list-style: disc;
  color: var(--text-muted);
}
.knowledge-content ul li {
  margin: 0.35rem 0;
}

@media (max-width: 960px) {
  .hiv-hub-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .knowledge-content.sheet-answers .sheet-qa > p,
  .knowledge-content.sheet-answers .sheet-qa > ul,
  .knowledge-content.sheet-answers .sheet-qa > .knowledge-table-wrap {
    margin-left: 0;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.header-book {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: var(--radius);
  white-space: nowrap;
  display: none;
}
.header-book:hover {
  color: #fff;
  background: var(--accent-hot);
}
@media (min-width: 961px) {
  .header-book {
    display: inline-flex;
  }
  .header-nav-bar .nav-desktop {
    display: block;
  }
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--signal);
  outline: none;
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 16px;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 1px;
  background: var(--ink);
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}
.nav-mobile {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 1rem 0 1.25rem;
}
.nav-mobile[hidden] {
  display: none !important;
}
.nav-mobile ul {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto 1rem;
}
.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.nav-mobile .btn,
.nav-mobile .action-link {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  display: flex;
}

/* Buttons — keep for forms; prefer action-link on marketing surfaces */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}
.btn-signal {
  background: var(--signal);
  color: #fff;
  border-color: var(--signal);
}
.btn-signal:hover {
  background: var(--signal-dark);
  border-color: var(--signal-dark);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--text);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}
.btn-ghost-on-slab {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn-ghost-on-slab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.btn-block {
  width: 100%;
}
.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}
.text-link:hover {
  text-decoration: underline;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--accent-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
  transition:
    color 0.2s,
    gap 0.25s var(--ease);
}
.action-link:hover {
  color: var(--accent);
  gap: 0.7rem;
}
.action-link-primary {
  background: var(--signal);
  color: var(--ink-deep);
  border: 0;
  border-radius: 2px;
  padding: 0.85rem 1.2rem;
}
.action-link-primary:hover {
  background: #fbbf24;
  color: var(--ink-deep);
  gap: 0.7rem;
}
.action-link-on-dark {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}
.action-link-on-dark:hover {
  color: #fff4df;
}

/* Magazine home */
.mag-intro {
  padding: 2.75rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.mag-intro-inner {
  max-width: 46rem;
  text-align: center;
  margin-inline: auto;
}
.mag-intro-brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.mag-intro h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  color: var(--signal);
  letter-spacing: -0.01em;
}
.mag-intro-lead {
  margin: 0 auto 1.35rem;
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1.02rem;
}
.mag-intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

/* Home mast — compact brand line (no photo hero) */
.home-mast {
  padding: 1.75rem 0 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}
.home-mast-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
}
.home-mast h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.home-mast p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mag-featured {
  padding: 1.5rem 0 0.5rem;
}
.mag-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.mag-feature-main {
  min-height: 100%;
}
.mag-feature-media {
  position: relative;
  display: block;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink);
}
.mag-feature-media > img,
.mag-feature-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mag-feature-fallback {
  background: linear-gradient(135deg, #f4f4f4, #eaeaea);
}
.mag-feature-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 16, 32, 0.88) 100%);
  pointer-events: none;
}
.mag-feature-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.5rem 1.5rem 1.65rem;
}
.mag-feature-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.mag-feature-title a {
  color: #fff;
  text-decoration: none;
}
.mag-feature-title a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.mag-feature-meta .byline {
  order: 0;
}

.mag-feature-side {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.mag-side-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}
.mag-side-media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-muted);
}
.mag-side-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.mag-side-card:hover .mag-side-media img {
  transform: scale(1.05);
}
.mag-side-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  padding-top: 0.1rem;
}
.mag-side-copy .h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
}
.mag-side-copy .h3 a {
  color: var(--text);
  text-decoration: none;
}
.mag-side-copy .h3 a:hover {
  color: var(--accent);
}
.mag-side-copy .byline {
  order: 0;
}

.mag-topics {
  padding: 1.5rem 0 0.25rem;
}
.mag-topics-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.mag-topic-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--paper);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.mag-topic-chip:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.mag-section {
  padding: 2.75rem 0 1rem;
}
.mag-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.mag-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
}
.mag-section-mark {
  width: 4px;
  height: 1.05em;
  background: var(--signal);
  flex-shrink: 0;
}
.mag-view-all {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--signal);
  text-decoration: none;
  white-space: nowrap;
}
.mag-view-all:hover {
  text-decoration: underline;
}

/* Home — topic rail (not tile cards) */
.home-rail {
  padding: 3.25rem 0 2.5rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.home-rail-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
}
.home-rail-kicker,
.home-digest-kicker,
.home-cta-note {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-rail-intro h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}
.home-rail-intro p {
  margin: 0;
  color: var(--text-muted);
  max-width: 28rem;
}
.home-rail-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid var(--ink);
}
.home-rail-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 0 1.05rem 0.85rem;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.home-rail-link:hover {
  color: var(--accent-dark);
  border-left-color: var(--signal);
  background: var(--accent-soft);
}
.home-rail-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.home-rail-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.home-rail-label strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.home-rail-label span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Home — editorial digest (lead + numbered list) */
.home-digest {
  padding: 4rem 0 3.25rem;
}
.home-digest-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.home-digest-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.home-digest-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 34rem;
}
.home-digest-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
.home-lead {
  display: grid;
  gap: 1.15rem;
  order: 1;
}
.home-lead-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--bg-muted);
  text-decoration: none;
}
.home-lead-media img,
.home-lead-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}
.home-lead:hover .home-lead-media img {
  transform: scale(1.04);
}
.home-lead-fallback {
  background: linear-gradient(145deg, var(--accent), var(--ink) 60%, var(--signal));
}
.home-lead-copy time {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.home-lead-copy h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.home-lead-copy h3 a {
  color: var(--text);
  text-decoration: none;
}
.home-lead-copy h3 a:hover {
  color: var(--accent-dark);
}
.home-lead-copy p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.home-digest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  order: 0;
  border-top: 2px solid var(--ink);
}
.home-digest-list li {
  border-bottom: 1px solid var(--border);
}
.home-digest-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1.05rem 0;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s var(--ease);
}
.home-digest-item:hover strong {
  color: var(--accent-dark);
}
.home-digest-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  min-width: 1.6rem;
}
.home-digest-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.home-digest-body time {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.home-digest-body strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  transition: color 0.2s var(--ease);
}
.home-digest-thumb {
  width: 72px;
  height: 54px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-muted);
}
.home-digest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.home-digest-item:hover .home-digest-thumb img {
  transform: scale(1.06);
}

.home-cta {
  background:
    linear-gradient(120deg, var(--ink-deep) 0%, #0f766e 52%, #b45309 100%);
  color: #fff;
  padding: 3.75rem 0;
  border-top: 6px solid var(--signal);
}
.home-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.home-cta-note {
  color: #fde68a;
}
.home-cta h2 {
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
}
.home-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 36rem;
}

/* Home hero — full-bleed photo + forest campaign slab */
.home-hero {
  position: relative;
  min-height: min(88svh, 700px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.home-hero-media {
  position: absolute;
  inset: 0;
}
.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.03);
  animation: heroKen 20s var(--ease) infinite alternate;
}
.home-hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 28, 26, 0.78) 0%, rgba(10, 47, 44, 0.45) 42%, rgba(10, 47, 44, 0.12) 70%),
    linear-gradient(180deg, rgba(7, 28, 26, 0.2) 0%, transparent 38%, rgba(7, 28, 26, 0.55) 100%);
}
.home-hero-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2rem 0 3.25rem;
}
.home-hero-slab {
  max-width: 42rem;
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  background: linear-gradient(155deg, rgba(7, 28, 26, 0.94) 0%, rgba(15, 118, 110, 0.88) 100%);
  border-top: 5px solid var(--signal);
  box-shadow: 0 24px 60px rgba(7, 28, 26, 0.4);
  animation: brandRise 0.85s var(--ease) both;
}
.home-hero-brand {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #fff;
  display: inline-block;
}
.home-hero-brand::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 5px;
  margin-top: 0.7rem;
  background: var(--signal);
  transform-origin: left center;
  animation: brandAccent 1s 0.2s var(--ease) both;
}
@keyframes brandRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes brandAccent {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
.home-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.96);
  max-width: 20ch;
}
.home-hero-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.45rem;
}
@keyframes heroKen {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section-muted {
  background: rgba(232, 238, 246, 0.7);
}
.section-header {
  margin-bottom: 2rem;
  max-width: 40rem;
}
.section-header h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
}
.section-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.cta-band {
  background: linear-gradient(125deg, #071c1a 0%, #0f766e 52%, #f59e0b 100%);
  color: #fff;
  padding: 3rem 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 1.6rem;
}
.cta-band p {
  margin: 0;
  opacity: 0.9;
}

/* Keep legacy article cards for listing compatibility */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.35rem;
}
.article-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.article-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease);
}
.article-card:hover {
  box-shadow: none;
  transform: translateY(-2px);
}
.article-card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-muted);
  border-radius: 2px;
}
.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.article-card:hover .article-card-media img {
  transform: scale(1.04);
}
.article-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f4f4f4, #ebebeb);
}
.article-card-body {
  padding: 0.9rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.story-tag {
  display: inline-block;
  width: fit-content;
  margin: 0;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-deep);
  background: var(--signal);
  line-height: 1.3;
}
.story-tag-on-dark {
  background: var(--signal);
  color: var(--ink-deep);
}

/* Author byline: avatar + "Name in Category" / date */
.byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  min-width: 0;
}
.byline-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-muted);
}
.byline-avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}
.byline-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.byline-line {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text-muted);
}
.byline-name,
.byline-cat {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
a.byline-name:hover,
a.byline-cat:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.byline-in {
  color: var(--text-muted);
  font-weight: 400;
}
.byline-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.byline.is-on-dark .byline-line,
.byline.is-on-dark .byline-in,
.byline.is-on-dark .byline-date {
  color: rgba(255, 255, 255, 0.78);
}
.byline.is-on-dark .byline-name,
.byline.is-on-dark .byline-cat {
  color: #fff;
}
.byline.is-on-dark .byline-avatar {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.article-card-body .byline {
  order: 3;
  margin-top: 0.15rem;
}
.article-card-body .byline-avatar {
  width: 32px;
  height: 32px;
}
.article-card-body .byline-line {
  font-size: 0.84rem;
}
.article-card-body .byline-date {
  font-size: 0.78rem;
}
.article-header > .byline {
  margin: 0 0 1rem;
}
.article-header > .byline .byline-avatar {
  width: 44px;
  height: 44px;
}
.article-header h1 {
  margin-top: 0;
}

.article-card-body h2,
.article-card-body h3,
.article-card-body .h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
  order: 2;
}
.article-card-body h2 a,
.article-card-body h3 a,
.article-card-body .h3 a {
  text-decoration: none;
  color: var(--text);
}
.article-card-body h2 a:hover,
.article-card-body h3 a:hover {
  color: var(--accent);
}
.article-card-body p {
  display: none;
}
.article-card-body .text-link {
  display: none;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 42rem;
}
.lead-sm {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Page hero */
.page-hero {
  padding: 2.75rem 0 2rem;
  background:
    linear-gradient(180deg, var(--paper) 0%, transparent 100%),
    linear-gradient(90deg, rgba(245, 158, 11, 0.14) 0 6px, transparent 6px);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
}

.author-hero {
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(15, 118, 110, 0.12), transparent 55%),
    linear-gradient(180deg, #e4f3ef 0%, var(--bg) 100%);
}
.author-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem 1.5rem;
}
.author-avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.author-avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}
.author-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.author-hero-copy h1 {
  margin: 0 0 0.5rem;
}
.author-bio {
  max-width: 40rem;
  margin-bottom: 0.5rem;
}
.author-count {
  margin: 0;
  color: var(--text-muted);
}
.author-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 0.15em;
}
.author-link:hover {
  color: var(--accent);
}

.breadcrumbs {
  padding: 0.4rem 0 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: #b0bcc4;
  font-weight: 400;
  line-height: 1;
}
.breadcrumbs a {
  text-decoration: none;
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.search-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  max-width: 560px;
}
.search-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font: inherit;
  background: var(--paper);
}
.search-form input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.chip-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2.75rem;
}
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination-btn,
.pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--paper);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s var(--ease);
}
.pagination-num {
  min-width: 42px;
  padding: 0;
  border-radius: 12px;
}
.pagination-btn:hover,
.pagination-num:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.pagination-num.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  pointer-events: none;
}
.pagination-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  color: var(--text-muted);
  font-weight: 600;
}
.pagination-meta {
  text-align: center;
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}
@media (max-width: 640px) {
  .pagination {
    gap: 0.65rem;
  }
  .pagination-btn span:not([aria-hidden]) {
    display: none;
  }
  .pagination-btn {
    min-width: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
}
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

/* Article detail — WP-like 2-column layout */
.article-detail {
  padding-bottom: 2.5rem;
}
.breadcrumbs + .article-detail {
  margin-top: 0;
}
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
  padding-top: 0.15rem;
}
.article-main {
  min-width: 0;
}
.article-header {
  padding: 0 0 0.5rem;
}
.article-header .meta {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.article-header h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  margin: 0 0 0.65rem;
  color: var(--ink);
  line-height: 1.25;
}
.article-body {
  padding-bottom: 0.5rem;
}
.article-body.prose {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.85;
}
.article-body.prose h2,
.article-body.prose h3 {
  margin-top: 1.75em;
  font-size: 1.4rem;
  color: var(--accent-dark);
}
.article-body.prose p,
.article-body.prose ul,
.article-body.prose ol {
  margin-bottom: 1.15em;
}
.article-body.prose ul {
  padding-left: 1.25rem;
  list-style: disc;
}
.article-body.prose ol {
  padding-left: 1.25rem;
  list-style: decimal;
}
.article-body.prose a:not(.btn) {
  color: var(--accent-dark);
}
.article-body.prose figure {
  margin: 0 0 1.35rem;
}
.article-body.prose figure img,
.article-body.prose img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.article-body.prose {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-body.prose table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
}
.article-body.prose :where(pre, iframe, video, embed, object) {
  max-width: 100%;
}
.article-body.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}
.article-body.prose th,
.article-body.prose td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.article-body.prose th {
  background: var(--bg-muted);
  font-weight: 600;
}
.article-body.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-muted);
}

/* TOC */
.article-toc,
#ez-toc-container {
  margin: 1.35rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  background: #f7f8fa;
}
.article-toc .toc-title,
#ez-toc-container .toc-title,
#ez-toc-container .ez-toc-title {
  margin: 0 0 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e3a5f;
}
.article-toc ul,
#ez-toc-container ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style: decimal;
}
.article-toc li,
#ez-toc-container li {
  margin: 0.3rem 0;
}
.article-toc a,
#ez-toc-container a {
  text-decoration: none;
  color: #2563eb;
  font-size: 0.95rem;
}
.article-toc a:hover,
#ez-toc-container a:hover {
  text-decoration: underline;
}

.article-ad {
  margin: 1.5rem 0;
  text-align: center;
}
.article-ad a {
  display: inline-block;
  line-height: 0;
}
.article-ad img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}
.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
}
.article-share span {
  color: var(--text-muted);
  font-weight: 600;
}
.article-share a {
  text-decoration: none;
  font-weight: 600;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sidebar-search {
  display: flex;
  border: 1px solid #c9d2dc;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.sidebar-search input {
  flex: 1;
  border: 0;
  padding: 0.7rem 0.85rem;
  font: inherit;
  min-width: 0;
}
.sidebar-search input:focus {
  outline: none;
}
.sidebar-search button {
  width: 44px;
  border: 0;
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-search button:hover {
  background: #2563eb;
}
.sidebar-ad {
  display: block;
  line-height: 0;
  border-radius: 4px;
  overflow: hidden;
}
.sidebar-ad img {
  width: 100%;
  height: auto;
  display: block;
}
.sidebar-widget {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 6px 18px rgba(15, 40, 50, 0.05);
}
.sidebar-widget h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #1e3a5f;
}
.sidebar-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sidebar-widget a {
  text-decoration: none;
  color: #2563eb;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 500;
}
.sidebar-widget a:hover {
  text-decoration: underline;
}

.prose {
  font-size: 1.05rem;
  color: var(--text);
}
.prose h2,
.prose h3 {
  margin-top: 1.75em;
}
.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.1em;
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose img {
  border-radius: 10px;
  margin: 1.25rem 0;
}
.prose a:not(.btn) {
  color: var(--accent);
}
.prose a.btn-primary {
  color: #fff;
}
.prose a.btn-primary:hover {
  color: #fff;
}
.prose figure {
  margin: 1.5rem 0;
}

@media (max-width: 960px) {
  .article-shell {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    order: 2;
  }
}
.aside-box {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-muted);
}
.aside-box.accent {
  background: var(--accent-soft);
  border-color: transparent;
  margin-top: 1rem;
}
.aside-title,
.aside-box h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.share-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.share-list a {
  text-decoration: none;
  font-weight: 500;
}

/* About / FAQ / Contact */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.value-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.value-list li {
  padding: 1rem 1.1rem;
  background: var(--bg-muted);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  font-weight: 500;
}
.about-wp {
  margin-top: 2rem;
  color: var(--text-muted);
}
.about-wp img {
  display: none;
} /* hide decorative WP stock images */

/* FAQ — campaign handout sheet (not accordion sister pattern) */
.sheet-hero {
  padding: 2.5rem 0 1.75rem;
  background:
    linear-gradient(90deg, var(--signal) 0 5px, transparent 5px),
    linear-gradient(180deg, var(--paper) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.sheet-hero-inner {
  max-width: 40rem;
}
.sheet-eyebrow,
.desk-eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-dark);
}
.sheet-lead,
.desk-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}
.sheet-body {
  padding: 2.5rem 0 4rem;
}
.sheet-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
}
.sheet-index {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--ink);
  color: #e8f5f2;
}
.sheet-index-title {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}
.sheet-index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sheet-index a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  text-decoration: none;
  color: rgba(232, 245, 242, 0.88);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.sheet-index a:hover {
  color: #fff;
}
.sheet-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--signal);
  letter-spacing: 0.04em;
}
.sheet-answers {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sheet-qa {
  padding: 1.5rem 0 1.65rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.sheet-qa:first-child {
  padding-top: 0.25rem;
}
.sheet-qa-head {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.65rem;
}
.sheet-qa-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
}
.sheet-qa > p {
  margin: 0 0 0 3.25rem;
  color: var(--text-muted);
  max-width: 42rem;
}

/* Contact — single full-bleed hotline (not multi-section sister contact page) */
.hotline {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink-deep);
  color: #e8f5f2;
  padding: 3.5rem 0 4.5rem;
}
.hotline-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(245, 158, 11, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 90%, rgba(15, 118, 110, 0.35), transparent 50%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 14px,
      rgba(255, 255, 255, 0.02) 14px,
      rgba(255, 255, 255, 0.02) 15px
    );
  pointer-events: none;
}
.hotline-stage {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}
.hotline-mark {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}
.hotline-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
}
.hotline-line {
  margin: 0 0 2rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  color: rgba(232, 245, 242, 0.82);
  max-width: 28rem;
}
.hotline-mail {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem 0 1.35rem;
  border-top: 1px solid rgba(232, 245, 242, 0.18);
  border-bottom: 1px solid rgba(232, 245, 242, 0.18);
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}
.hotline-mail:hover {
  border-color: var(--signal);
  color: inherit;
}
.hotline-mail-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 245, 242, 0.55);
}
.hotline-mail-addr {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  color: #fff;
  word-break: break-word;
  line-height: 1.25;
}
.hotline-mail:hover .hotline-mail-addr {
  color: var(--signal);
}
.hotline-note {
  margin: 0 0 1.75rem;
  color: rgba(232, 245, 242, 0.62);
  font-size: 0.95rem;
  max-width: 32rem;
}
.hotline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.hotline-quiet {
  color: rgba(232, 245, 242, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 158, 11, 0.55);
}
.hotline-quiet:hover {
  color: var(--signal);
}

@media (max-width: 960px) {
  .sheet-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sheet-index {
    position: static;
  }
  .sheet-index ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .sheet-qa > p {
    margin-left: 0;
  }
  .sheet-qa-head {
    grid-template-columns: 2rem 1fr;
  }
  .hotline {
    min-height: auto;
    padding: 2.75rem 0 3.5rem;
  }
  .hotline-brand {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }
}

/* Knowledge hub */
.page-hero-compact {
  padding-bottom: 1.5rem;
}
.page-hero-compact .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.knowledge-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #fff 0%, #f7fbfc 100%);
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
.knowledge-card:hover {
  border-color: #9ec9d4;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 40, 50, 0.06);
}
.knowledge-card h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #1e3a5f;
}
.knowledge-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}
.knowledge-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.knowledge-card-cta {
  font-weight: 650;
  color: var(--accent-dark);
  font-size: 0.92rem;
}
.knowledge-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.knowledge-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.knowledge-cta p {
  margin: 0;
  color: var(--text-muted);
}
.knowledge-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.knowledge-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.knowledge-aside-block h2 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.knowledge-toc,
.knowledge-siblings {
  margin: 0;
  padding: 0;
  list-style: none;
}
.knowledge-toc {
  counter-reset: topic;
}
.knowledge-toc li {
  counter-increment: topic;
}
.knowledge-toc a,
.knowledge-siblings a {
  display: block;
  padding: 0.4rem 0;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
}
.knowledge-toc a::before {
  content: counter(topic) ". ";
  color: #9aa8b2;
  font-weight: 600;
}
.knowledge-toc a:hover,
.knowledge-siblings a:hover,
.knowledge-siblings a[aria-current="page"] {
  color: var(--accent-dark);
}
.knowledge-section {
  padding: 0 0 1.75rem;
  margin: 0 0 1.75rem;
  border-bottom: 1px solid var(--border);
}
.knowledge-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0.5rem;
}
.knowledge-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  color: #1e3a5f;
}
.knowledge-section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: #1e3a5f;
  font-weight: 600;
}
.knowledge-section p {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.75;
}
.knowledge-section p:last-child {
  margin-bottom: 0;
}
.knowledge-section ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.knowledge-section li {
  margin-bottom: 0.35rem;
  line-height: 1.65;
}
.knowledge-figure {
  margin: 1.25rem 0 1.5rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, #f3faf9 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.knowledge-figure img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 8px;
  background: #fff;
}
.knowledge-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.knowledge-table-wrap {
  overflow-x: auto;
  margin: 1.15rem 0 1.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.knowledge-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0;
}
.knowledge-content caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}
.knowledge-content th,
.knowledge-content td {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
}
.knowledge-content th {
  background: #f7fbfa;
  font-weight: 600;
  color: #1e3a5f;
}
.knowledge-content tr:last-child td {
  border-bottom: 0;
}
.knowledge-references ol {
  margin: 0;
  padding-left: 1.25rem;
}
.knowledge-references li {
  margin-bottom: 0.55rem;
  line-height: 1.55;
}
.knowledge-references a {
  word-break: break-word;
}
.knowledge-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.privacy-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.privacy-body h2 {
  font-size: 1.15rem;
  margin-top: 1.75em;
}

/* Footer — light white like live site */
.site-footer {
  background: #fafafa;
  color: var(--text-muted);
  padding: 0 0 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.footer-signal {
  height: 3px;
  background: var(--signal);
}
.footer-main {
  display: grid;
  gap: 1.75rem;
  padding: 2.75rem 0 2rem;
}
.footer-brand .brand {
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.footer-brand .brand-name {
  font-size: 1.25rem;
  color: var(--ink);
}
.footer-brand p {
  font-size: 0.95rem;
  max-width: 40ch;
  color: var(--text-muted);
  margin: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}
.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}
.footer-nav a:hover {
  color: var(--signal);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-meta a:hover {
  color: var(--signal);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.15rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-disclaimer {
  margin: 0.65rem 0 0;
  max-width: 52rem;
  opacity: 0.85;
  line-height: 1.5;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* E-E-A-T blocks */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.eeat-byline {
  margin: 0.85rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.eeat-byline p {
  margin: 0 0 0.35rem;
}
.eeat-cred {
  color: var(--text-muted);
}
.eeat-trust-notice {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.86rem;
  line-height: 1.45;
}
.eeat-trust-notice a {
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.home-trust {
  margin-top: 1.75rem;
  max-width: 40rem;
}
.eeat-box {
  margin: 2rem 0 1.25rem;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.eeat-box-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: var(--accent-dark);
}
.eeat-box-sub {
  font-size: 0.95rem;
  margin: 1rem 0 0.4rem;
  color: var(--text);
}
.eeat-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.eeat-sources {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}
.eeat-sources a {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-dark);
}
.eeat-sources a:hover {
  text-decoration: underline;
}
.eeat-sources-inline {
  margin-top: 0.75rem;
}
.eeat-editorial {
  margin: 1.75rem 0 0;
  max-width: 46rem;
  color: var(--text-muted);
}
.eeat-pillar {
  cursor: default;
}
.eeat-pillar:hover {
  transform: none;
  color: var(--text);
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
}

/* Cookie consent — PDPA notice (fixed bottom bar) */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  padding: 1rem;
  pointer-events: none;
}
.cookie-consent[hidden] {
  display: none;
}
.cookie-consent-inner {
  pointer-events: auto;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem;
  background: var(--ink-deep);
  color: #d5e6e2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--signal);
  box-shadow: 0 -12px 40px rgba(7, 28, 26, 0.28);
  animation: cookie-in 0.45s var(--ease) both;
}
.cookie-consent-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  color: #fff;
  letter-spacing: -0.01em;
}
.cookie-consent-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #b7cbc6;
  max-width: 46rem;
}
.cookie-consent-desc a {
  color: var(--signal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent-desc a:hover {
  color: #fbbf24;
}
.cookie-consent-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.cookie-consent-actions .btn {
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  font-size: 0.95rem;
}
@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
body.has-cookie-consent {
  padding-bottom: 7.5rem;
}
@media (max-width: 720px) {
  .cookie-consent {
    padding: 0.65rem;
  }
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
  }
  .cookie-consent-actions {
    width: 100%;
  }
  .cookie-consent-actions .btn {
    flex: 1;
  }
  body.has-cookie-consent {
    padding-bottom: 11rem;
  }
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .btn:hover,
  .article-card:hover,
  .disease-link:hover {
    transform: none;
  }
  .home-hero-media img {
    animation: none;
    transform: none;
  }
  .cookie-consent-inner {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .nav-desktop {
    display: none;
  }
  .header-nav-bar {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-mast-inner {
    gap: 0.65rem;
    min-height: 64px;
  }
  .brand-name {
    font-size: 1.02rem;
  }
  .brand-tag {
    display: none;
  }
  :root {
    --header-h: 64px;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillar-grid,
  .eeat-grid,
  .service-grid,
  .article-grid,
  .article-grid-3,
  .article-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .mag-featured-grid {
    grid-template-columns: 1fr;
  }
  .mag-feature-media {
    min-height: 360px;
  }
  .mag-side-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .article-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .article-sidebar {
    position: static;
    order: 2;
  }
  .article-layout,
  .about-grid,
  .footer-grid,
  .footer-top,
  .contact-layout,
  .knowledge-layout,
  .home-feature-panel,
  .home-lead-story,
  .home-rail-inner,
  .home-digest-layout {
    grid-template-columns: 1fr;
  }
  .home-rail-links {
    grid-template-columns: 1fr;
  }
  .home-rail-link {
    padding-left: 0.85rem;
  }
  .home-digest-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-feature-media {
    max-height: 320px;
    aspect-ratio: 16 / 10;
  }
  .home-feature {
    padding: 2.5rem 0 1.75rem;
  }
  .home-feature-panel {
    border-radius: 20px;
  }
  .home-feature-copy {
    padding: 1.35rem 1.25rem 1.5rem;
  }
  .home-quote-inner {
    padding-top: 2rem;
  }
  .home-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .knowledge-aside {
    position: static;
  }
  .knowledge-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .aside-box {
    position: static;
  }
  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-band .btn,
  .cta-band .action-link {
    width: auto;
  }
  .section {
    padding: 3.25rem 0;
  }
  .page-hero {
    padding: 2.25rem 0 1.5rem;
  }
  .author-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-bio {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }
  .container {
    width: min(100% - 1.25rem, var(--container));
  }
  .brand-tag {
    display: none;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .home-hero {
    min-height: min(88svh, 700px);
    align-items: flex-end;
  }
  .home-hero-copy {
    padding: 2.25rem 0 2.75rem;
    max-width: none;
  }
  .home-hero-brand {
    font-size: clamp(2.1rem, 11vw, 2.9rem);
  }
  .home-hero h1 {
    max-width: none;
    font-size: clamp(1.15rem, 4.4vw, 1.4rem);
  }
  .home-hero-lead {
    font-size: 0.98rem;
  }
  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .home-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .home-digest-item {
    grid-template-columns: auto 1fr;
  }
  .home-digest-thumb {
    display: none;
  }
  .home-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-quote blockquote {
    padding-left: 0.85rem;
  }
  .home-story-item {
    grid-template-columns: 1fr 5.5rem;
    gap: 0.75rem 1rem;
  }
  .pillar-grid,
  .eeat-grid,
  .trust-grid,
  .disease-grid,
  .stats-grid,
  .service-grid,
  .article-grid,
  .article-grid-3,
  .article-grid-4 {
    grid-template-columns: 1fr;
  }
  .mag-intro {
    padding: 2rem 0 1.35rem;
  }
  .mag-feature-media {
    min-height: 300px;
  }
  .mag-side-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.75rem;
  }
  .mag-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
  .section {
    padding: 2.75rem 0;
  }
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-form {
    flex-direction: column;
  }
  .search-form .btn {
    width: 100%;
  }
  .article-header h1 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }
  .article-meta {
    flex-direction: column;
    gap: 0.2rem;
  }
  .eeat-cred {
    display: block;
    margin-top: 0.25rem;
  }
  .eeat-box {
    padding: 1rem 1.05rem;
  }
  .eeat-sources {
    gap: 0.45rem 0.7rem;
  }
  .article-share {
    flex-wrap: wrap;
    gap: 0.55rem;
  }
  .footer-top,
  .footer-cols,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    padding-bottom: 1.5rem;
  }
  .pagination {
    gap: 0.65rem;
  }
  .btn,
  .action-link-primary {
    min-height: 44px;
  }
  .lang-switch a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .nav-mobile a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 0.9rem;
  }
  .home-hero h1 {
    font-size: 1.85rem;
  }
}

/* —— Thai LGBT Rights portal home —— */
.section-soft {
  background: var(--bg-soft);
}

.portal-hero {
  background: linear-gradient(135deg, var(--bg-hero) 0%, #2a2a52 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
}
.portal-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 2rem;
  align-items: end;
}
.portal-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.portal-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}
.portal-lead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}
.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.portal-hero-accent {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.portal-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.06em;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.portal-about {
  padding: 3rem 0;
}
.portal-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}
.portal-section-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.portal-about h2,
.portal-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
}
.portal-about-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.text-link {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover {
  color: var(--accent);
}
.portal-roles {
  padding: 3rem 0;
}
.portal-section-head {
  margin-bottom: 1.75rem;
}
.portal-section-head-center {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.portal-section-head-center p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}
.portal-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.portal-role-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.portal-role-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
}
.portal-role-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.portal-role-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.portal-hub {
  padding: 2.5rem 0;
}
.portal-hub-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.portal-hub-inner p {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  color: var(--text-muted);
}
.portal-support {
  padding: 3rem 0;
}
.portal-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.portal-support-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}
.portal-support-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--ink);
}
.portal-support-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.portal-support-cta {
  margin-top: 1.5rem;
  text-align: center;
}
.portal-articles {
  padding: 3rem 0;
}
.portal-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.portal-view-all {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.portal-cta-band {
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 0;
}
.portal-cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.portal-cta-band h2 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-family: var(--font-display);
}
.portal-cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}
.sheet-hero-rights {
  background: var(--bg-soft);
}
.rights-hub-cta {
  background: var(--accent-soft);
}

@media (max-width: 960px) {
  .portal-hero-inner,
  .portal-about-grid,
  .portal-roles-grid,
  .portal-support-grid {
    grid-template-columns: 1fr;
  }
  .portal-hero-accent {
    display: none;
  }
  .portal-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
