:root {
  --ink: #0F2347;
  --ink-2: #33415C;
  --muted: #66728A;
  --paper: #FFFFFF;
  --panel: #F4F6FA;
  --line: #E1E6EE;
  --line-2: #CBD3DF;
  --down: #0B8A55;      /* price fell: good for the buyer */
  --down-bg: #E5F5EC;
  --up: #C62828;        /* price rose */
  --up-bg: #FCEBEB;
  --flat: #7A8599;
  --tape: #0F2347;
  --tape-text: #E8EDF6;
  --tape-dim: #93A3C0;
  --brand: #C8102E;
  --font: "Schibsted Grotesk", "Segoe UI", Arial, sans-serif;
  --np: "Mukta", "Schibsted Grotesk", sans-serif;
  --r: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, th button:focus-visible { outline: 3px solid #3D7BFF; outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.loading { padding: 64px 0; color: var(--muted); }

/* ---------- Header ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 6; }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; font-weight: 800; font-size: 23px; letter-spacing: -0.03em; flex: none; }
.logo-word { color: var(--ink); }
.logo-tag { margin-left: 3px; color: #fff; background: var(--brand); font-size: 15px; line-height: 1; letter-spacing: 0.04em; padding: 4px 14px 4px 7px; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 18px 10px 16px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Ticker tape ---------- */
.tape { background: var(--tape); color: var(--tape-text); overflow: hidden; white-space: nowrap; font-size: 14px; position: relative; }
.tape-track { display: inline-flex; padding: 9px 0; animation: tape 90s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape a { color: var(--tape-text); text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; padding: 0 22px; border-right: 1px solid #2A3E66; }
.tape a:hover b { text-decoration: underline; }
.tape b { font-weight: 600; }
.tape .t-rate { color: var(--tape-dim); }
.tape .up { color: #FF8A80; }
.tape .down { color: #5FD69B; }
.tape .flat { color: var(--tape-dim); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tape { overflow-x: auto; }
  .tape-track { animation: none; }
}

/* ---------- Page heading ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 32px 0 16px; }
.head h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; margin: 0; max-width: 28ch; }
.head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.stamp { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.stamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 3px var(--down-bg); }
.stamp.old::before { background: var(--flat); box-shadow: 0 0 0 3px var(--panel); }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 20px; margin: 0; }
.crumbs a { color: var(--muted); }

/* ---------- Category quote strip (home) ---------- */
.quotes { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.quote { display: block; flex: 0 0 176px; scroll-snap-align: start; text-decoration: none; padding: 14px 16px 12px; border-right: 1px solid var(--line); min-width: 0; }
.quote:last-child { border-right: 0; }
.quote:hover { background: var(--panel); }
.q-name { font-weight: 700; font-size: 15px; }
.q-rate { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.q-rate small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.q-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-empty { font-size: 14px; color: var(--muted); margin-top: 8px; }
.quote .spark { margin-top: 8px; width: 100%; height: 28px; }

/* ---------- Sub-section links ---------- */
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.subnav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 14px; }
.subnav a:hover { border-color: var(--ink); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Blocks ---------- */
.block { padding: 32px 0 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.block h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; margin: 0; }
.block-head a { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.movers h3 { font-size: 16px; margin: 0 0 4px; }
.mover-list { list-style: none; margin: 0; padding: 0; }
.mover-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mover-list a { text-decoration: none; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mover-list a:hover { text-decoration: underline; }
.mover-list .m-price { color: var(--ink-2); }
.none { color: var(--muted); font-size: 15px; padding: 10px 0; margin: 0; }

/* ---------- Segmented tabs and chips ---------- */
.seg { display: inline-flex; background: var(--panel); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--ink-2); padding: 5px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 35, 71, 0.18); }

/* ---------- Market table ---------- */
.mkt { width: 100%; border-collapse: collapse; font-size: 15px; }
.mkt th { text-align: right; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.mkt th:nth-child(1), .mkt th:nth-child(2) { text-align: left; }
.mkt th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mkt th button:hover { color: var(--ink); }
.mkt th[aria-sort] button { color: var(--ink); }
.mkt th[aria-sort="ascending"] button::after { content: " ▲"; font-size: 10px; }
.mkt th[aria-sort="descending"] button::after { content: " ▼"; font-size: 10px; }
.mkt td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; white-space: nowrap; }
.mkt tbody tr:hover { background: var(--panel); }
.mkt .c-pos { text-align: left; color: var(--muted); width: 32px; font-weight: 600; }
.mkt tr:first-child .c-pos { color: var(--ink); }
.mkt .c-prod { text-align: left; white-space: normal; width: 44%; }
.prod-cell { display: flex; gap: 12px; align-items: center; }
.thumb { width: 44px; height: 44px; flex: none; border-radius: 6px; background: var(--panel); object-fit: contain; border: 1px solid var(--line); }
.thumb-empty { display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.p-name { font-weight: 600; line-height: 1.3; text-decoration: none; display: block; }
.p-name:hover { text-decoration: underline; }
.p-meta { font-size: 13px; color: var(--muted); }
.c-rate b { font-size: 17px; font-weight: 800; }
.c-price s { display: block; font-size: 12px; color: var(--muted); }
.c-trend .spark { width: 88px; height: 28px; display: inline-block; vertical-align: middle; }
.go { display: inline-block; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; }
.go:hover { border-color: var(--ink); }
.m-only { display: none; }
@media (max-width: 680px) { .m-only { display: inline; } }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel); border-radius: 4px; padding: 0 6px; margin-left: 4px; }
.foot-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; max-width: 80ch; }

/* change pill */
.chg { display: inline-block; font-weight: 700; font-size: 14px; padding: 2px 8px; border-radius: 4px; }
.chg.down { color: var(--down); background: var(--down-bg); }
.chg.up { color: var(--up); background: var(--up-bg); }
.chg.flat { color: var(--flat); background: transparent; font-weight: 600; }

.spark path.l { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark .down { stroke: var(--down); }
.spark .up { stroke: var(--up); }
.spark .flat { stroke: var(--line-2); }

.oos { margin-top: 20px; }
.oos summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 6px 0; }
.oos .mkt { opacity: 0.75; }
.empty { padding: 20px; background: var(--panel); border-radius: var(--r); color: var(--ink-2); }

/* ---------- Product quote page ---------- */
.pq { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: end; padding: 20px 0 8px; }
.pq-id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.pq-img { width: 72px; height: 72px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); object-fit: contain; flex: none; }
.pq-brand { font-size: 14px; color: var(--muted); font-weight: 600; }
.pq h1 { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; margin: 2px 0 0; font-weight: 800; }
.pq-buy { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.pq-buy:hover { background: #1D3563; }
.pq-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 12px 0 4px; }
.pq-big { font-size: clamp(36px, 6vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pq-big small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.pq-sub { color: var(--ink-2); font-size: 15px; }

.chart-card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 8px; margin-top: 16px; }
.chart-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-read { font-size: 14px; color: var(--muted); min-height: 21px; }
.chart-read b { color: var(--ink); }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart .area { opacity: 0.12; }
.chart .line { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.chart .grid { stroke: var(--line); }
.chart .axis { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.chart .cross { stroke: var(--line-2); stroke-dasharray: 3 3; }
.chart-empty { padding: 28px 8px; color: var(--muted); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin: 8px -16px 0; }
.stats div { padding: 10px 16px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; font-weight: 700; font-size: 17px; }

.math { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 15px; }
.math td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.math td:last-child { text-align: right; font-weight: 600; }
.math tr.total td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 800; }
.note { font-size: 14px; color: var(--muted); max-width: 72ch; }

/* ---------- Guide / prose ---------- */
.section { padding: 28px 0 0; }
.section h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.prose { max-width: 68ch; }
.prose h3 { font-size: 19px; margin: 28px 0 6px; }
.prose p { margin: 0 0 12px; }
.formula { font-weight: 700; background: var(--panel); padding: 12px 16px; border-left: 3px solid var(--ink); border-radius: 0 var(--r) var(--r) 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }

/* ---------- Footer ---------- */
.foot { margin-top: 56px; border-top: 1px solid var(--line); }
.foot-inner { padding: 24px 16px 32px; font-size: 14px; color: var(--muted); }
.foot-inner p { margin: 0 0 6px; max-width: 80ch; }
.foot-inner strong { color: var(--ink); }
.foot-meta a { color: var(--muted); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .mkt .c-trend { display: none; }
}
@media (max-width: 680px) {
  .top-inner { gap: 12px; }
  .quote { flex-basis: 150px; }
  .movers { grid-template-columns: 1fr; gap: 16px; }
  .mkt thead { display: none; }
  .mkt, .mkt tbody { display: block; }
  .mkt tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mkt td { display: block; border: 0; padding: 0; }
  .mkt .c-pos, .mkt .c-price, .mkt .c-go { display: none; }
  .mkt .c-prod { grid-row: 1 / 3; width: auto; }
  .mkt .c-rate { align-self: end; }
  .mkt .c-chg { align-self: start; }
  .pq { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Brands page */
.brands .b-name { text-align: left; font-weight: 700; white-space: normal; color: var(--ink); font-size: 16px; }
.brands td { white-space: normal; text-align: left; vertical-align: top; }
.brands th { text-align: left !important; }
.brands .b-partner { width: 46%; }
.vbadge { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.vbadge.ok { color: var(--down); background: var(--down-bg); }
.vbadge.no { color: #8A5A00; background: #FFF3D6; }
.muted { color: var(--muted); }
@media (max-width: 680px) {
  .brands tr { grid-template-columns: 1fr auto; }
  .brands .b-name { display: block; }
  .brands .b-partner, .brands .b-listed { grid-column: 1 / -1; width: auto; }
}

/* Gyms page */
.q-btn { font: inherit; text-align: left; background: var(--paper); border: 0; border-right: 1px solid var(--line); cursor: pointer; color: var(--ink); }
.gyms td { text-align: right; vertical-align: top; }
.gyms td .p-meta { display: block; }
.gyms .c-prod { text-align: left; width: 30%; }
.gyms .c-src { text-align: left; white-space: normal; font-size: 14px; }
.gyms th:nth-child(1), .gyms th:nth-child(7) { text-align: left; }
@media (max-width: 680px) {
  .gyms tr { grid-template-columns: 1fr auto; }
  .gyms .c-prod { grid-row: auto; grid-column: 1 / 2; width: auto; }
  .gyms td:nth-child(3), .gyms td:nth-child(4), .gyms td:nth-child(5), .gyms td:nth-child(6) { display: none; }
  .gyms .c-src { grid-column: 1 / -1; }
}

/* Trainers */
.head .pq-buy { align-self: center; }
.t-layout { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.t-filter { border: 1px solid var(--line); border-radius: 14px; padding: 18px; position: sticky; top: 76px; display: grid; gap: 14px; }
.fld { display: grid; gap: 6px; font-size: 14px; }
.fld > span { font-weight: 600; color: var(--ink-2); }
.fld-row { display: flex; justify-content: space-between; }
.fld-row b { color: var(--ink); }
.fld input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), .fld select, .fld textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; width: 100%; }
.fld textarea { border-radius: 14px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid #3D7BFF33; border-color: #3D7BFF; }
.fld small { color: var(--muted); }
.fld input[type=range] { width: 100%; accent-color: var(--ink); }
.seg-full { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 999px; }
.seg-full button { padding: 7px 2px; font-size: 13px; white-space: nowrap; }
.t-go { font: inherit; font-weight: 700; font-size: 15px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer; width: 100%; }
.t-go:hover { background: #1D3563; }
.t-go:disabled { opacity: 0.6; cursor: wait; }
.t-count { font-size: 18px; margin: 0 0 12px; }
.t-list { display: grid; gap: 12px; }
.t-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; padding: 12px; align-items: center; }
.t-card:hover { border-color: var(--ink); }
.t-photo { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--panel); }
.t-initials { display: grid; place-items: center; font-weight: 800; font-size: 26px; color: var(--muted); }
.t-name { font-weight: 700; font-size: 17px; }
.t-format { font-size: 14px; margin-top: 2px; }
.t-price { font-weight: 800; margin-top: 4px; }
.t-empty { line-height: 1.6; }
.t-profile { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0 4px; align-items: start; }
.t-photo-lg { width: 200px; height: 200px; border-radius: 16px; object-fit: cover; background: var(--panel); }
.t-photo-lg.t-initials { font-size: 52px; }
.t-h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 4px; letter-spacing: -0.02em; }
.t-price-lg { font-size: 26px; font-weight: 800; margin: 8px 0 14px; }
.t-contact { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; }
.t-grid h2 { margin: 18px 0 6px; }
.apply { max-width: 760px; display: grid; gap: 18px; }
.apply fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px; margin: 0; display: grid; gap: 14px; }
.apply legend { font-weight: 800; font-size: 17px; padding: 0 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chk-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.chk-group .chk { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.chk-group .chk:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chk input { accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { background: var(--up-bg); color: var(--up); border-radius: 12px; padding: 12px 16px; }
.form-err ul { margin: 6px 0 0; padding-left: 18px; }

/* Bottom tab bar on phones */
.tabbar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 72px; }
  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--paper); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 0; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar svg { width: 22px; height: 22px; }
  .t-layout { grid-template-columns: 1fr; }
  .t-filter { position: static; }
  .t-profile { grid-template-columns: 1fr; }
  .t-photo-lg { width: 140px; height: 140px; }
  .t-grid, .two, .three { grid-template-columns: 1fr; }
  .head .pq-buy { width: 100%; text-align: center; }
}

/* Main menu: three sections with dropdowns */
.top-inner { justify-content: space-between; }
.mnav { position: relative; }
.mnav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.mnav-item { position: relative; }
.mnav-btn { font: inherit; font-weight: 700; font-size: 15px; color: var(--ink-2); background: none; border: 0; padding: 20px 12px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; }
.mnav-btn:hover, .mnav-btn[aria-expanded="true"] { color: var(--ink); }
.mnav-item.is-current > .mnav-btn { color: var(--ink); border-bottom-color: var(--ink); }
.chev { width: 12px; height: 12px; transition: transform .15s; }
.mnav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dd { display: none; position: absolute; top: 100%; right: 0; z-index: 20; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 35, 71, .14); padding: 18px; }
.mnav-btn[aria-expanded="true"] + .dd { display: block; }
.dd a { display: block; text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 6px 8px; border-radius: 8px; }
.dd a:hover { background: var(--panel); color: var(--ink); }
.dd .dd-h { font-weight: 800; color: var(--ink); margin-top: 6px; }
.dd-col .dd-h:first-child { margin-top: 0; }
.dd-mega { width: min(880px, calc(100vw - 32px)); display: none; grid-template-columns: repeat(4, 1fr); gap: 8px 18px; }
.mnav-btn[aria-expanded="true"] + .dd-mega { display: grid; }
.dd-side { border-left: 1px solid var(--line); padding-left: 14px; }
.dd-list { width: 300px; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; }
.dd-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 8px 2px; }
.dd .dd-cta { margin-top: 10px; background: var(--ink); color: #fff; font-weight: 700; text-align: center; border-radius: 999px; padding: 9px 12px; }
.dd .dd-cta:hover { background: #1D3563; color: #fff; }
.mnav-toggle { display: none; }
@media (max-width: 860px) {
  .mnav-toggle { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--panel); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
  .burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -5px; } .burger::after { top: 5px; }
  .mnav { position: static; }
  .mnav-list { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 35, 71, .12); flex-direction: column; gap: 0; padding: 4px 16px 16px; max-height: calc(100vh - 60px); overflow-y: auto; }
  .mnav.open .mnav-list { display: flex; }
  .mnav-btn { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .mnav-item.is-current > .mnav-btn { border-bottom-color: var(--line); }
  .dd, .dd-mega, .dd-list { position: static; width: auto; box-shadow: none; border: 0; padding: 6px 0 10px; }
  .dd-mega { grid-template-columns: 1fr 1fr; }
  .dd-side { border-left: 0; padding-left: 0; }
}

/* Home tagline under the headline */
.head .tagline { margin: 8px 0 10px; font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; color: var(--ink-2); letter-spacing: -0.01em; max-width: none; }

/* Events */
.seg-a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); padding: 5px 14px; border-radius: 999px; }
.seg-a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 35, 71, 0.18); }
.ev-month h2 { font-size: 18px; margin: 26px 0 8px; color: var(--ink-2); }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ev-date { display: grid; justify-items: center; background: var(--panel); border-radius: 10px; padding: 6px 0 8px; line-height: 1.1; }
.ev-mon { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; }
.ev-day { font-size: 24px; font-weight: 800; }
.ev-title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.ev-title a { text-decoration: none; }
.ev-title a:hover { text-decoration: underline; }
.ev-tags { margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ev-tags .tag { margin-left: 0; }
.ev-src { font-size: 12px; color: var(--muted); }

/* Server-rendered snapshot shown before the app loads (and to crawlers). */
.ssr h1 { font-size: 32px; letter-spacing: -0.02em; margin: 24px 0 8px; }
.ssr h2 { margin: 24px 0 8px; }
.ssr-sub { font-weight: 600; }
.ssr-list { line-height: 1.7; padding-left: 20px; }
.ssr-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.ssr-table th, .ssr-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line, #e5e7eb); }
@media (max-width: 640px) { .ssr-table th:nth-child(3), .ssr-table td:nth-child(3), .ssr-table th:nth-child(6), .ssr-table td:nth-child(6) { display: none; } }

/* ---------- Workout Planner ---------- */
.mnav-link { font: inherit; font-weight: 700; font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 20px 12px 18px; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.mnav-link:hover { color: var(--ink); }
.mnav-item.is-current > .mnav-link { color: var(--ink); border-bottom-color: var(--ink); }
.mnav-new { font-size: 11px; font-weight: 800; color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 7px; letter-spacing: 0.02em; }
@media (max-width: 860px) {
  .mnav-link { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .mnav-item.is-current > .mnav-link { border-bottom-color: var(--line); }
}
.wp { max-width: 820px; padding-bottom: 40px; }
.wp h1 { font-size: 34px; letter-spacing: -0.02em; margin: 18px 0 6px; }
.wp-lede { color: var(--ink-2); font-size: 17px; margin: 0 0 20px; }
.wp-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 1px 3px rgba(15, 35, 71, 0.06); }
.wp-progress { height: 6px; background: var(--panel); border-radius: 999px; overflow: hidden; }
.wp-progress span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width 0.25s ease; }
.wp-step { font-size: 13px; color: var(--muted); margin: 14px 0 4px; font-weight: 600; }
.wp-q { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.01em; }
.wp-note { color: var(--muted); margin: 0 0 10px; font-size: 14px; }
.wp-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.wp-opts-row { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.wp-opt { font: inherit; text-align: left; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px 16px; cursor: pointer; display: grid; gap: 3px; color: var(--ink); }
.wp-opt b { font-size: 16px; }
.wp-opt span { font-size: 13px; color: var(--muted); }
.wp-opt:hover { border-color: var(--ink-2); }
.wp-opt[aria-checked="true"] { border-color: var(--brand); background: #FFF5F6; box-shadow: inset 0 0 0 1px var(--brand); }
.wp-opt:focus-visible, .wp-nav button:focus-visible, .wp-actions button:focus-visible { outline: 3px solid rgba(200, 16, 46, 0.35); outline-offset: 2px; }
.wp-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.wp-nav button, .wp-actions button, .wp-redo { font: inherit; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 10px 20px; cursor: pointer; text-decoration: none; }
.wp-back, .wp-actions button, .wp-redo { background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); }
.wp-next { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.wp-next[disabled] { opacity: 0.4; cursor: default; }
.wp-fine { font-size: 13px; color: var(--muted); margin-top: 16px; }
.wp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.wp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.wp-wday { background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 8px; font-size: 12px; display: grid; gap: 4px; align-content: start; }
.wp-wday b { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.wp-wday.is-rest { background: var(--panel); color: var(--muted); }
.wp-split { color: var(--ink-2); }
.wp-day { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 14px 0; background: var(--paper); break-inside: avoid; }
.wp-day h2 { font-size: 19px; margin: 0 0 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.wp-day h2 span { font-size: 12px; font-weight: 800; color: #fff; background: var(--brand); border-radius: 999px; padding: 3px 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.wp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wp-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.wp-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.wp-table td:first-child { font-weight: 600; }
.wp-table td:nth-child(2) { font-variant-numeric: tabular-nums; }
.wp-dose { font-weight: 800; font-size: 18px; margin: 4px 0 0; }
.wp-fin { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); background: var(--panel); border-radius: 10px; padding: 8px 12px; }
.wp-tips { background: var(--panel); border-radius: 16px; padding: 16px 20px; margin: 14px 0; }
.wp-tips h2 { font-size: 18px; margin: 0 0 8px; }
.wp-tips ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.wp-cta { background: #FFF5F6; }
.home-planner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 16px; padding: 16px 20px; margin: 18px 0; text-decoration: none; }
.home-planner b { font-size: 18px; }
.home-planner span { color: #CBD3DF; font-size: 14px; }
.home-planner em { font-style: normal; font-weight: 700; background: var(--brand); padding: 8px 16px; border-radius: 999px; }
@media (max-width: 640px) {
  .wp h1 { font-size: 27px; }
  .wp-card { padding: 16px; }
  .wp-week { grid-template-columns: repeat(4, 1fr); }
  .wp-table { font-size: 14px; }
  .wp-table th:nth-child(4), .wp-table td:nth-child(4) { display: none; }
}
@media print {
  .site-head, .tape, .foot, .mnav, .wp-actions, .crumbs, .wp-cta, header, footer { display: none !important; }
  .wp-day, .wp-tips { border-color: #999; }
  .wp-wday { background: #fff !important; color: #000 !important; border: 1px solid #999; }
}

/* ---------- Nepal Protein Index ---------- */
.pi { max-width: 980px; padding-bottom: 40px; }
.pi h1 { font-size: 34px; letter-spacing: -0.02em; margin: 18px 0 6px; }
.pi h2 { font-size: 21px; margin: 28px 0 8px; }
.pi-lede { color: var(--ink-2); font-size: 17px; margin: 0 0 18px; max-width: 720px; }
.pi-hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-end; background: var(--ink); color: #fff; border-radius: 18px; padding: 20px 22px; }
.pi-k { display: block; font-size: 13px; font-weight: 700; color: #CBD3DF; text-transform: uppercase; letter-spacing: 0.05em; }
.pi-big { display: inline-block; font-size: 52px; letter-spacing: -0.03em; line-height: 1.05; margin-right: 12px; font-variant-numeric: tabular-nums; }
.pi-chg { font-weight: 800; font-size: 16px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.pi-hero .up { color: #FF9AA8; } .pi-hero .down { color: #7EE2A8; } .pi-hero .flat { color: #CBD3DF; }
.pi-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 22px; margin: 0; }
.pi-stats dt { font-size: 12px; color: #CBD3DF; font-weight: 600; }
.pi-stats dd { margin: 0; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.pi-thin { font-size: 11px; font-weight: 800; color: #8A5A00; background: #FFF1CC; border-radius: 999px; padding: 1px 7px; vertical-align: middle; }
.pi-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 8px; }
.pi-tabs button { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.pi-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pi-tabs button[disabled] { opacity: 0.4; cursor: default; }
.pi-chart { width: 100%; height: auto; display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.pi-grid { stroke: var(--line); stroke-width: 1; }
.pi-base { stroke: var(--line-2); stroke-dasharray: 4 4; }
.pi-ax { font-size: 12px; fill: var(--muted); }
.pi-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.pi-area { fill: var(--brand); opacity: 0.08; }
.pi-dot { fill: var(--brand); stroke: #fff; stroke-width: 2; }
.pi-asof { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.pi-tablewrap { overflow-x: auto; }
.pi-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.pi-table th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pi-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.pi-table .up { color: var(--brand); font-weight: 700; } .pi-table .down { color: #12804A; font-weight: 700; } .pi-table .flat { color: var(--muted); }
.pi-na td { color: var(--muted); }
.pi-method { background: var(--panel); border-radius: 16px; padding: 4px 20px 14px; margin-top: 24px; }
.pi-method ul { line-height: 1.65; padding-left: 18px; }
.pi-fine { font-size: 13px; color: var(--muted); margin-top: 14px; }
.home-index { background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); }
.home-index span { color: var(--ink-2); }
@media (max-width: 640px) {
  .pi h1 { font-size: 27px; }
  .pi-big { font-size: 42px; }
  .pi-stats { grid-template-columns: repeat(2, auto); }
  .pi-table { font-size: 14px; }
}
