:root { --nx-heading: "Fredoka", sans-serif; --nx-body: "Nunito", sans-serif; }
body.nx-theme-ready { --cn1-font-body:var(--nx-body); --cn1-font-head:var(--nx-heading); --cn1-font-ui:var(--nx-body); }
/* Reading comfort and predictable controls, without changing the product layout. */
html { scroll-padding-top: 1.5rem; }
body.nx-theme-ready { font-family: var(--nx-body); -webkit-text-size-adjust: 100%; }
body.nx-theme-ready :is(h1, h2, h3, h4, .brand-name) { font-family: var(--nx-heading); text-wrap: pretty; overflow-wrap: anywhere; }
body.nx-theme-ready :is(input, select, textarea, button, summary) { font-family: var(--nx-body); }
body.nx-theme-ready :is(button, input[type=submit], summary, .page-numbers) { touch-action: manipulation; }
body.nx-theme-ready :is(input[type=search], input[type=text], input[type=email], textarea) { font-size: max(1rem, 16px); }
body.nx-theme-ready :is(button, summary, .page-numbers, input[type=submit]) { min-height: 44px; }
body.nx-theme-ready :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
body.nx-theme-ready :is(h1, h2, h3) { line-height: 1.16; }
body.nx-theme-ready .nx-reading { font-size: clamp(1.0625rem, 1rem + .22vw, 1.1875rem); line-height: 1.85; }
body.nx-theme-ready .nx-reading p { margin-block: 0 1.4em; }
body.nx-theme-ready .nx-reading :is(h2, h3, h4) { margin-block: 1.8em .65em; line-height: 1.25; scroll-margin-top: 2rem; }
body.nx-theme-ready .nx-reading h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
body.nx-theme-ready .nx-reading h3 { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); }
body.nx-theme-ready .nx-reading :is(ul, ol) { padding-inline-start: 1.5em; }
body.nx-theme-ready .nx-reading li + li { margin-block-start: .45em; }
body.nx-theme-ready .nx-reading :is(img, video, iframe) { max-width: 100%; }
body.nx-theme-ready .nx-reading :is(figure, .wp-caption) { max-width: 100%; }
body.nx-theme-ready .nx-reading figure:not(.alignleft):not(.alignright) { margin-inline: auto; }
body.nx-theme-ready .nx-reading figcaption { font-family: var(--nx-body); font-size: .85em; line-height: 1.65; }
body.nx-theme-ready .nx-reading a { text-decoration: underline; text-underline-offset: .18em; }
body.nx-theme-ready :is(.post-navigation, .comment-navigation, .pagination-wrap) { clear: both; }
body.nx-theme-ready .nav-links > div { min-width: 0; }
body.nx-theme-ready .page-numbers.current { outline: 2px solid currentColor; outline-offset: 2px; font-weight: 800; }
body.nx-theme-ready [class*="ticker"]:hover, body.nx-theme-ready [class*="ticker"]:focus-within { animation-play-state: paused; }
body.nx-theme-ready :is(.nx-reading, main) { min-width: 0; }
.nx-search-disclosure { position: relative; }
.nx-search-disclosure > summary { list-style: none; cursor: pointer; }
.nx-search-disclosure > summary::-webkit-details-marker { display: none; }
.nx-search-disclosure > summary::after { content: "+"; margin-inline-start: .5rem; }
.nx-search-disclosure[open] > summary::after { content: "-"; }
.nx-search-panel { position: absolute; z-index: 100; right: 0; top: calc(100% + .75rem); width: min(25rem, calc(100vw - 2rem)); padding: 1.15rem; color: #14202b; background: #fff; border: 1px solid #ccd1d5; border-radius: 12px; box-shadow: 0 14px 40px #0002; }
.nx-search-panel .search-form { flex-wrap: wrap; }
.nx-search-panel label { flex: 1 1 12rem; min-width: 0; }
.nx-search-panel input[type=search] { width: 100%; background: #fff; color: #14202b; border-color: #697580; }
.nx-search-panel button { color: #fff; background: #14202b; }
.nx-lead-image { display: block; margin: 0 0 1rem; overflow: hidden; border-radius: inherit; }
.nx-lead-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 760px) {
    body.nx-theme-ready :is(.site-header, header[id$="-header"], .top-header-bar, .main-navigation) { position: relative; top: auto; }
    body.nx-theme-ready :is(.nx-reading, .entry-content) { overflow-wrap: anywhere; }
    body.nx-theme-ready :is(.featured-image, [class$="-story-hero"], [class$="-article__featured-img"]) { margin-inline: auto; }
    .nx-search-disclosure { position: static; }
    .nx-search-panel { left: 1rem; right: 1rem; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    body.nx-theme-ready *, body.nx-theme-ready *::before, body.nx-theme-ready *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    body.nx-theme-ready { color: #000; background: #fff; }
    body.nx-theme-ready :is(header.site-header, header[id$="-header"], aside, .sidebar, .site-footer, .nx-search-disclosure, .comments-area, [class*="bottom-nav"], [class*="ticker"]) { display: none !important; }
    body.nx-theme-ready main { width: 100%; margin: 0; }
    body.nx-theme-ready article { box-shadow: none; border: 0; }
}

body.nx-theme-ready :is(.entry-title, .card-title) { font-weight: 600; letter-spacing: -.015em; }

/* Respect device safe areas without adding desktop gutters. */
@supports (padding: max(0px)) {
    body.nx-theme-ready { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
.nx-search-icon { display: none; }
@media (max-width: 1040px) {
    body.nx-theme-ready .nx-search-disclosure > .header-search { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; padding: .65rem; }
    .nx-search-icon { display: block; }
    .nx-search-disclosure > summary::after { display: none; }
    .nx-search-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}

body.nx-theme-ready [role=dialog][aria-hidden=true] { visibility: hidden; }

body.nx-theme-ready .comment-form input[type=checkbox] { width: 24px; height: 24px; min-height: 24px; flex-shrink: 0; vertical-align: middle; }

body.nx-theme-ready .cn1-badge--break, body.nx-theme-ready .cn1-badge--cat { color: #fff; background: #815010; }
body.nx-theme-ready .cn1-author-box__link { color: #815010; text-decoration: underline; }
body.nx-theme-ready .cn1-hero-side-body > span:first-child { color: #815010 !important; }
body.nx-theme-ready .cn1-headlines__topic { color: #815010; }

body.nx-theme-ready .cn1-author-box__name a, body.nx-theme-ready .cn1-author-box__bio { color: #435577; }

body.nx-theme-ready .cn1-desk__link { color: #815010; }
body.nx-theme-ready .cn1-author-box__name a span { color: #435577; }

body.nx-theme-ready .nx-recovery { box-sizing: border-box; padding: clamp(.75rem, 2vw, 1.5rem); background: var(--rx-paper); border-radius: var(--rx-radius); }

@media (prefers-color-scheme: dark) {
    body.nx-theme-ready { --cn1-text-2: #c4cddd; --cn1-text-3: #b5c3d7; }
    body.nx-theme-ready .cn1-hero-side-body > span:first-child { color: #f0d49c !important; }
    body.nx-theme-ready .cn1-author-box__link, body.nx-theme-ready .cn1-desk__link, body.nx-theme-ready .cn1-headlines__topic { color: #f0d49c; }
    body.nx-theme-ready .cn1-author-box__name a span, body.nx-theme-ready .cn1-author-box__bio { color: #c4cddd; }
}

body.nx-theme-ready .cn1-header-inner { height: auto; min-height: var(--cn1-header-h); }
body.nx-theme-ready.nx-overflow-ready #cn1-primary-nav > ul { flex-wrap: nowrap; }
body.nx-theme-ready #cn1-primary-nav .nx-nav-overflow { position: relative; flex-shrink: 0; }
body.nx-theme-ready #cn1-primary-nav .nx-nav-overflow > button { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .75rem; color: inherit; background: transparent; border: 0; font-weight: 700; cursor: pointer; }
body.nx-theme-ready #cn1-primary-nav .nx-nav-overflow > button::after { content: "+"; }
body.nx-theme-ready #cn1-primary-nav .nx-nav-overflow > ul { display: none !important; position: absolute; left: auto; right: 0; top: 100%; width: min(22rem, calc(100vw - 2rem)); max-height: 70vh; overflow: auto; margin: 0; padding: .6rem; list-style: none; background: var(--cn1-card, #fff); color: var(--cn1-text); border: 1px solid var(--cn1-border); box-shadow: 0 12px 32px #0002; z-index: 100; }
body.nx-theme-ready #cn1-primary-nav .nx-nav-overflow.is-open > ul { display: block !important; }
body.nx-theme-ready #cn1-primary-nav .nx-nav-overflow ul ul { display: block !important; position: static; box-shadow: none; width: auto; padding-inline-start: .75rem; }
body.nx-theme-ready #cn1-primary-nav .nx-nav-overflow a { white-space: normal; overflow-wrap: anywhere; height: auto; min-height: 44px; line-height: 1.5; }

@media (prefers-color-scheme: dark) {
    body.nx-theme-ready .comment-reply-title, body.nx-theme-ready .cn1-kicker, body.nx-theme-ready .cn1-desk__title, body.nx-theme-ready .cn1-section-head h2, body.nx-theme-ready .cn1-see-all { color: #dce7f5; }
}

@media (prefers-color-scheme: dark) { body.nx-theme-ready .cn1-bottom-nav-item.active { color: #f0d49c; text-decoration: underline; text-underline-offset: .2em; } }
