/* Plane-inspired document rhythm. Only the knowledge reading surface. */
.plane-shell.plane-refresh .kb-reader{
 --kr-paper:#fff;--kr-ink:#242830;--kr-muted:#5f6877;--kr-line:#e7e9ee;--kr-soft:#f6f7f9;
 --kr-label-surface:#f0f2f5;--kr-label-line:#e3e6ec;--kr-blue:#006399;
 --kr-step-1:4px;--kr-step-2:8px;--kr-step-3:12px;--kr-step-4:16px;
 --kr-step-5:20px;--kr-step-6:24px;--kr-step-8:32px;--kr-step-10:40px;
 font-size:16px;line-height:1.8;
}
.kb-reader .kr-document{max-width:1140px;padding:32px 24px 72px;text-align:left}
.kb-reader .kr-section{margin:0 0 40px}
.kb-reader .kr-section+.kr-section{border-top:1px solid var(--kr-line);padding-top:32px}
.plane-shell.plane-refresh .kb-reader .kr-section>h2{
 margin:0 0 20px!important;font-size:24px!important;line-height:1.5!important;font-weight:600!important;
 letter-spacing:0;text-wrap:pretty;
}
.plane-shell.plane-refresh .kb-reader .kr-section:first-child>h2{font-size:28px!important;line-height:1.4!important;margin-bottom:20px!important}
.kb-reader .kr-record{margin-top:28px;scroll-margin-top:24px}
.kb-reader .kr-record:first-child{margin-top:0}
.plane-shell.plane-refresh .kb-reader .kr-record>h3{
 font-size:20px!important;line-height:1.5!important;margin:0 0 12px!important;font-weight:600!important;text-wrap:pretty;
}
.plane-shell.plane-refresh .kb-reader :is(p,li,.kr-prose){font-size:16px!important;line-height:1.8!important}
.plane-shell.plane-refresh .kb-reader p{margin:0 0 16px!important}
.plane-shell.plane-refresh .kb-reader .kr-prose,.plane-shell.plane-refresh .kb-reader .kr-section>p{max-width:none}
.plane-shell.plane-refresh .kb-reader .kr-prose>:last-child{margin-bottom:0!important}
.plane-shell.plane-refresh .kb-reader .kr-lead{color:var(--kr-muted)!important;margin-bottom:24px!important}
.plane-shell.plane-refresh .kb-reader .kr-prose :is(h4,h5,h6){
 color:var(--kr-ink)!important;font-size:18px!important;line-height:1.6!important;font-weight:600!important;margin:28px 0 12px!important;
}
.plane-shell.plane-refresh .kb-reader .kr-prose :is(h5,h6){font-size:16px!important;margin-top:24px!important}
.kb-reader .kr-prose :is(strong,b){font-weight:600;color:var(--kr-ink)}
.kb-reader .kr-prose :is(ul,ol){padding-inline-start:24px;margin:16px 0 24px}
.kb-reader .kr-prose li{padding-inline-start:4px;margin:8px 0}
.kb-reader .kr-prose li::marker{color:var(--kr-muted);font-variant-numeric:tabular-nums}
.kb-reader .kr-prose blockquote{margin:20px 0 24px;padding:4px 0 4px 20px;border-left:1px solid #cbd1da;color:var(--kr-muted)}
.plane-shell.plane-refresh .kb-reader .kr-prose blockquote p{color:var(--kr-muted)!important}
.kb-reader .kr-prose hr{height:1px;border:0;background:var(--kr-line);margin:28px 0}
.kb-reader .kr-prose code{
 padding:2px 5px;border:1px solid var(--kr-label-line);border-radius:4px;background:var(--kr-label-surface);
 color:var(--kr-ink);font-family:ui-monospace,Consolas,monospace;font-size:.875em;overflow-wrap:anywhere;
}
.kb-reader .kr-prose pre{margin:20px 0 24px;padding:20px;border:0;border-radius:12px;background:var(--kr-soft);white-space:pre;overflow-x:auto;max-width:100%}
.kb-reader .kr-prose pre code{display:block;padding:0;border:0;background:none;font-size:13px;line-height:1.85;overflow-wrap:normal}
.kb-reader .kr-prose a{text-decoration:underline;text-decoration-color:#9bbaca;text-underline-offset:4px;overflow-wrap:anywhere}
.kb-reader .kr-prose a:hover{text-decoration-color:currentColor}

/* Short attributes read as a group, rather than a full-width spreadsheet. */
.kb-reader .kr-properties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px;margin:24px 0 28px;padding:24px;background:var(--kr-soft);border:0;border-radius:12px}
.kb-reader .kr-property{min-width:0;margin:0}
.kb-reader .kr-property-wide{grid-column:1/-1}
.kb-reader .kr-property dt{display:block;margin:0 0 6px;padding:0;color:var(--kr-muted);font-size:13px;line-height:1.6;font-weight:500;overflow-wrap:anywhere}
.kb-reader .kr-property dd{display:block;margin:0;padding:0;color:var(--kr-ink);font-size:16px;line-height:1.8;overflow-wrap:anywhere}
.kb-reader .kr-value{display:inline}
.plane-shell.plane-refresh .kb-reader .kr-property .kr-value p{display:inline;margin:0!important}
.kb-reader .kr-field-list{margin:16px 0 24px;padding:0}
.kb-reader .kr-field-list>.kr-property{display:grid;grid-template-columns:minmax(120px,20%) minmax(0,1fr);gap:24px;padding:14px 0;border-bottom:1px solid var(--kr-line)}
.kb-reader .kr-field-list>.kr-property:first-child{padding-top:0}
.kb-reader .kr-field-list dt{font-size:14px;padding-top:2px;margin:0}
.kb-reader .kr-field-list dd .kr-value{display:block}
.plane-shell.plane-refresh .kb-reader .kr-field-list dd .kr-value p{display:block;margin-bottom:8px!important}

/* Equal subjects may use quiet index cards; narrative chapters stay open. */
.kb-reader .kr-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 32px}
.kb-reader .kr-info-card{min-width:0;padding:24px;border:0;border-radius:12px;background:var(--kr-soft)}
.plane-shell.plane-refresh .kb-reader .kr-info-card>h3{display:flex;align-items:center;gap:12px;font-size:16px!important;line-height:1.5!important;font-weight:600;margin:0 0 12px!important;color:var(--kr-ink)}
.kb-reader .kr-card-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:10px;background:#e5eff4;color:var(--kr-blue)}
.kb-reader .kr-card-icon svg{display:block;width:20px;height:20px}
.plane-shell.plane-refresh .kb-reader .kr-info-card .kr-prose{color:var(--kr-muted);font-size:14px!important;line-height:1.7!important}
.plane-shell.plane-refresh .kb-reader .kr-info-card .kr-prose p{color:var(--kr-muted);font-size:14px!important;line-height:1.7!important}

