/* Dedicated /download/ shell aligned with the public homepage design system. */
body.ybseo-download-hub-page {
    --ybd-ink: #143b34;
    --ybd-muted: #526560;
    --ybd-green: #205447;
    --ybd-green-dark: #143b34;
    --ybd-terra: #d85f32;
    --ybd-terra-dark: #a64b29;
    --ybd-gold: #f5c366;
    --ybd-line: #d9e3da;
    --ybd-paper: #ffffff;
    --ybd-soft: #fbfaf6;
    --ybd-pale-green: #edf7ef;
    margin: 0;
    color: var(--ybd-ink);
    background: var(--ybd-soft);
    font-family: Arial, "Segoe UI", sans-serif;
}

body.ybseo-download-hub-page .wp-site-blocks,
body.ybseo-download-hub-page .wp-site-blocks > .wp-block-group,
body.ybseo-download-hub-page .wp-site-blocks > .wp-block-group > .wp-block-group,
body.ybseo-download-hub-page .wp-block-post-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ybseo-download-hub-page .wp-site-blocks > * {
    margin-block-start: 0 !important;
}

/* Twenty Twenty-Five constrains direct post-content children separately. */
body.ybseo-download-hub-page .wp-block-post-content > #bsu-site-header.ybd-site-header,
body.ybseo-download-hub-page .wp-block-post-content > .ybd-main,
body.ybseo-download-hub-page .wp-block-post-content > .yc-footer {
    width: 100% !important;
    max-width: none !important;
    margin-block: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.ybseo-download-hub-page *,
body.ybseo-download-hub-page *::before,
body.ybseo-download-hub-page *::after {
    box-sizing: border-box;
}

body.ybseo-download-hub-page a {
    text-underline-offset: 3px;
}

body.ybseo-download-hub-page a:focus-visible,
body.ybseo-download-hub-page button:focus-visible {
    outline: 3px solid var(--ybd-terra-dark);
    outline-offset: 3px;
}

.ybd-shell,
.yc-footer .yc-shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

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

/* The same compact navigation treatment used on the homepage. */
#bsu-site-header.ybd-site-header {
    position: relative;
    z-index: 10;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--ybd-ink);
    background: #fbfaf6;
    border: 0;
    border-bottom: 1px solid var(--ybd-line);
    box-shadow: none;
    font: 14px/1.45 Arial, "Segoe UI", sans-serif;
    letter-spacing: normal;
    text-align: left;
}

#bsu-site-header .ybd-header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 78px !important;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px !important;
}

#bsu-site-header .bsu-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: var(--ybd-ink) !important;
    font: 800 14px/1.35 Arial, "Segoe UI", sans-serif;
    letter-spacing: normal;
    text-decoration: none !important;
}

#bsu-site-header .bsu-brand-text {
    max-width: 226px;
}

#bsu-site-header .bsu-nav {
    min-width: 0;
    margin: 0;
    padding: 8px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end !important;
    gap: 0 13px !important;
}

#bsu-site-header .bsu-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 5px 0;
    color: #36584e !important;
    background: none !important;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font: 700 13px/1.4 Arial, "Segoe UI", sans-serif;
    text-decoration: none !important;
    white-space: nowrap;
}

#bsu-site-header .bsu-nav a:hover,
#bsu-site-header .bsu-nav a:focus-visible,
#bsu-site-header .bsu-nav a[aria-current="page"],
#bsu-site-header .bsu-nav .is-current {
    color: var(--ybd-terra-dark) !important;
    background: none !important;
    border-bottom-color: var(--ybd-terra-dark);
}

#bsu-site-header .bsu-toggle {
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #b8cfc2;
    border-radius: 8px;
    color: var(--ybd-ink);
    background: #e8f2eb;
    font: 700 14px Arial, "Segoe UI", sans-serif;
    cursor: pointer;
}

#bsu-site-header [hidden] {
    display: none !important;
}

