/* ============================================
   Sitemap page (sitemap.html)
   Banner with the page's art, then the live list of pages as an editorial
   table of contents (from serampore-html legal.css). Loaded after
   style.css, project.css and bonhooghly.css. Only lg-* / lgm-* rules.
   ============================================ */

.lg-hero svg, .lg-body svg{fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;}
:root{--lg-ease: cubic-bezier(0.22, 1, 0.36, 1);}

/* ---------- Banner: blurred live photo + the page's art on the right ---------- */
.lg-hero{position: relative; overflow: hidden; isolation: isolate; display: flex; background: rgb(20, 17, 15); color: #ffffff;}
#top.pj-hc.lg-hero{min-height: clamp(460px, 62vh, 580px);}
.lg-art{position: absolute; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(ellipse 45% 70% at 72% 50%, rgba(240, 90, 40, 0.34), transparent 70%), rgb(20, 17, 15);}
.lg-art-bg{position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; filter: blur(14px) saturate(1.1); transform: scale(1.1);}
.lg-art-stage{position: absolute; top: 0; bottom: 0; right: max(40px, calc((100% - 1400px) / 2 + 60px)); width: min(520px, 42vw); container-type: size; translate: var(--px, 0) var(--py, 0); transition: translate 600ms var(--lg-ease);}
.lg-hero-shade{position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 14, 16, 0.88) 0%, rgba(12, 14, 16, 0.55) 38%, rgba(12, 14, 16, 0) 62%);}
.lg-hero-inner{flex: 1; display: flex; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; padding: clamp(28px, 5vh, 64px) clamp(16px, 4vw, 56px);}
.lg-hero-copy{max-width: 640px; animation: sol-rise 900ms ease both;}
#top.pj-hc.lg-hero .pj-hc-copy{max-width: 600px; grid-template-columns: minmax(0, 1fr);}
#top.pj-hc.lg-hero .pj-hc-copy > .pj-hero2-cta{grid-column: 1; grid-row: auto; align-self: start; margin-top: 26px;}
@keyframes lgFloat{0%, 100%{transform: translate3d(0, 0, 0);} 50%{transform: translate3d(0, -12px, 0);}}

.lg-body{padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(56px, 7vw, 110px);}

/* ---------- Reading card ---------- */
.lg-doc{position: relative; max-width: 880px; margin: 0 auto; padding: clamp(28px, 4.4vw, 60px); overflow: hidden; border-radius: 30px; background: #ffffff; box-shadow: 0 0 0 1px rgba(26, 20, 16, 0.06), 0 40px 80px -60px rgba(26, 20, 16, 0.55);}
.lg-doc::before{content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, rgb(240, 90, 40), rgb(255, 150, 100) 60%, transparent);}
.lg-doc::after{content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(240, 90, 40, 0.12); box-shadow: 0 0 0 40px rgba(240, 90, 40, 0.03), 0 0 0 80px rgba(240, 90, 40, 0.02); pointer-events: none;}
.lg-doc-head{display: flex; align-items: center; gap: 16px; margin-bottom: clamp(20px, 2.4vw, 28px); padding-bottom: clamp(18px, 2.2vw, 24px); border-bottom: 1px solid rgba(26, 20, 16, 0.08);}
.lg-doc-ico{display: inline-flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; background: rgba(240, 90, 40, 0.1); color: rgb(240, 90, 40);}
.lg-doc-ico svg{width: 24px; height: 24px;}
.lg-doc-k{font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(240, 90, 40);}
.lg-doc-t{margin-top: 4px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; color: rgb(26, 20, 16);}
.lg-doc > p{font-family: "Source Serif 4", Georgia, serif; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.8; color: rgb(61, 49, 41); text-wrap: pretty;}
.lg-doc > p + p{margin-top: 1.1em;}
.lg-doc > p:first-of-type::first-letter{float: left; margin: 0.08em 0.12em 0 0; font-size: 3.4em; line-height: 0.82; font-weight: 600; color: rgb(240, 90, 40);}

/* visually hidden heading for screen readers */
.pj-sr-only{position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;}

