body:has(.current-calendar) { background: #f7f9fd; color: #142b4d; }
.page-current-year, .page-current-week { display: block; min-width: 0; padding: 26px clamp(12px, 3vw, 30px) 72px; }
.current-calendar { --cc-ink: #142b4d; --cc-muted: #4a607d; width: min(960px, 100%); min-width: 0; margin: 0 auto; font-family: Arial, sans-serif; }
.current-calendar-heading { margin-bottom: 25px; }
.current-calendar-heading .event-title-panel { margin-bottom: 15px; }
.current-calendar-heading p { max-width: 730px; margin: 0; color: var(--cc-muted); font-size: 15px; line-height: 1.6; }
.calendar-hero { position: relative; overflow: hidden; padding: clamp(22px, 4vw, 38px); border-radius: 22px; color: #fff; box-shadow: 0 17px 38px #1c43892c; }
.current-calendar-year .calendar-hero { background: linear-gradient(125deg, #14366f 0%, #245bd3 72%, #497ae3 100%); }
.current-calendar-week .calendar-hero { background: linear-gradient(125deg, #122d5c 0%, #225285 60%, #2d7e9d 100%); }
.calendar-hero::after { position: absolute; top: -110px; right: -70px; width: 270px; height: 270px; border: 1px solid #ffffff2b; border-radius: 50%; box-shadow: 0 0 0 48px #ffffff08, 0 0 0 95px #ffffff06; content: ''; pointer-events: none; }
.calendar-hero > * { position: relative; z-index: 1; }
.calendar-hero-top { display: flex; justify-content: space-between; gap: 12px; color: #dbe8ff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.calendar-hero-top span:last-child { max-width: 55%; overflow-wrap: anywhere; text-align: right; }
.current-calendar-week .calendar-hero-top { align-items: center; text-transform: none; letter-spacing: normal; }
.current-calendar-week .calendar-hero-top h2 { margin: 0; color: #fff; font-size: clamp(19px, 2.5vw, 25px); line-height: 1.2; }
.current-calendar-week .calendar-hero-top > span { flex: 0 0 auto; max-width: none; overflow-wrap: normal; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.calendar-week-description { max-width: 620px; margin: 9px 0 0; color: #dceaff; font-size: 13px; line-height: 1.5; }
.calendar-year-main { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin: 25px 0 27px; }
.calendar-year-main p { margin: 0 0 3px; color: #e7efff; font-size: clamp(16px, 2vw, 20px); }
.calendar-year-main > div:first-child time { display: block; font-size: clamp(82px, 14vw, 145px); font-weight: 800; line-height: 1; letter-spacing: -.08em; }
.calendar-year-date { max-width: 275px; padding: 15px 17px; border: 1px solid #ffffff4b; border-radius: 13px; background: #ffffff18; }
.calendar-year-date span, .calendar-week-range > span { display: block; margin-bottom: 7px; color: #dce9ff; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.calendar-year-date time { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; }
.calendar-progress-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: #e7efff; font-size: 13px; }
.calendar-progress-heading strong { color: #fff; }
.calendar-hero progress { display: block; width: 100%; height: 10px; border: 0; border-radius: 99px; overflow: hidden; background: #ffffff38; }
.calendar-hero progress::-webkit-progress-bar { border-radius: 99px; background: #ffffff38; }
.calendar-hero progress::-webkit-progress-value { border-radius: 99px; background: #a9e6df; }
.calendar-hero progress::-moz-progress-bar { border-radius: 99px; background: #a9e6df; }
.calendar-year-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.calendar-year-stats > div { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 104px; padding: 14px 16px; border: 1px solid #ffffff3b; border-radius: 12px; background: #ffffff15; }
.calendar-year-stats > div > span { display: block; margin-bottom: 9px; color: #deebff; font-size: 11px; line-height: 1.3; }
.calendar-year-stats strong { display: block; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; }
.calendar-year-stats strong small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.calendar-week-main { display: grid; grid-template-columns: minmax(165px, 245px) minmax(0, 1fr); align-items: stretch; gap: 14px; margin: 24px 0 22px; }
.calendar-week-number { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 20px; border: 1px solid #ffffff4a; border-radius: 16px; background: #ffffff1a; text-align: center; }
.calendar-week-number-label { margin: 0; color: #dceeff; font-size: 14px; font-weight: 700; }
.calendar-week-number-value { margin: 0; font-size: clamp(76px, 12vw, 120px); font-weight: 700; line-height: 1; letter-spacing: -.08em; }
.calendar-week-range { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 18px 22px; border: 1px solid #ffffff4a; border-radius: 16px; background: #ffffff12; }
.calendar-week-range strong { font-size: clamp(18px, 2.3vw, 24px); line-height: 1.35; }
.calendar-week-range small { margin-top: 14px; color: #e4f1ff; font-size: 12px; }
.calendar-week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar-week-day { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding: 13px 5px; border: 1px solid #ffffff34; border-radius: 11px; background: #ffffff15; }
.calendar-week-day span { color: #e5f1ff; font-size: 11px; font-weight: 700; }
.calendar-week-day strong { font-size: 22px; line-height: 1; }
.calendar-week-day.is-today { border-color: #fff; background: #fff; color: #194a82; box-shadow: 0 7px 20px #0e2c5860; }
.calendar-week-day.is-today span { color: #285d8d; }
.calendar-week-today { margin: 17px 0 0; color: #e7f2ff; font-size: 13px; line-height: 1.4; }
.calendar-weeks { margin-top: 24px; padding: 23px 25px 25px; border: 1px solid #d7e2f2; border-radius: 16px; background: #fff; }
.calendar-weeks-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.calendar-weeks-heading > div > span { color: #276597; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.calendar-weeks-heading h2 { margin: 7px 0 7px; color: var(--cc-ink); font-size: clamp(20px, 2.8vw, 25px); line-height: 1.25; }
.calendar-weeks-heading p { max-width: 680px; margin: 0; color: var(--cc-muted); font-size: 13px; line-height: 1.5; }
.calendar-weeks-heading > strong { flex: 0 0 auto; margin-top: 3px; padding: 7px 10px; border-radius: 99px; background: #e8f3f7; color: #205a79; font-size: 11px; }
.calendar-weeks-scroll { max-height: 385px; overflow: auto; border: 1px solid #d9e3ef; border-radius: 11px; scrollbar-color: #a9bfd4 #f3f7fb; }
.calendar-weeks-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.calendar-weeks-table th, .calendar-weeks-table td { padding: 10px 14px; border-bottom: 1px solid #e3eaf2; text-align: left; }
.calendar-weeks-table tr:last-child th, .calendar-weeks-table tr:last-child td { border-bottom: 0; }
.calendar-weeks-table thead th { position: sticky; top: 0; z-index: 1; background: #eaf1f8; color: #365572; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.calendar-weeks-table thead th:first-child { width: 27%; }
.calendar-weeks-table tbody th { color: #153e64; font-size: 13px; }
.calendar-weeks-table tbody th strong { font-size: 14px; }
.calendar-weeks-table tbody th span { display: none; margin-left: 8px; color: #166277; font-size: 11px; font-weight: 700; }
.calendar-weeks-table tbody td { color: #425e76; font-size: 13px; }
.calendar-weeks-table tbody tr:nth-child(even) { background: #f8fbfd; }
.calendar-weeks-table tbody tr.is-current { background: #e1f3f3; }
.calendar-weeks-table tbody tr.is-current th { box-shadow: inset 4px 0 #158098; }
.calendar-weeks-table tbody tr.is-current th span { display: inline; }
.calendar-weeks-scroll:focus-visible { outline: 3px solid #245ad7; outline-offset: 3px; }
.calendar-explain { margin-top: 24px; padding: 23px 25px; border: 1px solid #d7e2f2; border-radius: 16px; background: #fff; }
.calendar-explain h2 { margin: 0 0 9px; color: var(--cc-ink); font-size: clamp(20px, 2.8vw, 25px); line-height: 1.25; }
.calendar-explain p { max-width: 800px; margin: 0; color: var(--cc-muted); font-size: 14px; line-height: 1.7; }
.calendar-other-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 24px 0; }
.calendar-other-links a { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; min-width: 0; padding: 17px 18px; border: 1px solid #d7e2f2; border-radius: 14px; background: #fff; color: #163a72; text-decoration: none; }
.calendar-other-links a:hover { border-color: #5b8ee1; background: #f3f7ff; }
.calendar-other-links a > span { grid-column: 1; color: var(--cc-muted); font-size: 11px; }
.calendar-other-links strong { grid-column: 1; font-size: 15px; line-height: 1.3; }
.calendar-other-links svg { grid-column: 2; grid-row: 1 / span 2; width: 19px; height: 19px; }
.current-calendar > .share-panel { margin-top: 24px; }
.current-calendar a:focus-visible { outline: 3px solid #245ad7; outline-offset: 3px; }
@media (max-width: 620px) {
  .page-current-year, .page-current-week { padding-top: 20px; }
  .current-calendar-heading p { font-size: 14px; }
  .calendar-hero { padding: 19px 16px; border-radius: 16px; }
  .calendar-year-main { display: block; margin: 23px 0; }
  .calendar-year-main > div:first-child time { font-size: clamp(78px, 22vw, 110px); }
  .calendar-year-date { max-width: none; margin-top: 17px; padding: 12px 14px; }
  .calendar-year-stats { gap: 7px; margin-top: 17px; }
  .calendar-year-stats > div { min-height: 104px; padding: 11px 9px; }
  .calendar-year-stats > div > span { font-size: 10px; }
  .calendar-year-stats strong { font-size: 22px; }
  .calendar-year-stats strong small { font-size: 10px; }
  .calendar-week-main { grid-template-columns: 1fr; gap: 9px; margin: 20px 0 16px; }
  .current-calendar-week .calendar-hero-top h2 { font-size: 17px; }
  .calendar-week-description { margin-top: 8px; font-size: 12px; }
  .calendar-week-number { padding: 14px 18px; }
  .calendar-week-number-value { font-size: 76px; }
  .calendar-week-range { padding: 14px 16px; }
  .calendar-week-range strong { font-size: 18px; }
  .calendar-week-days { gap: 4px; }
  .calendar-week-day { gap: 8px; padding: 10px 1px; border-radius: 8px; }
  .calendar-week-day span { font-size: 9px; }
  .calendar-week-day strong { font-size: 17px; }
  .calendar-weeks { padding: 19px 14px; }
  .calendar-weeks-heading { display: block; }
  .calendar-weeks-heading > strong { display: inline-block; margin-top: 11px; }
  .calendar-weeks-scroll { max-height: 340px; }
  .calendar-weeks-table th, .calendar-weeks-table td { padding: 10px 8px; }
  .calendar-weeks-table thead th:first-child { width: 30%; }
  .calendar-weeks-table tbody td { font-size: 12px; }
  .calendar-weeks-table tbody th span { margin: 2px 0 0; font-size: 10px; }
  .calendar-weeks-table tbody tr.is-current th span { display: block; }
  .calendar-explain { padding: 19px 17px; }
  .calendar-other-links { grid-template-columns: 1fr; }
}
