
:root {
  --primary: #26495b;
  --secondary: #319a97;
  --gold: #c5a35b;
  --background: #f3f6f6;
  --surface: #ffffff;
  --text: #171a1b;
  --muted: #59666b;
  --border: #171a1b;

  --line: 2px solid var(--border);
  --shadow: 5px 5px 0 var(--border);
  --shadow-small: 3px 3px 0 var(--border);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--background);
  background-image: radial-gradient(
    #aebcbd 1.1px,
    transparent 1.1px
  );
  background-size: 18px 18px;

  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: var(--text);
}

/* TOP NAVIGATION */

.topbar {
  min-height: 76px;
  padding: 12px 6%;
  background: var(--surface);
  border-bottom: var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -2px;
}

.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: var(--line);
  background: var(--primary);
  color: white;
  font-size: 23px;
  box-shadow: var(--shadow-small);
}

.topbar-label {
  padding: 5px 8px;
  border: var(--line);
  background: var(--gold);
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}

.profile-placeholder {
  width: 39px;
  height: 39px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: var(--line);
  background: var(--secondary);
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow-small);
}

/* MAIN PAGE */

.page {
  width: min(1120px, 88%);
  margin: 0 auto;
}

.welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 58px 0 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: var(--primary);
  font-family: "Courier New", monospace;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.intro {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

/* BUTTONS */

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 10px 17px;
  border: var(--line);
  border-radius: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.primary-button {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.primary-button:hover {
  background: var(--secondary);
  color: var(--text);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--border);
}

.primary-button:active {
  transform: translate(5px, 5px);
  box-shadow: none;
}

.primary-button span {
  font-size: 22px;
  line-height: 1;
}

.secondary-button {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-small);
}

.secondary-button:hover {
  background: var(--gold);
}

/* COMPETITION DIRECTORY */

.directory {
  padding: 25px;
  background: var(--surface);
  border: var(--line);
  box-shadow: 8px 8px 0 var(--primary);
}

.directory-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: var(--line);
}

.directory-heading h2 {
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 19px;
  font-weight: 900;
  text-transform: uppercase;
}

.directory-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.search-box {
  width: min(300px, 100%);
  min-height: 43px;
  padding: 0 12px;
  border: var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--background);
  color: var(--text);
}

.search-box > span {
  font-size: 21px;
  font-weight: 900;
}

