@font-face{font-family:'Instrument Sans';
  src:url('/static/fonts/InstrumentSans-Variable.ttf') format('truetype');
  font-weight:400 700;
  font-stretch:75% 100%;
  font-style:normal;
  font-display:swap}

@font-face{font-family:'Instrument Serif';
  src:url('/static/fonts/InstrumentSerif-Regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap}

@font-face{font-family:'Instrument Serif';
  src:url('/static/fonts/InstrumentSerif-Italic.ttf') format('truetype');
  font-weight:400;
  font-style:italic;
  font-display:swap}

:root{--brand-blue:#27aae1;
  --brand-green:#39b54a;
  --ink:#172e3b;
  --muted:#526c78;
  --paper:#f5f9fb;
  --line:#d6e5e9;
  --primary:#147685;
  --surface:#fff;
  --accent:#147f99;
  --border-strong:#67858b;
  --selected-bg:#147685;
  --selected-text:#fff;
  --focus:#147f99;
  --notice:#e5f3ef;
  --tile:#e4f2f4;
  --tile-text:#28657a;
  --excerpt:#365663;
  --tag:#496e65;
  --button-bg:linear-gradient(110deg,#157eae,#218345);
  --button-text:#fff;
  --headline-gradient:linear-gradient(110deg,#147fba 15%,#24843e 90%);
  --glow:#27aae10c;
  color-scheme:light}
*{box-sizing:border-box}
body{margin:0;
  background:radial-gradient(ellipse at 50% 12%,var(--glow),transparent 55%),var(--paper);
  color:var(--ink);
  font-family:'Instrument Sans',sans-serif}
header{display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 auto;
  max-width:1200px;
  padding:30px 44px;
  border-bottom:1px solid var(--line)}
a{color:inherit;
  text-decoration:none}
.brand{display:flex;
  align-items:center}
.brand-logo{display:block;
  width:190px;
  height:auto}
.logo-dark{display:none}
.church-link{font-size:13px;
  color:var(--muted)}
main{max-width:1050px;
  margin:auto;
  padding:0 32px}
.hero{max-width:820px;
  margin:44px auto 46px;
  text-align:center}
.eyebrow{font-size:10px;
  letter-spacing:2.2px;
  font-weight:700;
  color:var(--primary)}
.eyebrow span{display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:linear-gradient(var(--brand-blue),var(--brand-green));
  margin:0 6px 1px 0}
h1{font-family:'Instrument Serif',Georgia,serif;
  font-weight:400;
  font-size:76px;
  line-height:1.04;
  letter-spacing:-.8px;
  margin:22px 0}
h1 em{font-style:italic;
  color:var(--accent);
  background:var(--headline-gradient);
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent}
.hero h1{font-size:56px;line-height:1.1;margin:0 0 16px}
.hero>p{max-width:480px;
  margin:0 auto 24px;
  font-size:15px;
  line-height:1.8;
  color:var(--muted)}
.search-box{display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--border-strong);
  background:var(--surface);
  padding:9px 10px 9px 20px;
  border-radius:12px;
  box-shadow:0 8px 22px #102b3910}
.search-box>span{font-size:32px;
  color:var(--muted)}
.search-box input{min-width:0;
  flex:1;
  border:none;
  background:transparent;
  font:inherit;
  font-size:14px;
  padding:12px 0;
  outline:none}
.search-box:focus-within{outline:2px solid var(--focus)}
.search-box button{background:var(--button-bg);
  color:var(--button-text);
  border:0;
  border-radius:7px;
  padding:16px 24px;
  font:inherit;
  font-size:13px;
  cursor:pointer}
.search-box button span{margin-left:18px}
.search-options{display:flex;
  justify-content:center;
  gap:24px;
  margin-top:16px;
  font-size:12px;
  color:var(--muted);
  accent-color:var(--primary)}
.suggestions{display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:25px;
  font-size:11px;
  color:var(--muted)}
button{font-family:inherit;
  cursor:pointer}
.suggestions button{border:1px solid var(--border-strong);
  background:transparent;
  color:var(--primary);
  border-radius:20px;
  font-size:11px;
  padding:8px 12px}
.suggestions>span{margin-right:5px}
.section-heading{display:flex;
  justify-content:space-between;
  align-items:end;
  border-bottom:1px solid var(--line);
  padding-bottom:18px}
h2{font-family:'Instrument Serif',Georgia,serif;
  font-size:34px;
  font-weight:400;
  margin:10px 0 0}
.section-heading>span{font-size:11px;
  color:var(--muted)}
#status{font-size:13px;
  color:var(--muted)}
#notice{padding:15px 18px;
  border-radius:8px;
  background:var(--notice);
  font-size:13px;
  line-height:1.7;
  margin-bottom:22px}
.card{display:grid;
  grid-template-columns:80px 1fr auto;
  gap:24px;
  align-items:start;
  border-bottom:1px solid var(--line);
  padding:25px 0}
.date-tile{min-height:96px;
  border:1px solid var(--border-strong);
  background:var(--surface);
  border-radius:10px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  color:var(--ink);
  text-align:center}
.date-month{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:7px 3px;background:var(--tile);color:var(--primary);font-size:10px;font-weight:700;letter-spacing:.5px;border-bottom:1px solid var(--line)}
.date-year{font-size:9px;font-weight:500;letter-spacing:0}
.date-tile .date-day{font-family:'Instrument Serif',Georgia,serif;font-weight:400;font-size:36px;line-height:1;margin:8px 0 4px}
.date-weekday{font-size:10px;line-height:1.4;color:var(--muted);padding:0 3px 8px;letter-spacing:0}
.card h3{font-size:17px;
  line-height:1.4;
  font-weight:500;
  margin:3px 0 9px}
.meta{font-size:11px;
  color:var(--muted)}
.excerpt{font-size:14px;
  line-height:1.8;
  max-width:680px;
  color:var(--excerpt)}
.card button{color:var(--primary);
  border:1px solid var(--border-strong);
  border-radius:25px;
  background:transparent;
  font-size:11px;
  padding:12px 16px;
  white-space:nowrap}
.tag{color:var(--tag);
  font-size:11px}
.empty{padding:38px 0;
  color:var(--muted);
  line-height:1.8}
#browse,#more{display:block;
  margin:25px auto;
  background:transparent;
  border:1px solid var(--border-strong);
  padding:12px 20px;
  border-radius:6px;
  color:var(--primary)}
[hidden]{display:none!important}
footer{display:flex;
  justify-content:space-between;
  padding:38px 0 140px;
  margin-top:32px;
  font-size:10px;
  color:var(--muted);
  border-top:1px solid var(--line)}
#player-panel{position:fixed;
  bottom:0;
  left:0;
  right:0;
  display:flex;
  align-items:center;
  gap:24px;
  padding:20px 5%;
  border-top:1px solid var(--line);
  background:var(--surface);
  box-shadow:0 -5px 25px #00000008}
#player-panel>div{flex:1}
#player-title{display:block;
  font-size:13px;
  margin-top:5px}
