/* Home-only reference composition. Existing scene/card/canvas/animation rules are untouched. */
body.portal.pn-curator.pn-home-marketing.pn-all-cards-home.pn-reference-home {
  background:#070c0d!important;
}
/* The supplied PNG stays byte-identical. This mask excludes ALL baked copy, buttons and stats.
   At source coordinates: x<=615 is absent; the lower-left stats area ends before x=790.
   Proportional background and mask sizing keep those exclusions aligned at every viewport. */
body.portal.pn-curator.pn-home-marketing.pn-all-cards-home.pn-reference-home::before {
  content:""!important;display:block!important;position:fixed!important;
  top:var(--curator-topbar,76px)!important;left:var(--curator-rail,76px)!important;
  right:auto!important;bottom:auto!important;
  width:calc(100% - var(--curator-rail,76px))!important;height:auto!important;
  aspect-ratio:1672/718;z-index:0!important;pointer-events:none!important;
  background:url('./home-map-reference-original-v001.png') 0 0/100% 100% no-repeat!important;
  opacity:1!important;filter:none!important;
  --pn-reference-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1672' height='718' viewBox='0 0 1672 718'%3E%3Cdefs%3E%3ClinearGradient id='x' gradientUnits='userSpaceOnUse' x1='615' x2='655'%3E%3Cstop stop-color='white' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='white'/%3E%3C/linearGradient%3E%3ClinearGradient id='y' gradientUnits='userSpaceOnUse' x1='0' x2='0' y1='510' y2='550'%3E%3Cstop stop-color='white'/%3E%3Cstop offset='1' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='790' x2='820'%3E%3Cstop stop-color='white' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='white'/%3E%3C/linearGradient%3E%3Cmask id='top'%3E%3Crect x='615' width='1057' height='550' fill='url(%23y)'/%3E%3C/mask%3E%3C/defs%3E%3Crect x='615' width='1057' height='550' fill='url(%23x)' mask='url(%23top)'/%3E%3Crect x='790' width='882' height='718' fill='url(%23b)'/%3E%3C/svg%3E");
  -webkit-mask-image:var(--pn-reference-mask)!important;mask-image:var(--pn-reference-mask)!important;
  -webkit-mask-size:100% 100%!important;mask-size:100% 100%!important;
  -webkit-mask-position:0 0!important;mask-position:0 0!important;
  -webkit-mask-repeat:no-repeat!important;mask-repeat:no-repeat!important;
}
body.portal.pn-curator.pn-home-marketing.pn-all-cards-home.pn-reference-home::after {
  background:#070c0d!important;filter:none!important;opacity:1!important;z-index:-1!important;
}
body.pn-reference-home .pn-hero>div:first-child {min-width:0;position:relative;z-index:1}
body.portal.pn-curator.pn-home-marketing.pn-reference-home #hero-title {
  font:400 clamp(38px,4.2vw,60px)/1.08 Georgia,'Times New Roman',serif!important;
  color:#f3eedf;letter-spacing:-1.8px!important;margin:24px 0 28px!important;
  max-width:none!important;text-wrap:normal!important;
}
body.pn-reference-home #hero-title .pn-hero-line {display:block}
body.pn-reference-home #hero-title em {color:#e7be78!important;font-style:italic}
body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-lead {
  font:400 clamp(17px,1.6vw,23px)/1.55 Georgia,'Times New Roman',serif!important;
  color:#f3eedf;max-width:600px!important;margin:0 0 36px!important;
}
body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-actions {
  display:flex!important;flex-wrap:wrap;gap:22px!important;margin:0!important;
}
body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-actions a {
  box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;
  min-height:64px;min-width:0;padding:16px 28px!important;border-radius:3px!important;
  font:400 clamp(16px,1.45vw,21px)/1.25 Georgia,'Times New Roman',serif!important;
  text-transform:none!important;letter-spacing:0!important;text-decoration:none;
  border:1px solid #b1915e!important;color:#f5f0e4!important;
  background:#080d0e55!important;gap:14px;
}
body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-actions a.primary {
  color:#17120b!important;border-color:#d5b377!important;
  background:linear-gradient(120deg,#c5a263,#edce91 52%,#b5955e)!important;
  box-shadow:0 0 23px #d5ad5133!important;
}
body.pn-reference-home .pn-hero .pn-actions a:last-child::before {
  content:"";display:inline-block;flex:none;width:28px;height:28px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='16' cy='16' r='14'/%3E%3Cpath d='m13 10 9 6-9 6z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='16' cy='16' r='14'/%3E%3Cpath d='m13 10 9 6-9 6z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
body.pn-reference-home .pn-hero .pn-actions a:focus-visible {outline:2px solid #f5dfad;outline-offset:5px}
body.pn-reference-home .pn-hero .curator-hero-note {display:none!important}
body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-stats {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(660px,calc(100vw - var(--curator-rail,76px) - 96px));
  max-width:none;margin:86px 0 0!important;padding:0!important;gap:0!important;
  border:0!important;background:none!important;box-shadow:none!important;
}
body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-stats>div {
  padding:0 18px!important;text-align:center;border:0!important;min-width:0;
}
body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-stats>div+div {border-left:1px solid #a68d5d80!important}
body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-stats strong {
  display:block;color:#edc987!important;font:400 42px/1 Georgia,'Times New Roman',serif!important;
  margin:0 0 13px!important;
}
body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-stats span {
  display:block;color:#f1e9d7!important;font:400 12px/1.5 Georgia,'Times New Roman',serif!important;
  letter-spacing:2.5px!important;text-transform:uppercase;
}
@media(max-width:900px){
 body.portal.pn-curator.pn-home-marketing.pn-reference-home #hero-title .pn-hero-line {white-space:normal!important}
 body.portal.pn-curator.pn-home-marketing.pn-reference-home #hero-title {font-size:clamp(36px,5.6vw,54px)!important}
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-actions {gap:14px!important}
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-actions a {padding:15px 20px!important;min-height:58px}
}
@media(max-width:700px){
 body.portal.pn-curator.pn-home-marketing.pn-all-cards-home.pn-reference-home::before {
  width:calc((100vw - var(--curator-rail,64px))*1.581835383)!important;
  left:calc(var(--curator-rail,64px) - (100vw - var(--curator-rail,64px))*.581835383)!important;
  top:calc(var(--curator-topbar,76px) + 420px)!important;
 }
 body.portal.pn-curator.pn-home-marketing.pn-reference-home #hero-title {font-size:clamp(32px,8.6vw,52px)!important;letter-spacing:-1px!important}
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-lead {font-size:18px!important;line-height:1.55!important;margin-bottom:28px!important}
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-actions {display:grid!important;grid-template-columns:1fr;gap:14px!important}
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-actions a {font-size:18px!important;width:100%;min-height:58px}
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-stats {width:100%;margin-top:46px!important}
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-stats>div {padding:0 8px!important}
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-stats strong {font-size:33px!important}
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-stats span {font-size:9px!important;letter-spacing:1.1px!important}
}
@media(forced-colors:active){
 body.portal.pn-curator.pn-home-marketing.pn-all-cards-home.pn-reference-home::before {display:none!important}
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-actions a {background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important}
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero .pn-stats :is(strong,span) {color:CanvasText!important}
}

/* v002: native evidence showed the tall live scene vertically centering the copy,
   and its cast shadow extending outside the viewport. Keep the scene/motion intact.
   Only the hero widens; all following card/section widths remain unchanged. */
body.portal.pn-curator.pn-home-marketing.pn-reference-home,
body.portal.pn-curator.pn-home-marketing.pn-reference-home>.curator-page {
  overflow-x:clip!important;
}
body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero>div:first-child {
  align-self:start!important;
}
@media(min-width:901px){
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero {
  --pn-reference-inset:clamp(36px,5.2631579vw,88px);
  --pn-reference-hero-width:calc(100vw - var(--curator-rail,76px) - 2*var(--pn-reference-inset));
  width:var(--pn-reference-hero-width);
  max-width:none;
  margin-left:calc((100% - var(--pn-reference-hero-width))/2);
  margin-right:calc((100% - var(--pn-reference-hero-width))/2);
  padding-top:76px!important;
 }
}
@media(min-width:701px) and (max-width:900px){
 body.portal.pn-curator.pn-home-marketing.pn-reference-home .pn-hero {padding-top:48px!important}
}
