
@font-face{font-family:"Sora";src:url("font/sora-latin.woff2") format("woff2");font-weight:600 800;font-display:swap}
@font-face{font-family:"Manrope";src:url("font/manrope-latin.woff2") format("woff2");font-weight:400 700;font-display:swap}

:root{
  --ag-paper:#ffffff;
  --ag-cloud:#f4f7fd;
  --ag-sky:#e7efff;
  --ag-line:#dbe4f3;
  --ag-ink:#0e1b4d;
  --ag-ink-soft:#33427a;
  --ag-red:#d81e34;
  --ag-red-deep:#a5122a;
  --ag-sun:#ffc940;
  --ag-mute:#63709a;
  --ag-mint:#0fa47a;
  --ag-font-display:"Sora",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  --ag-font-body:"Manrope",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  --ag-shadow-soft:0 8px 30px rgba(14,27,77,0.06);
  --ag-shadow-card:0 4px 16px rgba(14,27,77,0.04);
  --ag-radius-card:14px;
  --ag-radius-btn:10px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

/* ---------- Demoted headings ---------- */
/* The layout carries no heading elements: those belong to the long-form the SEO team writes.
   A <div> has none of a heading's default metrics, so restore them here. Placed before the
   design rules on purpose: any class that sets its own size still wins on source order. */
[data-hx]{font-weight:bold}
[data-hx="1"]{font-size:2em}
[data-hx="2"]{font-size:1.5em}
[data-hx="3"]{font-size:1.17em}
[data-hx="4"]{font-size:1em}
[data-hx="5"]{font-size:.83em}
[data-hx="6"]{font-size:.67em}
/* ---------- end demoted headings ---------- */


body{
  font-family:var(--ag-font-body);
  font-size:16px;
  line-height:1.6;
  color:var(--ag-ink-soft);
  background-color:var(--ag-paper);
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;background:none;border:none;cursor:pointer}

:focus-visible{
  outline:2px solid var(--ag-red);
  outline-offset:2px;
}

.ag-wrap{
  width:100%;
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
  padding-left:16px;
  padding-right:16px;
}

/* 1. Utility Bar */
.ag-utilitybar{
  background-color:var(--ag-cloud);
  border-bottom:1px solid var(--ag-line);
  font-size:13px;
  color:var(--ag-mute);
  padding:6px 0;
}
.ag-utilitybar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.ag-util-left{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
}
.ag-util-badge{
  background:var(--ag-red);
  color:var(--ag-paper);
  font-size:11px;
  padding:2px 6px;
  border-radius:4px;
  font-weight:700;
}
.ag-util-right{
  display:flex;
  align-items:center;
  gap:12px;
}
.ag-chip-currency{
  background:var(--ag-sky);
  color:var(--ag-ink);
  padding:2px 8px;
  border-radius:6px;
  font-weight:700;
  font-size:12px;
  border:1px solid var(--ag-line);
}
.ag-util-link{
  color:var(--ag-ink-soft);
  font-weight:600;
}
.ag-util-link:hover{color:var(--ag-red)}

/* 2. Masthead */
.ag-masthead{
  background:var(--ag-paper);
  border-bottom:1px solid var(--ag-line);
  position:sticky;
  top:0;
  z-index:100;
  box-shadow:0 2px 10px rgba(14,27,77,0.03);
}
.ag-masthead-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:70px;
}
.ag-brand-logo{
  display:flex;
  align-items:center;
  height:44px;
}
.ag-brand-logo img{
  height:40px;
  width:auto;
  max-width:180px;
  object-fit:contain;
}
.ag-nav-desktop{
  display:none;
}
.ag-nav-link{
  font-family:var(--ag-font-display);
  font-weight:600;
  font-size:15px;
  letter-spacing:-0.02em;
  color:var(--ag-ink);
  padding:8px 12px;
  border-radius:6px;
  transition:color 0.2s,background-color 0.2s;
}
.ag-nav-link:hover{
  color:var(--ag-red);
  background-color:var(--ag-cloud);
}
.ag-header-actions{
  display:none;
}
.ag-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:var(--ag-radius-btn);
  font-family:var(--ag-font-display);
  font-weight:700;
  font-size:14px;
  letter-spacing:-0.01em;
  transition:background-color 0.2s,transform 0.1s,border-color 0.2s;
}
.ag-btn-outline{
  border:1.5px solid var(--ag-line);
  color:var(--ag-ink);
  background:var(--ag-paper);
}
.ag-btn-outline:hover{
  border-color:var(--ag-ink);
  background:var(--ag-cloud);
}
.ag-btn-primary{
  background:var(--ag-red);
  color:var(--ag-paper);
  border:1.5px solid var(--ag-red);
}
.ag-btn-primary:hover{
  background:var(--ag-red-deep);
  border-color:var(--ag-red-deep);
}
.ag-btn-light{
  background:var(--ag-sky);
  color:var(--ag-ink);
  border:1.5px solid var(--ag-line);
}
.ag-btn-light:hover{
  background:var(--ag-paper);
  border-color:var(--ag-ink);
}

.ag-menu-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:8px;
  border:1px solid var(--ag-line);
  color:var(--ag-ink);
  font-size:20px;
}

