/* HIVThai — First Chapter Atlas Design System */

:root {
  --bg: #EEF1F5;
  --bg-soft: #E2E8F0;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-frost: rgba(255, 255, 255, 0.92);

  --navy-dark: #0F1C2E;
  --navy-slate: #162536;
  --navy-surface: #1A2A42;

  --accent: #C41E3A;
  --accent-hot: #9F1239;
  --accent-light: #FEE2E2;
  --sky: #2563EB;
  --sky-soft: #DBEAFE;

  --text-main: #0F1C2E;
  --text-muted: #5B6B7C;
  --text-light: #8494A7;
  --text-inverse: #FFFFFF;

  --border: #D5DCE6;
  --border-soft: rgba(15, 28, 46, 0.08);
  --border-focus: #2563EB;

  --font: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Literata', 'Noto Sans Thai', Georgia, 'Times New Roman', serif;

  --radius-xs: 6px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(15, 28, 46, 0.04);
  --shadow-md: 0 8px 20px -6px rgba(15, 28, 46, 0.1), 0 2px 6px rgba(15, 28, 46, 0.04);
  --shadow-lg: 0 16px 36px -10px rgba(15, 28, 46, 0.14), 0 4px 10px rgba(15, 28, 46, 0.05);

  --max-w: 1120px;
  --header-height: 72px;

  /* Legacy aliases used by inline styles in templates */
  --accent-cyan: var(--sky);
  --accent-teal: var(--sky);
  --accent-glow: rgba(196, 30, 58, 0.18);
  --hot-coral: var(--accent);
  --hot-amber: #B45309;
  --hot-soft: var(--accent-light);
  --transit-bts: var(--accent);
  --transit-mrt: var(--sky);
  --transit-gold: #A16207;
}

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

html {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: var(--header-height);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 30, 58, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(37, 99, 235, 0.06), transparent 50%),
    linear-gradient(rgba(15, 28, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 46, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hot);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent {
  color: var(--accent);
}

.gradient-text {
  color: var(--accent);
}

/* —— Badges (primer chapter pills — soft radius, not over-rounded) —— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.badge-chapter,
.badge-hot,
.badge-bts {
  background: var(--accent-light);
  color: var(--accent-hot);
  border: 1px solid rgba(196, 30, 58, 0.18);
}

.badge-sky,
.badge-cyan,
.badge-dark-cyan,
.badge-mrt {
  background: var(--sky-soft);
  color: #1D4ED8;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-soft {
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(15, 28, 46, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(15, 28, 46, 0.96);
  box-shadow: 0 8px 24px rgba(7, 12, 22, 0.28);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.brand-logo:hover {
  color: #ffffff;
}

.brand-mark {
  flex-shrink: 0;
  border-radius: 10px;
}

.brand-title {
  font-size: 1.2rem;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-title .text-accent {
  color: #FCA5A5;
}

.brand-sub {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(238, 241, 245, 0.65);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(226, 232, 240, 0.72);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  min-height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(196, 30, 58, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hot);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(159, 18, 57, 0.32);
  color: #ffffff !important;
}

.btn-secondary {
  background: var(--bg-frost);
  color: var(--navy-dark) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
  color: var(--sky) !important;
}

.btn-hot {
  background: var(--accent-hot);
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(159, 18, 57, 0.28);
}

.btn-hot:hover {
  background: #881337;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

.site-footer .brand-logo,
.site-footer .brand-title {
  color: #ffffff;
}

/* —— Home hero (full-bleed) —— */
.home-hero,
.brand-hero {
  position: relative;
  overflow: hidden;
  animation: heroFadeIn 0.7s ease both;
}

.hero-bleed {
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 72px 0 64px;
  color: #ffffff;
  background-color: var(--navy-dark);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-bleed-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 28, 46, 0.92) 0%, rgba(15, 28, 46, 0.78) 42%, rgba(15, 28, 46, 0.35) 72%, rgba(15, 28, 46, 0.2) 100%),
    radial-gradient(ellipse 50% 60% at 15% 80%, rgba(196, 30, 58, 0.22), transparent 60%);
  pointer-events: none;
}

