:root {
  --navy: #1f3864;
  --navy-ink: #14264a;
  --gold: #97690a;
  --cream: #f2e9d8;
  --paper: #fffdf9;
  --line: #d9cfb8;
  --text: #24262b;
  --text-dim: #5b5b57;
  --max: 46rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.45;
  font-size: 16px;
}

a { color: var(--navy); text-decoration-color: var(--line); text-underline-offset: 2px; }
a:hover, a:focus { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.1rem 3rem;
}

/* ---------- Masthead ---------- */

.masthead {
  text-align: center;
  padding: 1.6rem 0 1.1rem;
  border-bottom: 3px solid var(--navy);
  margin-bottom: 1.4rem;
}

.masthead h1 {
  margin: 0 0 .2rem;
  font-size: 1.7rem;
  letter-spacing: .04em;
  color: var(--navy);
}

.masthead .sub {
  margin: 0 0 .5rem;
  color: var(--gold);
  font-weight: 600;
  font-size: .95rem;
}

.masthead .meta {
  margin: 0;
  color: var(--text-dim);
  font-size: .82rem;
  font-style: italic;
}

nav.tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .9rem;
}

nav.tabs a {
  display: inline-block;
  padding: .35rem .85rem;
  border: 1px solid var(--navy);
  border-radius: 3px;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

nav.tabs a.active {
  background: var(--navy);
  color: #fff;
}

/* ---------- Day sections ---------- */

.day {
  margin-top: 2rem;
}

.day-head {
  background: var(--navy);
  color: #fff;
  padding: .55rem .8rem;
  font-weight: 700;
  font-size: 1.02rem;
}

.day-sub {
  color: var(--gold);
  font-style: italic;
  font-size: .85rem;
  padding: .4rem .1rem .6rem;
  border-bottom: 1px solid var(--line);
}

ol.sched {
  list-style: none;
  margin: 0;
  padding: 0;
}

ol.sched li {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: .1rem .75rem;
  padding: .65rem .1rem;
  border-bottom: 1px solid var(--line);
}

.time-link {
  display: inline-block;
  align-self: start;
  background: var(--cream);
  border: 1px solid var(--gold);
  color: var(--navy-ink);
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
  padding: .28rem .3rem;
  border-radius: 3px;
  text-align: center;
  line-height: 1.2;
}

.time-link:hover, .time-link:focus { background: var(--gold); color: #fff; }

.item-title {
  margin: 0 0 .15rem;
  font-weight: 700;
  font-size: .95rem;
}

.item-line {
  margin: .1rem 0 0;
  font-size: .82rem;
  color: var(--text-dim);
}

.item-line .label {
  font-weight: 600;
  color: var(--text);
}

/* ---------- Checklist ---------- */

.checklist-block {
  margin-top: 2.2rem;
}

.checklist-block h2 {
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: .35rem;
  font-size: 1.15rem;
}

.checklist-block ul {
  padding-left: 1.15rem;
  margin: .6rem 0;
}

.checklist-block li {
  margin-bottom: .5rem;
  font-size: .88rem;
}

/* ---------- Directory page ---------- */

.dir-section {
  margin-top: 2rem;
}

.dir-section h2 {
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: .35rem;
  font-size: 1.1rem;
  margin-bottom: 0;
}

table.dir {
  width: 100%;
  border-collapse: collapse;
  margin: .7rem 0 0;
  font-size: .85rem;
}

table.dir th {
  display: none;
}

table.dir tr {
  display: block;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
}

table.dir td {
  display: block;
  padding: 0;
}

table.dir td.name {
  font-weight: 700;
  margin-bottom: .18rem;
}

table.dir td.name a {
  color: var(--navy-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

table.dir td.addr {
  color: var(--text-dim);
  font-size: .82rem;
}

table.dir td.web {
  margin-top: .18rem;
  font-size: .8rem;
}

table.dir td.web a { color: var(--gold); }

.note {
  margin-top: 1.6rem;
  font-size: .8rem;
  font-style: italic;
  color: var(--text-dim);
}

footer.site {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .76rem;
  color: var(--text-dim);
  text-align: center;
}

/* Wider screens: give the schedule a bit more breathing room */
@media (min-width: 640px) {
  body { font-size: 16.5px; }
  ol.sched li { grid-template-columns: 5.2rem 1fr; }
  .time-link { font-size: .78rem; }
}

/* ---------- Print ---------- */

@media print {
  body { font-size: 11.5pt; }
  nav.tabs { display: none; }
  a { color: var(--text); text-decoration: none; }
  .time-link {
    border: 1px solid var(--text);
    background: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .day-head {
    background: none !important;
    color: var(--navy) !important;
    border: 1px solid var(--navy);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .day { page-break-inside: avoid; }
  ol.sched li { break-inside: avoid; }
  footer.site { display: none; }
}
