/* =============================================================
   WvH HOSPITALITY — high-seven.css
   Chapter Six only. Added 11.11.26, with the seat rework.

   Loaded after styles.css, motion.css and guest-book.css, and
   before the page's own <style> block, which still dresses the
   seat plaques (.seat-row, .plaque, .pq-*, .seat-prose) and the
   works panels. A rule here that touches one of those is written
   one class deeper, so it holds whatever the order.

   Type floor: no label under 11px (see TYPE FLOOR in styles.css).

     1. The seats ............ anchors, and one guard
     2. The seat index ....... seven label plates for the bell board
     3. Section headings ..... shared by the two new sections
     4. May, and May Not ..... the limits table
     5. A Day in the House ... the timetable
     6. The plate ............ the Oracle, in The Wiring
   ============================================================= */


/* ---------- 1. The seats ---------- */

/* Each seat is a landing place for the index above it. */
.seat-row { scroll-margin-top: 28px; }

/* Plaque labels sit in a 34% column at 9px. "Answers for" is the
   longest of them; on the narrowest phones it would fold in two and
   knock the pair beneath it out of line. Labels keep to one line. */
.seat-row .plaque dt { white-space: nowrap; }

/* The magenta in MaJENta, dark enough for label sizes. */
.h7-jen { color: #a3125f; }


/* ---------- 2. The seat index ----------
   Seven plates in a row, one to a bell: a cream card in a brass
   holder. Every plate is the same width until a name will not fit,
   and none shrinks below its longest word. All seven names hold one
   line from about 1010px up; narrower, the three that begin "The"
   fold in two. On a phone, two rows: four, then three, with the
   seventh plate taking the last two places so the row closes flush. */
.seat-index {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 880px;
  margin: 14px auto 0;
}
.seat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 5px 8px;
  text-align: center;
  background: linear-gradient(180deg, #f9f1da 0%, #efe2bc 100%);
  border: 1px solid var(--gold-deep);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 2px #dcc382,
    inset 0 0 0 3px rgba(95, 72, 24, 0.4),
    0 1px 2px rgba(30, 16, 4, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.seat-tab:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 2px #ead596,
    inset 0 0 0 3px rgba(95, 72, 24, 0.4),
    0 3px 7px rgba(30, 16, 4, 0.3);
}
.seat-tab:active { transform: none; }
.seat-tab:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.seat-tab-mark {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.seat-tab-sigil {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1;
  color: var(--oxblood);
}
.seat-tab-num {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--gold-ink);
}
.seat-tab-name {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: auto 0;   /* a one-line name sits centred beside a two-line neighbour */
}
@media (max-width: 639.98px) {
  .seat-index { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .seat-tab { padding: 9px 5px 7px; }
  .seat-tab:last-child { grid-column: span 2; }
  .seat-tab-name { letter-spacing: 0.02em; }
}


/* ---------- 3. Section headings ----------
   Kicker, title, one line. Same measures as the Guest Book's. */
.h7-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--oxblood);
  text-align: center;
  margin: 0 0 10px;
}
.h7-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.08em;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
  margin: 0 0 10px;
}
.h7-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  text-align: center;
  text-wrap: balance;
  max-width: 520px;
  margin: 0 auto 26px;
}
.h7-link { color: var(--ink); border-bottom: 1px dotted var(--gold-deep); }
.h7-link:hover { color: var(--oxblood); border-bottom-style: solid; }
@media (max-width: 560px) {
  .h7-title { font-size: 26px; }
}


/* ---------- 4. May, and May Not ----------
   A ledger in the plaques' own frame. The right-hand column is the
   one that matters, so it is the one with the wash. Under 640px each
   seat becomes a short stack: name, May, May not. The header row is
   kept for screen readers and taken off the page. */
