/* HIV Thai Today — rose ribbon / hopeful health journalism */
:root {
  --bg: #fff8f7;
  --bg-muted: #f8ecee;
  --bg-hero: linear-gradient(
    145deg,
    #4c0519 0%,
    #9f1239 42%,
    #e11d48 78%,
    #fda4af 100%
  );
  --text: #1c1917;
  --text-muted: #6b5f5a;
  --border: #edd5d9;
  --accent: #e11d48;
  --accent-dark: #9f1239;
  --accent-soft: #ffe4e6;
  --shadow: 0 16px 48px rgba(159, 18, 57, 0.1);
  --radius: 16px;
  --container: 1120px;
  --font: "IBM Plex Sans Thai", "Fraunces", system-ui, sans-serif;
  --font-display: "Fraunces", "IBM Plex Sans Thai", Georgia, serif;
  --text-base: 1.125rem; /* ~18px — Thai reads better a step up */
  --text-sm: 0.95rem;
  --text-lg: 1.2rem;
  --header-h: 72px;
  --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: var(--bg);
  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(28, 7, 12, 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(28, 7, 12, 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 — editorial masthead, not marketing pills */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 250, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.nav-desktop ul {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}
.nav-desktop a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--text);
  background: transparent;
  border-bottom-color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  flex-shrink: 0;
}
.lang-switch a {
  padding: 0.35rem 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-muted);
  line-height: 1;
  letter-spacing: 0.04em;
}
.lang-switch a:hover,
.lang-switch a.is-active {
  color: var(--accent-dark);
  background: transparent;
}
.lang-sep {
  color: var(--border);
  font-size: 0.75rem;
}
.header-book {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
  white-space: nowrap;
  display: none;
}
.header-book:hover {
  color: var(--accent);
}
@media (min-width: 961px) {
  .header-book {
    display: inline;
  }
}
.lang-switch-mobile {
  width: min(100% - 2rem, var(--container));
  margin: 0.85rem auto 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.lang-switch-mobile a {
  flex: 0;
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.lang-switch-mobile a.is-active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
@media (min-width: 961px) {
  .lang-switch-mobile {
    display: none;
  }
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid #c5d0d6;
  border-radius: 10px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #15202b;
  flex-shrink: 0;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--accent);
  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: 2px;
  background: #15202b;
  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 {
  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.8rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    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-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(--accent-dark);
}
.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(--accent-dark);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
}
.action-link-primary:hover {
  background: var(--accent);
  color: #fff;
  gap: 0.7rem;
}
.action-link-on-dark {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}
.action-link-on-dark:hover {
  color: #ffe4e6;
}

/* Home — masthead + latest edition */
.news-mast {
  padding: 2.75rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 228, 230, 0.9), transparent 48%),
    linear-gradient(180deg, #fff5f4 0%, #fff 70%);
}
.news-mast-inner {
  max-width: 46rem;
}
.news-mast-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.news-mast h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.18;
}
.news-mast-lead {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 40rem;
}
.news-mast-date {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.news-mast-desks {
  margin: 0 0 1.4rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.news-mast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.news-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.news-kicker.desk-check { color: var(--accent-dark); }
.news-kicker.desk-research { color: var(--accent); }
.news-kicker.desk-news { color: var(--accent-dark); }
.news-kicker.desk-explain { color: var(--text-muted); }
.news-kicker.desk-th { color: var(--accent-dark); }
.news-kicker.desk-impact { color: var(--accent); }

.news-edition {
  padding: 2.5rem 0 1.5rem;
}
.news-edition-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.news-lead h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1.25;
}
.news-lead h2 a {
  color: var(--text);
  text-decoration: none;
}
.news-lead h2 a:hover {
  color: var(--accent-dark);
}
.news-lead-excerpt {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.news-meta {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.news-author {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.news-author:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.news-lead-media {
  display: block;
  margin: 0 0 1.15rem;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.05);
}
.news-lead-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.news-lead:hover .news-lead-media img {
  transform: scale(1.03);
}

.news-side {
  border-left: 1px solid var(--border);
  padding-left: 1.75rem;
}
.news-side-kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.news-side-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}
.news-side-item:first-of-type {
  padding-top: 0;
}
.news-side-media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-muted);
}
.news-side-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-side-copy {
  min-width: 0;
}
.news-side-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.35;
}
.news-side-item h3 a {
  color: var(--text);
  text-decoration: none;
}
.news-side-item h3 a:hover {
  color: var(--accent-dark);
}
.news-side-item time {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.news-side-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.news-desk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
}
.news-desk-tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 9.5rem;
  padding: 1.25rem 1.15rem 1.2rem;
  background: #fff;
  text-decoration: none;
  color: var(--text);
}
.news-desk-tile:hover {
  background: var(--accent-soft);
}
.news-desk-tile strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
}
.news-desk-tile span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.news-method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.news-method li {
  padding-top: 0.7rem;
  border-top: 2px solid var(--text);
  font-size: 0.98rem;
}

