:root {
  --accent: #c4845a;
  --buy: #ff9900;
  --bg: #faf7f2;
  --surface: #fff;
  --border: #ede7df;
  --border-strong: #e0d5c8;
  --text: #3d2c1e;
  --muted: #7a5c48;
  --light: #8b7355;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-ui: 'Segoe UI', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}
nav .logo {
  font-size: 1rem;
  font-style: italic;
  color: var(--accent);
  font-family: var(--font-body);
}
nav ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
nav ul a {
  color: var(--light);
  font-size: 0.85rem;
  text-decoration: none;
  font-family: var(--font-ui);
  transition: color 0.2s;
}
nav ul a:hover { color: var(--text); }
nav .nav-social { display: flex; gap: 0.75rem; align-items: center; margin-left: 0.5rem; padding-left: 1rem; border-left: 1px solid var(--border); }
nav .nav-social a { color: var(--light); font-size: 0.78rem; font-family: var(--font-ui); display: flex; align-items: center; gap: 0.3rem; }
nav .nav-social a:hover { color: var(--accent); text-decoration: none; }

/* HERO (homepage) */
.hero {
  padding: 3.5rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}
.hero-tag {
  font-size: 0.82rem;
  color: var(--accent);
  font-family: var(--font-ui);
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: normal;
  line-height: 1.3;
  color: #2a1e14;
  margin-bottom: 0.75rem;
}
.hero h1 strong { font-weight: 700; }
.hero p { color: var(--muted); font-size: 1rem; max-width: 500px; margin-bottom: 1.75rem; font-family: var(--font-ui); }
.tagline { color: var(--accent); }

/* PAGE HEADER (protocol pages) */
.page-header {
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}
.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: normal;
  color: #2a1e14;
  margin-bottom: 0.35rem;
}
.page-header p { font-size: 0.95rem; color: var(--muted); font-family: var(--font-ui); }

/* PAGE HEADER IMAGE */
.page-header-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  border-bottom: 1px solid var(--border);
}

/* CONTAINER */
.container { max-width: 900px; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }

/* SECTION LABEL / TITLE */
.section-label,
.section-title {
  font-size: 1.1rem;
  font-weight: normal;
  color: #2a1e14;
  margin: 1.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-body);
}
.section-label em,
.section-title em { color: var(--accent); font-style: italic; }
.section-label:first-child,
.section-title:first-child { margin-top: 0; }

/* Prose paragraphs */
p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 1.25rem; }

/* PRODUCT GRID & ROW */
.product-grid {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.product-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.15s;
}
.product-row:last-child { border-bottom: none; }
.product-row:hover { background: #f5ede3; }

.product-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px;
  grid-row: 1 / 3;
  align-self: start;
}

.product-name {
  font-size: 1rem;
  color: #2a1e14;
  font-weight: normal;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  font-family: var(--font-body);
}
.product-name small {
  display: block;
  font-size: 0.8rem;
  color: var(--light);
  font-weight: 400;
  margin-top: 0.2rem;
  line-height: 1.4;
  font-family: var(--font-ui);
}
.product-why {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  font-family: var(--font-ui);
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-buy {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--buy);
  color: #3d2c1e;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: 3px;
  min-width: 90px;
  font-family: var(--font-ui);
  transition: background 0.2s;
}
.btn-buy:hover { background: #e68a00; text-decoration: none; }

.btn-research {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-ui);
  border: 1px solid var(--accent);
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-research:hover { background: var(--accent); color: #fff; text-decoration: none; }
@media (min-width: 640px) {
  .hero { padding: 5rem 2.5rem 3.5rem; }
  .page-header { padding: 1.5rem 2.5rem 1.75rem; }
  .container { padding: 1.5rem 2rem 3rem; }
  .product-row {
    grid-template-columns: 110px 1fr auto;
    grid-template-rows: auto;
    align-items: start;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  .product-img { width: 100px; height: 100px; grid-row: auto; }
  .product-actions { flex-direction: column; align-items: flex-end; gap: 0.5rem; padding-top: 0.25rem; }
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-ui);
  transition: opacity 0.2s;
  cursor: pointer;
  text-decoration: none;
  border-radius: 3px;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1.75rem;
}
.btn-primary:hover { background: #a86f48; text-decoration: none; }
.btn-amazon { background: var(--buy); color: #3d2c1e; font-family: var(--font-ui); }
.btn-pdf { background: #e63946; color: white; }
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
}
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }

/* TLDR */
.tldr {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}
.tldr h3 {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-family: var(--font-ui);
}
.tldr ul { padding-left: 1.2rem; }
.tldr li { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.35rem; font-family: var(--font-ui); }

/* CARDS (homepage) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}
.card {
  background: var(--surface);
  padding: 1.5rem;
  transition: background 0.15s;
}
.card:hover { background: #fdf8f3; }
.card h3 {
  font-size: 0.95rem;
  color: #2a1e14;
  font-weight: normal;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}
.card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.55; font-family: var(--font-ui); }
.card a.btn-primary { font-family: var(--font-ui); }

/* INSTAGRAM LINK BUTTON */
.btn-instagram {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  color: #c13584;
  text-decoration: none;
  font-family: var(--font-ui);
  border: 1px solid #e1a0c4;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-instagram:hover { background: #c13584; color: #fff; text-decoration: none; }

/* INSTAGRAM REEL GRID */
.insta-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 1.75rem;
}
@media (min-width: 640px) {
  .insta-posts { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
}
.insta-posts iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 8px;
  background: #fafafa;
}

/* ─── SHOP BY CATEGORY ─────────────────────────────── */

.shop-jump-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0 1.25rem;
  margin-bottom: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.shop-jump-nav::-webkit-scrollbar { display: none; }
.shop-jump-nav a {
  display: inline-block;
  white-space: nowrap;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: var(--font-ui);
  color: var(--muted);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.shop-jump-nav a:hover,
.shop-jump-nav a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.shop-category { margin: 2.25rem 0 0; }

.shop-category-header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding-bottom: 0.875rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1.25rem;
}
.shop-category-icon { font-size: 1.6rem; line-height: 1; }
.shop-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-ui);
  color: var(--text);
  margin: 0;
}
.shop-category-desc {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-ui);
  margin-top: 0.2rem;
  line-height: 1.45;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}
