.map-page { background: #f7f4ee; }
.map-topbar .back-link { color: #fff; text-decoration: none; border: 1px solid #4b5870; border-radius: 9px; padding: 9px 12px; font-size: 13px; }
.map-shell { align-items: start; }.architecture-main { width: min(1500px, calc(100vw - 300px)); margin: 0 auto; padding: 34px 24px 70px; }
.map-intro { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 22px; }
.map-intro h1 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.04; }.map-intro > div:first-child > p:last-child { color: var(--muted); max-width: 760px; line-height: 1.55; }
.phase-filter { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }.phase-filter button { border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 9px; padding: 9px 12px; font-size: 12px; font-weight: 700; }.phase-filter button.active { color: white; border-color: var(--navy); background: var(--navy); }
.service-map-shell { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; margin-bottom: 28px; }
.service-map-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 18px; }.service-map-heading h2, .path-heading h2 { margin: 2px 0 0; font-size: 27px; }.service-map-heading > p { max-width: 520px; color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.service-map { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; align-items:start; min-width:0; }.service-map-shell { overflow-x:visible; }.service-actor { width:min(100%,560px); justify-self:center; }
.service-actor, .external-zone { border: 2px dashed #98a3b1; background: #f4f5f7; border-radius: 16px; padding: 16px; }.service-actor { display: flex; flex-direction: column; justify-content: center; min-height: 124px; }.service-actor b { color: var(--ink); font-size: 17px; margin: 8px 0 5px; }.service-actor small, .external-zone small { color: var(--muted); line-height: 1.4; }
.service-type, .service-card > span { display: block; color: #5e6a7c; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.service-arrow { color: var(--coral-dark); font-size: 30px; font-weight: 800; text-align: center; }
.aws-account-zone { position: relative; border: 2px dashed #d69a56; background: #fff9ef; border-radius: 18px; padding: 38px 18px 18px; }.zone-label { position: absolute; left: 18px; top: 12px; color: #94601e; font-size: 11px; font-weight: 850; letter-spacing: .09em; }
.primary-service-flow { display:grid; grid-template-columns:minmax(260px,560px); justify-content:center; gap:5px; align-items:stretch; }.primary-service-flow > i { color:#a65c48; font-size:22px; line-height:1; font-style:normal; text-align:center; }.primary-service-flow .service-card { min-height:94px; }
.service-card { min-width: 0; min-height: 116px; padding: 13px; border-radius: 13px; background: #fff; border: 1px solid #d8dde5; }.service-card h3 { color: var(--ink); font-size: 16px; line-height: 1.2; margin: 7px 0 5px; }.service-card p { color: #49566b; font-size: 12px; line-height: 1.42; margin: 0; }.service-card small { display: block; margin-top: 8px; color: #687488; font-size: 11px; line-height: 1.35; }.aws-service { border-color: #e0a24c; background: #fffcf4; }.aws-service > span { color: #9a6219; }.app-service { border-color: #9484bd; background: #faf8ff; }.app-service > span { color: #6e5b9c; }.important-service { box-shadow: inset 0 0 0 2px #d46e5d; }
.supporting-services { width:min(100%,560px); display:grid; grid-template-columns:minmax(0,1fr); gap:10px; margin:16px auto 0; }.supporting-services .service-card { min-height:104px; }
.telemetry-zone { margin-top: 12px; border-top: 1px solid #ead7b8; padding-top: 12px; }.telemetry-heading { display: flex; gap: 12px; align-items: baseline; margin-bottom: 9px; }.telemetry-heading b { color: #754a17; font-size: 13px; }.telemetry-heading span { color: var(--muted); font-size: 11px; }.telemetry-services { width:min(100%,560px); display:grid; grid-template-columns:minmax(0,1fr); gap:8px; margin:0 auto; }.telemetry-services article { background: #eef6f4; border: 1px solid #a9c9c3; border-radius: 10px; padding: 10px; }.telemetry-services b { display: block; color: #235f58; font-size: 12px; line-height: 1.25; }.telemetry-services span { display: block; color: #526b68; font-size: 10px; line-height: 1.35; margin-top: 4px; }
.external-zone { width:min(100%,560px); justify-self:center; display:grid; grid-template-columns:minmax(0,1fr); gap:8px; align-self:stretch; }.external-zone > .service-type { grid-column:1; }.external-zone > article { background:#fff; border:1px solid #d8dde5; border-radius:10px; padding:10px; }.external-zone b { display:block; color:var(--ink); font-size:13px; }.external-zone small { display:block; margin-top:3px; font-size:10px; }.service-map-note { color:var(--muted); font-size:12px; line-height:1.45; margin:14px 0 0; }.service-map-note b { color:var(--ink); }
.path-heading { margin: 0 0 14px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }.path-heading > div:first-child > p:last-child { color: var(--muted); font-size: 13px; margin: 6px 0 0; max-width: 760px; line-height: 1.5; }
.service-map [data-phases] { transition: opacity .2s ease, filter .2s ease, transform .2s ease; }.service-map [data-phases].architecture-dimmed { opacity: .22; filter: grayscale(.75); }.service-map [data-phases].architecture-active { transform: translateY(-2px); }
.phase-context { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; padding: 14px 18px; margin-bottom: 12px; border-radius: 14px; background: #17233c; color: white; }.phase-context > span { align-self: stretch; display: grid; place-items: center; border-right: 1px solid #46526a; color: #ffb6a8; font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }.phase-context h3 { margin: 0 0 3px; font-size: 18px; }.phase-context p { margin: 0; color: #c5cedb; font-size: 12px; line-height: 1.4; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }.diagram-shell, .node-detail { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }.diagram-shell { overflow: hidden; }.diagram-toolbar { min-height: 50px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }.map-legend { display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 13px; }.map-legend span { display: inline-flex; align-items: center; gap: 6px; }.legend-dot { width: 10px; height: 10px; border-radius: 50%; }.legend-dot.compromised { background: #c84955; }.legend-dot.abused { background: #d99229; }.legend-dot.observed { background: #538b84; }.map-hint { color: var(--coral-dark); font-size: 13px; font-weight: 800; white-space: nowrap; }
.diagram-scroll { overflow-x: hidden; }.attack-diagram { display: block; width: 100%; min-width: 0; height: auto; background: linear-gradient(180deg,#fff 0%,#fbfaf7 100%); }
.legacy-diagram { display: none !important; }.attack-path-surface { padding: 18px; background: linear-gradient(180deg,#fff 0%,#fbfaf7 100%); min-height: 190px; }.path-group + .path-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }.path-group-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }.path-group-title b { color: var(--ink); font-size: 13px; }.path-group-title span { color: var(--muted); font-size: 11px; }.path-track { display:grid; gap:7px; padding:3px 2px 12px; }.path-row { width:min(100%,900px); display:flex; align-items:stretch; justify-content:center; gap:8px; margin:0 auto; }.path-row .path-node-button { flex:0 1 260px; }.path-node-button { width:100%; min-width:0; min-height:96px; display:flex; flex-direction:column; align-items:flex-start; border:2px solid #70a89f; border-radius:14px; padding:11px 12px; background:white; color:var(--ink); text-align:left; box-shadow:0 5px 12px rgba(18,32,56,.06); }.path-node-button.compromised { border-color: #d7626c; }.path-node-button.abused { border-color: #dfa34c; }.path-node-button:hover, .path-node-button:focus, .path-node-button.selected { box-shadow: 0 0 0 3px rgba(44,140,130,.18), 0 7px 16px rgba(18,32,56,.09); transform: translateY(-1px); }.path-boundary { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }.path-node-main { display: flex; gap: 8px; align-items: center; margin: 8px 0 4px; }.path-node-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 9px; background: #dff3ed; font-size: 10px; font-weight: 850; }.path-node-button.compromised .path-node-icon { background: #f8dfe2; }.path-node-button.abused .path-node-icon { background: #fff0cf; }.path-node-main b { font-size: 13px; line-height: 1.2; }.path-node-button small { color: var(--muted); font-size: 11px; line-height: 1.35; }.path-arrow { flex:0 0 32px; align-self:center; color:var(--coral-dark); font-size:24px; line-height:1; font-weight:850; text-align:center; }.path-arrow small { display:block; margin-top:2px; color:var(--muted); font-size:8px; line-height:1; font-weight:700; text-transform:uppercase; }.path-turn { width:min(100%,900px); min-height:34px; display:flex; align-items:center; justify-content:flex-end; gap:8px; margin:0 auto; padding-right:8%; color:var(--coral-dark); }.path-turn:before { content:""; width:min(22vw,170px); height:1px; background:linear-gradient(90deg,transparent,#d8a494); }.path-turn span { font-size:25px; line-height:1; }.path-turn small { color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }.branch-label { margin: 2px 0 8px; color: #775367; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }.all-paths .path-node-button { min-width:0; min-height:82px; }.all-paths .path-node-button small { display: none; }
.empty-map { display:grid; place-items:center; min-height:150px; margin:0; color:var(--muted); font-size:13px; text-align:center; }
.boundary { stroke-width: 2; stroke-dasharray: 9 7; }.identity-boundary { fill: #fff1e9; stroke: #df8c78; }.app-boundary { fill: #f4f0fb; stroke: #9484bd; }.aws-boundary { fill: #eef6f4; stroke: #71a399; }.external-boundary { fill: #f4f5f7; stroke: #98a3b1; }.boundary-label { fill: #586478; font: 800 13px Inter,system-ui,sans-serif; letter-spacing: 1.2px; }
.attack { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }.attack.p1 { stroke: #d46e5d; }.attack.p2 { stroke: #9b5bb4; }.attack.p3 { stroke: #267f75; }.two-way { stroke-dasharray: 8 6; }.step-label { font: 800 12px Inter,system-ui,sans-serif; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }.step-label.p1 { fill: #b85143; }.step-label.p2 { fill: #7f4598; }.step-label.p3 { fill: #1e6d65; }#arrow-p1 path { fill: #d46e5d; }#arrow-p2 path { fill: #9b5bb4; }#arrow-p3 path { fill: #267f75; }.reference-line { fill: none; stroke: #8aa39e; stroke-width: 2; stroke-dasharray: 3 5; }.reference-label { fill: #60736f; font: 700 11px Inter,system-ui,sans-serif; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.node { cursor: pointer; filter: url(#softShadow); transition: opacity .18s ease, filter .18s ease; }.node > rect { fill: #fff; stroke-width: 2; transition: stroke-width .15s ease; }.node > circle { stroke: none; }.node.compromised > rect { stroke: #d7626c; }.node.compromised > circle { fill: #f8dfe2; }.node.abused > rect { stroke: #dfa34c; }.node.abused > circle { fill: #fff0cf; }.node.observed > rect { stroke: #70a89f; }.node.observed > circle { fill: #dff3ed; }.node:hover, .node:focus { outline: none; filter: url(#softShadow) brightness(.97); }.node:hover > rect, .node:focus > rect, .node.selected > rect { stroke-width: 4; }.node-title { fill: #18243a; font: 800 14px Inter,system-ui,sans-serif; }.node-sub { fill: #647084; font: 12px Inter,system-ui,sans-serif; }.node-icon { fill: #25334c; font: 800 10px Inter,system-ui,sans-serif; text-anchor: middle; }.attack-diagram [data-phases].is-dimmed { opacity: .08; }.attack-diagram .node.is-dimmed { opacity: .18; filter: none; }
.node-detail { position: static; padding: 22px; min-height: 0; }.detail-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }.status-chip { border-radius: 100px; padding: 5px 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }.status-chip.compromised { background: #f8dfe2; color: #932d38; }.status-chip.abused { background: #fff0cf; color: #8d5c0e; }.status-chip.observed { background: #dff3ed; color: #17655b; }.node-detail h2 { margin: 17px 0 8px; font-size: 25px; }.node-detail > p { color: var(--muted); font-size: 14px; line-height: 1.55; }.node-facts { margin: 20px 0 0; display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 12px 18px; }.node-facts dt { color: var(--coral-dark); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; margin: 0; }.node-facts dd { margin: 0; color: #36435a; font-size: 13px; line-height: 1.5; }.detail-question { background: #eef5f3; border-radius: 11px; padding: 13px; margin-top: 19px; }.detail-question small { color: #35746b; text-transform: uppercase; font-size: 10px; font-weight: 850; letter-spacing: .08em; }.detail-question p { margin: 5px 0 0; font-size: 13px; line-height: 1.45; }
.trust-key { margin-top: 14px; display: flex; gap: 12px; padding: 15px 18px; border: 1px dashed #ad998d; border-radius: 12px; color: var(--muted); font-size: 12px; }.trust-key b { color: var(--ink); white-space: nowrap; }
.service-map-heading > p { font-size:14px; }.service-type,.service-card>span { font-size:11px; }.service-card p { font-size:14px; line-height:1.48; }.service-card small { font-size:12px; }.telemetry-heading b { font-size:14px; }.telemetry-heading span { font-size:12px; }.telemetry-services b { font-size:13px; }.telemetry-services span { font-size:12px; }.external-zone b { font-size:14px; }.external-zone small { font-size:12px; }.service-map-note { font-size:14px; }.phase-context>span { font-size:14px; }.phase-context h3 { font-size:20px; }.phase-context p { font-size:14px; }.map-legend { font-size:14px; }.map-hint { font-size:14px; }.path-group-title b { font-size:15px; }.path-group-title span { font-size:13px; line-height:1.4; }.branch-label { font-size:12px; }.path-boundary { font-size:11px; line-height:1.25; }.path-node-main b { font-size:15px; }.path-node-button small { font-size:13px; line-height:1.42; }.path-arrow small { font-size:10px; }.path-turn small { font-size:10px; }.detail-top { font-size:13px; }.node-detail>p { font-size:15px; }.node-facts dt { font-size:12px; }.node-facts dd { font-size:14px; }.detail-question small { font-size:11px; }.detail-question p { font-size:14px; }.trust-key { font-size:14px; line-height:1.45; }
.map-intro>div:first-child>p:last-child { font-size:15px; }.path-heading>div:first-child>p:last-child { font-size:14px; }.phase-filter button { font-size:13px; }.service-actor small { font-size:13px; }.zone-label { font-size:12px; }.node-detail h2 { font-size:27px; }
@media (max-width: 1050px) { .architecture-main { width: 100%; padding-left: 16px; padding-right: 16px; }.map-intro, .service-map-heading, .path-heading { align-items: flex-start; flex-direction: column; }.phase-filter { justify-content: flex-start; }.trust-key { flex-direction: column; }.trust-key b { white-space: normal; }.node-facts { grid-template-columns: 1fr; gap: 4px; }.node-facts dd { margin-bottom: 12px; }}
@media (max-width: 620px) { .supporting-services,.external-zone { grid-template-columns:1fr; }.external-zone > .service-type { grid-column:1; } }
@media (max-width: 700px) { .map-topbar { grid-template-columns: 1fr auto; }.map-topbar .case-meta { display: none; }.map-topbar .back-link { font-size: 11px; padding: 8px; }.diagram-toolbar { align-items: flex-start; flex-direction: column; }.map-hint { display: none; }.phase-filter button { min-height: 42px; }.architecture-main { padding-top: 24px; }.phase-context { grid-template-columns: 1fr; }.phase-context > span { place-items: start; border-right: 0; border-bottom: 1px solid #46526a; padding-bottom: 8px; }.attack-path-surface { padding: 12px; }.path-track { grid-template-columns:minmax(0,1fr); }}
@media print { .map-topbar, .phase-filter, .node-detail { display: none !important; }.architecture-main { width: 100%; }.map-layout { display: block; }.diagram-shell { box-shadow: none; }.attack-diagram { min-width: 0; }.trust-key { border: 1px solid #aaa; }}
@media (max-width:700px) { .path-row { gap:4px; }.path-row .path-node-button { flex:1 1 0; min-height:82px; padding:8px; }.path-arrow { flex-basis:18px; font-size:18px; }.path-arrow small,.path-boundary,.path-node-button>small { display:none; }.path-node-main { gap:5px; margin:2px 0; }.path-node-icon { width:27px; height:27px; flex-basis:27px; font-size:9px; }.path-node-main b { font-size:12px; overflow-wrap:anywhere; }.path-turn { min-height:29px; padding-right:3%; }.path-turn:before { width:70px; }.path-turn span { font-size:22px; }.path-turn small { font-size:8px; }}
@media (max-width:420px) { .attack-path-surface { padding:10px 7px; }.path-row { gap:2px; }.path-row .path-node-button { padding:6px; border-radius:10px; }.path-arrow { flex-basis:13px; font-size:15px; }.path-node-main { align-items:flex-start; flex-direction:column; }.path-node-main b { font-size:11px; }.path-turn small { display:none; }}
.diagram-toolbar { flex-wrap:wrap; }.map-hint { white-space:normal; text-align:right; }

/* Compact system-diagram layout for the AWS service overview. */
.service-map { grid-template-columns:minmax(185px,225px) 38px minmax(0,1fr); grid-template-rows:auto 34px auto; gap:10px 8px; align-items:center; }
.service-map>.service-actor { grid-column:1; grid-row:1; width:100%; min-height:142px; padding:14px; }
.service-map>.service-entry-arrow { grid-column:2; grid-row:1; align-self:center; font-size:28px; }
.service-map>.aws-account-zone { grid-column:3; grid-row:1; min-width:0; }
.service-map>.service-external-arrow { grid-column:3; grid-row:2; align-self:center; font-size:25px; }
.service-map>.external-zone { grid-column:3; grid-row:3; width:100%; max-width:none; grid-template-columns:repeat(4,minmax(0,1fr)); padding:13px; }
.external-zone>.service-type { grid-column:1/-1; }
.primary-service-flow { grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1fr); gap:5px; align-items:stretch; }
.primary-service-flow>i { display:grid; place-items:center; transform:none; font-size:19px; }
.primary-service-flow .service-card { min-height:144px; }
.supporting-services { width:100%; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:12px; }
.supporting-label { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; color:#754a17; }.supporting-label b { font-size:14px; }.supporting-label span { color:var(--muted); font-size:12px; }
.supporting-services .service-card { min-height:132px; }
.telemetry-zone { margin-top:10px; padding-top:10px; }
.telemetry-services { width:100%; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; }
.service-card { padding:11px; overflow-wrap:anywhere; }
.service-card h3 { font-size:16px; }.service-card p { font-size:14px; }.service-card small { font-size:12px; }
.telemetry-services article { padding:9px; overflow-wrap:anywhere; }.telemetry-services b { font-size:13px; }.telemetry-services span { font-size:12px; }
.external-zone>article { min-width:0; min-height:82px; overflow-wrap:anywhere; }.external-zone b { font-size:14px; }.external-zone small { font-size:12px; }

@media (max-width:900px) {
  .service-map { grid-template-columns:minmax(0,1fr); grid-template-rows:auto 28px auto 28px auto; }
  .service-map>.service-actor { grid-column:1; grid-row:1; width:min(100%,360px); justify-self:center; min-height:112px; }
  .service-map>.service-entry-arrow { grid-column:1; grid-row:2; transform:rotate(90deg); }
  .service-map>.aws-account-zone { grid-column:1; grid-row:3; }
  .service-map>.service-external-arrow { grid-column:1; grid-row:4; }
  .service-map>.external-zone { grid-column:1; grid-row:5; }
}
@media (max-width:700px) {
  .primary-service-flow { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .primary-service-flow>i { display:none; }
  .primary-service-flow .service-card,.supporting-services .service-card { min-height:120px; }
  .supporting-services,.service-map>.external-zone { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .telemetry-services { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .external-zone>.service-type { grid-column:1/-1; }
}
@media (max-width:440px) {
  .primary-service-flow,.supporting-services,.telemetry-services,.service-map>.external-zone { grid-template-columns:minmax(0,1fr); }
  .external-zone>.service-type { grid-column:1; }
}
