/* Open Table sessions — the board, one session, the post form.
   Same tokens, rules and proportions as open-table.css (the live board),
   so the two read as one page. */

.gtg-ots {
  --ots-ink: var(--gtg-ink, #252b32);
  --ots-paper: var(--gtg-paper, #fffaf3);
  --ots-card: var(--gtg-white, #ffffff);
  --ots-soft: var(--gtg-surface-group, #f3e9dd);
  --ots-inset: var(--gtg-surface-inset, #fbf3ea);
  --ots-accent: var(--gtg-orange, #f26522);
  --ots-accent-dark: var(--gtg-orange-dark, #d94d12);
  --ots-yellow: var(--gtg-yellow, #f4bf45);
  --ots-muted: var(--gtg-muted, #5f564f);
  --ots-danger: var(--gtg-danger, #9f4025);
  --ots-green: #3e7a4e;
  --ots-radius: var(--gtg-radius, 18px);
  --ots-radius-sm: var(--gtg-radius-sm, 12px);
  --ots-border: 2px solid var(--ots-ink);
  --ots-shadow: 3px 3px 0 var(--ots-ink);
  color: var(--ots-ink);
  font-size: 15px;
  line-height: 1.5;
}
.gtg-ots * { box-sizing: border-box; }
.gtg-ots [hidden] { display: none !important; }

/* The page title shares the board's wider shell so its left edge lines
   up with the hotness rail below it (same rule as the live board). */
.gtg-page-hero:has(+ .gtg-page-content .gtg-ots) .gtg-shell.gtg-reading-width { max-width: 1060px; }
body.gtg-open-table-sessions-page .gtg-page-content .gtg-shell.gtg-reading-width { max-width: 1060px; }
body.gtg-open-table-sessions-page .gtg-content-card { border: 0; box-shadow: none; background: transparent; padding: 0; }

.gtg-ots__loading, .gtg-ots__empty { padding: 18px 0; color: var(--ots-muted); font-size: 14px; }
.gtg-ots__fine { font-size: 13px; color: var(--ots-muted); margin: 8px 0 0; }
.gtg-ots__error { margin: 12px 0; padding: 10px 14px; border: 2px solid var(--ots-danger); border-radius: var(--ots-radius-sm); background: #fcf0ec; color: var(--ots-danger); font-weight: 600; }
.gtg-ots__notice { margin: 0 0 16px; padding: 10px 14px; border: var(--ots-border); border-radius: var(--ots-radius-sm); background: var(--ots-yellow); font-weight: 700; font-size: 14px; }
.gtg-ots__back { margin: 0 0 14px; font-size: 14px; }
.gtg-ots__back a { color: var(--ots-ink); font-weight: 700; text-decoration: none; }

/* ---- Layout: hotness left on wide screens, exactly like the board ---- */
.gtg-ots__board { display: grid; grid-template-columns: 1fr; gap: 26px; }
.gtg-ots__main { min-width: 0; }
@media (min-width: 900px) {
  .gtg-ots__board.has-hotness { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
  .gtg-ots__board.has-hotness .gtg-ots__hotness { order: -1; position: sticky; top: 114px; }
  body.admin-bar .gtg-ots__board.has-hotness .gtg-ots__hotness { top: 146px; }
}

/* ---- Buttons ---- */
.gtg-ots__btn {
  display: inline-block; padding: 10px 18px; border: var(--ots-border); border-radius: var(--ots-radius-sm);
  background: var(--ots-card); color: var(--ots-ink); font: inherit; font-weight: 800; font-size: 14px; line-height: 1.2;
  text-decoration: none; cursor: pointer; box-shadow: var(--ots-shadow); transition: transform .12s, box-shadow .12s; white-space: nowrap;
}
.gtg-ots__btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ots-ink); color: var(--ots-ink); }
.gtg-ots__btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ots-ink); }
.gtg-ots__btn:disabled { opacity: .55; cursor: default; }
.gtg-ots__btn--primary, .gtg-ots a.gtg-ots__btn--primary { background: var(--ots-accent); color: #fff; }
.gtg-ots__btn--primary:hover:not(:disabled), .gtg-ots a.gtg-ots__btn--primary:hover { color: #fff; background: var(--ots-accent-dark); }
/* The theme's .entry-content a outranks a lone class: pin link buttons. */
.gtg-ots a.gtg-ots__btn { color: var(--ots-ink); text-decoration: none; }
.gtg-ots a.gtg-ots__head, .gtg-ots a.gtg-ots__head:hover { color: inherit; text-decoration: none; }
.gtg-ots__btn--danger { background: var(--ots-danger); color: #fff; }
.gtg-ots__btn--small { padding: 7px 13px; font-size: 13px; }
.gtg-ots__btn--block { width: 100%; margin-top: 20px; padding: 14px; font-size: 16px; }
.gtg-ots__link { border: 0; background: none; padding: 0; color: var(--ots-accent-dark); font: inherit; font-size: 13.5px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.gtg-ots__link--danger { color: var(--ots-danger); }
.gtg-ots__tag { display: inline-block; padding: 3px 10px; border: 1.5px solid var(--ots-ink); border-radius: 999px; background: var(--ots-soft); font-weight: 800; font-size: 12px; white-space: nowrap; }

/* ---- Intro box (the live "hero") ---- */
.gtg-ots__hero { margin: 0 0 16px; padding: 18px 20px; border: var(--ots-border); border-radius: var(--ots-radius); background: var(--ots-card); box-shadow: var(--ots-shadow); }
.gtg-ots__hero-lead { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.gtg-ots__hero-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: none; background: none; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 800; color: var(--ots-accent-dark); }
.gtg-ots__hero-toggle-label { text-decoration: underline; }
.gtg-ots__hero-toggle-chev { display: inline-block; transition: transform .25s ease; }
.gtg-ots__hero-toggle.is-open .gtg-ots__hero-toggle-chev { transform: rotate(180deg); }
.gtg-ots__hero-how { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.gtg-ots__hero-how > div { overflow: hidden; }
.gtg-ots__hero-how.is-open { grid-template-rows: 1fr; }
.gtg-ots__hero-steps { margin: 14px 0 0; padding: 0 0 0 20px; font-size: 14.5px; }
.gtg-ots__hero-steps li { margin: 0 0 8px; }

/* ---- Search (the live library search) ---- */
.gtg-ots__search { position: relative; margin: 0 0 8px; }
.gtg-ots__search input[type="search"] {
  width: 100%; padding: 12px 16px 12px 42px; border: var(--ots-border); border-radius: var(--ots-radius-sm); background: var(--ots-card);
  font: inherit; font-size: 15px; color: var(--ots-ink); box-shadow: var(--ots-shadow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23252b32' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center;
}
.gtg-ots__search input[type="search"]:focus { outline: 3px solid var(--ots-yellow); outline-offset: 1px; }
.gtg-ots__search-results { margin-top: 8px; border: var(--ots-border); border-radius: var(--ots-radius-sm); background: var(--ots-card); box-shadow: var(--ots-shadow); padding: 4px 12px; }
.gtg-ots__search-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.gtg-ots__search-row + .gtg-ots__search-row { border-top: 1.5px dashed rgba(37, 43, 50, .25); }
.gtg-ots__search-row img { width: 40px; height: 40px; object-fit: cover; border: 1.5px solid var(--ots-ink); border-radius: 8px; flex: none; }
.gtg-ots__search-row a { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--ots-ink); }
.gtg-ots__search-row a:hover strong { color: var(--ots-accent-dark); text-decoration: underline; }
.gtg-ots__search-row strong { font-size: 14px; line-height: 1.25; }
.gtg-ots__search-row small { font-size: 12px; color: var(--ots-muted); font-weight: 700; }
.gtg-ots__search-empty { margin: 8px 0; font-size: 14px; color: var(--ots-muted); }

/* ---- Section head + filters ---- */
.gtg-ots__section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 8px; }
.gtg-ots__section-head h2 { margin: 0; font-size: 18px; }
.gtg-ots__filters { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; }
.gtg-ots__filter-row { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.gtg-ots__filter-chip { padding: 4px 12px; border: 1.5px solid var(--ots-ink); border-radius: 999px; background: var(--ots-card); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--ots-ink); }
.gtg-ots__filter-chip.is-on { background: var(--ots-ink); color: var(--ots-paper); }
.gtg-ots__filter-check { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 12.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.gtg-ots__filter-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ots-accent); }
@media (max-width: 640px) {
  .gtg-ots__filters { flex-direction: column; gap: 8px; }
  .gtg-ots__filter-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .gtg-ots__filter-row::-webkit-scrollbar { display: none; }
  .gtg-ots__filter-chip { flex: none; white-space: nowrap; }
}

/* ---- Day groups + cards (the live "group" card) ---- */
.gtg-ots__day { margin: 0 0 18px; }
.gtg-ots__day-title { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ots-muted); }
.gtg-ots__card {
  position: relative; border: var(--ots-border); border-radius: var(--ots-radius); background: var(--ots-card); box-shadow: var(--ots-shadow);
  padding: 12px 14px; margin-bottom: 14px;
}
.gtg-ots__card.is-off { opacity: .7; }
.gtg-ots__head { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-bottom: 2px; padding-right: 56px; }
.gtg-ots__card:not(.is-staff) .gtg-ots__head { padding-right: 0; }
.gtg-ots__head:hover h3 { color: var(--ots-accent-dark); }
.gtg-ots__thumb { width: 44px; height: 44px; flex-shrink: 0; border: 2px solid var(--ots-ink); border-radius: 10px; background: var(--ots-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.gtg-ots__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtg-ots__head-text { display: flex; flex-direction: column; min-width: 0; }
.gtg-ots__head-text h3 { margin: 0; font-size: 16.5px; line-height: 1.2; }
.gtg-ots__head-text small { color: var(--ots-muted); font-weight: 700; font-size: 12px; }
.gtg-ots__card.is-expanded .gtg-ots__thumb { width: 72px; height: 72px; }
.gtg-ots__card.is-expanded .gtg-ots__head-text h3 { font-size: 20px; }

.gtg-ots__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px 2px; margin-top: 8px; border-top: 1.5px dashed var(--ots-soft); }
.gtg-ots__row-text { min-width: 0; }
.gtg-ots__state { display: block; font-size: 14px; line-height: 1.3; color: var(--ots-accent-dark); }
.gtg-ots__card.is-go .gtg-ots__state { color: var(--ots-green); }
.gtg-ots__card.is-full .gtg-ots__state, .gtg-ots__card.is-off .gtg-ots__state { color: var(--ots-muted); }
.gtg-ots__row-text small { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--ots-muted); font-weight: 700; font-size: 12px; margin-top: 4px; }
.gtg-ots__row-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Seat pips: one square per seat. Dashed = free; dashed with an inner
   mark = still needed for the minimum; host in orange. */
.gtg-ots__pips { display: inline-flex; gap: 4px; }
.gtg-ots__pip { width: 20px; height: 20px; border: 1.5px dashed var(--ots-ink); border-radius: 6px; background: var(--ots-paper); display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; color: var(--ots-ink); }
.gtg-ots__pip.is-needed { background: var(--ots-inset); box-shadow: inset 0 0 0 3px var(--ots-paper), inset 0 0 0 4px var(--ots-accent); }
.gtg-ots__pip.is-taken { background: var(--ots-yellow); border-style: solid; }
.gtg-ots__pip.is-host { background: var(--ots-accent); color: #fff; }

.gtg-ots__facts { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--ots-muted); }
.gtg-ots__blurb { margin: 8px 0 0; font-size: 14.5px; }
.gtg-ots__cats { color: var(--ots-muted); font-size: 13px; }
.gtg-ots__note { margin: 10px 0 0; padding: 10px 12px; border-left: 4px solid var(--ots-yellow); background: var(--ots-paper); font-style: italic; }
.gtg-ots__people { margin: 10px 0 0; font-size: 14px; }
.gtg-ots__another { margin: 10px 0 0; font-size: 13.5px; color: var(--ots-muted); }

/* Yana's stamp: staff-hosted sessions. */
.gtg-ots__stamp { position: absolute; top: 8px; right: 10px; width: 52px; height: auto; transform: rotate(8deg); pointer-events: none; }
.gtg-ots__card.is-expanded .gtg-ots__stamp { width: 64px; }

/* ---- Host panel ---- */
.gtg-ots__panel { margin: 14px 0 0; padding: 12px 14px; border: var(--ots-border); border-radius: var(--ots-radius-sm); background: var(--ots-paper); }
.gtg-ots__panel h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.gtg-ots__panel-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 6px 0; }
.gtg-ots__panel-row + .gtg-ots__panel-row { border-top: 1.5px dashed rgba(37, 43, 50, .2); }
.gtg-ots__panel-row label { font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; margin: 0; }
.gtg-ots__panel-row .gtg-ots__fine { margin: 0; }
.gtg-ots__panel-row--danger { background: #fcf0ec; margin: 6px -14px -12px; padding: 10px 14px; border-radius: 0 0 10px 10px; font-size: 14px; }
.gtg-ots__panel-block { padding: 8px 0 4px; }
.gtg-ots__input--inline { display: inline-block; width: auto; margin: 0; padding: 4px 8px; }

/* ---- The Hotness (unboxed, the live list) ---- */
.gtg-ots__hotness h2 { font-size: 18px; margin: 0 0 2px; }
.gtg-ots__hotness > p { margin: 0 0 8px; color: var(--ots-muted); font-size: 13px; }
.gtg-ots__hot-list { list-style: none; margin: 0; padding: 0; }
.gtg-ots__hot-list li + li { border-top: 1.5px dashed rgba(37, 43, 50, .25); }
.gtg-ots__hot-list a { display: flex; align-items: center; gap: 10px; padding: 9px 2px; text-decoration: none; color: var(--ots-ink); }
.gtg-ots__hot-list a:hover strong { color: var(--ots-accent-dark); text-decoration: underline; }
.gtg-ots__hot-rank { min-width: 22px; text-align: center; font-weight: 900; font-size: 15px; flex: none; }
.gtg-ots__hot-list li:first-child .gtg-ots__hot-rank { color: var(--ots-accent); font-size: 18px; }
.gtg-ots__hot-list img, .gtg-ots__hot-thumb { width: 40px; height: 40px; object-fit: cover; border: 1.5px solid var(--ots-ink); border-radius: 8px; background: var(--ots-soft); flex: none; display: block; }
.gtg-ots__hot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gtg-ots__hot-info strong { font-size: 13.5px; line-height: 1.25; }
.gtg-ots__hot-info small { font-size: 12px; color: var(--ots-muted); }
.gtg-ots__hot-move { flex: none; font-size: 12px; font-weight: 900; }
.gtg-ots__hot-move.is-up { color: var(--ots-green); }
.gtg-ots__hot-move.is-down { color: var(--ots-danger); }
.gtg-ots__hot-move.is-new { font-size: 10.5px; text-transform: uppercase; background: var(--ots-yellow); border: 1.5px solid var(--ots-ink); border-radius: 999px; padding: 1px 7px; }
.gtg-ots__hot-status { display: flex; align-items: center; gap: 10px; padding: 0 2px 8px 32px; font-size: 12.5px; }
.gtg-ots__hot-on { color: var(--ots-green); font-weight: 800; font-style: normal; }
.gtg-ots__hot-put { border: 0; background: none; padding: 0; color: var(--ots-accent-dark); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; text-decoration: underline; }

/* ---- Post form ---- */
.gtg-ots__form { padding: 20px; border: var(--ots-border); border-radius: var(--ots-radius); background: var(--ots-card); box-shadow: var(--ots-shadow); max-width: 720px; }
.gtg-ots__form h2 { margin: 0 0 6px; }
.gtg-ots__intro { margin: 0; color: var(--ots-muted); }
.gtg-ots__label { display: block; margin: 16px 0 0; font-weight: 800; font-size: 14px; }
.gtg-ots__label small { font-weight: 500; color: var(--ots-muted); }
.gtg-ots__input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 2px solid var(--ots-ink); border-radius: var(--ots-radius-sm); background: var(--ots-paper); font: inherit; color: var(--ots-ink); }
.gtg-ots__input:focus { outline: 3px solid var(--ots-yellow); outline-offset: 1px; }
.gtg-ots__row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.gtg-ots__check { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; font-weight: 600; }
.gtg-ots__results { display: grid; gap: 6px; margin-top: 8px; }
.gtg-ots__result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 2px solid var(--ots-ink); border-radius: var(--ots-radius-sm); background: var(--ots-card); font: inherit; text-align: left; cursor: pointer; }
.gtg-ots__result:hover { background: var(--ots-yellow); }
.gtg-ots__result img, .gtg-ots__picked img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.gtg-ots__result small { color: var(--ots-muted); font-weight: 500; }
.gtg-ots__picked { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px; border: 2px solid var(--ots-ink); border-radius: var(--ots-radius-sm); background: var(--ots-yellow); }
.gtg-ots__picked small { color: var(--ots-ink); opacity: .8; }
.gtg-ots__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gtg-ots__chip { padding: 6px 12px; border: 1.5px solid var(--ots-ink); border-radius: 999px; background: var(--ots-card); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.gtg-ots__chip.is-on { background: var(--ots-ink); color: var(--ots-paper); }

@media (max-width: 560px) {
  .gtg-ots__row { flex-direction: column; align-items: stretch; }
  .gtg-ots__row-cta { justify-content: flex-end; }
  .gtg-ots__row3 { grid-template-columns: 1fr; }
  .gtg-ots__section-head .gtg-ots__btn { width: 100%; text-align: center; }
  .gtg-ots__stamp { width: 44px; }
  .gtg-ots__facts-inline { display: none; }
}

/* Bring-your-own: the host brings their copy of a game we don't stock. */
.gtg-ots__byo { font-weight: 800; color: var(--ots-ink); }
.gtg-ots__head-text small .gtg-ots__byo { padding: 1px 7px; border: 1.5px solid var(--ots-ink); border-radius: 999px; background: var(--ots-yellow); font-size: 11px; white-space: nowrap; }
