/* Month pages: the shared styles (the hero plate, the dates to plan around, the featured lists, the
   calendar). Each month page links this file; nothing here is specific to one month. */
  /* The hero: the front page's plate, the same duotone pair, swapped by theme. */
  .mo-plate{margin:1.4rem 0 .4rem;border:1px solid var(--rule);border-radius:10px;overflow:hidden;background:var(--bg-card)}
  .mo-img{display:block;width:100%;height:auto;aspect-ratio:2.4/1;object-fit:cover;object-position:center 40%}
  .mo-img--light{display:none}
  html[data-theme="light"] .mo-img--dark{display:none}
  html[data-theme="light"] .mo-img--light{display:block}
  .mo-plate figcaption{display:flex;align-items:center;gap:.7rem;padding:.55rem .85rem;font:600 .66rem/1.3 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--chestnut)}
  .mo-rule{width:92px;height:10px;flex:0 0 auto;color:var(--chestnut);opacity:.9}

  /* The dates to plan around: the logbook's dated entries. The numerals are the one loud thing on the page. */
  .mo-almanac{list-style:none;margin:.4rem 0 0;padding:0}
  .mo-almanac li{display:grid;grid-template-columns:6.6rem 1fr;gap:1rem;padding:1rem 0;border-top:1px dashed var(--chestnut-soft)}
  .mo-almanac li:first-child{border-top:0}
  .mo-date{margin:0;display:flex;align-items:baseline;flex-wrap:wrap;column-gap:.25rem;line-height:1}
  .mo-dow{flex-basis:100%;font:600 12.5px/1.6 var(--sans);letter-spacing:.07em;text-transform:uppercase;color:var(--label)}
  .mo-num{font-family:var(--display);font-weight:700;font-size:2.5rem;color:var(--beacon);font-variant-numeric:lining-nums tabular-nums}
  .mo-and{font-family:var(--display);font-style:italic;font-size:1.2rem;color:var(--chestnut)}
  .mo-what h3{font-family:var(--display);font-weight:600;font-size:1.12rem;line-height:1.3;color:var(--fg);margin:.15rem 0 .3rem;text-wrap:balance}
  .mo-what p{margin:0;font-size:.95rem;line-height:1.55;color:var(--fg-soft)}
  .mo-what a,.mo-ledger a,.mo-post a{color:var(--teal);text-underline-offset:3px}

  /* The featured list and the calendar's rows: time in the margin, the event, then where.
     One column at every width (the founder, Oct 30): two columns filled across the row, so a short day
     left a hole beside a long one and the days read Wed, Fri, Sun down the left. */
  .mo-towns{display:grid;gap:.2rem;margin:.3rem 0 0}
  .mo-town h3{font-family:var(--display);font-weight:600;font-size:1.1rem;color:var(--fg);margin:1rem 0 .3rem;padding-bottom:.3rem;border-bottom:2px solid var(--teal-deep)}
  .mo-rows{list-style:none;margin:0;padding:0}
  .mo-rows li{display:flex;gap:.8rem;align-items:baseline;padding:.5rem 0;border-top:1px dashed var(--chestnut-soft)}
  .mo-rows li:first-child{border-top:0}
  .mo-t{flex:0 0 4.6rem;font-family:var(--mono);font-size:.72rem;color:var(--chestnut);font-variant-numeric:tabular-nums;white-space:nowrap}
  .mo-b{min-width:0;display:flex;flex-direction:column;row-gap:.1rem}
  .mo-n{font-family:var(--display);font-weight:600;font-size:1rem;line-height:1.3;color:var(--fg);overflow-wrap:break-word}
  a.mo-n{color:var(--teal-deep);text-decoration-color:var(--chestnut-soft);text-underline-offset:3px}
  html[data-theme="dark"] a.mo-n{color:var(--fg)}
  a.mo-n:hover{color:var(--teal)}
  .mo-v{font-size:.86rem;line-height:1.45;color:var(--fg-mute);overflow-wrap:break-word}
  .mo-line{display:block}
  .mo-hw{color:var(--beacon);margin-right:.35rem;font-size:.8rem}
  .mo-post{margin-top:1.4rem}

  .mo-ledger{list-style:none;margin:.3rem 0 0;padding:0}
  .mo-ledger li{display:grid;grid-template-columns:7.2rem 1fr;gap:.9rem;padding:.6rem 0;border-top:1px dashed var(--chestnut-soft);font-size:.95rem;line-height:1.5;color:var(--fg-soft)}
  .mo-ledger li:first-child{border-top:0}
  .mo-ledger b{color:var(--fg);font-weight:600}
  .mo-when{font-family:var(--mono);font-size:.74rem;color:var(--chestnut);padding-top:.15rem;font-variant-numeric:tabular-nums}

  /* The calendar's controls */
  .mo-filters{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;margin:.4rem 0 1rem}
  .mo-chip{min-height:44px;padding:0 1rem;border:1px solid var(--edge);border-radius:22px;background:var(--bg-card);color:var(--fg-soft);
    font:600 13px/1 var(--sans);letter-spacing:.02em;cursor:pointer;touch-action:manipulation;transition:background-color .15s,color .15s,border-color .15s}
  .mo-chip:hover{border-color:var(--teal);color:var(--fg)}
  .mo-chip[aria-pressed="true"]{background:var(--teal-deep);border-color:var(--teal-deep);color:var(--paper)}
  html[data-theme="dark"] .mo-chip[aria-pressed="true"]{background:var(--fg);border-color:var(--fg);color:var(--bg)}
  .mo-chip:focus-visible,.mo-reg input:focus-visible + span{outline:2.5px solid var(--teal);outline-offset:2px}
  .mo-reg{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:0 .3rem;font:500 13px/1.3 var(--sans);color:var(--fg-soft);cursor:pointer}
  .mo-reg input{width:18px;height:18px;margin:0;accent-color:var(--teal-deep)}
  .mo-status{font-size:.92rem;color:var(--fg-mute);margin:.6rem 0}
  .mo-status a{color:var(--teal)}
  .mo-week{border-top:2px solid var(--teal-deep);padding:.7rem 0 1rem}
  .mo-week > h3{font-family:var(--display);font-weight:700;font-size:1.2rem;color:var(--fg);margin:0 0 .2rem}
  .mo-day{margin:.6rem 0 0}
  .mo-day h4{margin:.4rem 0 .1rem;font:600 12.5px/1.4 var(--sans);letter-spacing:.07em;text-transform:uppercase;color:var(--label)}
  @media (prefers-reduced-motion:reduce){.mo-chip{transition:none}}
  @media (max-width:520px){
    .mo-almanac li{grid-template-columns:4.8rem 1fr;gap:.7rem}
    .mo-num{font-size:2rem}
    .mo-date--range .mo-num{font-size:1.5rem}
    .mo-ledger li{grid-template-columns:1fr;gap:.1rem}
  }
