/* Astro integration: original content, native disclosures and shared search markup. */
.kb-layout > *, .home-grid > *, .featured-grid > *, .stat-pair > * { min-width:0; }
.featured-body { flex:1; }
.featured-title, .doc-title, .article-title, .intro h1 { word-break:keep-all; overflow-wrap:anywhere; }
.cover-title { min-width:0; max-height:none; flex-shrink:0; word-break:keep-all; white-space:normal; overflow-wrap:anywhere; }
.cover-top, .cover-keys { flex-shrink:0; }
.cover-keys { min-width:0; }
.doc-cover, .cover { min-width:0; }
.filter-link[aria-current="page"] { border-color:var(--line-strong); background:var(--yellow); color:#020a0f; }
.filter-link[aria-current="page"] .n { color:#020a0f; }
.kb-sidebar .kb-navigation { max-height:calc(100dvh - 130px); overflow-y:auto; scrollbar-width:thin; }
.kb-search[hidden] { display:none; }
#data-status { color:var(--muted); }
#list-title { scroll-margin-top:calc(var(--header-h) + 20px); }
.pagination button { font:inherit; cursor:pointer; background:var(--paper); }
.pagination button:disabled { opacity:.45; cursor:default; }
.document-image img { display:block; max-width:100%; height:auto; border:1px solid var(--line); }
.profile-links { display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; }
.profile-links a { color:var(--purple); font-size:12px; min-height:44px; display:inline-flex; align-items:center; }
.category-menu-panel a { overflow-wrap:anywhere; }
.category-bar-inner { flex-wrap:nowrap; gap:12px; }
.category-bar-label { min-width:0; }
.category-bar-link { flex-shrink:0; }
.category-menu { flex-shrink:0; }
.article-shell:not(:has(.article-toc)) { grid-template-columns:minmax(0,var(--article-max)); }
.record-card:not(.field-entry):not(.career-entry) { display:block; padding:24px 0; border-bottom:1px solid var(--line); text-decoration:none; }
.record-card:not(.field-entry):not(.career-entry) h2 { font-size:21px; line-height:1.45; overflow-wrap:anywhere; }
.record-card:not(.field-entry):not(.career-entry) p { color:var(--muted); margin-top:8px; font-size:14px; }
.record-meta { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:8px; color:var(--faint); font-size:11px; }
.current-badge { color:var(--purple); background:var(--purple-soft); padding:2px 6px; }
.summary-block .record-card:not(.field-entry):not(.career-entry) { margin-top:12px; }
.summary-block .record-card:not(.field-entry):not(.career-entry) h2 { font-size:16px; }
.summary-block .record-card:not(.field-entry):not(.career-entry) p { font-size:12px; }
@media(max-width:900px) {
  .kb-mobile .kb-navigation { padding:0 14px 8px; }
  .kb-mobile .kb-navigation .kb-nav { padding:0; }
  .kb-nav a { min-height:44px; align-items:center; }
}
@media(max-width:720px) {
  .category-bar-label { font-size:11px; }
  .category-bar-link { font-size:11px; }
  .category-menu { margin-left:auto; }
  .category-menu-panel { right:0; left:auto; width:min(460px,calc(100vw - 40px)); }
  .category-menu summary { min-height:44px; }
}

.featured-grid > .empty-panel { grid-column:1/-1; }
.article-body .code .k { color:#c5a9ff; }
.article-body .code .s { color:#c2d9a7; }
.article-body .code .c { color:var(--code-muted); }

.field-list, .career-list, .field-detail-main, .career-detail-main { min-width:0; }
.field-list > .empty-panel, .career-list > .empty-panel { margin-top:0; }
.field-title, .career-company-name, .field-detail-copy h1 { overflow-wrap:anywhere; }
.field-entry, .career-entry { color:inherit; }
.field-detail-main .article-body, .career-detail-main .article-body { margin-top:28px; }
.field-section + .project-sections { margin-top:28px; }
.field-detail-side .related-records, .career-detail-side .related-records { margin:0; padding:0; border:0; }
@media(max-width:720px) {
  .field-stat--range .field-stat-num, .career-stat--range .career-stat-num { overflow-wrap:anywhere; }
}

.field-layout.is-empty, .career-layout.is-empty { grid-template-columns:minmax(0,1fr); }

/* Four-card groups progressively enhance into a horizontal carousel. */
.featured-carousel { min-width:0; }
.featured-carousel-viewport { display:grid; gap:16px; min-width:0; }
.featured-carousel-page { min-width:0; }
.featured-carousel.is-enhanced .featured-carousel-viewport {
  position:relative; display:flex; align-items:stretch; gap:0;
  overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain; scrollbar-width:none; padding-block:3px;
}
.featured-carousel.is-enhanced .featured-carousel-viewport::-webkit-scrollbar { display:none; }
.featured-carousel.is-enhanced .featured-carousel-page { flex:0 0 100%; width:100%; align-content:start; scroll-snap-align:start; scroll-snap-stop:always; }
.featured-carousel.is-dragging .featured-carousel-viewport { scroll-snap-type:none; cursor:grabbing; user-select:none; }
.featured-carousel.is-dragging .featured-card { cursor:grabbing; }
.featured-carousel .featured-card:focus-visible { outline-offset:-3px; }
.featured-carousel-controls { display:flex; align-items:center; gap:8px; padding-top:14px; margin-top:14px; border-top:1px solid var(--line); }
.featured-carousel-controls button { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-height:44px; min-width:44px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); color:var(--muted); font:11px var(--mono); cursor:pointer; transition:background-color var(--dur) var(--ease),border-color var(--dur) var(--ease); }
.featured-carousel-controls button:hover { color:var(--ink); border-color:var(--line-strong); }
.carousel-pages { display:flex; gap:6px; flex:1; min-width:0; overflow-x:auto; scrollbar-width:thin; padding:3px; }
.featured-carousel-controls .carousel-page-button { padding:0 10px; }
.featured-carousel-controls .carousel-page-button[aria-current="true"] { color:#020a0f; background:var(--yellow); border-color:var(--line-strong); }
.featured-carousel-controls .carousel-rotation { margin-left:auto; font-size:15px; }
@media(prefers-reduced-motion:reduce) { .featured-carousel-viewport { scroll-behavior:auto; } }

/* Diagrams retain their source and scroll inside the article on narrow screens. */
.mermaid-diagram { margin:28px 0; min-width:0; padding:16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); }
.mermaid-diagram figcaption { margin-bottom:12px; color:var(--muted); font-size:13px; }
.mermaid-output { max-width:100%; overflow:auto; padding:12px; background:#fff; color:#16212b; border-radius:var(--radius); }
.mermaid-output svg { display:block; max-width:none!important; height:auto; margin:auto; }
.mermaid-source { margin:12px 0 0; }
.mermaid-source summary { cursor:pointer; padding:8px 0; color:var(--muted); font-size:12px; }
.mermaid-source pre { margin:8px 0 0; max-width:100%; overflow:auto; padding:16px; background:var(--warm); font-size:12px; }
.mermaid-status { color:var(--muted); font-size:13px; }

/* Keep the viewport width stable between short tabs and long documents. */
html { scrollbar-gutter:stable; }
@supports not (scrollbar-gutter:stable) { html { overflow-y:scroll; } }
.header-actions { min-width:44px; }

/* One shared category rail and content origin for listings and reading. */
.kb-reading-layout { grid-template-columns:248px minmax(0,760px) minmax(150px,1fr); }
.kb-reading-layout > .article-main { width:100%; max-width:760px; }
.kb-reading-layout .kb-mobile { margin-bottom:20px; }
.kb-reading-layout .article-toc { min-width:0; }
.kb-reading-layout .article-body { overflow-wrap:anywhere; }
.reading-navigation { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:start; gap:20px; }
.reading-adjacent { display:flex; flex-direction:column; gap:8px; min-width:0; text-decoration:none; }
.reading-adjacent span { color:var(--muted); font-size:12px; }
.reading-adjacent strong { font-size:14px; line-height:1.65; overflow-wrap:anywhere; }
.reading-adjacent:hover strong { color:var(--purple); }
.reading-adjacent[data-reading-prev] { grid-column:1; }
.reading-return { grid-column:2; grid-row:1; display:flex; min-height:44px; align-items:center; justify-content:center; padding:8px 14px; border:1px solid var(--line); text-decoration:none; font-size:12px; }
.reading-next { grid-column:3; grid-row:1; text-align:right; }
@media(max-width:1200px) {
 .kb-reading-layout { grid-template-columns:248px minmax(0,1fr); }
 .kb-reading-layout .article-toc { display:none; }
 .kb-reading-layout .toc-mobile { display:block; }
}
@media(max-width:1100px) { .kb-reading-layout { grid-template-columns:220px minmax(0,1fr); gap:32px; } }
@media(max-width:900px) { .kb-reading-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px) {
 .reading-navigation { grid-template-columns:1fr 1fr; gap:16px; }
 .reading-return { grid-column:1/-1; grid-row:2; }
 .reading-next { grid-column:2; }
 .reading-adjacent { min-height:44px; }
}

/* Shared Techfolio mark matches the browser tab icon. */
.brand-mark{width:16px;height:16px;border-radius:4px;background:none;}

/* Portfolio records remain distinct from the technical article reader. */
.career-entry--expanded { cursor:auto; }
.career-entry--expanded:hover { background:transparent; }
.career-entry--expanded .career-company-name { font-size:24px; }
.career-content-section { margin-top:28px; }
.career-content-section>:is(h2,h3) { margin-bottom:14px; font-size:19px; }
.career-content .article-body { margin-top:0; font-size:14px; line-height:1.85; }
.career-content .article-body p { margin:0 0 12px; }
.career-work-list { display:grid; gap:24px; }
.career-work-section { min-width:0; }
.career-work-section > :is(h3,h4,h5) { margin:0 0 8px; font-size:1.0625rem; line-height:1.5; }
.career-highlight { margin-top:16px; padding-left:14px; border-left:2px solid var(--yellow); font-size:14px; line-height:1.8; }
.credentials { display:grid; grid-template-columns:minmax(0,1fr); gap:36px; padding-top:48px; padding-bottom:64px; border-top:1px solid var(--line); }
.credentials>section { min-width:0; }
.credentials h2 { font-size:22px; margin-bottom:20px; }
.credentials ul { list-style:none; padding:0; }
.credentials li { padding:18px 0; border-top:1px solid var(--line); }
.credential-head { display:flex; align-items:baseline; gap:12px; justify-content:space-between; }
.credential-head h3 { font-size:16px; overflow-wrap:anywhere; }
.credential-state { flex:none; color:var(--purple); font-size:11px; }
.credentials p { margin-top:6px; font-size:13px; color:var(--muted); }
@media(max-width:720px) { .credentials { grid-template-columns:minmax(0,1fr); gap:30px; } }
.career-entry--expanded .career-company { min-width:0; }
.career-content, .career-content-section, .project-sections, .credentials { min-width:0; }

/* Technical labels filter results; category navigation stays in the left rail. */
.label-filter-controls { margin-top:14px; min-width:0; }
.label-filter-toolbar { display:flex; align-items:center; gap:12px; }
.label-filter { position:relative; }
.label-filter summary { display:flex; align-items:center; gap:10px; min-height:44px; padding:9px 14px; border:1px solid var(--line); cursor:pointer; list-style:none; font-size:12px; background:var(--paper); }
.label-filter summary::-webkit-details-marker { display:none; }
.label-filter summary>span:last-child { margin-left:10px; }
#label-filter-count { padding:1px 5px; color:var(--ink); background:var(--yellow-soft); font-size:11px; }
.label-filter[open] summary { border-color:var(--line-strong); }
.label-filter-panel { position:absolute; top:calc(100% + 7px); left:0; z-index:30; width:min(340px,calc(100vw - 64px)); padding:14px; border:1px solid var(--line); background:var(--paper); box-shadow:0 12px 30px #0001; }
.label-filter-panel>p { margin:0 0 10px; font-size:11px; color:var(--muted); }
.label-filter-panel fieldset { min-width:0; margin:0; padding:0; border:0; max-height:min(352px,50dvh); overflow-y:auto; }
.label-filter-option { display:flex; align-items:center; gap:10px; min-height:44px; padding:8px; font-size:13px; cursor:pointer; }
.label-filter-option:hover { background:var(--warm); }
.label-filter-option input { width:16px; height:16px; flex:none; accent-color:var(--purple); }
.label-filter-option>span:nth-child(2) { min-width:0; overflow-wrap:anywhere; }
.label-match-count { margin-left:auto; padding-left:8px; font:10px var(--mono); color:var(--muted); }
.label-filter-reset { padding:8px; min-height:44px; border:0; background:none; color:var(--muted); font-size:12px; cursor:pointer; }
.selected-labels { display:flex; flex-wrap:nowrap; gap:7px; max-width:100%; overflow-x:auto; }
.selected-labels:not(:empty) { margin-top:8px; padding:3px 0; }
.selected-label { display:inline-flex; align-items:center; flex:none; min-height:44px; padding:8px 12px; border:1px solid var(--line); background:var(--purple-soft); color:var(--ink); font-size:12px; cursor:pointer; }
.collection-intro--simple { grid-template-columns:minmax(0,1fr); }
.collection-title { display:flex; align-items:center; gap:14px; }
.collection-total { padding:4px 9px; border:1px solid var(--line); background:var(--paper); font:13px var(--mono); }
.career-stats--compact { grid-template-columns:minmax(0,1fr) minmax(0,1.8fr); }

/* Keep portfolio metadata readable in Korean at normal browser zoom. */
.field-stamp-period, .career-period {
  font-family:var(--sans);
  font-size:14px;
  line-height:1.65;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
.field-role { display:block; font-family:var(--sans); font-size:14px; line-height:1.6; letter-spacing:0; overflow-wrap:anywhere; }
.field-title { font-size:22px; line-height:1.45; }
.field-summary, .career-summary { font-size:15px; line-height:1.8; }
.field-tasks li, .career-tasks li { font-size:14px; line-height:1.75; }
.tech-list li { padding:4px 8px; font-family:var(--sans); font-size:13px; line-height:1.5; overflow-wrap:anywhere; max-width:100%; }
.field-more { font-size:14px; line-height:1.6; }
.field-rail-title, .career-rail-title { font-family:var(--sans); font-size:12px; letter-spacing:0; }
.field-rail-nav a, .career-rail-nav a { font-family:var(--sans); font-size:14px; line-height:1.6; }
.field-year-count { font-size:13px; }
.career-rail-period, .career-status { font-family:var(--sans); font-size:12px; line-height:1.6; }
.career-role { font-size:14px; line-height:1.6; }
.field-year-head h2 { font-family:var(--sans); line-height:1.25; letter-spacing:-.03em; }

/* The company rail supplies tenure on desktop; keep one reading column. */
.career-entry--expanded { grid-template-columns:minmax(0,1fr); }
.career-entry--expanded .career-period-mobile { display:none; }
.career-content .article-body { font-size:16px; line-height:1.85; }
@media(max-width:900px) {
 .career-entry--expanded .career-period-mobile { display:block; margin-top:6px; font-size:14px; line-height:1.65; color:var(--muted); font-variant-numeric:tabular-nums; }
}
.field-stamp .field-stamp-period { font-family:var(--sans); font-size:14px; line-height:1.65; }
.career-stat--range .career-stat-num { font-family:var(--sans); font-size:16px; line-height:1.6; }
.career-rail-period { overflow-wrap:anywhere; }

/* Credentials share the full content width; certificates scan across two columns. */
.credential-count { margin-left:8px; color:var(--muted); font:13px var(--mono); }
.certification-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.credentials .certification-grid li { min-width:0; padding:22px; border:1px solid var(--line); border-top:3px solid var(--purple); background:var(--paper); }
.certification-grid .credential-head { align-items:flex-start; flex-wrap:wrap; }
.certification-grid .credential-head h3 { font-size:22px; line-height:1.3; }
.credentials .credential-full-title { margin-top:8px; color:var(--ink); line-height:1.6; }
.credential-details { display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:14px; color:var(--muted); font-size:13px; line-height:1.6; }
.credential-details span { overflow-wrap:anywhere; }
@media(max-width:720px) { .certification-grid { grid-template-columns:minmax(0,1fr); } .credentials .certification-grid li { padding:18px; } }

/* Career overview, section navigation and expandable company records. */
.career-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
.career-overview a { display:grid; gap:8px; text-decoration:none; min-height:78px; color:var(--ink); }
.career-overview .career-stat-label { display:flex; justify-content:space-between; font-size:13px; }
.career-overview a:hover .career-stat-label { color:var(--purple); }
.career-overview .career-stat-label>span { color:var(--purple); font-size:20px; }
.collection-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:clamp(30px,5vw,72px); padding-top:44px; padding-bottom:64px; align-items:start; }
.collection-rail { position:sticky; top:calc(var(--header-h) + 28px); padding-right:20px; border-right:1px solid var(--line); }
.collection-nav-item { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:8px 10px; color:var(--muted); font-size:14px; text-decoration:none; border-left:2px solid transparent; }
.collection-nav-item.is-child { padding-left:22px; font-size:13px; }
.collection-nav-item[aria-current] { color:var(--ink); border-left-color:var(--yellow); background:var(--warm); font-weight:650; }
.collection-nav-item:hover { color:var(--ink); }
.collection-nav-count { font:12px var(--mono); color:var(--faint); }
.collection-main { min-width:0; }
.career-page-section,.career-page-company,.collection-main .credentials>section { scroll-margin-top:calc(var(--header-h) + 26px); }
.career-section-note { font-size:12px; color:var(--muted); }
.career-page-company { padding:26px 0 32px; }
.career-page-company+article { border-top:1px solid var(--line); }
.career-page-company>header { display:flex; gap:20px; justify-content:space-between; align-items:center; }
.career-page-company h3 { font-size:26px; letter-spacing:-.035em; }
.career-page-company .eyebrow { margin-bottom:8px; }
.record-period { font-size:13px; color:var(--muted); flex:none; }
.career-page-summary { margin-top:20px; max-width:65ch; font-size:16px; color:var(--muted); line-height:1.8; }
.career-page-achievement { display:grid; grid-template-columns:70px minmax(0,1fr); gap:16px; margin:22px 0 18px; padding:18px 20px; background:var(--warm); border-left:3px solid var(--yellow); }
.career-page-achievement>span { font-size:12px; color:var(--muted); padding-top:3px; }
.career-page-achievement p { font-size:15px; line-height:1.7; }
.career-page-details { margin-top:22px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.career-page-details>summary { display:flex; justify-content:space-between; align-items:center; min-height:52px; padding:12px 0; color:var(--purple); cursor:pointer; list-style:none; font-size:14px; }
.career-page-details>summary::-webkit-details-marker { display:none; }
.career-page-details[open] .detail-plus { transform:rotate(45deg); }
.career-page-details .career-content { padding-bottom:24px; }
.collection-main .credentials { width:100%; max-width:none; padding:36px 0 0; margin-top:8px; gap:36px; }
.collection-main .credentials h2 { font-size:20px; }
.collection-main .certification-grid { gap:12px; }
.collection-main .certification-grid li { padding:20px; }
.collection-mobile-nav { display:none; }
@media(max-width:900px){.collection-layout { grid-template-columns:minmax(0,1fr); padding-top:22px; }.collection-rail { display:none; }.collection-mobile-nav { display:block; position:sticky; top:var(--header-h); z-index:10; margin-bottom:24px; border:1px solid var(--line); background:var(--paper); }.collection-mobile-nav>summary { padding:14px 16px; min-height:48px; cursor:pointer; font-size:14px; }.collection-mobile-nav nav { padding:0 12px 10px; max-height:55vh; overflow-y:auto; }.collection-main .credentials>section,.career-page-section,.career-page-company { scroll-margin-top:calc(var(--header-h) + 90px); }}
@media(max-width:540px){.career-page-company>header { align-items:flex-start; flex-direction:column; gap:10px; }.career-page-company h3 { font-size:23px; }.career-page-achievement { grid-template-columns:minmax(0,1fr); gap:8px; }.career-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }.career-overview .career-stat+.career-stat { border-top:0; border-left:1px solid var(--line); padding:0 0 0 18px; }}
.career-overview a[aria-disabled="true"] { pointer-events:none; }
.career-page-scope { margin:24px 0; }
.career-page-scope h3 { font-size:16px; }
.scope-item h4 { margin-top:5px; font-size:14px; }

/* Project and career pages share the same introduction and navigation geometry. */
.collection-intro { background:var(--warm); border-bottom:1px solid var(--line); }
.collection-intro-inner { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); align-items:center; gap:clamp(28px,5vw,64px); min-height:230px; padding-top:44px; padding-bottom:44px; }
.collection-intro h1 { font-size:clamp(2.25rem,4.4vw,3.4rem); font-weight:700; line-height:1.14; letter-spacing:-.05em; }
.collection-lede { max-width:48ch; margin-top:14px; color:var(--muted); font-size:15px; line-height:1.75; }
.collection-summary { min-width:0; }
.collection-layout.is-empty { grid-template-columns:minmax(0,1fr); }
.collection-main .field-year-head,.collection-main .section-head { min-height:42px; align-items:baseline; padding-bottom:14px; margin-bottom:0; border-bottom:1px solid var(--line-strong); }
.collection-main .field-year-head h2,.collection-main .section-head h2 { font-family:var(--sans); font-size:20px; line-height:1.3; letter-spacing:-.02em; }
.collection-main .field-year-head h2 { scroll-margin-top:calc(var(--header-h) + 26px); }
.collection-main .field-entry { display:block; padding:26px 0 32px; }
.project-record-head { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.project-record-head>div { min-width:0; }
.project-record-head .field-role { margin-bottom:8px; }
.collection-main .field-title { margin:0; font-size:26px; line-height:1.3; letter-spacing:-.035em; }
.collection-main .field-summary { margin-top:20px; font-size:16px; line-height:1.8; }
.field-location { margin-top:10px; color:var(--muted); font-size:13px; }
@media(max-width:900px) { .collection-intro-inner { grid-template-columns:minmax(0,1fr); gap:24px; padding-top:36px; padding-bottom:36px; }.collection-summary:empty { display:none; }.collection-main .field-year-head h2 { scroll-margin-top:calc(var(--header-h) + 90px); } }
@media(max-width:540px) { .project-record-head { flex-direction:column; align-items:flex-start; gap:10px; }.collection-main .field-title { font-size:23px; } }

/* Keep knowledge navigation labels and category counts legible. */
.kb-navigation .kb-nav-title { margin-bottom:10px; font-family:var(--sans); font-size:13px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--muted); }
.kb-nav a { min-height:40px; padding-top:8px; padding-bottom:8px; font-size:14px; line-height:1.6; }
.kb-nav .n { font-family:var(--sans); font-size:12px; }

/* Shared reading hierarchy: neutral metadata, purple links, amber selection. */
.eyebrow, .field-role, .career-role, .scope-num,
.meta-row .cat, .doc-meta .cat, .article-meta .cat,
.callout-label, .credential-state { color:var(--muted); }
.eyebrow, .scope-num, .callout-label { font-family:var(--sans); font-size:13px; letter-spacing:0; }
.current-badge { color:var(--ink); background:var(--warm); }
.badge-featured { height:auto; border-color:var(--line); color:var(--muted); font:12px var(--sans); letter-spacing:0; }
.credentials .certification-grid li { border-top-color:var(--line-strong); }

.meta-row, .doc-meta, .article-meta { font-size:13px; }
.meta-row time, .doc-meta time, .article-meta time,
.record-meta, .record-period, .credential-meta, .credential-state,
.collection-nav-count, .credential-count, .field-year-count,
.kb-count, .label-match-count { color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums; }
.meta-row time, .doc-meta time, .article-meta time { font-family:var(--sans); }
.recent-row { grid-template-columns:84px minmax(0,1fr); }
.recent-row time { color:var(--muted); font-family:var(--sans); font-size:13px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.recent-cat, .stat-label, .career-section-note,
.career-page-achievement>span, .search-hint, .label-filter-panel>p { color:var(--muted); font-size:13px; }
.tab-count { height:auto; min-height:20px; font-size:12px; }
.section-head a, .profile-links a, .summary-block>a,
.reading-return, .article-back, .kb-back { color:var(--purple); font-size:14px; }
.reading-adjacent span { color:var(--purple); font-size:13px; }
.reading-return:hover, .article-back:hover, .kb-back:hover { text-decoration:underline; text-underline-offset:3px; }
.career-page-details>summary, .kb-mobile summary::after,
.toc-mobile summary::after, .fold summary::after { color:var(--ink); }

.kb-navigation .kb-nav-title, .article-toc-title { color:var(--muted); font-family:var(--sans); font-size:14px; font-weight:650; letter-spacing:0; text-transform:none; }
.kb-nav a, .collection-nav-item { min-height:44px; }
.kb-nav .n { color:var(--muted); font-size:13px; }
.kb-nav a[aria-current="page"] { background:var(--warm); }
.collection-nav-item.is-child { font-size:14px; }
.toc-list .toc-link { min-height:44px; padding:10px 12px; border-left:2px solid transparent; color:var(--muted); font-size:14px; line-height:1.6; }
.toc-list .toc-link.level-3 { padding-left:24px; font-size:13px; }
.toc-list .toc-link.level-4 { padding-left:36px; font-size:13px; }
.toc-list .toc-link .toc-n { color:inherit; font-family:var(--sans); font-size:13px; padding-top:0; }
.toc-list .toc-link:hover, .kb-nav a:hover, .collection-nav-item:hover { color:var(--purple); }
.toc-list .toc-link.is-active, .toc-list .toc-link[aria-current] { color:var(--ink); background:var(--warm); border-left-color:var(--yellow); font-weight:650; }
.mobile-nav-panel a[aria-current="page"] { box-shadow:inset 2px 0 0 var(--yellow); }
.label-filter-option input { accent-color:var(--yellow); }
.label-filter-option:has(input:checked) { background:var(--yellow-soft); color:var(--ink); }
.selected-label { background:var(--yellow-soft); border-color:var(--yellow-strong); color:var(--ink); font-size:13px; }
.label-filter-reset { color:var(--ink); font-size:13px; }

/* Mermaid opens in a bounded reading window, with native modal keyboard behavior. */
.mermaid-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.mermaid-heading>span { min-width:0; overflow-wrap:anywhere; }
.mermaid-viewer button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); color:var(--ink); font:13px var(--sans); cursor:pointer; }
.mermaid-viewer button:hover { border-color:var(--line-strong); background:var(--warm); }
.mermaid-viewer button:disabled { opacity:.4; cursor:default; }
.mermaid-viewer { width:min(1200px,calc(100vw - 64px)); height:min(820px,82dvh); max-width:none; max-height:none; margin:auto; padding:0; border:1px solid var(--line-strong); border-radius:8px; background:var(--paper); color:var(--ink); box-shadow:0 20px 70px rgb(0 0 0 / .2); }
.mermaid-viewer[open] { display:flex; flex-direction:column; }
.mermaid-viewer::backdrop { background:rgb(10 16 24 / .55); }
.mermaid-viewer-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 18px; border-bottom:1px solid var(--line); }
.mermaid-viewer-header h2 { min-width:0; margin:0; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.mermaid-viewer-header button { flex:none; }
.mermaid-viewer-output { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; background:#fff; color:#16212b; }
.mermaid-viewer-canvas { display:grid; place-items:center; width:max-content; min-width:100%; min-height:100%; padding:16px; }
.mermaid-viewer-canvas svg { display:block; max-width:none!important; }
.mermaid-viewer-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; padding:10px 16px; border-top:1px solid var(--line); }
.mermaid-viewer-tools output { min-width:54px; text-align:center; font:13px var(--mono); }
.mermaid-viewer-tools button { min-width:44px; }
html.mermaid-viewer-open { overflow:hidden; }
@media(max-width:600px) { .mermaid-viewer { width:calc(100vw - 24px); height:82dvh; }.mermaid-viewer-header { padding:10px 12px; }.mermaid-viewer-header h2 { font-size:14px; } }

/* Click the media itself; only enhanced, successfully loaded media advertise zoom. */
.media-zoom-target { cursor:zoom-in; }
.mermaid-viewer-canvas img { display:block; max-width:none; }
.mermaid-viewer-canvas .media-zoom-target { cursor:default; }
.mermaid-viewer-header [data-viewer-close] { min-width:44px; padding:8px; }

/* Make the company disclosure a visible next step after the overview. */
.career-page-details { margin-top:26px; border:1px solid var(--line-strong); border-radius:var(--radius); }
.career-page-details>summary { gap:20px; min-height:88px; padding:18px 20px; background:var(--warm); color:var(--ink); }
.career-details-copy { display:grid; gap:4px; min-width:0; }
.career-details-copy strong { font-size:17px; line-height:1.5; }
.career-details-preview { font-size:13px; font-weight:400; line-height:1.65; color:var(--muted); overflow-wrap:anywhere; }
.career-details-icon { display:grid; place-items:center; flex:none; width:40px; height:40px; border:1px solid var(--yellow-strong); background:var(--yellow); color:#020a0f; border-radius:50%; }
.career-page-details>summary:hover { background:var(--yellow-soft); }
.career-page-details>summary:focus-visible { outline-offset:4px; }
.career-page-details .details-label-open { display:none; }
.career-page-details[open] .details-label-closed { display:none; }
.career-page-details[open] .details-label-open { display:inline; }
.career-page-details[open] .career-details-chevron { transform:rotate(180deg); }
.career-page-details[open]>summary { border-bottom:1px solid var(--line); }
.career-page-details .career-content { padding:0 20px 24px; }
@media(max-width:540px) { .career-page-details>summary { gap:12px; padding:16px; }.career-page-details .career-content { padding:0 16px 20px; } }

/* Preserve intentional Notion blank paragraphs and in-paragraph line breaks. */
.article-body p { white-space:pre-line; }
.article-body p.article-spacer { min-block-size:1lh; margin:0; }
