/* Super Foods Life redesign, V2 "Market".
   Bold signage frame (Archivo, colour blocks, chunky tiles) around a calm serif reading column.
   No JavaScript: menus and the phone table of contents use <details>. */

:root {
  color-scheme: light;
  --paper: #FFF7EA;
  --white: #FFFFFF;
  --ink: #1B1714;
  --ink-2: #5A4E45;
  --chili: #B3241B;
  --marigold: #F5A524;
  --sun: #FFC94D;
  --cobalt: #1E3FA8;
  --jade: #0B6248;
  --marigold-tint: #FFE6AE;
  --cobalt-tint: #DDE4FF;
  --cream: #FFF1D0;
  --rule: #E7DCCB;
  --ad-bg: #F3EADB;
  --ad-line: #A89A88;
  --ad-text: #6B5F55;
  --focus: #1E3FA8;

  --display: "Archivo", "Helvetica Neue", "Nimbus Sans", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius: 6px;
  --border: 3px solid var(--ink);
  --stripe: linear-gradient(90deg, var(--chili) 0 33.33%, var(--marigold) 33.33% 66.66%, var(--cobalt) 66.66% 100%);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

.sfl {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.sfl svg { display: inline-block; flex: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  font: 800 0.9375rem/1 var(--display);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.1rem;
  text-decoration: none;
}
.skip:focus { top: 12px; --focus: var(--sun); }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ------------------------------------------------------------ header */
.site-header {
  position: relative;
  background: var(--paper);
  z-index: 30;
}
.site-header::after {
  content: "";
  display: block;
  height: 6px;
  background: var(--stripe);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.0625rem;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wm-tag {
  background: var(--chili);
  color: var(--paper);
  padding: 0.28em 0.42em 0.24em;
  border-radius: 3px;
}

.nav-wide { display: none; }
.nav-wide ul, .nav-phone ul { list-style: none; margin: 0; padding: 0; }
.nav-wide ul { display: flex; gap: 0.25rem; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--radius);
  font: 800 0.875rem/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.nav-link:hover { background: var(--marigold-tint); }
.nav-link[aria-current="page"] { background: var(--ink); color: var(--paper); }

.nav-phone summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: var(--border);
  border-radius: var(--radius);
  font: 800 0.875rem/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.nav-phone summary::-webkit-details-marker { display: none; }
.nav-phone[open] summary { background: var(--ink); color: var(--paper); }
.nav-phone nav {
  position: absolute;
  top: calc(100% + 6px);
  left: 16px;
  right: 16px;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 0.5rem;
  --focus: var(--sun);
}
.nav-phone-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 0.85rem;
  font: 800 1.25rem/1 var(--display);
  font-stretch: 112%;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid #3A322C;
}
.nav-phone li:last-child .nav-phone-link { border-bottom: 0; }
.nav-phone-link:hover, .nav-phone-link[aria-current="page"] { color: var(--marigold); }

@media (min-width: 860px) {
  .nav-wide { display: block; }
  .nav-phone { display: none; }
  .wordmark { font-size: 1.3rem; }
}

/* ------------------------------------------------------------ shared bits */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.35rem;
  border-radius: var(--radius);
  font: 800 0.9375rem/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.btn-ink { background: var(--ink); color: var(--paper); border: 3px solid var(--ink); }
.btn-ink:hover { background: var(--chili); border-color: var(--chili); }
.btn-line { border: var(--border); color: var(--ink); }
.btn-line:hover { background: var(--marigold-tint); }

.ph {
  position: relative;
  margin: 0;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--marigold-tint);
  background-image: radial-gradient(circle, rgba(179, 36, 27, 0.34) 1.7px, transparent 2px);
  background-size: 16px 16px;
}
.ph-fill { aspect-ratio: 16 / 9; }
.ph-cap {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.45rem 0.7rem;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font: 600 0.8125rem/1.25 var(--display);
}

.ad {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--ad-bg);
  border: 1px dashed var(--ad-line);
  border-radius: 4px;
}
.ad-label {
  padding: 0.5rem;
  font: 700 0.6875rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ad-text);
}

/* ------------------------------------------------------------ homepage */
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2.25rem; align-items: center; }
.kicker {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.45rem 0.7rem;
  background: var(--marigold);
  color: var(--ink);
  border-radius: 3px;
  font: 800 0.8125rem/1.2 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(2.6rem, 1.5rem + 5.2vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hl {
  background: var(--chili);
  color: var(--paper);
  padding: 0 0.12em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-dek {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.1875rem;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.board {
  background: var(--ink);
  color: var(--paper);
  border-top: 12px solid var(--marigold);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1rem;
  --focus: var(--sun);
}
.board-kicker {
  margin: 0;
  font: 800 0.8125rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}
.board-title {
  margin: 0.4rem 0 0.25rem;
  font: 900 clamp(2.1rem, 1.6rem + 2vw, 2.9rem)/1 var(--display);
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.board-sub { margin: 0 0 1rem; font: 500 0.9375rem/1.4 var(--display); color: #E9DFCF; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  border-top: 1px dashed #6E625A;
  font: 800 1.1875rem/1.1 var(--display);
  font-stretch: 110%;
  color: var(--paper);
  text-decoration: none;
}
.board-row:hover { color: var(--marigold); }
.board-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  margin-top: 0.25rem;
  border-top: 1px dashed #6E625A;
  width: 100%;
  font: 800 0.875rem/1 var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--marigold);
  text-decoration: none;
}
.board-all:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 960px) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 4rem; }
}

