
.archive-nav {display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.7rem 1.8rem; padding:1rem; position:relative; z-index:5; background:#111; color:#fff; font-family:var(--font-family-navigation,inherit); font-size:.86rem; letter-spacing:.07em}
.archive-nav a,.archive-nav summary {color:#fff; cursor:pointer}
.archive-nav a:focus-visible,.archive-nav summary:focus-visible {outline:2px solid currentColor; outline-offset:3px}
.archive-nav details {position:relative}
.archive-nav details div {position:absolute; right:0; min-width:16rem; padding:1rem; display:grid; gap:.8rem; background:#111; box-shadow:0 6px 18px #0008}
.archive-nav details:not([open]) div {display:none}
.content-main-wrapper {padding-top:0!important}
.content-main-wrapper > .js-header-magic-padding-has-been-set {padding-top:0!important}
.content-main-wrapper > .section-wrapper[data-section-setting-section-height="small"]:not([data-section-key="gallery"]) {min-height:25vh}
.content-main-wrapper > .section-wrapper[data-section-setting-section-height="small"] > .section-contents-wrapper {padding-block:clamp(1.25rem,2.6vmax,3.1rem)}
.content-main-wrapper > .section-wrapper[data-section-key="text-simple"][data-section-setting-section-height="small"],
.content-main-wrapper > #content-section-LBNYx8lNzK,
.content-main-wrapper > #page-section-blog {min-height:0!important}
.content-main-wrapper > #content-section-LBNYx8lNzK > .section-contents-wrapper {padding-block:clamp(.75rem,1.7vw,2rem)}
#content-section-LBNYx8lNzK .image-wrapper {padding-bottom:0!important}
#content-section-LBNYx8lNzK img.section-image {
    display:block;position:static;width:100%;height:auto;object-fit:contain;
    mask-image:linear-gradient(to right,transparent,#000 7%,#000 92%,transparent),
               linear-gradient(to bottom,transparent,#000 5%,#000 95%,transparent);
    mask-composite:intersect;
}
@media(max-width:650px){
 .content-main-wrapper .section-contents-wrapper,.content-main-wrapper .section-contents {min-width:0;max-width:100%}
 .content-main-wrapper .row {margin-inline:0}
 .content-main-wrapper .heading-text,.content-main-wrapper .richtext {overflow-wrap:break-word}
}
.content-main-wrapper > #page-section-blog > .section-contents-wrapper {padding-top:clamp(1rem,2vw,2rem)}
#page-section-blog .blog-post-list-block[data-layout="sideBySide"] .blog-post-item {opacity:1;transform:none;transition:none}
#page-section-blog .blog-post-list-block[data-layout="sideBySide"] > article.blog-post-item {padding-block:.65rem;margin:0;border-bottom:1px solid #0002}
#page-section-blog .blog-post-list-block[data-layout="sideBySide"] > article.blog-post-item .blog-post-text-wrapper {width:100%;padding:0}
.pdf-library {width:min(100%,1160px);margin:1rem auto;padding:0 1rem 2rem}
.pdf-library > p {text-align:center}
.pdf-grid {list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1.25rem;text-align:left}
.pdf-grid li {border:1px solid #ffffff32;padding:1.25rem}
.pdf-grid img {display:block;width:100%;height:auto;max-height:19rem;object-fit:contain;margin-bottom:1rem}
.pdf-grid h3 {font-size:1.2rem;line-height:1.4;margin:.45rem 0}
.pdf-format {font-size:.75rem;letter-spacing:.06em}
.pdf-entry {width:min(calc(100% - 2rem),760px);margin:3rem auto;color:#eee;line-height:1.65}
body.pdf-layout {background:#111;color:#eee}
.pdf-layout a {color:inherit;text-decoration:underline}
.kg-width-wide {width:min(100%, 1100px); margin-inline:auto}
.kg-width-full {width:100%; margin-inline:0}
body {font-family:var(--gh-font-body, inherit)}
h1,h2,h3 {font-family:var(--gh-font-heading, inherit)}
@media(max-width:650px){.archive-nav {gap:.65rem 1rem;font-size:.74rem} .archive-nav details div {position:fixed;top:auto;left:1rem;right:1rem}}

/* Native Ghost cards and article rhythm for migrated pages. */
[data-native-content] .blog-post-wrapper {max-width:min(100%, 49rem);margin-inline:auto}
[data-native-content] .blog-post-top-wrapper {margin:0 auto clamp(1.4rem,3vw,2.5rem)}
[data-native-content] .blog-post-name {line-height:1.15;overflow-wrap:anywhere}
[data-native-content] .blog-post-top-wrapper .blog-post-name {
  font-size:clamp(1.9rem,4.4vw,3.1rem);text-wrap:balance;
}
[data-native-content] .blog-post-content {font-size:clamp(1rem,1.45vw,1.1rem);line-height:1.72;overflow-wrap:break-word}
[data-native-content] .blog-post-content :is(h1,h2,h3) {
  margin:1.35em 0 .5em;line-height:1.22;text-wrap:pretty;
}
[data-native-content] .blog-post-content h1 {font-size:clamp(1.65rem,3.8vw,2.45rem)}
[data-native-content] .blog-post-content h2 {font-size:clamp(1.35rem,3vw,1.9rem)}
[data-native-content] .blog-post-content p {margin:0 0 .85em}
[data-native-content] .kg-audio-card {margin:0 0 1.9rem}
[data-native-content] .kg-header-card {max-width:100%;margin:0}
[data-native-content] .kg-header-card-text {padding:clamp(1.5rem,4vw,3rem) clamp(1rem,4vw,2.5rem)}
[data-native-content] .kg-header-card-heading {font-size:clamp(1.35rem,3vw,1.9rem)!important;font-weight:400!important;line-height:1.25!important}
[data-native-content] .kg-header-card-subheading {font-size:1rem!important;line-height:1.65!important;max-width:39rem!important}
[data-native-content] .kg-header-card-button {border-radius:0!important;white-space:normal}
[data-native-content] .blog-post-content > .kg-header-card {margin:1.65rem 0}
[data-native-content] > .kg-image-card {margin:0 auto;padding:1rem 1.25rem;background:#000;text-align:center}
[data-native-content] > .kg-image-card img {display:block;width:auto;max-width:100%;height:auto;max-height:34rem;margin:auto}
[data-native-content] > .kg-layout-split .kg-header-card-content {max-width:75rem;margin-inline:auto}
[data-native-content] .kg-layout-split img {object-fit:contain}
[data-native-content] .native-related-library {background:#111;color:#fff;padding:2rem 1rem;text-align:center}
@media(max-width:650px){[data-native-content] .kg-layout-split .kg-header-card-content {grid-template-columns:1fr}}

[data-native-content] > [data-section-key="blog-post-hero-image"] {min-height:0!important}
[data-native-content] > [data-section-key="blog-post-hero-image"] > .section-contents-wrapper {padding-block:clamp(1rem,2vw,2rem)!important}
[data-native-content] > [data-section-key="blog-post-hero-image"] .media {padding-bottom:0!important;overflow:visible}
[data-native-content] > [data-section-key="blog-post-hero-image"] .media > img {
    position:static!important;display:block;width:auto!important;max-width:100%;height:auto!important;
    max-height:min(62svh,38rem);margin:0 auto;object-fit:contain;
}
[data-native-content] > .kg-header-card.kg-v2:not(.kg-layout-split) .kg-header-card-text {
    padding:clamp(1.5rem,4vw,3rem) clamp(1rem,4vw,2.5rem)!important;
}
[data-native-content] > .kg-header-card.kg-v2:not(.kg-layout-split) .kg-header-card-content {
    min-height:0!important;
}
[data-native-content] > .kg-layout-split .kg-header-card-image {
    align-self:start!important;height:auto!important;width:100%!important;
    max-height:42rem;object-fit:contain;object-position:center top;
}
@media(min-width:651px) {
    [data-native-content] > .kg-layout-split .kg-header-card-image {margin-top:clamp(1.5rem,4vw,3rem)}
}
@media(max-width:650px) {
    [data-native-content] > .kg-layout-split .kg-header-card-image {max-height:60svh}
}

/* Let unused space beside portrait covers blend into the article background. */
[data-native-content] > [data-section-key="blog-post-hero-image"] .media {
    background:transparent!important;
}

@media (max-width: 850px) {
    nav.archive-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 10px 16px;
        font-size: .78rem;
    }
    nav.archive-nav > a,
    nav.archive-nav summary,
    nav.archive-nav details div a {
        box-sizing: border-box;
        min-height: 48px;
        padding: 8px 10px;
        line-height: 1.25;
        background: #1b1b1b;
    }
    nav.archive-nav > a,
    nav.archive-nav summary {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    nav.archive-nav summary::before {
        content: "▸";
        margin-inline-end: .45em;
    }
    nav.archive-nav details[open] summary::before { content: "▾"; }
    nav.archive-nav summary::-webkit-details-marker { display: none; }
    nav.archive-nav details { position: static; }
    nav.archive-nav details[open] > div {
        position: absolute;
        inset: 100% 16px auto;
        min-width: 0;
        max-height: 60vh;
        overflow-y: auto;
        gap: 4px;
        padding: 6px;
    }
    nav.archive-nav details div a {
        display: flex;
        align-items: center;
    }
}

/* Reading sizes shared by the Ghost templates. */
nav.archive-nav {
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: .045em;
}
body .site-entry-content,
body [data-native-content] .blog-post-content {
    font-size: clamp(1.1875rem, 1.5vw, 1.3125rem);
}
body .native-home-cards .kg-header-card-subheading,
body [data-native-content] .kg-header-card-subheading {
    font-size: clamp(1.1875rem, 1.5vw, 1.3125rem) !important;
}
body .native-home-cards .kg-header-card-heading,
body [data-native-content] .kg-header-card-heading {
    font-size: clamp(1.55rem, 3vw, 2.15rem) !important;
}
body .kg-header-card .kg-header-card-button,
body .kg-button-card .kg-btn,
body .gh-post-upgrade-cta .gh-btn {
    font-size: 1rem;
    line-height: 1.35;
    white-space: normal;
}
body .pdf-library .pdf-grid p {
    font-size: 1.1875rem;
    line-height: 1.45;
}
body .pdf-grid h3 { font-size: 1.35rem; }
body .pdf-format { font-size: .9rem; }
body .site-entry time,
body .site-cover figcaption,
body .gh-post-upgrade-cta small {
    font-size: 1rem;
}
body #page-section-blog .archive-cover-list .archive-cover-row h2 {
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
}
@media (max-width: 850px) {
    nav.archive-nav { font-size: .9375rem; }
}

/* Explicitly hide the positioned panel whenever the disclosure is closed. */
nav.archive-nav > details:not([open]) > div {
    display: none !important;
    visibility: hidden !important;
}

.mobile-site-bar,
.mobile-menu:not([open]),
#mobile-warning-links[hidden] { display: none !important; }

@media (max-width: 850px) {
    nav.archive-nav { display: none; }
    .mobile-site-bar,
    .mobile-menu-heading {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        background: #111;
        padding: .5rem 1rem;
    }
    .mobile-site-bar a,
    .mobile-menu-heading a {
        color: #fff;
        font: 600 1.15rem/1.2 system-ui, sans-serif;
        letter-spacing: .08em;
        text-decoration: none;
    }
    .mobile-menu[open] {
        position: fixed;
        inset: 0;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        background: #111;
        color: #fff;
        overflow: auto;
        overscroll-behavior: contain;
    }
    html:has(.mobile-menu[open]) { overflow: hidden; }
    .mobile-menu::backdrop { background: #0009; }
    .mobile-menu-heading {
        position: sticky;
        top: 0;
        z-index: 1;
        border-bottom: 1px solid #fff3;
    }
    .mobile-site-bar button,
    .mobile-menu button {
        min-width: 48px;
        min-height: 48px;
        border: 0;
        padding: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }
    #mobile-menu-close { font: 2rem/1 system-ui, sans-serif; }
    .hamburger-lines {
        display: block;
        width: 24px;
        height: 2px;
        margin: auto;
        background: #fff;
        box-shadow: 0 -7px #fff, 0 7px #fff;
    }
    .mobile-menu nav { padding: .5rem 1rem 1.5rem; }
    .mobile-menu nav a,
    #mobile-warning-toggle {
        display: flex;
        align-items: center;
        gap: .5rem;
        min-height: 52px;
        padding: .55rem .75rem;
        border-bottom: 1px solid #fff3;
        color: #fff;
        font: 500 1rem/1.3 system-ui, sans-serif;
        text-align: left;
        text-decoration: none;
        text-transform: uppercase;
    }
    #mobile-warning-toggle { width: 100%; }
    #mobile-warning-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
    #mobile-warning-links { padding-inline-start: .75rem; }
    .mobile-menu :focus-visible,
    .mobile-site-bar :focus-visible { outline: 2px solid #e4fc55; outline-offset: -2px; }
}