@media (max-width: 1100px){
  .lg-art-stage{right: 24px; width: 44vw;}
}
@media (max-width: 720px){
  #top.pj-hc.lg-hero{min-height: 600px;}
  .lg-art-stage{left: 0; right: 0; width: auto; bottom: 52%;}
  .lg-hero-shade{background: linear-gradient(180deg, rgba(12, 14, 16, 0) 0%, rgba(12, 14, 16, 0.1) 40%, rgba(12, 14, 16, 0.85) 58%, rgba(12, 14, 16, 0.95) 100%);}
  .lg-hero-inner{align-items: flex-end; padding: 18px 16px;}
  #top.pj-hc.lg-hero .pj-hc-copy > .pj-hero2-cta{margin-top: 18px;}
  .lg-hero .pj-hero2-cta{gap: 10px;}
  .lg-hero .pj-hero2-btn{flex: 1 1 0; justify-content: center; min-height: 46px; padding: 0 12px; gap: 8px; font-size: 14px; white-space: nowrap;}
  .lg-hero .pj-hero2-btn svg{width: 16px; height: 16px;}
  .lg-body{padding-top: 36px; padding-bottom: 48px;}
  .lg-doc{padding: 24px 18px 26px; border-radius: 22px;}
  .lg-doc-head{gap: 12px;}
  .lg-doc-ico{flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px;}
  .lg-doc-ico svg{width: 21px; height: 21px;}
  .lg-doc-k{font-size: 10.5px;}
  .lg-doc-t{font-size: 24px;}
  .lg-doc > p{font-size: 15.5px; line-height: 1.75;}
}
@media (prefers-reduced-motion: reduce){
  .lg-hero-copy{animation: none;}
  .lg-art-stage{transition: none;}
}

/* ---------- Banner art: a small site tree ----------
   The home page as a browser card at the top, joined by drawn lines to
   three page cards (Overview, Special Features, Media) with live photos.
   The lines draw in, then the cards float. */
/* a shorter banner than the other legal pages */
@media (min-width: 721px){ #top.pj-hc.lg-hero{min-height: clamp(380px, 48vh, 450px);} }
.lgm-lines{position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;}
.lg-hero .lgm-lines path{fill: none; stroke: rgba(255, 160, 120, 0.7); stroke-width: 2; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; animation: lgmDash 1.2s linear infinite;}
@keyframes lgmDash{to{stroke-dashoffset: -12;}}
.lgm-card{position: absolute; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fbf8f5; box-shadow: 0 30px 56px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08); translate: -50% 0; will-change: transform; backface-visibility: hidden; animation: lgmIn 800ms var(--lg-ease) both, lgFloat 7s ease-in-out 900ms infinite;}
.lgm-bar{display: flex; gap: 4px; padding: 6px 8px; background: rgb(236, 229, 224);}
.lgm-bar i{width: 6px; height: 6px; border-radius: 50%; background: rgba(26, 20, 16, 0.2);}
.lgm-bar i:first-child{background: rgb(240, 90, 40);}
.lgm-card img{display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;}
.lgm-card b{padding: 7px 10px 9px; font-size: clamp(10px, 2.6cqh, 13px); font-weight: 600; color: rgb(26, 20, 16); white-space: nowrap;}
.lgm-card--home{left: 50%; top: 11%; z-index: 1; width: min(170px, 34cqw, 34cqh); align-items: center; translate: -50% 0;}
.lgm-card--home .lgm-bar{align-self: stretch;}
.lg-hero .lgm-card--home img.lgm-logo{width: 70%; aspect-ratio: auto; height: auto; margin: 12px auto 2px; object-fit: contain;}
.lgm-card--home b{color: rgb(240, 90, 40); letter-spacing: 0.14em; text-transform: uppercase;}
.lgm-card--a, .lgm-card--b, .lgm-card--c{top: 61%; width: min(150px, 30cqw, 32cqh);}
.lgm-card--a{left: 18%; rotate: -5deg; animation-delay: 300ms, 1.2s;}
.lgm-card--b{left: 50%; animation-delay: 450ms, 2.4s;}
.lgm-card--c{left: 82%; rotate: 5deg; animation-delay: 600ms, 3.6s;}
@keyframes lgmIn{from{opacity: 0; scale: 0.9;} to{opacity: 1; scale: 1;}}

/* the Media row is a group (no page of its own on the live site): no hover, count instead of the arrow */
.lg-sm-row--group{cursor: default;}
.lg-sm-count{display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(250, 244, 241); font-size: 14px; font-weight: 600; color: rgb(150, 138, 130);}
.lg-sm-sub .pj-dd-txt{align-self: center;}
@media (max-width: 720px){
  .lgm-card--home{top: 8%;}
  .lgm-card--a, .lgm-card--b, .lgm-card--c{top: 58%;}
  .lg-sm-count{width: 34px; height: 34px; font-size: 13px;}
}
@media (prefers-reduced-motion: reduce){ .lgm-card, .lg-hero .lgm-lines path{animation: none;} }

/* ---------- Sitemap: an editorial table of contents ----------
   Sticky intro on the left (counters tick up, quick actions); on the right
   a numbered list of rows on an orange rail that fills as the page scrolls.
   Rows slide in one after another, the row at the middle of the screen is
   marked current, and each row sweeps orange on hover. legal.js sets
   .is-in / .is-current on the rows and --p (0..1) on the rail. */