#player-status{display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:5px}
#close-player{background:none;
  border:0;
  font-size:18px}
button:hover{filter:brightness(.9)}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--focus);
  outline-offset:3px}
@media(max-width:640px){header{padding:24px}
main{padding:0 22px}
.hero{margin:32px auto 36px}
.hero h1{font-size:42px}
h1{font-size:52px}
.search-box{padding-left:12px}
.search-box button{padding:14px}
.search-box button span{display:none}
.search-box input{font-size:12px}
.section-heading{align-items:start;
  gap:12px}
.section-heading>span{max-width:120px;
  line-height:1.6}
.card{grid-template-columns:64px 1fr;
  gap:15px}
.date-tile{min-height:90px}
.date-month{gap:4px;font-size:9px}
.date-tile .date-day{font-size:32px}
.date-weekday{font-size:9px}
.card button{grid-column:2;
  justify-self:start}
#player-panel{flex-wrap:wrap;
  gap:10px}
audio{width:100%}
footer{gap:20px;
  line-height:1.7}
}


:root[data-theme="dark"]{--ink:#ecf4f8;
  --muted:#a1bbc8;
  --paper:#0d1b25;
  --line:#29434f;
  --primary:#64d0d6;
  --surface:#162d39;
  --accent:#64d0d6;
  --border-strong:#72929c;
  --selected-bg:#64d0d6;
  --selected-text:#0d1b25;
  --focus:#64d0d6;
  --notice:#193e38;
  --tile:#193945;
  --tile-text:#97dce9;
  --excerpt:#c5dbe5;
  --tag:#a6ccb7;
  --button-bg:linear-gradient(110deg,#157eae,#218345);
  --button-text:#fff;
  --headline-gradient:linear-gradient(110deg,#50bfee 15%,#6bd77b 90%);
  --glow:#27aae10b;
  color-scheme:dark}

[data-theme="dark"] .logo-light,[data-theme="dark"] .moon-icon{display:none}

[data-theme="dark"] .logo-dark,[data-theme="dark"] .sun-icon{display:block}

.header-actions{display:flex;
  align-items:center;
  gap:22px}

#theme-toggle{width:40px;
  height:40px;
  display:grid;
  place-items:center;
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--border-strong);
  border-radius:50%;
  flex-shrink:0}

