:root {
  color-scheme: light;
  --ink: #162026;
  --muted: #5d6870;
  --line: #d7dde1;
  --paper: #ffffff;
  --band: #f4f7f8;
  --accent: #0b6f85;
  --accent-strong: #084e5f;
  --dginr-orange: #f28c28;
  --dginr-orange-soft: #fff3e6;
  --success-bg: #e8f5ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: var(--accent-strong);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 56px clamp(20px, 5vw, 72px) 40px;
  background: linear-gradient(135deg, #e8f2f4 0%, #ffffff 68%);
  border-bottom: 1px solid var(--line);
}

.site-header h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.small-intro {
  margin-top: 12px;
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  padding: 8px 0;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

nav a:focus,
nav a:hover {
  border-color: var(--accent);
}

nav .home-link {
  order: 999;
  margin-left: auto;
}

.section {
  padding: 48px clamp(20px, 5vw, 72px);
}

.section:nth-child(even) {
  background: var(--band);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  letter-spacing: 0;
}

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

.module-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.module-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.module-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.module-card span,
.module-link {
  display: inline-block;
  margin-top: auto;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.module-link {
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.compact-header {
  padding-top: 40px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 32px;
  align-items: start;
}

.status-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.button-link.small {
  min-height: 34px;
  color: var(--accent-strong);
  background: #e6f2f4;
  font-size: 0.86rem;
}

button:focus,
button:hover {
  background: var(--accent-strong);
}

pre {
  min-height: 96px;
  margin: 16px 0 0;
  padding: 14px;
  overflow: auto;
  border-radius: 6px;
  background: #101820;
  color: #ecf7f8;
  font-size: 0.88rem;
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.event-control-tiles {
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.filter-button {
  min-height: 36px;
  color: var(--accent-strong);
  background: #e6f2f4;
}

.filter-button.active,
.filter-button:focus,
.filter-button:hover {
  color: #ffffff;
  background: var(--accent);
}

.institution-panel {
  max-width: 1120px;
  margin: 0 0 36px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--paper);
}

.institution-panel-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) max-content;
  gap: 18px;
  align-items: center;
}

.institution-panel h2,
.institution-panel h3,
.institution-panel h4 {
  margin: 0;
}

.institution-title-line {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.institution-current {
  display: inline-flex;
  max-width: min(100%, 720px);
  margin: 0;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--accent-strong);
  background: #e6f2f4;
  font-size: 0.92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.institution-panel label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.institution-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  color: var(--accent-strong);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.institution-toggle:hover,
.institution-toggle:focus {
  color: #ffffff;
  background: var(--accent);
}

.institution-toggle-symbol {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
}

.institution-panel-body {
  margin-top: 18px;
}

.institution-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.institution-picker label {
  min-width: 0;
}

.institution-panel select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.institution-detail {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.institution-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.institution-meta p {
  margin: 6px 0 0;
  color: var(--muted);
}

.institution-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.institution-events {
  display: grid;
  gap: 10px;
}

.institution-table {
  display: grid;
  gap: 6px;
}

.institution-table-head,
.institution-row {
  display: grid;
  grid-template-columns: 150px minmax(240px, 1fr) 180px 80px;
  gap: 10px;
  align-items: center;
}

.institution-table-head {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.institution-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.institution-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.institution-archive {
  margin-top: 16px;
}

.institution-archive summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
}

.events-list,
.public-event-list {
  display: grid;
  gap: 10px;
}

.event-tools {
  display: grid;
  gap: 12px;
  max-width: 1040px;
  margin-bottom: 18px;
}

.event-tools label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.event-search-tile {
  width: min(100%, 560px);
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  color: var(--accent-strong);
  background: #e6f2f4;
}

.event-tools input {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.public-event-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(150px, 0.45fr) minmax(300px, 1fr) minmax(150px, 0.35fr) minmax(110px, 0.25fr);
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.public-event-row:first-child {
  border-top: 0;
}

.public-event-row.dginr-highlight,
.admin-table-row.dginr-highlight {
  border-color: var(--dginr-orange);
  background: var(--dginr-orange-soft);
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--dginr-orange);
  font-size: 0.78rem;
  font-weight: 800;
  vertical-align: middle;
}

.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
}

.calendar-link {
  justify-self: end;
  white-space: nowrap;
}

.pdf-admin-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.public-event-row time,
.status-label {
  color: var(--accent-strong);
  font-weight: 700;
}

.public-event-row time,
.public-event-row span,
.public-event-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.job-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.job-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.job-card p {
  margin: 0;
  color: var(--muted);
}

.job-meta {
  margin-bottom: 8px !important;
  color: var(--accent-strong) !important;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.job-card-main,
.job-actions,
.job-facts div {
  min-width: 0;
}

.job-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.job-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.job-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.job-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.submission-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 980px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--paper);
}

.submission-panel h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.submission-panel p {
  margin: 0;
  color: var(--muted);
}

.submission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.62fr);
  gap: 32px;
  align-items: start;
}

.institution-access-panel {
  grid-template-columns: 1fr;
  align-items: start;
  max-width: none;
  margin-top: 0;
}

.institution-access-panel .eyebrow,
.institution-access-panel h2,
.institution-access-panel p,
.institution-access-panel .access-form {
  min-width: 0;
}

.event-submit-form {
  max-width: 920px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.event-submit-form label:nth-of-type(3),
.event-submit-form label:nth-of-type(4),
.event-submit-form label:nth-of-type(5),
.event-submit-form label:nth-of-type(6),
.event-submit-form label:nth-of-type(8),
.event-submit-form button,
.event-submit-form .form-message {
  grid-column: 1 / -1;
}

.submission-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.submission-side .notice {
  margin-top: 0;
}

.institution-access-panel .access-form {
  max-width: none;
}

.simple-form {
  display: grid;
  gap: 16px;
  max-width: 680px;
}

.simple-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

.simple-form input,
.simple-form textarea,
.simple-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.form-message {
  min-height: 24px;
  color: var(--muted);
}

.form-actions {
  margin-top: 24px;
}

.form-actions-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--band);
}

