.naec-calendar,
.naec-calendar * { box-sizing: border-box; }
.naec-calendar {
width: min(100%, var(--naec-max-width, 1280px));
margin: 0 auto;
padding: clamp(12px, 2vw, 24px);
background: var(--naec-calendar-bg, #fff);
color: var(--naec-text, #202124);
font-family: inherit;
}
.naec-calendar button,
.naec-calendar input,
.naec-calendar select { font-family: inherit; }
.naec-calendar-header {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 20px;
margin-bottom: 16px;
}
.naec-calendar-title {
margin: 0;
font: inherit;
font-size: clamp(1.5rem, 2.3vw, 2.3rem);
font-weight: 800;
line-height: 1.05;
}
.naec-last-updated { margin: 6px 0 0; opacity: .68; font-size: .9rem; }
.naec-print-button {
border: 1px solid var(--naec-border, #e5e7eb);
background: var(--naec-card-bg, #fff);
color: var(--naec-text, #202124);
padding: 9px 14px;
border-radius: 999px;
cursor: pointer;
font-weight: 700;
}
.naec-summary {
display: flex;
flex-wrap: wrap;
gap: 6px 18px;
margin: 0 0 14px;
padding: 10px 12px;
border: 1px solid var(--naec-border, #e5e7eb);
border-radius: 10px;
font-size: .9rem;
}
.naec-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 18px; }
.naec-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 650; }
.naec-legend-swatch { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 12px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.naec-month-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--naec-gap, 24px);
align-items: stretch;
}
.naec-month-card {
min-width: 0;
height: 100%;
overflow: hidden;
background: var(--naec-card-bg, #fff);
border: 1px solid var(--naec-border, #e5e7eb);
border-radius: var(--naec-radius, 18px);
box-shadow: 0 8px 30px rgb(0 0 0 / .055);
}
.naec-month-image-wrap { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #f3f4f6; }
.naec-month-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.naec-month-image-placeholder {
background:
linear-gradient(135deg, rgb(255 255 255 / .75), transparent 55%),
repeating-linear-gradient(45deg, #f8fafc 0 12px, #f1f5f9 12px 24px);
}
.naec-month-title {
margin: 0;
padding: 13px 14px 11px;
background: var(--naec-month-bg, #fff);
color: var(--naec-month-text, #202124);
text-align: center;
font: inherit;
font-size: 1.12rem;
font-weight: 850;
letter-spacing: .075em;
line-height: 1;
}
.naec-month-title span { font-size: .72em; font-weight: 700; opacity: .65; letter-spacing: .03em; }
.naec-weekdays,
.naec-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.naec-weekdays > div {
padding: 8px 2px;
background: var(--naec-weekday-bg, #f3f4f6);
color: var(--naec-weekday-text, #4b5563);
text-align: center;
font-size: .66rem;
font-weight: 850;
letter-spacing: .035em;
border-top: 1px solid var(--naec-border, #e5e7eb);
border-right: 1px solid var(--naec-border, #e5e7eb);
}
.naec-weekdays > div:last-child { border-right: 0; }
.naec-day {
appearance: none;
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-width: 0;
min-height: 58px;
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
border-top: 1px solid var(--naec-border, #e5e7eb);
border-right: 1px solid var(--naec-border, #e5e7eb);
background: transparent;
color: var(--naec-text, #202124);
text-align: center;
line-height: 1;
box-shadow: none;
}
.naec-day:nth-child(7n) { border-right: 0; }
.naec-day-empty { background: rgb(127 127 127 / .025); }
.naec-day.has-events { cursor: pointer; }
.naec-day.has-events:hover { filter: brightness(.95); }
.naec-day.is-past { opacity: .72; }
.naec-day.is-today { box-shadow: inset 0 0 0 3px var(--naec-today, #db2777); z-index: 1; opacity: 1; }
.naec-day-number {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: clamp(1rem, 1.4vw, 1.22rem);
font-weight: 850;
line-height: 1;
}
.naec-month-key {
padding: 13px 14px 15px;
border-top: 1px solid var(--naec-border, #e5e7eb);
background: var(--naec-month-bg, #fff);
color: var(--naec-month-text, #202124);
}
.naec-month-key h4 {
margin: 0 0 8px;
font: inherit;
font-size: .86rem;
font-weight: 850;
letter-spacing: .055em;
line-height: 1;
}
.naec-month-key-rows { display: grid; gap: 5px; }
.naec-month-key-row {
appearance: none;
display: grid;
grid-template-columns: minmax(58px, auto) 1fr;
align-items: center;
gap: 10px;
width: 100%;
margin: 0;
padding: 0;
border: 0;
background: transparent;
color: inherit;
text-align: left;
cursor: pointer;
}
.naec-month-key-row:hover .naec-month-key-title { text-decoration: underline; text-underline-offset: 2px; }
.naec-month-key-date {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 58px;
min-height: 28px;
padding: 4px 8px;
border-radius: 3px;
font-size: .78rem;
font-weight: 850;
line-height: 1;
white-space: nowrap;
}
.naec-month-key-title {
min-width: 0;
overflow-wrap: anywhere;
font-size: .79rem;
font-weight: 700;
line-height: 1.2;
}
.naec-more-button {
display: inline-block;
border: 0;
background: transparent;
color: inherit;
padding: 3px 0;
cursor: pointer;
font-weight: 750;
text-decoration: underline;
}
.naec-day:focus-visible,
.naec-month-key-row:focus-visible,
.naec-more-button:focus-visible,
.naec-print-button:focus-visible,
.naec-modal-close:focus-visible,
.naec-modal-actions a:focus-visible {
outline: 3px solid var(--naec-today, #db2777);
outline-offset: 2px;
}
.naec-modal[hidden] { display: none !important; }
.naec-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 20px; }
.naec-modal-backdrop { position: absolute; inset: 0; background: rgb(17 24 39 / .68); backdrop-filter: blur(3px); }
.naec-modal-panel {
position: relative;
width: min(620px, 100%);
max-height: min(82vh, 780px);
overflow: auto;
border-radius: 18px;
background: #fff;
color: #202124;
padding: 26px;
box-shadow: 0 24px 80px rgb(0 0 0 / .28);
}
.naec-modal-close { position: absolute; top: 9px; right: 12px; border: 0; background: transparent; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.naec-modal h3 { margin: 0 34px 12px 0; font: inherit; font-size: 1.55rem; font-weight: 850; line-height: 1.08; }
.naec-modal-image { display: block; width: calc(100% + 52px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; margin: -26px -26px 22px; border-radius: 18px 18px 0 0; }
.naec-modal-meta { display: grid; gap: 5px; margin-bottom: 14px; font-size: .95rem; }
.naec-modal-description { line-height: 1.55; }
.naec-modal-description > :last-child { margin-bottom: 0; }
.naec-modal-categories { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.naec-modal-category { background: #f3f4f6; border-radius: 999px; padding: 4px 8px; font-size: .76rem; font-weight: 700; }
.naec-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.naec-modal-actions a { display: inline-block; padding: 9px 13px; border-radius: 999px; background: #111827; color: #fff; text-decoration: none; font-weight: 750; font-size: .9rem; }
.naec-day-list { display: grid; gap: 12px; }
.naec-day-list-item { padding: 12px; border: 1px solid #e5e7eb; border-radius: 12px; }
.naec-day-list-item h4 { margin: 0 0 5px; font-size: 1rem; }
.naec-screen-lock { overflow: hidden; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1023px) {
.naec-month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
.naec-calendar { padding-inline: 8px; }
.naec-calendar-header { align-items: flex-start; flex-direction: column; }
.naec-month-grid { grid-template-columns: 1fr; }
.naec-day { min-height: 56px; }
.naec-day-number { font-size: 1.16rem; }
.naec-month-key-title { font-size: .88rem; }
.naec-modal { align-items: end; padding: 0; }
.naec-modal-panel { width: 100%; max-height: 86vh; border-radius: 18px 18px 0 0; padding: 24px 20px 30px; }
.naec-modal-image { width: calc(100% + 40px); margin: -24px -20px 20px; }
}
@media (max-width: 390px) {
.naec-day { min-height: 52px; }
.naec-weekdays > div { font-size: .6rem; }
.naec-month-key-row { grid-template-columns: minmax(54px, auto) 1fr; gap: 8px; }
.naec-month-key-date { min-width: 54px; }
}
@media print {
body * { visibility: hidden !important; }
.naec-calendar,
.naec-calendar * { visibility: visible !important; }
.naec-calendar { position: absolute; inset: 0 auto auto 0; width: 100%; max-width: none; padding: 0; background: #fff !important; color: #000 !important; }
.naec-print-button,
.naec-modal { display: none !important; }
.naec-month-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.naec-month-card { break-inside: avoid; box-shadow: none; border-color: #bbb; }
.naec-month-image-wrap { display: none; }
.naec-day { min-height: 42px; }
.naec-day.has-events,
.naec-month-key-date { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.naec-month-key-row { cursor: default; }
@page { size: landscape; margin: .35in; }
}