[hidden] { display: none !important; }

/* ── Variables ── */
:root {
  --crimson:      #660608;
  --crimson-dark: #440000;
  --crimson-light:#8a0a0d;
  --near-black:   #2A2A2A;
  --footer-dark:  #242424;
  --accent-red:   #cc0c0f;
  --off-white:    #F6F6F6;
  --tan:          #323232;
  --border:       #ddd;
  --text:         #222;
  --text-muted:   #666;
  --radius:       6px;
  --shadow:       0 1px 4px rgba(0,0,0,0.1);
  --transition:   0.18s ease;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.5;
}
button { cursor: pointer; font-family: inherit; }
select { font-family: inherit; }
a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Global Header (modern OU nav bar) ── */
.globalheader {
  background-color: #212529;
  height: 32px;
  max-height: 32px;
  line-height: 32px;
}
.globalheader-wrapper {
  max-width: 1274px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}
.globalheader-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  height: 100%;
}
.gh-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0 0.5rem;
  height: 100%;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background-color 0.15s;
  line-height: 1;
}
.gh-link:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.1);
  text-decoration: none;
}
/* CSS tooltip */
.gh-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 3px;
  pointer-events: auto;
  z-index: 200;
}
.gh-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #333;
}
.gh-tip:hover .gh-tooltip,
.gh-tip:focus-within .gh-tooltip { display: block; }

.gh-wordmark {
  padding-left: 0.75rem;
  display: flex;
  align-items: center;
}
.gh-wordmark a { display: flex; align-items: center; }
.gh-wordmark img { display: block; opacity: 0.9; }
.gh-wordmark a:hover img { opacity: 1; }
/* ── Skip navigation link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--crimson);
  color: #fff;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }

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

/* ── Banner ── */
#Banner {
  padding: 0;
  background: var(--crimson);
  width: 100%;
  margin: 0;
  box-shadow: 0 -8px 0 var(--crimson-dark) inset;
}
#Banner .container { padding-left: 1rem; }

/* ── Staleness Notice ── */
.alert.notice {
  background: #fff3cd;
  border-bottom: 2px solid #ffc107;
  color: #664d03;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 13px;
}

/* ── Search Bar ── */
#search-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
#keyword-search {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 3rem;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
#keyword-search:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(102,6,8,0.12);
  background: #fff;
}
#keyword-search::placeholder { color: #666; }
#keyword-search::-webkit-search-cancel-button { -webkit-appearance: none; }
.clear-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  line-height: 1;
}
.clear-btn:hover { color: var(--text); background: var(--off-white); }
.clear-btn:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; border-radius: var(--radius); }

/* ── App Container ── */
#app-container { padding-top: 0.75rem; padding-bottom: 2rem; }

/* ── Desktop sidebar layout (≥ 768px) ── */
@media (min-width: 768px) {
  #app-container {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
  }

  #filter-panel {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 70px; /* clears the sticky search bar */
    align-self: flex-start; /* don't stretch to match the results column height */
    margin-bottom: 0;
  }

  /* Keep filter body visible even if JS toggled it on a smaller screen */
  #filter-panel #filter-body {
    max-height: none !important;
    opacity: 1 !important;
    padding: 0.65rem 1rem 0.5rem !important;
  }

  #results-area {
    flex: 1;
    min-width: 0; /* prevent flex overflow on narrow tables */
  }

  /* Stack selects vertically inside the narrow sidebar */
  .filter-selects-row {
    flex-direction: column;
    gap: 0.6rem;
  }
  .filter-selects-row + .filter-selects-row {
    padding-top: 0.6rem;
  }
  .filter-select,
  #semester-select,
  #subject-select {
    width: 100%;
    min-width: 0;
  }
}

/* ── Filter Panel ── */
#filter-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}
#filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
}
.filter-title {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0;
  line-height: inherit;
}
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--crimson);
  font-size: 13px;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
}
.filter-toggle:hover { background: var(--off-white); }
.filter-toggle:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
@media (min-width: 768px) { .filter-toggle { display: none; } }
.toggle-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
#filter-panel.collapsed .toggle-chevron { transform: rotate(180deg); }
#filter-body {
  padding: 0.65rem 1rem 0.5rem;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.2s ease, padding 0.2s ease;
  max-height: 1200px;
  opacity: 1;
}
#filter-panel.collapsed #filter-body {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* ── Filter Selects Row ── */
.filter-selects-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-bottom: 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--off-white);
}
/* Reset fieldset so it can be used for semantic grouping without visual change */
fieldset { border: none; padding: 0; margin: 0; min-width: 0; }
fieldset legend { padding: 0; float: left; width: 100%; } /* float trick: legend behaves like a block label */