.admin-login {
  width: min(460px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

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

.admin-counters article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-counters strong {
  display: block;
  font-size: 2rem;
  color: var(--accent-strong);
}

.admin-counters span {
  color: var(--muted);
}

.admin-import {
  max-width: 720px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-import h2 {
  margin-top: 0;
}

.source-list {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.scrape-now-panel {
  position: sticky;
  left: 0;
  display: grid;
  gap: 18px;
  min-width: 1180px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.scrape-now-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.scrape-now-head h2 {
  margin: 0;
}

.scrape-now-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.scrape-now-head code {
  color: var(--ink);
  font-weight: 800;
}

.scrape-now-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.scrape-now-actions .form-message {
  max-width: 320px;
  margin: 0;
  text-align: right;
}

.template-table {
  display: grid;
  gap: 6px;
}

.template-table-head,
.template-table-row {
  display: grid;
  grid-template-columns: 150px 160px minmax(360px, 1fr) 260px;
  gap: 12px;
  align-items: center;
}

.template-table-head {
  padding: 0 12px 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.template-table-row {
  padding: 11px 12px;
  border-top: 1px solid var(--line);
}

.template-table-row span {
  min-width: 0;
}

.template-table-row strong {
  font-weight: 850;
}

.template-table-row a {
  color: var(--accent-strong);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.source-toolbar {
  position: sticky;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  min-width: 1180px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.source-toolbar-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.source-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.source-toolbar input,
.source-toolbar select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}

.source-table {
  display: grid;
  gap: 8px;
  min-width: 1180px;
}

.source-table-head,
.source-table-row {
  display: grid;
  grid-template-columns: minmax(320px, 1.6fr) 110px 180px 190px 170px 170px 340px;
  gap: 10px;
  align-items: center;
}

.source-table-head {
  padding: 0 14px 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-table-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.source-table-row.is-disabled {
  background: var(--soft);
}

.source-table-row strong,
.source-table-row a,
.source-table-row small {
  display: block;
}

.source-table-row a {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  font-weight: 700;
}

.source-table-row small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.submitter-table .source-table-head,
.submitter-table .source-table-row {
  grid-template-columns: minmax(230px, 1.3fr) 130px 190px 170px 140px 160px minmax(200px, 1fr) 150px;
}

.source-create-panel {
  display: grid;
  gap: 18px;
  position: sticky;
  left: 0;
  max-width: 860px;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--band);
}

.source-create-panel h2 {
  margin: 0;
}

.source-create-panel .source-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.source-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.source-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.source-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.source-status div,
.source-status dd {
  margin: 0;
}

.source-status dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.source-card label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.source-card .checkbox-label {
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: start;
  align-items: center;
}

.source-card .checkbox-label input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.source-card input,
.source-card select,
.source-card textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.source-link {
  width: max-content;
  color: var(--accent-strong);
  font-weight: 800;
}

.trusted-domains {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin-top: 28px;
}

.trusted-domains h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.trusted-domains p {
  margin: 0;
  color: var(--muted);
}

.trusted-domain-list {
  display: grid;
  gap: 10px;
}

.trusted-domain-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.trusted-domain-card strong,
.trusted-domain-card span {
  display: block;
}

.trusted-domain-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-table {
  display: grid;
  gap: 8px;
  min-width: 1460px;
}

.admin-review {
  overflow-x: auto;
  padding-bottom: 8px;
}

.review-tabs {
  position: sticky;
  left: 0;
}

.empty-state {
  position: sticky;
  left: 0;
  max-width: 720px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
}

.admin-table-head,
.admin-table-row {
  display: grid;
  grid-template-columns: 170px 150px minmax(300px, 1fr) 70px 110px 130px 110px 420px;
  gap: 10px;
  align-items: center;
}

.admin-table-head > *,
.admin-table-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-table-head {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.sort-button {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  text-align: left;
}

.sort-button span {
  display: block;
  margin-top: 2px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.sort-button.active,
.sort-button:focus,
.sort-button:hover {
  color: var(--ink);
  background: transparent;
}

.admin-table-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.95rem;
  line-height: 1.35;
}

.admin-table-row.needs-attention {
  border-color: #d34242;
  background: #fff4f4;
  box-shadow: inset 4px 0 0 #d34242;
}

.admin-table-row.needs-attention .status-label {
  color: #991b1b;
  font-weight: 800;
}

.admin-table-row.dginr-highlight {
  border-color: var(--dginr-orange);
  background: var(--dginr-orange-soft);
}

.admin-table-row > span:first-child {
  white-space: nowrap;
}

.admin-table-row strong {
  font-size: 1rem;
  line-height: 1.35;
}

.source-proposal {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.86rem;
}

.event-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.event-row:first-child {
  border-top: 0;
}

.event-row time {
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.event-row h3 {
  margin: 4px 0;
  font-size: 1rem;
  line-height: 1.3;
}

.event-row p {
  margin: 0;
  color: var(--muted);
}

.event-row span {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--accent-strong);
  background: #e6f2f4;
  font-size: 0.8rem;
  font-weight: 700;
}

.process-list {
  max-width: 760px;
  margin: 0;
  padding-left: 22px;
}

.process-list li + li {
  margin-top: 8px;
}

.notice {
  max-width: 780px;
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: var(--band);
  color: var(--muted);
}

.contact-line {
  font-size: 1.1rem;
}

.site-footer {
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header,
  .split,
  .module-grid {
    grid-template-columns: 1fr;
  }

  nav {
    justify-content: flex-start;
  }

  .site-header {
    padding-top: 36px;
  }

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

  .institution-panel-head,
  .institution-picker,
  .institution-meta,
  .institution-table-head,
  .institution-row {
    grid-template-columns: 1fr;
  }

  .institution-actions {
    justify-content: flex-start;
  }

  .institution-table-head {
    display: none;
  }

  .trusted-domain-card {
    grid-template-columns: 1fr;
  }

  .public-event-row,
  .job-card,
  .submission-panel,
  .submission-layout,
  .event-submit-form,
  .admin-table-head,
  .admin-table-row,
  .admin-counters {
    grid-template-columns: 1fr;
  }

  .event-submit-form label:nth-of-type(3),
  .event-submit-form label:nth-of-type(4),
  .event-submit-form label:nth-of-type(5),
  .event-submit-form label:nth-of-type(6),
  .event-submit-form label:nth-of-type(8),
  .event-submit-form button,
  .event-submit-form .form-message {
    grid-column: auto;
  }

  .event-links {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
  }

  .calendar-link {
    justify-self: start;
  }

  .job-actions {
    justify-items: start;
  }

  .job-facts {
    grid-template-columns: 1fr;
  }

  .admin-table {
    min-width: 0;
  }

  .scrape-now-panel,
  .source-toolbar,
  .source-table {
    min-width: 0;
  }

  .scrape-now-head,
  .source-toolbar,
  .source-toolbar-main,
  .template-table-row,
  .source-table-row {
    grid-template-columns: 1fr;
  }

  .template-table-head,
  .source-table-head {
    display: none;
  }

  .scrape-now-actions {
    justify-items: start;
  }

  .scrape-now-actions .form-message {
    max-width: none;
    text-align: left;
  }

  .admin-review {
    overflow-x: visible;
  }

  .admin-table-head {
    display: none;
  }
}

@media print {
  nav,
  .event-tools,
  .form-actions,
  .institution-actions,
  .site-footer {
    display: none;
  }

  .site-header,
  .section {
    padding: 18px 0;
  }

  .institution-panel {
    border: 0;
    padding: 0;
  }
}