/* Mobile Bottom Sheet Navigation */
.ag-sheet-backdrop{
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(14,27,77,0.5);
  backdrop-filter:blur(4px);
  z-index:200;
  opacity:0;
  visibility:hidden;
  transition:opacity 0.25s ease,visibility 0.25s ease;
}
.ag-bottom-sheet{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  max-height:85vh;
  background:var(--ag-paper);
  border-top-left-radius:20px;
  border-top-right-radius:20px;
  box-shadow:0 -10px 40px rgba(14,27,77,0.2);
  z-index:201;
  transform:translateY(100%);
  transition:transform 0.3s cubic-bezier(0.16,1,0.3,1);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.ag-sheet-backdrop.ag-on{opacity:1;visibility:visible}
.ag-bottom-sheet.ag-on{transform:translateY(0)}
.ag-sheet-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px;
  border-bottom:1px solid var(--ag-line);
}
.ag-sheet-title{
  font-family:var(--ag-font-display);
  font-size:16px;
  font-weight:700;
  color:var(--ag-ink);
  letter-spacing:-0.02em;
}
.ag-sheet-close{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  font-size:22px;
  color:var(--ag-ink-soft);
  background:var(--ag-cloud);
}
.ag-sheet-body{
  padding:20px;
  overflow-y:auto;
}
.ag-sheet-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:20px;
}
.ag-sheet-link{
  font-family:var(--ag-font-display);
  font-size:16px;
  font-weight:600;
  color:var(--ag-ink);
  padding:12px 16px;
  border-radius:10px;
  background:var(--ag-cloud);
  border:1px solid var(--ag-line);
  letter-spacing:-0.02em;
}
.ag-sheet-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* 3. Hero Block */
.ag-hero{
  background:linear-gradient(180deg,var(--ag-paper) 0%,var(--ag-cloud) 100%);
  padding:36px 0 44px;
  border-bottom:3px solid var(--ag-red);
  position:relative;
}
.ag-hero-grid{
  display:flex;
  flex-direction:column-reverse;
  gap:28px;
}
.ag-hero-media{
  display:flex;
  justify-content:center;
}
.ag-hero-media img{
  border-radius:20px;
  box-shadow:var(--ag-shadow-soft);
  border:1px solid var(--ag-line);
  width:100%;
  max-width:557px;
}
.ag-hero-content{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.ag-hero-badge{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--ag-sky);
  color:var(--ag-ink);
  border:1px solid var(--ag-line);
  padding:4px 10px;
  border-radius:6px;
  font-size:12px;
  font-weight:700;
  margin-bottom:12px;
}
h1.ag-hero-title,[data-hx="1"].ag-hero-title,div.ag-hero-title{
  font-family:var(--ag-font-display);
  font-size:30px;
  line-height:1.2;
  font-weight:800;
  color:var(--ag-ink);
  letter-spacing:-0.02em;
  margin-bottom:14px;
}
.ag-hero-lead{
  font-size:16px;
  color:var(--ag-ink-soft);
  margin-bottom:20px;
}
.ag-hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:20px;
}
.ag-hero-ticks{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  padding-top:14px;
  border-top:1px solid var(--ag-line);
  font-size:13px;
  font-weight:600;
  color:var(--ag-ink);
}
.ag-tick-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.ag-tick-icon{
  color:var(--ag-mint);
  font-weight:800;
}

/* 4. Quickpick Block */
.ag-quickpick{
  padding:40px 0;
  background:var(--ag-paper);
}
.ag-section-head{
  text-align:center;
  margin-bottom:28px;
}
.ag-section-tag{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:var(--ag-red);
  margin-bottom:6px;
}
h2.ag-section-title,[data-hx="2"].ag-section-title{
  font-family:var(--ag-font-display);
  font-size:24px;
  font-weight:800;
  color:var(--ag-ink);
  letter-spacing:-0.02em;
}
.ag-quickpick-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
.ag-qp-card{
  background:var(--ag-paper);
  border:1px solid var(--ag-line);
  border-radius:var(--ag-radius-card);
  padding:24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  transition:transform 0.2s,box-shadow 0.2s,border-color 0.2s;
  box-shadow:var(--ag-shadow-card);
}
.ag-qp-card:hover{
  transform:translateY(-4px);
  border-color:var(--ag-red);
  box-shadow:var(--ag-shadow-soft);
}
.ag-qp-icon-box{
  width:90px;
  height:90px;
  margin-bottom:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--ag-cloud);
  border-radius:12px;
  border:1px solid var(--ag-line);
}
.ag-qp-icon-box img{
  width:72px;
  height:72px;
  object-fit:contain;
}
.ag-qp-title{
  font-family:var(--ag-font-display);
  font-size:18px;
  font-weight:700;
  color:var(--ag-ink);
  margin-bottom:8px;
  letter-spacing:-0.02em;
}
.ag-qp-desc{
  font-size:14px;
  color:var(--ag-mute);
  margin-bottom:16px;
}
.ag-qp-link{
  font-family:var(--ag-font-display);
  font-size:13px;
  font-weight:700;
  color:var(--ag-red);
  display:inline-flex;
  align-items:center;
  gap:4px;
}

/* 5. Identity Block */
.ag-identity{
  padding:44px 0;
  background:var(--ag-cloud);
}
.ag-identity-panel{
  background:var(--ag-paper);
  border:1px solid var(--ag-line);
  border-radius:var(--ag-radius-card);
  padding:28px 20px;
  box-shadow:var(--ag-shadow-soft);
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
.ag-identity-main h2,.ag-identity-main [data-hx="2"]{
  font-family:var(--ag-font-display);
  font-size:24px;
  font-weight:800;
  color:var(--ag-ink);
  letter-spacing:-0.02em;
  margin-bottom:12px;
}
.ag-identity-text{
  font-size:15px;
  color:var(--ag-ink-soft);
  margin-bottom:20px;
}
.ag-identity-dl{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  background:var(--ag-cloud);
  padding:16px;
  border-radius:10px;
  border:1px solid var(--ag-line);
}
.ag-dl-row{
  display:flex;
  flex-direction:column;
  padding-bottom:8px;
  border-bottom:1px solid var(--ag-line);
}
.ag-dl-row:last-child{
  border-bottom:none;
  padding-bottom:0;
}
.ag-dl-row dt{
  font-size:12px;
  font-weight:700;
  color:var(--ag-mute);
  text-transform:uppercase;
  letter-spacing:0.02em;
}
.ag-dl-row dd{
  font-size:14px;
  font-weight:700;
  color:var(--ag-ink);
}
.ag-identity-brandside{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:var(--ag-sky);
  padding:24px;
  border-radius:12px;
  border:1px solid var(--ag-line);
}
.ag-identity-brandside img{
  max-width:240px;
  height:auto;
  margin-bottom:14px;
}
.ag-brand-wordmark-text{
  font-family:var(--ag-font-display);
  font-size:13px;
  font-weight:800;
  color:var(--ag-ink);
  letter-spacing:0.04em;
}
.ag-brand-badge-partner{
  margin-top:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--ag-paper);
  border:1px solid var(--ag-line);
  padding:4px 10px;
  border-radius:6px;
  font-size:12px;
  font-weight:700;
  color:var(--ag-ink-soft);
}