.ad-band { padding-bottom: 1rem; }
.ad-home { min-height: 250px; }
@media (min-width: 1000px) { .ad-home { min-height: 250px; max-width: 970px; margin-inline: auto; } }

.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.band-marigold { background: var(--marigold); --focus: var(--ink); }
.band-cobalt { background: var(--cobalt); color: var(--white); --focus: var(--sun); }

.sec-head { margin-bottom: 2rem; max-width: 52rem; }
.sec-num {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.55rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  font: 900 0.9375rem/1 var(--display);
  font-stretch: 125%;
}
.band-marigold .sec-num { background: var(--ink); color: var(--marigold); }
.sec-num-light { background: var(--sun); color: var(--ink); }
.sec-title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 108%;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.sec-dek { margin: 0; font-size: 1.125rem; line-height: 1.55; max-width: 40rem; }
@media (min-width: 768px) { .sec-title { font-stretch: 125%; } }

/* "As featured in" press strip (logos the site earned; kept from the original homepage) */
.featured {
  background: var(--white);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  margin-bottom: 2rem;
}
.featured-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}
.featured-label {
  margin: 0;
  font: 800 0.8125rem/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.featured-logos {
  flex: 1 1 18rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0.75rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.featured-logos img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: 44px;
  margin-inline: auto;
  object-fit: contain;
}
@media (min-width: 640px) {
  .featured-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Mexico City grid */
.mx-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .mx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .mx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .hub { grid-column: span 2; }
}

.tile, .hub {
  position: relative;
  display: flex;
  flex-direction: column;
  border: var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tile { padding: 1.25rem 1.25rem 1.1rem; min-height: 250px; }
/* phones: compact tiles (dish label, title, arrow) so the aisle stays scannable */
@media (max-width: 639px) {
  .tile { min-height: auto; padding: 1rem 1.1rem 0.95rem; }
  .tile .tile-desc { display: none; }
  .tile .tile-tag { margin-bottom: 0.5rem; }
  .tile .tile-title { margin-bottom: 0.75rem; }
}
.tile:hover, .hub:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }

.tone-paper { background: var(--white); color: var(--ink); }
.tone-marigold { background: var(--marigold); color: var(--ink); }
.tone-cobalt { background: var(--cobalt); color: var(--white); --focus: var(--sun); }
.tone-jade { background: var(--jade); color: var(--white); --focus: var(--sun); }
.tone-chili { background: var(--chili); color: var(--white); --focus: var(--sun); }

.tile-tag {
  margin: 0 0 0.85rem;
  font: 900 1.5rem/1 var(--display);
  font-stretch: 118%;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.tone-paper .tile-tag { color: var(--chili); }
.tone-cobalt .tile-tag, .tone-jade .tile-tag { color: var(--sun); }
.tile-title {
  margin: 0 0 0.5rem;
  font: 800 1.125rem/1.25 var(--display);
}
.tile-title a, .hub-title a { text-decoration: none; }
.tile-title a::after, .hub-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.tile-title a:hover, .hub-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tile-desc { margin: 0 0 1rem; font: 400 0.9375rem/1.5 var(--display); }
.tile-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 800 0.8125rem/1 var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
@supports selector(:has(*)) {
  .tile:has(a:focus-visible), .hub:has(a:focus-visible), .rec:has(a:focus-visible) {
    outline: 3px solid var(--cobalt);
    outline-offset: 4px;
  }
  .tile a:focus-visible, .hub a:focus-visible, .rec a:focus-visible { outline: none; }
}

.hub { overflow: hidden; }
.hub .ph { border: 0; border-bottom: var(--border); border-radius: 0; }
.ph-hub .ph-fill { aspect-ratio: 16 / 10; }
.hub-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.25rem 1.1rem; }
.tag-light { color: var(--sun); margin-bottom: 0.6rem; }
.hub-title {
  margin: 0 0 0.6rem;
  font: 900 clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem)/1.05 var(--display);
  font-stretch: 105%;
  letter-spacing: -0.01em;
}
.hub-desc { margin: 0 0 1.25rem; font-size: 1.0625rem; line-height: 1.55; }
@media (min-width: 1000px) {
  .hub { flex-direction: row; }
  .hub .ph { flex: 0 0 46%; border-bottom: 0; border-right: var(--border); }
  .ph-hub .ph-fill { aspect-ratio: auto; height: 100%; min-height: 260px; }
}

