/* ── Self-hosted fonts ── */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Normal-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: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Normal-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;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Italic-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: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Italic-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;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('../fonts/DMSans-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: 'DM Sans';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('../fonts/DMSans-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;
}

/* ── Tokens ── */
:root {
    /* Content */
    --bg:               #f4efe7;
    --text:             #1f1a17;
    --text-secondary:   #5f5146;
    --card-bg:          #fffaf2;
    --card-border:      #d9cdbd;
    --accent:           #7c6756;
    --highlight:        #fff4d6;
    --grid-border:      #e4d7c8;
    --notice-border:    #d6ba75;
    --table-header-bg:  #faf6f0;
    --full-moon-bg:     #fffbe8;
    --full-moon-accent: #b08a20;

    /* Full-width Moon guide surfaces */
    --guide-night:      #142438;
    --guide-night-end:  #20344b;
    --guide-paper:      #fffdf9;
    --guide-warm:       #fae5ba;
    --guide-ink:        #17253c;
    --guide-muted:      #586578;
    --guide-line:       #d8dfe7;

    /* Navigation frame */
    --night:            #111318;
    --night-border:     #2a2f3e;
    --moon-glow:        #e2c882;
    --moon-dim:         #9a8860;
    --star:             #7080a0;
    --star-dim:         #3a4258;
    --nav-link:         #c9d1de;
    --lang-link:        #8a98b4; /* ≥ 5:1 on the header, small text */
    --nav-active-bg:    rgba(226, 200, 130, 0.12);
    --header-h:         54px;

    /* Typography */
    --font-display:     'Cormorant Garamond', Georgia, serif;
    --font-ui:          'DM Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ── Base ── */
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    line-height: 1.5;
}

a {
    color: var(--text);
}

main {
    margin: 0 auto;
}

/* ── Site Header ── */
.site-header {
    background: var(--night);
    border-bottom: 1px solid var(--night-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
    min-height: var(--header-h);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1.25rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo__moon {
    width: 20px;
    height: 20px;
}

.site-logo__name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--moon-glow);
    letter-spacing: 0.04em;
    line-height: 1;
}

.site-header__sep {
    width: 1px;
    height: 18px;
    background: var(--night-border);
    flex-shrink: 0;
}

/* Period links of a language page: Today · current month · current year. */
.site-nav ul,
.lang-switcher ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav ul {
    gap: 0.25rem;
}