@media (min-width: 480px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 800px) {
  .shop-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

.shop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.shop-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.shop-card-img-wrap {
  background: #f8f4ef;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-radius: 8px 8px 0 0;
}
.shop-card-img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.shop-card-placeholder {
  font-size: 2rem;
  opacity: 0.4;
}
.shop-card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-family: var(--font-ui);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.shop-card-body {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.shop-card-name {
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-ui);
  color: var(--text);
  line-height: 1.3;
}
.shop-card-why {
  font-size: 0.74rem;
  color: var(--muted);
  font-family: var(--font-ui);
  line-height: 1.4;
  flex: 1;
}
.shop-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.625rem;
}
.shop-card-actions .btn-buy {
  flex: 1 0 auto;
  text-align: center;
  font-size: 0.72rem;
  padding: 0.4rem 0.5rem;
  white-space: nowrap;
}
.shop-card-actions .btn-research {
  flex: 0 0 auto;
  font-size: 0.72rem;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
}
.expert-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1.5px solid var(--border);
  padding: 0;
  background: #000;
  flex: 0 0 44px;
  transition: border-color 0.15s;
}
.expert-thumb:hover { border-color: var(--accent); }
.expert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.expert-thumb::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.65rem;
  opacity: 0;
  transition: opacity 0.15s;
}
.expert-thumb:hover::after { opacity: 1; }

/* VIDEO MODAL */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}
.video-modal-box {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.video-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#video-modal-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* RESEARCH LINKS ROW */
.research-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}

/* ADD ALL TO CART BAR */
.cart-all-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
  padding: 0.9rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid #16a34a;
  border-radius: 0 4px 4px 0;
}
.cart-all-bar span { font-size: 0.82rem; color: var(--light); font-family: var(--font-ui); }
.btn-cart-all {
  display: inline-block;
  padding: 0.5rem 1.3rem;
  background: #16a34a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 3px;
  font-family: var(--font-ui);
  transition: background 0.2s;
}
.btn-cart-all:hover { background: #15803d; text-decoration: none; }

/* SHARE BAR */
.share-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.share-bar span { font-size: 0.88rem; color: var(--muted); flex: 1; font-family: var(--font-ui); }

/* YOUTUBE GRID */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.yt-card { background: var(--surface); padding: 1rem; font-size: 0.85rem; }
.yt-card a { color: var(--muted); font-weight: 500; font-family: var(--font-ui); }
.yt-card a:hover { color: var(--text); text-decoration: none; }
.yt-label {
  display: inline-block;
  background: #ff0000;
  color: white;
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--font-ui);
}

/* PRODUCT TABLE (legacy / research pages) */
.product-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
}
.product-table th {
  background: #f5ede3;
  color: var(--accent);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
}
.product-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
  vertical-align: middle;
}
.product-table tr:last-child td { border-bottom: none; }
.product-table tr:hover td { background: #fdf8f3; }
.th-photo { width: 100px !important; padding: 0.5rem !important; }
.product-table .product-img { width: 100px; padding: 0.4rem 0.5rem !important; }
.product-table .product-img img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* PROTOCOL BADGES */
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; margin-right: 0.3rem; border-radius: 2px; font-family: var(--font-ui); }
.badge-mine { background: #e8f0fe; color: #3b5bdb; }
.badge-mum { background: #fce8f3; color: #c2185b; }
.badge-vegan { background: #e8f5e9; color: #2e7d32; }

/* RESEARCH PAGES */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 1.5rem;
}
.research-card { background: var(--surface); padding: 1.25rem; }
.research-card h4 { margin-bottom: 0.4rem; font-size: 1rem; color: var(--text); }
.research-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }

/* HABIT LIST (Happiness Protocol) */
.habit-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}
.habit {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.habit:last-child { border-bottom: none; }
.habit-icon {
  font-size: 1.4rem;
  line-height: 1;
  padding-top: 0.1rem;
}
.habit-name {
  font-size: 0.97rem;
  color: #2a1e14;
  margin-bottom: 0.3rem;
  font-family: var(--font-body);
}
.habit-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  font-family: var(--font-ui);
}
.habit-tag {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-ui);
  letter-spacing: 0.5px;
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  background: #e8f5e9;
  color: #2e7d32;
}

