.ed-page {
    --ed-text: #f4f6fa;
    --ed-muted: #abb5c5;
    --ed-blue: #95c8ff;
    --ed-line: #2b3038;
    --ed-panel: #181b21;
    color: var(--ed-text);
    padding-block: 1px clamp(34px, 5vw, 76px);
    overflow-wrap: anywhere;
}
.ed-page *, .ed-page *::before, .ed-page *::after { box-sizing: border-box; }
.ed-page :where(h1, h2, h3, p, figure, ul) { margin: 0; }
.ed-page :where(a) { color: inherit; text-decoration: none; }
.ed-page a:focus-visible { outline: 2px solid var(--ed-blue); outline-offset: 4px; }
.ed-page svg { width: 18px; height: 18px; flex: none; filter: none; }
.ed-page .ed-crumbs {
    display: flex;
    gap: 11px;
    align-items: center;
    margin: 4px 0 24px;
    color: var(--ed-muted);
    font-size: 13px;
}
.ed-crumbs :where(a:hover, [aria-current]) { color: var(--ed-text); }
.ed-list-heading, .ed-detail-heading { margin-bottom: 26px; }
.ed-page h1 {
    font-size: clamp(34px, 4.1vw, 60px);
    font-weight: 750;
    letter-spacing: -.032em;
    line-height: 1.12;
}
.ed-page .ed-deck {
    margin-top: 13px;
    max-width: 70ch;
    color: var(--ed-muted);
    font-size: clamp(15px, 1.36vw, 18px);
    line-height: 1.65;
}
.ed-feature {
    display: grid;
    grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
    grid-template-areas: "copy art";
    align-items: center;
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: 15px;
    background: #1a1a1a;
}
.ed-feature-art { grid-area: art; padding: clamp(7px, .85vw, 14px) clamp(7px, .85vw, 14px) clamp(7px, .85vw, 14px) 0; }
.ed-feature-art img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 17px;
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 10px), transparent),
                linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 10px), transparent);
    mask-composite: intersect;
}
.ed-feature-copy { grid-area: copy; padding: clamp(20px, 3vw, 46px) clamp(14px, 2vw, 29px) clamp(20px, 3vw, 46px) clamp(20px, 3vw, 46px); }
.ed-feature-copy h2 { font-size: clamp(25px, 2.65vw, 43px); letter-spacing: -.034em; line-height: 1.16; text-wrap: balance; }
.ed-feature-copy > p:not(.ed-tags) { margin-top: 15px; color: #c3ccd9; font-size: clamp(14px, 1.35vw, 17px); line-height: 1.65; }
.ed-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ed-muted); font-size: 12px; line-height: 1.3; }
.ed-feature-copy .ed-tags, .ed-detail-heading .ed-tags { margin-bottom: 14px; }
.ed-feature-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid #444;
    border-radius: 999px;
    color: #f0f1f4;
    background: #242424;
    font-weight: 650;
}
.ed-feature-label svg { width: 15px; height: 15px; color: #a8ccff; }
.ed-engine-mark { display: inline-flex; align-items: center; }
.ed-page .ed-engine-mark .engine-logo {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.ed-feature .ed-tags { gap: 12px; }
.ed-page .ed-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #86bfff;
    border-radius: 7px;
    background: #99c9ff;
    color: #102137;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}
.ed-page .ed-button:hover { background: #c2e0ff; }
.ed-library { margin-top: clamp(30px, 4.2vw, 58px); scroll-margin-top: 20px; }
.ed-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    margin: 0 0 16px;
}
.ed-section-head h2 { font-size: clamp(23px, 2.5vw, 32px); letter-spacing: -.018em; line-height: 1.2; }
.ed-page .ed-tabs { flex-wrap: wrap; }
.ed-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.ed-page .ed-pagination { gap: 8px; margin: 26px 0 12px; }
.ed-page .ed-pagination a { gap: 5px; min-width: 44px; min-height: 44px; }
.ed-page .ed-pagination svg { width: 14px; height: 14px; }
.ed-detail {
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.ed-detail-heading h1 {
    max-width: 30ch;
    font-size: clamp(30px, 3.8vw, 54px);
    line-height: 1.18;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.ed-detail-heading .ed-deck { color: #bbc5d3; text-wrap: balance; }
.ed-detail-grid.asset-detail { grid-template-columns: minmax(0, 1fr) minmax(236px, 30%); gap: 26px clamp(18px, 2.6vw, 36px); }
.ed-detail-media { grid-column: 1; grid-row: 1; }
.ed-detail-media img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #343f50;
    border-radius: 12px;
    background: var(--ed-panel);
}
.ed-detail-media figcaption { margin-top: 10px; color: var(--ed-muted); font-size: 12px; line-height: 1.5; }
.ed-detail-grid > .ed-aside { grid-column: 2; grid-row: 1 / span 2; }
.ed-page .ed-toc { display: block; margin-top: 25px; border-top: 1px solid #424242; padding-top: 16px; }
.ed-toc h3 { margin: 0 0 5px; color: #f0f1f3; font-size: 14px; font-weight: 650; }
.ed-toc ul { list-style: none; padding: 0; }
.ed-toc li + li { border-top: 1px solid #383838; }
.ed-toc a { display: flex; align-items: center; min-height: 44px; padding: 5px 0; font-size: 14px; color: #d0d9e7; }
.ed-toc a:hover { color: var(--ed-blue); }
.ed-detail-grid > .ed-prose { grid-column: 1; grid-row: 2; display: block; }
.ed-detail-grid .ed-prose .resource-section { max-width: 66ch; padding-block: 24px; }
.ed-detail-grid .ed-prose .resource-section:first-child { padding-top: 0; }
.ed-detail-grid .ed-prose .resource-section h2 {
    margin-bottom: 12px;
    font-size: clamp(21px, 2.15vw, 28px);
    font-weight: 700;
    letter-spacing: -.012em;
    text-wrap: pretty;
}
.ed-detail-grid .ed-prose .resource-prose { color: #d1dae6; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.9; }
.ed-prose .ed-inline-figure { margin-top: 18px; }
.ed-inline-figure a { display: block; border-radius: 10px; }
.ed-inline-figure img { display: block; width: 100%; height: auto; border: 1px solid #343f50; border-radius: 10px; background: var(--ed-panel); }
.ed-inline-figure figcaption { margin-top: 9px; color: var(--ed-muted); font-size: 13px; line-height: 1.45; }
.ed-page .ed-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-block: 14px 3px;
}
.ed-article-tags > span { flex-basis: 100%; margin-bottom: 3px; font-size: 13px; font-weight: 650; color: var(--ed-muted); }
.ed-article-tags a {
    border: 1px solid #394253;
    border-radius: 999px;
    padding: 7px 11px;
    color: #dee7f4;
    font-size: 13px;
    line-height: 1.35;
}
.ed-article-tags a:is(:hover, :focus-visible) { border-color: #8aabe0; color: #fff; }
.ed-import { margin: 22px 0 28px; padding-bottom: 18px; border-bottom: 1px solid #353535; }
.ed-import form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 18px; }
.ed-import label { flex-basis: 100%; font-weight: 650; }
.ed-import input { max-width: 100%; min-width: 0; }
.ed-import [role="alert"] { color: #ffb0a9; }
.ed-import-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 12px; }
.ed-import-result > div { padding: 14px; border: 1px solid #353535; border-radius: 9px; overflow-wrap: anywhere; }
.ed-import-result dt { margin-bottom: 6px; color: #adb9cc; font-weight: 650; }
.ed-import-result dd { margin: 0; line-height: 1.65; }
.ed-related { padding-top: 24px; border-top: 1px solid var(--ed-line); }
.ed-section-head.section-heading h2 { font-size: clamp(23px, 2.5vw, 32px); font-weight: 700; }
.ed-missing p { margin: 15px 0; color: var(--ed-muted); }
.ed-fallback-nav { margin-bottom: 18px; }
.ed-fallback-nav a[aria-current] { color: #a9d0ff; }
@media (max-width: 800px) {
    .ed-page .ed-crumbs { margin-bottom: 16px; }
    .ed-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ed-detail-grid.asset-detail { grid-template-columns: minmax(0, 1fr); gap: 23px; }
    .ed-detail-grid > .ed-aside { grid-column: 1; grid-row: 2; }
    .ed-detail-grid > .ed-prose { grid-row: 3; }
}
@media (max-width: 600px) {
    .ed-feature { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "copy"; align-items: stretch; }
    .ed-feature-art { padding: 7px 7px 0; }
    .ed-feature-copy { padding: 14px 18px 20px; }
}
@media (max-width: 500px) {
    .ed-list-heading, .ed-detail-heading { margin-bottom: 20px; }
    .ed-feature { border-radius: 12px; }
    .ed-feature-copy > p:not(.ed-tags) { margin-top: 9px; }
    .ed-feature-copy h2 { font-size: clamp(25px, 6vw, 32px); }
    .ed-card-grid { grid-template-columns: minmax(0, 1fr); }
    .ed-preview-articles .floating-support:not([open]) { right: calc(8px + env(safe-area-inset-right, 0px)); }
    .ed-preview-articles .floating-support .gita-support-pyramid { transform: rotateX(-20deg); }
}
