/* Food guides (web/guides/, built by scripts/guides/build-guides.mjs). Tokens, buttons and chips come
   from jelly.css; the nav, footer and store badge from landing.css. Restaurant cards are the swipe
   card's look laid flat: the jelly picture on its pastel, then the name, the laurel and the Order line.
   Calm: no scroll effects, only a slow lift on hover, and none with reduced motion. */

.guides h1 { font-size: clamp(36px, 9.5vw, 60px); line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
.guides h2 { font-size: clamp(26px, 6.5vw, 34px); line-height: 1.1; margin: 0 0 16px; }
.g-page { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Breadcrumb */
.g-crumbs ol { list-style: none; margin: 0; padding: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--ink-3); }
.g-crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.g-crumbs li + li::before { content: "›"; color: var(--ink-3); }
.g-crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink-2); text-decoration: none; padding: 0 2px; }
.g-crumbs a:hover { color: var(--accent-text); text-decoration: underline; }

/* Hero: the words, then a little deck of jelly cards with the mascot */
.g-hero { display: grid; gap: 8px; padding: 16px 0 8px; }
.g-hero .eyebrow { color: var(--accent-text); margin-bottom: 10px; }
.g-lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; max-width: 36ch; }
.g-facts { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-facts li { display: inline-flex; align-items: baseline; gap: 5px; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2);
  background: var(--soft-pill); border: 1px solid var(--surface-rim); box-shadow: var(--shadow-sm); }
.g-facts strong { font: 700 17px/1 var(--font-head); color: var(--ink); }
.g-hero .squiggle { width: 180px; margin: 12px 0 14px -4px; }

/* Phones: the deck sits small above the title, so the list starts soon after the buttons. */
.g-deck { position: relative; height: 236px; order: -1; margin: 0 0 4px; }
.g-deck .art { position: absolute; left: 50%; top: 50%; width: 138px; margin-left: -69px; margin-top: -103px; aspect-ratio: 2 / 3;
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow); }
.g-deck .art.front { transform: rotate(3deg); z-index: 3; }
.g-deck .art.b1 { transform: translateX(-60px) rotate(-8deg) scale(.9); z-index: 1; }
.g-deck .art.b2 { transform: translateX(60px) rotate(11deg) scale(.88); z-index: 2; }
.g-mascot { position: absolute; z-index: 4; width: 92px; height: auto; left: calc(50% - 150px); bottom: 2px;
  filter: drop-shadow(0 12px 18px rgba(229, 64, 94, .22)); }
.g-hero .hero-ctas .btn-soft { display: none; }

@media (min-width: 900px) {
  .g-hero { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 24px; padding: 30px 0 18px; }
  .g-deck { height: 470px; order: 0; margin: 0; }
  .g-deck .art { width: 262px; margin-left: -131px; margin-top: -196px; border-radius: 30px; }
  .g-hero .hero-ctas { grid-template-columns: auto auto; justify-content: start; max-width: none; }
  .g-hero .hero-ctas .btn { padding: 0 28px; white-space: nowrap; }
  .g-hero .hero-ctas .btn-soft { display: inline-flex; }
  .g-deck .art.b1 { transform: translateX(-84px) rotate(-8deg) scale(.9); }
  .g-deck .art.b2 { transform: translateX(84px) rotate(11deg) scale(.88); }
  .g-mascot { width: 150px; left: calc(50% - 225px); bottom: 10px; }
}

/* Jelly picture on its pastel (the card colour bleeds into the art, as on the swipe card) */
.art { position: relative; display: block; overflow: hidden; background: linear-gradient(180deg, var(--top), var(--bottom)); }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .art::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .08); } }

/* Sections */
.g-sec { padding: 56px 0 0; }
.g-h2 { text-wrap: balance; }
.g-more { margin: 16px 0 0; }
.g-more a { display: inline-flex; align-items: center; gap: 4px; font: 600 16px/1 var(--font-head); color: var(--accent-text); text-decoration: none; min-height: 44px; }
.g-more a:hover { text-decoration: underline; }
.g-more svg, .link-chip.soft svg { width: 15px; height: 15px; }

/* List + side panel on wide screens */
.g-layout { display: grid; gap: 36px; padding-top: 40px; }
.g-aside { display: none; }
@media (min-width: 1100px) {
  .g-layout { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; }
  .g-aside { display: block; position: sticky; top: 84px; }
}
.g-toc { padding: 20px 18px 18px; border-radius: var(--radius-panel); }
.g-toc ol { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; max-height: calc(100vh - 260px); overflow: auto; }
.g-toc a { display: flex; align-items: baseline; gap: 10px; padding: 7px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.3; }
.g-toc a span { flex: none; width: 20px; font: 700 14px/1 var(--font-head); color: var(--accent-text); text-align: right; }
.g-toc a:hover { background: var(--surface-2); }
.g-toc .btn { width: 100%; }

