:root {
    --theme-bg: #ffffff;
    --theme-canvas: #f7f8fb;
    --theme-surface: #ffffff;
    --theme-navy: #071b52;
    --theme-blue: #0b4eb2;
    --theme-teal: #078c8d;
    --theme-teal-soft: #eaf7f6;
    --theme-warm: #c66d18;
    --theme-warm-soft: #fff6ea;
    --theme-text: #23365d;
    --theme-muted: #68758f;
    --theme-line: #e6eaf1;
    --theme-border: #d8e0eb;
    --theme-shell: 1280px;
    --theme-radius: 10px;
    --theme-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

.web-v4-next-themes [hidden] {
    display: none !important;
}

html {
    background: var(--theme-bg);
    color: var(--theme-text);
    scroll-behavior: smooth;
}

body.web-v4-next-themes {
    min-width: 320px;
    margin: 0;
    overflow-x: clip;
    background: var(--theme-bg);
    color: var(--theme-text);
    font-family: var(--theme-font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.web-v4-next-themes a {
    color: inherit;
}

.web-v4-next-themes button,
.web-v4-next-themes input,
.web-v4-next-themes select {
    font: inherit;
}

.web-v4-next-themes button,
.web-v4-next-themes a {
    -webkit-tap-highlight-color: transparent;
}

.web-v4-next-themes :focus-visible {
    outline: 3px solid rgba(11, 78, 178, 0.24);
    outline-offset: 3px;
}

.page-shell {
    width: min(var(--theme-shell), calc(100% - 64px));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--theme-border);
    background: rgba(255, 255, 255, 0.98);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    width: min(1440px, calc(100% - 64px));
    min-height: 76px;
    margin-inline: auto;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding-right: 42px;
    color: var(--theme-navy);
    text-decoration: none;
    white-space: nowrap;
}

.site-brand__logo {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.site-brand__copy {
    display: grid;
    gap: 2px;
}

.site-brand__copy strong {
    color: var(--theme-navy);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.site-brand__copy small {
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.site-navigation {
    display: flex;
    align-items: stretch;
    gap: 38px;
    min-width: 0;
}

.site-navigation__link,
.site-login {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--theme-navy);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.site-navigation__link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    content: "";
}

.site-navigation__link:hover,
.site-navigation__link.is-current,
.site-login:hover {
    color: var(--theme-blue);
}

.site-navigation__link.is-current::after {
    background: var(--theme-blue);
}

.site-navigation__link.is-pending {
    color: var(--theme-muted);
    cursor: default;
}

.site-login {
    justify-self: end;
    padding-left: 32px;
}

.site-menu-button {
    display: none;
    width: 48px;
    height: 48px;
    padding: 11px;
    border: 0;
    background: transparent;
    color: var(--theme-navy);
}

.site-menu-button svg {
    display: block;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2.2;
}

.theme-hero {
    display: grid;
    grid-template-areas:
        "intro status"
        "opportunity opportunity";
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 64px;
    padding-block: 38px 34px;
}

.theme-intro {
    grid-area: intro;
    align-self: center;
}

.theme-intro h1 {
    max-width: 900px;
    margin: 0;
    color: var(--theme-navy);
    font-size: clamp(44px, 4vw, 58px);
    font-weight: 820;
    letter-spacing: -0.052em;
    line-height: 1.12;
}

.theme-intro p {
    max-width: 820px;
    margin: 18px 0 0;
    color: var(--theme-muted);
    font-size: 19px;
    line-height: 1.7;
}

.data-status {
    grid-area: status;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 0 12px;
    align-content: center;
    min-width: 0;
    padding-left: 36px;
    border-left: 1px solid var(--theme-border);
}

.data-status__dot {
    width: 8px;
    height: 8px;
    margin-top: 9px;
    border-radius: 50%;
    background: var(--theme-teal);
    box-shadow: 0 0 0 5px var(--theme-teal-soft);
}

.data-status strong {
    color: var(--theme-navy);
    font-size: 16px;
}

.data-status p {
    margin: 3px 0 0;
    color: var(--theme-muted);
    font-size: 13px;
    line-height: 1.6;
}

.data-status dl {
    grid-column: 2;
    display: grid;
    gap: 7px;
    margin: 14px 0 0;
}

.data-status dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--theme-muted);
    font-size: 13px;
}

.data-status dt,
.data-status dd {
    margin: 0;
}

.data-status dd {
    color: var(--theme-text);
    font-weight: 650;
}

.opportunity-section {
    grid-area: opportunity;
    min-width: 0;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--theme-border);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-heading--compact {
    margin-bottom: 10px;
}

.section-heading h2 {
    margin: 0;
    color: var(--theme-navy);
    font-size: 30px;
    font-weight: 780;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--theme-muted);
    font-size: 15px;
}

.opportunity-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--theme-border);
}

