/* The Team suite (suite.html) and the Scene (scene.html): the pages beside the home page.
   Built on style.css's variables; the map itself is styled by map.css. */

.nav nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
[hidden] { display: none !important; }      /* even where a rule sets display */

/* -- suite -------------------------------------------------------------------------------- */
.suite section { padding-top: 32px; padding-bottom: 24px; }
.suite-head { padding-top: 56px !important; }
.suite-head h1 em { font-style: normal; color: var(--accent); }
.suite-connect { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.connect-card h2, .share-card h2 { font-size: 1.15rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select {
  font: inherit; padding: 9px 12px; border-radius: 8px; width: 100%;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.why { margin: -4px 0 14px; color: var(--muted); font-size: .9rem; }
.why summary { cursor: pointer; color: var(--text); }
.connect-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-error { color: var(--block); margin: 12px 0 0; }
.share-card p { margin: 0 0 10px; }
.cmd {
  background: var(--code-bg); color: var(--code-text); padding: 10px 14px; border-radius: 8px;
  margin: 0 0 10px; overflow-x: auto;
}
.t-prompt { color: var(--accent); margin-right: 6px; }

.live-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.live-bar h2 { margin: 0; }
.live-bar h2 a { color: var(--text); text-decoration: none; }
.live-meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.small-button { padding: 5px 12px; font-size: .88rem; }

.tabs { display: flex; gap: 4px; margin: 18px 0 16px; border-bottom: 1px solid var(--border); }
.tabs [role="tab"] {
  font: inherit; font-weight: 600; background: none; border: 0; color: var(--muted); cursor: pointer;
  padding: 8px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent); }

.summary-card { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.summary-card.is-block { border-color: color-mix(in srgb, var(--block) 55%, var(--border)); }
.summary-card.is-review { border-color: color-mix(in srgb, var(--review) 55%, var(--border)); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 26px; }
.person-card { padding: 14px 16px; }
.person-card p { margin: 6px 0 0; }
.person-head { display: flex; align-items: center; gap: 8px; }
.person-head .verdict { margin-left: auto; }
.who-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 5px 0 2px;
  background: var(--who); vertical-align: 0;
}
.pairs { display: grid; gap: 10px; margin-bottom: 22px; }
.pair { padding: 12px 16px; }
.pair summary, .pair-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.pair-row { cursor: default; }
.pair summary::-webkit-details-marker { display: none; }
.pair.is-block { border-left: 4px solid var(--block); }
.pair.is-review { border-left: 4px solid var(--review); }
.pair-names { font-weight: 600; }
.findings { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.findings.card { padding: 14px 16px; margin-bottom: 16px; }
.finding-item { border-top: 1px solid var(--border); padding-top: 10px; overflow-wrap: anywhere; }
.finding-item:first-child { border-top: 0; padding-top: 0; }
.finding-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 2px; }
.sev { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.sev.critical, .sev.high { color: var(--block); }
.sev.medium { color: var(--review); }
.sev.low { color: var(--muted); }
.where { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.fix { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.overlap { margin-bottom: 22px; }
.overlap ul { margin: 8px 0; }
.map-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
.map-box.card { padding: 10px; overflow-x: auto; }
.pick { padding: 14px 16px; font-size: .95rem; position: sticky; top: 70px; }
.pick h4 { margin: 0 0 4px; overflow-wrap: anywhere; }
.pick p { margin: 4px 0; }
.empty { text-align: center; }
.you-pick { max-width: 320px; }

/* -- scene ------------------------------------------------------------------------------------- */
body.scene-page { background: var(--stage-bg); color: var(--stage-text); min-height: 100vh; }
.scene-page .nav { background: color-mix(in srgb, var(--stage-bg) 88%, transparent); border-bottom-color: var(--stage-border); }
.scene-page .brand, .scene-page .nav nav a[aria-current="page"] { color: var(--stage-text); }
.scene-page .nav nav a { color: var(--stage-muted); }
.scene-layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px; gap: 0;
  min-height: calc(100vh - 53px);
}
.scene-rail, .scene-side { padding: 18px 16px; border-color: var(--stage-border); overflow-y: auto; max-height: calc(100vh - 53px); position: sticky; top: 53px; }
.scene-rail { border-right: 1px solid var(--stage-border); }
.scene-side { border-left: 1px solid var(--stage-border); }
.scene-rail h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--stage-muted); margin: 18px 0 8px; }
.scene-rail h2:first-child { margin-top: 0; }
.scene-rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.scene-rail button {
  font: inherit; font-size: .92rem; text-align: left; width: 100%; padding: 7px 10px; border-radius: 8px;
  background: none; border: 0; color: var(--stage-text); cursor: pointer; display: flex; gap: 8px; align-items: center;
}
.scene-rail button:hover { background: var(--stage-surface); }
.scene-rail button[aria-pressed="true"] { background: var(--stage-surface); box-shadow: inset 3px 0 0 var(--accent); }
.scene-rail button:focus-visible { outline: 2px solid var(--accent); }
.scene-rail .verdict { font-size: .66rem; padding: 0 7px; margin-left: auto; }
.scene-rail .note { color: var(--stage-muted); font-size: .85rem; margin: 6px 10px; }
.scene-rail .note a { color: var(--accent); }
.scene-main { padding: 18px 20px; min-width: 0; margin: 0; max-width: none; }   /* not section's centring: a grid item with auto margins shrinks to its content */
.scene-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.scene-title h1 { font-size: 1.35rem; margin: 0 0 4px; }
.scene-title p { margin: 0; color: var(--stage-muted); }
.views { display: inline-flex; border: 1px solid var(--stage-border); border-radius: 999px; overflow: hidden; }
.views button { font: inherit; font-size: .85rem; padding: 4px 14px; background: none; border: 0; color: var(--stage-muted); cursor: pointer; }
.views button[aria-pressed="true"] { background: var(--stage-surface); color: var(--stage-text); }
.views button[disabled] { cursor: not-allowed; opacity: .5; }
.scene-stage {
  margin-top: 14px; border: 1px solid var(--stage-border); border-radius: var(--radius);
  background: radial-gradient(120% 90% at 85% 0%, #17263a 0%, var(--stage-bg) 60%); padding: 12px; overflow-x: auto;
}
.scene-stage .map-box { --map-bg: #0b131e; --map-text: #dce4ee; --map-muted: #7d8b9c; --map-dot: #5d6d80; --map-edge: #52637a; }
.scene-stage .map-legend { color: var(--stage-muted); }
.scene-status { color: var(--stage-muted); margin: 10px 0 0; min-height: 1.4em; }
.scene-side h2 { font-size: 1rem; margin: 0 0 6px; overflow-wrap: anywhere; }
.scene-side p { margin: 6px 0; color: var(--stage-muted); font-size: .92rem; }
.scene-side .where { color: var(--stage-muted); }
.scene-side .finding-item { border-top-color: var(--stage-border); }
.scene-side .fix { color: var(--stage-muted); }

@media (max-width: 1000px) {
  .scene-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .scene-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--stage-border); position: static; max-height: none; }
}
@media (max-width: 860px) {
  .suite-connect, .map-wrap { grid-template-columns: 1fr; }
  .pick { position: static; }
}
@media (max-width: 680px) {
  .scene-layout { grid-template-columns: 1fr; }
  .scene-rail { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--stage-border); }
  .scene-main { padding: 14px 12px; }
}
