:root {
  --ink: #123f37;
  --deep: #053f36;
  --gold: #c8962e;
  --paper: #f8f4ea;
  --line: #d8d1c2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #096c5b, #17a187);
}

a { color: inherit; }

.portal-shell { min-height: 100vh; padding: 36px; }
.portal-panel {
  max-width: 1180px;
  margin: auto;
  padding: 48px;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}
.portal-panel.narrow { max-width: 620px; }
.section-page { max-width: 980px; }
.eyebrow {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1 {
  margin: .35rem 0 1rem;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: .9;
}
.lead { max-width: 650px; color: #687b76; line-height: 1.6; }
.form-grid { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 8px; font-size: .9rem; }
input { width: 100%; padding: 14px; border: 1px solid var(--line); background: #fff; }
button, .button {
  display: inline-block;
  padding: 13px 20px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: var(--gold);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.portal-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0; }
.grid .portal-card {
  min-height: 185px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.portal-card:hover, .portal-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(5, 63, 54, .12);
  transform: translateY(-3px);
}
.portal-card h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 1.7rem; }
.portal-card p { margin: 0; color: #687b76; line-height: 1.5; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.notice { margin: 18px 0; padding: 14px; border-left: 4px solid var(--gold); background: #fff8e8; }
.error { color: #8a1f1f; }
.muted { color: #687b76; }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 700; text-decoration: none; }
.section-panel { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.section-panel h2 { font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.section-panel li { margin: .75rem 0; color: #526a64; }

@media (max-width: 800px) {
  .portal-shell { padding: 16px; }
  .portal-panel { padding: 28px; }
  .grid { grid-template-columns: 1fr; }
  .portal-head { display: block; }
  h1 { font-size: 3.5rem; }
}