/* Tags carry short terms; they are text, not filters or invented actions. */
.kb-reader .kr-tag-cloud,.kb-reader .kr-tag-values{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;min-width:0}
.kb-reader .kr-tag-cloud{margin:20px 0 28px}
.kb-reader .kr-tag,.kb-reader .kr-inline-tag{
 display:inline-block;max-width:100%;padding:3px 8px;border:1px solid var(--kr-label-line);border-radius:5px;
 background:var(--kr-label-surface);color:var(--kr-ink);font-size:13px;line-height:1.6;font-weight:400;
 vertical-align:baseline;overflow-wrap:anywhere;box-decoration-break:clone;-webkit-box-decoration-break:clone;
}
.kb-reader .kr-inline-tag{padding:0 5px;font-size:.875em;margin-inline:2px}
.kb-reader .kr-tag-line{display:flex;align-items:baseline;gap:16px;margin:16px 0;min-width:0}
.kb-reader .kr-tag-label{flex:none;color:var(--kr-muted);font-size:13px;line-height:1.8}

/* Conditions and evidence remain visibly different from the facts themselves. */
.plane-shell.plane-refresh .kb-reader .kr-note{border:0;border-radius:12px;padding:16px 20px!important;margin:20px 0 24px!important;line-height:1.8!important}
.kb-reader .kr-inline-note{margin:20px 0 24px;padding:16px 20px;border:0;border-radius:12px;background:var(--kr-note);color:var(--kr-note-ink)}
.kb-reader .kr-inline-note>strong{display:block;font-size:14px;font-weight:600;line-height:1.7;margin-bottom:6px;color:inherit}
.plane-shell.plane-refresh .kb-reader .kr-inline-note p{font-size:14px!important;line-height:1.8!important;color:inherit!important;margin-bottom:8px!important}
.kb-reader .kr-answer{padding:0 0 28px;margin-top:28px}
.plane-shell.plane-refresh .kb-reader .kr-answer-source,.plane-shell.plane-refresh .kb-reader .kr-source-meta{font-size:12px!important;line-height:1.8!important;color:var(--kr-muted)!important;margin:16px 0 0!important}
.kb-reader .kr-reference{display:inline-block;min-width:18px;min-height:18px;font-size:11px;line-height:18px;text-align:center;text-decoration:none;border-radius:3px}
.kb-reader .kr-reference:hover{background:var(--kr-label-surface)}
.kb-reader .kr-source-article+.kr-source-article{margin-top:32px;padding-top:28px}
.kb-reader .kr-source-meta+.kr-prose{margin-top:20px}