/* 6. VIP Ladder Block */
.ag-vipladder{
  padding:40px 0;
  background:var(--ag-paper);
}
.ag-vip-strip-wrap{
  text-align:center;
  margin-bottom:24px;
}
.ag-vip-strip-wrap img{
  max-width:600px;
  margin:0 auto;
  border-radius:10px;
  border:1px solid var(--ag-line);
}
.ag-ladder-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-bottom:24px;
}
.ag-ladder-step{
  background:var(--ag-cloud);
  border:1px solid var(--ag-line);
  border-radius:12px;
  padding:18px;
  position:relative;
  display:flex;
  align-items:center;
  gap:16px;
}
.ag-step-num{
  width:36px;
  height:36px;
  background:var(--ag-ink);
  color:var(--ag-paper);
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--ag-font-display);
  font-weight:800;
  font-size:14px;
  flex-shrink:0;
}
.ag-step-content h3,.ag-step-content [data-hx="3"]{
  font-family:var(--ag-font-display);
  font-size:15px;
  font-weight:700;
  color:var(--ag-ink);
  margin-bottom:2px;
  letter-spacing:-0.01em;
}
.ag-step-content p{
  font-size:13px;
  color:var(--ag-ink-soft);
}
.ag-ladder-foot{
  text-align:center;
}

/* 7. Reward Table Block */
.ag-rewardtable{
  padding:40px 0;
  background:var(--ag-cloud);
}
.ag-table-box{
  background:var(--ag-paper);
  border:1px solid var(--ag-line);
  border-radius:var(--ag-radius-card);
  overflow-x:auto;
  box-shadow:var(--ag-shadow-card);
}
.ag-data-table{
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:14px;
  min-width:620px;
}
.ag-data-table th{
  background:var(--ag-sky);
  color:var(--ag-ink);
  font-family:var(--ag-font-display);
  font-weight:700;
  padding:14px 18px;
  border-bottom:1px solid var(--ag-line);
  letter-spacing:-0.01em;
}
.ag-data-table td{
  padding:14px 18px;
  border-bottom:1px solid var(--ag-line);
  color:var(--ag-ink-soft);
}
.ag-data-table tr:last-child td{
  border-bottom:none;
}
.ag-table-reward-name{
  font-weight:700;
  color:var(--ag-ink);
  font-family:var(--ag-font-display);
}
.ag-table-link{
  color:var(--ag-red);
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.ag-table-link:hover{text-decoration:underline}

/* 8. Lobby Studios Block */
.ag-lobby{
  padding:44px 0;
  background:var(--ag-paper);
}
.ag-lobby-filter{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-bottom:24px;
  flex-wrap:wrap;
}
.ag-tab-btn{
  padding:8px 16px;
  border-radius:8px;
  font-family:var(--ag-font-display);
  font-size:13px;
  font-weight:700;
  letter-spacing:-0.01em;
  background:var(--ag-cloud);
  border:1px solid var(--ag-line);
  color:var(--ag-ink-soft);
  min-height:38px;
}
.ag-tab-btn.ag-on{
  background:var(--ag-red);
  color:var(--ag-paper);
  border-color:var(--ag-red);
}
.ag-provider-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:24px;
}
.ag-provider-tile{
  display:block;
  background:var(--ag-cloud);
  border:1px solid var(--ag-line);
  border-radius:10px;
  padding:8px;
  transition:transform 0.15s,border-color 0.15s,box-shadow 0.15s;
  aspect-ratio:1/1;
}
.ag-provider-tile:hover{
  transform:translateY(-2px);
  border-color:var(--ag-red);
  box-shadow:var(--ag-shadow-card);
}
.ag-provider-tile img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:6px;
}
.ag-lobby-foot{
  text-align:center;
}

/* 9. Longform Slot Block */
.ag-longform{
  padding:40px 0;
  background:var(--ag-paper);
}
.ag-lf-tag{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:var(--ag-red);
  margin-bottom:6px;
}
.ag-lf-h2{
  font-family:var(--ag-font-display);
  font-size:22px;
  font-weight:800;
  color:var(--ag-ink);
  letter-spacing:-0.02em;
  margin-bottom:16px;
}
.ag-lf-toc{
  margin-bottom:16px;
}
.ag-lf-slot{
  min-height:340px;
  border:2px dashed rgba(216,30,52,0.4);
  background-color:var(--ag-cloud);
  border-radius:var(--ag-radius-card);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  text-align:center;
}
.ag-lf-hint{
  font-style:italic;
  color:var(--ag-mute);
  font-size:14px;
  max-width:500px;
}

/* 10. App Band Block (Navy Dark ONLY) */
.ag-appband{
  background-color:var(--ag-ink);
  color:var(--ag-paper);
  padding:44px 0;
}
.ag-appband-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:20px;
}
.ag-app-strip{
  max-width:560px;
  border-radius:10px;
}
.ag-app-info h2,.ag-app-info [data-hx="2"]{
  font-family:var(--ag-font-display);
  font-size:22px;
  font-weight:800;
  color:var(--ag-paper);
  margin-bottom:8px;
  letter-spacing:-0.02em;
}
.ag-app-info p{
  color:var(--ag-sky);
  font-size:15px;
  max-width:620px;
}
.ag-app-meta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  padding:4px 12px;
  border-radius:6px;
  font-size:12px;
  font-weight:600;
  margin-top:10px;
}

/* 11. FAQ Block */
.ag-faq{
  padding:44px 0;
  background:var(--ag-paper);
}
.ag-faq-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-width:840px;
  margin:0 auto;
}
.ag-faq-item{
  background:var(--ag-cloud);
  border:1px solid var(--ag-line);
  border-radius:12px;
  overflow:hidden;
}
.ag-faq-summary{
  padding:16px 20px;
  font-family:var(--ag-font-display);
  font-weight:700;
  font-size:15px;
  color:var(--ag-ink);
  cursor:pointer;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  letter-spacing:-0.01em;
}
.ag-faq-summary::-webkit-details-marker{display:none}
.ag-faq-summary::after{
  content:"+";
  font-size:20px;
  font-weight:700;
  color:var(--ag-red);
  margin-left:12px;
  transition:transform 0.2s;
}
.ag-faq-item[open] .ag-faq-summary::after{
  content:"−";
}
.ag-faq-answer{
  padding:0 20px 16px;
  font-size:14px;
  color:var(--ag-ink-soft);
  line-height:1.6;
}

