/* Hanner og Hunner — shared animal presentation, with card surfaces and photo frames in site-common.css. */
.boar-intro {position:relative; z-index:3; overflow:visible; padding:54px 0 61px; background:linear-gradient(113deg,#f8fcfd 0%,#edf5f9 75%,#ebf2f7 100%)}
.boar-intro-inner {position:relative; z-index:2}

.boar-intro h1 {margin:0 0 14px; color:#203e5b; font-size:clamp(37px,4.1vw,50px); font-weight:400; line-height:1.17}
.boar-lead {margin:0; max-width:720px; font-size:17px; line-height:1.75; color:#526c7e}
.boar-list {position:relative; z-index:2; background:var(--paper); padding:72px 0 75px}
.boar-list-inner {position:relative; z-index:2; display:grid; gap:23px}
.boar-card {min-width:0; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,0.95fr); gap:30px; align-items:center; padding:24px 27px}
.boar-copy {min-width:0}

.boar-note {margin:15px 0 0; max-width:520px; color:#536d7d}
.boar-gallery {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; min-width:0}

.boar-end {position:relative;z-index:1;overflow:visible; padding:40px 0 57px; background:linear-gradient(115deg,#edf5f9 0%,#f3f8fa 100%)}
.boar-end-inner {position:relative; z-index:2}
.boar-end-inner p {margin:0;max-width:none;padding-right:104px;color:#526b7c;font-size:15px;line-height:1.75}
/* Original two chicory images from the approved index: cross pastel/white tiles,
   remain below text and cards, never cropped at sectional boundaries. */
.boar-intro .boar-flower-intro {position:absolute; display:block; z-index:1; pointer-events:none; width:174px;height:105px;left:max(3px,calc((100vw - 1370px)/2));right:auto;top:auto;bottom:-52px;opacity:.48;object-fit:contain;transform:none}
.boar-end .boar-flower-end {position:absolute; display:block; z-index:1; pointer-events:none; width:104px;height:105px;right:max(16px,calc((100vw - 1360px)/2));left:auto;top:8px;bottom:auto;opacity:.47;object-fit:contain;transform:none}
@media(max-width:900px) {
 .boar-card {gap:23px;padding:22px}

}
@media(max-width:780px){
 .boar-intro{padding:43px 0 60px}
 .boar-list{padding:57px 0 58px}
 .boar-card{grid-template-columns:1fr;gap:21px;padding:24px;max-width:620px;margin:0 auto;width:100%}

 .boar-end{padding:38px 0 52px}
 .boar-end .boar-flower-end{display:none} /* avoid covering pensionist text on narrow screens */ .boar-end-inner p{padding-right:0}
 .boar-intro .boar-flower-intro{width:133px;height:82px;left:-6px;bottom:-39px;opacity:.40}
}
@media(max-width:600px){
 .boar-intro{padding:36px 0 55px}
 .boar-intro h1{font-size:38px}
 .boar-lead{font-size:15px}
 .boar-list{padding:45px 0 47px}
 .boar-list-inner{gap:18px}
 .boar-card{gap:17px;padding:17px}

 .boar-gallery{gap:8px}

 .boar-intro .boar-flower-intro{width:103px;height:64px;left:-8px;bottom:-31px;opacity:.35}
}
@media(max-width:365px){
 .boar-card{padding:15px}

}

/* Photo grids are responsive to the actual number of original photographs. */
.boar-gallery.is-single {grid-template-columns:minmax(0,1fr);width:100%;max-width:310px}
@media(max-width:600px){
 .boar-gallery.is-single{max-width:100%}
}

.head-inner .brand-mark{isolation:isolate}
.head-inner .brand img.brand-primary {position:relative; z-index:1;}

/* All introductions on the new pair start at the same shell edge as Kuld på vej,
   using its same readable 820px measure rather than a centered inner column. */
.boar-intro .boar-intro-inner {width:min(var(--max),calc(100% - 76px));max-width:none; margin-inline:auto;}
.boar-intro .boar-lead {max-width:720px; width:100%;}
@media(max-width:780px){
  .boar-intro .boar-intro-inner{width:calc(100% - 40px)}

}

/* Lower botanical grows freely across the edge of the light band,
   but stays behind the shared dark Marsvineprogrammer banner. */
@media(min-width:781px){
 main .boar-end{z-index:3;overflow:visible;}
 main .boar-end-inner p{padding-right:190px;}
 main .boar-end .boar-flower-end{
   display:block;width:180px;height:182px;right:0;top:-76px;
   opacity:.53;pointer-events:none;
 }
}

/* Direkte henvisning fra Kuld på vej til dyrets eget kort. */
main .boar-card[id^="dyr-"]{scroll-margin-top:24px}
