/* ── cal.art public site ── editorial calendar of the art world ── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&display=swap') ;

:root {
	--ink:        #1a1814 ;
	--ink-mute:   #7c7468 ;
	--ink-soft:   #4a4459 ;
	--paper:      #f5f9f6 ;
	--paper-2:    #eef6f0 ;
	--paper-3:    #f0f8f3 ;
	--card:       #ffffff ;
	--rule:       #d6e3da ;  /* hairline — mint-tinted neutral, no sand */
	--rule-soft:  #e8f0eb ;
	--accent:     #6cba89 ;
	--accent-deep:#56a574 ;
	--accent-soft:#e3f3e9 ;
	--accent-pale:#f0f8f3 ;
	--ok:         #5fa377 ;

	--font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif ;
	--font-sans:  'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif ;

	--max-w:      1320px ;
	--gap:        20px ;
	--radius:     8px ;
	--shadow-sm:  0 1px 2px rgba(26, 24, 20, 0.04) ;
	--shadow:     0 12px 40px rgba(26, 24, 20, 0.10) ;
	--ease:       cubic-bezier(0.3, 0.7, 0.4, 1) ;

	/* Check glyph, used as a mask so it inherits the text colour of whatever
	   it marks. Inline so it costs no request. */
	--tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") ;
}

*, *::before, *::after { box-sizing: border-box ; }
html, body { margin: 0 ; padding: 0 ; }
html { font-size: 16px ; -webkit-font-smoothing: antialiased ; -moz-osx-font-smoothing: grayscale ; height: 100% ; }

/* Sticky-footer layout: body is a flex column filling the viewport.
   .page grows to take the available space; the footer sits naturally at
   the end and never floats with empty space below it. */
body {
	font-family: var(--font-sans) ;
	font-weight: 400 ;
	color: var(--ink) ;
	line-height: 1.55 ;
	min-height: 100vh ;
	min-height: 100dvh ;
	display: flex ;
	flex-direction: column ;

	/* Animated pastel mint gradient — very slow drift, no harsh transitions. */
	background: linear-gradient(135deg, var(--paper) 0%, var(--paper-2) 25%, var(--paper-3) 50%, var(--paper-2) 75%, var(--paper) 100%) ;
	background-size: 320% 320% ;
	animation: bg-drift 36s ease-in-out infinite ;
}
/* Utility classes the components put on their markup — the modal's event
   title, the "Report an error" heading, the "not found" line. They were
   used but defined nowhere, so the modal title fell back to the body's
   sans-serif instead of the house Playfair. */
.serif  { font-family: var(--font-serif) ; }
.italic { font-style: italic ; }

@keyframes bg-drift {
	0%   { background-position: 0%   50% ; }
	50%  { background-position: 100% 50% ; }
	100% { background-position: 0%   50% ; }
}
@media (prefers-reduced-motion: reduce) {
	body { animation: none ; }
}

/* ── Campaign background slideshow ──────────────────────
   When a promotional campaign is active, cal.js sets `body.has-campaign`
   and mounts <cal-background-slideshow> before .page. The slideshow
   replaces the animated mint gradient; a translucent scrim inside the
   component keeps the foreground UI fully readable. */
body.has-campaign {
	background: #0c0c10 ;
	animation: none ;
}
cal-background-slideshow {
	position: fixed ;
	inset: 0 ;
	z-index: 0 ;
	overflow: hidden ;
	display: block ;
	pointer-events: auto ;
}
cal-background-slideshow .layer {
	position: absolute ;
	inset: 0 ;
	overflow: hidden ;
	will-change: transform ;
}
cal-background-slideshow .layer.next { transform: translateX(100%) ; }
cal-background-slideshow .kb {
	position: absolute ;
	inset: 0 ;
	background-size: cover ;
	background-position: center ;
	will-change: transform ;
	animation: cal-ken-burns 18s ease-in-out infinite alternate ;
}
@keyframes cal-ken-burns {
	from { transform: scale(1.00) translate( 0%,  0%) ; }
	to   { transform: scale(1.10) translate(-1.5%, -1%) ; }
}
/* The scrim sits ABOVE the images but BELOW the page content. A
   strong white-tint wash with a touch of blur — the chips / cards /
   page text on top must stay perfectly legible, and the image is
   intentionally faded behind so it never competes for attention. */
cal-background-slideshow .scrim {
	position: absolute ;
	inset: 0 ;
	background: linear-gradient(180deg,
		rgba(255, 255, 255, 0.55) 0%,
		rgba(255, 255, 255, 0.70) 50%,
		rgba(255, 255, 255, 0.85) 100%
	) ;
	backdrop-filter: blur(2px) saturate(0.95) ;
	-webkit-backdrop-filter: blur(2px) saturate(0.95) ;
	pointer-events: none ;
}
/* Always-visible event caption running vertically along the LEFT edge
   of the viewport — title + dates set in editorial type directly on
   the blurred image (no card). Rotated -90° so the line reads
   bottom-to-top (book-spine orientation). Click anywhere on the
   slideshow opens the modal — pointer-events:none lets the clicks
   pass straight through to the host element. */
cal-background-slideshow .info {
	position: absolute ;
	/* Unrotated top-left anchored at (28px, viewport_bottom - 28px).
	   With transform-origin:0 0, rotate(-90deg) swings the box up and
	   to the right, so the rotated caption sits flush against the
	   viewport's left edge with 28px of bottom and left margin. */
	top: calc(100% - 28px) ;
	left: 28px ;
	transform-origin: 0 0 ;
	transform: rotate(-90deg) ;
	display: flex ;
	flex-direction: row ;
	align-items: baseline ;
	gap: 28px ;
	white-space: nowrap ;
	color: var(--ink) ;
	pointer-events: none ;
	z-index: 2 ;
}
cal-background-slideshow .info strong {
	font-family: var(--font-serif, Georgia, serif) ;
	font-style: italic ;
	font-weight: 400 ;
	font-size: 44px ;
	line-height: 1 ;
}
cal-background-slideshow .info span {
	font-size: 13px ;
	letter-spacing: 0.14em ;
	text-transform: uppercase ;
	color: var(--ink-mute) ;
}
/* The page stacks above the slideshow but stays transparent so the
   slideshow shines through wherever the page has no opaque element. */
body.has-campaign .page { position: relative ; z-index: 1 ; }

/* When a campaign is active, ease the calendar cells (normally solid
   white / pale green) into transparency so the blurred image reads
   through. Critically, the GRID CONTAINERS (.month-grid, .week-row,
   .week-head, .week-body) also paint a `background: var(--rule)`
   (opaque mint) — that sits *under* the cells and would otherwise
   block the image entirely no matter how transparent the cells are
   themselves. We swap those container backgrounds for the same colour
   at low alpha so the inter-cell hairlines stay visible as a soft
   tint while the image bleeds through. */
body.has-campaign cal-calendar .month-grid,
body.has-campaign cal-calendar .week-row,
body.has-campaign cal-calendar .week-head,
body.has-campaign cal-calendar .week-body {
	background-color: rgba(214, 227, 218, 0.35) ;
}
body.has-campaign cal-calendar .day-cell             { background-color: rgba(255, 255, 255, 0.42) ; }
body.has-campaign cal-calendar .day-cell.weekend:not(.off-month) { background-color: rgba(250, 253, 251, 0.42) ; }
body.has-campaign cal-calendar .day-cell.today       { background-color: rgba(240, 248, 243, 0.52) ; }
body.has-campaign cal-calendar .day-cell.off-month   { background-color: rgba(245, 249, 246, 0.18) ; }
body.has-campaign cal-calendar .week-day-h           { background-color: rgba(255, 255, 255, 0.42) ; }
body.has-campaign cal-calendar .week-day-h.today     { background-color: rgba(240, 248, 243, 0.52) ; }
body.has-campaign cal-calendar .week-col             { background-color: rgba(255, 255, 255, 0.42) ; }
/* The view-bar controls (prev / today / next + month/week/list pill)
   drop to the same alpha as the calendar cells so they don't stand
   out as opaque white blobs floating in front of the campaign image. */
body.has-campaign .iconbtn     { background-color: rgba(255, 255, 255, 0.42) ; }
body.has-campaign .view-switch { background-color: rgba(255, 255, 255, 0.42) ; }
body.has-campaign .type-filter summary { background-color: rgba(255, 255, 255, 0.42) ; }

/* ── Day popover (overflow expansion) ──────────────────────
   Triggered by "+N" chips when a day has more events than the cell
   (month view) or the week column (week view) can show. On desktop
   it's a 320px popover anchored to the trigger; on viewports ≤ 720px
   it morphs into a bottom-sheet that slides up — see media block. */