/* 12. Silo Lanes Block */
.ag-silolanes{
  padding:44px 0;
  background:var(--ag-cloud);
  border-top:1px solid var(--ag-line);
}
.ag-lanes-wrap{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.ag-lane{
  background:var(--ag-paper);
  border:1px solid var(--ag-line);
  border-radius:12px;
  padding:16px 20px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.ag-lane-hub{
  font-family:var(--ag-font-display);
  font-weight:800;
  font-size:13px;
  color:var(--ag-ink);
  background:var(--ag-sky);
  border:1px solid var(--ag-line);
  padding:6px 14px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  letter-spacing:-0.01em;
}
.ag-lane-spokes{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  align-items:center;
}
.ag-spoke-link{
  font-size:13px;
  font-weight:600;
  color:var(--ag-ink-soft);
  padding:4px 8px;
  border-radius:6px;
  background:var(--ag-cloud);
  border:1px solid var(--ag-line);
  transition:color 0.15s,border-color 0.15s,background-color 0.15s;
}
.ag-spoke-link:hover{
  color:var(--ag-red);
  border-color:var(--ag-red);
  background:var(--ag-paper);
}

/* 13. Footer Block */
.ag-footer{
  background:var(--ag-paper);
  border-top:1px solid var(--ag-line);
  padding:44px 0 24px;
}
.ag-footer-cols{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  margin-bottom:32px;
}
.ag-footer-col h3,.ag-footer-col [data-hx="3"]{
  font-family:var(--ag-font-display);
  font-size:14px;
  font-weight:800;
  color:var(--ag-ink);
  margin-bottom:12px;
  letter-spacing:-0.01em;
}
.ag-footer-links{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ag-footer-links a{
  font-size:13px;
  color:var(--ag-mute);
  transition:color 0.2s;
}
.ag-footer-links a:hover{
  color:var(--ag-red);
}
.ag-footer-badges{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  padding:20px 0;
  border-top:1px solid var(--ag-line);
  border-bottom:1px solid var(--ag-line);
  margin-bottom:20px;
}
.ag-footer-badge-item{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--ag-cloud);
  border:1px solid var(--ag-line);
  border-radius:8px;
  padding:8px 12px;
}
.ag-footer-badge-item img{
  max-height:36px;
  width:auto;
  object-fit:contain;
}
.ag-footer-disclaimer{
  font-size:12px;
  color:var(--ag-mute);
  line-height:1.6;
  margin-bottom:14px;
}
.ag-footer-bottom{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:12px;
  color:var(--ag-mute);
  padding-top:12px;
}

/* Tablet (min-width: 768px) */
@media (min-width:768px){
  .ag-hero-grid{
    flex-direction:row;
    align-items:center;
  }
  .ag-hero-media{
    flex:5;
  }
  .ag-hero-content{
    flex:7;
  }
  h1.ag-hero-title,[data-hx="1"].ag-hero-title,div.ag-hero-title{
    font-size:36px;
  }
  .ag-quickpick-grid{
    grid-template-columns:repeat(3,1fr);
  }
  .ag-identity-panel{
    grid-template-columns:7fr 5fr;
  }
  .ag-identity-dl{
    grid-template-columns:1fr 1fr;
  }
  .ag-ladder-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .ag-provider-grid{
    /* 4 cols, not 5: 24 tiles / 5 leaves a 1-cell hole on the right in the last row */
    grid-template-columns:repeat(4,1fr);
  }
  .ag-appband-inner{
    flex-direction:row;
    text-align:left;
    justify-content:space-between;
  }
  .ag-app-strip{
    max-width:380px;
  }
  .ag-lane{
    flex-direction:row;
    align-items:center;
  }
  .ag-footer-cols{
    grid-template-columns:repeat(3,1fr);
  }
  .ag-footer-badges{
    grid-template-columns:repeat(4,1fr);
  }
  .ag-footer-bottom{
    flex-direction:row;
    justify-content:space-between;
  }
}

/* Desktop (min-width: 1024px) */
@media (min-width:1024px){
  .ag-nav-desktop{
    display:flex;
    align-items:center;
    gap:4px;
  }
  .ag-header-actions{
    display:flex;
    align-items:center;
    gap:10px;
  }
  .ag-menu-toggle{
    display:none;
  }
  h1.ag-hero-title,[data-hx="1"].ag-hero-title,div.ag-hero-title{
    font-size:42px;
  }
  .ag-ladder-grid{
    grid-template-columns:repeat(4,1fr);
  }
  .ag-ladder-step{
    flex-direction:column;
    text-align:center;
    align-items:center;
  }
  .ag-provider-grid{
    grid-template-columns:repeat(8,1fr);
  }
}

/* --- QA fix round 1: overflow mb390 --- */
.ag-vip-strip-wrap {
  width: 100%;
  max-width: 100%;
}

.ag-vip-strip-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ag-appband-inner {
  width: 100%;
  max-width: 100%;
}

.ag-app-action {
  max-width: 100%;
}

.ag-app-action img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .ag-app-action {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}


/* --- QA fix round 2: tap target 44px --- */

.ag-util-link,
.ag-nav-link,
.ag-sheet-close,
.ag-lane-hub,
.ag-spoke-link,
.ag-qp-link,
.ag-tab-btn {
  min-height: 44px;
  box-sizing: border-box;
}

.ag-util-link {
  display: inline-flex;
  align-items: center;
  line-height: normal;
  padding-top: 0;
  padding-bottom: 0;
}

.ag-nav-link {
  display: inline-flex;
  align-items: center;
}

.ag-sheet-close {
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ag-lane-hub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ag-spoke-link {
  display: inline-flex;
  align-items: center;
}

.ag-qp-link {
  display: inline-flex;
  align-items: center;
}

.ag-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ag-util-link:focus-visible,
.ag-nav-link:focus-visible,
.ag-sheet-close:focus-visible,
.ag-lane-hub:focus-visible,
.ag-spoke-link:focus-visible,
.ag-qp-link:focus-visible,
.ag-tab-btn:focus-visible {
  outline: 2px solid var(--ag-red);
  outline-offset: 2px;
}


/* round 2 continued (same pattern): link inside the rewards table cell */
.ag-table-link{min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center}
.ag-table-link:focus-visible{outline:2px solid var(--ag-red);outline-offset:2px}

/* ===== subpage block library ===== */
/* AUD GAMING - Subpage Block Library (lane.html) */
:root {
  --ag-focus-ring: 2px solid var(--ag-red);
}

/* Accessibility tap targets & focus states */
.ag-crumbs-link,
.ag-card-link,
.ag-parentlink-anchor,
.ag-related-card,
.ag-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: var(--ag-focus-ring);
  outline-offset: 2px;
}

/* 1. ag-crumbs */
.ag-crumbs {
  background: var(--ag-paper);
  border-bottom: 1px solid var(--ag-line);
  padding: 12px 0;
  font-family: var(--ag-font-body);
  font-size: 0.875rem;
}
.ag-crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}
.ag-crumbs-item {
  display: inline-flex;
  align-items: center;
  color: var(--ag-mute);
}
.ag-crumbs-item[aria-current="page"] {
  color: var(--ag-ink);
  font-weight: 600;
}
.ag-crumbs-link {
  color: var(--ag-ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ag-crumbs-link:hover {
  color: var(--ag-red);
  text-decoration: underline;
}
.ag-crumbs-sep {
  color: var(--ag-mute);
  user-select: none;
  font-size: 0.8rem;
}

/* 2. ag-pagehead */
.ag-pagehead {
  background: var(--ag-cloud);
  border-bottom: 3px solid var(--ag-red);
  padding: 48px 0;
}
.ag-pagehead-eyebrow {
  display: inline-block;
  font-family: var(--ag-font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ag-red);
  margin: 0 0 12px 0;
}
.ag-pagehead-title {
  font-family: var(--ag-font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ag-ink);
  margin: 0 0 16px 0;
}
.ag-pagehead-lead {
  font-family: var(--ag-font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ag-ink-soft);
  max-width: 820px;
  margin: 0 0 28px 0;
}
.ag-pagehead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* 3. ag-factstrip */
.ag-factstrip {
  padding: 32px 0;
  background: var(--ag-paper);
}
.ag-factstrip-scroller {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ag-fact-card {
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-card);
  padding: 20px 24px;
  box-shadow: var(--ag-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.ag-fact-badge {
  align-self: flex-start;
  font-family: var(--ag-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ag-mint);
  background: #e7f7f2;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.ag-fact-val {
  font-family: var(--ag-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ag-ink);
  margin-bottom: 8px;
}
.ag-fact-desc {
  font-family: var(--ag-font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ag-mute);
  margin: 0;
}

/* 4. ag-cardgrid */
.ag-cardgrid-sec {
  padding: 48px 0;
  background: var(--ag-cloud);
}
.ag-cardgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ag-card {
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-card);
  padding: 28px;
  box-shadow: var(--ag-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ag-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ag-shadow-soft);
}
.ag-card-body {
  margin-bottom: 20px;
}
.ag-card-tag {
  font-family: var(--ag-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ag-red);
  text-transform: uppercase;
  margin: 0 0 8px 0;
}
.ag-card-title {
  font-family: var(--ag-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ag-ink);
  margin: 0 0 10px 0;
  line-height: 1.3;
}
.ag-card-desc {
  font-family: var(--ag-font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ag-ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ag-card-link {
  font-family: var(--ag-font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ag-red);
  text-decoration: none;
  gap: 6px;
  align-self: flex-start;
}
.ag-card-link:hover {
  color: var(--ag-red-deep);
  text-decoration: underline;
}

/* 5. ag-mediarow */
.ag-mediarow-sec {
  padding: 48px 0;
  background: var(--ag-paper);
}
.ag-mediarow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
.ag-mediarow:last-child {
  margin-bottom: 0;
}
.ag-mediarow-flip .ag-mediarow-visual {
  order: 2;
}
.ag-mediarow-flip .ag-mediarow-content {
  order: 1;
}
.ag-mediarow-visual {
  border-radius: var(--ag-radius-card);
  overflow: hidden;
  border: 1px solid var(--ag-line);
  box-shadow: var(--ag-shadow-card);
  background: var(--ag-cloud);
}
.ag-mediarow-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1107 / 410;
  object-fit: cover;
}
.ag-mediarow-tag {
  font-family: var(--ag-font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ag-red);
  text-transform: uppercase;
  margin: 0 0 8px 0;
}
.ag-mediarow-title {
  font-family: var(--ag-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ag-ink);
  margin: 0 0 16px 0;
}
.ag-mediarow-p {
  font-family: var(--ag-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ag-ink-soft);
  margin: 0 0 24px 0;
}

/* 6. ag-prose */
.ag-prose-sec {
  padding: 48px 0;
  background: var(--ag-cloud);
}
.ag-prose {
  max-width: 860px;
  margin: 0 auto;
  font-family: var(--ag-font-body);
  color: var(--ag-ink-soft);
  line-height: 1.7;
}
.ag-prose h2,.ag-prose [data-hx="2"]{
  font-family: var(--ag-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ag-ink);
  margin: 32px 0 16px 0;
  line-height: 1.3;
}
.ag-prose h2:first-child,.ag-prose [data-hx="2"]:first-child{
  margin-top: 0;
}
.ag-prose h3,.ag-prose [data-hx="3"]{
  font-family: var(--ag-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ag-ink);
  margin: 24px 0 12px 0;
  line-height: 1.35;
}
.ag-prose p {
  font-size: 1rem;
  margin: 0 0 16px 0;
}
.ag-prose ul {
  margin: 0 0 20px 0;
  padding-left: 24px;
}
.ag-prose li {
  margin-bottom: 8px;
}
.ag-prose strong {
  color: var(--ag-ink);
}
.ag-prose a {
  color: var(--ag-red);
  text-decoration: underline;
  font-weight: 600;
}
.ag-prose a:hover {
  color: var(--ag-red-deep);
}

/* 7. ag-notice */
.ag-notice-sec {
  padding: 16px 0;
  background: var(--ag-paper);
}
.ag-notice {
  background: var(--ag-sky);
  border-left: 4px solid var(--ag-red);
  border-radius: 0 var(--ag-radius-card) var(--ag-radius-card) 0;
  padding: 18px 24px;
  font-family: var(--ag-font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ag-ink);
}
.ag-notice p {
  margin: 0;
}
.ag-notice strong {
  color: var(--ag-red-deep);
}

/* 8. ag-parentlink */
.ag-parentlink {
  padding: 16px 0;
  background: var(--ag-paper);
  border-top: 1px solid var(--ag-line);
}
.ag-parentlink-anchor {
  font-family: var(--ag-font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ag-ink-soft);
  text-decoration: none;
  gap: 8px;
  transition: color 0.2s ease;
}
.ag-parentlink-anchor:hover {
  color: var(--ag-red);
}

/* 9. ag-related */
.ag-related {
  padding: 48px 0;
  background: var(--ag-cloud);
  border-top: 1px solid var(--ag-line);
}
.ag-related-title {
  font-family: var(--ag-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ag-ink);
  margin: 0 0 24px 0;
}
.ag-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ag-related-card {
  background: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-card);
  padding: 18px 20px;
  text-decoration: none;
  box-shadow: var(--ag-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ag-related-card:hover {
  transform: translateY(-2px);
  border-color: var(--ag-red);
}
.ag-related-card-name {
  font-family: var(--ag-font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ag-ink);
  margin: 0 0 4px 0;
}
.ag-related-card-desc {
  font-family: var(--ag-font-body);
  font-size: 0.8125rem;
  color: var(--ag-mute);
  margin: 0;
}

/* 12. ag-ctastrip */
.ag-ctastrip {
  background: var(--ag-paper);
  border-top: 1px solid var(--ag-line);
  padding: 56px 0 48px 0;
  text-align: center;
}
.ag-ctastrip-title {
  font-family: var(--ag-font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ag-ink);
  margin: 0 0 12px 0;
}
.ag-ctastrip-lead {
  font-family: var(--ag-font-body);
  font-size: 1.0625rem;
  color: var(--ag-ink-soft);
  max-width: 640px;
  margin: 0 auto 28px auto;
}
.ag-ctastrip-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.ag-ctastrip-legal {
  font-family: var(--ag-font-body);
  font-size: 0.8125rem;
  color: var(--ag-mute);
  margin: 0;
}

/* Responsive Overrides (QA: 360px - 768px) */
@media (max-width: 768px) {
  .ag-pagehead {
    padding: 32px 0;
  }
  .ag-pagehead-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ag-pagehead-actions .ag-btn {
    width: 100%;
    text-align: center;
  }
  
  /* Horizontal scroll for factstrip on mobile */
  .ag-factstrip-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .ag-fact-card {
    min-width: 260px;
    flex: 0 0 260px;
    scroll-snap-align: start;
  }
  
  .ag-cardgrid {
    grid-template-columns: 1fr;
  }
  
  .ag-mediarow {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ag-mediarow-flip .ag-mediarow-visual {
    order: 1;
  }
  .ag-mediarow-flip .ag-mediarow-content {
    order: 2;
  }
  
  .ag-related-grid {
    grid-template-columns: 1fr;
  }
  
  .ag-ctastrip-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ag-ctastrip-actions .ag-btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== 9b. Long-form article slot — Editorial container reset and structured reading typography ===== */

/* 1. Slot Container Override: Neutralise placeholder flex row, dashed border, and center alignment */
.ag-lf-slot {
  display: block;
  min-height: 0;
  border: 1px solid var(--ag-line);
  background-color: var(--ag-paper);
  border-radius: var(--ag-radius-card);
  padding: 40px 48px;
  text-align: left;
  box-shadow: var(--ag-shadow-card);
}

.ag-lf-hint {
  display: none;
}

/* 2. Reading Measure & Structural Flow */
.ag-lf-slot > p,
.ag-lf-slot > ul,
.ag-lf-slot > ol,
.ag-lf-slot > blockquote,
.ag-lf-slot > dl,
.ag-lf-slot > h1,
.ag-lf-slot > h2,
.ag-lf-slot > h3,
.ag-lf-slot > h4,
.ag-lf-slot > h5,
.ag-lf-slot > h6 {
  max-width: 76ch;
}

/* 3. Headings & Anchor Structure */
.ag-lf-slot [id],
.ag-lf-slot .ez-toc-section {
  scroll-margin-top: 90px;
}

.ag-lf-slot .ez-toc-section,
.ag-lf-slot .ez-toc-section-end {
  display: inline;
  line-height: 0;
}

.ag-lf-slot h1 {
  font-family: var(--ag-font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ag-ink);
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 20px;
}

.ag-lf-slot h2 {
  font-family: var(--ag-font-display);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ag-ink);
  letter-spacing: -0.02em;
  margin-top: 36px;
  margin-bottom: 14px;
}

.ag-lf-slot h3 {
  font-family: var(--ag-font-display);
  font-size: clamp(17px, 1.8vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ag-ink);
  letter-spacing: -0.015em;
  margin-top: 26px;
  margin-bottom: 12px;
}

.ag-lf-slot h4,
.ag-lf-slot h5,
.ag-lf-slot h6 {
  font-family: var(--ag-font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ag-ink);
  letter-spacing: -0.01em;
  margin-top: 20px;
  margin-bottom: 10px;
}

.ag-lf-slot h1 b, .ag-lf-slot h1 strong,
.ag-lf-slot h2 b, .ag-lf-slot h2 strong,
.ag-lf-slot h3 b, .ag-lf-slot h3 strong,
.ag-lf-slot h4 b, .ag-lf-slot h4 strong,
.ag-lf-slot h5 b, .ag-lf-slot h5 strong,
.ag-lf-slot h6 b, .ag-lf-slot h6 strong {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  letter-spacing: inherit;
}

/* 4. Body Paragraphs, Text Spans & Bolds */
.ag-lf-slot p {
  font-family: var(--ag-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ag-ink-soft);
  margin-top: 0;
  margin-bottom: 18px;
}

.ag-lf-slot b,
.ag-lf-slot strong {
  font-weight: 700;
  color: var(--ag-ink);
}

.ag-lf-slot b span,
.ag-lf-slot strong span {
  font-weight: inherit !important; /* beat pasted inline style inside bold elements */
}

/* 5. In-Article Links */
.ag-lf-slot a:not(.ez-toc-link) {
  color: var(--ag-red);
  text-decoration: underline;
  text-decoration-color: rgba(216, 30, 52, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.ag-lf-slot a:not(.ez-toc-link):hover {
  color: var(--ag-red-deep);
  text-decoration-color: var(--ag-red-deep);
}

.ag-lf-slot a:not(.ez-toc-link):focus-visible {
  outline: 2px solid var(--ag-red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 6. Lists & Nested Items */
.ag-lf-slot ul:not(.ez-toc-list),
.ag-lf-slot ol:not(.ez-toc-list) {
  margin-top: 0;
  margin-bottom: 20px;
  padding-left: 22px;
}

.ag-lf-slot ul:not(.ez-toc-list) {
  list-style: disc outside;
}

.ag-lf-slot ol:not(.ez-toc-list) {
  list-style: decimal outside;
}

.ag-lf-slot li {
  font-family: var(--ag-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ag-ink-soft);
  margin-bottom: 10px;
  padding-left: 4px;
}

.ag-lf-slot li::marker {
  color: var(--ag-red);
  font-weight: 700;
}

.ag-lf-slot li:last-child {
  margin-bottom: 0;
}

/* 7. Easy Table of Contents (ez-toc) Restyle */
/* Using !important to decisively override ez-toc plugin stylesheet (screen.min.css) */
.ag-lf-slot #ez-toc-container,
.ag-lf-slot .ez-toc-v2_0_86 {
  display: block !important; /* override plugin display:table */
  width: 100% !important;   /* override plugin width */
  max-width: 100% !important;
  float: none !important;
  margin: 0 0 32px 0 !important;
  padding: 22px 26px !important;
  background-color: var(--ag-cloud) !important;
  border: 1px solid var(--ag-line) !important;
  border-left: 4px solid var(--ag-red) !important;
  border-radius: var(--ag-radius-card) !important;
  box-shadow: var(--ag-shadow-card) !important;
}

.ag-lf-slot #ez-toc-container .ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ag-line);
}

.ag-lf-slot #ez-toc-container .ez-toc-title {
  font-family: var(--ag-font-display) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ag-ink) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

.ag-lf-slot #ez-toc-container nav {
  margin: 0;
  padding: 0;
}

.ag-lf-slot #ez-toc-container ul.ez-toc-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ag-lf-slot #ez-toc-container ul.ez-toc-list-level-2 {
  padding-left: 16px !important;
  margin-top: 6px !important;
  border-left: 1px solid var(--ag-line);
}

.ag-lf-slot #ez-toc-container ul.ez-toc-list-level-3 {
  padding-left: 14px !important;
  margin-top: 4px !important;
  border-left: 1px solid var(--ag-line);
}

.ag-lf-slot #ez-toc-container li {
  font-family: var(--ag-font-body) !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
  color: var(--ag-ink-soft);
}

.ag-lf-slot #ez-toc-container li:last-child {
  margin-bottom: 0 !important;
}

.ag-lf-slot #ez-toc-container a.ez-toc-link {
  color: var(--ag-ink-soft) !important;
  text-decoration: none !important;
  font-weight: 500;
  display: inline;
  transition: color 0.15s ease;
}

.ag-lf-slot #ez-toc-container a.ez-toc-link:hover {
  color: var(--ag-red) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.ag-lf-slot #ez-toc-container .ez-toc-counter::before {
  color: var(--ag-red);
  font-weight: 700;
}

/* 8. Data Tables (Self-Contained Horizontal Scroll for Zero Page Overflow) */
.ag-lf-slot table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 24px;
  margin-bottom: 28px;
  background-color: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-card);
  box-shadow: var(--ag-shadow-card);
}

