/* ===== For You (frontend/js/for-you.js) =====
 * A marketing feed for the Manhattan ecosystem, ranked by configuration fit.
 * Rides the app tokens (app.css / theme-dark.css) with fallbacks; the few
 * tints are Veridian brand colours. Prefix: fy- */
.fy { --fy-navy: var(--primary, #253378); --fy-mblue: var(--primary-light, #474ecb); --fy-orange: #d9531a; --fy-orange-h: #dd4e16;
  --fy-blue: #5398f6; --fy-green: #3cc69a; --fy-lblue: #d7e9ff; --fy-lgreen: #c6ebdb; --fy-lorange: #ffd09e; --fy-tint: #f3f9fe; --fy-ink: #161c4f;
  --fy-border: var(--border-light, #e3eaf6); --fy-card: var(--bg-card, #fff); --fy-text: var(--text, #161c4f); --fy-muted: var(--text-secondary, #676865);
  display: flex; flex-direction: column; gap: 20px; max-width: 1240px; }
[data-theme="dark"] .fy { --fy-lblue: rgba(83,152,246,.18); --fy-lgreen: rgba(60,198,154,.18); --fy-lorange: rgba(255,208,158,.22); --fy-tint: rgba(255,255,255,.04); --fy-ink: var(--text, #e6e8f0); }
.fy h2, .fy h3, .fy p { margin: 0; }
.fy-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fy-chip-btn { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--fy-border); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; background: var(--fy-card); color: var(--fy-navy); }
.fy-chip-btn.on { background: var(--fy-navy); color: #fff; border-color: var(--fy-navy); }
.fy-count { margin-left: auto; font-size: 12.5px; color: var(--fy-muted); }
.fy-count a { color: var(--fy-mblue); }
.fy-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.fy-c4 { grid-column: span 4; } .fy-c6 { grid-column: span 6; } .fy-c8 { grid-column: span 8; } .fy-c12 { grid-column: span 12; }
.fy-card { background: var(--fy-card); border: 1px solid var(--fy-border); border-radius: 12px; box-shadow: var(--shadow-sm, 0 8px 24px rgba(31,36,82,.08)); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.fy-card.fy-sponsored { border-color: var(--fy-lorange); }
.fy-body { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.fy-card h2 { font-size: 23px; line-height: 32px; font-weight: 700; color: var(--fy-navy); letter-spacing: .2px; }
.fy-card h3 { font-size: 16.5px; line-height: 24px; font-weight: 700; color: var(--fy-navy); }
.fy-card h2 a, .fy-card h3 a { color: inherit; text-decoration: none; }
.fy-card h2 a:hover, .fy-card h3 a:hover { color: var(--fy-mblue); }
.fy-card p { font-size: 13.5px; line-height: 21px; color: var(--fy-muted); }
.fy-card p.fy-fine { font-size: 12px; line-height: 18px; }
.fy-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fy-kind { font-size: 12px; font-weight: 500; color: var(--fy-muted); }
.fy-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; color: var(--fy-ink); }
.fy-tag-manh { background: var(--fy-navy); color: #fff; } .fy-tag-ver { background: var(--fy-lorange); } .fy-tag-cust { background: var(--fy-lgreen); } .fy-tag-comm { background: var(--fy-lblue); }
.fy-tag-spon { background: transparent; color: var(--fy-muted); border: 1px dashed var(--fy-muted); }
.fy-fit { margin-left: auto; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--fy-lgreen); color: var(--fy-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.fy-fit.mid { background: var(--fy-lblue); } .fy-fit.low { background: var(--fy-tint); border: 1px solid var(--fy-border); }
.fy-media { position: relative; display: block; width: 100%; background: var(--fy-lblue); overflow: hidden; height: 180px; text-decoration: none; }
.fy-media.tall { height: 280px; } .fy-media.short { height: 160px; } .fy-media.contain { background: var(--fy-tint); }
.fy-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fy-media.contain img { object-fit: contain; padding: 10px; }
.fy-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: var(--fy-orange); box-shadow: 0 10px 30px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.fy-dur { position: absolute; right: 12px; top: 12px; background: rgba(22,28,79,.85); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.fy-why { display: flex; gap: 10px; align-items: flex-start; background: var(--fy-lblue); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; line-height: 19px; color: var(--fy-ink); }
.fy-why svg { flex: none; margin-top: 1px; }
.fy-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fy-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--fy-tint); border: 1px solid var(--fy-border); font-size: 11.5px; font-weight: 600; color: var(--fy-navy); }
.fy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.fy-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.fy-btn-primary { background: var(--fy-orange); color: #fff; border-color: var(--fy-orange); } .fy-btn-primary:hover { background: var(--fy-orange-h); border-color: var(--fy-orange-h); color: #fff; }
.fy-btn-outline { background: var(--fy-card); color: var(--fy-mblue); border-color: var(--fy-mblue); } .fy-btn-outline:hover { background: var(--fy-tint); color: var(--fy-navy); border-color: var(--fy-navy); }
.fy-foot { display: flex; gap: 4px; align-items: center; border-top: 1px solid var(--fy-border); padding: 6px 12px; flex-wrap: wrap; }
.fy-icon-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; border: 0; background: transparent; color: var(--fy-muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.fy-icon-btn:hover { background: var(--fy-tint); color: var(--fy-navy); }
.fy-react { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--fy-muted); }
.fy-quote { font-size: 15.5px; line-height: 25px; font-weight: 500; color: var(--fy-ink); }
.fy-author { display: flex; gap: 12px; align-items: center; }
.fy-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--fy-lblue); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--fy-navy); flex: none; }
.fy-bars { display: flex; flex-direction: column; gap: 10px; }
.fy-bar-l { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--fy-navy); margin-bottom: 4px; }
.fy-bar { height: 10px; border-radius: 999px; background: var(--fy-tint); overflow: hidden; }
.fy-bar span { display: block; height: 100%; border-radius: 999px; }
.fy-tone-a { background: var(--fy-mblue); } .fy-tone-b { background: var(--fy-blue); } .fy-tone-good { background: var(--fy-green); } .fy-tone-hot { background: var(--fy-orange); }
.fy-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.fy-stat { display: flex; flex-direction: column; gap: 2px; }
.fy-stat b { font-size: 24px; line-height: 28px; font-weight: 700; color: var(--fy-navy); letter-spacing: -.3px; }
.fy-stat b.good { color: var(--fy-green); }
.fy-stat span { font-size: 11px; font-weight: 600; color: var(--fy-muted); }
.fy-row { display: flex; gap: 16px; align-items: flex-start; }
.fy-thumb { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; flex: none; background: var(--fy-tint); }
.fy-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.fy-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fy-tiles div { display: flex; align-items: center; gap: 8px; background: var(--fy-tint); border-radius: 8px; padding: 8px; font-size: 11px; font-weight: 700; color: var(--fy-navy); line-height: 14px; }
.fy-tiles img { width: 28px; height: 28px; }
.fy-meter { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--fy-tint); border-radius: 8px; }
.fy-chart svg { display: block; width: 100%; font-family: inherit; }
.fy-empty { grid-column: span 12; text-align: center; padding: 40px; }
.fy-legend { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding-top: 4px; font-size: 12px; color: var(--fy-muted); }
/* story */
.fy-crumb { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--fy-muted); flex-wrap: wrap; }
.fy-crumb a { color: var(--fy-navy); text-decoration: none; font-weight: 700; }
.fy-story { display: flex; flex-wrap: wrap; gap: 28px; }
.fy-article { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.fy-rail { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.fy-article h1 { margin: 0; font-size: 32px; line-height: 42px; font-weight: 700; color: var(--fy-navy); letter-spacing: .3px; }
.fy-lede { font-size: 16px; line-height: 27px; color: var(--fy-ink); }
.fy-hero { position: relative; border-radius: 12px; overflow: hidden; height: 320px; background: var(--fy-lblue); }
.fy-hero.contain { background: var(--fy-tint); }
.fy-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fy-hero.contain img { object-fit: contain; padding: 20px; }
.fy-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px; background: rgba(22,28,79,.82); color: #fff; font-size: 12px; font-weight: 600; }
.fy-panel { background: var(--fy-lblue); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.fy-panel .fy-eyebrow { color: var(--fy-orange); }
.fy-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; color: var(--fy-orange); text-transform: uppercase; }
.fy-panel h3 { font-size: 20px; line-height: 28px; color: var(--fy-navy); }
.fy-panel p { color: var(--fy-ink); font-size: 14px; line-height: 23px; }
.fy-white { background: var(--fy-card); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.fy-band { display: flex; gap: 20px; align-items: center; background: var(--fy-lblue); border-radius: 12px; padding: 16px 20px; flex-wrap: wrap; }
.fy-band b { color: var(--fy-navy); font-size: 15px; }
.fy-rail .fy-card { padding: 18px 20px; gap: 10px; }
.fy-score { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-size: 10.5px; color: var(--fy-muted); font-weight: 600; }
.fy-score div { background: var(--fy-tint); border-radius: 6px; padding: 6px 8px; border: 1px solid var(--fy-border); }
.fy-score b { display: block; color: var(--fy-navy); font-size: 13px; }
.fy-related { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--fy-border); text-decoration: none; color: var(--fy-navy); font-size: 13px; font-weight: 600; }
.fy-related:last-child { border-bottom: 0; }
.fy-related .sw { width: 56px; height: 44px; border-radius: 8px; flex: none; overflow: hidden; background: var(--fy-lblue); }
.fy-related .sw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fy-related span.t { flex: 1; }
/* ── insights (live articles: api/for_you_insights.py) ── */
.fy-tag-scr { background: var(--fy-lgreen); } .fy-tag-news { background: var(--fy-tint); border: 1px solid var(--fy-border); color: var(--fy-muted); }
.fy-ext { margin-left: 6px; font-size: 13px; line-height: 1; }
.fy-card { transition: box-shadow .25s ease, transform .25s ease; }
.fy-card:has(.fy-ins-media):hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(31,36,82,.16); }
.fy-ins-media img[data-fy-img], .fy-tile-img img[data-fy-img], .fy-slide-img img[data-fy-img] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease, transform .6s ease; }
img[data-fy-img].in { opacity: 1; }
.fy-has-img > .fy-cover { visibility: hidden; transition: visibility 0s linear .6s; }
.fy-has-img { background: #fff; }
.fy-related .sw { position: relative; }
.fy-related .sw img[data-fy-img] { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.fy-related .sw img[data-fy-img].in { opacity: 1; }
.fy-sw-rel { display: inline-flex !important; align-items: center; justify-content: center; background: var(--fy-navy) !important; color: #fff; font-size: 11.5px; font-weight: 700; }
/* designed cover: under every article photo while it loads, and instead of a repeated or missing one */
.fy-cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 18px 20px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #0b1f4d 0%, #1d3fb8 58%, #3aa0f0 100%); }
.fy-cover::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 28px solid rgba(255,255,255,.08); box-shadow: 0 0 0 46px rgba(255,255,255,.04); }
.fy-cover::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px); background-size: 16px 16px; mask-image: linear-gradient(200deg, #000 0%, transparent 60%); -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 60%); }
.fy-cover-ver { background: linear-gradient(135deg, #1c2766 0%, #474ecb 55%, #d9531a 120%); }
.fy-cover-scr { background: linear-gradient(135deg, #0c2f33 0%, #12705f 55%, #3cc69a 115%); }
.fy-cover-news { background: linear-gradient(135deg, #22252e 0%, #4b5163 60%, #7c8396 100%); }
/* four variants per source (by article id) so a row of covers never looks stamped */
.fy-cv1 { filter: hue-rotate(-16deg); } .fy-cv1::before { inset: auto auto -45% -20%; }
.fy-cv2 { filter: hue-rotate(14deg) saturate(1.1); } .fy-cv2::before { inset: -30% auto auto -25%; width: 55%; border-width: 18px; }
.fy-cv2::after { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 14px); }
.fy-cv3 { filter: brightness(.9) saturate(1.15); } .fy-cv3::before { inset: 10% -25% auto auto; width: 45%; border-radius: 22px; transform: rotate(18deg); }
.fy-cover-k { position: relative; z-index: 1; font-size: 26px; line-height: 30px; font-weight: 800; letter-spacing: -.3px; }
.fy-cover-s { position: relative; z-index: 1; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; opacity: .8; }
.fy-pair { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--fy-tint); border: 1px solid var(--fy-border); color: var(--fy-navy); text-decoration: none; font-size: 12px; font-weight: 600; align-self: flex-start; }
.fy-pair span { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--fy-navy); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.fy-pair { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fy-pair:hover { border-color: var(--fy-mblue); color: var(--fy-mblue); }
/* spotlight — an editorial lead card in the page's own language: white
   card, hairline border, photo beside the copy, a numbered reading list
   under it. No billboard gradient, no copy laid over the picture. */
.fy-spot { background: var(--fy-card); border: 1px solid var(--fy-border); border-radius: 12px; box-shadow: var(--shadow-sm, 0 8px 24px rgba(31,36,82,.08)); padding: 22px 24px 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fy-spot-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fy-spot-head > div:first-child { flex: 1 1 260px; min-width: 0; }
.fy-src-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 3px; font-size: 12px; font-weight: 600; color: var(--fy-muted); }
.fy-src-stat { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.fy-src-stat b { color: var(--fy-navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.fy-src-stat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--fy-blue); flex: none; }
.fy-src-ver::before { background: var(--fy-orange); } .fy-src-scr::before { background: var(--fy-green); } .fy-src-news::before { background: #b9bfcc; }
/* every slide shares one grid cell, so the tallest sets the height and the
   card never jumps between stories */
.fy-spot-stage { display: grid; min-width: 0; }
.fy-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: center; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.fy-slide.on { opacity: 1; visibility: visible; transition: opacity .5s ease; z-index: 1; }
.fy-slide-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--fy-tint); }
.fy-slide .fy-cover { padding: 24px 26px; }
.fy-slide .fy-cover-k { font-size: 34px; line-height: 38px; }
.fy-slide.on .fy-slide-img img.in { animation: fy-drift 16s ease-out both; }
@keyframes fy-drift { from { transform: scale(1); } to { transform: scale(1.04); } }
.fy-slide-copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 4px 8px 4px 0; transform: translateY(6px); opacity: 0; transition: transform .5s ease .1s, opacity .5s ease .1s; }
.fy-slide.on .fy-slide-copy { transform: none; opacity: 1; }
.fy-slide .fy-head { gap: 8px 10px; }
.fy-slide h2 { margin: 0; font-size: 23px; line-height: 32px; font-weight: 700; letter-spacing: .2px; color: var(--fy-navy); text-wrap: balance; }
.fy-slide h2 a { color: inherit; text-decoration: none; } .fy-slide h2 a:hover { color: var(--fy-mblue); }
.fy-slide p { margin: 0; font-size: 13.5px; line-height: 21px; color: var(--fy-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fy-slide .fy-pair { white-space: normal; line-height: 16px; padding: 6px 12px 6px 6px; }
.fy-slide .fy-actions { margin-top: 4px; padding-top: 2px; }
/* the reading list: one row of hairline cells, the open one carries an
   accent rule that fills while its slide is on screen */
.fy-spot-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 20px; border-top: 1px solid var(--fy-border); margin: 4px -24px 0; padding: 0 24px; }
.fy-spot-nav { position: relative; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 16px 0 18px; border: 0; background: transparent; color: var(--fy-muted); font: inherit; cursor: pointer; min-width: 0; transition: color .2s; }
.fy-spot-nav:hover, .fy-spot-nav:focus-visible { color: var(--fy-navy); outline: none; }
.fy-spot-nav:focus-visible .fy-spot-t > span { text-decoration: underline; text-underline-offset: 3px; }
.fy-spot-nav.on { color: var(--fy-navy); }
.fy-spot-n { font-size: 11px; font-weight: 700; letter-spacing: .4px; font-variant-numeric: tabular-nums; color: var(--fy-muted); padding-top: 2px; }
.fy-spot-nav.on .fy-spot-n { color: var(--fy-orange); }
.fy-spot-t { display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 18px; font-weight: 600; min-width: 0; }
.fy-spot-t b { font-size: 10.5px; line-height: 14px; letter-spacing: .5px; text-transform: uppercase; font-weight: 600; color: var(--fy-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-spot-t > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fy-spot-nav.on .fy-spot-t > span { font-weight: 700; }
.fy-spot-bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; }
.fy-spot-bar i { display: block; height: 100%; width: 0; background: var(--fy-orange); border-radius: 0 1px 1px 0; }
.fy-spot-nav.on .fy-spot-bar i { animation: fy-progress 8s linear both; }
.fy-spot:hover .fy-spot-nav.on .fy-spot-bar i, .fy-spot:has(:focus-visible) .fy-spot-nav.on .fy-spot-bar i { animation-play-state: paused; }
@keyframes fy-progress { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .fy-slide, .fy-slide-copy, img[data-fy-img] { transition: none; } .fy-slide.on .fy-slide-img img.in, .fy-spot-nav.on .fy-spot-bar i { animation: none; } .fy-spot-nav.on .fy-spot-bar i { width: 100%; } }
.fy-skel { padding-bottom: 22px; }
.fy-skel .fy-spot-stage { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; }
.fy-skel .fy-spot-stage span, .fy-skel .fy-spot-list span { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--fy-tint), var(--fy-lblue), var(--fy-tint)); background-size: 200% 100%; animation: fy-shimmer 1.4s linear infinite; }
.fy-skel .fy-spot-stage span:first-child { aspect-ratio: 16 / 10; } .fy-skel .fy-spot-stage span:last-child { min-height: 180px; align-self: center; }
.fy-skel .fy-spot-list { border-top: 0; margin-top: 0; } .fy-skel .fy-spot-list span { height: 44px; border-radius: 6px; }
@keyframes fy-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* rails */
.fy-rails { background: var(--fy-tint); border: 1px solid var(--fy-border); border-radius: 16px; padding: 22px 22px 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fy-rails-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.fy-rails-head > div:first-child { flex: 1 1 260px; }
.fy-section-t { margin: 2px 0 0; font-size: 19px; line-height: 26px; font-weight: 700; color: var(--fy-navy); }
.fy-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.fy-tab { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--fy-border); background: var(--fy-card); color: var(--fy-navy); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.fy-tab span { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--fy-tint); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.fy-tab.on { background: var(--fy-navy); border-color: var(--fy-navy); color: #fff; } .fy-tab.on span { background: rgba(255,255,255,.18); }
.fy-rail-nav { display: flex; gap: 6px; }
.fy-rail-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--fy-border); background: var(--fy-card); color: var(--fy-navy); font-size: 18px; line-height: 1; cursor: pointer; }
.fy-rail-nav button:hover { border-color: var(--fy-mblue); color: var(--fy-mblue); }
.fy-rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 290px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.fy-tile { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--fy-card); border: 1px solid var(--fy-border); border-radius: 12px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.fy-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31,36,82,.16); }
.fy-tile:hover .fy-tile-img img.in { transform: scale(1.05); }
.fy-tile-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.fy-tile-img .fy-cover { padding: 14px 16px; } .fy-tile-img .fy-cover-k { font-size: 20px; line-height: 24px; }
.fy-tile-src { position: absolute; z-index: 2; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(10,14,48,.72); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fy-tile-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fy-tile h4 { margin: 0; font-size: 14.5px; line-height: 20px; font-weight: 700; color: var(--fy-navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fy-tile h4 a { color: inherit; text-decoration: none; } .fy-tile h4 a:hover { color: var(--fy-mblue); }
.fy-tile .fy-pair { font-size: 11px; padding: 4px 10px 4px 4px; }
.fy-tile-cta { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--fy-orange); text-decoration: none; }
.fy-tile-cta:hover { text-decoration: underline; }
.fy-more { display: flex; justify-content: center; padding: 6px 0; }
/* insight story */
.fy-hero.fy-ins-media { height: 380px; }
.fy-hero.fy-ins-media .fy-cap { z-index: 2; }
.fy-readband { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border-radius: 14px; padding: 20px 22px; color: #fff; background: linear-gradient(120deg, #0b1f4d, #1d3fb8); }
.fy-readband-ver { background: linear-gradient(120deg, #1c2766, #474ecb 70%, #b5501f); } .fy-readband-scr { background: linear-gradient(120deg, #0c2f33, #12705f); } .fy-readband-news { background: linear-gradient(120deg, #22252e, #4b5163); }
.fy-readband b { font-size: 16px; } .fy-readband .fy-kind { color: rgba(255,255,255,.75); }
@media (max-width: 1100px) { .fy-c4 { grid-column: span 6; } .fy-c8 { grid-column: span 12; } }
@media (max-width: 980px) { .fy-slide, .fy-skel .fy-spot-stage { grid-template-columns: minmax(0, 1fr); gap: 16px; } .fy-slide-copy { padding-right: 0; } .fy-spot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .fy-spot { padding: 16px 16px 0; } .fy-spot-list { grid-template-columns: minmax(0, 1fr); margin: 0 -16px; padding: 0 16px; } .fy-spot-nav { padding: 12px 0 14px; } .fy-slide h2 { font-size: 19px; line-height: 26px; } .fy-slide p { -webkit-line-clamp: 3; } .fy-rails { padding: 16px 14px 12px; } .fy-hero.fy-ins-media { height: 230px; } }
@media (max-width: 760px) { .fy-c4, .fy-c6, .fy-c8 { grid-column: span 12; } .fy-article h1 { font-size: 26px; line-height: 34px; } .fy-rail { max-width: none; } .fy-hero { height: 220px; } }
