/* V71 / Resources. Inherit architecture and content from the approved V67. */
:root{
  --paper:#080c12;
  --panel:#111923;
  --ink:#f6f9ff;
  --body:#d9e4f3;
  --muted:#bac8db;
  --rule:#2a3544;
  --orange:#489dff;
  --orange-dark:#80c1ff;
  --peach:#142d4a;
  --dark:#080c12;
}
html,body{background:var(--paper);color:var(--ink)}
body{min-width:320px}
.topbar{background:rgba(10,15,23,.96);border:1px solid #293647;box-shadow:0 14px 34px rgba(0,0,0,.17)}
.desktop-nav>a,.nav-resources>a{color:#d9e5f4}
.desktop-nav>a:hover,.nav-resources>a:hover,.desktop-nav>a.active,.nav-resources>a.active{color:white}
.desktop-nav>a::after,.nav-resources>a::after{background:#4ba7ff}
.nav-dropdown,.mobile-panel{background:#121d2b;border-color:#2c4059}
.nav-dropdown a,.mobile-panel>a,.mobile-parent>a{color:#e1ebf8}
.nav-dropdown a:hover,.nav-dropdown a.active{background:#173c61;color:#d5edff}
.mobile-panel>a,.mobile-parent>a{border-bottom-color:#2f435b}
.mobile-expand{color:#dbe8f8;border-left-color:#39495f}
.menu-btn{background:#152235;border-color:#405671;color:#fff}
.mobile-subnav{border-left-color:#3779b7}
.mobile-subnav a{color:#d2e7fb}
.mobile-panel .active{color:#70baff}
.hero{background:var(--paper);border-bottom:1px solid var(--rule)}
.hero h1{color:#fff}
.hero h1 .accent,.accent{color:#51abff}
.hero .lead{color:#c7d7eb}
.hero-rule{background:#449fff}
.section-subtitle{color:#b5c8df}
.destination{background:rgba(16,26,39,.88);border-color:#314256;border-top-color:#368feb}
.destination:hover{background:#17293e;border-color:#408cd5}
.destination h2,.tool-title,.edition h3,.future-topic h3{color:#f5f9ff}
.destination p,.tool-desc,.edition p,.future-topic p{color:#bed0e4}
.destination-bottom{border-top-color:#344558;color:#73bdff}
.tool-meta{color:#76bfff}
.tool-action{color:#82c3ff;border-color:#5596d3}
.tool-row:hover .tool-action{color:#c4e4ff}
.tool-row.missing .tool-title{color:#f5f9ff}
.tool-row.missing .tool-action{color:#b6c6d7}
.tool-extra,.source-note,.note{color:#acbfd5}
.status,.future-topic .status{color:#b6c9db}
.btn,.footer-links a{color:#7bbdff}
.btn:hover,.btn.quiet:hover{color:#c6e6ff}
.btn.quiet{color:#d4e0ee}
.edition .edition-subtitle{color:#dbe6f4}
.footer{background:#080c12;border-top-color:#2d3b4b}
.footer-title{color:#f7faff}
.footer-links a{border-bottom-color:#4287c6}
.footer-base{border-top-color:#2d3b4b;color:#a7b9cc}
.footer-base a{color:#dce9f9}
/* Uniform editorial hierarchy with Home, Investments and Wealth. */
@media(min-width:791px){
 .hero h1{font-size:clamp(57px,5.10vw,79px);letter-spacing:-.04em;line-height:1.04}
 .section-heading{font-size:clamp(34px,3.75vw,53px)}
 .destination h2{font-size:clamp(23px,2.14vw,31px)}
}
/* Resources landing page: three pathways fit on one desktop viewport. */
.resources-landing{min-height:100svh;display:flex;flex-direction:column}
.resources-landing main{flex:1;position:relative}
.resources-landing .hero{position:relative;overflow:hidden;padding:clamp(118px,15vh,143px) 0 22px;border-bottom:0;isolation:isolate}
.resources-landing .hero .wide{position:relative;z-index:2}
.resources-landing .hero-inner{max-width:1040px}
.resources-landing .hero h1{margin-bottom:15px}
.resources-landing .hero .lead{max-width:790px;font-size:clamp(16px,1.30vw,18px);line-height:1.48}
.resources-landing .hero-rule{width:48px;height:2px;margin-top:22px}
.resources-landing .section{padding:13px 0 26px}
.resources-landing .destinations{gap:19px}
.resources-landing .destination{min-height:230px;padding:23px 23px 18px;background:rgba(16,26,39,.85)}
.resources-landing .destination h2{margin:0 0 15px}
.resources-landing .destination p{font-size:14px;line-height:1.52;margin-bottom:18px}
.resources-landing .destination-bottom{padding-top:13px}
.resources-landing .footer{padding:18px 0 13px}
.resources-landing .footer-title{font-size:clamp(20px,2.3vw,27px);margin:0 0 6px}
.resources-landing .footer-links{margin:7px 0 12px;gap:17px}
.resources-landing .footer-links a{font-size:12px;padding-bottom:3px}
.resources-landing .footer-base{padding-top:10px;font-size:11px}
/* Self-rendered optics; canvas alpha stays transparent and has no hard edge. */
#resource-dna{position:absolute;right:4vw;top:85px;width:min(53vw,760px);height:min(38vh,350px);opacity:.72;z-index:1;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 14%,#000 92%,transparent)}
@media(max-width:1100px){
 .resources-landing .hero .lead{max-width:690px}
 #resource-dna{right:-4vw;opacity:.48}
}
@media(max-width:790px){
 .hero h1{font-size:clamp(47px,8.5vw,62px)}
 .resources-landing .hero{padding:107px 0 20px}
 .resources-landing .hero h1{margin-bottom:16px}
 .resources-landing .hero .lead{font-size:16px;line-height:1.5;max-width:590px}
 .resources-landing .hero-rule{margin-top:19px}
 .resources-landing .section{padding:14px 0 32px}
 .resources-landing .destinations{gap:12px}
 .resources-landing .destination{min-height:0;padding:21px}
 #resource-dna{width:87%;right:-19%;top:120px;height:270px;opacity:.20}
}
@media(max-width:500px){
 .resources-landing .hero{padding:98px 0 18px}
 .resources-landing .hero h1{font-size:47px}
 .resources-landing .hero .lead{font-size:15px;line-height:1.5}
 .resources-landing .destination{padding:20px}
 .resources-landing .footer-base{flex-direction:column;gap:10px}
 #resource-dna{top:130px;opacity:.14}
}
@media(max-height:790px) and (min-width:791px){
 .resources-landing .hero{padding-top:115px;padding-bottom:13px}
 .resources-landing .hero h1{font-size:clamp(52px,4.7vw,70px);margin-bottom:10px}
 .resources-landing .hero .lead{font-size:16px;line-height:1.34}
 .resources-landing .hero-rule{margin-top:16px}
 .resources-landing .section{padding:9px 0 13px}
 .resources-landing .destination{min-height:196px;padding:17px 19px 15px}
 .resources-landing .destination h2{font-size:25px;margin-bottom:10px}
 .resources-landing .destination p{font-size:13px;line-height:1.42}
 .resources-landing .footer{padding:10px 0}
 .resources-landing .footer-title{font-size:20px}
 .resources-landing .footer-links{margin:4px 0 9px}
}
@media(prefers-reduced-motion:reduce){#resource-dna{opacity:.42}}


/* V72 — DNA motion extended to subpages and Portfolio X-Ray restyling */
body.resource-subpage .hero, body.xray-page .hero{position:relative;overflow:hidden;isolation:isolate}
body.resource-subpage .hero .wide, body.xray-page .hero .wide{position:relative;z-index:2}
body.resource-subpage #resource-dna, body.xray-page #resource-dna{position:absolute;right:4vw;top:76px;width:min(50vw,700px);height:min(36vh,320px);opacity:.62;z-index:1;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 12%,#000 92%,transparent)}
body.resource-subpage .hero .hero-inner{max-width:880px}
body.resource-subpage .hero .lead, body.xray-page .hero .lead{max-width:760px}
@media(max-width:1100px){body.resource-subpage #resource-dna, body.xray-page #resource-dna{right:-5vw;opacity:.46}}
@media(max-width:790px){body.resource-subpage #resource-dna, body.xray-page #resource-dna{width:88%;right:-18%;top:114px;height:248px;opacity:.22}}
@media(max-width:500px){body.resource-subpage #resource-dna, body.xray-page #resource-dna{top:124px;opacity:.16}}

.xray-page .hero{padding-bottom:44px}
.xray-kicker{display:inline-flex;align-items:center;gap:10px;font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:#a2c8ff;margin:0 0 18px}
.xray-kicker::before{content:"";width:28px;height:1px;background:#7fb4ff;display:block}
.xray-hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:32px;align-items:start}
.xray-hero-copy h1{margin-bottom:18px}
.xray-hero-copy .lead{margin-bottom:24px}
.xray-hero-copy .lead strong{color:#edf5ff;font-weight:650}
.xray-hero-copy .hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px}
.xray-visual{border:1px solid #3f4a58;border-radius:18px;background:rgba(34,40,49,.76);padding:14px;box-shadow:0 18px 42px rgba(0,0,0,.20)}
.xray-visual img,.screenshot-card img{width:100%;height:auto;display:block;border-radius:12px;border:1px solid rgba(255,255,255,.05)}
.xray-anchor-nav{position:sticky;top:106px;z-index:18;padding:0 0 10px;margin-top:-10px}
.xray-anchor-nav .wide{display:flex;justify-content:flex-start}
.xray-anchor-list{display:flex;flex-wrap:wrap;gap:10px;padding:8px 12px;border:1px solid #3c4552;border-radius:999px;background:rgba(24,29,36,.92);box-shadow:0 18px 40px rgba(0,0,0,.16);backdrop-filter:blur(8px)}
.xray-anchor-list a{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;font-size:13px;font-weight:600;color:#dbe7f5;transition:background .18s ease,color .18s ease}
.xray-anchor-list a:hover{background:#33475d;color:#fff}
.xray-section{padding-top:28px;padding-bottom:68px}
.xray-section.compact{padding-top:18px}
.xray-panel{background:#222831;border:1px solid #3f4a58;border-radius:22px;padding:30px;box-shadow:0 18px 42px rgba(0,0,0,.16)}
.xray-panel .section-heading{margin-bottom:12px}
.xray-panel .section-subtitle{max-width:740px;margin-bottom:0}
.xray-intro{margin-bottom:26px}
.xray-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.xray-feature-card{background:#1c2129;border:1px solid #3b4552;border-radius:16px;padding:18px 18px 17px;min-height:172px}
.xray-feature-card strong{display:block;font-size:18px;line-height:1.2;color:#f1f6fc;margin-bottom:10px;letter-spacing:-.02em}
.xray-feature-card p{margin:0;font-size:14px;line-height:1.56;color:#c3cfdd}
.xray-inline-note{margin:18px 0 0;font-size:13px;line-height:1.64;color:#b7c4d3}
.xray-inline-note a{border-bottom:1px solid currentColor;padding-bottom:2px}
.xray-analysis-grid{display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);gap:28px;align-items:start}
.xray-copy h3,.xray-process h3,.xray-audience-card h3{font-size:clamp(26px,2.3vw,34px);line-height:1.12;letter-spacing:-.03em;font-weight:650;margin:0 0 14px;color:#f4f7fb}
.xray-copy p{margin:0 0 16px;font-size:15px;line-height:1.66;color:#c7d1de}
.xray-copy ul{margin:0;padding-left:18px;color:#c7d1de}
.xray-copy li{margin:0 0 10px;font-size:15px;line-height:1.58}
.screenshot-card{background:#1c2129;border:1px solid #3b4552;border-radius:16px;padding:14px}
.screenshot-card .caption{font-size:12px;line-height:1.6;color:#adc1d8;margin-top:11px}
.xray-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.xray-step{background:#1c2129;border:1px solid #3b4552;border-radius:16px;padding:18px 18px 16px}
.xray-step-number{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;background:#2d4a6a;color:#f4f8ff;font-size:13px;font-weight:700;margin-bottom:14px}
.xray-step p,.xray-audience-card p,.xray-cta p,.xray-note{margin:0;font-size:14px;line-height:1.62;color:#c3cfdd}
.xray-audience-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.xray-audience-card{background:#1c2129;border:1px solid #3b4552;border-radius:16px;padding:20px 20px 18px}
.xray-cta .section-heading{margin-bottom:8px}
.xray-cta-actions{display:flex;flex-wrap:wrap;gap:14px;margin:26px 0 16px}
.xray-note{font-size:12px;color:#b2bfce;max-width:920px}
.xray-page .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid #6b9ed4;color:#dbeaff;background:transparent;font-size:13px;font-weight:650;text-decoration:none;transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease}
.xray-page .btn:hover{transform:translateY(-1px);background:#33475d;border-color:#9cc5f6;color:#fff}
.xray-page .btn.primary{background:#7ab4ff;color:#0f1822;border-color:#7ab4ff}
.xray-page .btn.primary:hover{background:#9ac7ff;border-color:#9ac7ff;color:#0d1620}
@media(max-width:1180px){.xray-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.xray-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.xray-hero-grid,.xray-analysis-grid{grid-template-columns:1fr}.xray-visual{max-width:780px}.xray-anchor-nav{top:92px}}
@media(max-width:790px){.xray-section{padding-top:16px;padding-bottom:56px}.xray-panel{padding:24px 22px}.xray-feature-grid,.xray-steps,.xray-audience-grid{grid-template-columns:1fr}.xray-anchor-nav{top:84px}.xray-anchor-list{gap:8px;padding:8px 10px}.xray-anchor-list a{font-size:12px;min-height:32px;padding:0 12px}}
