:root {
  --green: #19263d;
  --green-dark: #0e192b;
  --ink: #19263d;
  --muted: #566175;
  --line: #e2e6ec;
  --paper: #fafaf8;
  --white: #fff;
  --mint: #eef2f7;
  --lime: #ffdc65;
  --orange: #f3b82e;
  --saffron: #fac94d;
  --hero-field: #fff0be;
  --radius: 18px;
  --shadow: 0 1px 2px #17243a08;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
}
html { scroll-padding-top: 70px; }
::selection { background: #ffdf76; color: var(--ink); }
:focus-visible { outline: 2px solid #295697; outline-offset: 3px; }
.header { background: var(--white); backdrop-filter: none; }
.header-inner,.container,.footer { width: min(1200px, 92%); padding-inline: 0; margin-inline: auto; }
.header-inner { min-height: 67px; }
.header-actions { gap: 11px; }
.brand { gap: 10px; }
.brand-icon { width: 38px; height: 38px; border-radius: 11px; color: var(--ink); background: var(--saffron); }
.brand-icon svg { width: 26px; }
.brand-type strong { font-size: 25px; font-weight: 800; letter-spacing: -.055em; }
.brand-dot { color: #ab6f00; }
.desktop-nav { height: 67px; gap: clamp(1rem,3vw,2.6rem); }
.desktop-nav a { font-size: .92rem; font-weight: 650; }
.desktop-nav a.active::after { background: var(--saffron); }
.student-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 9px; white-space: nowrap; color: var(--ink); background: var(--white); font-size: .85rem; font-weight: 700; }
.student-button:hover,.student-button.verified { background: #fff4cc; border-color: #f3dd91; }
.student-button .icon { width: 16px; height: 16px; }
.header .share-btn { width: 40px; height: 40px; }
.member-btn .avatar { background: var(--mint); color: var(--ink); }
.member-btn .member-text { color: var(--ink); }
.btn { border-radius: 9px; min-height: 42px; font-size: .9rem; }
.btn-primary { color: white; background: var(--ink); }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { background: #e9edf1; color: #5b6472; opacity: 1; }
.text-btn { color: var(--ink); }
.skip:not(:focus) { clip-path: inset(50%); white-space: nowrap; width: 1px; height: 1px; overflow: hidden; }
.skip:focus { top: 12px; }

.hero.campus-hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: stretch;
  gap: 0;
  min-height: 310px;
  margin: 24px 0 30px;
  padding: 0;
  border-radius: 21px;
  overflow: hidden;
  background: var(--hero-field);
}
.campus-hero .hero-copy { align-self: center; padding: clamp(28px,3vw,42px) clamp(29px,4vw,56px); }
.hero-location { display: flex; align-items: center; gap: .45rem; color: #3c4651; font-size: .87rem; font-weight: 750; letter-spacing: .055em; }
.hero-location .icon { width: 16px; height: 16px; }
.campus-hero h1 { margin: .55rem 0 .85rem; color: var(--ink); font-size: clamp(2.2rem,4.45vw,4.2rem); font-weight: 820; line-height: 1.12; letter-spacing: -.075em; }
.campus-hero .hero-lead { max-width: none; margin: 0; color: #364256; font-size: clamp(.95rem,1.2vw,1.11rem); line-height: 1.65; }
.campus-hero .hero-actions { gap: .6rem 1.1rem; margin-top: 1.4rem; }
.campus-hero .hero-actions .btn { padding: .7rem 1rem; }
.hero-how { min-height: 39px; white-space: nowrap; font-weight: 650; }
.hero-how:hover { text-decoration: underline; text-underline-offset: .25em; }
.campus-hero-photo { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #b17743; }
.campus-hero-photo img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center 53%; }
.campus-hero-photo figcaption { position: absolute; right: 18px; bottom: 16px; display: grid; gap: .12rem; min-width: 9.15rem; border-radius: 10px; padding: .55rem .7rem; background: white; color: var(--ink); }
.campus-hero-photo figcaption strong { font-size: 1.02rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.campus-hero-photo figcaption span { color: var(--muted); font-size: .76rem; }

.discovery-heading h2 { margin: 0; font-size: clamp(1.55rem,2.6vw,2.35rem); line-height: 1.2; letter-spacing: -.06em; }
.discovery-heading p { margin: .38rem 0 1.12rem; font-size: .96rem; line-height: 1.45; color: var(--muted); }
.discovery-controls { display: grid; grid-template-columns: 1.45fr .83fr 1fr; gap: .65rem; }
.discovery-controls .location-select,.discovery-controls .search-field { min-width: 0; min-height: 47px; border-radius: 9px; border: 1px solid #d9dfe6; background: var(--white); color: var(--ink); }
.discovery-controls .location-select:focus-within,.discovery-controls .search-field:focus-within { border-color: #6b83a5; }
.discovery-controls .location-select select,.discovery-controls .search-field input { width: 100%; min-width: 0; font-size: .92rem; color: var(--ink); }
.discovery-controls .location-select { max-width: none; width: 100%; }
.discovery-controls .location-select select { max-width: none; flex: 1; text-overflow: ellipsis; }
.discovery-controls .location-select .icon,.discovery-controls .search-field .icon { flex: 0 0 auto; width: 17px; height: 17px; color: #525f75; }
.discovery-refine { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.discovery-refine .categories { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; }
.discovery-refine .category { min-height: 40px; padding: .4rem .78rem; border-radius: 8px; background: transparent; border: 1px solid #dfe4eb; color: var(--ink); font-size: .9rem; font-weight: 650; white-space: nowrap; }
.discovery-refine .category:hover { background: #f0f2f6; }
.discovery-refine .category.active { background: var(--ink); border-color: var(--ink); color: white; }
.discovery-refine .category .icon { width: 16px; height: 16px; }
.availability-control { display: flex; align-items: center; gap: .35rem; white-space: nowrap; min-height: 40px; padding: .2rem .25rem; font-size: .86rem; cursor: pointer; }
.availability-control input { accent-color: var(--ink); inline-size: 16px; block-size: 16px; margin: 0; }
.discovery .result-bar { padding: .4rem 0; margin: .25rem 0 .55rem; font-size: .88rem; color: var(--muted); }
.discovery .sort-wrap select { min-height: 38px; font-size: .88rem; color: var(--ink); }
.discovery .sort-wrap .icon { width: 16px; height: 16px; }
.discovery-demo { margin-top: 1.25rem; color: var(--muted); font-size: .86rem; }
.discovery-demo summary { width: fit-content; padding-block: .45rem; cursor: pointer; }
.discovery-demo .demo-clock { background: var(--mint); border-color: var(--line); color: var(--ink); }
.discovery-demo p { margin: .3rem 0 .65rem; }
.explore-section,.collection-guide { scroll-margin-top: 12px; }

.cards { gap: clamp(13px,1.6vw,24px); }
.food-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--white); overflow: hidden; box-shadow: none; }
.food-card:hover { border-color: #a4b1c4; transform: none; box-shadow: none; }
.food-card:focus-within { border-color: #5776a3; }
.card-image { height: auto; aspect-ratio: 1.86; min-height: 140px; }
.card-image > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.food-card .stock { position: absolute; top: 13px; left: 13px; max-width: calc(100% - 70px); padding: .34rem .59rem; border-radius: 6px; color: var(--ink); background: #ffdf77; font-size: .84rem; line-height: 1.25; font-weight: 750; }
.food-card .stock.unavailable { background: #f3f5f8; color: #3b475a; }
.food-card .heart { top: 11px; right: 11px; z-index: 2; width: 35px; height: 35px; color: var(--ink); background: white; }
.food-card .heart.saved { color: #a23243; }
.food-card .heart .icon { width: 17px; height: 17px; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 15px 15px 13px; }
.card-context { display: flex; align-items: center; gap: .29rem; margin: 0 0 .33rem; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.card-context .icon { width: 14px; height: 14px; flex-shrink: 0; }
.card-body h3 { margin: 0; min-width: 0; color: var(--ink); font-size: clamp(.98rem,1.42vw,1.21rem); line-height: 1.24; letter-spacing: -.022em; }
.card-title { text-align: left; font-weight: 800; overflow-wrap: anywhere; }
.card-title::after { content: ""; position: absolute; inset: 0; }
.card-title:focus-visible::after { outline: 2px solid #295697; outline-offset: -3px; border-radius: 15px; }
.card-desc { margin: .43rem 0 .65rem; color: var(--muted); font-size: .89rem; line-height: 1.45; overflow: visible; white-space: normal; }
.pickup-time { align-self: flex-start; gap: .34rem; padding: .28rem .47rem; margin: auto 0 0; border: 0; border-radius: 6px; background: #eef2f7; color: #34435c; font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pickup-time .icon { width: 15px; height: 15px; }
.card-bottom { display: flex; align-items: flex-end; gap: .25rem .8rem; border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .75rem; }
.card-price,.food-price { display: grid; gap: .17rem; }
.card-price .price { color: var(--ink); font-size: clamp(1.09rem,1.68vw,1.48rem); font-weight: 850; line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.card-price .discount,.food-price { color: var(--muted); font-size: .75rem; line-height: 1.35; }
.food-price { text-align: right; }
.food-price del { color: #5d677b; }
.food-price span { color: var(--ink); }

.collection-guide { margin: 3rem 0; padding: 1.6rem 0 .2rem; border-top: 1px solid var(--line); background: transparent; }
.collection-guide h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.04em; }
.collection-guide .how-heading { margin: 0 0 1.2rem; }
.collection-guide .how-heading p { color: var(--muted); font-size: .9rem; text-align: left; }
.collection-guide .how-grid { gap: 1rem 2rem; padding-bottom: 0; }
.collection-guide .how-item { display: grid; grid-template-columns: auto 1fr; gap: .6rem; }
.collection-guide .how-item h3 { margin: .1rem 0 .3rem; font-size: 1.02rem; }
.collection-guide .how-item p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.step-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 9px; background: #fff0bd; color: var(--ink); }
.footer { margin-top: 2rem; }
.footer-fine { color: var(--muted); font-size: .78rem; }
.mobile-nav a { color: #59657b; }
.mobile-nav a.active { color: var(--ink); }

.modal-backdrop { background: #0d192b92; backdrop-filter: none; }
.modal { border-radius: 17px; box-shadow: 0 12px 48px #0d192b24; }
.modal-close { z-index: 3; background: white; }
.modal.listing-dialog { width: min(890px,100%); }
.listing-layout { display: grid; grid-template-columns: .85fr 1fr; min-width: 0; }
.listing-photo { position: relative; min-height: 360px; margin: 0; background: #e8d0ad; overflow: hidden; }
.listing-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing-photo figcaption { position: absolute; left: 15px; bottom: 15px; padding: .3rem .5rem; background: white; border-radius: 5px; font-size: .76rem; }
.listing-body { min-width: 0; padding: 36px 29px 24px; }
.listing-location,.checkout-pickup { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .83rem; }
.listing-location { padding-right: 21px; }
.listing-location .icon,.checkout-pickup .icon { flex-shrink: 0; width: 16px; height: 16px; }
.listing-body h2,.reservation-body h2,.verification-body h2,.receipt-dialog h2 { font-size: clamp(1.4rem,2.1vw,2.02rem); margin: .5rem 0 .4rem; line-height: 1.2; letter-spacing: -.045em; }
.listing-title { font-size: 1.02rem; font-weight: 700; }
.listing-body .detail-intro { margin: .55rem 0 1rem; font-size: .93rem; color: var(--muted); }
.listing-pickup { display: flex; gap: .65rem; align-items: center; padding: .65rem .72rem; border-radius: 9px; background: var(--mint); font-size: .93rem; }
.listing-pickup .step-icon { width: 33px; height: 33px; background: white; }
.listing-pickup div span { display: block; margin-top: .22rem; color: var(--muted); font-size: .83rem; }
.allergen-detail { padding: .65rem 0; margin: .25rem 0; border-bottom: 1px solid var(--line); font-size: .91rem; }
.allergen-detail summary { font-weight: 650; cursor: pointer; }
.allergen-detail p { margin: .45rem 0 0; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.listing-payment { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; padding-top: .75rem; }
.listing-price { display: grid; gap: .22rem; }
.listing-price .price { font-size: 1.7rem; line-height: 1.1; color: var(--ink); }
.listing-price span:not(.price),.listing-price p,.listing-note { color: var(--muted); font-size: .79rem; }
.listing-price del { margin-inline-start: .2rem; }
.listing-note { margin: .75rem 0 0; }
.back-to-listing { padding: .25rem 0; text-decoration: underline; text-underline-offset: .18em; }
.verification-body > p,.reservation-body .checkout-summary p,.receipt-dialog .success-heading p { font-size: .92rem; color: var(--muted); }
.verification-body .ops-form { margin: 1rem 0 .6rem; }
.verification-body .ops-form select { width: 100%; }
.verification-body .ops-form .btn { justify-self: stretch; }
.reservation-body .checkout-summary { margin: .9rem 0 .7rem; padding-bottom: .8rem; }
.reservation-body .checkout-summary h3 { font-size: 1rem; }
.reservation-status { display: flex; gap: .38rem; align-items: center; margin: .6rem 0; color: #3d4b62; font-size: .86rem; }
.reservation-status .icon { width: 17px; height: 17px; }
.reservation-body .bill { border: 1px solid var(--line); border-radius: 10px; padding: .7rem; margin: .7rem 0; background: #f7f8fb; }
.reservation-body .bill-row,.reservation-body .bill-total { font-size: .92rem; }
.reservation-body .bill-total strong { font-size: 1.29rem; font-variant-numeric: tabular-nums; }
.reservation-body .consent { font-size: .87rem; align-items: flex-start; }
.reservation-body .payment-notice { font-size: .79rem; color: var(--muted); }
.receipt-dialog .pickup-ticket { background: #f5f7fa; color: var(--ink); }
.receipt-dialog .ticket-header h3 { font-size: .98rem; }
.receipt-dialog .ticket-header p,.receipt-dialog .ticket-code p { color: var(--muted); font-size: .78rem; }
.receipt-dialog .ticket-details { font-size: .88rem; }
.receipt-dialog .ticket-header .order-tag { flex: 0 0 auto; max-width: 38%; padding: .34rem .45rem; font-size: .72rem; background: #fff1be; color: var(--ink); }
.receipt-dialog .ticket-header .order-tag.done { background: #e4edf6; }
.receipt-dialog .success-circle { background: #ffedaf; color: var(--ink); }
.student-profile { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin: 1.2rem 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 11px; background: white; }
.student-profile h2 { margin: 0 0 .2rem; font-size: 1rem; }
.student-profile p { color: var(--muted); font-size: .85rem; }
.student-profile button { margin-inline-start: auto; }
.page .page-heading h1 { letter-spacing: -.05em; }
.page .page-heading p { color: var(--muted); font-size: .96rem; }
.membership-card { background: var(--ink); }

@media (max-width: 800px) {
  .desktop-nav { gap: 1rem; }
  .header-actions { gap: .4rem; }
  .header .member-text { display: none; }
  .hero.campus-hero { min-height: 272px; margin: 18px 0 26px; }
  .campus-hero .hero-copy { padding: 22px; }
  .campus-hero .hero-actions { gap: .45rem .8rem; }
  .campus-hero .hero-actions .btn { padding-inline: .72rem; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card-image { aspect-ratio: 1.78; }
}
@media (max-width: 600px) {
  .header-inner,.container,.footer { width: calc(100% - 30px); }
  .header-inner { min-height: 59px; }
  .header .member-btn { display: none; }
  .brand-type strong { font-size: 23px; }
  .header .share-btn,.student-button { min-height: 37px; height: 37px; }
  .header .share-btn { width: 37px; }
  .hero.campus-hero { grid-template-columns: 1fr; min-height: 0; margin: 12px 0 20px; border-radius: 15px; }
  .campus-hero .hero-copy { padding: 13px 16px 12px; }
  .hero-location { font-size: .77rem; }
  .campus-hero h1 { font-size: clamp(2rem,8.6vw,3.25rem); line-height: 1.13; margin: .32rem 0 .58rem; }
  .campus-hero .hero-lead { font-size: .9rem; line-height: 1.55; }
  .campus-hero .hero-actions { margin-top: .65rem; }
  .campus-hero-photo { height: clamp(105px,30vw,164px); }
  .campus-hero-photo img { object-position: center 59%; }
  .campus-hero-photo figcaption { right: 8px; bottom: 8px; min-width: auto; padding: .28rem .43rem; border-radius: 6px; }
  .campus-hero-photo figcaption strong { font-size: .82rem; }
  .campus-hero-photo figcaption span { font-size: .66rem; }
  .discovery-heading h2 { font-size: 1.48rem; }
  .discovery-heading p { margin: .32rem 0 .63rem; font-size: .84rem; }
  .discovery-controls { grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: .45rem; }
  .discovery-controls .search-field { grid-column: 1 / -1; }
  .discovery-controls .location-select,.discovery-controls .search-field { min-height: 41px; }
  .discovery-controls .location-select select,.discovery-controls .search-field input { font-size: .88rem; }
  .discovery-refine { padding: .5rem 0; gap: .3rem; }
  .discovery-refine .categories { gap: .26rem; }
  .discovery-refine .category { padding: .24rem .46rem; min-height: 35px; font-size: .82rem; }
  .discovery-refine .category .icon { display: none; }
  .availability-control { font-size: .79rem; min-height: 35px; }
  .discovery .result-bar { margin: .12rem 0 .38rem; padding: .18rem 0; font-size: .79rem; }
  .discovery .sort-wrap select { min-height: 32px; font-size: .79rem; }
  .cards { gap: .62rem; }
  .card-image { min-height: 0; aspect-ratio: 1.42; }
  .food-card { border-radius: 11px; }
  .food-card .stock { top: 7px; left: 7px; max-width: calc(100% - 41px); font-size: .72rem; padding: .27rem .36rem; }
  .food-card .heart { width: 32px; height: 32px; top: 6px; right: 6px; }
  .food-card .heart .icon { width: 14px; height: 14px; }
  .card-body { padding: .56rem; }
  .card-context { font-size: .68rem; }
  .card-context .icon { width: 13px; height: 13px; }
  .card-body h3 { font-size: .96rem; }
  .card-desc { font-size: .76rem; }
  .pickup-time { font-size: .73rem; padding: .24rem .3rem; }
  .pickup-time .icon { flex-shrink: 0; width: 13px; height: 13px; }
  .card-bottom { align-items: flex-start; flex-direction: column; gap: .3rem; margin-top: .55rem; padding-top: .55rem; }
  .food-price { text-align: left; display: flex; flex-wrap: wrap; column-gap: .28rem; }
  .collection-guide { margin: 1.7rem 0; }
  .collection-guide .how-grid { grid-template-columns: 1fr; gap: .9rem; }
  .collection-guide .how-heading { display: block; }
  .collection-guide .how-heading p { margin-top: .4rem; }
  .listing-layout { display: block; }
  .listing-photo { min-height: 0; height: 150px; }
  .listing-body { padding: 15px; }
  .modal-backdrop { padding: 8px; }
  .modal { max-height: calc(100dvh - 16px); }
  .reservation-body,.verification-body { padding: 18px; }
  .receipt-dialog .success-circle { width: 54px; height: 54px; margin-bottom: .65rem; }
  .receipt-dialog .pickup-ticket { margin: .85rem 0; }
  .receipt-dialog .ticket-code { padding-top: .75rem; }
  .receipt-dialog .info-box { margin: .7rem 0; padding: .7rem; }
  .receipt-dialog .success-buttons { margin-top: .85rem; }
}
@media (max-width: 350px) {
  .header-inner,.container,.footer { width: calc(100% - 22px); }
  .card-context .icon { display: none; }
  .card-body { padding: .44rem; }
}
