/* HOOTX THE HORIZON: private test data binding. Scoped exclusively to #horizon. */
/* Anchor disclosure to the Horizon page, not the viewport or a hidden mobile layer. */
#horizon.page{position:relative;}
#horizon .horizon-v1-layer{position:absolute;left:0;top:0;width:1672px;height:880px;transform-origin:top left;pointer-events:none;z-index:4;font-family:Arial,sans-serif;font-variant-numeric:tabular-nums;}
#horizon .horizon-v1-patch{position:absolute;box-sizing:border-box;pointer-events:auto;color:#fff2dc;text-align:center;background:linear-gradient(125deg,#030607 0%,#080f11 52%,#020606 100%);}
#horizon .horizon-v1-price{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;}
#horizon .horizon-v1-price-main{font-size:24px;line-height:28px;font-weight:900;white-space:nowrap;text-shadow:0 1px 2px #000;}
#horizon .horizon-v1-change{font-size:19px;font-weight:800;line-height:20px;white-space:nowrap;}
#horizon .horizon-v1-change.up{color:#39ec6e;}#horizon .horizon-v1-change.down{color:#ff6a46;}#horizon .horizon-v1-change.neutral{color:#a9a5a0;}
#horizon .horizon-v1-cap{font-size:20px;font-weight:900;display:flex;align-items:center;justify-content:center;white-space:nowrap;background:#040b0e;}
#horizon .horizon-v1-bar{overflow:hidden;border-radius:5px;background:#25343e;padding:0;}
#horizon .horizon-v1-bar i{height:100%;display:block;border-radius:4px;background:linear-gradient(0deg,#e99206,#ffe78b,#e4a117);box-shadow:inset 0 0 4px #feeeb2;}
#horizon .horizon-v1-rate{display:flex;align-items:center;justify-content:center;font-weight:900;font-size:26px;white-space:nowrap;}
#horizon .horizon-v1-bottom{font-size:40px;font-weight:900;display:flex;align-items:center;justify-content:center;white-space:nowrap;}
#horizon .horizon-v1-segments{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;padding:3px;background:#050b0c;}
#horizon .horizon-v1-segments i{background:#283947;border:1px solid #45525b;border-radius:3px;}#horizon .horizon-v1-segments i.on{background:linear-gradient(#ffdc48,#f2a414);border-color:#ffd56d;}
#horizon .horizon-v1-gauge{display:flex;align-items:center;justify-content:center;overflow:hidden;background:#030709;}
#horizon .horizon-v1-editorial{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:2px;padding-left:11px;text-align:left;background:#030a0b;font-size:16px;line-height:19px;font-weight:600;letter-spacing:-.2px;color:#f5eee1;white-space:nowrap;}
#horizon .horizon-v1-banner{display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;border:1px solid #f1bd58;border-radius:4px;background:#070a0c;color:#f1daac;white-space:nowrap;}
#horizon .horizon-v1-caption{font-size:13px;line-height:25px;color:#ead39d;background:rgba(2,9,15,.88);border:1px solid rgba(217,154,59,.7);border-radius:4px;}
#horizon .horizon-v1-source-details{max-width:1170px;margin:0 auto;padding:12px 16px 20px;color:#f2d8a1;background:#030c15;font:13px/1.5 Arial,sans-serif;}
#horizon .horizon-v1-source-details summary{cursor:pointer;color:#ffca71;font-weight:800;letter-spacing:.07em;}
#horizon .horizon-v1-source-list{margin-top:10px;display:grid;gap:5px;}
#horizon .horizon-v1-source-row{display:grid;grid-template-columns:175px 170px 1fr 75px;gap:12px;border-bottom:1px solid #50452f;padding:5px 0;}
#horizon .horizon-v1-source-row a{color:#ffce7a;}
#horizon .horizon-v1-unavailable .val{color:#edb493;}
/* On desktop the source control belongs in the quiet upper-left scenery, never
   on top of HOOTX INSIGHT. The expanded disclosure remains readable and scrollable. */