#theme-toggle svg{width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round}

.sun-icon{display:none}

.search-box input{color:var(--ink)}

.search-box input::placeholder{color:var(--muted);
  opacity:1}

#close-player{color:var(--ink)}

@media(max-width:640px){.brand-logo{width:145px}
.header-actions{gap:12px}
.church-link{font-size:11px}
header{gap:15px}
}

@media(max-width:360px){header{padding:20px 16px}
.brand-logo{width:125px}
.header-actions{gap:8px}
}


/* Archive navigation and calendar use the same brand tokens in both themes. */
.site-nav{max-width:1050px;margin:18px auto 0;padding:0 32px;display:flex;gap:8px}
.site-nav a{font-size:13px;font-weight:500;color:var(--muted);padding:10px 16px;border:1px solid transparent;border-radius:24px}
.site-nav a[aria-current="page"]{color:var(--selected-text);background:var(--selected-bg);border-color:var(--selected-bg);font-weight:600}
.site-nav a:not([aria-current="page"]):hover{color:var(--primary);background:var(--tile);border-color:var(--border-strong)}
.calendar-intro{margin:50px 0 36px}
.calendar-intro h1{font-size:54px;line-height:1.1;margin:15px 0}
.calendar-intro p{font-size:14px;color:var(--muted);line-height:1.7}
.calendar-toolbar,.calendar-subtoolbar,.calendar-controls,.period-navigation{display:flex;align-items:center;gap:14px}
.calendar-toolbar,.calendar-subtoolbar{justify-content:space-between;flex-wrap:wrap}
.calendar-subtoolbar{margin:22px 0 12px}
.period-navigation h2{margin:0;font-size:32px;min-width:210px;text-align:center}
.calendar-toolbar button,.view-switcher button,.calendar-listen{border:1px solid var(--border-strong);background:var(--surface);color:var(--primary);border-radius:8px;padding:10px 14px;font:inherit;font-size:12px}
.calendar-toolbar button:disabled{opacity:.4;cursor:default}
.jump-label{font-size:10px;display:flex;flex-direction:column;gap:4px;color:var(--muted)}
.jump-label input{border:1px solid var(--border-strong);background:var(--surface);color:var(--ink);padding:8px;border-radius:6px;font:inherit;font-size:12px;max-width:155px}
.view-switcher{display:flex;gap:4px;background:var(--tile);padding:4px;border-radius:10px}
.view-switcher button{background:transparent;border-color:transparent;color:var(--muted)}
.view-switcher button[aria-pressed="true"]{background:var(--selected-bg);color:var(--selected-text);border-color:var(--selected-bg);font-weight:600}
#calendar-count,#calendar-status{font-size:11px;color:var(--muted);line-height:1.6}
.month-calendar{width:100%;table-layout:fixed;border-spacing:0;border-collapse:collapse;background:var(--surface)}
.month-calendar th{padding:14px 0;color:var(--muted);font-size:11px;font-weight:500;background:var(--paper)}
.month-calendar td{border:1px solid var(--line);padding:0;vertical-align:top;height:120px}
.calendar-day{width:100%;height:100%;min-height:120px;padding:10px;background:transparent;border:0;color:var(--ink);text-align:left;display:flex;flex-direction:column;gap:6px;overflow:hidden}
.calendar-day:hover{background:var(--tile);filter:none}
.calendar-day[aria-pressed="true"]{background:var(--tile);box-shadow:inset 0 0 0 2px var(--primary)}
.calendar-day[aria-current="date"] .day-number{background:var(--button-bg);color:white;border-radius:50%}
.calendar-day.outside-month{color:var(--muted);background:var(--paper)}
.day-number{font-size:12px;display:grid;place-items:center;width:25px;height:25px;flex-shrink:0}
.day-marker{font-size:9px;color:var(--primary);display:none}
.day-event{font-size:10px;line-height:1.5;color:var(--primary);border-left:2px solid var(--brand-green);padding-left:6px;overflow-wrap:anywhere}
#day-details{margin-top:28px}
#day-details h2{font-size:28px}
.calendar-sermon{display:flex;justify-content:space-between;gap:24px;padding:22px 0;border-bottom:1px solid var(--line)}
.calendar-sermon h3{font-size:17px;font-weight:500;line-height:1.5;margin:0}
.calendar-sermon .meta{margin:8px 0}
.calendar-listen{align-self:flex-start;white-space:nowrap;border-radius:24px}
.calendar-sermon details{font-size:12px;color:var(--muted);line-height:1.7;max-width:640px}
.calendar-sermon summary{cursor:pointer;width:fit-content}
.sermon-description{overflow-wrap:anywhere}
.week-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);background:var(--surface)}
.week-day{border-right:1px solid var(--line);min-width:0;padding-bottom:16px}
.week-day:last-child{border-right:0}
.week-day h3{font-size:11px;text-align:center;font-weight:500;color:var(--muted)}
.week-day .calendar-day{height:auto;min-height:110px}
.week-day>.meta{padding:0 10px}
.agenda-day{margin:28px 0}
.agenda-date{font-family:'Instrument Serif',Georgia,serif;font-size:26px;font-weight:400;border-bottom:1px solid var(--line);padding-bottom:12px;margin:0}
@media(max-width:640px){
.site-nav{padding:0 22px}
.calendar-intro{margin:34px 0 28px}
.calendar-intro h1{font-size:42px}
.calendar-toolbar{gap:18px}
.period-navigation{width:100%;justify-content:space-between;gap:8px}
.period-navigation h2{font-size:28px;min-width:0}
.calendar-controls{width:100%;justify-content:space-between}
.jump-label{flex-direction:row;align-items:center;gap:8px}
.month-calendar td{height:72px}
.calendar-day{min-height:72px;padding:6px 3px;gap:3px;align-items:center}
.day-marker{display:block;font-size:8px;letter-spacing:-.2px}
.month-calendar .day-event{display:none}
.month-calendar th{font-size:10px}
.calendar-sermon{gap:12px}
.calendar-sermon h3{font-size:15px}
#day-details h2{font-size:25px}
.week-calendar{grid-template-columns:1fr}
.week-day{display:grid;grid-template-columns:45px 1fr;border-right:0;border-bottom:1px solid var(--line);padding:0}
.week-day:last-child{border-bottom:0}
.week-day h3{align-self:start;margin:18px 0}
.week-day .calendar-day{min-height:64px;align-items:start;padding:10px;gap:5px}
.week-day .day-marker{display:none}
.week-day>.meta{grid-column:2;margin:0 0 12px;padding-left:10px}
}

