.dcg-book{--ue:#3f4852;--wash:#e8ebef;--line:var(--ue);font:16px/1.65 system-ui,sans-serif;color:#222e38;background:var(--wash);padding:clamp(14px,3vw,34px);border-radius:14px;overflow-wrap:anywhere}
.dcg-book[data-ue="1"]{--ue:#a52d17;--wash:#ffd3c3;--line:#f0441f}.dcg-book[data-ue="2"]{--ue:#682c73;--wash:#e5d1ed}.dcg-book[data-ue="4"]{--ue:#855b16;--wash:#ecddbb}.dcg-book[data-ue="5"]{--ue:#526200;--wash:#e6f2ab;--line:#a1bb00}.dcg-book[data-ue="6"]{--ue:#246447;--wash:#cde4d6}.dcg-book[data-ue="8"]{--ue:#00647b;--wash:#b9edf5;--line:#00afd0}.dcg-book[data-ue="9"]{--ue:#352bb0;--wash:#dcd9ff;--line:#5c47ff}.dcg-book[data-ue="10"]{--ue:#263f78;--wash:#cdd9f0}.dcg-book[data-ue="12"]{--ue:#a12c57;--wash:#f0cbd8}
.dcg-book *{box-sizing:border-box}.dcg-book header{border-left:7px solid var(--line);padding:.35em 1em}.dcg-book h1,.dcg-book h2,.dcg-book h3,.dcg-book h4,.dcg-book h5,.dcg-book h6{color:var(--ue);line-height:1.2}.dcg-book h1{font-size:clamp(1.65rem,4vw,2.7rem);margin:.5em 0}.dcg-book h2{font-size:1.45rem;border-bottom:2px solid var(--line);padding-bottom:.35em;margin:1.6em 0 .5em}.dcg-book article{--inset:clamp(14px,3.5vw,40px);background:#fff;color:#202b34;padding:var(--inset);border-radius:9px;margin:1rem 0}.dcg-book p{font:inherit;color:inherit;margin:.65em 0}.dcg-book p.point{display:list-item;margin-left:1.3em}.dcg-book .method,.dcg-book .alert{border-left:4px solid #28736e;padding-left:.6em}.dcg-book .alert{border-color:#ad591e}.dcg-book .method:before{content:'↳ '}.dcg-book .alert:before{content:'⚠ '}.dcg-book .src,.dcg-book footer{font-size:.86rem;line-height:1.5;color:#424a51}.dcg-book a{color:inherit;text-decoration:underline}.dcg-book .tbl{overflow:auto;max-width:100%;margin:1em 0}.dcg-book table{border-collapse:collapse;width:100%;font-size:1em}.dcg-book th,.dcg-book td{padding:.42em .72em;text-align:start;vertical-align:top;border:1px solid #d1d7db}.dcg-book th{background:var(--wash);color:#202b34}.dcg-book td p,.dcg-book th p{margin:0}.dcg-book figure{
  margin:1.5em calc(-1 * var(--inset) + 4px);
  max-width:none;
  overflow-x:auto;
  overscroll-behavior-x:contain;
}
.dcg-book figure a{display:block;min-width:1000px}
.dcg-book figure img{display:block;width:100%;max-width:none;height:auto;cursor:zoom-in}.dcg-book select,.dcg-book button,.dcg-zoom button{font:inherit;color:#1b2732;background:white;border:1px solid #788591;border-radius:6px;padding:.45em .7em;min-height:44px}.dcg-book .navigation{display:grid;gap:.6rem;margin:1rem 0}.dcg-book select{display:block;width:100%}.dcg-book label{color:#242e39}.dcg-book .progress{display:flex;align-items:center;flex-wrap:wrap;gap:1rem}.dcg-zoom{max-width:96vw;max-height:95vh;width:96vw;padding:12px;border:0}.dcg-zoom::backdrop{background:#171717ca}.dcg-zoom div{overflow:auto;max-height:80vh}.dcg-zoom img{display:block;max-width:none;width:max(1100px,100%);height:auto}.dcg-book :focus-visible{outline:3px solid var(--ue);outline-offset:2px}@media(max-width:600px){.dcg-book table{min-width:25rem}.dcg-book{padding:10px}.dcg-book article{--inset:14px}}
.dcg-book [data-marker]{display:block;position:relative;margin-left:2.1em}.dcg-book [data-marker]:before{content:attr(data-marker);position:absolute;right:calc(100% + .4em);color:inherit;font-weight:650}

.dcg-book[data-ue="3"]{--ue:#a81943;--wash:#f5c7d4;--line:#c31c50}.dcg-book[data-ue="11"]{--ue:#555b18;--wash:#e1e4bf;--line:#747c20}
.dcg-book[data-ue="3"] .point,.dcg-book[data-ue="11"] .point{list-style:none}.dcg-book[data-ue="3"] table,.dcg-book[data-ue="11"] table{overflow-wrap:normal;min-width:600px}

/* Les cellules suivent la taille du corps de fiche, sans grossissement hérité. */
.dcg-book table,.dcg-book th,.dcg-book td{font-size:1em;line-height:1.65}
.dcg-book td p,.dcg-book th p,.dcg-book td span,.dcg-book th span{font-size:inherit}
/* Chapter-first navigation; source document bodies remain unchanged. */
.dcg-book [hidden]{display:none!important}
.dcg-book .chapter-navigation{display:flex;gap:.75rem;flex-wrap:wrap;margin:1rem 0}
.dcg-book .chapter-search{display:block;width:100%;max-width:38rem;min-height:44px;margin:.5rem 0 1.3rem;padding:.7rem;font:inherit;border:1px solid #788591;border-radius:6px;background:white;color:#202b34}
.dcg-book .chapter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:.75rem}
.dcg-book .chapter-card{text-align:left;display:flex;flex-direction:column;gap:.5rem;padding:1rem;border-color:transparent;box-shadow:0 1px 3px #0002}
.dcg-book .chapter-card strong{color:var(--ue);font-size:1.05rem;line-height:1.45}
.dcg-book .chapter-card span{font-size:.88rem;color:#47515b}
.dcg-book .chapter-card:hover,.dcg-book .resource-link:hover{border-color:var(--ue)}
.dcg-book .resource-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}
.dcg-book .resource-groups section{padding:1rem;background:#ffffffb8;border-radius:9px;min-width:0}
.dcg-book .resource-groups h3{margin:0 0 .75rem}
.dcg-book .resource-link{display:block;width:100%;text-align:left;margin:.4rem 0;overflow-wrap:anywhere}
.dcg-book .resource-link span{font-size:.85em}

/* The pack browser uses the same subject presentation as the full reader. */
.flip-page-content > .dcg-book{min-height:100%;border-radius:0;padding:clamp(10px,2vw,24px)}
.flip-page-content .dcg-book article{margin:0;--inset:clamp(14px,2.5vw,28px)}
.flip-page-content .dcg-book h1{font-size:clamp(1.45rem,3vw,2rem);letter-spacing:normal}

.dcg-book[data-ue="7"]{--ue:#97452b;--wash:#f2d7c5;--line:#b95432}.dcg-book[data-ue="13"]{--ue:#75452e;--wash:#e8d6c4;--line:#98643c}