.limits { max-width: 880px; margin: 44px auto 8px; }
.limits-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  padding: 9px;
  background: var(--paper-bright);
  border: 2px solid var(--gold-deep);
  box-shadow: inset 0 0 0 5px var(--paper-bright), inset 0 0 0 6px var(--gold-deep);
}
.limits-table th,
.limits-table td {
  text-align: left;
  vertical-align: baseline;
  padding: 13px 16px 12px;
  border-bottom: 1px solid rgba(143, 112, 48, 0.4);
}
.limits-table thead th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-ink);
  padding-top: 12px;
  padding-bottom: 9px;
  border-bottom: 3px double var(--gold-deep);
}
.limits-table thead th:nth-child(2) { width: 43%; }
.limits-table thead th:nth-child(3) { width: 35%; }
.limits-table tbody th {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  color: #5d4013;
}
.limits-table td {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.limits-table tbody tr:last-child th,
.limits-table tbody tr:last-child td { border-bottom: 0; }
/* the column that matters */
.limits-table thead th:last-child { color: var(--oxblood); }
.limits-table thead th:last-child,
.limits-table td:last-child {
  background: rgba(162, 7, 27, 0.05);
  border-left: 1px solid rgba(162, 7, 27, 0.28);
}
.limits-foot {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-align: center;
  margin: 16px 0 0;
}
@media (max-width: 639.98px) {
  .limits-table,
  .limits-table tbody,
  .limits-table tbody tr,
  .limits-table tbody th,
  .limits-table td { display: block; }
  .limits-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .limits-table tbody tr {
    padding: 16px 8px 15px;
    border-bottom: 1px solid rgba(143, 112, 48, 0.4);
  }
  .limits-table tbody tr:last-child { border-bottom: 0; }
  .limits-table tbody th,
  .limits-table td { padding: 0; border-bottom: 0; }
  .limits-table tbody th { font-size: 19px; white-space: normal; margin-bottom: 8px; }
  .limits-table td { padding-left: 14px; }
  .limits-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold-ink);
    margin-bottom: 1px;
  }
  .limits-table td:last-child {
    margin-top: 10px;
    padding: 8px 10px 9px 12px;
    border-left: 2px solid rgba(162, 7, 27, 0.5);
  }
  .limits-table td:last-child::before { color: var(--oxblood); }
}


/* ---------- 5. A Day in the House ----------
   A timetable on a brass rail: six stops across from 1001px, three
   by two below that, a single column down the left on a phone. The
   labels share one row and the sentences the next, so the sentences
   start level even when a label runs to two lines. Five stops are
   hours of the day and wear a round stud; the sixth is a day of the
   month and wears a square one, set on its point. */
.house-day { max-width: 880px; margin: 56px auto 52px; }
.day-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 32px 0 0;
  padding: 0;
}
.day-stop {
  position: relative;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  border-top: 1px solid var(--gold-deep);
  padding: 17px 16px 0 0;
}
.day-stop::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f7ecc4 0%, #e4cc86 18%, var(--gold) 45%, #6e5520 88%, #4a3413 100%);
  box-shadow: 0 1px 2px rgba(10, 5, 2, 0.4);
}
.day-stop:last-child::before { border-radius: 1px; transform: rotate(45deg); }
.day-time {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  text-wrap: balance;
  margin: 0 0 6px;
}
.day-line {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}
/* Browsers without subgrid: hold two lines for every label instead. */
@supports not (grid-template-rows: subgrid) {
  .day-stop { display: block; }
  .day-time { min-height: 2.9em; }
}
@media (min-width: 640px) and (max-width: 1000px) {
  .day-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day-stop:nth-child(-n+3) { padding-bottom: 30px; }
}
@media (max-width: 639.98px) {
  .day-strip { display: block; }
  .day-stop {
    display: block;
    border-top: 0;
    border-left: 1px solid var(--gold-deep);
    padding: 0 0 22px 20px;
  }
  .day-stop:last-child { padding-bottom: 2px; }
  .day-stop::before { top: 3px; left: -5px; }
  .day-time { min-height: 0; margin-bottom: 3px; }
}


/* ---------- 6. The plate ----------
   The Oracle, at the end of The Wiring. The frame, mat, rivets and
   placard are the house's own (.hero-frame, .hero-image, .rivet,
   .hero-caption in styles.css). The photograph stands 3:4, so the
   plate is kept narrow: at full width it would run to 960px tall. */
.seat-plate {
  max-width: 460px;
  margin: 36px auto 52px;
  text-align: center;
}
.seat-plate .hero-image { aspect-ratio: 3 / 4; }
/* the caption breaks at its middle dot, never mid-phrase */
.seat-plate-part { display: block; text-wrap: balance; }


/* ---------- Seats VI and VII ----------
   Their stories are one paragraph beside a full card, so each sits level with
   the middle of its card instead of hanging from the top. */
@media (min-width: 761px) {
  .frame #seat-claude,
  .frame #seat-proprietor { align-items: center; }
}
