/* Activity article styles inside the active theme. */

.spabg-activity-page {
    --paper: #faf8f2;
    --ink: #1c312d;
    --green: #174f45;
    --line: #c9cfc3;
    --quiet: #495c54;
    --accent: #935235;
}

.spabg-activity-page .shell,
.spabg-activity-page :where(.shell) * {
    box-sizing: border-box;
}

.spabg-activity-page {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
}

.spabg-activity-page :where(.shell) a {
    color: var(--green);
    text-underline-offset: .24em;
}

.spabg-activity-page :where(.shell) a:focus-visible,
.spabg-activity-page :where(.shell) summary:focus-visible {
    outline: 3px solid #ae5736;
    outline-offset: 4px;
}

.spabg-activity-page :where(.shell) img {
    max-width: 100%;
    display: block;
}

.spabg-activity-page :where(.shell) figure,
.spabg-activity-page :where(.shell) p,
.spabg-activity-page :where(.shell) h1,
.spabg-activity-page :where(.shell) h2,
.spabg-activity-page :where(.shell) h3,
.spabg-activity-page :where(.shell) dl,
.spabg-activity-page :where(.shell) dd {
    margin: 0;
}

.spabg-activity-page :where(.shell) h1,
.spabg-activity-page :where(.shell) h2,
.spabg-activity-page :where(.shell) h3 {
    text-wrap: balance;
}

.spabg-activity-page :where(.shell) h2 {
    margin-bottom: 1.05rem;
}

.spabg-activity-page :where(.shell) p+p {
    margin-top: .85rem;
}

.spabg-activity-page .shell {
    max-width: 1232px;
    padding-inline: clamp(20px,4.5vw,68px);
    margin: auto;
}

.spabg-activity-page .activity-jumps {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 1rem;
    gap: clamp(15px,2.5vw,36px);
}

.spabg-activity-page .activity-jumps a {
    text-decoration: none;
    font-size: .94rem;
    font-weight: 600;
}

.spabg-activity-page .activity-jumps a:hover {
    text-decoration: underline;
}

.spabg-activity-page .hero {
    display: grid;
    grid-template-columns: minmax(0,.94fr) minmax(0,1.12fr);
    align-items: center;
    gap: clamp(28px,4.2vw,72px);
    padding-block: clamp(36px,5.5vw,78px) clamp(30px,4.5vw,60px);
}

.spabg-activity-page .eyebrow {
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.05rem;
}

.spabg-activity-page .lead {
    margin-top: 1.25rem;
    font-size: clamp(1.05rem,1.38vw,1.2rem);
    line-height: 1.63;
}

.spabg-activity-page .hero figure img {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.spabg-activity-page :where(.shell) figcaption {
    font-size: .86rem;
    line-height: 1.48;
    color: var(--quiet);
    margin-top: .55rem;
}

.spabg-activity-page :where(.shell) figcaption a {
    color: inherit;
}

.spabg-activity-page .by {
    white-space: normal;
    font-size: .8rem;
}

.spabg-activity-page .layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(260px,315px);
    align-items: start;
    gap: clamp(36px,6.5vw,92px);
    border-top: 1px solid var(--line);
    padding-top: clamp(32px,4vw,56px);
    padding-bottom: 48px;
}

.spabg-activity-page .copy section+section {
    margin-top: 2.8rem;
}

.spabg-activity-page .copy p {
    font-size: 1.1rem;
    line-height: 1.72;
}

.spabg-activity-page .copy figure {
    margin-top: 1.3rem;
}

