/* The build guide (/docs/build). Uses the site's tokens from alma.css. */

.dg {
  padding: 2.5rem 0 5rem;
  /* Wider than other pages: a contents column sits beside the text. */
  width: min(1240px, calc(100% - 2.5rem));
}

.dg-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ---------- Top ---------- */

.dg-hero {
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--ink);
}

.dg-title {
  margin: 0 0 0.9rem;
  max-width: 16ch;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.dg-lead {
  margin: 0 0 1.4rem;
  max-width: 62ch;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--muted);
}

.dg-lead code,
.dg-content code {
  padding: 0.08em 0.38em;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--yellow);
  white-space: nowrap;
}

.dg-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
}

.dg-updated {
  font-size: var(--step--1);
  color: var(--muted);
}

.dg-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.dg-facts li {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dg-facts strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.1;
  color: var(--ember-hot);
}

.dg-facts span {
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Two columns ---------- */

.dg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Above the text on a narrow screen, where the site's own header takes the sticky spot. */
.dg-side { align-self: start; }

.dg-toc { scroll-margin-top: 8rem; }

.dg-jump {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink-dark);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ember);
}

.dg-toc {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dg-toc summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.dg-toc summary::-webkit-details-marker { display: none; }

.dg-toc summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.dg-toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.dg-toc nav {
  display: grid;
  gap: 1px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0 0.4rem 0.5rem;
}

.dg-toc a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.55rem;
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  font-size: 0.93rem;
  color: var(--muted);
  text-decoration: none;
}

.dg-toc a:hover,
.dg-toc a:focus-visible {
  color: var(--text);
  background: var(--surface-2);
}

.dg-toc a.is-current {
  border-left-color: var(--ember);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
}

.dg-toc a.is-current .dg-icon { color: var(--ember-hot); }

@media (min-width: 1000px) {
  .dg-layout {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 2.5rem;
  }

  .dg-side {
    position: sticky;
    top: 5rem;
    z-index: 20;
  }

  .dg-jump { display: none; }

  /* On a wide screen the contents are always open: the summary is a heading, not a switch. */
  .dg-toc summary {
    cursor: default;
    pointer-events: none;
  }

  .dg-toc summary::after { display: none; }
  .dg-toc nav { max-height: calc(100vh - 10rem); }
}

/* ---------- Sections ---------- */

.dg-content { min-width: 0; }

.dg-section {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 5.5rem;
}

.dg-section:first-child { padding-top: 0.5rem; }

.dg-section > h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.7rem;
  font-size: var(--step-2);
  line-height: 1.1;
}

.dg-section > h2 .dg-icon {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.42rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink-dark);
  box-shadow: 2px 2px 0 var(--ember);
}

.dg-intro {
  margin: 0 0 1.4rem;
  max-width: 68ch;
  line-height: 1.6;
  color: var(--muted);
}

.dg-intro strong { color: var(--text); }

.dg-sub {
  margin: 2rem 0 0.9rem;
  font-size: var(--step-1);
}

.dg-note {
  margin: 1rem 0 0;
  max-width: 68ch;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
}

.dg-note strong { color: var(--text); }
.dg-note a { color: var(--ember-hot); }

/* Numbered steps */

.dg-steps,
.dg-parts,
.dg-tips {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: dg;
}

.dg-steps { display: grid; gap: 0.7rem; }

.dg-steps li {
  position: relative;
  padding: 0.95rem 1.1rem 0.95rem 3.9rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: dg;
}

.dg-steps li::before {
  content: counter(dg);
  position: absolute;
  top: 0.9rem;
  left: 0.95rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ember);
  color: var(--ink-dark);
  font-family: var(--font-display);
  font-weight: 700;
}

.dg-steps h3,
.dg-parts h3,
.dg-tips h3,
.dg-card h3,
.dg-limits h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.3;
}

.dg-steps p,
.dg-parts p,
.dg-tips p,
.dg-card p,
.dg-limits p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
}

.dg-steps p strong,
.dg-card p strong,
.dg-limits p strong { color: var(--text); }

.dg-budgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.dg-budget {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.dg-budget.is-default { border-color: var(--ember); }

.dg-budget-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dg-budget-name em {
  margin-left: 0.3rem;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ember-hot);
}

.dg-budget strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--yellow);
}

.dg-budget-hint {
  font-size: var(--step--1);
  color: var(--muted);
}

/* The five parts of a request */

.dg-parts {
  display: grid;
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.dg-parts li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 0.4rem;
  padding: 0.95rem 1.1rem 0.95rem 0.9rem;
  counter-increment: dg;
}

.dg-parts li + li { border-top: 1px solid var(--border); }

.dg-parts li::before {
  content: counter(dg, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ember-hot);
}

/* Weak and strong requests */

.dg-compare { display: grid; gap: 1.1rem; }

.dg-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

.dg-pair-kind {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dg-ask {
  position: relative;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.dg-ask p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
}

.dg-ask--weak { border-left-color: var(--bad); }
.dg-ask--weak p { color: var(--muted); }
.dg-ask--strong { border-left-color: var(--good); }

.dg-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dg-tag--weak { color: var(--bad); }
.dg-tag--strong { color: var(--good); }

.dg-why {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--muted);
}

.dg-why strong { color: var(--text); }