.search-box:focus-within {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.competition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* COMPETITION CARDS */

.competition-card {
  min-width: 0;
  padding: 19px;
  border: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}

.competition-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--secondary);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.status {
  padding: 5px 8px;
  border: 1px solid var(--border);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

.status-draft {
  background: var(--gold);
  color: var(--text);
}

.card-menu {
  color: var(--text);
  font-weight: 900;
  letter-spacing: 2px;
}

.competition-symbol {
  width: 48px;
  height: 48px;
  margin: 27px 0 19px;
  display: grid;
  place-items: center;
  border: var(--line);
  background: var(--secondary);
  color: var(--text);
  font-size: 25px;
  font-weight: 900;
  box-shadow: var(--shadow-small);
}

.competition-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-family: "Courier New", monospace;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.competition-description {
  min-height: 44px;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.7;
}

.card-divider {
  height: 2px;
  margin-bottom: 18px;
  background: var(--border);
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.card-stats > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-value {
  color: var(--primary);
  font-size: 23px;
  font-weight: 900;
}

.stat-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.sample-note {
  margin: 20px 0 0;
  padding-top: 10px;
  border-top: 1px dashed #aebcbd;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.empty-search {
  grid-column: 1 / -1;
  padding: 28px 0;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

/* CREATE COMPETITION DIALOG */

.competition-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 27px;
  border: 3px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: 8px 8px 0 var(--secondary);
}

.competition-dialog::backdrop {
  background: rgb(23 26 27 / 65%);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
  padding-bottom: 17px;
  border-bottom: var(--line);
}

.dialog-heading h2 {
  margin-bottom: 0;
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.close-button {
  width: 36px;
  height: 36px;
  border: var(--line);
  background: var(--gold);
  color: var(--text);
  font-size: 25px;
  font-weight: 900;
}

.field-label {
  display: block;
  margin: 18px 0 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.optional {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
}

.competition-dialog input {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: var(--line);
  border-radius: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.competition-dialog input:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.form-note,
.form-message {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.7;
}

.form-note {
  color: var(--muted);
}

.form-message {
  color: #a94442;
  font-weight: 700;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

/* FOOTER */

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ACCESSIBILITY */

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 4px;
}

/* TABLET */

@media (max-width: 800px) {
  .competition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome {
    align-items: flex-start;
  }

  .topbar-label {
    display: none;
  }
}

/* MOBILE */

@media (max-width: 540px) {
  .topbar {
    min-height: 65px;
    padding: 12px 5%;
  }

  .brand {
    font-size: 24px;
  }

  .page {
    width: 90%;
  }

  .welcome {
    flex-direction: column;
    padding: 38px 0 30px;
  }

  h1 {
    font-size: 37px;
  }

  .welcome .primary-button {
    width: 100%;
  }

  .directory {
    padding: 17px;
    box-shadow: 5px 5px 0 var(--primary);
  }

  .directory-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .competition-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .competition-description {
    min-height: auto;
  }

  .page-footer {
    flex-direction: column;
    gap: 6px;
  }

  .competition-dialog {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


.competition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.competition-actions button {
  flex: 1;
  min-width: 90px;
}

.competition-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


/* Competition management page */
.competition-management {
  margin-top: 40px;
}

.competition-management > h2 {
  margin-bottom: 10px;
}

.competition-management > p {
  margin-bottom: 24px;
  line-height: 1.6;
}

.competition-management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.competition-management-grid .competition-card {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.competition-management-grid .competition-card h3 {
  margin: 0;
  line-height: 1.4;
}

.competition-management-grid .competition-card p {
  margin: 0;
  line-height: 1.6;
}

.competition-management-grid .competition-card button {
  margin-top: auto;
  align-self: flex-start;
}

/* Adapt the layout for smaller screens */
@media (max-width: 900px) {
  .competition-management-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .competition-management-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .competition-management-grid .competition-card {
    padding: 20px;
  }
}

/* ===== Competition page layout fixes ===== */

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 5%;
  border-bottom: 3px solid #111;
  background: #f3f6f6;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.dashboard-header p {
  margin: 6px 0 0;
}

.dashboard-main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 5%;
  box-sizing: border-box;
}

.welcome-section {
  padding: 28px;
  margin-bottom: 36px;
  border: 3px solid #111;
  background: #fff;
  box-shadow: 6px 6px 0 #26495b;
}

.welcome-section h2 {
  margin: 10px 0;
  overflow-wrap: anywhere;
}

.welcome-section p {
  line-height: 1.6;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
}

#competitionStatus {
  display: inline-block;
  margin-top: 12px;
}

.competition-management {
  margin-top: 44px;
}

.competition-management > h2 {
  margin: 0 0 10px;
}

.competition-management > p {
  margin-bottom: 24px;
  line-height: 1.6;
}

.competition-management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.competition-management-grid .competition-card {
  min-width: 0;
  box-sizing: border-box;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 3px solid #111;
  background: #fff;
  box-shadow: 6px 6px 0 #26495b;
}

.competition-management-grid .competition-card h3 {
  margin: 0;
  line-height: 1.4;
}

.competition-management-grid .competition-card p {
  margin: 0;
  line-height: 1.7;
}

.competition-management-grid .competition-card button {
  margin-top: auto;
  align-self: flex-start;
}

/* Tablet */
@media (max-width: 900px) {
  .competition-management-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .dashboard-header {
    padding: 20px 6%;
  }

  .dashboard-main {
    padding: 28px 6%;
  }

  .welcome-section {
    padding: 20px;
  }

  .competition-management-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .competition-management-grid .competition-card {
    padding: 24px;
  }
}

/* ===== Speakers section ===== */

.speakers-section {
  margin-top: 36px;
  padding: 28px;
  border: 3px solid #111;
  background: #f3f6f6;
  box-shadow: 6px 6px 0 #26495b;
}

.speakers-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}

.speakers-heading h2 {
  margin: 8px 0;
}

.speakers-heading p {
  line-height: 1.6;
}

.speaker-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  margin-bottom: 28px;
  border: 2px solid #111;
  background: #fff;
}

.speaker-form h3 {
  margin: 0 0 8px;
}

.speaker-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 2px solid #111;
  font: inherit;
}

.speaker-form label {
  font-weight: 700;
}

.speaker-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.speaker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.speaker-card {
  min-width: 0;
  padding: 22px;
  border: 2px solid #111;
  background: #fff;
  box-shadow: 4px 4px 0 #319a97;
  overflow-wrap: anywhere;
}

.speaker-card h3 {
  margin: 0 0 8px;
}

.speaker-card p {
  line-height: 1.6;
}

.speaker-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.speaker-card-actions button {
  flex: 1;
}

@media (max-width: 600px) {
  .speakers-section {
    padding: 18px;
  }

  .speaker-form {
    padding: 18px;
  }

  .speaker-list {
    grid-template-columns: 1fr;
  }
}


/* Speakers page search */
.speaker-tools {
  margin-bottom: 24px;
}

.speaker-tools input {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 2px solid #111;
  background: #fff;
  font: inherit;
}

.speaker-tools input:focus,
.speaker-form input:focus {
  outline: 3px solid #319a97;
  outline-offset: 2px;
}

.speakers-section [hidden],
.speaker-form[hidden] {
  display: none !important;
}

/*rounds*/

/* ===== TABULA ROUNDS MANAGEMENT ===== */

.rounds-page {
  width: min(1120px, 90%);
  margin: 0 auto;
  padding: 42px 0;
}

.rounds-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 32px;
  padding: 28px;
  border: 3px solid var(--border);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--primary);
}

