/* Game Finder's styles. Day look by default (the owner's choice), whatever the phone prefers; the Night look is :root[data-theme="night"]. Every colour goes through a variable. */
:root { color-scheme: light; --bg: #ffffff; --page: #e9eef5; --fg: #14213d; --link: #0a4fd6; --muted: #4a5568; --line: #c5cbd6; --edge: #667790; --surface: #ffffff; --gold: #f2b705; --gold-hover: #ffc61f; --gold-fg: #14213d;
        --error: #b00020; --error-bg: #fdecef; --focus: #0b5fff; --radius: 0.75rem; --hover: #eef1f6; --pick-on: #14213d; --pick-on-fg: #ffffff; --filled-bg: #e3e8f0; --ok-bg: #dff3e4; --ok-fg: #14532d;
        --warn-bg: #fff3cd; --passed-bg: #e5e7eb; --mark: #ffd84d; --shadow: rgba(20, 33, 61, 0.15); --kind-host: #0f6b3a; --kind-travel: #1f5fbf; --kind-either: #6b3fa0; --kind-tournament: #8a3b00; }
/* The Night look: the same names, other values (text 4.5:1 or more, borders 3:1 or more against the page and the cards). Set by scripts as data-theme="night" on <html>; Day is the default. */
:root[data-theme="night"] { color-scheme: dark; --bg: #0d1626; --page: #0d1626; --fg: #e6ecf7; --link: #8db8ff; --muted: #a9b6cc; --line: #2b3a55; --edge: #7d8ea9; --surface: #16233a; --gold: #f2b705; --gold-hover: #ffd04a;
        --gold-fg: #14213d; --error: #ff8a9b; --error-bg: #3a1620; --focus: #8db8ff; --hover: #1f2f4a; --pick-on: #8db8ff; --pick-on-fg: #0d1626; --filled-bg: #111b2e; --ok-bg: #12331f; --ok-fg: #9fe0b4;
        --warn-bg: #3d3210; --passed-bg: #2a3347; --mark: #7a5c00; --shadow: rgba(0, 0, 0, 0.5); --kind-host: #7fd9a2; --kind-travel: #8db8ff; --kind-either: #d9b8ff; --kind-tournament: #ffb27a; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, sans-serif; }
/* A short page still fills the window, so the footer and the bottom navigation sit at its foot; width 100% because an auto-margin flex item would shrink to its content. */
main { flex: 1 0 auto; width: 100%; box-sizing: border-box; max-width: 40rem; margin: 0 auto; padding: 1.5rem 1rem; }
a { color: var(--link); }

[hidden] { display: none !important; }
.gf-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Header */
.gf-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 1rem; border-bottom: 1px solid var(--line); }
.gf-site-name { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); font-weight: 700; text-decoration: none; }
.gf-header-end { display: flex; align-items: center; }
.gf-menu { position: relative; }
.gf-menu summary { display: flex; align-items: center; min-height: 44px; padding: 0 0.75rem; cursor: pointer; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); }
.gf-menu summary::-webkit-details-marker { display: none; }
.gf-menu-list { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 12rem; margin-top: 0.25rem; padding: 0.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 20px var(--shadow); }
.gf-menu-list a, .gf-menu-list button { display: flex; align-items: center; box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 0.75rem; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; text-decoration: none; cursor: pointer; border-radius: 0.5rem; }
.gf-menu-list a:hover, .gf-menu-list button:hover { background: var(--hover); }

/* Buttons */
.gf-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.gf-btn-primary { background: var(--gold); border-color: var(--gold); color: var(--gold-fg); }
.gf-btn-primary:hover { background: var(--gold-hover); }
.gf-btn-quiet { border-color: transparent; color: var(--link); }
.gf-btn:disabled { opacity: 0.6; cursor: default; }
.gf-link-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }

/* The sign-in sheet: a bottom sheet on phones, a centred card from 600px */
.gf-sheet { box-sizing: border-box; width: 100%; max-width: none; max-height: 90vh; margin: auto 0 0; padding: 1rem 1rem 1.5rem; overflow-y: auto; border: 0; border-radius: 1.25rem 1.25rem 0 0; background: var(--surface); color: var(--fg); }
.gf-sheet::backdrop { background: rgba(20, 33, 61, 0.55); }
.gf-sheet-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.gf-sheet h2 { margin: 0.25rem 0 0.5rem; font-size: 1.35rem; line-height: 1.25; }
.gf-sheet h3 { margin: 0.5rem 0; font-size: 1.1rem; }
.gf-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: none; color: var(--fg); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.gf-form { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; margin: 0.75rem 0; }
.gf-form > .gf-link-btn { align-self: flex-start; }
.gf-field { display: flex; flex-direction: column; gap: 0.25rem; }
.gf-field label:not(.gf-check) { font-weight: 600; }
.gf-input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 0.75rem; border: 1px solid var(--edge); border-radius: 0.5rem; background: var(--surface); color: var(--fg); font: inherit; }
.gf-input[aria-invalid="true"] { border-color: var(--error); }
.gf-check { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.gf-check input { flex: none; width: 1.5rem; height: 1.5rem; }
.gf-muted { color: var(--muted); }
.gf-small { font-size: 0.875rem; margin: 0.25rem 0; }
.gf-error-box { margin: 0.5rem 0; padding: 0.75rem; border: 1px solid var(--error); border-radius: 0.5rem; background: var(--error-bg); color: var(--error); }
.gf-field-error { margin: 0; color: var(--error); font-size: 0.9rem; }
.gf-altcha-host { position: absolute; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 600px) {
  .gf-sheet { max-width: 28rem; margin: auto; border-radius: 1.25rem; padding: 1.25rem 1.5rem 1.75rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .gf-sheet[open] { animation: gf-rise 0.18s ease-out; }
  @keyframes gf-rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
}

/* Form pages: the team profile, the post form, "Your posts" and a post's own page */
.gf-page-form { display: flex; flex-direction: column; gap: 1.1rem; margin: 1rem 0; }
/* Date and time boxes: iOS Safari gives them an intrinsic minimum width and ignores the grid track, so an empty date box ran past its card and Start time and End time overlapped. They take the width of their cell like the text boxes. */
.gf-postpage .gf-input[type="date"], .gf-postpage .gf-input[type="time"] { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.gf-postpage .gf-input[type="date"]::-webkit-date-and-time-value, .gf-postpage .gf-input[type="time"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.gf-page-form .gf-input[type="date"], .gf-page-form .gf-input[type="time"] { min-width: 0; }
/* An empty date or time box on iOS shows nothing (and ignores placeholder): the wrapper's hint stands in, only while the box is empty (`data-empty`, kept by the page script; without script it is never set by the server, so no hint). */
:root { --gf-dt-hint: none; }
@supports (-webkit-touch-callout: none) { :root { --gf-dt-hint: block; } }
.gf-dt { position: relative; display: block; min-width: 0; max-width: 100%; }
.gf-dt[data-empty]::before { content: attr(data-hint); display: var(--gf-dt-hint); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); max-width: calc(100% - 20px); overflow: hidden; white-space: nowrap; color: var(--gf-muted, var(--muted)); pointer-events: none; z-index: 1; }
.gf-field > .gf-dt { width: 100%; }
.gf-textarea { min-height: 6rem; padding: 0.6rem 0.75rem; resize: vertical; }
select.gf-input { padding-right: 0.5rem; }
.gf-label { font-weight: 600; }
.gf-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.gf-fieldset legend { padding: 0; font-weight: 600; }
.gf-section h2, .gf-h2-section { margin: 0.5rem 0; font-size: 1.2rem; }
.gf-h2-section { margin-top: 2rem; }
.gf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.gf-reason { flex-basis: 100%; margin: 0; color: var(--error); }
.gf-btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.gf-btn-danger { border-color: var(--error); color: var(--error); }
input[type="file"].gf-sr-only:focus-visible + .gf-btn { outline: 3px solid var(--focus); outline-offset: 2px; }
.gf-btn { cursor: pointer; text-decoration: none; }

.gf-badge { display: inline-flex; flex: none; align-items: center; justify-content: center; box-sizing: border-box; width: 3rem; height: 3rem; overflow: hidden; border-radius: 0.6rem; background: var(--badge, #4a5568); color: #ffffff; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.gf-badge img { display: block; width: 100%; height: 100%; object-fit: contain; background: #ffffff; }
.gf-badge-lg { width: 4.5rem; height: 4.5rem; font-size: 1.4rem; }
.gf-logo-row { display: flex; align-items: center; gap: 1rem; }
.gf-logo-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.gf-card { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; box-sizing: border-box; margin: 0.75rem 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gf-card h2, .gf-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.gf-card p { margin: 0; }
.gf-card-head { display: flex; align-items: center; gap: 0.75rem; width: 100%; }
.gf-card-head > div { flex: 1; min-width: 0; }
.gf-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; width: 100%; }
.gf-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; width: 100%; }
.gf-confirm p { flex-basis: 100%; }
.gf-team-card .gf-team-meta { flex: 1; min-width: 0; }
.gf-plain { margin: 0.5rem 0; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }

.gf-rows { margin: 0 0 0.75rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.gf-row { padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); }
.gf-row-title { margin: 0 0 0.5rem; font-weight: 600; }
.gf-row-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: 0.75rem; }
.gf-row-grid .gf-span { grid-column: 1 / -1; }
.gf-row-actions { display: flex; justify-content: space-between; margin-top: 0.25rem; }
.gf-locked .gf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

.gf-found { margin-top: 0.25rem; padding: 0.5rem 0.75rem; border: 1px solid var(--error); border-radius: 0.5rem; background: var(--error-bg); }
.gf-found p { margin: 0 0 0.5rem; overflow-wrap: anywhere; }
.gf-found-text { color: var(--fg); }
mark { padding: 0 0.15rem; border-radius: 0.2rem; background: var(--mark); color: var(--fg); font-weight: 700; }

.gf-slots { margin: 0.5rem 0; padding: 0; list-style: none; width: 100%; display: flex; flex-direction: column; gap: 0.35rem; }
.gf-state { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--hover); color: var(--fg); font-size: 0.85rem; font-weight: 600; }
.gf-state-filled, .gf-state-filled_gf { background: var(--ok-bg); color: var(--ok-fg); }
.gf-state-proposed { background: var(--warn-bg); }
.gf-state-passed { background: var(--passed-bg); color: var(--muted); }

.gf-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0.75rem 0; }
.gf-facts dt { font-weight: 600; }
.gf-facts dd { margin: 0; overflow-wrap: anywhere; }
.gf-note { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- The public pages: home, search, region pages. Phone first; the column layout from 720px. */
body.gf-public { background: var(--page); }
.gf-skip { position: absolute; left: 0.5rem; top: -5rem; z-index: 30; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 2px solid var(--edge); border-radius: var(--radius); background: var(--surface); color: var(--fg); font-weight: 700; }
.gf-skip:focus { top: 0.5rem; }
.gf-header { flex-wrap: wrap; background: var(--surface); }
.gf-site-name { gap: 0.55rem; white-space: nowrap; }
.gf-wm-a, .gf-wm-b { font-family: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif; }
.gf-wm-a { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; }
.gf-wm-by { color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.gf-wm-b { display: inline-flex; align-items: center; gap: 3px; font-size: 1.2rem; font-style: italic; font-weight: 800; line-height: 1; text-transform: uppercase; }
.gf-wm-b svg { flex: none; }
@media (max-width: 479.98px) {
  .gf-site-name { gap: 0.35rem; }
  .gf-wm-a { font-size: 1.15rem; }
  .gf-wm-b { font-size: 1rem; }
}
.gf-header-end { gap: 0.5rem; }
.gf-nav, .gf-header-post { display: none; }
@media (min-width: 720px) {
  .gf-nav { display: flex; flex: 1; gap: 0.25rem; margin-left: 1rem; }
  .gf-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 0.75rem; color: var(--fg); font-weight: 600; text-decoration: none; }
  .gf-nav a:hover { text-decoration: underline; }
  .gf-header-post { display: inline-flex; }
}
body.gf-public main { max-width: 72rem; padding: 1rem; }
.gf-public h1 { margin: 0 0 0.75rem; font-size: 1.5rem; line-height: 1.2; overflow-wrap: anywhere; }
.gf-public h2 { overflow-wrap: anywhere; }
body.gf-public main.gf-main-wide { max-width: none; padding: 0; }
.gf-home-body { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
#main:focus { outline: none; }
.gf-layout { display: block; }
.gf-results { min-width: 0; }
@media (min-width: 720px) {
  .gf-layout { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
  body.gf-public main { padding: 1.5rem; }
}

/* the filters: a column from 720px, a sheet on a phone (scripts on), a plain block above the results (scripts off) */
.gf-filters { box-sizing: border-box; width: 100%; max-width: none; margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); color: var(--fg); }
.gf-filters h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.gf-filters-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
html:not(.js) dialog.gf-filters:not([open]) { display: block; position: static; }
@media (min-width: 720px) {
  dialog.gf-filters:not([open]) { display: block; position: static; }
  .gf-filters { margin: 0; }
}
.gf-filters-open, .gf-filters-close { display: none; }
@media (max-width: 719.98px) {
  html.js .gf-filters-open { display: inline-flex; }
  html.js .gf-filters-close { display: flex; }
  html.js dialog.gf-filters { max-height: 92vh; margin: auto 0 0; overflow-y: auto; border: 0; border-radius: 1.25rem 1.25rem 0 0; }
  html.js dialog.gf-filters::backdrop { background: rgba(20, 33, 61, 0.55); }
  html.js .gf-filters-actions { position: sticky; bottom: -1rem; z-index: 1; margin: 0 -1rem -1rem; padding: 0.75rem 1rem; border-top: 1px solid var(--line); background: var(--surface); }
}
.gf-filters-form { display: flex; flex-direction: column; gap: 1.1rem; margin: 0.5rem 0 0; }
.gf-filters-form p { margin: 0; }
.gf-filters-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gf-filters-actions .gf-btn-primary { flex: 1 1 auto; }
.gf-date-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; margin: 0.4rem 0; }
.gf-date-row label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.875rem; font-weight: 600; }
.gf-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.gf-pick { position: relative; display: inline-flex; }
.gf-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gf-pick span, .gf-chipbtn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; min-height: 44px; padding: 0 0.9rem; border: 2px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; text-decoration: none; }
.gf-pick input:checked + span { border-color: var(--pick-on); background: var(--pick-on); color: var(--pick-on-fg); }
.gf-pick input:checked + span::before { content: "\2713"; content: "\2713" / ""; margin-right: 0.35rem; }
.gf-pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
a.gf-chipbtn:hover, .gf-pick input:not(:checked) + span:hover { background: var(--hover); }
.gf-chipbtn small { margin-left: 0.4rem; color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.gf-chipbtn .gf-x { margin-left: 0.45rem; font-weight: 700; }
.gf-note-small { margin: 0; color: var(--muted); font-size: 0.875rem; }
.gf-field-error { margin: 0.25rem 0 0; }

/* the bar above the results */
.gf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; }
.gf-chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.gf-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin: 0.5rem 0; font-weight: 700; }
.gf-counts span + span { color: var(--muted); font-weight: 600; }
.gf-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 0.5rem 0 1rem; }
.gf-seg-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.gf-seg-label { font-weight: 600; }
.gf-seg { display: inline-flex; }
.gf-seg a { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; min-height: 44px; margin-left: -2px; padding: 0 0.9rem; border: 2px solid var(--edge); background: var(--surface); color: var(--fg); font-weight: 600; text-decoration: none; }
.gf-seg a:first-child { margin-left: 0; border-radius: 999px 0 0 999px; }
.gf-seg a:last-child { border-radius: 0 999px 999px 0; }
.gf-seg a:only-child { border-radius: 999px; }
.gf-seg a:hover { background: var(--hover); }
.gf-seg a[aria-current="true"] { position: relative; border-color: var(--pick-on); background: var(--pick-on); color: var(--pick-on-fg); }
.gf-save-status { font-size: 0.9rem; font-weight: 600; }
html:not(.js) [data-save-search] { display: none; }

