/* Modern, sleek, sans-serif (Inter) */
:root {
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #475569;
  --brand: #1d4ed8;
  --brand-600: #2563eb;
  --panel: #f5f7fb;
  --border: #e5e7eb;
  --shadow: 0 14px 30px rgba(2, 6, 23, .08);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  display: grid;
  grid-template-rows: auto 1fr auto; /* header, main, footer */
}

.container { width: min(960px, 92vw); margin: 0 auto; }

/* Home fits one screen */
.home { display: grid; align-items: center; }
.home-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.hero { padding: 24px 0; }
.lead { color: var(--muted); font-size: 1.125rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

/* Navbar */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); background: rgba(255,255,255,.85); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { font-weight: 800; letter-spacing: .2px; color: #0f172a; text-decoration: none; font-size: 1.25rem; }
.nav-links { display: flex; gap: 18px; }
.nav-links a { color: var(--muted); font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-links a.ext::after { content: '↗'; margin-left: 4px; font-size: .9em; }
.menu { display: none; appearance: none; background: white; color: #0f172a; border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; box-shadow: var(--shadow); }
.drawer { display: none; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.drawer.open { display: grid; gap: 12px; padding: 12px 0 16px; }
.drawer a { display: block; text-decoration: none; color: #0f172a; font-weight: 700; font-size: 1.05rem; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.drawer a:hover { color: var(--brand); border-color: var(--brand-600); background: #fff; }
@media (max-width: 820px) { .nav-links { display: none; } .menu { display: inline-flex; } }

/* Cards & Buttons */
.card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin: 14px 0; box-shadow: var(--shadow); overflow: hidden; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); font-weight: 700; color: #0f172a; text-decoration: none; background: white; box-shadow: var(--shadow); transition: transform .06s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, var(--brand-600), var(--brand)); color: white; border: none; box-shadow: 0 10px 30px rgba(29,78,216,.25); }
.btn.ghost { background: white; }

/* Dropdowns */
.dropdown { margin: 16px 0; border: 1px solid var(--border); border-radius: 14px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.dropdown > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 700; color: #0f172a; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
/* caret */
.dropdown > summary::after { content: '▾'; font-size: 0.9em; color: var(--muted); margin-left: 8px; line-height: 1; display: inline-block; flex: none; pointer-events: none; transition: transform 160ms ease; }
.dropdown[open] > summary::after { transform: rotate(180deg); }
.dropdown .panel { border-top: 1px solid var(--border); padding: 12px 12px 14px; background: var(--panel); }

/* Lists */
.list { list-style: none; padding: 0; margin: 0; }
.list.big { padding: 8px 10px; }
.list.big li { padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.list.big li + li { border-top: 1px solid var(--border); }
.item-title { font-weight: 700; overflow-wrap: anywhere; }
.item-sub { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }

/* Responsive: resources on small screens (multi-link friendly) */
@media (max-width: 640px) {
  .dropdown > summary .title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .dropdown > summary { align-items: flex-start; }
  .list.big { padding: 6px 8px; }
  .list.big li { grid-template-columns: 1fr; row-gap: 8px; }
  .item-actions { justify-content: start; }
  .btn { font-size: 0.95rem; padding: 9px 12px; }
  .item-actions .btn { flex: 0 1 auto; }
}

/* Pizza */
.pizza-cards { display: grid; gap: 16px; padding: 8px; }
.pizza-cards li { list-style: none; }
.pizza-cards li > .cardlike { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.pizza-name { font-weight: 700; }
.pizza-rank { color: var(--muted); font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 22px 0 40px; }

/* a11y */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }




/* === Mobile hamburger drawer: styled links === */
.site-header .drawer {
  display: none;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .drawer.open {
  display: grid;
  gap: 12px;
  padding: 12px 0 16px;
}

/* High-specificity rules to beat user-agent/default styles */
.site-header .drawer a,
.site-header .drawer a:visited {
  display: block;
  text-decoration: none !important;
  color: #0f172a !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.site-header .drawer a:hover {
  color: var(--brand) !important;
  border-color: var(--brand-600);
}

/* === Pizza page — card layout (no stars) === */
.pizza-grid{
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px){
  .pizza-grid{ grid-template-columns: 1fr 1fr; }
}

/* Card */
.p-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:0 1px 2px rgba(2,6,23,.04);
  padding:20px;
  transition: box-shadow .2s ease, transform .05s ease;
}
.p-card:hover{ box-shadow:0 8px 24px -12px rgba(2,6,23,.15); }

/* Header */
.p-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.p-rank{ font-size:12px; color:#71717a; }       /* gray-500 */
.p-title{ margin:4px 0 0; font-weight:700; font-size:1.25rem; line-height:1.3; }

/* Map button (top-right) */
.p-map{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff; color:#0f172a; font-weight:600;
  text-decoration:none;
  box-shadow:0 1px 2px rgba(2,6,23,.04);
}
.p-map:hover{ transform: translateY(-1px); }

/* Meta row */
.p-meta{ margin-top:10px; display:flex; flex-wrap:wrap; align-items:center; gap:10px; color:#52525b; }
.p-badge{ display:inline-flex; align-items:center; padding:6px 12px; border:1px solid var(--border); border-radius:9999px; font-size:12px; font-weight:600; background:#fff; }
.p-hood{ display:inline-flex; align-items:center; gap:6px; }