.opportunity-tabs button {
    position: relative;
    min-height: 43px;
    padding: 0 17px;
    border: 0;
    background: transparent;
    color: var(--theme-muted);
    font-weight: 700;
    cursor: pointer;
}

.opportunity-tabs button::after {
    position: absolute;
    right: 10px;
    bottom: -2px;
    left: 10px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    content: "";
}

.opportunity-tabs button[aria-pressed="true"] {
    color: var(--theme-teal);
}

.opportunity-tabs button[aria-pressed="true"]::after {
    background: var(--theme-teal);
}

.opportunity-tabs button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    margin-left: 5px;
    padding-inline: 5px;
    border-radius: 11px;
    background: var(--theme-canvas);
    font-size: 12px;
    line-height: 1.3;
}

.opportunity-panel + .opportunity-panel {
    margin-top: 22px;
}

.opportunity-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 16px;
}

.primary-opportunity {
    min-width: 0;
    padding: 20px 24px;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    background: var(--theme-surface);
    box-shadow: 0 10px 28px rgba(7, 27, 82, 0.045);
}

.theme-card-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--theme-line);
}

.theme-card-heading span,
.secondary-opportunities article > div > span,
.discovery-grid article > span {
    color: var(--theme-teal);
    font-size: 12px;
    font-weight: 720;
    letter-spacing: 0.02em;
}

.theme-card-heading h3,
.secondary-opportunities h3,
.discovery-grid h3 {
    margin: 4px 0 0;
    color: var(--theme-navy);
    font-weight: 760;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.theme-card-heading h3 {
    font-size: 26px;
}

.theme-card-heading > strong {
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid #b9dcda;
    border-radius: 6px;
    background: var(--theme-teal-soft);
    color: var(--theme-teal);
    font-size: 12px;
}

.judgement-grid {
    margin: 0;
}

.judgement-grid > div {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px solid var(--theme-line);
}

.judgement-grid dt,
.judgement-grid dd {
    margin: 0;
}

.judgement-grid dt {
    color: var(--theme-teal);
    font-size: 14px;
    font-weight: 730;
}

.judgement-grid dd {
    color: var(--theme-text);
    font-size: 14px;
    line-height: 1.65;
}

.judgement-grid__risk dt {
    color: var(--theme-warm);
}

.judgement-more summary {
    display: none;
}

.judgement-more .judgement-grid {
    margin: 0;
}

.opportunity-evidence {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    color: var(--theme-muted);
    font-size: 12px;
}

.secondary-opportunities {
    display: grid;
    align-content: start;
    gap: 10px;
}

.secondary-opportunities article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding: 17px 18px;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    background: var(--theme-surface);
}

.secondary-opportunities h3 {
    font-size: 18px;
}

