/* Shared BookNavigation/chrome styles come from the existing portal wrapper.
   Only calendar selectors live here; no canonical/global layout overrides. */
.eac-academic-calendar {
  position: relative !important;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: #172c3c;
  background: #14202b;
  font-family: Inter, Arial, sans-serif;
}
.eac-academic-calendar *, .eac-academic-calendar *::before, .eac-academic-calendar *::after { box-sizing: border-box; }
.eac-calendar-scene { position: absolute; inset: 0; pointer-events: none; }
.eac-calendar-scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eac-calendar-heading {
  position: absolute; left: max(23%, calc(var(--portal-menu-width) + 36px)); top: 8%; right: 6%;
  isolation: isolate; color: #fff8e9; text-shadow: 0 3px 8px #0009;
  transition: left .8s ease; animation: eac-calendar-heading-in .8s ease both;
}
.eac-calendar-heading::before {
  content: ''; position: absolute; inset: -32px -64px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, #0c141b57 0%, #0c141b40 40%, #0c141b1a 62%, transparent 76%);
}
.eac-calendar-heading h1 { font: 500 clamp(38px, 3.55vw, 76px)/1.08 'Cormorant Garamond', Georgia, serif; margin: 0 0 5px; }
.eac-calendar-heading p { font: 400 clamp(20px, 1.85vw, 38px)/1.3 'Cormorant Garamond', Georgia, serif; margin: 0; }
/* Center the full 1024×1536 asset in the usable area: left edge = book width.
   65dvh is the approved ~95% original size; base meets floor at 91dvh.
   Transparent asset supplied separately. Set --eac-calendar-silhouette only if
   its final alpha needs trimming; the default never cuts ornament or plaque. */
