/* Mémoire de la Lys — recherche v1.3.0. Polices héritées du thème. */
.mdl-recherche { --mdl-brun:#8A6846; --mdl-bleu:#3E7188; --mdl-bordure:#ded8ce; --mdl-doux:#F7F4EF; max-width:850px; }
.mdl-recherche__form { margin:1.7rem 0 2rem; }
.mdl-recherche__label { display:block; font-weight:600; font-size:.98rem; margin-bottom:.55rem; }
.mdl-recherche__ligne { display:flex; align-items:stretch; gap:.65rem; }
.mdl-recherche__champ { flex:1; width:100%; min-width:0; padding:.82rem 1rem; border:1px solid var(--mdl-bordure); border-radius:5px; font:inherit; color:inherit; background:#fff; box-sizing:border-box; }
.mdl-recherche__champ:focus { outline:2px solid var(--mdl-bleu); outline-offset:1px; }
.mdl-recherche__bouton { border:1px solid var(--mdl-brun); border-radius:5px; background:var(--mdl-brun); color:#fff; padding:.8rem 1.35rem; font:inherit; font-weight:600; cursor:pointer; white-space:nowrap; }
.mdl-recherche__bouton:hover,.mdl-recherche__bouton:focus-visible { background:#715237; color:#fff; border-color:#715237; }
.mdl-recherche__aide { margin:.55rem 0 0; color:#686661; font-size:.89rem; line-height:1.5; }

.mdl-recherche__conseils { margin:.35rem 0 0; font-size:.89rem; color:#686661; }
.mdl-recherche__conseils summary { display:list-item; width:fit-content; cursor:pointer; color:var(--mdl-bleu); line-height:1.5; }
.mdl-recherche__conseils summary:hover { text-decoration:underline; }
.mdl-recherche__conseils summary:focus-visible { outline:2px solid var(--mdl-bleu); outline-offset:3px; }
.mdl-recherche__conseils-contenu { margin-top:.55rem; padding:.8rem 1rem; background:var(--mdl-doux); border-left:3px solid var(--mdl-bleu); }
.mdl-recherche__conseils-contenu p { margin:0 0 .5rem; }
.mdl-recherche__conseils-contenu p:last-child { margin-bottom:0; }
.mdl-recherche__conseils-contenu ul { margin:.35rem 0 .6rem 1.35rem; padding:0; }
.mdl-recherche__conseils-contenu li { margin:.2rem 0; }
.mdl-recherche__conseils-contenu code { font-size:.95em; }

.mdl-recherche__message[hidden] { display:none !important; }
.mdl-recherche__champ[aria-invalid="true"] { border-color:#A14D3A; }
.mdl-recherche__message { padding:.8rem 1rem; background:var(--mdl-doux); border-left:3px solid var(--mdl-bleu); }
.mdl-recherche__recap { margin:0 0 1.5rem; padding:.85rem 1rem; background:var(--mdl-doux); border-left:3px solid var(--mdl-bleu); }
.mdl-recherche__section { margin-top:1.6rem; }
.mdl-recherche__titre-section { color:var(--mdl-brun); font-size:1.35rem; line-height:1.3; margin:0 0 .5rem; }
.mdl-recherche__nombre { color:#666; font-size:.91rem; margin:0 0 .8rem; }
.mdl-recherche__liste { list-style:none; margin:0 !important; padding:0 !important; }
.mdl-recherche__article { padding:1rem 0; border-bottom:1px solid var(--mdl-bordure); margin:0; }
.mdl-recherche__titre-article { font-size:1.12rem; line-height:1.35; margin:0 0 .3rem; }
.mdl-recherche__titre-article a { color:var(--mdl-brun); text-decoration:underline; text-decoration-color:transparent; text-underline-offset:.18em; }
.mdl-recherche__titre-article a:hover,.mdl-recherche__titre-article a:focus-visible { color:var(--mdl-bleu); text-decoration-color:currentColor; }
.mdl-recherche__categorie { font-size:.85rem; color:var(--mdl-bleu); margin:0 0 .35rem; }
.mdl-recherche__extrait { font-size:.97rem; line-height:1.6; margin:0; }
.mdl-recherche__vide { color:#666; margin:.75rem 0 1.6rem; }
.mdl-recherche__pagination { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; margin:1.35rem 0; }
.mdl-recherche__pagination a,.mdl-recherche__page-active { padding:.35rem .65rem; border:1px solid var(--mdl-bordure); border-radius:4px; text-decoration:none; }
.mdl-recherche__page-active { background:var(--mdl-brun); color:#fff; border-color:var(--mdl-brun); }
.mdl-recherche__corpus { display:flex; gap:1rem; justify-content:space-between; align-items:center; padding:1.05rem 0; border-bottom:1px solid var(--mdl-bordure); }
.mdl-recherche__corpus-droite { display:flex; flex-direction:column; align-items:flex-end; white-space:nowrap; gap:.3rem; font-size:.93rem; }
.mdl-recherche__corpus-droite a { color:var(--mdl-bleu); }
@media (max-width:570px) {
 .mdl-recherche__ligne { flex-direction:column; }
 .mdl-recherche__bouton { width:100%; }
 .mdl-recherche__corpus { flex-direction:column; align-items:flex-start; }
 .mdl-recherche__corpus-droite { align-items:flex-start; }
}
/* BMS search form v1.4 */
.mdl-rv{--mdl-brun:#8A6846;--mdl-bleu:#3E7188;--mdl-bordure:#ded8ce;max-width:100%;}
.mdl-rv__form{padding:1.4rem;border:1px solid var(--mdl-bordure);background:#F7F4EF;border-radius:6px;}
.mdl-rv__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.3rem;}
.mdl-rv__grid label{display:flex;flex-direction:column;gap:.35rem;font-weight:600;}
.mdl-rv__grid input,.mdl-rv__grid select{font:inherit;width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--mdl-bordure);padding:.7rem;background:#fff;border-radius:4px;}
.mdl-rv__form button{background:var(--mdl-brun);color:#fff;border:0;border-radius:4px;padding:.75rem 1.4rem;cursor:pointer;}
.mdl-rv__hint{font-size:.9rem;color:#555;}
.mdl-rv__admin,.mdl-rv__error{padding:.7rem 1rem;border-left:3px solid var(--mdl-brun);background:#F7F4EF;}
.mdl-rv__total{font-weight:600;margin-top:1.5rem;}
.mdl-rv__corpus{color:var(--mdl-brun);margin-top:1.5rem;}
.mdl-rv table{width:100%;border-collapse:collapse;display:block;overflow-x:auto;}
.mdl-rv th,.mdl-rv td{text-align:left;padding:.65rem;border-bottom:1px solid var(--mdl-bordure);}
.mdl-rv a{color:var(--mdl-bleu);}
.mdl-rv__pages{display:flex;gap:1rem;margin:1rem 0;}
.mdl-rv__detail{margin:2rem 0;padding:1.2rem;border:1px solid var(--mdl-bordure);background:#F7F4EF;}
.mdl-rv__contenu{white-space:pre-wrap;}
@media(max-width:600px){.mdl-rv__grid{grid-template-columns:1fr;}}

/* BMS v1.5 — compact form and genealogical results */
.mdl-rv__form{padding:1.1rem 1.25rem}
.mdl-rv__grid{gap:.75rem 1.2rem}
.mdl-rv__advanced{border-top:1px solid var(--mdl-bordure);margin-top:1rem;padding-top:.65rem}
.mdl-rv__advanced summary{cursor:pointer;color:var(--mdl-bleu);font-weight:600;margin-bottom:.35rem}
.mdl-rv__advanced[open] .mdl-rv__grid{margin-top:.7rem}
.mdl-rv__hint{margin:.65rem 0 .85rem}
.mdl-rv__results-wrap{overflow-x:auto}
.mdl-rv .mdl-rv__results{width:100%;display:table;min-width:760px;table-layout:auto;font-size:.94rem}
.mdl-rv__results th{white-space:nowrap;background:#F7F4EF}
.mdl-rv__results td{vertical-align:top;line-height:1.45}
.mdl-rv__results th:nth-child(1){min-width:118px}
.mdl-rv__results th:nth-child(2){min-width:170px}
.mdl-rv__results th:nth-child(3){min-width:240px}
.mdl-rv__results th:last-child{white-space:nowrap}
.mdl-rv__meta{display:block;color:#666;font-size:.8rem;margin-top:.15rem}
.mdl-rv input:focus-visible,.mdl-rv select:focus-visible,.mdl-rv summary:focus-visible{outline:2px solid var(--mdl-bleu);outline-offset:2px}
@media(max-width:650px){.mdl-rv__form{padding:1rem}.mdl-rv__grid{grid-template-columns:1fr}.mdl-rv__results-wrap{margin-right:-.5rem}}

/* Version 1.6 — matched person first, expandable record detail */
.mdl-rv__results th:nth-child(1){min-width:185px}
.mdl-rv__results th:nth-child(2){min-width:235px}
.mdl-rv__results th:nth-child(3){min-width:120px}
.mdl-rv__found-name{font-weight:600;margin-bottom:.35rem}
.mdl-rv__context{margin-bottom:.35rem}
.mdl-rv__toggle{font:inherit;border:0;background:transparent;color:var(--mdl-bleu);cursor:pointer;padding:.2rem .1rem;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.mdl-rv__toggle:focus-visible{outline:2px solid var(--mdl-bleu);outline-offset:3px}
.mdl-rv__inline-row td{padding:0!important;border-bottom:2px solid var(--mdl-bordure);background:#f7f4ef}
.mdl-rv__inline-row[hidden]{display:none!important}
.mdl-rv__inline-content .mdl-rv__detail{margin:0;padding:1.1rem;border:0;background:transparent}
.mdl-rv__permalink{margin:0;padding:.2rem 1.1rem 1rem;font-size:.83rem}

/* v1.7 — documentary details */
.mdl-rv__detail--enriched{line-height:1.5}
.mdl-rv__record-head h3{font-size:1.24rem;margin:0 0:.25rem;color:#765536}
.mdl-rv__record-head p{margin:.2rem 0}
.mdl-rv__record-ref{font-size:.84rem;color:#666}
.mdl-rv__detail--enriched h4{font-size:1.02rem;margin:1.1rem 0 .45rem;color:#765536}
.mdl-rv .mdl-rv__people{display:table;overflow:visible;width:100%;font-size:.92rem}
.mdl-rv__people th,.mdl-rv__people td{padding:.48rem .65rem;vertical-align:top;text-align:left}
.mdl-rv__people th[scope=row]{font-weight:500;width:22%;white-space:nowrap}
.mdl-rv__person-info{display:block;font-size:.85rem;color:#555;margin-top:.15rem}
.mdl-rv__person-info strong{font-weight:600}
.mdl-rv__record-section{margin-top:1.15rem;border-top:1px solid #ded8ce;padding-top:.15rem}
.mdl-rv__record-section p{margin:.35rem 0 .6rem}
.mdl-rv__record-credit{font-size:.91rem}
.mdl-rv__credit-line{font-style:italic}
@media(max-width:650px){.mdl-rv__people th[scope=row]{white-space:normal;width:27%}}

/* v1.8 — notice for intentionally capped BMS results */
.mdl-rv__limit-hint { margin: -.4rem 0 1.4rem; font-size: .94rem; color: #66584a; }
.mdl-rv__record-attribution { margin: .2rem 0; }

/* v1.9 — compact heading metadata and sortable result headers */
.mdl-rv__record-meta{display:flex;flex-wrap:wrap;gap:.2rem .35rem;align-items:baseline}
.mdl-rv__record-meta-credit{white-space:normal}
.mdl-rv__sort{font:inherit;font-weight:inherit;color:inherit;background:transparent;border:0;padding:0;cursor:pointer;text-align:left}
.mdl-rv__sort:hover{color:var(--mdl-bleu);text-decoration:underline;text-underline-offset:3px}
.mdl-rv__sort:focus-visible{outline:2px solid var(--mdl-bleu);outline-offset:3px}
.mdl-rv__sort-indicator{font-size:.85em;color:var(--mdl-bleu);margin-left:.15rem}

/* v1.10 — responsive, corpus-independent record presentation.
   The same markup supports any act category and any person role. */
.mdl-rv__mobile-matches,.mdl-rv__mobile-sort{display:none}
.mdl-rv__results-wrap{max-width:100%}
.mdl-rv__results td,.mdl-rv__people td{overflow-wrap:anywhere}
@media (max-width:760px){
  .mdl-rv{min-width:0;width:100%;max-width:100%}
  .mdl-rv__results-wrap{overflow:visible;margin:0;max-width:100%;width:100%}
  .mdl-rv__mobile-sort{display:block;margin:.15rem 0 1rem}
  .mdl-rv__mobile-sort label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;font-weight:600}
  .mdl-rv__mobile-sort select{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--mdl-bordure);background:#fff;border-radius:4px;padding:.65rem .75rem;font:inherit;color:inherit}
  .mdl-rv__mobile-sort select:focus-visible{outline:2px solid var(--mdl-bleu);outline-offset:2px}
  .mdl-rv .mdl-rv__results{display:block;min-width:0;width:100%;border:0;font-size:.96rem;overflow:visible}
  .mdl-rv__results thead{display:none}
  .mdl-rv__results tbody{display:block;min-width:0;width:100%}
  .mdl-rv__results tr.mdl-rv__act-row{display:flex;flex-direction:column;gap:.35rem;box-sizing:border-box;min-width:0;width:100%;padding:.85rem .95rem .75rem;background:#fff;border:1px solid var(--mdl-bordure);border-radius:6px 6px 0 0;margin-top:.85rem}
  .mdl-rv__results tr.mdl-rv__act-row > td{display:block;box-sizing:border-box;min-width:0;width:100%;padding:0!important;border:0;overflow-wrap:anywhere}
  .mdl-rv__results tr.mdl-rv__act-row > td.mdl-rv__cell-context{display:none!important}
  .mdl-rv__desktop-found{display:none}
  .mdl-rv__mobile-matches{display:block}
  .mdl-rv__mobile-match{display:flex;flex-direction:column;gap:.18rem;margin:0 0 .65rem;padding:0 0 .65rem;border-bottom:1px solid #eee8e0}
  .mdl-rv__mobile-match:last-child{margin-bottom:0;padding-bottom:0;border:0}
  .mdl-rv__mobile-name{display:block;font-weight:700;color:#302b29;font-size:1.04rem;line-height:1.4}
  .mdl-rv__mobile-context{display:block;font-size:.92rem;line-height:1.5}
  .mdl-rv__results td.mdl-rv__cell-date{margin-top:.35rem;color:#514a43;font-size:.87rem}
  .mdl-rv__cell-date .mdl-rv__meta{display:inline;margin:0;color:#665f57;font-size:inherit}
  .mdl-rv__cell-date .mdl-rv__meta:before{content:' · '}
  .mdl-rv__results td.mdl-rv__cell-action{border-top:1px solid #eee8e0;padding-top:.5rem!important;margin-top:.15rem}
  .mdl-rv__toggle{min-height:38px;padding:.4rem .15rem;white-space:normal;text-decoration:none;font-weight:600}
  .mdl-rv__toggle:hover{text-decoration:underline}
  .mdl-rv__results tr.mdl-rv__inline-row{display:block;width:100%;min-width:0;margin:0 0 1rem}
  .mdl-rv__results tr.mdl-rv__inline-row[hidden]{display:none!important}
  .mdl-rv__inline-row > td{display:block;box-sizing:border-box;width:100%;min-width:0;padding:0!important;border:1px solid var(--mdl-bordure);border-top:0;border-radius:0 0 6px 6px}
  .mdl-rv__inline-content{max-width:100%;min-width:0;overflow-wrap:anywhere}
  .mdl-rv__inline-content .mdl-rv__detail{padding:1rem .9rem;margin:0;overflow-wrap:anywhere}
  .mdl-rv__record-head h3{font-size:1.12rem;line-height:1.32;overflow-wrap:anywhere}
  .mdl-rv__record-meta{font-size:.88rem;line-height:1.5;gap:.15rem .25rem}
  .mdl-rv__record-meta-credit{overflow-wrap:anywhere}
  .mdl-rv__detail--enriched h4{font-size:1rem;margin:1rem 0 .45rem}
  .mdl-rv .mdl-rv__people{display:block;overflow:visible;width:100%;min-width:0;table-layout:auto}
  .mdl-rv__people thead{display:none}
  .mdl-rv__people tbody{display:block;width:100%}
  .mdl-rv__people tr{display:block;box-sizing:border-box;padding:.55rem 0;border-bottom:1px solid var(--mdl-bordure);width:100%}
  .mdl-rv__people th[scope=row],.mdl-rv__people td{display:block;box-sizing:border-box;width:100%;min-width:0;white-space:normal;border:0!important;padding:0!important;text-align:left}
  .mdl-rv__people th[scope=row]{font-size:.8rem;font-weight:700;color:#765536;margin:0 0 .18rem}
  .mdl-rv__people td{font-size:.95rem;line-height:1.45}
  .mdl-rv__person-info{font-size:.85rem;line-height:1.45;margin-top:.16rem}
  .mdl-rv__record-section p{overflow-wrap:anywhere}
}
@media(max-width:420px){
  .mdl-rv__results tr.mdl-rv__act-row{padding:.8rem .75rem}
  .mdl-rv__inline-content .mdl-rv__detail{padding:.85rem .75rem}
  .mdl-rv__corpus{font-size:1.3rem;line-height:1.25}
}

/* v1.10.5 — shared compact documentary references, all BMS records. */
.mdl-rv .mdl-rv__record-credit h4{margin:.45rem 0 .4rem}
.mdl-rv .mdl-rv__record-credit .mdl-rv__ref-line{margin:.16rem 0;line-height:1.45;padding:0}
/* v1.10.4 — burial observations remain compact. */
.mdl-rv .mdl-rv__detail--sepulture .mdl-rv__observation{margin:.35rem 0 .55rem;line-height:1.5}

/* v1.11.0 — marriage details, responsive and visually aligned with BMS. */
.mdl-rv__marriage-couple{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:.6rem 0 1.1rem}
.mdl-rv__marriage-spouse{min-width:0;background:#fff;border:1px solid #ded8ce;border-top:3px solid var(--mdl-bleu);border-radius:4px;padding:.85rem .95rem;overflow-wrap:anywhere}
.mdl-rv__marriage-label{display:block;color:#765536;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:.25rem}
.mdl-rv__marriage-name{display:block;font-size:1.04rem;margin-bottom:.45rem}
.mdl-rv__marriage-parent{margin:.65rem 0 0;padding:.55rem 0 0;border-top:1px solid #eee8e0;font-size:.93rem}
.mdl-rv__marriage-parent-label{font-weight:600;color:#765536}
.mdl-rv__detail--mariage .mdl-rv__record-section p{margin:.35rem 0 .65rem}
@media(max-width:650px){.mdl-rv__marriage-couple{grid-template-columns:1fr;gap:.7rem}.mdl-rv__marriage-spouse{padding:.75rem .8rem}}

/* v1.11.1 — display former spouse directly in the appropriate marriage card. */
.mdl-rv__marriage-former{margin:.65rem 0 0;padding:.55rem 0 0;border-top:1px solid #eee8e0;font-size:.93rem}

/* v1.12.0 — Compact generic presentation for non-BMS acts. */
.mdl-rv__hors-bms-list{margin:.3rem 0 .6rem;padding-left:1.2rem;list-style:disc}
.mdl-rv__hors-bms-list li{margin:.32rem 0;line-height:1.5;overflow-wrap:anywhere}
.mdl-rv__detail--hors-bms .mdl-rv__contenu{white-space:normal;overflow-wrap:anywhere}