cal-day-popover {
	position: fixed ;
	left: 0 ; top: 0 ;
	width: 320px ;
	max-height: 480px ;
	background: var(--card) ;
	border-radius: 12px ;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--rule) ;
	z-index: 100 ;
	display: flex ;
	flex-direction: column ;
	opacity: 0 ;
	pointer-events: none ;
	transform: translateY(6px) ;
	transition: opacity 180ms var(--ease), transform 180ms var(--ease) ;
	overflow: hidden ;
}
cal-day-popover.is-open { opacity: 1 ; pointer-events: auto ; transform: translateY(0) ; }
cal-day-popover .cdp-head {
	display: flex ;
	align-items: center ;
	justify-content: space-between ;
	padding: 14px 16px 12px ;
	border-bottom: 1px solid var(--rule) ;
}
cal-day-popover .cdp-title {
	font-family: var(--font-serif) ;
	font-size: 17px ;
	color: var(--ink) ;
}
cal-day-popover .cdp-close {
	border: 0 ; background: transparent ;
	font-size: 22px ; line-height: 1 ;
	color: var(--ink-mute) ;
	cursor: pointer ;
	padding: 2px 6px ;
	border-radius: 6px ;
	transition: color 160ms var(--ease), background 160ms var(--ease) ;
}
cal-day-popover .cdp-close:hover { color: var(--ink) ; background: var(--accent-pale) ; }
cal-day-popover .cdp-list {
	flex: 1 ; min-height: 0 ;
	overflow-y: auto ;
	padding: 6px ;
}
cal-day-popover .cdp-item {
	width: 100% ;
	display: flex ;
	align-items: flex-start ;
	gap: 10px ;
	padding: 10px 12px ;
	border: 0 ;
	background: transparent ;
	border-radius: 8px ;
	cursor: pointer ;
	text-align: left ;
	transition: background 160ms var(--ease) ;
}
cal-day-popover .cdp-item:hover { background: var(--accent-pale) ; }
cal-day-popover .cdp-dot {
	flex: none ;
	width: 8px ; height: 8px ;
	margin-top: 7px ;
	border-radius: 50% ;
	background: var(--accent) ;
}
cal-day-popover .cdp-dot.in-campaign { background: #c9a227 ; box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.18) ; }
cal-day-popover .cdp-text {
	display: flex ;
	flex-direction: column ;
	gap: 2px ;
	min-width: 0 ;
}
cal-day-popover .cdp-name {
	font-family: var(--font-serif) ;
	font-size: 15px ;
	color: var(--ink) ;
	line-height: 1.25 ;
	overflow: hidden ;
	text-overflow: ellipsis ;
	white-space: nowrap ;
}
cal-day-popover .cdp-meta {
	font-size: 10.5px ;
	letter-spacing: 0.16em ;
	text-transform: uppercase ;
	color: var(--ink-mute) ;
}
cal-day-popover .cdp-empty { padding: 20px ; text-align: center ; color: var(--ink-mute) ; }
/* In-campaign items get the same gold accent the chips do — just on the
   name color, so the list still reads cleanly. */
cal-day-popover .cdp-item.in-campaign .cdp-name { color: #8c6e12 ; }

/* Bottom-sheet form on narrow viewports. Pinned to the bottom edge,
   full-width, with a slide-up entrance. Drag-to-dismiss is not wired
   (a fingertip can just tap outside / the X / ESC). */
@media (max-width: 720px) {
	cal-day-popover {
		left: 0 !important ;
		right: 0 ;
		top: auto !important ;
		bottom: 0 ;
		width: auto ;
		max-height: 70vh ;
		border-radius: 16px 16px 0 0 ;
		box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.22) ;
		transform: translateY(100%) ;
		transition: transform 260ms var(--ease) ;
	}
	cal-day-popover.is-open { transform: translateY(0) ; }
	cal-day-popover .cdp-head { padding: 16px 20px 14px ; }
	cal-day-popover .cdp-title { font-size: 19px ; }
	cal-day-popover .cdp-list { padding: 10px ; }
}

/* Reduced motion — keep the campaign image static (no Ken Burns) and
   freeze the slideshow on the first frame. */
@media (prefers-reduced-motion: reduce) {
	cal-background-slideshow .kb { animation: none ; }
}

/* Mobile: drop the rotated caption entirely. The 90°-rotated label
   competes with the (already cramped) viewport edges on small screens
   and there's no good place to put it horizontally either. The image
   itself remains visible behind the calendar. */
@media (max-width: 720px) {
	cal-background-slideshow .info { display: none ; }
}

/* ── In-campaign event treatment ─────────────────────────
   Events promoted by an active campaign get a rich, assumed-gold
   gradient that slowly drifts horizontally — distinctive against the
   green chips around them without screaming. Applies to month-view
   chips, week-view chips, and list-view rows. The drift is a wide
   gradient (background-size > 100%) whose background-position cycles
   back and forth, so the "hot spot" of brightness travels across the
   element on a long loop. No pseudo-elements needed. */
cal-calendar .chip.in-campaign,
cal-calendar .chip.week-chip.in-campaign {
	background: linear-gradient(120deg,
		#a8851a 0%,
		#c9a227 22%,
		#f0c850 50%,
		#c9a227 78%,
		#a8851a 100%
	) ;
	background-size: 220% 100% ;
	border-color: #8c6e12 ;
	color: #fff ;
	text-shadow: 0 1px 1px rgba(40, 28, 0, 0.30) ;
	animation: cal-gold-drift 9s ease-in-out infinite ;
}
cal-calendar .chip.in-campaign:hover,
cal-calendar .chip.week-chip.in-campaign:hover {
	/* Re-declare the gold background — without it the lower-specificity
	   .chip:hover rule (defined later in the file) wins for `background`
	   and the month-view chip flips to the regular accent green on
	   hover. The slightly darker stops here also double as the hover
	   feedback the user expects. */
	background: linear-gradient(120deg,
		#927211 0%,
		#ad8a1f 22%,
		#d4b143 50%,
		#ad8a1f 78%,
		#927211 100%
	) ;
	background-size: 220% 100% ;
	box-shadow: 0 6px 14px rgba(168, 133, 26, 0.35) ;
	transform: translateY(-1px) ;
}
/* List view stays clean — no gold fill on the whole row (the body
   would dominate the page). The in-campaign event is signaled purely
   through the accent colour on the row's date header, plus a faint
   gold hover wash to replace the green one. */
cal-calendar .row.in-campaign .row-dates { color: #c9a227 ; }
cal-calendar .row.in-campaign:hover      { background: rgba(201, 162, 39, 0.06) ; }
@keyframes cal-gold-drift {
	0%, 100% { background-position:   0% 50% ; }
	50%      { background-position: 100% 50% ; }
}
/* ── Favourite event treatment ─────────────────────────
   Events the visitor has heart-toggled in the modal get a salmon-
   pink fill that mirrors the in-campaign gold's structure (chips +
   list row accent) but in a personal, warm colour. Defined AFTER
   the in-campaign rules so when both apply, favourite wins (it's
   user-set — they care more about their own pick than the promo).
   No drifting animation: the campaign needs to draw attention; the
   favourite just needs to be recognisable at a glance. */
cal-calendar .chip.is-favorite,
cal-calendar .chip.week-chip.is-favorite {
	background: linear-gradient(135deg, #c45f6f 0%, #d77488 50%, #c45f6f 100%) ;
	border-color: #a04a5a ;
	color: #fff ;
	text-shadow: 0 1px 1px rgba(60, 10, 20, 0.30) ;
	animation: none ;
}
cal-calendar .chip.is-favorite:hover,
cal-calendar .chip.week-chip.is-favorite:hover {
	background: linear-gradient(135deg, #b54f5f 0%, #c86477 50%, #b54f5f 100%) ;
	box-shadow: 0 6px 14px rgba(180, 60, 90, 0.30) ;
	transform: translateY(-1px) ;
}
cal-calendar .row.is-favorite .row-dates { color: #c45f6f ; }
cal-calendar .row.is-favorite:hover      { background: rgba(196, 95, 111, 0.06) ; }
@media (prefers-reduced-motion: reduce) {
	cal-calendar .chip.in-campaign,
	cal-calendar .chip.week-chip.in-campaign { animation: none ; }
}

img { max-width: 100% ; height: auto ; display: block ; }
button, input, select, textarea { font: inherit ; color: inherit ; }
a { color: inherit ; text-decoration: none ; }
ul, ol { list-style: none ; padding: 0 ; margin: 0 ; }

/* ── Page chrome ───────────────────────────────────────── */

.page {
	max-width: var(--max-w) ;
	width: 100% ;
	margin: 0 auto ;
	padding: 32px 32px 0 ;
	flex: 1 ;
	display: flex ;
	flex-direction: column ;
	min-height: 0 ;
}
.page main {
	flex: 1 ;
	display: flex ;
	flex-direction: column ;
	min-height: 0 ;
}
@media (max-width: 720px) {
	.page { padding: 20px 16px 0 ; }
}

/* Sticky brand bar — fully transparent so the campaign image / paper
   gradient reads through it at all times. The illusion of "the
   header masks content behind it" is achieved by clip-path on the
   scrolling content (see .list-stack / .month-grid / .week-body
   rules below), driven by a live measurement in JS. */
.brand-bar {
	display: flex ;
	align-items: baseline ;
	justify-content: space-between ;
	gap: 24px ;
	margin-bottom: 0 ;
	padding-top: 18px ;
	padding-bottom: 18px ;
	border-bottom: 1px solid var(--rule) ;
	position: sticky ;
	top: 0 ;
	z-index: 20 ;
	background-color: transparent ;
}
.brand-bar .mark { display: flex ; flex-direction: column ; gap: 6px ; transition: opacity 200ms var(--ease) ; }
.brand-bar .mark:hover { opacity: 0.75 ; }
.brand-bar .mark .wordmark {
	font-family: var(--font-serif) ;
	font-style: italic ;
	font-size: 38px ;
	letter-spacing: -0.025em ;
	color: var(--ink) ;
	line-height: 1 ;
}
.brand-bar .mark .tagline {
	font-size: 10.5px ;
	letter-spacing: 0.26em ;
	text-transform: uppercase ;
	color: var(--ink-mute) ;
}
.brand-bar .chrome { display: flex ; align-items: center ; gap: 14px ; }

/* Icon-only pill in the brand bar — sits beside the language switcher and
   matches its resting shape, so the two read as one control group rather than
   a button glued next to a menu. */
.brand-bar .icon-pill {
	display: inline-flex ;
	align-items: center ;
	justify-content: center ;
	width: 34px ;
	height: 34px ;
	padding: 0 ;
	border: 1px solid transparent ;
	border-radius: 999px ;
	background: transparent ;
	color: var(--ink-mute) ;
	cursor: pointer ;
	transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease) ;
}
.brand-bar .icon-pill svg { width: 17px ; height: 17px ; }
.brand-bar .icon-pill:hover {
	color: var(--ink) ;
	border-color: var(--rule) ;
	background: rgba(255, 255, 255, 0.7) ;
}
.brand-bar .icon-pill:focus-visible {
	outline: none ;
	color: var(--ink) ;
	border-color: var(--accent) ;
	box-shadow: 0 0 0 3px var(--accent-soft) ;
}


/* ── View bar ──────────────────────────────────────────── */

.view-bar {
	display: flex ;
	align-items: center ;
	justify-content: space-between ;
	gap: 20px ;
	margin-bottom: 16px ;
	position: sticky ;
	top: var(--brand-bar-h, 76px) ;
	z-index: 19 ;
	padding: 10px 0 14px ;
	background-color: transparent ;
	/* Bottom rule serves as the visual divider above the first
	   event row (and acts as the bottom of the sticky stack the
	   moment the page is scrolled). */
	border-bottom: 1px solid var(--rule) ;
}
.view-bar .left { display: flex ; align-items: center ; gap: 6px ; }
/* In RTL languages (Arabic), the default flex flow visually reverses
   the button row so the disabled "previous" arrow ends up on the right
   and the "next" on the left — counter-intuitive next to the centred
   "today" pill. Force the button group back to a left-to-right visual
   order with row-reverse (which, combined with the RTL writing
   direction, lays children out DOM-order from left to right). The
   title text inside keeps its own bidi rendering. */
[dir="rtl"] .view-bar .left { flex-direction: row-reverse ; }

/* Same vertical metrics for arrow buttons AND the "Aujourd’hui" pill so
   they sit perfectly aligned. Force line-height: 1 so the text doesn't
   shift the baseline. */
.iconbtn {
	height: 36px ;
	min-width: 36px ;
	padding: 0 ;
	border-radius: 999px ;
	border: 1px solid var(--rule) ;
	background: rgba(255, 255, 255, 0.7) ;
	backdrop-filter: blur(4px) ;
	-webkit-backdrop-filter: blur(4px) ;
	display: inline-flex ;
	align-items: center ;
	justify-content: center ;
	cursor: pointer ;
	color: var(--ink-soft) ;
	line-height: 1 ;
	font-family: inherit ;
	transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 240ms var(--ease) ;
}
.iconbtn:hover {
	background: var(--accent-soft) ;
	color: var(--ink) ;
	border-color: var(--accent) ;
	transform: translateY(-1px) ;
}
.iconbtn:active { transform: translateY(0) ; }
/* Disabled state — applied to .prev when the calendar is already at the
   current month/week (the public site never lets visitors browse the past). */
.iconbtn[disabled],
.iconbtn[disabled]:hover {
	opacity: 0.35 ;
	cursor: not-allowed ;
	background: transparent ;
	border-color: var(--rule) ;
	color: var(--ink-mute) ;
	transform: none ;
}
.iconbtn svg { width: 16px ; height: 16px ; display: block ; }
.iconbtn.today {
	padding: 0 18px ;
	font-size: 11.5px ;
	letter-spacing: 0.18em ;
	text-transform: uppercase ;
	font-weight: 500 ;
}
.current-title {
	font-family: var(--font-serif) ;
	font-weight: 400 ;
	font-size: 30px ;
	letter-spacing: -0.02em ;
	margin: 0 0 0 18px ;
	color: var(--ink) ;
	line-height: 1 ;
	white-space: nowrap ;
	transition: opacity 320ms var(--ease) ;
}

.view-switch {
	display: inline-flex ;
	gap: 2px ;
	border: 1px solid var(--rule) ;
	border-radius: 999px ;
	padding: 3px ;
	background: rgba(255, 255, 255, 0.7) ;
	backdrop-filter: blur(4px) ;
	-webkit-backdrop-filter: blur(4px) ;
}
.view-switch button {
	border: 0 ;
	background: transparent ;
	color: var(--ink-mute) ;
	padding: 8px 18px ;
	border-radius: 999px ;
	font-size: 12px ;
	letter-spacing: 0.08em ;
	text-transform: uppercase ;
	cursor: pointer ;
	transition: background 220ms var(--ease), color 220ms var(--ease) ;
}
.view-switch button:hover { color: var(--ink) ; }
.view-switch button[aria-pressed="true"] {
	background: var(--ink) ;
	color: #fff ;
}

.view-tools {
	display: flex ;
	align-items: center ;
	gap: 10px ;
	flex-shrink: 0 ;
}

/* ── Event type filter ─────────────────────────────────── */

.type-filter { position: relative ; }
.type-filter summary {
	position: relative ;
	display: inline-flex ;
	align-items: center ;
	gap: 8px ;
	height: 40px ;
	padding: 0 16px ;
	border: 1px solid var(--rule) ;
	border-radius: 999px ;
	background: rgba(255, 255, 255, 0.7) ;
	backdrop-filter: blur(4px) ;
	-webkit-backdrop-filter: blur(4px) ;
	color: var(--ink-mute) ;
	font-size: 12px ;
	letter-spacing: 0.08em ;
	text-transform: uppercase ;
	list-style: none ;
	cursor: pointer ;
	transition: color 220ms var(--ease), border-color 220ms var(--ease) ;
}
.type-filter summary::-webkit-details-marker { display: none ; }
.type-filter summary:hover,
.type-filter[open] summary { color: var(--ink) ; }
.type-filter summary svg { width: 16px ; height: 16px ; display: block ; }
/* Some types are hidden: say so even with the menu closed, since the choice
   survives from one visit to the next. */
.type-filter.is-active summary { color: var(--ink) ; border-color: var(--accent) ; }
.type-filter.is-active summary::after {
	content: '' ;
	position: absolute ;
	top: 1px ;
	inset-inline-end: 1px ;
	width: 9px ;
	height: 9px ;
	border-radius: 50% ;
	background: var(--accent-deep) ;
	box-shadow: 0 0 0 2px var(--paper) ;
}
.type-filter .menu {
	position: absolute ;
	top: calc(100% + 8px) ;
	right: 0 ;
	min-width: 200px ;
	padding: 7px ;
	background: var(--card) ;
	border: 1px solid var(--rule) ;
	border-radius: 12px ;
	box-shadow: var(--shadow) ;
	z-index: 50 ;
	animation: lang-menu-in 180ms var(--ease) ;
}
@media (prefers-reduced-motion: reduce) { .type-filter .menu { animation: none ; } }
html[dir="rtl"] .type-filter .menu { right: auto ; left: 0 ; }
.type-option {
	display: flex ;
	align-items: center ;
	gap: 10px ;
	width: 100% ;
	padding: 9px 12px 9px 10px ;
	border: 0 ;
	border-radius: 8px ;
	background: transparent ;
	color: var(--ink) ;
	font: inherit ;
	font-size: 13.5px ;
	text-align: start ;
	white-space: nowrap ;
	cursor: pointer ;
	transition: background 160ms var(--ease), color 160ms var(--ease) ;
}
.type-option:hover { background: var(--accent-pale) ; }
.type-option .check {
	flex-shrink: 0 ;
	width: 16px ;
	height: 16px ;
	color: var(--accent-deep) ;
	transition: opacity 160ms var(--ease) ;
}
/* Switched off: the name fades and the check mark goes. */
.type-option[aria-pressed="false"] { color: var(--ink-mute) ; }
.type-option[aria-pressed="false"] .check { opacity: 0 ; }
/* The only section left on cannot be switched off. */
.type-option[aria-disabled="true"] { cursor: default ; }
.type-option[aria-disabled="true"]:hover { background: transparent ; }
.type-option[aria-disabled="true"] .check { opacity: 0.45 ; }

/* ── Lang switcher ─────────────────────────────────────── */

.lang-switch { position: relative ; font-size: 12px ; }
.lang-switch summary {
	cursor: pointer ;
	color: var(--ink-mute) ;
	padding: 8px 14px ;
	border-radius: 999px ;
	list-style: none ;
	display: inline-flex ;
	align-items: center ;
	gap: 8px ;
	letter-spacing: 0.14em ;
	text-transform: uppercase ;
	font-weight: 500 ;
	border: 1px solid transparent ;
	transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease) ;
}
.lang-switch summary::-webkit-details-marker { display: none ; }
.lang-switch summary:hover { color: var(--ink) ; }
.lang-switch[open] summary {
	color: var(--ink) ;
	border-color: var(--rule) ;
	background: rgba(255, 255, 255, 0.7) ;
}
.lang-switch .lang-chev {
	width: 12px ;
	height: 12px ;
	transition: transform 280ms var(--ease) ;
}
.lang-switch[open] .lang-chev { transform: rotate(180deg) ; }
/* Thirteen languages in one narrow column made a 500 px ribbon that ran off
   the bottom of a laptop screen, with nothing but the highlight to tell you
   where you were. Two columns keep it inside the viewport, each row carries its
   ISO code, and the current language gets a tick rather than only a tint. */
.lang-switch .menu {
	position: absolute ;
	top: calc(100% + 8px) ;
	right: 0 ;
	background: var(--card) ;
	border: 1px solid var(--rule) ;
	border-radius: 12px ;
	box-shadow: var(--shadow) ;
	padding: 7px ;
	display: grid ;
	grid-template-columns: repeat(2, minmax(140px, 1fr)) ;
	gap: 1px ;
	z-index: 50 ;
	animation: lang-menu-in 180ms var(--ease) ;
}
@keyframes lang-menu-in {
	from { opacity: 0 ; transform: translateY(-6px) ; }
	to   { opacity: 1 ; transform: none ; }
}
@media (prefers-reduced-motion: reduce) { .lang-switch .menu { animation: none ; } }
html[dir="rtl"] .lang-switch .menu { right: auto ; left: 0 ; }
.lang-switch .menu button {
	display: flex ;
	align-items: center ;
	gap: 9px ;
	width: 100% ;
	text-align: left ;
	border: 0 ;
	background: transparent ;
	padding: 7px 10px ;
	border-radius: 7px ;
	font-size: 13px ;
	color: var(--ink) ;
	cursor: pointer ;
	white-space: nowrap ;
	transition: background 160ms var(--ease), color 160ms var(--ease) ;
}
/* The ISO code, in a fixed-width slot so the native names all start on the
   same vertical line in both columns. */
.lang-switch .menu button::before {
	content: attr(data-lang) ;
	flex: none ;
	width: 2.2em ;
	font-size: 9.5px ;
	font-weight: 600 ;
	letter-spacing: 0.1em ;
	text-transform: uppercase ;
	color: var(--ink-mute) ;
	transition: color 160ms var(--ease) ;
}
.lang-switch .menu button:hover { background: var(--accent-soft) ; }
.lang-switch .menu button:focus-visible {
	outline: none ;
	background: var(--accent-soft) ;
	box-shadow: inset 0 0 0 1px var(--accent) ;
}
.lang-switch .menu button[aria-current="true"] {
	background: var(--accent-soft) ;
	color: var(--accent-deep) ;
	font-weight: 500 ;
}
.lang-switch .menu button[aria-current="true"]::before { color: var(--accent-deep) ; }
/* Tick on the selected row. ::after rather than markup so the PHP template
   stays a plain loop, and it sits in the gutter so no label ever shifts. */
.lang-switch .menu button[aria-current="true"]::after {
	content: '' ;
	margin-left: auto ;
	flex: none ;
	width: 12px ; height: 12px ;
	background: currentColor ;
	-webkit-mask: var(--tick) center / 12px 12px no-repeat ;
	        mask: var(--tick) center / 12px 12px no-repeat ;
}
html[dir="rtl"] .lang-switch .menu button { text-align: right ; }
html[dir="rtl"] .lang-switch .menu button[aria-current="true"]::after { margin-left: 0 ; margin-right: auto ; }
/* One column once two would overflow a phone. */
@media (max-width: 560px) {
	.lang-switch .menu {
		grid-template-columns: 1fr ;
		max-height: 62vh ;
		overflow-y: auto ;
	}
}

/* ── Boot loader (first paint) ─────────────────────────── */

.boot-loader {
	position: fixed ;
	inset: 0 ;
	background: var(--paper) ;
	display: flex ;
	align-items: center ;
	justify-content: center ;
	z-index: 9999 ;
	transition: opacity 480ms var(--ease) ;
}
.boot-loader.hidden { opacity: 0 ; pointer-events: none ; }
.boot-mark {
	display: flex ;
	flex-direction: column ;
	align-items: center ;
	gap: 16px ;
}
.boot-wordmark {
	font-family: var(--font-serif) ;
	font-style: italic ;
	font-size: 56px ;
	color: var(--ink) ;
	letter-spacing: -0.025em ;
	animation: boot-fade 1.4s ease-in-out infinite ;
}
@keyframes boot-fade { 0%, 100% { opacity: 0.4 ; } 50% { opacity: 1 ; } }
.boot-bar {
	width: 96px ;
	height: 2px ;
	background: var(--rule) ;
	border-radius: 999px ;
	overflow: hidden ;
	position: relative ;
}
.boot-bar::after {
	content: '' ;
	position: absolute ;
	inset: 0 ;
	background: linear-gradient(90deg, transparent, var(--accent), transparent) ;
	transform: translateX(-100%) ;
	animation: boot-slide 1.2s ease-in-out infinite ;
}
@keyframes boot-slide {
	0%   { transform: translateX(-100%) ; }
	100% { transform: translateX(100%) ; }
}

/* ── Footer ────────────────────────────────────────────── */

.footer {
	margin-top: 32px ;
	padding: 22px 0 22px ;
	border-top: 1px solid var(--rule) ;
	color: var(--ink-mute) ;
	font-size: 12.5px ;
	display: flex ;
	justify-content: space-between ;
	align-items: baseline ;
	flex-wrap: wrap ;
	gap: 18px ;
}
.footer .links {
	display: flex ;
	align-items: center ;
	justify-content: flex-end ;
	flex-wrap: wrap ;
	gap: 6px 16px ;
	margin-left: auto ;
	text-align: right ;
}
.footer .links a {
	color: var(--ink-mute) ;
	transition: color 200ms var(--ease) ;
	position: relative ;
}
.footer .links a::after {
	content: '' ;
	position: absolute ;
	left: 0 ; right: 0 ; bottom: -2px ;
	height: 1px ;
	background: var(--accent) ;
	transform: scaleX(0) ;
	transform-origin: left ;
	transition: transform 280ms var(--ease) ;
}
.footer .links a:hover { color: var(--ink) ; }
.footer .links a:hover::after { transform: scaleX(1) ; }
/* Instagram icon link: same colour cycle as the text links, just an SVG glyph
   instead of a word. The underline-on-hover affordance doesn't make sense
   on an icon, so we suppress it here. */
.footer .links a.ig {
	display: inline-flex ;
	align-items: center ;
	vertical-align: middle ;
	padding: 0 ;
	transition: color 200ms var(--ease), transform 280ms var(--ease) ;
}
.footer .links a.ig::after { display: none ; }
.footer .links a.ig svg { width: 18px ; height: 18px ; display: block ; }
.footer .links a.ig:hover { color: var(--accent-deep) ; }

/* Narrow screens: the signature and the link row each take a full line —
   side by side they squeeze the wordmark into three broken lines. The
   links stay right-aligned, as they are on desktop. */
@media (max-width: 720px) {
	.footer {
		flex-direction: column ;
		align-items: stretch ;
		gap: 14px ;
	}
}

.footer .signature {
	display: inline-flex ;
	align-items: baseline ;
	gap: 14px ;
	flex-wrap: wrap ;
}
.footer .signature .brand {
	font-family: var(--font-serif) ;
	font-style: italic ;
	color: var(--ink) ;
	font-size: 14px ;
}
.footer .signature .copyright {
	font-size: 11.5px ;
	color: var(--ink-mute) ;
	letter-spacing: 0.04em ;
}

:focus-visible {
	outline: none ;
	box-shadow: 0 0 0 3px var(--accent-soft) ;
	border-radius: 4px ;
}

/* ── Calendar — common ─────────────────────────────────── */

cal-calendar {
	display: flex ;
	flex-direction: column ;
	flex: 1 ;
	min-height: 0 ;
}
cal-calendar .cal-body {
	flex: 1 ;
	display: flex ;
	flex-direction: column ;
	min-height: 0 ;
}
cal-calendar .empty {
	padding: 80px 24px ;
	text-align: center ;
	color: var(--ink-mute) ;
	font-family: var(--font-serif) ;
	font-style: italic ;
	font-size: 22px ;
}

/* ── Month view ────────────────────────────────────────── */

cal-calendar .month-head {
	display: grid ;
	grid-template-columns: repeat(7, 1fr) ;
	margin-bottom: 6px ;
	padding: 6px 6px 8px ;
	/* Part of the sticky stack: stays pinned below the view-bar so
	   the day-of-week labels (LUN MAR …) remain visible while the
	   month grid scrolls. Transparent — the clip-path on .month-grid
	   keeps grid content from appearing behind it. */
	position: sticky ;
	top: calc(var(--brand-bar-h, 76px) + var(--view-bar-h, 56px)) ;
	z-index: 18 ;
	background-color: transparent ;
}
cal-calendar .month-head > div {
	font-size: 10.5px ;
	letter-spacing: 0.20em ;
	text-transform: uppercase ;
	color: var(--ink-mute) ;
	padding: 6px 4px ;
	font-weight: 500 ;
}

/* Each week is its own flex row. Day cells share the row equally; the
   chip overlay sits absolutely on top — it never claims a grid row. */
cal-calendar .month-grid {
	display: flex ;
	flex-direction: column ;
	flex: 1 ;
	min-height: 0 ;
	background: var(--rule) ;
	border: 1px solid var(--rule) ;
	border-radius: var(--radius) ;
	overflow: hidden ;
	gap: 1px ;
}
cal-calendar .week-row {
	flex: 1 ;
	display: grid ;
	grid-template-columns: repeat(7, 1fr) ;
	gap: 1px ;
	background: var(--rule) ;
	position: relative ;
	min-height: 96px ;
}
/* Clip the scrolling content so its visible top edge stays pinned to the
   sticky stack's bottom (the rule under the view-bar in list / week views, the
   day-of-week strip in month view).
   --clip-top is measured live by cal-calendar.js (_syncClip) on every scroll
   frame: it is the gap between the bottom of the sticky stack and the top of
   this element, both read from the current layout. It used to be derived here
   from window.scrollY minus a constant, which drifted whenever the constant was
   even slightly off — visibly so in Safari. A plain length also keeps this
   property free of calc() and max(), which engines resolve differently inside
   a basic shape. */
cal-calendar .list-stack,
cal-calendar .month-grid,
cal-calendar .week-body {
	clip-path: inset(var(--clip-top, 0px) 0 0 0) ;
}

cal-calendar .day-cell {
	background: var(--card) ;
	padding: 8px ;
	min-height: 96px ;
	position: relative ;
	overflow: hidden ;
	transition: background 220ms var(--ease) ;
}
cal-calendar .day-cell:hover { background: rgba(108, 186, 137, 0.05) ; }
cal-calendar .day-cell.off-month { background: rgba(245, 249, 246, 0.6) ; color: var(--ink-mute) ; }
cal-calendar .day-cell.weekend:not(.off-month) { background: #fafdfb ; }
cal-calendar .day-cell.today { background: var(--accent-pale) ; }
cal-calendar .day-num {
	font-size: 12px ;
	font-weight: 500 ;
	color: var(--ink-soft) ;
	font-variant-numeric: tabular-nums ;
	display: inline-block ;
}
cal-calendar .day-cell.off-month .day-num { color: var(--ink-mute) ; opacity: 0.5 ; }
cal-calendar .day-num.is-today {
	background: var(--ink) ;
	color: #fff ;
	width: 22px ;
	height: 22px ;
	border-radius: 50% ;
	display: inline-flex ;
	align-items: center ;
	justify-content: center ;
	font-size: 11px ;
	font-weight: 500 ;
	animation: today-pulse 3s ease-in-out infinite ;
}
@keyframes today-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(108, 186, 137, 0.0) ; }
	50%      { box-shadow: 0 0 0 6px rgba(108, 186, 137, 0.18) ; }
}

/* Chip overlay floats on top of the day cells — does not push them down.
   Top inset of 40px leaves clear breathing room between the day number
   (which sits at ~y=8-26px with the cell's 8px padding) and the first chip. */
cal-calendar .chip-overlay {
	position: absolute ;
	inset: 40px 6px 6px 6px ;
	display: grid ;
	grid-template-columns: repeat(7, 1fr) ;
	grid-auto-rows: 22px ;
	gap: 3px ;
	pointer-events: none ;
}
cal-calendar .chip-overlay > * { pointer-events: auto ; }
cal-calendar .chip {
	border: 0 ;
	background: var(--accent) ;
	color: #fff ;
	font-size: 11.5px ;
	font-weight: 500 ;
	padding: 3px 9px ;
	border-radius: 4px ;
	cursor: pointer ;
	overflow: hidden ;
	white-space: nowrap ;
	text-overflow: ellipsis ;
	text-align: left ;
	transition: background 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease) ;
	display: flex ;
	align-items: center ;
	gap: 6px ;
	height: 22px ;
}
/* Multi-day chips in the MONTH view drop the rounded corners + horizontal
   padding on the side that flows into the next/previous day so the chip
   reads as a continuous band. Scoped to .chip-overlay so it doesn't
   stomp the week-view chips (which live in .week-chips and have their
   own taller padding). */
cal-calendar .chip-overlay .chip:not(.starts) { border-top-left-radius: 0 ; border-bottom-left-radius: 0 ; padding-left: 4px ; }
cal-calendar .chip-overlay .chip:not(.ends)   { border-top-right-radius: 0 ; border-bottom-right-radius: 0 ; padding-right: 4px ; }
/* Week-view chips: same flush-edge trick on the side that flows into
   the previous / next week. Padding stays untouched (the week chip is
   bigger and the text needs the room). */
cal-calendar .week-chips .chip:not(.starts) { border-top-left-radius: 0 ; border-bottom-left-radius: 0 ; }
cal-calendar .week-chips .chip:not(.ends)   { border-top-right-radius: 0 ; border-bottom-right-radius: 0 ; }
cal-calendar .chip:hover {
	background: var(--accent-deep) ;
	transform: translateY(-1px) ;
	box-shadow: 0 6px 14px rgba(86, 165, 116, 0.25) ;
}
cal-calendar .chip-name { overflow: hidden ; text-overflow: ellipsis ; }
/* Month-view chip is a flex container holding one or more
   .chip-evt buttons (the clickable event titles) and "+" separators
   when multiple events share the same date span. `flex: 0 1 auto`
   means each name takes its NATURAL width and items pack to the
   left — the "+" lands immediately after the first event's text
   instead of floating in the middle of empty space. Names only
   shrink (proportionally, with ellipsis) when the chip is too
   narrow to fit them all. */
cal-calendar .chip .chip-evt {
	border: 0 ;
	background: transparent ;
	color: inherit ;
	font: inherit ;
	padding: 0 ;
	margin: 0 ;
	cursor: pointer ;
	overflow: hidden ;
	white-space: nowrap ;
	text-overflow: ellipsis ;
	min-width: 0 ;
	flex: 0 1 auto ;
	text-align: left ;
	line-height: inherit ;
}
cal-calendar .chip .chip-evt:hover { text-decoration: underline ; }
cal-calendar .chip .chip-sep {
	flex: none ;
	color: rgba(255, 255, 255, 0.78) ;
	font-weight: 400 ;
	padding: 0 1px ;
}
cal-calendar .chip.in-campaign .chip-sep { color: rgba(255, 255, 255, 0.9) ; }
/* "+N" overflow indicator — one discreet pill, both views.
   It started as a solid near-black chip with a drop shadow: the least
   important thing on the grid was also the heaviest. It is now a small
   outlined pill that stays out of the way until you look for it, and fills
   with accent on hover so it still reads as something you can open. */
cal-calendar .chip-more {
	border: 1px solid var(--accent) ;
	background: var(--card) ;
	color: var(--accent-deep) ;
	font-size: 10px ;
	font-weight: 600 ;
	font-variant-numeric: tabular-nums ;
	letter-spacing: 0 ;
	cursor: pointer ;
	padding: 0 6px ;
	height: 17px ;
	border-radius: 9px ;
	display: inline-flex ;
	align-items: center ;
	justify-content: center ;
	transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease) ;
}
/* --accent-deep rather than --accent for the fill: white on --accent is
   2.33:1, which the 13 px event chips carry fine but a 10 px count does not.
   The deeper tone reaches 2.99:1 and still reads as the same green. */
