/*
Theme Name: Upsential Editorial
Template: kadence
Version: 0.17.0
Text Domain: upsential-editorial
*/
.up-editorial {
    --up-blue: #005e99;
    --up-deep: #063753;
    --up-ink: #102e40;
    --up-gold: #ffb825;
    --up-line: #dbe4e8;
    background: #fffdfa;
    color: var(--up-ink);
    font: 400 1rem/1.6 system-ui, sans-serif;
}
.up-editorial *, .up-editorial *::before, .up-editorial *::after { box-sizing: border-box; }
.up-editorial a { color: inherit; }
.up-editorial :focus-visible { outline: 3px solid #b76b00; outline-offset: 4px; }
.up-editorial img { display: block; max-width: 100%; height: auto; }
.up-editorial h1, .up-editorial h2, .up-editorial h3 {
    color: inherit;
    font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.03;
}
.up-shell { width: min(100% - 2rem, 80rem); margin-inline: auto; }
.up-skip { position: absolute; top: -10rem; left: 1rem; padding: .6rem 1rem; background: white; z-index: 9; }
.up-skip:focus { top: 1rem; }
.up-masthead { background: white; }
.up-brand { display: inline-flex; align-items: center; min-height: 70px; font-size: 1.55rem; font-weight: 800; text-decoration: none; }
.up-brand img { width: auto; max-width: 220px; max-height: 48px; }
.up-nav { background: var(--up-blue); color: white; }
.up-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.up-nav ul, .up-footer ul { list-style: none; padding: 0; margin: 0; }
.up-nav .up-menu { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.2rem; }
.up-nav a, .up-nav-toggle { display: block; padding: .7rem .35rem; font-weight: 800; text-decoration: none; }
.up-nav .up-menu > li > a { text-transform: uppercase; letter-spacing: .04em; }
.up-nav a:hover, .up-nav .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--up-gold); text-underline-offset: .25em; }
.up-nav .sub-menu { padding-left: .75rem; }
.up-nav .up-shop { background: var(--up-gold); color: var(--up-ink); padding: .3rem .7rem; }
.up-nav-toggle { display: none; }
.up-nav details { position: relative; }
.up-nav summary { padding: .7rem .35rem; cursor: pointer; font-weight: 750; }
.up-search form { position: absolute; right: 0; z-index: 3; width: min(18rem, 85vw); padding: .8rem; background: var(--up-deep); }
.up-search input { width: 100%; min-height: 42px; }
.up-search button { margin-top: .5rem; }
.up-hero { background: var(--up-deep); color: white; }
.up-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; }
.up-hero-copy { padding: clamp(1.4rem, 4vw, 4rem) clamp(1.2rem, 3vw, 3rem) clamp(1.4rem, 4vw, 4rem) 0; align-self: center; }
.up-hero-copy h1 { font-size: clamp(2.7rem, 6vw, 5.7rem); margin: .35rem 0 .65rem; }
.up-hero-copy p { margin: 0 0 1.2rem; max-width: 42ch; }
.up-hero-photo { position: relative; min-width: 0; min-height: 17rem; }
.up-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.up-hero-photo::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 13%; background: var(--up-gold); clip-path: polygon(0 0, 100% 0, 12% 100%, 0 100%); pointer-events: none; }
.up-button, .up-tag, .up-flag { display: inline-block; background: var(--up-gold); color: var(--up-ink) !important; font-weight: 800; text-decoration: none; }
.up-button { padding: .65rem 1rem; }
.up-tag { font-size: .79rem; padding: .24rem .55rem; text-transform: uppercase; letter-spacing: .04em; }
.up-flag {
    position: relative; margin: 0 0 1.45rem; padding: .4rem 1.2rem .45rem .66rem;
    text-transform: uppercase; font-size: clamp(1.45rem, 2.8vw, 2.1rem);
    clip-path: polygon(0 0, 100% 0, 96% 83%, 22% 83%, 7% 100%, 7% 83%, 0 83%);
    padding-bottom: .7rem;
}
.up-latest, .up-article, .up-product { padding-block: clamp(1.7rem, 4vw, 3.6rem); }
.up-feed-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.up-feed, .up-article-main { min-width: 0; }
.up-guide { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.15rem; padding-block: 1rem; border-bottom: 1px solid var(--up-line); }
.up-guide:first-of-type { padding-top: 0; }
.up-guide:hover h3 a { text-decoration: underline; }
.up-guide h3 { font-size: clamp(1.65rem, 3vw, 2.5rem); margin: .35rem 0; }
.up-guide h3 a { text-decoration: none; }
.up-guide-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.up-guide p { margin: 0; }
.up-ad { color: #455761; font-size: .75rem; text-align: center; margin-block: 1rem; }
.up-ad p { margin: 0 0 .25rem; }
.up-ad-preview { display: grid; align-content: center; min-height: 13rem; background: #edf0f2; }
.up-home-rail { display: none; }
.up-mobile-ad { display: block; }
.up-article-grid { display: grid; gap: 2rem; }
.up-article h1, .up-product h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); margin: .45rem 0 .7rem; }
.up-deck { font-size: 1.17rem; margin: 0 0 .8rem; }
.up-byline { margin-bottom: 1.25rem; color: #4c626e; }
.up-cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.up-quick { margin: 1.4rem 0; border-bottom: 1px solid var(--up-line); }
.up-quick .up-flag { font-size: 1.45rem; margin-bottom: .35rem; }
.up-quick p { margin: .1rem 0 .9rem; }
.up-prose { max-width: 70ch; font-size: 1.06rem; overflow-wrap: anywhere; }
.up-prose h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); margin-block: 1.35em .45em; }
.up-prose h3 { font-size: 1.65rem; }
.up-prose a { text-underline-offset: .18em; }
.up-article-rail { display: none; }
.up-related { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--up-line); }
.up-related ul { list-style: none; margin: 0; padding: 0; }
.up-related li + li { margin-top: .75rem; }
.up-footer { background: var(--up-deep); color: white; padding: 2rem 0; }
.up-footer .up-shell { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.up-footer .up-menu { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
@media (min-width: 58rem) {
    .up-article-grid { grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); }
    .up-article-rail { display: block; padding-top: clamp(5rem, 15vw, 12rem); }
    .up-mobile-ad { display: none; }
}
@media (min-width: 79rem) {
    .up-feed-grid { grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr) minmax(8rem, 10rem); }
    .up-home-rail { display: block; padding-top: 2.8rem; }
    .up-home-rail .up-ad-preview { min-height: 20rem; }
}
@media (max-width: 43rem) {
    .up-brand { min-height: 58px; }
    .up-brand img { max-width: 185px; max-height: 40px; }
    .up-nav-toggle { display: block; border: 0; color: white; background: transparent; cursor: pointer; }
    .up-nav-inner { flex-wrap: wrap; }
    .up-nav .up-menu { width: 100%; order: 3; }
    .up-nav .up-menu[hidden] { display: none; }
    .up-nav .up-menu > li { flex: 0 0 calc(50% - .6rem); }
    .up-hero-grid { display: flex; flex-direction: column-reverse; width: 100%; }
    .up-hero-copy { padding: 1.2rem 1rem 1.5rem; }
    .up-hero-copy h1 { font-size: clamp(2.45rem, 10vw, 3.45rem); }
    .up-hero-photo { min-height: 0; aspect-ratio: 16 / 9; }
    .up-hero-photo::after { display: none; }
    .up-guide { grid-template-columns: 1fr; gap: .65rem; }
}

