@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-v20-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-v20-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-card: 18px;
    --bg: #f5f5f5;
    --paper: #ffffff;
    --text: #20282e;
    --muted: #61676c;
    --line: #dedede;
    --action: #123442;
    --action-hover: #1d4b60;
    --accent: #285b73;
    --accent-dark: #123442;
    --accent-warm: #456c80;
    --accent-cool: #285b73;
    --soft: #f0f0f0;
    --soft-warm: #f4f4f4;
    --radius: 4px;
    --control-padding-inline: 18px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.045);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.035), 0 5px 16px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.045), 0 10px 26px rgba(0, 0, 0, 0.065);
    --shadow-strong: 0 12px 32px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: var(--site-header-height, 78px);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.62;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
}

p {
    margin: 0 0 14px;
}

p:last-child {
    margin-bottom: 0;
}

small {
    font-size: var(--text-sm);
    line-height: 1.45;
}

strong,
b {
    font-weight: 750;
}

a {
    color: var(--accent);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-dark);
}

:focus-visible {
    outline: 3px solid rgba(40, 91, 115, 0.28);
    outline-offset: 3px;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    will-change: transform;
}

.site-header.is-hidden {
    transform: translateY(calc(-100% - 8px));
}

.site-header.is-menu-open,
.site-header:focus-within {
    transform: translateY(0);
}

.site-header-inner {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 44px;
    gap: 18px;
    align-items: center;
}

.header-top {
    display: contents;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.brand {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: block;
    flex: 0 0 auto;
    box-shadow: var(--shadow-soft);
}

.brand-text {
    display: grid;
    gap: 1px;
    min-width: 92px;
}

.brand-text strong {
    color: var(--text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
}

.brand-text small {
    color: var(--muted);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.1;
}

.nav {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: visible;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 650;
    align-items: center;
    justify-content: flex-end;
}

.nav-link,
.nav-menu a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--muted);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.nav-link:hover,
.nav-menu a:hover {
    border-color: rgba(40, 91, 115, 0.18);
    color: var(--text);
}

.nav-link.active,
.nav-menu a.active {
    border-color: rgba(0, 0, 0, 0.18);
    background: var(--action);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
}

.nav-group {
    position: relative;
    flex: 0 0 auto;
}

.nav-group-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.nav-group-toggle span {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.16s ease;
}

.nav-group.is-open .nav-group-toggle span,
.nav-group:hover .nav-group-toggle span,
.nav-group:focus-within .nav-group-toggle span {
    transform: translateY(2px) rotate(225deg);
}

.nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    display: none;
    min-width: 260px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-strong);
}

.nav-menu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 10px;
}

.nav-menu-wide {
    min-width: 340px;
}

.nav-group.is-open .nav-menu,
.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
    display: grid;
    gap: 4px;
}

.nav-menu a {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    color: var(--text);
}

.nav-menu a strong {
    font-size: 14px;
    line-height: 1.25;
}

.nav-menu a small {
    color: var(--muted);
    font-size: var(--text-xs);
    font-weight: 650;
    line-height: 1.35;
}

.nav-menu a.active small {
    color: rgba(255, 255, 255, 0.82);
}

/* Mobile modal reuses the main navigation; desktop dropdowns stay in the header. */
.mobile-navigation {
    position: fixed;
    inset: 0 0 0 auto;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--paper);
    color: var(--text);
    box-shadow: none;
    overflow: hidden;
}

.mobile-navigation:not([open]) {
    display: none;
}

.mobile-navigation[open] {
    display: flex;
    flex-direction: column;
}

.mobile-navigation::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.mobile-navigation-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
    border-bottom: 1px solid var(--line);
}

.mobile-navigation-header h2 {
    flex: 1;
    margin: 0;
    font-size: 19px;
}

.mobile-navigation-back,
.mobile-navigation-close {
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--radius);
    background: var(--soft);
    color: var(--action);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.mobile-navigation-close {
    width: 44px;
    font-size: 28px;
    line-height: 1;
}

.mobile-navigation-back:hover,
.mobile-navigation-close:hover {
    background: var(--line);
}

.mobile-navigation-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
}

.mobile-navigation .nav {
    display: grid;
    gap: 0;
    padding: 0;
}

.mobile-navigation .nav-link {
    min-height: 52px;
    padding: 14px 12px;
    text-align: left;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.mobile-navigation .nav-group-toggle span {
    transform: rotate(-45deg);
}

.mobile-navigation .nav-menu {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.mobile-navigation .nav-menu a {
    min-width: 0;
    padding: 14px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.mobile-navigation .nav-group.is-open .nav-menu {
    gap: 0;
}

.mobile-navigation.is-submenu-open .nav > a,
.mobile-navigation.is-submenu-open .nav-group:not(.is-open),
.mobile-navigation.is-submenu-open .nav-group-toggle {
    display: none;
}

body.is-navigation-open {
    position: fixed;
    top: var(--navigation-scroll);
    width: 100%;
    overflow: hidden;
}

.site-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

.header-search {
    position: static;
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 44px;
}

.header-search-toggle {
    position: relative;
    z-index: 72;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--accent-dark);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.header-search-toggle:hover {
    border-color: rgba(40, 91, 115, 0.3);
    color: var(--accent);
    box-shadow: var(--shadow);
}

.header-search-close {
    display: none;
}

.header-search .site-search {
    position: absolute;
    top: 9px;
    right: 16px;
    width: min(700px, calc(100% - 300px));
    z-index: 71;
    min-width: 0;
    padding: 4px 56px 4px 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scaleX(0.08);
    transform-origin: right center;
    transition: opacity 0.18s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.site-header.is-search-open .header-search .site-search {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleX(1);
    transition: opacity 0.18s ease, transform 0.22s ease, visibility 0s;
}

.site-header.is-search-open .header-search-icon {
    display: none;
}

.site-header.is-search-open .header-search-close {
    display: block;
}

.header-search .site-search input:focus {
    border-color: transparent;
    background: #fff;
    box-shadow: none;
    outline: 0;
}

.header-search .site-search input,
.header-search .site-search button {
    box-sizing: border-box;
    height: 44px;
    align-self: center;
}

.header-search .site-search button {
    padding-top: 0;
    padding-bottom: 0;
}

.site-search input,
.search-large input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.site-search input:focus,
.search-large input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(40, 91, 115, 0.42);
    box-shadow: 0 0 0 4px rgba(40, 91, 115, 0.1);
    outline: 0;
}

.site-search button,
.search-large button {
    border: 0;
    border-radius: var(--radius);
    padding: 9px var(--control-padding-inline);
    background: var(--action);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    align-self: stretch;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.site-search button:hover,
.search-large button:hover,
.button:hover {
    background: var(--action-hover);
    color: #fff;
    box-shadow: var(--shadow-hover);
}

.page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 16px 20px 48px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs strong {
    color: var(--text);
    font-weight: 700;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.pager a {
    padding: 9px var(--control-padding-inline);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: end;
    padding: 44px 0 36px;
    border-bottom: 1px solid var(--line);
}

.hero h1,
h1 {
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 700px;
}

.home-search {
    max-width: 640px;
    margin-top: 24px;
}

.search-large label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 700;
}

.search-large div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.hero h1,
h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 5.4vw, 64px);
    font-weight: 800;
    line-height: 1.05;
}

h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 750;
    line-height: 1.18;
}

.eyebrow,
.lead {
    color: var(--muted);
}

.eyebrow {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.lead {
    max-width: 760px;
    font-size: 19px;
    line-height: 1.55;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-card-grid {
    margin-top: 28px;
}

.home-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
    gap: 20px;
    align-items: start;
    padding: 28px 0 18px;
}

.today-dashboard-card,
.home-link-section,
.home-mini-card,
.home-newsletter-card,
.home-mini-search {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.today-dashboard-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    background: #fff;
}


.today-dashboard-card .lead {
    max-width: 740px;
    overflow-wrap: anywhere;
}

.today-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.today-identity h1 {
    max-width: 920px;
    margin-bottom: 10px;
    font-size: clamp(52px, 5.4vw, 76px);
    line-height: 0.98;
}

.today-identity .eyebrow,
.home-editorial-section .section-kicker,
.home-tools-section .section-kicker {
    color: var(--accent-warm);
}

.section-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.today-date-title {
    margin: 0 0 16px;
    color: var(--text);
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 750;
    line-height: 1.08;
}

.today-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.today-metric-card,
.today-daily-fact,
.today-history-event,
.today-world-day {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
}

.today-metric-card {
    display: grid;
    gap: 3px;
    min-height: 96px;
    padding: 16px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.today-metric-card:hover,
.today-daily-fact:hover,
.today-history-event:hover,
.today-world-day:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow);
}

.today-metric-card span,
.today-daily-fact span,
.today-history-intro .section-kicker,
.today-world-day span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.today-metric-card strong {
    color: var(--accent);
    font-size: 27px;
    line-height: 1.05;
}

.today-metric-card small,
.today-daily-fact small,
.today-history-event small {
    color: var(--muted);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.35;
}

.today-daily-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.today-daily-fact {
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 104px;
    padding: 16px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.today-daily-fact strong {
    font-size: var(--text-card);
    line-height: 1.22;
}

.today-daily-fact strong a {
    color: var(--text);
    text-decoration: none;
}

.today-daily-fact strong a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.today-fact:hover,
.portal-link-grid a:hover,
.home-mini-card a:hover,
.home-mini-card.moon-mini-card:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow);
}