.lg-sm{display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 88px); align-items: start; max-width: 1240px; margin: 0 auto;}
.lg-sm-intro{position: sticky; top: calc(76px + 36px);}
.lg-sm-t{margin-top: 14px; font-size: clamp(34px, 3.4vw, 52px); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; color: rgb(26, 20, 16);}
.lg-sm-t em{display: block; font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-weight: 400; color: rgb(240, 90, 40);}
.lg-sm-lead{max-width: 380px; margin-top: 16px; font-family: "Source Serif 4", Georgia, serif; font-size: 16.5px; line-height: 1.7; color: rgb(110, 98, 90);}
.lg-sm-cta{display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;}
.lg-sm-btn{display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1.5px solid rgba(26, 20, 16, 0.16); border-radius: 99px; background: #ffffff; font-family: Outfit, system-ui, sans-serif; font-size: 14px; font-weight: 600; color: rgb(26, 20, 16); cursor: pointer; transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;}
.lg-sm-btn svg{width: 16px; height: 16px; transition: transform 240ms ease;}
.lg-sm-btn:hover{border-color: rgb(240, 90, 40); color: rgb(240, 90, 40);}
.lg-sm-btn--main{border-color: rgb(26, 20, 16); background: rgb(26, 20, 16); color: #ffffff;}
.lg-sm-btn--main:hover{border-color: rgb(240, 90, 40); background: rgb(240, 90, 40); color: #ffffff;}
.lg-sm-btn--main:hover svg{transform: translateX(3px);}

/* the rail and its fill */
.lg-sm-wrap{position: relative; padding-left: 34px;}
.lg-sm-rail{position: absolute; left: 8px; top: 34px; bottom: 34px; width: 2px; border-radius: 2px; background: rgba(26, 20, 16, 0.08);}
.lg-sm-rail i{position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgb(255, 150, 100), rgb(240, 90, 40)); transform: scaleY(var(--p, 0)); transform-origin: 50% 0;}
.lg-sm-list{display: grid; gap: 12px; margin: 0; padding: 0; list-style: none;}

/* a row */
.lg-sm-item{position: relative; border-radius: 24px; background: #ffffff; box-shadow: 0 0 0 1px rgba(26, 20, 16, 0.06), 0 24px 48px -40px rgba(26, 20, 16, 0.55); transition: box-shadow 380ms ease, transform 380ms cubic-bezier(0.22, 1, 0.36, 1);}
/* the dot on the rail */
.lg-sm-item::before{content: ""; position: absolute; left: -31px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: #fff9f7; box-shadow: inset 0 0 0 2px rgba(26, 20, 16, 0.18); transition: background 300ms ease, box-shadow 300ms ease, transform 400ms cubic-bezier(0.22, 1, 0.36, 1), translate 380ms cubic-bezier(0.22, 1, 0.36, 1);}
.lg-sm-item.is-passed::before{background: rgb(240, 90, 40); box-shadow: none;}
.lg-sm-item.is-current::before{background: rgb(240, 90, 40); box-shadow: 0 0 0 6px rgba(240, 90, 40, 0.18); transform: scale(1.15);}
.lg-sm-item.is-current{box-shadow: 0 0 0 1.5px rgba(240, 90, 40, 0.35), 0 30px 56px -40px rgba(240, 90, 40, 0.55);}
.lg-sm-item:hover{transform: translateX(6px);}
/* the row nudges right on hover; its rail dot stays put on the rail */
.lg-sm-item:hover::before{translate: -6px 0;}

.lg-sm-row{position: relative; isolation: isolate; display: grid; grid-template-columns: 36px 48px minmax(0, 1fr) 44px; align-items: center; gap: 16px; padding: 18px 20px 18px 22px; overflow: hidden; border-radius: 24px; color: rgb(26, 20, 16);}
/* orange sweep on hover */
.lg-sm-row::before{content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(240, 90, 40, 0.1), rgba(240, 90, 40, 0.02) 70%, transparent); transform: translateX(-101%); transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);}
a.lg-sm-row:hover::before{transform: none;}
.lg-sm-n{font-family: "Source Serif 4", Georgia, serif; font-size: 16px; font-style: italic; color: rgb(190, 178, 170); transition: color 300ms ease;}
.lg-sm-item.is-current .lg-sm-n, a.lg-sm-row:hover .lg-sm-n{color: rgb(240, 90, 40);}
.lg-sm-ico{display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; background: rgba(240, 90, 40, 0.1); color: rgb(240, 90, 40); transition: background 300ms ease, color 300ms ease, transform 400ms cubic-bezier(0.22, 1, 0.36, 1);}
.lg-sm-ico svg{width: 21px; height: 21px;}
a.lg-sm-row:hover .lg-sm-ico, .lg-sm-item.is-current .lg-sm-ico{background: rgb(240, 90, 40); color: #ffffff;}
a.lg-sm-row:hover .lg-sm-ico{transform: rotate(-8deg);}
.lg-sm-name{font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; letter-spacing: -0.02em; transition: color 300ms ease;}
a.lg-sm-row:hover .lg-sm-name{color: rgb(240, 90, 40);}
.lg-sm-go{display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(26, 20, 16, 0.12); color: rgb(26, 20, 16); transition: background 300ms ease, color 300ms ease, box-shadow 300ms ease, transform 400ms cubic-bezier(0.22, 1, 0.36, 1);}
.lg-sm-go svg{width: 18px; height: 18px;}
a.lg-sm-row:hover .lg-sm-go{background: rgb(240, 90, 40); color: #ffffff; box-shadow: none; transform: rotate(-45deg);}

/* sub-pages as chips under the row */
.lg-sm-sub{margin: -4px 20px 0 calc(22px + 36px + 16px + 48px + 16px - 10px); padding: 10px 0 14px; border-top: 1px solid rgba(26, 20, 16, 0.07);}
.lg-sm-sub-list{display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px;}
.lg-sm-sub .pj-dd-item{width: 100%; border: 0; background: none; font-family: Outfit, system-ui, sans-serif; text-align: left; cursor: pointer;}
.lg-sm-sub .pj-dd-item:hover{background: rgb(250, 244, 241);}
.lg-sm-sub .pj-dd-foot{margin-top: 6px; padding: 12px 10px 0;}

/* entrance: rows slide in from the right one after another */
.lg-sm-item{opacity: 0; translate: 48px 0; transition: opacity 700ms ease var(--d, 0ms), translate 900ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms), box-shadow 380ms ease, transform 380ms cubic-bezier(0.22, 1, 0.36, 1);}
.lg-sm-item.is-in{opacity: 1; translate: none;}
.lg-sm-item .lg-sm-sub .pj-dd-item{opacity: 0; translate: 0 10px; transition: opacity 500ms ease calc(var(--d, 0ms) + 300ms), translate 600ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d, 0ms) + 300ms), background 180ms ease;}
.lg-sm-item.is-in .lg-sm-sub .pj-dd-item{opacity: 1; translate: none;}

@media (max-width: 1024px){
  .lg-sm{grid-template-columns: minmax(0, 1fr); gap: 36px;}
  .lg-sm-intro{position: static;}
  .lg-sm-lead{max-width: 560px;}
}
@media (max-width: 720px){
  .lg-sm-t{font-size: 34px;}
  .lg-sm-lead{font-size: 15.5px;}
  .lg-sm-cta .lg-sm-btn{flex: 1 1 0; justify-content: center; padding: 0 12px; font-size: 13.5px; white-space: nowrap;}
  .lg-sm-wrap{padding-left: 24px;}
  .lg-sm-rail{left: 5px; top: 28px; bottom: 28px;}
  .lg-sm-list{gap: 10px;}
  .lg-sm-item, .lg-sm-row{border-radius: 20px;}
  .lg-sm-item::before{left: -23px; top: 24px; width: 10px; height: 10px;}
  .lg-sm-item:hover{transform: none;}
  .lg-sm-row{grid-template-columns: 22px 40px minmax(0, 1fr) 34px; gap: 10px; padding: 12px 12px 12px 14px;}
  .lg-sm-n{font-size: 13px;}
  .lg-sm-ico{width: 40px; height: 40px; border-radius: 12px;}
  .lg-sm-ico svg{width: 18px; height: 18px;}
  .lg-sm-name{font-size: 16.5px;}
  .lg-sm-go{width: 34px; height: 34px;}
  .lg-sm-go svg{width: 15px; height: 15px;}
  .lg-sm-sub{margin: 0 12px; padding: 8px 0 12px;}
  .lg-sm-sub-list{grid-template-columns: minmax(0, 1fr);}
  .lg-sm-sub .pj-dd-badge{width: 40px; height: 40px; flex-basis: 40px; font-size: 16px;}
  .lg-sm-item{translate: 28px 0;}
}
@media (prefers-reduced-motion: reduce){
  .lg-sm-item, .lg-sm-item .lg-sm-sub .pj-dd-item{opacity: 1; translate: none; transition: none;}
  .lg-sm-row::before, .lg-sm-rail i{transition: none;}
}