/* Keep the selected sermon recognizable while browsing or changing views. */
#player-entry{display:inline-block;margin-top:7px;font-size:12px;color:var(--primary);text-decoration:underline;text-underline-offset:3px}
.card,.calendar-sermon{scroll-margin-block:24px 190px;transition:background-color .2s ease,box-shadow .2s ease}
.card.is-current,.calendar-sermon.is-current{background:var(--tile);box-shadow:inset 3px 0 var(--brand-green);border-radius:7px;padding-left:14px;padding-right:14px}
.playback-badge{display:inline-flex;align-items:center;gap:7px;color:var(--primary);font-size:10px;font-weight:600;margin:0 0 8px}
.playback-badge::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--brand-green)}
.is-playing .playback-badge::before{animation:playing-glow 2s ease-in-out infinite}
@keyframes playing-glow{50%{opacity:.45;box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-green) 15%,transparent)}}
#player-panel{z-index:10}
@media(prefers-reduced-motion:reduce){.card,.calendar-sermon{transition:none}.is-playing .playback-badge::before{animation:none}}

/* Church links stay readable and consistent across the archive's two pages. */
.site-footer{display:block;margin-top:60px;padding:38px 0 160px;font-size:12px;line-height:1.7}
.footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:32px}
.footer-brand .brand-logo{width:145px}
.footer-tagline{font-family:'Instrument Serif',Georgia,serif;font-size:28px;line-height:1.15;color:var(--ink);max-width:250px;margin:20px 0 12px}
.footer-location{font-size:11px;margin:0 0 20px}
.footer-center{display:block;width:fit-content;padding:12px 15px;border:1px solid var(--border-strong);border-radius:10px;color:var(--primary);font-weight:600;background:var(--tile)}
.footer-center>span{margin-left:18px}
.footer-center small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px}
.footer-links{display:flex;flex-direction:column;gap:10px}
.footer-links h3{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--primary);margin:0 0 6px;font-weight:700}
.site-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.footer-bottom{display:flex;justify-content:space-between;align-items:start;gap:24px;border-top:1px solid var(--line);margin-top:32px;padding-top:22px;font-size:11px}
.footer-bottom address{font-style:normal}
.footer-bottom p{margin:0;text-align:right}
.footer-bottom strong{font-weight:500;color:var(--ink)}
@media(max-width:800px){.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}.footer-brand{grid-column:1/-1}.footer-tagline{max-width:320px}.footer-links:last-child{grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;column-gap:22px}.footer-links:last-child h3{width:100%}}
@media(max-width:420px){.footer-grid{gap:28px 18px}.footer-bottom{flex-direction:column;gap:16px}.footer-bottom p{text-align:left}}