cal-calendar .chip-more:hover,
cal-calendar .chip-more:focus-visible {
	background: var(--accent-deep) ;
	border-color: var(--accent-deep) ;
	color: #fff ;
	outline: none ;
}
/* Week variant — same idea as the month badge: it rides in the bottom-right
   corner OF the last chip in its column rather than taking a lane of its own
   below it. It shares that grid cell with the chip and is appended after it,
   so it paints on top; the white ring is what keeps it readable over the green.
   One notch bigger than the month badge because week chips are 60 px tall
   rather than 22. */
cal-calendar .week-chip-more {
	height: 19px ;
	padding: 0 7px ;
	font-size: 10.5px ;
	border-radius: 10px ;
	justify-self: end ;
	align-self: end ;
	/* Hangs BELOW the chip's bottom edge, keeping only a sliver of green behind
	   it so it stays visually attached to that stack. Sitting inside the chip
	   put the badge across the event title; sitting half-and-half still
	   crowded it.
	   The offset is a transform, not a negative margin: it is purely visual, so
	   it cannot feed back into the grid's row sizing or the overlay's scroll
	   height. It spends part of .week-chips' 14 px bottom inset, which is why
	   the pill never leaves the week body. */
	margin: 0 8px 0 0 ;
	transform: translateY(78%) ;
	position: relative ;
	z-index: 2 ;
	box-shadow: 0 0 0 2px var(--card) ;
}
/* Month variant — a corner badge, not a lane.
   The month grid only has 2–3 lanes and uses every one of them, so a "+N"
   placed in the grid would cost a whole row of events to announce that events
   are missing. It rides in the day cell's bottom-right corner instead, above
   the chips, with a ring in the cell colour so it detaches cleanly from
   whatever it overlaps. */
