/* Plant scenes (allmarc-plant-scene.js): onshore and offshore, full range. */
.amk-p3d { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
.amk-p3d__stage { position: relative; height: clamp(520px, 78vh, 860px); border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #8fb3d6, #eef1f2); }
.amk-p3d__stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.amk-p3d__stage canvas:active { cursor: grabbing; }
.amk-p3d__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.amk-p3d__lb { all: unset; position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 12px/1 var(--am-font, 'DM Sans', sans-serif); color: #17171b; background: rgba(255,255,255,.92);
  padding: 6px 10px 6px 18px; border-radius: 100px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.45); cursor: pointer; transition: opacity .25s ease, background .2s ease, color .2s ease; will-change: transform; }
.amk-p3d__lb::before { content: ""; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #e00910; }
.amk-p3d__lb::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: rgba(255,255,255,.9); }
.amk-p3d__lb.is-on { background: #e00910; color: #fff; opacity: 1 !important; z-index: 2; }
.amk-p3d__lb.is-on::before { background: #fff; }
.amk-p3d__bar { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.amk-p3d__tabs, .amk-p3d__tg { display: flex; gap: 4px; padding: 4px; border-radius: 100px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); pointer-events: auto; }
.amk-p3d__tabs button, .amk-p3d__tg button { all: unset; cursor: pointer; padding: 8px 16px; border-radius: 100px; font: 500 13px/1 var(--am-font, 'DM Sans', sans-serif); color: #17171b; }
.amk-p3d__tabs button[aria-selected="true"] { background: #17171b; color: #fff; }
.amk-p3d__tg button { font-size: 12px; padding: 8px 12px; color: #8b8e94; }
.amk-p3d__tg button[aria-pressed="true"] { color: #17171b; }
.amk-p3d__tg button[aria-pressed="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e00910; margin-right: 6px; vertical-align: 1px; }
.amk-p3d__legend { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 14px; padding: 9px 14px; border-radius: 100px; background: rgba(255,255,255,.88); font: 12px/1 var(--am-font, 'DM Sans', sans-serif); color: #17171b; }
.amk-p3d__legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: 2px; }
.amk-p3d__card { position: absolute; right: 16px; bottom: 16px; width: min(300px, calc(100% - 32px)); padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -20px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 6px; }
.amk-p3d__card[hidden] { display: none; }
.amk-p3d__cat { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: #8b8e94; }
.amk-p3d__card b { font-size: 18px; font-weight: 500; }
.amk-p3d__load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #17171b; background: rgba(238,241,242,.6); }
.amk-p3d__load[hidden] { display: none; }
.amk-p3d__bar2 { width: 180px; height: 3px; border-radius: 2px; background: rgba(0,0,0,.12); overflow: hidden; }
.amk-p3d__bar2 i { display: block; height: 100%; width: 0; background: #e00910; transition: width .2s ease; }
.amk-p3d__hint { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); margin: 0; font-size: 12px; color: rgba(23,23,27,.7); pointer-events: none; white-space: nowrap; }
.amk-p3d__list { background: #fff; border-radius: 22px; padding: 18px 16px; max-height: clamp(520px, 78vh, 860px); overflow: auto; }
.amk-p3d__list .amk-label { display: block; margin-bottom: 10px; }
.amk-p3d__g { margin: 0 0 12px; }
.amk-p3d__g b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8b8e94; font-weight: 500; margin: 0 0 4px; }
.amk-p3d__g ul { list-style: none; margin: 0; padding: 0; }
.amk-p3d__g li { margin: 0; padding: 0; }
.amk-p3d__g li::before { display: none; }
.amk-p3d__g button { all: unset; cursor: pointer; display: block; font-size: 13.5px; line-height: 1.35; padding: 4px 8px; border-radius: 8px; color: #17171b; }
.amk-p3d__g button:hover, .amk-p3d__g button:focus-visible { background: #f3f3f4; color: #e00910; }
@media (max-width: 1000px) { .amk-p3d { grid-template-columns: 1fr; } .amk-p3d__list { max-height: 320px; } .amk-p3d__hint { display: none; } }
@media (max-width: 600px) { .amk-p3d__legend { display: none; } .amk-p3d__tg button { padding: 8px 9px; } }

.amk-p3d__zoom { position: absolute; right: 16px; top: 72px; display: flex; flex-direction: column; gap: 4px; }
.amk-p3d__zoom button { all: unset; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.92); font: 500 20px/1 var(--am-font, 'DM Sans', sans-serif); color: #17171b; box-shadow: 0 6px 16px -10px rgba(0,0,0,.5); }
.amk-p3d__zoom button:hover { background: #17171b; color: #fff; }
.amk-p3d__tip { position: absolute; left: 0; top: 0; width: 310px; pointer-events: none; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.amk-p3d__tip[hidden] { display: none; }
.amk-p3d__tip b { font-size: 16px; font-weight: 500; line-height: 1.25; }
.amk-p3d__tip p { margin: 0 0 6px; font-size: 13px; color: #5b5f66; }
.amk-p3d__how span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8b8e94; margin-bottom: 4px; }
.amk-p3d__how .amk-p3d__done { color: #1f8a4c; }
.amk-p3d__how em { font-style: normal; font-size: 13px; line-height: 1.4; display: block; }
.amk-p3d__how ul { list-style: none; margin: 0; padding: 0; }
.amk-p3d__how li { font-size: 12.5px; line-height: 1.4; padding-left: 12px; position: relative; margin: 0 0 2px; }
.amk-p3d__how li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: #e00910; }
.amk-p3d__tip small { font-size: 11px; color: #8b8e94; margin-top: 6px; }

/* Land-only scenes (renewables park): no flows, sea or flare effects. */
.amk-p3d[data-land] [data-t="flow"], .amk-p3d[data-land] [data-t="under"], .amk-p3d[data-land] [data-t="fx"], .amk-p3d[data-land] .amk-p3d__legend { display: none !important; }
