@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --azure: #009fff;
  --azure-dark: #0078bd;
  --azure-soft: #e8f6ff;
  --orange: #ff9400;
  --orange-dark: #d97800;
  --ink: #142b3a;
  --muted: #5c7180;
  --line: #d5e3ec;
  --surface: #ffffff;
  --background: #f5f9fc;
  --success: #147a54;
  --success-soft: #eaf8f1;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --warning: #925300;
  --warning-soft: #fff7e8;
  --shadow: 0 14px 40px rgba(20, 43, 58, 0.14);
}

* {
  box-sizing: border-box;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
.brand {
  margin-top: 0;
  color: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.65rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  margin: 2rem 0 0.75rem;
  font-size: 1rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--azure-dark);
  font-weight: 600;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #005f96;
}

button,
input,
select,
textarea {
  max-width: 100%;
  min-width: 0;
  font: inherit;
}

button,
input[type="submit"],
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--azure-dark);
  border-radius: 6px;
  background: var(--surface);
  color: var(--azure-dark);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.65rem 1rem;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

button:hover,
.button:hover {
  background: var(--azure-soft);
  color: var(--azure-dark);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 159, 255, 0.28);
  outline-offset: 2px;
}

button[type="submit"],
input[type="submit"],
.button-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #1d2730;
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.button-primary:hover {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
  color: #ffffff;
}

button.button-secondary {
  border-color: var(--azure-dark);
  background: var(--surface);
  color: var(--azure-dark);
}

button.button-secondary:hover {
  background: var(--azure-soft);
  color: var(--azure-dark);
}

button.button-danger {
  border-color: #e1a09a;
  background: var(--surface);
  color: var(--danger);
}

button.button-danger:hover {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

button:disabled,
button:disabled:hover {
  border-color: #c5d1d8;
  background: #edf3f7;
  color: var(--muted);
  cursor: not-allowed;
}

.icon-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-color: transparent;
  color: var(--muted);
  font-size: 1.5rem;
}

label,
legend {
  color: var(--ink);
  font-weight: 700;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="search"],
input[type="file"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #adc2cf;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.65rem 0.75rem;
}

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

input[readonly] {
  background: #edf3f7;
  color: var(--muted);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0.2rem 0 0;
  accent-color: var(--azure-dark);
}

