.exam-blueprint {
  --xb-navy: var(--color-primary, #0b3158);
  --xb-navy-deep: #071e36;
  --xb-cyan: #42b4bd;
  --xb-gold: #e4ad3e;
  --xb-paper: var(--color-surface, #ffffff);
  --xb-soft: var(--color-bg-alt, #edf3f5);
  --xb-ink: var(--color-text, #132d43);
  --xb-muted: var(--color-text-muted, #5b6d7b);
  --xb-line: var(--color-border, #c9d6de);
  --xb-green: #157450;
  --xb-red: #a73640;
  margin: 2rem 0;
  border: 1px solid var(--xb-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--xb-paper);
  color: var(--xb-ink);
  box-shadow: 0 12px 28px rgba(5, 31, 55, .12);
  font-family: inherit;
}

.exam-blueprint * { box-sizing: border-box; }
.exam-blueprint a { color: inherit; }

.xb-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.4rem 1.5rem 1.25rem;
  color: #fff;
  background:
    linear-gradient(120deg, var(--xb-navy-deep) 0 72%, var(--xb-navy) 72%),
    var(--xb-navy);
  border-bottom: 5px solid var(--xb-gold);
}
.xb-eyebrow {
  margin: 0 0 .35rem;
  color: #a9e8eb;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.xb-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.05;
}
.xb-subtitle {
  margin: .45rem 0 0;
  max-width: 55rem;
  color: #d9e7ee;
  font-size: .95rem;
  line-height: 1.45;
}
.xb-code {
  align-self: start;
  min-width: 6.25rem;
  padding: .65rem .8rem;
  border: 2px solid var(--xb-gold);
  color: var(--xb-gold);
  text-align: center;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.xb-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, .75fr);
  gap: 1rem;
  padding: 1.1rem;
}
.xb-main,
.xb-side { display: grid; gap: .9rem; align-content: start; min-width: 0; }

.xb-panel {
  border: 1px solid var(--xb-line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--xb-paper);
}
.xb-panel-title {
  margin: 0;
  padding: .65rem .85rem;
  color: #fff;
  background: var(--xb-navy);
  font-size: 1rem;
  line-height: 1.2;
}
.xb-panel-content { padding: .75rem .85rem; }

.xb-dbq-list,
.xb-list,
.xb-link-list {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xb-dbq {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .65rem;
  align-items: center;
  padding: .65rem;
  border: 1px solid var(--xb-line);
  background: var(--xb-soft);
}
.xb-dbq-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--xb-green);
  font-weight: 900;
}
.xb-dbq[data-status="examiner_only"] .xb-dbq-mark { background: var(--xb-navy); }
.xb-dbq[data-status="unresolved"] .xb-dbq-mark { background: var(--xb-red); }
.xb-dbq-name { font-weight: 750; line-height: 1.25; }
.xb-dbq-status {
  color: var(--xb-muted);
  font-size: .72rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}
.xb-dbq a {
  display: inline-block;
  margin-top: .2rem;
  color: var(--xb-navy);
  font-size: .8rem;
  font-weight: 700;
}

.xb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.xb-card {
  min-width: 0;
  padding: .7rem .75rem;
  border-left: 5px solid var(--xb-cyan);
  background: var(--xb-soft);
}
.xb-card strong {
  display: block;
  margin-bottom: .22rem;
  color: var(--xb-navy);
  font-size: .86rem;
}
.xb-card span {
  color: var(--xb-muted);
  font-size: .82rem;
  line-height: 1.35;
}

.xb-list li {
  position: relative;
  padding: .18rem 0 .18rem 1.2rem;
  color: var(--xb-ink);
  font-size: .86rem;
  line-height: 1.4;
}
.xb-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62rem;
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--xb-cyan);
}

.xb-note {
  padding: .75rem .85rem;
  border-left: 6px solid var(--xb-gold);
  background: #fff3cf;
  color: #4a3b16;
  font-size: .82rem;
  line-height: 1.4;
}

.xb-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .65rem .75rem;
  border: 1px solid var(--xb-line);
  border-radius: 7px;
  color: var(--xb-navy);
  background: var(--xb-soft);
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}
.xb-link-list a::after { content: "\2192"; color: var(--xb-gold); font-size: 1.1rem; }
.xb-link-list a:hover,
.xb-link-list a:focus-visible { outline: 3px solid color-mix(in srgb, var(--xb-cyan) 38%, transparent); }

.xb-empty {
  margin: 0;
  color: var(--xb-muted);
  font-size: .84rem;
  font-style: italic;
}

.xb-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.1rem;
  color: #dce8ee;
  background: var(--xb-navy-deep);
  font-size: .72rem;
  line-height: 1.35;
}
.xb-footer strong { color: var(--xb-gold); }

@media (max-width: 760px) {
  .xb-header { grid-template-columns: 1fr; }
  .xb-code { justify-self: start; }
  .xb-body { grid-template-columns: minmax(0, 1fr); }
  .xb-grid { grid-template-columns: minmax(0, 1fr); }
  .xb-dbq { grid-template-columns: auto minmax(0, 1fr); }
  .xb-dbq-status { grid-column: 2; text-align: left; }
  .xb-footer { flex-direction: column; }
}

@media print {
  .exam-blueprint { box-shadow: none; break-inside: avoid; }
}

