/* Isolated example within Beyond the Prompt. Shared Garden geometry comes from the page. */
#brand-edition.hafenwerk-stage {
  --hafenwerk-line: var(--line, #c4c0b7);
  --purple: var(--blue, #6638f0);
  margin-inline: auto;
  margin-block: var(--dm-space-section, 64px);
  font: 400 var(--size-body, 1.125rem)/1.45 var(--sans, Arial, sans-serif);
  color: var(--ink, #181619);
}
#brand-edition :is(h2,h3,h4,p,figure,dl) { margin-block: 0; }
#brand-edition :is(h2,h3,h4) { font-family: var(--sans, Arial, sans-serif); font-weight: 500; }
#brand-edition p { max-inline-size: 62ch; }
#brand-edition .hafenwerk-intro {
  padding-block: 64px var(--dm-space-section, 64px);
}
#brand-edition .hafenwerk-label {
  font: 400 14px/1.5 var(--mono);
  margin-block-end: var(--dm-space-title-text, 16px);
}
#brand-edition .hafenwerk-intro h2 {
  font-size: clamp(42px, 7.25vw, 104px);
  line-height: .99;
  letter-spacing: -.055em;
  max-width: 16ch;
  margin-block-end: var(--dm-space-title-text, 16px);
}
#brand-edition .hafenwerk-intro h2 ~ p { max-width: 48ch; }
#brand-edition .hafenwerk-link {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  min-block-size: 44px;
  margin-block-start: var(--dm-space-text-action, 16px);
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
  font: 400 17px/24px var(--mono);
  letter-spacing: .3px;
}
#brand-edition .hafenwerk-link[hidden] { display: none; }
#brand-edition .hafenwerk-link:hover { color: var(--purple); }
#brand-edition .hafenwerk-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--dm-space-title-text, 16px);
  border-block-start: 1px solid var(--hafenwerk-line);
  padding-block: var(--dm-space-text-section, 32px) var(--dm-space-section, 64px);
}
#brand-edition .hafenwerk-section > h3 {
  grid-column: 1 / 4;
  font-size: clamp(25px, 3vw, 42px);
}
#brand-edition .hafenwerk-content { grid-column: 4 / -1; min-width: 0; }
#brand-edition .hafenwerk-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-block: var(--dm-space-text-action, 16px);
}
#brand-edition .hafenwerk-controls button {
  padding: 0 4px;
  border-block-end: 1px solid transparent;
  min-height: 44px;
  font: 400 15px/1.5 var(--mono);
}
#brand-edition .hafenwerk-controls button[aria-pressed="true"] { border-color: currentColor; }
#brand-edition .hafenwerk-controls button:hover { color: var(--purple); }
#brand-edition #bpt-hw-hafenwerk-document {
  container-type: inline-size;
  display: flex;
  justify-content: center;
  background: #eae7de;
  padding: clamp(8px, 2vw, 22px);
}
#brand-edition .specimen {
  display: grid;
  grid-template-columns: repeat(var(--specimen-columns), minmax(0, 1fr));
  gap: var(--specimen-gap);
  align-items: start;
  width: 100%;
  max-width: 680px;
  min-width: 0;
  aspect-ratio: var(--specimen-ratio);
  padding: var(--specimen-padding);
  color: var(--specimen-ink);
  background: var(--specimen-paper);
  font: var(--specimen-bodyWeight) var(--specimen-bodySize)/1.35 var(--specimen-font);
}
#brand-edition .specimen[data-layout="slide"] { max-width: none; }
#brand-edition .specimen[data-layout="onepager"] { max-width: 470px; }
#brand-edition .specimen[data-layout="social"] { max-width: 560px; }
#brand-edition .specimen__intro { grid-column: 1 / 6; }
#brand-edition .specimen__data { grid-column: 6 / -1; }
#brand-edition .specimen:not([data-layout="slide"]) :is(.specimen__intro, .specimen__data) { grid-column: 1 / -1; }
#brand-edition .specimen h4 {
  font-size: var(--specimen-headlineSize);
  font-weight: var(--specimen-headlineWeight);
  margin-block: .55em .35em;
}
#brand-edition .specimen__brand {
  display: flex;
  gap: .4em;
  align-items: center;
  font-weight: 500;
  color: var(--specimen-ink);
}
#brand-edition .specimen__mark { width: 1em; height: 1em; border-radius: 50% 50% 0 50%; background: var(--specimen-ink); }
#brand-edition .specimen__legend { display: flex; flex-wrap: wrap; gap: .3em 1em; list-style: none; padding: 0; margin: .7em 0; }
#brand-edition .specimen__legend li::before { content: ""; display: inline-block; width: .65em; height: .65em; margin-inline-end: .35em; background: var(--legend-color); }
#brand-edition .specimen__chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .4em; }
#brand-edition .specimen__column { display: grid; gap: .35em; text-align: center; }
#brand-edition .specimen__bar { display: flex; flex-direction: column-reverse; height: clamp(90px, 23cqi, 250px); border-block-end: 1px solid; }
#brand-edition .specimen__source { margin-top: .7em; font-size: .85em; }
#brand-edition .hafenwerk-chapters { display: flex; flex-wrap: wrap; column-gap: var(--gutter); }
#brand-edition .hafenwerk-showcase { grid-column: 1 / -1; min-width: 0; }
#brand-edition .hafenwerk-system {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: start;
  row-gap: var(--dm-space-title-text, 16px);
  margin-block-start: var(--dm-space-text-section, 32px);
}
#brand-edition .hafenwerk-system > h4 { grid-column: 1 / 4; }
#brand-edition .hafenwerk-system-content { grid-column: 4 / 10; min-width: 0; }
#brand-edition .hafenwerk-uses { margin-block-start: var(--dm-space-text-action, 16px); }
#brand-edition .hafenwerk-system-specimens {
  --specimen-ink: #173c3a;
  --specimen-paper: #f2ede2;
  --specimen-accent: #d66a3b;
  --specimen-muted: #a9c2b8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--dm-space-title-text, 16px) clamp(8px, 1.25vw, 18px);
  margin: 0 0 var(--dm-space-title-text, 16px);
  padding: clamp(12px, 1.7vw, 24px);
  list-style: none;
  color: var(--specimen-ink);
  background: var(--specimen-paper);
  font: 400 12px/1.35 var(--mono, monospace);
}
#brand-edition .hafenwerk-system-sample {
  display: flex;
  align-items: center;
  block-size: 34px;
  margin-block-end: 4px;
}
#brand-edition .hafenwerk-system-logo {
  gap: .35em;
  font: 500 clamp(15px, 1.4vw, 20px)/1 var(--sans, Helvetica, sans-serif);
  letter-spacing: -.035em;
}
#brand-edition .hafenwerk-system-mark {
  display: grid;
  place-items: center;
  inline-size: 1.1em;
  block-size: 1.1em;
  border-radius: 50% 50% 0 50%;
  background: var(--specimen-ink);
  color: var(--specimen-paper);
  font-size: .85em;
  letter-spacing: 0;
}
#brand-edition .hafenwerk-system-palette { gap: 3px; }
#brand-edition .hafenwerk-system-palette > span {
  flex: 0 1 19px;
  block-size: 20px;
}
#brand-edition .hafenwerk-system-palette > :nth-child(2) {
  box-shadow: inset 0 0 0 1px var(--specimen-ink);
}
#brand-edition .hafenwerk-system-palette > :first-child { background: var(--specimen-ink); }
#brand-edition .hafenwerk-system-palette > :nth-child(3) { background: var(--specimen-accent); }
#brand-edition .hafenwerk-system-palette > :last-child { background: var(--specimen-muted); }
#brand-edition .hafenwerk-system-type {
  gap: .45em;
  font: 400 22px/1 var(--sans, Helvetica, sans-serif);
}
#brand-edition .hafenwerk-system-type > b { font-weight: 500; }
#brand-edition .hafenwerk-system-grid {
  inline-size: min(100%, 64px);
  block-size: 22px;
  background: repeating-linear-gradient(90deg, var(--specimen-muted) 0 5%, transparent 5% calc(100% / 12));
  border-block: 1px solid var(--specimen-ink);
}
#brand-edition .hafenwerk-system-spacing {
  display: flex;
  justify-content: center;
  inline-size: 48px;
  block-size: 24px;
  border-inline: 1px solid var(--specimen-ink);
  background: linear-gradient(transparent calc(50% - .5px), var(--specimen-ink) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px));
}
#brand-edition .hafenwerk-system-spacing > span {
  inline-size: 12px;
  background: var(--specimen-accent);
}
#brand-edition .hafenwerk-system-sample .specimen__mark { font-size: 24px; }
#brand-edition .hafenwerk-system-chart {
  display: flex;
  align-items: end;
  gap: 3px;
  border-block-end: 1px solid var(--specimen-ink);
  padding-inline: 4px;
}
#brand-edition .hafenwerk-system-chart > span {
  inline-size: 8px;
  block-size: 16px;
  background: linear-gradient(to top, var(--specimen-accent) 35%, var(--specimen-muted) 35% 70%, var(--specimen-ink) 70%);
}
#brand-edition .hafenwerk-system-chart > :nth-child(2) { block-size: 22px; }
#brand-edition .hafenwerk-system-chart > :last-child { block-size: 28px; }
#brand-edition .hafenwerk-system-formats { gap: 4px; }
#brand-edition .hafenwerk-system-formats > span { border: 1px solid currentColor; }
#brand-edition .hafenwerk-system-formats > :first-child { inline-size: 28px; aspect-ratio: 16 / 9; }
#brand-edition .hafenwerk-system-formats > :nth-child(2) { inline-size: 18px; aspect-ratio: 210 / 297; }
#brand-edition .hafenwerk-system-formats > :last-child { inline-size: 20px; aspect-ratio: 1; }
@media (max-width: 768px) {
  #brand-edition .hafenwerk-system > h4,
  #brand-edition .hafenwerk-system-content { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  #brand-edition .hafenwerk-system-specimens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#brand-edition .hafenwerk-illustrations,
#brand-edition .hafenwerk-photography {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: var(--gutter);
  margin-block-start: var(--dm-space-text-action, 16px);
}
#brand-edition .hafenwerk-showcase > div > h4 {
  margin-block-end: var(--dm-space-title-text, 16px);
  font-size: clamp(18px, 2vw, 28px);
}
#brand-edition .hafenwerk-showcase figure { margin: 0; min-width: 0; }
#brand-edition .hafenwerk-showcase figure img { display: block; inline-size: 100%; block-size: auto; background: #f2ede2; }
#brand-edition .hafenwerk-showcase figcaption {
  margin-block-start: .4em;
  font: 400 clamp(12px, 1.2vw, 15px)/1.4 var(--mono);
}
#brand-edition .hafenwerk-illustration-grid,
#brand-edition .hafenwerk-photo-grid {
  display: grid;
  gap: var(--dm-space-text-action, 16px) var(--gutter);
}
#brand-edition .hafenwerk-illustration-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#brand-edition .hafenwerk-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#brand-edition .hafenwerk-photography .hafenwerk-reference img { max-inline-size: min(100%, 280px); }
#brand-edition .hafenwerk-steps { margin: 0; padding-inline-start: 1.4em; }
#brand-edition .hafenwerk-steps li { padding-inline-start: .45em; margin-block-end: var(--dm-space-title-text, 16px); }
#brand-edition .hafenwerk-steps li::marker { font-family: var(--mono); }
@media (max-width: 768px) {
#brand-edition .hafenwerk-intro { padding-block: 16px var(--dm-space-intro-section, 32px); }
#brand-edition .hafenwerk-section > h3,
#brand-edition .hafenwerk-content { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
#brand-edition .specimen :is(.specimen__intro, .specimen__data) { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
#brand-edition .hafenwerk-illustration-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
#brand-edition .hafenwerk-illustrations,
#brand-edition .hafenwerk-photography {
    grid-template-columns: 1fr;
    row-gap: var(--dm-space-intro-section, 32px);
  }
