/* Hallmark · custom sapphire studio · surface: absolute · component: D100 architecture · signature: a four-group near-memory centre inside a PE ring. */
/* Critique: the source diagram's counts stay explicit; the silicon hierarchy uses silver edges, readable labels and sapphire paths. */
/* Hallmark · waive 7b · User explicitly requested white and sapphire · White logical modules retain contrast on an ice-blue substrate. */
:root { --d100-paper: #f5f7ff; --d100-white: #ffffff; --d100-silver: #c6d6ff; --d100-line: #9fb8ff; --d100-blue: #215bef; --d100-deep: #1645b8; --d100-text: #102c77; --d100-muted: #3157a6; --d100-soft: #e5ecff; --d100-grid: #dbe5ff; --d100-clear: transparent; }
body[data-page="architecture"] .architecture-hero { grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 48px; padding-block: 64px 112px; }
body[data-page="architecture"] .architecture-hero .lab-copy h1 { font-size: clamp(32px,4vw,52px); line-height: 1.12; text-wrap: balance; }
.d100-intro-label { display: block; margin-bottom: 20px; color: var(--d100-blue); font-size: 14px; font-weight: 500; }
.d100-intro-note { max-width: 40ch; margin-top: 24px; color: var(--d100-muted); font-size: 13px; line-height: 1.8; }
.d100-blueprint { min-width: 0; width: 100%; margin: 0; padding: 24px; border: 1px solid var(--d100-line); border-radius: 12px; color: var(--d100-text); background: var(--d100-white); box-shadow: 8px 8px 0 var(--d100-silver); scroll-margin-top: 112px; isolation: isolate; }
.d100-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.d100-heading h2 { margin: 0; color: var(--d100-text); font-size: 24px; line-height: 1.4; font-weight: 500; text-wrap: balance; }
.d100-heading p { margin: 8px 0 0; color: var(--d100-muted); font-size: 12px; line-height: 1.6; }
.d100-choices { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 20px; }
.d100-choice { min-width: 0; min-height: 44px; padding: 8px 4px; border: 1px solid var(--d100-line); border-radius: 4px; background: var(--d100-white); color: var(--d100-muted); font: 500 12px/1.5 var(--font-body, sans-serif); cursor: pointer; }
.d100-choice[aria-pressed="true"] { color: var(--d100-white); border-color: var(--d100-blue); background: var(--d100-blue); }
.d100-blueprint button:focus-visible { outline: 3px solid var(--d100-blue); outline-offset: 4px; }
.d100-blueprint button:hover { border-color: var(--d100-blue); }
.d100-blueprint button:active { box-shadow: inset 0 0 0 2px var(--d100-deep); }
.d100-map { position: relative; display: grid; grid-template-columns: 52px repeat(4,minmax(0,1fr)) 52px; grid-template-rows: 32px repeat(4,56px) 32px 48px; gap: 12px; padding: 16px; border: 1px solid var(--d100-line); border-bottom: 4px solid var(--d100-line); border-radius: 8px; background-color: var(--d100-paper); background-image: linear-gradient(var(--d100-grid) 1px,var(--d100-clear) 1px),linear-gradient(90deg,var(--d100-grid) 1px,var(--d100-clear) 1px); background-size: 24px 24px; }
.d100-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; gap: 0; border: 1px solid var(--d100-line); border-bottom: 4px solid var(--d100-line); border-radius: 4px; background: var(--d100-white); color: var(--d100-text); text-align: center; }
.d100-node strong { font-size: 13px; font-weight: 500; line-height: 1.3; }
.d100-node small { font-size: 10px; line-height: 1.3; color: var(--d100-muted); }
.d100-node[data-d100-kind="pe"] { background: var(--d100-soft); }
.d100-node[data-d100-kind="memory"] { background: var(--d100-silver); border-color: var(--d100-line); }
.d100-node[data-d100-kind="memory"] strong { color: var(--d100-deep); }
.d100-node[data-d100-kind="capacity"] strong { font-size: 10px; }
.d100-node[data-d100-kind="capacity"] small { font-size: 12px; }
.d100-node[data-d100-kind="expansion"] strong { font-size: 11px; }
.d100-node.is-active { border-color: var(--d100-blue); box-shadow: 0 0 0 1px var(--d100-silver); }
.d100-node[data-d100-kind="memory"].is-active { color: var(--d100-white); border-color: var(--d100-deep); background: var(--d100-blue); }
.d100-node[data-d100-kind="memory"].is-active :is(strong,small) { color: var(--d100-white); }
.d100-map-label { grid-column: 1 / 5; grid-row: 7; display: flex; align-items: center; gap: 12px; color: var(--d100-muted); font-size: 11px; }
.d100-map-label b { font-size: 16px; font-weight: 500; color: var(--d100-blue); }
.d100-host { grid-column: 5 / 7; grid-row: 7; }
.d100-routes { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.d100-route { fill: none; stroke: var(--d100-line); stroke-width: 1.25; vector-effect: non-scaling-stroke; opacity: .6; }
.d100-route.is-active { stroke: var(--d100-blue); opacity: 1; }
.d100-packet { fill: var(--d100-blue); stroke: var(--d100-white); stroke-width: 1; opacity: 0; }
.d100-route.is-active { stroke-width:2; }
.d100-compute-pixels { position:absolute; display:flex; gap:3px; left:22%; right:22%; bottom:4px; height:3px; }
.d100-compute-pixels i { flex:1; background:#1744c4; }
.d100-caption { padding-top: 20px; }
.d100-caption strong { display: block; color: var(--d100-deep); font-size: 17px; line-height: 1.5; font-weight: 500; }
.d100-caption p { margin: 8px 0 0; color: var(--d100-muted); font-size: 13px; line-height: 1.75; }
.d100-source { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--d100-line); color: var(--d100-muted); font-size: 11px; line-height: 1.7; }
.d100-sr { position: absolute; width: 1px; height: 1px; overflow: clip; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) { body[data-page="architecture"] .architecture-hero { grid-template-columns: minmax(0,1fr); gap: 40px; } .d100-blueprint { max-width: 760px; justify-self: center; } }
@media (max-width: 660px) {
  body[data-page="architecture"] .architecture-hero { padding-top: 40px; gap: 32px; }
  .d100-blueprint { padding: 16px 12px; box-shadow: 4px 4px 0 var(--d100-silver); }
  .d100-heading { gap: 12px; }
  .d100-heading h2 { font-size: 20px; }
  .d100-choices { gap: 4px; }
  .d100-choice { font-size: 11px; }
  .d100-map { grid-template-columns: 36px repeat(4,minmax(0,1fr)) 36px; grid-template-rows: 32px repeat(4,48px) 32px 48px; gap: 8px 4px; padding: 12px 8px; }
  .d100-node strong { font-size: 12px; }
  .d100-node small { font-size: 9px; }
  .d100-node[data-d100-kind="expansion"] strong { font-size: 10px; }
  .d100-node[data-d100-kind="capacity"] strong { font-size: 9px; }
  .d100-map-label { gap: 8px; font-size: 10px; }
  .d100-map-label b { font-size: 14px; }
  .d100-caption strong { font-size: 16px; }
}