.today-fact span,
.today-history-compact h2,
.home-mini-card h2,
.home-mini-search label,
.home-newsletter-card label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.today-fact strong {
    font-size: 18px;
    line-height: 1.22;
}

.today-fact small {
    color: var(--muted);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.25;
}

.today-fact strong a {
    color: var(--text);
    text-decoration: none;
}

.today-fact strong a:hover {
    color: var(--accent);
}

.today-history-panel {
    display: grid;
    grid-template-columns: minmax(210px, 0.35fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(40, 91, 115, 0.14);
}

.today-history-intro {
    display: grid;
    align-content: start;
    gap: 10px;
}

.today-history-intro h2 {
    margin: 0;
    font-size: 28px;
}

.today-history-intro p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.today-world-day {
    display: grid;
    gap: 4px;
    padding: 12px;
}

.today-world-day strong {
    font-size: 15px;
    line-height: 1.25;
}

.today-history-event-list {
    display: grid;
    gap: 10px;
}

.today-history-event {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 13px 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.today-history-event time {
    color: var(--accent);
    font-weight: 800;
    line-height: 1.25;
}

.today-history-event span {
    font-size: var(--text-card);
    font-weight: 800;
    line-height: 1.25;
}

.today-history-event small {
    grid-column: 2;
    margin-top: -4px;
}

.today-history-compact {
    display: grid;
    grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(40, 91, 115, 0.14);
}

.today-history-compact > div:first-child {
    display: grid;
    align-content: start;
    gap: 8px;
}

.today-history-compact h2,
.home-mini-card h2 {
    margin: 0;
}

.home-mini-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.home-mini-card-header a {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.home-mini-card-header a:hover {
    color: var(--accent-dark);
}

.home-mini-card.moon-mini-card {
    color: var(--text);
    text-decoration: none;
}

.moon-mini-card .home-mini-card-header span {
    color: var(--accent);
    font-size: 18px;
    font-weight: 800;
}

.moon-mini-card strong {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    line-height: 1.2;
}

.moon-mini-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.sky-mini-card {
    display: grid;
    gap: 10px;
}

.sky-mini-row {
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.sky-mini-row:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow);
}

.sky-mini-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.sky-mini-row strong {
    font-size: 20px;
    line-height: 1.18;
}

.sky-mini-row small {
    color: var(--muted);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.35;
}

.today-history-compact a {
    font-weight: 800;
    text-decoration: none;
}

.today-extra-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(40, 91, 115, 0.14);
}

.today-extra-strip a {
    display: grid;
    gap: 4px;
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.today-extra-strip a:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow);
}

.today-extra-strip span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.today-extra-strip strong {
    font-size: 15px;
    line-height: 1.25;
}

.today-extra-cta strong {
    color: var(--accent);
}

.today-history-list {
    display: grid;
    gap: 8px;
}

