/* Real, unchanged Hermina register photographs, displayed faintly through CSS.
   Older readable deed backgrounds and approved article paper remain intact. */
:root{--hermina-watermerk:url('/assets/hermina-v3-20261016/akte/originelen/Huis%20193%20folio%20149.JPG');--hermina-watermerk-staand:url('/assets/hermina-v3-20261016/akte/originelen/Huis%2078%20folio%20152.JPG')}
/* Flat reading surfaces; never apply opacity to text or archival images. */
body:not(.original-act-background),
body :is(.hero,.subhero,.dossier-intro,.dark,.dashboard,.content-section,.sources):not(.original-act-background),
body :is(.spotlight,.map-card,.reader pre){
 background-color:#fcfaf4;
 background-image:linear-gradient(rgba(255,253,247,.87),rgba(255,253,247,.87)),var(--hermina-watermerk);
 background-size:auto,min(1100px,100vw) auto;
 background-position:center top;
 background-repeat:repeat;
}
/* The very long homepage hero previously stretched a scan into a grey field.
   Repeat authentic Hermina sheets at their natural ratio instead. */
body[data-view="legacy-home"] .hero{
 background-color:#fcfaf4;
 background-image:linear-gradient(rgba(255,253,247,.86),rgba(255,253,247,.86)),var(--hermina-watermerk);
 background-size:auto,min(1100px,100vw) auto;
 background-position:center top;
 background-repeat:repeat;
}
/* Preserve existing original images; prevent long sections stretching them. */
body .original-act-background:is(.subhero,.dossier-intro,.dark,.dashboard,.content-section){
 background-size:auto,min(1100px,100vw) auto;
 background-repeat:repeat;
}
@media(max-width:620px){
 body[data-view="legacy-home"] .hero,body :is(.spotlight,.map-card,.reader pre){
  background-image:linear-gradient(rgba(255,253,247,.86),rgba(255,253,247,.86)),var(--hermina-watermerk-staand);
  background-size:auto,100% auto;
 }
}
@media print{
 body,body :is(.hero,.spotlight,.map-card,.reader pre,.sources){background-image:none!important;background-color:white!important}
}

/* Matching old-deed sheets for informational and person cards, 16 October. */
body :is(.tile,.person-card,.mini-person,.tree-person,.result,.doc-content,.generation-history,.family-card-history details){
 background-color:#f7eedb;
 background-image:linear-gradient(90deg,rgba(143,94,28,.11),transparent 18px,transparent calc(100% - 18px),rgba(143,94,28,.11)),linear-gradient(180deg,rgba(143,94,28,.10),transparent 24px,transparent calc(100% - 24px),rgba(143,94,28,.10)),url('/assets/akte-papier-20261016/papier-naadloos.webp');
 background-size:100% 100%,100% 100%,640px 640px;
 background-repeat:no-repeat,no-repeat,repeat;
 border:1px solid #b99b68;
 border-radius:9px 5px 12px 6px / 5px 11px 6px 10px;
 box-shadow:0 5px 14px rgba(66,47,24,.13),inset 0 0 18px rgba(153,109,43,.08);
 color:#233342;
}
body :is(.tile,.person-card,.mini-person,.tree-person,.result,.doc-content,.generation-history) p{
 font-family:Georgia,'Times New Roman',serif;
 line-height:1.65;
}
body :is(.tile,.person-card,.mini-person,.tree-person) :is(h2,h3){color:#172c3c}
@media print{body :is(.tile,.person-card,.mini-person,.tree-person,.result,.doc-content,.generation-history,.family-card-history details){background:#fff!important;box-shadow:none;border:1px solid #bbb}}