.spabg-activity-page .copy figure img {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.spabg-activity-page .visit {
    background: #e8eee5;
    border-top: 4px solid var(--green);
    padding: 1.55rem;
    color: #203d34;
}

.spabg-activity-page .visit h2 {
    font-size: 1.85rem;
    line-height: 1.16;
}

.spabg-activity-page .visit dl {
    margin-top: .8rem;
}

.spabg-activity-page .visit dl>div {
    padding: .65rem 0;
    border-bottom: 1px solid #c3cfc3;
}

.spabg-activity-page .visit dt {
    font-size: .82rem;
    font-weight: 700;
    color: var(--quiet);
}

.spabg-activity-page .visit dd {
    font-size: 1.02rem;
    line-height: 1.46;
}

.spabg-activity-page .visit h3 {
    font-size: 1.35rem;
    margin: 1.4rem 0 .5rem;
}

.spabg-activity-page .prices {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    line-height: 1.38;
}

.spabg-activity-page .prices td,
.spabg-activity-page .prices th {
    text-align: left;
    padding: .5rem 0;
    border-bottom: 1px solid #c3cfc3;
}

.spabg-activity-page .prices th {
    font-weight: 400;
}

.spabg-activity-page .prices td {
    text-align: right;
    white-space: nowrap;
    padding-left: 10px;
    font-weight: 650;
}

.spabg-activity-page .map {
    display: inline-block;
    margin-top: 1rem;
    padding: .5rem .85rem;
    background: var(--green);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 650;
}

.spabg-activity-page .map:hover {
    background: #27685b;
}

.spabg-activity-page .stamp {
    font-size: .81rem;
    color: var(--quiet);
    margin-top: .9rem;
}

.spabg-activity-page .route {
    margin-top: 2.7rem;
    padding: 1.55rem clamp(1.1rem,3vw,2.2rem);
    border-left: 4px solid var(--accent);
    background: #f1eade;
}

.spabg-activity-page .route h2 {
    font-size: 1.8rem;
}

.spabg-activity-page .route p {
    font-size: 1.05rem;
}

.spabg-activity-page .sources {
    border-top: 1px solid var(--line);
    padding: 1.15rem 0 2rem;
    color: var(--quiet);
    font-size: .9rem;
}

.spabg-activity-page .sources summary {
    cursor: pointer;
    color: var(--green);
    font-weight: 650;
}

.spabg-activity-page .sources ul {
    padding-left: 1.2rem;
    line-height: 1.7;
}

.spabg-activity-page .sources p {
    max-width: 700px;
}

@media(max-width:850px) {
    .spabg-activity-page .hero {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .spabg-activity-page .layout {
        grid-template-columns: minmax(0,1fr) 245px;
        gap: 26px;
    }

    .spabg-activity-page .visit {
        padding: 1rem;
    }

}

@media(max-width:680px) {
    .spabg-activity-page .activity-jumps {
        gap: 14px;
    }

    .spabg-activity-page .activity-jumps a {
        font-size: .82rem;
    }

    .spabg-activity-page .hero {
        display: block;
        padding-block: 30px 24px;
    }

    .spabg-activity-page .hero figure {
        margin-top: 22px;
    }

    .spabg-activity-page .layout {
        display: flex;
        flex-direction: column;
        padding-block: 30px;
        gap: 26px;
    }

    .spabg-activity-page .visit {
        width: 100%;
        padding: 1.25rem;
    }

    .spabg-activity-page .copy p {
        font-size: 1.04rem;
    }

    .spabg-activity-page .copy section+section {
        margin-top: 2.1rem;
    }

    .spabg-activity-page .route {
        margin-top: 2rem;
    }
}

@media print {
    .spabg-activity-page {
        background: white;
        color: black;
    }

    .spabg-activity-page .activity-jumps,
    .spabg-activity-page .map {
        display: none;
    }

    .spabg-activity-page .shell {
        max-width: none;
        padding: 0;
    }

    .spabg-activity-page .hero,
    .spabg-activity-page .layout {
        display: block;
        padding: 12pt 0;
    }

    .spabg-activity-page .hero figure,
    .spabg-activity-page .copy figure {
        max-width: 65%;
    }

    .spabg-activity-page .visit {
        margin-top: 16pt;
    }

    .spabg-activity-page .copy section+section {
        margin-top: 15pt;
    }

    .spabg-activity-page :where(.shell) figure,
    .spabg-activity-page .visit tr {
        break-inside: avoid;
    }

    .spabg-activity-page :where(.shell) h1 {
        font-size: 28pt;
    }

    .spabg-activity-page :where(.shell) h2 {
        font-size: 19pt;
    }
}

.spabg-activity-page .copy figure + p {
    margin-top: 1rem;
}

.spabg-activity-page [id] {
    scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 1rem);
}
