/* Shared long-form pages, following the owner's terms-page design. */
.ht-content main {
    background: #fff;
    color: var(--ht-navy);
    font-family: var(--font-body);
}

.ht-content main > .content-hero > .container,
.ht-content .content-shell.container {
    width: 100%;
    max-width: 1200px;
    padding-inline: 32px;
}

.ht-content main a {
    color: var(--ht-navy);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.ht-content main a:hover { color: #a43d23; }

.ht-content .content-hero {
    background: #faedda;
    background: linear-gradient(105deg, #faedda, #fcf2e3);
}

.ht-content .content-hero > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    column-gap: 36px;
    align-items: start;
    padding-block: 36px 34px;
}

.ht-content .content-hero > .container > :not(.content-hero-art) { grid-column: 1; }

.ht-content .content-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--ht-muted);
    font-size: .8125rem;
    line-height: 1.6;
}

.ht-content .content-breadcrumb :is(ol, ul) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ht-content .content-hero h1 {
    margin: 0 0 12px;
    color: var(--ht-navy);
    font-size: clamp(2.125rem, 4.2vw, 3.75rem);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.045em;
    text-wrap: initial;
}

.ht-content .content-subtitle {
    max-width: 640px;
    margin: 0;
    color: var(--ht-muted);
    font-size: 1.125rem;
    line-height: 1.6;
}

.ht-content .content-updated {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 10px 0 0;
    color: var(--ht-muted);
    font-size: .875rem;
    line-height: 1.6;
}

.ht-content .content-hero-art {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 330px;
}

.ht-content .content-hero-art img { display: block; width: 100%; height: auto; }

.ht-content .content-updated :is(svg, i) { width: 21px; height: 21px; font-size: 21px; }
.ht-content .content-article-tools { display: flex; justify-content: flex-end; margin: -12px 0 12px; }

.ht-content .content-print {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 0 8px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--ht-navy);
    font: 500 .875rem/1.5 var(--font-body);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ht-content .content-print:hover { color: #a43d23; }
.ht-content .content-print :is(svg, i) { width: 21px; height: 21px; font-size: 21px; }

.ht-content .content-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    column-gap: 48px;
    padding-top: 36px;
    padding-bottom: 40px;
}

.ht-content .content-sidebar {
    position: sticky;
    top: 24px;
    min-width: 0;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: -6px;
    padding: 6px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c7d0d9 transparent;
}

.ht-content .content-toc {
    margin: 0;
    padding: 12px 8px 16px;
    border: 1px solid #efe6d8;
    border-radius: 7px;
    background: #fcf7ef;
}
.ht-content .content-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
    margin: 0 0 10px;
    padding: 4px 10px;
    color: var(--ht-navy);
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

.ht-content .content-toc summary::-webkit-details-marker { display: none; }
.ht-content .content-toc summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    flex: 0 0 auto;
}

.ht-content .content-toc[open] summary::after { transform: rotate(225deg); }
.ht-content .content-toc-list { margin: 0; padding: 0; list-style: none; counter-reset: contents; }
.ht-content .content-toc-list li { margin: 0; counter-increment: contents; }
.ht-content .content-toc-list a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: baseline;
    min-height: 36px;
    padding: 8px 9px;
    border-left: 3px solid transparent;
    border-radius: 0 5px 5px 0;
    color: var(--ht-muted);
    font-size: .8125rem;
    line-height: 1.55;
    text-decoration: none;
}

