/* === ANIMLA ENCYCLOPEDIA & INTERACTIVE TREE STYLES === */
.dex-nav-btn {
    background: var(--card-color);
    color: var(--text-muted-color);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.dex-nav-btn:hover {
    background-color: #3a3a3a;
    color: var(--text-color);
    transform: scale(1.05);
}

.dex-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted-color);
    margin-bottom: 12px;
    align-items: center;
}
.dex-breadcrumbs a {
    color: var(--text-muted-color);
    text-decoration: none;
    background: rgba(0,0,0,0.28);
    padding: 4px 9px;
    border-radius: 12px;
    transition: color 0.2s, background 0.2s;
}
.dex-breadcrumbs a:hover {
    color: var(--text-color);
    background: var(--card-color);
}

/* CTA Banner - Fixad så <strong><em> inuti span INTE radbryter! */
.dex-play-banner {
    background: linear-gradient(135deg, #1f2e21 0%, #172218 100%);
    border: 1px solid #3d5a40;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s, border-color 0.2s;
}
.dex-play-banner:hover {
    transform: translateY(-2px);
    border-color: var(--correct-color);
}
.dex-play-banner-text > strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 2px;
}
.dex-play-banner-text > span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted-color);
    line-height: 1.35;
}
.dex-play-banner-text > span strong {
    display: inline;
    color: #e0e8e0;
    font-weight: 600;
}
.dex-play-btn {
    background: var(--correct-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.35);
}

/* Sektionsavdelare */
.dex-section-divider {
    grid-column: span 6;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted-color);
    font-weight: 700;
    margin: 6px 0 2px 2px;
}
.dex-section-divider::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* Neutrala Faktabrickor */
.dex-card .attribute-tile {
    opacity: 1 !important;
    transform: none !important;
    background-color: #2b352c !important;
    border: 1px solid #3d4d3e;
}
.dex-card .attribute-tile .label {
    color: #a3b8a5;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.dex-card .attribute-tile .value {
    font-size: 0.92rem;
    color: #ffffff;
}

/* TAXONOMI-NODER UTAN BOCKAR */
.dex-card .node-row {
    opacity: 1 !important;
    transform: none !important;
}
.dex-card .node-connector {
    transform: scaleY(1) !important;
    background-color: #6c8c6e !important;
    top: 14px;
    left: 11px;
}
.dex-tree-bullet {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dex-tree-bullet::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #1e261f;
    border: 2.5px solid #8ab88d;
    box-shadow: 0 0 0 2px #2b352c;
}
.dex-tree-bullet::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #8ab88d;
}
.dex-card .node-text {
    color: #e0e8e0;
}
.dex-card .node-text strong.rank-label {
    color: #a3b8a5;
    font-weight: 600;
}
.dex-card .node-text a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.4);
    transition: color 0.2s, border-color 0.2s;
}
.dex-card .node-text a:hover {
    color: var(--correct-color);
    border-bottom-color: var(--correct-color);
}

