:root {
    color-scheme: dark;
    --bg: #0d1016;
    --surface: #151a22;
    --surface-soft: rgba(255, 255, 255, .035);
    --surface-hover: rgba(255, 255, 255, .065);
    --text: #edf2f8;
    --muted: #8795a8;
    --muted-2: #627084;
    --blue: #77adf7;
    --cyan: #63dfcf;
    --danger: #ff8b91;
    --focus: rgba(99, 223, 207, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 20% -10%, rgba(73, 139, 181, .13), transparent 31rem),
        radial-gradient(circle at 82% 2%, rgba(71, 177, 158, .09), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.7;
}
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar { height: 58px; padding: 9px 22px; }
.topbar-inner {
    width: min(100%, 860px);
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-tools { display: flex; align-items: center; gap: 8px; direction: ltr; }
.mini-brand { display: flex; align-items: baseline; gap: 7px; direction: ltr; }
.mini-brand span { color: var(--cyan); font: 700 25px/1 Georgia, serif; }
.mini-brand strong { color: #718095; font: 500 10px/1 Georgia, serif; letter-spacing: .12em; }
.topbar nav { display: flex; gap: 20px; color: var(--muted); font-size: 10px; }
.topbar nav a:hover { color: var(--text); }
.language-control {
    min-width: 138px;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted-2);
    font-size: 9px;
}
.language-control select {
    min-width: 0;
    max-width: 90px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #bdc8d6;
    cursor: pointer;
    font-size: 10px;
}
.language-control option { background: var(--surface); color: var(--text); }

.microservices-launcher {
    width: 30px;
    height: 30px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 10px;
    background: var(--surface-soft);
    color: #8b9aad;
    transition: color .18s, background .18s, border-color .18s;
}
.microservices-launcher:hover,
.microservices-launcher[aria-expanded="true"] {
    border-color: rgba(99, 223, 207, .24);
    background: rgba(99, 223, 207, .09);
    color: var(--cyan);
}
.microservices-launcher > span {
    width: 11px;
    height: 11px;
    display: grid;
    grid-template-columns: repeat(2, 4px);
    grid-template-rows: repeat(2, 4px);
    gap: 3px;
}
.microservices-launcher i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.microservices-launcher:focus-visible,
.microservices-close:focus-visible,
.microservice-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

body.microservices-open { overflow: hidden; }
.microservices-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: start center;
    overflow: hidden auto;
    padding: max(72px, 9vh) 12px 24px;
    background: rgba(5, 8, 13, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.microservices-overlay[hidden] { display: none; }
.microservices-dialog {
    position: relative;
    width: min(410px, calc(100vw - 24px));
    max-height: calc(100dvh - 96px);
    overflow: hidden auto;
    padding: 45px 18px 20px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}
.microservices-close {
    position: absolute;
    inset-block-start: 11px;
    inset-inline-end: 11px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
}
.microservices-close:hover { background: var(--surface-hover); color: var(--text); }
.microservices-close svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.microservices-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    direction: ltr;
}
.microservice-item {
    min-width: 0;
    min-height: 112px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 13px 8px 11px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 17px;
    background: var(--surface-soft);
    color: #c7d1dd;
    text-align: center;
    transition: transform .18s, background .18s, border-color .18s, color .18s;
}
.microservice-item:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 223, 207, .15);
    background: var(--surface-hover);
    color: var(--text);
}
.microservice-item[aria-current="page"] { border-color: rgba(99, 223, 207, .22); }
.microservice-item img {
    width: 54px;
    height: 54px;
    display: block;
    padding: 8px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .055);
    object-fit: contain;
}
.microservice-item span {
    width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.microservice-skeleton {
    min-height: 112px;
    border-radius: 17px;
    background: linear-gradient(100deg, var(--surface-soft) 25%, var(--surface-hover) 50%, var(--surface-soft) 75%);
    background-size: 220% 100%;
    animation: microservices-loading 1.2s linear infinite;
}
.microservices-status {
    grid-column: 1 / -1;
    margin: 24px 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}
@keyframes microservices-loading { to { background-position: -220% 0; } }

main { width: min(100%, 860px); margin: auto; padding: 0 20px 74px; }
.hero {
    min-height: 335px;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    place-content: center;
    justify-items: center;
    gap: 28px;
    padding: 20px 0 42px;
    text-align: center;
}
.hero-copy { display: grid; justify-items: center; }
.hero h1 {
    margin: 0;
    padding-bottom: .06em;
    background: linear-gradient(105deg, #d7efff 8%, #8dd8f5 48%, #63dfcf 90%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font: 700 clamp(70px, 13vw, 106px)/1 Georgia, "Times New Roman", serif;
    letter-spacing: -.065em;
    direction: ltr;
}
.product-name {
    margin-top: -4px;
    color: #78879b;
    font: 600 11px/1.2 Georgia, serif;
    letter-spacing: .42em;
    text-transform: uppercase;
    direction: ltr;
}
.search-form { width: 100%; }
.searchbox {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 7px 0 17px;
    border-radius: 999px;
    background: #171c25;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .075);
    transition: box-shadow .2s, background .2s;
}
[dir="ltr"] .searchbox { padding: 0 7px 0 17px; }
.searchbox:focus-within {
    background: #191f29;
    box-shadow: 0 0 0 4px var(--focus), 0 14px 34px rgba(0, 0, 0, .2);
}
.searchbox > svg { width: 18px; fill: none; stroke: #91a1b6; stroke-width: 1.7; flex: 0 0 auto; }
.searchbox input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.searchbox input::placeholder { color: #758398; }
.searchbox button {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(99, 223, 207, .11);
    color: #baf3eb;
}
.searchbox button:hover { background: rgba(99, 223, 207, .19); }
.searchbox button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.topic-slider {
    width: min(100%, 640px);
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 4px;
}
.topic-nav {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #59687c;
    font: 17px/1 Arial;
}
.topic-nav:hover { background: var(--surface-soft); color: #afbccd; }
.suggestions {
    display: flex;
    gap: 6px;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.suggestions button {
    flex: 0 0 auto;
    scroll-snap-align: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #718095;
    padding: 5px 10px;
    white-space: nowrap;
    font-size: 9px;
    transition: background .18s, color .18s;
}
.suggestions button:hover { color: #b9c7d7; }
.suggestions button.active { background: rgba(99, 223, 207, .10); color: #a8e9e0; }

.date-answer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 24px 25px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .022);
}
.date-main { display: grid; }
.date-weekday { color: var(--cyan); font-size: 11px; font-weight: 800; }
.date-number { font-size: clamp(25px, 4.4vw, 39px); font-weight: 800; line-height: 1.45; }
.date-meta { color: var(--muted-2); font-size: 9px; }
.equivalents { display: flex; gap: 21px; align-items: stretch; }
.equivalents article { min-width: 110px; display: grid; align-content: center; gap: 2px; }
.equivalents span { color: var(--muted-2); font-size: 8px; }
.equivalents strong { color: #b7c3d2; font-size: 10px; direction: ltr; text-align: start; }

.content-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    padding-top: 48px;
}
.panel { min-width: 0; }
.calendar-panel {
    align-self: start;
    border-radius: 17px;
    background: rgba(255, 255, 255, .028);
    overflow: hidden;
}
.panel-head {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 11px 14px;
}
.panel-head .eyebrow { display: none; }
.panel-head h2 { margin: 0; font-size: 14px; }
.calendar-actions { display: flex; gap: 2px; }
.calendar-actions button {
    min-width: 31px;
    height: 31px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
}
.calendar-actions button:hover { background: var(--surface-hover); color: white; }
.calendar-systems { display: flex; gap: 3px; padding: 0 11px 7px; }
.calendar-systems button {
    border: 0;
    border-radius: 999px;
    padding: 5px 9px;
    background: transparent;
    color: #69778a;
    font-size: 9px;
}
.calendar-systems button.active { background: rgba(119, 173, 247, .11); color: #9fc8ff; }
.weekdays, .month-grid { display: grid; grid-template-columns: repeat(7, 1fr); direction: rtl; }
[dir="ltr"] .weekdays, [dir="ltr"] .month-grid { direction: ltr; }
.weekdays { padding: 6px 9px 2px; color: #59677a; text-align: center; font-size: 8px; }
.month-grid { gap: 1px; padding: 5px 9px 11px; }
.calendar-day {
    position: relative;
    min-height: 43px;
    display: grid;
    place-items: center;
    align-content: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #b7c2d0;
}
.calendar-day:hover { background: var(--surface-hover); }
.calendar-day.other { opacity: .22; }
.calendar-day.today { background: rgba(119, 173, 247, .10); }
.calendar-day.selected { background: var(--cyan); color: #071311; }
.calendar-day.holiday { color: var(--danger); }
.calendar-day.holiday.today { background: rgba(255, 139, 145, .10); }
.calendar-day.holiday.selected { background: #e5646d; color: #fff; }
.calendar-day strong { font-size: 11px; }
.calendar-day small { color: #5f6e82; font-size: 7px; direction: ltr; }
.calendar-day.selected small { color: #24554f; }
.calendar-day.holiday small { color: #9d626d; }
.calendar-day.holiday.selected small { color: rgba(255, 255, 255, .72); }
.calendar-day.has-event::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cyan);
}
.calendar-day.selected::after { background: #071311; }
.calendar-day.holiday::after, .calendar-day.holiday.selected::after { background: #ffb1b6; }

.day-panel { background: transparent; }
.day-panel > .panel-head { min-height: 51px; padding: 0 0 8px; }
.day-panel > .panel-head h2 { font-size: 19px; }
.day-panel #jump-date {
    width: 126px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 7px 10px;
    background: var(--surface-soft);
    color: #95a3b4;
    color-scheme: dark;
    font-size: 9px;
}
.day-tabs { display: flex; gap: 16px; padding: 7px 0 12px; overflow: auto; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tabs button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #718095;
    padding: 5px 0;
    white-space: nowrap;
    font-size: 9px;
}
.day-tabs button.active { color: #a9ece3; }
.day-tabs button span {
    display: inline-grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    margin-inline-start: 4px;
    border-radius: 999px;
    background: rgba(99, 223, 207, .10);
    color: #9ddfd7;
    font-size: 7px;
}
.event-list { display: grid; gap: 7px; max-height: 510px; overflow: auto; padding-inline-end: 3px; }
.event-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 11px;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-soft);
}
.event-year { color: var(--cyan); font: 700 14px/1.5 Georgia, serif; direction: ltr; text-align: start; }
.event-year.tag {
    align-self: start;
    width: max-content;
    max-width: 58px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(119, 173, 247, .10);
    color: #99c2f8;
    font: 700 8px/1.5 Tahoma, sans-serif;
    direction: inherit;
    text-align: center;
}
.event-year.tag.holiday { background: rgba(255, 139, 145, .11); color: #ffacb0; }
.event-copy p { margin: 0; color: #c8d2df; font-size: 10px; line-height: 1.8; }
.event-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; color: #637287; font-size: 8px; }
.event-copy a { color: #73a4e6; }
.source-note { padding: 10px 3px; color: #566478; font-size: 8px; }
.empty { padding: 28px 5px; color: #718095; text-align: center; font-size: 10px; }
.skeleton {
    height: 62px;
    margin: 3px 0;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, .06), rgba(255, 255, 255, .022));
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite;
}
.skeleton.short { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.history-section { padding-top: 74px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 14px; }
.eyebrow { color: var(--cyan); font-size: 8px; font-weight: 800; letter-spacing: .15em; direction: ltr; }
.section-head h2 { margin: 4px 0 0; font-size: 22px; }
.section-head p { margin: 0; color: #627085; font-size: 9px; }
.timeline { display: grid; gap: 7px; }
.timeline-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: start;
    gap: 15px;
    padding: 13px 14px;
    border-radius: 12px;
}
.timeline-card:hover { background: var(--surface-soft); }
.timeline-card .year { color: #8cd8cf; font: 700 16px Georgia, serif; direction: ltr; text-align: start; }
.timeline-card p { margin: 0; color: #b8c3d1; font-size: 10px; }
.timeline-card a { color: #6f9fdf; font-size: 8px; white-space: nowrap; }

.search-results { margin-top: 58px; border-radius: 17px; background: rgba(255, 255, 255, .02); padding: 4px 11px 11px; }
.search-results > .panel-head { padding: 7px 2px 10px; }
.close-results { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #8997a9; font-size: 19px; }
.close-results:hover { background: var(--surface-hover); }
.results-list { display: grid; gap: 5px; }
.result-item { display: block; padding: 12px; border-radius: 11px; }
.result-item:hover { background: var(--surface-soft); }
.result-item:hover strong { color: var(--cyan); }
.result-item strong { display: block; color: #d7e1ed; font-size: 13px; }
.result-item p { max-width: 650px; margin: 4px 0; color: #8796a9; font-size: 9px; }
.result-item small { color: #6797d8; font-size: 8px; }

body > footer {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 max(20px, calc((100% - 820px) / 2));
    color: #526073;
    font-size: 8px;
}
body > footer span:first-child { color: #74c9be; font-family: Georgia, serif; direction: ltr; }

[dir="ltr"] .calendar-actions button[data-action="next"],
[dir="ltr"] .calendar-actions button[data-action="prev"] { transform: rotate(180deg); }
[dir="rtl"] .searchbox button svg { transform: rotate(180deg); }

@media (max-width: 760px) {
    .topbar nav { display: none; }
    .hero { min-height: 310px; }
    .date-answer { grid-template-columns: 1fr; gap: 20px; }
    .equivalents { overflow: auto; }
    .equivalents article { flex: 1; }
    .content-grid { grid-template-columns: 1fr; gap: 44px; }
    .calendar-panel { width: min(100%, 410px); justify-self: center; }
    .day-panel { max-width: 650px; }
}

@media (max-width: 520px) {
    .topbar { height: 54px; padding: 8px 13px; }
    .mini-brand strong { display: none; }
    .brand-tools { gap: 5px; }
    .microservices-launcher { width: 29px; height: 29px; }
    .language-control { min-width: 126px; }
    .microservices-overlay { place-items: center; padding: 12px; }
    .microservices-dialog { width: min(100%, 390px); max-height: calc(100dvh - 24px); padding: 43px 12px 14px; border-radius: 20px; }
    .microservices-grid { gap: 8px; }
    .microservice-item { min-height: 104px; padding-inline: 5px; border-radius: 15px; }
    .microservice-item img { width: 50px; height: 50px; border-radius: 14px; }
    main { padding: 0 13px 56px; }
    .hero { min-height: 285px; padding: 5px 0 34px; gap: 24px; }
    .hero h1 { font-size: 72px; }
    .product-name { font-size: 9px; }
    .searchbox { height: 47px; }
    .topic-slider { width: 100%; }
    .date-answer { padding: 20px; }
    .date-number { font-size: 27px; }
    .equivalents { display: grid; gap: 10px; overflow: visible; }
    .equivalents article { min-width: 0; }
    .content-grid { padding-top: 40px; }
    .calendar-day { min-height: 41px; }
    .calendar-day small { display: none; }
    .day-panel > .panel-head { align-items: start; }
    .day-panel #jump-date { width: 116px; }
    .event-list { max-height: none; }
    .event-item { grid-template-columns: 53px 1fr; padding: 11px; }
    .history-section { padding-top: 58px; }
    .section-head { display: block; }
    .section-head p { margin-top: 4px; }
    .timeline-card { grid-template-columns: 47px 1fr; gap: 11px; padding: 11px 7px; }
    .timeline-card a { grid-column: 2; }
    .search-results { margin-top: 44px; }
    body > footer { display: grid; padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
