/* =========================================================================
   Friday Night Hockey — "Rinkside" design system
   Navy boards, ice-white surfaces, red-line accents. Mobile first.
   ========================================================================= */

.fnh {
  /* Team colours: jersey black and jersey red (#e52a24). */
  --ink: #111111;          /* jersey black: header, headings, primary buttons */
  --ink-2: #2e2e2e;
  --red: #e52a24;          /* jersey red: accents, selected states, badges */
  --red-text: #c41f1a;     /* the same red, darkened so small text passes WCAG AA on white */
  --red-dark: #b81d18;
  --red-soft: #fdeceb;
  --ice: #f3f3f3;          /* neutral light grey wash */
  --ice-2: #e4e4e4;
  --card: #ffffff;
  --line: #dcdcdc;
  --muted: #5f5f5f;
  /* Functional colours (status only, never decoration). */
  --blue: var(--red-text);
  --blue-soft: var(--ice);
  --gold: #f2b705;
  --gold-soft: #fff4cf;
  --green: #11804f;
  --green-soft: #e0f3e9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .06);
  --tap: 44px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
.fnh *, .fnh *::before, .fnh *::after { box-sizing: border-box; }
.fnh [hidden] { display: none !important; }
.fnh a { color: var(--blue); }
.fnh h1, .fnh h2, .fnh h3 { color: var(--ink); font-family: var(--font); letter-spacing: -.01em; }
.fnh.fnh-app { padding-bottom: 24px; }

/* ---------- Form controls ---------- */
.fnh input[type="text"], .fnh input[type="email"], .fnh input[type="tel"], .fnh input[type="number"],
.fnh input[type="password"], .fnh input[type="date"], .fnh input[type="datetime-local"],
.fnh input[type="search"], .fnh input[type="url"], .fnh select, .fnh textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: none;
  margin: 0;
  transition: border-color .15s, box-shadow .15s;
}
.fnh textarea { resize: vertical; min-height: 88px; }
.fnh input:focus, .fnh select:focus, .fnh textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(229, 42, 36, .18);
}
.fnh ::placeholder { color: #9a9a9a; }
.fnh :focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.fnh-fld { display: block; margin: 0 0 14px; min-width: 0; border: 0; padding: 0; }
.fnh-fld > span, .fnh-fld > legend { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0; }
.fnh-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
.fnh-grid-3 { display: grid; grid-template-columns: 1fr 1.3fr 1.2fr; gap: 8px; }
@media (min-width: 560px) { .fnh-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fnh-req { color: var(--red-text); }

.fnh-toggle { display: flex; align-items: center; gap: 10px; min-height: var(--tap); cursor: pointer; font-weight: 600; }
.fnh-toggle input { width: 20px; height: 20px; accent-color: var(--red); }
.fnh-checkbox { width: 18px; height: 18px; accent-color: var(--red); }

/* Segmented control (radios / checkboxes / buttons) */
.fnh-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--ice); border-radius: 999px; }
.fnh-seg > label, .fnh-seg > button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 14px; margin: 0;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2);
  background: transparent; border: 0; border-radius: 999px; cursor: pointer;
}
.fnh-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fnh-seg > label:has(input:checked), .fnh-seg > button.is-on { color: #fff; background: var(--ink); }
.fnh-seg > label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 1px; }
.fnh-seg-wide { display: flex; border-radius: 14px; }
.fnh-seg-wide > label { flex: 1 1 0; border-radius: 10px; min-height: var(--tap); }

/* ---------- Buttons ---------- */
.fnh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 0 18px;
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1.1;
  color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.fnh-btn:hover { background: var(--ice); color: var(--ink); border-color: var(--ice-2); }
