/* ITF — News (light page, loaded after style.css). Measured from the 1440px mockup.
   Live parts (prices, calendar, news feed) are TradingView widgets sized by these boxes. */

:root { --container: 1340px; --nw-blue: #1688f3; --nw-navy: #0c1a3a; --nw-text: #4a5b74; --nw-line: #e6eef7; }
body { background: #f5f9fe; }

.light-head .desktop-nav > a.active { color: #1260c9; }
.light-head .desktop-nav > a.active::after { background: var(--nw-blue); bottom: 0; }

/* TradingView containers fill whatever box they are in */
.tradingview-widget-container, .tradingview-widget-container__widget { width: 100%; height: 100%; }
.tradingview-widget-copyright { display: none; }

/* ---------- Hero ---------- */
.nw-hero { min-height: 0; background: #eaf3fd; color: var(--nw-navy); }
.nw-hero-bg { background: url("../assets/hero-light.svg?v=20261008171438") center 70% / cover no-repeat; }
.nw-hero-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 250, 255, .97), rgba(246, 250, 255, .85) 42%, rgba(246, 250, 255, .1) 66%, transparent), linear-gradient(0deg, #f5f9fe, transparent 16%); }
.nw-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 560px; gap: 20px; align-items: center; padding: 30px 0 20px; }
.nw-hero .hero-copy { padding: 0; }
.nw-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .2em; color: #4a5b74; }
.nw-hero h1 { margin: 12px 0 10px; font-family: var(--head); font-size: 54px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--nw-navy); text-shadow: none; white-space: nowrap; }
.nw-hero h1 span { color: var(--nw-blue); }
.nw-hero .hero-copy > p { max-width: 540px; font-size: 16.5px; line-height: 1.45; color: #33415a; }
.nw-search { display: flex; align-items: center; gap: 12px; max-width: 670px; height: 50px; margin-top: 22px; padding: 0 4px 0 18px; border-radius: 8px; background: #fff; border: 1px solid #e3ecf6; box-shadow: 0 14px 34px rgba(20, 60, 120, .1); }
.nw-search > .ic { font-size: 19px; color: #6b7a90; }
.nw-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 14.5px; color: var(--nw-navy); }
.nw-search .btn { height: 42px; min-width: 132px; }
.nw-search .btn .ic { font-size: 16px; }
.nw-search .btn:hover .ic { transform: none; }
.nw-search:focus-within { border-color: #9cc8f5; }
.nw-popular { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 12.5px; color: #6b7a90; }
.nw-popular a { color: #33415a; transition: color .2s; }
.nw-popular a:hover { color: #1260c9; }

.nw-visual { position: relative; height: 280px; }
.nw-visual img { position: absolute; right: 110px; bottom: -14px; width: 440px; filter: drop-shadow(0 20px 30px rgba(12, 40, 90, .14)); animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-6px); } }
.nw-script { position: absolute; left: -40px; top: -18px; z-index: 1; font-family: Caveat, "Segoe Script", cursive; font-size: 30px; line-height: 1.05; color: #5a6f8e; transform: rotate(-10deg); }
.nw-motto { position: absolute; right: -10px; bottom: 40px; z-index: 1; padding-left: 14px; border-left: 1.5px solid #8aa3c4; font-size: 11.5px; font-weight: 600; line-height: 1.7; letter-spacing: .14em; color: #33415a; }

/* ---------- Price strip ---------- */
.nw-strip { position: relative; z-index: 3; margin-top: 4px; padding: 4px 0 18px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.strip-track { display: flex; gap: 12px; width: max-content; animation: stripMove calc(var(--n) * 7s) linear infinite; }
.nw-strip:hover .strip-track, .nw-strip:focus-within .strip-track { animation-play-state: paused; }
.strip-track .q-card { flex: none; width: 214px; }
@keyframes stripMove { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) {
  .nw-strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .strip-track { animation: none; }
  .strip-track .q-card[aria-hidden] { display: none; }
}
.q-card { height: 92px; overflow: hidden; border-radius: 8px; background: #fff; border: 1px solid #edf2f8; box-shadow: 0 8px 22px rgba(20, 60, 120, .06); }

/* ---------- Layout ---------- */
.nw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; margin-top: 22px; }
.nw-card { border-radius: 10px; background: #fff; border: 1px solid #edf2f8; box-shadow: 0 10px 26px rgba(20, 60, 120, .06); }
.h-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; color: var(--nw-blue); font-size: 30px; }
.h-ic.sm { font-size: 28px; }

/* Market timeline */
.nw-timeline { padding: 18px 18px 14px; }
.tl-head { display: flex; align-items: flex-start; gap: 14px; }
.tl-head h2 { font-family: var(--head); font-size: 25px; font-weight: 800; letter-spacing: -.01em; color: var(--nw-navy); }
.tl-head p { margin-top: 4px; font-size: 13.5px; color: var(--nw-text); }
.tl-live { margin-left: auto; text-align: right; }
.tl-live b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #dc2626; }
.tl-live b i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: livePulse 1.6s infinite; }
@keyframes livePulse { 50% { opacity: .35; } }
.tl-live small { display: block; margin-top: 2px; font-size: 11px; color: #6b7a90; }
.tl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.tl-tabs, .tl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-tabs button, .tl-chips button { height: 32px; padding: 0 16px; border: 1px solid var(--nw-line); border-radius: 6px; background: #fff; font-size: 12.5px; font-weight: 500; color: #33415a; transition: border-color .2s, color .2s, background .2s; }
.tl-tabs button:hover, .tl-chips button:hover { border-color: #b7d4f3; color: var(--nw-navy); }
.tl-tabs button[aria-selected="true"], .tl-chips button.active { background: linear-gradient(180deg, #1d8ff5, #0b74e5); border-color: transparent; color: #fff; font-weight: 600; }
.tl-div { width: 1px; height: 22px; background: #dbe5f0; }
.tl-wrap { position: relative; margin-top: 14px; border-top: 1px solid #f0f4f9; }
.tl-frame { height: 760px; padding-top: 6px; }
/* Column titles for the TradingView calendar: its columns are fluid (event from ~22%, then three equal
   value columns ending at 2/3, 5/6 and 100%), so the labels sit on the widget's own top bar at those spots */
.tl-cols { display: none; position: absolute; left: 0; right: 0; top: 6px; z-index: 1; height: 50px; pointer-events: none; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7a90; }
.is-calendar .tl-cols { display: block; }
.tl-cols span { position: absolute; top: 50%; transform: translateY(-50%); }
.tl-cols .c-ev { left: 21.7%; }
.tl-cols .c-a { right: 33.4%; }
.tl-cols .c-f { right: 16.7%; }
.tl-cols .c-p { right: .4%; }

/* Sidebar */
.nw-side { display: grid; gap: 18px; }
.side-sec { padding: 16px 16px 14px; }
.side-head { display: flex; align-items: center; gap: 10px; }
.side-head .hd { font-size: 22px; color: var(--nw-blue); }
.side-head .hd.fire { color: #f97316; }
.side-head h2 { font-family: var(--head); font-size: 17px; font-weight: 800; color: var(--nw-navy); }
.side-note { margin-left: auto; font-size: 11.5px; color: #4a5b74; }
.side-more { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; color: #33415a; font-size: 16px; }
.side-more:hover { color: #1260c9; }
.tv-box { height: 360px; margin-top: 8px; }
.nw-pop { display: grid; gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.nw-pop a { display: flex; align-items: center; gap: 10px; }
.pn-n { flex: none; width: 20px; font-size: 12.5px; font-weight: 600; color: #1260c9; text-decoration: underline; text-underline-offset: 4px; }
.pn-img { flex: none; width: 62px; height: 46px; border-radius: 4px; background: #061633 center / cover no-repeat; }
.pn-txt b { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--nw-navy); transition: color .2s; }
.nw-pop a:hover b { color: #1260c9; }
.pn-txt span { display: block; margin-top: 4px; font-size: 11.5px; color: #6b7a90; }

/* ---------- Featured / Most read ---------- */
.sec-head { display: flex; align-items: center; gap: 14px; }
.sec-head h2 { font-family: var(--head); font-size: 22px; font-weight: 800; color: var(--nw-navy); }
.sec-head p { margin-top: 2px; font-size: 13px; color: var(--nw-text); }
.sec-link { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #1260c9; }
.sec-link .ic { transition: transform .2s; }
.sec-link:hover .ic { transform: translateX(3px); }
.nw-featured { margin-top: 22px; padding: 18px 18px 18px; }
.feat-grid { display: grid; grid-template-columns: 2.6fr 1fr 1fr 1fr; gap: 18px; margin-top: 14px; perspective: 1400px; }
.ft-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ft-img { position: relative; display: block; border-radius: 6px; background: #061633 center / cover no-repeat; }
.ft-top .ft-img { min-height: 150px; }
.ft-item .ft-img { height: 76px; }
.badge { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 4px; background: var(--nw-blue); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.ft-txt { display: flex; flex-direction: column; }
.ft-top h3 { font-family: var(--head); font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--nw-navy); }
.ft-item h3 { margin-top: 10px; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--nw-navy); }
.feat-grid h3 a:hover { color: #1260c9; }
.ft-top p, .ft-item p { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--nw-text); }
.ft-item { display: flex; flex-direction: column; padding-left: 18px; border-left: 1px solid #f0f4f9; }
.ft-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 11px; color: #6b7a90; }
.tg { padding: 2px 8px; border-radius: 4px; background: #eaf4ff; color: #1260c9; font-size: 10.5px; font-weight: 500; }

.nw-mostread { margin-top: 22px; }
.nw-mostread .h-ic.plain { width: 32px; font-size: 24px; }
.mr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 12px; }
.mr-item { display: flex; gap: 12px; padding: 10px; border-radius: 8px; background: #fff; border: 1px solid #edf2f8; box-shadow: 0 8px 20px rgba(20, 60, 120, .05); transition: box-shadow .2s; }
.mr-item:hover { box-shadow: 0 14px 28px rgba(20, 60, 120, .1); }
.mr-img { flex: none; width: 70px; height: 56px; border-radius: 4px; background: #061633 center / cover no-repeat; }
.mr-txt b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--nw-navy); }
.mr-item:hover b { color: #1260c9; }
.mr-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; font-size: 10.5px; color: #6b7a90; }

/* ---------- Newsletter ---------- */
.nw-news { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-top: 26px; margin-bottom: 26px; padding: 22px 30px; border-radius: 12px; background: linear-gradient(90deg, #e3effc, #f1f7fe 55%, #e6f0fb); border: 1px solid #e3ecf6; position: relative; overflow: hidden; }
.nw-news::after { content: ""; position: absolute; right: 0; bottom: 0; width: 260px; height: 100%; background: url("../assets/cd-snow.svg?v=20261008171438") right bottom / auto 130% no-repeat; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); pointer-events: none; }
.mail-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--nw-blue); font-size: 30px; box-shadow: 0 10px 24px rgba(22, 136, 243, .18); }
.nl-copy h2 { font-family: var(--head); font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--nw-navy); }
.nl-copy p { max-width: 420px; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--nw-text); }
.nl-form { position: relative; z-index: 1; }
.nl-sub { display: flex; gap: 0; height: 46px; overflow: hidden; border: 1px solid #dbe6f2; border-radius: 6px; background: #fff; }
.nl-sub input { width: 285px; padding: 0 14px; font-size: 13.5px; }
.nl-sub button.btn { display: inline-flex; width: auto; height: 100%; min-width: 120px; border-radius: 0 5px 5px 0; font-size: 14px; }
.nl-opts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 11.5px; color: #33415a; }
.nl-opts label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.nl-opts input { width: 14px; height: 14px; accent-color: var(--nw-blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .nw-hero-inner { grid-template-columns: 1fr 440px; }
  .nw-visual img { width: 440px; }
  .nw-motto { display: none; }
  .nw-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .feat-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ft-top { grid-column: 1 / -1; }
  .ft-item:nth-child(2) { padding-left: 0; border-left: 0; }
  .mr-grid { grid-template-columns: repeat(2, 1fr); }
  .nw-news { grid-template-columns: auto 1fr; }
  .nl-form { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .nw-hero-inner { grid-template-columns: 1fr; }
  .nw-visual { display: none; }
  .nw-hero h1 { white-space: normal; }
  .nw-layout { grid-template-columns: 1fr; }
  .nw-side { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nw-hero h1 { font-size: 38px; }
  .nw-hero .hero-copy > p { font-size: 15px; }
  .nw-search .btn { min-width: 0; padding: 0 14px; }
  .tl-head { flex-wrap: wrap; }
  .tl-live { margin-left: 0; text-align: left; }
  .tl-div { display: none; }
  .tl-frame { height: 620px; }
  .tl-cols { display: none !important; } /* the widget switches to a stacked layout on phones */
  .nw-side, .feat-grid, .ft-top, .mr-grid { grid-template-columns: 1fr; }
  .ft-item { padding-left: 0; border-left: 0; }
  .ft-item .ft-img { height: 140px; }
  .sec-head { flex-wrap: wrap; }
  .sec-link { margin-left: 0; }
  .nw-news { grid-template-columns: 1fr; padding: 20px 16px; }
  .mail-ic { display: none; }
  .nl-sub input { width: 100%; min-width: 0; flex: 1; }
}