/* Destinations */
.dest-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.dest {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 64px;
  height: 100%;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  font: 800 1.0625rem/1.2 var(--display);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dest .ico:first-child { color: var(--chili); }
.dest-arrow { margin-left: auto; }
.dest:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
@media (min-width: 640px) { .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .dest-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dest { flex-direction: column; align-items: flex-start; min-height: 150px; padding: 1rem; }
  .dest-arrow { margin-left: 0; margin-top: auto; }
}

/* Recipes */
.rec-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.rec {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.2rem 1.25rem;
  background: var(--white);
  border: var(--border);
  border-top: 12px solid var(--jade);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rec:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.rec-num {
  font: 900 3.25rem/0.9 var(--display);
  font-stretch: 125%;
  color: var(--jade);
  letter-spacing: -0.02em;
}
.rec-num-word { font-size: 2.25rem; text-transform: uppercase; line-height: 1.1; }
.rec-title {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font: 800 1.0625rem/1.3 var(--display);
  color: var(--ink);
  text-decoration: none;
}
.rec-title .rec-num { display: block; }
.rec-title:hover .rec-text { text-decoration: underline; text-underline-offset: 3px; }
.rec-title::after { content: ""; position: absolute; inset: 0; }
@media (min-width: 640px) {
  .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .rec-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rec:last-child { grid-column: auto; }
}

/* How we research */
.how-grid { display: grid; gap: 2.25rem; }
.how-text { margin: 0; font-size: 1.1875rem; line-height: 1.6; max-width: 36rem; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.step {
  padding: 1.1rem 1.15rem;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
}
.step-ico {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--marigold);
  border-radius: 4px;
}
.step-h {
  margin: 0.75rem 0 0.25rem;
  font: 900 1.25rem/1 var(--display);
  font-stretch: 118%;
  text-transform: uppercase;
}
.step p:last-child { margin: 0; font: 400 0.9375rem/1.5 var(--display); }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; align-items: center; }
}

/* ------------------------------------------------------------ footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  --focus: var(--sun);
}
.footer-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; padding-top: 3rem; padding-bottom: 2rem; }
.footer-brand { grid-column: 1 / -1; }
.wordmark-footer { color: var(--paper); font-size: 1.3rem; }
.footer-brand p { margin: 1rem 0 0; max-width: 30rem; font-size: 1rem; line-height: 1.55; color: #E9DFCF; }
.footer-h {
  margin: 0 0 0.5rem;
  font: 800 0.8125rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 1rem/1.2 var(--display);
  color: var(--paper);
  text-decoration: none;
}
.footer-col a:hover { color: var(--marigold); text-decoration: underline; text-underline-offset: 4px; }
.footer-base { padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid #3A322C; }
.footer-base p { margin: 0; font: 500 0.875rem/1.4 var(--display); color: #CFC4B4; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ------------------------------------------------------------ post */
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.15rem;
  font: 600 0.875rem/1.2 var(--display);
  color: var(--ink-2);
}
.crumbs li { display: inline-flex; align-items: center; gap: 0.15rem; }
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-underline-offset: 3px;
}
.crumbs a:hover { color: var(--chili); }
.crumb-sep { color: var(--ink-2); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 800; }

.post-head {
  background: var(--chili);
  color: var(--white);
  padding: 2rem 0 2.25rem;
  --focus: var(--sun);
}
@media (min-width: 768px) { .post-head { padding-bottom: 4.75rem; } }
.eyebrow { margin: 0 0 1rem; }
.eyebrow a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  background: var(--marigold);
  color: var(--ink);
  border-radius: 3px;
  font: 900 0.875rem/1 var(--display);
  font-stretch: 112%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.eyebrow a:hover { background: var(--sun); }
.post-title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 106%;
  font-size: clamp(2.05rem, 1.25rem + 3.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.dek {
  margin: 0 0 1.25rem;
  max-width: 44rem;
  font-size: 1.1875rem;
  line-height: 1.5;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin: 0;
  font: 700 0.9375rem/1.4 var(--display);
}
.byline a { color: var(--white); text-underline-offset: 3px; }
.byline .dot { font-weight: 900; }

.post-head-inner, .post-body { max-width: 760px; }
.post-head-inner { margin-inline: auto; }
.crumbs { max-width: 760px; margin-inline: auto; }

.post-layout { display: block; }
.post-body { margin-inline: auto; padding-bottom: 3rem; }
.post-aside { display: none; }

.ph-post { margin-top: -3.25rem; margin-bottom: 2rem; background-color: var(--cream); }
/* phones: no lead placeholder, so the lede starts on the first screen */
@media (max-width: 767px) {
  .ph-post { display: none; }
  .post-body { padding-top: 1.75rem; }
}

@media (min-width: 1100px) {
  .post-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) 300px;
    justify-content: space-between;
    gap: 64px;
    max-width: 1180px;
  }
  .crumbs, .post-head-inner { max-width: 1180px; padding-right: 364px; }
  .post-body { margin-inline: 0; max-width: none; }
  .post-aside { display: flex; flex-direction: column; gap: 2rem; padding-top: 2rem; }
  .ph-post { margin-top: -4rem; }
}

