/* Food Challenge Hub – shared styles for directory & forum pages (matches homepage) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #D63B1F; --red-dark: #b5321a; --green: #3f9142;
  --cream: #EAE7E0; --cream-dark: #dedad1; --black: #1a1a1a;
  --text: #3a3530; --muted: #5f5a55; --white: #ffffff;
  --radius: 16px; --radius-lg: 24px;
  --shadow: 0 8px 24px rgba(26,26,26,0.08); --shadow-lg: 0 20px 50px rgba(26,26,26,0.14);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--cream); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.5px; line-height: 1.02; color: var(--black); font-weight: 400; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--black); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 16px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* nav */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(234,231,224,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--cream-dark); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--black); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--red); }
.nav-links .nav-cta { background: var(--black); color: var(--white); padding: 9px 16px; border-radius: 999px; }
.nav-links .nav-cta:hover { background: var(--red); color: var(--white); }
@media (max-width: 640px) { .nav-inner { padding: 10px 16px; } .nav-links { gap: 14px; } .hide-sm { display: none; } .nav-links a { font-size: 13px; } .nav-links .nav-cta { padding: 8px 12px; } }

/* page shell */
.page { padding-top: 28px; padding-bottom: 72px; }
.page-title { font-size: clamp(38px, 6vw, 60px); margin: 8px 0 12px; }
.lede { font-size: 18px; color: var(--muted); max-width: 720px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--red); }
.section { margin-top: 48px; }
.section h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
.btn { display: inline-block; background: var(--red); color: var(--white); text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--red); }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.store-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid var(--white); color: var(--white); }
.store-btn:hover { background: var(--white); color: var(--black); }

/* stats strip */
.stats { display: flex; gap: 36px; flex-wrap: wrap; margin: 26px 0 8px; }
.stats .n { font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: var(--red); line-height: 1; }
.stats .l { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--cream-dark); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip .c { color: var(--muted); font-weight: 500; font-size: 13px; }

/* search / filter */
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 8px; }
.filter input { flex: 1 1 260px; font: inherit; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--cream-dark); background: var(--white); box-shadow: var(--shadow); }
.filter-count { font-size: 14px; color: var(--muted); align-self: center; }

/* challenge cards */
.cc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1040px) { .cc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 420px) { .cc-grid { grid-template-columns: 1fr; } }
.cc { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.cc:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cc-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--cream-dark); }
.cc-thumb-empty { display: flex; align-items: center; justify-content: center; font-size: 42px; }
.cc-body { padding: 14px 16px 16px; }
.cc h3 { font-size: 17px; line-height: 1.3; color: var(--black); margin: 4px 0 4px; }
.cc-venue { font-size: 13px; color: var(--muted); }
.cc-meta { font-size: 13px; font-weight: 700; color: var(--red); margin-top: 6px; }
.cc-tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 0; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: #fbe6e1; color: var(--red-dark); padding: 2px 8px; border-radius: 999px; }
.tag-muted { background: var(--cream-dark); color: var(--muted); }
.city-group { margin-top: 40px; scroll-margin-top: 80px; }
.city-group h2 { font-size: 30px; margin-bottom: 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.city-group h2 small { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--muted); font-weight: 600; }
.city-group h2 a { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--red); font-weight: 700; text-decoration: none; }

/* challenge detail */
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; margin-top: 18px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: 24px; } }
.detail-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream-dark); }
.detail-photo img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.fact { background: var(--white); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.fact .k { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact .v { font-weight: 800; color: var(--black); font-size: 17px; }
.prose p { margin-bottom: 14px; }
.panel { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); margin-top: 22px; }
.panel h2 { font-size: 26px; margin-bottom: 8px; }
.map-embed { width: 100%; height: 260px; border: 0; border-radius: var(--radius); margin-top: 12px; background: var(--cream-dark); }
.status-retired { background: var(--black); color: var(--white); border-radius: var(--radius); padding: 12px 16px; margin-top: 14px; font-size: 14px; }

/* forum */
.forum-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
@media (max-width: 900px) { .forum-cats { grid-template-columns: repeat(2, 1fr); } }
.forum-cat { background: var(--white); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; box-shadow: var(--shadow); border: 2px solid transparent; }
.forum-cat:hover, .forum-cat[aria-current] { border-color: var(--red); }
.forum-cat strong { display: block; color: var(--black); }
.forum-cat span { font-size: 13px; color: var(--muted); }
.threads { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.thread-row a { display: block; background: var(--white); border-radius: var(--radius); padding: 18px 22px; text-decoration: none; box-shadow: var(--shadow); }
.thread-row a:hover { box-shadow: var(--shadow-lg); }
.thread-row h3 { font-size: 18px; color: var(--black); line-height: 1.3; }
.thread-row p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.thread-meta { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; }
.thread-meta .cat { color: var(--red); }
.post { background: var(--white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); margin-top: 18px; }
.post-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.post .prose p:last-child { margin-bottom: 0; }
.replies { list-style: none; display: grid; gap: 12px; margin-top: 12px; }
.reply { background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.reply.nested { margin-left: 28px; border-left: 3px solid var(--cream-dark); }
@media (max-width: 560px) { .reply.nested { margin-left: 12px; } .post { padding: 20px; } }
.join-banner { background: #fbe6e1; border-radius: var(--radius); padding: 16px 20px; margin-top: 20px; font-size: 15px; }
.join-banner a { color: var(--red-dark); font-weight: 700; }

/* app CTA */
.app-cta { background: var(--black); color: var(--white); text-align: center; border-radius: var(--radius-lg); padding: 48px 24px; margin-top: 64px; }
.app-cta h2 { color: var(--white); font-size: clamp(30px, 5vw, 46px); margin-bottom: 10px; }
.app-cta p { color: #d8d4cc; max-width: 560px; margin: 0 auto 24px; }

/* footer */
.site-foot { padding: 40px 0; text-align: center; }
.foot-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.foot-links a { font-size: 14px; text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--red); }
.copyright { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
