/* PANDA RECORD — design polish 2026-11-17: logo, section numbers + rhythm, readable body text, calendar "upcoming" state.
   Loaded last on every page so it wins over the older sheets. */

/* 1 — logo: panda mark + wordmark (no URL line) */
.logo{display:inline-flex;align-items:center;gap:9px;line-height:0}
.logo img.lg-m{height:34px;width:auto}
.logo img.lg-w{height:15px;width:auto;margin:0}
footer .logo{display:flex;justify-content:center;gap:14px;width:max-content;margin:0 auto 26px}
footer .logo img.lg-m{height:58px;margin:0}
footer .logo img.lg-w{height:25px;margin:0}
@media(max-width:860px){.logo img.lg-m{height:28px}.logo img.lg-w{height:12px}.logo{gap:7px}}
@media(max-width:380px){.logo img.lg-m{height:24px}.logo img.lg-w{height:11px}}

/* 7 — home: section numbers (01 / 06 …) and a tighter rhythm on desktop */
.home main{counter-reset:sec}
.home .screen .h2::before{counter-increment:sec;content:counter(sec,decimal-leading-zero) " / 06";display:block;margin-bottom:14px;
  font:500 11px/1 var(--font-label,Poppins,sans-serif);letter-spacing:.24em;color:var(--red,#d71b1d)}
.home .coop .h2::before{content:none;counter-increment:none}
.home .events .h2::before{text-align:center;color:rgba(255,255,255,.75)}   /* red on the red backdrop would vanish */
@media(min-width:861px){
  html:has(body.home){scroll-snap-type:none}
  .home .screen{min-height:0;padding:104px 0}
  .home .shop.screen{padding:104px 0 96px}
  .home .events.screen{padding:112px 0}
  .home .sec-head{margin-bottom:30px}
}

/* 10 — body copy: a step brighter and larger */
.about .txt p,.about ol{color:#cfc9bf;font-size:16px;line-height:1.95}
.story-tx p,.pf-top .intro{color:#d6d1c8}
.story-tx p{font-size:16px;line-height:1.95}
.article-body p{color:#d6d1c8}
.ni-ex{color:#bdb6aa}
:lang(ja) .about .txt p,:lang(ja) .story-tx p{letter-spacing:.02em}

/* 8 — event calendar: say so when nothing is coming up; past shows step back */
.cal-next{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 18px;padding:18px 22px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(0,0,0,.28)}
.cal-next b{font:600 11px/1 var(--font-label,Poppins,sans-serif);letter-spacing:.24em;color:#fff;padding:6px 10px;border-radius:999px;background:var(--red,#d71b1d)}
.cal-next p{flex:1 1 220px;margin:0;font-size:14px;line-height:1.7;color:#e7e2da}
.cal-next a{flex:none}
.cal-lhead .arch{margin-left:12px;font:500 10px/1 var(--font-label,Poppins,sans-serif);letter-spacing:.22em;color:rgba(255,255,255,.55)}
.cal-rows .ev-mini.past{opacity:.6;transition:opacity .2s}
.cal-rows .ev-mini.past:hover,.cal-rows .ev-mini.past:focus-within{opacity:1}

/* calendar on phones (iPhone Safari): day cells use aspect-ratio, which WebKit lets grow past a plain 1fr column, so the grid overflowed */
.cal-wd,.cal-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
.cal-months{grid-template-columns:repeat(12,minmax(0,1fr))}
.cd{min-width:0;min-height:0}
@media(max-width:860px){.cd{margin:2px}.cal-next{padding:16px 18px;gap:12px}.cal-next p{flex-basis:100%;font-size:13px}}
/* home: the button(s) beside a section title are centred on the title's capitals, not on title + the "02 / 06" label above it.
   25px = the label (11px) + its gap (14px); .57em = middle of the Poppins capitals below the line box at line-height 1.15 */
.home .sec-head{align-items:flex-start}
.home .sec-head>:not(.h2){margin-top:calc(25px + .57 * var(--fs-h2));translate:0 -50%}
