/* The radio scale, day strip and event share one screen. Page height stays fluid at enlarged text. */
.browsing-calendar { background: var(--al-color-canvas); }
.browsing-calendar :is(.site-header,.sketch-bar,.site-footer) { display:none; }
.browsing-calendar #main { min-height:100svh; padding-block:0; }
.cc-screen { --cc-line:var(--al-color-border); color:var(--al-color-text); }
.cc-screen button:not(.condensed-card button) { color:inherit; }
.cc-screen svg:not(.condensed-card svg) { width:1.1rem; height:1.1rem; flex:none; }
.cc-top { display:flex; align-items:center; gap:1.6rem; padding-block:.7rem; border-bottom:1px solid var(--cc-line); background:var(--al-color-surface); min-height:3.6rem; }
.cc-top .wordmark { color:var(--al-color-primary-active); font-size:1.45rem; flex:none; white-space:nowrap; }
.cc-region { font-size:.875rem; }
.cc-region { display:flex; align-items:center; gap:.35rem; color:var(--al-color-text-muted); }
.cc-region svg { width:1rem; }
.cc-body { padding-block:1.5rem 2rem; }
.cc-heading,.cc-results-head,.cc-dial-head,.cc-paging { display:flex; align-items:center; justify-content:space-between; gap:.7rem; }
.cc-heading { margin-bottom:.75rem; }
.cc-heading h1 { font-size:clamp(1.45rem,2.8vw,2.15rem); }
.cc-heading > span { font-size:.8rem; color:var(--al-color-text-muted); }
.cc-picker { overflow:clip; background:var(--al-color-surface); border:1px solid var(--cc-line); border-radius:1rem; }
.cc-months,.cc-week { display:grid; align-items:center; }
.cc-months { grid-template-columns:1fr auto 1fr; padding:.45rem .95rem; border-bottom:1px solid var(--cc-line); touch-action:pan-y; }
.cc-months button,.cc-week button { font-family:inherit; background:none; border:0; min-height:2.75rem; }
.cc-months button { display:flex; align-items:center; justify-content:center; gap:.35rem; padding:.25rem .35rem; }
.cc-month-neighbor { font-size:.95rem; font-weight:600; }
.cc-month-neighbor:first-child { justify-self:start; }
.cc-month-neighbor:last-child { justify-self:end; flex-direction:row-reverse; }
.cc-month-active strong { font-family:var(--al-font-display); font-size:1.45rem; line-height:1.1; }
.cc-month-active span { color:var(--al-color-text-muted); font-size:.95rem; }
.cc-month-active svg { width:.83rem; height:.83rem; }
.cc-month-active { anchor-name:--cc-month-heading; }
.cc-picker:has(#cc-month-picker:popover-open) .cc-month-active svg { transform:rotate(180deg); }
#cc-month-picker {
  position:fixed; inset:auto; top:var(--cc-jump-top); left:50%; transform:translateX(-50%);
  box-sizing:border-box; width:min(22rem,calc(100vw - 1.25rem)); max-height:calc(100dvh - var(--cc-jump-top) - .5rem);
  overflow:auto; margin:0; padding:1rem; border:1px solid var(--cc-line); border-radius:.85rem;
  background:var(--al-color-surface); color:var(--al-color-text); box-shadow:0 .5rem 1.5rem #19383d29;
}
@supports (top:anchor(bottom)) {
  #cc-month-picker { position-anchor:--cc-month-heading; top:clamp(.5rem,calc(anchor(bottom) + .25rem),50dvh); }
}
.cc-month-short { display:none; }
@media(max-width:24rem) {
  .cc-month-neighbor .cc-month-long { display:none; }
  .cc-month-neighbor .cc-month-short { display:inline; }
}
.cc-year-row { display:flex; gap:.75rem; align-items:center; justify-content:space-between; padding-bottom:.7rem; border-bottom:1px solid var(--cc-line); }
.cc-year-row select { width:auto; min-width:6rem; padding:.4rem .75rem; min-height:2.75rem; }
.cc-month-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.2rem; margin-top:.55rem; }
.cc-month-grid button { min-height:2.75rem; padding:.32rem .1rem; font-size:.93rem; overflow-wrap:anywhere; background:transparent; border:1px solid transparent; border-radius:.45rem; }
.cc-month-grid button:hover { background:var(--al-color-selected); }
.cc-month-grid button[aria-pressed="true"] { background:var(--al-color-primary); color:var(--al-color-inverse); }
.cc-months button:hover,.cc-days button:hover { background:var(--al-color-surface-subtle); border-radius:.45rem; }
.cc-week { grid-template-columns:2.75rem 1fr 2.75rem; padding:.4rem .6rem; gap:.5rem; touch-action:pan-y; }
.cc-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); align-items:stretch; }
.cc-days button { display:grid; place-content:center; justify-items:center; gap:.06rem; line-height:1.15; border-radius:.55rem; margin:0 .12rem; padding:.35rem .04rem; }
.cc-days span { font-size:.82rem; }
.cc-days b { font:700 1.16rem/1.2 var(--al-font-display); }
.cc-days button[aria-pressed="true"] { color:white; background:var(--al-color-primary); }
.cc-screen .cc-arrow { display:inline-grid; place-items:center; border:1px solid var(--cc-line); background:white; border-radius:50%; width:2.6rem; height:2.6rem; min-height:0; padding:0; }
.cc-screen .cc-arrow:hover:enabled { background:var(--al-color-selected); }
.cc-screen .cc-arrow:disabled { opacity:.42; cursor:default; }
.cc-dial { position:relative; background:var(--al-color-primary-active); color:white; padding:.6rem 1.15rem .48rem; }
.cc-dial-head { align-items:center; font-size:.94rem; font-weight:650; }
.cc-any { display:inline-flex; align-items:center; gap:.36rem; min-height:2rem; font-size:.83rem; font-weight:500; cursor:pointer; }
.cc-any input { margin:0; width:1rem; height:1rem; accent-color:var(--al-color-sunshine); }
.cc-instrument { position:relative; overflow:hidden; }
.cc-tape { position:relative; height:2.85rem; cursor:ew-resize; touch-action:pan-y; user-select:none; -webkit-user-select:none; }
.cc-tape:focus-visible { outline-offset:-3px; outline-color:var(--al-color-sunshine); }
.cc-tape::before { content:""; position:absolute; top:1.85rem; left:0; right:0; border-top:1px solid var(--al-teal-600); }
.cc-scale { position:absolute; left:50%; top:0; bottom:0; }
.cc-scale:not(.cc-crossing-midnight) .cc-neighbor-tick { visibility:hidden; }
.cc-scale i { position:absolute; top:1.85rem; width:1px; height:5px; background:var(--al-teal-300); }
.cc-scale .cc-hour { height:9px; }
.cc-scale i span { position:absolute; top:-1.55rem; left:0; transform:translateX(-50%); font:500 .8rem/1.3 var(--al-font-ui); white-space:nowrap; color:var(--al-teal-100); }
.cc-needle { position:absolute; height:.85rem; width:3px; background:var(--al-color-sunshine); left:calc(50% - 1.5px); bottom:0; }
.cc-needle::before { position:absolute; content:""; top:-4px; left:-3px; width:9px; height:7px; background:var(--al-color-sunshine); clip-path:polygon(0 0,100% 0,50% 100%); }
.cc-readout { text-align:center; font-variant-numeric:tabular-nums; color:var(--al-color-sunshine); font-weight:700; font-size:.92rem; line-height:1.3; }
.cc-dial-off .cc-instrument { opacity:.38; }
.cc-dial-off .cc-tape { cursor:default; }
.cc-dial-off .cc-needle { visibility:hidden; }
.cc-results { margin-top:1rem; }
.cc-results-head { margin-bottom:.55rem; }
.cc-results-head h2 { font:700 clamp(1.12rem,2.1vw,1.45rem)/1.2 var(--al-font-display); }
.cc-paging { gap:.4rem; flex:none; }
.cc-count { min-width:3rem; text-align:center; font-size:.83rem; color:var(--al-color-text-muted); font-variant-numeric:tabular-nums; }
.cc-slot { min-width:0; touch-action:pan-y; }
.cc-card:not([aria-current]) { display:none; }
.cc-empty { display:grid; justify-items:start; gap:.6rem; padding:1.25rem; background:white; border:1px solid var(--cc-line); border-radius:1rem; }
.cc-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(min-width:48rem) {
  .cc-slot:not(:has(.cc-empty)) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--al-space-3); }
  .cc-slot .cc-card { display:flex; }
  .cc-card[aria-current] { border-color:var(--al-color-primary); box-shadow:inset 0 -3px var(--al-color-primary); }
}
.combined-entry { display:inline-flex; align-items:center; min-height:2.75rem; font-weight:600; }
@media(max-width:42rem) {
  .cc-top { gap:.6rem; padding-block:.2rem; min-height:2.75rem; }
  .cc-top .wordmark { font-size:1.25rem; }
  .cc-region { display:none; }
  .cc-body { padding-block:.55rem .7rem; }
  .cc-heading { margin:0 0 .45rem; }
  .cc-heading h1 { font-size:1.35rem; }
  .cc-months { padding:.05rem .3rem; }
  .cc-month-active strong { font-size:1.15rem; }
  .cc-month-active span,.cc-month-neighbor { font-size:.83rem; }
  .cc-week { grid-template-columns:1.7rem 1fr 1.7rem; padding:.18rem .2rem; gap:.05rem; }
  .cc-week .cc-arrow { width:1.7rem; height:2.75rem; border:0; }
  .cc-days button { margin:0; }
  .cc-days span { font-size:.78rem; }
  .cc-dial { padding:.22rem .65rem .32rem; }
  .cc-dial-head { font-size:.87rem; }
  .cc-results { margin-top:.5rem; }
  .cc-results-head { margin:0 0 .35rem; gap:.15rem; }
  .cc-results-head h2 { font-size:1rem; }
  .cc-paging { gap:.05rem; }
  .cc-paging .cc-arrow { width:2.25rem; height:2.25rem; }
  .cc-count { min-width:2.62rem; font-size:.78rem; }
}
@media(max-width:22rem) {
  .cc-month-neighbor { gap:0; }
  .cc-month-active span { font-size:.78rem; }
  .cc-paging .cc-arrow { width:2rem; }
}
@media(forced-colors:active) {
  .cc-days button[aria-pressed="true"] { outline:2px solid Highlight; }
  .cc-needle,.cc-needle::before,.cc-scale i { background:CanvasText; }
}

