/* RFMB — catalogue, continuous reading and contextual contributions. */
:root {
  --reader-sage: #edf2eb;
  --reader-blue: #245be8;
  --reader-border: #d9e1de;
  --reader-secondary: #526772;
  --reader-soft-text: #5b7062;
}
[hidden] { display: none !important; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 3px solid #245be8; outline-offset: 4px; }

/* Catalogue: useful detail, genuine links and a separate bookmark control. */
.catalog-search { margin: 0 0 24px; }
.catalog-search > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.catalog-search > div { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #aebec3; border-radius: 7px; padding: 0 16px; }
.catalog-search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.5; flex-shrink: 0; }
.catalog-search input { font: inherit; font-size: 16px; border: 0; background: none; outline: 0; min-width: 0; width: 100%; height: 56px; color: var(--ink); }
.catalog-search:focus-within > div { border-color: var(--blue); box-shadow: 0 0 0 3px #245be81a; }
.catalog-search kbd { font: 12px monospace; color: #526772; border: 1px solid #b9c7cb; border-radius: 3px; padding: 2px 6px; }
.catalog-toolbar { gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-group button { min-height: 44px; padding: 10px 14px; font-size: 14px; border: 1px solid transparent; border-radius: 6px; color: #526772; }
.filter-group button:hover { border-color: #c1cfd2; background: #fff; }
.filter-group button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.catalog-toolbar #resource-count { font-size: 14px; color: #526772; }
#resource-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.resource-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #d7e1dd; border-radius: 9px; transition: border-color .15s, box-shadow .15s; }
.resource-card:hover { border-color: #91afd4; box-shadow: 0 5px 18px #142d4008; }
.resource-card:focus-within { border-color: var(--blue); }
.resource-card-visual { position: relative; flex-shrink: 0; background: #f0f3ef; height: 148px; overflow: hidden; border-bottom: 1px solid #e2e8df; }
.resource-visual-open { width: 100%; height: 100%; display: block; padding: 0; background: transparent; border: 0; }
.resource-card-visual .ouvrage-figure { height: 155px; width: 100%; max-width: 275px; margin: -7px auto 0; display: block; }
.resource-card-number { position: absolute; left: 16px; top: 15px; font-size: 12px; font-weight: 600; letter-spacing: 1px; pointer-events: none; color: #526d61; }
.save-resource { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #bfcfc7; background: #fff; border-radius: 6px; color: #506b60; flex-shrink: 0; }
.save-resource svg { width: 19px; height: 19px; }
.save-resource:hover { border-color: var(--blue); color: var(--blue); }
.save-resource.is-saved { color: var(--blue); background: #edf2ff; border-color: #9eb7f8; }
.save-resource.is-saved svg { fill: #d8e5ff; }
.save-resource.has-label { width: auto; gap: 9px; padding-inline: 13px; font-size: 13px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.resource-card-visual .save-resource { position: absolute; top: 10px; right: 11px; }
.resource-card .resource-row { display: flex !important; flex: 1; flex-direction: column; align-items: stretch; gap: 0; text-align: left; width: 100%; border: 0; padding: 22px; min-height: 188px; background: #fff; }
.resource-card-type { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #536d61; line-height: 1.5; margin-bottom: 12px; }
.resource-card-type > span { color: #304b62; font-weight: 600; }
.resource-card .resource-row > strong { font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.3px; margin-bottom: 10px; }
.resource-card .resource-row:hover > strong { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.resource-card-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #526772; font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.resource-card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.resource-card-bottom > small { font-size: 12px !important; color: #526772 !important; margin: 0 !important; }
.resource-card-bottom > span { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--blue); font-weight: 600; }
.resource-card-bottom svg { width: 17px; height: 17px; }
.resource-match { display: block; padding: 0 22px 22px; color: #526772; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.resource-match > span, .resource-match > strong, .resource-match > small { display: block; color: #2455c9; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.resource-match p { margin: 0; }
.resource-match > small { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; margin-bottom: 0; min-height: 28px; font-size: 13px; }
.resource-match > small svg { width: 17px; height: 17px; }
.resource-match a, a.resource-match { text-underline-offset: 3px; }
.resource-match:hover { color: #294d66; }
.resource-match mark { background: #edf2ff; color: #183d83; }

/* A compact list keeps titles and matched passages as distinct native links. */
.catalog-row-item { display: grid; grid-template-columns: 32px minmax(0,1fr) 86px 44px; align-items: start; gap: 22px; min-width: 0; padding: 24px; border: 1px solid #d7e1dd; border-radius: 6px; background: #fff; }
.catalog-row-item:hover { border-color: #91afd4; }
.catalog-row-item:focus-within { border-color: #245be8; }
.catalog-row-number { color: #627b70; font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 4px; }
.catalog-row-main { min-width: 0; }
.catalog-row-meta { display: flex; flex-wrap: wrap; gap: 5px 16px; color: #526d61; font-size: 12px; line-height: 1.6; }
.catalog-row-meta > span + span { color: #607481; }
.catalog-row-main h3 { margin: 7px 0 9px; font-size: 19px; line-height: 1.4; letter-spacing: -.2px; font-weight: 600; overflow-wrap: anywhere; }
.catalog-row-main h3 a { color: #142d40; text-decoration: none; }
.catalog-row-main h3 a:hover { color: #245be8; text-decoration: underline; text-underline-offset: 4px; }
.catalog-row-description { margin: 0; color: #526772; font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.catalog-row-unit { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; min-width: 0; }
.catalog-row-unit > span { color: #607481; font-size: 11px; line-height: 1.5; }
.catalog-row-unit > strong { color: #254c65; font-size: 16px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.catalog-row-passage { display: block; color: #526772; font-size: 14px; line-height: 1.7; text-decoration: none; margin-top: 12px; padding-left: 14px; border-left: 2px solid #c7d8f4; overflow-wrap: anywhere; }
.catalog-row-passage > span { color: #2455c9; display: block; font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.catalog-row-passage > p { margin: 0; }
.catalog-row-passage > small { color: #2455c9; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; min-height: 28px; margin-top: 4px; }
.catalog-row-passage > small svg { width: 16px; height: 16px; }
.catalog-row-passage:hover > small { text-decoration: underline; text-underline-offset: 3px; }
.catalog-empty { grid-column: 1/-1; background: #fff; border: 1px dashed #b8c9bf; border-radius: 8px; padding: 34px; }
.catalog-empty strong { font-size: 23px; font-weight: 500; line-height: 1.35; }
.catalog-empty p { font-size: 16px; line-height: 1.75; color: #526772; margin: 12px 0 20px; max-width: 62ch; }
.catalog-empty .text-link { min-height: 44px; font-size: 14px; }
.catalog-note { font-size: 13px; line-height: 1.8; margin-top: 24px; color: #526772; }
.dictionary-card { border-radius: 8px; }
.ouvrage-figure { display: block; width: 100%; max-height: 260px; }
.ouvrage-figure text { font: 12px system-ui,sans-serif; fill: #557097; stroke: none; }
.ouvrage-figure .figure-dimension { stroke: #9eafa9; stroke-dasharray: 3 3; stroke-width: 1; }
.fil-avatar { width: 62px; height: 62px; flex-shrink: 0; overflow: visible; }

/* A fiche is a document: one continuous reading surface and six deep links. */
.reader { max-width: 1320px; margin: auto; padding: 0 40px 64px; font-family: inherit; }
.reader.guide-is-open { max-width: 1560px; }
.reader-return { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: #426174; padding: 7px 0; margin: 18px 0 0; }
.reader-return:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.reader-return svg { width: 18px; height: 18px; }
.reader-return-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px; margin-top: 18px; }
.reader-return-bar .reader-return { margin: 0; min-width: 0; }
.reader-selection-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 13px; color: #426174; white-space: nowrap; }
.reader-selection-link:hover { color: #2455c9; text-decoration: underline; text-underline-offset: 4px; }
.reader-selection-link svg { width: 17px; height: 17px; }
.reader-selection-link [data-selection-count] { color: #2455c9; font-variant-numeric: tabular-nums; }
.reader-heading { display: flex; justify-content: space-between; gap: 30px; padding: 18px 0 24px; border-bottom: 1px solid var(--reader-border); }
.reader-heading > div:first-child { max-width: 900px; min-width: 0; }
.reader-breadcrumb { font-size: 13px; color: #526d61; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reader-breadcrumb > span { margin: 0 3px; color: #647b6f; }
.reader h1 { font-size: clamp(30px,3vw,44px); font-weight: 500; line-height: 1.18; letter-spacing: -1.25px; margin: 0 0 14px; max-width: 27ch; }
.reader-intro { font-size: 17px; line-height: 1.75; max-width: 68ch; color: #526772; margin: 0; }
.reader-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 22px; font-size: 12px; color: #526772; }
.reader-unit { padding: 5px 10px; background: #edf2ff; border: 1px solid #cfdcfc; color: #2455c9; font-size: 14px; border-radius: 5px; font-weight: 600; }
.reader-meta > .rfmb-resource-version { display: block; font-size: 12px; border: 0; padding: 0; margin: 0; color: #526772; }
.reader-meta .rfmb-resource-version strong { font-weight: 600; }
.reader-heading-actions { display: flex; align-items: flex-start; gap: 8px; padding-top: 3px; flex-shrink: 0; flex-wrap: wrap; max-width: 240px; }
.reader-heading-actions > .save-resource.has-label { flex-basis: 100%; }
.reader-icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #c6d3cf; background: #fff; border-radius: 6px; color: #526772; }
.reader-icon-button svg { width: 19px; height: 19px; }
.reader-icon-button:hover { border-color: var(--blue); color: var(--blue); }
.reader-guide-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #c4d3c5; border-radius: 6px; background: #edf2eb; padding: 4px 11px; font: inherit; font-size: 13px; font-weight: 600; color: #315d49; }
.reader-guide-toggle .fil-avatar { width: 34px; height: 34px; }
.reader-guide-toggle:hover, .reader-guide-toggle[aria-expanded="true"] { background: #e0eadb; border-color: #94af98; }
.reader-summary { display: grid; grid-template-columns: minmax(100px,.55fr) minmax(0,1.7fr) minmax(0,1.45fr); gap: 0; padding: 0; margin: 24px 0 0; border: 1px solid #d8e2d9; border-radius: 7px; background: #f0f4ed; overflow: hidden; }
.reader-summary-item { min-width: 0; padding: 19px 22px; }
.reader-summary-item + .reader-summary-item { border-left: 1px solid #d8e2d9; }
.reader-summary-item > span, .reader-summary-item dt, .reader-summary-item > strong:first-child { display: block; font-size: 12px; font-weight: 600; color: #536e5e; margin-bottom: 7px; }
.reader-summary-item p, .reader-summary-item dd { margin: 0; font-size: 14px; line-height: 1.75; color: #355548; }
.reader-summary-item:first-child p, .reader-summary-item:first-child dd { font-size: 24px; font-weight: 500; line-height: 1.4; color: #2455c9; }
.reader-summary-item:first-child > strong { font-size: 25px; font-weight: 500; line-height: 1.4; color: #2455c9; }
.reader-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 32px; padding-top: 30px; align-items: start; }
.reader-nav { position: sticky; top: 124px; min-width: 0; }
.reader-nav-current { display: none; }
.reader-nav-links { min-width: 0; }
.reader-nav > .tiny-label { font-size: 11px; color: #526d61; margin: 0 0 14px; padding: 0 12px; letter-spacing: 1px; }
.reader-nav-links > a { display: flex; align-items: center; width: 100%; gap: 10px; border: 1px solid transparent; background: none; padding: 13px 11px; text-align: left; border-radius: 6px; margin: 4px 0; color: #526772; min-height: 62px; }
.reader-nav-links > a:hover { background: #edf2eb; border-color: #d8e1d7; }
.reader-nav-links > a.active { background: #fff; border-color: #bfcfe2; color: var(--blue); box-shadow: 0 2px 4px #203c3e03; }
.reader-nav-index { font-size: 11px; align-self: flex-start; padding-top: 3px; color: #56756a; }
.reader-nav-links > a > span:nth-child(2) { flex: 1; min-width: 0; }
.reader-nav-links > a strong { display: block; font-size: 14px; line-height: 1.5; font-weight: 600; color: #35596f; }
.reader-nav-links > a.active strong { color: #2455c9; }
.reader-nav-links > a small { display: block; font-size: 12px; margin-top: 3px; color: #526772; font-weight: 400; line-height: 1.45; }
.reader-nav-links > a > svg { width: 14px; height: 14px; opacity: 0; flex-shrink: 0; }
.reader-nav-links > a.active > svg { opacity: 1; }
.reader-nav > .reader-nav-contribute { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; margin-top: 16px; padding: 11px 12px; border: 1px solid #bfd1bd; border-radius: 6px; background: #edf3e9; color: #315d49; font-size: 13px; font-weight: 600; text-align: left; line-height: 1.6; }
.reader-nav > .reader-nav-contribute:hover { border-color: #7b9b79; background: #e4eddf; }
.reader-nav > .reader-nav-contribute svg { width: 17px; height: 17px; flex-shrink: 0; }
.reader-nav-note { display: flex; gap: 10px; padding: 21px 11px; margin-top: 16px; border-top: 1px solid #dbe3d7; }
.reader-nav-note svg { width: 21px; height: 21px; color: #526d61; flex-shrink: 0; }
.reader-nav-note p { font-size: 12px; color: #526d61; line-height: 1.7; margin: 0; }
.reader-body { min-width: 0; max-width: 900px; width: 100%; background: #fff; border: 1px solid var(--reader-border); border-radius: 9px; padding: 0 36px; outline: none; }
.reader-panel { padding: 28px 0 30px; scroll-margin-top: 124px; }
.reader-panel + .reader-panel { border-top: 1px solid #dce4dc; }
.reader-panel-title > span { font-size: 11px; letter-spacing: 1.25px; font-weight: 600; color: #526d61; display: block; margin-bottom: 12px; }
.reader-panel-title h2, .reader-panel-title h3 { font-size: 28px; font-weight: 500; letter-spacing: -.65px; line-height: 1.3; margin: 0 0 18px; color: var(--ink); }
.reader-panel-title > p { font-size: 16px; line-height: 1.8; color: #526772; margin: 0 0 23px; max-width: 68ch; }
.reader-illustration { background: #f3f6f1; border: 1px solid #dfe7da; border-radius: 6px; padding: 18px 22px 14px; margin: 22px 0 28px; }
.reader-illustration > .ouvrage-figure { max-height: 250px; }
.reader-illustration > span { display: block; color: #526d61; font-size: 12px; text-align: right; margin-top: 7px; }
.reader-prose { margin: 25px 0; }
.reader-prose h3, .reader-prose h4, .reader-related h3, .reader-related h4 { font-size: 17px; font-weight: 600; line-height: 1.5; margin: 0 0 10px; color: #274657; }
.reader-prose p { font-size: 16px; line-height: 1.85; color: #455f6f; margin: 0; max-width: 72ch; }
.reader-insight { background: #edf2ff; border: 1px solid #d4dffc; border-left: 3px solid var(--blue); border-radius: 4px; padding: 20px 23px; margin: 26px 0; }
.reader-insight > span { font-size: 11px; letter-spacing: 1.15px; color: #2455c9; font-weight: 600; }
.reader-insight p { font-size: 15px; line-height: 1.8; color: #365779; margin: 9px 0 0; }
.reader-insight.neutral { background: #f1f5ee; border-color: #d9e3d3; border-left-color: #738f7b; }
.reader-insight.neutral > span { color: #4c6e56; }
.reader-insight.neutral p { color: #45634e; }
.reader-aliases { padding: 18px 0 0; border-top: 1px solid #e0e7dc; font-size: 14px; color: #456576; }
.reader-aliases summary { cursor: pointer; min-height: 44px; padding: 9px 0; }
.reader-aliases > div { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.reader-aliases span { background: #f1f4f2; border: 1px solid #dbe4da; border-radius: 4px; font-size: 13px; padding: 6px 10px; }
.reader-section-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 23px; padding-top: 12px; }
.reader-section-actions button, .reader-section-actions a { min-height: 44px; padding: 9px 0; font-size: 13px; color: #426756; display: inline-flex; align-items: center; gap: 8px; }
.reader-section-actions svg { width: 17px; height: 17px; }
.reader-section-actions button:hover, .reader-section-actions a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.reader-next { display: none; }
.reader-bottom-feedback { border-top: 1px solid #dce4dc; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 18px 0; color: #526772; font-size: 14px; }
.reader-bottom-feedback > button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; font-size: 14px; color: #315d49; font-weight: 600; }
.reader-bottom-feedback svg { width: 18px; height: 18px; }
.reader-action-status { font-size: 14px; color: #2455c9; line-height: 1.7; }
.reader-action-status:not(:empty) { padding: 0 0 20px; }
.reader-source-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 25px 0; }
.reader-source-grid article { border: 1px solid #dbe4da; padding: 18px 15px; border-radius: 5px; }
.reader-source-grid span { font-size: 12px; color: #526d61; }
.reader-source-grid h3, .reader-source-grid h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 12px 0 8px; }
.reader-source-grid p { font-size: 14px; line-height: 1.75; color: #526772; margin: 0; }
.reader-method { margin: 0 0 28px; padding: 0; list-style: none; }
.reader-method li { display: flex; align-items: flex-start; gap: 18px; border-bottom: 1px solid #e0e7dc; padding: 21px 0; }
.reader-method li > span { display: grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; background: #edf2ff; border-radius: 50%; font-size: 12px; color: #2455c9; }
.reader-method p { font-size: 16px; line-height: 1.8; color: #455f6f; margin: 2px 0; }
.reader-example { padding: 25px; background: #f1f5ee; border: 1px solid #d6e3d3; border-radius: 6px; }
.reader-example > .tiny-label { font-size: 12px; line-height: 1.6; color: #506b59; letter-spacing: .8px; }
.reader-example-formula { font-size: 21px; line-height: 1.6; letter-spacing: -.35px; color: #35566c; margin: 19px 0 10px; overflow-wrap: anywhere; }
.reader-example > strong { font-size: 32px; line-height: 1.4; color: #2455c9; font-weight: 500; display: block; letter-spacing: -.6px; overflow-wrap: anywhere; }
.reader-example > p { font-size: 14px; line-height: 1.8; color: #526d61; margin: 18px 0 0; }
.reader-check-progress { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; color: #2455c9; font-size: 14px; }
.reader-check-progress > span + span { color: #526772; font-size: 12px; }
.reader-check-progress > button { min-height: 44px; padding: 5px 0; color: #2455c9; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.reader-check-progress > button:disabled { color: #70818c; text-decoration: none; cursor: default; }
.reader-checks { border: 1px solid #d6e1d6; border-radius: 6px; overflow: hidden; }
.reader-checks > label { display: flex; align-items: flex-start; gap: 14px; padding: 21px 20px; border-bottom: 1px solid #dfe7da; background: #fff; cursor: pointer; }
.reader-checks > label:last-child { border-bottom: 0; }
.reader-checks > label:has(input:checked) { background: #edf4e9; }
.reader-checks input { width: 20px; height: 20px; accent-color: #315d4c; flex-shrink: 0; margin: 4px 0 0; }
.reader-checks span { font-size: 16px; color: #455f6f; line-height: 1.75; }
.reader-note { font-size: 13px; color: #526d61; line-height: 1.8; margin: 18px 0; }
.reader-dpgf { border: 1px solid #d3dfda; border-radius: 6px; overflow: hidden; margin: 25px 0; }
.reader-dpgf > div:first-child { display: flex; justify-content: space-between; align-items: center; background: #edf2ed; padding: 11px 18px; gap: 14px; }
.reader-dpgf > div > span { font-size: 11px; letter-spacing: .8px; color: #526d61; font-weight: 600; }
.reader-dpgf button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 0; color: #315b4a; font-size: 14px; }
.reader-dpgf button svg { width: 17px; height: 17px; }
.reader-table-scroll { overflow-x: auto; }
.reader-dpgf table { width: 100%; border-collapse: collapse; font-size: 15px; color: #455f6f; }
.reader-dpgf th { text-align: left; font-weight: 600; background: #f6f9f4; font-size: 13px; color: #4b6658; padding: 13px 18px; }
.reader-dpgf td { padding: 19px 18px; border-top: 1px solid #dfe7da; line-height: 1.7; }
.reader-dpgf td:last-child { font-weight: 600; color: #2455c9; text-align: right; white-space: nowrap; }
.reader-dpgf > p { font-size: 12px; color: #526d61; margin: 0; padding: 13px 18px; background: #f8faf6; border-top: 1px solid #dfe7da; }
.reader-provenance { display: flex; gap: 14px; background: #f1f5ee; border: 1px solid #d9e3d3; border-radius: 6px; padding: 23px; }
.reader-provenance-dot { width: 8px; height: 8px; border-radius: 50%; background: #668261; flex-shrink: 0; margin-top: 8px; }
.reader-provenance strong { font-size: 16px; font-weight: 600; }
.reader-provenance p { font-size: 15px; line-height: 1.8; color: #506b59; margin: 10px 0 0; }
.reader .rfmb-resource-history { margin: 26px 0; padding: 8px 19px; border: 1px solid #d6e1d6; border-radius: 5px; }
.reader .rfmb-resource-history summary { font-size: 15px; color: #355d44; cursor: pointer; min-height: 44px; }
.reader .rfmb-history-content > p, .reader .rfmb-history-summary { font-size: 14px; color: #526772; }
.reader .rfmb-history-meta, .reader .rfmb-history-section, .reader .rfmb-history-credit, .reader .rfmb-history-diff > summary { font-size: 12px; color: #526772; }
.reader .rfmb-history-diff > summary { min-height: 32px; }
.reader .rfmb-history-diff h4 { font-size: 11px; color: #526772; }
.reader .rfmb-history-diff pre { font-size: 13px; color: #455f6f; }
.reader-related { border-top: 1px solid #dce4d7; margin-top: 27px; padding: 25px 0 0; }
.reader-related a { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 15px; border-bottom: 1px solid #dfe7da; padding: 16px 0; color: #2455c9; font-size: 15px; text-align: left; min-height: 48px; }
.reader-related a:hover { text-decoration: underline; text-underline-offset: 4px; }
.reader-related svg { width: 19px; height: 19px; flex-shrink: 0; }

/* Fil has one scroll surface and can be dismissed at every viewport width. */
.reader-guide { position: sticky; top: 120px; border: 1px solid #c4d5c1; background: var(--reader-sage); border-radius: 9px; padding: 20px; min-width: 0; max-height: calc(100dvh - 144px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #aabfa6 transparent; }
.guide-heading { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #cedcca; padding: 0 0 17px; margin: 0 0 18px; position: sticky; top: -20px; background: var(--reader-sage); z-index: 2; }
.guide-heading .fil-avatar { width: 48px; height: 48px; }
.guide-heading strong { font-size: 22px; font-weight: 600; color: #254c3a; line-height: 1.2; display: block; letter-spacing: -.4px; }
.guide-heading strong > span { display: block; font-size: 12px; letter-spacing: 0; margin-top: 6px; font-weight: 400; color: #4f6d57; }
.guide-heading small { font-size: 12px; color: #4f6d57; display: block; margin-top: 6px; line-height: 1.5; }
.guide-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #bfcebd; border-radius: 6px; background: #fff; margin-left: auto; color: #42644d; align-self: flex-start; }
.guide-close:hover { border-color: #6f916c; color: #254c3a; }
.guide-close svg { width: 20px; height: 20px; }
.guide-messages { max-height: none; overflow: visible; padding: 0; }
.guide-message { background: #fff; border: 1px solid #d8e3d2; border-radius: 2px 10px 10px 10px; padding: 17px; margin-bottom: 14px; }
.guide-message > span { font-size: 11px; letter-spacing: 1px; color: #4e7051; font-weight: 600; display: block; margin-bottom: 9px; }
.guide-message > p { font-size: 15px; line-height: 1.75; color: #3d6048; white-space: pre-line; margin: 0; overflow-wrap: anywhere; }
.guide-message.is-reader { background: #dfe9dc; border-color: #d1dfcc; border-radius: 10px 2px 10px 10px; margin-left: 12px; }
.guide-message.is-reader > p { color: #355a3a; font-size: 14px; }
.guide-message > button, .guide-message > a { display: flex; gap: 8px; align-items: center; color: #2455c9; font-size: 14px; text-align: left; min-height: 44px; padding: 10px 0 0; line-height: 1.5; }
.guide-message > button > svg, .guide-message > a > svg { width: 17px; height: 17px; flex-shrink: 0; }
.guide-suggestions { display: grid; gap: 8px; }
.guide-suggestions > button { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f6f9f2; border: 1px solid #c5d5bf; border-radius: 5px; padding: 12px; text-align: left; color: #42664a; font-size: 14px; min-height: 48px; line-height: 1.6; }
.guide-suggestions > button:hover { border-color: #829f7e; background: #fff; }
.guide-suggestions > button:last-child { margin-top: 3px; background: #fff; border-color: #b4c9b2; color: #315d49; }
.guide-suggestions svg { width: 17px; height: 17px; flex-shrink: 0; }
.guide-input-form { position: relative; background: #fff; border: 1px solid #aebfa7; border-radius: 6px; margin-top: 20px; }
.guide-input-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #245be818; }
.guide-input-form > textarea { border: 0; outline: 0; width: 100%; display: block; background: none; font: inherit; font-size: 16px; line-height: 1.65; resize: vertical; min-height: 112px; padding: 14px 60px 14px 14px; color: #355a3f; border-radius: 6px; }
.guide-input-form > textarea::placeholder { color: #61775a; opacity: 1; }
.guide-input-form > button { position: absolute; right: 9px; bottom: 9px; width: 44px; height: 44px; display: grid; place-items: center; background: #245be8; color: #fff; border: 0; border-radius: 5px; }
.guide-input-form > button > svg { width: 20px; height: 20px; }
.guide-disclosure { font-size: 12px; line-height: 1.75; color: #4f6d57; margin: 13px 1px 0; }

/* Contributions: a short signalement; a progressive form for richer proposals. */
[data-community-page="contribute"] .c-hero { padding-bottom: 50px; }
[data-community-page="contribute"] .c-action-grid { display: none; }
[data-community-page="contribute"] .c-contribution-layout { align-items: start; }
[data-community-page="contribute"] .c-contribution-aside { position: sticky; top: 120px; }
.compose-wiring { display: none !important; }
.guided-composer > fieldset { border: 0 !important; padding: 0 !important; margin: 0 !important; min-width: 0; }
.compose-greeting { display: flex; gap: 15px; align-items: center; background: #f1f5ed; border: 1px solid #d9e3d1; border-radius: 7px; padding: 19px; margin-bottom: 25px; }
.compose-greeting strong { display: block; font-size: 18px; font-weight: 500; color: #325942; letter-spacing: -.3px; }
.compose-greeting p { font-size: 14px; line-height: 1.75; color: #526d50; margin: 7px 0 0; }
.compose-progress { display: flex; gap: 0; margin: 0 0 28px; border-bottom: 1px solid #d2dfcf; }
.compose-progress > button { display: flex; align-items: center; gap: 8px; flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font: inherit; font-size: 14px; padding: 0 6px 15px; color: #526d56; text-align: left; min-height: 48px; }
.compose-progress > button > span { border: 1px solid #b7cbb4; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; flex-shrink: 0; }
.compose-progress > button.active { color: #2455c9; border-bottom-color: var(--blue); }
.compose-progress > button.active > span { background: var(--blue); color: #fff; border-color: var(--blue); }
.compose-progress > button:disabled { color: #657962; cursor: default; }
.compose-stages > section > h3 { font-size: 25px; color: var(--ink); font-weight: 500; letter-spacing: -.5px; line-height: 1.35; margin: 0 0 22px; }
.compose-intents { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 27px; }
.compose-intents > button { position: relative; display: grid; grid-template-columns: 25px 1fr; align-content: center; gap: 5px 10px; text-align: left; border: 1px solid #cad9c8; border-radius: 6px; background: #fff; padding: 17px; min-height: 90px; color: #45664f; }
.compose-intents > button > span { grid-row: 1/3; font-size: 24px; color: #5c825e; }
.compose-intents > button strong { font-weight: 600; font-size: 15px; }
.compose-intents > button small { font-size: 14px; color: #526d56; line-height: 1.5; }
.compose-intents > button.selected { border-color: #245be8; background: #f1f5ff; color: #2455c9; box-shadow: inset 0 0 0 1px #245be8; }
.compose-intents > button.selected > span { color: var(--blue); }
.compose-navigation { display: flex; justify-content: space-between; gap: 15px; margin-top: 23px; }
.compose-navigation > [data-compose-next] { margin-left: auto; }
.compose-hint { font-size: 14px; line-height: 1.8; color: #526772; margin: -7px 0 22px; }
.compose-recap { background: #f2f6ed; border: 1px solid #d8e3ce; padding: 22px; border-radius: 6px; margin-bottom: 24px; }
.compose-recap > span { display: block; font-size: 15px; font-weight: 600; color: #456a3e; }
.compose-recap > small { font-size: 13px; color: #526d50; display: block; margin-top: 7px; }
.compose-recap > p { font-size: 16px; line-height: 1.8; color: #45633f; white-space: pre-line; margin: 18px 0; overflow-wrap: anywhere; }
.compose-recap > button { font-size: 14px; color: #2455c9; padding: 8px 0; min-height: 44px; }
.compose-recap-attachment { font-size: 13px; color: #526d50; margin: 10px 0; }
.compose-review-block { min-width: 0; padding-top: 18px; margin-top: 18px; border-top: 1px solid #d3dfcb; }
.compose-review-block h4 { font-size: 13px; font-weight: 600; color: #45633f; margin: 0 0 9px; }
.compose-review-text { font-size: 15px; line-height: 1.8; color: #344e3b; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.compose-review-detail > summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 600; color: #344e3b; }
.compose-review-detail[open] > summary { margin-bottom: 8px; }
.compose-review-block > button, .compose-recap-actions > button { background: none; border: 0; padding: 10px 0; min-height: 44px; text-align: left; font: inherit; font-size: 13px; color: #2455c9; cursor: pointer; }
.compose-recap-actions { border-top: 1px solid #d3dfcb; margin-top: 18px; padding-top: 6px; }
.compose-review-files { list-style: none; padding: 0; margin: 0; }
.compose-review-files > li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; line-height: 1.6; color: #344e3b; }
.compose-review-files > li > span { min-width: 0; overflow-wrap: anywhere; }
.compose-review-files > li > small { flex-shrink: 0; font-size: 12px; color: #526d50; }
.compose-review-help { font-size: 12px; color: #526d50; line-height: 1.7; margin: 9px 0 0; }
.compose-identity { padding: 16px 0; border-top: 1px solid #d8e3d1; font-size: 14px; color: #45664c; margin-bottom: 14px; }
.compose-identity summary { cursor: pointer; margin-bottom: 14px; min-height: 44px; padding: 9px 0; }
.compose-identity summary span { font-size: 12px; color: #526d50; margin-left: 8px; }
.guided-composer .c-consent { border-radius: 5px; }
.guided-composer .c-form-actions { margin-top: 18px; }
.guided-composer .c-status-message:empty { display: none; }
.guided-composer .c-form-grid { min-width: 0; }
.guided-composer .c-field input, .guided-composer .c-field select, .guided-composer .c-field textarea { font-size: 16px; }
.guided-composer .c-field > label, .guided-composer .c-field-label { font-size: 15px; }
.guided-composer .c-help, .guided-composer .c-check, .guided-composer .c-optional { font-size: 13px; color: #526772; }
.guided-composer .c-check { line-height: 1.8; }
.guided-composer .c-current-text { font-size: 14px; }
.guided-composer .c-button { font-size: 14px; }
.compose-context-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; font-size: 14px; line-height: 1.75; color: #42614b; padding: 15px 18px; background: #f0f5ed; border: 1px solid #d3dfcb; border-radius: 6px; margin: 0 0 22px; }
.compose-context-summary strong { font-size: 15px; color: #2e5738; }
.compose-context-summary span, .compose-context-summary small { font-size: 13px; color: #526d50; }
.compose-context-summary > div { min-width: 0; flex: 1; }
.compose-context-summary > div > span, .compose-context-summary > div > strong, .compose-context-summary > div > small { display: block; }
.compose-context-summary > div > span { font-size: 11px; letter-spacing: .6px; margin-bottom: 5px; }
.compose-context-summary > div > small { margin-top: 4px; }
.compose-context-summary > button { min-height: 44px; font-size: 13px; color: #2455c9; padding: 9px 0; }
.compose-draft-notice { padding: 12px 15px; font-size: 13px; line-height: 1.75; color: #4b6479; background: #edf2ff; border-left: 2px solid #245be8; margin-bottom: 22px; }
.compose-draft-notice > p { margin: 0; }
.compose-draft-notice > button { border: 0; background: none; color: #2455c9; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; text-align: left; cursor: pointer; min-height: 44px; padding: 9px 0 3px; }
.compose-draft-notice[data-state="error"] { background: #fff6e7; border-left-color: #9a611d; color: #77501e; }
.compose-draft-notice[data-state="forgotten"] { background: #f3f5f6; border-left-color: #7d8d98; }
.compose-signal .compose-greeting { display: none; }
.compose-signal .compose-intents { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.compose-signal .compose-intents > button { display: block; min-height: 48px; padding: 12px 10px; }
.compose-signal .compose-intents > button strong { font-size: 14px; }
.compose-signal .compose-intents > button > span, .compose-signal .compose-intents > button small { display: none; }
.compose-signal-details > summary > span { color: #526772; font-size: 12px; }
.compose-signal-details { border-top: 1px solid #d8e2d4; border-bottom: 1px solid #d8e2d4; margin: 20px 0; padding: 3px 0; }
.compose-signal-details > summary { font-size: 14px; color: #42614b; cursor: pointer; padding: 14px 2px; min-height: 48px; }
.compose-signal-details[open] > summary { margin-bottom: 15px; }
.compose-signal-details > .c-form-grid { margin-top: 15px; }
.compose-signal-message textarea { min-height: 140px; }
.compose-signal-consent { margin-top: 20px; }
.community-dialog { width: min(840px,calc(100% - 40px)); border-radius: 8px; }
.c-dialog-header { padding: 16px 30px; }
.c-dialog-header > span { font-size: 12px; line-height: 1.6; letter-spacing: 1px; }
.c-dialog-close { width: 44px; height: 44px; border-radius: 5px; }
.c-dialog-body { padding: 30px 36px 36px; }
.c-dialog-intro { font-size: 15px; line-height: 1.8; }

@media (min-width: 1261px) {
  .guide-is-open .reader-layout { grid-template-columns: 180px minmax(0,1fr) 330px; gap: 26px; }
  .guide-is-open .reader-body { padding-inline: 28px; }
}
@media (max-width: 1260px) {
  .reader { padding-inline: 32px; }
  .reader-layout { grid-template-columns: 175px minmax(0,1fr); gap: 25px; }
  .reader-body { padding-inline: 29px; }
  .reader-guide { position: fixed; top: auto; bottom: 24px; right: 24px; width: min(420px,calc(100% - 48px)); max-height: calc(100dvh - 144px); z-index: 40; box-shadow: 0 12px 60px #163f3d38; }
  .reader-heading-actions { max-width: 196px; }
  .reader-guide-toggle { width: 100%; }
}
@media (max-width: 960px) {
  .reader-layout { display: block; padding-top: 22px; }
  .reader-nav { position: sticky; top: 80px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 0 12px; overflow: visible; background: #f7f8f5; padding: 8px 0 10px; margin: -10px 0 22px; z-index: 10; border-bottom: 1px solid #d7e1d7; }
  .reader-nav > .tiny-label, .reader-nav-note { display: none; }
  .reader-nav-current { display: block; min-width: 0; grid-column: 1; grid-row: 1; }
  .reader-toc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 56px; padding: 5px 0; text-align: left; color: #294b66; }
  .reader-toc-toggle > span { min-width: 0; }
  .reader-toc-toggle small { display: block; color: #526d61; font-size: 11px; line-height: 1.5; }
  .reader-toc-toggle strong { display: block; margin-top: 2px; color: #2455c9; font-size: 14px; line-height: 1.5; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .reader-toc-toggle > svg { width: 17px; height: 17px; flex-shrink: 0; transform: rotate(90deg); }
  .reader-toc-toggle[aria-expanded="true"] > svg { transform: rotate(-90deg); }
  .reader-nav-links { grid-column: 1/-1; grid-row: 2; margin: 5px 0 4px; padding: 5px 8px; border: 1px solid #c8d8cc; border-radius: 7px; background: #fff; max-height: min(420px,calc(100dvh - 180px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .reader-nav-links > a { width: 100%; min-height: 48px; padding: 10px 11px; margin: 3px 0; gap: 10px; }
  .reader-nav-links > a small { display: none; }
  .reader-nav > .reader-nav-contribute { grid-column: 2; grid-row: 1; width: auto; min-height: 44px; margin: 0; padding: 9px 11px; white-space: nowrap; }
  .reader-nav-index { align-self: center; padding-top: 0; }
  .reader-body { max-width: none; }
  .reader-panel { scroll-margin-top: 172px; }
  .reader-summary { grid-template-columns: 90px minmax(0,1fr); }
  .reader-summary-item:last-child { grid-column: 1/-1; border-left: 0; border-top: 1px solid #d8e2d9; }
  [data-community-page="contribute"] .c-contribution-aside { position: static; }
}
@media (max-width: 720px) {
  .reader { padding: 0 20px 40px; }
  .reader-return { margin-top: 12px; font-size: 13px; }
  .reader-return-bar { margin-top: 12px; gap: 0 14px; }
  .reader-heading { display: block; padding: 15px 0 24px; }
  .reader h1 { font-size: 32px; letter-spacing: -.8px; max-width: none; }
  .reader-intro { font-size: 16px; }
  .reader-breadcrumb { font-size: 12px; margin-bottom: 13px; }
  .reader-meta { gap: 8px 12px; margin-top: 19px; }
  .reader-meta > .rfmb-resource-version { width: 100%; font-size: 12px; margin-top: 3px; }
  .reader-heading-actions { max-width: none; align-items: center; margin-top: 20px; padding-top: 0; gap: 9px; }
  .reader-guide-toggle { width: auto; margin-left: auto; }
  .reader-summary { margin-top: 20px; }
  .reader-summary-item { padding: 16px 18px; }
  .reader-nav { top: 80px; margin-left: -20px; margin-right: -20px; padding-inline: 20px; }
  .reader-nav-links > a strong { font-size: 13px; }
  .reader-body { padding: 0 23px; }
  .reader-panel { padding: 28px 0 30px; scroll-margin-top: 164px; }
  .reader-panel-title h2, .reader-panel-title h3 { font-size: 26px; }
  .reader-source-grid { grid-template-columns: 1fr; gap: 10px; }
  .reader-source-grid article { display: grid; grid-template-columns: 25px 1fr; gap: 5px 10px; padding: 18px; }
  .reader-source-grid article > span { grid-row: 1/3; padding-top: 2px; }
  .reader-source-grid h3, .reader-source-grid h4 { margin: 0; }
  .reader-illustration { padding: 12px 14px; }
  .reader-illustration > .ouvrage-figure { max-height: 220px; }
  .reader-illustration > span { text-align: left; }
  .reader-insight { padding: 18px; }
  .reader-example { padding: 21px; }
  .reader-example-formula { font-size: 19px; }
  .reader-example > strong { font-size: 29px; }
  .reader-checks > label { padding: 18px 16px; }
  .reader-check-progress { flex-wrap: wrap; align-items: center; gap: 3px 12px; }
  .reader-dpgf th, .reader-dpgf td { padding: 13px 12px; }
  .reader-dpgf table { font-size: 14px; }
  .reader-dpgf td:first-child { min-width: 130px; }
  .reader-dpgf > div:first-child { flex-wrap: wrap; gap: 3px; padding: 11px 14px; }
  .reader-dpgf > div > span { font-size: 10px; }
  .reader-dpgf button { margin-left: auto; }
  .reader-provenance { padding: 19px; }
  .reader .rfmb-resource-history { padding-inline: 15px; }
  .reader-guide { bottom: 16px; right: 16px; left: auto; width: calc(100% - 32px); max-width: 420px; max-height: calc(100dvh - 132px); border-radius: 10px; padding: 18px; }
  .guide-heading { top: -18px; }
  .compose-progress > button { font-size: 13px; gap: 6px; padding-inline: 4px; }
  .compose-greeting { padding: 17px; gap: 12px; }
  .compose-greeting .fil-avatar { width: 48px; height: 48px; }
  .compose-intents > button { padding: 15px; display: block; min-height: 88px; }
  .compose-intents > button > span { display: none; }
  .compose-intents > button strong, .compose-intents > button small { display: block; }
  .compose-intents > button small { margin-top: 5px; }
  .compose-signal .compose-intents { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .community-dialog { width: calc(100% - 20px); max-height: 94dvh; }
  .c-dialog-header { padding: 12px 18px; }
  .c-dialog-header > span { font-size: 11px; }
  .c-dialog-body { padding: 23px 22px 28px; }
  .c-dialog-intro { font-size: 14px; }
}
@media (max-width: 640px) {
  .catalog-row-item { grid-template-columns: minmax(0,1fr) 44px; gap: 12px 16px; padding: 19px; }
  .catalog-row-number { display: none; }
  .catalog-row-main { grid-column: 1; grid-row: 1; }
  .catalog-row-main h3 { font-size: 17px; }
  .catalog-row-item > .save-resource { grid-column: 2; grid-row: 1; }
  .catalog-row-unit { grid-column: 1/-1; grid-row: 2; flex-direction: row; align-items: baseline; gap: 10px; padding-top: 10px; border-top: 1px solid #e0e6e2; }
  .catalog-row-unit > strong { font-size: 15px; }
  .catalog-row-meta { gap: 3px 10px; font-size: 11px; }
  .catalog-row-description, .catalog-row-passage { font-size: 13px; }
  .catalog-search kbd { display: none; }
  .catalog-toolbar { margin-bottom: 18px; gap: 12px; }
  .filter-group { gap: 5px; }
  .filter-group button { font-size: 13px; padding: 9px 11px; }
  .catalog-toolbar #resource-count { font-size: 13px; }
  #resource-list { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .resource-card { display: grid; grid-template-columns: 104px minmax(0,1fr); align-items: stretch; }
  .resource-card-visual { height: auto; min-height: 178px; border-bottom: 0; border-right: 1px solid #e2e8df; }
  .resource-card-visual .ouvrage-figure { width: 164px; max-width: none; height: 144px; margin: 40px 0 0 -29px; }
  .resource-card-number { display: none; }
  .resource-card-visual .save-resource { width: 44px; height: 44px; top: 8px; right: 7px; }
  .resource-card .resource-row { min-height: 178px; padding: 18px 17px; }
  .resource-card-type { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; margin-bottom: 9px; }
  .resource-card-type > span { float: none; }
  .resource-card .resource-row > strong { font-size: 19px; line-height: 1.4; margin-bottom: 16px; }
  .resource-card-bottom { flex-wrap: wrap; gap: 5px 10px; }
  .resource-card-bottom > span { font-size: 13px; }
  .resource-match { grid-column: 1/-1; padding: 16px 18px; margin: 0; border-top: 1px solid #e2e8df; font-size: 14px; }
  .catalog-empty { padding: 25px; }
}
@media (max-width: 400px) {
  .reader { padding-inline: 16px; }
  .reader h1 { font-size: 29px; }
  .reader-body { padding-inline: 18px; }
  .reader-nav { margin-inline: -16px; padding-inline: 16px; }
  .reader-heading-actions { gap: 6px; }
  .reader-guide-toggle { gap: 5px; padding-inline: 7px; font-size: 12px; }
  .reader-guide-toggle .fil-avatar { width: 28px; height: 28px; }
  .reader-summary-item { padding: 14px; }
  .resource-card { grid-template-columns: 88px minmax(0,1fr); }
  .resource-card-visual .ouvrage-figure { margin-left: -38px; }
  .resource-card-number { display: none; }
  .resource-card .resource-row { padding: 17px 14px; }
  .resource-card .resource-row > strong { font-size: 18px; }
  .compose-progress > button { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; padding-bottom: 12px; }
  .compose-intents { gap: 9px; }
  .compose-intents > button { padding: 13px; }
  .compose-intents > button strong { font-size: 14px; }
  .compose-intents > button small { font-size: 14px; }
  .c-dialog-body { padding-inline: 18px; }
}
/* A clear answer first, then a documented example from geometry to bordereau. */
.reader-heading-aliases { font-size: 15px; line-height: 1.65; color: #526772; margin: 0; max-width: 70ch; }
.reader-contribute-short { display: none; }
.reader-quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 16px; }
.reader-quick-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #2455c9; font-size: 14px; font-weight: 600; padding: 7px 0; text-underline-offset: 4px; }
.reader-quick-links a:hover { text-decoration: underline; }
.reader-quick-links svg { width: 17px; height: 17px; flex-shrink: 0; }
.reader-essential-grid { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 22px; background: #f0f4ee; border: 1px solid #d9e3d8; border-radius: 6px; padding: 21px; margin: 0 0 20px; }
.reader-essential-unit { padding-right: 18px; border-right: 1px solid #d1ddce; }
.reader-essential-unit > span { display: block; font-size: 12px; line-height: 1.5; color: #526d61; }
.reader-essential-unit > strong { display: block; font-size: 29px; line-height: 1.5; font-weight: 500; color: #2455c9; overflow-wrap: anywhere; margin-top: 5px; }
.reader-essential-scope { min-width: 0; }
.reader-essential-scope > span, .reader-essential-scope > strong, .reader-essential-scope > h3 { display: block; color: #315744; font-size: 13px; font-weight: 600; margin: 0 0 6px; line-height: 1.5; }
.reader-essential-scope > p { font-size: 15px; line-height: 1.8; color: #355548; margin: 0; }
.reader-panel > .reader-intro { margin: 18px 0; font-size: 16px; line-height: 1.8; }
.reader-distinction { display: flex; flex-wrap: wrap; gap: 3px 12px; align-items: center; min-height: 44px; margin: 0 0 20px; font-size: 14px; line-height: 1.7; color: #526772; }
.reader-distinction strong { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #2455c9; }
.reader-distinction svg { width: 17px; height: 17px; flex-shrink: 0; }
.reader-distinction:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.reader-panel .reader-related-inline, .reader-panel > .reader-note > a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 14px; color: #2455c9; text-underline-offset: 4px; }
.reader-related-inline svg { width: 17px; height: 17px; flex-shrink: 0; }
.reader-case { container-type: inline-size; margin-top: 26px; border: 1px solid #d2dfdd; border-radius: 7px; padding: 23px; background: #fff; }
.reader-case-title { margin-bottom: 18px; }
.reader-case-title > span, .reader-case-title > .tiny-label { display: block; font-size: 11px; letter-spacing: .9px; color: #526d61; line-height: 1.7; margin-bottom: 7px; }
.reader-case-title h3 { color: #142d40; font-size: 22px; font-weight: 500; line-height: 1.4; letter-spacing: -.35px; margin: 0; }
.reader-case-title > p { margin-top: 8px; font-size: 14px; line-height: 1.75; color: #526772; }
.reader-case-switch { display: flex; gap: 6px; padding: 4px; border: 1px solid #d2dfdd; border-radius: 6px; margin-bottom: 16px; background: #f0f4ee; }
.reader-case-switch button { flex: 1; min-height: 44px; border: 1px solid transparent; border-radius: 4px; padding: 9px 12px; font: inherit; font-size: 14px; color: #426174; }
.reader-case-switch button[aria-pressed="true"] { color: #2455c9; background: #fff; border-color: #b9cce7; font-weight: 600; }
.reader-case-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 24px; align-items: center; }
.reader-case-schema { margin: 0; min-width: 0; background: #f4f6f3; border-radius: 4px; padding: 12px; }
.reader-case-schema > svg, .reader-case-schema > .ouvrage-figure { display: block; width: 100%; height: auto; max-height: 300px; }
.reader-case-schema svg text { font-family: inherit; }
.reader-case-pilot .reader-case-schema svg text { font-size: 18px; }
.reader-case-caption, .reader-case-schema figcaption { font-size: 12px; line-height: 1.7; color: #526772; margin-top: 9px; }
.reader-case-calculation { min-width: 0; }
.reader-case-calculation > h4, .reader-case-calculation > h3 { font-size: 14px; line-height: 1.6; font-weight: 600; margin: 0 0 12px; color: #35596f; }
.reader-case-calculation .reader-example-formula { font-size: 18px; line-height: 1.65; margin: 16px 0 0; font-variant-numeric: tabular-nums; }
.reader-case-breakdown { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.reader-case-breakdown > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #dbe5e1; }
.reader-case-breakdown dt { color: #526772; }
.reader-case-breakdown dd { margin: 0; color: #274657; white-space: nowrap; font-weight: 500; }
.reader-case-result { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 20px; margin-top: 19px; padding: 15px 18px; border-radius: 4px; background: #edf3e9; }
.reader-case-result > span { font-size: 13px; color: #42604c; }
.reader-case-result > strong { display: block; font-size: 30px; line-height: 1.35; font-weight: 500; color: #2455c9; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.reader-case-convention { margin-top: 18px; padding: 2px 0 2px 16px; border-left: 3px solid #245be8; }
.reader-case-convention > strong, .reader-case-convention > span { display: block; font-size: 13px; color: #294b77; margin-bottom: 5px; font-weight: 600; }
.reader-case-convention p { font-size: 14px; line-height: 1.8; color: #455f6f; margin: 0; }
.reader-case > a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; color: #2455c9; font-weight: 600; margin-top: 13px; text-underline-offset: 4px; }
.reader-case > a:hover { text-decoration: underline; }
.reader-case > a svg { width: 17px; height: 17px; flex-shrink: 0; }
.guide-source { display: block; color: #526d61; font-size: 12px; line-height: 1.6; margin-top: 9px; }
.guide-message > small { display: block; font-size: 12px; line-height: 1.6; color: #526d61; margin-top: 8px; }
@container (max-width: 560px) {
  .reader-case-layout { grid-template-columns: minmax(0,1fr); gap: 19px; }
  .reader-case-schema > svg { max-height: 270px; }
}
@media (max-width: 960px) {
  .reader-contribute-long { display: none; }
  .reader-contribute-short { display: inline; }
}
@media (max-width: 720px) {
  .reader-quick-links { gap: 3px 18px; margin-top: 10px; }
  .reader-quick-links a { font-size: 13px; }
  .reader-essential-grid { gap: 16px; grid-template-columns: 70px minmax(0,1fr); padding: 17px; }
  .reader-essential-unit { padding-right: 12px; }
  .reader-essential-unit > strong { font-size: 25px; }
  .reader-essential-scope > p { font-size: 15px; }
  .reader-case { padding: 18px; margin-top: 23px; }
  .reader-case-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .reader-case-title h3 { font-size: 21px; }
  .reader-case-pilot .reader-case-schema svg text { font-size: 20px; }
  .reader-case-result > strong { font-size: 27px; }
}
@media (max-width: 400px) {
  .reader-body { padding-inline: 17px; }
  .reader-essential-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .reader-essential-unit { display: flex; align-items: center; gap: 14px; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid #d1ddce; }
  .reader-essential-unit > strong { margin: 0; }
  .reader-case { padding: 14px; }
  .reader-case-schema { padding: 6px; }
  .reader-case-result { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .resource-card { transition: none; }
}
@media print {
  .resource-page .header, .resource-page .topline, .resource-page .footer,
  .reader-return-bar, .reader-return, .reader-heading-actions, .reader-nav, .reader-guide,
  .reader-section-actions, .reader-bottom-feedback, .reader-action-status { display: none !important; }
  .resource-page, .reader { background: #fff; }
  .reader { padding: 0; max-width: none; }
  .reader-heading { padding: 0 0 18px; }
  .reader h1 { font-size: 28pt; }
  .reader-intro { font-size: 11pt; }
  .reader-layout { display: block; padding-top: 0; }
  .reader-body { border: 0; padding: 0; max-width: none; }
  .reader-summary { break-inside: avoid; }
  .reader-panel { break-inside: auto; padding: 23px 0; }
  .reader-panel-title h2, .reader-panel-title h3 { font-size: 19pt; }
  .reader-example, .reader-insight, .reader-dpgf { break-inside: avoid; }
  .reader-prose p, .reader-method p, .reader-checks span { font-size: 11pt; }
  .reader-illustration { max-width: 360px; }
  .reader-checks > label { padding: 10px; }
  .reader-check-progress > button { display: none !important; }
  .reader-related { display: none; }
  .reader-aliases > div { display: flex; }
  .reader-guide[hidden] { display: none !important; }
  .reader-table-scroll { overflow: visible; }
  .reader-quick-links, .reader-case-switch { display: none !important; }
  .reader-case { container-type: normal; break-inside: avoid; padding: 16px; }
  .reader-case-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .reader-case [data-case-panel][hidden] { display: block !important; }
  .reader-case-result > strong { font-size: 20pt; }
}
