/* Home: calendar / national prefecture map switcher.
   The calendar is the default SSR view; the map is lazy-initialized on first selection. */
#monthly .top-mode-tabs{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
  margin:17px 0 14px;padding:4px;border:1px solid #42434d;border-radius:12px;
  background:#121319;
}
#monthly .top-mode-tab{
  display:flex;justify-content:center;align-items:center;gap:9px;
  min-width:0;min-height:46px;padding:9px 14px;
  color:#d7d9e3;background:transparent;border:1px solid transparent;border-radius:9px;
  font-size:.98rem;line-height:1.3;font-weight:850;cursor:pointer;
  transition:background .15s ease,color .15s ease;
}
#monthly .top-mode-tab:hover:not(.is-active){background:#29232e;color:#fff}
#monthly .top-mode-tab.is-active{
  color:#fff;background:linear-gradient(120deg,#bd1559,#e42e80);
  border-color:#ec5595;box-shadow:0 2px 12px #fa3b852a;
}
#monthly .top-mode-tab-icon{font-size:1.18em;line-height:1;opacity:.9}
#monthly .top-mode-tab:focus-visible{outline:3px solid #ff94c2;outline-offset:2px}
#monthly .top-map-view[hidden],
#monthly .top-calendar-view[hidden]{display:none!important}
#monthly .top-map-view{min-width:0}
#monthly .top-map-view .pm-page{margin:0;max-width:none;width:100%}
#monthly .top-map-view .pm-shell{
  background:transparent;border:0;border-radius:0;box-shadow:none;
  padding:0;overflow:visible
}
#monthly .top-map-view .pm-hero{margin:0 0 10px;gap:10px}
#monthly .top-map-view .pm-hero .pm-pin{display:none}
#monthly .top-map-view .pm-hero-copy h2{
  margin:0;font-size:1.11rem;color:#fff;font-weight:850;line-height:1.4
}
#monthly .top-map-view .pm-hero-copy p{margin:2px 0 0;font-size:.78rem}
#monthly .top-map-view .pm-periods{margin-top:9px}
#monthly .top-map-view .pm-return{margin-top:8px}
#monthly .top-map-view .top-map-full-link{
  display:flex;justify-content:flex-end;margin:8px 0 0
}
#monthly .top-map-view .top-map-full-link a{
  color:#ff91c0;font-size:.83rem;font-weight:750;text-decoration:none
}
#monthly .top-map-view .top-map-full-link a:hover{text-decoration:underline}
#monthly .top-map-error{padding:14px;border:1px solid #96536b;background:#291521;color:#ffe6f0;border-radius:9px;font-size:.87rem}
@media (max-width:600px){
  #monthly .top-mode-tabs{gap:5px;margin:9px 0 12px;padding:3px;border-radius:9px}
  #monthly .top-mode-tab{min-height:44px;padding:8px 5px;font-size:.83rem;gap:5px;border-radius:7px}
  #monthly .top-mode-tab-icon{font-size:1.07em}
  #monthly .top-map-view .pm-hero{margin:5px 0 8px}
  #monthly .top-map-view .pm-hero-copy h2{font-size:1rem}
  #monthly .top-map-view .pm-hero-copy p{font-size:.73rem}
  #monthly .top-map-view .pm-help-toggle{font-size:.68rem}
  #monthly .top-map-view .top-map-full-link{justify-content:center}
}
@media (prefers-reduced-motion: reduce) {
  #monthly .top-mode-tab{transition:none}
}
