/* navratri/css/hub.css - hub page only.
   The day pages keep style.css; this file is linked from index.html alone,
   so it is free to restyle body/typography without touching them. */

:root {
    --hub-ink: #241a12;
    --hub-body: #4a3f36;
    --hub-muted: #7c6f63;
    --hub-maroon: #B91C1C;
    --hub-accent: #E67E22;
    --hub-line: #efe6da;
    --hub-soft: #fdfaf6;
    --hub-radius: 18px;
    --hub-max: 1120px;
}

body.hub-page {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--hub-soft);
    color: var(--hub-body);
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.hub-wrap {
    flex: 1;
    width: 100%;
    max-width: var(--hub-max);
    margin: 0 auto;
    padding: 0 20px 72px;
    box-sizing: border-box;
}

.hub-wrap h1,
.hub-wrap h2,
.hub-wrap h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--hub-ink);
    letter-spacing: .2px;
}

/* ---------------------------------------------------------------- hero */
.hub-hero {
    text-align: center;
    padding: 54px 0 44px;
}

.hub-hero-media {
    width: 172px;
    height: 172px;
    margin: 0 auto 24px;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(140deg, #f8d9b8, #f2bd88 45%, #e79f5e);
    box-shadow: 0 20px 42px -24px rgba(150, 85, 30, .7);
}

.hub-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.hub-kicker {
    margin: 0 0 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #B4551C;
}

.hub-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2.1rem, 4.6vw, 3.35rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--hub-maroon);
}

.hub-lede {
    max-width: 660px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--hub-muted);
    text-wrap: balance;
}

.hub-dates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.hub-dates li {
    flex: 1 1 0;
    box-sizing: border-box;
    max-width: 280px;
    min-width: 170px;
    padding: 11px 18px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--hub-line);
    border-radius: 14px;
    box-shadow: 0 10px 20px -18px rgba(120, 80, 40, .7);
}

.hub-dates strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--hub-ink);
}

.hub-dates span {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b5f55;
}

/* ---------------------------------------------------------------- days */
.hub-days h2 {
    margin: 0 0 8px;
    text-align: center;
    font-size: clamp(1.6rem, 2.7vw, 2.2rem);
}

.hub-sub {
    max-width: 620px;
    margin: 0 auto 34px;
    text-align: center;
    font-size: .97rem;
    color: var(--hub-muted);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 0 0 46px;
}

.day-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 18px 22px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--hub-line);
    border-bottom: 4px solid var(--accent);
    border-radius: var(--hub-radius);
    box-shadow: 0 12px 28px -24px rgba(120, 80, 40, .85);
    transition: transform .22s ease, box-shadow .22s ease;
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 42px -26px rgba(120, 80, 40, .9);
}

.day-img-wrap {
    width: 104px;
    height: 104px;
    margin-bottom: 16px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 24px -18px rgba(120, 80, 40, .95);
}

.day-img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.day-num {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    /* the raw accent fails contrast as text (yellow 2.9:1 on white) - darken it */
    color: color-mix(in srgb, var(--accent) 62%, #1c1917);
}

.day-name {
    margin: 3px 0 2px;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--hub-ink);
}

.day-date {
    font-size: .85rem;
    color: var(--hub-muted);
}

.day-color {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 4px 12px;
    font-size: .76rem;
    color: var(--hub-muted);
    background: #fbf7f1;
    border: 1px solid var(--hub-line);
    border-radius: 999px;
}

.color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* --------------------------------------------------------------- share */
.hub-share {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 0 0 58px;
}

.hub-share a,
.hub-share button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    color: var(--hub-muted);
    background: #fff;
    border: 1px solid var(--hub-line);
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}

.hub-share a:hover {
    color: #16a34a;
    border-color: #22c55e;
}

.hub-share button:hover {
    color: var(--hub-accent);
    border-color: var(--hub-accent);
}

/* ---------------------------------------------------------------- info */
.hub-info {
    max-width: 860px;
    margin: 0 auto 56px;
    padding: 36px 34px;
    background: #fff;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    box-shadow: 0 16px 36px -32px rgba(120, 80, 40, .85);
}

.hub-info h2 {
    margin: 0 0 12px;
    font-size: 1.75rem;
}

.hub-info h3 {
    margin: 30px 0 12px;
    font-size: 1.15rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--hub-accent);
}

.hub-info > p {
    margin: 0;
}

.hub-info a {
    color: var(--hub-maroon);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.hub-link {
    display: block;
    padding: 14px 16px;
    background: var(--hub-soft);
    border: 1px solid var(--hub-line);
    border-radius: 14px;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.hub-link:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: var(--hub-accent);
}

.hub-link-title {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--hub-ink);
}

.hub-link-desc {
    display: block;
    margin-top: 3px;
    font-size: .8rem;
    color: var(--hub-muted);
}

/* ----------------------------------------------------------------- faq */
.hub-faq {
    max-width: 860px;
    margin: 0 auto;
}

.hub-faq h2 {
    margin: 0 0 18px;
    text-align: center;
    font-size: 1.6rem;
}

.hub-faq details {
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--hub-line);
    border-radius: 14px;
    overflow: hidden;
}

.hub-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    font-weight: 600;
    color: var(--hub-ink);
    cursor: pointer;
    list-style: none;
}

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

.hub-faq summary::after {
    content: "+";
    font-size: 1.3rem;
    line-height: 1;
    color: var(--hub-accent);
}

.hub-faq details[open] summary::after {
    content: "-";
}

.hub-faq p {
    margin: 0;
    padding: 0 20px 18px;
    font-size: .95rem;
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 900px) {
    .hub-links {
        grid-template-columns: 1fr;
    }
}

