/* THE STAY CARD — a ticket clipped to the lodge letter. Warm paper, a
   perforated top edge, tracked-cap field labels, and the CONFIRMED rubber
   stamp when nothing more needs the guest. Blanks the guest owns read as
   dashed fill-in lines (and are links); blanks the hosts own read as quiet
   "being arranged" notes. */

.ticket {
  position: relative;
  text-align: left;
  margin: var(--space-5) 0 var(--space-4);
  padding: var(--space-4) var(--space-5) var(--space-5);
  background: var(--paper-warm);
  background-image: var(--paper-texture);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* Perforation — the tear line along the top edge. */
.ticket::before {
  content: "";
  position: absolute;
  top: -1px; left: 12px; right: 12px;
  border-top: 2px dashed var(--paper-edge);
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}

.ticket-eyebrow {
  font-size: var(--cap-sm);
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: var(--weight-semibold);
}

.ticket-no {
  font-size: var(--cap-sm);
  letter-spacing: var(--tracking-cap-tight);
  color: var(--ink-faint);
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3) var(--space-4);
}

@media (max-width: 560px) {
  .ticket-grid { grid-template-columns: repeat(2, 1fr); }
}

.ticket-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-decoration: none;
}

.ticket-label {
  font-size: var(--cap-xs);
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: var(--weight-semibold);
}

.ticket-value {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-value--quiet { color: var(--ink-faint); }

/* A blank the guest can fill — a dashed fill-in line, like an empty form
   field on good paper. Hover warms it. */
.ticket-blank {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-faint);
  border-bottom: 1.5px dashed var(--ink-faint);
  padding-bottom: 1px;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.ticket-cell--blank:hover .ticket-blank {
  color: var(--ink-soft);
  border-bottom-color: var(--ink-soft);
}

/* A blank the HOSTS own — no link, no dashed urgency, just a quiet note. */
.ticket-cell--waiting .ticket-blank {
  border-bottom: none;
  font-style: italic;
}

/* ── The stamp ─────────────────────────────────────────────────────────
   Rubber-stamped over the corner once the guest's work is done. Slightly
   rotated, double-ringed, ink-green (the paid/confirmed family), blended
   into the paper like real ink. */
.ticket--stamped .ticket-grid { opacity: 0.92; }

.ticket-stamp {
  position: absolute;
  top: -16px;
  right: -6px;
  transform: rotate(-7deg);
  padding: 5px 12px 4px;
  background: var(--paper-warm);
  border: 2.5px solid var(--paid);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1.5px var(--paper-warm), inset 0 0 0 2.5px var(--paid);
  color: var(--paid);
  mix-blend-mode: multiply;
  opacity: 0.85;
  pointer-events: none;
  text-align: center;
}

.ticket-stamp-word {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.15;
}

.ticket-stamp-line {
  display: block;
  font-size: 8px;
  letter-spacing: var(--tracking-cap-wide);
  text-transform: uppercase;
  opacity: 0.9;
  white-space: nowrap;
}

/* ── Now / Soon — the clipboard learns time (prep checklist bands). ── */
.chk-section-head {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: var(--weight-semibold);
  margin: 18px 0 10px; padding-left: 2px;
}
.chk-section-head--soon { color: var(--ink-faint); margin-top: 24px; }
.chk-list--soon .chk-item { opacity: 0.82; }
.chk-list--soon .chk-item:hover { opacity: 1; }

/* The quiet week — a sentence, not a zero-state. */
.chk-quiet {
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: var(--leading-relaxed);
  margin: 4px 0 6px;
  padding: 14px 16px;
  background: var(--paper-warm);
  border: 1px dashed var(--paper-edge);
  border-radius: var(--radius-md);
}

/* ── The folder letter — the week's verdict at the top of the folder. ── */
.folder-letter { padding: 20px 24px; }
.folder-letter-head {
  font-family: var(--display); font-size: 22px; font-weight: var(--weight-semibold);
  color: var(--ink); margin: 0 0 12px; letter-spacing: -0.01em;
  border: 0; text-transform: none;
}
.folder-letter-p {
  font-size: 14.5px; line-height: 1.65; color: var(--ink-soft);
  margin: 0 0 10px; max-width: 68ch;
}
.folder-letter-p:last-child { margin-bottom: 0; }

/* ── The Hill — readiness as position on the walk to the lodge. ── */
.hill-card { padding: 18px 20px 14px; }
.hill-scene { position: relative; height: 210px; }
.hill-terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hill-ground { fill: var(--paper-warm-2); opacity: 0.7; }
.hill-trail {
  fill: none; stroke: var(--board); stroke-width: 1.1;
  stroke-dasharray: 2.6 2.2; stroke-linecap: round; opacity: 0.5;
}
.hill-lodge {
  position: absolute; left: 96.5%; top: 21%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  color: var(--ink-soft); line-height: 1;
}
.hill-home-mark { width: 40px; height: 26px; display: block; }
.hill-home-label {
  font-size: var(--cap-xs); letter-spacing: var(--tracking-cap-tight);
  text-transform: uppercase; color: var(--ink-faint); font-weight: var(--weight-semibold);
}
.hill-station {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
}
.hill-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--board);
  opacity: 0.75; box-sizing: border-box;
}
.hill-station--ready .hill-dot { background: var(--paid); border-color: var(--paid); opacity: 1; }
.hill-people {
  position: absolute; bottom: calc(50% + 8px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center;
}
.hill-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--paper-warm); border: 1.5px solid var(--paper-edge);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: var(--weight-semibold); color: var(--ink-soft);
  overflow: hidden; box-shadow: 0 2px 5px rgba(40, 30, 10, 0.22);
}
.hill-avatar + .hill-avatar { margin-left: -10px; }
.hill-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hill-avatar--more { background: var(--pip-pending-bg); color: var(--pip-pending-fg); font-size: 9px; }
/* An ask past due — the warm-ochre ring marks who the hill caption means
   by "crowds near the bottom want a personal note". */
