/* Scoped portfolio project selector */
#live .portfolio-project-selector{color:#171917;background:#EEECE4}
#live .portfolio-project-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #17191733;border-bottom:1px solid #17191733;gap:24px}
#live .portfolio-project-tabs button{font:500 15px "Inter Tight",sans-serif;display:flex;align-items:center;gap:12px;padding:23px 0;background:none;color:#565a54;border:0;border-bottom:3px solid transparent;cursor:pointer;text-align:left;min-height:64px}
#live .portfolio-project-tabs small{font:11px "Geist Mono",monospace;color:#989B95}
#live .portfolio-project-tabs button[aria-selected=true]{color:#171917;border-bottom-color:#F46545}
#live .portfolio-project-tabs button:is(:hover,:focus-visible){color:#171917}
#live .portfolio-project-tabs button:focus-visible{outline:2px solid #F46545;outline-offset:4px}
#live .portfolio-project-panel{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(32px,5vw,76px);padding:54px 0 12px;align-items:start;min-height:570px}
#live .portfolio-project-panel[hidden]{display:none!important}
#live .portfolio-project-meta{font:11px/1.7 "Geist Mono",monospace;letter-spacing:.07em;color:#646962;min-height:1.7em;margin:0 0 24px}
#live .portfolio-project-copy h3{font:600 clamp(38px,4.2vw,64px)/1.02 "Inter Tight",sans-serif;letter-spacing:-.045em;margin:0 0 28px;max-width:560px}
#live .portfolio-project-copy>p:not(.portfolio-project-meta){font:400 clamp(16px,1.4vw,19px)/1.55 "Inter Tight",sans-serif;max-width:540px;margin:0 0 16px}
#live .portfolio-project-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
#live .portfolio-project-links a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;border:1px solid #17191766;border-radius:5px;font:500 15px "Inter Tight",sans-serif;color:#171917;background:transparent;text-decoration:none}
#live .portfolio-project-links a::after{content:none!important}
#live .portfolio-project-links a:is(:hover,:focus-visible,:active){border-color:#F46545;background:#F465450a;color:#171917}
#live .portfolio-project-links a:focus-visible{outline:2px solid #F46545;outline-offset:4px}
#live .portfolio-project-visuals{display:grid;gap:18px;min-width:0}
#live .portfolio-project-visual{margin:0;min-width:0}
#live .portfolio-project-visual img{display:block;width:100%;height:auto;max-height:450px;object-fit:contain;border:1px solid #17191722}
#live .portfolio-project-visual figcaption{font:10px/1.5 "Geist Mono",monospace;color:#646962;margin-top:8px}
@media(max-width:700px){#live .portfolio-project-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}#live .portfolio-project-tabs button{font-size:14px;padding:17px 0;gap:8px;min-height:54px}#live .portfolio-project-panel{grid-template-columns:minmax(0,1fr);padding-top:30px;gap:30px;min-height:0}#live .portfolio-project-copy h3{font-size:40px;margin-bottom:22px}#live .portfolio-project-meta{font-size:11px;min-height:3.4em;margin-bottom:18px}#live .portfolio-project-links a{font-size:14px;padding:12px 14px}#live .portfolio-project-visual img{max-height:none}}

/* Give existing animated visuals 10–15% more desktop room, within the same two columns. */
@media(min-width:701px){#live :is(#project-panel-einsatzspur,#project-panel-community){grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(32px,2.5vw,40px)}}

/* Canonical screenshot pairs: same frame dimensions for Warnmeldungen and Tiermeldungen. */
#live .portfolio-project-screenshots .portfolio-project-visual img{width:100%;height:auto;aspect-ratio:1440/651;max-height:none;object-fit:contain;object-position:center;border:1px solid #17191722;border-radius:5px;background:#EEECE4}

/* One complete map per project, with its fullscreen control and attribution visible. */
#live .portfolio-project-map img{max-height:none;border-radius:5px}

/* Keep mobile tab labels readable in a single, horizontally scrollable row. */
@media(max-width:700px){
 #live .portfolio-project-tabs{display:flex;gap:22px;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}
 #live .portfolio-project-tabs button{flex:0 0 auto;white-space:nowrap}
}

#live .project-heading-accent{color:var(--signal-coral)}

/* Square map crops, with the existing markers kept in the focal area. */
#live .portfolio-project-map .portfolio-project-visual img{aspect-ratio:1;height:auto;width:100%;object-fit:cover;object-position:52% 50%}

#live .portfolio-project-map{width:100%;max-width:560px;justify-self:center}

/* Final, mobile-only tab spacing; keep the original active underline. */
@media(max-width:700px){
 #live .portfolio-project-tabs{gap:10px}
 #live .portfolio-project-tabs button{font-size:13.5px;gap:5px;padding-inline:0}
 #live .portfolio-project-tabs small{font-size:10px}
 #live #project-panel-community{gap:16px}
 #live #project-panel-community .project-community{padding-top:0}
}
/* Increase network presence without increasing the project section height. */
@media(min-width:701px){
 #live #project-panel-community .project-community{overflow:hidden}
 #live #project-panel-community .cluster-network{transform:scale(1.1);transform-origin:center}
}

/* Status indicators reuse the existing pipeline pulse. */
#live .portfolio-project-meta{display:flex;align-items:center;gap:10px}
#live .project-status{color:var(--signal-coral)}
#live .project-status svg{display:block;width:12px;height:12px}

/* Balance the project wordmark against the unchanged project name. */
#live .portfolio-project-copy h3 .project-brand{font-weight:500}

/* A shared status row: identical baseline, marker and headline spacing. */
#live .portfolio-project-copy>.portfolio-project-meta{display:flex;align-items:center;gap:10px;font:400 11px/1.7 "Geist Mono",monospace;letter-spacing:.07em;height:18.7px;min-height:18.7px;margin:0 0 24px;padding:0}
#live .portfolio-project-meta>.project-status{width:12px;height:12px;flex:0 0 12px;margin:0;align-self:center}
@media(max-width:700px){#live .portfolio-project-copy>.portfolio-project-meta{height:37.4px;min-height:37.4px;margin-bottom:18px}}
/* Seventy percent of each previous breakpoint scale, around the same centre. */
#live #project-panel-community .cluster-network{transform:scale(.7);transform-origin:center}
@media(min-width:701px){#live #project-panel-community .cluster-network{transform:scale(.77)}}

/* Shared panel row keeps the light section stable when switching projects. */
#live .portfolio-project-selector{display:grid;grid-template-columns:minmax(0,1fr)}
#live .portfolio-project-tabs{grid-area:1/1}
#live .portfolio-project-panel{grid-area:2/1}
#live .portfolio-project-panel[hidden]{display:grid!important;visibility:hidden;pointer-events:none}

/* One editorial geometry, measured from the existing content at each width. */
#live .portfolio-project-copy{width:100%;max-width:var(--project-copy-width,540px)}
#live .portfolio-project-copy h3{font-weight:500;min-height:var(--project-heading-height,2.04em)}
#live .portfolio-project-copy h3 .project-brand{font-weight:inherit}
#live .portfolio-project-body{min-height:var(--project-body-height,0px)}
#live .portfolio-project-body p{font:400 clamp(16px,1.4vw,19px)/1.55 "Inter Tight",sans-serif;margin:0 0 16px}
#live .portfolio-project-body p:last-child{margin-bottom:0}
#live .portfolio-project-links{min-height:var(--project-links-height,46px)}
#live .portfolio-project-copy{min-height:var(--project-copy-height,0px)}

@media(max-width:700px){#live #project-panel-community{gap:30px}}

@media(max-width:700px){#live .portfolio-project-panel{grid-template-rows:var(--project-copy-height,auto) auto;align-content:start}}