/* the groups and the rows */
.gf-group-h { margin: 1.25rem 0 0.5rem; font-size: 1.1rem; line-height: 1.3; }
.gf-hits { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.gf-hit-link { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; box-sizing: border-box; min-height: 44px; padding: 0.6rem 0.8rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); color: var(--fg); text-decoration: none; }
.gf-hit-link:hover { background: var(--hover); }
.gf-hit-when { font-weight: 700; }
.gf-hit-line { display: flex; align-items: center; flex: 1 1 100%; gap: 0.6rem; min-width: 0; }
.gf-hit-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.gf-hit-name { font-weight: 700; }
.gf-hit-sub, .gf-hit-ago, .gf-hit-rating, .gf-hit-dist, .gf-hit-age { color: var(--muted); font-size: 0.9rem; }
.gf-hit-age { color: var(--fg); font-weight: 600; }
.gf-reach { padding: 0 0.4rem; border: 1px solid var(--edge); border-radius: 0.4rem; color: var(--muted); font-size: 0.8rem; }
.gf-badge-sm { width: 2rem; height: 2rem; border-radius: 0.4rem; font-size: 0.75rem; }
.gf-kind { padding: 0.05rem 0.5rem; border: 1.5px solid currentColor; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.gf-kind-host { color: var(--kind-host); }
.gf-kind-travel { color: var(--kind-travel); }
.gf-kind-either { color: var(--kind-either); }
.gf-kind-tournament { color: var(--kind-tournament); }
.is-filled .gf-hit-link { background: var(--filled-bg); color: var(--muted); }
.is-filled .gf-hit-name, .is-filled .gf-hit-when, .is-filled .gf-hit-age { color: var(--muted); }
.is-filled .gf-badge { filter: grayscale(0.6); }
.gf-filled-note { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
@media (min-width: 960px) {
  .gf-hits-compact .gf-hit-line { flex: 1 1 0; }
}
.gf-hits-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
@media (min-width: 560px) { .gf-hits-cards { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); } }
.gf-hitcard { display: flex; flex-direction: column; align-items: stretch; gap: 0.4rem; height: 100%; box-sizing: border-box; padding: 0.9rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); color: var(--fg); text-decoration: none; }
.gf-hitcard:hover { background: var(--hover); }
.is-filled .gf-hitcard { background: var(--filled-bg); color: var(--muted); }
.gf-hitcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.gf-hitcard h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.gf-hitcard p { margin: 0; overflow-wrap: anywhere; }
.gf-hits-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: 0.75rem; }
@media (min-width: 720px) { .gf-hits-posters { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem; } }
.gf-poster-link { display: block; overflow: hidden; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); color: var(--fg); text-decoration: none; }
.gf-poster-link:hover { background: var(--hover); }
.gf-poster-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; background: var(--hover); }
.is-filled .gf-poster-img { filter: grayscale(0.7); opacity: 0.8; }
.gf-poster-cap { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.5rem 0.65rem 0.65rem; font-size: 0.9rem; overflow-wrap: anywhere; }
.gf-poster-cap strong { font-size: 0.95rem; }
.gf-filled-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 1.25rem 0 0.5rem; }
.gf-filled-head .gf-group-h { margin: 0; }
.gf-paging { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 1.25rem 0; }
.gf-paging span { font-weight: 600; }
.gf-post-cta { margin: 1.25rem 0; }

