/* site.css — FoxCon site chrome. Loads AFTER viewer_styles.css (which is your
   game_schedule.html <style>, verbatim) and overrides where the website needs to
   differ from the local viewer: the login gate, sticky controls, a horizontal-
   scroll wrapper for the wide grid, and mobile tweaks. Your visual changes live
   in the viewer and flow in via viewer_styles.css; this file is site-only. */

* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

.wrap { max-width: 1200px; margin: 0 auto; }

/* top bar with log-out */
.topbar { display: flex; justify-content: flex-end; align-items: center; margin: 0 0 4px; }
.logout { font-size: 12px; color: #6b7480; text-decoration: none; border: 1px solid #d7dce3;
          border-radius: 6px; padding: 4px 10px; }
.logout:hover { background: #eef1f5; color: #3a4456; }

/* ---- controls: view toggle + Find-me picker (sticky together) ---- */
.controls { position: sticky; top: 0; z-index: 20; background: #fbfcfe;
            padding: 8px 0 10px; border-bottom: 1px solid #eceff3; }
.viewtoggle { display: inline-flex; background: #e9edf3; border-radius: 10px; padding: 3px; margin: 0 0 8px; }
.viewtoggle button { appearance: none; border: none; background: transparent; font: inherit; font-size: 13px;
                     font-weight: 600; color: #6b7480; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.viewtoggle button[aria-selected="true"] { background: #fff; color: #2f3a4a; box-shadow: 0 1px 2px rgba(0,0,0,.1); }

/* Mobile-only sub-toggle: Everyone vs My games */
.subtoggle { display: inline-flex; margin: 9px 0 2px; border: 1px solid #d7dce3; border-radius: 8px; overflow: hidden; }
.subtoggle button { appearance: none; border: none; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600;
                    color: #6b7480; padding: 6px 12px; cursor: pointer; }
.subtoggle button + button { border-left: 1px solid #d7dce3; }
.subtoggle button[aria-selected="true"] { background: #2f3a4a; color: #fff; }
body.mode-desktop .subtoggle { display: none; }   /* the grid always shows everyone */

#hl-control { padding: 0; }

.tablescroll { overflow-x: auto; -webkit-overflow-scrolling: touch;
               border: 1px solid #6b7585; border-radius: 4px; }
.tablescroll table { min-width: 860px; border: none; }
.tablescroll th { position: sticky; top: 0; }

/* ---- view switching: one mode visible at a time (manual toggle) ---- */
body.mode-desktop #cards-wrap { display: none; }
body.mode-mobile  #grid-wrap  { display: none; }

/* Day headers are the LARGEST text in the schedule so days block clearly. */
.dayhdr td { font-size: 16.5px; }        /* desktop grid day band (overrides viewer_styles) */

/* Grid: repeated (thinner) column headers before each day + a small gap above each. */
.gridspacer td { height: 18px; border: none; background: #fbfcfe; padding: 0; }
.gridhead th { padding: 4px 11px; font-size: 11px; }

/* ---- mobile cards: the SAME grid cells, reflowed vertically ---- */
#cards-wrap { margin-top: 4px; }
.cday { font-weight: 800; font-size: 19px; letter-spacing: .01em; margin: 22px 0 9px;
        padding: 9px 13px; border-radius: 7px; background: #eef1f5; color: #1f2733; }
.cday.wed { background: #d8e9fb; } .cday.thu { background: #d6f1de; }
.cday.fri { background: #fbecc6; } .cday.sat { background: #f8d9ea; }
.cday.sun { background: #e6d9fb; } .cday.mon { background: #d4eef3; }
.rcard { background: #fff; border: 1px solid #dfe4ec; border-left: 4px solid #b8c0cd;
         border-radius: 8px; padding: 9px 12px; margin: 0 0 8px; box-shadow: 0 1px 2px rgba(20,30,50,.04); }
.rcard.wed { border-left-color: #7fb0e0; } .rcard.thu { border-left-color: #63c088; }
.rcard.fri { border-left-color: #d9b45a; } .rcard.sat { border-left-color: #d67aa8; }
.rcard.sun { border-left-color: #a07ad0; } .rcard.mon { border-left-color: #5bb6c6; }
.rcard { position: relative; }
.rcard-time { font-size: 12.5px; font-weight: 700; color: #5b6472; font-variant-numeric: tabular-nums; margin: 0 0 3px; }
.rcard-title { font-weight: 800; font-size: 15.5px; color: #1f2733; margin: 0 0 2px; }
.rcard-b { font-size: 14.5px; color: #1f2733; }
/* injected cell content carries viewer_styles classes (.marquee, .gm, .players,
   .leader, .pw-tag, .span, .brkbox, .dinnerbox); rendered verbatim, just enlarged. */
.rcard-b .marquee { font-weight: 800; font-size: 16.5px; }
.rcard-b .players, .rcard-b .leader { display: block; margin-top: 5px; font-size: 13.5px; color: #33404f; }
.rcard-b .players .ph { color: #9aa3af; }
.rcard-room { font-weight: 700; font-size: 14px; color: #3b5bdb; white-space: nowrap; }
/* card-type tints */
.rcard.meal-card { background: #faf7ff; border-left-color: #a07ad0; }
.rcard.meal-card .span { font-size: 15px; }
.rcard.free-card { background: #f6f8fb; border-left-color: #b8c0cd; }
.rcard.prep-card { background: #fff6ea; border-left-color: #e8a94b; }
.rcard.prep-card .mp-time { color: #9a6a1e; font-size: 13px; }

/* ---- login gate (login.html loads THIS file only) ---- */
#gate { position: fixed; inset: 0; background: #f4f6fb; display: flex;
        align-items: center; justify-content: center; z-index: 100; }
#gate .box { background: #fff; border: 1px solid #e6e9ef; border-radius: 12px;
             padding: 28px 30px; width: min(360px, 90vw);
             box-shadow: 0 8px 30px rgba(20,30,50,.08); text-align: center; }
#gate h2 { margin: 0 0 4px; font-size: 20px; }
#gate p { margin: 0 0 16px; color: #6b7480; font-size: 13px; }
#gate input { width: 100%; font-size: 16px; padding: 10px 12px; border: 1px solid #c3cad4;
              border-radius: 8px; margin-bottom: 10px; }
#gate button { width: 100%; font-size: 15px; font-weight: 600; padding: 10px; border: none;
               border-radius: 8px; background: #2f3a4a; color: #fff; cursor: pointer; }
#gate .err { color: #c0392b; font-size: 12px; min-height: 16px; margin-top: 8px; }

/* ---- site nav (Schedule / Guests) — shown on every page ---- */
.sitenav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.navlinks { display: flex; gap: 6px; }
.navlink { font-size: 13px; font-weight: 600; color: #6b7480; text-decoration: none; padding: 6px 12px; border-radius: 8px; }
.navlink:hover { background: #eef1f5; color: #3a4456; }
.navlink.active { background: #2f3a4a; color: #fff; }

/* schedule header: link to the Airbnb listing */
.listing-link { color: #3b5bdb; text-decoration: none; font-weight: 600; white-space: nowrap; }
.listing-link:hover { text-decoration: underline; }

/* Game-name links on the schedule (grid + mobile). At rest they look identical to the
   surrounding title (no color/underline). On hover: a muted underline fades in + a faux-
   bold weight bump (via text-shadow, so no reflow) to signal clickable — never blue. */
.glink, .plink { color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: transparent;
         text-decoration-thickness: 1.5px; text-underline-offset: 3px;
         transition: text-decoration-color .12s ease, text-shadow .12s ease; }
.glink:hover, .glink:focus-visible, .plink:hover, .plink:focus-visible {
  text-decoration-color: rgba(31, 39, 51, .45);
  text-shadow: .3px 0 0 currentColor, -.3px 0 0 currentColor;
}

/* ---- guests page (one responsive layout, same on desktop + mobile) ---- */
.gtotal { display: block; font-size: 18px; font-weight: 800; color: #1f2733; margin: 0 0 3px; }
.gsection { font-size: 16px; font-weight: 800; color: #2f3a4a; margin: 26px 0 10px; }
.gcards { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 640px; }   /* strictly stacked */
.gcard { background: #fff; border: 1px solid #dfe4ec; border-left: 4px solid #7fb0e0; border-radius: 10px;
         padding: 12px 14px; box-shadow: 0 1px 2px rgba(20,30,50,.04); scroll-margin-top: 14px; }
.gcard.staff { border-left-color: #d9b45a; }
.gcard:target { border-left-color: #e03131; box-shadow: 0 0 0 2px rgba(224,49,49,.15); }  /* linked party glows */
.gtitle { font-size: 16px; font-weight: 800; color: #1f2733; }
.gkids { font-size: 13px; color: #46505e; margin-top: 3px; }
/* name | email as two aligned columns (display:contents lets every row share the grid) */
.gadults { margin-top: 9px; padding-top: 9px; border-top: 1px solid #eceff3;
           display: grid; grid-template-columns: minmax(64px, auto) 1fr; gap: 5px 14px; }
.gadult { display: contents; }
.gname { font-weight: 700; font-size: 13.5px; color: #2f3a4a; }
.gname.grole { font-weight: 600; color: #8a6d2e; }
.gemail { font-size: 13px; color: #6b7480; word-break: break-word; }

/* ---- games page ---- */
.games-index { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 4px 0 22px;
               padding-bottom: 16px; border-bottom: 1px solid #eceff3; }
.games-index a { font-size: 12.5px; color: #3b5bdb; text-decoration: none; }
.games-index a:hover { text-decoration: underline; }
.gamelist { max-width: 780px; }        /* readable line length for prose */
.gamecard { background: #fff; border: 1px solid #dfe4ec; border-left: 4px solid #7fb0e0;
            border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; scroll-margin-top: 14px; }
.gamecard:target { border-left-color: #e03131; box-shadow: 0 0 0 2px rgba(224,49,49,.15); }  /* linked game glows */
.game-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.game-title { font-size: 16px; font-weight: 800; color: #1f2733; text-decoration: none; line-height: 1.3; }
.game-title:hover { text-decoration: underline; }
.game-copy { flex: 0 0 auto; font: inherit; font-size: 11.5px; color: #6b7480; cursor: pointer;
             border: 1px solid #d7dce3; border-radius: 6px; padding: 3px 8px; white-space: nowrap; background: #fff; }
.game-copy:hover { background: #eef1f5; color: #3a4456; }
.game-meta { font-size: 12.5px; color: #6b7480; margin: 5px 0 8px; }
.game-blurb { font-size: 14px; color: #2f3a4a; line-height: 1.5; white-space: pre-line; }
.game-enjoy { font-size: 13.5px; color: #43506a; font-style: italic; margin-top: 8px; }
.game-extra { font-size: 12.5px; color: #6b7480; margin-top: 8px; }
.game-episodes { margin-top: 10px; padding-top: 9px; border-top: 1px solid #eceff3; }
.game-ep { font-size: 13px; color: #33404f; margin: 3px 0; }
.game-ep-label { font-weight: 800; color: #1f2733; }
.game-ep-when { font-weight: 600; color: #6b7480; font-variant-numeric: tabular-nums; }

/* mobile */
@media (max-width: 640px) {
  body { padding: 14px 12px 50px; }
}