/* Mobile. Three tiers keyed on viewport height: taller phones get roomier type,
   shorter ones compress so the whole 9-day grid still lands in the first screen. */
@media (max-width: 620px) {
    .hub-wrap {
        padding: 0 14px 44px;
    }

    .hub-hero {
        padding: 14px 0 12px;
    }

    .hub-hero-media {
        width: 66px;
        height: 66px;
        padding: 3px;
        margin-bottom: 7px;
    }

    .hub-hero-media img {
        border-width: 2px;
    }

    .hub-kicker {
        margin-bottom: 3px;
        font-size: .68rem;
        letter-spacing: .12em;
    }

    .hub-hero h1 {
        margin-bottom: 6px;
        font-size: 1.36rem;
        line-height: 1.14;
    }

    .hub-lede {
        display: -webkit-box;
        overflow: hidden;
        font-size: .84rem;
        line-height: 1.45;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .hub-dates {
        gap: 8px;
        margin-top: 12px;
    }

    .hub-dates li {
        min-width: 0;
        padding: 7px 6px;
        border-radius: 11px;
    }

    .hub-dates strong {
        font-size: .84rem;
    }

    .hub-dates span {
        font-size: .62rem;
        letter-spacing: .04em;
    }

    .hub-days h2 {
        margin-bottom: 4px;
        font-size: 1.12rem;
    }

    .hub-sub {
        display: none;
    }

    .hub-grid {
        gap: 9px;
        margin-bottom: 26px;
    }

    .day-card {
        padding: 9px 4px 8px;
        border-bottom-width: 3px;
        border-radius: 14px;
    }

    .day-img-wrap {
        width: 58px;
        height: 58px;
        margin-bottom: 6px;
        border-width: 2px;
    }

    .day-num {
        font-size: .66rem;
        line-height: 1.2;
        letter-spacing: .07em;
        /* the raw accent is too light to read at this size - darken it toward ink */
        color: color-mix(in srgb, var(--accent) 62%, #1c1917);
    }

    .day-name {
        margin: 1px 0;
        font-size: .92rem;
        line-height: 1.22;
    }

    .day-date {
        font-size: .75rem;
        line-height: 1.3;
    }

    .day-color {
        display: none;
    }

    .hub-share {
        gap: 10px;
        margin-bottom: 30px;
    }

    .hub-share a,
    .hub-share button {
        padding: 9px 16px;
        font-size: .84rem;
    }

    .hub-info {
        margin-bottom: 30px;
        padding: 22px 16px;
        border-radius: 14px;
    }

    .hub-info h2 {
        font-size: 1.3rem;
    }

    .hub-info h3 {
        margin: 20px 0 10px;
        font-size: .95rem;
    }

    .hub-info > p {
        font-size: .9rem;
    }

    .hub-link {
        padding: 12px 13px;
    }

    .hub-link-title {
        font-size: .88rem;
    }

    .hub-link-desc {
        font-size: .74rem;
    }

    .hub-faq h2 {
        margin-bottom: 12px;
        font-size: 1.25rem;
    }

    .hub-faq summary {
        padding: 13px 15px;
        font-size: .9rem;
    }

    .hub-faq p {
        padding: 0 15px 14px;
        font-size: .88rem;
    }
}

/* narrow phones: geometry only, the type sizes above still apply */
@media (max-width: 400px) {
    .hub-hero-media {
        width: 62px;
        height: 62px;
    }

    .hub-hero h1 {
        font-size: 1.28rem;
    }

    .hub-grid {
        gap: 8px;
    }

    .day-card {
        padding: 8px 3px 7px;
    }

    .day-img-wrap {
        width: 54px;
        height: 54px;
    }
}

/* <=800px tall: compress so the nine days still fit above the fold */
@media (max-width: 620px) and (max-height: 800px) {
    .hub-hero {
        padding: 12px 0 10px;
    }

    .hub-hero-media {
        width: 62px;
        height: 62px;
        margin-bottom: 6px;
    }

    .hub-hero h1 {
        font-size: 1.3rem;
    }

    .hub-lede {
        display: none;
    }

    .hub-dates {
        margin-top: 10px;
    }

    .hub-grid {
        gap: 7px;
    }

    .day-card {
        padding: 7px 3px 6px;
    }

    .day-img-wrap {
        width: 50px;
        height: 50px;
        margin-bottom: 5px;
    }

    .day-num {
        font-size: .6rem;
    }

    .day-name {
        font-size: .82rem;
    }

    .day-date {
        font-size: .68rem;
    }
}

/* <=720px tall: tighter still (geometry only - the type sizes stay) */
@media (max-width: 620px) and (max-height: 720px) {
    .hub-hero {
        padding: 9px 0 8px;
    }

    .hub-hero-media {
        width: 52px;
        height: 52px;
        margin-bottom: 5px;
    }

    .hub-hero h1 {
        font-size: 1.16rem;
    }

    .hub-dates {
        margin-top: 8px;
    }

    .hub-grid {
        gap: 6px;
    }

    .day-card {
        padding: 5px 2px 4px;
    }

    .day-img-wrap {
        width: 42px;
        height: 42px;
        margin-bottom: 3px;
    }
}

/* <=660px tall: one more notch */
@media (max-width: 620px) and (max-height: 660px) {
    .hub-hero-media {
        width: 46px;
        height: 46px;
    }

    .hub-hero h1 {
        font-size: 1.1rem;
    }

    .hub-dates {
        margin-top: 6px;
    }

    .hub-grid {
        gap: 5px;
    }

    .day-card {
        padding: 4px 2px 3px;
    }

    .day-img-wrap {
        width: 38px;
        height: 38px;
    }
}

/* ------------------------------------------------------------- printing */
@media print {
    .hub-share,
    #main-header,
    footer {
        display: none;
    }
}
