/* BlabTab 0.10.156 — editorial category directory and category archive.
   Loaded only for these two views, INSTEAD of the previous Concept 03 stack.
   Shared tokens, header, footer, topics and article cards remain unchanged. */
.ed-categories-page {background:var(--ed-bg);overflow-wrap:anywhere}
.ed-categories-page :where(section[id]) {scroll-margin-top:20px}
.ed-categories-page h1 {font-size:clamp(36px,4.4vw,58px);line-height:1.09;letter-spacing:-.045em;font-weight:780}
.ed-categories-page h2 {font-size:clamp(25px,2.65vw,34px);line-height:1.22;letter-spacing:-.038em}
.ed-categories-page .ed-kicker {margin-bottom:12px}
.ed-categories-page .ed-categories-intro {padding:60px 0 64px;text-align:center;background:linear-gradient(to bottom,transparent 0%,transparent 56%,var(--ed-bg) 100%),linear-gradient(130deg,var(--ed-accent-soft),var(--ed-surface) 48%,var(--ed-bg))}
.ed-categories-page .ed-categories-intro h1 {max-width:22ch;margin-inline:auto}
.ed-categories-page .ed-categories-intro h1 span {color:var(--ed-accent)}
.ed-categories-page .ed-categories-lead {max-width:62ch;margin:20px auto 26px;font-size:17px;line-height:1.75}
.ed-categories-page .ed-categories-summary {display:flex;flex-wrap:wrap;justify-content:center;gap:18px 36px;margin:26px auto 24px}
.ed-categories-page .ed-categories-summary>div {display:flex;flex-direction:column-reverse;gap:3px;min-width:110px;padding-inline:8px}
.ed-categories-page .ed-categories-summary dd {font-size:24px;font-weight:750;line-height:1.3;color:var(--ed-ink)}
.ed-categories-page .ed-categories-summary dt {font-size:12px;line-height:1.5;color:var(--ed-muted)}
.ed-categories-page .ed-categories-jumps {justify-content:center;gap:10px 14px}
.ed-categories-page .ed-categories-jumps .ed-text-link {padding-inline:10px}
.ed-categories-page .ed-category-group {padding:48px 0 12px}
.ed-categories-page .ed-category-group--open {padding-top:52px}
.ed-categories-page .ed-category-section-head {display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:24px}
.ed-categories-page .ed-category-section-head>div {min-width:0}
.ed-categories-page .ed-category-section-head p:not(.ed-kicker) {max-width:70ch;font-size:14px;line-height:1.7;margin-top:10px}
.ed-categories-page .ed-category-section-head>.ed-text-link {flex-shrink:0}
.ed-categories-page .ed-category-count {align-self:center;flex-shrink:0;max-width:100%;padding:8px 14px;background:var(--ed-surface);border:1px solid var(--ed-line);border-radius:999px;font-size:12px;line-height:1.45;color:var(--ed-muted)}
.ed-categories-page .ed-category-topic-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
/* Reuse the homepage topic component. Keep its full description visible on mobile. */
.ed-categories-page .ed-category-topic-grid .ed-topic {height:100%;padding:22px 18px;gap:12px;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}
.ed-categories-page .ed-category-topic-grid .ed-topic:hover {box-shadow:var(--ed-shadow-hover)}
.ed-categories-page .ed-category-topic-grid .ed-topic-icon {width:42px;flex-basis:42px;height:46px}
.ed-categories-page .ed-category-topic-grid .ed-topic h3 {font-size:17px;line-height:1.3;margin:0 0 7px;letter-spacing:-.025em}
.ed-categories-page .ed-category-topic-grid .ed-topic-copy>span {font-size:12px;line-height:1.55}
.ed-categories-page .ed-category-topic-grid .ed-topic-description {display:block;margin-top:9px}
.ed-categories-page .ed-category-group--open .ed-topic {box-shadow:none}
.ed-categories-page .ed-category-group--open .ed-topic-copy>span:first-of-type {color:var(--ed-subtle)}
.ed-categories-page .ed-category-outro {padding:48px 0 54px}
.ed-categories-page .ed-category-join {display:flex;justify-content:space-between;align-items:center;gap:32px;padding:34px 38px;background:linear-gradient(110deg,var(--ed-accent-soft),var(--ed-surface) 74%);border:1px solid var(--ed-line);border-radius:24px}
.ed-categories-page .ed-category-join>div {min-width:0}
.ed-categories-page .ed-category-join h2 {font-size:clamp(25px,2.25vw,30px)}
.ed-categories-page .ed-category-join p:not(.ed-kicker) {max-width:67ch;font-size:14px;line-height:1.7;margin-top:10px}
.ed-categories-page .ed-category-join>.ed-button {flex-shrink:0}
.ed-categories-page .ed-category-empty {padding:38px;background:var(--ed-surface);text-align:center}
.ed-categories-page .ed-category-empty>p {margin-inline:auto;line-height:1.8}
.ed-categories-page .ed-category-empty>.ed-button {margin-top:22px}
.ed-categories-page .ed-category-empty h3 {font-size:25px;line-height:1.3}
.ed-categories-page .ed-category-empty .ed-actions {margin-top:22px;justify-content:center}
.ed-categories-page .ed-category-empty-icon {display:grid;place-items:center;width:56px;height:56px;margin:0 auto 18px;border-radius:16px;background:var(--ed-accent-soft);color:var(--ed-accent);font-size:24px;font-weight:750}
/* Archive: category identity, full-width article grid, and related-topic discovery. */
.ed-categories-page .ed-category-hero-section {padding:22px 0 0;background:var(--ed-surface)}
.ed-categories-page .ed-category-breadcrumb {display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:18px;color:var(--ed-subtle);font-size:12px;line-height:1.6}
.ed-categories-page .ed-category-breadcrumb .ed-text-link {font-size:13px}
.ed-categories-page .ed-category-breadcrumb>span:last-child {min-width:0;max-width:100%}
.ed-categories-page .ed-category-hero {position:relative;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,.7fr);gap:40px;align-items:center;padding:44px 48px;border:1px solid var(--ed-line);border-radius:26px;background:linear-gradient(115deg,var(--ed-accent-soft),var(--ed-surface-soft) 55%,var(--ed-mint))}
.ed-categories-page .ed-category-hero-copy {min-width:0;position:relative;z-index:1}
.ed-categories-page .ed-category-hero-labels {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:18px}
.ed-categories-page .ed-category-hero-labels .ed-kicker {margin:0;font-size:11px}
.ed-categories-page .ed-category-state {display:inline-flex;align-items:center;gap:6px;min-height:27px;padding:4px 10px;border:1px solid var(--ed-line);border-radius:999px;background:var(--ed-surface);font-size:11px;font-weight:650;line-height:1.5;color:var(--ed-note-success)}
.ed-categories-page .ed-category-state::before {content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}
.ed-categories-page .ed-category-state--open {color:var(--ed-muted)}
.ed-categories-page .ed-category-description {max-width:65ch;margin-top:18px;font-size:17px;line-height:1.8;white-space:pre-line}
.ed-categories-page .ed-category-published-count {display:flex;align-items:baseline;gap:6px;margin:18px 0 20px;color:var(--ed-muted);font-size:13px}
.ed-categories-page .ed-category-published-count strong {font-size:18px;color:var(--ed-ink);font-weight:750}
.ed-categories-page .ed-category-hero-art {position:relative;display:grid;place-items:center;min-width:0;height:230px;isolation:isolate;overflow:hidden}
.ed-categories-page .ed-category-art-book {position:relative;display:grid;place-items:center;width:172px;height:172px;border-radius:34px;background:var(--ed-surface);border:1px solid var(--ed-line);color:var(--ed-accent);box-shadow:var(--ed-shadow);transform:rotate(-6deg)}
.ed-categories-page .ed-category-art-ring {position:absolute;width:216px;height:216px;border:1px solid var(--ed-line-strong);border-radius:50%;opacity:.65}
.ed-categories-page .ed-category-art-ring--two {width:184px;height:184px;right:10px;bottom:12px;background:var(--ed-pink);border:0;z-index:-1;opacity:.85}
.ed-categories-page .ed-category-archive {padding:46px 0 20px}
.ed-categories-page .ed-category-article-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.ed-categories-page .ed-category-article-grid .ed-story {height:100%}
.ed-categories-page .ed-category-article-grid .ed-story-media {aspect-ratio:1.8}
.ed-categories-page .ed-story-media:focus-visible {outline-offset:-5px}
.ed-categories-page .ed-story a.ed-tag {min-height:28px;align-items:center}
.ed-categories-page .ed-category-pagination:has(.pagination) {margin-top:28px}
.ed-categories-page .pagination {display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:22px;border-top:1px solid var(--ed-line);font-size:13px;color:var(--ed-muted)}
.ed-categories-page .pagination>div {display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.ed-categories-page .pagination a {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:1px solid var(--ed-line);background:var(--ed-surface);color:var(--ed-ink);font-size:13px;font-weight:650;border-radius:999px}
.ed-categories-page .pagination a:hover {background:var(--ed-accent-soft);border-color:var(--ed-line-strong)}
.ed-categories-page .ed-category-related {padding:30px 0 8px}
.ed-categories-page .ed-category-related-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
.ed-categories-page .ed-category-no-related {padding:22px 26px;border:1px dashed var(--ed-line-strong);border-radius:18px;font-size:14px;background:var(--ed-surface)}
.ed-categories-page .ed-category-no-related .ed-text-link {font-size:14px}
.ed-categories-page .ed-category-write-actions {display:flex;align-items:flex-start;flex-direction:column;gap:8px;flex-shrink:0}
.ed-categories-page .ed-category-write-actions p {font-size:12px;max-width:32ch;margin:0}
.ed-categories-page .ed-category-write-actions p a {color:var(--ed-accent);text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:28px}
@media(max-width:1100px){
    .ed-categories-page .ed-category-topic-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
    .ed-categories-page .ed-category-related-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
    .ed-categories-page .ed-category-hero {padding:34px;gap:22px;grid-template-columns:minmax(0,1.7fr) minmax(0,.7fr)}
    .ed-categories-page .ed-category-art-book {width:145px;height:145px;border-radius:28px}
    .ed-categories-page .ed-category-art-book svg {width:92px;height:92px}
    .ed-categories-page .ed-category-art-ring {width:182px;height:182px}
    .ed-categories-page .ed-category-art-ring--two {width:150px;height:150px}
}
@media(max-width:900px){
    .ed-categories-page .ed-category-topic-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
    .ed-categories-page .ed-category-article-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
    .ed-categories-page .ed-category-hero {grid-template-columns:minmax(0,1fr);padding:32px}
    .ed-categories-page .ed-category-hero-art {display:none}
    .ed-categories-page .ed-category-join {align-items:flex-start;flex-direction:column;gap:22px}
    .ed-categories-page .ed-category-write-actions {flex-shrink:1}
}
@media(max-width:600px){
    .ed-categories-page h1 {font-size:clamp(34px,8.8vw,44px)}
    .ed-categories-page h2 {font-size:clamp(24px,6.6vw,30px)}
    .ed-categories-page .ed-categories-intro {padding:40px 0 46px;text-align:left}
    .ed-categories-page .ed-categories-intro h1 {margin:0}
    .ed-categories-page .ed-categories-lead {margin:16px 0 22px;font-size:15px}
    .ed-categories-page .ed-categories-summary {justify-content:flex-start;gap:14px 20px;margin:22px 0}
    .ed-categories-page .ed-categories-summary>div {min-width:0;padding:0;flex:1}
    .ed-categories-page .ed-categories-summary dd {font-size:22px}
    .ed-categories-page .ed-categories-summary dt {font-size:11px;max-width:12ch}
    .ed-categories-page .ed-categories-jumps {justify-content:flex-start;gap:10px}
    .ed-categories-page .ed-categories-jumps .ed-button {font-size:12px;padding-inline:14px}
    .ed-categories-page .ed-categories-jumps .ed-text-link {padding-inline:0;font-size:13px}
    .ed-categories-page .ed-category-group {padding-top:34px}
    .ed-categories-page .ed-category-section-head {align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:20px}
    .ed-categories-page .ed-category-section-head .ed-category-count {align-self:flex-start}
    .ed-categories-page .ed-category-section-head p:not(.ed-kicker) {font-size:14px}
    .ed-categories-page .ed-category-topic-grid,.ed-categories-page .ed-category-article-grid {grid-template-columns:minmax(0,1fr);gap:16px}
    .ed-categories-page .ed-category-topic-grid .ed-topic {padding:20px;gap:14px}
    .ed-categories-page .ed-category-topic-grid .ed-topic h3 {font-size:18px}
    .ed-categories-page .ed-category-topic-grid .ed-topic-description {font-size:13px;line-height:1.6}
    .ed-categories-page .ed-category-hero-section {padding-top:10px}
    .ed-categories-page .ed-category-breadcrumb {margin-bottom:12px;gap:8px}
    .ed-categories-page .ed-category-hero {padding:26px 22px;border-radius:22px}
    .ed-categories-page .ed-category-hero-labels {margin-bottom:16px}
    .ed-categories-page .ed-category-description {font-size:15px;margin-top:16px}
    .ed-categories-page .ed-category-hero .ed-button {font-size:13px;padding-inline:15px}
    .ed-categories-page .ed-category-archive {padding:32px 0 12px}
    .ed-categories-page .ed-category-empty {padding:28px 22px}
    .ed-categories-page .ed-category-empty h3 {font-size:23px}
    .ed-categories-page .ed-category-empty p {font-size:14px}
    .ed-categories-page .pagination {flex-direction:column;align-items:flex-start;gap:14px}
    .ed-categories-page .pagination>div {gap:10px}
    .ed-categories-page .ed-category-related {padding-top:26px}
    .ed-categories-page .ed-category-outro {padding:30px 0 40px}
    .ed-categories-page .ed-category-join {padding:26px 24px}
}
@media(prefers-reduced-motion:reduce){.ed-categories-page * {transition:none!important}}
/* v0.10.162 — category lead feature + 12-card desktop archive grid */
.ed-categories-page .ed-category-feature{margin:0 0 18px}
.ed-categories-page .ed-category-feature .ed-story--hero{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1.36fr);min-height:318px;overflow:hidden;border-radius:20px;box-shadow:var(--ed-shadow)}
.ed-categories-page .ed-category-feature .ed-story--hero .ed-story-media{height:100%;min-height:318px;aspect-ratio:auto;border-radius:0}
.ed-categories-page .ed-category-feature .ed-story--hero .ed-story-body{justify-content:center;padding:30px 32px 26px}
.ed-categories-page .ed-category-feature .ed-story--hero h2{font-size:clamp(27px,2.45vw,36px);line-height:1.1;margin:12px 0 10px}
.ed-categories-page .ed-category-feature .ed-story--hero .ed-excerpt{max-width:64ch;margin-bottom:18px;font-size:15px;line-height:1.68}
.ed-categories-page .ed-category-feature .ed-story--hero .ed-story-footer{padding-top:4px}
.ed-categories-page .ed-category-feature .ed-story--hero .ed-avatar--small{width:36px;height:36px}
.ed-categories-page .ed-category-feature .ed-story--hero .ed-byline{font-size:12px}
.ed-categories-page .ed-category-article-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ed-categories-page .ed-category-article-grid .ed-story-body{padding:17px 17px 15px}
.ed-categories-page .ed-category-article-grid .ed-story h3{font-size:18px;line-height:1.22;margin:9px 0 7px}
.ed-categories-page .ed-category-article-grid .ed-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin-bottom:13px;font-size:13px;line-height:1.55}
.ed-categories-page .ed-category-article-grid .ed-story-media{aspect-ratio:16/9}
.ed-categories-page .ed-category-pagination:has(.pagination){margin-top:32px}