@media(min-width:901px){
#horizon .horizon-v1-source-details{position:absolute;z-index:8;left:12px;top:calc(var(--hootx-v7-header,64px) + 10px);right:auto;bottom:auto;width:284px;max-width:calc(100% - 24px);max-height:68dvh;overflow:auto;padding:7px 10px;background:rgba(4,11,17,.96);border:1px solid rgba(221,174,76,.72);border-radius:5px;font-size:11px;box-shadow:0 5px 18px rgba(0,0,0,.45);}
#horizon .horizon-v1-source-details:not([open]){max-height:36px;overflow:hidden;}
#horizon .horizon-v1-source-details[open]{width:min(495px,calc(100% - 24px));max-height:min(72dvh,620px);}
#horizon .horizon-v1-source-details summary{font-size:10.5px;line-height:17px;letter-spacing:.035em;white-space:nowrap;}
#horizon .horizon-v1-source-row{grid-template-columns:1fr 1fr;gap:4px;}
#horizon .horizon-v1-source-row span:nth-of-type(2){grid-column:1/3;}
}
@media(max-width:900px){#horizon .horizon-v1-source-details{margin:0 11px 18px;border:1px solid #986932;border-radius:5px;}
#horizon .horizon-v1-source-row{grid-template-columns:1fr 1fr;gap:3px;}#horizon .horizon-v1-source-row span:nth-of-type(2){grid-column:1/3;}}

/* A single line within the pre-existing Horizon status strip; no additional panel. */
#horizon .horizon-v1-banner{font-size:11.5px;letter-spacing:-.15px;gap:3px;}
#horizon .horizon-v1-banner.horizon-v1-feed-warning{color:#f0b982;border-color:#bd8841;}
#horizon .horizon-m-notice.horizon-v1-feed-warning{color:#e9b581;}

/* Attribution next to the Fear & Greed index is a usage condition of Alternative.me. */
#horizon .horizon-v1-fng-credit-strip{display:flex;align-items:center;justify-content:center;background:rgba(3,9,13,.96);border:0;}
#horizon .horizon-v1-fng-attribution{font-size:11px;color:#ead19b;text-decoration:underline;text-underline-offset:2px;white-space:nowrap;pointer-events:auto;}
#horizon .horizon-m-ambient .horizon-v1-fng-attribution{display:block;font-size:10px;margin-top:2px;}

/* Small truthful title overlay: original approved image remains unchanged. */
#horizon .horizon-v1-usd-broad-title{display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:900;letter-spacing:.15px;color:#f9e3a5;background:#050807;white-space:nowrap;pointer-events:none;text-shadow:0 1px 2px #000;}


/* HORIZON MOBILE V2 — dedicated compact layout. Desktop artwork and WATCHTOWER untouched. */
@media(max-width:900px){
  #horizon .horizon-mobile-dashboard{font-family:Arial,system-ui,sans-serif;--hv2-gold:#e7ad4c;--hv2-edge:rgba(224,166,65,.82);width:100%;overflow-x:clip;background:#030b12;}
  #horizon .horizon-mobile-subhead{font-size:clamp(11px,2.9vw,13px);letter-spacing:.12em;margin:5px 0 11px;}
  #horizon .horizon-m-notice{font-size:clamp(12px,3.05vw,14px);line-height:1.3;padding:9px 10px;margin:0 12px 12px;border-radius:6px;}
  #horizon .horizon-m-grid{gap:9px;padding:0 12px 12px;}
  #horizon .horizon-m-card{min-height:102px;padding:10px 12px 9px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:4px;background:linear-gradient(150deg,#091c2b,#050b12 80%);border:1px solid var(--hv2-edge);box-shadow:inset 0 0 0 1px rgba(248,208,123,.05),0 1px 12px rgba(16,10,3,.2);}
  #horizon .horizon-m-card-head{display:flex;align-items:center;justify-content:center;gap:7px;min-height:29px;max-width:100%;}
  #horizon .horizon-m-card .horizon-m-icon{width:29px;height:29px;flex:0 0 29px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45));}
  #horizon .horizon-m-card .name{font-size:clamp(12px,3.4vw,15px);line-height:1.15;white-space:nowrap;font-weight:800;color:#f6dca5;letter-spacing:.005em;}
  #horizon .horizon-m-card .val{font-size:clamp(19px,5vw,26px);line-height:1.12;margin:4px 0 0;font-weight:900;white-space:nowrap;letter-spacing:-.025em;}
  #horizon .horizon-m-card .change{font-size:clamp(10px,2.9vw,12px);line-height:1.15;min-height:13px;color:#b8bfc5;}
  #horizon .horizon-m-card .change.is-empty{visibility:hidden;}
  #horizon .horizon-m-card .change.up{color:#55df92;}#horizon .horizon-m-card .change.down{color:#f08a6b;}
  #horizon .horizon-m-card.horizon-v1-unavailable .val{color:#b7a7a1;}
  #horizon .horizon-m-panel{margin:0 12px 12px;padding:13px 13px 14px;border-radius:9px;border-color:var(--hv2-edge);}
  #horizon .horizon-m-panel h2{font-size:clamp(16px,4.4vw,19px);line-height:1.24;margin:0 0 11px;letter-spacing:.012em;}
  #horizon .horizon-m-panel h2 small{font-size:.7em;font-weight:700;letter-spacing:0;white-space:nowrap;}
  #horizon .horizon-m-caprow{grid-template-columns:minmax(96px,1.04fr) minmax(44px,1.35fr) auto;gap:9px;margin:9px 0;align-items:center;font-size:clamp(13px,3.55vw,15px);}
  #horizon .horizon-m-caprow b{font-size:clamp(13px,3.65vw,16px);white-space:nowrap;}
  #horizon .horizon-m-bar{height:9px;border-radius:6px;}
  #horizon .horizon-m-rates > div{padding:3px 2px 4px;}
  #horizon .horizon-m-rates strong{font-size:clamp(13px,3.7vw,16px);margin-bottom:5px;}
  #horizon .horizon-m-rates b{font-size:clamp(16px,4.6vw,20px);}
  #horizon .horizon-m-ambient{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 12px 12px;}
  #horizon .horizon-m-ambient > div{min-width:0;border:1px solid var(--hv2-edge);border-radius:9px;box-shadow:inset 0 0 0 1px rgba(233,195,117,.055);background:linear-gradient(145deg,#091b29,#050b12);}
  #horizon .horizon-m-ambient .horizon-m-metric{display:flex;flex-direction:column;align-items:center;justify-content:space-around;min-height:104px;padding:10px 6px 8px;text-align:center;}
  #horizon .horizon-m-metric-label{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;}
  #horizon .horizon-m-ambient .horizon-m-metric-label small{display:block;min-height:0;margin:0;color:#eecb91;font-size:clamp(10px,2.8vw,12px);font-weight:800;line-height:1.13;letter-spacing:.015em;}
  #horizon .horizon-m-metric-symbol{flex:0 0 22px;width:22px;height:22px;color:#f1b94e;font-size:23px;line-height:23px;font-weight:800;}
  #horizon .horizon-m-metric b{font-size:clamp(19px,5.4vw,26px);line-height:1.05;margin:4px 0 0;color:#fff0d3;}
  #horizon .horizon-m-metric-pending{display:block;margin-top:1px;font-size:10px;color:#b7ae9d;line-height:1.15;letter-spacing:.04em;}
  #horizon .horizon-m-metric:not(.horizon-v1-unavailable) .horizon-m-metric-pending{visibility:hidden;}
  #horizon .horizon-m-ambient .horizon-m-fear{grid-column:1/-1;display:block;padding:10px 14px 11px;min-height:0;}
  #horizon .horizon-m-fear-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:3px;}
  #horizon .horizon-m-fear-top strong{font-size:clamp(14px,3.75vw,17px);color:#f5cb84;letter-spacing:.025em;}
  #horizon .horizon-m-fear-top span{font-size:clamp(10px,2.65vw,12px);color:#afbdca;}
  #horizon .horizon-m-fear-content{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:8px;}
  #horizon .horizon-m-gauge svg{display:block;width:100%;height:auto;max-height:108px;}
  #horizon .horizon-m-fear-reading{display:flex;flex-direction:column;gap:3px;align-items:flex-start;min-width:0;}
  #horizon .horizon-m-ambient .horizon-m-fear-reading b{font-size:clamp(30px,8vw,39px);line-height:1.08;margin:0;color:#fff0d7;}
  #horizon .horizon-m-ambient .horizon-m-fear-reading small{display:block;min-height:0;font-size:clamp(11px,3vw,13px);line-height:1.25;font-weight:800;color:#f6cc6b;}
  #horizon .horizon-m-fear-credit{display:block;max-width:100%;font-size:12px;line-height:1.4;text-align:left;}
  #horizon .horizon-m-fear-credit a.horizon-v1-fng-attribution{display:inline-block;max-width:100%;font-size:clamp(10px,2.6vw,12px);line-height:1.3;white-space:normal;overflow-wrap:anywhere;text-decoration-thickness:1px;}
  #horizon .horizon-m-insight{padding:13px 13px 5px;}
  #horizon .horizon-m-insight>div.horizon-m-insight-row{display:grid;grid-template-columns:minmax(76px,.65fr) minmax(0,1.9fr);gap:12px;align-items:center;padding:10px 0 11px;line-height:1.35;font-size:clamp(13px,3.45vw,15px);}
  #horizon .horizon-m-insight-row strong{font-size:clamp(12px,3.2vw,14px);white-space:nowrap;letter-spacing:0;}
  #horizon .horizon-m-insight-row p{line-height:1.35;margin:0;color:#e9e5de;}
  #horizon .horizon-m-watch-label{color:#e9c86c;}
  #horizon .horizon-mobile-footer{font-size:clamp(11px,2.85vw,12px);line-height:1.45;padding:5px 15px 12px;color:#bac2c9;}
  #horizon .horizon-v1-source-details{margin:0 12px 17px;padding:12px 13px 13px;border-radius:9px;max-width:none;font-size:clamp(12px,3vw,14px);line-height:1.45;}
  #horizon .horizon-v1-source-details summary{font-size:clamp(12px,3.1vw,14px);line-height:1.35;letter-spacing:.017em;overflow-wrap:anywhere;}
  #horizon .horizon-v1-source-row{grid-template-columns:1fr auto;gap:4px 8px;padding:9px 0;}
  #horizon .horizon-v1-source-row span:nth-of-type(2){grid-column:1/-1;min-width:0;overflow-wrap:anywhere;}
}
@media(max-width:360px){
  #horizon .horizon-m-card{padding:10px 5px 9px;}
  #horizon .horizon-m-card-head{gap:4px;}
  #horizon .horizon-m-card .horizon-m-icon{width:25px;height:25px;flex-basis:25px;}
  #horizon .horizon-m-card .name{font-size:12px;}
  #horizon .horizon-m-caprow{grid-template-columns:minmax(88px,1.1fr) minmax(30px,.9fr) auto;gap:6px;}
  #horizon .horizon-m-insight>div.horizon-m-insight-row{grid-template-columns:78px minmax(0,1fr);gap:8px;}
}


/* HORIZON MOBILE V3 — typography density and refined SVGs. Desktop UNCHANGED.
   Single-purpose override atop tested V2. Keep data semantics, source links,
   landscape, Watchtower and all desktop art intact. */
@media(max-width:900px){
 #horizon .horizon-m-grid{gap:8px;padding:0 12px 10px;}
 #horizon .horizon-m-card{min-height:93px;padding:9px 8px 8px;justify-content:center;gap:7px;}
 #horizon .horizon-m-card-head{min-height:0;gap:7px;}
 #horizon .horizon-m-card .horizon-m-icon{width:31px;height:31px;flex-basis:31px;}
 #horizon .horizon-m-card .name{font-size:clamp(14px,3.95vw,18px);line-height:1.13;font-weight:850;}
 #horizon .horizon-m-card .val{font-size:clamp(23px,6.05vw,30px);line-height:1.08;margin:0;letter-spacing:-.035em;}
 #horizon .horizon-m-card .change{min-height:0;margin:0;line-height:1.1;font-size:clamp(11px,2.9vw,13px);}
 #horizon .horizon-m-card .change.is-empty{display:none;}
 #horizon .horizon-m-card.horizon-m-card-gold .val{display:flex;align-items:baseline;justify-content:center;gap:1px;white-space:nowrap;}
 #horizon .horizon-m-card .horizon-m-gold-amount{font-size:clamp(19px,5.4vw,27px);letter-spacing:-.06em;}
 #horizon .horizon-m-card .horizon-m-gold-unit{font-size:clamp(13px,3.5vw,17px);letter-spacing:-.02em;color:#e7d4b3;font-weight:750;}
 #horizon .horizon-m-card.horizon-m-card-usd .name{font-size:clamp(13px,3.5vw,17px);letter-spacing:-.018em;}
 #horizon .horizon-m-panel{padding:11px 13px 12px;margin-bottom:10px;}
 #horizon .horizon-m-panel h2{font-size:clamp(17px,4.45vw,20px);margin-bottom:8px;}
 #horizon .horizon-m-panel h2 small{font-size:.66em;}
 #horizon .horizon-m-caprow{font-size:clamp(14px,3.75vw,16px);margin:7px 0;}
 #horizon .horizon-m-caprow b{font-size:clamp(14px,3.75vw,17px);}
 #horizon .horizon-m-bar{height:9px;}
 #horizon .horizon-m-rates>div{padding:2px 2px 3px;}
 #horizon .horizon-m-rates strong{font-size:clamp(14px,3.9vw,17px);margin-bottom:3px;}
 #horizon .horizon-m-rates b{font-size:clamp(17px,4.9vw,22px);}
 #horizon .horizon-m-ambient{gap:9px;margin-bottom:10px;}
 #horizon .horizon-m-ambient .horizon-m-metric{min-height:86px;padding:8px 5px;gap:5px;justify-content:center;}
 #horizon .horizon-m-ambient .horizon-m-metric-label small{font-size:clamp(11px,3vw,13px);line-height:1.12;}
 #horizon .horizon-m-metric-symbol{flex-basis:23px;width:23px;height:23px;font-size:24px;}
 #horizon .horizon-m-metric b{font-size:clamp(22px,6.3vw,29px);margin:0;line-height:1.05;}
 #horizon .horizon-m-metric-pending{font-size:10px;line-height:1.05;margin:0;color:#b6b1a7;}
 #horizon .horizon-m-insight{padding:12px 13px 3px;}
 #horizon .horizon-m-insight>div.horizon-m-insight-row{grid-template-columns:minmax(81px,.65fr) minmax(0,1.9fr);gap:10px;padding:9px 0;font-size:clamp(14px,3.65vw,16px);line-height:1.33;}
 #horizon .horizon-m-insight-row strong{font-size:clamp(12px,3.25vw,14px);}
 #horizon .horizon-mobile-footer{padding:6px 15px 9px;font-size:clamp(12px,3vw,13px);}
 #horizon .horizon-v1-source-details{margin-bottom:12px;}
}
@media(max-width:370px){
 #horizon .horizon-m-card{padding:9px 4px 8px;}
 #horizon .horizon-m-card-head{gap:4px;}
 #horizon .horizon-m-card .horizon-m-icon{width:26px;height:26px;flex-basis:26px;}
 #horizon .horizon-m-card .name{font-size:clamp(12.5px,3.85vw,15px);}
 #horizon .horizon-m-card.horizon-m-card-usd .name{font-size:12px;}
 #horizon .horizon-m-card .val{font-size:clamp(21px,6.05vw,25px);}
 #horizon .horizon-m-card .horizon-m-gold-amount{font-size:clamp(18px,5.1vw,21px);}
 #horizon .horizon-m-card .horizon-m-gold-unit{font-size:12px;}
 #horizon .horizon-m-insight>div.horizon-m-insight-row{grid-template-columns:78px minmax(0,1fr);gap:7px;}
}