.today-history-list a,
.mini-agenda-list a,
.mini-countdown-list a {
    display: grid;
    gap: 2px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mini-agenda-list a {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 4px;
    align-items: start;
}

.mini-agenda-distance {
    justify-self: end;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.mini-agenda-title {
    grid-column: 1 / -1;
}

.today-history-list time,
.mini-agenda-list time,
.mini-countdown-list time {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.today-history-list span,
.mini-agenda-list span,
.mini-countdown-list span {
    font-weight: 800;
    line-height: 1.25;
}

.home-side-stack {
    display: grid;
    gap: 14px;
    align-content: start;
}

.home-mini-search,
.home-newsletter-card,
.home-mini-card {
    padding: 18px;
}

.home-mini-search div,
.home-newsletter-card div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    margin-top: 8px;
}

.home-mini-search input,
.home-newsletter-card input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 9px 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.home-mini-search button,
.home-newsletter-card button {
    border: 0;
    border-radius: var(--radius);
    padding: 9px var(--control-padding-inline);
    background: var(--action);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-mini-search button:hover,
.home-newsletter-card button:hover {
    box-shadow: var(--shadow-hover);
}

.mini-agenda-list,
.mini-countdown-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.home-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.home-editorial-section {
    display: grid;
    grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.home-editorial-intro {
    display: grid;
    align-content: start;
    gap: 10px;
}

.home-editorial-intro h2 {
    margin: 0;
    font-size: 30px;
}

.home-editorial-intro > p:not(.section-kicker) {
    color: var(--muted);
}

.home-editorial-intro .button {
    justify-self: start;
}

.home-editorial-section .today-history-event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-editorial-section .today-history-event {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 7px;
    min-height: 132px;
    padding: 18px;
}

.home-editorial-section .today-history-event.is-featured {
    grid-row: span 2;
    min-height: 274px;
    align-content: center;
    border-color: rgba(69, 108, 128, 0.3);
    background: var(--soft-warm);
}

.home-editorial-section .today-history-event.is-featured time {
    color: var(--accent-warm);
    font-size: 18px;
}

.home-editorial-section .today-history-event.is-featured span {
    font-size: 25px;
}

.home-editorial-section .today-history-event small {
    grid-column: auto;
    margin: 0;
}

.home-tools-section {
    padding-top: 4px;
}

.home-tools-section .section-heading {
    align-items: start;
}

.home-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-tool-grid a {
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 138px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-tool-grid a:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow-hover);
}

.home-tool-grid span {
    color: var(--accent-warm);
    font-size: 12px;
    font-weight: 800;
}

.home-tool-grid strong {
    margin-top: auto;
    font-size: var(--text-card);
    line-height: 1.2;
}

.home-tool-grid small {
    color: var(--muted);
    font-size: var(--text-sm);
    font-weight: 650;
    line-height: 1.35;
}

.home-history-gateway {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.home-history-gateway .section-heading {
    margin-bottom: 0;
}

.home-link-section {
    padding: 18px;
}

.portal-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.portal-link-grid a {
    display: grid;
    gap: 3px;
    min-height: 74px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.portal-link-grid strong {
    font-weight: 800;
    line-height: 1.22;
}

.portal-link-grid small {
    color: var(--muted);
    font-size: var(--text-sm);
    font-weight: 650;
    line-height: 1.3;
}

.card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    min-height: 188px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.card-body {
    display: grid;
    gap: 10px;
    align-content: start;
}

.today-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(40, 91, 115, 0.16);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.today-panel div {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(40, 91, 115, 0.12);
}

.today-panel div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.today-panel span,
.stat-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
}

.today-panel strong {
    display: block;
    margin-top: 3px;
    font-size: 18px;
    line-height: 1.25;
    color: var(--text);
}

.today-value-links a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.16s ease;
}

.today-value-links span {
    display: inline;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
}

.today-value-links a:hover {
    color: var(--accent);
    border-color: rgba(40, 91, 115, 0.7);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
    gap: 22px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.name-detail-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 0;
    border-bottom: 0;
}

.hero-fact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-fact-pills span {
    display: grid;
    gap: 2px;
    min-width: 130px;
    padding: 11px 14px;
    border: 1px solid rgba(40, 91, 115, 0.16);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.hero-fact-pills small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-fact-pills strong {
    color: var(--text);
    font-size: 16px;
    line-height: 1.2;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
    gap: 22px;
    align-items: end;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.page-hero .search-large {
    align-self: end;
}

.detail-hero .lead {
    max-width: 760px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.summary-stats-right {
    width: min(100%, 360px);
    justify-self: end;
    grid-template-columns: minmax(0, 1fr);
}

.summary-stats div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.summary-stats > div:only-child {
    grid-column: 2;
}

.summary-stats-right > div:only-child {
    grid-column: auto;
}

.summary-stats dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
}

.summary-stats dd {
    margin: 4px 0 0;
    color: var(--accent);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.summary-stats small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.history-date-hero {
    align-items: center;
}

.fact-grid {
    display: grid;
    gap: 10px;
    margin: 0;
}

.fact-grid div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.fact-grid dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
}

.fact-grid dd {
    margin: 3px 0 0;
    font-size: 18px;
    font-weight: 800;
}

.text-block {
    max-width: 760px;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.insight-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.insight-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.insight-card strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
}

.insight-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.linked-insight-card {
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.linked-insight-card:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow);
}

.card h2 {
    font-size: 22px;
}

.mini-link-grid {
    display: grid;
    gap: 8px;
}

.mini-link-grid a,
.feature-link-block {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mini-link-grid a:hover,
.feature-link-block:hover {
    border-color: rgba(40, 91, 115, 0.24);
    color: var(--text);
    box-shadow: var(--shadow);
}

.button {
    display: inline-block;
    margin-top: 10px;
    border: 0;
    padding: 10px var(--control-padding-inline);
    border-radius: var(--radius);
    background: var(--action);
    color: #fff;
    font: inherit;
    text-decoration: none;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(40, 91, 115, 0.28);
    color: var(--accent-dark);
    box-shadow: var(--shadow-soft);
}

.button.secondary:hover {
    border-color: rgba(40, 91, 115, 0.46);
    background: #fff;
    color: var(--accent-dark);
}

.button:hover {
    box-shadow: var(--shadow-hover);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.quick-grid a {
    display: block;
    min-height: 58px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.name-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.name-card {
    display: grid;
    gap: 4px;
    min-height: 78px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.name-card span {
    font-weight: 800;
}

.name-card small {
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.name-card:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow);
}

.name-card[hidden] {
    display: none;
}

.quick-grid a:hover,
.year-card:hover,
.related-grid a:hover,
.countdown-strip a:hover,
.pager a:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow);
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.year-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--text);
    text-decoration: none;
}

.year-card strong {
    font-size: 28px;
}

.year-card span {
    color: var(--accent);
    font-weight: 800;
}

.year-card small {
    color: var(--muted);
}

.link-list {
    padding-left: 20px;
}

.rich-list {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.rich-list li {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.rich-list span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.index-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.index-card-list li {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.index-card-list a {
    font-weight: 800;
    text-decoration: none;
}

.entity-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.entity-card {
    display: grid;
    gap: 6px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.entity-card:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow);
}

.entity-card time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.entity-card span {
    font-weight: 800;
}

.entity-card small {
    color: var(--muted);
    font-size: var(--text-sm);
}

.home-discovery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.saints-discovery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.saints-discovery .compact-entity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-empty-note {
    margin: 0;
    color: var(--muted);
}

.compact-heading {
    gap: 14px;
    margin-bottom: 14px;
}

.compact-heading .button {
    white-space: nowrap;
}

.section-card-action {
    margin-top: 12px;
}

.section-card-action .button {
    width: 100%;
    text-align: center;
}

.compact-entity-grid {
    grid-template-columns: 1fr;
}

.saint-month-list {
    display: grid;
    gap: 28px;
    margin-top: 44px;
}

.saint-month-section {
    display: grid;
    gap: 14px;
}

.saint-month-section .section-heading {
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.columns {
    columns: 3 180px;
}

.source-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.source {
    overflow-wrap: anywhere;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.source h2 {
    font-size: 20px;
}

.source-mini-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.source-mini-list li {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.source-mini-list span,
.source-mini-list small {
    color: var(--muted);
    font-size: 14px;
}

.static-hero {
    grid-template-columns: minmax(0, 1fr);
}

.static-content {
    display: grid;
    gap: 16px;
    max-width: 100%;
}

.static-section {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.static-section p:last-child {
    margin-bottom: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.contact-form,
.contact-aside article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 400;
}

.contact-form .has-error input,
.contact-form .has-error textarea {
    border-color: rgba(225, 29, 72, 0.44);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08), 0 10px 24px rgba(225, 29, 72, 0.06);
}

.contact-form textarea {
    resize: vertical;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-weight: 700;
    box-shadow: var(--shadow);
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.notice.success {
    border-color: rgba(40, 91, 115, 0.22);
    background: #fff;
    color: var(--accent-dark);
}

.notice.error {
    border-color: rgba(225, 29, 72, 0.2);
    background: #fff;
    color: #9f1239;
}

.form-alert {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-weight: 800;
    box-shadow: var(--shadow);
}

.form-alert-error {
    border-color: rgba(225, 29, 72, 0.22);
    background: #fff;
    color: #9f1239;
}

.contact-aside {
    display: grid;
    gap: 14px;
}

.contact-aside h2 {
    font-size: 20px;
}

.newsletter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 22px;
    align-items: start;
}

.newsletter-form .button {
    width: fit-content;
}

.newsletter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.newsletter-actions .button {
    margin-top: 0;
}

.newsletter-unsubscribe {
    margin-left: 0;
}

.calculator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 22px;
    align-items: start;
}

.tool-form,
.calculator-result {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.tool-form {
    display: grid;
    gap: 16px;
}

.tool-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
}

.tool-form input[type="date"],
.tool-form input[type="number"],
.tool-form select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 400;
}

.tool-form input[type="date"]:focus,
.tool-form input[type="number"]:focus,
.tool-form select:focus {
    border-color: rgba(40, 91, 115, 0.42);
    box-shadow: 0 0 0 4px rgba(40, 91, 115, 0.1);
    outline: 0;
}

.date-calculator > div {
    display: grid;
    gap: 16px;
    min-width: 0;
    scroll-margin-top: 110px;
}

.tool-option-grid {
    display: grid;
    gap: 10px;
}

.tool-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
}

.tool-option input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--accent);
}

.tool-option span {
    display: grid;
    gap: 3px;
}

.tool-option small {
    color: var(--muted);
    font-weight: 600;
}

.calculator-result {
    display: grid;
    gap: 16px;
}

.calculator-result h2,
.calculator-result h3 {
    margin-bottom: 0;
}

.calculator-result p {
    margin: 0;
    color: var(--muted);
}

.result-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.result-stat-grid div {
    display: grid;
    gap: 4px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid rgba(40, 91, 115, 0.16);
    border-radius: var(--radius);
    background: #fff;
}

.result-stat-grid span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.result-stat-grid strong {
    color: var(--accent);
    font-size: 34px;
    line-height: 1;
}

.compact-date-list {
    gap: 8px;
}

.compact-date-list .date-card {
    min-height: 0;
}

.newsletter-options {
    display: grid;
    gap: 12px;
}

.contact-form .newsletter-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.contact-form .newsletter-option:hover {
    border-color: rgba(40, 91, 115, 0.24);
    box-shadow: var(--shadow);
}

.contact-form .newsletter-option input {
    width: 18px;
    height: 18px;
    margin: 4px 0 0;
    accent-color: var(--accent);
}

.contact-form .newsletter-option strong,
.contact-form .newsletter-option small {
    display: block;
}

.contact-form .newsletter-option small {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 500;
}

.newsletter-preview {
    display: grid;
    gap: 14px;
}

.newsletter-preview article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.newsletter-preview span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.newsletter-preview h2 {
    margin: 6px 0 8px;
    font-size: 24px;
}

.moon-current-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.moon-current-card > div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.moon-current-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.moon-current-card strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    line-height: 1.1;
}

.moon-current-card p {
    margin-top: 8px;
    color: var(--muted);
}

.astro-current-card,
.zodiac-context-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.astro-current-card > div,
.zodiac-context-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.astro-current-card span,
.zodiac-context-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.astro-current-card strong,
.zodiac-context-card strong {
    display: block;
    margin-top: 6px;
    font-size: 25px;
    line-height: 1.16;
}

.astro-current-card p,
.zodiac-context-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.astro-notice {
    margin-top: 24px;
    margin-bottom: 24px;
}

.zodiac-sign-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.zodiac-sign-card {
    display: grid;
    gap: 6px;
    min-height: 152px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.zodiac-sign-card:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow-hover);
}

.zodiac-sign-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.zodiac-sign-card strong {
    font-size: 24px;
    line-height: 1.1;
}

.zodiac-sign-card small {
    align-self: end;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.zodiac-context-card {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.moon-special-notice {
    margin-top: 24px;
    margin-bottom: 24px;
}

.moon-phase-intro {
    margin-bottom: 28px;
}

.sun-highlights,
.sun-intro {
    margin-bottom: 28px;
}

.sun-answer-card {
    display: grid;
    gap: 8px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.sun-answer-card .eyebrow,
.sun-answer-card h2,
.sun-answer-card p {
    margin: 0;
}

.sun-answer-card h2 {
    font-size: 30px;
}

.sun-answer-card > p:last-of-type {
    max-width: 960px;
    color: var(--muted);
    font-size: var(--text-lg);
    line-height: 1.55;
}

.sun-answer-card > p strong {
    color: var(--text);
}

.sun-twilight-details {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.sun-twilight-details summary {
    width: fit-content;
    color: var(--accent-dark);
    cursor: pointer;
    font-weight: 800;
}

.sun-twilight-details dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 0;
}

.sun-twilight-details dl div {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}

.sun-twilight-details dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.sun-twilight-details dd {
    margin: 3px 0 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
}

.sun-forecast-section {
    margin-bottom: 28px;
}

.sun-forecast-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sun-forecast-card {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.sun-forecast-card time,
.sun-forecast-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.sun-forecast-card strong {
    color: var(--text);
    font-size: 26px;
    line-height: 1.1;
}

.sun-forecast-card small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.working-hours-answer-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
    gap: 18px;
    align-items: stretch;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.working-hours-answer-card > div {
    align-self: center;
}

.working-hours-answer-card .eyebrow,
.working-hours-answer-card h2,
.working-hours-answer-card p {
    margin: 0;
}

.working-hours-answer-card h2 {
    margin-top: 4px;
    font-size: 30px;
}

.working-hours-answer-card p:last-child {
    margin-top: 8px;
    color: var(--muted);
    font-size: var(--text-card);
}

.working-hours-current-month {
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 17px 18px;
    border: 1px solid rgba(40, 91, 115, 0.22);
    border-radius: var(--radius);
    background: var(--soft);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.working-hours-current-month:hover {
    border-color: rgba(40, 91, 115, 0.4);
    color: var(--text);
    box-shadow: var(--shadow-hover);
}

.working-hours-current-month > span {
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.working-hours-current-month strong {
    font-size: 20px;
}

.working-hours-current-month b {
    color: var(--accent-dark);
    font-size: 24px;
}

.working-hours-current-month small {
    color: var(--muted);
}

.working-hours-month-nav {
    display: grid;
    gap: 10px;
}

.working-hours-month-nav > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.working-hours-month-nav > div {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.working-hours-month-nav a {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.working-hours-month-nav a:hover {
    border-color: rgba(40, 91, 115, 0.32);
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.working-hours-month-nav a span {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.working-hours-month-nav a strong {
    color: var(--accent-dark);
    font-size: 14px;
}

.working-hours-table-heading {
    margin-bottom: 14px;
}

.working-hours-table-heading h2,
.working-hours-table-heading p {
    margin: 0;
}

.working-hours-table-heading p {
    margin-top: 4px;
    color: var(--muted);
}

.working-hours-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.working-hours-table-actions .button {
    margin: 0;
}

.working-hours-table-section table {
    font-size: 14px;
}

.working-hours-table-section td:first-child {
    min-width: 188px;
}

.working-hours-table-section tr.is-current-month td {
    background: var(--soft);
}

.working-hours-current-badge {
    width: fit-content;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.working-hours-table-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.working-hours-explanation {
    max-width: 860px;
}

.phase-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid rgba(40, 91, 115, 0.18);
    border-radius: var(--radius);
    background: rgba(243, 241, 255, 0.72);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.related-grid a {
    display: grid;
    gap: 6px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--text);
    text-decoration: none;
}

.related-grid span {
    color: var(--muted);
    font-size: 14px;
}

.today-agenda {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.today-agenda > div {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.agenda-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.agenda-card-list {
    display: grid;
    gap: 10px;
}

.agenda-card {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.agenda-card:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow);
}

.agenda-card time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.agenda-card span {
    font-weight: 800;
}

.history-preview {
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.history-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.history-event-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.history-event-card:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow);
}

.history-event-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.history-event-card strong,
.history-event-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.history-event-card p {
    color: var(--muted);
    font-size: 15px;
}

.history-event-card > a {
    align-self: end;
    font-weight: 800;
    text-decoration: none;
}

.history-day-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.history-today-feature {
    display: grid;
    gap: 22px;
    margin-top: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.history-today-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.history-today-header h1,
.history-today-header h2 {
    margin: 4px 0 2px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.96;
}

.history-today-header h1 {
    max-width: 960px;
}

.history-today-title {
    display: grid;
    gap: 4px;
}

.history-today-title span {
    display: block;
}

.history-today-title strong {
    display: block;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.02;
}

.history-today-header p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
}

.history-today-context {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.history-today-context a {
    min-height: 132px;
    align-content: start;
    background: #fff;
}

.history-today-context p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.history-today-events {
    display: grid;
    grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.history-today-events > div:first-child {
    position: sticky;
    top: calc(var(--site-header-height, 120px) + 18px);
}

.history-today-events > div:first-child h3 {
    margin-bottom: 4px;
    font-size: 28px;
}

.history-today-events > div:first-child p {
    color: var(--muted);
}

.history-day-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.history-day-card > .button {
    align-self: end;
    justify-self: start;
}

.history-day-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.history-day-card-header time,
.history-day-card-header span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.history-day-card-header h2,
.history-day-card-header h3 {
    margin: 2px 0 0;
}

.history-mini-list,
.history-event-list {
    display: grid;
    gap: 10px;
}

.history-context-links {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.history-context-links a {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid rgba(40, 91, 115, 0.14);
    border-radius: var(--radius);
    background: rgba(248, 250, 252, 0.86);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.history-context-links a:hover {
    border-color: rgba(40, 91, 115, 0.28);
    box-shadow: var(--shadow);
}

.history-context-links small {
    color: var(--muted);
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
}

.history-context-links span {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.history-mini-list a {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
}

.history-mini-list a:hover {
    border-color: rgba(40, 91, 115, 0.28);
}

.history-mini-list small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.history-date-nav,
.year-action-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    padding-top: 0;
}

.history-date-nav .button,
.year-action-nav .button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 148px;
    margin-top: 0;
}

.history-date-nav .button span,
.year-action-nav .button span {
    font-size: 13px;
    font-weight: 800;
    opacity: 0.78;
}

.history-date-nav-today,
.year-action-nav-primary {
    min-width: 168px;
}

.history-date-nav-adjacent,
.year-action-nav-secondary {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.calendar-year-nav {
    margin-bottom: 22px;
}

/* Annual month grids retain a native seven-day table at every viewport size. */
.year-calendar-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.year-calendar-header [hidden] {
    display: none;
}

.year-calendar-header h1 {
    font-size: clamp(36px, 5vw, 52px);
}

.year-calendar-header p,
.year-calendar-help {
    color: var(--muted);
}

.year-calendar-help {
    max-width: 760px;
    margin-top: 14px;
    font-size: 14px;
}

.year-calendar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 16px 0;
    border-block: 1px solid var(--line);
    margin-top: 20px;
}

.year-calendar-nav a {
    padding-block: 5px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.year-calendar-key {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
    color: var(--muted);
    font-size: 13px;
}

.year-calendar-holiday-mark {
    display: inline-block;
    padding-inline: 5px;
    background: var(--soft);
    border-bottom: 2px solid var(--accent);
    color: var(--accent-dark);
    font-weight: 800;
}

.year-calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
}

.year-calendar-month {
    min-width: 0;
    border-top: 2px solid var(--line);
    padding-top: 12px;
    scroll-margin-top: 110px;
}

.year-calendar-month:target {
    border-top-color: var(--accent);
}

.year-calendar-month h2 {
    font-size: 21px;
    margin-bottom: 12px;
}

.year-calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-variant-numeric: tabular-nums;
}

.year-calendar-table th,
.year-calendar-table td {
    padding: 0;
    text-align: center;
    height: 36px;
}

.year-calendar-table thead th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.year-calendar-table th:first-child {
    width: 26px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.year-calendar-table abbr {
    text-decoration: none;
}

.year-calendar-table .is-weekend,
.year-calendar-table thead th:nth-last-child(-n+2) {
    background: var(--soft);
}

.year-calendar-table a {
    display: grid;
    place-items: center;
    min-height: 36px;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
}

.year-calendar-table a.is-holiday {
    color: var(--accent-dark);
    font-weight: 850;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.year-calendar-table a[aria-current="date"] {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-radius: 4px;
}

.year-calendar-table a:hover,
.year-calendar-table a:focus-visible {
    background: var(--accent-dark);
    color: var(--paper);
}

.year-calendar-nav a:focus-visible,
.year-calendar-table a:focus-visible,
.year-calendar-holidays a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.year-calendar-holidays {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

.year-calendar-holidays li + li {
    margin-top: 5px;
}

.year-calendar-holidays time {
    font-weight: 800;
    color: var(--accent-dark);
}

.year-calendar-holidays a {
    color: var(--muted);
    text-decoration: none;
}

.year-calendar-holidays a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.year-calendar-print-note {
    display: none;
}

@media (max-width: 900px) {
    .year-calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .year-calendar-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .year-calendar-table th,
    .year-calendar-table td,
    .year-calendar-table a {
        height: 42px;
    }

    .year-calendar-table a {
        font-size: 16px;
    }
}

@page annual-calendar {
    size: A4 portrait;
    margin: 10mm;
}

@media print {
    body:has(.year-calendar-page) {
        padding: 0;
        background: white;
        color: black;
    }

    body:has(.year-calendar-page) > :not(main),
    body:has(.year-calendar-page) .page > :not(.year-calendar-page),
    .year-calendar-header button,
    .year-calendar-help,
    .year-calendar-nav,
    .year-calendar-page .manual-ad,
    .year-calendar-page noscript {
        display: none;
    }

    body:has(.year-calendar-page) .page {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .year-calendar-page {
        page: annual-calendar;
        font-size: 9pt;
    }

    .year-calendar-header h1 {
        font-size: 22pt;
        margin-bottom: 2mm;
    }

    .year-calendar-header .eyebrow {
        display: none;
    }

    .year-calendar-key {
        font-size: 8pt;
        margin: 2mm 0 4mm;
    }

    .year-calendar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4mm 5mm;
    }

    .year-calendar-month {
        break-inside: avoid;
        padding-top: 2mm;
    }

    .year-calendar-month h2 {
        font-size: 11pt;
        margin-bottom: 1mm;
    }

    .year-calendar-table th,
    .year-calendar-table td,
    .year-calendar-table a {
        height: 4.5mm;
        min-height: 0;
        font-size: 8pt;
    }

    .year-calendar-table thead th,
    .year-calendar-table th:first-child {
        font-size: 7pt;
    }

    .year-calendar-holidays {
        font-size: 7pt;
        line-height: 1.3;
        margin-top: 1mm;
    }

    .year-calendar-holidays li + li {
        margin-top: 1mm;
    }

    .year-calendar-print-note {
        display: block;
        margin-top: 3mm;
        font-size: 8pt;
    }
}


.calendar-month-list {
    display: grid;
    gap: 28px;
    margin-top: 30px;
}

.sun-calendar-overview {
    margin-bottom: 16px;
}

.sun-calendar-toolbar {
    display: grid;
    grid-template-columns: auto minmax(190px, 280px) 1fr;
    gap: 12px;
    align-items: center;
}

.sun-calendar-toolbar label {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.sun-calendar-toolbar select {
    width: 100%;
    min-height: 46px;
    padding: 10px 42px 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--text);
    font: inherit;
    font-weight: 700;
}

.sun-calendar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.sun-calendar-actions .button {
    min-height: 46px;
    padding-block: 10px;
}

.sun-month-accordion {
    margin-top: 0;
}

.sun-month-panel,
.calendar-month-section,
.text-block[id] {
    scroll-margin-top: 110px;
}

.sun-month-panel .sun-table {
    margin-top: 0;
}

.sun-table tr {
    scroll-margin-top: 120px;
}

.sun-table tr.is-current-day td,
.sun-table tr.is-highlighted td,
.sun-table tr:target td {
    background: rgba(40, 91, 115, 0.08);
}

.sun-table tr.is-current-day td:first-child::after {
    content: "Danas";
    display: inline-flex;
    margin-left: 8px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
}

.calendar-year-nav + .notice {
    margin-bottom: 30px;
}

.calendar-month-section .section-heading {
    margin-bottom: 12px;
}

.calendar-month-section .section-heading h2 {
    font-size: 30px;
}

.calendar-month-table {
    table-layout: fixed;
}

.calendar-month-table th:first-child,
.calendar-month-table td:first-child {
    width: 132px;
}

.calendar-month-table th:nth-child(3),
.calendar-month-table td:nth-child(3),
.calendar-month-table th:nth-child(4),
.calendar-month-table td:nth-child(4) {
    width: 130px;
}

.calendar-month-table th:last-child,
.calendar-month-table td:last-child {
    width: 160px;
    padding-right: 20px;
    text-align: right;
}

.table-date-cta,
.calendar-name-day-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid rgba(40, 91, 115, 0.24);
    border-radius: var(--radius);
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    box-shadow: 0 8px 18px rgba(40, 91, 115, 0.08);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.table-date-cta span,
.calendar-name-day-cta span {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.table-date-cta span::before,
.calendar-name-day-cta span::before {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 3px;
    border-top: 2px solid currentColor;
}

.table-date-cta span::after,
.calendar-name-day-cta span::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.table-date-cta:hover,
.calendar-name-day-cta:hover {
    border-color: rgba(40, 91, 115, 0.4);
    color: var(--accent);
    box-shadow: var(--shadow);
}

.agenda-list li {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: baseline;
}

.agenda-list time,
.countdown-strip small {
    color: var(--muted);
    font-size: 14px;
}

.countdown-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.countdown-strip-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.countdown-strip a {
    display: grid;
    gap: 2px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
}

.countdown-strip strong {
    color: var(--accent);
    font-size: 34px;
    line-height: 1;
}

.countdown-strip span {
    font-weight: 800;
}

.count-mini {
    color: var(--accent);
    font-size: 44px;
    line-height: 1;
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 12px 14px;
}

.faq details[open] {
    border-color: rgba(40, 91, 115, 0.28);
    background: var(--soft);
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
}

.faq p {
    margin-bottom: 0;
}

.section {
    margin-top: 44px;
}

.intro-note {
    max-width: 900px;
    padding: 22px;
    border: 1px solid rgba(40, 91, 115, 0.18);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.intro-note h2 {
    margin-bottom: 8px;
    font-size: 26px;
}

.intro-note p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin-bottom: 2px;
}

.section-heading p {
    color: var(--muted);
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
}

.catalog-toolbar label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
}

.catalog-toolbar input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
}

.catalog-toolbar input:focus {
    border-color: rgba(40, 91, 115, 0.42);
    box-shadow: 0 0 0 4px rgba(40, 91, 115, 0.1);
    outline: 0;
}

.catalog-toolbar p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
    min-height: 48px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.empty-state {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--muted);
    font-weight: 800;
}

.month-grid,
.month-accordion {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.month-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.month-panel[open] {
    grid-column: 1 / -1;
}

.month-panel summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 34px;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.month-panel summary::-webkit-details-marker {
    display: none;
}

.month-toggle-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(40, 91, 115, 0.22);
    border-radius: var(--radius);
    color: var(--accent);
    position: relative;
    transition: border-color 0.16s ease;
}

.month-toggle-icon::before,
.month-toggle-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.month-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.month-panel[open] summary {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.month-panel[open] .month-toggle-icon {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
}

.month-panel[open] .month-toggle-icon::after {
    opacity: 0;
}

.month-panel summary span {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: baseline;
    min-width: 0;
}

.month-panel summary strong {
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
}

.month-panel summary em {
    color: var(--accent);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.month-panel summary small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.date-list,
.date-card-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.date-list li {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
}

.date-link {
    font-weight: 800;
    text-decoration: none;
}

.date-card {
    display: grid;
    gap: 5px;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.date-card:hover {
    border-color: rgba(40, 91, 115, 0.28);
    color: var(--text);
    box-shadow: var(--shadow);
}

.date-card time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.date-card span {
    font-weight: 800;
}

.date-card small {
    color: var(--muted);
    font-size: var(--text-sm);
}

.name-date-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta {
    color: var(--muted);
    font-size: 14px;
}

.result-list {
    display: grid;
    gap: 14px;
}

.result {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.result h2 {
    margin-bottom: 4px;
    font-size: 22px;
}

table:where(:not(.year-calendar-table)) {
    width: 100%;
    min-width: 620px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

:where(table:not(.year-calendar-table)) th,
:where(table:not(.year-calendar-table)) td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

:where(table:not(.year-calendar-table)) th {
    background: var(--soft);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

:where(table:not(.year-calendar-table)) tr:nth-child(even) td {
    background: #fafafa;
}

table:where(:not(.year-calendar-table)) tr {
    scroll-margin-top: 150px;
}

table:where(:not(.year-calendar-table)) tr:target td {
    background: var(--soft);
    box-shadow: inset 4px 0 0 var(--accent);
}

table:where(:not(.year-calendar-table)) td small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.count {
    margin: 20px 0 0;
    color: var(--accent);
    font-size: clamp(64px, 16vw, 150px);
    font-weight: 800;
    line-height: 1;
}

/* Shared subscription strip and footer. */
.newsletter-strip {
    border-top: 1px solid var(--line);
    background: #f8f8f8;
}
.newsletter-strip-inner {
    max-width: 1040px;
    margin: auto;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    align-items: center;
    gap: 28px;
}
.newsletter-intro {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}
.newsletter-intro p {
    margin: 0;
    font: 500 14px/1.5 var(--font-sans);
}
.newsletter-heading {
    border-left: 1px solid var(--line);
    padding-left: 28px;
    min-width: 0;
}
.newsletter-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    padding: 16px;
    border-radius: 50%;
    background: var(--action);
    color: white;
}
.newsletter-heading h2 {
    font-size: 22px;
    margin-bottom: 4px;
}
.newsletter-heading p {
    font-size: 14px;
    color: var(--muted);
}
.footer-newsletter {
    width: 100%;
    min-width: 0;
}
.footer-newsletter > label:not(.form-honeypot) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.footer-newsletter div {
    display: flex;
    gap: 0;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
}
.footer-newsletter input[type="email"] {
    min-width: 0;
    flex: 1;
    padding: 12px 16px;
    border: 0;
    border-radius: 30px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    min-height: 46px;
}
.footer-newsletter button {
    padding: 12px 24px;
    border: 0;
    border-radius: 30px;
    background: var(--action);
    color: white;
    font: 650 13px var(--font-sans);
    cursor: pointer;
    min-height: 46px;
    flex: 0 0 auto;
}
.footer-newsletter button:hover {
    background: var(--action-hover);
}
.site-footer {
    background: var(--action);
    color: #f3f7f8;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr 1fr;
    gap: 28px;
    max-width: 1040px;
    margin: auto;
    padding: 32px 28px;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 800 30px var(--font-sans);
    color: inherit;
    text-decoration: none;
}
.footer-brand .brand-mark {
    display: none;
}
.site-footer p {
    font-size: 14px;
    color: #becfd6;
    max-width: 250px;
    margin-top: 10px;
}
.site-footer nav {
    display: grid;
    gap: 8px;
    align-content: start;
}
.site-footer h2 {
    font: 800 14px var(--font-sans);
    color: #f3f7f8;
    margin-bottom: 8px;
}
.site-footer nav a,.footer-link-button {
    color: #d0dce1;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.5;
}
.site-footer nav a:hover,.footer-link-button:hover,.footer-brand:hover {
    color: white;
    text-decoration: underline;
}
.footer-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.footer-bottom {
    background: #0d2935;
    border-top: 1px solid #365362;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1040px;
    margin: auto;
    padding: 18px 28px;
}
.footer-bottom-inner p {
    margin: 0;
}
.footer-bottom-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.footer-newsletter input[type="email"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.site-footer :focus-visible {
    outline-color: #d0dce1;
}

::selection {
    background: rgba(40, 91, 115, 0.18);
    color: var(--text);
}

input::placeholder,
textarea::placeholder {
    color: #797f84;
    opacity: 1;
}

.button:active,
.site-search button:active,
.search-large button:active,
.home-mini-search button:active,
.home-newsletter-card button:active,
.footer-newsletter button:active {
    transform: translateY(0);
    box-shadow: none;
}

.today-metric-card:hover,
.today-daily-fact:hover,
.today-history-event:hover,
.today-world-day:hover,
.today-fact:hover,
.home-mini-card a:hover,
.home-mini-card.moon-mini-card:hover,
.today-extra-strip a:hover,
.today-history-list a:hover,
.mini-agenda-list a:hover,
.mini-countdown-list a:hover,
.portal-link-grid a:hover,
.linked-insight-card:hover,
.mini-link-grid a:hover,
.feature-link-block:hover,
.date-card:hover,
.name-card:hover,
.quick-grid a:hover,
.year-card:hover,
.related-grid a:hover,
.countdown-strip a:hover,
.pager a:hover,
.entity-card:hover,
.history-context-links a:hover,
.table-date-cta:hover,
.calendar-name-day-cta:hover {
    box-shadow: var(--shadow-hover);
}

.card,
.today-panel,
.hero-fact-pills span,
.summary-stats div,
.insight-card,
.home-history-gateway,
.static-section,
.contact-form,
.contact-aside article,
.month-panel {
    border-color: var(--line);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    width: min(760px, calc(100vw - 36px));
    padding: 18px;
    border: 1px solid rgba(40, 91, 115, 0.18);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-strong);
}

.cookie-banner[hidden],
.cookie-panel[hidden] {
    display: none;
}

.cookie-banner h2,
.cookie-panel h2 {
    margin-bottom: 6px;
    font-size: 20px;
}

.cookie-banner p,
.cookie-panel p {
    margin: 0 0 8px;
    color: var(--muted);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.cookie-actions .button {
    margin-top: 0;
    border: 1px solid var(--accent);
    cursor: pointer;
}

.cookie-panel {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(32, 37, 43, 0.42);
}

.cookie-panel-inner {
    display: grid;
    gap: 14px;
    width: min(560px, 100%);
    padding: 22px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-strong);
}

.cookie-choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.cookie-choice span {
    display: grid;
    gap: 3px;
}

.cookie-choice small {
    color: var(--muted);
}

.cookie-choice input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.scroll-top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 45;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(40, 91, 115, 0.18);
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.scroll-top-button span {
    display: block;
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border-top: 3px solid currentColor;
    border-left: 3px solid currentColor;
    transform: rotate(45deg);
}

.scroll-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-button:hover {
    box-shadow: var(--shadow-strong);
}

@media (min-width: 901px) {
    .name-detail-hero .hero-fact-pills {
        margin-top: 28px;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: var(--site-header-height, 84px);
    }

    .site-header-inner {
        padding: 10px 12px;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .header-top {
        display: grid;
        grid-template-columns: auto 42px minmax(0, 1fr);
        gap: 8px;
        justify-content: stretch;
    }

    .nav {
        display: none;
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0;
        padding: 8px 0 2px;
        overflow: visible;
    }

    .site-header.is-menu-open .nav {
        display: grid;
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
    }

    .nav-link {
        min-width: 0;
        padding: 10px 8px;
        text-align: center;
        white-space: normal;
    }

    .nav-group {
        width: 100%;
    }

    .nav-group-toggle {
        width: 100%;
        justify-content: center;
    }

    .nav-menu {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
        background: rgba(248, 250, 252, 0.9);
    }

    .nav-group:hover .nav-menu,
    .nav-group:focus-within .nav-menu {
        display: none;
    }

    .nav-group.is-open .nav-menu {
        display: grid;
    }

    .nav-menu-wide {
        min-width: 0;
    }

    .nav-menu a {
        text-align: left;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
    }

    .site-search {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px;
    }

    .site-search input {
        flex: 1;
        padding: 9px 10px;
    }

    .site-search button {
        display: none;
    }

    .header-search {
        position: static;
        width: 100%;
        height: auto;
        min-width: 0;
    }

    .header-search-toggle {
        display: none;
    }

    .header-search .site-search,
    .site-header.is-search-open .header-search .site-search {
        position: static;
        width: 100%;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: var(--radius);
    }

    .brand-text {
        display: none;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .search-large,
    .hero-actions {
        display: none;
    }

    .home-dashboard,
    .home-section-grid,
    .home-editorial-section {
        grid-template-columns: 1fr;
    }

    .today-facts-grid,
    .today-hero-grid,
    .today-daily-facts,
    .today-history-panel,
    .today-extra-strip {
        grid-template-columns: 1fr;
    }

    .today-history-compact {
        grid-template-columns: 1fr;
    }

    .portal-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 761px) and (max-width: 900px) {
    .footer-grid,
    .newsletter-strip-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .working-hours-answer-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .working-hours-month-nav > div {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .working-hours-table-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }

    .working-hours-table-actions .button {
        min-width: 0;
        width: 100%;
    }

    .sun-twilight-details dl {
        grid-template-columns: 1fr;
    }

    .sun-forecast-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sun-calendar-toolbar {
        grid-template-columns: 1fr;
    }

    .sun-calendar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sun-calendar-actions .button {
        width: 100%;
    }

    body {
        padding-top: var(--site-header-height, 84px);
    }

    .site-header-inner {
        padding: 10px 12px;
        gap: 10px;
    }

    .header-top {
        grid-template-columns: auto 42px minmax(0, 1fr);
        gap: 8px;
        justify-content: stretch;
    }

    .site-search {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px;
    }

    .site-search input {
        flex: 1;
        padding: 9px 10px;
    }

    .site-search button {
        display: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: var(--radius);
    }

    .brand-text {
        display: none;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .page {
        padding: 14px 16px 42px;
    }

    h1,
    .hero h1 {
        font-size: 38px;
    }

    .hero {
        padding-top: 28px;
    }

    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .actions .button {
        text-align: center;
    }

    .search-large div {
        grid-template-columns: 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .home-dashboard {
        gap: 12px;
        padding-top: 18px;
    }

    .home-dashboard,
    .home-section-grid,
    .home-editorial-section,
    .today-facts-grid,
    .today-history-compact,
    .portal-link-grid,
    .moon-current-card,
    .astro-current-card,
    .zodiac-sign-grid,
    .home-mini-search div,
    .home-newsletter-card div,
    .mini-countdown-list {
        grid-template-columns: 1fr;
    }

    .today-dashboard-card,
    .home-link-section {
        padding: 16px;
    }

    .today-dashboard-card {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .today-dashboard-card::before {
        display: none;
    }

    .today-dashboard-card h1 {
        margin-bottom: 8px;
    }

    .today-dashboard-card .lead {
        font-size: 17px;
    }

    .today-identity h1 {
        font-size: 40px;
        line-height: 1.02;
    }

    .today-date-title {
        font-size: 28px;
    }

    .today-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 18px;
    }

    .today-metrics-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .today-daily-facts,
    .today-history-panel {
        gap: 8px;
        margin-top: 16px;
        padding-top: 16px;
    }

    .today-facts-grid {
        gap: 8px;
    }

    .today-fact,
    .today-metric-card,
    .today-daily-fact,
    .today-history-event,
    .today-world-day,
    .today-extra-strip a,
    .sky-mini-row,
    .mini-agenda-list a,
    .portal-link-grid a {
        padding: 12px;
    }

    .zodiac-context-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .zodiac-context-card .button {
        justify-self: start;
    }

    .today-extra-strip {
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .today-history-event {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .today-history-event small {
        grid-column: auto;
        margin-top: 0;
    }

    .home-editorial-section {
        gap: 18px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .home-editorial-section .today-history-event-list {
        grid-template-columns: 1fr;
    }

    .home-editorial-section .today-history-event,
    .home-editorial-section .today-history-event.is-featured {
        grid-row: auto;
        min-height: 0;
        align-content: start;
        padding: 14px;
    }

    .home-editorial-section .today-history-event.is-featured span {
        font-size: 20px;
    }

    .home-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-tool-grid a {
        min-height: 118px;
        padding: 14px;
    }

    .home-side-stack .mini-agenda-list a:nth-child(n + 3),
    .home-side-stack .sky-mini-row:nth-of-type(n + 3),
    .home-name-days-section .name-card:nth-child(n + 7),
    .home-saints-section .name-card:nth-child(n + 7),
    .home-featured-names-section .name-card:nth-child(n + 7) {
        display: none;
    }

    .home-history-gateway {
        padding: 14px;
    }

    .detail-hero {
        grid-template-columns: 1fr;
    }

    .page-hero {
        grid-template-columns: 1fr;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }

    .summary-stats > div:only-child {
        grid-column: auto;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .history-event-grid,
    .history-day-grid,
    .history-today-events {
        grid-template-columns: 1fr;
    }

    .history-today-feature {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .history-today-header {
        align-items: stretch;
        flex-direction: column;
        padding-bottom: 14px;
    }

    .history-today-events > div:first-child {
        position: static;
    }

    .history-date-nav,
    .history-date-nav-adjacent,
    .year-action-nav,
    .year-action-nav-secondary {
        flex-direction: column;
    }

    .history-date-nav .button,
    .year-action-nav .button {
        width: 100%;
    }

    .name-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading,
    .catalog-toolbar {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .section-heading .button {
        text-align: center;
    }

    .year-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .entity-card-grid {
        grid-template-columns: 1fr;
    }

    .saints-discovery .compact-entity-grid {
        grid-template-columns: 1fr;
    }

    .name-date-cards {
        grid-template-columns: 1fr;
    }

    .index-card-list {
        grid-template-columns: 1fr;
    }

    .today-agenda {
        grid-template-columns: 1fr;
    }

    .home-discovery {
        grid-template-columns: 1fr;
    }

    .saints-discovery {
        grid-template-columns: 1fr;
    }

    .agenda-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .countdown-strip {
        grid-template-columns: 1fr;
    }

    .month-grid,
    .month-accordion {
        grid-template-columns: 1fr;
    }

    .month-panel[open] {
        grid-column: auto;
    }

    .month-panel summary {
        grid-template-columns: minmax(0, 1fr) 34px;
    }

    .month-panel summary small {
        grid-column: 1 / -1;
        grid-row: 2;
        white-space: normal;
    }

    .calculator-layout,
    .contact-layout,
    .newsletter-layout,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .result-stat-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .newsletter-actions .button {
        width: 100%;
    }

    .newsletter-strip-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 16px;
    }

    .newsletter-heading {
        border-left: 0;
        padding-left: 0;
    }

    .newsletter-heading h2,
    .newsletter-heading p {
        margin: 0;
    }

    .footer-newsletter input[type="email"] {
        padding: 10px;
    }

    .footer-newsletter button {
        padding: 12px 16px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        padding: 28px 16px;
    }

    .footer-grid > div,
    .footer-grid > nav:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 16px;
    }

    .footer-bottom-inner nav {
        gap: 12px;
    }

    .cookie-banner {
        right: 12px;
        bottom: 12px;
        grid-template-columns: 1fr;
        width: calc(100vw - 24px);
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-actions .button {
        flex: 1 1 140px;
        text-align: center;
    }

    .scroll-top-button {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

    .insight-grid {
        grid-template-columns: 1fr;
    }

    table:where(:not(.year-calendar-table)) {
        min-width: 0;
        border: 0;
        background: transparent;
    }

    table:where(:not(.year-calendar-table)) thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    table:where(:not(.year-calendar-table)) tbody,
    table:where(:not(.year-calendar-table)) tr,
    table:where(:not(.year-calendar-table)) td {
        display: block;
        width: 100%;
    }

    table:where(:not(.year-calendar-table)) tr {
        margin-bottom: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--paper);
        overflow: hidden;
    }

    table:where(:not(.year-calendar-table)) td {
        display: grid;
        grid-template-columns: minmax(96px, 0.35fr) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        min-width: 0;
    }

    table:where(:not(.year-calendar-table)) td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
    }

    table:where(:not(.year-calendar-table)) td:last-child {
        border-bottom: 0;
    }

    .calendar-month-table {
        table-layout: auto;
    }

    .calendar-month-table th:first-child,
    .calendar-month-table td:first-child,
    .calendar-month-table th:nth-child(3),
    .calendar-month-table td:nth-child(3),
    .calendar-month-table th:nth-child(4),
    .calendar-month-table td:nth-child(4),
    .calendar-month-table th:last-child,
    .calendar-month-table td:last-child {
        width: auto;
        text-align: left;
    }

    .table-date-cta,
    .calendar-name-day-cta {
        justify-self: start;
    }
}

@media print {
    body.is-printing-table * {
        visibility: hidden !important;
    }

    body.is-printing-table [data-table-export-section],
    body.is-printing-table [data-table-export-section] * {
        visibility: visible !important;
    }

    body.is-printing-table [data-table-export-section] {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
    }

    body.is-printing-table .working-hours-table-actions {
        display: none !important;
    }

    body.is-printing-table table {
        min-width: 0;
        box-shadow: none;
    }
}

@media (max-width: 420px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-header .site-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .search-large div {
        grid-template-columns: 1fr;
    }

    h1,
    .hero h1 {
        font-size: 34px;
    }

    .today-panel,
    .today-agenda > div,
    .card,
    .source,
    .month-panel {
        padding: 16px;
    }
}
/* Manual AdSense placements */
.manual-ad {
    width: 100%;
    min-height: 280px;
    margin: 40px 0;
    overflow: hidden;
    text-align: center;
}

.manual-ad .adsbygoogle {
    min-height: 280px;
}

.manual-ad[hidden],
.manual-ad.is-unfilled,
.manual-ad:has(.adsbygoogle[data-ad-status="unfilled"]),
.manual-ad:has(.adsbygoogle[data-ad-status="unfill-optimized"]) {
    display: none;
}

.manual-ad-catalog,
.manual-ad-calendar {
    grid-column: 1 / -1;
}

@media (max-width: 800px) {
    .manual-ad {
        min-height: 280px;
        margin: 28px 0;
    }
}

@media (max-width: 480px) {
    .manual-ad {
        min-height: 375px;
    }

    .manual-ad .adsbygoogle {
        min-height: 375px;
    }
}
