/* ==========================================================================
   assets/css/lite-tabs.css — Batch 2 (page shell)
   Loaded on every $lite page, AFTER assets/css/lite.css (batch 1's shared
   system — tokens, .lite-page, .btn-*, .island-footer, etc.). This file only
   adds what lite.css doesn't cover:
     1. the top bar (partials/header.php's existing <header class="nav"> markup,
        reskinned to the cream/ink look — batch 2 owns header.php/footer.php)
     2. the bottom tab bar markup batch 2 prints into .island-footer
     3. the guest sign-up sheet (assets/js/lite-guest-gate.js opens this)
   Never redefine lite.css's tokens here — if a value needs to change, that's
   batch 1's file.
   ========================================================================== */

/* ---------- lite.css bug workaround: `body.lite a{color:inherit}` (tag selector,
   specificity 0,1,2) beats `.btn-ink`/`.btn-blue`'s `color:#fff` (0,1,0) whenever
   those classes are used on an <a> (not <button>) — e.g. "Pick for me" below. Flagged
   to batch 1 to fix at the source; this keeps every lite page correct meanwhile. */
body.lite a.btn-ink, body.lite a.btn-blue{ color:#fff; }
/* Same bug, different shape: ANY single-class legacy button/link component (brutal.css,
   one class only) loses its own `color` to that blanket rule too (class-tier ties at 1,
   lite.css's extra tag selectors win the type tier) — e.g. the "Confirm your email" banner's
   Resend button was rendering invisible (ink text on ink background). Restoring the ones
   found so far; flagged to batch 1 to drop the blanket color:inherit at the source. */
body.lite .verify-banner__btn{ color:var(--paper,#ffffff); }

/* ---------- accessibility: skip link (brutal.css's version isn't loaded on lite pages) ---------- */
body.lite .skip-link{position:absolute;left:-9999px;top:0;z-index:2000;background:var(--lime);color:var(--ink);
  padding:10px 16px;font-weight:700;border-radius:0 0 10px 0;text-decoration:none;}
body.lite .skip-link:focus-visible,body.lite .skip-link:focus{left:0;outline:3px solid var(--blue);outline-offset:2px;}

/* ---------- top bar ---------- */
body.lite header.nav{
  background:var(--paper); border-bottom:1px solid var(--line); box-shadow:none;
}
body.lite header.nav .nav__inner{ max-width:480px; margin:0 auto; padding:10px 16px; }
body.lite .brandmark{ filter:drop-shadow(3px 3px 0 var(--ink)); }
body.lite .nav__city{ color:var(--ink); font-weight:700; }
body.lite .nav__icon, body.lite .nav__bell{ color:var(--ink) !important; }
body.lite .nav__bell span{ background:var(--red) !important; color:#fff !important; }
body.lite .btn.btn--ghost{ background:#fff; color:var(--ink); border:1.5px solid var(--ink); border-radius:var(--r-ctl); }
body.lite .btn.btn--blue{ background:var(--yellow); color:var(--ink); border:var(--bd); box-shadow:var(--sh-sm); border-radius:var(--r-ctl); font-weight:800; }
body.lite .btn.btn--blue:hover{ background:var(--yellow); }
body.lite .flash-wrap{ max-width:480px; margin:0 auto; padding:0 16px; }
@media (min-width:481px){
  body.lite header.nav{ background:var(--paper); box-shadow:0 0 0 1px var(--line); }
}

/* ---------- bottom tab bar: Profile · Explore · Clips · Pick · Plan ----------
   Markup + "active" class printed by partials/footer.php into lite.css's
   .island-footer (position/blur/active-pill/padding already defined there —
   .lite-page's default bottom padding already reserves room for it; pages that
   hide the bar use lite.css's .lite-page.no-footer instead). */

/* ---------- v128 (fixA): dark tab bar over the video on Clips — the design
   keeps the bar visible there, just restyled for a black background instead
   of hidden. clips.php sets body class "clips-lite" (and now leaves the bar
   on by not setting $hide_mobilenav); only the colours change here. ---------- */
body.clips-lite .island-footer{
  background:rgba(10,9,8,.72); border-top:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  /* brutal.css's full-screen video feed (.reels-feed) is z-index:2010, fixed,
     inset:0 — it was drawn over the bar (DOM-present but invisible) when the
     page hid the bar outright. Now that the bar renders here, it needs to sit
     above the feed (but below .reels-top/.reels-sheet-* at 2030+) to be seen
     and stay clickable. */
  z-index:2020;
}
body.clips-lite .island-footer a{ color:rgba(255,255,255,.72); }
body.clips-lite .island-footer a.active{ color:#fff; }
body.clips-lite .island-footer a.active i{ background:var(--yellow); border:var(--bd); box-shadow:var(--sh-sm); color:var(--ink); }

/* ---------- v128 (fixA): slim "confirm your email" notice (inc/account.php's
   account_banner_lite_html) — Profile(own)/Plan/Settings only, dismissable for
   the session. No global top nav on lite pages anymore, so this sits right
   under the flash messages, above the page's own content/title header. ---------- */
.lite-verify-banner{
  box-sizing:border-box; max-width:480px; margin:10px auto 0; padding:10px 12px;
  display:flex; align-items:center; gap:10px;
  background:#fff; border:1px solid var(--line,#e6e2d8);
  box-shadow:none; border-radius:var(--r-card,16px);
  font:600 13px/1.35 var(--font-ui,'DM Sans',sans-serif); color:var(--ink,#141518);
}
.lite-verify-banner > i{ font-size:18px; flex:0 0 auto; }
.lite-verify-banner > span{ flex:1; min-width:0; }
.lite-verify-banner__form{ flex:0 0 auto; margin:0; }
.lite-verify-banner__resend{
  background:none; border:0; padding:0; margin:0; cursor:pointer;
  font:700 13px/1 var(--font-ui,'DM Sans',sans-serif); color:var(--blue,#2b52ff); text-decoration:underline;
}
.lite-verify-banner__x{
  background:none; border:0; padding:4px; margin:0; flex:0 0 auto; cursor:pointer;
  color:var(--muted,#6b7076); display:flex; align-items:center; justify-content:center;
}
.lite-verify-banner__x:focus-visible, .lite-verify-banner__resend:focus-visible{
  outline:2px solid var(--blue,#2b52ff); outline-offset:2px;
}

/* ---------- generic building blocks pages in this batch use ---------- */
body.lite .lite-empty{ text-align:center; padding:48px 20px; color:var(--muted); }
body.lite .lite-empty i{ font-size:40px; color:var(--muted-2); display:block; margin-bottom:10px; }

/* ---------- guest sign-up sheet (assets/js/lite-guest-gate.js) ---------- */
.lite-signup-backdrop{
  position:fixed; inset:0; background:rgba(20,21,24,.5); z-index:900; display:flex;
  align-items:flex-end; justify-content:center; opacity:0; transition:opacity .15s;
}
.lite-signup-backdrop.in{ opacity:1; }
.lite-signup-backdrop[hidden]{ display:none; }
.lite-signup-sheet{
  width:100%; max-width:480px; background:var(--paper,#ffffff); border-radius:20px 20px 0 0;
  border:var(--bd,2px solid #141518); border-bottom:0; padding:10px 20px calc(24px + env(safe-area-inset-bottom,0));
  font-family:var(--font-ui,'DM Sans',sans-serif); color:var(--ink,#141518); text-align:center;
  transform:translateY(16px); transition:transform .18s;
}
.lite-signup-backdrop.in .lite-signup-sheet{ transform:translateY(0); }
.lite-signup-sheet__grab{ width:40px; height:5px; border-radius:3px; background:var(--line,rgba(20,21,24,.12)); margin:0 auto 16px; }
.lite-signup-sheet .logo-stamp{ display:flex; justify-content:center; margin-bottom:10px; }
.lite-signup-sheet .logo-stamp img{ width:48px; height:48px; border-radius:12px; border:var(--bd,2px solid #141518);
  box-shadow:var(--sh-sm,2px 2px 0 #141518); background:var(--yellow,#ffd23f); padding:7px; transform:rotate(-4deg); }
.lite-signup-sheet h2{ font:800 21px/1.2 var(--font-display,'Bricolage Grotesque',sans-serif); margin:4px 0 6px; }
.lite-signup-sheet p{ margin:0 0 18px; color:var(--muted,#6b7076); font-size:14px; }
.lite-signup-sheet .btn{ width:100%; margin-bottom:10px; }
.lite-signup-sheet .btn-social svg{ width:18px; height:18px; }
.lite-signup-sheet__close{
  position:absolute; top:10px; right:14px; width:32px; height:32px; border-radius:50%;
  background:none; border:0; color:var(--muted,#6b7076); font-size:18px; display:flex;
  align-items:center; justify-content:center; cursor:pointer;
}

/* ==========================================================================
   plan.php — "My Plans": rebuilt against the strict rules — moved to
   assets/css/page-plan.css (builder B2, see PAGE-BUILDER.md report).
   Deleted here on purpose; do not re-add.
   .stat-tile / .stat-num / .stat-label stay below — my-restaurants.php
   also uses them (its own assets/css/lite-tools.css only adds a couple of
   properties on top of these, it depends on this base rule).
   ========================================================================== */
.stat-tile{flex:1;background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);padding:12px 10px;display:flex;flex-direction:column;gap:2px;}
.stat-num{font:800 20px/1 var(--font-display);}
.stat-label{font:700 11px/1 var(--font-ui);color:var(--muted);}

/* ==========================================================================
   COOKIE NOTICE — guests-only bottom-sheet accept/reject (gap-list #11,
   owner-actions #7, launch/legal/gap-list.md). Loaded on every $lite page
   (same as the guest sign-up sheet above) since partials/footer.php can
   render it on any of them. Sits just above .island-footer (height
   66px + safe-area, z-index 300), never over it. One line + 2 buttons.
   ========================================================================== */
.cookie-notice{position:fixed;left:0;right:0;bottom:calc(66px + env(safe-area-inset-bottom,0px) + 10px);
  max-width:448px;margin:0 auto;z-index:290;background:var(--card,#fffdf6);border:var(--bd,2px solid #141518);
  border-radius:var(--r-card,16px);box-shadow:var(--sh,4px 4px 0 #141518);padding:12px 14px;
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.cookie-notice p{flex:1 1 180px;margin:0;font-size:12.5px;line-height:1.4;color:var(--ink-soft,#3a352d);min-width:0;}
.cookie-notice p a{color:var(--blue,#2b52ff);font-weight:700;}
.cookie-notice__actions{display:flex;gap:8px;flex:0 0 auto;}
.cookie-notice .btn--sm{height:36px !important;padding:0 12px !important;font-size:12.5px !important;}
@media (max-width:380px){.cookie-notice{flex-direction:column;align-items:stretch;}
  .cookie-notice__actions{justify-content:flex-end;}}