.secondary-opportunities p {
    grid-column: 1 / -1;
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--theme-muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.secondary-opportunities .theme-action {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

.theme-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-blue) !important;
    font-size: 13px;
    font-weight: 720;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.theme-action:hover {
    color: var(--theme-teal) !important;
}

.theme-action--primary {
    justify-content: center;
    min-height: 44px;
    margin-top: 13px;
    padding: 0 21px;
    border: 1px solid var(--theme-navy);
    border-radius: 6px;
    background: var(--theme-navy);
    color: #ffffff !important;
    font-size: 15px;
}

.theme-action--primary:hover {
    background: var(--theme-blue);
    color: #ffffff !important;
}

.empty-state {
    margin: 0;
    padding: 20px;
    border: 1px dashed var(--theme-border);
    border-radius: var(--theme-radius);
    background: var(--theme-canvas);
    color: var(--theme-muted);
}

.section-block {
    padding-block: 58px;
    border-top: 1px solid var(--theme-border);
}

.discovery-section {
    padding-top: 30px;
    background: var(--theme-bg);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 190px 190px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    background: var(--theme-canvas);
}

.filter-bar label {
    display: grid;
    gap: 6px;
}

.filter-bar label > span {
    color: var(--theme-muted);
    font-size: 12px;
    font-weight: 700;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--theme-text);
}

.filter-bar button {
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--theme-blue);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.filter-bar button:disabled {
    color: var(--theme-muted);
    cursor: default;
    opacity: 0.65;
}

.filter-bar button.is-active {
    border-color: var(--theme-blue);
    color: var(--theme-blue);
}

.discovery-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    overflow: hidden;
}

.discovery-tabs button {
    display: grid;
    gap: 3px;
    min-height: 76px;
    padding: 12px 16px;
    border: 0;
    border-right: 1px solid var(--theme-border);
    background: #ffffff;
    color: var(--theme-text);
    text-align: left;
    cursor: pointer;
}

.discovery-tabs button:last-child {
    border-right: 0;
}

.discovery-tabs button[aria-selected="true"] {
    background: var(--theme-teal-soft);
    color: var(--theme-teal);
}

.discovery-tabs strong {
    color: var(--theme-navy);
    font-size: 16px;
}

.discovery-tabs span {
    color: var(--theme-muted);
    font-size: 12px;
    line-height: 1.45;
}

.discovery-panel + .discovery-panel {
    margin-top: 18px;
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.discovery-grid article {
    display: grid;
    align-content: start;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    background: #ffffff;
}

.discovery-grid h3 {
    font-size: 18px;
}

.discovery-grid p {
    margin: 10px 0 14px;
    color: var(--theme-muted);
    font-size: 13px;
    line-height: 1.65;
}

.discovery-grid article > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.discovery-grid small {
    color: var(--theme-muted);
    font-size: 11px;
}

.filter-status {
    min-height: 22px;
    margin: -8px 0 12px;
    color: var(--theme-muted);
    font-size: 13px;
}

.catalog-results .discovery-grid {
    margin-top: 0;
}

.theme-map-section {
    background: var(--theme-canvas);
}

.theme-map-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.domain-scroll-hint {
    display: none;
}

.domain-nav {
    position: sticky;
    top: 22px;
    display: grid;
    gap: 7px;
}

.domain-nav button {
    display: grid;
    gap: 2px;
    min-height: 58px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--theme-text);
    text-align: left;
    cursor: pointer;
}

.domain-nav button[aria-selected="true"] {
    border-color: var(--theme-border);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(7, 27, 82, 0.04);
}

.domain-nav strong {
    color: var(--theme-navy);
    font-size: 15px;
}

.domain-nav span {
    color: var(--theme-muted);
    font-size: 11px;
}

.domain-panels {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    background: #ffffff;
}

.domain-panels > section + section {
    margin-top: 24px;
}

.domain-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--theme-border);
}

.domain-heading h3,
.domain-heading span {
    margin: 0;
}

.domain-heading h3 {
    color: var(--theme-navy);
    font-size: 22px;
}

.domain-heading span {
    color: var(--theme-muted);
    font-size: 12px;
}

.mainline-group {
    border-bottom: 1px solid var(--theme-border);
}

.mainline-group:last-child {
    border-bottom: 0;
}

.mainline-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 2px;
    color: var(--theme-navy);
    cursor: pointer;
    list-style: none;
}