.ag-lf-slot thead,
.ag-lf-slot tbody {
  min-width: 100%;
}

.ag-lf-slot thead {
  background-color: var(--ag-cloud);
}

.ag-lf-slot th {
  font-family: var(--ag-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ag-ink);
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid var(--ag-line);
  white-space: nowrap;
}

.ag-lf-slot th b,
.ag-lf-slot th strong {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

.ag-lf-slot td {
  font-family: var(--ag-font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ag-ink-soft);
  padding: 14px 18px;
  border-bottom: 1px solid var(--ag-line);
  vertical-align: top;
}

.ag-lf-slot tbody tr:last-child td {
  border-bottom: none;
}

.ag-lf-slot tbody tr:nth-child(even) {
  background-color: rgba(244, 247, 253, 0.55);
}

.ag-lf-slot tbody tr:hover {
  background-color: var(--ag-sky);
}

/* 9. Images, Figures & Captions */
.ag-lf-slot img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ag-radius-card);
  margin-top: 24px;
  margin-bottom: 24px;
}

.ag-lf-slot img.aligncenter,
.ag-lf-slot .aligncenter img {
  margin-left: auto;
  margin-right: auto;
}

.ag-lf-slot img.alignleft {
  float: left;
  margin: 8px 24px 16px 0;
}

