:root {
  color-scheme: light;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: #1c2435;
  background: #f5f5f0;
  --navy: #172743;
  --blue: #224a82;
  --muted: #535f72;
  --line: #d7dce4;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
a { color: var(--blue); text-underline-offset: 3px; }
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: .72rem 1.05rem;
  background: var(--blue);
  color: white;
  font-weight: 650;
}
button:hover { filter: brightness(1.12); }
:focus-visible { outline: 3px solid #3476ba; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.masthead { background: var(--navy); border-bottom: 4px solid #edbb63; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: white; }
.brand small, .account small { display: block; font-size: .78rem; color: #dce5f3; margin-top: .15rem; }
.mark { display: grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid #edbb63; border-radius: 9px; color: #edbb63; font-weight: 800; }
.account { display: flex; align-items: center; gap: 1rem; color: white; font-size: .9rem; }
.quiet { border-color: #71829c; background: transparent; padding: .45rem .65rem; }
.nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav .shell { display: flex; gap: 1.5rem; }
.nav a { text-decoration: none; color: var(--muted); padding: .95rem 0 .75rem; border-bottom: 3px solid transparent; }
.nav a[aria-current] { border-color: var(--blue); color: var(--blue); font-weight: 700; }
main { padding-block: 2.5rem 4rem; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 2.55rem); letter-spacing: -.035em; margin-bottom: .4rem; }
h2 { font-size: 1.1rem; }
.intro { margin-bottom: 1.5rem; }
.intro p, .hint, .optional, .semester p { color: var(--muted); }
.intro p { margin-bottom: 0; }
.panel { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }
.issue-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .33fr); gap: 1.15rem; align-items: start; }
.semester { border-top: 4px solid #d7a44c; }
.semester p { margin: .4rem 0 0; font-size: .9rem; }
.login { max-width: 390px; margin: 4vh auto 0; }
.login form, .details { display: grid; gap: 1.05rem; justify-items: stretch; }
.login form { margin-top: 1.4rem; }
.details { border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: 1.25rem; }
form > button[type=submit] { justify-self: start; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, label { font-weight: 650; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: .65rem; }
.choice { border-color: var(--line); color: var(--navy); background: #f9fafc; text-align: left; }
.choice[aria-pressed=true] { border-color: var(--blue); color: var(--blue); background: #eaf1fb; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
input:not([type=hidden]), select {
  display: block;
  margin-top: .4rem;
  width: 100%;
  min-height: 43px;
  padding: .55rem .65rem;
  border: 1px solid #aab4c4;
  border-radius: 6px;
  color: inherit;
  background: white;
}
.hint { font-size: .88rem; margin: -.35rem 0 0; }
.optional { font-size: .82rem; font-weight: 400; }
.error { background: #fff1ef; border-left: 3px solid #ae382f; color: #843026; padding: .7rem; }
.register { padding: 0; overflow: hidden; }
.register > p, .pagination { padding: 1rem; margin: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #eaf0f7; color: var(--navy); }
td:first-child { white-space: nowrap; font-weight: 700; }
.pagination { display: flex; gap: 1rem; }
.issue-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.permit { max-width: 760px; margin-inline: auto; background: white; border: 2px solid var(--navy); color: var(--navy); text-align: center; }
.permit-header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1.2rem; border-bottom: 3px solid currentColor; }
.permit-body { padding: 1.7rem 1rem .9rem; overflow-wrap: anywhere; }
.permit-body h2 { font-size: clamp(2rem, 6vw, 3.1rem); margin-bottom: .35rem; }
.permit-type { margin-bottom: .35rem; font-weight: 650; }
.permit-lot { font-size: 2rem; font-weight: 750; margin-bottom: .35rem; }
.permit-term, .permit-dates { font-size: 1.2rem; font-weight: 600; margin-bottom: .4rem; }
.print-id { font-weight: 800; font-size: 1.1rem; margin: 1rem 0 .65rem; }
.permit footer { border-top: 1px solid currentColor; padding: .65rem; font-size: .86rem; }
@media (max-width: 690px) {
  .issue-layout, .choices { grid-template-columns: 1fr; }
  .shell { width: calc(100% - 1.4rem); }
  .panel { padding: 1rem; }
  .register { padding: 0; }
  .account > span { display: none; }
  .permit-header { flex-wrap: wrap; justify-content: center; }
}
@media print {
  @page { margin: .5in; }
  body { background: white; }
  .masthead, .nav, .issue-heading { display: none; }
  main.shell { width: 100%; padding: 0; }
  .permit { color: black; break-inside: avoid; }
}
