/* LINKIA | contrast, spacing and public showcase refinement */
:root{--muted:#4c6076;--blue:#176ba8;--line:rgba(32,72,111,.22);--glass-border:rgba(45,88,133,.22)}
html[data-theme="dark"]{--muted:#bed0e2;--blue:#8bd3ff;--line:rgba(183,211,242,.22);--glass-border:rgba(185,217,246,.24)}
/* Strong contrast on all transparent surfaces, including muted explanatory copy. */
.hero-description,.section-header>p,.section-intro>p,.selected-detail-copy>p,.how-copy>p,.sources-intro>p,.evidence-copy>p,.cent-panel-copy>p,.kya-feature-copy>p,.case-card p,.solution-card p,.security-card p,.authority-card p,.contact-left p{color:var(--muted)}
/* Every content-bearing surface has consistent physical inset. */
.solution-card,.authority-card,.security-card,.case-card,.control-three article{padding:clamp(17px,1.6vw,24px)}
.hub-inner-panel,.hub-mini-stat,.hub-studio-inspector,.hub-studio-canvas{box-sizing:border-box}
.hub-inner-panel{padding:18px 19px}
.hub-mini-stat{padding:15px 17px;min-width:0}
.hub-panel-top{padding:0 0 10px;border-bottom:1px solid var(--ph-line);margin-bottom:12px}
.hub-api-info-row{padding:12px 2px;align-items:center;line-height:1.45}
.hub-api-picker button,.hub-api-mini{padding:12px 14px}
.hub-studio-service{padding:12px 13px;line-height:1.35;min-height:43px}
.hub-side-footer{padding:13px 12px}
.hub-studio-inspector{padding:15px}
.hub-showcase{--ph-muted:#c4d4e5;--ph-text:#f7fbff;--ph-blue:#90d6ff;--ph-line:rgba(175,210,239,.22);--ph-panel:rgba(30,44,64,.94);--ph-panel2:rgba(42,58,79,.9)}
html[data-theme="light"] .hub-showcase{--ph-muted:#485e74;--ph-text:#193048;--ph-blue:#12649f;--ph-line:rgba(52,96,136,.23);--ph-panel:#ffffff;--ph-panel2:#f0f6fc}
.hub-customer-preview{isolation:isolate}
.hub-preview-layout{height:auto;min-height:555px;max-height:none;align-items:stretch}
.hub-preview-main{overflow:visible}
.hub-client-view{min-height:0;padding:19px 21px 25px}
.hub-mini-stats.hub-capabilities{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hub-capabilities .hub-mini-stat{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:133px;justify-content:center}
.hub-cap-icon{width:34px;height:34px;display:grid;place-items:center;background:var(--ph-highlight);border-radius:9px;color:var(--ph-blue);font-size:18px}
.hub-cap-title{font-size:13px;color:var(--ph-text)}
.hub-capabilities .hub-mini-stat-desc{color:var(--ph-muted);font-size:10px;line-height:1.55}
.hub-studio-layout{grid-template-columns:minmax(170px,.77fr) minmax(310px,1.45fr) minmax(195px,.88fr);gap:12px;min-height:385px}
.hub-studio-services{gap:7px;align-content:start}
.hub-studio-services .hub-side-label{padding:2px 2px 7px;margin:0;letter-spacing:1px}
.hub-services-caption{margin:6px 4px 0;color:var(--ph-muted);font-size:10px;line-height:1.5}
.hub-studio-canvas{min-height:340px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:11px}
.hub-studio-canvas:before{pointer-events:none}
.hub-studio-orbit{height:280px;flex:0 0 auto;max-width:320px}
.hub-center-hex{width:135px;height:145px}
.hub-center-in{gap:4px}
.hub-center-in small{max-width:112px;line-height:1.35;text-align:center}
.hub-satellite{font-size:9px;line-height:1.3;padding:7px 9px;max-width:110px;box-shadow:0 5px 16px var(--ph-shadow)}
.hub-satellite:not(.active){opacity:.57}
.hub-canvas-note{font-size:9px;letter-spacing:1px;font-weight:850;color:var(--ph-muted);text-align:center;padding-top:8px}
.hub-device-tabs{display:flex;gap:5px;padding:4px;background:var(--ph-panel2);border-radius:8px;margin-bottom:12px}
.hub-device-tabs button{flex:1;min-width:0;padding:7px 5px;border-radius:7px;border:1px solid transparent;color:var(--ph-muted);font-weight:750;font-size:10px;background:transparent;cursor:pointer}
.hub-device-tabs button.active{background:var(--ph-highlight);border-color:var(--ph-line);color:var(--ph-text)}
.hub-device-demo{border:1px solid var(--ph-line);border-radius:11px;min-height:243px;background:linear-gradient(145deg,var(--ph-panel2),var(--ph-panel));padding:14px 12px;display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:4px;transition:max-width .24s ease}
.hub-device-demo.mobile{max-width:182px;margin:auto;min-height:282px;border-radius:19px}
.hub-device-topline{display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--ph-line);padding-bottom:9px;margin-bottom:5px;font-weight:800;color:var(--ph-text)}
.hub-device-topline img{width:22px;height:18px;object-fit:contain}
.hub-device-topline small{font-size:10px;color:var(--ph-text)}
.hub-device-topline>span{margin-left:auto;color:var(--ph-muted);font-size:6px;letter-spacing:2px}
.hub-device-kicker{font-size:8px;letter-spacing:1px;color:var(--ph-blue);font-weight:800;margin-top:5px}
.hub-device-demo>strong{font-size:12px;color:var(--ph-text);line-height:1.3}
.hub-device-demo>small{font-size:9px;color:var(--ph-muted)}
.hub-device-list{display:grid;gap:5px;margin:8px 0;min-height:45px}
.hub-device-field{display:flex;align-items:center;gap:6px;font-size:9px;padding:7px 8px;border:1px solid var(--ph-line);border-radius:6px;background:var(--ph-panel);color:var(--ph-text);line-height:1.2}
.hub-device-field i{font-size:8px;font-style:normal;color:var(--ph-blue);font-weight:800}
.hub-device-field span{min-width:0;flex:1;overflow-wrap:anywhere}
.hub-device-field b{color:var(--ph-blue);font-size:13px}
.hub-device-action{display:flex;justify-content:space-between;align-items:center;margin-top:auto;background:linear-gradient(95deg,#357db2,#766ea9);border-radius:7px;color:#fff;padding:8px 10px;font-size:9px;font-weight:800}
.hub-inspector-note{margin:12px 1px 0;font-size:9px;line-height:1.5;color:var(--ph-muted)}
.hub-preview-side button,.hub-preview-tabs button,.hub-device-tabs button,.hub-api-mini,.hub-studio-service{transition:background .18s,border-color .18s,transform .18s}
.hub-preview-side button:focus-visible,.hub-preview-tabs button:focus-visible,.hub-device-tabs button:focus-visible,.hub-api-mini:focus-visible,.hub-studio-service:focus-visible{outline:2px solid var(--ph-blue);outline-offset:2px}
.hub-preview-tabs button.active{border-color:var(--glass-border)}
/* Hierarchy and legibility in both themes. */
.hub-preview-tabs button{font-size:11px;padding:10px 14px;color:var(--muted)}
.hub-preview-tabs button.active,.hub-preview-tabs button:hover{color:var(--ink)}
.hub-showcase-top{padding:15px 20px}
.hub-showcase-bottom{padding:14px 18px}
.hub-showcase-bottom>div:first-child{line-height:1.5}
.hub-studio-layout button{cursor:pointer}
/* Mobile: no nested scroll areas; real mobile experience preview stays visible. */
@media(max-width:1100px){.hub-studio-layout{grid-template-columns:minmax(145px,.7fr) minmax(250px,1.2fr) minmax(180px,.8fr)}.hub-preview-layout{grid-template-columns:160px minmax(0,1fr)}.hub-preview-side{padding:14px 9px}.hub-studio-service{padding:10px 8px}}
@media(max-width:880px){.hub-studio-layout{grid-template-columns:minmax(150px,.65fr) minmax(260px,1.3fr)}.hub-studio-inspector{display:block;grid-column:1/-1;max-width:100%}.hub-device-demo{max-width:350px;margin:0 auto;width:100%}.hub-studio-services{grid-row:1}.hub-studio-canvas{grid-row:1}.hub-preview-layout{grid-template-columns:145px minmax(0,1fr)}.hub-client-view{padding:16px}}
@media(max-width:650px){.hub-preview-layout{display:block;min-height:0}.hub-preview-side{display:none}.hub-client-view{padding:15px 12px}.hub-mini-stats.hub-capabilities{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.hub-capabilities .hub-mini-stat{min-height:124px;padding:10px}.hub-cap-icon{width:29px;height:29px}.hub-cap-title{font-size:11px}.hub-capabilities .hub-mini-stat-desc{font-size:9px}.hub-studio-layout{display:grid;grid-template-columns:1fr;gap:11px}.hub-studio-services{grid-row:auto;grid-template-columns:repeat(2,minmax(0,1fr))}.hub-studio-services .hub-side-label,.hub-services-caption{grid-column:1/-1}.hub-studio-canvas{grid-row:auto;min-height:290px}.hub-studio-inspector{grid-column:1;display:block}.hub-device-demo,.hub-device-demo.mobile{max-width:310px;min-height:200px}.hub-device-tabs{max-width:320px}.hub-satellite{font-size:8px;max-width:95px}.hub-preview-tabs button{font-size:10px;padding:9px 10px}.hub-mini-head{gap:7px}.hub-view-heading h3{font-size:18px}.hub-studio-service{padding:10px 11px}.hub-showcase-bottom{flex-wrap:wrap}}
@media(max-width:380px){.hub-capabilities .hub-mini-stat-desc{font-size:8px}.hub-api-picker button{font-size:9px}}
@media(prefers-reduced-motion:reduce){.hub-preview-side button,.hub-preview-tabs button,.hub-device-tabs button,.hub-api-mini,.hub-studio-service{transition:none}}

/* Prevent inherited legacy fixed device frames from clipping preview content. */
.hub-studio-inspector{display:flex;flex-direction:column;align-self:stretch}
.hub-device-demo,.hub-device-demo.mobile{height:auto;min-height:290px;width:100%;max-width:100%;margin:0;box-sizing:border-box;overflow:visible;align-items:stretch;justify-content:flex-start;gap:4px;border:1px solid var(--ph-line);padding:14px 12px}
.hub-device-demo.mobile{width:min(195px,100%);max-width:195px;min-height:295px;margin:0 auto;border-radius:20px}
.hub-device-demo img{width:22px;height:18px;margin:0;object-fit:contain}
.hub-device-demo>strong,.hub-device-demo>small{text-align:left}
.hub-device-demo>small{color:var(--ph-muted);font-size:9px}
.hub-device-action{margin-top:10px;flex:0 0 auto}
.hub-device-demo.mobile .hub-device-list{gap:4px}
.hub-device-demo.mobile .hub-device-field{padding:6px}
.hub-inspector-note{margin-top:13px;flex:0 0 auto}
/* Raise tiny labels that would otherwise lose readability inside translucent cards. */
.hub-side-label,.hub-panel-top>span,.hub-mini-head>div,.hub-api-info-row,.hub-api-picker span,.hub-api-information p,.hub-simple-foot,.hub-services-caption,.hub-inspector-note,.hub-capabilities .hub-mini-stat-desc{font-size:max(10px, .72vw)}
.hub-mini-head .hub-head-help,.hub-head-help{font-size:10px}
.hub-device-field{font-size:10px}
.hub-preview-side button,.hub-studio-service{font-size:11px}
.hub-studio-canvas .hub-satellite{font-size:10px}
.hub-inner-panel p,.hub-inner-panel small{line-height:1.55}
.contact-art-chip small{opacity:.86}
@media(max-width:650px){.hub-device-demo,.hub-device-demo.mobile{width:100%;max-width:340px;min-height:240px}.hub-device-demo.mobile{max-width:215px}.hub-studio-inspector{display:flex}.hub-capabilities .hub-mini-stat-desc{font-size:9px}.hub-studio-canvas .hub-satellite{font-size:9px}.hub-mini-head .hub-head-help{display:none}}
/* KYA is a deliberate dark editorial section in either theme.
   This prevents the earlier white-on-light copy caused by the broad section reset. */
html[data-theme="light"] .kya-section{background:radial-gradient(ellipse at 80% 18%,rgba(84,163,223,.18),transparent 51%),linear-gradient(145deg,#08213e 0%,#0c3054 60%,#102f52 100%)!important;color:#f2f9ff}
html[data-theme="dark"] .kya-section{background:radial-gradient(ellipse at 80% 18%,rgba(65,137,202,.18),transparent 51%),linear-gradient(145deg,#07182e 0%,#0a294b 66%,#0b2443 100%)!important;color:#f2f9ff}
.kya-section h2,.kya-section .authority-heading h3,.kya-section .authority-card strong,.kya-section .art-label b{color:#f4f9ff!important}
.kya-section p,.kya-section .kya-feature-copy>p,.kya-section .authority-heading p,.kya-section .authority-card p{color:#c5d8eb!important}
.kya-section .authority-card{background:rgba(26,48,75,.81)!important;border-color:rgba(175,212,243,.23);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 12px 28px rgba(0,8,24,.12)}
.kya-section .authority-card>span{color:#93d6ff}
.kya-section .art-label{background:rgba(32,57,81,.86);border-color:rgba(179,220,245,.26);color:#eff8ff}
.kya-section .art-label small{color:#c3dcef}
.kya-section .section-kicker,.kya-section .small-label{color:#a3ddff}
.kya-section .kicker-line{background:#a3ddff}
.kya-section .authority-heading h3 em{color:#8bd3ff}
/* Small green status text on very light sample cards needs a deeper tone. */
.detail-art .mini-verdict,.mini-verdict{color:#086c5a}
.flow-result small{color:#32675d}