.ht-content .content-toc-list a::before { content: counter(contents) "."; font-variant-numeric: tabular-nums; }
.ht-content .content-toc-list a:hover { background: #fcf4e9; color: var(--ht-navy); }
.ht-content .content-toc-list a[aria-current="location"] {
    border-left-color: var(--ht-coral);
    background: #faeddf;
    color: var(--ht-navy);
    font-weight: 650;
}

.ht-content .content-help { margin-top: 26px; padding: 20px 0 0; border-top: 1px solid #e4e8eb; }

.ht-content .content-help :is(h2, h3) {
    margin: 0 0 8px;
    color: var(--ht-navy);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -.025em;
}

.ht-content .content-help p { margin: 0 0 12px; color: var(--ht-muted); font-size: .875rem; line-height: 1.6; }
.ht-content .content-help a { font-size: .875rem; font-weight: 650; }
.ht-content .content-related { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e4e8eb; }
.ht-content .content-related :is(h2, h3) { margin: 0 0 12px; color: var(--ht-navy); font-size: .875rem; font-weight: 750; }
.ht-content .content-related a { display: block; width: fit-content; margin-top: 9px; padding-block: 3px; font-size: .875rem; }

.ht-content .content-prose {
    min-width: 0;
    max-width: none;
    margin: 0;
    color: #3e4b5a;
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    counter-reset: content-section;
}

.ht-content .content-section {
    position: relative;
    margin: 0 0 22px;
    padding: 0 0 22px;
    border-bottom: 1px solid #e4e8eb;
    counter-increment: content-section;
}

.ht-content .content-section:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.ht-content .content-section > h2 {
    position: relative;
    margin: 0 0 9px;
    padding: 0;
    border: 0;
    color: var(--ht-navy);
    font-size: 1.5rem;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.035em;
    text-wrap: initial;
}

.ht-content .content-section > h2::before { content: counter(content-section) ". "; font-variant-numeric: tabular-nums; }

.ht-content .content-prose h3 {
    margin: 20px 0 5px;
    color: var(--ht-navy);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.ht-content .content-prose p { margin: 0 0 12px; color: inherit; font-size: inherit; line-height: inherit; }
.ht-content .content-section > :last-child { margin-bottom: 0; }
.ht-content .content-prose :is(ul, ol) { margin: 0 0 16px; padding-left: 24px; color: inherit; }
.ht-content .content-prose li { margin-bottom: 7px; padding-left: 2px; }
.ht-content .content-prose ul > li::marker { color: #d85130; }
.ht-content .content-prose strong { color: var(--ht-navy); font-weight: 650; }
.ht-content .content-prose a { text-decoration: underline; text-decoration-color: currentColor; overflow-wrap: anywhere; }
.ht-content .content-prose code { color: var(--ht-navy); font-size: .875em; white-space: normal; overflow-wrap: anywhere; }

.ht-content .content-prose .changed-badge {
    position: static;
    display: inline-block;
    margin: 0 0 0 7px;
    padding: 4px 8px;
    border-radius: 20px;
    background: #ffe2d7;
    color: #8d391f;
    font: 600 .6875rem/1.3 var(--font-body);
    text-transform: none;
    letter-spacing: 0;
    vertical-align: middle;
}

.ht-content .content-prose :is(.callout, .info-note, .content-note, blockquote) {
    margin: 20px 0;
    padding: 18px 20px;
    border: 1px solid #f2e5d1;
    border-left: 3px solid var(--ht-coral);
    border-radius: 6px;
    background: #fcf3e7;
    color: #3e4b5a;
    font-size: .9375rem;
    line-height: 1.65;
}

.ht-content .content-prose :is(.callout, .info-note, .content-note, blockquote) > :last-child { margin-bottom: 0; }
.ht-content .content-prose :is(.callout, .info-note, .content-note) :is(h3, h4) { margin: 0 0 6px; font-size: 1rem; }
.ht-content .content-prose .content-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 18px 0 26px;
    padding: 18px 20px;
    border: 1px solid #a9cfdf;
    background: #eef8fd;
}

.ht-content .content-note > :is(i, svg) { flex: 0 0 26px; width: 26px; height: 26px; color: #12618d; font-size: 26px; }
.ht-content .content-note > div { min-width: 0; }
.ht-content .content-note :is(h2, h3, h4) { margin: 0 0 4px; color: var(--ht-navy); font-size: 1rem; font-weight: 750; line-height: 1.4; }
.ht-content .content-note p:last-child { margin-bottom: 0; }
.ht-content .content-table-scroll { max-width: 100%; margin: 18px 0 22px; overflow-x: auto; border-radius: 3px; }
.ht-content .content-prose table {
    width: 100%;
    margin: 18px 0 22px;
    border: 1px solid #dae1e7;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .875rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ht-content .content-prose :is(th, td) { padding: 12px; border: 1px solid #dae1e7; text-align: left; vertical-align: top; }
.ht-content .content-prose th { background: #f9efdf; color: var(--ht-navy); font-weight: 700; }
.ht-content .content-prose tbody tr:nth-child(even) { background: #fafbfc; }
.ht-content .content-prose .data-table th:first-child { width: 33%; }
.ht-content .content-prose .cookie-table th:nth-child(1) { width: 26%; }
.ht-content .content-prose .cookie-table th:nth-child(2) { width: 20%; }
.ht-content .content-prose .cookie-table th:nth-child(3) { width: 35%; }
.ht-content .content-prose .cookie-table th:nth-child(4) { width: 19%; }
.ht-content .content-prose table p:last-child { margin-bottom: 0; }
.ht-content .content-table-scroll table { margin: 0; }
.ht-content .content-table-scroll .cookie-table { min-width: 560px; }

.ht-content .content-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #e4e8eb; }
.ht-content .content-bottom > .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; padding: 0; }
.ht-content .content-bottom nav { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.ht-content .content-bottom a { display: inline-block; padding-block: 5px; font-size: .875rem; }
.ht-content .content-back-top { margin-left: auto; }
.ht-content .content-after .reveal { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
    .ht-content .content-hero > .container { grid-template-columns: minmax(0, 1fr) 240px; gap: 0 24px; }
    .ht-content .content-shell { grid-template-columns: 200px minmax(0, 1fr); column-gap: 28px; }
    .ht-content .content-section > h2 { font-size: 1.375rem; }
}

@media (max-width: 767.98px) {
    .ht-content main > .content-hero > .container,
    .ht-content .content-shell.container { padding-inline: 20px; }
    .ht-content .content-hero > .container { grid-template-columns: minmax(0, 1fr); padding-block: 28px; }
    .ht-content .content-breadcrumb { margin-bottom: 18px; }
    .ht-content .content-hero h1 { font-size: clamp(2.125rem, 7vw, 3rem); }
    .ht-content .content-hero-art { display: none; }
    .ht-content .content-subtitle { font-size: 1rem; }
    .ht-content .content-article-tools { margin: -12px 0 12px; }
    .ht-content .content-shell { display: block; padding-top: 22px; padding-bottom: 30px; }
    .ht-content .content-sidebar { position: static; max-height: none; margin: 0 0 28px; padding: 0; overflow: visible; }
    .ht-content .content-toc { padding: 0; }
    .ht-content .content-toc summary { min-height: 52px; margin: 0; padding: 12px 16px; }
    .ht-content .content-toc[open] summary { border-bottom: 1px solid #e4e8eb; }
    .ht-content .content-toc-list { padding: 8px; }
    .ht-content .content-toc-list a { min-height: 42px; padding-block: 10px; font-size: .875rem; }
    .ht-content .content-help { margin-top: 16px; padding-top: 16px; }
    .ht-content .content-related { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 20px; padding-top: 18px; }
    .ht-content .content-related :is(h2, h3) { flex: 1 1 100%; margin-bottom: 4px; }
    .ht-content .content-related a { margin-top: 0; padding-block: 6px; }
    .ht-content .content-section { margin-bottom: 24px; padding-bottom: 24px; }
    .ht-content .content-prose :is(th, td) { padding: 9px 7px; }
    .ht-content .content-bottom { align-items: flex-start; }
    .ht-content .content-prose .content-note { gap: 12px; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .ht-content main, .ht-content main * { scroll-behavior: auto; }
    .ht-content main a { transition: none; }
}

@media print {
    .ht-content { background: #fff !important; color: #000; }
    .ht-content :is(.ht-site-header, .ht-site-footer, .ht-skip-link, .content-sidebar, .content-article-tools, .content-hero-art, .content-bottom, .content-after) { display: none !important; }
    .ht-content main { background: #fff; color: #000; }
    .ht-content main > .content-hero > .container,
    .ht-content .content-shell.container { display: block; width: auto; max-width: none; margin: 0; padding: 0; border: 0; }
    .ht-content .content-hero { padding: 0 0 20px; background: none; border-bottom: 1px solid #bbb; }
    .ht-content .content-hero h1 { color: #000; font-size: 28pt; }
    .ht-content .content-breadcrumb { display: none; }
    .ht-content :is(.content-subtitle, .content-updated) { color: #333; font-size: 10pt; }
    .ht-content .content-prose { padding-top: 20px; font-size: 10pt; line-height: 1.5; }
    .ht-content .content-section { margin-bottom: 14px; padding: 0 0 14px; }
    .ht-content .content-section > h2 { color: #000; font-size: 15pt; }
    .ht-content .content-prose h3 { color: #000; font-size: 11pt; }
    .ht-content .content-prose :is(h2, h3, h4) { break-after: avoid; page-break-after: avoid; }
    .ht-content .content-prose :is(p, li) { orphans: 3; widows: 3; }
    .ht-content .content-prose a { color: #000; }
    .ht-content .content-prose :is(.callout, .info-note, .content-note, blockquote) { background: none; border-color: #aaa; }
    .ht-content .content-table-scroll { width: auto; max-width: none; margin: 14px 0; overflow: visible; }
    .ht-content .content-table-scroll .cookie-table { min-width: 0; }
    .ht-content .content-prose table { display: table; width: 100%; max-width: 100%; margin-left: 0; overflow: visible; table-layout: auto; font-size: 9pt; }
    .ht-content .content-prose thead { display: table-header-group; }
    .ht-content .content-prose tr { break-inside: avoid; page-break-inside: avoid; }
    .ht-content .content-prose :is(th, td) { padding: 7px; background: none; color: #000; }
    .ht-content .content-prose .changed-badge { border: 1px solid #aaa; background: none; color: #333; }
}
