/**
 * Pinball and Stuff - Utilitarian Black & White Stylesheet
 *
 * Strictly follows AGENTS.md: clean, high-contrast black-and-white palette,
 * system sans-serif typography, 1px borders, and zero unsolicited gradients,
 * shadows, animations, or decorative badges.
 */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg-page: #ffffff;
  --bg-subtle: #f4f4f4;
  --text-primary: #000000;
  --text-muted: #444444;
  --border-color: #000000;
  --border-subtle: #cccccc;
}

/* Inverted black-and-white palette for dark mode */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #000000;
  --bg-subtle: #1a1a1a;
  --text-primary: #ffffff;
  --text-muted: #bbbbbb;
  --border-color: #ffffff;
  --border-subtle: #444444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ensure HTML5 [hidden] attribute and .hidden utility class always take precedence over component display rules (e.g. .btn, .form-row) */
[hidden],
.hidden {
  display: none !important;
}

/* Theme-based visibility helpers: hide only the inactive variant so elements keep their own display type */
html:not([data-theme="dark"]) .site-dark {
  display: none;
}

html[data-theme="dark"] .site-light {
  display: none;
}

/* Screen-reader-only utility and keyboard skip link */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  padding: 8px 14px;
  background: var(--text-primary);
  color: var(--bg-page);
  border: 2px solid var(--border-color);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* High-contrast keyboard focus indicator across all interactive controls */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--border-color);
  outline-offset: 2px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
}

a {
  color: var(--text-primary);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  /* Stay above page content while remaining below full-screen overlays (1000) and skip-link (1100) */
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-page);
}

/* Stack brand title on its own top row with navigation links on the row below */
.navbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.site-brand-logo,
.site-brand-tag {
  display: block;
  width: auto;
  max-width: 100%;
}

.site-brand-logo {
  height: 35px;
}

.site-brand-tag {
  height: 20px;
}

.navbar-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.navbar-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Use .navbar-header-actions scope so flex centering and padding win over later .btn / .btn-sm rules */
.navbar-header-actions .theme-toggle,
.navbar-header-actions .kofi-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  line-height: 1;
}

.navbar-header-actions .theme-toggle svg,
.navbar-header-actions .kofi-header-btn svg {
  display: block;
}