.mainline-group summary::-webkit-details-marker {
    display: none;
}

.mainline-group summary span {
    color: var(--theme-muted);
    font-size: 12px;
    font-weight: 500;
}

.theme-rows {
    padding-bottom: 8px;
}

.theme-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px 110px auto;
    gap: 18px;
    align-items: center;
    padding: 12px 2px;
    border-top: 1px solid var(--theme-line);
}

.theme-row strong {
    color: var(--theme-text);
    font-size: 14px;
}

.theme-row p {
    margin: 2px 0 0;
    color: var(--theme-muted);
    font-size: 12px;
    line-height: 1.55;
}

.theme-row > span,
.theme-row > small {
    color: var(--theme-muted);
    font-size: 12px;
}

.stage-guide {
    padding-bottom: 36px;
}

.stage-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stage-tabs button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--theme-border);
    border-radius: 19px;
    background: #ffffff;
    color: var(--theme-muted);
    font-weight: 680;
    cursor: pointer;
}

.stage-tabs button[aria-pressed="true"] {
    border-color: var(--theme-teal);
    background: var(--theme-teal-soft);
    color: var(--theme-teal);
}

.stage-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.7fr);
    gap: 28px;
    margin-top: 14px;
    padding: 16px 18px;
    border-left: 3px solid var(--theme-teal);
    background: var(--theme-canvas);
}

.stage-panel strong,
.stage-panel p {
    margin: 0;
    font-size: 14px;
}

.stage-panel strong {
    color: var(--theme-navy);
}

.stage-panel p {
    color: var(--theme-muted);
}

.geo-source-details {
    margin-bottom: 56px;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    background: #ffffff;
}

.geo-source-details summary {
    padding: 18px 20px;
    color: var(--theme-navy);
    font-weight: 750;
    cursor: pointer;
}

.geo-source-details__body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 0 20px 20px;
    border-top: 1px solid var(--theme-line);
}

.geo-source-details__body h2 {
    margin: 16px 0 4px;
    color: var(--theme-navy);
    font-size: 15px;
}

.geo-source-details__body p {
    margin: 0 0 8px;
    color: var(--theme-muted);
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid var(--theme-border);
    background: var(--theme-canvas);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 42px;
    align-items: center;
    min-height: 130px;
}

.site-footer strong {
    color: var(--theme-navy);
    font-size: 18px;
}

.site-footer p {
    margin: 2px 0 0;
    color: var(--theme-muted);
    font-size: 12px;
}

.site-footer nav {
    display: flex;
    gap: 22px;
}

.site-footer nav a {
    color: var(--theme-text);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .site-navigation {
        gap: 24px;
    }

    .theme-hero {
        column-gap: 38px;
    }

    .opportunity-layout {
        grid-template-columns: 1fr;
    }

    .secondary-opportunities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar {
        grid-template-columns: minmax(280px, 1fr) 160px 160px auto;
    }
}