/* reading column */
.post-body {
  font-size: 1.0625rem;
  line-height: 1.7;
}
@media (min-width: 768px) { .post-body { font-size: 1.125rem; } }
.post-body p { margin: 0 0 1.15em; }
/* cap prose near 66 characters a line; tables, cards and boxes keep the full column */
.post-body p, .post-body li { max-width: 66ch; }
.post-body .lede { font-size: 1.2em; line-height: 1.55; }
.post-body p a, .post-body li a, .post-body td a {
  color: var(--cobalt);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.post-body p a:hover, .post-body li a:hover { color: var(--chili); }
.post-body strong { font-weight: 700; }

.post-body h2 {
  margin: 3rem 0 1rem;
  font-family: var(--display);
  font-weight: 850;
  font-stretch: 108%;
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  scroll-margin-top: 1rem;
  text-wrap: balance;
}
.post-body h2::before {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  margin-bottom: 0.9rem;
  background: var(--stripe);
  border-radius: 2px;
}
.post-body h3 {
  margin: 2rem 0 0.6rem;
  font: 800 1.3125rem/1.2 var(--display);
  scroll-margin-top: 1rem;
}
.post-body ul { padding-left: 1.3rem; margin: 0 0 1.25em; }
.post-body li { margin-bottom: 0.45em; }
.post-body li::marker { color: var(--chili); }

/* How we made this guide */
.method {
  margin: 2rem 0 1.5rem;
  padding: 1.1rem 1.25rem 1.15rem;
  background: var(--cobalt-tint);
  border: 3px solid var(--cobalt);
  border-radius: var(--radius);
  font: 400 1rem/1.6 var(--display);
}
.method p { margin: 0; }
.post-body .method .method-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
  padding: 0.4rem 0.7rem;
  background: var(--cobalt);
  color: var(--white);
  border-radius: 3px;
  font: 800 0.75rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.method strong { font-weight: 800; }

/* phone / tablet table of contents */
.toc-phone {
  margin: 0 0 2rem;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
}
.toc-phone summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0 1rem;
  font: 800 0.875rem/1 var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.toc-phone summary::-webkit-details-marker { display: none; }
.toc-count {
  margin-left: auto;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.toc-chev { transition: transform 0.15s ease; }
.toc-phone[open] .toc-chev { transform: rotate(180deg); }
.toc-phone[open] summary { border-bottom: 2px solid var(--ink); }
.toc-list { list-style: none; margin: 0; padding: 0.35rem 0.6rem 0.6rem; }
.post-body .toc-list li { margin: 0; }
.toc-list li + li a { border-top: 1px solid var(--rule); }
.toc-list a,
.post-body .toc-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0.45rem 0.4rem;
  font: 600 0.9375rem/1.3 var(--display);
  color: var(--ink);
  text-decoration: none;
}
.toc-list a:hover { color: var(--chili); text-decoration: underline; }
.toc-n {
  flex: none;
  min-width: 1.6rem;
  font: 900 0.8125rem/1 var(--display);
  font-stretch: 125%;
  color: var(--chili);
}
@media (min-width: 1100px) { .toc-phone { display: none; } }

/* sidebar board */
.toc-board {
  background: var(--ink);
  color: var(--paper);
  border-top: 12px solid var(--chili);
  border-radius: var(--radius);
  padding: 1.1rem 0.9rem 0.6rem;
  --focus: var(--sun);
}
.toc-board-h {
  margin: 0 0.4rem 0.4rem;
  font: 800 0.8125rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}
.toc-board .toc-list { padding: 0; }
.toc-board .toc-list a { color: var(--paper); font-size: 0.875rem; }
.toc-board .toc-list li + li a { border-top-color: #3A322C; }
.toc-board .toc-list a:hover { color: var(--marigold); }
.toc-board .toc-n { color: var(--marigold); }

.aside-sticky { position: sticky; top: 1.5rem; }
.ad-side { width: 300px; height: 600px; }

/* in-content ads: same width as the reading column, centred label */
.ad-inline { min-height: 250px; margin: 2.25rem 0; }
@media (min-width: 768px) { .ad-inline { min-height: 280px; margin: 2.75rem 0; } }

/* phone-only sticky footer ad */
.ad-anchor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: calc(50px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  align-items: center;
  border: 0;
  border-top: 1px solid var(--ad-line);
  border-radius: 0;
}
.page-post { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) {
  .ad-anchor { display: none; }
  .page-post { padding-bottom: 0; }
}

/* quick-picks table */
.table-scroll {
  margin: 1.5rem 0 0.5rem;
  overflow-x: auto;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
}
.picks {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font: 400 0.9375rem/1.4 var(--display);
}
.picks th {
  padding: 0.75rem 0.85rem;
  background: var(--cobalt);
  color: var(--white);
  text-align: left;
  vertical-align: bottom;
  font: 800 0.75rem/1.3 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.picks td { padding: 0.7rem 0.85rem; vertical-align: top; border-top: 1px solid var(--rule); }
.picks tbody tr:nth-child(even) td { background: var(--paper); }
.picks td:first-child { font-weight: 800; }
.picks th:first-child, .picks td:first-child {
  position: sticky;
  left: 0;
  min-width: 9.5rem;
  box-shadow: 1px 0 0 var(--rule);
}
.picks td:first-child { background: var(--white); }
.picks tbody tr:nth-child(even) td:first-child { background: var(--paper); }
.scroll-hint {
  margin: 0 0 1.5rem !important;
  font: 600 0.8125rem/1.3 var(--display);
  color: var(--ink-2);
}
@media (min-width: 720px) { .scroll-hint { display: none; } }

/* ranked entries */
.entry { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.post-body .entry-h {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0 0 0.9rem;
}
.rank {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.4rem;
  background: var(--marigold);
  color: var(--ink);
  border-radius: 4px;
  font: 900 1.5rem/1 var(--display);
  font-stretch: 125%;
}
.rank-top { background: var(--chili); color: var(--white); }
.entry-name { padding-top: 0.45rem; font-size: 1.375rem; line-height: 1.15; }

.post-body .facts {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  font: 400 0.875rem/1.45 var(--display);
}
.post-body .facts li { position: relative; margin: 0; padding-left: 1.5rem; }
.facts .ico { position: absolute; left: 0; top: 0.12rem; color: var(--chili); }
.facts strong {
  margin-right: 0.3rem;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 0.08rem;
}

.also {
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.25rem 0.25rem;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
}
.post-body .also h3 { margin-top: 0; }

/* FAQ */
.qa {
  margin: 1rem 0;
  padding: 1.1rem 1.25rem 0.1rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.post-body .qa h3 { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0 0 0.6rem; font-size: 1.1875rem; }
.q-tag {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--cobalt);
  color: var(--white);
  border-radius: 4px;
  font: 900 1rem/1 var(--display);
}

/* short plan */
.sec-plan {
  margin: 3rem 0 0;
  padding: 1.5rem 1.4rem 0.4rem;
  background: var(--marigold);
  border-radius: var(--radius);
}
.post-body .sec-plan h2 { margin-top: 0; }
.post-body .sec-plan h2::before { background: var(--ink); }

/* more guides */
.post-body .more-grid {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}
.post-body .more-card { margin: 0; }
.post-body .more-card a {
  display: flex;
  flex-direction: column;
  min-height: 148px;
  height: 100%;
  padding: 1rem 1.1rem;
  border: var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-body .more-card a:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.post-body .more-card a:focus-visible { outline-color: var(--cobalt); }
.more-kicker {
  font: 800 0.75rem/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.more-title { margin: 0.5rem 0 0.9rem; font: 800 1.1875rem/1.2 var(--display); }
.more-card .ico { margin-top: auto; }
.tone-cobalt .more-kicker, .tone-jade .more-kicker, .tone-chili .more-kicker { color: var(--sun); }
.tone-chili .more-kicker { color: var(--paper); }
@media (min-width: 560px) { .post-body .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* sources: compact but visible */
.sec-sources { font-family: var(--display); }
.post-body .sec-sources h2 { font-size: 1.5rem; }
.src-cols { columns: 2 260px; column-gap: 2rem; }
.src-group { break-inside: avoid; margin: 0 0 1.1rem; }
.post-body .src-h {
  margin: 0 0 0.2rem;
  font: 800 0.75rem/1.3 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chili);
}
.post-body .src-group ul { list-style: none; padding: 0; margin: 0; }
.post-body .src-group li {
  margin: 0;
  padding: 0.4rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  line-height: 1.5;
}
.post-body .src-foot {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font: 400 0.9375rem/1.5 var(--display);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .tile:hover, .hub:hover, .rec:hover, .dest:hover, .post-body .more-card a:hover { transform: none; }
}

/* phones: compact post head so the answer-first intro shows on the first screen */
@media (max-width: 599px) {
  .crumbs li:nth-child(2):nth-last-child(3) { display: none; }   /* long trails only: keep Home > Mexico City Food > page */
  .post-head { padding: 1.1rem 0 1.4rem; }
  .post-head .eyebrow { margin-bottom: 0.5rem; }
  .post-title { font-size: 1.75rem; line-height: 1.06; margin-bottom: 0.75rem; }
  .post-head .dek { display: none; }                  /* same summary as the intro just below */
  .byline { font-size: 0.875rem; }
}

/* phones: the quick-picks table becomes one card per place, so every column is readable without sideways swiping */
@media (max-width: 599px) {
  .table-scroll { overflow: visible; border: 0; background: transparent; }
  .picks, .picks tbody, .picks tr, .picks td { display: block; min-width: 0; width: auto; }
  .picks thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .picks tr { margin: 0 0 0.75rem; padding: 0.85rem 1rem; background: var(--white); border: var(--border); border-radius: var(--radius); }
  .picks td, .picks tbody tr:nth-child(even) td, .picks td:first-child, .picks tbody tr:nth-child(even) td:first-child {
    position: static; padding: 0.15rem 0; border: 0; background: transparent; box-shadow: none; min-width: 0;
  }
  .picks td:first-child { font-size: 1.125rem; font-weight: 900; margin-bottom: 0.35rem; }
  .picks td:not(:first-child)::before {
    content: attr(data-label) ": ";
    font-weight: 800; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chili);
  }
  .scroll-hint { display: none; }
}

/* ================================================================== production additions (build/) */

/* no anchor ad on the live site: AdSense units sit in the content and the sidebar */
.page-post { padding-bottom: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* sidebar: on phones and tablets the 300x600 unit sits below the article; desktop gets the sticky rail */
.post-aside { display: block; max-width: 760px; margin: 0 auto 2.5rem; }
.post-aside .toc-board { display: none; }
.aside-sticky { display: flex; justify-content: center; }
@media (min-width: 1100px) {
  .post-aside { display: flex; flex-direction: column; gap: 2rem; padding-top: 2rem; margin: 0; max-width: none; }
  .post-aside .toc-board { display: block; }
  .aside-sticky { position: sticky; top: 1.5rem; display: block; }
}
/* pages without a sidebar keep one centred column at every width */
@media (min-width: 1100px) {
  .layout-single .post-layout { display: block; max-width: 760px; }
  .layout-single .crumbs, .layout-single .post-head-inner { max-width: 760px; padding-right: 16px; }
  .layout-single .post-body { margin-inline: auto; max-width: 760px; }
}
.post-head-inner:has(> .post-title:only-child) { padding-block: 0.25rem; }

/* homepage hub tile: a decorative block until photos arrive */
.ph-hub .ph-fill { display: flex; align-items: flex-end; padding: 1rem; }
.ph-mark { font: 900 clamp(2.5rem, 2rem + 3vw, 4rem)/1 var(--display); font-stretch: 125%; color: var(--chili); background: var(--paper); padding: 0.1em 0.25em; border-radius: 4px; }
.more-posts { margin: 1.5rem 0 0; }

/* ---------- search ---------- */
.search-form { display: flex; gap: 0.5rem; margin: 0.75rem 0 0; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 0.75rem;
  border: 2px solid var(--ink); border-radius: 4px; background: var(--white); color: var(--ink);
  font: 500 1rem/1.2 var(--display);
}
.search-form button {
  min-height: 44px; padding: 0 1rem; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 800 0.875rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-search { position: relative; }
.nav-search summary {
  list-style: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; border-radius: var(--radius); cursor: pointer;
}
.nav-search summary::-webkit-details-marker { display: none; }
.nav-search summary:hover { background: var(--marigold-tint); }
.nav-search[open] summary { background: var(--ink); color: var(--paper); }
.nav-search .search-form {
  position: absolute; right: 0; top: calc(100% + 8px); width: 22rem; z-index: 40; margin: 0;
  padding: 0.75rem; background: var(--paper); border: var(--border); border-radius: var(--radius);
}
.nav-phone .search-form { margin: 0.5rem 0.25rem 0.25rem; }
.footer-brand .search-form { max-width: 26rem; margin-top: 1.25rem; }
.site-footer .search-form input[type="search"] { background: var(--paper); border-color: var(--paper); }
.site-footer .search-form button { background: var(--marigold); color: var(--ink); }

/* ---------- article content from the old site (inside .post-body) ---------- */
.post-body img { max-width: 100%; height: auto; }
.post-body figure { margin: 1.75rem 0; max-width: 100%; }
.post-body figcaption, .post-body .wp-caption-text, .post-body .wp-element-caption {
  margin: 0.5rem 0 0; font: 500 0.875rem/1.45 var(--display); color: var(--ink-2); max-width: none;
}
.post-body .wp-caption { max-width: 100% !important; }
.post-body .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.post-body .aligncenter img, .post-body figure.aligncenter img { margin-inline: auto; }
.post-body .alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; max-width: 50%; }
.post-body .alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; max-width: 50%; }
@media (max-width: 599px) {
  .post-body .alignleft, .post-body .alignright { float: none; max-width: 100%; margin: 1.25rem 0; }
}
.post-body h4 { margin: 1.75rem 0 0.5rem; font: 800 1.125rem/1.25 var(--display); }
.post-body ol { padding-left: 1.5rem; margin: 0 0 1.25em; }
.post-body ol li::marker { color: var(--chili); font-weight: 700; font-family: var(--display); }
.post-body hr, .post-body .wp-block-separator {
  border: 0; height: 6px; width: 72px; margin: 2.5rem 0; background: var(--stripe); border-radius: 2px; opacity: 1;
}
.post-body blockquote {
  margin: 1.75rem 0; padding: 1rem 1.25rem; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body table:not(.picks) {
  display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font: 400 0.9375rem/1.45 var(--display);
}
.post-body table:not(.picks) td, .post-body table:not(.picks) th { padding: 0.55rem 0.75rem; border: 1px solid var(--rule); vertical-align: top; }
.post-body iframe { max-width: 100%; }
.post-body iframe[src*="youtube"], .post-body iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.post-body .wp-block-spacer { max-height: 3rem; }
.post-body .wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.5rem 0; }
.post-body .wp-block-column { flex: 1 1 240px; min-width: 0; }
.post-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.post-body .has-text-align-center { text-align: center; }
.post-body .is-content-justification-center { justify-content: center; }
.post-body .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.25rem; border-radius: var(--radius);
  background: var(--ink) !important; color: var(--paper) !important; text-decoration: none !important;
  font: 800 0.9375rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
}
.post-body .wp-block-button__link:hover { background: var(--chili) !important; }
.post-body .has-background { padding: 1rem 1.25rem; border-radius: var(--radius); background-color: var(--cream) !important; color: var(--ink) !important; }
.post-body .has-background.has-white-color { background-color: var(--cobalt) !important; color: var(--white) !important; }
.post-body .has-background.has-white-color a { color: var(--white); }
.post-body .dashicons, .post-body .tve_empty_dropzone:empty { display: none; }
.post-body .code-block { margin: 2rem auto !important; max-width: 100%; }
.post-body p.has-text-align-center, .post-body .has-text-align-center p { margin-inline: auto; }

/* old "table of contents" block */
.post-body .wp-block-uagb-table-of-contents {
  margin: 1.75rem 0; padding: 1rem 1.25rem; background: var(--white); border: var(--border); border-radius: var(--radius);
}
.post-body .uagb-toc__title { margin: 0 0 0.6rem; font: 800 0.875rem/1.2 var(--display); letter-spacing: 0.07em; text-transform: uppercase; }
.post-body .uagb-toc__list-wrap ol, .post-body .uagb-toc__list-wrap ul { margin: 0; padding-left: 1.3rem; }
.post-body .uagb-toc__list a { color: var(--ink); font-family: var(--display); font-weight: 600; text-decoration: none; }
.post-body .uagb-toc__list a:hover { color: var(--chili); text-decoration: underline; }

/* old "related posts" list */
.post-body .yarpp-related {
  margin: 2.5rem 0 1rem; padding: 1.1rem 1.25rem; background: var(--white); border: var(--border); border-radius: var(--radius);
}
.post-body .yarpp-related h3 { margin-top: 0; }
.post-body .yarpp-related ol { margin: 0; }
.post-body .yarpp-related a { color: var(--ink); font-family: var(--display); font-weight: 700; }

/* old post grids on pages (lists of posts) */
.post-body [class*="uagb-post__items"], .post-body .uagb-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.post-body .uagb-post__inner-wrap { height: 100%; overflow: hidden; background: var(--white); border: var(--border); border-radius: var(--radius); }
.post-body .uagb-post__image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-body .uagb-post__text { padding: 0.6rem 1rem; }
.post-body .uagb-post__title { margin: 0.25rem 0; font: 800 1.0625rem/1.25 var(--display); }
.post-body .uagb-post__title a { color: var(--ink); text-decoration: none; }
.post-body .uagb-post-grid-byline { font: 500 0.8125rem/1.4 var(--display); color: var(--ink-2); }

/* recipe cards (EasyRecipe markup, kept for its recipe structured data) */
.post-body .easyrecipe {
  margin: 2.25rem 0; padding: 1.25rem 1.25rem 1rem; background: var(--white);
  border: var(--border); border-top: 12px solid var(--jade); border-radius: var(--radius);
  font-family: var(--display);
}
.post-body .easyrecipe .ERSName { margin: 0 0 0.6rem; font: 900 1.5rem/1.15 var(--display); }
.post-body .easyrecipe .ERSSavePrint { float: right; margin: 0 0 0.5rem 1rem; }
.post-body .easyrecipe .ERSPrintBtn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: var(--radius);
  background: var(--ink); color: var(--paper); text-decoration: none; font: 800 0.8125rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase;
}
.post-body .easyrecipe .ERSDetails { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; font-size: 0.9375rem; color: var(--ink-2); }
.post-body .easyrecipe .ERSClear { display: none; }
.post-body .easyrecipe .ERSSummary { margin: 0.9rem 0; font-family: var(--serif); font-size: 1.0625rem; }
.post-body .easyrecipe .ERSHeading {
  margin: 1.25rem 0 0.5rem; font: 800 0.875rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--chili);
}
.post-body .easyrecipe ul, .post-body .easyrecipe ol { margin: 0; padding-left: 1.3rem; }
.post-body .easyrecipe li { font-family: var(--serif); }

/* forms in pages (the contact form) */
.post-body form label { font: 700 0.9375rem/1.3 var(--display); }
.post-body input[type="text"], .post-body input[type="email"], .post-body textarea {
  width: 100%; max-width: 34rem; margin-top: 0.35rem; padding: 0.7rem 0.8rem; font: 400 1rem/1.4 var(--serif);
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px;
}
.post-body input[type="submit"], .post-body form button {
  min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--ink); color: var(--paper); font: 800 0.9375rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
}
.post-body input[type="submit"]:hover, .post-body form button:hover { background: var(--chili); }

/* new guides: card descriptions under the "More guides" titles */
.more-desc { display: block; margin: -0.4rem 0 0.9rem; font: 400 0.875rem/1.45 var(--display); }
.post-body .src-cols p.src-h { margin: 0 0 0.2rem; font: 800 0.75rem/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--chili); }
.post-body .src-cols ul { list-style: none; padding: 0; margin: 0 0 1.1rem; break-inside: avoid; }
.post-body .src-cols li { margin: 0; padding: 0.4rem 0; border-top: 1px solid var(--rule); font: 400 0.875rem/1.5 var(--display); }
.post-body .src-foot { margin: 1rem 0 0; padding: 0.9rem 1rem; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); font: 400 0.9375rem/1.5 var(--display); }
.post-body .entry-content > .entry-content { margin: 0; }

