/* desk_wide.css: the desktop layout (Marcus 2026-11-08: "we need to have it formatted for the desktop and formatted
   for the actual mobile ... I want this to be commercial"). Every rule sits behind min-width 1100px, so phones never
   see it. One content width for every room, the header lined up with it, and the card lists laid out as grids. */
:root { --dw: 1320px; --dw-pad: 40px; }

@media (min-width: 1100px) {
  /* one content width on every room */
  body .room-main,
  body .wrap,
  body .hub-wrap,
  body .ld-wrap {
    max-width: var(--dw) !important;
    width: calc(100% - 2 * var(--dw-pad)) !important;
    margin-left: auto !important; margin-right: auto !important;
    padding-left: 0 !important; padding-right: 0 !important;
    box-sizing: border-box;
  }
  /* the top bar spans the window; its brand and nav line up with the content edges */
  body .room-top {
    padding-left: max(var(--dw-pad), calc((100% - var(--dw)) / 2)) !important;
    padding-right: max(var(--dw-pad), calc((100% - var(--dw)) / 2)) !important;
  }
  body .rc-wrap { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
  body .room-head { margin-bottom: 1.5rem; }
  body .room-head h1 { font-size: 2.5rem !important; letter-spacing: -.01em; }

  /* card lists become grids; anything in the list that is not a card (notes, empty states, "more") spans the row */
  #scout-games, #pc-list, #prep-plays, #inj-list {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start;
  }
  #scout-games > :not(article), #pc-list > :not(article), #prep-plays > :not(article):not(.pick-card):not(.pc) { grid-column: 1 / -1; }
  #scout-games > article, #pc-list > article, #prep-plays > article, #inj-list > * { margin: 0 !important; min-width: 0; }
  #gc-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; }
  #gc-grid > * { margin: 0 !important; min-width: 0; }
  #ld-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
  #ld-grid > * { margin: 0 !important; min-width: 0; }
  #st-body { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
  #st-body > .st-conf { grid-column: 1 / -1; margin-top: .6rem; }
  #st-body > * { min-width: 0; }
  #nw-body { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
  #nw-body > * { margin: 0 !important; min-width: 0; }
  .hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  /* the record reads as text: two columns of sections instead of one very long line */
  body[data-room="record"] .rc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
}

@media (min-width: 1560px) {
  #scout-games, #pc-list, #prep-plays { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #gc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  #inj-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- phones (Marcus's screenshots 2026-11-08) ---- */
@media (max-width: 719px) {
  /* bottom menu: every item icon over word, the same on every room (a leftover row rule laid some sideways) */
  .room-dock a, .hub-room-dock a, .room-dock .dock-more-btn, .hub-room-dock .dock-more-btn {
    display: flex !important; flex-direction: column !important; gap: .18rem !important; white-space: nowrap; min-width: 0; overflow: hidden;
    font-size: 10.5px !important; letter-spacing: .06em !important; padding: .3rem .05rem !important; min-height: 2.9rem !important;
  }
  .room-dock a i, .hub-room-dock a i, .room-dock .dock-more-btn i, .hub-room-dock .dock-more-btn i { font-size: 1.05rem !important; margin: 0 !important; }
  /* back to top: smaller and see-through, so it stops covering text */
  #room-top-fab { width: 2.2rem !important; height: 2.2rem !important; font-size: .9rem !important; right: .5rem !important;
    opacity: .62; background: rgba(12,14,18,.72) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  #room-top-fab:active { opacity: 1; }
  /* the 3-D stage's how-to line sat on top of the field; the buttons above it already say what to do */
  .gc-c3-hint { display: none !important; }
}

/* ---- one top bar on every room (desk_nav.js writes the menu) ---- */
header.room-top.dn-added { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dn-folded .tb-banner, .dn-folded .nav a { display: none !important; }
.dn-folded { padding-top: .6rem; }
header.room-top .room-nav a { white-space: nowrap; }
@media (max-width: 719px) { header.room-top .room-nav { display: none !important; } }
@media (min-width: 1100px) {
  header.room-top .room-nav { flex-wrap: nowrap; gap: .2rem; }
  header.room-top .room-nav a { font-size: .86rem !important; letter-spacing: .04em; padding: .45rem .7rem !important; }
  /* the phone-alert ask is a small card in the corner on a desktop, not a bar across the top of every page */
  #tab-push-prompt { position: fixed !important; top: auto !important; left: auto !important; right: 24px !important; bottom: 24px !important;
    width: 380px; border: 1px solid rgba(226,187,102,.35) !important; border-left: 3px solid #C9A24D !important; border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0,0,0,.5); z-index: 9000 !important; padding: .8rem .9rem !important; }
}
