:root {
    --ata-red: #d0021b;
    --ata-gray: #f2f2f2;
}

@font-face {
    font-family: 'Digital7';
    src: url('digital-7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--ata-gray);
    color: #111;
}

/* Center the page heading in main content */
main.content h1 {
	text-align: center;
}

main.content h2 {
	text-align: center;
}

main.content h3 {
	text-align: center;
}

.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top / bottom bars */
.top-bar,
.bottom-bar {
    background: #000;
    color: #fff;
    /* display: flex; */
    align-items: center;
    padding: 0 12px;
}

.top-bar {
	height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-title {
    flex: 1;
    text-align: center;
}

.login-link {
    padding: 0 0.75rem;
}


.bottom-bar {
	height: auto;
	display: block;              /* ensure rows can stack */
    justify-content: center;
    font-size: 0.85rem;
	padding: 0.75rem 1rem;
    text-align: center;
}


/* More space between rows */
.bottom-bar .footer-row {
    display: block;
    width: 100%;
    margin-bottom: 1.0rem;       /* increase this for more spacing */
}


/* Logos row */
.bottom-bar .footer-logos {
    display: flex;
    justify-content: center;
}


.bottom-bar .footer-logo {
    height: 50px;      /* adjust size as needed */
    width: auto;
}

/* Footer link always white */
.bottom-bar a,
.bottom-bar a:link,
.bottom-bar a:visited,
.bottom-bar a:hover,
.bottom-bar a:active {
    color: #fff;
    text-decoration: underline;  /* or none, if you prefer */
}

/* Logo */
.logo {
    height: 50px;     /* smaller logo inside 75px bar */
    width: auto;
}

/* Logo */
.schoollogo {
    height: 75px;     /* smaller logo inside 75px bar */
    width: auto;
}

/* Poster */
.tourneyposter {
    max-height: 200px;     /* smaller logo inside 75px bar */
    width: auto;
	max-width: 300px;
}

.top-title {
    margin-left: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ata-red);
}

/* Main content */
.content {
    flex: 1;
    padding: 10px;
}

h1 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

h2 {
    margin: 0 0 2px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.ringsep{
    font-size: 8px;
}

.ringtime-detail.is-hidden {
  display: none;          /* hide detail row */
}

/* if you ever switch from none, use table-row, not block */
.ringtime-detail {
  display: table-row;
}

.ringtime-toggle {
	float: right;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Leaderboard table */
.leaderboard {
    width: 100%;
    border-collapse: separate;   /* was collapse */
    border-spacing: 0 4px;       /* vertical space between rows */
    font-size: 0.9rem;
}

.leaderboard th,
.leaderboard td {
    padding: 6px 6px;
    text-align: center;
}

/* Header row */
.leaderboard th {
    background: #000;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Header row */
.leaderboard thead {
    font-size: 1.25rem;
}

/* Sub-Header row */
.leaderboard-subhead th {
    background: #333;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Sub-Header row */
.leaderboard-subsubhead {
    background: #555;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Striped body rows with rounded corners */
.leaderboard tbody tr {
    background: #ffffff;
}

.leaderboard tbody tr:nth-child(even) {
    background: #f5f5f5;
}

.leaderboard tbody tr td:first-child,
.leaderboard tbody tr th:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.leaderboard tbody tr td:last-child,
.leaderboard tbody tr th:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Name column left‑aligned */
.leaderboard .name {
    text-align: left;
}

.leaderboard tr.tie {
    background: #ffe0b2 !important;       /* stronger orange highlight */
    box-shadow: 0 0 0 2px #ff9800 inset;  /* inner border */
}

.leaderboard tr.tie td {
    font-weight: 700;
}

/* Form container styled like card/table */
.score-form {
    background: #ffffff;
    padding: 10px;
    border-radius: 4px;
    margin: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    font-size: 0.9rem;
}

.score-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 6px;
}

.score-form-row label {
    flex: 0 0 40%;
    max-width: 40%;
    font-weight: 600;
}

.score-form-row .field {
    flex: 1 1 60%;
    max-width: 60%;
}

.score-form-row select,
.score-form-row input[type="number"],
.score-form-row input[type="text"] {
    width: 100%;
    padding: 6px 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

.score-form-row + .score-form-row {
    border-top: 1px solid #eee;
    padding-top: 6px;
}

.score-form-actions {
    margin-top: 10px;
    text-align: right;
}

.score-form-actions button {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.placement-scoreboard {
  width: 100%;
  max-width: 480px;
  margin: 1rem auto;
  border-collapse: collapse;
}

.placement-scoreboard th,
.placement-scoreboard td {
  border: 1px solid #ccc;
  padding: 0.25rem 0.5rem;
  text-align: center;
}

.placement-scoreboard tbody tr:nth-child(1) td { font-weight: 700; } /* 1st */
.placement-scoreboard tbody tr:nth-child(2) td { font-weight: 600; } /* 2nd */

.collapsible-body:not(.open) {
  display: none;
}

.table-header-toggle {
  text-align: left;
}

/* Old collapse-btn kept for backwards compatibility if used elsewhere */
.collapse-btn {
  float: right;
  font-size: 0.8rem;
  cursor: pointer;
}

.more-btn {
  float: right;
  margin-left: 0.5rem;
  padding: 2px 8px;
  font-size: 0.8rem;
  border-radius: 3px;
  background: #F5F5F5;
  color: #000;
  text-decoration: none;
}
.more-btn:hover {
  background: #F5F5F5;
}

/* BRACKET LAYOUT */

.bracket {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

/* Header and columns share flex layout so they align */
.bracket-header {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2rem; /* match .bracket gap */
  margin-bottom: 0.5rem;
}

.bracket-column-header,
.bracket-column {
  flex: 1 1 0;
  min-width: 0;
}

/* Header cell: title + button inline */
.bracket-column-header {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.bracket-column-header span {
  flex: 1 1 auto;
  text-align: center;
}

/* Toggle button for bracket columns */
.bracket-toggle-btn {
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #007bff;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

/* When the column is hidden, keep header width but make button narrower/subtle */
.bracket-column-header.is-collapsed .bracket-toggle-btn,
.bracket-toggle-btn.is-collapsed {
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  background: #f0f0f0;
  color: #333;
  border-color: #bbb;
}

.bracket-column {
  display: flex;
  flex-direction: column;
}

.bracket-column.hidden {
  display: none;
}

/* R16: 8 matches spread top-to-bottom */
.bracket-r16 {
  justify-content: space-between;
}

/* QF: 4 matches also spread top-to-bottom */
.bracket-qf {
  justify-content: space-around;   /* or use center + gap */
}

/* SF: 2 matches centered in the column */
.bracket-sf {
  justify-content: space-around;   /* or use center + gap */
}

/* Final/Bronze: stack near middle */
.bracket-final {
  justify-content: center;
  gap: 2rem;                       /* spacing between Final and 3rd Place */
}

.match-box {
  border: 1px solid #ccc;
  padding: 6px;
  border-radius: 4px;
  background: #ccc;
  min-width: 220px;
  max-width: 260px;
  margin-bottom: 1rem;    /* still some local spacing */
}

.match-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.match-display{
    display: flex;
    align-items: flex-start;   /* align tops of both slots */
    gap: 0.75rem;              /* space around the "v" */
    margin-bottom: 5px;
}

.match-result{
 font-weight: bold;
 margin-bottom: 4px;
}

.match-slot {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0px;
}

.vs-slot {
  font-size: 12px;
    display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  font-weight: 700;
}

.match-slot label {
  display: flex;
  flex-direction: column;
  font-weight: 600;          /* optional */
  margin-bottom: 0.25rem;
}

.match-slot select {
  width: 100%;               /* same width for both selects */
  box-sizing: border-box;
}

.sparring-scoreboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  background-color: #000;
}

.sparring-scoreboard .fighter {
  padding: 1rem;
  min-width: 220px;
  text-align: center;
  border-radius: 4px;
  background: transparent; /* no fill */
  width: 20vw;
}

.sparring-scoreboard .fighter.red {
  border: 8px solid #c00;
  color: #c00;
}

.sparring-scoreboard .fighter.white {
  border: 8px solid #fff;
  color: #fff;
}

.btopp {
  padding-top: 2px;
}

.red-fighter {
  border: 3px solid #c00;
  border-radius: 5px;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 2px;
}

.white-fighter {
  border: 3px solid #fff;
  border-radius: 5px;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 2px;
}

.sparring-scoreboard .name {
  font-weight: bold;
  margin-bottom: 0.5rem;
	padding: 3px 3px;
	text-align: center;
}

.sparring-scoreboard .score {
  font-size: 10rem;
  font-weight: 100;
  font-family: 'Digital7';
}



.timer-panel {
  text-align: center;
  min-width: 160px;
}

#matchTimer {
  font-size: 10rem;
  font-weight: 100;
  font-family: 'Digital7';
  margin-bottom: 0.5rem;
  color: #00FF00;
}

.timer-controls button {
  margin: 0 0.25rem;
  padding: 4px 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.score-controls {
  margin-top: 0.5rem;
}

.score-controls-warn {
  margin-top: 1rem;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

/* Base style for all score buttons */
.score-btn {
  width: 100%;
  padding: 4px 8px;
  font-size: 0.85rem;
  box-sizing: border-box;
  height: 50px;
}

/* +1/+2/+3 in a single row */
.score-controls-add {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;   /* small gap before the column below */
}

.score-controls-add .score-btn {
  flex: 1 1 0;              /* equal width across the row */
}

/* Warning / dropped weapon / -1 stacked as a column */
.score-controls-warn {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Optional color accents (you already have some) */
.red-controls .score-btn-warn,
.red-controls .score-btn-drop,
.red-controls .score-btn-minus {
  background: #ffcccc;
  color: #800;
  border: 3px solid #c00;
}

.white-controls .score-btn-warn,
.white-controls .score-btn-drop,
.white-controls .score-btn-minus {
  background: #e0e0e0;
  color: #333;
  border: 1px solid #999;
}


.score-controls .score-btn {
  margin: 0 0.15rem;
  padding: 2px 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Base styles for header buttons (desktop + mobile) */
.table-header-toggle .header-btn {
  display: inline-block;
  padding: 0.5rem 1rem;   /* base size */
  font-size: 0.9rem;
  line-height: 1.2;
  border-radius: 4px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* Make the anchor look like a button */
.table-header-toggle .more-btn {
  border: 1px solid #fff;
}

/* Control strip */
.sparring-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #000;
  color: #fff;
  border-radius: 4px;
  margin: 1rem 0;
	width: 100%;
}

.sparring-controls .controls-side h3 {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
}

.sparring-controls .score-controls .score-btn {
  margin: 0 0.15rem;
  padding: 2px 8px;
  font-size: 0.8rem;
}

.sparring-controls .controls-timer #matchTimer {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.sparring-controls .controls-timer .timer-controls button {
  margin: 0 0.15rem;
  padding: 0;
  font-size: 0.8rem;
}

.sparring-controls .score-controls-add {
  margin-bottom: 0.25rem;
}

.sparring-controls .score-controls-sub .score-btn-minus {
  background: #444;
  color: #fff;
}

/* Compact visual scoreboard */
/* DESKTOP: Red | Clock | White */
.sparring-scoreboard--compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.scoreboard-digits {
    font-family: 'Digital7';
	font-weight: 100;
	font-size: 6rem;
}

.sparring-scoreboard--compact .fighter {
  flex: 1 1 0;
  min-width: 0;
  margin: 15px;
  max-width: 250px;
  padding: 0px;
}

.fighter .white {
 border-bottom: 3px solid #FFF;
 padding-top: 3px;
 padding-bottom: 4px;
}

.fighter .red {
 border-bottom: 3px solid #c00;
 padding-top: 3px;
 padding-bottom: 4px;
}

.sparring-scoreboard--compact .timer-display {
  flex: 0 0 auto;
  text-align: center;
}

.sparring-scoreboard--compact .score {
  font-size: 5rem;  /* smaller than in-ring big board */
}


/* Red controls panel styled like the red score box */
.sparring-controls .controls-side.red-controls {
  border: 3px solid #c00;
  border-radius: 5px;
  padding: 0.5rem;
	width: 100%;
}

/* White controls panel (optional) */
.sparring-controls .controls-side.white-controls {
  border: 3px solid #fff;
  border-radius: 5px;
  padding: 0.5rem;
	width: 100%;
}

/* Make red-side buttons red */
.sparring-controls .red-controls .score-btn {
  background: #c00;
  color: #fff;
  border: 1px solid #900;
}

.sparring-controls .red-controls .score-btn-minus {
  background: #800;
}

/* Optional hover tweaks */
.sparring-controls .red-controls .score-btn:hover {
  background: #e20000;
}

.controls-timer {
  text-align: center;
	padding: 0px 10px;
}

.controls-timer .neutral-events {
  margin-top: 0.5rem;
}

.controls-timer .neutral-events button {
  margin: 0 0.25rem;
  font-size: 0.85rem;
}

.controls-timer .end-match-wrap {
  margin-top: 0.75rem;
}

.controls-timer #endMatchBtn {
  padding: 4px 12px;
  font-size: 0.9rem;
}
/* Base: shared button style */
.controls-timer .timer-btn {
  width: 100%;
  padding: 4px 10px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

/* Desktop: two buttons per row, same width */
.controls-timer .timer-controls,
.controls-timer .neutral-events,
.controls-timer .end-match-wrap {
  display: flex;
  gap: 0.5rem;
}

/* Two per row */
.controls-timer .timer-controls .timer-btn,
.controls-timer .neutral-events .timer-btn,
.controls-timer .end-match-wrap .timer-btn {
  flex: 1 1 0;
}

/* Extra space between Stop & Break, and 0 points & Reset Clock */
.controls-timer .timer-controls {
  margin-bottom: 0.75rem;  /* space between Stop and Break row */
  height: 50px;
}

.controls-timer .neutral-events {
  margin-bottom: 0.75rem;  /* space between 0 points and Reset Clock row */
  height: 75px;
}


.match {
  position: relative;
}

/* Make sides leave vertical room for the icon if needed */
.side {
  position: relative;
}

/* Overlapping, right-aligned swap icon */
.swapSides {
  position: absolute;
  right: 0.5rem;       /* adjust as needed */
  top: 50%;            /* vertically between red and white rows */
  transform: translateY(-50%);
  z-index: 10;         /* above both rows */
  height: 0;           /* no layout height contribution */
  line-height: 0;      /* avoid extra line box */
  padding: 0;          /* ensure no extra height */
}

/* optional: make the icon clickable area a bit larger */
.swapSides i {
  display: inline-block;
  padding: 0.25rem 0.4rem;
  background: #fff;    /* or match your background */
  border-radius: 999px;
}

tr.draggable-row { cursor: grab; }
tr.draggable-row.drag-over { outline: 2px dashed #888; }

/* Full-width banner */
/* Full-width black background; banner content constrained to 1200px */
.site-header {
    width: 100%;
    background: #050505;
}

.header-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 0;
    overflow: hidden;
    background: #050505;
}

.header-banner a {
    display: block;
}

.header-banner img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

/* Desktop navigation */
.main-nav {
    width: 100%;
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 3px solid #b30000;
}

.main-nav #meanWrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-nav .menu {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .menu a {
    display: block;
    padding: 15px 28px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.main-nav .menu a:hover,
.main-nav .menu a:focus {
    color: #fff;
    background: #b30000;
    outline: none;
}


.admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.admin-dashboard h1 {
    text-align: center;
    margin-bottom: 8px;
}

.admin-dashboard-intro {
    text-align: center;
    margin: 0 auto 30px;
    max-width: 700px;
    color: #555;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.admin-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 28px;
    border: 1px solid #d7d7d7;
    border-top: 5px solid #b21f24;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.admin-card p {
    flex-grow: 1;
    margin-top: 0;
    line-height: 1.5;
}

.admin-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.admin-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 4px;
    background: #b21f24;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}

.admin-button:hover,
.admin-button:focus {
    background: #8d181c;
    color: #fff !important;
}

.admin-link {
    font-weight: 700;
}

.admin-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 24px;
}

.admin-page-heading h1 {
    margin: 0 0 8px;
}

.admin-page-heading p {
    margin: 0;
    color: #555;
}

.admin-page-heading-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.admin-filter-form,
.admin-edit-form {
    max-width: 1200px;
    margin: 0 auto 25px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f8f8;
}

.admin-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
}

.admin-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-filter-field input,
.admin-filter-field select,
.admin-form-field input,
.admin-form-field select,
.admin-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font: inherit;
}

.admin-filter-actions,
.admin-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-page-heading-center {
    justify-content: center;
    text-align: center;
}

.admin-toggle-row {
    text-align: center;
    margin: 0 auto 24px;
}

.admin-edit-form-narrow {
    max-width: 720px;
    border-top: 5px solid #b21f24;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-edit-form-narrow h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.admin-edit-form-narrow .admin-form-actions {
    justify-content: flex-end;
    margin-top: 18px;
}

.admin-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.admin-data-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-actions-column {
    white-space: nowrap;
}

.admin-muted {
    font-size: 0.88em;
    color: #666;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 700;
}

.status-active {
    background: #d9f0df;
    color: #17672c;
}

.status-inactive {
    background: #eeeeee;
    color: #555;
}

.no-results {
    padding: 25px;
    text-align: center;
}

.admin-form-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-form-field-full {
    grid-column: 1 / -1;
}

.admin-form-field textarea {
    resize: vertical;
}

.admin-checkbox-field {
    flex-direction: row;
    align-items: center;
}

.admin-checkbox-field input {
    width: auto;
    margin: 0;
}

.admin-alert {
    max-width: 960px;
    margin: 0 auto 20px;
    padding: 16px 18px;
    border-radius: 6px;
}

.admin-alert p {
    margin-top: 0;
}

.admin-alert ul {
    margin-bottom: 0;
}

.admin-alert-error {
    border: 1px solid #d99;
    background: #fff0f0;
    color: #7a1616;
}

@media (max-width: 700px) {
    .admin-page-heading {
        flex-direction: column;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-field-full {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .admin-card-grid {
        grid-template-columns: 1fr;
    }

    .admin-card {
        min-height: auto;
    }
}

/* Simple mobile layout without needing the EZ Signup meanmenu script */
@media screen and (max-width: 768px) {
    .main-nav .menu {
        justify-content: stretch;
    }

    .main-nav .menu li {
        flex: 1 1 50%;
        text-align: center;
    }

    .main-nav .menu a {
        padding: 14px 10px;
        font-size: 13px;
    }
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .top-title {
        font-size: 0.95rem;
    }
    
    .leaderboard th,
    .leaderboard td {
        padding: 4px 2px;
    }
	
	#matchTimer {
	  font-size: 3rem;
	}
	
	.sparring-scoreboard--compact .score {
  		font-size: 3.5rem;  /* smaller than in-ring big board */
	}
	
	.sparring-scoreboard .name {
  		font-size: 0.8rem;  /* smaller than in-ring big board */
	}
	
	
    .score-form-row label,
    .score-form-row .field {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .score-form-row label {
        margin-bottom: 2px;
    }
    .table-header-toggle .header-btn {
        font-size: 1rem;          /* larger text */
        padding: 0.75rem 1.25rem; /* larger hit area */
        min-height: 44px;         /* recommended tap size */
    }
	
	.score-controls-add {
    gap: 0.25rem;
  }
	
.sparring-controls .score-controls .score-btn {
  padding: 2px 2px;
}
	
	.controls-timer .timer-controls,
  .controls-timer .neutral-events,
  .controls-timer .end-match-wrap {
    flex-direction: column;
	 height: 100px;
  }

  .controls-timer .timer-controls .timer-btn,
  .controls-timer .neutral-events .timer-btn,
  .controls-timer .end-match-wrap .timer-btn {
    flex: 1 1 auto;   /* full-width buttons in each row */
  }
}

@media (min-width: 600px) {
	
	.sparring-scoreboard-large .score {
  font-size: 15rem;

}
	
}

@media (min-width: 900px) {
	
	.sparring-scoreboard-large .score {
  		font-size: 20rem;
	}
	.sparring-scoreboard-large #matchTimer {
		font-size: 18rem;
	}
	
}

@media (min-width: 1200px) {
	
	.sparring-scoreboard-large .score {
  		font-size: 25rem;
	}
	.sparring-scoreboard-large #matchTimer {
		font-size: 22rem;
	}
	
}




