/* RunningCoach200 cookie consent — matches existing forest/paper/rust palette. */
#rc200-consent-root {
    --rc-ink: #17221d;
    --rc-paper: #f2efe7;
    --rc-forest: #1f3329;
    --rc-rust: #d96f43;
    --rc-border: rgba(23, 34, 29, .19);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--rc-ink);
    line-height: 1.5;
}

#rc200-consent-root *,
#rc200-consent-root *::before,
#rc200-consent-root *::after {
    box-sizing: border-box;
}

#rc200-consent-root [hidden] {
    display: none !important;
}

.rc-cookie-banner {
    position: fixed;
    z-index: 10000;
    left: clamp(.75rem, 2vw, 2rem);
    right: clamp(.75rem, 2vw, 2rem);
    bottom: clamp(.75rem, 2vw, 2rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
    max-width: 1250px;
    margin-inline: auto;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid var(--rc-border);
    background: var(--rc-paper);
    box-shadow: 0 16px 70px rgba(6, 18, 12, .26);
    border-radius: 6px;
}

.rc-cookie-banner__eyebrow {
    margin: 0 0 .4rem;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #a84b2c;
}

.rc-cookie-banner h2,
.rc-cookie-dialog h2 {
    margin: 0 0 .65rem;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    letter-spacing: -.045em;
    line-height: 1.09;
    color: var(--rc-ink);
}

.rc-cookie-banner__intro p:last-child {
    margin: 0;
    max-width: 730px;
    font-size: .85rem;
    line-height: 1.6;
    color: #3b473f;
}

.rc-cookie-banner a,
.rc-cookie-dialog a {
    color: #a84b2c;
    text-underline-offset: 3px;
}

.rc-cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(145px, 1fr));
    gap: .55rem;
    min-width: 312px;
}

.rc-cookie-banner__actions [data-cookie-manage] {
    grid-column: 1/-1;
}

.rc-cookie-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: .75rem .8rem;
    border: 1px solid var(--rc-forest);
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 750;
    letter-spacing: .01em;
    font-size: .78rem;
    line-height: 1.25;
    transition: background .2s, color .2s;
}

.rc-cookie-button--solid {
    background: var(--rc-forest);
    color: white;
}

.rc-cookie-button--solid:hover {
    background: #304d3d;
}

.rc-cookie-button--outline {
    background: transparent;
    color: var(--rc-forest);
}

.rc-cookie-button--outline:hover {
    background: #e0e5dc;
}

#rc200-consent-root button:focus-visible {
    outline: 3px solid var(--rc-rust);
    outline-offset: 3px;
}

.rc-cookie-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(12, 23, 16, .70);
    overflow: auto;
}

.rc-cookie-dialog {
    width: min(100%, 610px);
    max-height: min(92vh, 760px);
    overflow-y: auto;
    background: var(--rc-paper);
    border-radius: 6px;
    padding: clamp(1.25rem, 3vw, 2.2rem);
    box-shadow: 0 24px 90px rgba(0, 0, 0, .35);
}

.rc-cookie-dialog__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.rc-cookie-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid var(--rc-border);
    border-radius: 3px;
    background: transparent;
    color: var(--rc-ink);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.rc-cookie-dialog__lede {
    margin: .3rem 0 1.1rem;
    color: #455348;
    font-size: .87rem;
}

.rc-cookie-option {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--rc-border);
    font-size: .88rem;
}

.rc-cookie-option h3,
.rc-cookie-option strong {
    display: block;
    margin: 0 0 .15rem;
    font-size: .91rem;
    font-weight: 750;
    color: var(--rc-ink);
}

.rc-cookie-option p,
.rc-cookie-option span span {
    display: block;
    margin: 0;
    color: #59665d;
    font-size: .79rem;
    line-height: 1.5;
}

.rc-cookie-required {
    white-space: nowrap;
    font-size: .7rem;
    font-weight: 750;
    color: #41634d;
}

.rc-cookie-option--toggle {
    cursor: pointer;
}

.rc-cookie-option--toggle input {
    accent-color: var(--rc-forest);
    flex: 0 0 auto;
    min-width: 22px;
    min-height: 22px;
    cursor: pointer;
}

.rc-cookie-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: .8rem;
}

.rc-cookie-dialog__actions .rc-cookie-button {
    flex: 1;
    min-width: 150px;
}

body.rc200-consent-dialog-open {
    overflow: hidden;
}

.footer nav[aria-label="Legal links"] .rc-cookie-footer-link {
    display: block;
    padding: 0;
    border: 0;
    color: inherit;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
}

.footer nav[aria-label="Legal links"] .rc-cookie-footer-link:hover {
    text-decoration-color: currentColor;
}

@media (max-width:850px) {
    .rc-cookie-banner {
        grid-template-columns: 1fr;
    }

    .rc-cookie-banner__actions {
        min-width: 0;
        max-width: 440px;
    }
}

@media (max-width:450px) {
    .rc-cookie-banner {
        max-height: calc(100dvh - 1rem);
        overflow-y: auto;
        left: .5rem;
        right: .5rem;
        bottom: .5rem;
        padding: 1rem;
    }

    .rc-cookie-banner h2 {
        font-size: 1.6rem;
    }

    .rc-cookie-banner__intro p:last-child {
        font-size: .79rem;
    }

    .rc-cookie-banner__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rc-cookie-button {
        font-size: .72rem;
        padding: .65rem .4rem;
    }

    .rc-cookie-option {
        gap: .6rem;
    }

    .rc-cookie-required {
        white-space: normal;
        text-align: right;
    }
}