.ag-lf-slot img.alignright {
  float: right;
  margin: 8px 0 16px 24px;
}

.ag-lf-slot figure,
.ag-lf-slot .wp-caption {
  max-width: 100%;
  margin: 24px auto;
}

.ag-lf-slot figure img,
.ag-lf-slot .wp-caption img {
  margin: 0 auto;
}

.ag-lf-slot figcaption,
.ag-lf-slot .wp-caption-text {
  font-family: var(--ag-font-body);
  font-size: 13px;
  color: var(--ag-mute);
  text-align: center;
  margin-top: 8px;
  line-height: 1.45;
}

/* 10. Editorial Callouts, Blockquotes & Dividers */
.ag-lf-slot blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  background-color: var(--ag-cloud);
  border-left: 4px solid var(--ag-red);
  border-radius: 0 var(--ag-radius-btn) var(--ag-radius-btn) 0;
  font-style: italic;
  color: var(--ag-ink);
}

.ag-lf-slot blockquote p {
  margin-bottom: 0;
  font-style: inherit;
  color: inherit;
}

.ag-lf-slot hr {
  border: 0;
  height: 1px;
  background-color: var(--ag-line);
  margin: 36px 0;
}

/* 11. Viewport Refinements */
@media (max-width: 768px) {
  .ag-lf-slot {
    padding: 24px 20px;
  }
  .ag-lf-slot #ez-toc-container,
  .ag-lf-slot .ez-toc-v2_0_86 {
    padding: 18px 18px !important;
  }
  .ag-lf-slot th,
  .ag-lf-slot td {
    padding: 11px 13px;
  }
  .ag-lf-slot img.alignleft,
  .ag-lf-slot img.alignright {
    float: none;
    margin: 16px auto;
  }
}