/* Tables are reserved for comparisons and original rows, with quiet rules. */
.kb-reader .kr-table-scroll{margin:24px 0 28px;border-radius:12px;border:1px solid var(--kr-line)}
.plane-shell.plane-refresh .kb-reader .kr-table-scroll :is(th,td){border-right:0!important;padding:14px 16px!important;line-height:1.8!important}
.plane-shell.plane-refresh .kb-reader .kr-table-scroll thead th{background:var(--kr-soft)!important;font-size:13px!important;font-weight:500}
.plane-shell.plane-refresh .kb-reader .kr-table-scroll .kr-prose{display:block;font-size:15px!important;line-height:1.8!important}
.plane-shell.plane-refresh .kb-reader .kr-table-scroll .kr-prose p{display:block;font-size:15px!important;line-height:1.8!important;margin-bottom:8px!important}
.plane-shell.plane-refresh .kb-reader .kr-table-scroll .kr-prose p:last-child{margin-bottom:0!important}
.kb-reader .kr-table-scroll tbody th{font-weight:500}
.kb-reader .kr-content-table table{min-width:420px}
.kb-reader .kr-content-table thead th:first-child{width:auto}
.kb-reader .kb-reading-figure{margin:28px 0}
.kb-reader .kb-reading-figure img{border-radius:12px}
.kb-reader .kb-reading-figure figcaption{margin-top:8px;font-size:12px;line-height:1.7;color:var(--kr-muted)}

html.dark .plane-shell.plane-refresh .kb-reader{
 --kr-paper:#20252c;--kr-ink:#e4e6e6;--kr-muted:#b5bfcd;--kr-line:#39414c;--kr-soft:#292f38;
 --kr-label-surface:#303742;--kr-label-line:#475161;--kr-blue:#8bc5e7;
}
html.dark .kb-reader .kr-card-icon{background:#293f4d}
@media(max-width:1280px){.kb-reader .kr-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){
 .kb-reader .kr-document{padding:24px 16px 56px}
 .kb-reader .kr-section{margin-bottom:32px}
 .kb-reader .kr-section+.kr-section{padding-top:24px}
 .plane-shell.plane-refresh .kb-reader .kr-section:first-child>h2{font-size:24px!important}
 .plane-shell.plane-refresh .kb-reader .kr-section>h2{font-size:22px!important}
 .plane-shell.plane-refresh .kb-reader .kr-record>h3{font-size:18px!important}
 .kb-reader .kr-properties{grid-template-columns:minmax(0,1fr);gap:20px;padding:20px;margin-top:20px}
 .kb-reader .kr-field-list>.kr-property{grid-template-columns:minmax(0,1fr);gap:4px}
 .kb-reader .kr-card-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .kb-reader .kr-info-card{padding:20px}
 .kb-reader .kr-tag-line{display:block}
 .kb-reader .kr-tag-label{display:block;margin-bottom:8px}
 .kb-reader .kr-prose pre{padding:16px}
 .kb-reader .kr-inline-note{padding:16px}
}
@media(forced-colors:active){.kb-reader :is(.kr-tag,.kr-inline-tag,.kr-inline-note,.kr-properties,.kr-info-card){border:1px solid CanvasText}}
