.page-shell {
    --home-copy-size: 1rem;
    --home-copy-leading: 1.65;
    --home-copy-gap: 0.65rem;
}

.page-shell :is(.regulation-copy, .checklist-item-body, .home-content-public-block, .card-preview, .legacy-zone-item) {
    min-width: 0;
    font-size: var(--home-copy-size);
    line-height: var(--home-copy-leading);
    overflow-wrap: anywhere;
}

.page-shell :is(.regulation-copy, .checklist-item-body) {
    color: var(--content-soft);
}

.page-shell .regulation-copy {
    display: flow-root;
}

.page-shell :is(.regulation-copy, .checklist-item-body, .home-content-public-block) p {
    margin: 0;
}

.page-shell :is(.regulation-copy, .checklist-item-body, .home-content-public-block) p + p {
    margin-block-start: 0.45em;
}

.page-shell :is(.regulation-copy, .checklist-item-body, .home-content-public-block) > * + * {
    margin-block-start: var(--home-copy-gap);
}

.page-shell :is(.regulation-copy, .checklist-item-body, .home-content-public-block) :is(ul, ol) {
    margin-inline: 0;
    margin-block-end: 0;
    padding-inline-start: 1.5em;
}

.page-shell :is(.regulation-copy, .checklist-item-body, .home-content-public-block) > :is(ul, ol):first-child {
    margin-block-start: 0;
}

.page-shell .regulation-copy > :is(ul, ol) + :is(ul, ol),
.page-shell .regulation-copy li > :is(ul, ol),
.page-shell .regulation-copy li + li {
    margin-block-start: 0.35em;
}

.page-shell .regulation-copy li {
    margin-block: 0;
}

.page-shell .regulation-copy :is(p, li, span)[style*="font-size" i] {
    font-size: inherit !important;
}

.page-shell .regulation-copy :is(p, li, span)[style*="font-family" i] {
    font-family: inherit !important;
}

.page-shell .regulation-copy img {
    max-inline-size: 100%;
    height: auto;
}

.page-shell .regulation-card:has(> .regulation-copy) {
    gap: clamp(12px, 1.3vw, 18px);
    padding: clamp(16px, 2vw, 24px);
}

.page-shell .regulation-card:has(> .regulation-copy) > h3 {
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.page-shell .regulation-card:has(> .regulation-copy) > h3 i {
    flex: 0 0 1.2em;
    text-align: center;
}

.page-shell .home-reference-shortcut small {
    font-size: 0.875rem;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}

.kb-search-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.kb-search-summary .search-info {
    min-width: 0;
    overflow-wrap: anywhere;
}

.kb-search-summary button {
    padding: 5px 12px;
    font-size: 0.875rem;
}

.kb-search-summary button[hidden] {
    display: none;
}

.category-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