/* Kort-header & Wiki-knapp */
.dex-animal-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dex-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.dex-wiki-btn {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.dex-wiki-btn:hover { transform: scale(1.1); }
.dex-wiki-btn svg { width: 18px; height: 18px; display: block; }
.dex-wiki-btn svg path { fill: #000; }

/* MINI-QUIZ */
.inline-quiz-box {
    grid-column: span 6;
    background-color: #161a16;
    border: 1px solid #343d34;
    border-left: 3px solid var(--order-color);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 4px 0 6px 0;
    text-align: left;
}
.inline-quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--order-color);
    font-weight: 700;
    margin-bottom: 4px;
}
.inline-quiz-question {
    font-size: 0.86rem;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.35;
}
.inline-quiz-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
@media (max-width: 420px) {
    .inline-quiz-options { grid-template-columns: 1fr; }
}
.quiz-opt-btn {
    background-color: #2a2a2a;
    color: var(--text-color);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 8px 6px;
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.quiz-opt-btn:hover:not(:disabled) {
    background-color: #3a3a3a;
    border-color: #777;
}
.quiz-opt-btn.correct-ans {
    background-color: var(--correct-color) !important;
    border-color: var(--correct-color) !important;
    color: #fff;
}
.quiz-opt-btn.wrong-ans {
    background-color: var(--incorrect-color) !important;
    border-color: var(--incorrect-color) !important;
    color: #fff;
    opacity: 0.85;
}
.quiz-opt-btn:disabled { cursor: default; }

.quiz-feedback-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin-top 0.25s ease;
    font-size: 0.8rem;
    color: var(--text-muted-color);
    border-top: 1px solid transparent;
}
.quiz-feedback-drawer.open {
    max-height: 90px;
    margin-top: 8px;
    padding-top: 8px;
    border-top-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.quiz-feedback-drawer a {
    color: var(--correct-color);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.quiz-feedback-drawer a:hover { text-decoration: underline; }

/* Kort-grid för Släktingar, Kategorisidor & Sökresultat (Fixad för långa sammansatta ord!) */
.relatives-section {
    margin-top: 18px;
    background-color: var(--card-color);
    border-radius: 15px;
    padding: 15px;
}
.relatives-section h2, .relatives-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-color);
}
.relatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 8px;
}
.relative-link-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2a;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.15s, background 0.2s;
    border: 1px solid transparent;
    min-width: 0;
    overflow: hidden;
}
.relative-link-card span {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}
.relative-link-card:hover {
    background: #344336;
    border-color: #4f6b52;
    transform: translateY(-2px);
}
.relative-link-card img {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    background: #333;
    flex-shrink: 0;
}
.taxon-badge-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #2b352c;
    border: 1px solid #3d4d3e;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.15s, border-color 0.2s;
    min-width: 0;
    overflow: hidden;
}
.taxon-badge-card:hover {
    transform: translateY(-2px);
    border-color: var(--correct-color);
}
.taxon-badge-card strong {
    font-size: 0.84rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.taxon-badge-card span { font-size: 0.72rem; color: var(--text-muted-color); margin-top: 2px; }

/* Sökruta med förstoringsglas-ikon på /animals/ */
.dex-search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}
.dex-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted-color);
    pointer-events: none;
}
html[dir="rtl"] .dex-search-icon {
    left: auto;
    right: 16px;
}
#dex-search-input {
    width: 100%;
    padding: 14px 18px 14px 44px;
    border-radius: 25px;
    border: 1px solid #333;
    background-color: var(--card-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
html[dir="rtl"] #dex-search-input {
    padding: 14px 44px 14px 18px;
}
#dex-search-input:focus {
    outline: none;
    border-color: var(--correct-color);
}