.navbar .nav-toggle,
.nav-drawer-header,
.nav-backdrop {
  display: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.nav-auth-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-links a {
  text-decoration: none;
  padding: 4px 6px;
}

.nav-links a:hover,
.nav-links a.active {
  text-decoration: underline;
  font-weight: 600;
}

.nav-user {
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
}

/* Show user badge on the top header row on desktop, and inside the drawer on mobile */
.nav-user-mobile {
  display: none;
}

@media (max-width: 768px) {
  .site-brand-tag {
    display: none;
  }

  .nav-user-desktop {
    display: none;
  }

  .nav-user-mobile {
    display: inline-block;
    max-width: 100%;
  }

  .navbar .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 940;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    max-width: 82vw;
    background: var(--bg-page);
    border-left: 1px solid var(--border-color);
    padding: 16px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    z-index: 950;
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-links.is-open {
    visibility: visible;
    transform: translateX(0);
  }

  @media (prefers-reduced-motion: reduce) {
    .nav-links {
      transition: none;
    }
  }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links>a {
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-subtle);
  }

  /* Stack user display name on a row above Logout at the bottom of the slide-out menu */
  .nav-auth-group {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .nav-user {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-logout-link {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Main Layout Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

p {
  margin-bottom: 12px;
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Alerts */
.alert {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.alert-error {
  border-width: 2px;
  font-weight: 600;
}

/* Cards & Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  border: 1px solid var(--border-color);
  padding: 16px;
  background: var(--bg-page);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  /* Align text cells with button/action cells vertically across every row */
  vertical-align: middle;
}

th {
  border-bottom: 2px solid var(--border-color);
  font-weight: 700;
}

tbody tr:hover {
  background: var(--bg-subtle);
}

/* Forms & Buttons */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 12px;
  flex: 1 1 200px;
  min-width: 0;
}

/* Give /play selector dropdowns a wider flex basis so League/Event wrap to full width on mobile instead of truncating */
.play-selectors-row .form-group {
  flex: 1 1 260px;
  min-width: 0;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

/* Keep iOS Safari's native date input from expanding past its container */
input[type="date"] {
  display: block;
  -webkit-appearance: none;
  appearance: none;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--text-primary);
  color: var(--bg-page);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary {
  background: var(--bg-page);
  color: var(--text-primary);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.82rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Keep table action cells as native table-cells so row borders stay continuous and straight */
td.actions {
  display: table-cell;
  vertical-align: middle;
  white-space: nowrap;
}

td.actions>* {
  vertical-align: middle;
}

/* Preserve horizontal button/form spacing without flex gap on td */
td.actions>*+* {
  margin-left: 6px;
}

/* Custom Confirmation Dialog */
dialog.confirm-dialog {
  margin: auto;
  padding: 20px;
  border: 2px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-primary);
  max-width: 420px;
  width: calc(100% - 32px);
}

dialog.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

dialog.confirm-dialog p {
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Header row with upper-right close (X) button for informational dialogs */
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.dialog-header h2 {
  margin: 0;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--bg-subtle);
  border-color: var(--border-color);
}

/* Multi-select participant filter modal on /standings */
dialog.participant-filter-dialog {
  max-width: 460px;
}

dialog.participant-filter-dialog h2 {
  margin-bottom: 6px;
}

.participant-filter-list {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.participant-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  margin: 0;
  cursor: pointer;
}

.participant-filter-option input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.participant-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Ball score input + monochrome camera scan button group on /play */
.ball-input-group {
  display: flex;
  /* Allow 3 groups side-by-side on wide screens and wrap to full-width rows on narrow screens */
  flex: 1 1 200px;
  min-width: 0;
  align-items: stretch;
  gap: 4px;
}

.ball-input-group .ball-input {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.scan-score-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  line-height: 1;
  flex-shrink: 0;
}

.scan-score-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Highlight camera button when a score photo is stored for that ball */
.scan-score-btn.has-photo {
  background: var(--text-primary);
  color: var(--bg-page);
}

.scorecard-sign-bar {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.scan-score-btn svg {
  display: block;
}

/* Full-screen score photo crop overlay on /play */
.score-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.score-crop-header {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid #333;
}

.score-crop-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

#score-crop-canvas {
  display: block;
  /* Prevent browser pan/zoom gestures from hijacking box drag on touchscreens */
  touch-action: none;
  cursor: move;
}

.score-review-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
}

.score-review-canvas {
  display: block;
  max-width: 100%;
  max-height: 45vh;
  border: 1px solid #555;
  background: #000;
}

.score-review-status {
  margin: 0;
  font-size: 0.95rem;
  color: #ddd;
  text-align: center;
}

.score-review-input-wrap {
  width: 100%;
}

.score-review-input-wrap label {
  color: #fff;
  margin-bottom: 6px;
}

.score-review-input {
  text-align: right;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
}

.score-crop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #333;
  background: #1a1a1a;
}

/* Uniform two-row round blocks and expandable threshold grid on /play */
.scorecard-status-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.scorecard-save-status {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.scorecard-save-status.status-error {
  color: var(--text-primary);
  text-decoration: underline;
}

.scorecard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scorecard-round {
  border: 1px solid var(--border-color);
  background: var(--bg-page);
}

.scorecard-round-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border-subtle);
}

.scorecard-round-header:hover {
  background: var(--bg-subtle);
}

.scorecard-round-header:focus-visible {
  background: var(--bg-subtle);
  outline: 2px solid var(--border-color);
  outline-offset: -2px;
}

.scorecard-round-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.scorecard-round-title {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorecard-round-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorecard-round-result {
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.round-targets-row {
  padding: 10px 14px;
  border-bottom: 1px dashed var(--border-subtle);
  background: var(--bg-subtle);
  font-size: 0.85rem;
}

.thresholds-heading {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.thresholds-sublabel {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Wrap threshold label/score pairs across as many lines as needed so mobile scores never overlap */
.thresholds-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-variant-numeric: tabular-nums;
}

.threshold-item {
  flex: 1 1 130px;
  min-width: max-content;
  white-space: nowrap;
}

/* Underline only the score portion of the Par threshold in PinGolf / PinGolf Skins */
.threshold-score-par {
  text-decoration: underline;
}

.scorecard-round-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

/* Separate multiple participant rows inside the same round block in H2H/Skins */
.scorecard-round-entry+.scorecard-round-entry {
  border-top: 1px solid var(--border-subtle);
}

.scorecard-round-entry .participant-cell {
  min-width: 140px;
  flex: 0 0 auto;
}

.scorecard-balls-grid {
  /* Wrap onto its own full-width row when beside a participant label on narrow screens */
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Read-only opponent rows on Head-to-Head and Skins scorecards */
tr.opponent-row,
.scorecard-round-entry.opponent-row {
  background: var(--bg-subtle);
}

.ball-input-readonly,
.ball-input[readonly],
.ball-input:disabled,
input:disabled,
select:disabled {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border-color: var(--border-subtle);
  cursor: not-allowed;
}

/* Head-to-Head & Golf Skins Line Scoreboard Grids */
.scoreboard-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 10px;
}

.scoreboard-grid.desktop-grid {
  display: table;
}

.scoreboard-grid.mobile-grid {
  display: none;
}

@media (max-width: 768px) {
  .scoreboard-grid.desktop-grid {
    display: none !important;
  }

  .scoreboard-grid.mobile-grid {
    display: table !important;
  }
}

.scoreboard-row {
  display: table-row;
}

.scoreboard-row.header {
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
}

.scoreboard-row.player-row {
  border-bottom: 1px solid var(--border-subtle);
}

.scoreboard-row.header>span,
.scoreboard-row.player-row>span {
  display: table-cell;
  padding: 6px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.scoreboard-row.header>span {
  border-bottom: 2px solid var(--border-color);
}

.scoreboard-row .player-col,
.scoreboard-row .player-name {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.scoreboard-row .total-header,
.scoreboard-row .total-score {
  font-weight: 700;
  border-left: 2px solid var(--border-color);
}

.font-bold {
  font-weight: 700;
}

/* Responsive flex list for Active Leagues and Sessions (Today) on the home page */

.icon-row {
  display: flex;
  flex-wrap: nowrap;
  /* Keep all format icons on a single row on mobile */
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  /* Allow flex items to shrink below image natural width on narrow screens */
  padding: 8px;
  border: 1px solid transparent;
  /* Reset default <button> appearance so icon triggers blend into the row */
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Preserve line breaks in SiteContent::FORMAT_RULES text without requiring HTML tags */
dialog.confirm-dialog .format-rules-body {
  white-space: pre-line;
  margin-bottom: 0;
}

.site-icon {
  display: block;
  width: auto;
  height: auto;
  /* Scale proportionally when constrained on mobile */
  max-width: 100%;
  max-height: 150px;
}

.home-list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--border-color);
  margin-bottom: 24px;
}

.home-list-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.home-list-row:hover {
  background: var(--bg-subtle);
}

.home-list-info {
  /* Force actions onto their own row on narrow screens before the name gets squeezed */
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}

.home-list-name {
  font-weight: 600;
}

.home-list-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Clickable machine summary row and expandable per-format target scores on /machines */
.machine-row-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.machine-score-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 0 100%;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.machine-targets-header .machine-row-toggle {
  flex: 1 1 auto;
}

.machine-targets-block .machine-score-details {
  color: var(--text-primary);
}

/* Wrapping flex layout for per-format Easy/Medium/Hard target editors (/locations and /machines) */
.machine-targets-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.machine-targets-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.target-format-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

/* Utilitarian role badge displayed next to a player's name on /players */
.role-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  vertical-align: middle;
}

/* High-contrast supporter badge: black box / white text in light mode, inverted in dark mode */
.role-badge.member-badge {
  color: var(--bg-page);
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.target-format-label {
  flex: 0 1 140px;
  min-width: 120px;
  font-weight: 600;
}

.target-format-inputs {
  /* Wrap below the format label on narrow screens so inputs share full available width */
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.target-format-inputs .score-format-input {
  flex: 1 1 100px;
  min-width: 0;
}

/* Standings table cells, bold running/round totals, and PinGolf score indicators */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.player-name-cell {
  font-weight: 600;
  white-space: nowrap;
}

.standings-round {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.standings-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}

.standings-round-score {
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 2px;
}

.standings-total {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.golf-birdie,
.golf-eagle,
.golf-albatross,
.golf-bogey,
.golf-double-bogey,
.golf-triple-bogey {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}

.golf-birdie {
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
}

.golf-eagle {
  background: var(--border-color);
  color: var(--bg-page);
  border-radius: 50%;
}

.golf-albatross {
  background: var(--border-color);
  color: var(--bg-page);
  border-radius: 50%;
  outline: 1.5px solid var(--border-color);
  outline-offset: 2px;
}

.golf-bogey {
  border: 1.5px solid var(--border-color);
}

.golf-double-bogey,
.golf-triple-bogey {
  background: var(--border-color);
  color: var(--bg-page);
}

.golf-triple-bogey {
  outline: 1.5px solid var(--border-color);
  outline-offset: 2px;
}

/* Visually strike through dropped lowest-week scores on Season Standings */
.dropped-score {
  text-decoration: line-through;
  opacity: 0.5;
}