/* no results */
.gf-empty { padding: 1rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); }
.gf-empty h2 { margin: 0 0 0.25rem; font-size: 1.2rem; line-height: 1.3; }
.gf-suggest { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.gf-suggest-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.75rem; box-sizing: border-box; min-height: 44px; padding: 0.6rem 0.8rem; border: 2px solid var(--edge); border-radius: var(--radius); background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; width: 100%; }
.gf-suggest-link:hover { background: var(--hover); }
.gf-suggest-link small { color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.gf-empty h3 { margin: 1.25rem 0 0.5rem; font-size: 1.05rem; }

/* the home page */
.gf-hero { padding: 1.25rem 1rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.gf-hero-in { max-width: 72rem; margin: 0 auto; }
.gf-hero h1 { margin: 0; font-family: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif; font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 700; letter-spacing: 0.01em; line-height: 1.05; }
.gf-hero-sub { max-width: 56rem; margin: 0.6rem 0 0; color: var(--muted); font-size: 1.1rem; }
.gf-searchbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; margin-top: 1.25rem; padding: 0.5rem; border: 1px solid var(--edge); border-radius: 1rem; background: var(--surface); }
@media (min-width: 720px) { .gf-searchbar { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr) auto; align-items: end; } }
.gf-searchbar .gf-input { height: 48px; }
.gf-searchbar .gf-btn { min-height: 48px; }
.gf-btn-dark { border-color: var(--pick-on); background: var(--pick-on); color: var(--pick-on-fg); }
.gf-btn-dark:hover { opacity: 0.9; }
.gf-teamq { margin-top: 0.75rem; }
.gf-teamq .gf-field { max-width: 24rem; }
.gf-games { margin: 0.75rem 0 0; color: var(--muted); font-weight: 600; }
.gf-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.gf-section { margin: 1.75rem 0; }
.gf-section h2 { margin: 0 0 0.6rem; font-size: 1.3rem; }
.gf-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .gf-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gf-steps li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.9rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); }
.gf-step-n { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--pick-on); color: var(--pick-on-fg); font-weight: 800; }
.gf-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.gf-regions a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; box-sizing: border-box; min-height: 44px; padding: 0.5rem 0.8rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); color: var(--fg); font-weight: 600; text-decoration: none; }
.gf-regions a:hover { background: var(--hover); }
.gf-regions small { color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.gf-sports { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; padding: 0; list-style: none; }

/* the footer */
.gf-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; width: 100%; max-width: 72rem; box-sizing: border-box; margin: 1.5rem auto 0; padding: 1rem; border-top: 1px solid var(--line); }
.gf-band { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.9rem; }
.gf-band a, .gf-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; }
.gf-credit { margin: 0; font-size: 0.75rem; color: var(--muted); }
.gf-footer .gf-credit a { color: var(--muted); }
.gf-footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.gf-appearance { display: none; }
html.js .gf-appearance { display: flex; align-items: center; gap: 0.5rem; }
.gf-appearance button { min-width: 44px; min-height: 44px; padding: 0 1rem; border: 2px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
.gf-appearance button[aria-pressed="true"] { border-color: var(--pick-on); background: var(--pick-on); color: var(--pick-on-fg); }

/* A post's own page */
body.gf-public main.gf-post-page { max-width: 48rem; }
.gf-post-page h1 { margin: 0; font-size: 1.5rem; line-height: 1.25; }
.gf-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; margin: 0 0 0.5rem; color: var(--muted); font-size: 0.9rem; }
.gf-strip a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.gf-notice { margin: 0 0 0.75rem; padding: 0.6rem 0.9rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); color: var(--fg); font-weight: 600; }
.gf-notice p { margin: 0 0 0.25rem; }
.gf-notice-warn { background: var(--warn-bg); }
.gf-notice-passed { background: var(--passed-bg); font-size: 1.1rem; font-weight: 800; }
.gf-notice-filled { background: var(--ok-bg); color: var(--ok-fg); }
.gf-notice-filled .gf-link-btn { color: inherit; }
.gf-notice-h { font-size: 1.05rem; font-weight: 800; }
.gf-kindline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.25rem 0; }
.gf-dates { margin: 0 0 0.5rem; font-weight: 700; font-size: 1.05rem; }
.gf-team-head { margin: 0.5rem 0 1rem; }
.gf-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0; }
.gf-tag { padding: 0.1rem 0.6rem; border: 1.5px solid var(--edge); border-radius: 999px; font-size: 0.9rem; font-weight: 700; }
.gf-slotlist { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 0.5rem; padding: 0; list-style: none; }
.gf-slotrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 0.75rem; padding: 0.6rem 0.8rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); }
.gf-slotrow[data-state="passed"], .gf-slotrow[data-state="filled"], .gf-slotrow[data-state="filled_gf"] { background: var(--filled-bg); }
.gf-slot-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.gf-slot-place { color: var(--muted); font-size: 0.9rem; }
.gf-slotrow .gf-state { max-width: 100%; border-radius: 0.75rem; }
.gf-details { display: block; }
.gf-notecard { display: block; }
.gf-note-h { margin: 0 0 0.25rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.gf-facts a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.gf-extras { align-items: flex-start; }
.gf-poster-thumb { display: block; flex: none; width: 6rem; height: auto; aspect-ratio: 4 / 5; border: 1px solid var(--edge); border-radius: 0.5rem; background: var(--hover); }
.gf-extras-links { display: flex; flex: 1; flex-wrap: wrap; align-content: flex-start; gap: 0.5rem; min-width: 0; }
.gf-extras .gf-small { width: 100%; font-weight: 600; }
.gf-actionbar { position: sticky; bottom: 0; z-index: 4; display: flex; flex-direction: column; align-items: stretch; gap: 0.25rem; box-sizing: border-box; margin: 1rem -1rem 0; padding: 0.75rem 1rem 0.9rem; border-top: 1px solid var(--edge); background: var(--surface); box-shadow: 0 -4px 12px var(--shadow); }
.gf-actionbar .gf-btn { min-height: 52px; border-radius: 999px; }
.gf-actionbar .gf-btn-quiet { min-height: 44px; font-size: 0.9rem; text-align: center; }
.gf-actionbar-note { margin: 0; color: var(--muted); font-size: 0.875rem; text-align: center; }
.gf-actionbar-h { color: var(--fg); font-size: 1rem; font-weight: 700; }
html:not(.js) [data-signin-open][data-reason="report"], html:not(.js) [data-report] { display: none; }
/* ===== Screens: team form, post form, Your posts (slice 3 front end, Day look of docs/proposals/game-finder-screens) =====
   Tokens first, then page, panel, chips, pills, the contact alert, post cards. Keep these rules together; they override the plain ones above. */
:root { --gf-navy: #0b1f3a; --gf-link: #1f5fbf; --gf-muted: #4a5a72; --gf-border: #8794a8; --gf-hair: #d3dbe6; --gf-hair2: #c3cedd; --gf-surface: #e9eef5; --gf-gold: #f2b705; --gf-error: #b3202e; --gf-error-bg: #fbe0e3; --gf-green: #0f6b3a; --gf-amber: #8a6500;
  --gf-card: #ffffff; --gf-field: #f5f7fa; --gf-on-fill: #ffffff; --gf-navy-fill: #0b1f3a; --gf-green-fill: #0f6b3a; --gf-amber-fill: #8a6500; --gf-error-fill: #b3202e; --gf-card-shadow: rgba(11, 31, 58, 0.06);
  --gf-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif; }
/* The same screens in the Night look: ONE mechanism for every page (data-theme="night" on <html>, set by theme.js before the first paint); no page class forces Day colours.
   Text tokens turn light, card and field fills turn dark, the filled chips and badges keep a dark fill with light text. */
:root[data-theme="night"] { --gf-navy: #e6ecf7; --gf-link: #8db8ff; --gf-muted: #a9b6cc; --gf-border: #7d8ea9; --gf-hair: #2b3a55; --gf-hair2: #3a4a66; --gf-surface: #0d1626; --gf-error: #ff8a9b;
  --gf-error-bg: #3a1620; --gf-green: #7fd9a2; --gf-amber: #ffd04a; --gf-card: #16233a; --gf-field: #111b2e; --gf-on-fill: #ffffff; --gf-navy-fill: #2f4a7a; --gf-green-fill: #0f6b3a;
  --gf-amber-fill: #8a6500; --gf-error-fill: #c0293a; --gf-card-shadow: rgba(0, 0, 0, 0.4); }
.gf-day { background: var(--gf-surface); color: var(--gf-navy); }
.gf-lead { margin: 0 0 1rem; color: var(--gf-muted); font-size: 16px; line-height: 1.4; }
.gf-screen-h1 { margin: 0 0 0.75rem; font-family: var(--gf-display); font-weight: 700; font-size: 32px; letter-spacing: 0.02em; line-height: 1.1; }
.gf-panel { box-sizing: border-box; gap: 14px; padding: 16px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2), 0 1px 2px var(--gf-card-shadow); }
.gf-day .gf-label, .gf-day .gf-field > label:not(.gf-check), .gf-day .gf-fieldset legend { font-size: 14px; font-weight: 700; }
.gf-day .gf-input { min-height: 48px; border: 1px solid var(--gf-border); border-radius: 10px; }
.gf-day .gf-textarea { min-height: 96px; }
.gf-day .gf-input[aria-invalid="true"] { border-color: var(--gf-error); box-shadow: 0 0 0 1px var(--gf-error); }
.gf-hint { margin: 0; color: var(--gf-muted); font-size: 12px; line-height: 1.3; }
.gf-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.gf-two > .gf-field { min-width: 0; }
.gf-day .gf-badge-lg { width: 64px; height: 64px; border-radius: 8px; font-family: var(--gf-display); font-size: 28px; }
.gf-badge-sm { width: 40px; height: 40px; border-radius: 8px; font-family: var(--gf-display); font-size: 18px; }

/* Chips: buttons with aria-pressed; unselected ones carry a real 1px border */
.gf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gf-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; gap: 2px; min-width: 44px; min-height: 44px; padding: 4px 14px; border: 1px solid var(--gf-border); border-radius: 999px; background: var(--gf-card); color: var(--gf-navy); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.1; cursor: pointer; }
.gf-chip[aria-pressed="true"] { border-color: var(--gf-navy-fill); background: var(--gf-navy-fill); color: var(--gf-on-fill); }
.gf-chip:focus-visible { outline: 3px solid var(--gf-link); outline-offset: 2px; }
.gf-chip-sub { font-size: 11px; font-weight: 600; line-height: 1; opacity: 0.85; }
.gf-facts-group { display: flex; flex-direction: column; gap: 10px; }
.gf-facts-group legend { margin-bottom: 6px; }

/* Pills */
.gf-pill { gap: 8px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.gf-pill-outline { border: 1px solid var(--gf-border); background: var(--gf-card); color: var(--gf-navy); }
.gf-pill-outline.gf-btn-danger { border-color: var(--gf-error); color: var(--gf-error); }
.gf-pill-gold { min-height: 52px; padding: 0 20px; border: 1px solid var(--gf-gold); background: var(--gf-gold); color: var(--gold-fg); font-size: 16px; }
.gf-pill-gold:hover { background: #ffc61f; }
.gf-pill-gold:disabled, .gf-pill-gold[aria-disabled="true"] { border-color: var(--gf-hair); background: var(--gf-hair); color: var(--gf-muted); opacity: 1; cursor: not-allowed; }
.gf-panel .gf-actions > .gf-pill-gold { width: 100%; }
label.gf-pill { cursor: pointer; }

/* The contact alert (the screen "No contact details in posts") */
.gf-found { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 0; border: 0; background: none; }
.gf-found .gf-found-text { margin: 0; padding: 12px; border-radius: 10px; background: var(--gf-card); box-shadow: 0 0 0 2px var(--gf-error); color: var(--gf-navy); line-height: 1.6; }
.gf-found mark { padding: 1px 2px; border-radius: 3px; background: var(--gf-error-bg); color: var(--gf-navy); font-weight: inherit; text-decoration: underline; text-decoration-color: var(--gf-error); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gf-found-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-error), inset 4px 0 0 var(--gf-error); }
.gf-warn-icon { flex: none; color: var(--gf-error); }
.gf-found-alert .gf-field-error { color: var(--gf-navy); font-size: 1rem; font-weight: 600; line-height: 1.45; }
.gf-found-fix { align-self: stretch; }

/* Your posts */
.gf-post-card { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px; border: 0; border-radius: 14px; box-shadow: 0 0 0 1px var(--gf-hair2), 0 1px 2px var(--gf-card-shadow); }
.gf-pc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gf-kindpill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--gf-green); color: var(--gf-green); font-size: 12px; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; }
.gf-pc-state { display: inline-flex; align-items: center; gap: 6px; color: var(--gf-green); font-size: 12px; font-weight: 700; }
.gf-pc-state-filled { color: var(--gf-muted); }
.gf-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.gf-post-card h2 { font-family: var(--gf-display); font-size: 20px; letter-spacing: 0.02em; line-height: 1.1; }
.gf-post-card .gf-slots { gap: 0; margin: 0; border-top: 1px solid var(--gf-hair); }
.gf-post-card .gf-slots li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--gf-hair); }
.gf-post-card .gf-slots li:last-child { border-bottom: 0; }
.gf-post-card .gf-when { flex: 1; font-weight: 700; }
.gf-post-card .gf-state { padding: 0; border-radius: 0; background: none; color: var(--gf-green); font-size: 12px; white-space: nowrap; }
.gf-post-card .gf-state-proposed { color: var(--gf-amber); }
.gf-post-card .gf-state-filled, .gf-post-card .gf-state-filled_gf, .gf-post-card .gf-state-passed { color: var(--gf-muted); }
.gf-post-card .gf-card-actions .gf-btn { flex: 1; padding: 0 6px; }
.gf-card-more { display: flex; justify-content: space-between; gap: 8px; }
.gf-team-row { flex-wrap: nowrap; min-height: 60px; padding: 8px 16px; border: 0; box-shadow: 0 0 0 1px var(--gf-hair2), 0 1px 2px var(--gf-card-shadow); color: inherit; text-decoration: none; }
.gf-team-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.gf-team-name { font-weight: 700; line-height: 1.3; }
.gf-chevron { flex: none; color: var(--gf-muted); }

