.book-content>.annual-calendar-sheet{height:100%;display:flex;flex-direction:column;gap:24px;min-height:0}.annual-calendar-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;border-bottom:1px solid var(--book-line,#a4b19f);padding-bottom:17px}.book-content .annual-calendar-heading h1{font-size:32px;line-height:1.2;letter-spacing:-1px;margin:0}.book-content .annual-calendar-heading p{font-size:12px;line-height:1.4;margin:0;text-align:right}.annual-calendar-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:24px 20px}.annual-calendar-month{min-height:0;min-width:0}.book-content .annual-calendar-month h2{font-size:16px;line-height:20px;margin:0 0 5px;text-align:left}.book-content .annual-calendar-month table{width:100%;height:calc(100% - 25px);margin:0;border-collapse:collapse;table-layout:fixed;font-size:12px;line-height:1.2}.book-content .annual-calendar-month th,.book-content .annual-calendar-month td{padding:3px 1px!important;height:auto!important;min-height:0;border:0!important;text-align:center!important;vertical-align:middle;white-space:nowrap}.book-content .annual-calendar-month th{font-size:10px;font-weight:500;height:22px!important;background:var(--book-headerBackground,#eef2e9)}.book-content .annual-calendar-month th:first-child,.book-content .annual-calendar-month td:first-child,.book-content .annual-calendar-month th:last-child,.book-content .annual-calendar-month td:last-child{font-weight:700}.annual-calendar-page{break-inside:avoid}
.book-content>.annual-calendar-sheet{gap:16px}.annual-calendar-grid{gap:16px 16px}.book-content .annual-calendar-month td{white-space:normal;vertical-align:top;padding:2px 1px!important}.calendar-day{display:block;font-size:11px;line-height:13px}.calendar-event{display:block;font-size:7px;line-height:9px;white-space:nowrap;word-break:normal;overflow-wrap:normal;letter-spacing:-.15px;max-width:100%;overflow:hidden}.book-themed .book-content .annual-calendar-month .calendar-red,.book-themed .book-content .annual-calendar-month .calendar-red span,.book-themed .book-content .annual-calendar-month th:first-child,.book-content .annual-calendar-legend .calendar-red{color:#c62828!important}.book-themed .book-content .annual-calendar-month .calendar-blue,.book-themed .book-content .annual-calendar-month .calendar-blue span,.book-themed .book-content .annual-calendar-month th:last-child,.book-content .annual-calendar-legend .calendar-blue{color:#1565c0!important}.annual-calendar-legend{display:flex;flex-wrap:wrap;gap:5px 12px;font-size:8px;line-height:12px}
/* Explicit nested grids keep six equal week rows in Safari as well as Chromium.
   Holiday labels remain out of flow, so they never change date spacing. */
.book-content .annual-calendar-month table{display:grid;grid-template-rows:22px minmax(0,1fr)}
.book-content .annual-calendar-month thead{display:grid;grid-template-rows:22px;min-height:0}
.book-content .annual-calendar-month tbody{display:grid;grid-template-rows:repeat(6,minmax(0,1fr));min-height:0}
.book-content .annual-calendar-month tr{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));height:auto;min-height:0;min-width:0}
.book-content .annual-calendar-month th{display:flex;align-items:center;justify-content:center;padding:0!important;min-width:0}
.book-content .annual-calendar-month td{display:block;position:relative;height:auto!important;min-width:0;min-height:0;padding:0!important;overflow:hidden}
.annual-calendar-month .calendar-day{position:absolute;top:2px;left:0;right:0;line-height:13px}
.annual-calendar-month .calendar-event{position:absolute;top:15px;left:1px;right:1px;height:9px;line-height:9px}