.site-nav a {
    display: block;
    padding: 0.35rem 0.7rem;
    color: var(--nav-link);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
    color: var(--moon-glow);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav a.active {
    color: var(--moon-glow);
    background: var(--nav-active-bg);
}

/* Language codes: smaller and muted, the active language highlighted. */
.lang-switcher {
    margin-left: auto;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* Language-neutral cue: a reader who landed in a language they can't read
   still recognises the globe. */
.lang-switcher__globe {
    width: 1rem;
    height: 1rem;
    flex: none;
    color: var(--lang-link);
}

.lang-switcher ul {
    gap: 0.1rem;
}

.lang-switcher a {
    display: block;
    padding: 0.3rem 0.4rem;
    color: var(--lang-link);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.lang-switcher a:hover {
    color: var(--moon-glow);
    background: rgba(255, 255, 255, 0.06);
}

.lang-switcher a.active {
    color: var(--moon-glow);
    background: var(--nav-active-bg);
}

/* ── Page Nav ── */
/* ── Page layouts ── */
.page-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - var(--header-h) - 72px);
    padding: 3rem 1.25rem;
    text-align: center;
}

.page-selector h1 {
    font-family: var(--font-ui);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 1rem;
}

.selector-hero {
    max-width: 760px;
    margin: 1.5rem auto 2rem;
}

.selector-kicker {
    margin: 0 0 0.5rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.selector-lead {
    max-width: 68ch;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Root link map: one block per language, written in that language. */
.selector-map {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* five blocks: 3 + 2, not 4 + an orphan */
    gap: 1rem;
    width: 100%;
    max-width: 980px;
    text-align: left;
}

.selector-map__language {
    flex: 1 1 280px;
    max-width: 316px;
    padding: 1.1rem 1.2rem 1.2rem;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: var(--card-bg);
}

.selector-map__language h2 {
    margin: 0 0 0.6rem;
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 600;
}

.selector-map__language h2 a {
    color: var(--text);
    text-decoration: none;
}

.selector-map__language ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.selector-map__language li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: var(--card-border);
    text-underline-offset: 3px;
}

.selector-map__language a:hover {
    color: var(--accent);
    text-decoration-color: currentColor;
}

@media (max-width: 640px) {
    .selector-map__language {
        max-width: none;
    }
}

.selector-note {
    max-width: 68ch;
    margin: 2rem auto 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.selector-note a {
    color: var(--accent);
}

.page-landing main {
    max-width: 860px;
    padding: 2rem 1.25rem;
}

.page-month main,
.page-year main {
    max-width: 960px;
    padding: 1.5rem 1.25rem;
}

/* Pages that contain full-width editorial bands keep their reading width in
   explicit inner wrappers, rather than stretching a card beyond main. */
.page-landing main,
.page-month main {
    max-width: none;
    padding: 0;
}

.page-content {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 1.75rem 1.75rem;
}

.page-content--landing {
    max-width: 916px;
}

/* ── Content components ── */
.cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 2rem 0;
}

.card {
    display: block;
    padding: 1.25rem;
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    background: var(--card-bg);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 10px rgba(124, 103, 86, 0.1);
}

.eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.meta {
    color: var(--text-secondary);
}

.notice {
    padding: 0.9rem 1rem;
    border: 1px solid var(--notice-border);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    background: var(--highlight);
}

.hero {
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin: 0 0 0.25rem;
    font-family: var(--font-ui);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hero .meta {
    margin: 0;
    font-size: 0.9rem;
}

.today-centerpiece {
    margin-bottom: 2rem;
}

.today-phase-card {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    background: var(--card-bg);
    margin-bottom: 1rem;
}

.today-phase-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.today-phase-card__body h2 {
    margin: 0 0 0.5rem;
    font-family: var(--font-ui);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.15;
}

.today-phase-card__stats {
    margin: 0 0 0.5rem;
    color: var(--accent);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.today-insight {
    margin: 0.85rem 0 0;
    max-width: 42rem;
    color: var(--text);
    font-size: 0.95rem;
}

.full-moon-countdown {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ── Full Moon night guide ── */
.full-moon-guide {
    margin: 0 0 2rem;
    padding: 1.25rem;
    border: 1px solid rgba(154, 116, 75, 0.48);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(44, 39, 51, 0.92), var(--card-bg));
}

.full-moon-guide__header h2 {
    margin: 0.1rem 0 0.35rem;
    font-family: var(--font-ui);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.2;
}

.full-moon-guide__header .meta {
    margin: 0;
    font-size: 0.86rem;
}

.full-moon-guide__answer {
    max-width: 58rem;
    margin: 0 0 0.75rem;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.55;
}

.full-moon-guide__events article {
    min-width: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--card-border);
    border-radius: 0.7rem;
    background: rgba(16, 17, 23, 0.28);
}

.full-moon-guide__events p {
    margin: 0 0 0.35rem;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.full-moon-guide__events {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.full-moon-guide__events time {
    display: block;
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 1.35rem;
    line-height: 1;
}

.full-moon-guide__events span {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.35;
}

/* ── Full Moon guide: answer first, event facts second ── */
.full-moon-guide {
    margin: 0 0 3rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--guide-ink);
}

.full-moon-guide__hero {
    padding: 2.4rem 0 2.7rem;
    background:
        radial-gradient(ellipse at 79% 27%, rgba(124, 148, 176, 0.32), transparent 43%),
        linear-gradient(115deg, var(--guide-night), var(--guide-night-end));
    color: #f8f9fc;
}

.full-moon-guide__inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 0 1.75rem;
}

.full-moon-guide__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    align-items: center;
    gap: 1.8rem 3.5rem;
    padding: 1.8rem 0;
}

.full-moon-guide__header h2 {
    max-width: 15ch;
    margin: 0;
    color: #fff;
    font-family: var(--font-ui);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.full-moon-guide__kicker {
    margin: 0 0 0.6rem;
    color: #f4ca80;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.full-moon-guide__answer {
    max-width: 50rem;
    margin: 1rem 0 0;
    color: #dce4ef;
    font-size: 1rem;
    line-height: 1.7;
}

.full-moon-guide__portrait {
    min-width: 0;
    margin: 0;
    text-align: center;
}

.full-moon-guide__header,
.full-moon-guide__advice > div {
    min-width: 0;
}

.full-moon-guide__disc {
    display: grid;
    width: min(100%, 230px);
    aspect-ratio: 1;
    margin: 0 auto;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 250, 230, 0.1), transparent 67%);
}

.full-moon-guide__disc svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 13px 20px rgba(0, 0, 0, 0.28));
}