.hill-avatar--slipping {
  border-color: var(--slipping);
  box-shadow: 0 0 0 1.5px var(--slipping), 0 2px 5px rgba(40, 30, 10, 0.22);
}
.hill-label {
  position: absolute; top: calc(50% + 9px); left: 50%; transform: translateX(-50%);
  font-size: var(--cap-xs); letter-spacing: var(--tracking-cap-tight);
  text-transform: uppercase; color: var(--ink-faint); white-space: nowrap;
  font-weight: var(--weight-semibold);
}
.hill-station--ready .hill-label { color: var(--paid); }
.hill-read { font-size: 13px; color: var(--ink-faint); margin: 10px 0 0; line-height: 1.5; }
@media (max-width: 640px) {
  .hill-scene { height: 160px; }
  .hill-avatar { width: 23px; height: 23px; }
  .hill-home-mark { width: 30px; height: 20px; }
}

/* ── The Living Lodge — lodgings filling with faces as people confirm. ── */
.home-live {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.home-lodging {
  position: relative;
  background: var(--paper-warm);
  background-image: var(--paper-texture);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-md);
  padding: 18px 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.home-lodging-roof {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-bottom: 8px solid var(--board);
  opacity: 0.55;
}
.home-lodging--yours { border-color: var(--board); box-shadow: var(--shadow-paper); }
.home-lodging--fireside { border-style: dashed; background: var(--paper); }
.home-lodging--fireside .home-lodging-roof { display: none; }
.home-lodging-name {
  font-family: var(--display); font-size: 14px; font-weight: var(--weight-semibold);
  color: var(--ink); margin-bottom: 8px;
}
.home-you {
  font-size: var(--cap-xs); letter-spacing: var(--tracking-cap-tight);
  text-transform: uppercase; color: var(--paid); font-weight: var(--weight-semibold);
  margin-left: 3px;
}
.home-lodging-people {
  display: flex; justify-content: center; align-items: center;
  min-height: 32px; margin-bottom: 6px;
}
.home-count { font-size: 13px; color: var(--ink-soft); }
.home-lodging-cap {
  font-size: var(--cap-xs); letter-spacing: var(--tracking-cap-tight);
  text-transform: uppercase; color: var(--ink-faint);
  font-weight: var(--weight-semibold);
}

/* ── Notifications — the switches and the who-gets-what matrix. ── */
.notif-card { padding: 18px 20px; }
.notif-toggles { display: flex; flex-direction: column; gap: 12px; }
.notif-toggle { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink-soft); cursor: pointer; }
.notif-toggle input { margin-top: 3px; accent-color: var(--paid); }
.notif-toggle strong { color: var(--ink); }
.notif-save { align-self: flex-start; margin-top: 2px; }
.notif-matrix { margin-top: 16px; border-top: 1px solid var(--paper-edge); padding-top: 12px; }
.notif-matrix summary { font-size: 13px; color: var(--ink-faint); cursor: pointer; }
.notif-matrix table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13px; }
.notif-matrix th { text-align: left; font-size: var(--cap-xs); letter-spacing: var(--tracking-cap-tight); text-transform: uppercase; color: var(--ink-faint); padding: 4px 8px 6px 0; }
.notif-matrix td { padding: 5px 8px 5px 0; border-top: 1px solid var(--paper-warm-2); color: var(--ink-soft); vertical-align: top; }
.notif-matrix td:first-child { color: var(--ink); font-weight: var(--weight-semibold); white-space: nowrap; }