/* ---------- archives (blog, categories, authors) ---------- */
.archive { padding: 0.5rem 0 3.5rem; }
.archive-head { padding-top: 0.5rem; padding-bottom: 1.5rem; }
.crumbs-flush { max-width: none !important; margin: 0 !important; padding-right: 0 !important; }
.archive-head .sec-title { margin: 0.5rem 0 0.25rem; }
.archive-page { margin: 0; font: 700 0.9375rem/1.2 var(--display); color: var(--ink-2); }
.archive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1100px) { .archive-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.archive-card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--white); border: var(--border); border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.archive-card:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.archive-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: var(--border); }
.archive-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.archive-card .tile-tag { margin: 0 0 0.5rem; font-size: 0.875rem; color: var(--chili); }
.archive-title { margin: 0 0 0.5rem; font: 800 1.1875rem/1.25 var(--display); text-wrap: balance; }
.archive-title a { color: var(--ink); text-decoration: none; }
.archive-title a::after { content: ""; position: absolute; inset: 0; }
.archive-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.archive-card .ast-excerpt-container p { margin: 0 0 1rem; font: 400 0.9375rem/1.55 var(--serif); }
@supports selector(:has(*)) {
  .archive-card:has(a:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 4px; }
  .archive-card a:focus-visible { outline: none; }
}
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; padding: 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.8rem;
  border: var(--border); border-radius: var(--radius); background: var(--white); color: var(--ink);
  font: 800 0.9375rem/1 var(--display); text-decoration: none;
}
.pagination a:hover { background: var(--marigold-tint); }
.pagination [aria-current] { background: var(--ink); color: var(--paper); }
.pagination span:not([aria-current]) { border-color: transparent; background: transparent; }

/* ---------- 404 ---------- */
.notfound .search-form { max-width: 32rem; margin: 1.5rem 0; }
.notfound-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  .archive-card:hover { transform: none; }
}

/* old content with hard-coded widths (form fields, embeds, wrappers) never pushes the page wider than the screen */
.post-body [style*="width"], .post-body textarea, .post-body input, .post-body select, .post-body iframe, .post-body video, .post-body embed, .post-body object { max-width: 100% !important; }
.post-body textarea { box-sizing: border-box; }

/* closed menus take no space at all (some browsers still lay out closed <details> content) */
.nav-phone:not([open]) > nav, .nav-search:not([open]) > .search-form, .toc-phone:not([open]) > nav { display: none; }

/* old content: long words and URLs wrap instead of spilling sideways; floated inline columns stack on phones */
.post-body p, .post-body li, .post-body td, .post-body th, .post-body a, .post-body figcaption { overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .post-body [style*="float"] { float: none !important; width: auto !important; padding: 0 !important; }
}
.nav-phone .search-form button { background: var(--marigold); color: var(--ink); }
.nav-phone .search-form input[type="search"] { border-color: var(--paper); }
