/* ===== shared ===== */
/* Plain-text result modal (JSON on search.php, Turtle on index.php / concept.php) */
dialog.text-modal { width: min(720px, 90vw); max-height: 80vh; margin: auto; border: 1px solid #CCCCCC; border-radius: 0; padding: 0; overflow: hidden; color: #333333; }
dialog.text-modal::backdrop { background: rgba(38, 34, 32, 0.45); }
.text-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #F4F4F4; border-bottom: 1px solid #DDDDDD; font-size: 0.78rem; font-weight: 700; color: #1E6887;  }
.text-modal-close { background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #626262; padding: 2px 6px; }
.text-modal-close:hover { color: #1E6887; }
.text-modal-body { margin: 0; padding: 14px 16px; max-height: calc(80vh - 44px); overflow: auto; font-family: var(--font-mono, Consolas, monospace); font-size: 0.82rem; color: #333333; white-space: pre-wrap; word-break: break-word; }

/* JSON syntax colouring inside .text-modal-body (search results JSON, JSON-LD) -- same colours as Firefox's JSON viewer */
.json-key { color: #0074E8; }
.json-string { color: #DD00A9; }
.json-number { color: #058B00; }
.json-boolean { color: #058B00; }
.json-null { color: #5F5F62; }

/* ===== index.php (body.page-home) ===== */
body.page-home .thesaurus { max-width: 960px; margin: 0 auto; padding: 0 24px 64px; color: #333333; font-size: 17px; line-height: 1.55; }
body.page-home .thesaurus h1 { font-family: var(--font-display), Georgia, serif; color: var(--navy, #1E6887); font-size: 2rem; line-height: 1.2; }
body.page-home .thesaurus .page-header-row { margin-bottom: 8px; }
body.page-home .thesaurus .crumbs { padding-top: 0; }
body.page-home h1 { font-size: 1.5rem; }
body.page-home .legend { font-size: 0.82rem; color: #626262; margin: 10px 0 4px; }
body.page-home .legend span { margin-right: 16px; }
body.page-home .tree-controls { margin: 14px 0 4px; }
body.page-home .tree-controls button { background: none; border: 1px solid #CCCCCC; color: #626262; padding: 5px 12px; border-radius: 0; font-size: 0.8rem; font-family: inherit; cursor: pointer; margin-right: 8px; }
body.page-home .tree-controls button:hover { background: #F4F4F4; color: #1E6887; }
body.page-home .tree-controls button:focus-visible { outline: 2px solid #1A7E9E; outline-offset: 2px; }
body.page-home .tree { margin-top: 10px; }
body.page-home .node { margin: 8px 0; }
body.page-home .node-head { display: flex; align-items: flex-start; gap: 2px; }
body.page-home .node-head > button.toggle { flex: 0 0 auto; width: 40px; height: 40px; margin-top: 2px;
    background: none; border: none; padding: 0; cursor: pointer;
    color: #999999; display: flex; align-items: center; justify-content: center;
    border-radius: 0; }
body.page-home .node-head > button.toggle:hover { color: #1E6887; background: #F4F4F4; }
body.page-home .node-head > button.toggle:focus-visible { outline: 2px solid #1A7E9E; outline-offset: 1px; }
body.page-home .node-head > button.toggle .glyph { display: inline-block; font-size: 1.75rem; transition: transform 0.15s ease; }
body.page-home .node-head > button.toggle[aria-expanded="true"] .glyph { transform: rotate(90deg); }
body.page-home .node-head > a.card { flex: 1 1 auto; min-width: 0; }
body.page-home .node.leaf > .node-head { padding-left: 42px; }
body.page-home .children { margin-left: 24px; padding-left: 24px; border-left: 1px dashed #DDDDDD; }
body.page-home .children[hidden] { display: none; }
body.page-home .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.page-home a.card { display: block; border: 1px solid #DDDDDD; border-left-width: 3px; border-radius: 0; padding: 14px 16px; text-decoration: none; color: inherit; position: relative; }
body.page-home a.card:hover { background: #F4F4F4; }
body.page-home a.card:focus-visible { outline: 2px solid #1A7E9E; outline-offset: 1px; }
body.page-home a.card b { display: block; font-size: 1.05rem; }
body.page-home a.card span.branch { position: absolute; left: -20px; top: 14px; font-size: 0.85rem; color: #999999; }
body.page-home a.card span:not(.branch) { font-size: 0.82rem; color: #626262; }
body.page-home a.card.rel-type { border-left-color: #7fa0bc; }
body.page-home a.card.rel-part { border-left-color: #b391c4; }
body.page-home a.card.rel-force { border-left-color: #6B8E5A; }
body.page-home a.xref { display: block; padding: 6px 16px 6px 61px; margin: 2px 0; text-decoration: none; color: #1E6887; font-size: 0.86rem; position: relative; }
body.page-home a.xref b { font-size: 1.05rem; font-weight: 700; }
body.page-home a.xref:hover { text-decoration: underline; }
body.page-home a.xref span.branch { position: absolute; left: 13px; top: 6px; font-size: 0.85rem; color: #626262; }
body.page-home a.xref .xref-note { color: #626262; font-size: 0.8rem; }
body.page-home .admin-link { display: inline-block; margin-top: 24px; font-size: 0.9rem; color: #1E6887; }
body.page-home .search-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px 0 6px; padding: 14px 16px; background: #F4F4F4; border: 1px solid #DDDDDD; border-radius: 0; }
body.page-home .search-cta p { margin: 0; font-size: 0.88rem; color: #494949; }
body.page-home .search-cta a.btn { flex: 0 0 auto; background: #B5443A; color: #fff; padding: 8px 16px; border-radius: 0; text-decoration: none; font-size: 0.85rem; white-space: nowrap; }
body.page-home .search-cta a.btn:hover { background: #943229; }
body.page-home .scheme-uri { font-family: var(--font-mono, Consolas, monospace); font-size: 0.78rem; color: #999999; margin: 4px 0 14px; }
body.page-home .pilot-notice { font-size: 0.86rem; color: #626262; background: #F4F4F4; border-left: 3px solid #1A7E9E; padding: 10px 14px; border-radius: 0; margin: 10px 0 16px; }
body.page-home .pilot-notice a { color: #1E6887; font-style: normal; font-weight: 600; }
body.page-home .formats { margin-top: 20px; font-size: 0.85rem; color: #626262; }
body.page-home .formats a { color: #1E6887; margin-right: 12px; }
body.page-home { position: relative; }
body.page-home .page-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
body.page-home .page-header-row .lang-switch { margin-bottom: 0; }
body.page-home .lang-switch { display: flex; justify-content: flex-end; align-items: center; gap: 18px; font-size: 0.9rem; margin-bottom: 22px; }
body.page-home .lang-switch a { color: #999999; text-decoration: none; padding: 6px 4px; }
body.page-home .lang-switch a.active { color: #1E6887; font-weight: 700; }
body.page-home .lang-switch a:hover { text-decoration: underline; }
body.page-home .lang-switch span { color: #BBBBBB; }

/* ===== search.php (body.page-search) ===== */
body.page-search .thesaurus { max-width: 960px; margin: 0 auto; padding: 0 24px 64px; color: #333333; font-size: 17px; line-height: 1.55; }
body.page-search .thesaurus h1 { font-family: var(--font-display), Georgia, serif; color: var(--navy, #1E6887); font-size: 2rem; line-height: 1.2; }
body.page-search .thesaurus .page-header-row { margin-bottom: 8px; }
body.page-search .thesaurus .crumbs { padding-top: 0; }
body.page-search h1 { font-size: 1.5rem; margin-bottom: 4px; }
body.page-search .intro { font-size: 0.92rem; color: #494949; line-height: 1.5; margin: 10px 0 22px; }
body.page-search .intro a { color: #1E6887; }
body.page-search form.search { display: flex; gap: 8px; margin-bottom: 8px; }
body.page-search form.search input[type="search"] { flex: 1 1 auto; font-family: inherit; font-size: 1rem; padding: 10px 14px;
    border: 1px solid #CCCCCC; border-radius: 0; background: #fff; color: #333333; }
body.page-search form.search input[type="search"]:focus-visible { outline: 2px solid #1A7E9E; outline-offset: 1px; }
body.page-search form.search button { font-family: inherit; font-size: 0.95rem; padding: 10px 18px; border-radius: 0;
    border: 1px solid #B5443A; background: #B5443A; color: #fff; cursor: pointer; }
body.page-search form.search button:hover { background: #943229; }
body.page-search .examples { font-size: 0.82rem; color: #626262; margin: 4px 0 26px; }
body.page-search .examples a { color: #1E6887; margin-right: 10px; }
body.page-search .count { font-size: 0.85rem; color: #626262; margin: 18px 0 10px; }
body.page-search .result { display: block; border: 1px solid #DDDDDD; border-left-width: 3px; border-left-color: #1A7E9E;
    border-radius: 0; padding: 14px 16px; margin: 10px 0; text-decoration: none; color: inherit; }
body.page-search .result:hover { background: #F4F4F4; }
body.page-search .result:focus-visible { outline: 2px solid #1A7E9E; outline-offset: 1px; }
body.page-search .result .head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
body.page-search .result b { font-size: 1.05rem; }
body.page-search .result .tims-id { font-family: var(--font-mono, Consolas, monospace); font-size: 0.78rem; color: #626262; background: #F4F4F4; padding: 1px 6px; border-radius: 0; }
body.page-search .result .breadcrumb { font-size: 0.78rem; color: #999999; margin-top: 3px; }
body.page-search .result .other-langs { font-size: 0.82rem; color: #626262; margin-top: 4px; }
body.page-search .result .snippet { font-size: 0.85rem; color: #494949; margin-top: 6px; line-height: 1.4; }
body.page-search .result .matched-via { font-size: 0.76rem; color: #999999; margin-top: 6px; }
body.page-search .link-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
body.page-search .link-row .uri-box { font-family: var(--font-mono, Consolas, monospace); font-size: 0.78rem; color: #1E6887; background: #F4F4F4;
    padding: 4px 8px; border-radius: 0; flex: 1 1 auto; overflow-x: auto; white-space: nowrap; }
body.page-search .link-row button.copy { font-family: inherit; font-size: 0.76rem; padding: 4px 10px; border-radius: 0;
    border: 1px solid #CCCCCC; background: #fff; color: #1E6887; cursor: pointer; flex: 0 0 auto; }
body.page-search .link-row button.copy:hover { background: #F4F4F4; }
body.page-search .link-row button.copy.copied { border-color: #4a7a4a; color: #2d5a2d; }
body.page-search .no-results { font-size: 0.9rem; color: #626262; margin: 20px 0; }
body.page-search .formats { margin-top: 24px; font-size: 0.82rem; color: #999999; }
body.page-search .formats a { color: #1E6887; }
body.page-search .back-link { display: inline-block; margin-top: 28px; font-size: 0.85rem; color: #626262; text-decoration: none; }
body.page-search .back-link:hover { color: #1E6887; text-decoration: underline; }
body.page-search .secondary { margin: 22px 0 6px; padding-top: 14px; border-top: 1px dashed #DDDDDD; }
body.page-search .secondary-head { font-size: 0.78rem;  color: #999999; margin: 0 0 8px; }
body.page-search .secondary-list { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
body.page-search .secondary-list li { margin: 4px 0; }
body.page-search .secondary-list a { color: #1E6887; }
body.page-search .tims-id-inline { font-family: var(--font-mono, Consolas, monospace); font-size: 0.74rem; color: #999999; }
body.page-search { position: relative; }
body.page-search .page-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
body.page-search .page-header-row .lang-switch { margin-bottom: 0; }
body.page-search .lang-switch { display: flex; justify-content: flex-end; align-items: center; gap: 18px; font-size: 0.9rem; margin-bottom: 22px; }
body.page-search .lang-switch a { color: #999999; text-decoration: none; padding: 6px 4px; }
body.page-search .lang-switch a.active { color: #1E6887; font-weight: 700; }
body.page-search .lang-switch a:hover { text-decoration: underline; }
body.page-search .lang-switch span { color: #BBBBBB; }
body.page-search .pilot-notice { font-size: 0.86rem; color: #626262; background: #F4F4F4; border-left: 3px solid #1A7E9E; padding: 10px 14px; border-radius: 0; margin: 10px 0 16px; }
body.page-search .pilot-notice a { color: #1E6887; font-style: normal; font-weight: 600; }



/* ===== concept.php (body.page-concept) ===== */
body.page-concept .thesaurus { max-width: 960px; margin: 0 auto; padding: 0 24px 64px; color: #333333; font-size: 17px; line-height: 1.55; }
body.page-concept .thesaurus h1 { font-family: var(--font-display), Georgia, serif; color: var(--navy, #1E6887); font-size: 2rem; line-height: 1.2; }
body.page-concept .thesaurus .page-header-row { margin-bottom: 8px; }
body.page-concept .thesaurus .crumbs { padding-top: 0; }
body.page-concept h1 { font-size: 1.6rem; margin-bottom: 2px; }
body.page-concept .uri { font-family: var(--font-mono, Consolas, monospace); font-size: 0.85rem; color: #626262; margin-bottom: 20px; word-break: break-all; }
body.page-concept .labels { display: flex; gap: 22px; flex-wrap: wrap; margin: 18px 0; padding: 14px 16px; background: #F4F4F4; border-radius: 0; }
body.page-concept .labels div { font-size: 0.95rem; }
body.page-concept .labels b { display: block; font-size: 0.72rem;  color: #626262; }
body.page-concept .alt { font-size: 0.82rem; color: #626262; }
body.page-concept .def { line-height: 1.5; margin: 18px 0; }
body.page-concept .pilot-notice { font-size: 0.86rem; color: #626262; background: #F4F4F4; border-left: 3px solid #1A7E9E; padding: 10px 14px; border-radius: 0; margin: 18px 0; }
body.page-concept .pilot-notice a { color: #1E6887; font-style: normal; font-weight: 600; }
body.page-concept .rel { margin: 14px 0; padding: 10px 14px; border-radius: 0; font-size: 0.88rem; }
body.page-concept .rel b { display: block; font-size: 0.74rem;  margin-bottom: 4px; }
body.page-concept .rel a { color: inherit; font-weight: 600; }
body.page-concept .rel-type { background: #dde7ef; color: #2d4a63; }
body.page-concept .rel-part { background: #ede2f2; color: #5a3a6b; }
body.page-concept .rel-assoc { background: #F1F1F1; color: #494949; }
body.page-concept .rel-mills { background: #e3ecdd; color: #34522a; }
body.page-concept .rel-mills ul { margin: 6px 0 4px; padding-left: 18px; columns: 2 220px; }
body.page-concept .rel-mills li { margin: 2px 0; break-inside: avoid; }
body.page-concept .rel-mills .mills-note { font-size: 0.76rem; opacity: 0.8; margin: 6px 0 0; }
body.page-concept .rel-mills.is-loading .mills-note { display: none; }
body.page-concept .rel-mills .mills-loading { display: flex; align-items: center; gap: 8px; }
body.page-concept .rel-mills .mills-loading[hidden] { display: none; }
body.page-concept .rel-mills .mills-spinner { width: 14px; height: 14px; flex: none; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mills-spin 0.8s linear infinite; }
@keyframes mills-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body.page-concept .rel-mills .mills-spinner { animation: none; } }
body.page-concept table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
body.page-concept td { padding: 6px 8px; border-bottom: 1px solid #DDDDDD; vertical-align: top; }
body.page-concept .empty { color: #999999; }
body.page-concept .formats { margin-top: 28px; font-size: 0.85rem; color: #626262; }
body.page-concept .formats a { color: #1E6887; margin-right: 12px; }
body.page-concept .note { font-size: 0.8rem; color: #999999; margin-top: 24px; }
body.page-concept .back-link { display: inline-block; margin-bottom: 18px; font-size: 0.85rem; color: #626262; text-decoration: none; }
body.page-concept .back-link:hover { color: #1E6887; text-decoration: underline; }
body.page-concept .scheme { font-size: 0.82rem; color: #626262; margin-bottom: 18px; }
body.page-concept .scheme a { color: #1E6887; }
body.page-concept .top-badge { background: #ECECEC; color: #1E6887; padding: 2px 7px; border-radius: 0; font-size: 0.76rem; }
body.page-concept .link-panel { margin: 18px 0; padding: 14px 16px; background: #F4F4F4; border: 1px solid #DDDDDD; border-radius: 0; }
body.page-concept .link-panel b.heading { display: block; font-size: 0.74rem;  color: #626262; margin-bottom: 10px; }
body.page-concept .link-panel .row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
body.page-concept .link-panel .row label { flex: 0 0 90px; font-size: 0.78rem; color: #626262; }
body.page-concept .link-panel .row .box { font-family: var(--font-mono, Consolas, monospace); font-size: 0.78rem; color: #1E6887; background: #fff; border: 1px solid #DDDDDD; padding: 5px 8px; border-radius: 0; flex: 1 1 auto; overflow-x: auto; white-space: nowrap; }
body.page-concept .link-panel .row button.copy { font-family: inherit; font-size: 0.76rem; padding: 4px 10px; border-radius: 0; border: 1px solid #B5443A; background: #B5443A; color: #fff; cursor: pointer; flex: 0 0 auto; }
body.page-concept .link-panel .row button.copy:hover { background: #943229; }
body.page-concept .link-panel .row button.copy.copied { background: #4a7a4a; border-color: #4a7a4a; }
body.page-concept { position: relative; }
body.page-concept .page-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
body.page-concept .page-header-row .lang-switch { margin-bottom: 0; }
body.page-concept .lang-switch { display: flex; justify-content: flex-end; align-items: center; gap: 18px; font-size: 0.9rem; margin-bottom: 22px; }
body.page-concept .lang-switch a { color: #999999; text-decoration: none; padding: 6px 4px; }
body.page-concept .lang-switch a.active { color: #1E6887; font-weight: 700; }
body.page-concept .lang-switch a:hover { text-decoration: underline; }
body.page-concept .lang-switch span { color: #BBBBBB; }

/* ===== about.php (body.page-about) ===== */
body.page-about .thesaurus { max-width: 720px; margin: 0 auto; padding: 0 24px 64px; color: #333333; font-size: 17px; line-height: 1.6; }
body.page-about .thesaurus h1 { font-family: var(--font-display), Georgia, serif; color: var(--navy, #1E6887); font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
body.page-about .thesaurus p { margin: 0 0 16px; }
body.page-about .back-link { display: inline-block; margin-top: 10px; font-size: 0.85rem; color: #626262; text-decoration: none; }
body.page-about .structure-callout { margin: 4px 0 26px; padding: 18px 20px; background: #E2EEF2; border: 1px solid #BCD6DF; border-left: 5px solid #1E6887; border-radius: 0; }
body.page-about .structure-callout p { margin: 0 0 12px; font-size: 1.08rem; font-weight: 600; color: #1E6887; }
body.page-about .structure-callout a.btn { display: inline-block; background: #B5443A; color: #fff; padding: 10px 18px; border-radius: 0; text-decoration: none; font-size: 0.95rem; font-weight: 700; }
body.page-about .structure-callout a.btn:hover { background: #943229; }
body.page-about .back-link:hover { color: #1E6887; text-decoration: underline; }
body.page-about { position: relative; }
body.page-about .page-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
body.page-about .page-header-row .lang-switch { margin-bottom: 0; }
body.page-about .lang-switch { display: flex; justify-content: flex-end; align-items: center; gap: 18px; font-size: 0.9rem; margin-bottom: 22px; }
body.page-about .lang-switch a { color: #999999; text-decoration: none; padding: 6px 4px; }
body.page-about .lang-switch a.active { color: #1E6887; font-weight: 700; }
body.page-about .lang-switch a:hover { text-decoration: underline; }
body.page-about .lang-switch span { color: #BBBBBB; }

/* ===== structure.php (body.page-structure) ===== */
body.page-structure .thesaurus { max-width: 760px; margin: 0 auto; padding: 0 24px 64px; color: #333333; font-size: 17px; line-height: 1.6; }
body.page-structure .thesaurus h1 { font-family: var(--font-display), Georgia, serif; color: var(--navy, #1E6887); font-size: 2rem; line-height: 1.2; margin-bottom: 24px; }
body.page-structure .thesaurus h2 { font-family: var(--font-display), Georgia, serif; color: var(--navy, #1E6887); font-size: 1.3rem; margin: 34px 0 10px; }
body.page-structure .thesaurus p { margin: 0 0 16px; }
body.page-structure .thesaurus ul { margin: 0 0 16px; padding-left: 22px; }
body.page-structure .thesaurus li { margin: 0 0 10px; }
body.page-structure .thesaurus code { font-family: var(--font-mono, Consolas, monospace); font-size: 0.9em; background: #F4F4F4; padding: 1px 5px; border-radius: 0; }
body.page-structure .thesaurus a { color: #1E6887; }
body.page-structure .back-link { display: inline-block; margin-top: 10px; font-size: 0.85rem; color: #626262; text-decoration: none; }
body.page-structure .back-link:hover { color: #1E6887; text-decoration: underline; }
body.page-structure { position: relative; }
body.page-structure .page-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
body.page-structure .page-header-row .lang-switch { margin-bottom: 0; }
body.page-structure .lang-switch { display: flex; justify-content: flex-end; align-items: center; gap: 18px; font-size: 0.9rem; margin-bottom: 22px; }
body.page-structure .lang-switch a { color: #999999; text-decoration: none; padding: 6px 4px; }
body.page-structure .lang-switch a.active { color: #1E6887; font-weight: 700; }
body.page-structure .lang-switch a:hover { text-decoration: underline; }
body.page-structure .lang-switch span { color: #BBBBBB; }

/* 'in plain terms' explainer boxes, for readers newer to the subject */
body.page-structure .explainer { margin: 2px 0 22px; padding: 14px 16px; background: #eef5f0; border: 1px solid #cfe3d6; border-left: 4px solid #4a7a5a; border-radius: 0; }
body.page-structure .explainer-label { display: block; font-size: 0.72rem;  font-weight: 700; color: #3f6b4e; margin: 0 0 8px; }
body.page-structure .explainer p { margin: 0 0 8px; font-size: 0.92rem; color: #33443a; }
body.page-structure .explainer p:last-child { margin-bottom: 0; }

/* ===== index.php redesign (Nov 2026): compact home page ===== */
body.page-home .subtitle { margin: -4px 0 18px; font-size: 0.98rem; color: #626262; }
body.page-home .home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.btn-primary, .btn-secondary { display: inline-block; font-family: inherit; font-size: 0.92rem; line-height: 1.2; padding: 10px 18px; border-radius: 0; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: #B5443A; color: #fff; border: 1px solid #B5443A; }
.btn-primary:hover { background: #943229; border-color: #943229; }
.btn-secondary { background: #fff; color: #1E6887; border: 1px solid #CCCCCC; }
.btn-secondary:hover { background: #F4F4F4; }
.btn-primary:focus-visible, .btn-secondary:focus-visible { outline: 2px solid #1A7E9E; outline-offset: 2px; }

/* the single "TIMS Thesaurus" root the eight chapters hang under */
body.page-home .root-card { flex: 1 1 auto; min-width: 0; cursor: pointer; border: 1px solid #DDDDDD; border-left: 3px solid #1E6887; border-radius: 0; padding: 14px 16px; }
body.page-home .root-card:hover { background: #F4F4F4; }
body.page-home .root-card b { display: block; font-size: 1.15rem; color: #1E6887; }
body.page-home .root-card span { font-size: 0.82rem; color: #626262; }
body.page-home .children > .tree-controls { margin: 6px 0 2px; }

/* info dialogs (About / Downloads) -- same frame as .text-modal */
dialog.info-modal { width: min(640px, 92vw); max-height: 86vh; margin: auto; border: 1px solid #CCCCCC; border-radius: 0; padding: 0; overflow: hidden; color: #333333; background: #fff; }
dialog.info-modal::backdrop { background: rgba(38, 34, 32, 0.45); }
.info-modal-body { padding: 16px 20px 20px; max-height: calc(86vh - 44px); overflow: auto; font-size: 0.95rem; line-height: 1.55; }
.info-modal-body p { margin: 0 0 12px; }
.info-modal-body h3 { margin: 18px 0 6px; font-size: 0.78rem;  color: #626262; }
.info-modal-body .pilot-notice { font-size: 0.86rem; color: #626262; background: #F4F4F4; border-left: 3px solid #1A7E9E; padding: 10px 14px; border-radius: 0; margin: 0 0 14px; }
.info-modal-body .pilot-notice a { color: #1E6887; font-style: normal; font-weight: 600; }
.info-modal-body .scheme-uri { font-family: var(--font-mono, Consolas, monospace); font-size: 0.78rem; color: #626262; }
.info-modal-body a { color: #1E6887; }
.info-modal-body .legend-list { margin: 0 0 14px; padding-left: 0; list-style: none; font-size: 0.85rem; color: #626262; }
.info-modal-body .legend-list li { margin: 0 0 4px; }
.info-modal-body .dl-group { padding: 4px 0 6px; }
.info-modal-body .dl-group + .dl-group { border-top: 1px dashed #DDDDDD; margin-top: 6px; padding-top: 2px; }
.info-modal-body .dl-group p { color: #494949; }
.info-modal-body .dl-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.info-modal-body .dl-buttons a { color: inherit; }
.info-modal-body .dl-buttons a.btn-primary { color: #fff; }
.info-modal-body .dl-buttons a.btn-secondary { color: #1E6887; }

/* ===== Nov 2026 restyle: reference/archive look =====
   Rows divided by rules instead of boxed cards; the coloured left edge
   stays only where it carries meaning (relation type). */
body.page-home a.card, body.page-home .root-card, body.page-search .result {
  border: 0; border-bottom: 1px solid #DDDDDD; border-left: 3px solid transparent; padding: 12px 14px; margin: 0; }
body.page-home .node { margin: 0; }
body.page-home .root-card { border-left-color: #1E6887; border-top: 2px solid #1E6887; }
body.page-home a.card.rel-type { border-left-color: #7fa0bc; }
body.page-home a.card.rel-part { border-left-color: #b391c4; }
body.page-home a.card.rel-force { border-left-color: #6B8E5A; }
body.page-search .result { border-left-color: #1A7E9E; }
body.page-home a.card b, body.page-home .root-card b, body.page-search .result b { font-weight: 600; }
body.page-home a.card span:not(.branch), body.page-home .root-card span { font-family: var(--font-mono, monospace); font-size: 0.76rem; }
.pilot-notice, .info-modal-body .pilot-notice { border: 1px solid #DDDDDD !important; border-left: 3px solid #1A7E9E !important; }
body.page-home .search-cta, body.page-concept .link-panel, body.page-concept .labels { border: 1px solid #DDDDDD; }
.text-modal-head, body.page-concept .labels b, body.page-concept .rel b, body.page-concept .link-panel b.heading,
body.page-search .secondary-head, .info-modal-body h3, body.page-structure .explainer-label { font-size: 0.82rem; font-weight: 600; }
body.page-about .thesaurus h1, body.page-home .thesaurus h1, body.page-search .thesaurus h1,
body.page-concept .thesaurus h1, body.page-structure .thesaurus h1, body.page-structure .thesaurus h2 { font-weight: 600; letter-spacing: -0.01em; }