cal-calendar .month-chip-more {
	position: absolute ;
	right: 4px ;
	bottom: 3px ;
	z-index: 3 ;
	box-shadow: 0 0 0 2px var(--card) ;
}
/* There is deliberately NO per-cell-tint override here.
   An earlier version gave the badge 'background: inherit' on today / weekend /
   off-month cells so its halo would not show as a white smudge. Those
   selectors weigh (0,5,1) against (0,2,1) for .chip-more:hover, so on hover
   the inherited near-white background won while the hover's 'color: #fff'
   still applied — white on white, unreadable. Guarding them with
   :not(:hover) does not help either: the guard is true whenever the cursor is
   elsewhere, so the heavy rule keeps winning.
   One rule set, no specificity contest. The cost is a 2 px white ring on the
   lightly tinted cells, which is invisible next to the white pill it hugs. */

/* ── Week view ─────────────────────────────────────────── */

cal-calendar .week-head {
	display: grid ;
	grid-template-columns: repeat(7, 1fr) ;
	gap: 1px ;
	background-color: transparent ;
	border: 1px solid var(--rule) ;
	border-radius: var(--radius) var(--radius) 0 0 ;
	overflow: hidden ;
	/* Sticky day strip — pinned just under the view-bar so the day
	   numbers (Lun 6 / Mar 7 / …) remain visible while the week-body
	   scrolls. Transparent; the clip-path on .week-body prevents
	   chips from rendering behind it. */
	position: sticky ;
	top: calc(var(--brand-bar-h, 76px) + var(--view-bar-h, 56px)) ;
	z-index: 18 ;
}
cal-calendar .week-day-h {
	background: var(--card) ;
	padding: 14px 16px ;
	display: flex ;
	align-items: baseline ;
	gap: 10px ;
}
cal-calendar .week-day-h.today { background: var(--accent-pale) ; }
cal-calendar .week-dow {
	font-size: 10.5px ;
	letter-spacing: 0.20em ;
	text-transform: uppercase ;
	color: var(--ink-mute) ;
}
cal-calendar .week-dnum {
	font-family: var(--font-serif) ;
	font-size: 22px ;
	color: var(--ink) ;
}
cal-calendar .week-body {
	display: grid ;
	grid-template-columns: repeat(7, 1fr) ;
	gap: 1px ;
	background: var(--rule) ;
	border: 1px solid var(--rule) ;
	border-top: 0 ;
	border-radius: 0 0 var(--radius) var(--radius) ;
	overflow: hidden ;
	flex: 1 ;
	min-height: 360px ;
	position: relative ;
}
cal-calendar .week-col { background: var(--card) ; }
cal-calendar .week-chips {
	position: absolute ;
	/* Outer breathing room — chips don't kiss the body's vertical hairlines.
	   Symmetrical on left/right so multi-day spans stay visually balanced. */
	inset: 14px 16px ;
	display: grid ;
	grid-template-columns: repeat(7, 1fr) ;
	grid-auto-rows: 60px ;
	gap: 6px ;
	pointer-events: none ;
}
cal-calendar .week-chips > * { pointer-events: auto ; }
cal-calendar .week-chip {
	display: flex ;
	flex-direction: column ;
	align-items: flex-start ;
	justify-content: center ;
	padding: 12px 20px ;
	height: 60px ;
	border-radius: 6px ;
	background: var(--accent) ;
	color: #fff ;
	font-size: 13px ;
	font-weight: 500 ;
	border: 0 ;
	cursor: pointer ;
	gap: 2px ;
	text-align: left ;
	transition: background 220ms var(--ease), transform 240ms var(--ease), box-shadow 220ms var(--ease) ;
	overflow: hidden ;
}
cal-calendar .week-chip:hover {
	background: var(--accent-deep) ;
	transform: translateY(-2px) ;
	box-shadow: 0 10px 24px rgba(86, 165, 116, 0.3) ;
}
/* Explicit line-heights: the chip is a <button>, which inherits the body's
   1.55 through `font: inherit`. Name (23 px) + city (17 px) + gap then
   needed 42 px in a 60 px chip with 24 px of padding — 36 px of room — so
   flex shrank the name, the only one allowed to (overflow: hidden), and
   cut the bottom off every title. 1.25 / 1.35 fit, with the descenders.
   flex: none so a long name can never be squeezed again. */
