/* Contact page: the door board as the page itself. A timetable with empty day rows, one entry spanning them, slips along the lower edge. */

/* Opening */
.open__shot { --frame: 4 / 3; align-self: start; }
@media (min-width: 48rem) {
  .open h1 { font-size: min(6.6vw, 6.5rem); align-self: end; }
  .open .lead { align-self: start; }
  .open__shot { --frame: 5 / 4; grid-row: 1 / span 2; align-self: center; }
}

/* Board */
.boardwrap { padding: clamp(0.5rem, 2vh, 1.5rem) var(--gutter) clamp(1.5rem, 5vh, 3rem); }
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem) var(--gap);
}
.board > * + * { margin-top: 0; }
.board p, .board address { max-width: 34em; }

.board__big {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.25rem, 5.4vw, 5rem);
  line-height: 1.04;
}
.board__hours > p { margin-top: 0.75rem; }

/* Timetable: day rows with no times; one entry spans them all */
.timetable { width: 100%; margin-top: 1.25rem; border-collapse: collapse; table-layout: fixed; }
.timetable th {
  width: 6.75rem;
  height: 2.9rem;
  padding: 0 0.5rem 0 0;
  border-bottom: var(--line) dotted var(--fg);
  font-size: 1.0625rem;
  font-weight: 400;
  text-align: left;
}
.timetable .entry {
  padding: 0.25rem 0 0.5rem 1.25rem;
  border-left: var(--line) dotted var(--fg);
  border-bottom: var(--line) dotted var(--fg);
  vertical-align: top;
}
.entry p { margin-top: 0.75rem; font-size: 1.0625rem; }

/* Address, directions, text links */
.board__where address { margin-top: 0.75rem; font-size: var(--t-lead); font-style: normal; line-height: 1.4; }
.board__where > p { margin-top: 0.75rem; }
.links { margin-top: 1.25rem; }
.links a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: 2.9rem;
  padding-block: 0.3rem;
  border-bottom: var(--line) dotted var(--fg);
  text-decoration: none;
}
.links a:hover { text-decoration: underline; text-decoration-thickness: 0.1em; }
.links span { font-size: 0.95rem; }

/* Reach: sentence, then the slips tucked into a ledge along the lower edge */
.reach__head { display: grid; gap: 0.75rem; align-items: end; margin-bottom: 1.25rem; }
.slips {
  --fg: var(--ink);
  --bg: var(--ground);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.6rem;
  border-radius: clamp(1.5rem, 3vw, 3rem);
  background: var(--bg);
  color: var(--fg);
}
.slips .pill {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-height: 4.25rem;
  padding: 0.5rem 1rem;
}
.slips .pill:focus-visible { outline-color: var(--ink); }
.slip__what { font-size: 1.0625rem; }
.slip__subject { font-size: 0.9rem; }

@media (min-width: 48rem) {
  .board {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 1fr auto;
    min-height: calc(100vh - 6rem);
    min-height: calc(100svh - 6rem);
  }
  .board__hours { grid-column: 1 / span 7; }
  .board__where { grid-column: 8 / -1; }
  .board__reach { grid-column: 1 / -1; align-self: end; }
  .reach__head { grid-template-columns: 5fr 7fr; gap: var(--gap); }
  .slips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .timetable th { width: 8rem; }
}
