/* Visual refresh shared by the food directory, discussions and account pages. */
:root {
  --orange: #cf542b;
  --ink: #282d28;
  --muted: #697169;
  --bg: #f8f7f2;
  --line: #e5e7dc;
  --surface: #fffefa;
  --leaf: #315f4c;
  --shadow: 0 12px 36px rgb(32 48 36 / 7%);
}
body { background: var(--bg); color: var(--ink); line-height: 1.6; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a:hover, button:hover { filter: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #ecaa72; outline-offset: 3px;
}
.header { max-width: 1320px; position: relative; z-index: 2; }
.brand { letter-spacing: -.03em; }
.logo { background: var(--orange); box-shadow: 0 7px 18px rgb(207 84 43 / 18%); }
.header nav a, .header nav button { color: #555f55; }
.header nav .active { color: var(--orange); }
.header-right>a:not(.primary), .notification-link { white-space: nowrap; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; line-height: 1.25; text-align: center; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.primary { background: var(--orange); box-shadow: 0 7px 17px rgb(207 84 43 / 16%); }
.primary:hover:not(:disabled) { background: #b84622; transform: translateY(-1px); }
.secondary { background: var(--surface); border-color: #d9ddcf; }
.secondary:hover:not(:disabled) { background: #f4f4ed; border-color: #9eaa98; }
.small { min-height: 38px; }
.food-live-hero, .live-hero {
  border: 1px solid #dce5d7; overflow: hidden;
  background: radial-gradient(circle at 78% 22%, rgb(255 255 255 / 85%) 0 8%, transparent 34%),
    linear-gradient(120deg, #e8f0e7 0%, #f1f2e8 58%, #fff0df 100%);
  box-shadow: 0 12px 34px rgb(76 87 61 / 6%);
}
.food-live-hero { min-height: 325px; gap: 36px; }
.food-live-hero h1 { max-width: 630px; line-height: 1.22; letter-spacing: -.055em; }
.food-live-hero p, .live-hero p { max-width: 590px; color: #57685b; font-size: 14px; }
.food-live-hero .primary { margin-top: 10px; }
.food-hero-art { width: min(100%, 300px); margin: auto; background: #dde9d8; box-shadow: inset 0 0 0 1px #cbdcc7, 0 22px 45px rgb(52 77 51 / 12%); }
.eyebrow, .overline { color: #56745b; font-weight: 700; }
.section-heading { gap: 24px; }
.section-heading h2 { line-height: 1.25; }
.section-heading h2 span { color: #728076; }
.search { min-height: 46px; border-color: #d9dfd4; border-radius: 12px; box-shadow: 0 3px 10px rgb(37 51 40 / 3%); }
.search:focus-within { border-color: #8aa690; box-shadow: 0 0 0 3px rgb(93 145 104 / 12%); }
.search input { width: min(260px, 28vw); font-size: 14px; outline: none; }
.filter-row select, .ai-food-search input, .form input, .form select, .form textarea, .composer input, .composer select, .composer textarea {
  border: 1px solid #d5dbd0; border-radius: 10px; background: var(--surface); color: var(--ink);
}
.filter-row select { min-height: 44px; padding: 8px 13px; font-size: 13px; }
.filter-row select:focus, .ai-food-search input:focus, .form input:focus, .form select:focus, .form textarea:focus { border-color: #80a488; }
.food-live-filters { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
.food-live-filters .secondary { min-height: 44px; }
.results-meta { margin: 22px 0 14px; color: #637165; font-size: 12px; }
.ai-food-finder, .campus-insight { border-color: #e2e6d9; background: var(--surface); box-shadow: 0 5px 24px rgb(35 52 39 / 4%); }
.ai-food-finder h2, .campus-insight h2 { color: var(--ink); }
.ai-food-search input { min-height: 46px; font-size: 14px; }
.ai-recommend-row a { border-color: var(--line); background: var(--surface); }
.ai-recommend-row a:hover { border-color: #a2b8a2; box-shadow: var(--shadow); }
.food-grid.live-food-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.food-card { display: flex; flex-direction: column; min-width: 0; border-color: #e3e6dc; border-radius: 16px; background: var(--surface); box-shadow: 0 3px 14px rgb(37 50 38 / 4%); cursor: default; }
.food-card:hover { box-shadow: var(--shadow); }
.food-card-photo-link { overflow: hidden; }
.food-photo, .food-placeholder { width: 100%; height: 205px; }
.food-card-photo-link .food-photo { transition: transform .32s ease; }
.food-card:hover .food-card-photo-link .food-photo { transform: scale(1.035); }
.food-placeholder { background: linear-gradient(145deg, #e2eddf, #f6e7d8); }
.food-content { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 18px; }
.food-title { align-items: flex-start; gap: 10px; }
.food-title h3, .food-content h3 { font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.food-title h3 a:hover { color: var(--orange); }
.live-food-grid .save { width: 36px; height: 36px; flex: 0 0 36px; color: #68766a; }
.live-food-grid .save.saved { color: var(--orange); }
.rating-pill { align-self: flex-start; margin: 11px 0 4px; padding: 5px 9px; border-radius: 999px; background: #fff1d9; color: #86550f; font-size: 12px; }
.location { min-height: 0; margin: 8px 0; color: #5f6d63; font-size: 12px; line-height: 1.55; }
.tags { flex-wrap: wrap; gap: 6px; }
.tags span { padding: 5px 8px; border-radius: 999px; background: #eaf0e7; color: #45664f; font-size: 11px; }
.food-summary { color: #626c62; font-size: 12px; }
.food-source { font-size: 11px; }
.food-card-detail-link { margin-top: auto; border-radius: 9px; background: #f1f5ee; color: #315f4c; font-size: 12px; }
.food-card-detail-link:hover { background: #e4eee1; }
.food-bottom { gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.price { color: #b84b24; font-size: 21px; white-space: nowrap; }
.food-card-actions { margin-left: auto; }
.food-card-actions .small { min-height: 36px; }
.live-columns { align-items: start; }
.live-post { box-shadow: 0 3px 16px rgb(37 50 38 / 4%); }
.live-post:hover { box-shadow: var(--shadow); }
.live-post .post-body { color: #3f4b42; }
.post-topic { border-radius: 999px; background: #e9f0e8; color: #3e6850; }
.composer, .admin-section, .dish-detail-hero, .dish-rating-section, .dish-checkins-section, .account-card, .policy-card { background: var(--surface); border-color: var(--line); box-shadow: 0 3px 18px rgb(36 47 37 / 4%); }
.composer { position: sticky; top: 16px; border-radius: 16px; }
.app-modal-backdrop { backdrop-filter: blur(5px); }
.app-modal { background: var(--surface); box-shadow: 0 24px 70px rgb(25 30 27 / 18%); }
.app-modal .modal-top { position: sticky; top: -25px; z-index: 1; margin: -25px -25px 20px; padding: 20px 25px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.form label { color: #48554a; font-size: 13px; font-weight: 600; }
.form input, .form textarea, .form select { font-weight: 400; }
.empty { border-radius: 14px; background: #f1f4ec; color: #59675b; font-size: 13px; }
.live-message { border: 1px solid #dbe7d4; background: #edf6e9; color: #345a3d; }
.profile-stats div { background: var(--surface); border-color: var(--line); box-shadow: 0 4px 16px rgb(35 49 38 / 4%); }
.profile-stats strong { color: var(--orange); }
@media (max-width: 1050px) {
  .food-grid.live-food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .food-bottom { align-items: flex-start; }
}
@media (max-width: 900px) {
  .composer { position: static; }
  .food-hero-art { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .header { gap: 6px; min-height: 0; padding-top: 8px; padding-bottom: 4px; background: var(--bg); }
  .header nav { height: 40px; justify-content: space-between; }
  .header nav a, .header nav button { min-width: 0; min-height: 40px; flex: 1; justify-content: center; padding: 0 6px; font-size: 12px; white-space: nowrap; }
  .header-right .primary { min-height: 40px; padding: 8px 12px; }
  .brand { font-size: 14px; }
  .brand small { letter-spacing: 1.2px; font-size: 8px; }
  .logo { width: 34px; height: 36px; font-size: 21px; }
  .food-live-hero { min-height: 0; gap: 0; margin: 8px 0 10px; padding: 17px 18px; border-radius: 16px; }
  .food-live-hero .eyebrow { display: none; }
  .food-live-hero h1 { margin: 0 0 7px; font-size: clamp(23px, 6.5vw, 27px); line-height: 1.25; letter-spacing: -.04em; }
  .food-live-hero p { margin: 0 0 11px; color: #59695d; font-size: 13px; line-height: 1.5; }
  .food-live-hero .primary { min-height: 44px; margin: 0; padding: 9px 15px; font-size: 13px; }
  .live-hero p { font-size: 13px; }
  .ai-food-finder { grid-template-columns: minmax(0, 1fr); gap: 9px; margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; }
  .ai-food-finder .overline, .ai-food-finder p { display: none; }
  .ai-food-finder h2 { margin: 0; font-size: 18px; line-height: 1.3; }
  .ai-food-search { flex-direction: row; gap: 7px; }
  .ai-food-search input { min-width: 0; min-height: 44px; padding: 8px 10px; font-size: 14px; }
  .ai-food-search .primary { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .ai-search-answer { font-size: 12px; }
  .ai-recommend-section { margin: 10px 0 14px; }
  .ai-recommend-section .section-heading h2 { font-size: 18px; }
  .ai-recommend-row { display: flex; gap: 9px; margin: 9px -14px 0; padding: 0 14px 4px; overflow-x: auto; scroll-snap-type: x proximity; }
  .ai-recommend-row a { flex: 0 0 min(61vw, 210px); padding: 10px 12px; scroll-snap-align: start; }
  .ai-recommend-row span, .ai-recommend-row small { font-size: 11px; }
  .campus-insight { margin: 10px 0; padding: 14px 16px; }
  .campus-insight h2 { font-size: 18px; }
  .campus-insight p { font-size: 12px; }
  .campus-insight li { padding: 8px 10px; font-size: 11px; }
  .section-heading { align-items: stretch; }
  .section-heading h2 span { display: block; margin: 6px 0 0; font-size: 12px; }
  .search { width: 100%; }
  .search input { width: 100%; font-size: 16px; }
  .food-live-filters select { flex: 1 1 calc(50% - 5px); min-width: 0; font-size: 13px; }
  .food-live-filters button { flex: 1 1 100%; }
  .food-grid.live-food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .live-food-grid .food-card { border-radius: 13px; }
  .live-food-grid .food-photo, .live-food-grid .food-placeholder { height: auto; aspect-ratio: 4 / 3; }
  .live-food-grid .food-placeholder span { font-size: 38px; }
  .live-food-grid .food-placeholder small { margin-top: 4px; font-size: 10px; }
  .live-food-grid .food-content { padding: 11px; }
  .live-food-grid .food-title h3, .live-food-grid .food-content h3 { font-size: 15px; line-height: 1.35; }
  .live-food-grid .food-title h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .live-food-grid .save { width: 30px; height: 30px; flex-basis: 30px; font-size: 19px; }
  .live-food-grid .rating-pill { margin: 7px 0 3px; padding: 4px 7px; font-size: 10px; }
  .live-food-grid .location { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 5px 0 7px; font-size: 11px; line-height: 1.4; }
  .live-food-grid .tags { max-height: 23px; overflow: hidden; }
  .live-food-grid .tags span { padding: 3px 6px; font-size: 10px; white-space: nowrap; }
  .live-food-grid .tags span:not(:first-child), .live-food-grid .food-summary, .live-food-grid .food-source { display: none; }
  .live-food-grid .food-card-detail-link { margin-top: auto; padding: 7px 8px; font-size: 10px; }
  .live-food-grid .food-bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 9px; padding-top: 8px; }
  .live-food-grid .price { font-size: 16px; line-height: 1.25; }
  .live-food-grid .food-card-actions { width: 100%; margin: 0; gap: 5px; }
  .live-food-grid .food-card-actions button { flex: 1; min-width: 0; min-height: 32px; padding: 6px 4px; font-size: 10px; white-space: nowrap; }
  .live-post .post-body { font-size: 14px; }
  .post-photo { height: auto; max-height: 360px !important; }
  .app-modal .modal-top { top: -20px; margin: -20px -20px 18px; padding: 17px 20px 13px; }
  .profile-stats div { padding: 15px 10px; }
  .profile-stats span { font-size: 11px; }
}
@media (max-width: 370px) {
  .food-grid.live-food-grid { gap: 8px; }
  .live-food-grid .food-content { padding: 9px; }
  .live-food-grid .food-card-actions button { font-size: 9px; }
  .header-right { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary, .secondary, .food-card-photo-link .food-photo { transition: none; }
  .primary:hover:not(:disabled), .food-card:hover .food-card-photo-link .food-photo { transform: none; }
}