.filter-group { display: flex; flex-direction: column; gap: 0.2rem; }
.day-fieldset { display: flex; flex-direction: column; gap: 0.2rem; }
.day-match-help { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.filter-group label, .group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tan);
}
.filter-select {
  padding: 0.35rem 2rem 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--text);
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  min-width: 160px;
  cursor: pointer;
}
#semester-select { min-width: 200px; }
#subject-select { min-width: 160px; }
.filter-select:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 2px rgba(102,6,8,0.1);
}

/* ── Bottom toggle checkboxes (Grad Credit / Seats / Waitlist) ── */
.filter-toggles-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0 0.3rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  width: 100%;
}
.bottom-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.bottom-toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--crimson);
  cursor: pointer;
  flex-shrink: 0;
}

/* second filter row uses same .filter-selects-row styles */
.filter-selects-row + .filter-selects-row {
  padding-top: 0.6rem;
  border-top: none;
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* ── Filter Actions ── */
.filter-actions {
  padding-top: 0.5rem;
  border-top: none;
  margin-top: 0.25rem;
  display: flex;
  justify-content: flex-end;
}
.btn-reset {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius);
  font-size: 12px;
  transition: all var(--transition);
}
.btn-reset:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  background: rgba(102,6,8,0.04);
}
.btn-reset:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }

/* ── Results Header ── */
#results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#results-count {
  font-size: 13px;
  color: var(--text-muted);
}
#page-size-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--text-muted);
}
#page-size-select {
  padding: 0.25rem 1.8rem 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  cursor: pointer;
}

/* ── Table ── */
#table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
#results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
#results-table thead th {
  background: #f8f8f8;
  border-bottom: 2px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#results-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}
#results-table thead th.sortable:hover { background: #f0f0f0; }
#results-table thead th.sortable:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: -2px;
  background: #f0f0f0;
}
#results-table thead th.sort-asc .sort-indicator::after  { content: ' ↑'; color: var(--crimson); }
#results-table thead th.sort-desc .sort-indicator::after { content: ' ↓'; color: var(--crimson); }

.col-expand     { width: 36px; min-width: 36px; }
.col-course     { width: 120px; min-width: 120px; }
.col-title      { min-width: 180px; }
.col-instructor { min-width: 120px; }
.col-when       { min-width: 160px; }
.col-badges     { width: 110px; min-width: 80px; }
.col-seats      { width: 80px; min-width: 80px; white-space: nowrap; }

/* ── When / Where cell ── */
.dt-days     { font-weight: 700; color: var(--crimson); margin-right: 3px; }
.dt-time     { font-size: 12px; color: var(--text); }
.dt-loc      { font-size: 11px; color: var(--text-muted); margin-top: 2px;
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.dt-arranged { font-size: 12px; color: var(--text-muted); font-style: italic; }
.dt-other-meetings { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── Clickable filter links (building, instructor) ── */
.filter-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--text-muted);
  cursor: pointer;
}
.filter-link:hover {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

/* ── Badge icons — colored square tiles matching OU Gen-Ed Planner visual language ── */
.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  color: #fff;
  font-size: 9px;
  margin: 1px 2px 1px 0;
  cursor: default;
  flex-shrink: 0;
  vertical-align: middle;
  transition: opacity 0.15s, transform 0.1s;
  position: relative;
  text-decoration: none;
}
.badge-link {
  cursor: pointer;
}
.badge-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: calc(100% + 5px);
  right: 0;
  left: auto;
  transform: none;
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: normal;
  max-width: 200px;
  text-align: left;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
}
.badge-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 0;
  width: 100%;
  z-index: -1;
}
.badge-icon:hover .badge-tooltip,
.badge-icon:focus-visible .badge-tooltip { opacity: 1; visibility: visible; }
.tooltip-dismissed .badge-tooltip,
.tooltip-dismissed .gh-tooltip { visibility: hidden !important; }
.badge-icon:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
/* GenEd colors */
.bi-blue    { background: #2563eb; }
.bi-green   { background: #15803d; }
.bi-crimson { background: var(--crimson); }
.bi-purple  { background: #7c3aed; }
.bi-olive   { background: #4d7c0f; }
/* Non-GenEd colors */
.bi-indigo  { background: #4338ca; }
.bi-teal    { background: #0f766e; }
.bi-gold    { background: #b45309; }
.bi-gray    { background: #6b7280; }

/* ── Day-of-week checkboxes (Sprint 3) ── */
.day-checkboxes {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 4px;
  margin-top: 2px;
}
.day-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 3px 6px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--off-white);
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.13s;
}
.day-check-label:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}
.day-check-label:has(input:checked) {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
}
.day-check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  margin: 0;
}
.day-check-label:focus-within {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}


#results-table tbody tr.data-row {
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background var(--transition);
}
#results-table tbody tr.data-row:hover { background: #fdf8f8; }
#results-table tbody tr.data-row:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: -2px;
  background: #fdf8f8;
}
#results-table tbody tr.data-row.expanded { background: #fff5f5; }
#results-table tbody td {
  padding: 0.6rem 0.75rem;
  vertical-align: middle;
}

/* ── Expand Toggle ── */
.expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--transition), color var(--transition);
  padding: 0;
  pointer-events: none;
}
tr.expanded .expand-btn { transform: rotate(90deg); color: var(--crimson); }