.full-moon-guide__portrait figcaption {
    margin-top: 0.4rem;
    color: #cbd5e3;
    font-size: 0.75rem;
}

.full-moon-guide__advice {
    display: flex;
    gap: 1rem;
    max-width: 780px;
    padding: 1.1rem 1.25rem;
    border-radius: 0.75rem;
    background: var(--guide-warm);
    color: #44311a;
}

.full-moon-guide__advice-mark {
    flex: 0 0 auto;
    padding-top: 0.15rem;
    color: #896329;
    font-size: 1.35rem;
}

.full-moon-guide__advice p,
.full-moon-guide__advice h3,
.full-moon-guide__advice div {
    margin: 0;
}

.full-moon-guide__advice p {
    color: #705221;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.full-moon-guide__advice h3 {
    margin-top: 0.18rem;
    color: #3f2e16;
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.35;
}

.full-moon-guide__advice h3 + div {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    line-height: 1.55;
}

.full-moon-guide__details {
    padding: 2rem 0 2.3rem;
    background: var(--guide-paper);
}

.full-moon-guide__night-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1rem;
}

.full-moon-guide__night-heading p,
.full-moon-guide__peak p {
    margin: 0;
    color: var(--guide-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.full-moon-guide__night-heading h3 {
    margin: 0.25rem 0 0;
    color: var(--guide-ink);
    font-family: var(--font-ui);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.full-moon-guide__events {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.full-moon-guide__event {
    min-width: 0;
    padding: 1rem 1.15rem;
    border: 0;
    border-radius: 0.75rem;
}

.full-moon-guide__event--rise {
    background: #fbf1df;
    color: #60431f;
}

.full-moon-guide__event--set {
    background: #edf1f9;
    color: #374d71;
}

.full-moon-guide__event p,
.full-moon-guide__event span {
    display: block;
    margin: 0;
    font-size: 0.78rem;
}

.full-moon-guide__event time {
    display: block;
    margin: 0.35rem 0 0.2rem;
    color: currentColor;
    font-family: var(--font-ui);
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.full-moon-guide__peak {
    display: flex;
    align-items: baseline;
    gap: 0.4rem 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--guide-line);
    border-radius: 0.75rem;
    background: #f0f3f7;
    color: #43536a;
}

.full-moon-guide__peak strong {
    color: #2e4868;
    font-size: 1.15rem;
    font-weight: 500;
}

.full-moon-guide__peak span {
    color: var(--guide-muted);
    font-size: 0.84rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Compact monthly phase summary ── */
.month-phase-summary {
    margin: 0 0 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.month-phase-summary h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.25;
}

.month-phase-summary__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.month-phase-summary__item {
    display: flex;
    min-width: 0;
    gap: 0.65rem;
    align-items: center;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    background: var(--card-bg);
}

.month-phase-summary__visual {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.month-phase-summary__visual svg {
    width: 32px;
    height: 32px;
}

.month-phase-summary__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.08rem;
}

.month-phase-summary__name {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
}

.month-phase-summary__date {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.25;
}

.month-phase-summary__time {
    color: var(--accent);
    font-size: 0.76rem;
    line-height: 1.25;
}

/* ── Content metadata ── */
.content-metadata {
    margin: 1.5rem 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.content-metadata p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
}

.content-metadata span {
    font-weight: 500;
}

.content-metadata time {
    color: var(--text-primary);
}


/* Monthly calendar and city picker: moon-experience.css. */

/* ── Phase notes ── */
.phase-notes-section {
    margin: -0.25rem 0 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--card-border);
}

.phase-notes-section h2 {
    margin: 0 0 0.45rem;
    font-family: var(--font-ui);
    font-size: 1.35rem;
    font-weight: 500;
}

.phase-notes-summary {
    max-width: 46rem;
    margin: 0 0 0.9rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.phase-notes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.phase-note {
    min-width: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--card-bg);
}

.phase-note h3 {
    margin: 0 0 0.3rem;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
}

.phase-note p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ── City times tables ── */
.times-section {
    margin-bottom: 2rem;
}

.times-section h2 {
    margin: 0 0 1rem;
    font-family: var(--font-ui);
    font-size: 1.35rem;
    font-weight: 500;
}

.times-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.times-table-inner {
    min-width: 560px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.times-table-inner table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.times-table-inner th,
.times-table-inner td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--grid-border);
    text-align: left;
    vertical-align: top;
}

.times-table-inner th {
    background: var(--table-header-bg);
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}

.times-table-inner tr:last-child td {
    border-bottom: 0;
}

.times-table-inner .col-city {
    white-space: nowrap;
}

/* ── Skip to content ── */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 200;
    padding: 0.5rem 1rem;
    background: var(--night);
    color: var(--moon-glow);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0.5rem;
    transition: top 0.15s;
}

.skip-to-content:focus {
    top: 0;
}

/* ── Focus styles ── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ── FAQ ── */
.faq-section {
    margin: 2rem 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--card-border);
}

.faq-section h2 {
    margin: 0 0 1rem;
    font-family: var(--font-ui);
    font-size: 1.35rem;
    font-weight: 500;
}

.faq-item {
    border-bottom: 1px solid var(--grid-border);
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    cursor: pointer;
    list-style: none;
    font-size: 0.98rem;
    font-weight: 500;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.15s;
}

.faq-item details[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    max-width: 72ch;
    margin: 0 0 0.9rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ── Site Footer ── */
.site-footer {
    background: var(--night);
    border-top: 1px solid var(--night-border);
    margin-top: 4rem;
}

.site-footer__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.footer-brand__name {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--moon-dim);
    letter-spacing: 0.04em;
}

.footer-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-langs a {
    display: block;
    padding: 0.2rem 0.45rem;
    color: var(--lang-link);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    transition: color 0.15s;
}

.footer-langs a:hover {
    color: var(--moon-dim);
}

.footer-privacy,
.footer-about {
    color: var(--lang-link);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-privacy:hover,
.footer-about:hover {
    color: var(--moon-dim);
}

.footer-data {
    margin-left: auto;
    color: var(--star);
    font-size: 0.75rem;
}

/* ── Legal page ── */
.legal-content {
    max-width: 760px;
    padding: 2.5rem 1.25rem;
}

.legal-content h1 {
    margin: 0 0 0.5rem;
    font-family: var(--font-ui);
    font-size: 2.4rem;
    font-weight: 400;
}

.legal-updated {
    margin: 0 0 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-content section {
    margin: 0 0 1.75rem;
}

.legal-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.legal-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-content a {
    color: var(--accent);
}

/* ── 404 ── */
.page-error {
    padding: 4rem 1.25rem;
    text-align: center;
}

.page-error h1 {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 5rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.page-error p {
    color: var(--text-secondary);
}

/* ── Breadcrumb ── */
.breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li + li::before {
    content: '›';
    margin: 0 0.35rem;
    color: var(--moon-dim);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--text);
}

/* ── Year grid ── */
.year-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.year-card {
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    background: var(--card-bg);
}

.year-card-header {
    margin: 0 0 0.75rem;
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 500;
}

.year-card-header a {
    color: var(--text);
    text-decoration: none;
}

.year-card-header a:hover {
    color: var(--accent);
}

.year-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.year-mini-grid .dow {
    padding-bottom: 0.15rem;
    color: var(--text-secondary);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.year-mini-cell {
    min-height: 0;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.year-mini-cell.has-phase {
    border: 1px solid var(--accent);
    background: var(--highlight);
}

.year-mini-cell.empty {
    background: transparent;
}

.year-mini-cell .day-number {
    font-size: 0.65rem;
    line-height: 1;
}

.year-mini-cell .phase-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.year-mini-cell .phase-visual svg {
    width: 16px;
    height: 16px;
}

.year-phases-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.year-phases-list li {
    margin-bottom: 0.2rem;
}

/* ── Landing actions ── */
.landing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.75rem 0;
}

.landing-action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent);
    border-radius: 0.85rem;
    background: var(--card-bg);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.landing-action-link:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(124, 103, 86, 0.12);
    background: var(--highlight);
}

.landing-action-link__label {
    font-weight: 500;
    font-size: 0.95rem;
    flex: 1;
}

.landing-action-link__sub {
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-style: normal;
    font-weight: 400;
}

.landing-action-link__arrow {
    color: var(--accent);
    font-size: 1.1rem;
    transition: transform 0.15s;
    flex-shrink: 0;
}

.landing-action-link:hover .landing-action-link__arrow {
    transform: translateX(4px);
}

/* ── Upcoming timeline ── */
.upcoming-timeline {
    margin: 1.5rem 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--grid-border);
}

.upcoming-timeline__heading {
    margin: 0 0 0.75rem;
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.upcoming-timeline__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.upcoming-timeline__item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--grid-border);
    font-size: 0.9rem;
}