.cc-any input { min-height:1rem; padding:0; }
.cc-dial-head > span { font-weight:650; }
.cc-paging .cc-arrow:disabled { opacity:1; color:var(--al-neutral-400); }
.cc-compact-note { display:none; }
@media(min-width:64rem),(max-width:42rem) {
  .cc-results { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; row-gap:.5rem; }
  .cc-results-head,.cc-paging { display:contents; }
  .cc-results-head h2,.cc-count { grid-area:1/1; }
  .cc-results-head h2 { padding-right:3.4rem; }
  .cc-count { justify-self:end; }
  .cc-slot,.cc-paging .cc-arrow { grid-area:2/1; }
  .cc-paging .cc-arrow { z-index:1; }
  .cc-paging [data-cmd="prev-event"] { justify-self:start; }
  .cc-paging [data-cmd="next-event"] { justify-self:end; }
}
@media(min-width:64rem) {
  .cc-results { grid-template-columns:var(--al-control-compact) minmax(0,1fr) var(--al-control-compact); column-gap:var(--al-space-2); }
  .cc-results-head h2,.cc-count { grid-column:1 / -1; }
  .cc-slot { grid-column:2; }
  .cc-paging [data-cmd="prev-event"] { grid-column:1; }
  .cc-paging [data-cmd="next-event"] { grid-column:3; }
}
@media(max-width:42rem) {
  .cc-results { grid-template-columns:var(--al-control-compact) minmax(0,1fr) var(--al-control-compact); gap:.5rem var(--al-space-1); }
  .cc-results-head h2,.cc-count { grid-column:1 / -1; }
  .cc-slot { grid-column:2; }
  .cc-paging [data-cmd="prev-event"] { grid-column:1; }
  .cc-paging [data-cmd="next-event"] { grid-column:3; }
  .cc-paging .cc-arrow { width:2.65rem; height:2.65rem; align-self:center; }
  .cc-results:has(.cc-empty) { grid-template-columns:1fr; }
  .cc-results:has(.cc-empty) .cc-slot { grid-column:1; }
  .cc-results:has(.cc-empty) .cc-paging .cc-arrow { position:static; grid-area:1/1; margin:0; align-self:center; }
  .cc-results:has(.cc-empty) .cc-paging [data-cmd="prev-event"] { justify-self:end; margin-right:2.7rem; }
  .cc-results:has(.cc-empty) h2 { padding-right:5.5rem; }
  .cc-results:has(.cc-empty) .cc-count { visibility:hidden; }
}
@media(max-width:42rem) and (max-height:610px) {
  .cc-top { min-height:2.6rem; padding-block:0; }
  .cc-top .cc-compact-note { display:inline; color:var(--al-color-text-muted); font-size:.75rem; }
  .cc-heading { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .cc-body { padding-top:.25rem; }
  .cc-results { row-gap:.35rem; }
  .cc-dial-head { line-height:1.2; }
  .cc-readout { position:absolute; left:50%; bottom:1.42rem; transform:translateX(-50%); min-width:3.5rem; background:var(--al-color-primary-active); pointer-events:none; }
}
