/* Birthday: the party sum. Layout, type, colour, motion. */

/* ===== LAYOUT ===== */
.cake-photo { aspect-ratio: auto; overflow: visible; background: none; }
.cake-photo > .mirror { width: 100%; }
.doorway .hall .mirror { margin: 0; }
.doorway > .hall { padding: clamp(1rem, 3vh, 2rem) var(--tda-edge); }
.sum { padding-bottom: clamp(1rem, 3vh, 2rem); }
.sum-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1rem var(--tda-edge);
  padding: clamp(1.5rem, 5vh, 3rem) var(--tda-edge) 1rem;
}
.sum-controls { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.sum-group { display: flex; align-items: center; gap: 0.5rem; }
.sum-group .tile { min-width: 2.75rem; }
.sum-col { padding: 1.5rem var(--tda-edge); min-width: 0; }
.sum-col > * + * { margin-top: var(--tda-beat); }
.sum-total { display: grid; }
.sum-swap { grid-area: 1 / 1; }
.sum-swap-guest { visibility: hidden; }
.sum-guest .sum-swap-guest { visibility: visible; }
.sum-guest .sum-swap-member { visibility: hidden; }
.sum-col figure { margin-top: 1.5rem; }
.party-notes { max-width: 60rem; }
.party-notes .count { max-width: 44rem; }
.bow .chapter { padding-block: 0.25rem; }
.bow-way { position: relative; z-index: 1; }

@media (max-width: 48rem) {
  .sum-bar { grid-template-columns: 1fr; }
  .sum-seam { grid-template-columns: 1fr; }
  .doorway > .hall { padding-inline: var(--tda-edge); }
  .sum-col + .sum-col { padding-top: 0; }
}

/* ===== TYPE ===== */
.sum-total {
  font-family: var(--tda-voice);
  font-weight: 650;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
}
.sum-count { font-size: 1rem; line-height: 1.3; min-width: 9ch; text-align: center; }
.sum-count output { font-family: var(--tda-voice); font-weight: 650; font-size: 1.5rem; }
.sum-group .tile { font-size: 1rem; }
.sum-col .callsheet { font-size: 0.95rem; }

/* ===== COLOUR ===== */
.sum-bar { box-shadow: inset 0 var(--tda-tread) 0 var(--tda-bark); }
.sum-col .callsheet dd { color: var(--tda-bark); }
.sum-total { color: var(--tda-blue); }
.sum-seam > .studio { box-shadow: inset var(--tda-tread) 0 0 var(--tda-bark); }

@media (max-width: 48rem) {
  .sum-seam > .studio { box-shadow: none; }
}

/* ===== MOTION ===== */
.sum-swap { transition: none; }
.sum-count output { transition: color 150ms linear; }