.upcoming-timeline__item:last-child {
    border-bottom: 0;
}

.upcoming-timeline__name {
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.upcoming-timeline__date {
    color: var(--text-secondary);
    white-space: nowrap;
}

.upcoming-timeline__time {
    color: var(--accent);
    font-size: 0.82rem;
    white-space: nowrap;
}

/* ── Responsive ── */
/* Keep max-width media queries ordered from wider to narrower so narrow overrides win. */
@media (max-width: 860px) {
    .year-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .page-content,
    .full-moon-guide__inner {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .times-table-wrapper {
        overflow-x: visible;
    }

    .times-table-inner {
        min-width: 0;
    }

    .times-table-inner table,
    .times-table-inner thead,
    .times-table-inner tbody,
    .times-table-inner tr,
    .times-table-inner th,
    .times-table-inner td {
        display: block;
    }

    .times-table-inner thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .times-table-inner tr {
        padding: 0.8rem 0.85rem;
        border-bottom: 1px solid var(--grid-border);
    }

    .times-table-inner tr:last-child {
        border-bottom: 0;
    }

    .times-table-inner th,
    .times-table-inner td,
    .times-table-inner tr:last-child td {
        border-bottom: 0;
    }

    .times-table-inner td {
        display: grid;
        grid-template-columns: minmax(6.5rem, 38%) 1fr;
        gap: 0.75rem;
        padding: 0.3rem 0;
        overflow-wrap: anywhere;
    }

    .times-table-inner td::before {
        content: attr(data-label);
        color: var(--text-secondary);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        line-height: 1.35;
        text-transform: uppercase;
    }

    .times-table-inner .col-city {
        white-space: normal;
        font-weight: 600;
    }

    .site-header__inner {
        min-height: 48px;
        column-gap: 0.5rem;
        padding: 0 0.75rem;
    }

    .site-logo__name {
        font-size: 1.15rem;
    }

    .site-header__sep {
        display: none;
    }

    .site-nav a {
        padding: 0.3rem 0.5rem;
    }

    .lang-switcher a {
        padding: 0.25rem 0.35rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

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

    .month-phase-summary__list {
        grid-template-columns: 1fr;
    }

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

    .full-moon-guide__intro {
        grid-template-columns: minmax(0, 1fr) 140px;
        gap: 1.1rem;
        padding: 1.35rem 0;
    }

    .full-moon-guide__disc {
        width: 135px;
    }

    .full-moon-guide__header h2 {
        font-size: 2rem;
    }

    .full-moon-guide__answer {
        font-size: 0.94rem;
    }

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

    .today-phase-card__visual svg {
        width: 150px;
        height: 150px;
    }

    .moon-grid {
        gap: 0.3rem;
    }

    .moon-cell {
        padding: 0.25rem;
        border-radius: 0.35rem;
    }

    .moon-cell .day-num {
        font-size: 0.75rem;
    }

    .moon-cell .phase-label {
        font-size: 0.6rem;
    }

    .footer-data {
        margin-left: 0;
    }

    .site-footer__inner {
        gap: 1rem;
    }
}

@media (max-width: 560px) {
    /* Phone header: logo and language codes in row one, the three period
       links share row two across the full width. The break sits at 560 px,
       not 480: one row of FR "Aujourd’hui Septembre 2026" plus five codes
       needs about 530 px. */
    .site-header__inner {
        padding-block: 0.35rem;
    }

    .site-nav {
        order: 3;
        flex-basis: 100%;
        border-top: 1px solid var(--night-border);
        padding-top: 0.3rem;
        margin-top: 0.3rem;
    }

    .site-nav ul {
        justify-content: space-between;
        gap: 0;
    }

    .site-nav li {
        flex: 1 1 0;
        text-align: center;
    }

    .site-nav a {
        padding: 0.55rem 0.25rem;
    }

    .lang-switcher a {
        padding: 0.3rem 0.3rem;
    }

    .page-selector h1 {
        font-size: 2rem;
    }

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

    .moon-cell {
        justify-content: center;
        gap: 0.05rem;
    }

    .moon-cell .day-num {
        margin-bottom: 0;
    }

    .moon-cell .phase-visual svg {
        width: 20px;
        height: 20px;
    }

    .moon-cell .phase-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .full-moon-guide__hero {
        padding-top: 1.65rem;
    }

    .full-moon-guide__night-heading {
        display: block;
    }

    .full-moon-guide__intro {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .full-moon-guide__portrait {
        order: -1;
        width: 108px;
        justify-self: center;
    }

    .full-moon-guide__disc {
        width: 108px;
    }

    .full-moon-guide__portrait figcaption {
        font-size: 0.68rem;
    }

    .full-moon-guide__advice {
        gap: 0.7rem;
        padding: 0.95rem;
    }

    .full-moon-guide__event {
        padding: 0.9rem;
    }

    .full-moon-guide__event time {
        font-size: 1.55rem;
    }


    .moon-cell .phase-visual svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 350px) {
    .full-moon-guide__intro {
        grid-template-columns: 1fr;
    }

    .full-moon-guide__portrait {
        display: none;
    }

    .full-moon-guide__events {
        grid-template-columns: 1fr;
    }
}

/* ── Print ── */
@media print {
    @page {
        margin: 12mm;
    }

    *,
    *::before,
    *::after {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    html,
    body {
        background: #fff !important;
        color: #000 !important;
    }

    body {
        font-size: 10.5pt;
        line-height: 1.35;
    }

    a {
        color: #000 !important;
        text-decoration: none;
    }

    .skip-to-content,
    .site-header,
    .site-footer,
    .breadcrumb,
    .landing-actions,
    .adsbygoogle,
    script,
    noscript {
        display: none !important;
    }

    .page-landing main,
    .page-month main,
    .page-year main,
    .page-legal main {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .hero,
    .today-centerpiece,
    .month-phase-summary,
    .moon-grid-section,
    .phase-notes-section,
    .times-section,
    .faq-section,
    .content-metadata,
    .year-grid {
        margin: 0 0 7mm;
    }

    .hero {
        max-width: none;
        padding-bottom: 4mm;
        border-bottom: 1px solid #999;
    }

    .hero h1 {
        margin-bottom: 2mm;
        color: #000 !important;
        font-size: 20pt;
        line-height: 1.15;
    }

    .hero p,
    .meta,
    .notice,
    .content-metadata,
    .landing-action-link__sub,
    .upcoming-timeline__heading,
    .upcoming-timeline__date,
    .upcoming-timeline__time {
        color: #333 !important;
    }

    .notice,
    .today-phase-card,
    .month-phase-summary__item,
    .phase-note,
    .faq-item,
    .year-card {
        background: #fff !important;
        border: 1px solid #999;
    }

    .today-phase-card,
    .month-phase-summary__item,
    .phase-note,
    .times-section,
    .faq-item,
    .year-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .today-phase-card {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 6mm;
        align-items: center;
    }

    .today-phase-card__visual svg {
        width: 32mm;
        height: 32mm;
    }

    .full-moon-guide,
    .full-moon-guide__hero,
    .full-moon-guide__details {
        color: #000 !important;
        background: #fff !important;
    }

    .full-moon-guide {
        margin: 0 0 7mm;
        border: 1px solid #999;
    }

    .full-moon-guide__inner {
        padding: 4mm;
    }

    .full-moon-guide__header h2,
    .full-moon-guide__kicker,
    .full-moon-guide__answer,
    .full-moon-guide__portrait figcaption,
    .full-moon-guide__night-heading h3,
    .full-moon-guide__night-heading p,
    .full-moon-guide__peak,
    .full-moon-guide__peak p,
    .full-moon-guide__peak strong,
    .full-moon-guide__peak span {
        color: #000 !important;
    }

    .full-moon-guide__portrait,
    .full-moon-guide__advice-mark {
        display: none;
    }

    .full-moon-guide__intro {
        display: block;
        padding: 3mm 0;
    }

    .full-moon-guide__advice,
    .full-moon-guide__event,
    .full-moon-guide__peak {
        border: 1px solid #999;
        background: #fff !important;
        color: #000 !important;
    }

    .full-moon-guide__event time {
        color: #000 !important;
    }

    .moon-cell .phase-visual svg,
    .year-mini-cell svg {
        filter: grayscale(100%);
    }

    .moon-grid {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 1px;
    }

    .moon-grid .dow {
        padding: 2mm 1mm;
        color: #000 !important;
        font-size: 8pt;
        border-bottom: 1px solid #777;
    }

    .moon-cell {
        min-height: 18mm;
        padding: 1.5mm;
        color: #000 !important;
        background: #fff !important;
        border: 1px solid #bbb;
        border-radius: 0;
    }

    .moon-cell.empty {
        background: #f2f2f2 !important;
    }

    .moon-cell.has-phase {
        border-color: #333;
    }

    .moon-cell.has-phase--full-moon,
    .moon-cell.today {
        border: 2px solid #000;
    }

    .moon-cell .phase-label {
        display: block;
        color: #000 !important;
        font-size: 6.5pt;
    }

    .times-table-wrapper {
        overflow: visible;
    }

    .times-table-inner {
        min-width: 0;
        border: 1px solid #777;
        border-radius: 0;
    }

    .times-table-inner table {
        display: table !important;
        width: 100%;
        min-width: 0;
        border-collapse: collapse;
    }

    .times-table-inner thead {
        position: static;
        display: table-header-group !important;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        clip-path: none;
        white-space: normal;
    }

    .times-table-inner tbody {
        display: table-row-group !important;
    }

    .times-table-inner tr {
        display: table-row !important;
        padding: 0;
        border-bottom: 0;
    }

    .times-table-inner th,
    .times-table-inner td {
        display: table-cell !important;
        padding: 2mm;
        color: #000 !important;
        border-bottom: 1px solid #bbb;
        text-align: left;
    }

    .times-table-inner td::before {
        content: none !important;
    }

    .times-table-inner .col-city {
        white-space: normal;
    }

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

    .year-card {
        padding: 3mm;
    }

    .year-mini-grid {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 1px;
    }

    .year-mini-cell {
        min-height: 6mm;
        color: #000 !important;
        background: #fff !important;
        border: 1px solid #ccc;
        border-radius: 0;
    }

    .year-mini-cell.empty {
        background: #f2f2f2 !important;
    }

    .year-mini-cell.has-phase {
        border-color: #333;
    }

    .year-phases-list a,
    .faq-item summary,
    .upcoming-timeline__name {
        color: #000 !important;
    }

    .faq-item details:not([open]) > p {
        display: block;
    }
}