@media (min-width: 760px) {
  .dg-pair { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .dg-pair-kind,
  .dg-why { grid-column: 1 / -1; }
  .dg-pairs-mini { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
}

.dg-pairs-mini {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.dg-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  cursor: pointer;
}

.dg-copy:hover,
.dg-copy:focus-visible {
  border-color: var(--ember-hot);
  color: var(--ember-hot);
}

.dg-copy.is-done {
  border-color: var(--good);
  color: var(--good);
}

.dg-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.dg-callout > .dg-icon {
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.1rem;
  color: var(--yellow);
}

.dg-callout h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-body);
  font-size: 1.04rem;
}

.dg-callout p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Tips */

.dg-tips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.8rem;
}

.dg-tips li {
  padding: 1rem 1rem 1.05rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: dg;
}

.dg-tips li::before {
  content: counter(dg, decimal-leading-zero);
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ember-hot);
}

/* Cards */

.dg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 0.8rem;
}

.dg-card {
  padding: 1rem 1.05rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

.dg-table-wrap + .dg-cards { margin-top: 1.1rem; }

/* Recipes */

.dg-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.dg-tablist button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dg-tablist button:hover {
  border-color: var(--text);
  color: var(--text);
}

.dg-tablist button[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--yellow);
  color: var(--ink-dark);
  box-shadow: 2px 2px 0 var(--ember);
}

.dg-recipe {
  display: grid;
  gap: 1.1rem;
  padding: 1.2rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Without the script every recipe shows, one under the other. */
.dg-tabs:not(.is-live) .dg-tablist { display: none; }
.dg-tabs:not(.is-live) .dg-recipe + .dg-recipe { margin-top: 1rem; }
.dg-tabs.is-live .dg-recipe[hidden] { display: none; }

.dg-recipe-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem 0.9rem;
  align-items: center;
}

.dg-recipe-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ember);
  color: var(--ink-dark);
}

.dg-recipe-icon .dg-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.dg-recipe-head h3 {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.15;
}

.dg-recipe-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.dg-pill {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: var(--step--1);
  color: var(--muted);
}

.dg-pill strong { color: var(--yellow); }

@media (min-width: 760px) {
  .dg-recipe-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .dg-pill { grid-column: auto; }
  .dg-recipe-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dg-recipe-cols {
  display: grid;
  gap: 1.1rem 1.6rem;
}

.dg-recipe h4 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dg-list,
.dg-watch ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dg-list li,
.dg-watch li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.96rem;
  line-height: 1.5;
}

.dg-list li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0.1rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
}

.dg-list--do li::before { background: var(--ember); }
.dg-list--auto li::before { background: var(--good); border-radius: 50%; }

.dg-example {
  padding: 0.95rem 1rem 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.dg-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.dg-example-head h4 { margin: 0; }

.dg-example p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.dg-shot {
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}

.dg-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.dg-shot figcaption {
  padding: 0.7rem 0.95rem 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.dg-watch {
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 225, 74, 0.07);
}

.dg-watch h4 { color: var(--yellow); }

.dg-watch li {
  padding-left: 1rem;
  color: var(--muted);
}

.dg-watch li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--yellow);
}

.dg-watch li strong { color: var(--text); }

/* Tables */

.dg-table-wrap {
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

.dg-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.dg-table th,
.dg-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.dg-table tbody tr:last-child th,
.dg-table tbody tr:last-child td { border-bottom: 0; }

.dg-table thead th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.dg-table tbody th {
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  white-space: nowrap;
}

.dg-table td { color: var(--muted); }

.dg-say {
  color: var(--text);
  font-style: italic;
}

.dg-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.dg-stats div {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.dg-stats strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--ember-hot);
}

.dg-stats span {
  font-size: var(--step--1);
  color: var(--muted);
}

/* Limits */

.dg-limits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dg-limits li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

.dg-limit-mark {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.14);
  color: var(--bad);
}

.dg-limit-mark .dg-icon {
  width: 1rem;
  height: 1rem;
}

/* Questions */

.dg-faq {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

.dg-faq details + details { border-top: 1px solid var(--border); }

.dg-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.dg-faq summary::-webkit-details-marker { display: none; }

.dg-faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ember-hot);
  transition: transform 0.15s ease;
}

.dg-faq details[open] summary::after { transform: rotate(45deg); }
.dg-faq summary:hover { color: var(--ember-hot); }

.dg-faq p {
  margin: 0;
  padding: 0 1.05rem 1rem;
  max-width: 72ch;
  line-height: 1.6;
  color: var(--muted);
}

/* End */

.dg-end {
  margin-top: 2.2rem;
  padding: 1.6rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.dg-end h2 {
  margin: 0 0 0.4rem;
  font-size: var(--step-2);
}

.dg-end > p:first-of-type {
  margin: 0 0 1.1rem;
  max-width: 56ch;
  color: var(--muted);
}

.dg :focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* On a phone a table row becomes a small card, so nothing scrolls sideways. */
@media (max-width: 640px) {
  .dg-table { min-width: 0; }
  .dg-table thead { display: none; }
  .dg-table,
  .dg-table tbody,
  .dg-table tr,
  .dg-table th,
  .dg-table td { display: block; }
  .dg-table tr { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border); }
  .dg-table tbody tr:last-child { border-bottom: 0; }
  .dg-table th,
  .dg-table td { padding: 0; border: 0; }
  .dg-table tbody th { margin-bottom: 0.35rem; font-size: 1.04rem; white-space: normal; }
  .dg-table td + td { margin-top: 0.4rem; }
  .dg-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ember-hot);
  }
}

@media (max-width: 520px) {
  .dg { width: calc(100% - 1.6rem); }
  .dg-recipe { padding: 0.95rem; }
  .dg-steps li { padding-left: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dg-tablist button,
  .dg-toc summary::after,
  .dg-faq summary::after { transition: none; }
}