#brand-edition .hafenwerk-reference figure { max-inline-size: min(58vw, 230px); }
}
@media (max-width: 540px) {
#brand-edition .hafenwerk-illustration-grid,
#brand-edition .hafenwerk-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#brand-edition #bpt-hw-hafenwerk-document { display: block; background: transparent; padding: 0; }
#brand-edition .specimen-collection {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--gutter);
}
#brand-edition .specimen-example { min-width: 0; container-type: inline-size; }
#brand-edition .specimen-example .specimen {
  position: relative;
  width: 100%;
  max-width: none;
  box-shadow: inset 0 0 0 1px rgb(23 60 58 / 13%);
  font-size: clamp(12px, 3.3cqi, 18px);
}
#brand-edition .specimen__format-label {
  margin: 0 0 .65em;
  font: 400 clamp(11px, 1.3vw, 15px)/1.4 var(--mono);
}
#brand-edition .specimen h4 { line-height: 1; letter-spacing: -.035em; }
#brand-edition .specimen__brand { font-size: .9em; }
#brand-edition .specimen__source { opacity: .78; }
#brand-edition .specimen[data-layout="slide"] {
  align-content: center;
  align-items: center;
  gap: 14px;
  padding: clamp(14px, 5cqi, 38px);
}
#brand-edition .specimen[data-layout="slide"] .specimen__intro { grid-column: 1 / 6; }
#brand-edition .specimen[data-layout="slide"] .specimen__data { grid-column: 6 / -1; }
#brand-edition .specimen[data-layout="slide"] h4 { font-size: clamp(17px, 5.3cqi, 40px); }
#brand-edition .specimen[data-layout="slide"] .specimen__bar { height: clamp(45px, 19cqi, 135px); }
#brand-edition .specimen__column { min-width: 0; }
#brand-edition .specimen__column > span:last-child { font-size: clamp(9px, 2.6cqi, 13px); }
#brand-edition .specimen__legend { font-size: .8em; }
#brand-edition .specimen[data-layout="onepager"] {
  align-content: start;
  gap: clamp(10px, 4cqi, 20px);
  padding: clamp(15px, 7cqi, 28px);
  background: #fffdf7;
  border-top: 5px solid var(--specimen-accent);
}
#brand-edition .specimen[data-layout="onepager"] h4 { font-size: clamp(20px, 8cqi, 35px); }
#brand-edition .specimen[data-layout="onepager"] .specimen__bar { height: clamp(50px, 19cqi, 90px); }
#brand-edition .specimen__summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding-block: .7em;
  margin-block: .7em 0;
  border-block: 1px solid #a9c2b8;
}
#brand-edition .specimen__summary dd { margin: 0; font-weight: 500; }
#brand-edition .specimen[data-layout="social"] {
  --specimen-chart-ink: var(--specimen-paper);
  align-content: center;
  gap: clamp(5px, 2cqi, 12px);
  padding: clamp(14px, 6cqi, 29px);
  color: var(--specimen-paper);
  background: var(--specimen-ink);
}
#brand-edition .specimen[data-layout="social"] .specimen__brand {
  color: #fff;
}
#brand-edition .specimen[data-layout="social"] .specimen__mark { background: currentColor; }
#brand-edition .specimen[data-layout="social"] h4 {
  font-size: clamp(16px, 6.5cqi, 31px);
  margin-block: .55em 0;
}
#brand-edition .specimen[data-layout="social"] .specimen__bar { height: clamp(60px, 35cqi, 168px); }
#brand-edition .specimen[data-layout="social"] .specimen__legend {
  column-gap: .8em;
  margin-block: 0 .7em;
  font-size: clamp(10px, 3.1cqi, 14px);
}
#brand-edition .specimen:focus { outline: 2px solid var(--purple); outline-offset: 4px; }
@media (max-width: 900px) {
#brand-edition .specimen-collection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#brand-edition .specimen-example:first-child { grid-column: 1 / -1; max-width: 640px; }
}
@media (max-width: 560px) {
#brand-edition .specimen-collection { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
#brand-edition .specimen-example:not(:first-child) { width: min(100%, 340px); }
}
#brand-edition .hafenwerk-intro { padding-block-start: 0; }
#brand-edition .hafenwerk-intro h2 {
  font: 500 var(--garden-type-display, 42px)/var(--garden-leading-display, 56px) var(--sans);
  letter-spacing: -.035em;
  max-inline-size: 22ch;
}
#brand-edition .hafenwerk-section > h3 { font: 500 var(--size-title, 1.625rem)/1.15 var(--sans); }
#brand-edition .hafenwerk-section h4 { font-size: clamp(18px, 2vw, 28px); line-height: 1.2; }
#brand-edition .hafenwerk-steps h4 { margin-block-end: .4em; }
#brand-edition .hafenwerk-steps p { font: inherit; }
#brand-edition .hafenwerk-link { color: inherit; }
#brand-edition .hafenwerk-link:focus-visible, #brand-edition button:focus-visible {
  outline: 2px solid var(--blue, #6638f0); outline-offset: 5px;
}
