/* ==========================================================================
   Yanga v4 · Clive's v3 review: colour on the details, typed quotes, the
   archive's evidence cards, postcards that play in place, living stamps.
   ========================================================================== */

/* exhibits: the "more on his pages" line */
.ex-more { font-size: 1.05rem; line-height: 1.5; }
.ex-more b { font-weight: 750; }

/* the Minister's video */
.min-photo__frame video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; background: #241e18; }
.min-snd { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .95rem; border-radius: 999px; border: 0; background: var(--ink); color: var(--bone); font-weight: 700; font-size: .86rem; cursor: pointer; box-shadow: 0 4px 12px hsl(28 30% 8% / .35); }
.min-snd svg { width: 18px; height: 18px; }
.min-snd[aria-pressed="true"] { background: var(--orange); color: var(--ink); }
.lede.c-cog { color: var(--cognac); }

/* typed text: a caret while it writes */
[data-type].is-typing::after { content: ""; display: inline-block; width: 2px; height: .95em; margin-left: 2px; vertical-align: -0.08em; background: var(--orange); animation: caret 700ms steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ocard q.c-green { color: var(--green); } .ocard q.c-cog { color: var(--cognac); }
.min-silence q { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.8rem); }
.hl-orange { background-image: linear-gradient(transparent 62%, color-mix(in oklab, var(--orange) 55%, transparent) 62%, color-mix(in oklab, var(--orange) 55%, transparent) 92%, transparent 92%); }

/* the seal in the closing block */
.seal3d--cta { width: clamp(110px, 12vw, 150px); margin: 0 0 1.4rem; }
.seal3d--cta .seal3d__hint { color: var(--on-green-2); }