/* ── Seat Availability Dots ── */
.seat-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
  flex-shrink: 0;
  vertical-align: middle;
}
.seat-dot.open  { background: #16a34a; }
.seat-dot.few   { background: #ea580c; }
.seat-dot.full  { background: #ef4444; }
.seat-dot.unknown { background: #ccc; }
.seat-text { font-size: 12px; color: var(--text-muted); vertical-align: middle; }

/* ── Expanded Detail Row ── */
tr.detail-row td {
  padding: 0;
  background: #fafafa;
  border-bottom: 2px solid var(--crimson);
}
.detail-panel {
  padding: 1.25rem 1.5rem;
}
.detail-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.detail-section + .detail-section {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}
.detail-section-heading {
  margin: 0 0 0.55rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.detail-availability {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 13px;
}
.availability-separator { color: var(--text-muted); }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
}
.detail-field { display: flex; flex-direction: column; gap: 0.15rem; }
.detail-field-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tan);
}
.detail-field-value {
  font-size: 13px;
  color: var(--text);
}
.detail-description {
  max-width: 80ch;
}
.detail-description .detail-field-label { margin-bottom: 0.25rem; }
.detail-description .detail-field-value {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.meeting-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 12px;
}
.meeting-block + .meeting-block { margin-top: 0.4rem; }
.meeting-days { font-weight: 700; color: var(--crimson); }
.meeting-when { font-size: 13px; font-weight: 700; }
.meeting-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; color: var(--text-muted); margin-top: 0.15rem; }
.detail-empty { color: var(--text-muted); font-size: 13px; }

/* ── Loading / Empty States ── */
.loading-row td, .empty-row td, .error-row td {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 14px;
  border-bottom: none;
  cursor: default;
}
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--crimson);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Pagination ── */
#pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.btn-page {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--crimson);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
  min-width: 80px;
}
.btn-page:hover:not(:disabled) {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
}
.btn-page:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
.btn-page:disabled {
  color: #bbb;
  cursor: default;
  border-color: #eee;
}
#page-info {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Footer ── */
#Legal {
  text-align: center;
  font-size: 10px;
  width: 100%;
  padding: 1em 0 10px 0;
  background: var(--footer-dark);
  color: #999;
}
#Legal a { color: #999; text-decoration: none; }
#Legal a:hover { color: #fff; }

/* ── Required marker ── */
.required { color: var(--accent-red); }

/* ── Mobile ── */
/* Mobile subtitle — title stacked under course code, only shown when title column is hidden */
.mobile-subtitle { display: none; }

@media (max-width: 767px) {
  #keyword-search { font-size: 16px; }

  .filter-selects-row { flex-direction: column; }
  .filter-select { min-width: 100%; }

  /* Collapse title into course cell, hide the title column */
  .mobile-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: normal;
    line-height: 1.3;
  }
  #results-table thead th.col-title,
  #results-table tbody td.col-title { display: none; }

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

.section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--crimson);
}
:is(a, button, select, input):focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}
#keyword-search, .filter-select, #page-size-select { border-color: #888; }
.globalheader a:focus-visible { outline-color: #fff; outline-offset: -2px; }
#results-heading:focus { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
#results-heading:focus { white-space: normal; margin: 0; outline: 2px solid var(--crimson); }
#main-content { min-width: 0; }
#table-wrapper { max-width: 100%; }
#Legal { overflow-wrap: anywhere; padding-inline: 1rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 480px) {
  .detail-grid { grid-template-columns: 1fr; }
}