.hero-bleed-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-right: auto;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-name {
  display: block;
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  color: #ffffff;
}

.hero-name-th {
  display: block;
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  color: #FCA5A5;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.hero-tagline {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 500;
  color: rgba(238, 241, 245, 0.92);
  margin: 0 0 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.hero-search-box {
  background: var(--bg-frost);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 6px 6px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  box-shadow: var(--shadow-sm);
  color: var(--text-light);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-box:focus-within {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hero-search-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--navy-dark);
  font-size: 0.98rem;
  font-family: var(--font);
  outline: none;
  min-width: 0;
}

.hero-search-box input::placeholder {
  color: var(--text-light);
}

.hero-media-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  background: var(--navy-dark);
  min-height: 360px;
}

.hero-media-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-service-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-service-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-dark);
}

.hero-service-card span:last-child {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-quick-tags a {
  color: var(--navy-dark);
  background: var(--bg-frost);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.hero-quick-tags a:hover {
  background: var(--sky-soft);
  color: var(--sky) !important;
  border-color: rgba(37, 99, 235, 0.25);
}

/* Service strip (kept for compatibility) */
.service-strip {
  padding: 0 0 8px;
}

.service-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-strip-grid a {
  background: var(--bg-frost);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  transition: background 0.2s ease;
}

.service-strip-grid a:hover {
  background: #ffffff;
}

.service-strip-grid strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--navy-dark);
}

.service-strip-grid span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* —— Learn triage —— */
.triage-section {
  padding: 48px 0 56px;
  position: relative;
  z-index: 2;
}

.triage-header {
  margin-bottom: 36px;
}

.triage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.triage-card {
  background: var(--bg-frost);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.triage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 30, 58, 0.28);
  color: inherit;
}

.triage-card.chapter-crimson {
  border-top: 3px solid var(--accent);
}

.triage-card.chapter-sky {
  border-top: 3px solid var(--sky);
}

/* Legacy transit card class aliases → atlas chapter look */
.triage-card.bts-card,
.triage-card.hot-card { border-top: 3px solid var(--accent); }
.triage-card.mrt-card,
.triage-card.prep-card { border-top: 3px solid var(--sky); }

.triage-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.chapter-crimson .triage-icon-wrap,
.bts-card .triage-icon-wrap,
.hot-card .triage-icon-wrap {
  background: var(--accent-light);
  color: var(--accent);
}

.chapter-sky .triage-icon-wrap,
.mrt-card .triage-icon-wrap,
.prep-card .triage-icon-wrap {
  background: var(--sky-soft);
  color: var(--sky);
}

.triage-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 10px 0 8px;
}

.triage-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.triage-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.triage-card:hover .triage-card-arrow {
  transform: translateX(4px);
}

.chapter-sky .triage-card-arrow {
  color: var(--sky);
}

/* —— Hub section —— */
.hub-section {
  padding: 72px 0;
  background: rgba(226, 232, 240, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hub-card {
  background: var(--bg-frost);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.28);
  color: inherit;
}

.hub-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.read-time {
  font-size: 0.8rem;
  color: var(--text-light);
  white-space: nowrap;
}

.hub-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
  line-height: 1.45;
}

.hub-card-title a {
  color: inherit;
}

.hub-card-title a:hover {
  color: var(--sky);
}

.hub-card-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.hub-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.hub-card-footer span:first-child {
  color: var(--sky);
  font-weight: 700;
}

.hub-card-footer span:last-child {
  color: var(--text-light);
}

/* —— Articles —— */
.articles-section {
  padding: 72px 0;
}

.article-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  max-width: none;
  margin-bottom: 36px;
}

.article-section-header .section-title {
  margin-bottom: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-frost);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 30, 58, 0.22);
}

.article-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #243653 100%);
}

.article-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb-wrap img {
  transform: scale(1.04);
}

.article-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-cat-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-hot);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.article-card-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.45;
  margin-bottom: 10px;
}