/* ------------------------------------------------ the archive: counts -- */
.gal-stats { display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; margin: 0 0 1.2rem; padding: 1rem 0; border-block: 1px solid var(--hair-strong); }
.gal-stats p { margin: 0; display: flex; align-items: baseline; gap: .5rem; }
.gal-stats b { font-family: var(--sc-font-display); font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.gal-stats p:nth-child(1) b { color: var(--green); } .gal-stats p:nth-child(2) b { color: var(--cognac); } .gal-stats p:nth-child(3) b { color: var(--ink); } .gal-stats p:nth-child(4) b { color: var(--orange); }
.gal-stats span { font-size: .9rem; font-weight: 600; color: var(--ink-2); }

/* ------------------------------------- the archive: evidence cards -- */
/* each photo is a filed piece of evidence: a paper mount, a tape tab, a filing strip,
   a light that follows your finger, and a FILED stamp that lands when you hover or tap */
.gal { gap: clamp(.8rem, 1.4vw, 1.2rem); perspective: 1400px; }
.gal__item { aspect-ratio: auto; display: grid; grid-template-rows: 1fr auto; background: #FBF7EF; padding: 8px 8px 0; border-radius: 4px; overflow: visible;
  box-shadow: 0 1px 2px hsl(28 30% 12% / .12), 0 14px 26px -16px hsl(28 30% 12% / .45);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transform-style: preserve-3d; transition: transform 380ms var(--sc-ease-out), box-shadow 300ms; }
.gal__item.is-tilting { transition: transform 80ms linear, box-shadow 300ms; }
.gal__item:hover { box-shadow: 0 2px 4px hsl(28 30% 12% / .14), 0 26px 44px -20px hsl(28 30% 12% / .55); }
.gal__item::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 18px; translate: -50% 0; rotate: var(--tape, -2deg); background: color-mix(in oklab, var(--bone-3) 85%, transparent); box-shadow: 0 1px 2px hsl(28 30% 12% / .12); z-index: 3; }
.gal__item:nth-child(3n)::before { --tape: 3deg; } .gal__item:nth-child(4n+1)::before { left: 26%; }
.gal__item > img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.gal__item:nth-child(9n+1) > img { aspect-ratio: auto; height: 100%; min-height: 0; }
.gal__item::after { content: ""; position: absolute; inset: 8px 8px 46px; border-radius: 2px; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgb(255 255 255 / .28), transparent 45%); opacity: 0; transition: opacity 300ms; }
.gal__item:hover::after { opacity: 1; }
.gal__cap { position: static; padding: .55rem .2rem .6rem; background: none; color: var(--ink); display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: baseline; font-size: .82rem; line-height: 1.3; }
.gal__cap::before { content: attr(data-no); grid-row: span 2; font-weight: 800; font-size: .7rem; letter-spacing: .1em; color: var(--cognac); padding-top: .15rem; }
.gal__cap::after { content: attr(data-catlabel); font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.gal__item .gal__filed { position: absolute; right: 16px; top: 18px; z-index: 4; padding: .2rem .5rem; border: 2px solid var(--orange); color: var(--orange); background: color-mix(in oklab, #FBF7EF 85%, transparent); font-size: .66rem; font-weight: 800; letter-spacing: .16em; rotate: -10deg; scale: 1.6; opacity: 0; transition: opacity 200ms, scale 260ms cubic-bezier(.2, .9, .2, 1); pointer-events: none; }
.gal__item:hover .gal__filed, .gal__item.is-filed .gal__filed { opacity: 1; scale: 1; }
.gal__item .gal__play { top: calc(50% - 22px); }
.gal__item:nth-child(9n+1) .gal__cap { font-size: .92rem; }
@media (max-width: 640px) { .gal__item:nth-child(9n+1) > img { aspect-ratio: 4 / 3; height: auto; } .gal__cap { font-size: .74rem; } .gal__item::before { width: 50px; } }

/* ------------------------------------ postcards that play in place -- */
.pc-live { display: grid; grid-template-columns: clamp(110px, 9vw, 138px) 1fr; gap: 1rem; align-items: center; padding: .8rem; border-radius: 10px; background: color-mix(in oklab, var(--green-deep) 75%, transparent); border: 1px solid color-mix(in oklab, var(--bone) 18%, transparent); }
.pc-live__film { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 6px; background: #10201a; box-shadow: 0 8px 18px rgb(0 0 0 / .35); }
.pc-live__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-live.is-swap .pc-live__film { animation: pcIn 520ms cubic-bezier(.2, .9, .2, 1); }
@keyframes pcIn { from { opacity: .2; transform: scale(.94) rotate(-2deg); } }
.pc-live__txt { display: grid; gap: .45rem; justify-items: start; }
.pc-live__t { margin: 0; font-family: var(--sc-font-display); font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.15; color: var(--bone); }
.pc-snd, .pc-big { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .85rem; border-radius: 999px; font-weight: 700; font-size: .82rem; cursor: pointer; }
.pc-snd { border: 0; background: var(--orange); color: var(--ink); }
.pc-snd svg { width: 16px; height: 16px; }
.pc-snd[aria-pressed="true"] { background: var(--bone); }
.pc-big { border: 1px solid color-mix(in oklab, var(--bone) 40%, transparent); background: transparent; color: var(--bone); }
.pcs button.is-on { background: var(--bone); color: var(--green); }
@media (max-width: 900px) {
  .juris [data-sc-stage] { position: relative; height: auto; overflow: visible; padding-bottom: 3rem; }
  .juris__copy .body, .juris .map-key { display: block; }
  .pc-live { grid-template-columns: 112px 1fr; }
  .map { max-height: none; }
}

/* --------------------------------------- the diary: living stamps -- */
.day--booked .appt { animation: none; }
.month.is-seen .day--booked .appt { animation: apptIn 520ms cubic-bezier(.2, .9, .2, 1) forwards, apptHue 6s steps(1) var(--d, 0ms) infinite; }
@keyframes apptHue {
  0%   { color: var(--cognac); border-color: var(--cognac); }
  25%  { color: var(--green); border-color: var(--green); }
  50%  { color: var(--orange); border-color: var(--orange); }
  75%  { color: var(--ink); border-color: var(--ink); }
}
.day--booked { animation: bookedHue 6s steps(1) var(--d, 0ms) infinite; }
@keyframes bookedHue { 0% { background: var(--cognac); } 25% { background: var(--green); } 50% { background: var(--orange); color: var(--ink); } 75% { background: var(--ink); } }

@media (prefers-reduced-motion: reduce) {
  [data-type].is-typing::after { display: none; }
  .month .day--booked .appt, .day--booked { animation: none !important; }
  .gal__item { transform: none !important; }
}
.min-photo .stampmini { bottom: auto; top: 26px; right: -26px; z-index: 3; }