.ybd-main {
    width: 100%;
    margin: 0;
    color: var(--ybd-ink);
    background: var(--ybd-soft);
}

.ybd-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 54px;
    color: var(--ybd-ink);
    background: linear-gradient(124deg, #edf7ef 0%, #fbfaf6 52%, #fff4e8 100%);
}

.ybd-hero::after {
    position: absolute;
    right: -95px;
    bottom: -245px;
    width: 540px;
    height: 540px;
    border: 1px solid rgba(20, 59, 52, .12);
    border-radius: 50%;
    content: "";
}

.ybd-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
    gap: clamp(44px, 7vw, 86px);
    align-items: center;
}

.ybd-eyebrow {
    margin: 0 0 15px;
    color: #c16037;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ybd-eyebrow::before {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border: 3px solid #f4d3c5;
    border-radius: 50%;
    background: var(--ybd-terra);
    box-sizing: content-box;
    vertical-align: -2px;
    content: "";
}

.ybd-hero h1 {
    max-width: 790px;
    margin: 0;
    color: var(--ybd-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(45px, 5.7vw, 74px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.065em;
}

.ybd-hero h1 span {
    color: var(--ybd-terra);
}

.ybd-lead {
    max-width: 750px;
    margin: 25px 0 0;
    color: #36584e;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.48;
}

.ybd-hero-actions,
.ybd-card-actions,
.ybd-check-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.ybd-hero-actions {
    margin-top: 31px;
}

.ybd-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ybd-button:hover,
.ybd-button:focus-visible {
    transform: translateY(-1px);
}

.ybd-button-primary {
    color: #fff;
    background: var(--ybd-terra);
    box-shadow: 0 13px 23px rgba(216, 95, 50, .22);
}

.ybd-button-primary:hover,
.ybd-button-primary:focus-visible {
    color: #fff;
    background: var(--ybd-terra-dark);
}

.ybd-button-secondary {
    border-color: #b8cfc2;
    color: var(--ybd-green);
    background: #e8f2eb;
}

.ybd-button-secondary:hover,
.ybd-button-secondary:focus-visible {
    border-color: #9fbdad;
    color: var(--ybd-ink);
    background: #d9ece0;
}

.ybd-hero-note {
    max-width: 690px;
    margin: 18px 0 0;
    color: #526560;
    font-size: 13px;
    line-height: 1.55;
}

.ybd-summary {
    padding: clamp(25px, 3vw, 34px);
    border: 1px solid #cee1d5;
    border-radius: 18px;
    color: var(--ybd-ink);
    background: #fff;
    box-shadow: 0 24px 55px rgba(28, 67, 55, .13);
}

.ybd-summary-kicker {
    margin: 0;
    color: #c16037;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ybd-summary h2 {
    margin: 8px 0 20px;
    color: var(--ybd-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.ybd-summary ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ybd-summary li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid #e3e7df;
    color: #526560;
    font-size: 14px;
}

.ybd-summary li strong {
    color: var(--ybd-ink);
    text-align: right;
}

.ybd-summary > a {
    display: inline-block;
    margin-top: 19px;
    color: var(--ybd-terra-dark);
    font-size: 13px;
    font-weight: 800;
}

.ybd-packages {
    padding: 90px 0;
    background: #fbfaf6;
}

.ybd-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .68fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 34px;
}

.ybd-section-heading h2,
.ybd-checks h2 {
    margin: 0;
    color: var(--ybd-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.ybd-section-heading > p {
    margin: 0;
    color: var(--ybd-muted);
    font-size: 16px;
    line-height: 1.6;
}

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

.ybd-card {
    min-width: 0;
    padding: 23px;
    border: 1px solid var(--ybd-line);
    border-radius: 14px;
    background: var(--ybd-paper);
    box-shadow: 0 5px 16px rgba(26, 61, 49, .04);
}

.ybd-card-featured {
    border-color: var(--ybd-green-dark);
    color: #fff;
    background: var(--ybd-green-dark);
    box-shadow: 0 17px 38px rgba(20, 59, 52, .16);
}

.ybd-card-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ybd-platform {
    color: #c16037;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ybd-card-featured .ybd-platform {
    color: var(--ybd-gold);
}

.ybd-status {
    padding: 6px 9px;
    border-radius: 6px;
    color: #805519;
    background: #f7eddc;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ybd-card-featured .ybd-status {
    color: var(--ybd-green-dark);
    background: var(--ybd-gold);
}

.ybd-status-neutral {
    color: #31584d;
    background: #e8f4ec;
}

.ybd-card h3 {
    margin: 19px 0 11px;
    color: var(--ybd-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.ybd-card-featured h3 {
    color: #fff;
}

.ybd-card > p {
    min-height: 82px;
    margin: 0;
    color: var(--ybd-muted);
    font-size: 15px;
    line-height: 1.55;
}

.ybd-card-featured > p {
    color: #c7d8d2;
}

.ybd-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 23px 0;
}

.ybd-card dl div {
    padding: 12px;
    border-radius: 10px;
    background: #f4f4ed;
}

.ybd-card-featured dl div {
    background: rgba(255, 255, 255, .09);
}

.ybd-card dt {
    color: var(--ybd-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ybd-card-featured dt {
    color: #9fbbb2;
}

.ybd-card dd {
    margin: 4px 0 0;
    color: var(--ybd-ink);
    font-size: 13px;
    font-weight: 850;
}

.ybd-card-featured dd {
    color: #fff;
}

.ybd-card-actions {
    flex-direction: column;
}

.ybd-card-actions .ybd-button {
    width: 100%;
}

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

.ybd-card-featured .ybd-button-primary {
    color: var(--ybd-green-dark);
    background: var(--ybd-gold);
    box-shadow: none;
}

.ybd-card-featured .ybd-button-primary:hover,
.ybd-card-featured .ybd-button-primary:focus-visible {
    color: var(--ybd-green-dark);
    background: #ffda8c;
}

.ybd-card-featured .ybd-button-secondary {
    border-color: rgba(255, 255, 255, .42);
    color: #fff;
    background: transparent;
}

.ybd-card-featured .ybd-button-secondary:hover,
.ybd-card-featured .ybd-button-secondary:focus-visible {
    border-color: rgba(255, 255, 255, .72);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.ybd-guide-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--ybd-terra-dark);
    font-size: 13px;
    font-weight: 850;
}

.ybd-card-featured .ybd-guide-link {
    color: var(--ybd-gold);
}

.ybd-checks {
    padding: 76px 0;
    color: #fff;
    background: #143b34;
}

.ybd-checks-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 32px 70px;
    align-items: start;
}

.ybd-checks .ybd-eyebrow {
    color: var(--ybd-gold);
}

.ybd-checks .ybd-eyebrow::before {
    border-color: rgba(245, 195, 102, .25);
    background: var(--ybd-gold);
}

.ybd-checks h2 {
    color: #fff;
}

.ybd-checks ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ybd-checks li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.ybd-checks li:first-child {
    padding-top: 0;
    border-top: 0;
}

.ybd-checks li > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 195, 102, .4);
    border-radius: 9px;
    color: var(--ybd-gold);
    background: rgba(245, 195, 102, .09);
    font-size: 12px;
    font-weight: 900;
}

.ybd-checks li strong {
    display: block;
    color: #fff;
    font-size: 17px;
}

.ybd-checks li p {
    margin: 5px 0 0;
    color: #b7cec7;
    font-size: 14px;
    line-height: 1.55;
}

.ybd-check-actions {
    grid-column: 2;
}

.ybd-button-light {
    color: var(--ybd-green-dark);
    background: var(--ybd-gold);
}

.ybd-button-light:hover,
.ybd-button-light:focus-visible {
    color: var(--ybd-green-dark);
    background: #ffda8c;
}

.ybd-button-ghost {
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    background: transparent;
}

.ybd-button-ghost:hover,
.ybd-button-ghost:focus-visible {
    border-color: rgba(255, 255, 255, .65);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.ybd-disclosure {
    padding: 22px 0;
    border-bottom: 1px solid #e4e7de;
    color: #526560;
    background: #fff9f3;
    font-size: 13px;
    line-height: 1.55;
}

.ybd-disclosure strong {
    color: var(--ybd-ink);
}

/* Match the homepage footer rather than the generic legacy article footer. */
body.ybseo-download-hub-page .yc-footer {
    margin: 0 !important;
    padding: 36px 0;
    color: #bdd0c8;
    background: #0f302a;
    font: 13px/1.5 Arial, "Segoe UI", sans-serif;
}

.yc-footer .yc-shell {
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: 42px;
    align-items: start;
}

.yc-footer b {
    display: block;
    color: #fff;
    font-size: 15px;
}

.yc-footer p {
    margin: 6px 0 0;
}

.yc-footer-copy {
    margin-top: 18px;
    color: #809b91;
    font-size: 12px;
}

.yc-footer-legal {
    display: grid;
    gap: 8px;
}

.yc-footer-legal a {
    color: #e8f2ed;
}

.yc-footer-status {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin-top: 5px;
    padding: 6px 9px;
    border: 1px solid rgba(245, 195, 102, .48);
    border-radius: 7px;
    color: #f3d79c;
    line-height: 1.3;
}

@media (max-width: 1000px) {
    #bsu-site-header .ybd-header-inner {
        min-height: 0 !important;
        padding: 10px 0 !important;
        flex-wrap: wrap;
        gap: 0 12px !important;
    }

    #bsu-site-header .bsu-nav {
        flex-basis: 100%;
        justify-content: flex-start !important;
        gap: 0 20px !important;
        padding: 10px 0 0;
    }

    #bsu-site-header .bsu-nav a {
        padding: 8px 0;
    }

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

    .ybd-card:last-child {
        grid-column: 1 / -1;
    }

    .yc-footer .yc-shell {
        grid-template-columns: 1fr 1.4fr;
    }

    .yc-footer-legal {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, max-content) 1fr;
        align-items: center;
    }

    .yc-footer-status {
        justify-self: end;
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .ybd-shell,
    .yc-footer .yc-shell {
        width: min(100% - 30px, 1180px);
    }

    .ybd-hero {
        padding: 58px 0 48px;
    }

    .ybd-hero-grid,
    .ybd-section-heading,
    .ybd-checks-grid {
        grid-template-columns: 1fr;
    }

    .ybd-hero-grid {
        gap: 38px;
    }

    .ybd-section-heading {
        gap: 17px;
    }

    .ybd-packages {
        padding: 65px 0;
    }

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

    .ybd-card:last-child,
    .ybd-check-actions {
        grid-column: auto;
    }

    .ybd-card > p {
        min-height: 0;
    }

    .ybd-checks {
        padding: 60px 0;
    }

    .ybd-checks-grid {
        gap: 33px;
    }

    .yc-footer .yc-shell,
    .yc-footer-legal {
        grid-template-columns: 1fr;
    }

    .yc-footer-status {
        justify-self: start;
    }
}

@media (max-width: 470px) {
    #bsu-site-header .ybd-header-inner {
        width: calc(100% - 28px);
    }

    #bsu-site-header .bsu-brand-text {
        max-width: 180px !important;
        font-size: 12px !important;
    }

    .ybd-hero h1 {
        font-size: 39px;
        letter-spacing: -.052em;
    }

    .ybd-hero-actions,
    .ybd-check-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ybd-card {
        padding: 23px 20px;
    }

    .ybd-card-actions-split {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ybd-button {
        transition: none;
    }
}