/* ---- operator page (/admin): self-contained block ---- */
.gf-admin section { margin-bottom: 2rem; }
.gf-admin-result { padding: 0.5rem 0.75rem; border: 1px solid var(--border, #c8d0dc); border-radius: 0.5rem; background: #eef1f6; }
.gf-admin-item h3 { margin: 0 0 0.25rem; font-size: 1.05rem; overflow-wrap: anywhere; }
.gf-admin-form { display: inline; }
.gf-admin-erase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0.75rem; align-items: end; max-width: 52rem; }
.gf-admin-erase label { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.gf-admin-erase input { width: 100%; min-height: 44px; box-sizing: border-box; }
.gf-admin-erase button { min-height: 44px; }
@media (max-width: 40rem) { .gf-admin-erase { grid-template-columns: minmax(0, 1fr); } }
.gf-admin-plan { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) auto; gap: 0.75rem; align-items: end; max-width: 64rem; }
.gf-admin-plan label { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.gf-admin-plan input, .gf-admin-plan select { width: 100%; min-height: 44px; box-sizing: border-box; }
.gf-admin-plan button { min-height: 44px; }
@media (max-width: 52rem) { .gf-admin-plan { grid-template-columns: minmax(0, 1fr); } }
.gf-admin-logo { float: right; width: 4rem; height: 4rem; object-fit: contain; }
.gf-admin-table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.9rem; }
.gf-admin-table th, .gf-admin-table td { padding: 0.25rem 0.5rem; border-bottom: 1px solid #d9dee7; text-align: left; }
/* ---- end of operator page block ---- */

/* ===== messages (slice 5): the bottom navigation, the inbox, one conversation, writing first, the post's action bar, "Your posts" conversations =====
   Day look, tokens from the slice 3 block above (--gf-*). Mobile first (390 px); every control at least 44 px; nothing relies on colour alone. */
.gf-msgpage { padding-bottom: 1rem; }
.gf-bottomnav { position: sticky; bottom: 0; z-index: 4; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--gf-hair2); background: var(--gf-card); }
.gf-bn-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; gap: 2px; min-height: 56px; padding: 6px 4px; color: var(--gf-muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.gf-bn-item[aria-current="page"] { color: var(--gf-navy); font-weight: 700; box-shadow: inset 0 3px 0 var(--gf-navy); }
.gf-nav-dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 10px; height: 10px; border-radius: 50%; background: var(--gf-error-fill); box-shadow: 0 0 0 2px var(--gf-card); }
.gf-iconbtn { display: inline-flex; flex: none; align-items: center; justify-content: center; box-sizing: border-box; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--gf-navy); cursor: pointer; list-style: none; text-decoration: none; }
.gf-iconbtn::-webkit-details-marker { display: none; }
.gf-summary { flex-direction: column; align-items: flex-start; gap: 2px; border: 0; box-shadow: 0 0 0 1px var(--gf-hair2); }
.gf-summary p { overflow-wrap: anywhere; }

/* Inbox */
.gf-inbox-group { margin: 0 0 1.25rem; }
.gf-inbox-h { margin: 0 0 6px; color: var(--gf-muted); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.gf-inbox-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gf-inbox-row { display: flex; align-items: flex-start; gap: 12px; box-sizing: border-box; min-height: 64px; padding: 10px 12px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2), 0 1px 2px var(--gf-card-shadow); color: var(--gf-navy); text-decoration: none; }
.gf-inbox-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.gf-inbox-top { display: flex; justify-content: space-between; gap: 8px; }
.gf-inbox-name { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gf-inbox-time { flex: none; color: var(--gf-muted); font-size: 12px; }
.gf-inbox-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--gf-muted); font-size: 12px; }
.gf-ratingpill { padding: 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--gf-border); color: var(--gf-navy); font-weight: 600; }
.gf-tag { padding: 0 8px; border-radius: 999px; font-weight: 700; box-shadow: inset 0 0 0 1.5px currentColor; }
.gf-tag-proposed { color: var(--gf-amber); }
.gf-tag-confirmed { color: var(--gf-green); }
.gf-inbox-last { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--gf-muted); }
.gf-inbox-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-unread { color: var(--gf-navy); font-weight: 700; }
.gf-dot-unread { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gf-link); }

/* One conversation */
.gf-thread-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.gf-thread-who { flex: 1; min-width: 0; }
.gf-thread-name { margin: 0; overflow: hidden; font-family: var(--gf-display); font-size: 20px; line-height: 1.15; letter-spacing: 0.02em; text-overflow: ellipsis; white-space: nowrap; }
.gf-thread-who p { margin: 0; }
.gf-tmenu { position: relative; }
.gf-tmenu-list { position: absolute; right: 0; top: 100%; z-index: 5; display: flex; flex-direction: column; min-width: 14rem; padding: 4px; border-radius: 12px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2), 0 6px 20px rgba(11, 31, 58, 0.18); }
.gf-tmenu-list button { box-sizing: border-box; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--gf-navy); font: inherit; text-align: left; cursor: pointer; }
.gf-tmenu-list button:hover { background: var(--gf-surface); }
.gf-msgs { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.gf-msg { display: flex; }
.gf-msg-mine { justify-content: flex-end; }
.gf-msg-their { justify-content: flex-start; }
.gf-msg-system { justify-content: center; }
.gf-bubble { box-sizing: border-box; max-width: 85%; padding: 8px 12px; border-radius: 16px; }
.gf-msg-mine .gf-bubble { background: var(--gf-navy-fill); color: var(--gf-on-fill); border-bottom-right-radius: 4px; }
.gf-msg-their .gf-bubble { background: var(--gf-card); color: var(--gf-navy); box-shadow: 0 0 0 1px var(--gf-hair2); border-bottom-left-radius: 4px; }
.gf-msg-system .gf-bubble { max-width: 100%; background: none; color: var(--gf-muted); font-size: 13px; text-align: center; }
.gf-msg-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.gf-msg-time { display: block; margin-top: 2px; font-size: 11px; opacity: 0.8; }
.gf-agree { box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 12px 0; }
.gf-agree:not(:empty) { padding: 14px 16px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2), 0 1px 2px var(--gf-card-shadow); }
.gf-agree > * { margin-top: 0; margin-bottom: 0; max-width: 100%; }
.gf-agree-h { margin: 0; font-family: var(--gf-display); font-size: 22px; letter-spacing: 0.02em; line-height: 1.15; }
.gf-agree-top { display: flex; align-items: center; gap: 10px; }
.gf-agree-check { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gf-green-fill); color: var(--gf-on-fill); }
.gf-eyebrow { margin: 0; color: var(--gf-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.gf-agree-rows { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; width: 100%; margin: 0; }
.gf-agree-rows dt { color: var(--gf-muted); font-weight: 700; }
.gf-agree-rows dd { margin: 0; overflow-wrap: anywhere; }
.gf-agree-form { width: 100%; margin: 0; }
.gf-agree .gf-actions { margin-top: 0; }
.gf-tick { align-items: center; }
.gf-more > summary { display: flex; align-items: center; min-height: 44px; color: var(--gf-link); cursor: pointer; }
.gf-more .gf-field { margin-bottom: 8px; }
.gf-tailgate-card { display: flex; flex-direction: column; align-items: flex-start; width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; background: var(--gf-surface); }
.gf-compose { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.gf-compose .gf-textarea { min-height: 72px; }
.gf-compose-end { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gf-compose-end .gf-hint { flex: 1; }
.gf-send { min-width: 96px; }
.gf-blocked-note { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2); }
.gf-day .gf-error-box { border-radius: 10px; border-color: var(--gf-error); background: var(--gf-error-bg); color: var(--gf-navy); }

/* The post page's action bar (templates/post_actions.html) */
.gf-post-actions { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; box-sizing: border-box; padding: 10px 16px; border-top: 1px solid var(--gf-hair2); background: var(--gf-card); }
.gf-post-actions .gf-pill-gold { flex: 1; }
.gf-pa-line { flex-basis: 100%; margin: 0; text-align: center; }

/* "Your posts": conversations in a card */
.gf-card-threads { display: flex; align-items: center; gap: 8px; }
.gf-slot-note { flex-basis: 100%; }
.gf-post-card .gf-slots li { flex-wrap: wrap; }
/* ---- end of messages (slice 5) ---- */

/* ===== Slice 6b: the poster look page, the share screen and the team page's look row (Day look of docs/proposals/game-finder-screens/{PosterLook,Share,TeamProfile}). Keep together. ===== */
.gf-look { display: flex; flex-direction: column; }
.gf-look-preview { align-self: center; width: min(100%, 22rem); }
.gf-look-preview img, .gf-share-img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--gf-hair); box-shadow: 0 0 0 1px var(--gf-hair2); }
.gf-look-preview.gf-look-busy img { opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) { .gf-look-preview img { transition: opacity 0.15s; } }
.gf-look-h { margin: 0; font-size: 18px; font-weight: 700; }
.gf-swatches { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; }
.gf-swatch-set { display: flex; flex-direction: column; gap: 2px; }
.gf-swatch-line { display: flex; flex-wrap: wrap; gap: 6px; }
.gf-swatch { box-sizing: border-box; width: 44px; height: 44px; padding: 0; border: 1px solid var(--gf-border); border-radius: 999px; background: var(--badge, #cccccc); cursor: pointer; }
.gf-swatch[aria-pressed="true"] { border: 3px solid var(--gf-navy); box-shadow: 0 0 0 2px #ffffff inset; }
.gf-swatch:focus-visible { outline: 3px solid var(--gf-link); outline-offset: 2px; }
.gf-other { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; font-size: 14px; font-weight: 600; }
.gf-other input[type="color"] { box-sizing: border-box; width: 44px; height: 44px; padding: 2px; border: 1px solid var(--gf-border); border-radius: 10px; background: var(--gf-card); cursor: pointer; }
.gf-look-locked { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border: 1px dashed var(--gf-border); border-radius: 10px; color: var(--gf-muted); }
.gf-look-locked > div { display: flex; flex: 1; flex-direction: column; min-width: 12rem; }
.gf-linkrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gf-hair); }
.gf-linkrow-text { display: flex; flex-direction: column; gap: 2px; }
.gf-share { max-width: 34rem; }
.gf-share-head { display: flex; align-items: center; gap: 10px; }
.gf-share-head .gf-screen-h1 { margin: 0 0 0.75rem; }
.gf-tick { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 0.75rem; border-radius: 999px; background: var(--gf-green-fill); color: var(--gf-on-fill); }
.gf-share-tailgate { margin: 0 0 0.75rem; font-size: 14px; color: var(--gf-muted); }
.gf-share-panel { display: flex; flex-direction: column; }
.gf-share-poster { align-self: center; width: 100%; max-width: 30rem; }
.gf-share-size { justify-content: center; }
.gf-linkmock { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--gf-hair2); border-radius: 10px; background: var(--gf-field); }
.gf-linkmock-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.gf-linkmock-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.gf-linkmock-site { color: var(--gf-muted); font-size: 12px; letter-spacing: 0.04em; }
.gf-linkmock-title { font-size: 15px; font-weight: 700; }
.gf-linkmock-line { color: var(--gf-muted); font-size: 14px; }
.gf-share-actions { display: flex; flex-direction: column; gap: 10px; }
.gf-share-actions > .gf-pill-gold { width: 100%; }
.gf-share-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gf-share-actions .gf-pill-outline { min-height: 48px; }
.gf-share-fallback { min-height: 6rem; padding: 8px 12px; }

/* ===== Poster in (slice 7): the notice and the picked picture of the reader bar (templates/post_page.html) ===== */
.gf-notice { margin: 0 0 0.75rem; padding: 10px 14px; border-radius: 10px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2); color: var(--gf-navy); }
.gf-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.gf-link-quiet { border-color: transparent; background: none; color: var(--gf-link); font-size: 16px; font-weight: 600; text-decoration: underline; }

