/* Guides section (Lou, 9 Nov 2026). Loaded after home.css and uses its colours, header, footer and badge. */
.site-nav a[aria-current="page"] { color: var(--ink); }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }

/* Reading column */
.guide { max-width: 808px; margin: 0 auto; padding: 32px 24px 104px; }
.guide h1 { font-size: clamp(38px, 4.4vw, 56px); }
.guide h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin-top: 64px; }
.guide p + p { margin-top: 16px; }
.guide h2 + p { margin-top: 16px; }
.guide-lede { margin-top: 24px; font-size: 21px; line-height: 1.5; }
.guide-meta { margin-top: 16px; font-size: 15px; color: var(--muted); }
.guide-small { font-size: 15px; color: var(--muted); }

/* The short answer */
.answer { margin-top: 48px; background: var(--white); border-radius: 24px; padding: 32px; }
.answer h2 { margin-top: 0; }
.table-scroll { margin-top: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.answer table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 17px; }
.answer th { text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.answer td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.answer tr:last-child td { border-bottom: none; }
.answer th:last-child, .answer td:last-child { text-align: right; white-space: nowrap; }
.answer td:nth-child(2) { white-space: nowrap; }
.answer tr.focus td { background: rgba(11, 163, 110, 0.08); }
.answer tr.focus td:last-child { font-weight: 700; color: var(--green-deep); }
.answer .guide-small { margin-top: 16px; }

/* Meal tiles and food cards */
.tiles { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--white); border-radius: 20px; padding: 20px; }
.tile-label { display: block; font-size: 15px; color: var(--muted); }
.tile-figure { display: block; margin-top: 4px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--green-deep); }
.foods { list-style: none; margin: 28px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.food { background: var(--white); border-radius: 20px; padding: 20px; }
.food-amount { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.food-name { display: block; margin-top: 4px; font-size: 16px; color: var(--muted); }

/* Work out yours */
.yours { margin-top: 64px; background: var(--dark); color: #FFFFFF; border-radius: 24px; padding: 40px; display: flex; align-items: center; gap: 40px; }
.yours svg { flex: none; font-family: inherit; }
.yours h2 { margin-top: 0; }
.yours p { margin-top: 16px; color: rgba(255, 255, 255, 0.78); }
.yours .badge { margin-top: 24px; }
.yours a:focus-visible { outline-color: #FFFFFF; }
.guide-note { margin-top: 32px; }

/* Sources */
.guide hr { margin: 64px 0 0; border: none; border-top: 1px solid var(--line); }
.sources { margin: 16px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.sources a { color: var(--muted); }

/* Guides index */
.guides-head { padding-block: 40px 32px; }
.guide-cards { list-style: none; margin: 0; padding: 0 0 104px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.guide-card a { display: block; height: 100%; background: var(--white); border-radius: 24px; padding: 28px; text-decoration: none; }
.guide-card h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; }
.guide-card p { margin-top: 12px; color: var(--muted); }
.guide-card a:hover h2 { color: var(--green-deep); }
.guide-card p { font-weight: 400; }

@media (max-width: 820px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yours { flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 24px; }
  .guide-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .guide { padding-inline: 16px; padding-bottom: 80px; }
  .guide h2 { margin-top: 48px; }
  .answer { padding: 24px 16px; }
  .guide-lede { font-size: 19px; }
}