/* === LIVETS TRÄD (hjulet, tree.js) PÅ DJURSIDOR, GRUPPSIDOR OCH I REGISTRET === */
.tree-explorer-box {
    background-color: var(--card-color);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 18px;
}
.tree-explorer-header { margin-bottom: 10px; }
.tree-title-icon { width: 1.3em; height: 1.3em; vertical-align: -.28em; margin-right: 6px; fill: none; stroke: var(--tree-shared, currentColor);
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Trädrutan: nästan kvadratisk (hjulet är runt); i djurkortets rutnät över hela bredden */
.dex-tree { grid-column: 1 / -1; margin: 2px 0 8px; }
.dex-tree .tree-stage, .tree-explorer-box .tree-stage { height: auto; aspect-ratio: 1 / 0.9; max-height: 620px; }
/* Filterbrickan med en vanlig länk till gruppens eller djurets sida (ny flik med Ctrl/Cmd-klick eller långtryck) */
.tree-filter-link { flex-shrink: 0; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.tree-filter-link:hover { text-decoration-thickness: 2px; }

/* Storleksjämförelsen: silhuetter i samma skala med pilar för måttet (size-compare.js, tools/size_figure.py) */
.size-compare { grid-column: 1 / -1; margin: 4px 0 2px; }
.size-compare .dex-section-divider { margin-bottom: 8px; }
.sz-figure { min-height: 180px; }
.size-fig { display: block; width: 100%; height: auto; max-height: 300px; margin: 0 auto; color: var(--text-color, #fff); overflow: visible; }
.size-fig .sz-arrow, .size-fig .sz-guide, .size-fig .sz-bar, .size-fig .sz-ground, .size-fig .sz-find { stroke: currentColor; fill: none; stroke-linecap: round; }
.size-fig .sz-guide { opacity: .5; }
.size-fig .sz-ground { opacity: .3; }
.size-fig .sz-find { opacity: .6; stroke-dasharray: 2 2; }
.size-fig .sz-head { fill: currentColor; }
.size-fig text { fill: currentColor; font-family: inherit; }
.size-fig .sz-val { font-weight: 700; }
.size-fig .sz-type { font-style: italic; opacity: .78; }
/* Vikten: en kettlebell per djur, ytan följer snittvikten */
.sz-weights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; margin: 6px 0 2px; }
.sz-w { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; min-height: 96px; }
.sz-kb-svg { display: block; height: auto; }
.sz-kb path { stroke: #8a8376; }
.sz-kb circle { fill: #8a8376; }
.sz-w-val { font-weight: 700; font-size: .85rem; margin-top: 4px; }
.sz-w-name { font-size: .72rem; opacity: .75; }
.sz-len, .sz-wt { text-align: center; margin: 4px 2px 10px; }
.sz-ratio { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.sz-desc { margin: 2px 0 0; font-size: .85rem; opacity: .85; }
.sz-picker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 2px; }
.sz-picker-label { font-size: .75rem; font-weight: 700; opacity: .8; margin-right: 2px; }
.sz-chip { font: inherit; font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: inherit; cursor: pointer; }
.sz-chip[aria-pressed="true"] { background: var(--accent, #e8b24a); border-color: var(--accent, #e8b24a); color: var(--accent-ink, #1c1a14); font-weight: 700; }
.sz-search { font: inherit; font-size: .8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: inherit; min-width: 9rem; flex: 1 1 9rem; }
.size-credit { font-size: .68rem; line-height: 1.4; opacity: .7; margin: 8px 2px 0; }
.size-credit a { color: inherit; }

/* Jämförelsesidan (compare.js) */
.cmp-page { text-align: left; }
.cmp-title { font-size: 1.4rem; margin: 0 0 6px; }
.cmp-intro { margin: 0 0 12px; font-size: .9rem; opacity: .85; }
.cmp-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 12px; }
.cmp-input { font: inherit; font-size: .9rem; padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: inherit; min-width: 0; }
.cmp-swap { font: inherit; font-size: 1.1rem; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: inherit; cursor: pointer; }
.cmp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmp-card { display: flex; gap: 8px; align-items: center; min-width: 0; }
.cmp-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex: none; }
.cmp-card div { display: flex; flex-direction: column; min-width: 0; font-size: .85rem; }
.cmp-card i { opacity: .7; font-size: .75rem; overflow-wrap: anywhere; }
.cmp-card a { font-size: .75rem; }
.cmp-h { font-size: 1.1rem; margin: 14px 0 4px; text-align: center; }
.cmp-grid { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 6px; }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 7px 10px; border-radius: 6px; color: #fff; }
.cmp-row .label { grid-column: 1 / -1; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.cmp-row .value { font-weight: 700; font-size: .88rem; }
.cmp-row .value small { display: block; font-weight: 400; font-style: italic; opacity: .85; }
.cmp-row.cmp-wide .value { grid-column: 1 / -1; }
.cmp-row.correct { background: var(--correct-color); } .cmp-row.close { background: var(--order-color); } .cmp-row.incorrect { background: var(--incorrect-color); }
.cmp-pairs h2 { font-size: 1rem; margin: 18px 0 6px; }
.cmp-pairs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cmp-pairs li { display: flex; flex-direction: column; font-size: .85rem; }
.cmp-pairs li span { font-size: .75rem; opacity: .75; }
.size-fig .sz-sep { stroke: currentColor; opacity: .4; }
.sz-more { display: inline-block; margin-top: 6px; font-size: .8rem; }

/* ---------- Djursidan: en kolumn på mobil, två på bred skärm (.dex-layout) ----------
   DOM-ordningen = datorns kolumner (A: foto, storlek, minifråga 3, släktingtabell; B: namn, taxonomi, träd, minifråga 1,
   fakta, mått, minifråga 2, texten). På smal skärm "försvinner" kolumnerna (display: contents) och --o ger mobilens
   ordning: foto, namn, taxonomi, träd, fråga 1, fakta, fråga 2, text, mått, storlek, fråga 3, tabell. */
.dex-layout { display: flex; flex-direction: column; gap: 10px; }
.dex-layout > .dex-col { display: contents; }
.dex-layout > .dex-col > * { order: var(--o, 50); min-width: 0; }
.dex-block:empty { display: none; }
.dex-species .dex-facts, .dex-species .dex-tax { margin: 0; }
.dex-species .dex-facts [data-attribute="habitat"] { grid-column: span 6; }
.dex-species .dex-measure [data-attribute="length"], .dex-species .dex-measure [data-attribute="weight"] { grid-column: span 3; }
.dex-species .dex-animal-title-group { gap: 2px; margin: 0; }
.dex-species .animal-name { font-size: 1.7rem; line-height: 1.15; margin: 0; }
.dex-subtitle { font-size: .88rem; color: var(--text-muted-color); margin: 0; }
.dex-photo { margin: 0; }
.dex-card .dex-photo .animal-image-wrapper { position: relative; width: 100%; height: auto; border-radius: 12px; overflow: hidden; }
.dex-card .dex-photo .animal-image { width: 100%; height: auto; max-height: min(72vh, 620px); object-fit: cover; display: block; }
.dex-species .size-compare, .dex-species .dex-tree { margin: 0; }
@media (min-width: 1100px) {
    body.dex-wide main#game-container, body.dex-wide > header { max-width: 1180px; }
    .dex-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
    .dex-layout > .dex-col { display: flex; flex-direction: column; gap: 14px; }
    .dex-layout > .dex-col > * { order: 0; }
    .dex-species .animal-name { font-size: 2.3rem; }
    .dex-species .dex-subtitle { font-size: 1rem; }
}

/* ---------- Tabellen "… bland sina släktingar" (tools/relatives_table.py) ---------- */
.rel-table { container-type: inline-size; }
.rt-sent { font-size: .92rem; line-height: 1.45; margin: 4px 0 8px; }
.rt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rt-row, .rt-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; row-gap: 3px; align-items: center; padding: 5px 6px; border-radius: 6px; }
.rt-head { font-size: .7rem; opacity: .8; padding-bottom: 2px; }
.rt-head > span:nth-child(-n+2) { display: none; }
.rt-head .rt-cell { display: block; }
.rt-cell { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: .74rem; }
.rt-sil, .rt-thumb { grid-row: span 3; justify-self: center; }
.rt-sil { width: 44px; height: 34px; object-fit: contain; }
.rt-thumb { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.rt-name { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.rt-name a { color: inherit; text-decoration: underline; text-decoration-color: rgba(127, 127, 127, .5); text-underline-offset: 2px; }
.rt-name a:hover { text-decoration-color: currentColor; }
.rt-name i { display: block; font-weight: 400; font-size: .72rem; opacity: .7; }
.rt-self { background: rgba(232, 168, 56, .18); box-shadow: inset 0 0 0 1px rgba(200, 140, 30, .45); }
.rt-track { position: relative; height: 8px; border-radius: 4px; background: rgba(127, 127, 127, .2); }
.rt-bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: #6f9a62; }
.rt-self .rt-bar { background: #c9832a; }
.rt-bar.rt-other { background: transparent; border: 1.5px dashed currentColor; opacity: .55; box-sizing: border-box; }
.rt-avg { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: currentColor; opacity: .75; }
.rt-val { white-space: nowrap; min-width: 9ch; text-align: right; opacity: .85; font-variant-numeric: tabular-nums; }
.rt-note { font-size: .72rem; opacity: .75; margin: 6px 0 0; }
@container (min-width: 560px) {
    .rt-row, .rt-head { grid-template-columns: 44px minmax(110px, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); column-gap: 14px; }
    .rt-cell { grid-column: auto; }
    .rt-sil, .rt-thumb { grid-row: auto; }
    .rt-head > span:nth-child(-n+2) { display: block; }
}
.taxon-badge-card.is-static { cursor: default; opacity: .72; background: rgba(35, 43, 36, .55); }
.taxon-badge-card.is-static:hover { transform: none; }

/* ---------- Jämförelsesidan på bred skärm: figuren till vänster, egenskaperna till höger; paren i kolumner ---------- */
@media (min-width: 1100px) {
    .cmp-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
    .cmp-main .cmp-grid { margin-top: 0; }
    .cmp-pairs ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 28px; }
    .cmp-pairs li { min-width: 0; }
}

/* ---------- Löptext (tools/page_text.py), "Se även" och storlekstabellen på gruppsidan ---------- */
.dex-about h2 { font-size: 1.1rem; margin: 4px 0 6px; }
.dex-about p { font-size: .95rem; line-height: 1.6; margin: 0 0 10px; }
.dex-about a { color: inherit; text-decoration: underline; text-decoration-color: rgba(127, 127, 127, .55); text-underline-offset: 2px; }
.dex-about a:hover { text-decoration-color: currentColor; }
.dex-group-page .dex-about { margin: 6px 0 14px; max-width: 72ch; }
.taxon-badge-card .rank { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.rel-table-group { margin-top: 16px; }

/* Gruppsidan på dator: text, fakta och minifrågan till vänster, trädet till höger (aldrig i full bredd).
   Registrets träd hålls också smalare än sidan; helskärmsknappen finns för den som vill se mer. */
.grp-tree .dex-tree { margin: 10px 0 0; }
@media (min-width: 1100px) {
    .grp-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
    .grp-tree { position: sticky; top: 16px; }
    .grp-tree .dex-tree { margin: 0; }
    .dex-group-page .dex-about { max-width: none; }
    body.dex-index-page .tree-explorer-box .dex-tree { max-width: 720px; margin-left: auto; margin-right: auto; }
}