.news-guide {
  background:
    linear-gradient(125deg, rgba(76, 5, 25, 0.88), rgba(159, 18, 57, 0.92));
  color: #fff;
  padding: 2.75rem 0;
}
.news-guide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.news-guide h2 {
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}
.news-guide p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 38rem;
}

.news-impact {
  margin: 1.1rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}
.news-impact-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.news-impact p {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 0.98rem;
}
.news-impact p:last-child {
  margin-bottom: 0;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section-muted {
  background: rgba(248, 236, 238, 0.55);
}
.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, #9f1239 0%, #e11d48 55%, #be123c 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;
}

/* Article cards — editorial listing */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.05);
  transition:
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.article-card:hover {
  border-color: #f0b8c0;
  box-shadow: 0 18px 40px rgba(159, 18, 57, 0.12);
  transform: translateY(-4px);
}
.article-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-muted);
}
.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.article-card:hover .article-card-media img {
  transform: scale(1.04);
}
.article-card.is-text .article-card-body {
  padding-top: 1.35rem;
}
.article-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.article-card-byline {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}
.article-card-avatar-link {
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}
.article-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
  display: block;
}
.article-card-avatar-fallback {
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #9f1239, #e11d48);
}
.article-card-byline-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.article-card-byline-top {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text-muted);
}
.article-card-by-label {
  font-weight: 500;
  color: var(--text-muted);
}
.article-card-author-name {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
a.article-card-author-name:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-card-in {
  margin: 0 0.15rem;
  color: var(--text-muted);
  font-weight: 500;
}
.article-card-category {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.article-card-category:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-card-date {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: #9a8c88;
  line-height: 1.3;
}
.article-card-date-solo {
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}
.article-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  font-weight: 650;
  line-height: 1.32;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-title a {
  text-decoration: none;
  color: var(--text);
}
.article-card-title a:hover {
  color: var(--accent-dark);
}
.article-card-excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.article-card-more {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.article-card-more:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Featured / legacy meta line */
.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.article-card-meta time {
  font-size: inherit;
  color: inherit;
}
.article-card-meta-sep {
  color: #c4b4b6;
}
.article-card-by {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  min-width: 0;
}
.article-card-by:hover {
  color: var(--accent);
}

.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: 3rem 0 2rem;
  background: linear-gradient(180deg, #ffe4e6 0%, #fff8f7 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.65rem);
}

.author-profile {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.author-avatar {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(190, 60, 80, 0.12);
}
.author-avatar-fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
}
.author-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.author-bio {
  max-width: 40rem;
}
.author-count {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.author-back {
  margin-top: 2rem;
}

.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: 999px;
  font: inherit;
  background: #fff;
}
.search-form input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.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: 999px;
  background: #fff;
  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;
  color: var(--accent-dark);
  line-height: 1.25;
}
.article-hero {
  margin: 0.85rem 0 1.5rem;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}
.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.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: var(--accent-dark);
  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.85em;
}
.article-body.prose h2 {
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  border-top: 2px solid var(--text);
  padding-top: 0.85rem;
  color: var(--accent-dark);
}
.article-body.prose h1 {
  display: none;
}
.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 */

.about-sub {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}
.about-mix .about-mix-pct {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.35rem;
}
.about-rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.about-rule-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.about-rule-list li span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.about-rule-list li p {
  margin: 0;
  font-weight: 500;
}
.about-gate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.about-gate-list li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.about-gate-num {
  margin: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft, #ffe4e6);
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.about-gate-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
}
.about-gate-list p {
  margin: 0;
  color: var(--text-muted);
}
.about-gate-fail {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: #fff;
  font-weight: 600;
}
.about-split-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.about-split-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
a.about-split-card:hover {
  border-color: #f0b8c0;
  box-shadow: 0 12px 28px rgba(159, 18, 57, 0.1);
}
.about-split-card.is-us {
  border-color: #f0b8c0;
  background: #fff8f7;
}
.about-split-card strong {
  font-size: 1.02rem;
}
.about-split-card span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq-list {
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary h2 {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 600;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
}
.faq-answer p {
  margin: 0;
}

/* 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);
}

/* Contact — channels, no form */
.contact-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.contact-toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1rem 0;
}
.contact-toc-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-toc ol {
  list-style: decimal;
  padding-left: 1.15rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.contact-toc a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.contact-toc a:hover {
  color: var(--accent);
}
.contact-main {
  max-width: 720px;
}
.contact-block {
  margin-bottom: 2.75rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.contact-block h2 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}
.contact-block-lead,
.contact-block > p {
  color: var(--text-muted);
}
.contact-channels {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-channel {
  display: grid;
  grid-template-columns: 110px 1fr;
  grid-template-areas:
    "label value"
    "label desc";
  gap: 0.15rem 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}
.contact-channel:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--text);
}
.contact-channel-label {
  grid-area: label;
  align-self: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.contact-channel-value {
  grid-area: value;
  font-weight: 700;
  font-size: 1.05rem;
}
.contact-channel-desc {
  grid-area: desc;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-help-grid {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.contact-help-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100%;
  padding: 1.2rem 1.2rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}
.contact-help-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--text);
}
.contact-help-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
}
.contact-help-card span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}
.contact-help-card em {
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}
.contact-partner-note {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.92rem;
  line-height: 1.5;
}
.contact-related {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.contact-related li {
  border-bottom: 1px solid var(--border);
}
.contact-related a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.contact-related a:hover {
  color: var(--accent);
}
.contact-related a span:last-child {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-toc {
    position: static;
    padding: 0 0 0.5rem;
  }
  .contact-toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    list-style: none;
    padding-left: 0;
  }
  .contact-help-grid {
    grid-template-columns: 1fr;
  }
}
.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 */
.site-footer {
  background: #1c0a0f;
  color: #e7d5d8;
  padding: 3.5rem 0 0;
  margin-top: auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-brand .brand {
  color: #fff;
  margin-bottom: 0.85rem;
}
.footer-brand p {
  font-size: 0.92rem;
  max-width: 32ch;
  color: #e7d5d8;
}
.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-links a {
  color: #e7d5d8;
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-links a:hover {
  color: #fff;
}

/* PDPA cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.85rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(28, 25, 23, 0.96);
  color: #faf7f6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 40px rgba(28, 25, 23, 0.28);
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner-inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
}
.cookie-banner-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fda4af;
}
.cookie-banner-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.25;
}
.cookie-banner-text {
  margin: 0;
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #e7d5d8;
}
.cookie-banner-text a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex: 0 0 auto;
}
.cookie-banner .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.cookie-banner .btn-primary {
  box-shadow: none;
}
body.has-cookie-banner {
  padding-bottom: 7.5rem;
}

@media (max-width: 720px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-banner-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  body.has-cookie-banner {
    padding-bottom: 11rem;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.15rem 0;
  font-size: 0.85rem;
}
.footer-disclaimer {
  margin: 0.65rem 0 0;
  max-width: 52rem;
  opacity: 0.72;
  line-height: 1.5;
  font-size: 0.8rem;
}

/* 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;
}

/* 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;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .nav-desktop {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-inner {
    gap: 0.65rem;
  }
  .brand-name {
    font-size: 0.98rem;
  }
  .lang-switch a {
    padding: 0.4rem 0.6rem;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillar-grid,
  .eeat-grid,
  .service-grid,
  .article-grid,
  .article-grid-3 {
    grid-template-columns: repeat(2, 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,
  .news-edition-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .news-side {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }
  .news-desk-grid,
  .news-method {
    grid-template-columns: 1fr 1fr;
  }
  .about-split-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-guide-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-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-bio {
    margin-inline: 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;
  }
  .news-mast {
    padding: 1.75rem 0 1.5rem;
  }
  .news-desk-grid,
  .news-method {
    grid-template-columns: 1fr;
  }
  .about-split-grid {
    grid-template-columns: 1fr;
  }
  .news-mast-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .news-mast-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .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 {
    grid-template-columns: 1fr;
  }
  .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;
  }
}
