@import url("brand/palette.css");

/* Shared layout */
:root {
    --blue: var(--fn-blue);
    --blue-dark: var(--fn-deep-blue);
    --ink: var(--fn-ink);
    --muted: var(--fn-slate);
    --line: #e1e5ec;
    --tint: var(--fn-pale-blue);
    --panel: #f7f8fa;
    font: 16px/1.5 Satoshi, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: white; }
a { color: inherit; text-decoration: none; }
a:hover, summary:hover { color: var(--blue); }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
button { border: 0; }
input[type=search] { min-width: 0; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--blue); outline-offset: 2px;
}
h1, h2, h3, p { margin: 0; }
img { display: block; }
.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.wide { width: min(1840px, calc(100% - 80px)); margin-inline: auto; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { width: auto; height: auto; clip-path: none; background: white; z-index: 5; }
main { min-height: 50vh; }

/* Corporate and support navigation */
.corporate { background: #f5f5f6; }
.corporate-row, .nav-row, #primary-nav, .language, .header-search, .footer-row {
    display: flex; align-items: center;
}
.corporate-row, .nav-row { gap: 32px; min-height: 64px; }
.wordmark { width: 138px; height: auto; }
.language { margin-left: auto; gap: 6px; font-size: 14px; color: var(--muted); }
.language img { width: 17px; }
.site-nav { position: sticky; top: 0; z-index: 3; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 3px 12px #293b6a08; }
.portal-name { font-size: 18px; font-weight: 650; white-space: nowrap; }
#primary-nav { gap: clamp(15px, 2vw, 34px); }
#primary-nav > a, .products-menu > summary { white-space: nowrap; }
.products-menu { position: relative; }
.products-menu > summary { list-style: none; }
.products-menu > summary::-webkit-details-marker { display: none; }
.products-menu > summary::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 4px; background: url("icons/chevron-down.svg") center/contain; }
.flyout { position: absolute; left: -18px; top: calc(100% + 10px); width: 244px; padding: 8px; background: white; border: 1px solid var(--line); box-shadow: 0 8px 30px #203d9320; }
.flyout a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; }
.flyout a:hover, .tree a:hover, .facets a:hover { background: var(--tint); }
.flyout img { width: 26px; height: 26px; }
.flyout .all-products { border-top: 1px solid var(--line); color: var(--blue); }
.header-search { margin-left: auto; flex: 0 1 230px; border-left: 1px solid var(--line); padding-left: 16px; gap: 8px; }
.header-search input, .hero-search input, .within input { border: none; background: transparent; flex: 1; width: 100%; outline-offset: 0; }
.header-search input, .hero-search input { font-size: 14px; }
.header-search button, .hero-search button, .menu-button { display: grid; place-items: center; background: transparent; padding: 8px; }
.header-search img, .hero-search img { width: 20px; }
.menu-button { display: none; margin-left: auto; }
.footer-row { padding-block: 20px; gap: 24px; font-size: 14px; }
footer { border-top: 1px solid var(--fn-heading); background: var(--fn-heading); color: white; }
footer a:hover { color: white; text-decoration: underline; }
footer a:focus-visible { outline-color: white; }
.staff { margin-left: auto; }

/* Support homepage */
.hero { background: #e1edfa url("brand/support-novaguard.webp") center/cover no-repeat; min-height: 402px; }
.hero-inner { padding-block: 89px 56px; }
.hero h1 { font-size: clamp(36px, 4vw, 48px); font-weight: 450; letter-spacing: -.025em; line-height: 1.4; }
.hero-search { margin-top: 30px; display: flex; align-items: center; width: min(600px, 52%); height: 45px; padding: 0 9px 0 16px; background: white; border-radius: 24px; }
.hero-search input { height: 34px; }
.hero-search img { filter: invert(28%) sepia(88%) saturate(2900%) hue-rotate(221deg); }
.quick { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin-top: 24px; font-size: 14px; color: var(--muted); }
.quick > span { margin-right: 10px; }
.quick a { padding: 0 7px; line-height: 1.1; color: var(--blue-dark); }
.quick a + a { border-left: 1px solid #a5b3c5; }
.home-band { padding: 20px 0 24px; }
.home-band:nth-of-type(odd) { background: #f7f9fc; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { border-left: 3px solid var(--fn-orange); padding-left: 8px; font-size: 24px; line-height: 1.15; font-weight: 400; }
.section-head a { font-size: 14px; color: var(--blue); }
.hero h1, .section-head h2, .list-title, .product-heading h1, .reader article h2, .result-title { color: var(--fn-heading); }
.section-head a:hover, .quick a:hover, .result-title:hover { color: var(--blue-dark); text-decoration: underline; }
.product-grid, .release-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; }
.product-card { display: flex; flex-direction: column; justify-content: center; min-height: 185px; padding: 30px; border-radius: 12px; background: linear-gradient(#fcfdfe, #edf2fa); }
.product-card:hover, .package-card:hover { box-shadow: 0 3px 18px #283f8a1c; }
.product-card div { display: flex; align-items: center; gap: 16px; }
.product-card img { width: 45px; height: 45px; object-fit: contain; }
.product-card h3 { font-size: 23px; line-height: 1.2; font-weight: 400; }
.product-card p { margin-top: 8px; color: var(--muted); font-size: 17px; line-height: 1.35; }
.package-card { display: grid; align-content: center; min-height: 144px; padding: 24px 30px; background: var(--panel); border-bottom: 2px solid #b8caf8; }
.package-card strong { font-size: 21px; font-weight: 400; }.package-card span { color: var(--blue-dark); }
.package-card small { margin-top: 6px; color: var(--muted); }
.article-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.article-list a { display: flex; align-items: center; gap: 14px; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.article-list img { width: 24px; }.article-list small { margin-left: auto; color: var(--muted); }.article-list i { font-style: normal; }

/* Search: a persistent query, facet rail and sortable results */
.search-page { padding-block: 40px; min-height: 68vh; }
.list-title { margin-bottom: 18px; font-size: 28px; font-weight: 550; }
.search-line { display: flex; width: min(100%, 780px); height: 48px; margin-bottom: 34px; }
.search-line input { flex: 1; padding: 0 16px; border: 1px solid var(--line); }
.search-line button, .button { color: white; background: var(--blue); padding: 10px 23px; }
.search-line button:hover, .button:hover { background: var(--blue-dark); color: white; }
.results-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; }
.facets details { border: 1px solid var(--line); margin-bottom: 16px; }
.facets summary { padding: 9px 12px; background: var(--panel); font-weight: 550; }
.facets a { display: flex; align-items: center; gap: 9px; padding: 7px 13px; font-size: 14px; }
.facets a::before { content: ""; width: 11px; height: 11px; border: 1px solid #aeb9c7; border-radius: 50%; }
.facets a[aria-current] { color: var(--blue); }
.facets a[aria-current]::before { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 2px white; }
.facets small { margin-left: auto; color: var(--muted); }
.result-heading, .pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.result-heading { color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sort { display: flex; }.sort a { padding: 5px 9px; border: 1px solid var(--line); }.sort a[aria-current] { background: var(--fn-heading); color: white; }
.result { padding: 19px 0; border-bottom: 1px solid var(--line); }
.result-title { font-size: 17px; font-weight: 550; }.result p { overflow-wrap: anywhere; font-size: 14px; color: var(--muted); margin: 5px 0; }.result small { color: #677080; }
.pager { justify-content: center; padding-top: 24px; }.pager a, .empty a { color: var(--blue); }
.empty { padding: 30px 0; }.empty h2 { margin-bottom: 8px; font-size: 20px; }

/* Product workspace and reader */
.product-heading { background: linear-gradient(120deg,#edf2fa,#f8fafe 72%,#e9edf5); }
.product-heading .wide { padding-top: 28px; }.product-heading h1 { font-size: 29px; font-weight: 400; }
.product-heading p { margin-top: 6px; color: var(--muted); }
.product-tools { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.product-tools nav { display: flex; flex-wrap: wrap; gap: 20px; }.product-tools nav a { padding: 13px 4px; border-bottom: 2px solid transparent; }
.product-tools nav a[aria-current] { border-color: var(--blue); color: var(--blue); }
.within { display: flex; align-items: center; background: white; border: 1px solid var(--line); width: min(420px, 38%); margin-bottom: 6px; font-size: 14px; }
.within label { margin-inline: 10px; white-space: nowrap; border-right: 1px solid var(--line); padding-right: 10px; }.within button { background: var(--blue); padding: 8px 12px; }.within button:hover { background: var(--blue-dark); }.within img { width: 18px; filter: invert(1); }
.reader { display: grid; grid-template-columns: 254px minmax(0,1fr); min-height: 58vh; }
.reader aside { border-right: 1px solid var(--line); }
.version { padding: 15px 20px; border-bottom: 1px solid var(--line); }
.version select { border: 0; width: 100%; background: white; padding: 4px; }
.tree { padding: 12px 0; }.tree summary { padding: 8px 16px; font-weight: 550; font-size: 14px; }
.tree a { display: block; font-size: 14px; padding: 8px 14px 8px 30px; overflow-wrap: anywhere; }
.tree a[aria-current] { color: var(--blue); background: var(--tint); }
.reader article { padding: 22px clamp(18px,3vw,56px) 48px; min-width: 0; }
.crumb,.doc-meta,.directory-group small,.filebox small { font-size: 13px; color: var(--muted); }
.crumb { margin-bottom: 12px; }.reader article h2 { font-size: 29px; font-weight: 530; line-height: 1.28; overflow-wrap: anywhere; }
.reader-return { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 14px; font-weight: 550; margin-bottom: 16px; padding: 6px 0; }
.reader-return:hover { text-decoration: underline; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.intro,.prose { margin-top: 22px; max-width: 90ch; }.prose p { margin-block: 12px; overflow-wrap: anywhere; }
.filebox { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 18px; background: var(--panel); border: 1px solid var(--line); }
.filebox img { width: 28px; }.filebox div { min-width: 0; }.filebox strong,.filebox small { display: block; overflow-wrap: anywhere; }.filebox a { margin-left: auto; white-space: nowrap; }
.directory-group { margin-top: 22px; }.directory-group h3 { font-size: 18px; font-weight: 550; margin-bottom: 8px; }.directory-group a { display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; color: var(--blue-dark); border-bottom: 1px solid var(--line); }.directory-group small { flex: none; }

@media (max-width: 1050px) {
    .wide { width: calc(100% - 36px); }
    .nav-row { gap: 20px; }.header-search { flex-basis: 150px; }
    .product-grid, .release-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .product-card { padding: 22px; }.results-layout { grid-template-columns: 226px minmax(0,1fr); }
}
@media (max-width: 760px) {
    .shell, .wide { width: calc(100% - 32px); }
    .corporate-row,.nav-row { min-height: 52px; gap: 18px; }.corporate-row { font-size: 13px; }.wordmark { width: 110px; }
    .menu-button { display: grid; }.menu-button img { width: 22px; }
    #primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 12px 18px; border-block: 1px solid var(--line); box-shadow: 0 10px 14px #121a3414; }
    #primary-nav.expanded { display: grid; gap: 12px; }
    .flyout { position: static; width: 100%; box-shadow: none; margin-top: 7px; }
    .header-search { flex: 0 1 136px; padding-left: 8px; }.header-search input { font-size: 12px; }
    .hero { min-height: 264px; background-position: 64% center; }
    .hero-inner { padding-block: 42px 28px; }.hero h1 { font-size: 34px; }.hero-search { width: min(472px, 94%); margin-top: 22px; }.quick { gap: 5px 0; font-size: 12px; margin-top: 18px; }
    .section-head h2 { font-size: 21px; }.product-grid,.release-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .product-card { min-height: 124px; padding: 14px; }.product-card div { gap: 8px; }.product-card img { width: 31px; height: 31px; }.product-card h3 { font-size: 16px; }.product-card p { font-size: 13px; }
    .package-card { padding: 16px; min-height: 112px; }.package-card strong { font-size: 17px; }.article-list { grid-template-columns: 1fr; }
    .results-layout,.reader { grid-template-columns: 1fr; gap: 0; }
    .facets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 18px; align-items: start; }.facets details { margin: 0; }
    .search-page { padding-block: 22px; }.search-line { margin-bottom: 18px; }
    .product-tools { align-items: stretch; flex-direction: column-reverse; gap: 0; margin-top: 18px; }
    .within { width: 100%; }.product-tools nav { gap: 10px; font-size: 13px; }
    .reader aside { border-right: 0; border-bottom: 1px solid var(--line); }.tree { max-height: 142px; overflow: auto; }.reader article { padding: 18px 16px 32px; }
    .reader article h2 { font-size: 23px; }.filebox { flex-wrap: wrap; }.filebox a { margin: 0; }
    .directory-group a { flex-wrap: wrap; }.footer-row { font-size: 13px; }
}
@media (max-width: 600px) {
    .hero { position: relative; background: linear-gradient(125deg, #f1f7fc, #dbeafb); }
    .hero::before {
        content: ""; position: absolute; top: 0; right: 0; width: 30%; height: 112px;
        background: url("brand/support-novaguard.webp") 94% center / auto 108px no-repeat;
        mask-image: linear-gradient(90deg, transparent, #000 22%), linear-gradient(0deg, transparent, #000 25%);
        mask-composite: intersect; pointer-events: none;
    }
    .hero-inner { position: relative; }
    .hero h1 { font-size: clamp(26px, 7.7vw, 34px); }
}
@media (max-width: 420px) {
    .header-search { display: none; }.brand { width: 108px; }.product-card div { flex-wrap: wrap; }
}

.language-menu { position: relative; z-index: 5; }
.language-menu summary { cursor: pointer; }
.language-menu > div { position: absolute; right: 0; min-width: 9em; padding: 6px; background: white; border: 1px solid var(--line); box-shadow: 0 5px 15px #0001; }
.language-menu a { display: block; padding: 5px 10px; }
.language-menu a[aria-current] { color: var(--blue); font-weight: 650; }

/* Native article content, scoped to the existing resource reader. */
.prose { line-height: 1.7; overflow-wrap: anywhere; }
.reader article .prose h3 { margin: 32px 0 12px; font-size: 23px; line-height: 1.35; color: var(--fn-heading); }
.reader article .prose h4,.reader article .prose h5,.reader article .prose h6 { margin: 24px 0 10px; font-size: 19px; line-height: 1.4; color: var(--fn-heading); }
.prose [id] { scroll-margin-top: 24px; }
.prose ul,.prose ol { padding-inline-start: 26px; margin-block: 14px; }
.prose li { margin-block: 6px; }
.prose code { font-size: .9em; padding: 2px 5px; background: var(--panel); border-radius: 3px; }
.article-contents { border: 1px solid var(--line); background: var(--panel); padding: 14px 18px; margin-bottom: 26px; }
.article-contents ul { margin: 8px 0 0; }
.article-contents a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-table { max-width: 100%; overflow-x: auto; margin-block: 20px; }
.article-table:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.article-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.article-table caption { text-align: start; font-weight: 600; padding-bottom: 10px; color: var(--fn-heading); }
.article-table th,.article-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; min-width: 9ch; vertical-align: top; }
.article-table th { background: var(--panel); font-weight: 600; }

.article-contents summary { cursor: pointer; font-weight: 600; }
.article-figure { margin: 24px 0; }
.article-figure img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; border: 1px solid var(--line); }
.article-figure figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose pre { max-width: 100%; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); padding: 16px; line-height: 1.6; }
.prose pre code { padding: 0; border-radius: 0; white-space: pre; }

/* Chapter navigation belongs to the selected manual only. */
.chapter-tree .manual-title { padding: 8px 16px 12px; font-size: 14px; font-weight: 600; }
.chapter-tree ol { list-style: none; padding: 0; margin: 0; }
.chapter-tree ol ol { margin-inline-start: 16px; }
.chapter-tree a { padding-inline-start: 16px; }
.chapter-tree summary { display: flex; align-items: baseline; gap: 5px; padding: 0 12px; font-weight: 400; }
.chapter-tree summary::before { content: "▸"; flex: none; }
.chapter-tree details[open] > summary::before { content: "▾"; }
.chapter-tree summary a { flex: 1; min-width: 0; padding-inline-start: 0; }
.chapter-pagination { display: flex; flex-wrap: wrap; gap: 16px; max-width: 90ch; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.chapter-pagination a { flex: 1 1 200px; color: var(--blue); }
.chapter-pagination a[rel="next"] { text-align: end; margin-inline-start: auto; }
.chapter-pagination small,.chapter-pagination span { display: block; }
.chapter-pagination small { color: var(--muted); margin-bottom: 4px; }
.chapter-pagination a:hover span { text-decoration: underline; }
@media (max-width: 760px) { .manual-reader .chapter-tree { max-height: 240px; } }
