.ai-topic {
    --at-ink: #102840;
    --at-body: #354c61;
    --at-link: #0057a8;
    --at-blue: #006bc5;
    --at-rule: #d5e3ef;
    --at-tint: #f2f7fb;
    color: var(--at-ink);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    font-size: 16px;
    line-height: 1.8;
}
.ai-topic *,
.ai-topic *::before,
.ai-topic *::after { box-sizing: border-box; }
.ai-topic h1,
.ai-topic h2,
.ai-topic h3,
.ai-topic h4,
.ai-topic h5,
.ai-topic p,
.ai-topic dl,
.ai-topic dd { margin: 0; }
.ai-topic a:focus-visible,
.ai-topic button:focus-visible,
.ai-topic input:focus-visible,
.ai-topic summary:focus-visible { outline: 3px solid #0086cb; outline-offset: 4px; }
.ai-topic a { color: var(--at-link); }
.ai-topic p, .ai-topic dd { color: var(--at-body); }
.ai-topic h2 { font-size: clamp(25px, 3vw, 43px); line-height: 1.32; }
.ai-topic h3 { font-size: 23px; line-height: 1.45; }
.ai-topic [id] { scroll-margin-top: 24px; }
.ai-topic [hidden] { display: none !important; }
.at-wrap { width: min(1264px, calc(100% - 84px)); margin-inline: auto; }

.at-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: stretch;
    min-height: 510px;
    color: #fff;
    background: #172f44;
}
.at-hero-image, .at-hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The shared mobile sheet applies height:auto !important to every image. */
.at-hero-image { z-index: -2; height: 100% !important; object-fit: cover; object-position: center 54%; }
.at-hero::before {
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, rgba(5, 24, 41, .88) 0%, rgba(7, 25, 42, .55) 45%, rgba(8, 27, 42, .07) 77%);
}
.at-hero-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 57px 66px; }
.at-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; color: #e6f1fb; font-size: 13px; }
.at-breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.at-hero h1 { font-size: clamp(38px, 5.1vw, 71px); font-weight: 750; line-height: 1.15; letter-spacing: -.035em; }
.at-hero h1 span, .at-journey h2 span { display: inline-block; }
.ai-topic .at-lead { text-wrap: pretty; margin-top: 20px; max-width: 33em; color: #fff; font-size: clamp(16px, 1.55vw, 22px); line-height: 1.7; }
.ai-topic .at-image-label { position: absolute; right: max(22px, calc((100% - 1264px) / 2)); bottom: 16px; color: #fff; background: rgba(6, 24, 40, .7); padding: 3px 10px; font-size: 12px; border-radius: 3px; }
.at-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 27px; }
.ai-topic .at-button { display: inline-flex; align-items: center; justify-content: center; min-height: 51px; padding: 9px 21px; border: 2px solid transparent; border-radius: 6px; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.45; }
.ai-topic .at-hero .at-button { min-width: 190px; min-height: 55px; font-size: 18px; }
.ai-topic .at-primary { color: #fff; background: var(--at-blue); }
.ai-topic .at-primary:hover { background: #00549d; }
.ai-topic .at-outline { color: #fff; border-color: rgba(255,255,255,.85); background: rgba(9,28,47,.34); }
.ai-topic .at-outline:hover { background: rgba(24,66,104,.74); }
.ai-topic .at-text-button { color: var(--at-link); border-color: #bdd2e3; background: #fff; }
.ai-topic .at-text-button:hover { background: #e5f3ff; }

.at-journey { background: #f3f8fc; padding: 46px 0 35px; }
.at-journey h2 { position: relative; margin-bottom: 30px; padding-bottom: 13px; }
.at-journey h2::after { position: absolute; bottom: 0; left: 0; content: ""; width: 54px; height: 4px; border-radius: 2px; background: #0780da; }
.at-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.at-steps li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; align-items: start; }
.at-steps img { width: 34px; height: 34px; margin-top: 3px; object-fit: contain; filter: invert(24%) sepia(93%) saturate(2037%) hue-rotate(187deg) brightness(86%) contrast(99%); }
.at-steps li > div { padding-left: 15px; border-left: 1px solid #a8c2d7; }
.at-steps h3 { font-size: clamp(18px, 1.75vw, 23px); margin-bottom: 4px; }
.at-steps p { font-size: 15px; line-height: 1.65; }
.at-jump { display: flex; align-items: center; flex-wrap: wrap; column-gap: 16px; row-gap: 3px; margin-top: 34px; padding: 12px 16px; background: #e7f0f8; border-radius: 8px; }
.at-jump-label { font-size: 14px; font-weight: 700; }
.at-jump ul { display: grid; flex: 1 1 auto; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 4px; padding: 0; margin: 0; list-style: none; }
.at-jump a { display: block; min-height: 40px; padding: 6px 7px; text-align: center; font-weight: 700; text-decoration: none; }
/* The shared sheet assigns disc markers and margins to every list item. */
.at-steps li, .at-jump li, .at-related li { list-style: none !important; margin: 0; padding: 0; min-width: 0; }
.at-jump li + li { border-left: 1px solid var(--at-rule); }
.at-jump a:hover { background: #d6e9fa; border-radius: 4px; text-decoration: underline; }

.at-section { padding-block: clamp(45px, 6vw, 84px); }
.at-section-intro { margin-bottom: 24px; }
.at-section-intro p { margin-top: 10px; max-width: 66em; }
.at-tint { background: var(--at-tint); }
.at-scenario { display: grid; grid-template-columns: minmax(220px,.84fr) minmax(0,1.64fr); gap: clamp(25px, 4.8vw, 73px); align-items: start; padding: 34px 0; border-top: 1px solid var(--at-rule); }
.at-scenario:last-child { border-bottom: 1px solid var(--at-rule); }
.ai-topic .at-scenario-label { margin-bottom: 8px; color: #00578d; font-weight: 700; }
.at-scenario-summary h3 { margin-bottom: 12px; font-size: clamp(22px, 2.2vw, 30px); }
.at-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 26px; }
.at-facts dt, .at-products dt { font-weight: 700; }
.at-facts dd { margin-top: 4px; font-size: 15px; }
.at-related { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 19px 0 0; list-style: none; }
.at-related a, .at-sources a, .at-products a, .at-catalog a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.at-model-links { gap: 7px; }
.at-model-links a { display: block; border: 1px solid #c2d9eb; border-radius: 4px; padding: 3px 8px; background: #f2f8fd; font-size: 13px; }
.at-algorithm-links { gap: 7px 17px; font-size: 14px; }
.at-algorithm-links + .at-model-links { margin-top: 10px; }
.at-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 36px; }
.at-products > div { padding: 17px 0 19px; border-top: 1px solid var(--at-rule); }
.at-products dt { font-size: 18px; margin-bottom: 4px; }
.at-sources > div { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(0,1.8fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--at-rule); }
.at-sources dt { overflow-wrap: anywhere; font-weight: 700; }
.at-sources small { display: block; margin-top: 2px; color: #455c70; font-size: 13px; }

.at-alg-tools { display: grid; gap: 11px; padding: 19px 22px; border: 1px solid var(--at-rule); border-radius: 8px; background: var(--at-tint); }
.at-alg-tools label { font-weight: 700; }
.at-alg-search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 10px; max-width: 690px; }
.at-alg-search-row input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 13px; border: 1px solid #9ebbd4; border-radius: 5px; background: #fff; color: var(--at-ink); font: inherit; }
.at-alg-search-row input::placeholder { color: #587084; opacity: 1; }
.at-alg-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.at-alg-tools button { min-height: 44px; padding: 6px 12px; border: 1px solid #a4c1d8; border-radius: 5px; background: #fff; color: var(--at-link); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.at-alg-tools button:hover { border-color: var(--at-blue); background: #e9f4ff; }
.at-alg-tools button[aria-pressed="true"] { border-color: #005cae; background: #005cae; color: #fff; }
.ai-topic .at-alg-status { font-size: 14px; }
.at-alg-results { display: grid; gap: 12px; margin-top: 16px; }
.at-alg-group { min-width: 0; border: 1px solid var(--at-rule); border-radius: 8px; background: #fff; }
.at-alg-group > summary,
.at-alg-entry > summary { position: relative; list-style: none; cursor: pointer; }
.at-alg-group > summary::-webkit-details-marker,
.at-alg-entry > summary::-webkit-details-marker { display: none; }
.at-alg-group > summary::after,
.at-alg-entry > summary::after { content: ""; position: absolute; top: calc(50% - 4px); right: 20px; width: 8px; height: 8px; border-right: 2px solid var(--at-link); border-bottom: 2px solid var(--at-link); transform: rotate(45deg); }
.at-alg-group[open] > summary::after,
.at-alg-entry[open] > summary::after { top: calc(50% - 1px); transform: rotate(225deg); }
.at-alg-group > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 9px 44px 9px 22px; border-radius: 7px; background: #edf5fc; }
.at-alg-group-name { font-size: 19px; font-weight: 700; }
.at-alg-group-count { margin-left: auto; color: var(--at-body); white-space: nowrap; font-size: 14px; }
.at-alg-entries { padding-inline: 22px; }
.at-alg-entry + .at-alg-entry { border-top: 1px solid var(--at-rule); }
.at-alg-entry > summary { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.28fr); align-items: baseline; gap: 5px 23px; min-height: 50px; padding: 10px 35px 10px 1px; overflow-wrap: anywhere; }
.at-alg-entry > summary::after { right: 7px; }
.at-alg-entry > summary:hover .at-alg-name,
.at-alg-entry[open] .at-alg-name { color: var(--at-link); text-decoration: underline; text-underline-offset: 3px; }
.at-alg-name { font-weight: 700; }
.at-alg-use { color: var(--at-body); font-size: 14px; }
.at-alg-detail { margin-bottom: 14px; padding: 15px 16px; border-inline-start: 3px solid #74aeda; border-radius: 0 5px 5px 0; background: var(--at-tint); font-size: 14px; }
.at-alg-detail dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 24px; }
.at-alg-detail dt, .at-alg-references span { font-weight: 700; }
.at-alg-references { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 24px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--at-rule); }
.at-alg-references span { display: block; font-size: 13px; }
.at-alg-references a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.at-catalog section + section { margin-top: 35px; }
.at-catalog h2 + p { margin: 8px 0 15px; }
.at-catalog .cards, .at-catalog .cap-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.at-catalog .card { min-width: 0; padding: 19px; border: 1px solid var(--at-rule); border-radius: 8px; background: #fff; }
.at-catalog .card h3, .at-catalog .cap-card h4 { margin: 5px 0; font-size: 19px; }
.at-catalog small { display: block; margin-top: 8px; color: #4b6478; }
.at-catalog .links { margin-top: 12px; }
.at-back { display: inline-block; margin-top: 9px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.at-catalog .eyebrow, .at-catalog .pill, .at-catalog .cap-model { color: #00598b; font-size: 13px; overflow-wrap: anywhere; }
.at-catalog .cap-group { margin-top: 23px; }
.at-catalog .cap-group h3 { margin: 0 0 10px; }
.at-catalog .cap-controls { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 19px; }
.at-catalog .cap-controls button { min-height: 39px; padding: 5px 12px; border: 1px solid #a4c1d8; border-radius: 4px; color: #154563; background: #fff; font: inherit; cursor: pointer; }
.at-catalog .cap-controls button[aria-pressed="true"] { color: #fff; background: #0060ae; border-color: #0060ae; }
.at-catalog dt { font-size: 13px; font-weight: 700; margin-top: 7px; }
.at-catalog dd, .at-catalog .card p { font-size: 14px; }
.at-catalog details { border-top: 1px solid var(--at-rule); margin-top: 12px; padding-top: 8px; }
.at-catalog summary, .at-faq summary { cursor: pointer; font-weight: 700; }
.at-faq details { border-top: 1px solid var(--at-rule); padding-block: 16px; }
.at-faq details p { padding: 8px 0 1px; max-width: 68em; }
.at-closing { padding: 34px 0; background: #eaf4fc; }
.at-closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.at-closing h2 { margin-bottom: 6px; font-size: clamp(25px, 2.75vw, 39px); }
.at-closing .at-actions { margin: 0; flex: 0 0 auto; }

@media (max-width: 1020px) {
    .at-wrap { width: calc(100% - 56px); }
    .at-steps { gap: 15px; }
    .at-catalog .cards, .at-catalog .cap-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .at-jump { align-items: start; flex-direction: column; }
    .at-jump ul { width: 100%; }
}
@media (max-width: 700px) {
    .at-wrap { width: calc(100% - 36px); }
    .at-hero { min-height: 430px; }
    .at-hero-content { padding-block: 43px 65px; }
    .at-hero-image { object-position: 73% center; }
    .at-hero::before { background: linear-gradient(90deg, rgba(4,21,37,.92), rgba(6,24,41,.57)); }
    .at-breadcrumb { gap: 7px; margin-bottom: 17px; }
    .at-hero h1 { max-width: 9.6em; font-size: clamp(34px, 8.4vw, 50px); }
    .ai-topic .at-lead { font-size: 16px; margin-top: 15px; max-width: 24em; }
    .at-actions { gap: 10px; margin-top: 20px; }
    .ai-topic .at-button, .ai-topic .at-hero .at-button { min-width: 0; min-height: 46px; padding: 8px 12px; font-size: 14px; }
    .at-journey { padding: 30px 0 25px; }
    .at-journey h2 { margin-bottom: 22px; text-wrap: balance; }
    .at-steps { grid-template-columns: 1fr; gap: 16px; }
    .at-steps img { width: 27px; height: 27px; }
    .at-steps li > div { padding-left: 10px; }
    .at-jump { margin-top: 24px; }
    .at-jump ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .at-jump li + li { border-left: 0; }
    .at-jump a { font-size: 13px; padding-inline: 2px; min-height: 42px; }
    .at-scenario { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
    .at-facts { grid-template-columns: 1fr; gap: 12px; }
    .at-facts > div { padding-bottom: 9px; border-bottom: 1px solid var(--at-rule); }
    .at-products, .at-sources > div { grid-template-columns: 1fr; gap: 4px; }
    .at-alg-tools { padding: 13px; }
    .at-alg-search-row { column-gap: 6px; }
    .at-alg-search-row input { padding-inline: 9px; }
    .at-alg-tools button { padding-inline: 9px; }
    .at-alg-group > summary { padding-left: 12px; }
    .at-alg-group-name { font-size: 17px; }
    .at-alg-entries { padding-inline: 12px; }
    .at-alg-entry > summary { grid-template-columns: minmax(0,1fr); gap: 1px; padding-block: 9px; }
    .at-alg-detail { padding: 11px 12px; }
    .at-alg-detail dl, .at-alg-references { grid-template-columns: minmax(0,1fr); gap: 8px; }
    .at-catalog .cards, .at-catalog .cap-grid { grid-template-columns: 1fr; }
    .at-closing-inner { flex-wrap: wrap; gap: 15px; }
}
@media (max-width: 360px) {
    .at-wrap { width: calc(100% - 28px); }
}

body.gh-inner.gh-ai-topic { overflow-x: clip; overflow-y: visible; }
.at-split [id] { scroll-margin-top: 72px; }
.at-skip { position: absolute; z-index: 10; top: 8px; left: 12px; padding: 9px 13px; border-radius: 5px; background: #fff; transform: translateY(-160vh); }
.at-skip:focus { transform: none; }
.at-topic-nav { position: sticky; z-index: 4; top: 0; border-block: 1px solid var(--at-rule); background: #fff; }
.at-topic-nav-inner { display: flex; gap: 26px; }
.at-topic-nav a { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 2px 20px 0; border-bottom: 3px solid transparent; color: var(--at-ink); font-weight: 700; text-align: center; text-decoration: none; }
.at-topic-nav a:hover { color: var(--at-link); background: var(--at-tint); }
.at-topic-nav a[aria-current] { border-color: var(--at-blue); background: #edf5fc; color: var(--at-link); }
.at-topic-nav a:focus-visible { outline-offset: -3px; }
.at-legacy-link:not(:target) { display: none; }
.at-legacy-link:target { display: inline-block; margin-block: 10px; padding: 9px 12px; background: var(--at-tint); }
.at-split .at-hero { min-height: 348px; }
.at-split .at-hero-content { padding-block: 30px 48px; }
.at-split .at-hero h1 { font-size: clamp(34px, 4.3vw, 60px); text-wrap: balance; }
.at-split .at-hero .at-lead { margin-top: 15px; }
.at-split .at-hero .at-actions { margin-top: 20px; }
.at-split .at-hero .at-button { min-width: 152px; min-height: 48px; font-size: 16px; }
.at-split .at-breadcrumb { margin-bottom: 14px; }
.at-split .at-closing h2 { font-size: clamp(22px, 2.15vw, 30px); }
.at-brief { border-bottom: 1px solid var(--at-rule); background: var(--at-tint); }
.at-brief-content { padding-block: 21px 32px; }
.at-brief .at-breadcrumb { margin-bottom: 12px; color: var(--at-body); }
.at-brief .at-breadcrumb a { color: var(--at-link); }
.at-brief h1 { font-size: clamp(30px, 3.6vw, 47px); line-height: 1.25; text-wrap: balance; }
.at-brief .at-page-lead { margin-top: 13px; max-width: 64em; font-size: clamp(16px, 1.5vw, 19px); }
.at-split-section { padding-block: clamp(27px, 3.6vw, 53px); }
.at-split-section h2 { margin-bottom: 17px; font-size: clamp(22px, 2.55vw, 34px); }
.at-link-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.at-link-card { position: relative; display: grid; align-content: start; gap: 8px; min-width: 0; padding: 18px; border: 1px solid var(--at-rule); border-radius: 7px; background: var(--at-tint); }
.at-link-card:hover, .at-link-card:focus-within { border-color: #71a8d0; background: #edf5fc; }
.at-link-card h3 { font-size: clamp(18px, 1.8vw, 23px); }
.at-link-card a, .at-inline-links a, .at-text-link { text-decoration: underline; text-underline-offset: 3px; }
.at-link-card a { display: inline-flex; align-items: center; min-height: 34px; }
.at-link-card a::after { position: absolute; inset: 0; content: ""; }
.at-link-card p { line-height: 1.6; }
.at-card-count { margin-top: 4px; color: var(--at-body); font-size: 13px; }
.at-inline-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 15px; margin-top: 20px; padding-block: 11px; border-top: 1px solid var(--at-rule); }
.at-inline-links a { min-height: 32px; }
.at-chip-links { display: flex; flex-wrap: wrap; gap: 7px; }
.at-chip-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 11px; border: 1px solid #bbd1e2; border-radius: 5px; text-decoration: none; font-size: 14px; font-weight: 700; }
.at-chip-links a:hover { background: var(--at-tint); text-decoration: underline; }
.at-chip-links a[aria-current] { border-color: #005aa6; background: #005aa6; color: #fff; }
.at-scenario-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 27px; }
.at-scenario-nav > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.at-scene-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.at-scene-card { min-width: 0; padding: 18px 20px; border: 1px solid var(--at-rule); border-radius: 8px; background: #fff; }
.at-scene-card:target { border-color: #5c9dcc; }
.at-scene-card h3 { margin: 4px 0 8px; font-size: clamp(18px,2vw,25px); }
.at-scene-card p { line-height: 1.7; }
.at-disclosure { margin-top: 12px; border-top: 1px solid var(--at-rule); }
.at-disclosure summary { display: list-item; min-height: 44px; padding-block: 8px; color: var(--at-link); cursor: pointer; font-weight: 700; }
.at-disclosure .at-facts { margin-top: 10px; }
.at-scene-card > .at-related { margin-top: 9px; font-size: 14px; }
.at-alg-search { margin-bottom: 28px; padding: 17px 20px; border: 1px solid var(--at-rule); border-radius: 7px; background: var(--at-tint); }
.at-alg-search h2 { margin-bottom: 7px; font-size: 22px; }
.at-alg-search label { display: block; margin-bottom: 6px; }
.at-alg-search button { min-height: 44px; padding: 6px 12px; border: 1px solid #a4c1d8; border-radius: 5px; background: #fff; color: var(--at-link); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.at-alg-search button:hover { border-color: var(--at-blue); background: #e9f4ff; }
.at-alg-search button:disabled { opacity: .7; cursor: default; }
.at-alg-search .at-alg-status { margin-top: 7px; }
.at-alg-search .at-alg-status:empty { display: none; }
.at-search-results { padding: 0; margin: 8px 0 0; list-style: none; }
.at-search-results li { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) auto; gap: 5px 19px; align-items: baseline; margin: 0; padding: 10px 0; border-top: 1px solid var(--at-rule); list-style: none !important; overflow-wrap: anywhere; }
.at-search-results a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.at-result-use, .at-result-category { color: var(--at-body); font-size: 14px; }
.at-search-results + .at-more-results { margin-top: 9px; }
.at-category-nav { margin-bottom: 25px; }
.at-method-guide { margin-bottom: 24px; }
.at-method-guide dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.at-method-guide dl > div { min-width: 0; padding: 13px 15px; border-inline-start: 3px solid #74aeda; background: var(--at-tint); }
.at-method-guide dt { font-weight: 700; }
.at-method-guide dd { margin-top: 4px; }
.at-category-items { padding: 0 16px; border: 1px solid var(--at-rule); border-radius: 7px; }
.at-category-items .at-alg-entry:target > summary { color: var(--at-link); }
.at-split .at-apply-note { margin-top: 15px; }
.at-apply-note a { text-decoration: underline; text-underline-offset: 3px; }
.at-deploy-steps, .at-deploy-products { margin-top: 16px; }
.at-source-disclosure > summary { color: var(--at-link); }
.at-source-disclosure .at-sources { margin-top: 9px; }

@media (max-width: 700px) {
    .at-split [id] { scroll-margin-top: 62px; }
    .at-topic-nav-inner { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; }
    .at-topic-nav a { min-height: 47px; padding-inline: 2px; font-size: 13px; line-height: 1.35; }
    .at-split .at-hero { min-height: 300px; }
    .at-split .at-hero-content { padding-block: 24px 46px; }
    .at-split .at-hero h1 { font-size: clamp(30px, 8.1vw, 38px); }
    .at-split .at-hero .at-button { min-width: 0; min-height: 44px; font-size: 14px; }
    .at-brief-content { padding-block: 17px 24px; }
    .at-link-grid, .at-scene-grid, .at-method-guide dl { grid-template-columns: minmax(0,1fr); }
    .at-link-grid { gap: 10px; }
    .at-link-card { gap: 3px; padding: 11px 13px; }
    .at-scenario-nav { margin-bottom: 18px; }
    .at-scene-card { padding: 12px 14px; }
    .at-alg-search { padding: 13px; }
    .at-search-results li { grid-template-columns: minmax(0,1fr); }
    .at-category-items { padding-inline: 11px; }
}

@media (max-width: 360px) {
    .at-topic-nav-inner { grid-template-columns: repeat(3,minmax(0,1fr)) minmax(0,1.18fr); }
    .at-split .at-hero h1 { font-size: 28px; }
}

.at-compact .at-topic-nav { border-top: 0; box-shadow: 0 2px 5px rgba(16, 40, 64, .07); }
.at-compact .at-topic-nav-inner { gap: 10px; }
.at-compact .at-hero-content { padding-block: 28px 43px; }
.at-hero-search { width: min(410px, 100%); margin-top: 17px; }
.at-hero-search label { display: block; margin-bottom: 6px; color: #fff; font-size: 14px; font-weight: 700; }
.at-compact .at-hero-search .at-button { min-width: 78px; min-height: 44px; padding: 7px 14px; cursor: pointer; }
.at-center-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: clamp(24px, 5vw, 74px); }
.at-center-lead { max-width: 39em; }
.at-center-summary .at-button { margin-top: 15px; min-height: 44px; padding: 7px 14px; }
.at-center-steps { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--at-rule); }
.at-center-steps li { padding-block: 10px; border-bottom: 1px solid var(--at-rule); }
.at-center-steps li > div { border: 0; padding-left: 0; }
.at-center-steps h3 { font-size: clamp(17px, 1.65vw, 21px); }
.at-center-steps img { width: 27px; height: 27px; }
.at-center .at-inline-links { margin-top: 14px; }
.at-topics-context { display: flex; flex-wrap: wrap; align-items: center; gap: 0 15px; padding: 3px 12px; background: var(--at-tint); }
.at-topics-context span { color: var(--at-body); font-size: 14px; font-weight: 700; }
.at-topics-context a, .at-guide-application a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.at-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; margin-bottom: 15px; }
.at-section-heading h2 { margin: 0; }
.at-section-heading a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.at-featured-card { background: #fff; }
.at-featured-category { color: var(--at-body); font-size: 13px; }
.at-optional-resources { display: grid; gap: 9px; }
.at-optional-resources > h2 { margin-bottom: 4px; }
.at-resource { min-width: 0; border: 1px solid var(--at-rule); border-radius: 7px; background: #fff; }
.at-resource > summary { min-height: 47px; padding: 9px 15px; color: var(--at-link); cursor: pointer; font-weight: 700; }
.at-resource-body { padding: 13px 16px 19px; border-top: 1px solid var(--at-rule); }
.at-resource-body h2 { margin-bottom: 10px; font-size: clamp(20px, 2vw, 26px); }
.at-resource-body .at-faq { margin-top: 16px; }
.at-deployment-checks { margin: 0 0 21px; padding-left: 22px; }
.at-deployment-checks li { list-style: decimal; margin-bottom: 5px; }
.at-scene-row { min-width: 0; border: 1px solid var(--at-rule); border-radius: 6px; background: var(--at-tint); }
.at-scene-row > summary { min-height: 46px; padding: 9px 12px; color: var(--at-ink); cursor: pointer; }
.at-scene-label { margin-right: 6px; color: var(--at-link); font-weight: 700; }
.at-scene-body { padding: 0 12px 14px; }
.at-scene-body .at-facts { margin-top: 13px; }
.at-compact-groups .at-compact-group-intro { display: grid; gap: 2px; padding-block: 4px; }
.at-compact-group-body { padding-block: 17px; }
.at-compact-group-body .at-method-guide h3 { margin: 0 0 6px; font-size: clamp(19px, 2vw, 24px); }
.at-compact-group-body .at-method-guide dl { margin-top: 10px; }
.at-method-guide .at-guide-application { margin-top: 5px; }
.at-directory-search label { margin: 0; }

@media (max-width: 700px) {
    .at-compact .at-topic-nav-inner { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
    .at-compact .at-topic-nav a { font-size: 14px; }
    .at-compact .at-hero-content { padding-block: 20px 44px; }
    .at-compact .at-hero-search .at-button { min-width: 57px; }
    .at-compact .at-brief h1 { word-break: keep-all; }
    .at-center-layout { grid-template-columns: minmax(0, 1fr); gap: 17px; }
    .at-center .at-inline-links { margin-top: 11px; border-top: 0; padding-block: 0; }
    .at-topics-context span { flex-basis: 100%; padding-top: 5px; }
    #common-algorithms .at-link-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .at-featured-card { padding-inline: 10px; overflow-wrap: anywhere; }
    .at-featured-card h3 { font-size: 16px; line-height: 1.4; }
    .at-featured-card a { display: block; min-height: 27px; text-wrap: balance; }
    .at-featured-card p { font-size: 14px; }
    .at-resource-body { padding: 11px 12px 15px; }
}
