/* The graduation wall (13 Nov 2026; graduates.py, graduates.html). The garden's palette: the deep garden green and
   gold of the title band, the gate scroll's cream paper for the wall, and each graduate a portrait in a carved wooden
   frame with a brass plate. Dark text on the cream, never gold on cream. A 16 px gutter on a phone, nothing wider than
   the screen. */

main:has(.gw) { max-width: none; padding: 0; }
body:has(.gw) { background: #f6ecd2; }
.gw { color: #2a2318; background: #f6ecd2; font: 400 calc(17px * var(--text, 1))/1.5 var(--g-font-body); overflow-x: clip; min-height: 70vh; }
.gw-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.gw-band { background: var(--g-felt-bg, #155236); color: var(--g-cream, #fff6e2); padding: 28px 0 24px;
  border-bottom: 10px solid #7a4a1e; box-shadow: inset 0 -2px 0 rgba(255, 233, 163, 0.25); }
.gw-band h1 { font: 400 clamp(2.1rem, 5vw, 3rem)/1.05 var(--g-font-display); margin: 0 0 8px; color: var(--g-gold-1, #ffe9a3);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.gw-lead { margin: 0 0 12px; font-size: 1.1rem; color: var(--g-cream-soft, #fff6e2); }
.gw-you, .gw-guest { margin: 0; background: rgba(8, 36, 26, 0.55); border: 1px solid var(--g-line, rgba(255, 233, 163, 0.35));
  border-radius: 14px; padding: 12px 14px; max-width: 46rem; }
.gw-you { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gw-guest p { margin: 0 0 10px; }
.gw-guest p:last-child { margin: 0; }
.gw-acts { display: flex; flex-wrap: wrap; gap: 10px; }

.gw-btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font: 700 1rem/1.2 var(--g-font-body);
  padding: 0.7em 1.1em; border-radius: 999px; color: var(--g-gold-ink, #3a2606);
  background: linear-gradient(180deg, var(--g-gold-1, #ffe9a3), var(--g-gold-2, #f6c443) 55%, var(--g-gold-3, #d68c12));
  box-shadow: 0 3px 0 var(--g-gold-ledge, #9a5f07); }
a.gw-btn { color: var(--g-gold-ink, #3a2606); }
.gw-btn-quiet { background: transparent; color: var(--g-cream, #fff6e2); box-shadow: inset 0 0 0 2px var(--g-line, rgba(255, 233, 163, 0.35)); }
a.gw-btn-quiet { color: var(--g-cream, #fff6e2); }

.gw-body { padding-top: 26px; padding-bottom: 56px; display: grid; gap: 34px; }
.gw h2 { font: 400 1.7rem/1.1 var(--g-font-display); color: #1d4a37; margin: 0 0 6px; }
.gw-soft { margin: 0 0 16px; color: #5b4a2c; }

.gw-empty { background: #fffaf0; border: 2px solid #c9b07a; border-radius: 14px; padding: 22px; max-width: 40rem; }
.gw-empty p { margin: 0 0 14px; }

/* the wall: portraits hung in rows */
.gw-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.gw-grid-month { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gw-card { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }

/* the carved frame: a square of wood with a gilt edge, the face on a cream mat inside */
.gw-frame { position: relative; display: grid; place-items: center; width: 148px; aspect-ratio: 1; padding: 14px; border-radius: 6px;
  background: linear-gradient(135deg, #b07a45, #7a4a1e 45%, #5e3615); box-shadow: inset 0 0 0 3px #d9a75c, inset 0 0 0 6px #5e3615,
  0 8px 14px rgba(60, 36, 12, 0.35); }
.gw-grid-month .gw-frame { width: 176px; }
.gw-card.top .gw-frame { box-shadow: inset 0 0 0 3px #ffe9a3, inset 0 0 0 6px #9a5f07, 0 0 0 3px #f6c443, 0 10px 18px rgba(60, 36, 12, 0.4); }
.gw-face { position: relative; width: 100%; height: 100%; display: block; border-radius: 3px; background: #f6ecd2; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35); }
.gw-pic { position: absolute; inset: 10%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff6e2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.gw-face.framed .gw-pic { inset: 18%; }
.gw-pic img, .gw-pic svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.gw-ring { position: absolute; inset: 6%; width: 88%; height: 88%; pointer-events: none; }

/* the brass plate under it */
.gw-plate { margin-top: 10px; display: grid; gap: 2px; padding: 8px 12px; min-width: 0; max-width: 100%; border-radius: 6px;
  background: linear-gradient(180deg, #fffaf0, #efe2c0); border: 1px solid #c9b07a; box-shadow: 0 2px 0 #c9b07a; }
.gw-name { font: 400 1.25rem/1.15 var(--g-font-display); color: #1d4a37; overflow-wrap: anywhere; }
.gw-when, .gw-fact { font-size: 0.95rem; color: #4a3d26; }
.gw-rank { margin-top: 4px; justify-self: center; font-weight: 800; font-size: 0.95rem; color: #fff6e2; background: #1d4a37;
  border-radius: 999px; padding: 3px 12px; }
.gw-card.top .gw-rank { background: #9a5f07; }

/* the month's honors (16 Nov): the valedictorian, with the wrapped bundle that marks her one-of-a-kind prize still
   being made, and most paths finished; and what each graduate earned, under the plate's name */
.gw-honors { display: grid; gap: 6px; margin: 0 0 18px; }
.gw-honor-line { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border-radius: 12px; max-width: 46rem;
  background: #fffaf0; border: 1px solid #c9b07a; }
.gw-honor-line .gw-wrap { flex: none; width: 40px; height: 40px; }
.gw-honor-paths { padding-left: 14px; border-left: 6px solid #7a3b5c; }
.gw-honor { margin-top: 4px; justify-self: center; display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 0.92rem;
  border-radius: 999px; padding: 2px 12px 2px 4px; color: #1d4a37; background: #fff1c9; box-shadow: inset 0 0 0 1.5px #b98512; }
.gw-honor .gw-wrap { width: 26px; height: 26px; }
.gw-paths { padding-left: 12px; color: #fff6e2; background: #7a3b5c; box-shadow: none; }
.gw-card.vale .gw-frame { box-shadow: inset 0 0 0 3px #ffe9a3, inset 0 0 0 6px #1f6b4a, 0 0 0 3px #1f6b4a, 0 10px 18px rgba(60, 36, 12, 0.4); }
.gw-earned { display: grid; gap: 2px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #d9c9a0; text-align: left; }
.gw-earned b { color: #1d4a37; }

@media (max-width: 520px) {
  .gw-grid, .gw-grid-month { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .gw-frame, .gw-grid-month .gw-frame { width: 100%; max-width: 150px; padding: 10px; }
  .gw-plate { padding: 6px 8px; }
  .gw-name { font-size: 1.1rem; }
  .gw-when, .gw-fact { font-size: 0.88rem; }
}