.footer-link-icon{display:inline-block;width:19px;margin-right:5px;font-size:12px;text-align:center}
.footer-center>.footer-link-icon{margin-left:0;margin-right:5px}
.footer-podcasts{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:32px;padding:24px;border:1px solid var(--border-strong);border-radius:14px;background:var(--tile)}
.footer-podcasts h3{font-family:'Instrument Serif',Georgia,serif;font-size:27px;font-weight:400;line-height:1.2;color:var(--ink);margin:0 0 6px}
.footer-podcasts p{margin:0;font-size:11px}
.podcast-links{display:flex;flex-wrap:wrap;gap:12px}
.podcast-links a{display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid var(--border-strong);border-radius:10px;background:var(--surface);color:var(--ink);font-size:13px;font-weight:600;line-height:1.4}
.podcast-links a:hover{border-color:var(--brand-green);text-decoration:none}
.podcast-links a:focus-visible{outline:2px solid var(--primary);outline-offset:4px}
.podcast-links small{display:block;font-size:9px;color:var(--muted);font-weight:400}
.podcast-icon{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0}
.podcast-icon svg{width:28px;height:28px}
.spotify-icon{color:var(--brand-green)}
.apple-icon{color:var(--primary)}
.podcast-arrow{color:var(--muted);margin-left:4px}
@media(max-width:800px){.footer-podcasts{align-items:flex-start;flex-direction:column;padding:22px}.podcast-links{width:100%}.podcast-links a{flex:1;min-width:145px}}

/* Keep selection and hover states distinct in both brand themes. */
.search-options label{display:flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid transparent;border-radius:6px}
.search-options label:has(input:checked){color:var(--primary);border-color:var(--primary);background:var(--tile)}
.search-options input{margin:0}
.suggestions button:hover,.card button:hover,#browse:hover,#more:hover,.calendar-toolbar button:not(:disabled):hover,.calendar-listen:hover{background:var(--tile);border-color:var(--primary);filter:none}
.view-switcher button:hover{border-color:var(--primary);filter:none}
.calendar-day[aria-pressed="true"],.calendar-day.outside-month[aria-pressed="true"]{background:var(--tile);box-shadow:inset 0 0 0 3px var(--primary)}
.card.is-current,.calendar-sermon.is-current{box-shadow:inset 4px 0 var(--primary)}
@media(max-width:420px){.search-options{gap:8px}.hero h1{font-size:38px}}