.article-card-title a {
  color: inherit;
}

.article-card-title a:hover {
  color: var(--sky);
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.byline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}

.byline-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.byline-author-cat {
  font-weight: 700;
  color: var(--navy-dark);
}

.byline-author-cat a {
  color: var(--sky);
}

.byline-date {
  color: var(--text-light);
  font-size: 0.78rem;
}

.empty-state-card {
  background: var(--bg-frost);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.empty-state-card p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* —— Trust / E-E-A-T —— */
.trust-section {
  padding: 0 0 72px;
}

.trust-booking-strip .eeat-strip {
  margin: 0;
}

.eeat-strip {
  background: var(--bg-frost);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.eeat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eeat-content h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.eeat-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.eeat-content a,
.trust-links a {
  color: var(--sky);
  font-weight: 600;
  font-size: 0.9rem;
}

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}

/* —— Article reading —— */
.article-page {
  padding: 40px 0 80px;
}

.article-header {
  max-width: 820px;
  margin: 0 auto 36px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.28;
  margin: 16px 0;
  letter-spacing: -0.02em;
}

.article-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.article-main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.article-content {
  background: var(--bg-frost);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1e293b;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 28px 0 12px;
}

.article-content p { margin-bottom: 18px; }
.article-content ul,
.article-content ol { margin-bottom: 22px; padding-left: 26px; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--sky); font-weight: 600; }

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.sidebar-widget {
  background: var(--bg-frost);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.author-box {
  background: rgba(226, 232, 240, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 36px 0;
}

.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-light);
  flex-shrink: 0;
}

.author-box-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.author-box-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 2px 0 6px;
}

.author-box-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* —— Static mast —— */
.static-mast {
  background: linear-gradient(165deg, #0F1C2E 0%, #1A2A42 100%) !important;
  color: #ffffff;
  padding: 48px 0 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.static-mast .badge-cyan {
  background: rgba(254, 226, 226, 0.15);
  color: #FECACA;
  border-color: rgba(254, 226, 226, 0.25);
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 64px 0 28px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.65;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact a {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-contact a:hover {
  color: #FECACA;
}

.footer-hotline {
  font-weight: 700;
  color: #FECACA !important;
}

.eeat-badge-box {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eeat-badge-box strong {
  color: #FECACA;
  display: block;
  margin-bottom: 4px;
}

.footer-heading {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FECACA;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: #64748b;
}

.footer-disclaimer {
  font-size: 0.78rem;
  max-width: 560px;
  color: #64748b;
  line-height: 1.5;
}

/* —— Cookie bar —— */
.cookie-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 900px;
  background: rgba(15, 28, 46, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 20px 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: slideUp 0.4s ease-out;
}

.cookie-bar.hidden {
  display: none !important;
}

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.cookie-text a {
  color: #93C5FD;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* —— Misc / legacy hero bits —— */
.hero-section {
  background: linear-gradient(165deg, #0F1C2E 0%, #1A2A42 100%);
  color: #ffffff;
  padding: 64px 0 80px;
}

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254, 226, 226, 0.12);
  border: 1px solid rgba(254, 226, 226, 0.28);
  color: #FECACA;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.breadcrumbs,
.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a,
.breadcrumb a {
  color: var(--sky);
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-media-card,
  .hero-media-card img {
    min-height: 300px;
  }

  .triage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hub-grid,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-main-grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(15, 28, 46, 0.98);
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    gap: 4px;
  }

  .mobile-toggle {
    display: block;
  }

  .book-label {
    display: none;
  }

  .header-book-btn {
    padding: 10px 12px;
  }

  .hero-bleed {
    min-height: min(70vh, 560px);
    padding: 56px 0 48px;
    background-position: 70% center;
  }

  .hero-name {
    font-size: 2.6rem;
  }

  .triage-grid,
  .hub-grid,
  .article-grid,
  .service-strip-grid {
    grid-template-columns: 1fr;
  }

  .article-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-content {
    padding: 24px 18px;
  }

  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
    padding: 18px;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hero-name {
    font-size: 2rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