.gf-poster-img { display: block; width: 300px; max-width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 14px; background: #d3dbe6; box-shadow: 0 0 0 1px #2c4a73, 0 2px 8px rgba(11, 31, 58, 0.25); }

/* tournament hits: divisions with their spots */
.gf-hit-divs { list-style: none; margin: 0.25rem 0 0; padding: 0; font-size: 0.875rem; }
.gf-hit-divs .gf-full { font-weight: 600; }
.gf-listed { font-style: italic; }
/* ---- slice 8: Find teams, a team's alerts, saved searches, the fit switch of My posts ---- */
.gf-fitlist { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; padding: 0; list-style: none; }
.gf-fitrow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem; box-sizing: border-box; padding: 0.75rem; }
.gf-fit-main { min-width: 0; }
.gf-fit-head { margin: 0 0 0.25rem; font-weight: 700; overflow-wrap: anywhere; }
.gf-fit-team { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); }
.gf-fit-why { margin: 0; }
.gf-tag { display: inline-block; padding: 0.1rem 0.6rem; border: 1px solid var(--edge); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.gf-fit-message { min-width: 44px; min-height: 44px; }
.gf-switchrow { margin: 1rem 0; padding: 0.75rem; }
.gf-switchrow .gf-check { min-height: 44px; }
.gf-fit-actions { align-items: center; }
.gf-fitmode { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.gf-fitmode select { min-height: 44px; }
.gf-searchrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.75rem; }
.gf-search-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--fg); overflow-wrap: anywhere; }
.gf-alertrow { margin: 1rem 0; padding: 0.75rem; }
.gf-alertpage .gf-check { min-height: 44px; }
@media (max-width: 400px) { .gf-fitrow { grid-template-columns: auto 1fr; } .gf-fit-message { grid-column: 1 / -1; } }

/* Trust: the new-account notice and the quiet "They didn't show" control */
.gf-notice-probation { font-weight: 400; }
.gf-notice-probation p { margin: 0 0 0.25rem; }
.gf-noshow { margin: 0.75rem 0; }
.gf-noshow-game { margin: 0.5rem 0; }
.gf-noshow-date { font-weight: 600; margin-right: 0.5rem; }

/* The signed-in bottom navigation on the public pages: the sticky bars (the post's action bar, the poster-in bar) sit above it, never under it. A dialog is in the top layer and covers it. */
body.gf-has-nav { --gf-nav-h: 57px; }
body.gf-has-nav .gf-actionbar, body.gf-has-nav .gf-post-actions { bottom: var(--gf-nav-h); }

/* ===== results and navigation (the design review of Nov 2026): one row per post with its place; one poster per row on a phone; one navigation model =====
   Phone and small tablet (below 720 px, the one breakpoint where the header's links appear): the bottom bar for everyone. Desktop (720 px and up): the header's links, no bottom bar. */
.gf-hit-line { flex-wrap: wrap; }
.gf-hit-more { color: var(--muted); font-size: 0.9rem; font-weight: 600; margin-left: 0.4rem; white-space: nowrap; }
.gf-hit-where { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 0 0.6rem; box-sizing: border-box; min-width: 0; padding-left: calc(40px + 0.6rem); color: var(--muted); font-size: 0.9rem; }
.gf-hit-place { overflow-wrap: anywhere; }
@media (max-width: 719.98px) {
  .gf-hits-compact .gf-hit-ago { display: none; }                     /* "posted N ago" goes at phone width: the place takes its line */
}
@media (min-width: 960px) { .gf-hits-compact .gf-hit-line { flex: 1 1 100%; } }     /* the results column is narrow beside the filters: times and chips on one line, the team and its place on the next */
@media (min-width: 720px) {
  .gf-hit-line { flex-wrap: nowrap; }
  .gf-hit-where { flex: 0 0 11rem; flex-direction: column; align-items: flex-end; padding-left: 0; text-align: right; }
}
.gf-near-missing { margin: 0 0 0.75rem; padding: 0.6rem 0.8rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); color: var(--fg); }
@media (max-width: 719.98px) { .gf-teamq { display: none; } }          /* the home page on a phone: the name search is in the search page's Filters, so the games show sooner */
@media (max-width: 559.98px) {
  .gf-hits-posters { grid-template-columns: minmax(0, 1fr); }
  .gf-hits-posters .gf-poster-link { max-width: 26rem; margin: 0 auto; }
}

/* Header: the account menu with its icon, the top links with the unread dot and the current page */
.gf-menu summary { gap: 0.4rem; }
.gf-menu-name { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.35rem; }
.gf-header-post[aria-current="page"] { box-shadow: 0 0 0 2px var(--fg) inset; }
.gf-nav a { position: relative; gap: 0.35rem; }
.gf-nav .gf-nav-dot { position: static; flex: none; box-shadow: none; }
.gf-header-end { margin-left: auto; }

/* The bottom bar: three items signed out */
.gf-bottomnav-out { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 720px) {
  .gf-bottomnav { display: none; }
  body.gf-has-nav { --gf-nav-h: 0px; }                                /* the sticky bars return to the window's bottom */
}