cal-calendar .week-chip .chip-name {
	font-family: var(--font-serif) ;
	font-size: 15px ;
	font-weight: 400 ;
	line-height: 1.25 ;
	white-space: nowrap ;
	overflow: hidden ;
	text-overflow: ellipsis ;
	width: 100% ;
	flex: none ;
}
/* An ordinal's <sup> ("16th") would otherwise raise the line box and push
   the title back out of its line. */
cal-calendar .week-chip .chip-name sup { line-height: 0 ; }
cal-calendar .week-chip .chip-meta {
	font-size: 11px ;
	line-height: 1.35 ;
	opacity: 0.85 ;
	letter-spacing: 0.06em ;
	text-transform: uppercase ;
}

/* ── List view ─────────────────────────────────────────── */

cal-calendar .list-stack {
	/* Kill the browser-default <ol> margin / padding — `margin-block-start: 1em`
	   (~16 px) was being silently added on top of the .view-bar's
	   own 16 px margin-bottom, doubling the gap to 32 px and throwing
	   the clip-path offset off (we'd only subtract one margin, not
	   both, so content drifted above the green line). */
	margin: 0 ;
	padding: 0 ;
}
cal-calendar .row {
	display: grid ;
	grid-template-columns: 220px 1fr ;
	gap: 32px ;
	padding: 28px 0 ;
	border-bottom: 1px solid var(--rule) ;
	cursor: pointer ;
	transition: padding-left 280ms var(--ease), background 280ms var(--ease) ;
}
cal-calendar .row:hover {
	padding-left: 14px ;
	background: rgba(108, 186, 137, 0.04) ;
}
cal-calendar .row-cover {
	aspect-ratio: 4/3 ;
	background: var(--rule-soft) ;
	border-radius: 4px ;
	overflow: hidden ;
}
cal-calendar .row-cover img {
	width: 100% ; height: 100% ; object-fit: cover ;
	transition: transform 480ms var(--ease) ;
}
cal-calendar .row:hover .row-cover img { transform: scale(1.06) ; }
cal-calendar .row-dates {
	font-size: 11px ;
	letter-spacing: 0.22em ;
	text-transform: uppercase ;
	color: var(--accent-deep) ;
	font-weight: 500 ;
	margin-bottom: 8px ;
}
cal-calendar .row-name {
	font-family: var(--font-serif) ;
	font-size: 30px ;
	font-weight: 400 ;
	letter-spacing: -0.02em ;
	line-height: 1.1 ;
	margin: 0 0 6px ;
	color: var(--ink) ;
}
cal-calendar .row-meta {
	font-size: 12px ;
	letter-spacing: 0.06em ;
	color: var(--ink-mute) ;
	text-transform: uppercase ;
	margin-bottom: 10px ;
}
cal-calendar .row-short {
	font-size: 15px ;
	color: var(--ink-soft) ;
	line-height: 1.55 ;
	max-width: 70ch ;
	margin: 0 ;
}