/* CALLOUT / PERSONAL NOTE */
.personal-note {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
}
.personal-note-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-ui);
  margin-bottom: 0.4rem;
}
.personal-note h3 {
  font-size: 1rem;
  color: #2a1e14;
  font-weight: normal;
  margin-bottom: 0.6rem;
}
.personal-note p {
  font-size: 0.9rem;
  color: var(--muted);
  font-family: var(--font-ui);
  margin-bottom: 0;
}

/* ─── STAT CARDS ───────────────────────────────────── */

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  margin: 1rem 0 1.75rem;
}
@media (min-width: 480px) {
  .stat-cards { grid-template-columns: repeat(6, 1fr); }
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem 0.5rem;
  text-align: center;
}
.stat-card-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-ui);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-card-label {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--font-ui);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ─── FASTING TIMELINE ──────────────────────────────── */

.fast-timeline {
  margin: 0.75rem 0 1.5rem;
}
.fast-timeline-bar {
  display: flex;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.fast-seg-fasting {
  flex: 16;
  background: #e8f0fb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-family: var(--font-ui);
  color: #4a6fa8;
  font-weight: 600;
  border-right: 2px solid var(--border);
}
.fast-seg-eating {
  flex: 8;
  background: #fdf0e6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-family: var(--font-ui);
  color: var(--accent);
  font-weight: 600;
}
.fast-timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--font-ui);
  margin-top: 0.35rem;
  padding: 0 0.125rem;
}

/* ─── DAY ROTATION DOTS ─────────────────────────────── */

.day-rotation {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 1.5rem;
}
.day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.day-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-ui);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
}
.day-dot-ca  { background: #5b8dd9; }
.day-dot-mg  { background: #6b9e6b; }
.day-dot-zn  { background: #c4845a; }
.day-dot-rest { background: #d5ccc4; color: var(--muted); }
.day-dot-coffee { background: #5c3d1e; }
.day-dot-tea    { background: #3a7a4a; }
.day-dot-cacao  { background: #7a3a1e; }
.day-dot-mix    { background: #8b5e3c; }
.day-label {
  font-size: 0.65rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-weight: 600;
}

/* ─── WEEK WORKOUT VISUAL ───────────────────────────── */

.week-visual {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.375rem;
  margin: 0.75rem 0 1.5rem;
}
.wv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.625rem 0.25rem;
  text-align: center;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.wv-day  { font-size: 0.62rem; color: var(--muted); font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.wv-icon { font-size: 1.1rem; }
.wv-name { font-size: 0.62rem; font-weight: 600; font-family: var(--font-ui); line-height: 1.2; text-align: center; }
.wv-card.wv-rest   { opacity: 0.55; }
.wv-card.wv-legs   { border-color: #9b6dd4; background: #f8f4ff; } .wv-card.wv-legs .wv-name   { color: #7a4dc4; }
.wv-card.wv-torso  { border-color: #4a9a7a; background: #f0faf6; } .wv-card.wv-torso .wv-name  { color: #2a7a5a; }
.wv-card.wv-hiit   { border-color: #d94a4a; background: #fff4f4; } .wv-card.wv-hiit .wv-name   { color: #c03030; }
.wv-card.wv-full   { border-color: var(--accent); background: #fdf8f3; } .wv-card.wv-full .wv-name { color: var(--accent); }
.wv-card.wv-hike   { border-color: #3a8a3a; background: #f0f7f0; } .wv-card.wv-hike .wv-name  { color: #2a6a2a; }

/* ─── PROTOCOL SCHEDULE TABLES ─────────────────────── */

.protocol-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.83rem;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.protocol-table th {
  text-align: left;
  padding: 0.5rem 0.875rem;
  background: #f5f0e8;
  border-bottom: 1px solid var(--border-strong);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.protocol-table td {
  padding: 0.55rem 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
  line-height: 1.4;
}
.protocol-table tr:last-child td { border-bottom: none; }
.protocol-table .col-key { font-weight: 600; color: var(--accent); white-space: nowrap; }
.protocol-table .col-muted { color: var(--muted); font-size: 0.78rem; }
.protocol-table .row-rest td { color: var(--light); }
.protocol-table .row-highlight td { background: #fdf8f3; }

/* FOOTER */
footer {
  background: #f0e8de;
  color: var(--light);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 600px) {
  nav { padding: 0.75rem 1rem; }
  .container { padding: 1.5rem 1rem; }
  .product-table th, .product-table td { padding: 0.6rem 0.6rem; font-size: 0.8rem; }
}