/* ── YOUR WEEK — the stay as a vertical timeline: date bubbles on a
   dashed ink line, cards hanging off it. An itinerary, not a receipt. ── */
.week-line { margin: 6px 0 30px; }
.week-line-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--paper-edge); padding-bottom: 10px; margin-bottom: 10px;
}
.week-line-head .week-line-title { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.week-line-count { font-size: 12px; color: var(--ink-faint); font-weight: var(--weight-semibold); }
.week-line .chk-progress { margin-bottom: 16px; }
.week-line-title {
  font-size: 12px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: var(--weight-semibold);
  border-bottom: 1px solid var(--paper-edge); padding-bottom: 10px; margin-bottom: 16px;
}
.week-line-sub { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-faint); }
.week-line-rail { position: relative; padding-left: 8px; }
.week-line-rail::before {
  content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px;
  border-left: 2px dashed var(--paper-edge);
}
.week-line-entry { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; position: relative; }
.week-line-entry:last-child { margin-bottom: 0; }
.week-line-date {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--paper); border: 1.5px solid var(--paper-edge);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink); line-height: 1.05; z-index: 1;
  box-shadow: 0 1px 3px rgba(40,30,10,.14);
}
.week-line-date b { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: var(--weight-semibold); }
.week-line-card {
  flex: 1; background: var(--paper-warm); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-md); padding: 10px 14px;
  display: flex; flex-direction: column; gap: 1px; text-decoration: none;
}
.week-line-card--link:hover { box-shadow: var(--shadow-card); }
/* A row with a ride holds two links: the label and time open the travel
   form, the ride line opens the card that says who is collecting you.
   Anchors cannot nest, so the card is a div with two children. */
.week-line-card--split { padding: 0; gap: 0; }
.week-line-card-main {
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 14px; text-decoration: none;
}
.week-line-ride {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px 10px; text-decoration: none;
  color: var(--ink-soft); font-size: 13.5px;
  /* A hairline that works on both grounds — rgba(0,0,0,.06) is invisible on
     the dark paper this page uses at night. */
  border-top: 1px solid color-mix(in srgb, var(--paper-edge) 55%, transparent);
}
.week-line-ride:hover { color: var(--ink); }
.week-line-ride-go { margin-left: auto; color: var(--ink-faint); }

.week-line-label { font-weight: var(--weight-bold); color: var(--ink); font-size: 15px; }
.week-line-detail { color: var(--ink-faint); font-size: 13.5px; font-style: italic; }
/* A host closed this row for you. Said plainly under the done list — an
   item that quietly appears there reads as a bug the first time someone
   goes looking for it. Never the host's reason. (Neal, Aug 5) */
.week-done-closed {
  display: block;
  color: var(--ink-faint);
  font-size: 12.5px;
  font-style: italic;
}
/* An unfinished leg's sub is the door back to the form — the dashed
   named-blank affordance, same as the ticket's blanks. (Kate, Aug 2) */
.week-line-detail--cta {
  color: var(--ink-soft);
  border-bottom: 1.5px dashed var(--ink-faint);
  padding-bottom: 1px;
}
/* Any-time stops — asks with no date lead the road. */
.week-line-date--anytime {
  font-size: 9px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-faint); font-weight: var(--weight-semibold);
  border-style: dashed; text-align: center; line-height: 1.2;
}
/* Ask metadata — the checklist's tag/amount/due language, carried over. */
.week-line-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.week-line-quiet { color: var(--ink-faint); font-size: 14px; padding: 6px 0 2px 56px; }
/* The quiet tail — finished work tucked behind a disclosure. */
.week-line-done { margin-top: 14px; padding-left: 56px; }
.week-line-done summary {
  cursor: pointer; font-size: 13px; color: var(--ink-faint);
  font-weight: var(--weight-semibold); list-style: none;
}
.week-line-done summary::-webkit-details-marker { display: none; }
.week-line-done ul { margin: 8px 0 0; padding: 0; list-style: none; }
.week-line-done li { padding: 3px 0; font-size: 13.5px; }
.week-line-done li a { color: var(--ink-faint); text-decoration: line-through; }
.week-line-done li a:hover { color: var(--ink-soft); }