@media (max-width: 480px) {
  .ag-lf-slot {
    padding: 20px 16px;
    border-radius: 12px;
  }
}

/* ===== 9c. Long-form read-more clamp — Progressive enhancement slot clamping with zero-scroll-container clipping and editorial fade ===== */

/* 
 * Clamp Axis Strategy & Overflow Architecture:
 * We deliberately choose `overflow: clip` on `.ag-lf-slot.is-collapsed` rather than `overflow: hidden` or `overflow-y: hidden`.
 * In standard CSS, pairing `overflow-y: hidden` with `overflow-x: visible` causes computed `overflow-x` to become `auto`,
 * which would turn the entire `.ag-lf-slot` into a secondary horizontal scroll container around the wide data tables.
 * `overflow: clip` performs hard box-edge clipping without establishing a scroll container context, preventing nested 
 * horizontal scrollbars while keeping inner `.ag-lf-slot table` standalone horizontal scroll containers (`overflow-x: auto`)
 * fully interactive without any risk of page-level horizontal overflow.
 */

/* 1. Clamped / Collapsed State */
.ag-lf-slot.is-collapsed {
  position: relative;
  max-height: 500px;
  overflow: clip;
}

/* Bottom Editorial Fade Overlay */
.ag-lf-slot.is-collapsed::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 140px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 45%,
    var(--ag-paper) 95%
  );
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