.up-editorial { --up-paper: #fffdfa; --up-soft: #edf5f8; }
.up-editorial h1, .up-editorial h2, .up-editorial h3 {
    font-family: system-ui, sans-serif;
    font-weight: 720;
    line-height: 1.16;
    letter-spacing: -.025em;
}
.up-masthead { border-bottom: 3px solid var(--up-blue); }
.up-header-row {
    position: relative; display: flex; align-items: center;
    gap: clamp(.75rem, 2.5vw, 2rem); min-height: 82px;
}
.up-header-row .up-brand { margin-right: auto; flex-shrink: 0; }
.up-header-row .up-brand img { max-width: 190px; }
.up-header-row .up-nav { background: transparent; color: var(--up-ink); }
.up-header-row .up-nav .up-menu { column-gap: clamp(.5rem, 1.2vw, 1.25rem); }
.up-header-row .up-nav .up-menu > li > a {
    font-size: .95rem; font-weight: 650; text-transform: none; letter-spacing: 0;
    padding: .8rem .15rem;
}
.up-header-row .up-nav .current-menu-item > a,
.up-header-row .up-nav .current-menu-ancestor > a {
    text-decoration: underline; text-decoration-color: var(--up-gold);
    text-decoration-thickness: 3px; text-underline-offset: .45em;
}
.up-header-row .up-menu li { position: relative; }
.up-header-row .up-menu .sub-menu {
    display: none; padding: .4rem .75rem; background: white;
    min-width: 11rem; border: 1px solid var(--up-line);
}
.up-header-row .up-menu li:hover > .sub-menu,
.up-header-row .up-menu li:focus-within > .sub-menu { display: block; }
.up-search-open, .up-shop-link {
    display: inline-grid; place-items: center; min-height: 44px; min-width: 44px;
    border-radius: 99px; text-decoration: none;
}
.up-search-open { background: var(--up-soft); }
.up-search-open:hover { background: #daeaf1; }
.up-shop-link { padding-inline: .85rem; font-weight: 700; background: var(--up-gold); }
.up-search-dialog {
    position: fixed; inset: 0; margin: auto; width: min(calc(100% - 2rem), 38rem);
    max-height: calc(100% - 2rem); overflow: auto; padding: 2rem; border: 0;
    border-radius: 1rem; background: var(--up-paper); color: var(--up-ink);
    box-shadow: 0 24px 80px #102e403b;
}
.up-search-dialog::backdrop { background: #102e4099; }
.up-search-dialog h2 { margin: 0 2rem 1.15rem 0; font-size: 2rem; }
.up-search-dismiss { position: absolute; right: .75rem; top: .75rem; margin: 0; line-height: 0; }
.up-search-dismiss button {
    display: grid; place-items: center; box-sizing: border-box; width: 44px; height: 44px;
    min-width: 44px; min-height: 44px; padding: 0; border: 0; line-height: 1;
    border-radius: 50%; background: var(--up-soft); color: var(--up-ink); font-size: 1.5rem;
}
.up-search-dismiss button svg { display: block; }
.up-find { max-width: 34rem; }
.up-find label { display: block; margin-bottom: .4rem; font-weight: 650; }
.up-find > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.up-find input { width: 100%; min-width: 0; min-height: 48px; }
.up-button { border-radius: .5rem; border: 0; line-height: 1.4; }
.up-hero { background: var(--up-deep); }
.up-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
    align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
    padding-block: clamp(1.5rem, 4.2vw, 3.75rem);
}
.up-hero-copy { padding: 0; }
.up-hero-copy h1 {
    font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.08;
    margin: .75rem 0 .95rem; max-width: 17ch; text-wrap: balance;
}
.up-hero-copy p { max-width: 43ch; font-size: 1rem; margin-bottom: 1.25rem; }
.up-hero-photo { min-height: 0; overflow: hidden; border-radius: .75rem; }
.up-hero-photo img { position: static; width: 100%; height: auto; object-fit: contain; }
.up-hero-photo::after {
    inset: 0 auto 0 0; width: clamp(12px, 3vw, 32px);
    clip-path: polygon(0 0, 100% 0, 15% 100%, 0 100%);
}
.up-tag { padding: .3rem .65rem; line-height: 1.35; border-radius: .3rem; font-weight: 700; }
.up-editorial .up-flag {
    clip-path: none; font-size: clamp(1.15rem, 2.3vw, 1.6rem); font-weight: 710;
    line-height: 1.25; text-transform: none; border-radius: .55rem;
    padding: .48rem .8rem; margin-bottom: 1.4rem;
}
.up-flag::after {
    content: ""; position: absolute; bottom: -.39rem; left: .75rem;
    border-top: .45rem solid var(--up-gold); border-right: .6rem solid transparent;
}
.up-guide { gap: clamp(1rem, 3vw, 2rem); align-items: center; padding-block: 1.4rem; }
.up-guide-photo img, .up-cover img { border-radius: .65rem; }
.up-guide h3 { font-size: clamp(1.35rem, 2.45vw, 2.05rem); margin-block: .55rem; }
.up-article h1 { font-size: clamp(2rem, 4.3vw, 3.75rem); max-width: 22ch; }
.up-article-grid { gap: clamp(1.5rem, 4vw, 3.75rem); }
.up-prose { font-size: 1.09rem; line-height: 1.72; }
.up-quick { padding: 1rem 1.15rem; margin-block: 1.5rem; background: var(--up-soft); border: 0; border-radius: .65rem; }
.up-quick .up-flag { margin-bottom: .85rem; }
.up-quick p { margin-bottom: 0; }
.up-read-next { margin-top: 3rem; padding-top: 1.65rem; border-top: 1px solid var(--up-line); }
.up-next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.up-next-card { overflow: hidden; border: 1px solid var(--up-line); border-radius: .75rem; background: white; }
.up-next-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.up-next-card > div { padding: 1rem; }
.up-next-card h3 { margin: .55rem 0 0; font-size: 1.1rem; }
.up-next-card h3 a, .up-archive-card h2 a { text-decoration: none; }
.up-next-card h3 a:hover, .up-archive-card h2 a:hover { text-decoration: underline; }
.up-comments {
    margin-top: 1.75rem; border: 1px solid var(--up-line);
    border-radius: .65rem; padding: .85rem 1.1rem; background: white;
}
.up-comments > summary { cursor: pointer; font-weight: 650; }
.up-archive-head { background: var(--up-soft); padding-block: clamp(2rem, 5vw, 4rem); }
.up-archive-head h1 {
    font-size: clamp(2.15rem, 5.1vw, 4.25rem); margin: .45rem 0 .7rem; max-width: 22ch;
}
.up-archive-head .up-shell > a { font-weight: 680; text-underline-offset: .25em; }
.up-archive-head .up-shell > div { max-width: 62ch; }
.up-archive { padding-block: clamp(1.5rem, 4vw, 3.6rem); }
.up-archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.up-archive-card { background: white; border: 1px solid var(--up-line); border-radius: .85rem; overflow: hidden; }
.up-archive-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.up-archive-copy { padding: clamp(1.2rem, 3vw, 2.2rem); align-self: center; }
.up-archive-copy h2 { font-size: clamp(1.4rem, 3.1vw, 2.3rem); margin: .35rem 0 .65rem; }
.up-archive-copy p { max-width: 55ch; margin: 0 0 .85rem; }
.up-read-link { font-weight: 680; text-underline-offset: .2em; }
.up-archive .pagination { margin-top: 1.6rem; }
.up-archive .page-numbers { display: inline-block; padding: .4rem .55rem; }
.up-footer { padding: clamp(2.2rem, 5vw, 4rem) 0 1.25rem; }
.up-footer .up-footer-grid {
    display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: clamp(1.35rem, 4vw, 3rem);
}
.up-footer-brand { display: inline-block; background: white; padding: .7rem .9rem; border-radius: .55rem; color: var(--up-ink) !important; }
.up-footer-brand img { width: auto; max-width: 170px; max-height: 42px; }
.up-footer-intro p { max-width: 32ch; margin: .85rem 0 0; color: #e4eff4; }
.up-footer h2 { margin: 0 0 .75rem; font-size: 1.05rem; }
.up-footer li + li { margin-top: .4rem; }
.up-footer nav a { text-decoration: none; }
.up-footer nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.up-footer .up-footer-bottom { margin-top: 2rem; padding-top: .9rem; border-top: 1px solid #ffffff38; font-size: .85rem; color: #e4eff4; }
@media (min-width: 58.01rem) {
    .up-header-row .up-menu .sub-menu { position: absolute; z-index: 3; }
    .up-archive-featured > .up-archive-card:first-child { grid-column: 1 / -1; }
    .up-archive-featured > .up-with-image:first-child { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
@media (max-width: 58rem) {
    .up-header-row { min-height: 68px; gap: .45rem; flex-wrap: wrap; }
    .up-header-row .up-brand { min-height: 62px; }
    .up-header-row .up-brand img { max-width: clamp(120px, 38vw, 170px); }
    .up-header-row .up-nav .up-nav-toggle:not([hidden]) {
        display: block; padding: .5rem; min-height: 44px;
        font-weight: 650; color: var(--up-ink); border: 0; background: transparent;
    }
    .up-header-row .up-nav .up-menu:not([hidden]) {
        display: grid; position: absolute; z-index: 4; top: 100%; inset-inline: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .75rem 1rem;
        background: white; border: 1px solid var(--up-line); border-radius: 0 0 .65rem .65rem;
        box-shadow: 0 12px 24px #102e4021;
    }
    .up-header-row .up-nav .up-menu[hidden] { display: none; }
    .up-header-row .up-menu .sub-menu { display: block; background: transparent; border: 0; min-width: 0; padding: 0 0 .35rem .65rem; }
    .up-header-row .up-menu .sub-menu a { font-size: .88rem; padding: .35rem 0; }
    .up-archive-grid { grid-template-columns: 1fr; }
}
@media (max-width: 43rem) {
    .up-header-row .up-shop-link { padding-inline: .45rem; }
    .up-hero-grid { width: min(100% - 2rem, 80rem); align-items: stretch; gap: 1.1rem; }
    .up-hero-photo { aspect-ratio: auto; }
    .up-hero-photo::after { display: block; }
    .up-hero-copy h1 { font-size: clamp(2rem, 7.8vw, 2.85rem); }
    .up-search-dialog { padding: 1.35rem; }
    .up-footer .up-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .up-footer-intro { grid-column: 1 / -1; }
}

/* Sticky navigation, About, author archive and footer */
html:has(body.up-editorial) { scroll-padding-top: 9rem; }
.up-editorial .up-masthead {
    position: sticky; top: 0; z-index: 80; isolation: isolate;
    background: transparent; border: 0; padding-block: .4rem;
}
.up-editorial.admin-bar .up-masthead { top: 32px; }
.up-editorial .up-header-row {
    padding-inline: clamp(.65rem, 2.2vw, 1.5rem);
    background: #fffdfa; border-radius: 1.35rem; min-height: 66px;
}
.up-editorial .up-header-row .up-brand { min-height: 64px; }
.up-editorial .up-scrolled .up-header-row {
    box-shadow: 0 11px 28px #0b344326, 0 0 0 1px #102e4010;
}
.up-header-row .up-nav .up-menu > li > a {
    border-radius: .65rem; padding-inline: clamp(.35rem, .65vw, .65rem);
}
.up-header-row .up-nav .up-menu > li > a:hover { background: var(--up-soft); }
.up-header-row .up-search-open { background: #edf5f8; }
.up-header-row .up-search-open:hover { background: #ffedbc; }

.up-about { padding-block: clamp(1.2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
.up-about-hero {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
    background: var(--up-deep); color: white; border-radius: clamp(1rem, 3vw, 2rem);
    padding: clamp(1.5rem, 5vw, 4rem);
}
.up-about-hero h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); margin: 0 0 .75rem; }
.up-about-hero h1::after {
    content: ""; display: block; width: 3.5rem; height: .3rem;
    margin-top: 1rem; border-radius: .25rem; background: var(--up-gold);
}
.up-about-hero p { max-width: 38ch; margin: 0; font-size: clamp(1rem, 2vw, 1.3rem); }
.up-about-photo img { width: 100%; border-radius: .85rem; }
.up-about-content { width: min(100% - 2rem, 52rem); padding-top: clamp(1.5rem, 4vw, 3rem); }
.up-about-next { padding: clamp(1.2rem, 3vw, 2rem); margin-top: 2rem; background: var(--up-soft); border-radius: 1rem; }
.up-about-next h2 { margin: 0 0 .9rem; }

.up-author-head { background: transparent; padding-block: clamp(1.2rem, 3vw, 2rem) 0; }
.up-author-head .up-shell {
    position: relative; padding: clamp(1.3rem, 4vw, 3rem);
    border-radius: 1.5rem; background: var(--up-soft);
}
.up-author-label { margin: .75rem 0 .25rem; color: var(--up-blue); font-weight: 700; }
.up-author-head .up-author-initial {
    display: grid; place-items: center; width: 3rem; height: 3rem;
    border-radius: .85rem; background: var(--up-gold);
    font-size: 1.45rem; font-weight: 750; text-transform: uppercase;
}
.up-author-head .up-shell p:last-child { margin-bottom: 0; }

.up-editorial .up-footer {
    width: min(100% - 2rem, 87rem); margin: clamp(1.2rem, 4vw, 3rem) auto 1rem;
    padding: clamp(1.5rem, 4.5vw, 3.5rem) clamp(1.1rem, 4.5vw, 3.5rem) 1.15rem;
    border-radius: clamp(1.25rem, 4vw, 3rem); background: var(--up-soft); color: var(--up-ink);
}
.up-footer .up-footer-grid, .up-footer .up-footer-bottom { width: 100%; }
.up-footer .up-footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); }
.up-footer .up-footer-brand { display: inline-block; background: transparent; border-radius: 0; padding: 0; }
.up-footer .up-footer-brand img { max-width: 190px; max-height: 48px; }
.up-footer .up-footer-intro p { color: var(--up-ink); max-width: 30ch; }
.up-footer .up-footer-intro > p::after,
.up-footer .up-footer-social::after {
    content: ""; display: block; width: 2.4rem; height: .24rem;
    border-radius: 1rem; background: var(--up-gold); margin-top: .9rem;
}
.up-footer .up-footer-bottom { color: var(--up-ink); border-top-color: #102e4024; }
.up-footer nav a { display: inline-block; padding-block: .08rem; }

@media (max-width: 782px) {
    .up-editorial.admin-bar .up-masthead { top: 46px; }
}
@media (max-width: 600px) {
    .up-editorial.admin-bar .up-masthead { top: 0; }
    .up-editorial .up-header-row {
        width: calc(100% - 1rem); min-height: 58px; border-radius: 1rem;
    }
    .up-editorial .up-header-row .up-brand { min-height: 56px; }
}
@media (max-width: 43rem) {
    .up-footer .up-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Topic navigation and supporting editorial panels */
.up-topic-panel, .up-discover-panel, .up-byline-panel {
    align-self: start; padding: clamp(.9rem, 1.7vw, 1.3rem);
    border-radius: 1rem; background: var(--up-soft); color: var(--up-ink);
}
.up-topic-panel h2, .up-discover-panel h2, .up-byline-panel h2 {
    margin: 0 0 .65rem; font-size: clamp(1.03rem, 1.45vw, 1.3rem); line-height: 1.2;
}
.up-topic-panel ul { margin: 0; padding: 0; list-style: none; }
.up-topic-panel li + li { margin-top: .3rem; }
.up-topic-panel a, .up-discover-panel a, .up-byline-panel a {
    font-weight: 650; text-underline-offset: .2em; overflow-wrap: anywhere;
}
.up-topic-panel a:hover, .up-discover-panel a:hover, .up-byline-panel a:hover {
    text-decoration-thickness: 2px;
}
.up-discover-panel { background: #ffe7a5; }
.up-discover-panel p { margin: 0 0 .75rem; }
.up-byline-panel { border-top: .25rem solid var(--up-gold); }
.up-byline-panel p { margin: 0 0 .35rem; font-size: .86rem; }
.up-byline-panel h2 a { text-decoration: none; }
.up-home-rail > .up-ad, .up-article-rail > .up-ad { margin-block: 1.5rem 0; }
.up-home-topics-mobile { margin-block: 1rem 0; }
.up-home-topics-mobile .up-topic-panel ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.up-home-topics-mobile .up-topic-panel li { margin: 0; }
.up-home-topics-mobile .up-topic-panel a {
    display: block; background: #fffdfa; border-radius: 99px;
    padding: .24rem .6rem; text-decoration: none; font-size: .9rem;
}
.up-article-topic { display: none; }
.up-editorial .up-article-rail { display: block; padding-top: 0; }
.up-article-rail .up-desktop-ad { display: none; }

.up-standard-page { padding-block: clamp(1.2rem, 4vw, 2.8rem) clamp(2rem, 5vw, 4rem); }
.up-standard-head {
    color: var(--up-ink); background: var(--up-soft); border-radius: clamp(1rem, 3vw, 1.8rem);
    padding: clamp(1.5rem, 5vw, 3.5rem);
}
.up-standard-head h1 { margin: 0; font-size: clamp(2.2rem, 5.5vw, 4.5rem); }
.up-standard-head h1::after {
    content: ""; display: block; width: 3.5rem; height: .3rem;
    margin-top: .85rem; background: var(--up-gold); border-radius: 1rem;
}
.up-standard-grid { display: block; max-width:52rem; margin:clamp(1.25rem, 4vw, 3rem) auto 0; }
.up-standard-content { min-width:0; max-width:70ch; margin-inline:auto; font-size:1.09rem; line-height:1.72; overflow-wrap:anywhere; }
.up-standard-content > p, .up-standard-content > ul, .up-standard-content > ol { max-width: 70ch; }
.up-standard-content .up-cover { margin-bottom: 1.25rem; }

@media (min-width: 58rem) {
    .up-editorial .up-article-rail { padding-top: clamp(5.5rem, 12vw, 10rem); }
    .up-article-rail .up-desktop-ad { display: block; }
}
@media (min-width: 74rem) {
    .up-feed-grid { grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr) minmax(10rem, 12rem); }
    .up-home-rail { display: block; padding-top: .55rem; }
    .up-home-topics-mobile { display: none; }
}
@media (min-width: 90rem) {
    .up-article-grid:has(.up-article-topic) { grid-template-columns: minmax(9rem, 10.5rem) minmax(0, 1fr) minmax(13rem, 16rem); }
    .up-article-topic { display: block; margin-top: clamp(5.5rem, 12vw, 10rem); }
}
/* Search dismissal uses the same hover surface as the header search control. */
.up-search-dismiss button:hover{background:#ffedbc}

/* Official social profiles, shared across all site languages. */
.up-footer .up-footer-social{margin-top:1.25rem}
.up-footer-social-links{display:flex;flex-wrap:wrap;gap:.65rem}
.up-editorial .up-footer-social-links a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border:1px solid currentColor;border-radius:50%;color:inherit;text-decoration:none;transition:background-color .15s,color .15s,border-color .15s}
.up-editorial .up-footer-social-links a:hover{background:#ffbb05;border-color:#ffbb05;color:#102e40}
.up-editorial .up-footer-social-links a:focus-visible{outline:3px solid #ffbb05;outline-offset:4px}
.up-footer-social-links svg{display:block;flex-shrink:0}
@media(prefers-reduced-motion:reduce){.up-editorial .up-footer-social-links a{transition:none}}

/* About and Blog share the standard internal-page heading surface. */
.up-editorial .up-blog-head{background:transparent;padding-block:clamp(1.2rem,4vw,2.8rem) 0}
.up-blog-head .up-standard-head h1{max-width:none}
