.etp-design-notes {
  margin: 24px 0;
  background: #0c1513;
  color: #f4f7ef;
  font: 1rem/1.6 Georgia, serif;
  scroll-margin-top: 100px;
}

.etp-design-notes h2,
.etp-design-notes h3 {
  color: #fff200;
  line-height: 1.25;
  margin: 0 0 10px;
}

.etp-design-notes h3 { font-size: 1.18rem; margin-top: 18px; }
.etp-design-notes p { color: #f4f7ef; margin: 0 0 12px; }
.etp-design-notes a,
.etp-design-notes a:visited { color: #fff200; text-decoration: underline; }
.etp-design-notes :focus-visible { outline: 2px solid #fff200; outline-offset: 3px; }

.etp-design-notes details {
  min-width: 0;
  background: #172821;
  border: 1px solid #769587;
  border-radius: 10px;
}

.etp-design-notes summary {
  padding: 10px 14px;
  color: #f5fff0;
  font-weight: bold;
  cursor: pointer;
}

.etp-design-notes summary::marker { color: #baff80; }
.etp-design-notes > .etp-design-disclosure {
  background: #0c1513;
  border-color: #628376;
  border-radius: 16px;
}
.etp-design-notes .etp-design-disclosure > summary {
  padding: 16px clamp(16px, 3vw, 28px);
}
.etp-design-notes .etp-design-disclosure > summary:hover { background: #172821; border-radius: 15px; }
.etp-design-notes .etp-design-disclosure > summary h2 { display: inline; margin: 0; }
.etp-design-notes .etp-design-rationale > p { padding: 0 14px; }

/* Keep the reader still while opening notes near the footer. Leave enough room
   at the end of the page to scroll footer links above the fixed toolbar. */
body:has(.etp-design-notes) #page-tools { --tools-footer-offset: 0px !important; }
body:has(.etp-design-notes):has(#page-tools) { padding-bottom: var(--etp-reader-height, 44px); }
.bh-hub-nav a, .bh-hub-nav a:visited { color: #fff200; }

.etp-design-notes .etp-design-body { padding: 6px clamp(10px, 2vw, 18px) 18px; }
.etp-design-notes .etp-design-steps {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.etp-design-notes .etp-design-steps details {
  background: #192d39;
  border-color: #7895a8;
}
.etp-design-notes .etp-design-steps details:first-of-type {
  background: #2e2a18;
  border-color: #b49d57;
}
.etp-design-notes .etp-design-steps details > p { padding: 0 14px; }
.etp-design-notes .etp-design-scroll-hint { display: none; }
.etp-design-notes .etp-design-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 12px 0 18px;
  border: 1px solid #7895a8;
  border-radius: 9px;
}
.etp-design-notes table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #13232d;
  color: #f4f7ef;
}
.etp-design-notes caption {
  padding: 10px 14px;
  background: #254052;
  color: #fff200;
  text-align: left;
  font-weight: bold;
}
.etp-design-notes th,
.etp-design-notes td {
  padding: 10px 14px;
  border-top: 1px solid #567180;
  text-align: left;
  vertical-align: top;
}
.etp-design-notes thead th { background: #203746; }
.etp-design-notes tbody tr:nth-child(even) { background: #1a303d; }
.etp-design-notes tbody th { width: 29%; }

@media (max-width: 650px) {
  .etp-design-notes .etp-design-scroll-hint { display: block; font-size: .9rem; }
  .etp-design-notes th,
  .etp-design-notes td { padding: 8px 10px; }
}

.etp-unit > .etp-unit-design-notes,
.etp-unit-body > .etp-unit-design-notes {
  margin: 8px 18px 16px;
  border: 1px solid #769587;
  border-radius: 10px;
  background: #172821;
  color: #f4f7ef;
}

.etp-unit-body > .etp-unit-design-notes { margin-inline: 0; }

.etp-unit-design-notes > summary {
  padding: 10px 14px;
  color: #fff200;
  font-weight: bold;
  cursor: pointer;
}

.etp-unit-design-notes > summary::marker { color: #baff80; }
.etp-unit-design-notes > summary:focus-visible { outline: 2px solid #fff200; outline-offset: 3px; }
.etp-unit-design-notes > p { margin: 0; padding: 0 14px 14px; color: #f4f7ef; }