/* 2. Expanded / Open State */
.ag-lf-slot.is-open {
  max-height: none;
  overflow: visible;
}

.ag-lf-slot.is-open::after {
  display: none;
}

/* 3. Read-More Toggle Control Button */
.ag-lf-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 20px auto 0;
  padding: 12px 28px;
  font-family: var(--ag-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ag-ink);
  background-color: var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius-btn);
  box-shadow: var(--ag-shadow-card);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ag-lf-toggle:hover {
  background-color: var(--ag-cloud);
  border-color: rgba(216, 30, 52, 0.35);
  color: var(--ag-red);
  box-shadow: var(--ag-shadow-soft);
}

.ag-lf-toggle:focus-visible {
  outline: 2px solid var(--ag-red);
  outline-offset: 2px;
}

.ag-lf-toggle:active {
  background-color: var(--ag-sky);
  transform: translateY(1px);
  box-shadow: none;
}

.ag-lf-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.ag-lf-toggle[aria-expanded="true"] {
  background-color: var(--ag-cloud);
  border-color: var(--ag-line);
  color: var(--ag-ink-soft);
}

.ag-lf-toggle[aria-expanded="true"]:hover {
  color: var(--ag-red);
  border-color: rgba(216, 30, 52, 0.35);
}

/* 4. Label & Chevron Icon */
.ag-lf-toggle-label {
  display: inline;
  line-height: 1.2;
}

.ag-lf-toggle-icon {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
}

.ag-lf-toggle[aria-expanded="true"] .ag-lf-toggle-icon {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* 5. Responsive & Viewport Adjustments */
@media (max-width: 768px) {
  .ag-lf-slot.is-collapsed {
    max-height: 440px;
  }
  .ag-lf-slot.is-collapsed::after {
    height: 120px;
  }
  .ag-lf-toggle {
    margin-top: 16px;
    padding: 11px 24px;
    font-size: 13.5px;
  }
}

@media (max-width: 480px) {
  .ag-lf-slot.is-collapsed {
    max-height: 380px;
  }
  .ag-lf-slot.is-collapsed::after {
    height: 100px;
  }
  .ag-lf-toggle {
    width: 100%;
    max-width: 280px;
    padding: 11px 20px;
  }
}

/* 6. Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .ag-lf-toggle,
  .ag-lf-toggle-icon {
    transition: none;
  }
}

/* ===== 9d. Long-form clamp round 3 — compact ez-toc & re-calibrated collapsed heights ===== */

/* --- A. Compact Easy Table of Contents (ez-toc) --- */
/* Overrides Round 1 !important rules to compress box height from ~548px to ~250px (desktop) / ~360px (mobile) */

.ag-lf-slot #ez-toc-container,
.ag-lf-slot .ez-toc-v2_0_86 {
  margin: 0 0 20px 0 !important;
  padding: 14px 18px !important;
}

.ag-lf-slot #ez-toc-container .ez-toc-title-container {
  margin-bottom: 10px !important;
  padding-bottom: 6px !important;
}

.ag-lf-slot #ez-toc-container .ez-toc-title {
  font-size: 13px !important;
  letter-spacing: 0.03em !important;
}

.ag-lf-slot #ez-toc-container li {
  font-size: 13px !important;
  line-height: 1.38 !important;
  margin-bottom: 5px !important;
  break-inside: avoid;
  page-break-inside: avoid;
}

.ag-lf-slot #ez-toc-container ul.ez-toc-list-level-2 {
  padding-left: 12px !important;
  margin-top: 4px !important;
}

.ag-lf-slot #ez-toc-container ul.ez-toc-list-level-3 {
  padding-left: 10px !important;
  margin-top: 3px !important;
  margin-bottom: 4px !important;
}

.ag-lf-slot #ez-toc-container a.ez-toc-link {
  font-size: 13px !important;
  line-height: 1.38 !important;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Two-column layout for main ToC section list on desktop/tablet to reduce vertical footprint */
@media (min-width: 641px) {
  .ag-lf-slot #ez-toc-container ul.ez-toc-list-level-2 {
    column-count: 2;
    column-gap: 24px;
    padding-left: 0 !important;
    border-left: none !important;
  }

  .ag-lf-slot #ez-toc-container ul.ez-toc-list-level-2 > li {
    padding-left: 10px;
    border-left: 1px solid var(--ag-line);
    margin-bottom: 6px !important;
  }
}

/* Mobile adjustments for ez-toc box */
@media (max-width: 640px) {
  .ag-lf-slot #ez-toc-container,
  .ag-lf-slot .ez-toc-v2_0_86 {
    padding: 12px 14px !important;
    margin: 0 0 16px 0 !important;
  }

  .ag-lf-slot #ez-toc-container li {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
  }

  .ag-lf-slot #ez-toc-container a.ez-toc-link {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  .ag-lf-slot #ez-toc-container ul.ez-toc-list-level-2 {
    padding-left: 10px !important;
    margin-top: 3px !important;
  }

  .ag-lf-slot #ez-toc-container ul.ez-toc-list-level-3 {
    padding-left: 8px !important;
    margin-top: 2px !important;
  }
}

/* --- B & C. Re-calibrated Clamp Max-Heights --- */
/* Target: Show ToC + article H2 + lead p1 + lead p2 cleanly; fade cuts into the banner image rather than text */
/* Desktop (1440px): Slot padding (40) + ToC (~250) + H2 (31) + P1 (132) + P2 (79) + margins (~60) = ~592px. Clamp: 780px */
.ag-lf-slot.is-collapsed {
  max-height: 780px;
}

/* Tablet (768px): Slot padding (24) + ToC (~260) + H2 (26) + P1 (132) + P2 (79) + margins (~60) = ~581px. Clamp: 720px */
@media (max-width: 768px) {
  .ag-lf-slot.is-collapsed {
    max-height: 720px;
  }
}

/* Mobile (480px / 390px): Slot padding (20) + ToC (~360) + H2 (78) + P1 (290) + P2 (185) + margins (~50) = ~983px. Clamp: 1050px */
@media (max-width: 480px) {
  .ag-lf-slot.is-collapsed {
    max-height: 1050px;
  }
}

/* The layout title is no longer a heading element. A heading is bold by default and a
   <div> is not, so restore that weight; the real H1 lives in the long-form content. */
[data-pagetitle]{font-weight:bold}