/* Restaurant cards */
.g-list, .g-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.spot { display: grid; grid-template-rows: auto 1fr; overflow: hidden; scroll-margin-top: 84px;
  border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--surface-rim); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.spot:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.spot-art { position: relative; }
.spot-art .art { aspect-ratio: 16 / 10; }
.spot-rank { position: absolute; top: 14px; left: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font: 700 19px/1 var(--font-head); color: #fff; background: linear-gradient(180deg, var(--coral), var(--tomato));
  border: 2.5px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 14px rgba(229, 64, 94, .28); }
.spot-pill { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px;
  font: 600 13px/1.2 var(--font-head); color: #1D1619; background: rgba(255, 255, 255, .6); border: .75px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.spot-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.spot-body { padding: 18px 20px 20px; display: flex; flex-direction: column; min-width: 0; }
.spot-name { font: 700 24px/1.15 var(--font-head); margin: 0 0 4px; overflow-wrap: anywhere; }
.spot-known { margin: 0 0 4px; font: 600 15px/1.35 var(--font); color: var(--ink); }
.spot-known b { color: var(--accent-text); font-weight: 700; }
.spot-sub { margin: 0; font-size: 15px; color: var(--ink-2); }
.spot-sub .dot { margin: 0 2px; }
.spot-sub .price { font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.spot-fav { display: flex; align-items: center; gap: 5px; margin: 10px 0 0; font: 600 14.5px/1.25 var(--font-head); color: #A86A12; }
.spot-fav svg { width: 17px; height: 17px; flex: none; }
.spot-why { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.spot-order { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; font: 600 15px/1.35 var(--font); }
.spot-order b { color: var(--favorite); flex: none; }
.spot-order svg { width: 14px; height: 14px; flex: none; fill: var(--favorite); margin-top: 3px; }
.spot-tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.spot-tags li { padding: 5px 10px; border-radius: 999px; background: var(--chip); font: 600 12.5px/1.2 var(--font); color: var(--ink-2); }
.spot-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.spot-links .link-chip { box-shadow: var(--shadow-sm); }
.link-chip.soft { color: var(--accent-text); }
.spot-src { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .spot-fav { color: #EBB45A; }
}

@media (min-width: 680px) {
  .g-list .spot { grid-template-rows: none; grid-template-columns: 220px minmax(0, 1fr); }
  .g-list .spot-art .art { aspect-ratio: auto; height: 100%; min-height: 240px; }
  .g-list .spot-body { padding: 22px 24px 22px; }
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) { .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spot.compact .spot-art .art { aspect-ratio: 4 / 3; }
.spot.compact .spot-name { font-size: 22px; }

/* Food tiles: the jelly picture with a frosted label, like a swipe card's panel */
.g-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 520px) { .g-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 760px) { .g-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .g-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .g-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.g-tile { position: relative; display: block; border-radius: 26px; overflow: hidden; text-decoration: none; color: #1D1619;
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.g-tile .art { aspect-ratio: 1; }
.g-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.g-tile-text { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 9px 12px; border-radius: 18px;
  background: rgba(250, 250, 249, .86); border: .75px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); }
.g-tile-text strong { display: block; font: 700 16px/1.15 var(--font-head); overflow-wrap: anywhere; }
.g-tile-text small { display: block; margin-top: 2px; font-size: 12.5px; color: #5E5157; }

/* City rows on the guides index */
.g-cities { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .g-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .g-cities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-city { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 26px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--surface-rim); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.g-city:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.g-city .art { width: 76px; height: 76px; flex: none; border-radius: 20px; }
.g-city-text { flex: 1; min-width: 0; }
.g-city-text strong { display: block; font: 700 19px/1.15 var(--font-head); }
.g-city-text small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.g-city-foods { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-city > svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }

/* Link chips (other cities) */
.g-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font: 600 15px/1 var(--font); background: var(--soft-pill); border: 1px solid var(--surface-rim); box-shadow: var(--shadow-sm); }
.g-chips a:hover { color: var(--accent-text); }

/* Call to action */
.g-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 22px 24px; margin-top: 32px; }
.g-cta > img { width: 112px; height: auto; flex: none; }
.g-cta h2 { font-size: clamp(24px, 6vw, 30px); margin: 0 0 8px; }
.g-cta p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.5; max-width: 46ch; }
.g-cta-btns { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.g-cta-btns .btn { width: auto; min-width: 260px; }
.g-sec > .g-cta { margin-top: 0; }
@media (min-width: 760px) {
  .g-cta { flex-direction: row; text-align: left; gap: 24px; padding: 28px 32px; }
  .g-cta > img { width: 140px; }
  .g-cta-btns { flex-direction: row; flex-wrap: wrap; }
}

/* How we pick */
.g-how-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; max-width: 820px; }
.g-how-card img { width: 76px; height: auto; flex: none; }
.g-how-card h2 { font-size: 24px; margin: 0 0 6px; }
.g-how-card p { margin: 0; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 520px) { .g-how-card { flex-direction: column; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .spot:hover, .g-tile:hover, .g-city:hover { transform: none; }
}