@media(max-width:900px){
    .ed-categories-page .ed-category-article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
    .ed-categories-page .ed-category-feature .ed-story--hero{grid-template-columns:minmax(0,1fr);min-height:0}
    .ed-categories-page .ed-category-feature .ed-story--hero .ed-story-media{min-height:0;aspect-ratio:1.9}
    .ed-categories-page .ed-category-feature .ed-story--hero .ed-story-body{padding:24px}
    .ed-categories-page .ed-category-feature .ed-story--hero h2{font-size:clamp(25px,4.4vw,32px)}
}
@media(max-width:600px){
    .ed-categories-page .ed-category-article-grid{grid-template-columns:minmax(0,1fr);gap:16px}
    .ed-categories-page .ed-category-feature{margin-bottom:16px}
    .ed-categories-page .ed-category-feature .ed-story--hero{border-radius:var(--ed-radius)}
    .ed-categories-page .ed-category-feature .ed-story--hero .ed-story-body{padding:20px 18px 18px}
    .ed-categories-page .ed-category-feature .ed-story--hero h2{font-size:25px}
    .ed-categories-page .ed-category-feature .ed-story--hero .ed-excerpt{font-size:14px}
}

/* v0.10.174 — seamless hero fade on public detail routes. */
.ed-categories-page.ed-category-detail .ed-category-hero-section{background:linear-gradient(to bottom,transparent 0%,transparent 56%,var(--ed-bg) 100%),linear-gradient(120deg,var(--ed-accent-soft),var(--ed-surface) 55%,var(--ed-bg))}
:root[data-theme="dark"] .ed-categories-page.ed-category-detail .ed-category-hero-section{background:linear-gradient(to bottom,transparent 0%,transparent 56%,var(--ed-bg) 100%),linear-gradient(120deg,color-mix(in srgb,var(--ed-accent-soft) 78%,var(--ed-bg)),var(--ed-surface) 55%,var(--ed-bg))}
@media(prefers-color-scheme:dark){:root[data-theme="system"] .ed-categories-page.ed-category-detail .ed-category-hero-section{background:linear-gradient(to bottom,transparent 0%,transparent 56%,var(--ed-bg) 100%),linear-gradient(120deg,color-mix(in srgb,var(--ed-accent-soft) 78%,var(--ed-bg)),var(--ed-surface) 55%,var(--ed-bg))}}