/* ── Skeleton ──────────────────────────────────────────── */

.skeleton {
	background: linear-gradient(90deg, var(--rule-soft) 0%, var(--rule) 50%, var(--rule-soft) 100%) ;
	background-size: 200% 100% ;
	animation: skel 1.4s ease-in-out infinite ;
	border-radius: 4px ;
}
@keyframes skel { 0% { background-position: 200% 0 ; } 100% { background-position: -200% 0 ; } }
cal-calendar .skel-grid {
	display: grid ;
	grid-template-columns: repeat(7, 1fr) ;
	grid-auto-rows: 1fr ;
	gap: 1px ;
	background: var(--rule) ;
	border-radius: var(--radius) ;
	overflow: hidden ;
	flex: 1 ;
}
cal-calendar .skel-cell { background: var(--card) ; opacity: 0.6 ; }

/* ── Event modal ───────────────────────────────────────── */

cal-event-modal { display: contents ; }
cal-event-modal .modal-backdrop {
	position: fixed ; inset: 0 ;
	background: rgba(20, 20, 16, 0.55) ;
	backdrop-filter: blur(4px) ;
	-webkit-backdrop-filter: blur(4px) ;
	opacity: 0 ;
	pointer-events: none ;
	transition: opacity 280ms var(--ease) ;
	z-index: 90 ;
}
/* The frame does NOT scroll: .modal-body does.
   When the frame was the scroller, the heart and close buttons — absolutely
   positioned against it — scrolled away with the content, because an absolute
   child is placed against the padding box, which moves. Handing the overflow to
   the body pins them for good, and it makes the body.scrollTop = 0 in
   _renderEvent() actually work: reopening the modal on another event used to
   keep the previous one's scroll position. */
cal-event-modal .modal-frame {
	position: fixed ;
	inset: 4vh 8vw 4vh 8vw ;
	background: var(--card) ;
	border-radius: 14px ;
	box-shadow: var(--shadow) ;
	display: flex ;
	flex-direction: column ;
	overflow: hidden ;
	opacity: 0 ;
	transform: translateY(28px) scale(0.97) ;
	pointer-events: none ;
	transition: opacity 360ms var(--ease), transform 420ms var(--ease) ;
	z-index: 100 ;
}
cal-event-modal.is-open .modal-backdrop { opacity: 1 ; pointer-events: auto ; }
cal-event-modal.is-open .modal-frame { opacity: 1 ; transform: translateY(0) scale(1) ; pointer-events: auto ; }
/* min-height: 0 is what lets a flex child shrink below its content and
   actually scroll; without it the body grows and the frame overflows instead. */