/* The post page: the bar keeps only its button (the promise moved into the page, above it) */
.gf-actionbar { padding: 0.4rem 1rem 0.5rem; }
.gf-actionbar .gf-btn { min-height: 48px; }
.gf-actionbar-note + .gf-actionbar { margin-top: 0.25rem; }
p.gf-actionbar-note { margin: 1rem 0 0; }
.gf-hits-posters .gf-poster-img { width: 100%; max-width: none; border-radius: 0; box-shadow: none; }   /* the share page's 300 px poster rule must not shrink the posters of the results */
/* First message: the quick team step of the sign-in sheet (templates/_signin_sheet.html) and the "Write as" reasons (templates/message_start.html) */
#gf-step-team .gf-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem; }
#gf-step-team .gf-label, #gf-step-team label { font-weight: 700; }
#gf-step-team .gf-chips { margin: 0; }
#gf-signin-minute { margin: 0 0 0.5rem; }
/* ===== Quick wins from the design review (2026-11): conversation, share page, forms ===== */
.gf-inbox-slot { display: block; }
.gf-agree { scroll-margin-top: 16px; }
.gf-msg { scroll-margin-bottom: 16px; }
.gf-share-native[hidden] { display: none; }
.gf-share-native { width: 100%; min-height: 52px; }
.gf-share-looks { margin-top: 14px; }
.gf-share-look { margin-top: 14px; }
.gf-share-tailgate { margin: 16px 0 0; }
.gf-report-link { margin-left: auto; font-size: 0.875rem; color: var(--muted); }
.gf-report-why { display: flex; flex-direction: column; margin: 0 0 12px; padding: 0; border: 0; }
.gf-report-why legend { padding: 0; margin-bottom: 4px; font-weight: 700; }
.gf-gone { max-width: 34rem; margin: 0 auto; padding: 24px 16px; }
.gf-gone h1 { margin: 0 0 12px; font-size: 1.6rem; line-height: 1.2; }
.gf-gone-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 20px; padding: 0; list-style: none; }
.gf-gone-row { display: flex; flex-direction: column; gap: 2px; box-sizing: border-box; min-height: 44px; padding: 10px 14px; border-radius: 12px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2); color: inherit; text-decoration: none; }
.gf-gone-when { font-weight: 700; }
.gf-gone-name { font-weight: 600; }
.gf-gone-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.gf-gone-actions .gf-pill-gold { min-height: 52px; }
.gf-probation-line { margin: 0 0 12px; color: var(--gf-muted); font-size: 0.9rem; }
.gf-limit { display: flex; flex-direction: column; gap: 12px; }
.gf-limit > p { margin: 0; }
.gf-limit-h { font-size: 1.1rem; font-weight: 700; }
.gf-limit .gf-pill-gold { min-height: 52px; width: 100%; box-sizing: border-box; }
.gf-more-options { margin: 4px 0 12px; }
.gf-fit-none { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- notes and locks (slice 2) ---- */
.gf-locked { display: flex; flex-direction: column; gap: 12px; }
.gf-locked > p { margin: 0; }
.gf-locked-h { font-size: 1.1rem; font-weight: 700; margin: 0; }
.gf-admin-access-who { font-weight: 600; }
.gf-admin-note { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* the Details area of the forms: the sport's facts as chips, then the note */
.gf-details-group { display: flex; flex-direction: column; gap: 14px; }
.gf-details-group > legend { margin-bottom: 10px; }
.gf-details-group .gf-facts-group { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.gf-details-group .gf-fact-choice { flex: 1 1 100%; }
.gf-details-group .gf-facts-group > .gf-field-error { flex: 1 1 100%; }
.gf-chip-tick { flex-direction: row; gap: 6px; }
.gf-chip-tick[aria-pressed="true"]::before { content: "\2713"; font-weight: 700; }
.gf-note-locked { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--gf-muted); font-size: 12px; line-height: 1.3; }
.gf-note-locked svg { flex: none; }
/* the facts as small tags on the post page, the tournament page and the results */
.gf-fact-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.gf-fact-tag { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 24px; padding: 2px 10px; border-radius: 999px; background: var(--gf-field); box-shadow: inset 0 0 0 1px var(--gf-hair2); color: var(--gf-navy); font-size: 12px; font-weight: 600; line-height: 1.2; }
.gf-hit-link > .gf-fact-tags { flex: 1 1 100%; margin: 0; }
/* ---- end of notes and locks ---- */
/* ===== Teams tab (slice 1 of the one-place-to-post plan): the five tabs ===== */
.gf-bn-item { padding-left: 2px; padding-right: 2px; text-align: center; }
.gf-bn-post { gap: 1px; margin: 4px; min-height: 48px; padding: 2px; border-radius: 14px; background: var(--gf-gold); color: var(--gold-fg); font-weight: 700; box-shadow: 0 1px 3px rgba(11, 31, 58, 0.25); }
.gf-bn-post[aria-current="page"] { color: var(--gold-fg); box-shadow: inset 0 0 0 2px var(--gf-navy); }
:root[data-theme="night"] .gf-bn-post { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
:root[data-theme="night"] .gf-bn-post[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--gold-fg); }
.gf-bn-label { white-space: nowrap; }
@media (max-width: 359.98px) {
  .gf-bn-item { font-size: 11px; }
  .gf-bn-label[data-short] { font-size: 0; }
  .gf-bn-label[data-short]::after { content: attr(data-short); font-size: 11px; }
}

/* ----- Teams tab: the Teams page (/me/teams) ----- */
.gf-backline { margin: -0.5rem 0 0.25rem; }
.gf-teams-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.gf-tcard { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 14px 16px 12px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2), 0 1px 2px var(--gf-card-shadow); }
.gf-tcard-badge { width: 48px; height: 48px; border-radius: 10px; color: var(--badge-ink, #ffffff); font-family: var(--gf-display); font-size: 20px; }
.gf-tcard-name { margin: 0; font-family: var(--gf-display); font-size: 20px; letter-spacing: 0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.gf-tcard-name a { color: inherit; text-decoration: none; }
.gf-tcard-name a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.gf-tcard-name a:focus-visible { outline: none; }
.gf-tcard-name a:focus-visible::after { outline: 3px solid var(--gf-link); outline-offset: 2px; }
.gf-tcard:not(.gf-tcard-archived):hover { box-shadow: 0 0 0 1px var(--gf-border), 0 2px 6px var(--gf-card-shadow); }
.gf-tcard-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.gf-tcard-facts .gf-ratingpill { font-size: 12px; line-height: 20px; white-space: nowrap; }
.gf-tcard-place { margin: 2px 0 0; color: var(--gf-muted); font-size: 14px; }
.gf-tcard-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--gf-hair); color: var(--gf-muted); font-size: 13px; line-height: 1.4; }
.gf-team-open { font-weight: 700; }
.gf-team-open-some { color: var(--gf-green); }
.gf-teams-empty { margin: 0 0 16px; padding: 24px 16px; border: 1px dashed var(--gf-border); border-radius: 14px; text-align: center; }
.gf-teams-empty p { margin: 0; color: var(--gf-muted); line-height: 1.4; }
.gf-teams-empty .gf-teams-empty-h { margin-bottom: 4px; color: var(--gf-navy); font-weight: 700; font-family: var(--gf-display); font-size: 20px; letter-spacing: 0.02em; }
.gf-teams-add { align-items: stretch; gap: 8px; margin: 0; }
.gf-teams-add .gf-btn { box-sizing: border-box; width: 100%; }
.gf-teams-limit { margin: 0; font-size: 14px; }
.gf-teams-done { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--gf-card); box-shadow: inset 4px 0 0 var(--gf-green), 0 0 0 1px var(--gf-hair2); line-height: 1.4; }
.gf-teams-archived { margin-top: 24px; border-top: 1px solid var(--gf-hair2); }
.gf-teams-archived summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px; color: var(--gf-muted); font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; }
.gf-teams-archived summary::-webkit-details-marker { display: none; }
.gf-teams-archived[open] summary .gf-chevron { transform: rotate(90deg); }
.gf-teams-archived .gf-teams-list { margin: 4px 0 0; }
.gf-tcard-archived { padding-bottom: 14px; background: none; box-shadow: 0 0 0 1px var(--gf-hair2); }
.gf-tcard-archived .gf-badge { filter: grayscale(1); opacity: 0.6; }
.gf-tcard-archived .gf-tcard-name, .gf-tcard-archived .gf-tcard-facts { color: var(--gf-muted); }
.gf-team-status { margin: 2px 0 0; color: var(--gf-muted); font-size: 13px; line-height: 1.4; }
.gf-tcard-back { grid-column: 2 / -1; margin: 10px 0 0; }
.gf-teams-line { margin: 24px 0 0; color: var(--gf-muted); }
@media (min-width: 480px) {
  .gf-tcard-back { grid-column: auto; margin: 0; }
}
@media (min-width: 720px) {
  .gf-teams-add { align-items: flex-start; }
  .gf-teams-add .gf-btn { width: auto; }
}

/* ----- Teams tab: a team's page (the sections under the facts form) and the archive question ----- */
.gf-tsec { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2), 0 1px 2px var(--gf-card-shadow); }
.gf-tsec-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.gf-tsec h2 { margin: 0; font-size: 14px; line-height: 1.3; }
.gf-tsec-preview { flex: none; width: 48px; height: 60px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px var(--gf-hair2); }
.gf-tsec-locked { margin-top: 12px; }
.gf-archive-open { margin: 20px 0 0; text-align: center; }
.gf-archive-open .gf-link-btn { color: var(--gf-muted); }
.gf-archive { gap: 12px; }
.gf-archive p { margin: 0; }
.gf-archive-lead { line-height: 1.45; }
.gf-archive-choices { display: flex; flex-direction: column; gap: 8px; }
.gf-archive-choices .gf-check { box-sizing: border-box; min-height: 48px; padding: 6px 12px; border: 1px solid var(--gf-border); border-radius: 10px; cursor: pointer; }
.gf-archive-choices .gf-check:has(input:checked) { border-color: var(--gf-navy-fill); box-shadow: 0 0 0 1px var(--gf-navy-fill); }
.gf-archive-note { padding: 10px 12px; border-radius: 10px; background: var(--gf-surface); font-size: 14px; line-height: 1.4; }
.gf-archive-proposal { display: flex; gap: 10px; box-shadow: inset 4px 0 0 var(--gf-amber); }
.gf-archive-proposal svg { flex: none; color: var(--gf-amber); }
.gf-archive-actions { margin-top: 4px; }
.gf-archive-actions .gf-btn { flex: 1; min-height: 48px; }
.gf-archive-yes { border: 1px solid var(--gf-navy-fill); background: var(--gf-navy-fill); color: var(--gf-on-fill); }
.gf-archive-foot { font-size: 13px; line-height: 1.4; }


/* ===== The post page (templates/post_page.html, post_review.html; the script is static/src/pages/post.js). One page for every listing: type chips, the reader bar, "Posting as", the sections as cards,
   the bar that says what is missing, the review and "Your post is live" in place, and on a wide screen a live preview beside the form. Without the script the same markup is the plain form. ===== */
.gf-postpage { padding-bottom: 0; }
.gf-postpage-grid { display: block; }
.gf-postpage-main { min-width: 0; }
.gf-postpage .gf-page-form { gap: 16px; margin: 0; }
.gf-postpage .gf-section { margin: 0; }
.gf-pp-card { display: flex; flex-direction: column; box-sizing: border-box; gap: 14px; padding: 16px; border: 0; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2), 0 1px 2px var(--gf-card-shadow); }
.gf-pp-card > * { margin-top: 0; margin-bottom: 0; }
.gf-pp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-family: var(--gf-display); font-size: 22px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.15; }
.gf-pp-card > h3, .gf-pp-card .gf-section > h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.gf-pp-filled { flex: none; padding: 3px 8px; border-radius: 6px; background: var(--gf-field); box-shadow: inset 0 0 0 1px var(--gf-hair2); color: var(--gf-link); font-family: system-ui, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0; line-height: 1.2; white-space: nowrap; }
.gf-pp-notes { box-sizing: border-box; margin: 0; padding: 12px 16px 12px 32px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2), inset 4px 0 0 var(--gf-amber); font-size: 14px; line-height: 1.45; }
.gf-pp-notes li + li { margin-top: 4px; }
#pp-summary { margin: 0; }

/* the type chips: the chosen one filled, a locked one dashed with its lock */
.gf-pp-type > legend { margin-bottom: 8px; }
.gf-chip[aria-current="true"] { border-color: var(--gf-navy-fill); background: var(--gf-navy-fill); color: var(--gf-on-fill); }
a.gf-chip { text-decoration: none; }
.gf-chip-locked { flex-direction: row; gap: 6px; border-style: dashed; background: var(--gf-field); }
#pp-type-locked { margin: 8px 0 0; }
#pp-type-fixed { margin: 0 0 4px; font-size: 18px; }