.rounds-header h1 {
  margin-bottom: 12px;
}

.rounds-header p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rounds-panel {
  margin-top: 30px;
  padding: 28px;
  border: 3px solid var(--border);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--primary);
}

.rounds-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: var(--line);
}

.rounds-panel-heading h2 {
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 21px;
  font-weight: 900;
  text-transform: uppercase;
}

.rounds-panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rounds-tools {
  margin-bottom: 24px;
}

.rounds-tools input {
  width: 100%;
  max-width: 520px;
  min-height: 46px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.rounds-tools input:focus,
.round-form input:focus,
.round-form select:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.rounds-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rounds-list .competition-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rounds-list .competition-card p {
  color: var(--muted);
  line-height: 1.7;
}

.rounds-list .competition-card strong {
  color: var(--text);
}

.round-status {
  display: inline-block;
  padding: 5px 9px;
  border: 2px solid var(--border);
  background: var(--gold);
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.round-status-active {
  background: var(--secondary);
}

.round-status-completed {
  background: #dce8e2;
}

.round-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.round-form label {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.round-form input,
.round-form select {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.round-form input::placeholder {
  color: var(--muted);
}

.round-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.round-form [hidden] {
  display: none !important;
}

#formMessage {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.rounds-list .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.rounds-list .form-actions button {
  flex: 1;
  min-width: 90px;
}

.rounds-page button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rounds-page .empty-rounds {
  grid-column: 1 / -1;
  padding: 24px;
  border: 2px dashed var(--border);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

@media (max-width: 700px) {
  .rounds-page {
    padding: 26px 0;
  }

  .rounds-header,
  .rounds-panel {
    padding: 20px;
  }

  .rounds-header {
    align-items: flex-start;
  }

  .rounds-header .secondary-button {
    width: 100%;
  }

  .rounds-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .rounds-header,
  .rounds-panel {
    padding: 16px;
  }

  .rounds-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .round-form .form-actions button {
    width: 100%;
  }
}

/*apply.html*/

/* ===== PUBLIC APPLICATION PAGE ===== */

.apply-page {
  width: min(760px, 92%);
  margin: 0 auto;
  padding: 32px 0;
}

.apply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.apply-brand {
  color: var(--primary);
  font-size: 27px;
  font-weight: 950;
  text-decoration: none;
  letter-spacing: -1px;
}

.apply-brand span {
  color: var(--secondary);
}

.apply-header > p {
  margin: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.apply-card {
  padding: clamp(20px, 5vw, 42px);
  border: 3px solid var(--border);
  background: var(--surface);
  box-shadow: 7px 7px 0 var(--primary);
}

.apply-card h1 {
  margin: 10px 0 14px;
  color: var(--primary);
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -1.5px;
}

.apply-intro,
.apply-privacy {
  color: var(--muted);
  line-height: 1.7;
}

.apply-notice {
  margin: 24px 0;
  padding: 15px;
  border: 2px solid var(--border);
  background: var(--background);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 24px;
}

.apply-form label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.apply-form label span {
  color: var(--muted);
  font-weight: 600;
  text-transform: none;
}

.apply-form input,
.apply-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.apply-form textarea {
  min-height: 120px;
  resize: vertical;
}

.apply-form input:focus,
.apply-form textarea:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.apply-form button {
  margin-top: 14px;
}

.apply-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#applicationMessage {
  min-height: 20px;
  margin: 6px 0;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.apply-privacy {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.apply-page [hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .apply-page {
    padding: 20px 0;
  }

  .apply-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .apply-card {
    box-shadow: 5px 5px 0 var(--primary);
  }

  .apply-form button {
    width: 100%;
  }
}

/*applications.html*/

/* ===== APPLICATION REVIEW ===== */

.applications-page {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 40px 0;
}

.applications-header,
.applications-panel {
  padding: 28px;
  border: 3px solid var(--border);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--primary);
}

.applications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.applications-header h1 {
  margin-bottom: 10px;
}

.applications-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.applications-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: var(--line);
}

.applications-heading h2 {
  margin: 8px 0;
  color: var(--primary);
  font-size: 23px;
  font-weight: 900;
  text-transform: uppercase;
}

.applications-heading p {
  color: var(--muted);
  line-height: 1.6;
}

.applications-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.applications-tools input,
.applications-tools select {
  min-height: 46px;
  padding: 11px 13px;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.applications-tools input {
  flex: 1 1 280px;
}

.applications-tools select {
  flex: 0 1 200px;
}

.applications-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.application-review-card {
  min-width: 0;
  padding: 20px;
  border: 2px solid var(--border);
  background: var(--background);
  overflow-wrap: anywhere;
}

.application-review-card h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 19px;
}

.application-review-card p {
  line-height: 1.65;
}

.application-review-card .application-statement {
  padding: 12px;
  border-left: 4px solid var(--secondary);
  background: var(--surface);
}

.application-status {
  display: inline-block;
  padding: 5px 9px;
  border: 2px solid var(--border);
  background: var(--gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.application-status-accepted {
  background: var(--secondary);
}

.application-status-rejected {
  background: #f0d8d5;
}

.application-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.application-review-actions button {
  flex: 1;
  min-width: 110px;
}

#reviewMessage {
  margin: 12px 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.applications-list .empty-applications {
  grid-column: 1 / -1;
  padding: 24px;
  border: 2px dashed var(--border);
  text-align: center;
  color: var(--muted);
}

.applications-page button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .applications-page {
    padding: 24px 0;
  }

  .applications-header,
  .applications-panel {
    padding: 20px;
  }

  .applications-list {
    grid-template-columns: 1fr;
  }

  .applications-header .secondary-button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .applications-header,
  .applications-panel {
    padding: 16px;
  }

  .applications-review-actions button {
    width: 100%;
  }
}

/*applications.js*/

/* Applications management card */

#manageApplicationsButton:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

#manageApplicationsButton:focus-visible {
  outline: 3px solid #c5a35b;
  outline-offset: 4px;
}

/*rooms and assigmenst html*/


body:has(#roomForm),
body:has(#availableRooms) {
  background-color: #f3f6f6;
  background-image: radial-gradient(#c7d3d5 1px, transparent 1px);
  background-size: 18px 18px;
}

body:has(#roomForm) .container,
body:has(#availableRooms) .container {
  width: min(100% - 40px, 1080px);
  margin: 48px auto;
  padding: 36px;
  background: #fff;
  border: 3px solid #1b1b1b;
  box-shadow: 10px 10px 0 #1b1b1b;
}

body:has(#roomForm) header,
body:has(#availableRooms) header {
  margin-bottom: 36px;
  padding: 28px;
  background: #fff;
  color: #fff;
  border: 3px solid #1b1b1b;
  box-shadow: 6px 6px 0 #319a97;
}

body:has(#roomForm) header h1,
body:has(#availableRooms) header h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -1.5px;
}

body:has(#roomForm) header p,
body:has(#availableRooms) header p {
  margin: 0;
  line-height: 1.7;
  color: #f3f6f6;
}

body:has(#roomForm) section,
body:has(#availableRooms) section {
  margin: 28px 0;
  padding: 28px;
  background: #f3f6f6;
  border: 3px solid #1b1b1b;
  box-shadow: 5px 5px 0 #1b1b1b;
}

body:has(#roomForm) section h2,
body:has(#availableRooms) section h2 {
  margin: 0 0 22px;
  color: #26495b;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 900;
  line-height: 1.2;
}

body:has(#roomForm) section p,
body:has(#availableRooms) section p {
  line-height: 1.7;
}

body:has(#roomForm) label,
body:has(#availableRooms) > section > label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 800;
}

body:has(#roomForm) input[type="text"],
body:has(#roomForm) select,
body:has(#availableRooms) select {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 3px solid #1b1b1b;
  border-radius: 0;
  background: #fff;
  color: #1b1b1b;
  font: inherit;
}

body:has(#roomForm) input[type="text"]:focus,
body:has(#roomForm) select:focus,
body:has(#availableRooms) select:focus {
  outline: 3px solid #319a97;
  outline-offset: 3px;
}

body:has(#roomForm) button,
body:has(#availableRooms) button {
  min-height: 46px;
  padding: 11px 18px;
  border: 3px solid #1b1b1b;
  border-radius: 0;
  background: #319a97;
  color: #111;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0 #1b1b1b;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

body:has(#roomForm) button:hover,
body:has(#availableRooms) button:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #1b1b1b;
}

body:has(#roomForm) button:disabled,
body:has(#availableRooms) button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body:has(#roomForm) #saveRoomBtn {
  background: #26495b;
  color: #fff;
}

body:has(#roomForm) #cancelEditBtn {
  margin-left: 10px;
  background: #c5a35b;
  color: #1b1b1b;
}

.room-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  padding: 24px;
  background: #fff;
  border: 3px solid #1b1b1b;
  box-shadow: 6px 6px 0 #c5a35b;
}

.room-card h3 {
  flex: 1 1 180px;
  margin: 0;
  color: #26495b;
  font-size: 1.3rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.room-card button {
  margin: 0 4px 4px 0;
}

.room-card button:last-child {
  background: #c5a35b;
}

#availableRooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin-top: 24px;
}

.room-assignment-row {
  margin: 0;
  padding: 22px;
  background: #fff;
  border: 3px solid #1b1b1b;
  box-shadow: 5px 5px 0 #319a97;
}

.room-assignment-row label {
  display: flex !important;
  align-items: center;
  gap: 14px;
  margin: 0 !important;
  font-weight: 900;
  line-height: 1.5;
  cursor: pointer;
}

.room-assignment-row input[type="checkbox"] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #26495b;
  cursor: pointer;
}

body:has(#roomForm) #roomMessage,
body:has(#availableRooms) #assignmentMessage {
  margin: 20px 0 0;
  padding: 12px 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body:has(#roomForm) main > p:last-child,
body:has(#availableRooms) main > p:last-child {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 2px solid #c7d3d5;
}

body:has(#roomForm) a,
body:has(#availableRooms) a {
  color: #26495b;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

body:has(#roomForm) a:hover,
body:has(#availableRooms) a:hover {
  color: #319a97;
}

@media (max-width: 640px) {
  body:has(#roomForm) .container,
  body:has(#availableRooms) .container {
    width: auto;
    margin: 18px 12px;
    padding: 16px;
    box-shadow: 5px 5px 0 #1b1b1b;
  }

  body:has(#roomForm) header,
  body:has(#availableRooms) header {
    padding: 20px;
    margin-bottom: 26px;
  }

  body:has(#roomForm) section,
  body:has(#availableRooms) section {
    padding: 18px;
    margin: 24px 0;
  }

  .room-card {
    align-items: stretch;
    padding: 18px;
  }

  .room-card button {
    flex: 1 1 90px;
  }

  body:has(#roomForm) #cancelEditBtn {
    margin-left: 0;
  }
}


/* TABULA — TOURNAMENT TAB */

.tabulation-page {
  --tab-ink: #17272d;
  --tab-muted: #68777c;
  --tab-line: #dce2e4;
  --tab-surface: #ffffff;
  --tab-background: #f3f6f6;
  --tab-accent: #319a97;

  margin: 0;
  min-height: 100vh;
  background: var(--tab-background);
  color: var(--tab-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.tabulation-page *,
.tabulation-page *::before,
.tabulation-page *::after {
  box-sizing: border-box;
}

.tabulation-page .tabulation-header {
  background: var(--tab-surface);
  border-bottom: 1px solid var(--tab-line);
  padding: 24px clamp(16px, 4vw, 56px) 0;
}

.tabulation-page .tabulation-brand,
.tabulation-page .tabulation-title-row,
.tabulation-page .tabulation-table-toolbar,
.tabulation-page .tabulation-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tabulation-page .tabulation-brand {
  padding-bottom: 22px;
}

.tabulation-page .tabulation-eyebrow {
  display: block;
  color: var(--tab-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tabulation-page .tabulation-brand h1 {
  margin: 8px 0 0;
  font-size: clamp(21px, 3vw, 30px);
  letter-spacing: -0.045em;
}

.tabulation-page .tabulation-back-button,
.tabulation-page .tabulation-nav-button {
  border: 1px solid var(--tab-line);
  background: white;
  color: var(--tab-ink);
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.tabulation-page .tabulation-back-button:hover,
.tabulation-page .tabulation-nav-button:hover {
  border-color: var(--tab-accent);
}

.tabulation-page .tabulation-nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.tabulation-page .tabulation-nav-button {
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--tab-muted);
  white-space: nowrap;
}

.tabulation-page .tabulation-nav-button.active {
  color: var(--tab-ink);
  border-bottom-color: var(--tab-accent);
}

.tabulation-page .tabulation-main {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 36px clamp(16px, 4vw, 56px);
}

.tabulation-page .tabulation-title-row {
  align-items: flex-start;
  margin-bottom: 26px;
}

.tabulation-page .tabulation-title-row h2 {
  margin: 8px 0;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.05em;
}

.tabulation-page .tabulation-title-row p {
  margin: 0;
  color: var(--tab-muted);
  font-size: 14px;
}

.tabulation-page .tabulation-status {
  border: 1px solid var(--tab-line);
  background: white;
  padding: 8px 10px;
  color: var(--tab-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tabulation-page .tabulation-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.tabulation-page .tabulation-metric {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: white;
  border: 1px solid var(--tab-line);
}

.tabulation-page .tabulation-metric span {
  color: var(--tab-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.tabulation-page .tabulation-metric strong {
  font-size: 27px;
  letter-spacing: -0.04em;
}

.tabulation-page .tabulation-table-section {
  background: white;
  border: 1px solid var(--tab-line);
}

.tabulation-page .tabulation-table-toolbar {
  padding: 16px;
  border-bottom: 1px solid var(--tab-line);
}

.tabulation-page .tabulation-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(480px, 100%);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--tab-line);
}

.tabulation-page .tabulation-search > span:first-child {
  color: var(--tab-muted);
  font-size: 21px;
}

.tabulation-page .tabulation-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.tabulation-page .tabulation-search button {
  border: 0;
  background: transparent;
  color: var(--tab-muted);
  font-size: 20px;
  cursor: pointer;
}

.tabulation-page .tabulation-result-count {
  color: var(--tab-muted);
  font-size: 12px;
}

.tabulation-page .tabulation-table-scroll {
  overflow-x: auto;
}

.tabulation-page .tabulation-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.tabulation-page .tabulation-table th {
  padding: 14px 16px;
  background: #f8fafa;
  border-bottom: 1px solid var(--tab-line);
  color: var(--tab-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tabulation-page .tabulation-table td {
  padding: 16px;
  border-bottom: 1px solid #e9edef;
  vertical-align: middle;
}

.tabulation-page .tabulation-table tbody tr:last-child td {
  border-bottom: 0;
}

.tabulation-page .tabulation-table tbody tr:hover td {
  background: #fbfdfd;
}

.tabulation-page .tabulation-empty-state {
  height: 190px;
  text-align: center;
  color: var(--tab-muted);
}

.tabulation-page .tabulation-empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--tab-ink);
  font-size: 15px;
}

.tabulation-page .tabulation-empty-state p {
  margin: 0;
  font-size: 13px;
}

.tabulation-page .tabulation-table-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--tab-line);
  color: var(--tab-muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.tabulation-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 650px) {
  .tabulation-page .tabulation-brand,
  .tabulation-page .tabulation-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabulation-page .tabulation-metrics {
    grid-template-columns: 1fr;
  }

  .tabulation-page .tabulation-metric {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .tabulation-page .tabulation-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tabulation-page .tabulation-search {
    width: 100%;
  }

  .tabulation-page .tabulation-table-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}


/* Shared navigation inside the existing dashboard header */
.dashboard-header .shared-navigation {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid #d1d8d8;
}

.dashboard-header .shared-navigation a {
  display: inline-block;
  padding: 8px 10px;
  color: #171a1b;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid #171a1b;
  border-radius: 3px;
  background: transparent;
}

.dashboard-header .shared-navigation a:hover,
.dashboard-header .shared-navigation a.active {
  background: #26495b;
  color: #ffffff;
}

.dashboard-header .shared-navigation a.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .dashboard-header .shared-navigation {
    gap: 6px;
  }

  .dashboard-header .shared-navigation a {
    padding: 7px 8px;
    font-size: 0.82rem;
  }
}


/* Judging Criteria page */

.criteria-panel {
  margin-top: 30px;
  padding: 28px;
  border: 3px solid var(--border);
  background: #f3f6f6;
  box-shadow: 6px 6px 0 var(--primary);
}

.criteria-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.criteria-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.criteria-field.full-width {
  grid-column: 1 / -1;
}

.criteria-field label {
  font-weight: 600;
}

.criteria-field input,
.criteria-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px;
  border: var(--line);
  font: inherit;
}

.criteria-field textarea {
  min-height: 85px;
  resize: vertical;
}

.criteria-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.criteria-checkbox input {
  width: auto;
}

.criteria-actions {
  grid-column: 1 / -1;
}

.criteria-message {
  margin: 16px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.criteria-table-wrap {
  overflow-x: auto;
}

.criteria-table {
  width: 100%;
  border-collapse: collapse;
}

.criteria-table th,
.criteria-table td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid #e1e7e7;
  vertical-align: top;
}

.criteria-table th {
  background: #f3f6f6;
}

.criteria-empty {
  padding: 20px 0;
  color: #596565;
}

@media (max-width: 650px) {
  .criteria-form {
    grid-template-columns: 1fr;
  }

  .criteria-field.full-width,
  .criteria-actions {
    grid-column: auto;
  }

  .criteria-panel {
    padding: 16px;
  }
}

.roomSelect{
 box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 3px solid #1b1b1b;
  border-radius: 0;
  background: #fff;
  color: #1b1b1b;
  font: inherit;
}

.roundSelect{
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 3px solid #1b1b1b;
  border-radius: 0;
  background: #fff;
  color: #1b1b1b;
  font: inherit;
}
