body {
  background: #eef1ed;
  color: #202522;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.brief-page {
  width: var(--grid-container);
  margin: 0 auto;
  padding: var(--space-4) 0 var(--space-6);
}

.masthead,
.hero-panel,
.stats-row,
.content-mix {
  display: grid;
  grid-template-columns: var(--grid-template);
  column-gap: var(--grid-gutter);
}

.masthead {
  align-items: end;
  margin-bottom: var(--space-3);
  padding: var(--space-4);
  background: #ffffff;
  border: 1px solid #d8ddd7;
}

.eyebrow,
.label {
  margin: 0 0 var(--space-1);
  color: #657168;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.masthead .eyebrow,
h1,
.summary {
  grid-column: 1 / span 7;
}

h1 {
  margin-bottom: var(--space-2);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.94;
}

.summary {
  margin-bottom: 0;
  color: #465149;
  font-size: 19px;
  max-width: var(--layout-content-width);
}

.meta-row {
  grid-column: 9 / -1;
  grid-row: 1 / span 3;
  align-self: stretch;
  display: grid;
  gap: var(--space-1);
  color: #58615a;
  font-size: 13px;
}

.meta-row span {
  display: flex;
  align-items: center;
  min-height: var(--grid-field);
  padding: var(--space-1) var(--space-2);
  background: #eef1ed;
  border-left: 4px solid #c8d0c7;
}

/* Intentional climactic break: priority work gets the only full-width emphasis field. */
.hero-panel {
  align-items: stretch;
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  background: #243a35;
  border: 1px solid #243a35;
}

.hero-copy,
.risk-card,
.budget-card,
.map-panel,
.timeline-card,
.decision-card,
.stat-card,
.workstream {
  background: #ffffff;
  border: 1px solid #d5dbd4;
}

.hero-copy {
  grid-column: 1 / span 8;
  padding: var(--space-4);
  border-color: transparent;
}

.hero-copy .label {
  color: #547064;
}

.hero-copy h2 {
  max-width: var(--layout-content-width);
  margin-bottom: var(--space-2);
  font-size: 39px;
  line-height: 1.02;
}

.hero-copy p:last-child {
  max-width: var(--layout-content-width);
  margin-bottom: 0;
  color: #465149;
  font-size: 16px;
}

.risk-card {
  grid-column: 9 / -1;
  padding: var(--space-3);
  background: #f7f2e7;
  border-color: #d7c7a6;
}

.risk-card .label {
  color: #7a6030;
}

.risk-card strong,
.risk-card span {
  display: block;
}

.risk-card strong {
  margin-bottom: var(--space-2);
  font-size: 22px;
  line-height: 1.12;
}

.risk-card span {
  color: #514936;
}

.stats-row {
  row-gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.stat-card {
  grid-column: span 3;
  min-height: calc(var(--grid-field) * 1.5);
  padding: var(--space-2);
  background: #f8faf7;
}

.stat-value {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  display: block;
  color: #58635b;
}

.content-mix {
  align-items: start;
  row-gap: var(--space-3);
}

.workstream {
  grid-column: 1 / span 8;
  padding: var(--space-4);
}

.workstream h2,
.budget-card h2,
.map-panel h2,
.decision-card h2 {
  margin-bottom: var(--space-2);
  font-size: 27px;
  line-height: 1.08;
}

.workstream-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.workstream-list section {
  min-height: calc(var(--grid-field) * 1.75);
  padding-top: var(--space-2);
  border-top: 3px solid #dfe4dd;
}

.workstream-list h3 {
  margin-bottom: var(--space-1);
  font-size: 17px;
}

.workstream-list p {
  margin-bottom: 0;
  color: #4d5750;
}

.budget-card {
  grid-column: 9 / -1;
  padding: var(--space-3);
}

.budget-card p:last-child,
.map-panel p:last-child,
.decision-card p:last-child {
  margin-bottom: 0;
  color: #4d5750;
}

.map-panel {
  grid-column: 1 / span 5;
  padding: var(--space-3);
}

.map-sketch {
  position: relative;
  width: 100%;
  height: calc(var(--grid-field) * 3);
  margin-top: var(--space-3);
  background:
    linear-gradient(90deg, rgba(74, 107, 121, 0.18) 0 34%, transparent 34% 100%),
    linear-gradient(0deg, rgba(65, 102, 83, 0.16) 0 28%, transparent 28% 100%),
    #eef2ef;
  border: 1px solid #ccd5cf;
}

.zone {
  position: absolute;
  padding: 6px 9px;
  background: #ffffff;
  border: 1px solid #c1cac4;
  font-size: 12px;
  font-weight: 700;
}

.quay { left: 7%; top: 16%; }
.pier { right: 8%; top: 23%; }
.gate { left: 39%; bottom: 23%; }
.walk { right: 9%; bottom: 11%; }

.timeline-card {
  grid-column: 6 / span 4;
  padding: var(--space-3);
}

.timeline-card ol {
  margin: 0;
  padding-left: 21px;
}

.timeline-card li {
  margin-bottom: var(--space-2);
}

.timeline-card li:last-child {
  margin-bottom: 0;
}

.decision-card {
  grid-column: 10 / -1;
  padding: var(--space-3);
  background: #eaf1f3;
  border-color: #c4d2d7;
}

.decision-card .label {
  color: #47646d;
}

@media (max-width: 900px) {
  .brief-page {
    width: min(var(--grid-container), calc(100vw - (var(--space-2) * 2)));
    padding-top: var(--space-2);
  }

  .masthead,
  .hero-panel,
  .stats-row,
  .content-mix {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .masthead .eyebrow,
  h1,
  .summary,
  .meta-row,
  .hero-copy,
  .risk-card,
  .workstream,
  .budget-card,
  .map-panel,
  .timeline-card,
  .decision-card {
    grid-column: 1 / -1;
  }

  .meta-row {
    grid-row: auto;
    margin-top: var(--space-3);
  }

  .stat-card {
    grid-column: span 3;
  }
}

@media (max-width: 560px) {
  .brief-page {
    width: calc(100vw - (var(--space-2) * 2));
  }

  .masthead,
  .hero-panel {
    padding: var(--space-2);
  }

  .stats-row,
  .content-mix {
    display: block;
  }

  .stat-card,
  .workstream,
  .budget-card,
  .map-panel,
  .timeline-card,
  .decision-card {
    margin-bottom: var(--space-2);
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy,
  .risk-card,
  .workstream,
  .budget-card,
  .map-panel,
  .timeline-card,
  .decision-card {
    padding: var(--space-2);
  }

  .hero-copy h2 {
    font-size: 30px;
  }

  .workstream-list {
    display: block;
  }

  .workstream-list section {
    min-height: 0;
    margin-bottom: var(--space-2);
  }

  .workstream-list section:last-child {
    margin-bottom: 0;
  }

  .map-sketch {
    height: calc(var(--grid-field) * 2.75);
  }
}