/* the reader bar: a slim dashed card while locked */
.gf-reader.gf-pp-card { gap: 10px; }
.gf-reader h2 { margin: 0; font-size: 16px; font-weight: 700; }
.gf-reader p { margin: 0; }
.gf-reader .gf-locked { gap: 6px; padding: 0; }
.gf-reader .gf-locked-h { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.gf-reader .gf-locked .gf-lead { margin: 0; font-size: 14px; }
.gf-reader:has(#pp-reader-locked) { padding: 12px 14px; box-shadow: none; border: 1px dashed var(--gf-border); background: var(--gf-card); }
.gf-reader #pp-reader-line { color: var(--gf-muted); font-size: 14px; }
.gf-reader #pp-reader-actions { margin-top: 0; }
.gf-reader #pp-reader-actions .gf-btn { flex: 1 1 8rem; }
.gf-reader #pp-reader-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.gf-reader #pp-reader-panel { display: flex; flex-direction: column; gap: 12px; }
.gf-reader:has(#pp-reader-result:not([hidden])) { box-shadow: 0 0 0 2px var(--gf-link); }
.gf-reader #pp-reader-panel .gf-actions > .gf-pill-gold { width: 100%; }

/* "Posting as": a heading, then the team as one card line */
#pp-team > .gf-pp-head { margin-bottom: 8px; font-family: system-ui, sans-serif; font-size: 14px; letter-spacing: 0; }
#pp-team.gf-pp-card > .gf-pp-head { margin-bottom: 0; font-family: var(--gf-display); font-size: 22px; letter-spacing: 0.02em; }
.gf-team-line { display: flex; align-items: center; box-sizing: border-box; gap: 12px; min-height: 72px; padding: 12px 14px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2), 0 1px 2px var(--gf-card-shadow); }
.gf-team-line .gf-badge { width: 48px; height: 48px; border-radius: 8px; color: var(--badge-ink, #ffffff); font-family: var(--gf-display); font-size: 22px; }
.gf-team-line-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.gf-team-line-text strong { line-height: 1.25; }
.gf-team-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0; }
.gf-team-meta .gf-hit-rating { padding: 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--gf-border); color: var(--gf-navy); font-size: 13px; font-weight: 600; white-space: nowrap; }
.gf-team-line .gf-link-btn { flex: none; min-width: 44px; justify-content: center; font-size: 14px; font-weight: 700; text-decoration: none; }
#pp-team-list { margin: 8px 0; }
#pp-team-list .gf-check { box-sizing: border-box; min-height: 60px; padding: 6px 12px; border: 1px solid var(--gf-border); border-radius: 10px; cursor: pointer; }
#pp-team-list .gf-check:has(input:checked) { border-color: var(--gf-navy-fill); box-shadow: 0 0 0 1px var(--gf-navy-fill); }
#pp-team-list .gf-team-line-text { font-size: 15px; }
#pp-team-list .gf-hit-rating { flex: none; color: var(--gf-muted); font-size: 13px; }
#pp-first { display: flex; flex-direction: column; gap: 14px; }
#pp-first > p { margin: 0; }

/* the rows: lines under one another inside the card, not boxes in a box */
.gf-postpage .gf-rows { gap: 0; margin: 0; }
.gf-postpage .gf-row { margin-top: 14px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--gf-hair); border-radius: 0; }
.gf-postpage .gf-rows > .gf-row:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.gf-postpage .gf-row-title { margin: 0 0 8px; font-size: 14px; }
.gf-postpage .gf-rows > .gf-row:only-child > .gf-row-title { display: none; }
.gf-postpage[data-mode="new"] .gf-rows > .gf-row:only-child [data-act="remove"] { display: none; }
.gf-postpage .gf-row-actions { margin-top: 4px; }
.gf-postpage .gf-row-actions .gf-link-btn { font-size: 14px; }
.gf-postpage .gf-locked .gf-row { margin-top: 8px; padding-top: 8px; }
.gf-row-slot .gf-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gf-row-slot .gf-row-grid > .gf-span { grid-column: 1 / -1; }
.gf-row-grid > .gf-field { min-width: 0; }
.gf-postpage .gf-row-grid .gf-input { padding: 0 10px; }
#pp-when .gf-section > .gf-btn, #pp-divisions-section > .gf-btn { align-self: flex-start; margin-top: 12px; }
#pp-slots-section, #pp-dates-section, #pp-locked-section, #pp-divisions-section { display: flex; flex-direction: column; }
#pp-game-rows { display: flex; flex-direction: column; gap: 16px; }
#pp-game-rows[hidden], #pp-tournament[hidden] { display: none; }
#pp-tournament { display: flex; flex-direction: column; gap: 14px; }
#pp-tournament .gf-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gf-postpage .gf-hint, .gf-postpage .gf-muted.gf-small { margin: 0; }
.gf-postpage #pp-limit, .gf-postpage #pp-division-limit { margin: 8px 0 0; }
.gf-more-options { margin: 0; }
.gf-more-options > summary { padding: 0; font-weight: 700; }
.gf-more-options > .gf-field, .gf-more-options > .gf-fieldset { margin-top: 12px; }
.gf-more-options .gf-check { min-height: 44px; }
#pp-when > .gf-more { border-top: 1px solid var(--gf-hair); padding-top: 4px; }

/* Details: the sport's facts as chips (real checkboxes and radios), then the note */
.gf-chip { position: relative; }
.gf-chip input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.gf-chip:has(input:checked) { border-color: var(--gf-navy-fill); background: var(--gf-navy-fill); color: var(--gf-on-fill); }
.gf-chip:has(input:focus-visible) { outline: 3px solid var(--gf-link); outline-offset: 2px; }
.gf-chip-tick { flex-direction: row; gap: 6px; }
.gf-chip-tick:has(input:checked)::before { content: "\2713"; font-weight: 700; }
.gf-fact-choice { margin: 0; padding: 0; border: 0; }
.gf-fact-choice > legend { margin-bottom: 6px; }
.gf-fact-tick { gap: 0; }
.gf-details-group.gf-pp-card { gap: 14px; }
.gf-details-group [data-field="note"] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
.gf-details-group [data-field="note"] > * { grid-column: 1 / -1; min-width: 0; }
.gf-details-group [data-field="note"] > #pp-note-locked { grid-column: 1; align-self: center; }
.gf-details-group [data-field="note"] > #pp-note-count { grid-column: 2; align-self: center; justify-self: end; }
.gf-details-group [data-field="note"] > #pp-note-help { margin-top: -2px; }

/* the bar: what is missing, or the button (the first missing thing is where the button takes you) */
.gf-postbar { display: flex; flex-wrap: nowrap; align-items: center; box-sizing: border-box; gap: 12px; margin: 16px 0 0; }
.gf-postbar .gf-reason { flex: 1 1 0; min-width: 0; margin: 0; color: var(--gf-muted); font-size: 14px; font-weight: 600; line-height: 1.3; }
.gf-postbar .gf-reason.gf-pp-missing { color: var(--gf-amber); font-weight: 700; }
.gf-postbar .gf-btn { flex: none; min-height: 52px; border-radius: 999px; font-size: 16px; }
.gf-postbar .gf-pill-gold { min-width: 8.5rem; }
@media (max-width: 359px) {      /* a narrow phone: the missing-thing words get the room, the button its 44 px */
  .gf-postbar { gap: 8px; }
  .gf-postbar .gf-reason { font-size: 13px; }
  .gf-postbar .gf-btn { padding-left: 16px; padding-right: 16px; }
  .gf-postbar .gf-pill-gold, #pp-submit.gf-pill-outline { min-width: 0; }
}
#pp-submit.gf-pill-outline { min-width: 8.5rem; }
.gf-postbar #pp-post { flex: 1 1 auto; }
.gf-postbar #pp-back { flex: none; }
.gf-postpage[data-state="review"] .gf-postbar { flex-direction: row-reverse; justify-content: flex-start; }
#rv-bar { flex-wrap: wrap; }                                   /* the review page without a script: the skip tick takes a line, Post it and Back to edit share the next */
#rv-bar #rv-skip { flex: 1 1 100%; }
@media (max-width: 719.98px) {
  /* on a phone the bar sits directly above the bottom tabs (the tabs' height is --gf-nav-h, as for the post page's "Message this team" bar), safe area included */
  .gf-postpage-main > .gf-postbar { position: sticky; bottom: var(--gf-nav-h, 0px); z-index: 4; min-height: 64px; margin: 16px -16px 0; padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--gf-hair2); background: var(--gf-card); box-shadow: 0 -4px 12px var(--shadow); }
  body:not(.gf-has-nav) .gf-postpage-main > .gf-postbar { bottom: 0; }
  #pp-preview { display: none !important; }
}
.gf-postpage-main { padding-bottom: 0; }
.gf-postpage[data-state="posted"] .gf-postbar { display: none; }

/* a wide screen: the form on the left, the live preview on the right */
@media (min-width: 720px) {
  main.gf-postpage.gf-pp-wide { max-width: 66rem; }
  .gf-pp-wide .gf-postpage-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 24px; align-items: start; }
  .gf-pp-wide[data-state="review"] .gf-postpage-grid, .gf-pp-wide[data-state="posted"] .gf-postpage-grid { grid-template-columns: minmax(0, 40rem); justify-content: center; }
  .gf-postpage-main > .gf-postbar { padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2), 0 1px 2px var(--gf-card-shadow); }
  .gf-postpage-preview { position: sticky; top: 16px; }
}
.gf-postpage-preview { gap: 12px; }
.gf-postpage-preview h2 { margin: 0; font-family: var(--gf-display); font-size: 22px; letter-spacing: 0.02em; }
.gf-postpage-preview .gf-share-img { max-width: 16rem; margin: 0 auto; }
.gf-postpage-preview .gf-linkmock-img { background: var(--gf-hair); }
.gf-postpage[data-state="review"] .gf-postpage-preview, .gf-postpage[data-state="posted"] .gf-postpage-preview { display: none; }

/* the review and "Your post is live": in place, on the page's grey */
.gf-postpage[data-state="review"] > h1, .gf-postpage[data-state="posted"] > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#pp-review, #pp-posted { display: flex; flex-direction: column; gap: 14px; }
#pp-review:focus, #pp-posted:focus, #pp-review-h:focus, #pp-posted-h:focus { outline: none; }
#pp-review-h, #pp-posted-h { margin: 0; font-family: var(--gf-display); font-size: 32px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; }
#pp-review .gf-lead { margin: 0; }
#pp-posted .gf-share-head { gap: 10px; }
#pp-posted .gf-tick { margin-bottom: 0; }
#pp-posted > p { margin: 0; }
#pp-posted .gf-actions { margin: 0; }
#pp-posted .gf-actions > .gf-btn { flex: none; min-height: 48px; }       /* (a column: each button its own height, never stretched) */
#pp-posted .gf-share-tailgate { margin: 4px 0 0; }
.gf-seg-wrap { flex-direction: column; align-items: stretch; gap: 6px; }
.gf-seg { display: flex; }
.gf-seg button { display: inline-flex; flex: 1; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; min-height: 48px; margin-left: -2px; padding: 0 0.9rem; border: 2px solid var(--gf-border); background: var(--gf-card); color: var(--gf-navy); font: inherit; font-weight: 700; cursor: pointer; }
.gf-seg button:first-child { margin-left: 0; border-radius: 999px 0 0 999px; }
.gf-seg button:last-child { border-radius: 0 999px 999px 0; }
.gf-seg button[aria-pressed="true"] { position: relative; border-color: var(--gf-navy-fill); background: var(--gf-navy-fill); color: var(--gf-on-fill); }
.gf-seg button:focus-visible { position: relative; outline: 3px solid var(--gf-link); outline-offset: 2px; }
.gf-pp-review-body { display: flex; flex-direction: column; gap: 16px; }
.gf-review-preview { padding: 12px; border-radius: 14px; background: var(--gf-surface); box-shadow: inset 0 0 0 1px var(--gf-hair2); }
.gf-review-preview .gf-group-h { margin: 0 0 8px; }
.gf-review-preview .gf-hits-posters { grid-template-columns: minmax(0, 18rem); justify-content: center; }
.gf-review-link h3, .gf-pp-notshown h3 { margin: 0 0 8px; font-size: 16px; }
.gf-pp-notshown { padding: 14px 16px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2); }
.gf-pp-notshown-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0 0 10px; }
.gf-pp-notshown-list dt { color: var(--gf-muted); font-weight: 700; }
.gf-pp-notshown-list dd { margin: 0; overflow-wrap: anywhere; }
.gf-pp-skip { box-sizing: border-box; padding: 0 4px; }
.gf-linkmock-text { background: var(--gf-card); }
.gf-chip:has(input[value=""]:checked) { border-color: var(--gf-border); background: var(--gf-card); color: var(--gf-muted); }
@media (max-width: 359.98px) { .gf-postpage .gf-row-grid input[type="time"] { padding: 0 6px; font-size: 14px; } .gf-postpage .gf-row-grid { gap: 10px 8px; } }
html.js .gf-chip-none { display: none; }
.gf-pp-card > fieldset.gf-fieldset { margin: 0; }
#pp-ticks > legend { margin-bottom: 8px; }
/* one list shows (host or travel): its own heading would repeat "When and where"; "Either" shows both */
.gf-postpage[data-type="host"] #pp-slots-h, .gf-postpage[data-type="travel"] #pp-dates-h { display: none; }
#pp-posted .gf-actions { flex-direction: column; align-items: stretch; gap: 4px; }
#pp-posted #pp-post-another { min-height: 48px; border: 1px solid var(--gf-border); background: var(--gf-card); color: var(--gf-navy); }
#pp-posted #pp-see-posts { min-height: 44px; border-color: transparent; background: none; color: var(--gf-link); font-weight: 600; text-decoration: underline; }
#pp-remove { align-self: flex-start; margin-top: 16px; min-height: 44px; font-size: 14px; }
.gf-row-slot .gf-row-grid { align-items: end; }
@media (max-width: 359.98px) { #pp-tournament > .gf-row-grid { grid-template-columns: minmax(0, 1fr); } }      /* a narrow phone: the tournament's first and last day one to a row (two clip the date picker icon) */
/* The review's pictures while they are drawn: a placeholder of the picture's own shape (aspect-ratio is set inline), the page's quiet busy look, and the error with its Retry */
.gf-pic-wait { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 14px; background: var(--gf-field, var(--hover)); color: var(--gf-muted, var(--muted)); font-size: 14px; text-align: center; }
.gf-pic-wait-tall { aspect-ratio: 1080 / 1350; }
.gf-pic-wait-wide { aspect-ratio: 1200 / 630; }
.gf-pic-wait[aria-busy="true"] { animation: gf-pic-pulse 1.4s ease-in-out infinite; }
@keyframes gf-pic-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .gf-pic-wait[aria-busy="true"] { animation: none; opacity: 0.8; } }
.gf-linkmock .gf-pic-wait { border-radius: 0; }
/* "Your posts": the past posts, in a closed <details> under the current ones, quieter cards */
.gf-past-section { margin: 1.25rem 0; }
.gf-past > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 1.1rem; }
.gf-past > .gf-hint { margin: 0 0 0.75rem; }
.gf-post-past { opacity: 0.85; }
.gf-pc-state-past .gf-dot { background: var(--gf-muted, var(--muted)); }
.gf-pc-state-past { color: var(--gf-muted, var(--muted)); }
#mp-past-posts { display: flex; flex-direction: column; gap: 0.75rem; }

