/* TRL PUBLISHING — LOCKED HOMEPAGE VISUAL
   Source-of-truth: /TRL Publishing/Approved Designs/TRL Homepage HERO LOCKED MASTER 2026-11-15.png
   Master sha256: 73d241d1cba2d2e5a007cfcdff9416ce26738425ef6bc0a9b126a1ba1df1caa0
   Do not rebuild/regenerate the desktop artwork. Navigation and hero CTAs are live hotspots.
   Mobile uses semantic live-layout fallback rather than tiny rasterized text. */

.trl-approved-hero {
  display:block;
  position:relative;
  width:100%;
  overflow:hidden;
  isolation:isolate;
  background:#5c2d15;
  aspect-ratio:1672 / 941;
}
.trl-approved-hero > img {
  display:block;
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  object-fit:fill;
  filter:none !important;
  opacity:1 !important;
}
.trl-approved-accessible {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.trl-locked-nav {
  position:absolute;
  inset:0;
  pointer-events:none;
}
.trl-hotspot {
  display:block;
  position:absolute;
  z-index:5;
  background:transparent;
  border-radius:6px;
  pointer-events:auto;
  text-decoration:none;
  cursor:pointer;
}
.trl-hotspot:hover {
  background:rgba(255,221,139,.06);
}
.trl-hotspot:focus-visible {
  outline:3px solid #f8d487;
  outline-offset:3px;
  background:rgba(77,33,11,.16);
}
/* Coordinates measured against the complete 1672 × 941 approved image. */
.trl-hotspot-home {left:51.0%;top:5.2%;width:6.2%;height:5.0%;}
.trl-hotspot-books {left:58.4%;top:5.1%;width:6.5%;height:5.5%;}
.trl-hotspot-resources {left:67.7%;top:5.1%;width:9.4%;height:5.6%;}
.trl-hotspot-about {left:78.8%;top:5.0%;width:6.3%;height:5.5%;}
.trl-hotspot-contact {left:86.1%;top:3.8%;width:10.2%;height:6.7%;}
.trl-hotspot-library {left:28.4%;top:63.2%;width:20.0%;height:8.2%;border-radius:999px;}
.trl-hotspot-retrieve {left:49.7%;top:63.2%;width:20.2%;height:8.2%;border-radius:999px;}

/* One immutable master, no competing CSS header or arch overlays on desktop. */
@media(min-width:901px) {
  body > .site-header {display:none!important;}
  main > .hero.hero-banner {display:none!important;}
}
/* Real text, working links, and accessible controls on phones/tablets. */
@media(max-width:900px) {
  .trl-approved-hero {display:none!important;}
  body > .site-header {display:block!important;}
  main > .hero.hero-banner {display:block!important;}
  .site-header .brand-mark {width:90px;height:78px;flex-basis:90px;}
  .hero-banner-media > .trl-hero-image {filter:saturate(1.10) contrast(1.03)!important;}
}


/* Mobile homepage visual alignment — 2026-11-15.
   Desktop master is immutable; this only styles the semantic mobile fallback.
   Keep every original hero image, button destination and approved copy. */
@media (max-width:900px) {
  body > .site-header {
    position:relative!important;
    inset:auto!important;
    background:linear-gradient(112deg,#3b1a0a 0%,#69300f 51%,#431c0c 100%)!important;
    border-top:0!important;
    border-bottom:2px solid #b87b33!important;
    box-shadow:0 5px 17px rgba(41,18,6,.30)!important;
    backdrop-filter:none!important;
  }
  body > .site-header .header-inner {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:.85rem;
    padding:1rem .4rem 1.15rem;
    min-height:0;
  }
  body > .site-header .brand-block {
    display:flex;
    flex:initial!important;
    align-items:center;
    justify-content:center;
    gap:.7rem;
    max-width:100%;
  }
  body > .site-header .brand-mark {
    width:clamp(75px,21vw,100px);
    height:clamp(72px,20vw,96px);
    flex:0 0 clamp(75px,21vw,100px);
    background:transparent!important;
    border:0!important;
  }
  body > .site-header .brand-block > div:nth-child(2) {
    padding-left:clamp(10px,3vw,17px);
    border-left:1px solid rgba(240,183,83,.7);
  }
  body > .site-header .brand-name {
    font-size:clamp(1.25rem,5.4vw,1.75rem)!important;
    color:#f5cf84!important;
    line-height:1.1;
  }
  body > .site-header .brand-subtitle {
    color:#fbe4bb!important;
    font-size:clamp(.75rem,2.8vw,.96rem)!important;
  }
  body > .site-header .brand-tagline {
    color:#ffe1a2!important;
    max-width:100%;
    white-space:normal;
  }
  body > .site-header .brand-tagline::after {
    content:none!important;
  }
  body > .site-header .site-nav {
    display:flex;
    width:100%;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center!important;
    gap:.35rem .65rem;
    padding-top:.15rem;
  }
  body > .site-header .site-nav a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:39px;
    color:#fff0d2!important;
    font-size:clamp(.83rem,2.9vw,.95rem)!important;
    font-weight:600;
    text-decoration:none;
  }
  body > .site-header .site-nav .trl-contact-nav {
    min-height:40px;
    padding:.55rem 1.1rem;
    color:#3b1b0a!important;
  }
  main > .hero.hero-banner .hero-banner-media {
    background:#c17e40!important;
  }
  main > .hero.hero-banner .trl-hero-image {
    filter:saturate(1.20) contrast(1.08) brightness(1.015)!important;
  }
  main > .hero.hero-banner .hero-banner-shade {
    background:linear-gradient(180deg,
      rgba(102,47,17,.10) 0%,
      rgba(255,224,159,.07) 40%,
      rgba(84,35,15,.19) 100%)!important;
  }
}
@media (max-width:410px) {
  body > .site-header .header-inner {padding:.85rem .2rem 1rem;}
  body > .site-header .site-nav {gap:.18rem .45rem;}
  body > .site-header .site-nav a {min-height:36px;}
}