@media (max-width: 880px) {
    .page-shell {
        width: min(100% - 32px, var(--theme-shell));
    }

    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        width: min(100% - 24px, 1440px);
        min-height: 68px;
    }

    .site-brand {
        padding-right: 10px;
    }

    .site-brand__logo {
        width: 40px;
        height: 40px;
    }

    .site-brand__copy strong {
        font-size: 21px;
    }

    .site-brand__copy small {
        display: none;
    }

    .site-menu-button {
        display: block;
        align-self: center;
    }

    .site-navigation {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding: 4px 0 13px;
        border-top: 1px solid var(--theme-line);
    }

    .site-navigation[hidden] {
        display: none;
    }

    .site-navigation__link {
        justify-content: center;
        min-height: 42px;
        font-size: 14px;
    }

    .site-login {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: end;
        margin-right: 52px;
        padding: 0;
        font-size: 14px;
    }

    .theme-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "opportunity"
            "status";
        gap: 0;
        padding-block: 34px 30px;
    }

    .theme-intro h1 {
        font-size: clamp(36px, 10vw, 46px);
        line-height: 1.16;
    }

    .theme-intro p {
        margin-top: 13px;
        font-size: 16px;
    }

    .opportunity-section {
        margin-top: 32px;
        padding-top: 24px;
    }

    .opportunity-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .opportunity-tabs button {
        padding-inline: 4px;
        font-size: 13px;
    }

    .opportunity-tabs button span {
        min-width: 19px;
        height: 19px;
        margin-left: 2px;
    }

    .opportunity-layout {
        grid-template-columns: 1fr;
    }

    .primary-opportunity {
        padding: 20px 18px;
    }

    .theme-card-heading h3 {
        font-size: 22px;
    }

    .judgement-grid > div {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0;
    }

    .secondary-opportunities article {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .data-status {
        margin-top: 22px;
        padding: 18px;
        border: 1px solid var(--theme-border);
        border-radius: var(--theme-radius);
        background: var(--theme-canvas);
    }

    .section-block {
        padding-block: 42px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .search-field,
    .filter-bar button {
        grid-column: 1 / -1;
    }

    .discovery-tabs {
        grid-template-columns: 1fr 1fr;
    }

    .discovery-tabs button:nth-child(2) {
        border-right: 0;
    }

    .discovery-tabs button:nth-child(-n + 2) {
        border-bottom: 1px solid var(--theme-border);
    }

    .discovery-grid {
        grid-template-columns: 1fr;
    }

    .theme-map-layout {
        grid-template-columns: 1fr;
    }

    .domain-nav {
        position: static;
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
        -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 38px), transparent 100%);
        mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 38px), transparent 100%);
    }

    .domain-scroll-hint {
        display: block;
        margin: -16px 0 0;
        color: var(--theme-muted);
        font-size: 12px;
    }

    .domain-nav button {
        flex: 0 0 auto;
        min-width: 142px;
    }

    .domain-panels {
        padding: 16px;
    }

    .theme-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 12px;
    }

    .theme-row > div {
        grid-column: 1 / -1;
    }

    .theme-row .theme-action {
        justify-self: end;
    }

    .stage-panel {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .geo-source-details__body {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-block: 28px;
    }

    .site-footer nav {
        flex-wrap: wrap;
        gap: 12px 18px;
    }
}

@media (max-width: 520px) {
    .theme-intro h1 {
        font-size: 32px;
        line-height: 1.22;
        text-wrap: balance;
    }

    .theme-card-heading {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

    .secondary-opportunities article {
        grid-template-columns: 1fr;
    }

    .secondary-opportunities .theme-action {
        grid-column: 1;
        grid-row: auto;
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .search-field,
    .filter-bar button {
        grid-column: 1 / -1;
    }

    .discovery-tabs {
        display: flex;
        overflow-x: auto;
        border: 0;
        gap: 8px;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    .discovery-tabs button,
    .discovery-tabs button:nth-child(2) {
        flex: 0 0 152px;
        min-height: 66px;
        border: 1px solid var(--theme-border);
        border-radius: 8px;
    }

    .discovery-tabs button:last-child {
        border: 1px solid var(--theme-border);
    }

    .opportunity-tabs button {
        display: grid;
        align-content: center;
        justify-items: center;
        gap: 2px;
        min-height: 58px;
        line-height: 1.3;
    }

    .opportunity-tabs button span {
        margin-left: 0;
        background: transparent;
        font-size: 10px;
        font-weight: 600;
    }

    .judgement-more {
        border-bottom: 1px solid var(--theme-line);
    }

    .judgement-more summary {
        display: block;
        padding: 13px 0;
        color: var(--theme-blue);
        font-size: 14px;
        font-weight: 720;
        cursor: pointer;
    }

    .judgement-more[open] summary {
        color: var(--theme-teal);
    }

    .opportunity-evidence {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .secondary-opportunities {
        grid-template-columns: 1fr;
    }

    .discovery-grid article > div {
        align-items: start;
        flex-direction: column;
    }
}