.fnh-btn:active { transform: translateY(1px); }
.fnh-btn-primary { color: #fff; background: var(--red); border-color: var(--red); }
.fnh-btn-primary:hover { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.fnh-btn-primary:disabled, .fnh-btn-primary.is-disabled { background: #a3a3a3; border-color: #a3a3a3; cursor: default; }
.fnh-btn-outline { color: var(--blue); border-color: var(--blue); }
.fnh-btn-soft { color: var(--ink); background: var(--ice); border-color: var(--ice); }
.fnh-btn-danger { color: var(--red-text); border-color: #f2b9b6; }
.fnh-btn-danger:hover { background: var(--red-soft); color: var(--red-text); }
.fnh-btn-small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.fnh-btn-block { width: 100%; }
.fnh-btn:disabled { opacity: .55; cursor: default; }
.fnh-link { padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--blue); background: none; border: 0; cursor: pointer; text-decoration: none; }
.fnh-link:hover { text-decoration: underline; background: none; }
.fnh-round { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--ink); background: var(--ice); border-radius: 50%; text-decoration: none; }
.fnh-round:hover { background: var(--ice-2); }

/* ---------- Icons ---------- */
.fnh-ic, .fnh-icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.fnh-icon { width: 14px; height: 14px; }
.fnh-ic-xl { width: 40px; height: 40px; color: var(--muted); }
.fnh-ic-bell { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 16V11a6 6 0 0112 0v5l2 2H4z'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E"); }
.fnh-ic-check, .fnh-icon-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E"); }
.fnh-ic-x { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.fnh-ic-poll, .fnh-icon-poll { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='14' height='4' rx='2'/%3E%3Crect x='3' y='10' width='18' height='4' rx='2'/%3E%3Crect x='3' y='16' width='9' height='4' rx='2'/%3E%3C/svg%3E"); }
.fnh-ic-clip, .fnh-icon-clip { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M21 11l-8.5 8.5a5 5 0 01-7-7L14 4a3.5 3.5 0 015 5l-8.5 8.5a2 2 0 01-3-3L15 7'/%3E%3C/svg%3E"); }
.fnh-ic-photo, .fnh-icon-photo { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-9 8'/%3E%3C/svg%3E"); }
.fnh-ic-phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2a1 1 0 011-.25 11.4 11.4 0 003.6.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.45.57 3.57a1 1 0 01-.25 1z'/%3E%3C/svg%3E"); }
.fnh-ic-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E"); }
.fnh-ic-send { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11l18-8-8 18-2-8z'/%3E%3C/svg%3E"); }
.fnh-icon-money { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }

/* The puck logo */
.fnh-puck { position: relative; display: inline-block; width: 30px; height: 20px; flex: 0 0 auto; border-radius: 50% / 40%; background: linear-gradient(#3a3a3a, #111 60%, #000); box-shadow: inset 0 3px 0 rgba(255,255,255,.18), 0 2px 0 #000; }
.fnh-puck::after { content: ""; position: absolute; left: 4px; right: 4px; top: 7px; height: 2px; background: var(--red); border-radius: 2px; opacity: .9; }
.fnh-puck-lg { width: 64px; height: 40px; margin-bottom: 10px; }
.fnh-puck-lg::after { top: 15px; height: 3px; }

/* ---------- Avatars, tags, pills ---------- */
.fnh-ava { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--ink); background: #e9e9e9; box-shadow: inset 0 -3px 0 var(--red); }
.fnh-ava-sm { width: 30px; height: 30px; font-size: 11px; }
.fnh-ava-lg { width: 72px; height: 72px; font-size: 24px; }
.fnh-tag { display: inline-flex; align-items: center; padding: 2px 8px; font-size: 11px; font-weight: 800; font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); background: var(--ice); border-radius: 6px; }
.fnh-tag-soft { text-transform: none; letter-spacing: 0; font-weight: 700; background: var(--red-soft); color: var(--red-text); }
.fnh-tag-warn { color: #7a5800; background: var(--gold-soft); }
.fnh-tag-poll { color: #fff; background: var(--ink); margin-left: auto; }
.fnh-pill { display: inline-flex; align-items: center; padding: 4px 10px; font-size: 12px; font-weight: 800; border-radius: 999px; background: var(--ice); }
.fnh-pill-in { color: var(--red-text); background: var(--red-soft); }
.fnh-pill-out { color: #fff; background: var(--ink); }
.fnh-pill-new { color: #fff; background: var(--red); }
.fnh-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 11px; font-weight: 700; color: var(--red-text); background: var(--red-soft); border-radius: 6px; vertical-align: middle; }
.fnh-badge-muted { color: var(--muted); background: var(--ice); }

/* ---------- Generic surfaces ---------- */
.fnh-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 14px; box-shadow: var(--shadow); }
.fnh-card-title { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.fnh-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fnh-fieldset { border: 1px solid var(--line); }
.fnh-fieldset > legend, details.fnh-fieldset > summary { float: left; width: 100%; margin: 0 0 14px; padding: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.fnh-fieldset > legend + * { clear: both; }
details.fnh-fieldset > summary { float: none; cursor: pointer; list-style: none; margin: 0; }
details.fnh-fieldset > summary .fnh-muted-line { display: block; margin-top: 2px; text-transform: none; letter-spacing: 0; font-weight: 500; }
details.fnh-fieldset[open] > summary { margin-bottom: 14px; }
details.fnh-fieldset > summary::-webkit-details-marker { display: none; }
details.fnh-fieldset > summary::after { content: "+"; float: right; font-size: 18px; color: var(--muted); }
details.fnh-fieldset[open] > summary::after { content: "−"; }
.fnh-muted-line { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.fnh-hint { font-size: 12px; color: var(--muted); }
.fnh-callout { margin: 0 0 12px; padding: 10px 14px; font-size: 14px; background: var(--ice); border-left: 4px solid var(--red); border-radius: var(--radius-sm); color: var(--ink-2); }
.fnh-callout-warn { background: var(--gold-soft); color: #5c4300; }
.fnh-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 2px 10px; }
.fnh-section-head h1, .fnh-section-head h2 { margin: 0; font-size: 20px; font-weight: 850; }
.fnh-section-head h1 { font-size: 24px; }
.fnh-section-tools { display: inline-flex; gap: 14px; font-size: 14px; font-weight: 700; }
.fnh-section-tools a { text-decoration: none; }
.fnh-empty, .fnh-empty-state { padding: 32px 20px; text-align: center; color: var(--muted); background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.fnh-empty-state h2 { margin: 0 0 6px; font-size: 18px; }
.fnh-empty-state p { margin: 0 0 14px; }
.fnh-backbar, .fnh-detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 2px 12px; }
.fnh-backbar a:not(.fnh-btn), .fnh-backlink { font-weight: 700; text-decoration: none; }
.fnh-backbar span, .fnh-detail-nav span { display: inline-flex; gap: 6px; }
.fnh-backlink { display: inline-block; margin: 4px 2px 10px; }
.fnh-close { font-size: 28px; line-height: 1; color: var(--muted); text-decoration: none; }

/* Notices */
.fnh-notice { padding: 12px 16px; margin: 0 0 14px; border-radius: var(--radius-sm); border: 0; font-weight: 600; }
.fnh-notice-success { color: #0a5a3e; background: var(--green-soft); }
.fnh-notice-error { color: #8f1612; background: var(--red-soft); }
.fnh-notice-pending { color: #5c4300; background: var(--gold-soft); }

/* ---------- Next-game hero ---------- */
.fnh-hero { position: relative; margin: 0 0 14px; padding: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.fnh-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.fnh-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.fnh-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); }
.fnh-hero-top .fnh-kicker + .fnh-kicker { color: var(--muted); }
.fnh-hero-edit { font-size: 13px; font-weight: 700; text-decoration: none; }
.fnh-hero-main { display: flex; gap: 16px; align-items: center; color: inherit !important; text-decoration: none; }
.fnh-hero-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 78px; height: 86px; color: #fff; background: var(--ink); border-radius: 14px; line-height: 1; }
.fnh-hero-dow, .fnh-hero-mon { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.fnh-hero-day { margin: 3px 0; font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; }
.fnh-hero-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fnh-hero-title { margin: 0; font-size: 21px; font-weight: 850; line-height: 1.15; }
.fnh-hero-time { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.fnh-hero-place { font-size: 14px; color: var(--muted); text-decoration: none; }
.fnh-hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.fnh-hero-more { font-size: 14px; font-weight: 700; text-decoration: none; }

/* Roster meter */
.fnh-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding: 10px 12px; background: var(--ice); border-radius: 12px; }
.fnh-meter-total { display: inline-flex; align-items: baseline; gap: 5px; }
.fnh-meter-total strong { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.fnh-meter-total span { font-size: 13px; font-weight: 700; color: var(--muted); }
.fnh-meter-pos { display: inline-flex; gap: 6px; }
.fnh-pos { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 9px; font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; border-radius: 999px; }
.fnh-pos b { font-size: 14px; color: var(--ink); }
.fnh-meter-warn { margin-left: auto; padding: 3px 10px; font-size: 12px; font-weight: 800; color: #7a5800; background: var(--gold-soft); border-radius: 999px; }

/* In / out */
.fnh-inout { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.fnh-in, .fnh-out { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; font: inherit; font-size: 16px; font-weight: 800; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.fnh-in:hover:not(:disabled) { border-color: var(--red); color: var(--red-text); }
.fnh-out:hover { border-color: var(--ink); color: var(--ink); }
.fnh-in.is-on { color: #fff; background: var(--red); border-color: var(--red); }
.fnh-out.is-on { color: #fff; background: var(--ink); border-color: var(--ink); }
.fnh-in:disabled { opacity: .45; cursor: not-allowed; }
.fnh-inout-sm { display: inline-flex; gap: 6px; }
.fnh-inout-sm .fnh-in, .fnh-inout-sm .fnh-out { min-height: 38px; padding: 0 12px; font-size: 13px; border-radius: 999px; border-width: 1.5px; }
.fnh-inout-sm .fnh-ic { width: 14px; height: 14px; }
.fnh-playing-as { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
.fnh-playing-as-label { font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------- Schedule list ---------- */
.fnh-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.fnh-game { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.fnh-game-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 54px; height: 60px; line-height: 1; color: var(--ink) !important; background: var(--ice); border-radius: 10px; text-decoration: none; }
.fnh-game-stub span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fnh-game-stub b { margin: 2px 0; font-size: 22px; font-weight: 900; }
.fnh-game-info { display: flex; flex-direction: column; flex: 1; min-width: 0; color: inherit !important; text-decoration: none; }
.fnh-game-title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fnh-game-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fnh-game-side { flex: 0 0 auto; }
@media (max-width: 480px) {
  .fnh-game { flex-wrap: wrap; }
  .fnh-game-side { flex-basis: 100%; display: flex; justify-content: flex-end; }
}

/* ---------- Board ---------- */
.fnh-composer { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.fnh-composer-prompt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 40px; display: block; line-height: 40px; padding: 0 14px; color: var(--muted) !important; background: var(--ice); border-radius: 999px; text-decoration: none; font-size: 14px; }
.fnh-chips { display: flex; gap: 6px; margin: 0 0 12px; }
.fnh-chip-link { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; font-size: 13px; font-weight: 700; color: var(--ink-2) !important; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; }
.fnh-chip-link.is-on { color: #fff !important; background: var(--red); border-color: var(--red); }
.fnh-item { margin: 0 0 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.fnh-item-poll { border-top: 4px solid var(--ink); }
.fnh-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fnh-item-author { font-weight: 800; }
.fnh-item-time { font-size: 12px; color: var(--muted); }
.fnh-item-title { margin: 0 0 6px; font-size: 18px; font-weight: 850; line-height: 1.25; }
.fnh-item-body { color: #222; }
.fnh-item-body p { margin: 0 0 8px; }
.fnh-item-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.fnh-more { margin-bottom: 8px; }
.fnh-media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 10px 0; border-radius: 12px; overflow: hidden; }
.fnh-media-one { grid-template-columns: 1fr; }
.fnh-media img, .fnh-media video { display: block; width: 100%; height: 100%; max-height: 360px; object-fit: cover; }
.fnh-media-one img { object-fit: contain; background: var(--ice); }
.fnh-files { list-style: none; margin: 8px 0; padding: 0; }
.fnh-files a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.fnh-thread { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.fnh-thread > summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--blue); list-style: none; min-height: 32px; display: flex; align-items: center; }
.fnh-thread > summary::-webkit-details-marker { display: none; }
.fnh-reply { display: flex; gap: 8px; margin: 10px 0; }
.fnh-reply-bubble { padding: 8px 12px; background: var(--ice); border-radius: 4px 14px 14px 14px; font-size: 14px; }
.fnh-reply-bubble strong { margin-right: 6px; }
.fnh-reply-form { display: flex; gap: 8px; margin-top: 8px; }
.fnh-vote { margin-top: 8px; }
.fnh-vote-opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; margin: 0 0 6px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; }
.fnh-vote-opt > * { position: relative; z-index: 1; }
.fnh-vote-opt input { width: 18px; height: 18px; accent-color: var(--red); }
.fnh-vote-opt.is-mine, .fnh-vote-opt:has(input:checked) { border-color: var(--red); }
.fnh-vote-text { flex: 1; font-weight: 600; }
.fnh-vote-pct { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.fnh-vote-opt .fnh-vote-bar { position: absolute; z-index: 0; inset: 0 auto 0 0; background: var(--red-soft); }
.fnh-vote-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }

/* Panels (inline create forms) */
.fnh-panel { margin: 0 0 14px; padding: 16px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); }
.fnh-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fnh-panel-head h2 { margin: 0; font-size: 18px; }
.fnh-panel-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
details.fnh-panel { border-width: 1px; border-color: var(--line); }
details.fnh-panel > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 800; list-style: none; }
details.fnh-panel > summary::-webkit-details-marker { display: none; }
details.fnh-panel[open] > summary { margin-bottom: 14px; }

/* ---------- Alerts ---------- */
.fnh-inbox { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fnh-notice-item { display: flex; gap: 12px; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fnh-notice-item:last-child { border-bottom: 0; }
.fnh-notice-item.is-unread { background: #fff6f5; }
.fnh-notice-dot { flex: 0 0 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: transparent; }
.fnh-notice-item.is-unread .fnh-notice-dot { background: var(--red); }
.fnh-notice-main { min-width: 0; }
.fnh-notice-meta { font-size: 12px; color: var(--muted); }
.fnh-notice-title { display: block; margin: 3px 0 2px; font-weight: 800; color: var(--ink) !important; text-decoration: none; }
a.fnh-notice-title:hover { text-decoration: underline; }
.fnh-notice-body { font-size: 14px; color: #333; }
.fnh-kind-reminder .fnh-tag, .fnh-kind-announcement .fnh-tag { color: var(--red-text); background: var(--red-soft); }

/* ---------- Event detail ---------- */
.fnh-facts { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0; }
.fnh-facts dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.fnh-facts dd { margin: 0; }
.fnh-roster-pos { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fnh-roster-pos span { padding: 0 8px; color: var(--ink); background: var(--ice); border-radius: 999px; }
.fnh-people { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.fnh-people li { margin: 0; }
.fnh-person { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; color: var(--ink) !important; background: var(--ice); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; }
.fnh-person:hover { background: var(--ice-2); }
.fnh-person .fnh-tag { margin-left: 2px; padding: 0 5px; font-size: 9px; background: #fff; }
.fnh-people-muted .fnh-person { opacity: .8; }
.fnh-roster-more { margin-top: 14px; }
.fnh-roster-more > summary { cursor: pointer; font-weight: 800; min-height: 36px; display: flex; align-items: center; }
.fnh-roster-more[open] > summary { margin-bottom: 8px; }
.fnh-tasks { list-style: none; margin: 0; padding: 0; }
.fnh-tasks li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fnh-tasks li:last-child { border-bottom: 0; }
.fnh-task-title { flex: 1; font-weight: 700; }
.fnh-tasks form { margin: 0; }
.fnh-lineup-teams { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .fnh-lineup-teams { grid-template-columns: 1fr 1fr; } }
.fnh-lineup-team { padding: 12px; background: var(--ice); border-radius: 12px; }
.fnh-lineup-team ul { margin: 2px 0 8px; padding-left: 18px; }
.fnh-lineup-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fnh-lineup-swatch { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #999; }

/* ---------- Form pages (create game / post) ---------- */
.fnh-page-head { margin: 4px 2px 14px; }
.fnh-page-head a { font-weight: 700; text-decoration: none; }
.fnh-page-head h1 { margin: 6px 0 4px; font-size: 26px; font-weight: 900; }
.fnh-savebar { position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: flex-end; gap: 8px; margin: 0 -2px; padding: 12px 2px; background: linear-gradient(rgba(238,244,250,0), var(--ice) 35%); }
.fnh-savebar .fnh-btn-danger { margin-right: auto; }
.fnh-drop { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; margin-bottom: 10px; padding: 10px; font-weight: 700; color: var(--ink-2); background: var(--ice); border: 1.5px dashed var(--ice-2); border-radius: 12px; cursor: pointer; overflow: hidden; text-align: center; }
.fnh-drop:hover { border-color: var(--red); }
.fnh-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fnh-file-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fnh-task-list { list-style: none; margin: 0 0 6px; padding: 0; }
.fnh-task-list li { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 12px; margin: 0 0 6px; background: var(--ice); border-radius: 10px; }

/* Hosts picker */
.fnh-picker { position: relative; display: flex; align-items: center; min-height: var(--tap); padding: 4px 6px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.fnh-picker:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(229, 42, 36, .18); }
.fnh-picker-chips { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fnh .fnh-picker-input { flex: 1; min-width: 120px; min-height: 34px; border: 0; padding: 4px; box-shadow: none !important; }
.fnh-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; font-size: 13px; font-weight: 600; background: var(--ice); border-radius: 999px; }
.fnh-chip-x { padding: 0 6px; font-size: 16px; line-height: 1; color: var(--muted); background: none; border: 0; cursor: pointer; }
.fnh-chip-x:hover { color: var(--red); background: none; }
.fnh-picker-clear { padding: 0 8px; font-size: 18px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.fnh-picker-caret { display: none; }
.fnh-picker-results { position: absolute; z-index: 50; top: 100%; left: -1px; right: -1px; max-height: 260px; overflow-y: auto; margin: 4px 0 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.fnh-picker-results li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin: 0; border-radius: 8px; cursor: pointer; }
.fnh-picker-results li:hover, .fnh-picker-results li.is-active { background: var(--ice); }
.fnh-picker-results li.fnh-empty-result { color: var(--muted); cursor: default; background: none; }
.fnh-picker-results img { width: 24px; height: 24px; border-radius: 50%; }
.fnh-picker-results small { margin-left: auto; color: var(--muted); }

/* ---------- Profile ---------- */
.fnh-profile-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin: 0 0 14px; padding: 18px; color: #fff; background: var(--ink); border-radius: 20px; box-shadow: var(--shadow); }
.fnh-profile-head h1 { margin: 0 0 6px; color: #fff; font-size: 22px; font-weight: 900; }
.fnh-profile-head .fnh-ava { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.fnh-profile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fnh-profile-head .fnh-tag { background: rgba(255,255,255,.14); color: #fff; }
.fnh-profile-head .fnh-tag-warn { background: var(--red); color: #fff; }
.fnh-progress { grid-column: 1 / -1; }
.fnh-progress-bar { display: block; height: 8px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.fnh-progress-bar span { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.fnh-progress-text { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; opacity: .9; }
.fnh-positions { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
.fnh-positions th, .fnh-positions td { padding: 8px 10px 8px 0; text-align: left; border: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fnh-positions th { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fnh-positions label { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; min-height: 32px; }
.fnh-positions input[type="checkbox"], .fnh-positions input[type="radio"] { width: 20px; height: 20px; accent-color: var(--red); }
.fnh .fnh-positions select { width: auto; min-width: 120px; min-height: 38px; padding: 6px 10px; }
.fnh-positions-wrap > .fnh-hint:first-child { display: none; }
.fnh-ec2 { margin: 4px 0 10px; }
.fnh-ec2 > summary { cursor: pointer; font-weight: 700; color: var(--blue); min-height: 36px; display: flex; align-items: center; }
.fnh-ec2[open] > summary { margin-bottom: 10px; }
.fnh-readonly { padding: 10px 12px; background: var(--ice); border-radius: var(--radius-sm); }
.fnh-stack-tight { display: grid; gap: 10px; margin-top: 10px; }
.fnh-right { display: flex; justify-content: flex-end; margin-top: 10px; }

/* Older stacked forms (register, log in) */
.fnh-stack { padding: 20px; }
.fnh-stack-section { padding: 0 0 16px; }
.fnh-stack-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.fnh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fnh-three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.fnh-check { display: inline-flex; align-items: center; gap: 8px; padding-top: 8px; }
.fnh-radios { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.fnh-radios label { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Players ---------- */
.fnh-search { display: flex; gap: 8px; margin: 0 0 12px; }
.fnh-roster-grid { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; }
@media (min-width: 620px) { .fnh-roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fnh-player { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.fnh-player-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit !important; text-decoration: none; }
.fnh-player-text { display: flex; flex-direction: column; min-width: 0; }
.fnh-player-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fnh-player-name .fnh-tag { margin-left: 4px; }
.fnh-player-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fnh-player-actions { display: inline-flex; gap: 6px; }

/* ---------- Attendance (managers) ---------- */
.fnh .fnh-attendance { max-width: 900px; }
.fnh-att-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fnh-att-head .fnh-hint { font-weight: 700; }
.fnh .fnh-att-select { flex: 1; width: auto; min-width: 0; font-weight: 700; text-overflow: ellipsis; }
.fnh-event-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.fnh-dot { margin: 0 5px; color: var(--red); }
.fnh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.fnh-stat { padding: 12px 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--ice); border-radius: 12px; }
.fnh-stat span { display: block; font-size: 24px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.fnh-stat-yes span { color: var(--red-text); }
.fnh-stat-no span { color: var(--ink); }
.fnh-att-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fnh-att-toolbar .fnh-card-title { margin: 0; }
.fnh-att-toolbar > span { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.fnh-att-section { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fnh-att-section span { padding: 0 8px; border-radius: 999px; background: var(--ice); color: var(--ink); }
.fnh-att-section-accepted { color: var(--red-text); }
.fnh-att-section-declined { color: var(--ink); }
.fnh-att-section-none { color: var(--muted); }
.fnh-att-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.fnh-att-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.fnh-att-row.is-noshow { background: #f1f1f1; border-color: #bbb; }
.fnh-att-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fnh-att-name { font-weight: 800; color: var(--ink) !important; text-decoration: none; }
.fnh-att-sub { font-size: 12px; color: var(--muted); }
.fnh-seg-att > label { min-height: 34px; padding: 0 10px; font-size: 13px; }
.fnh-seg-att > .fnh-mark-present:has(input:checked) { background: var(--red); }
.fnh-seg-att > .fnh-mark-noshow:has(input:checked) { background: var(--ink); }
.fnh-seg-att > .fnh-mark-absent:has(input:checked) { background: #7a7a7a; }
.fnh-seg-att > .fnh-mark-none:has(input:checked) { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.fnh-report-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.fnh .fnh-report-filter select, .fnh .fnh-report-filter input[type="date"] { width: auto; }
.fnh-log { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.fnh-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fnh-status-yes { color: var(--red-text); }
.fnh-status-no { color: var(--ink); }

/* Tables (finances, reports) */
.fnh-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.fnh-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.fnh-table th, .fnh-table td { padding: 10px 8px; text-align: left; border: 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fnh-table th { position: sticky; top: 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--ice); }
.fnh-table tr:hover td { background: #fafcfe; }
.fnh-table .fnh-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fnh-checkin { white-space: nowrap; }

/* ---------- Finances ---------- */
.fnh .fnh-finances { max-width: 1000px; }
.fnh-finances .fnh-stats { grid-template-columns: repeat(3, 1fr); }
.fnh-exp-cat { margin-bottom: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.fnh-exp-title { margin: 0; font-size: 15px; }
.fnh .fnh-exp-table input, .fnh .fnh-exp-table select, .fnh .fnh-pay-inputs input, .fnh .fnh-pay-inputs select { min-height: 36px; padding: 6px 8px; font-size: 13px; }
.fnh .fnh-exp-table textarea, .fnh .fnh-terms textarea { min-height: 0; padding: 6px 8px; font-size: 13px; }
.fnh .fnh-exp-table input[type="date"] { min-width: 140px; }
.fnh .fnh-exp-table input[type="number"] { min-width: 100px; }
.fnh .fnh-exp-table select { min-width: 125px; }
.fnh-exp-note { min-width: 200px; width: 100%; }
.fnh-exp-total { padding: 10px 0; font-size: 16px; font-weight: 700; }
.fnh-pay { display: inline-block; padding: 2px 9px; font-size: 11px; font-weight: 800; border-radius: 999px; text-decoration: none; }
.fnh-pay-paid { color: var(--green); background: var(--green-soft); }
.fnh-pay-due { color: #7a5800; background: var(--gold-soft); }
.fnh-pay-overdue { color: var(--red-text); background: var(--red-soft); }
.fnh-pay-override { color: #4b2a85; background: #ece4fa; }
.fnh-terms { min-width: 200px; }
.fnh-pay-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; min-width: 220px; }
.fnh-pay-inputs-1 { grid-template-columns: 1fr; min-width: 0; }
.fnh-pay-table td { vertical-align: top; }
.fnh-pay-table td:first-child { white-space: nowrap; }
.wp-admin .fnh { max-width: none; margin: 0; }
.wp-admin .fnh .fnh-finances { max-width: none; }

/* Older two-column dialog rows still used by the finance sheet */
.fnh-row { display: flex; flex-direction: column; margin-bottom: 14px; }
.fnh-label { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.fnh-field { min-width: 0; }
.fnh-dialog { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.fnh-dialog-header, .fnh-dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; }
.fnh-dialog-body { padding: 4px 18px 10px; }
.fnh-dialog-title { margin: 0; font-size: 18px; }

/* ---------- Waiver / privacy popup ---------- */
.fnh.fnh-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; max-width: none; margin: 0; padding: 16px; background: rgba(0, 0, 0, .6); }
.fnh.fnh-modal[hidden] { display: none; }
.fnh-modal-box { width: 100%; max-width: 640px; max-height: calc(100vh - 32px); display: flex; }
.fnh-modal-form { display: flex; flex-direction: column; width: 100%; background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); overflow: hidden; }
.fnh-modal-form .fnh-dialog-header { color: #fff; background: var(--ink); }
.fnh-modal-form .fnh-dialog-title { color: #fff; }
.fnh-modal-form .fnh-close { color: rgba(255,255,255,.8); }
.fnh-modal-body { padding: 16px 20px; overflow-y: auto; }
.fnh-modal-h { margin: 8px 0; font-size: 16px; }
.fnh-modal-doc { max-height: 220px; overflow-y: auto; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; background: var(--ice); border-radius: 12px; }
.fnh-modal-doc-short { max-height: 160px; }
.fnh-modal-doc p, .fnh-modal-doc ol, .fnh-modal-doc ul { margin: 0 0 8px; }
.fnh-modal-doc ol, .fnh-modal-doc ul { padding-left: 20px; }
.fnh-modal-sign { display: block; margin-bottom: 10px; }
.fnh-modal-sign span { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.fnh .fnh-modal-sign input { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 22px; }
.fnh-modal-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding-top: 0; }
.fnh-modal-check .fnh-checkbox { margin-top: 2px; flex: 0 0 18px; }
.fnh-modal-foot { margin: 0; padding: 0 20px 12px; text-align: right; }
.fnh-modal .fnh-pay { margin: 0 0 12px; }
body.fnh-modal-open { overflow: hidden; }

/* ---------- Register / log in ---------- */
.fnh .fnh-auth { max-width: 480px; margin: 0 auto; }
.fnh-auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 -18px; padding: 18px 18px 34px; color: #fff; font-weight: 900; font-size: 18px; letter-spacing: .02em; background: var(--ink); border-radius: 20px 20px 0 0; }
.fnh-auth > .fnh-card { position: relative; border-radius: 20px; }
.fnh-auth-title { margin: 0 0 16px; font-size: 22px; font-weight: 900; }
.fnh-auth-foot { margin: 12px 0 0; text-align: center; font-size: 14px; }
.fnh-invite-only { position: relative; z-index: 1; margin: 0 0 14px; padding: 12px 16px; color: #5c4300; background: var(--gold-soft); border-radius: 14px; }
.fnh-invite-only strong { display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.fnh-invite-only p { margin: 0; }
.fnh-captcha span { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.fnh .fnh-captcha input { max-width: 160px; }
.fnh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fnh-login { text-align: center; }
.fnh-login p { margin: 0 0 12px; }

/* ---------- Printing ---------- */
@media print {
  .fnh-no-print, .fnh-savebar, #wpadminbar, #adminmenumain, .fnh-attendance > form[data-confirm] { display: none !important; }
  .fnh-card, .fnh-att-row { border: 0; box-shadow: none; }
  .fnh-seg-att > label:not(:has(input:checked)) { opacity: .3; }
}

/* ---------- Notes on answers ---------- */
.fnh-note { margin: 0; }
.fnh-note > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-height: 36px; cursor: pointer; list-style: none; font-size: 14px; }
.fnh-note > summary::-webkit-details-marker { display: none; }
.fnh-note-label { font-weight: 700; color: var(--red-text); }
.fnh-note-text { color: var(--ink-2); font-style: italic; }
.fnh-note-form { margin-top: 8px; }
.fnh-lock { color: var(--ink); background: var(--ice-2); }
.fnh-lock::before { content: "\1F512\FE0E"; margin-right: 3px; font-style: normal; }
.fnh-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fnh-notes li { display: flex; gap: 10px; margin: 0; padding: 10px 12px; background: var(--ice); border-radius: 12px; }
.fnh-notes strong { margin-right: 6px; }
.fnh-notes .fnh-pill, .fnh-notes .fnh-tag { margin-right: 4px; font-size: 10px; padding: 1px 7px; }
.fnh-notes .fnh-note-text { display: block; margin-top: 2px; }
.fnh-att-note { flex-basis: 100%; margin-top: 4px; font-size: 13px; font-style: italic; color: var(--ink-2); }
.fnh-att-note .fnh-tag { font-style: normal; }
.fnh-auto { color: var(--muted); font-style: italic; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Financial sheet: per-player save, spares by player, opening balance (3.4) */
.fnh-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fnh-reg-name .fnh-row-save { display: block; margin-top: 8px; white-space: nowrap; }
.fnh .fnh-row-save[disabled] { opacity: .35; cursor: default; box-shadow: none; }
.fnh-pay-table tr.fnh-row-dirty > td { background: #fff6f5; }
.fnh-row-saved, .fnh-pay-table tr.fnh-row-saved > td { background: #eefaf1 !important; transition: background .6s; }
.fnh-opening { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, #e5e5e5); display: grid; gap: 6px; }
.fnh-opening-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fnh-opening-row input { max-width: 180px; }
.fnh-money-prefix { font-weight: 700; }
.fnh-spares { display: grid; gap: 14px; }
.fnh-spare { border: 1px solid var(--line, #e5e5e5); border-radius: 14px; padding: 12px; background: #fff; }
.fnh-spare.fnh-row-dirty { border-color: var(--red, #e52a24); }
.fnh-spare-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.fnh-spare-name { font-size: 17px; }
.fnh-spare-totals { display: flex; gap: 16px; margin: 0; }
.fnh-spare-totals div { text-align: right; }
.fnh-spare-totals dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #666; }
.fnh-spare-totals dd { margin: 0; font-weight: 800; font-size: 16px; }
.fnh-spare-table td:first-child a { color: inherit; }
.fnh-source { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1f1f1; white-space: nowrap; }
.fnh-source-answer { background: #fde9e8; color: var(--red-text, #c41f1a); }
.fnh-source-manager { background: #111; color: #fff; }
.fnh-source-payment { background: #fff4d6; color: #7a5200; }
.fnh-spare-upcoming { margin: 8px 0 0; }
.fnh-spare-foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) auto; gap: 8px; align-items: end; margin-top: 10px; }
.fnh-spare-field { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.fnh-spare-field textarea { min-height: 36px; }
@media (max-width: 720px) {
  .fnh-spare-foot { grid-template-columns: minmax(0, 1fr); }
  .fnh-spare-totals { width: 100%; justify-content: space-between; }
}

/* Note right under In / Out on the Schedule (3.6) */
.fnh-note-inline { display: grid; gap: 8px; margin: 12px 0 4px; padding: 12px; border-radius: 14px; background: var(--ice); }
.fnh-note-inline textarea { width: 100%; min-height: 64px; resize: vertical; }
.fnh-note-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; font-size: 14px; }
.fnh-note-saved { font-size: 12px; color: var(--ink-2); }
.fnh-note-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.fnh-note-buttons { display: flex; gap: 8px; margin-left: auto; }
.fnh-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); cursor: pointer; font-weight: 600; font-size: 14px; }
.fnh-switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.fnh-switch-track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #c9ced6; transition: background .15s; }
.fnh-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.fnh-switch input:checked + .fnh-switch-track { background: var(--ink); }
.fnh-switch input:checked + .fnh-switch-track::after { transform: translateX(18px); }
.fnh-switch input:focus-visible + .fnh-switch-track { outline: 3px solid var(--red); outline-offset: 2px; }
.fnh-game { flex-wrap: wrap; }
.fnh-game-note { flex-basis: 100%; margin: 2px 0 0; }
.fnh-game-note > summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; color: var(--red-text); min-height: 32px; display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; }
.fnh-game-note > summary::-webkit-details-marker { display: none; }
.fnh-game-note .fnh-note-inline { margin-top: 4px; }

/* =========================================================================
   Full-width page template (3.7)
   The page spans the browser and each screen takes the width its content
   needs: forms, the board and profiles keep a readable column; the schedule,
   roster, members, attendance and finances use the wide column. There is no
   plugin header (3.9): each function has its own page in the site menu.
   ========================================================================= */
.fnh-page-main { --fnh-gutter: clamp(16px, 4vw, 40px); --fnh-wide: 1200px; }
.fnh-page-main .fnh:not(.fnh-modal) { --fnh-col: 760px; max-width: none; margin: 0; padding: 0 0 clamp(32px, 6vw, 64px); }
.fnh-page-main .fnh:not(.fnh-modal) > * { width: min(100% - 2 * var(--fnh-gutter), var(--fnh-col)); margin-inline: auto; }
.fnh-page-main .fnh:not(.fnh-modal) { padding-top: clamp(16px, 4vw, 40px); }
.fnh-page-main .fnh:has(> .fnh-players, > .fnh-members, > .fnh-attendance, > .fnh-finances, > .fnh-schedule > .fnh-hero) { --fnh-col: var(--fnh-wide); }
.fnh-page-main .fnh:has(> .fnh-auth, > .fnh-login) { --fnh-col: 480px; }
.fnh-page-main .fnh .fnh-attendance, .fnh-page-main .fnh .fnh-finances { max-width: none; }

/* Schedule: the next game beside the games after it. */
@media (min-width: 1024px) {
  .fnh-page-main .fnh-schedule:has(> .fnh-hero) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .fnh-page-main .fnh-schedule > .fnh-hero { margin: 0; }
  .fnh-page-main .fnh-schedule-rest > .fnh-section-head:first-child { margin-top: 0; }
}

/* Roster and attendance fill the wide column with more columns. */
.fnh-page-main .fnh-roster-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1100px) {
  .fnh-page-main .fnh-att-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Controls that don't need the whole column stay at a comfortable width. */
.fnh-page-main .fnh-players .fnh-search { max-width: 560px; }
.fnh-page-main .fnh .fnh-att-select { flex: 0 1 560px; }
@media (min-width: 1024px) {
  .fnh-page-main .fnh-stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fnh-page-main .fnh-finances .fnh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Members page (3.8) */
.fnh-members-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; }
.fnh-members-tools .fnh-chips { flex-wrap: wrap; margin: 0; }
.fnh-members-tools .fnh-search { flex: 0 1 420px; margin: 0; }
.fnh-member-list { list-style: none; margin: 0; padding: 0; }
.fnh-member { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 16px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.fnh-member-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fnh-member-who .fnh-player-name { color: var(--ink) !important; text-decoration: none; }
.fnh-member-who .fnh-player-sub a { color: inherit; text-decoration: none; }
.fnh-member-field { display: grid; gap: 4px; min-width: 0; font-size: 13px; }
.fnh-member-field > span:first-child { font-size: 12px; font-weight: 700; color: var(--muted); }
.fnh-member-pos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fnh-member-side { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fnh-member-side .fnh-check { padding-top: 0; font-weight: 600; font-size: 14px; }
.fnh-member-delete { font-size: 13px; font-weight: 700; text-decoration: none; }
.fnh-members-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fnh-members-foot > .fnh-btn { margin-left: auto; }
@media (min-width: 900px) {
  .fnh-member { grid-template-columns: minmax(0, 1.4fr) minmax(140px, .7fr) minmax(0, 1.6fr) minmax(150px, .6fr); align-items: center; }
  .fnh-member-side { flex-direction: column; align-items: flex-start; gap: 4px; }
}
/* Season totals like $1,250.00 need more than a third of a phone screen. */
@media (max-width: 600px) {
  .fnh-finances .fnh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Seasons and Alumni (3.10) */
.fnh-season-tag { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); background: var(--ice); border-radius: 999px; white-space: nowrap; }
.fnh-schedule > .fnh-page-title { margin-top: 0; flex-wrap: wrap; align-items: center; }
@media (min-width: 1024px) {
  .fnh-page-main .fnh-schedule > .fnh-page-title { grid-column: 1 / -1; margin-bottom: 0; }
}
.fnh-games-season { margin: 14px 2px 2px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* Same weight as the wide rule above (its :has counts as two classes), so this one wins. */
.fnh-page-main .fnh:has(> .fnh-members.fnh-alumni) { --fnh-col: 960px; }
.fnh-alumni .fnh-member-pos { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.fnh-alumni .fnh-member-side { flex-direction: column; align-items: stretch; gap: 4px; }
@media (min-width: 900px) {
  .fnh-alumni .fnh-member { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(180px, .7fr); }
}
.fnh-page-main .fnh-schedule > .fnh-page-title + .fnh-schedule-rest > .fnh-section-head:first-child { margin-top: 18px; }

/* Profile pictures */
.fnh-ava-photo { padding: 0; overflow: hidden; cursor: zoom-in; background: #e9e9e9; }
.fnh-ava-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fnh-photo-forms { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: -6px 0 16px; }
.fnh-photo-form label { cursor: pointer; }
.fnh-photo-form label:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.fnh-photo-remove { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--muted, #6b6b6b); text-decoration: underline; cursor: pointer; }
/* Full-size view: as large as fits the screen, never bigger. */
.fnh-photo-view { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); cursor: zoom-out; }
.fnh-photo-view img { display: block; max-width: 100vw; max-height: 100vh; max-height: 100dvh; width: auto; height: auto; object-fit: contain; }
.fnh-photo-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* Payments on the profile */
.fnh-pay-lines { list-style: none; margin: 8px 0 0; padding: 0; }
.fnh-pay-lines li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line, #e4e4e4); }
.fnh-pay-lines li:first-child { border-top: 0; }
.fnh-pay-line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Calendar sync */
.fnh-cal-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.fnh-cal-more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--red); }
.fnh-cal-url { width: 100%; margin: 6px 0; font-size: 12px; }

/* Schedule: List / Calendar switch and the month grid */
.fnh-view-switch { display: inline-flex; padding: 3px; border-radius: 12px; background: #e9e9e9; gap: 2px; }
.fnh-view-switch a { padding: 5px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.fnh-view-switch a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.fnh-schedule-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.fnh-cal-sync summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--red); }
.fnh-cal-sync[open] { flex-basis: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fnh-cal-month { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.fnh-cal-month h3 { margin: 0 0 10px; font-size: 16px; }
.fnh-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.fnh-cal-dow { font-size: 11px; font-weight: 800; color: var(--muted); padding-bottom: 4px; }
.fnh-cal-day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; font-size: 13px; color: var(--ink); text-decoration: none; }
.fnh-cal-day.is-out { visibility: hidden; }
.fnh-cal-day.has-games { background: #f0f0f0; font-weight: 800; }
.fnh-cal-day.has-games:hover, .fnh-cal-day.has-games:focus-visible { background: var(--ink); color: #fff; }
.fnh-cal-day.is-today { box-shadow: inset 0 0 0 2px var(--red); }
.fnh-cal-dots { display: flex; gap: 2px; margin-top: 2px; }
.fnh-cal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.fnh-cal-dot.is-in { background: var(--red); }
.fnh-cal-dot.is-out-dot { background: var(--ink); }
.fnh-cal-day.has-games:hover .fnh-cal-dot.is-out-dot { background: #fff; }
.fnh-cal-dot.is-none { background: #f0b429; }
.fnh-cal-legend { display: flex; justify-content: center; gap: 16px; font-size: 12px; color: var(--muted); }
.fnh-cal-legend > span { display: inline-flex; align-items: center; gap: 5px; }

/* Board > Messages */
.fnh-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; }
.fnh-chip-link.is-on .fnh-count { background: #fff; color: var(--red); }
.fnh-threads { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.fnh-threads li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.fnh-threads li:first-child { border-top: 0; }
.fnh-threads li.is-unread { background: #fdeceb; }
.fnh-threads li.is-unread .fnh-thread-label { font-weight: 900; }
.fnh-threads a { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.fnh-threads a .fnh-hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fnh-thread-label { font-weight: 700; }
.fnh-thread-time { flex: 0 0 auto; font-size: 12px; }
.fnh-ava-group { box-shadow: none; background: #dcdcdc; }
.fnh-thread-head h2 { margin: 6px 0 2px; font-size: 20px; }
.fnh-bubbles { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fnh-bubble-row { display: flex; align-items: flex-end; gap: 6px; }
.fnh-bubble-row.is-mine { justify-content: flex-end; }
.fnh-bubble-row .fnh-ava, .fnh-ava-gap { margin-bottom: 18px; }
.fnh-ava-gap { display: inline-block; width: 30px; flex: 0 0 30px; }
.fnh-bubble-col { display: flex; flex-direction: column; align-items: flex-start; max-width: 80%; }
.fnh-bubble-row.is-mine .fnh-bubble-col { align-items: flex-end; }
.fnh-bubble { padding: 8px 12px; border-radius: 18px 18px 18px 6px; background: var(--card); border: 1px solid var(--line); overflow-wrap: anywhere; }
.fnh-bubble-row.is-mine .fnh-bubble { border-radius: 18px 18px 6px 18px; background: var(--red); border-color: var(--red); color: #fff; }
.fnh-bubble-from { margin: 0 0 2px 8px; font-size: 11px; font-weight: 700; color: var(--muted); }
.fnh-bubble-time { margin: 2px 8px 0; font-size: 10px; color: var(--muted); }
.fnh-reply-form { display: flex; gap: 8px; align-items: flex-end; }
.fnh-reply-form textarea { flex: 1; min-height: 44px; }
.fnh-leave-form { margin-top: 10px; }
.fnh-quick-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.fnh-quick-groups button { cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.fnh-pick-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.fnh-pick-list label { display: flex; align-items: center; gap: 10px; padding: 6px 10px; cursor: pointer; }
.fnh-pick-list .fnh-pick-name { flex: 1; min-width: 0; }
.fnh-compose-message fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.fnh-compose-message legend { font-weight: 800; margin-bottom: 6px; }
.fnh-quick-groups .fnh-hint { margin-left: 5px; color: inherit; opacity: .7; }
.fnh-callup-offer { background: var(--red); color: #fff; border-color: var(--red); font-weight: 700; }
