/* Additions of 2026-10-17 for the demonstration, the methods, the education and the API sections.
   The tokens follow site.css; the ones below are new. */
:root {
    --ee-on-dark-muted: #A9B6CA;
    --ee-line-dark: rgba(255, 255, 255, 0.12);
    --ee-canvas: #0F172A;
    --risk-low: #22C55E;
    --risk-mid: #F59E0B;
    --risk-high: #F97316;
    --risk-vhigh: #EF4444;
}

/* the viewer of the 3D body, in the hero cell and in the demonstration */
.ee-viewer { position: relative; min-width: 0; background: var(--ee-canvas); cursor: grab; }
.ee-viewer canvas { display: block; width: 100%; height: 100%; }
.ee-viewer .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ee-on-dark-muted); font-size: 0.95rem; text-align: center; padding: 20px; background: var(--ee-canvas); z-index: 2; }
.ee-viewer .loading span { background: rgba(15, 23, 42, 0.85); padding: 8px 14px; border-radius: 8px; }
.ee-viewer .hint { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(15, 23, 42, 0.78); color: var(--ee-on-dark-muted); font-size: 0.82rem; pointer-events: none; z-index: 3; }
.ee-viewer .hint svg { flex: none; color: #fff; }
.hero-cell .ee-viewer { width: 100%; height: 100%; }

/* the demonstration: the clip, the body, the readout and the score of every frame */
.stage { background: #060B16; border: 1px solid var(--ee-line-dark); border-radius: var(--ee-radius-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; color: var(--ee-text-on-dark); }
.stage .panel { position: relative; min-width: 0; background: #060B16; }
.stage .panel.video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.stage .panel.viewer { min-height: 320px; }
.stage .panel.viewer .loading { background: var(--ee-canvas) url(../assets/ui-preview-3d.jpg) center / cover; }
.readout { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto 1fr auto; gap: 18px 28px; align-items: center; padding: 16px 20px 6px; border-top: 1px solid var(--ee-line-dark); }
.readout .badge { display: inline-grid; place-items: center; border: 2px solid var(--risk-vhigh); border-radius: 12px; padding: 6px 14px 8px; min-width: 86px; font-size: inherit; line-height: inherit; color: inherit; background: none; }
.readout .badge .m { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ee-on-dark-muted); font-weight: 600; }
.readout .badge .s { font-size: 2.3rem; font-weight: 800; line-height: 1; color: #fff; }
.readout .level strong { display: block; font-size: 1.25rem; color: #fff; }
.readout .level span { color: var(--ee-on-dark-muted); font-size: 0.95rem; }
table.breakdown { border-collapse: collapse; font-size: 0.86rem; color: var(--ee-text-on-dark); margin: 0; }
table.breakdown td { padding: 1px 10px 1px 0; white-space: nowrap; }
table.breakdown td.v { font-weight: 700; color: #fff; text-align: right; padding-right: 18px; }
table.breakdown td.a { color: var(--ee-on-dark-muted); }
.readout .controls { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.chart { grid-column: 1 / -1; padding: 6px 20px 16px; }
.chart svg { width: 100%; height: 120px; display: block; cursor: pointer; touch-action: none; }
.chart .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.82rem; color: var(--ee-on-dark-muted); margin-top: 8px; }
.chart .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* the methods: one tab per method, a panel with the result view and the facts */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tabs button { font: inherit; font-weight: 700; font-size: 0.98rem; padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ee-primary); border-color: var(--ee-primary); color: #fff; }
.tabs button .new { font-size: 0.7rem; margin-left: 6px; background: rgba(255, 255, 255, 0.18); color: #fff; border-radius: 4px; padding: 1px 5px; vertical-align: middle; }
.tabs button[aria-selected="true"] .new { background: #fff; color: var(--ee-primary); }
.mpanel { display: none; background: var(--ee-surface); color: var(--ee-text); border: 1px solid var(--ee-border); border-radius: var(--ee-radius-lg); overflow: hidden; }
.mpanel.open { display: grid; grid-template-columns: 5fr 7fr; }
.mpanel .shot { background: var(--ee-dark); border-right: 1px solid var(--ee-border); display: flex; flex-direction: column; margin: 0; }
.mpanel .shot img { width: 100%; height: 100%; min-height: 360px; object-fit: contain; object-position: top center; flex: 1; background: #fff; display: block; }
.mpanel .text { padding: 26px 30px 22px; }
.mpanel .text h3 { font-size: 1.4rem; color: var(--ee-text); margin-bottom: 0.2em; }
.mpanel .text .full { color: var(--ee-muted); margin-bottom: 14px; }
.mpanel dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 0.95rem; }
.mpanel dt { font-weight: 700; color: var(--ee-text); }
.mpanel dd { margin: 0; color: var(--ee-text); }
.mpanel dd.ref { color: var(--ee-muted); font-size: 0.88rem; }
.scale { display: flex; gap: 3px; margin: 14px 0 4px; }
.scale span { flex: 1; height: 8px; border-radius: 3px; }
.scale-l { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ee-muted); margin-bottom: 14px; }

/* a picture in a frame keeps its ratio (site.css sets the width only, and the height attribute would stay) */
.shot-frame img { height: auto; }

/* the tags of the narrative */
.tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.5rem; }
.tag-before { background: var(--ee-bg); color: var(--ee-muted); }
.tag-after { background: var(--ee-glow); color: var(--ee-primary); }

/* the partners and the funders */
.partners { background: var(--ee-surface); padding: 2.25rem 0 2rem; border-bottom: 1px solid var(--ee-border); }
.partners .partners-line { text-align: center; color: var(--ee-muted); max-width: 760px; margin: 0 auto 1.5rem; }
.partners .logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 52px; }
.partners .logos + .logos { margin-top: 20px; gap: 16px 44px; }
.partners .logos img { width: auto; height: auto; }
.partners .logos .his { height: 72px; }
.partners .logos .spsk { height: 36px; }
.partners .logos .fg { height: 26px; }
.partners .logos .vin { height: 42px; }
.partners .logos .kk { height: 22px; }
.partners .logos .type { font-weight: 700; color: var(--ee-text); font-size: 0.95rem; line-height: 1.15; text-decoration: none; text-align: center; }
.partners .logos .type small { display: block; font-weight: 500; color: var(--ee-muted); font-size: 0.76rem; }
.partners .logos a.type:hover { color: var(--ee-primary); }
.partners .partners-line.airgo { margin-top: 1.75rem; }
.partners .logos .ske { height: 30px; }
.partners .logos .alv { height: 30px; }

/* the hero: the video and the body of EasyAI on one frame, with a handle that slides between the two */
.hero-compare { position: relative; border-radius: var(--ee-radius-lg); overflow: hidden; box-shadow: var(--ee-shadow-lg); background: #0F172A; touch-action: none; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.hero-compare img { display: block; width: 100%; height: auto; pointer-events: none; }
.hero-compare img.over { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.hero-compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35); outline: none; }
.hero-compare .handle:focus-visible .knob { box-shadow: 0 0 0 3px var(--ee-primary-light); }
.hero-compare .knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(15, 31, 61, 0.88); border: 2px solid #fff; color: #fff; display: grid; place-items: center; }
.hero-hybrid-label { position: absolute; bottom: 0.75rem; background: rgba(15, 31, 61, 0.85); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 0.35rem 0.7rem; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; backdrop-filter: blur(8px); pointer-events: none; }
.hero-hybrid-label.left { left: 0.75rem; }
.hero-hybrid-label.right { right: 0.75rem; }

/* the team of the about page: four cards with a square portrait, a title and a short text */
.team-grid-wide { max-width: 1040px; }
.team-card img { height: auto; aspect-ratio: 1; object-fit: cover; object-position: top; }
.team-card .body { text-align: left; }
.team-card .body .role { color: var(--ee-text); font-weight: 600; margin-bottom: 0.4rem; }
.team-card .body .about { color: var(--ee-muted); font-size: 0.92rem; margin: 0; line-height: 1.5; }
.publication-list li strong { display: block; margin-bottom: 0.15rem; }

/* the files and the tools, inside the API section */
.api-files { margin-top: 2.5rem; border-top: 1px solid var(--ee-line-dark); padding-top: 2rem; }
.api-files h3 { color: #fff; font-size: 1.35rem; margin-bottom: 0.75rem; }
.api-files p { color: rgba(255, 255, 255, 0.78); max-width: 60rem; }
.api-files .integrations-grid { margin-top: 1.25rem; }
.api-files .integration-pill { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #fff; }

/* the API */
.apimap { background: #060B16; border: 1px solid var(--ee-line-dark); border-radius: var(--ee-radius-lg); padding: 18px; }
.apimap img { width: 100%; height: auto; display: block; }
.apinotes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 22px; }
.apinotes p { color: rgba(255, 255, 255, 0.78); font-size: 1rem; margin: 0; }

@media (max-width: 991px) {
    .stage { grid-template-columns: 1fr; }
    .readout { grid-template-columns: 1fr 1fr; }
    .readout table.breakdown { grid-column: 1 / -1; }
    .readout .controls { grid-column: 1 / -1; align-items: flex-start; }
    .mpanel.open { grid-template-columns: 1fr; }
    .mpanel .shot { border-right: 0; border-bottom: 1px solid var(--ee-border); }
    .mpanel .shot img { min-height: 0; }
    .apimap { overflow-x: auto; }
    .apimap img { min-width: 860px; }
    .apinotes { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
    .readout { grid-template-columns: 1fr; }
    .readout .badge { justify-self: start; }
    .mpanel dl { grid-template-columns: 1fr; gap: 2px 0; }
    .mpanel dd { margin-bottom: 8px; }
}