form br {
  display: none;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

/* Mark required fields consistently, except on the self-evident sign-in form */
form:not(.login-form):not(.account-settings-form) label:has(+ input[required], + select[required], + textarea[required])::after,
form:not(.login-form):not(.account-settings-form) input[required] + label::after,
form:not(.login-form):not(.account-settings-form) select[required] + label::after,
form:not(.login-form):not(.account-settings-form) textarea[required] + label::after,
form:not(.login-form):not(.account-settings-form) label:has(input[required], select[required], textarea[required])::after {
  content: " *";
  color: var(--danger);
}

form:not(.login-form):not(.account-settings-form):has(:required):not(:has(> .modal-body))::before,
form:not(.login-form):not(.account-settings-form):has(:required) > .modal-body::before {
  display: block;
  grid-column: 1 / -1;
  content: "* indicates a required field.";
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

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

.form-grid > div {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.form-grid > button {
  align-self: end;
}

.page-form {
  display: grid;
  gap: 1rem;
}

.page-form > div {
  display: grid;
  gap: 0.4rem;
}

.form-help {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
}

.checkbox-row label {
  font-weight: 500;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
}

legend {
  padding: 0 0.4rem;
}

[hidden] {
  display: none !important;
}

.app-page {
  min-height: 100vh;
}

.shell {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 0 0 3rem;
}

.topbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.topbar-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 112px;
  height: auto;
}

.brand {
  margin: 0;
  font-size: 1.3rem;
}

.topbar form,
.table-actions form {
  margin: 0;
}

.topbar-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.settings-button {
  border-color: var(--azure-dark);
  color: var(--azure-dark);
  font-family: Arial, sans-serif;
  line-height: 1;
}

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-header h2,
.section-header h3 {
  margin-bottom: 0;
}

.dashboard-stack {
  display: grid;
  gap: 0;
}

.dashboard-stack,
.dashboard-section,
.organiser-dashboard,
.section-header,
.table-wrap,
.table-actions,
.link-panel,
.member-list {
  min-width: 0;
}

.dashboard-section > * {
  max-width: 100%;
}

.dashboard-section {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.dashboard-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.dashboard-section-first {
  border-top: 0;
  padding-top: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header.section-header-inline {
  flex-direction: row;
  align-items: center;
}

.section-header-inline > .status-pill {
  flex-shrink: 0;
  margin-left: auto;
}

.section-actions,
.table-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.summary-grid,
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.summary-grid > div,
.stat {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 1rem 1.15rem;
}

.summary-grid > div:first-child,
.stat:first-child {
  border-left: 0;
}

.summary-grid dt,
.stat-label {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.summary-grid dd,
.stat-value {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.stat-value {
  font-size: 1.65rem;
}

.dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pending-stat .stat-value {
  color: var(--warning);
}

.dashboard-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
}

.dashboard-tabs a {
  border-bottom: 3px solid transparent;
  color: var(--muted);
  padding: 0.75rem 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-tabs a:hover {
  color: var(--azure-dark);
}

.dashboard-tabs a[aria-current="page"] {
  border-color: var(--azure);
  color: var(--ink);
}

.table-wrap {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow-x: auto;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf7fd;
  color: #315163;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #f9fcfe;
}

.organiser-dashboard table {
  display: table;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

/* Keep every grouped user table on the same column grid */
.user-table {
  table-layout: fixed;
}

.user-table th:nth-child(1) {
  width: 17%;
}

.user-table th:nth-child(2) {
  width: 25%;
}

.user-table th:nth-child(3) {
  width: 15%;
}

.user-table th:nth-child(4) {
  width: 21%;
}

.user-table th:nth-child(5) {
  width: 22%;
}

.user-table td {
  overflow-wrap: anywhere;
}

.user-action-menu {
  width: min(100%, 210px);
}

.user-action-menu summary {
  border: 1px solid var(--azure-dark);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  color: var(--azure-dark);
  cursor: pointer;
  font-weight: 700;
}

.user-action-menu summary:hover {
  background: var(--azure-soft);
}

.user-action-menu-list {
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 0.4rem;
  padding: 0.5rem;
  background: var(--surface);
}

.user-action-menu-list button {
  width: 100%;
  white-space: normal;
}

.team-leader-event-table {
  table-layout: fixed;
}

.team-leader-event-table th:nth-child(1) {
  width: 15%;
}

.team-leader-event-table th:nth-child(2) {
  width: 18%;
}

.team-leader-event-table th:nth-child(3),
.team-leader-event-table th:nth-child(4) {
  width: 13%;
}

.team-leader-event-table th:nth-child(5) {
  width: 23%;
}

.team-leader-event-table th:nth-child(6) {
  width: 18%;
}

.team-leader-event-table td {
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.registration-window {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.registration-window > div {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: baseline;
}

.registration-window dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.registration-window dd {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 0.75rem;
  margin: 0;
}

.registration-window-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.event-name-with-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.pending-request-indicator {
  display: inline-flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #d98300;
  border-radius: 50%;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.event-stats-toggle {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  border-color: transparent;
  padding: 0;
}

.event-stats-toggle span {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 150ms ease;
}

.event-stats-toggle[aria-expanded="true"] span {
  transform: rotate(90deg);
}

.event-stats-row:hover {
  background: transparent;
}

.event-stats-cell {
  background: #f9fcfe;
  padding: 1rem;
}

.event-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.event-stats-grid > div {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 0.35rem 1rem;
}

.event-stats-grid > div:first-child {
  border-left: 0;
}

.event-stats-grid dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-stats-grid dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.event-stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.event-team-roster {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.event-team-roster h5 {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1rem;
}

.event-team-list-header,
.event-team-list li {
  display: grid;
  grid-template-columns: minmax(95px, 0.7fr) minmax(130px, 1.1fr) minmax(160px, 1.5fr) minmax(85px, 0.65fr) minmax(125px, 0.8fr) minmax(110px, 0.75fr);
  gap: 1rem;
  align-items: center;
}

.event-team-list-header {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 0.75rem 0.5rem;
  text-transform: uppercase;
}

.event-team-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.event-team-list li {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
}

.event-team-list li:last-child {
  border-bottom: 0;
}

.event-team-list li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-team-field-label {
  display: none;
}

.event-team-actions {
  display: grid;
  gap: 0.5rem;
}

.event-accessibility-details {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.event-accessibility-details summary {
  width: fit-content;
  color: var(--azure-dark);
  cursor: pointer;
  font-weight: 700;
}

.event-accessibility-list {
  display: grid;
  gap: 1rem;
  margin-top: 0.85rem;
}

.event-accessibility-record {
  border-left: 4px solid var(--azure);
  padding: 0.25rem 0 0.25rem 1rem;
}

.event-accessibility-record header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.event-accessibility-record header > div {
  display: grid;
  min-width: 0;
}

.event-accessibility-record header span:not(.status-pill) {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.event-accessibility-text {
  margin: 0.85rem 0;
  white-space: normal;
}

.event-accessibility-record form {
  margin-top: 0.75rem;
}

.event-accessibility-resolution-form {
  display: flex;
  align-items: end;
  gap: 0.65rem;
}

.event-accessibility-resolution-form .form-field {
  width: min(100%, 240px);
}

.event-team-actions form,
.event-team-actions button {
  width: 100%;
}

td ul {
  margin: 0;
  padding-left: 1.1rem;
}

.interest-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  list-style: none;
}

.interest-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.interest-list li > div {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.interest-list form {
  margin: 0;
}

.capacity-warning {
  color: var(--danger);
  font-weight: 700;
}

.unverified-attendee {
  color: var(--muted);
  opacity: 0.65;
}

.unverified-attendee label {
  color: var(--muted);
}

.member-list {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  list-style: none;
}

.team-members-section .member-list {
  margin-top: 0;
}

.team-member-actions {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.team-member-actions > summary {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--azure-dark);
  border-radius: 6px;
  background: var(--surface);
  color: var(--azure-dark);
  cursor: pointer;
  list-style: none;
}

.team-member-actions > summary::-webkit-details-marker {
  display: none;
}

.team-member-actions > summary:hover,
.team-member-actions[open] > summary {
  background: var(--azure-soft);
}

.team-member-actions > summary:focus-visible {
  outline: 3px solid rgba(0, 159, 255, 0.28);
  outline-offset: 2px;
}

.team-member-actions-list {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 30;
  width: min(280px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.35rem;
  background: var(--surface);
  box-shadow: 0 6px 20px rgb(0 25 46 / 12%);
}

.team-member-actions-list form {
  margin: 0;
}

.team-member-actions-list button {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--azure-dark);
  text-align: left;
}

.team-member-actions-list button:hover {
  background: var(--azure-soft);
  color: var(--azure-dark);
}

.share-registration-toast {
  position: fixed;
  z-index: 1000;
  right: 1.5rem;
  bottom: 1.5rem;
  margin: 0;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 6px 20px rgb(0 25 46 / 18%);
}

.member-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1rem;
}

.member-identity {
  min-width: 0;
  overflow-wrap: anywhere;
}

.member-list li:last-child {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  white-space: nowrap;
}

.status-pill.pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-pill.neutral {
  background: #edf3f7;
  color: var(--muted);
}

.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.status-pill.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.log-table {
  table-layout: fixed;
}

.log-table th {
  white-space: normal;
}

.log-table th:nth-child(1) {
  width: 16%;
}

.log-table th:nth-child(2) {
  width: 20%;
}

.log-table th:nth-child(3),
.log-table th:nth-child(4) {
  width: 14%;
}

.log-table th:nth-child(5) {
  width: 13%;
}

.log-table th:nth-child(6) {
  width: 10%;
}

.log-table th:nth-child(7) {
  width: 13%;
}

.log-table td {
  overflow-wrap: anywhere;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.info-note {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.info-icon {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--azure-dark);
  border-radius: 50%;
  color: var(--azure-dark);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.alert {
  border: 1px solid #bdd8e8;
  border-left: 4px solid var(--azure);
  border-radius: 6px;
  background: var(--azure-soft);
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
}

.alert-error {
  border-color: #efb9b4;
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: #791d16;
}

.alert-success {
  border-color: #b8dfcd;
  border-left-color: var(--success);
  background: var(--success-soft);
  color: #0e5e40;
}

.alert-warning {
  border-color: #efd49d;
  border-left-color: var(--orange);
  background: var(--warning-soft);
  color: #754400;
}

.link-panel,
.inline-form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  margin: 1rem 0;
  padding: 1rem;
}

.link-value {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.team-hub-tabs {
  margin-top: 0;
}

.team-hub-tabs ~ .dashboard-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  min-height: 600px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.knowledge-sidebar {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #f9fcfe;
  padding: 1.25rem;
}

.knowledge-navigation a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border-left: 3px solid transparent;
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
}

.knowledge-navigation a > span:first-child {
  min-width: 0;
}

.knowledge-publication-status {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #c52b2b;
}

.knowledge-publication-status.is-published {
  background: var(--success);
}

.knowledge-status-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.knowledge-navigation a:hover {
  background: var(--azure-soft);
  color: var(--azure-dark);
}

.knowledge-navigation a[aria-current="page"] {
  border-left-color: var(--azure);
  background: var(--azure-soft);
  color: var(--azure-dark);
  font-weight: 700;
}

.knowledge-dashboard-link {
  margin-bottom: 1.5rem;
}

.knowledge-category {
  margin-top: 1.5rem;
}

.knowledge-category h3 {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.knowledge-category ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.knowledge-main {
  min-width: 0;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem) 3.5rem;
}

.knowledge-admin-header {
  margin-bottom: 1rem;
}

.knowledge-action-menu {
  position: relative;
  width: 190px;
}

.knowledge-action-menu summary {
  border: 1px solid var(--azure-dark);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  color: var(--azure-dark);
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}

.knowledge-action-menu summary:hover,
.knowledge-action-menu[open] summary {
  background: var(--azure-soft);
}

.knowledge-action-menu-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.4rem);
  right: 0;
  display: grid;
  width: 230px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(20, 43, 58, 0.14);
}

.knowledge-action-menu-list button {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  border: 0;
  padding: 0.55rem 0.7rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.knowledge-action-menu-list button:hover:not(:disabled),
.knowledge-action-menu-list button:focus-visible {
  background: var(--azure-soft);
  color: var(--azure-dark);
}

.knowledge-action-menu-list button:disabled,
.knowledge-action-menu-list button:disabled:hover {
  border-color: transparent;
  background: transparent;
  opacity: 0.55;
}

.knowledge-action-menu-list button:nth-child(4) {
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
}

.category-order-groups {
  display: grid;
  gap: 1.25rem;
}

.category-order-group h4 {
  margin: 0 0 0.5rem;
}

.category-order-list {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  list-style: none;
}

.category-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
}

.category-order-item:last-child {
  border-bottom: 0;
}

.category-order-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.category-order-controls .icon-button {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  border-color: var(--line);
  background: var(--surface);
  font-size: 1rem;
}

.knowledge-article {
  width: min(100%, 880px);
}

.knowledge-article > header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
}

.knowledge-article-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.knowledge-article-header > div {
  min-width: 0;
}

.knowledge-article h1 {
  margin-bottom: 0;
  font-size: 2rem;
}

.knowledge-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--azure-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.knowledge-dashboard section + section {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.knowledge-performance .table-wrap {
  overflow-x: auto;
}

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

.knowledge-performance-table th,
.knowledge-performance-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.knowledge-performance-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.knowledge-dashboard h2,
.markdown-content h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.knowledge-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.knowledge-topic-grid a {
  display: grid;
  gap: 0.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 1rem 0;
  text-decoration: none;
}

.knowledge-topic-grid a:nth-child(odd) {
  padding-right: 1rem;
}

.knowledge-topic-grid a:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

.knowledge-topic-grid a:hover strong,
.knowledge-top-articles a:hover {
  color: var(--azure-dark);
}

.knowledge-topic-grid span,
.knowledge-top-articles span {
  color: var(--muted);
  font-size: 0.85rem;
}

.knowledge-top-articles ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.knowledge-top-articles li {
  display: grid;
  gap: 0.15rem;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.markdown-content {
  overflow-wrap: anywhere;
}

.markdown-content h2 {
  margin-top: 2.25rem;
}

.markdown-content h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
}

.markdown-content p,
.markdown-content ul,
.markdown-content ol,
.markdown-content blockquote,
.markdown-content pre,
.markdown-content table {
  margin: 0 0 1.25rem;
}

.knowledge-article-footer {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.knowledge-article-footer > p {
  margin: 0.25rem 0;
}

.knowledge-rating {
  margin-top: 1.5rem;
  color: var(--ink);
}

.knowledge-rating h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.knowledge-rating-form {
  width: min(100%, 320px);
}

.knowledge-rating fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.knowledge-rating-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 0.4rem;
}

.knowledge-rating-options label {
  position: relative;
}

.knowledge-rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.knowledge-rating-options span {
  display: grid;
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 700;
  place-items: center;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.knowledge-rating-options label:hover span {
  border-color: var(--azure);
  background: var(--azure-soft);
}

.knowledge-rating-options input:checked + span {
  border-color: var(--azure);
  background: var(--azure-dark);
  color: #ffffff;
}

.knowledge-rating-options input:focus-visible + span {
  outline: 3px solid rgba(0, 159, 255, 0.25);
  outline-offset: 2px;
}

.knowledge-rating-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.knowledge-rating-status {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.knowledge-rating-form.is-submitting .knowledge-rating-options {
  pointer-events: none;
}

.markdown-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.markdown-content blockquote {
  border-left: 4px solid var(--azure);
  margin-left: 0;
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--muted);
}

.markdown-content code {
  border-radius: 4px;
  background: #edf3f7;
  padding: 0.1rem 0.3rem;
}

.markdown-content pre {
  max-width: 100%;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  overflow-x: auto;
  padding: 1rem;
}

.markdown-content pre code {
  background: transparent;
  padding: 0;
}

.markdown-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.knowledge-editor-form {
  display: grid;
  gap: 0.75rem;
}

.knowledge-editor-form textarea {
  min-height: 520px;
  resize: vertical;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  line-height: 1.55;
  tab-size: 2;
}

.knowledge-upload-result {
  display: grid;
  gap: 0.35rem;
}

.knowledge-upload-result code {
  overflow-wrap: anywhere;
  user-select: all;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-shell {
  width: min(100%, 480px);
}

.auth-brand {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 1.5rem;
}

.auth-card,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.accessibility-page {
  max-width: 900px;
  margin: 0 auto;
}

.accessibility-page .page-header {
  margin-top: 0.5rem;
}

.accessibility-page .knowledge-eyebrow {
  margin-bottom: 0.35rem;
}

.accessibility-panel > h3 {
  margin-bottom: 1rem;
}

.accessibility-event-summary {
  margin-bottom: 1.5rem;
}

.accessibility-form {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.accessibility-consent {
  align-items: flex-start;
  grid-template-columns: 20px auto minmax(0, 1fr);
  column-gap: 0.25rem;
}

.accessibility-consent > input {
  grid-column: 1;
  grid-row: 1;
}

.accessibility-consent > span {
  grid-column: 3;
  grid-row: 1;
}

.accessibility-consent::after {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin-top: 0.2rem;
  line-height: 18px;
}

.accessibility-withdraw-form {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.auth-card h1,
.auth-card h2 {
  margin-bottom: 1.25rem;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.auth-switch {
  display: grid;
  margin-top: 0.75rem;
}

.auth-switch button {
  width: 100%;
}

.auth-text-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
}

button.button-link,
a.button-link {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--azure-dark);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.15rem 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

button.button-link:hover,
a.button-link:hover {
  background: transparent;
  color: #005f96;
}

.auth-footer {
  margin: 1.25rem 0 0;
  text-align: center;
}

.page-shell {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin: 0;
}

dialog.modal {
  width: min(680px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  overflow: auto;
  padding: 0;
}

dialog.modal::backdrop {
  background: rgba(12, 33, 47, 0.58);
}

dialog.settings-modal {
  width: min(560px, calc(100% - 2rem));
}

.settings-option-list {
  border-top: 1px solid var(--line);
  margin: 0 -1.25rem -1.25rem;
}

.settings-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
}

.settings-option-row:last-child {
  border-bottom: 0;
}

.settings-option-row h3,
.settings-option-row p {
  margin: 0;
}

.settings-option-row p {
  margin-top: 0.25rem;
}

.settings-option-row > div {
  min-width: 0;
}

.settings-option-row > button {
  flex: 0 0 auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.25rem;
}

.modal-header h2,
.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-body {
  padding: 1.25rem;
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  margin: 1.25rem -1.25rem -1.25rem;
  padding: 1rem 1.25rem;
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  margin: 0;
}

.detail-list dt,
.detail-list dd {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 0.75rem 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 700;
  padding-right: 1rem;
}

.detail-list dd {
  overflow-wrap: anywhere;
}

.detail-list dt:last-of-type,
.detail-list dd:last-of-type {
  border-bottom: 0;
}

.empty-state {
  border: 1px dashed #abc7d8;
  border-radius: 8px;
  color: var(--muted);
  padding: 1.25rem;
  text-align: center;
}

@media (max-width: 760px) {
  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .shell {
    width: min(100% - 24px, 1280px);
  }

  .topbar {
    min-height: 68px;
    gap: 0.5rem;
    padding: 0.75rem 0;
  }

  .topbar-brand {
    gap: 0.5rem;
  }

  .brand-logo {
    width: 96px;
  }

  .brand {
    font-size: 1.1rem;
  }

  .dashboard-header,
  .section-header,
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .knowledge-action-menu,
  .knowledge-action-menu-list {
    width: 100%;
  }

  .knowledge-action-menu-list {
    right: auto;
    left: 0;
  }

  .summary-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stats .stat:nth-child(odd) {
    border-left: 0;
  }

  .dashboard-stats .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .summary-grid > div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .summary-grid > div:first-child {
    border-top: 0;
  }

  .dashboard-section {
    padding: 1.5rem 0;
  }

  .dashboard-tabs {
    margin-bottom: 1.5rem;
  }

  .knowledge-layout {
    grid-template-columns: 1fr;
  }

  .knowledge-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .knowledge-main {
    padding: 2rem 1.25rem 2.5rem;
  }

  .knowledge-article-header {
    align-items: stretch;
    flex-direction: column;
  }

  .knowledge-article-header > .button {
    align-self: flex-start;
  }

  .knowledge-editor-form textarea {
    min-height: 420px;
  }

  .responsive-table,
  .organiser-dashboard .responsive-table {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody {
    display: grid;
    gap: 1rem;
  }

  .responsive-table tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
  }

  .responsive-table tr.event-summary-row.stats-open {
    border-radius: 8px 8px 0 0;
  }

  .responsive-table tr.event-stats-row {
    margin-top: -1rem;
    border-top: 0;
    border-radius: 0 0 8px 8px;
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.38fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
    padding: 0.8rem 0.9rem;
  }

  .responsive-table td:last-child {
    border-bottom: 0;
  }

  .responsive-table tbody tr:last-child td:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .responsive-table td::before {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .responsive-table .event-stats-cell {
    display: block;
    padding: 1rem;
  }

  .responsive-table .event-stats-cell::before {
    content: none !important;
  }

  .event-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-stats-grid > div:nth-child(odd) {
    border-left: 0;
  }

  .event-stats-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    margin-top: 0.75rem;
    padding-top: 1rem;
  }

  .event-team-list-header {
    display: none;
  }

  .event-team-list li {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-team-field-label {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .team-table td:nth-child(1)::before {
    content: "Team number";
  }

  .team-table td:nth-child(2)::before {
    content: "Team name";
  }

  .team-table td:nth-child(3)::before {
    content: "University";
  }

  .team-table td:nth-child(4)::before {
    content: "Team lead";
  }

  .team-table td:nth-child(5)::before {
    content: "Event interest";
  }

  .team-table td:nth-child(6)::before {
    content: "Actions";
  }

  .user-table td:nth-child(1)::before {
    content: "Name";
  }

  .user-table td:nth-child(2)::before {
    content: "Email";
  }

  .user-table td:nth-child(3)::before {
    content: "User type";
  }

  .user-table td:nth-child(4)::before {
    content: "Status";
  }

  .user-table td:nth-child(5)::before {
    content: "Actions";
  }

  .log-table td:nth-child(1)::before {
    content: "Date and time";
  }

  .log-table td:nth-child(2)::before {
    content: "Event";
  }

  .log-table td:nth-child(3)::before {
    content: "Actor";
  }

  .log-table td:nth-child(4)::before {
    content: "Subject";
  }

  .log-table td:nth-child(5)::before {
    content: "Target";
  }

  .log-table td:nth-child(6)::before {
    content: "Outcome";
  }

  .log-table td:nth-child(7)::before {
    content: "IP address";
  }

  .event-table td:nth-child(1)::before {
    content: "Event name";
  }

  .event-table td:nth-child(2)::before {
    content: "Location";
  }

  .event-table td:nth-child(3)::before {
    content: "Date";
  }

  .event-table td:nth-child(4)::before {
    content: "Registration window";
  }

  .event-table td:nth-child(5)::before {
    content: "Actions";
  }

  .member-event-table td:nth-child(5)::before {
    content: "Team status";
  }

  .team-leader-event-table td:nth-child(1)::before {
    content: "Status";
  }

  .team-leader-event-table td:nth-child(2)::before {
    content: "Event name";
  }

  .team-leader-event-table td:nth-child(3)::before {
    content: "Location";
  }

  .team-leader-event-table td:nth-child(4)::before {
    content: "Date";
  }

  .team-leader-event-table td:nth-child(5)::before {
    content: "Registration window";
  }

  .team-leader-event-table td:nth-child(6)::before {
    content: "Actions";
  }

  .table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .table-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .table-actions > button,
  .table-actions > form,
  .table-actions > form button {
    width: 100%;
  }

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

  .detail-list dt {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .detail-list dd {
    padding-top: 0.25rem;
  }

  dialog.modal {
    width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .modal-header,
  .modal-body {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .modal-actions {
    margin-right: -1rem;
    margin-left: -1rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (max-width: 520px) {
  .auth-page {
    padding: 1rem 0.75rem;
  }

  .section-actions,
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .settings-option-list {
    margin-right: -1rem;
    margin-left: -1rem;
  }

  .settings-option-row {
    align-items: stretch;
    flex-direction: column;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .settings-option-row > button {
    width: 100%;
  }

  .section-actions > button,
  .modal-actions > button {
    width: 100%;
  }

  .section-header > button,
  .section-header > .button,
  .page-header > .button {
    width: 100%;
  }

  .event-stats-grid {
    grid-template-columns: 1fr;
  }

  .event-stats-grid > div,
  .event-stats-grid > div:nth-child(odd) {
    border-top: 1px solid var(--line);
    border-left: 0;
    margin-top: 0.75rem;
    padding-top: 1rem;
  }

  .event-stats-grid > div:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0.35rem;
  }

  .event-team-list li {
    grid-template-columns: 1fr;
  }

  .event-accessibility-record header,
  .event-accessibility-resolution-form {
    align-items: stretch;
    flex-direction: column;
  }

  .event-accessibility-resolution-form .form-field,
  .event-accessibility-resolution-form button {
    width: 100%;
  }

  .knowledge-topic-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-topic-grid a:nth-child(odd),
  .knowledge-topic-grid a:nth-child(even) {
    border-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .responsive-table td {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
