.trd-calendar {
  --trd-ink: #17372e;
  --trd-muted: #5a6d64;
  --trd-accent: #397b50;
  --trd-line: #dce7dd;
  box-sizing: border-box;
  max-width: 1100px;
  margin: 0 auto 3rem;
  color: var(--trd-ink);
  font-family: inherit;
  line-height: 1.5;
}
.trd-calendar *, .trd-calendar *::before, .trd-calendar *::after { box-sizing: border-box; }
.trd-controls { max-width: 530px; margin: 0 0 1.2rem; }
.trd-controls label { display: block; font-weight: 700; margin-bottom: .45rem; }
.trd-calendar .trd-area { display: block; width: 100%; min-height: 48px; padding: .65rem .9rem; background: #fff; border: 1px solid #aabeb0; border-radius: 8px; color: var(--trd-ink); font: inherit; }
.trd-area-details { max-width: 780px; color: var(--trd-muted); white-space: pre-line; line-height: 1.55; }
.trd-area-details:empty { display: none; }
.trd-area-details p, .trd-area-details ul { margin: .5rem 0 .9rem; }
.trd-next { background: #eaf4e8; border-left: 5px solid var(--trd-accent); border-radius: 9px; padding: 1.15rem 1.4rem; margin: 1.3rem 0 2rem; }
.trd-next-label { font-weight: 800; color: var(--trd-accent); letter-spacing: .1em; font-size: .75rem; margin: 0 0 .25rem; }
.trd-next-date { display: block; font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.3; }
.trd-next-areas { color: var(--trd-muted); margin: .35rem 0 0; }
.trd-expired { margin: 0; font-weight: 700; }
.trd-month { border: 1px solid var(--trd-line); border-radius: 12px; overflow: hidden; background: #fff; }
.trd-month-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--trd-line); }
.trd-month-heading { margin: 0; font-size: 1.3rem; color: var(--trd-ink); text-align: center; }
.trd-calendar .trd-nav-button { cursor: pointer; border: 1px solid var(--trd-line); border-radius: 7px; background: #fff; color: var(--trd-ink); font-size: 1.1rem; width: 40px; height: 40px; padding: 0; }
.trd-calendar button:hover { border-color: var(--trd-accent); }
.trd-calendar button:focus-visible, .trd-calendar select:focus-visible { outline: 3px solid #7cbb85; outline-offset: 2px; }
.trd-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.trd-weekday { background: #f5f8f3; text-align: center; color: var(--trd-muted); font-weight: 700; font-size: .8rem; padding: .7rem .1rem; }
.trd-day { min-height: 98px; padding: .5rem; border-top: 1px solid var(--trd-line); border-right: 1px solid var(--trd-line); }
.trd-day:nth-child(7n) { border-right: 0; }
.trd-day-empty { background: #fafbf9; }
.trd-day-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: .85rem; font-weight: 700; }
.trd-day-today .trd-day-number { background: var(--trd-ink); border-radius: 50%; color: #fff; }
.trd-calendar .trd-day-event { display: block; cursor: pointer; width: 100%; text-align: left; background: #eaf4e8; border: 1px solid transparent; border-radius: 5px; padding: .35rem .45rem; color: #225637; font: inherit; font-size: .73rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.trd-list { margin-top: 1.5rem; }
.trd-list h3 { color: var(--trd-ink); margin: 0 0 .75rem; font-size: 1.2rem; }
.trd-entries { display: grid; gap: .65rem; }
.trd-entry { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: start; gap: 1rem; padding: 1rem; border: 1px solid var(--trd-line); border-radius: 10px; background: #fff; }
.trd-entry:focus { outline: 2px solid var(--trd-accent); outline-offset: 2px; }
.trd-entry-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 73px; padding: .35rem .2rem; border-radius: 7px; background: #eaf4e8; color: #225637; line-height: 1.1; text-align: center; }
.trd-entry-date-month { font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.trd-entry-date-day { font-size: 1.7rem; line-height: 1.15; }
.trd-entry-date-weekday { font-size: .71rem; font-weight: 700; text-transform: uppercase; }
.trd-entry-body { min-width: 0; padding-top: .15rem; }
.trd-entry-name { display: block; color: var(--trd-ink); font-size: 1rem; line-height: 1.4; }
.trd-calendar .trd-entry-description { color: var(--trd-muted); margin: .35rem 0 0; font-size: .93rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.trd-empty { color: var(--trd-muted); }
@media (max-width: 650px) {
  .trd-day { min-height: 62px; padding: .2rem; }
  .trd-day-number { width: 24px; height: 24px; font-size: .76rem; }
  .trd-calendar .trd-day-event { width: 10px; height: 10px; padding: 0; margin: 4px auto 0; border-radius: 50%; background: var(--trd-accent); font-size: 0; overflow: hidden; }
  .trd-entry { grid-template-columns: 58px minmax(0, 1fr); gap: .75rem; padding: .75rem; }
  .trd-entry-date { min-height: 64px; }
  .trd-entry-date-day { font-size: 1.45rem; }
}