/* Return to the full archive before the search results, or directly in the field. */
#browse{margin:16px 0 0;width:fit-content;font-size:12px;font-weight:500}
.search-box #clear-search{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;padding:0;background:transparent;color:var(--muted);border:1px solid var(--border-strong);border-radius:50%;font-size:22px;line-height:1}
.search-box #clear-search:hover{background:var(--tile);color:var(--primary);filter:none}

/* Echo names the sermon app; the church footer retains its original logo. */
.app-brand{gap:12px;flex-shrink:0}
.brand-echo{font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-size:42px;line-height:1;color:var(--primary);letter-spacing:-1px}
@media(max-width:640px){.app-brand{gap:8px}.app-brand .brand-logo{width:125px}.brand-echo{font-size:32px}header{gap:12px}.header-actions{gap:10px}}
@media(max-width:360px){.app-brand .brand-logo{width:105px}.brand-echo{font-size:28px}.app-brand{gap:6px}.header-actions{gap:8px}}

.jump-label select{border:1px solid var(--border-strong);background:var(--surface);color:var(--ink);padding:8px;border-radius:6px;font:inherit;font-size:12px}
.calendar-controls{flex-wrap:wrap}
.year-calendar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.year-month{padding:16px;border:1px solid var(--border-strong);border-radius:12px;background:var(--surface)}
.year-month h3{margin:0 0 12px}
.year-month-link{font-family:'Instrument Serif',Georgia,serif;font-size:24px;padding:0;border:0;background:transparent;color:var(--primary)}
.year-month-link:hover{text-decoration:underline;text-underline-offset:4px;filter:none}
.year-month table{width:100%;table-layout:fixed;border-collapse:collapse}
.year-month th{font-size:9px;font-weight:500;color:var(--muted);padding-bottom:7px}
.year-month td{height:35px;padding:1px}
.year-month .calendar-day{position:relative;min-height:32px;height:32px;padding:2px;align-items:center;justify-content:center;border-radius:5px;gap:0}
.year-month .day-number{font-size:11px;width:23px;height:23px}
.year-month .day-marker,.year-month .day-event{display:none}
.year-month .has-sermon{background:var(--tile);color:var(--primary);font-weight:600}
.year-month .has-sermon::after{content:'';position:absolute;bottom:2px;width:3px;height:3px;border-radius:50%;background:var(--primary)}
.year-month .meta{margin:10px 0 0}
@media(max-width:800px){.year-calendar{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:480px){.year-calendar{grid-template-columns:1fr}.calendar-controls{gap:12px}.calendar-subtoolbar{gap:12px}}

/* One aligned control group replaces labels floating above different-height fields. */
.calendar-controls{display:grid;grid-template-columns:auto auto auto;align-items:center;gap:8px;padding:8px;background:var(--tile);border:1px solid var(--line);border-radius:12px}
.calendar-controls #today{height:42px;min-width:66px;padding:0 14px}
.calendar-controls .jump-label{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;height:42px;padding:0 0 0 12px;margin:0;background:var(--surface);border:1px solid var(--border-strong);border-radius:8px;min-width:0}
.calendar-controls .jump-label>span{white-space:nowrap;font-size:11px;line-height:1;color:var(--muted)}
.calendar-controls .jump-label input,.calendar-controls .jump-label select{height:40px;min-width:0;padding:0 10px;border:0;background:transparent;border-radius:7px;font-size:12px;color:var(--ink)}
.calendar-controls .jump-label select{width:76px}
.calendar-controls .jump-label input{width:145px;max-width:none}
.calendar-controls .jump-label:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.calendar-controls .jump-label input:focus-visible,.calendar-controls .jump-label select:focus-visible{outline:none}
@media(max-width:900px){.calendar-controls{width:100%;grid-template-columns:auto minmax(0,1fr) minmax(0,1.6fr)}.period-navigation{width:100%;justify-content:space-between}.calendar-toolbar{gap:18px}}
@media(max-width:480px){.calendar-controls{grid-template-columns:72px minmax(0,1fr)}.calendar-controls .date-jump-label{grid-column:1/-1}.calendar-controls .jump-label input{width:160px}}
