.document-main {
  max-width: 1100px;
  padding-top: 30px;
  padding-bottom: 45px;
}
.document-back {
  font-size: 0.75rem;
}
.document-heading {
  padding: 55px 0 35px;
}
.document-heading h1 {
  margin: 20px 0 25px;
}
.document-heading > p {
  max-width: 650px;
}
.document-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 35px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}
.document-meta dt {
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 5px;
}
.document-meta dd {
  font-size: 0.78rem;
  margin: 0;
  color: var(--muted);
}
.document-meta small {
  font-size: 0.65rem;
}
.document-main section {
  border-top: 1px solid var(--border);
  padding: 35px 0 20px;
}
.document-main section > h2 {
  margin: 17px 0 23px;
}
.document-main section > p {
  font-size: 0.85rem;
  line-height: 1.9;
}
.flow-map {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 30px;
  text-align: center;
  margin: 25px 0;
}
.flow-node {
  padding: 15px 22px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  font-size: 0.8rem;
  max-width: 400px;
  margin: auto;
}
.flow-node small {
  font-size: 0.65rem;
  color: var(--muted);
}
.flow-arrow {
  color: var(--gold);
  font-size: 0.7rem;
  padding: 10px;
}
.flow-children {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.flow-children .flow-node {
  width: 100%;
  font-size: 0.72rem;
}
.wireframes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}
.wireframe {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}
.wireframe h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.wf-bar,
.wf-field,
.wf-title,
.wf-action,
.wf-product {
  border: 1px solid var(--border);
  font-size: 0.6rem;
  padding: 10px;
  margin-bottom: 9px;
  text-align: center;
  border-radius: 2px;
}
.wf-bar {
  color: var(--gold);
  font-size: 0.52rem;
}
.wf-title {
  font-family: "Playfair Display", serif;
  font-size: 0.9rem;
  padding: 20px 8px;
}
.wf-product {
  padding: 24px 6px;
  color: var(--gold);
}
.wf-action {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}
.wireframe p {
  font-size: 0.64rem;
  margin-top: 15px;
  margin-bottom: 0;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.swatches span {
  display: block;
  height: 100px;
  background: var(--swatch);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.swatches strong {
  font-size: 0.7rem;
  display: block;
  margin-top: 10px;
  font-weight: 500;
}
.swatches small {
  font-size: 0.65rem;
  color: var(--muted);
}
.planning-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  margin: 20px 0 25px;
}
.planning-table th,
.planning-table td {
  border: 1px solid var(--border);
  padding: 14px 16px;
}
.planning-table th {
  background: var(--card);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.planning-table td {
  color: var(--muted);
}
.planning-table td:first-child {
  color: var(--text);
  width: 19%;
}
.delivery-dates {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.delivery-dates p {
  font-size: 0.72rem;
}
.delivery-dates strong {
  color: var(--gold);
  font-weight: 500;
}
.requirements td:first-child {
  width: 30%;
}
.presentation-list {
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 2;
}
.document-footer {
  border-top: 1px solid var(--border);
  font-size: 0.65rem;
  color: var(--muted);
  padding-top: 25px;
  margin-top: 25px;
}
@media (max-width: 650px) {
  .document-heading {
    padding-top: 35px;
  }
  .document-heading h1 {
    font-size: 2.4rem;
  }
  .document-meta {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .flow-map {
    padding: 20px 12px;
  }
  .flow-children {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .wireframes {
    grid-template-columns: 1fr;
  }
  .swatches {
    grid-template-columns: repeat(3, 1fr);
  }
  .swatches span {
    height: 70px;
  }
  .delivery-dates {
    display: block;
  }
  .planning-table {
    min-width: 600px;
  }
  .document-main section > h2 {
    font-size: 1.8rem;
  }
}
@media print {
  .document-main {
    max-width: none;
    padding: 0;
  }
  .document-back {
    display: none;
  }
  .document-heading {
    padding: 0 0 20px;
  }
  .document-heading h1 {
    font-size: 32pt;
  }
  .document-meta {
    background: #f5f5f5;
    border-color: #aaa;
  }
  .document-meta dt,
  .document-meta dd,
  .document-main .eyebrow,
  .flow-arrow {
    color: #222;
  }
  .document-main section {
    break-inside: auto;
    border-color: #aaa;
    padding-top: 24px;
  }
  .document-main h2,
  .document-main h3 {
    break-after: avoid;
  }
  .flow-map,
  .wireframes,
  .swatches,
  .delivery-dates {
    break-inside: avoid;
  }
  .flow-node,
  .wireframe {
    background: #fff;
    color: #111;
    border-color: #aaa;
  }
  .flow-node small,
  .wireframe p,
  .document-meta small,
  .swatches small,
  .presentation-list {
    color: #333;
  }
  .planning-table {
    font-size: 9pt;
  }
  .planning-table th,
  .planning-table td {
    border-color: #aaa;
    color: #222;
    background: #fff;
    padding: 8px;
  }
  .planning-table th {
    background: #eee;
  }
  .delivery-dates strong {
    color: #222;
  }
  .wf-action {
    background: #e6d4a5;
    color: #111;
  }
  .document-main a {
    color: #111;
  }
  .swatches span {
    height: 60px;
  }
  .document-main section > p {
    font-size: 10pt;
  }
  .document-footer {
    color: #555;
  }
}