cal-event-modal .modal-body {
	flex: 1 ;
	min-height: 0 ;
	overflow-y: auto ;
	overflow-x: hidden ;
	overscroll-behavior: contain ;
}
cal-event-modal .modal-close {
	position: absolute ; top: 18px ; right: 18px ; z-index: 5 ;
	width: 38px ; height: 38px ;
	border-radius: 999px ;
	border: 0 ;
	background: rgba(255, 255, 255, 0.92) ;
	backdrop-filter: blur(8px) ;
	-webkit-backdrop-filter: blur(8px) ;
	color: var(--ink) ;
	display: inline-flex ; align-items: center ; justify-content: center ;
	cursor: pointer ;
	box-shadow: var(--shadow-sm) ;
	transition: background 200ms var(--ease), transform 280ms var(--ease) ;
}
cal-event-modal .modal-close:hover { background: #fff ; transform: rotate(90deg) ; }
cal-event-modal .modal-close svg { width: 16px ; height: 16px ; }

/* Heart button — sits to the LEFT of the close button in the top-right
   corner of the modal frame. Outline icon when the event isn't a
   favourite; filled salmon-pink + slight scale when it is. The
   `.is-on` class is flipped by cal-event-modal's _syncFavState. */
cal-event-modal .modal-fav {
	position: absolute ; top: 18px ; right: 64px ; z-index: 5 ;
	width: 38px ; height: 38px ;
	border-radius: 999px ;
	border: 0 ;
	background: rgba(255, 255, 255, 0.92) ;
	backdrop-filter: blur(8px) ;
	-webkit-backdrop-filter: blur(8px) ;
	color: var(--ink-mute) ;
	display: inline-flex ; align-items: center ; justify-content: center ;
	cursor: pointer ;
	box-shadow: var(--shadow-sm) ;
	transition: background 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease) ;
}
cal-event-modal .modal-fav:hover { background: #fff ; color: #c45f6f ; transform: scale(1.08) ; }
cal-event-modal .modal-fav.is-on { color: #c45f6f ; }
cal-event-modal .modal-fav.is-on svg { fill: #c45f6f ; }
/* translateY: optical centring. The heart's box is centred, but its two
   lobes put the weight at the top — its centroid sits ~1 px above the
   middle of the disc at this size, so it read as riding high. */
cal-event-modal .modal-fav svg { width: 16px ; height: 16px ; transform: translateY(1px) ; transition: fill 200ms var(--ease) ; }
/* Add to calendar — same disc as the heart, one place further left. */
cal-event-modal .modal-cal {
	position: absolute ; top: 18px ; right: 110px ; z-index: 5 ;
	width: 38px ; height: 38px ;
	border-radius: 999px ;
	background: rgba(255, 255, 255, 0.92) ;
	backdrop-filter: blur(8px) ;
	-webkit-backdrop-filter: blur(8px) ;
	color: var(--ink-mute) ;
	display: inline-flex ; align-items: center ; justify-content: center ;
	box-shadow: var(--shadow-sm) ;
	transition: background 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease) ;
}
cal-event-modal .modal-cal[hidden] { display: none ; }
cal-event-modal .modal-cal:hover { background: #fff ; color: var(--accent-deep) ; transform: scale(1.08) ; }
cal-event-modal .modal-cal svg { width: 17px ; height: 17px ; }

cal-event-modal .modal-cover {
	width: 100% ;
	aspect-ratio: 16/7 ;
	background: var(--accent-soft) ;
	overflow: hidden ;
	position: relative ;
}
cal-event-modal .modal-cover img {
	width: 100% ; height: 100% ; object-fit: cover ;
	transform-origin: center center ;
	/* Ken Burns — slow pan + zoom on the cover photo. */
	animation: ken-burns 24s ease-in-out infinite alternate ;
}
@keyframes ken-burns {
	0%   { transform: scale(1.04) translate(0, 0) ; }
	50%  { transform: scale(1.10) translate(-1.5%, -1%) ; }
	100% { transform: scale(1.06) translate(1.5%, 1%) ; }
}
cal-event-modal .modal-cover-blank {
	background: linear-gradient(135deg, var(--accent-pale), var(--accent-soft)) ;
}

cal-event-modal .modal-head { padding: 36px 52px 0 ; }
cal-event-modal .modal-title {
	font-size: 56px ;
	font-weight: 400 ;
	letter-spacing: -0.025em ;
	line-height: 1.05 ;
	margin: 12px 0 18px ;
	color: var(--ink) ;
}
cal-event-modal .modal-lead {
	font-family: var(--font-serif) ;
	font-style: italic ;
	font-size: 22px ;
	line-height: 1.45 ;
	color: var(--ink-soft) ;
	margin: 0 0 12px ;
	max-width: 60ch ;
}
cal-event-modal .modal-grid {
	display: grid ;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) ;
	gap: 56px ;
	padding: 36px 52px 56px ;
}
cal-event-modal .modal-long p { margin: 0 0 14px ; line-height: 1.7 ; }
cal-event-modal .modal-long strong { font-weight: 500 ; }
cal-event-modal .modal-long em { font-style: italic ; }
cal-event-modal .modal-long ul, cal-event-modal .modal-long ol { padding-left: 20px ; margin: 0 0 14px ; }
cal-event-modal .modal-long li { margin: 4px 0 ; }
cal-event-modal .modal-long a {
	color: var(--accent-deep) ;
	border-bottom: 1px solid var(--accent) ;
	transition: color 200ms var(--ease) ;
}
cal-event-modal .modal-long a:hover { color: var(--ink) ; }
/* Breathing room AFTER the long description, but only when something
   (Direction artistique / Focus thématique) actually follows. The
   inner <p> already has 14 px margin-bottom; this bumps the gap to
   a more deliberate section break. :has() means no spurious gap
   when the long description is the last block in the main column. */
cal-event-modal .modal-long:has(+ .modal-section) { margin-bottom: 18px ; }
cal-event-modal .modal-section { margin-bottom: 26px ; }
cal-event-modal .modal-section .eyebrow {
	font-size: 10.5px ;
	letter-spacing: 0.28em ;
	text-transform: uppercase ;
	color: var(--ink-mute) ;
	font-weight: 500 ;
	margin-bottom: 10px ;
}
cal-event-modal .modal-list, cal-event-modal .modal-venues, cal-event-modal .modal-prices, cal-event-modal .modal-people {
	font-size: 14px ; line-height: 1.6 ;
}
cal-event-modal .modal-venues li, cal-event-modal .modal-prices li { margin-bottom: 12px ; }
cal-event-modal .modal-prices .row { display: flex ; justify-content: space-between ; gap: 12px ; }
cal-event-modal .modal-prices .cond { font-size: 12.5px ; margin-top: 2px ; }
cal-event-modal .modal-link {
	color: var(--accent-deep) ;
	border-bottom: 1px solid var(--accent) ;
	font-size: 12.5px ;
	margin-top: 4px ;
	display: inline-block ;
}
cal-event-modal .modal-tags { display: flex ; flex-wrap: wrap ; gap: 6px ; }
cal-event-modal .tag {
	display: inline-block ;
	background: var(--accent-soft) ;
	color: var(--ink) ;
	padding: 5px 11px ;
	border-radius: 999px ;
	font-size: 12px ;
	letter-spacing: 0.02em ;
	transition: background 200ms var(--ease), color 200ms var(--ease) ;
}
cal-event-modal .tag:hover { background: var(--accent) ; color: #fff ; }
cal-event-modal .modal-ext { display: flex ; flex-wrap: wrap ; gap: 8px ; margin-top: 28px ; }
cal-event-modal .modal-pill {
	display: inline-block ;
	padding: 10px 18px ;
	border-radius: 999px ;
	background: var(--ink) ;
	color: #fff ;
	font-size: 12.5px ;
	letter-spacing: 0.04em ;
	transition: background 220ms var(--ease), transform 240ms var(--ease) ;
}
cal-event-modal .modal-pill:hover { background: var(--accent-deep) ; transform: translateY(-1px) ; }
cal-event-modal .modal-skel { padding: 0 ; }
cal-event-modal .skel-cover { width: 100% ; aspect-ratio: 16/7 ; border-radius: 0 ; }
cal-event-modal .skel-text { padding: 36px 52px ; }
cal-event-modal .modal-error { padding: 80px 52px ; text-align: center ; }
/* ── Correction reporting ───────────────────────────────
   A quiet text button in the modal footer, and the dialog it opens.
   Deliberately understated: it is a contact channel, not a call to action,
   and it must not compete with the official-website pill above it. */
cal-event-modal .modal-report { margin-top: 26px ; }
cal-event-modal .modal-report-btn {
	background: none ;
	border: none ;
	padding: 4px 0 ;
	font: inherit ;
	font-size: 12px ;
	letter-spacing: 0.03em ;
	color: var(--ink-mute) ;
	cursor: pointer ;
	border-bottom: 1px solid transparent ;
	transition: color 200ms var(--ease), border-color 200ms var(--ease) ;
}
cal-event-modal .modal-report-btn:hover {
	color: var(--ink) ;
	border-bottom-color: var(--ink-mute) ;
}

/* Above the event modal, not below it. The host is `display: contents`, so
   it creates NO stacking context: this z-index competes directly with
   .modal-backdrop (90) and .modal-frame (100) in the page's own stacking
   order, not inside a local one. At 60 the dialog opened *behind* the fiche
   and only became visible once it was closed. */
cal-event-modal .modal-report-dialog { position: fixed ; inset: 0 ; z-index: 120 ; }
cal-event-modal .report-backdrop {
	position: absolute ; inset: 0 ;
	background: #1a181466 ;
	backdrop-filter: blur(2px) ;
	animation: reportFade 160ms var(--ease) ;
}
cal-event-modal .report-box {
	position: absolute ;
	top: 50% ; left: 50% ;
	transform: translate(-50%, -50%) ;
	width: min(520px, calc(100vw - 32px)) ;
	max-height: calc(100vh - 48px) ;
	overflow: auto ;
	background: #fff ;
	border-radius: 6px ;
	padding: 30px 32px 24px ;
	box-shadow: 0 24px 60px #1a181433 ;
	animation: reportPop 200ms var(--ease) ;
}
@keyframes reportFade { from { opacity: 0 ; } to { opacity: 1 ; } }
@keyframes reportPop {
	from { opacity: 0 ; transform: translate(-50%, calc(-50% + 8px)) ; }
	to   { opacity: 1 ; transform: translate(-50%, -50%) ; }
}
cal-event-modal .report-title { margin: 0 0 10px ; font-size: 23px ; color: var(--ink) ; }
cal-event-modal .report-intro { margin: 0 0 18px ; font-size: 13.5px ; line-height: 1.5 ; color: var(--ink-mute) ; }
cal-event-modal .report-text {
	width: 100% ;
	box-sizing: border-box ;
	padding: 12px 14px ;
	font: inherit ;
	font-size: 14px ;
	line-height: 1.5 ;
	color: var(--ink) ;
	border: 1px solid #e0dcd6 ;
	border-radius: 4px ;
	resize: vertical ;
	transition: border-color 180ms var(--ease) ;
}
cal-event-modal .report-text:focus { outline: none ; border-color: var(--accent) ; }
/* Honeypot — pushed off-screen rather than display:none, which some bots
   deliberately skip. aria-hidden on the wrapper keeps it out of screen
   readers, and tabindex="-1" keeps it out of the keyboard path. */
cal-event-modal .report-hp {
	position: absolute ;
	left: -9999px ;
	width: 1px ; height: 1px ;
	overflow: hidden ;
}
cal-event-modal .report-msg { min-height: 18px ; margin-top: 8px ; font-size: 12.5px ; }
cal-event-modal .report-msg.is-warn { color: #b07d2a ; }
cal-event-modal .report-msg.is-err  { color: #b4453c ; }
cal-event-modal .report-actions { display: flex ; justify-content: flex-end ; gap: 10px ; margin-top: 12px ; }
cal-event-modal .report-cancel, cal-event-modal .report-send {
	font: inherit ; font-size: 13px ;
	padding: 9px 20px ;
	border-radius: 999px ;
	cursor: pointer ;
	transition: background 200ms var(--ease), color 200ms var(--ease) ;
}
cal-event-modal .report-cancel { background: none ; border: 1px solid #e0dcd6 ; color: var(--ink-mute) ; }
cal-event-modal .report-cancel:hover { color: var(--ink) ; border-color: var(--ink-mute) ; }
cal-event-modal .report-send { background: var(--ink) ; border: 1px solid var(--ink) ; color: #fff ; }
cal-event-modal .report-send:hover:not(:disabled) { background: var(--accent-deep) ; border-color: var(--accent-deep) ; }
cal-event-modal .report-send:disabled { opacity: 0.5 ; cursor: default ; }
cal-event-modal .report-thanks {
	margin: 0 ; padding: 26px 0 ;
	text-align: center ;
	font-size: 15px ;
	color: var(--ink) ;
}

.muted { color: var(--ink-mute) ; }

/* ── Mobile responsive ─────────────────────────────────── */

@media (max-width: 720px) {
	cal-calendar .week-row { min-height: 64px ; }
	cal-calendar .day-cell { min-height: 64px ; padding: 4px 4px 2px ; }
	cal-calendar .chip { font-size: 10px ; height: 18px ; padding: 2px 4px ; }
	/* Pushed the chip overlay's top inset from 22px to 32px so the
	   first chip row no longer touches the day number above it
	   (the day-num at font-size:12px + the cell's top padding adds
	   up to about 22px, which left the chip kissing the number). */
	cal-calendar .chip-overlay { inset: 32px 3px 3px ; grid-auto-rows: 18px ; gap: 2px ; }
	cal-calendar .row { grid-template-columns: 1fr ; gap: 14px ; padding: 22px 0 ; }
	cal-calendar .row-cover { max-width: 280px ; }
	cal-calendar .row-name { font-size: 24px ; }
	/* Compact view-bar: everything (prev / today / next / title /
	   month-week-list switch) shrinks onto a SINGLE row so the calendar
	   itself can claim the rest of the viewport height. The today pill
	   is degraded to a centred dot, and the view-switch labels are
	   trimmed to their first letter via a font-size:0 +
	   ::first-letter trick — keeps the JS i18n strings untouched and
	   the trick works in any language. */
	.view-bar {
		flex-direction: row ;
		gap: 8px ;
		align-items: center ;
		flex-wrap: nowrap ;
		margin-bottom: 12px ;
	}
	.view-bar .left {
		display: flex ;
		align-items: center ;
		gap: 4px ;
		flex: 1 ;
		min-width: 0 ;
	}
	.view-bar .view-switch { flex-shrink: 0 ; align-self: center ; padding: 2px ; }
	/* Icon alone, the same 34 px height as the compact view switch. */
	.view-tools { gap: 6px ; }
	.type-filter summary { width: 34px ; height: 34px ; padding: 0 ; justify-content: center ; }
	.type-filter-label { display: none ; }
	/* Each button is a uniform 28 × 28 circle so the active-state
	   black fill is round regardless of which letter (M / S / L) is
	   pressed — without fixed dimensions the button width follows its
	   widest letter (M) and turns the highlight into an oval for the
	   narrower letters.
	   Centering uses line-height + text-align (NOT flex), because
	   ::first-letter doesn't apply reliably inside a flex container
	   per spec — only block / inline-block / list-item / table-cell.
	   With display:inline-flex the pseudo-element rendered as empty
	   on most browsers, which is why the letters disappeared. */
	.view-switch button {
		font-size: 0 ;
		padding: 0 ;
		width: 28px ;
		height: 28px ;
		min-width: 0 ;
		border-radius: 50% ;
		display: inline-block ;
		line-height: 28px ;
		text-align: center ;
		vertical-align: middle ;
	}
	.view-switch button::first-letter {
		font-size: 12px ;
		letter-spacing: 0 ;
	}
	.current-title {
		font-size: 17px ;
		margin-left: 6px ;
		overflow: hidden ;
		text-overflow: ellipsis ;
		white-space: nowrap ;
		flex: 1 ;
		min-width: 0 ;
	}
	/* "Today" pill → tight 36×36 circle with a centred dot.
	   The text label is suppressed by font-size:0 (kept for screen
	   readers via aria-label / button text presence). */
	.iconbtn.today { padding: 0 ; font-size: 0 ; letter-spacing: 0 ; min-width: 36px ; }
	.iconbtn.today::before {
		content: '' ;
		display: block ;
		width: 8px ; height: 8px ;
		border-radius: 50% ;
		background: var(--ink) ;
	}
	cal-event-modal .modal-frame { inset: 0 ; border-radius: 0 ; }
	cal-event-modal .modal-head { padding: 28px 22px 0 ; }
	cal-event-modal .modal-title { font-size: 34px ; }
	cal-event-modal .modal-lead { font-size: 17px ; }
	/* On desktop the modal grid has 2 columns (main / side) with a
	   32 px column gap — that gap, when the grid collapses to 1fr on
	   mobile, becomes a 32 px ROW gap between the two stacks of
	   sections. Reduce it: on phones the visual link between sections
	   is the eyebrow heading, not vertical air. */
	cal-event-modal .modal-grid { grid-template-columns: 1fr ; gap: 12px ; padding: 28px 22px 56px ; }
	/* Footer: hide the brand wordmark + tagline on phones so the
	   copyright and the link cluster (iCal / contact / Instagram)
	   fit on a single line. */
	.footer .signature .brand { display: none ; }
	.footer { flex-wrap: nowrap ; gap: 12px ; }
	/* In month / week views the calendar has a fixed-ish height
	   bound (cell min-heights), so the gap before the footer was
	   eating useful vertical surface; tighten it. List view keeps
	   the default — its content naturally flows to the footer. */
	body:has(cal-calendar[data-view="month"]) .footer,
	body:has(cal-calendar[data-view="week"])  .footer { margin-top: 12px ; }
	/* Brand bar: shrink the wordmark so the sticky header doesn't
	   eat the top quarter of the viewport on phones. */
	.brand-bar { padding-top: 12px ; padding-bottom: 12px ; }
	.brand-bar .mark .wordmark { font-size: 28px ; }
	.brand-bar .mark .tagline { display: none ; }
	/* Week chips: keep BOTH the title and the city visible. The
	   global `cal-calendar .chip` mobile rule (font-size: 10px,
	   height: 18px) above squashed the week-chip down to a single
	   line; restore enough room for the two stacked spans. */
	cal-calendar .week-chip {
		height: 46px ;
		padding: 6px 12px ;
		gap: 1px ;
		font-size: 11px ;
	}
	cal-calendar .week-chip .chip-name { font-size: 12px ; line-height: 1.15 ; }
	cal-calendar .week-chip .chip-meta { font-size: 9.5px ; line-height: 1.3 ; letter-spacing: 0.06em ; }
	cal-calendar .week-chips { grid-auto-rows: 46px ; gap: 4px ; }
	/* Week-head columns: "LUN 18" is too wide to fit 7 days on a
	   phone — collapse the day-name span to its first letter via
	   the font-size:0 / ::first-letter trick (works for any locale
	   that uses one-character labels naturally, e.g. CJK already
	   ships with single-char day names). */
	cal-calendar .week-day-h { padding: 8px 4px ; gap: 4px ; justify-content: center ; }
	cal-calendar .week-dow { font-size: 0 ; letter-spacing: 0 ; }
	cal-calendar .week-dow::first-letter { font-size: 10.5px ; letter-spacing: 0 ; }
	cal-calendar .week-dnum { font-size: 16px ; }
}

/* ── Mobile app banner ─────────────────────────────────
   A slim mint strip above the page, phones and tablets only — revealed
   by assets/cal.js, which also picks the right store. Opaque so it reads
   over the campaign slideshow as well as over the paper gradient. */
.app-banner {
	position: relative ;
	z-index: 30 ;
	display: flex ;
	align-items: center ;
	justify-content: center ;
	min-height: 36px ;
	padding: 6px 44px ;
	background: var(--accent) ;
	color: #fff ;
	font-size: 13px ;
	line-height: 1.3 ;
	text-align: center ;
}
.app-banner[hidden] { display: none ; }
.app-banner-link {
	font-weight: 500 ;
	letter-spacing: 0.01em ;
	text-decoration: underline ;
	text-decoration-color: rgba(255, 255, 255, 0.55) ;
	text-underline-offset: 3px ;
}
/* The whole strip is the tap target, not just the words. */
.app-banner-link::after { content: "" ; position: absolute ; inset: 0 ; }
.app-banner-close {
	position: absolute ;
	z-index: 1 ;
	top: 50% ;
	inset-inline-end: 6px ;
	transform: translateY(-50%) ;
	display: grid ;
	place-items: center ;
	width: 32px ;
	height: 32px ;
	padding: 0 ;
	border: 0 ;
	border-radius: 50% ;
	background: none ;
	color: #fff ;
	opacity: 0.85 ;
	cursor: pointer ;
}
.app-banner-close:hover { opacity: 1 ; background: rgba(255, 255, 255, 0.15) ; }
.app-banner-close svg { width: 16px ; height: 16px ; }

/* ── View bar on narrow phones ─────────────────────────── */
/* Buttons, filter and view switch leave too little of the row for the title,
   which truncated even the default week range. The title takes a line of its
   own; the tools sit at the end of the row above it. */
@media (max-width: 480px) {
	.view-bar .left { flex-wrap: wrap ; }
	.view-tools { position: absolute ; top: 11px ; inset-inline-end: 0 ; }
	.current-title { flex: 0 0 100% ; margin: 6px 0 0 ; }
	[dir="rtl"] .view-bar .left { justify-content: flex-end ; }
}