/* ---- operator pages: five tabs, one account page, search, confirm (templates/admin_base.html and its tabs; admin.js). Phone first (390px); a left rail from 64rem. ---- */
.gf-adm { box-sizing: border-box; flex: 1 0 auto; width: 100%; background: var(--gf-surface); color: var(--gf-navy); }
.gf-adm-top { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--gf-card); }
.gf-adm-tag { flex: none; padding: 2px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--gf-amber); color: var(--gf-amber); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }
.gf-adm-search { display: flex; flex: 1; gap: 8px; min-width: 0; }
.gf-adm-search input { flex: 1; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--gf-border); border-radius: 10px; background: var(--gf-field); color: inherit; font: inherit; }
.gf-adm-tabs { display: flex; gap: 3px; padding: 8px 8px 10px; overflow-x: auto; scrollbar-width: none; background: var(--gf-card); box-shadow: 0 1px 0 var(--gf-hair); }
.gf-adm-tabs::-webkit-scrollbar { display: none; }
.gf-adm-tabs.gf-adm-fade { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.gf-adm-short { display: inline; }
.gf-adm-long { display: none; }
.gf-adm-tabs a { display: inline-flex; flex: none; align-items: center; gap: 4px; min-height: 44px; box-sizing: border-box; padding: 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--gf-border); color: var(--gf-navy); font-size: 13px; font-weight: 700; text-decoration: none; }
.gf-adm-tabs a[aria-current="page"] { background: var(--gf-navy-fill); box-shadow: none; color: var(--gf-on-fill); }
.gf-adm-badge { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gf-gold); color: #0b1f3a; font-size: 12px; font-weight: 800; }
.gf-adm main.gf-admin { box-sizing: border-box; max-width: none; margin: 0; padding: 16px 16px 32px; text-align: left; }
.gf-adm main.gf-admin h1 { margin: 0 0 8px; font-size: 28px; font-weight: 800; line-height: 1.1; }
.gf-adm main.gf-admin h2 { margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.gf-adm main.gf-admin h3 { overflow-wrap: anywhere; }
.gf-adm main.gf-admin section { margin-bottom: 24px; }
.gf-adm .gf-admin-result { margin: 0 0 16px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--gf-card); box-shadow: inset 0 0 0 1.5px var(--gf-green); font-size: 14px; }
.gf-adm-card { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; padding: 14px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2), 0 1px 2px var(--gf-card-shadow); }
.gf-adm-card h3, .gf-adm-card p { margin: 0; text-align: left; }
.gf-adm-card ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.gf-adm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gf-adm .gf-admin-form { display: inline-flex; gap: 8px; }
.gf-adm .gf-pill-outline { min-height: 44px; border-radius: 999px; font-size: 14px; }
.gf-adm .gf-btn-danger { border-color: var(--gf-error); color: var(--gf-error); }
.gf-adm-who { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; min-height: 44px; box-sizing: border-box; max-width: 100%; padding: 0 12px 0 6px; border-radius: 999px; background: var(--gf-field); box-shadow: inset 0 0 0 1px var(--gf-hair2); color: var(--gf-navy); font-size: 14px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.gf-adm-av { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--gf-navy-fill); color: var(--gf-on-fill); font-size: 13px; font-weight: 700; }
.gf-adm-av-lg { width: 56px; height: 56px; font-size: 24px; }
.gf-adm-more { position: relative; }
.gf-adm-more > summary { list-style: none; cursor: pointer; }
.gf-adm-more > summary::-webkit-details-marker { display: none; }
.gf-adm-more-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 8px; border-radius: 12px; background: var(--gf-field); box-shadow: inset 0 0 0 1px var(--gf-hair2); }
.gf-adm-empty { padding: 16px; border-radius: 14px; background: var(--gf-card); box-shadow: inset 0 0 0 1.5px var(--gf-green); }
.gf-adm-empty h2, .gf-adm-empty p { margin: 0 0 6px; }
.gf-adm-none { margin: 0 0 16px; padding: 0; list-style: none; }
.gf-adm-none li { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; border-bottom: 1px solid var(--gf-hair); font-size: 14px; }
.gf-adm-none li span:last-child { color: var(--gf-muted); }
.gf-adm-results { margin: 0; padding: 0; list-style: none; }
.gf-adm-hit { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 12px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2); color: inherit; text-decoration: none; }
.gf-adm-hit-main { display: flex; flex: 1; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.gf-adm-back { margin: 0 0 8px; }
.gf-adm-back a { display: inline-flex; align-items: center; min-height: 44px; }
.gf-adm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gf-adm-head h1 { margin: 0; }
.gf-adm-head p { margin: 0; }
.gf-adm-standing { margin-left: auto; padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--gf-amber); color: var(--gf-amber); font-size: 13px; font-weight: 700; }
.gf-adm-standing.gf-adm-barred { box-shadow: inset 0 0 0 1.5px var(--gf-error); color: var(--gf-error); }
.gf-adm-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 12px; margin: 12px 0 8px; }
.gf-adm-facts dt { margin-top: 8px; color: var(--gf-muted); font-size: 13px; }
.gf-adm-facts dd { margin: 0; overflow-wrap: anywhere; }
.gf-adm-fullid summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--gf-link); }
.gf-adm-fullid code { display: block; overflow-wrap: anywhere; }
.gf-adm-toast { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--gf-navy-fill); color: var(--gf-on-fill); font-size: 14px; }
.gf-adm-line { margin: 0 0 8px; overflow-wrap: anywhere; }
.gf-adm-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.gf-adm-inline { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 8px; }
.gf-adm label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.gf-adm select, .gf-adm input[type="date"], .gf-adm input[type="text"] { min-height: 44px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--gf-border); border-radius: 10px; background: var(--gf-field); color: inherit; font: inherit; }
.gf-adm .gf-adm-planform { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 32rem; }
.gf-adm .gf-adm-planform button { justify-self: start; }
.gf-adm-wholine { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.gf-confirm { box-sizing: border-box; max-width: 32rem; padding: 16px; border-radius: 14px; background: var(--gf-card); box-shadow: 0 0 0 1px var(--gf-hair2); }
.gf-confirm h1 { margin: 0 0 8px; font-size: 22px; }
.gf-confirm-form { display: flex; flex-direction: column; gap: 8px; }
.gf-confirm-form .gf-adm-actions { margin-top: 8px; }
.gf-confirm-form input[type="text"] { min-height: 44px; }
dialog.gf-adm-dialog { box-sizing: border-box; width: min(32rem, 100%); max-height: 90vh; margin: auto 0 0; padding: 0; overflow-y: auto; border: 0; border-radius: 20px 20px 0 0; background: var(--gf-card); color: var(--gf-navy); }
dialog.gf-adm-dialog::backdrop { background: rgba(11, 31, 58, 0.55); }
dialog.gf-adm-dialog .gf-confirm { box-shadow: none; }
@media (min-width: 40rem) { dialog.gf-adm-dialog { margin: auto; border-radius: 20px; } }
@media (min-width: 64rem) {
  .gf-adm { display: grid; grid-template-columns: 15rem minmax(0, 1fr); grid-template-areas: "top top" "tabs main"; align-content: start; }
  .gf-adm-top { grid-area: top; padding: 10px 24px; }
  .gf-adm-search { max-width: 36rem; }
  .gf-adm-tabs { grid-area: tabs; flex-direction: column; align-self: start; gap: 4px; overflow: visible; padding: 16px; box-shadow: 1px 0 0 var(--gf-hair); min-height: 100%; }
  .gf-adm-tabs a { border-radius: 10px; box-shadow: none; padding: 0 14px; font-size: 14px; }
  .gf-adm-short { display: none; }
  .gf-adm-long { display: inline; }
  .gf-adm-tabs.gf-adm-fade { -webkit-mask-image: none; mask-image: none; }
  .gf-adm-tabs a:not([aria-current="page"]):hover { background: var(--gf-field); }
  .gf-adm-badge { margin-left: auto; }
  .gf-adm main.gf-admin { grid-area: main; max-width: 60rem; padding: 24px 32px 48px; }
  .gf-adm-actions form, .gf-adm-actions .gf-btn { flex: none; }
}