.eac-calendar-stage { position: absolute; left: var(--portal-menu-width); right: 0; top: 0; bottom: 0; pointer-events: none; transition: left .8s ease; }
.eac-calendar-pedestal {
  position: absolute; left: 50%; bottom: 9%; height: 65vh; height: 65dvh; aspect-ratio: 2 / 3;
  transform: translateX(-50%); container-type: inline-size; pointer-events: none;
  filter: drop-shadow(0 3px 3px #21191066);
}
.eac-calendar-pedestal-art { display: block; width: 100%; height: 100%; object-fit: contain; clip-path: var(--eac-calendar-silhouette, none); }
.eac-calendar-plaque {
  position: absolute; left: 20%; right: 20%; top: 29%; bottom: 44%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.2cqw; padding: 2cqw 1cqw; text-align: center; color: #fff0be;
  text-shadow: 0 1px 2px #071725; pointer-events: auto;
}
.eac-calendar-plaque h2 { margin: 0; font: 600 clamp(19px, 6.7cqw, 33px)/1.02 'Cormorant Garamond', Georgia, serif; }
.eac-calendar-plaque p { margin: 0; font: 400 clamp(11px, 3.6cqw, 18px)/1.2 'Cormorant Garamond', Georgia, serif; }
.eac-calendar-plaque small { font-size: clamp(10px, 2.8cqw, 14px); line-height: 1.2; }
.eac-calendar-open {
  min-height: 30px; padding: 1.5cqw 2cqw; border: 1px solid #d0b573; border-radius: 6px;
  color: #fff1c9; background: linear-gradient(#284659, #102837); box-shadow: inset 0 1px #fff4, 0 3px 5px #0005;
  font: 600 clamp(12px, 3.65cqw, 18px)/1.2 Inter, Arial, sans-serif; cursor: pointer;
}
.eac-academic-calendar button:focus-visible, .eac-academic-calendar select:focus-visible {
  outline: 3px solid #126b91; outline-offset: 3px;
}
.eac-calendar-open:focus-visible { outline-color: #fff0aa !important; }
.eac-academic-calendar button { cursor: pointer; }
.eac-academic-calendar button:disabled { opacity: .48; cursor: not-allowed; }
.eac-calendar-open:hover { filter: brightness(1.16); }
html[data-eac-environment="night"] .eac-calendar-pedestal { filter: drop-shadow(0 3px 4px #080b1390); }

/* Same scroll artwork/safe area as gallery v4. At 1366×768 the inner paper
   is ~650×487; the body can scroll without ever covering the decorative rolls. */
.eac-academic-calendar .eac-calendar-dialog {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; border-radius: 0;
  width: min(1160px, 114dvh, 94vw); height: min(990px, 96dvh);
  max-width: 94vw; max-height: 96dvh; overflow: visible;
  color: #172c3c; background: transparent; box-shadow: none;
  font: 400 13px/1.4 Inter, Arial, sans-serif;
}
.eac-calendar-dialog[open] { animation: eac-calendar-unfurl .52s cubic-bezier(.22, .8, .2, 1) both; }
.eac-calendar-dialog[open].is-closing { animation: eac-calendar-roll-up .3s ease-in both; }
.eac-calendar-dialog::backdrop { background: #07142399; backdrop-filter: blur(3px); }
.eac-calendar-scroll { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 18px 20px #0007); }
.eac-calendar-paper { position: absolute; inset: 17% 13%; display: flex; flex-direction: column; min-height: 0; }
.eac-calendar-dialog-heading { position: relative; flex: none; text-align: center; padding: 0 42px 10px; border-bottom: 1px solid #ab8d5460; }
.eac-calendar-dialog-heading > span { font-size: 10px; font-weight: 600; letter-spacing: .15em; color: #795520; }
.eac-calendar-dialog-heading h2 { margin: 1px 0 3px; color: #102b3e; font: 500 clamp(29px, 4.4dvh, 48px)/1.02 'Cormorant Garamond', Georgia, serif; }
.eac-calendar-dialog-heading p { margin: 0; font-size: 12px; line-height: 1.35; }
.eac-calendar-close {
  position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; padding: 0;
  border: 1px solid #b9944e; border-radius: 50%; background: linear-gradient(#2c4958, #102633);
  color: #f7e4b4; box-shadow: inset 0 1px #fff4, 0 3px 5px #63441566; font: 26px/1 Georgia, serif;
}
.eac-calendar-paper-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a88646 transparent; padding: 10px 5px 5px; }
.eac-calendar-toolbar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.eac-calendar-toolbar select, .eac-calendar-toolbar button, .eac-calendar-state button, .eac-calendar-next button:not(.eac-calendar-next-link) {
  min-height: 32px; border: 1px solid #a38954; border-radius: 5px; background: #fff8e8; color: #183343; padding: 4px 9px; font: inherit;
}
.eac-calendar-toolbar select { max-width: 38%; }
.eac-calendar-toolbar button.eac-calendar-arrow { font: 26px/1 Georgia, serif; width: 32px; padding: 0; }
.eac-calendar-toolbar .eac-calendar-today-button { margin-left: 6px; }
.eac-calendar-columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.eac-calendar-month, .eac-calendar-details { min-width: 0; }
.eac-calendar-grid { table-layout: fixed; border-spacing: 3px; border-collapse: separate; width: 100%; margin: 0; color: inherit; }
.eac-calendar-grid th { padding: 2px 0 5px; text-align: center; font-size: 10px; font-weight: 600; color: #695435; }
.eac-calendar-grid abbr { border: 0; text-decoration: none; cursor: default; }
.eac-calendar-grid td { height: 32px; padding: 0; border: 0; }
.eac-calendar-day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 32px; padding: 3px 1px 0;
  border: 1px solid #c5ad795c; border-radius: 5px; background: #fffbed5c; color: #173243;
  font: 500 13px/1 Inter, Arial, sans-serif; font-variant-numeric: tabular-nums;
}
.eac-calendar-day-marker { display: block; min-height: 9px; font-size: 8px; line-height: 9px; }
.eac-calendar-day.is-informative { border: 1px dashed #836232; background: #fffbeb66; }
.eac-calendar-day.is-blocked { color: #fff3d4; background: #263e4e; border: 1px solid #263e4e; }
.eac-calendar-day.is-today::after { content: ''; position: absolute; inset: 2px; border: 1px solid currentColor; border-radius: 50%; pointer-events: none; }
.eac-calendar-day.is-selected { outline: 2px solid #8a561b; outline-offset: 1px; }
.eac-calendar-day:hover { box-shadow: inset 0 0 0 1px #926721; }
.eac-calendar-day:focus-visible { z-index: 1; }
.eac-calendar-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 11px; }
.eac-calendar-legend li { display: inline-flex; align-items: center; gap: 4px; }
.eac-calendar-key { display: inline-grid; place-items: center; width: 15px; height: 15px; font-size: 10px; }
.eac-calendar-key.is-blocked { border-radius: 3px; background: #263e4e; color: #fff3d4; }
.eac-calendar-key.is-informative { border: 1px dashed #836232; border-radius: 3px; }
.eac-calendar-key.is-today { border: 1px solid #263e4e; border-radius: 50%; }
.eac-calendar-details { padding: 8px 12px; border-left: 1px solid #ac8f5866; max-height: 280px; overflow-y: auto; overflow-wrap: anywhere; scrollbar-width: thin; }
.eac-calendar-eyebrow { display: block; color: #795520; font-size: 10px; font-weight: 600; letter-spacing: .09em; }
.eac-calendar-details h3 { margin: 4px 0 9px; font: 600 23px/1.1 'Cormorant Garamond', Georgia, serif; }
.eac-calendar-details p { margin: 8px 0; }
.eac-calendar-events { padding: 0; margin: 0; list-style: none; }
.eac-calendar-events li { display: flex; flex-direction: column; gap: 4px; padding: 0 0 12px; margin-bottom: 10px; border-bottom: 1px solid #b7996055; }
.eac-calendar-events li:last-child { margin-bottom: 0; border-bottom: 0; }
.eac-calendar-events strong { font-size: 14px; line-height: 1.3; }
.eac-calendar-events span { font-size: 12px; }
.eac-calendar-impact { color: #675333; }
.eac-calendar-impact.is-blocked { color: #233c4a; font-weight: 600; }
.eac-calendar-month-empty { margin: 8px 2px 0; font-size: 12px; }
.eac-calendar-state { min-height: 245px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 12px; }
.eac-calendar-state h3 { font: 600 24px/1.1 'Cormorant Garamond', Georgia, serif; margin: 0; }
.eac-calendar-state p { margin: 0; }
.eac-calendar-spinner { width: 24px; height: 24px; border: 2px solid #bca37266; border-top-color: #294757; border-radius: 50%; animation: eac-calendar-spin .9s linear infinite; }
.eac-calendar-next { margin-top: 12px; padding: 10px 0; border-top: 1px solid #a78b5455; overflow-wrap: anywhere; }
.eac-calendar-next p { margin: 4px 0; }
.eac-calendar-next-link { display: block; max-width: 100%; text-align: left; background: transparent; border: 0; padding: 5px 0; color: #183c50; font: 500 13px/1.4 Inter, Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.eac-calendar-footer { display: flex; align-items: center; gap: 12px; border-top: 1px solid #a78b5455; padding-top: 10px; }
.eac-calendar-footer p { flex: 1; margin: 0; font-size: 11px; line-height: 1.45; color: #594b36; }
.eac-calendar-schedule { flex: none; min-height: 34px; max-width: 50%; padding: 6px 12px; border: 1px solid #b9944e; border-radius: 20px; background: linear-gradient(#2c4958, #102633); color: #f7e4b4; font: 500 12px/1.35 Inter, Arial, sans-serif; box-shadow: inset 0 1px #fff4; }
.eac-calendar-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes eac-calendar-heading-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes eac-calendar-unfurl { from { clip-path: inset(46% -5%); opacity: .4; } to { clip-path: inset(-5%); opacity: 1; } }
@keyframes eac-calendar-roll-up { from { clip-path: inset(-5%); opacity: 1; } to { clip-path: inset(46% -5%); opacity: 0; } }
@keyframes eac-calendar-spin { to { transform: rotate(360deg); } }
@media (max-height: 800px) and (min-width: 760px) {
  .eac-calendar-dialog-heading { padding-bottom: 7px; }
  .eac-calendar-dialog-heading h2 { font-size: 30px; }
  .eac-calendar-paper-body { padding-top: 7px; }
  .eac-calendar-toolbar { margin-bottom: 7px; }
  .eac-calendar-columns { gap: 12px; }
  .eac-calendar-next { margin-top: 7px; padding: 7px 0; }
  .eac-calendar-footer { padding-top: 7px; }
}
/* Defensive dialog layout only. The product wrapper retains legacy <1366px. */
@media (max-width: 759px) {
  .eac-calendar-columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .eac-calendar-dialog-heading { padding: 0 30px 8px 0; }
  .eac-calendar-dialog-heading h2 { font-size: 25px; }
  .eac-calendar-close { right: 0; top: 0; }
  .eac-calendar-toolbar { flex-wrap: wrap; gap: 4px; }
  .eac-calendar-details { border-left: 0; border-top: 1px solid #ac8f5866; max-height: none; padding: 10px 0; }
  .eac-calendar-footer { flex-direction: column; align-items: stretch; }
  .eac-calendar-schedule { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .eac-academic-calendar *, .eac-academic-calendar *::before, .eac-academic-calendar *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

img[src="/performance/safe-20261015/assets/4cd43b93097172ff7e22aa70.png"] {
  -webkit-mask: url('/academic-calendar/v1/pedestal-mask.svg') center / 100% 100% no-repeat;
  mask: url('/academic-calendar/v1/pedestal-mask.svg') center / 100% 100% no-repeat;
}
.eac-calendar-heading { left: max(17.5%, calc(var(--portal-menu-width) + 36px)); right: auto; }
.eac-calendar-heading h1 { font-size: clamp(38px, 3.2vw, 76px); }
/* Reference silhouette: 68% of scene height. 95% = 64.6% visible.
   The raster silhouette occupies 88.6% of its canvas: 64.6 / .886 = 73%. */
.eac-calendar-pedestal { height: 73dvh; bottom: 1.25%; aspect-ratio: .747; }
.eac-calendar-pedestal-art { object-fit: fill; }
.eac-calendar-pedestal::after { content: ''; position: absolute; left: 15%; right: 15%; height: 2%; bottom: 5.8%; border-radius: 50%; background: #20180e77; filter: blur(5px); z-index: -1; }
.eac-calendar-plaque { left: 20%; right: 20%; top: 28.5%; bottom: 45%; gap: 1.8cqw; }
.eac-calendar-plaque h2 { font-size: clamp(21px, 6.2cqw, 38px); }
.eac-calendar-plaque p { font-size: clamp(12px, 3.25cqw, 20px); }
.eac-academic-calendar .eac-calendar-open { border-radius: 999px; padding: 1.8cqw 5cqw; min-height: 40px; font: 600 clamp(17px, 4.6cqw, 27px)/1.1 'Cormorant Garamond', Georgia, serif; box-shadow: inset 0 1px 2px #fff9, 0 0 0 2px #81663780, 0 0 12px #d49b3390, 0 5px 8px #0006; }
.eac-calendar-plaque small { font: 400 clamp(11px, 2.7cqw, 16px)/1.2 'Cormorant Garamond', Georgia, serif; }
.eac-calendar-grid th, .eac-calendar-grid td { background: transparent !important; }
.eac-calendar-grid td { height: clamp(35px, 4.5dvh, 52px); }
.eac-calendar-day { font: 500 clamp(17px, 2.3dvh, 25px)/1 'Cormorant Garamond', Georgia, serif; background: #f6ead157; }
.eac-calendar-day.is-blocked { background: #681c29; border-color: #681c29; }
.eac-calendar-key.is-blocked { background: #681c29; }
.eac-calendar-dialog { --calendar-ui: clamp(12px, 1.35dvh, 15px); }
.eac-calendar-toolbar select, .eac-calendar-toolbar button { font-size: var(--calendar-ui); }
.eac-calendar-details h3 { font-size: clamp(24px, 3.1dvh, 34px); }
.eac-calendar-events strong { font: 600 clamp(20px, 2.5dvh, 28px)/1.15 'Cormorant Garamond', Georgia, serif; }
.eac-calendar-events span, .eac-calendar-next-link { font-size: var(--calendar-ui); }
.eac-academic-calendar .eac-calendar-grid,
.eac-academic-calendar .eac-calendar-grid tr,
.eac-academic-calendar .eac-calendar-grid th,
.eac-academic-calendar .eac-calendar-grid td { background: transparent !important; }
.eac-academic-calendar .eac-calendar-grid td { height: clamp(26px, 3.6dvh, 45px); }
.eac-academic-calendar .eac-calendar-day { min-height: 0; font: 500 clamp(17px, 2.3dvh, 25px)/1 'Cormorant Garamond', Georgia, serif; }
@media (max-height: 800px) {
  .eac-calendar-next { margin-top: 5px; padding: 5px 0; }
  .eac-calendar-footer { padding-top: 5px; gap: 8px; }
  .eac-calendar-footer p { font-size: 10px; }
  .eac-calendar-schedule { font-size: 11px; padding: 5px 8px; min-height: 30px; }
}

/* Approved amber concept: compact column, centered in available scene.
   Native title/button and existing calendar behavior remain untouched. */
.eac-academic-calendar .eac-calendar-pedestal {
  height: 56dvh; aspect-ratio: 2 / 3; bottom: 4%;
  isolation: isolate; filter: none;
}
.eac-academic-calendar .eac-calendar-pedestal-art {
  content: url('/performance/safe-20261015/assets/0c5a4285fbe80bbc9a597c98.png');
  object-fit: fill;
  -webkit-mask: url('/academic-calendar/v2-amber/pedestal-mask.svg') center / 100% 100% no-repeat;
  mask: url('/academic-calendar/v2-amber/pedestal-mask.svg') center / 100% 100% no-repeat;
  filter: brightness(.9) saturate(.85);
  position: relative; z-index: 2;
}
html[data-eac-environment="night"] .eac-academic-calendar .eac-calendar-pedestal-art { filter: brightness(.78) saturate(.85); }
.eac-academic-calendar .eac-calendar-pedestal::before {
  content: ''; position: absolute; inset: 93% 0 auto; height: 100%; z-index: 0;
  pointer-events: none; transform: scaleY(-1); opacity: .35; filter: blur(1px);
  background: url('/performance/safe-20261015/assets/0c5a4285fbe80bbc9a597c98.png') center / 100% 100% no-repeat;
  -webkit-mask-image: url('/academic-calendar/v2-amber/pedestal-mask.svg'), linear-gradient(to top, #000, transparent 23%);
  -webkit-mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; -webkit-mask-composite: source-in;
  mask-image: url('/academic-calendar/v2-amber/pedestal-mask.svg'), linear-gradient(to top, #000, transparent 23%);
  mask-size: 100% 100%; mask-repeat: no-repeat; mask-composite: intersect;
}
.eac-academic-calendar .eac-calendar-pedestal::after {
  left: 14%; right: 14%; bottom: 2.9%; height: 2.2%; z-index: 1;
  background: radial-gradient(ellipse, #160e09e6 5%, #160e0988 45%, transparent 72%);
  filter: blur(1px); transform: none;
}
.eac-academic-calendar .eac-calendar-plaque {
  left: 23%; right: 23%; top: 24%; bottom: 57%; gap: 1.3cqw; padding: 0; z-index: 3;
}
.eac-academic-calendar .eac-calendar-plaque h2 { font-size: clamp(16px, 5.5cqw, 28px); white-space: nowrap; }
.eac-academic-calendar .eac-calendar-plaque p { font-size: clamp(10px, 3.3cqw, 16px); line-height: 1.1; }
.eac-academic-calendar .eac-calendar-plaque small { display: none; }
.eac-academic-calendar .eac-calendar-open {
  min-height: 30px; padding: 1.5cqw 3cqw; font-size: clamp(14px, 4.5cqw, 23px);
  box-shadow: inset 0 1px 2px #fff6, 0 0 0 1px #81663780, 0 0 7px #d49b3366, 0 3px 5px #0006;
}

/* Separate physical rollers travel apart; the sheet reveals without squashing type. */
.eac-academic-calendar .eac-calendar-dialog[open],
.eac-academic-calendar .eac-calendar-dialog[open].is-closing { animation: none; clip-path: none; transform-origin: center; }
.eac-academic-calendar .eac-calendar-scroll { filter: none; will-change: transform, clip-path; }
.eac-calendar-scroll-sheet { clip-path: inset(13% 0 13% 0); z-index: 0; }
.eac-calendar-scroll-top { clip-path: inset(0 0 84% 0); z-index: 2; }
.eac-calendar-scroll-bottom { clip-path: inset(84% 0 0 0); z-index: 2; }
.eac-academic-calendar .eac-calendar-paper { z-index: 1; }
.eac-academic-calendar .eac-calendar-dialog::backdrop { animation: eac-calendar-curtain-in 650ms ease both; }
.eac-academic-calendar .eac-calendar-dialog.is-closing::backdrop { animation: eac-calendar-curtain-out 780ms ease both; }
@keyframes eac-calendar-curtain-in { from { background: #07142300; backdrop-filter: blur(0); } to { background: #07142399; backdrop-filter: blur(3px); } }
@keyframes eac-calendar-curtain-out { from { background: #07142399; backdrop-filter: blur(3px); } to { background: #07142300; backdrop-filter: blur(0); } }
@media (prefers-reduced-motion: reduce) {
  .eac-academic-calendar .eac-calendar-dialog::backdrop { animation: none !important; }
  .eac-academic-calendar .eac-calendar-scroll { will-change: auto; }
}
