/* Malaysia Health Indicators Dashboard
   Palette: navy ink rail, cool paper, white panels; each survey module brings its own accent colour. */
:root {
  --ink: #15233B;
  --ink-2: #33415A;
  --muted: #5E6C84;
  --paper: #F3F6FA;
  --surface: #FFFFFF;
  --surface-2: #F8FAFD;
  --line: #E1E7F0;
  --rail: #15233B;
  --rail-ink: #C9D3E3;
  --accent: #1C7FA6;
  --accent-soft: rgba(28, 127, 166, .10);
  --good: #1F9D63;
  --bad: #D64550;
  --radius-lg: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 35, 59, .06), 0 6px 18px rgba(21, 35, 59, .05);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
[data-theme="dark"] {
  --ink: #E7ECF5;
  --ink-2: #C2CBDA;
  --muted: #93A0B6;
  --paper: #0E1726;
  --surface: #16223A;
  --surface-2: #1B2945;
  --line: #273756;
  --rail: #0A111E;
  --shadow: 0 1px 2px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .h5 { font-family: var(--font-head); color: var(--ink); letter-spacing: -.01em; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.app { display: flex; min-height: 100vh; }

/* ---------- Left rail ---------- */
.rail {
  width: 268px; flex: 0 0 268px; background: var(--rail); color: var(--rail-ink);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  padding: 20px 14px;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: #fff; padding: 4px 8px 18px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: #fff;
  background: conic-gradient(from 200deg, #E04F5F, #F08A24, #2E9E55, #0F9C8E, #1C7FA6, #7A5AD8, #D6589A, #E04F5F);
}
.brand strong { display: block; font-family: var(--font-head); font-size: 15px; line-height: 1.2; }
.brand small { color: var(--rail-ink); font-size: 12px; }
.rail-heading { margin: 18px 10px 6px; font-size: 12px; color: #8A98B3; font-weight: 600; }
.nav-link-hd {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: var(--rail-ink); text-decoration: none; font-weight: 600; font-size: 14px; position: relative;
}
.nav-link-hd i { font-size: 16px; opacity: .85; }
.nav-link-hd .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: 0 0 10px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 25%, transparent); }
.nav-link-hd:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link-hd.active { background: rgba(255,255,255,.10); color: #fff; }
.nav-link-hd.active::before { content: ""; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 4px; border-radius: 0 4px 4px 0; background: var(--dot, var(--accent)); }
.rail-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.rail-foot a { color: var(--rail-ink); text-decoration: none; font-size: 14px; }

/* ---------- Main ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 14px 28px; position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.crumb { font-weight: 600; color: var(--muted); font-size: 14px; }
.crumb b { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg a, .seg button { padding: 5px 11px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; border: 0; background: none; }
.seg .on { background: var(--ink); color: var(--paper); }
.icon-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 36px; height: 36px;
  border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
#view { padding: 26px 28px 40px; max-width: 1480px; width: 100%; }
.foot { padding: 18px 28px 28px; color: var(--muted); font-size: 13px; }
.loading { color: var(--muted); padding: 40px 0; }

/* ---------- Module banner ---------- */
.banner {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 28px; position: relative; overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow);
}
.banner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--accent); }
.banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
}
.banner h1 { font-size: 28px; margin: 0 0 6px; font-weight: 700; }
.banner p { color: var(--ink-2); margin: 0 0 12px; max-width: 72ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); }
.chip.neutral { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* ---------- Overview hero ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin-bottom: 26px; align-items: stretch; }
.hero-text { padding: 8px 0; }
.hero-text h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.12; margin: 0 0 12px; max-width: 20ch; }
.hero-text p { color: var(--ink-2); max-width: 60ch; font-size: 16px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; max-width: 520px; }
.hero-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 24px; }
.hero-stats span { font-size: 13px; color: var(--muted); }
.spectrum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.spectrum h2 { font-size: 15px; margin: 0 0 4px; }
.spectrum p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 26px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 16px 12px;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--c);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.tile h3 { font-size: 15px; margin: 0; display: flex; justify-content: space-between; }
.tile h3 small { font-family: var(--font-body); font-weight: 600; color: var(--muted); font-size: 12px; }
.tile-kpi { display: flex; align-items: baseline; gap: 8px; }
.tile-kpi b { font-family: var(--font-head); font-size: 26px; color: var(--c); }
.tile-kpi span { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.tile canvas { height: 42px !important; }

.section-title { font-size: 19px; font-weight: 700; margin: 8px 0 14px; }
.section-note { color: var(--muted); margin: -8px 0 16px; font-size: 14px; max-width: 80ch; }

/* ---------- KPI strip ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 10px;
  display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-align: left; color: var(--ink);
}
.kpi:hover { border-color: var(--accent); }
.kpi .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.3; min-height: 34px; }
.kpi .val { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.kpi .val small { font-size: 13px; color: var(--muted); font-family: var(--font-body); font-weight: 600; margin-left: 4px; }
.kpi .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.kpi canvas { height: 38px !important; margin-top: 4px; }
.delta { font-weight: 700; padding: 1px 7px; border-radius: 10px; font-size: 12px; }
.delta.good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.delta.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.delta.flat { background: var(--surface-2); color: var(--muted); }

/* ---------- Category filter ---------- */
.catbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.catbar button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 13px;
  padding: 6px 12px; border-radius: 20px;
}
.catbar button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Chart cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card-hd { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.card-hd.wide { grid-column: 1 / -1; }
.card-head { padding: 16px 18px 6px; display: flex; gap: 12px; align-items: flex-start; }
.card-head h3 { font-size: 16px; margin: 0; font-weight: 600; line-height: 1.3; }
.card-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 18px 4px; }
.card-tools select {
  font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 8px; padding: 4px 26px 4px 8px;
  background-color: var(--surface-2); color: var(--ink); max-width: 190px;
}
.card-tools .spacer { flex: 1; }
.tbtn {
  border: 1px solid transparent; background: none; color: var(--muted); width: 32px; height: 30px; border-radius: 7px;
  display: inline-grid; place-items: center; cursor: pointer;
}
.tbtn:hover, .tbtn.on { background: var(--accent-soft); color: var(--accent); }
.card-body-hd { padding: 6px 18px 12px; position: relative; }
.chart-box { position: relative; height: 320px; }
.card-hd.wide .chart-box { height: 360px; }
.card-foot { padding: 0 18px 14px; font-size: 12.5px; color: var(--muted); }
.card-foot ul { margin: 4px 0 0; padding-left: 18px; }
.badge-ms {
  font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #FFF1D6; color: #8A5A00;
  white-space: nowrap; margin-left: auto;
}
[data-theme="dark"] .badge-ms { background: #4A3A12; color: #FFD27A; }
.zoom-hint { font-size: 11.5px; color: var(--muted); }

/* chart type picker */
.type-pick { position: relative; }
.type-pick > button {
  font-size: 13px; font-weight: 700; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px;
  background: var(--surface-2); color: var(--ink); display: inline-flex; gap: 6px; align-items: center;
}
.type-menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(21,35,59,.18); padding: 8px; display: grid; grid-template-columns: repeat(3, 108px); gap: 4px;
}
.type-menu button {
  border: 1px solid transparent; background: none; border-radius: 8px; padding: 8px 4px; font-size: 12px; font-weight: 600;
  color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.type-menu button i { font-size: 18px; color: var(--accent); }
.type-menu button:hover, .type-menu button.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

/* tables */
.tbl-wrap { overflow-x: auto; max-height: 340px; border: 1px solid var(--line); border-radius: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; white-space: normal; min-width: 180px; }
.tbl thead th { position: sticky; top: 0; background: var(--surface-2); font-weight: 700; color: var(--ink-2); cursor: pointer; }
.tbl td.na { color: var(--muted); font-style: italic; }
.tbl td.note { text-align: left; white-space: normal; color: var(--muted); font-size: 12px; min-width: 200px; }

/* heatmap */
.heat td { font-weight: 700; font-variant-numeric: tabular-nums; }

/* explorer */
.explorer { display: grid; grid-template-columns: 330px 1fr; gap: 18px; align-items: start; }
.picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; position: sticky; top: 80px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.picker input[type=search] { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 100%; background: var(--surface-2); color: var(--ink); margin-bottom: 8px; }
.picker-list { overflow-y: auto; flex: 1; }
.picker-list h4 { font-size: 12.5px; margin: 10px 0 4px; color: var(--muted); font-family: var(--font-body); font-weight: 700; display: flex; gap: 6px; align-items: center; }
.picker-list label { display: flex; gap: 8px; font-size: 13px; padding: 4px 6px; border-radius: 6px; cursor: pointer; align-items: flex-start; }
.picker-list label:hover { background: var(--surface-2); }
.picker-list label small { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 14px; }
.gallery button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 4px; font-size: 12px; font-weight: 700;
  color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.gallery button i { font-size: 20px; color: var(--accent); }
.gallery button.on { border-color: var(--accent); background: var(--accent-soft); }
.gallery button:disabled { opacity: .35; }

.warn { background: #FFF6E5; border: 1px solid #F3D9A4; color: #6B4A00; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; }
[data-theme="dark"] .warn { background: #3A2E12; border-color: #5A4618; color: #FFDC9A; }
.src-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; border-left: 5px solid var(--c); }
.src-card h3 { font-size: 15px; margin: 0 0 4px; }
.src-card p { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Chatbot ---------- */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; width: 58px; height: 58px; border-radius: 50%; border: 0; z-index: 1040;
  background: var(--ink); color: var(--paper); font-size: 24px; box-shadow: 0 10px 24px rgba(21,35,59,.3);
}
.chat-fab::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; z-index: -1;
  background: conic-gradient(#E04F5F, #F08A24, #2E9E55, #1C7FA6, #7A5AD8, #D6589A, #E04F5F);
}
.chat {
  position: fixed; right: 24px; bottom: 94px; width: min(390px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(21,35,59,.28);
  display: flex; flex-direction: column; z-index: 1040; overflow: hidden;
}
.chat[hidden] { display: none; }
.chat header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--ink); color: var(--paper); }
.chat header small { display: block; font-size: 12px; opacity: .75; }
.chat header .icon-btn { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.25); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-line; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg canvas { margin-top: 8px; height: 120px !important; }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; }
.chat-chips button { font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink-2); padding: 3px 10px; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; }
.chat-form input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--surface-2); color: var(--ink); }
.chat-form button { border: 0; background: var(--accent); color: #fff; border-radius: 10px; width: 44px; }

.modal-content { background: var(--surface); color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .btn-close { filter: invert(1); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) { .grid { grid-template-columns: 1fr; } .hero { grid-template-columns: 1fr; } .explorer { grid-template-columns: 1fr; } .picker { position: static; max-height: 380px; } }
@media (max-width: 991px) {
  .rail { position: fixed; left: 0; z-index: 1050; transform: translateX(-100%); transition: transform .2s ease; }
  .rail.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  #view, .topbar { padding-left: 16px; padding-right: 16px; }
  .chart-box { height: 280px; }
  .type-menu { grid-template-columns: repeat(2, 108px); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .rail, .topbar, .chat-fab, .chat, .card-tools { display: none !important; } .grid { grid-template-columns: 1fr; } }


/* ---- KKM copyright notice, manual page ---- */
.foot-copy { margin-bottom: .15rem; }
.kkm-copy { margin-top: .5rem; font-size: .76rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .4rem; }
.manual { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.manual-toc { position: sticky; top: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.manual-toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .5rem; }
.manual-toc ol { margin: 0; padding-left: 1.1rem; font-size: .88rem; }
.manual-toc li { margin: .2rem 0; }
.manual-toc a { color: var(--ink-2); text-decoration: none; }
.manual-toc a:hover { color: var(--accent); text-decoration: underline; }
.manual-body { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.5rem; max-width: 820px; }
.manual-body h2 { font-size: 1.15rem; margin-top: 1.4rem; color: var(--accent); scroll-margin-top: 80px; }
.manual-body h2:first-child { margin-top: 0; }
.manual-body li { margin-bottom: .25rem; }
.manual-fig { margin: 1rem 0 1.4rem; }
.manual-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 8px rgba(21, 35, 59, .08); }
.manual-fig figcaption { font-size: .82rem; color: var(--muted); margin-top: .45rem; }
.manual-sign { margin-top: 2rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
@media (max-width: 991px) { .manual { grid-template-columns: 1fr; } .manual-toc { position: static; } }
@media print {
  .rail, .topbar, .chat, .chat-fab, .tbtn, .card-tools { display: none !important; }
  .foot { display: block !important; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #ccc; padding: 4px 12px; font-size: 10px; }
  .main { margin-left: 0 !important; }
}

/* Icon buttons in the top bar sit side by side */
.top-actions a.icon-btn { text-decoration: none; }

/* Overview banner: slim strip, cropped from the centre-lower part so the people stay visible */
.ov-banner { margin: 0 0 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ov-banner img { display: block; width: 100%; height: clamp(105px, 12vw, 168px); object-fit: cover; object-position: center 62%; }
@media (max-width: 767px) { .ov-banner { border-radius: 10px; } .ov-banner img { height: 105px; } }

/* Nutrition guide (serving sizes) */
.guide-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.guide-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.guide-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table tbody tr:hover { background: var(--accent-soft); }
.guide-table td.g-serv { white-space: nowrap; font-weight: 700; }
.guide-table td.g-wt { min-width: 110px; font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.guide-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.guide-tools input { max-width: 320px; }
.guide-notes { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 13.5px; color: var(--ink-2); }
.guide-notes h3 { font-size: 14px; margin: 0 0 8px; }
.guide-notes p { margin: 0 0 6px; }
sup.fn { font-weight: 700; color: var(--accent); margin-left: 1px; }
@media (max-width: 767px) { .guide-table td, .guide-table th { padding: 8px 10px; } .guide-table td.g-wt { min-width: 80px; } }

/* Prominent call-to-action button on the Nutrition module page */
.guide-cta { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; padding: 16px 20px; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(110deg, #1f8a4c 0%, #2e9e5b 55%, #46b573 100%); box-shadow: 0 8px 22px rgba(46, 158, 91, .32); transition: transform .15s ease, box-shadow .15s ease; }
.guide-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46, 158, 91, .42); }
.guide-cta:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.guide-cta .gc-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .2); font-size: 26px; }
.guide-cta .gc-txt { flex: 1; min-width: 0; }
.guide-cta .gc-txt b { display: block; font-family: var(--font-head); font-size: 19px; line-height: 1.2; }
.guide-cta .gc-txt span { display: block; font-size: 13.5px; opacity: .92; margin-top: 2px; }
.guide-cta .gc-go { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #1f8a4c; font-size: 18px; transition: transform .15s ease; }
.guide-cta:hover .gc-go { transform: translateX(4px); }
@media (max-width: 575px) { .guide-cta { padding: 12px 14px; gap: 12px; } .guide-cta .gc-ico { width: 42px; height: 42px; font-size: 21px; } .guide-cta .gc-txt b { font-size: 16px; } .guide-cta .gc-txt span { font-size: 12.5px; } }
