:root {
    color-scheme: light;
    --blue: #003b8f;
    --blue-bright: #0072ce;
    --green: #00a63c;
    --lime: #65c600;
    --ink: #172437;
    --muted: #607085;
    --subtle: #8a98a9;
    --page: #f6f8fb;
    --surface: #fff;
    --surface-soft: #eff4f8;
    --line: #e3eaf0;
    --header: rgba(255, 255, 255, .94);
    --shadow: 0 18px 48px rgba(18, 44, 73, .09);
    --font-body: "Inter", Arial, sans-serif;
    --font-display: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
}

.pop-shield-library {
    margin: 32px 0
}

.grid.pop-shield-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px
}

@media(max-width:650px) {
    .grid.pop-shield-grid {
        grid-template-columns: 1fr
    }
}

[data-theme="dark"] {
    color-scheme: dark;
    --blue: #6caeff;
    --blue-bright: #75bcff;
    --green: #31d56d;
    --lime: #9de345;
    --ink: #e8eef7;
    --muted: #a8b5c6;
    --subtle: #8392a5;
    --page: #0d1420;
    --surface: #141e2c;
    --surface-soft: #1c2a3b;
    --line: #2a394b;
    --header: rgba(13, 20, 32, .95);
    --shadow: 0 18px 48px rgba(0, 0, 0, .25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 15px/1.65 var(--font-body);
    transition: background-color .2s ease, color .2s ease;
}

a {
    color: var(--blue-bright);
    text-decoration: none;
}

a:hover {
    color: var(--green);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

svg {
    display: block;
}

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 10px 15px;
    transform: translateY(-150%);
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: var(--header);
    backdrop-filter: blur(18px);
}

.header-main {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    min-width: 205px;
    align-items: center;
    gap: 10px;
    color: inherit;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    min-width: 0;
    line-height: 1.12;
}

.brand-name {
    color: var(--blue);
    font: 800 16px/1.12 var(--font-display);
    letter-spacing: -.045em;
}

.brand-name span {
    color: var(--green);
}

.brand-tagline {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-trigger {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
    background: var(--surface-soft);
    color: var(--blue);
}

.chevron {
    width: 13px;
    height: 13px;
    transition: transform .2s ease;
}

.nav-trigger[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    display: none;
    width: 300px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.nav-item.is-open .dropdown {
    display: grid;
}

.dropdown a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.dropdown a:hover,
.dropdown a:focus-visible {
    background: var(--surface-soft);
    color: var(--blue);
}

.dropdown-mark {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--green);
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

.icon-button,
.menu-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
}

.menu-toggle {
    display: none;
}

@media (hover: hover) and (min-width: 1101px) {
    .dropdown::before {
        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;
        height: 8px;
        content: "";
    }

    .nav-item:hover>.dropdown,
    .nav-item:focus-within>.dropdown {
        display: grid;
    }

    .nav-item:hover>.nav-trigger .chevron,
    .nav-item:focus-within>.nav-trigger .chevron {
        transform: rotate(180deg);
    }
}

main {
    min-height: 62vh;
}

.page-intro {
    padding: 58px 0 34px;
    background: radial-gradient(ellipse at 88% 10%, rgba(0, 166, 60, .09), transparent 32%), linear-gradient(130deg, var(--surface-soft), var(--page) 68%);
    border-bottom: 1px solid var(--line);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumbs [aria-current="page"] {
    color: var(--ink);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-family: var(--font-display);
    line-height: 1.2;
}

h1 {
    max-width: 850px;
    margin: 0 0 14px;
    font-size: clamp(32px, 4.3vw, 48px);
    font-weight: 800;
    letter-spacing: -.05em;
}

.lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.content-section {
    padding: 36px 0 72px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(23px, 3vw, 30px);
    letter-spacing: -.035em;
}

.section-heading p {
    max-width: 580px;
    margin: 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 26px rgba(18, 44, 73, .04);
}

.card h2,
.card h3 {
    margin: 0 0 9px;
    font-size: 19px;
}

.card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    font-weight: 700;
}

.tag {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    margin-bottom: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.notice {
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid rgba(0, 114, 206, .24);
    border-left: 4px solid var(--blue-bright);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--muted);
}

.notice strong {
    color: var(--ink);
}

.notice--warning {
    border-color: rgba(200, 130, 0, .35);
    border-left-color: #c98200;
}

.updater-panel {
    margin: 26px 0 34px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.updater-heading {
    max-width: 780px;
    margin-bottom: 24px;
}

.updater-heading h2 {
    margin: 0 0 9px;
    font-size: clamp(23px, 3vw, 30px);
    letter-spacing: -.035em;
}

.updater-heading>p:last-child {
    margin: 0;
    color: var(--muted);
}

.updater-panel .field-hint {
    color: var(--muted);
    font-size: 12px;
}

.updater-url-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.updater-or,
.updater-step-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.updater-or::before,
.updater-or::after,
.updater-step-rule::before,
.updater-step-rule::after {
    height: 1px;
    flex: 1;
    background: var(--line);
    content: "";
}

.updater-source-text {
    min-height: 120px !important;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
}

.updater-fields {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.updater-fields .field--wide {
    grid-column: 1 / -1;
}

.updater-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.updater-actions button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.updater-status {
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.updater-status.is-error {
    color: #a33b25;
}

[data-theme="dark"] .updater-status.is-error {
    color: #ffab91;
}

.updater-preview {
    margin-top: 15px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
}

.updater-preview p {
    margin: 0 0 7px;
}

.updater-preview details {
    margin-top: 12px;
}

.updater-preview summary {
    width: fit-content;
    color: var(--blue);
    cursor: pointer;
    font-weight: 700;
}

.updater-extracted-text {
    min-height: 240px !important;
    margin-top: 10px;
    background: var(--surface);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
}

.updater-help-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 30px 0;
}

.updater-help-grid .card {
    padding: 20px;
}

.updater-help-grid h2 {
    font-size: 17px;
}

.updater-help-grid .card p {
    margin-bottom: 0;
    font-size: 13px;
}

.search-panel,
.form-panel {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.search-controls {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.field {
    display: grid;
    gap: 6px;
}

.field label,
.field-label {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.control {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink);
}

textarea.control {
    min-height: 130px;
    resize: vertical;
}

.control:focus-visible {
    outline: 3px solid rgba(0, 114, 206, .25);
    border-color: var(--blue-bright);
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.button:hover {
    filter: brightness(1.08);
    color: #fff;
}

.button--secondary {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.button--secondary:hover {
    color: var(--blue);
}

.result-count {
    margin: 16px 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.result-list {
    display: grid;
    gap: 12px;
}

.result-card {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.result-card strong {
    color: var(--blue);
}

.result-card p {
    margin: 0;
    color: var(--muted);
}

.result-card small {
    color: var(--subtle);
}

.result-card--cnae {
    gap: 12px;
}

.result-card--cnae>strong {
    font-size: 17px;
}

.cnae-risk-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 4px 0 0;
}

.cnae-risk {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-soft);
}

.cnae-risk dt {
    color: var(--ink);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.cnae-risk dd {
    display: grid;
    gap: 6px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.result-card .cnae-risk-condition {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.empty-state {
    padding: 20px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.preview {
    min-height: 120px;
    margin-top: 22px;
    padding: 22px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    white-space: pre-wrap;
}

.article-copy {
    max-width: 820px;
}

.article-copy h2 {
    margin-top: 32px;
}

.article-copy li {
    margin-block: 8px;
    color: var(--muted);
}

.author-profile {
    display: grid;
    max-width: 1000px;
    align-items: start;
    gap: 28px;
    grid-template-columns: 200px minmax(0, 1fr);
    margin-top: 40px;
}

.author-profile .article-copy {
    max-width: none;
}

.author-profile .article-copy h2 {
    margin-top: 0;
}

.author-photo {
    width: 200px;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0;
}

.stat {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.stat strong {
    display: block;
    color: var(--blue);
    font: 800 25px var(--font-display);
}

.stat span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    padding: 36px 0 18px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    padding-bottom: 26px;
}

.footer-grid h2 {
    margin: 0 0 10px;
    font-size: 15px;
}

.footer-grid p,
.footer-grid li {
    color: var(--muted);
    font-size: 13px;
}

.footer-grid ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
    border: 0;
}

@media (max-width: 1100px) {
    .header-main {
        min-height: 72px;
        gap: 10px;
    }

    .brand {
        min-width: 177px;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 74px);
        overflow-y: auto;
        padding: 12px 24px 20px;
        border-bottom: 1px solid var(--line);
        background: var(--surface);
        box-shadow: var(--shadow);
        align-items: stretch;
        flex-direction: column;
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-trigger {
        width: 100%;
        min-height: 46px;
        justify-content: space-between;
        padding-inline: 12px;
        font-size: 15px;
        text-align: left;
    }

    .dropdown {
        position: static;
        width: 100%;
        margin: 1px 0 8px;
        padding: 5px 8px;
        border: 0;
        border-radius: 12px;
        background: var(--surface-soft);
        box-shadow: none;
    }
}

@media (max-width: 760px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .author-profile {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 20px;
    }

    .author-photo {
        width: 150px;
    }

    .cnae-risk-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 36px);
    }

    .header-main {
        min-height: 68px;
    }

    .brand {
        min-width: 0;
        gap: 7px;
    }

    .brand img {
        width: 43px;
        height: 43px;
    }

    .brand-name {
        font-size: 14px;
    }

    .brand-tagline {
        font-size: 10px;
        letter-spacing: .07em;
    }

    .header-actions {
        gap: 7px;
    }

    .icon-button,
    .menu-toggle {
        width: 39px;
        height: 39px;
    }

    .page-intro {
        padding: 36px 0 26px;
    }

    .lead {
        font-size: 15px;
    }

    .content-section {
        padding: 26px 0 48px;
    }

    .grid,
    .stat-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .author-profile {
        grid-template-columns: 1fr;
    }

    .author-photo {
        width: min(220px, 100%);
    }

    .search-controls {
        grid-template-columns: 1fr;
    }

    .search-controls .button {
        width: 100%;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 380px) {
    .brand img {
        width: 37px;
        height: 37px;
    }

    .icon-button,
    .menu-toggle {
        width: 36px;
        height: 36px;
    }
}

@media print {

    .site-header,
    .site-footer,
    .skip-link,
    .page-intro,
    .screen-only {
        display: none !important;
    }

    body {
        min-width: 0;
        background: #fff;
        color: #172437;
    }

    .container {
        width: 100%;
    }

    .content-section {
        padding: 0;
    }
}

.site-header {
    box-shadow: 0 8px 30px rgba(18, 44, 73, .045);
}

.dropdown {
    width: min(560px, calc(100vw - 32px));
    grid-template-columns: minmax(145px, .78fr) minmax(0, 1.22fr);
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
}

.nav-item:nth-last-child(-n + 2)>.dropdown {
    right: 0;
    left: auto;
}

.dropdown-heading {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--surface-soft), var(--surface));
}

.dropdown-eyebrow {
    margin-bottom: 8px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.dropdown-heading strong {
    color: var(--ink);
    font: 800 19px/1.2 var(--font-display);
}

.dropdown-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.dropdown-links {
    display: grid;
    align-content: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
}

.dropdown a {
    min-width: 0;
    align-items: flex-start;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
}

.dropdown-mark {
    margin-top: 6px;
}

.dropdown a[aria-current="page"] {
    background: var(--surface-soft);
    color: var(--blue);
}

.quick-search {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.quick-search:hover {
    transform: translateY(-1px);
    border-color: var(--blue-bright);
    color: var(--blue);
}

.quick-search .icon {
    width: 17px;
    height: 17px;
}

.quick-search kbd {
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface-soft);
    color: var(--subtle);
    font: 600 10px/1.3 var(--font-body);
}

.header-actions {
    gap: 7px;
}

.card,
.result-card {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover,
.result-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 114, 206, .3);
    box-shadow: var(--shadow);
}

.main-nav a:focus-visible,
.main-nav button:focus-visible,
.quick-search:focus-visible,
.icon-button:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid rgba(0, 114, 206, .3);
    outline-offset: 3px;
}

.button--quiet {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
}

.button--quiet:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

@media (max-width: 1100px) {
    .quick-search {
        width: 42px;
        justify-content: center;
        padding: 0;
    }

    .quick-search span,
    .quick-search kbd {
        display: none;
    }

    .dropdown,
    .nav-item:nth-last-child(-n + 2)>.dropdown {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 6px;
        margin: 1px 0 8px;
        padding: 8px;
        border: 0;
        border-radius: 14px;
        background: var(--surface-soft);
        box-shadow: none;
    }

    .dropdown-heading {
        min-height: 0;
        padding: 10px 12px 7px;
        background: transparent;
    }

    .dropdown-heading strong {
        font-size: 15px;
    }

    .dropdown-heading p {
        margin-top: 4px;
    }

    .dropdown-links {
        grid-template-columns: 1fr;
    }

    .dropdown a {
        min-height: 40px;
        align-items: center;
        font-size: 13px;
    }

    .dropdown-mark {
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .updater-help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {

    .quick-search,
    .icon-button,
    .menu-toggle {
        width: 39px;
        min-height: 39px;
    }

    .updater-url-row,
    .updater-fields {
        grid-template-columns: 1fr;
    }

    .updater-fields .field--wide {
        grid-column: auto;
    }

    .updater-url-row .button {
        width: 100%;
    }

    .updater-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .brand-tagline {
        display: none;
    }
}

@media print {
    .content-section {
        padding-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* POP library and reading layout */
.pop-hero {
    position: relative;
    overflow: hidden;
    padding-block: 34px 52px;
}

.pop-hero-grid,
.pop-library-hero-grid {
    display: grid;
    align-items: center;
    gap: 30px;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
}

.pop-hero-copy {
    position: relative;
    z-index: 1;
}

.pop-hero .eyebrow span {
    color: var(--subtle);
}

.pop-hero h1 {
    max-width: 740px;
}

.pop-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.pop-hero-tags span {
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.pop-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.pop-hero-actions .button {
    text-decoration: none;
}

.pop-hero-art {
    position: relative;
    display: grid;
    min-height: 270px;
    place-items: center;
    isolation: isolate;
}

.pop-hero-art svg {
    position: relative;
    z-index: 1;
    width: min(100%, 350px);
    filter: drop-shadow(0 22px 28px rgba(22, 116, 172, .14));
}

.pop-art-orbit {
    position: absolute;
    z-index: -1;
    display: block;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(0, 114, 206, .16);
    border-radius: 50%;
}

.pop-art-orbit--two {
    width: 190px;
    height: 190px;
    border-style: dashed;
    border-color: rgba(0, 166, 60, .22);
}

.pop-art-caption {
    position: absolute;
    right: 2%;
    bottom: 2px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.pop-layout {
    display: grid;
    align-items: start;
    gap: 28px;
    grid-template-columns: minmax(235px, .34fr) minmax(0, 1fr);
    scroll-margin-top: 100px;
    margin-top: 28px;
}

.pop-rail {
    position: sticky;
    top: 102px;
}

.pop-rail-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.pop-rail-eyebrow {
    margin: 0;
    padding: 17px 18px 8px;
    color: var(--subtle);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.pop-toc {
    display: grid;
    gap: 2px;
    padding: 0 9px 13px;
}

.pop-toc-item {
    display: grid;
    align-items: center;
    gap: 2px;
    grid-template-columns: minmax(0, 1fr) 30px;
}

.pop-toc a {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.pop-toc a>span {
    color: var(--ink);
}

.pop-toc a:hover,
.pop-toc a:focus-visible {
    background: var(--surface-soft);
    color: var(--blue);
}

.pop-toc-item:first-child a {
    color: var(--green);
}

.pop-read-check {
    position: relative;
    display: grid;
    width: 30px;
    height: 34px;
    place-items: center;
    cursor: pointer;
}

.pop-read-check input {
    position: absolute;
    width: 22px;
    height: 22px;
    opacity: 0;
}

.pop-read-check>span[aria-hidden] {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: transparent;
    font-size: 12px;
    font-weight: 800;
}

.pop-read-check input:checked+span[aria-hidden] {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.pop-read-check input:focus-visible+span[aria-hidden] {
    outline: 3px solid var(--lime);
    outline-offset: 3px;
}

.pop-reading {
    padding: 15px 18px 18px;
    border-top: 1px solid var(--line);
    background: linear-gradient(145deg, var(--surface-soft), var(--surface));
}

.pop-reading-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.pop-reading-heading span {
    color: var(--blue);
    font-weight: 800;
}

.pop-reading progress {
    display: block;
    width: 100%;
    height: 8px;
    margin: 11px 0 8px;
    overflow: hidden;
    appearance: none;
    border: 0;
    border-radius: 99px;
    background: var(--line);
}

.pop-reading progress::-webkit-progress-bar {
    border-radius: 99px;
    background: var(--line);
}

.pop-reading progress::-webkit-progress-value {
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue-bright), var(--green));
    transition: width .25s ease;
}

.pop-reading progress::-moz-progress-bar {
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue-bright), var(--green));
}

.pop-reading>p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.pop-reading-actions {
    margin-top: 12px;
}

.pop-reading-actions .button {
    width: 100%;
    min-height: 38px;
    font-size: 12px;
}

.pop-main {
    min-width: 0;
}

.pop-metadata {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--line);
}

.pop-metadata>div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--surface);
}

.pop-metadata span {
    color: var(--subtle);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pop-metadata strong {
    overflow-wrap: anywhere;
    font: 750 14px/1.4 var(--font-display);
}

.pop-metadata small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.pop-document {
    max-width: none;
    padding: clamp(20px, 3.5vw, 42px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.pop-document h2 {
    scroll-margin-top: 112px;
    margin: 36px 0 12px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: clamp(21px, 2.5vw, 27px);
}

.pop-document h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.pop-document h3 {
    margin: 22px 0 10px;
    color: var(--blue);
    font-size: 17px;
}

.pop-document p,
.pop-document li {
    color: var(--muted);
}

.pop-document>ul {
    padding-left: 22px;
}

.pop-document li {
    padding-left: 3px;
}

.pop-document li::marker {
    color: var(--green);
    font-weight: 800;
}

.pop-section-intro {
    padding: 13px 15px;
    border-left: 3px solid var(--blue-bright);
    border-radius: 0 11px 11px 0;
    background: var(--surface-soft);
    font-size: 13px;
}

.pop-steps {
    display: grid;
    gap: 9px;
    padding: 0;
    counter-reset: pop-step;
    list-style: none;
}

.pop-steps li {
    position: relative;
    min-height: 54px;
    margin: 0;
    padding: 18px 18px 18px 62px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.pop-steps li::before {
    position: absolute;
    top: 17px;
    left: 9px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--green);
    content: counter(pop-step, decimal-leading-zero);
    counter-increment: pop-step;
    font-size: 11px;
    font-weight: 650;
    box-shadow: none;
}

.pop-steps--compact li {
    min-height: auto;
}

.pop-detail {
    margin: 18px 0 8px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-soft);
}

.pop-detail summary {
    color: var(--blue);
    cursor: pointer;
    font-weight: 750;
}

.pop-detail[open] summary {
    margin-bottom: 8px;
}

.pop-detail ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.pop-document-end {
    display: grid;
    align-items: center;
    gap: 12px 16px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-top: 32px;
    padding: 18px;
    border: 1px solid rgba(0, 166, 60, .2);
    border-radius: 15px;
    background: linear-gradient(120deg, rgba(0, 166, 60, .07), var(--surface-soft));
}

.pop-document-end>span {
    color: var(--green);
    font-size: 25px;
}

.pop-document-end p {
    margin: 0;
    font-size: 12px;
}

.pop-document-end p strong {
    color: var(--ink);
    font-size: 13px;
}

.pop-document-end .button {
    text-align: center;
    text-decoration: none;
}

.pop-library-hero {
    padding-block: 42px 48px;
}

.pop-library-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(190px, .35fr);
}

.pop-library-hero .lead {
    max-width: 690px;
}

.pop-library-mark {
    position: relative;
    display: grid;
    min-height: 190px;
    place-items: center;
    color: var(--blue-bright);
}

.pop-library-mark svg {
    position: relative;
    z-index: 1;
    width: 145px;
    filter: drop-shadow(0 12px 18px rgba(0, 59, 143, .12));
}

.pop-library-mark-orbit {
    position: absolute;
    width: 176px;
    height: 176px;
    border: 1px dashed rgba(0, 114, 206, .26);
    border-radius: 50%;
}

.pop-mark-caption {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.5;
    text-align: center;
}

.pop-featured {
    display: grid;
    align-items: center;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin: 24px 0 28px;
    padding: 22px;
    border: 1px solid rgba(0, 114, 206, .2);
    border-radius: 20px;
    background: radial-gradient(ellipse at 100% 0, rgba(0, 166, 60, .08), transparent 40%), var(--surface);
    box-shadow: var(--shadow);
}

.pop-featured-symbol {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface-soft);
    color: var(--blue);
}

.pop-featured-symbol svg {
    width: 43px;
}

.pop-featured-copy .tag {
    margin-bottom: 8px;
}

.pop-featured-copy h2 {
    margin: 0 0 7px;
    font-size: 22px;
}

.pop-featured-copy p {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.pop-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin-top: 10px;
    color: var(--subtle);
    font-size: 11px;
}

.pop-featured-link {
    white-space: nowrap;
    text-decoration: none;
}

.pop-search-panel {
    padding: clamp(18px, 3vw, 26px);
}

.pop-search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.pop-search-heading .eyebrow {
    margin-bottom: 5px;
}

.pop-search-heading h2 {
    margin: 0 0 5px;
    font-size: 23px;
}

.pop-search-heading p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.pop-search-count-badge {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--blue);
    font: 800 14px var(--font-display);
    transform: rotate(5deg);
}

.pop-search-panel .result-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 15px;
    padding: 17px;
}

.pop-search-panel .result-card>strong,
.pop-search-panel .result-card>p,
.pop-search-panel .result-card>small {
    grid-column: 1;
}

.pop-search-panel .result-card .card-link {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
}

.pop-structure-heading {
    margin: 36px 0 17px;
}

.pop-structure-heading .eyebrow {
    margin-bottom: 5px;
}

.pop-structure-heading h2 {
    margin: 0;
}

.pop-structure-grid {
    align-items: stretch;
}

.pop-structure-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding-top: 26px;
}

.pop-structure-card .tag {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
}

.pop-structure-card h3 {
    position: relative;
    z-index: 1;
}

.pop-structure-card p {
    position: relative;
    z-index: 1;
    font-size: 13px;
}

.pop-structure-number {
    position: absolute;
    top: -25px;
    right: 8px;
    color: var(--surface-soft);
    font: 800 105px/.95 var(--font-display);
    letter-spacing: -.08em;
}

.pop-structure-foot {
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
}

.pop-review-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    margin-top: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: linear-gradient(110deg, var(--surface-soft), var(--surface));
}

.pop-review-strip>div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.pop-review-strip>div>span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.pop-review-strip p {
    display: grid;
    margin: 0;
    line-height: 1.35;
}

.pop-review-strip strong {
    font-size: 12px;
}

.pop-review-strip small {
    color: var(--muted);
    font-size: 10px;
}

.pop-review-strip>i {
    color: var(--subtle);
    font-style: normal;
}

.pop-library-back {
    margin: 24px 0 0;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 900px) {
    .pop-layout {
        gap: 18px;
        grid-template-columns: minmax(205px, .4fr) minmax(0, 1fr);
    }

    .pop-document-end {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pop-document-end .button {
        grid-column: 1 / -1;
    }

    .pop-featured {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pop-featured-link {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 700px) {

    .pop-hero-grid,
    .pop-library-hero-grid {
        grid-template-columns: 1fr;
    }

    .pop-hero-art {
        min-height: 190px;
    }

    .pop-hero-art svg {
        width: 240px;
    }

    .pop-art-orbit {
        width: 180px;
        height: 180px;
    }

    .pop-art-orbit--two {
        width: 145px;
        height: 145px;
    }

    .pop-library-mark {
        display: none;
    }

    .pop-layout {
        grid-template-columns: 1fr;
    }

    .pop-rail {
        position: static;
    }

    .pop-toc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pop-reading {
        display: grid;
        align-items: center;
        gap: 6px 14px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pop-reading-heading,
    .pop-reading>p {
        grid-column: 1 / -1;
    }

    .pop-reading progress {
        margin: 4px 0;
    }

    .pop-reading-actions {
        min-width: 130px;
        margin: 0;
    }

    .pop-metadata {
        grid-template-columns: 1fr;
    }

    .pop-metadata>div {
        display: grid;
        align-items: baseline;
        gap: 4px 10px;
        grid-template-columns: minmax(82px, .4fr) 1fr;
    }

    .pop-metadata small {
        grid-column: 2;
    }

    .pop-structure-grid {
        grid-template-columns: 1fr;
    }

    .pop-structure-card {
        min-height: 190px;
    }

    .pop-review-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .pop-review-strip>div {
        min-height: 42px;
    }

    .pop-review-strip>i {
        padding-left: 11px;
        transform: rotate(90deg);
        transform-origin: left center;
    }
}

@media (max-width: 480px) {
    .pop-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pop-hero-actions .button {
        width: 100%;
    }

    .pop-toc {
        grid-template-columns: 1fr;
    }

    .pop-reading {
        grid-template-columns: 1fr;
    }

    .pop-reading-actions,
    .pop-reading-heading,
    .pop-reading>p {
        grid-column: 1;
    }

    .pop-reading-actions .button {
        width: auto;
    }

    .pop-featured {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .pop-featured-link {
        grid-column: 1;
    }

    .pop-search-panel .result-card {
        grid-template-columns: 1fr;
    }

    .pop-search-panel .result-card .card-link {
        grid-column: 1;
        grid-row: auto;
        margin-top: 8px;
    }

    .pop-document-end {
        grid-template-columns: 1fr;
    }

    .pop-document-end .button {
        grid-column: 1;
    }
}

@media print {

    .pop-hero-art,
    .pop-hero-actions,
    .pop-rail,
    .pop-document-end,
    .pop-library-mark,
    .pop-featured-link,
    .pop-search-panel,
    .pop-review-strip,
    .pop-library-back {
        display: none !important;
    }

    .pop-hero {
        display: block !important;
        padding: 18px 0;
    }

    .pop-hero-grid,
    .pop-library-hero-grid,
    .pop-featured {
        display: block;
    }

    .pop-layout {
        display: block;
        margin-top: 12px;
    }

    .pop-metadata {
        break-inside: avoid;
        box-shadow: none;
    }

    .pop-document {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .pop-steps li,
    .pop-detail {
        break-inside: avoid;
        box-shadow: none;
    }

    .pop-reading {
        display: none;
    }
}
