/* Low-priority chrome defaults while the shared page styles roll out. */
@layer engineering-fallback {
  .nav--page .store-badge--nav { margin-inline-start: auto; }
  .page-foot { padding-block: 44px; border-top: 1px solid var(--line); }
  .page-foot__inner, .page-foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
  .page-foot__fine { flex-basis: 100%; font-size: 15px; }
}

.engineering {
  --rule: #bcb7ad;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: clamp(50px, 5.7vw, 82px);
}
.engineering h2 {
  max-width: 15ch;
  font-size: clamp(40px, 4.5vw, 67px);
  font-weight: 780;
  line-height: .99;
  letter-spacing: -.049em;
  font-variation-settings: "opsz" 90;
  text-wrap: balance;
}
.engineering h3, .engineering dt { font-weight: 710; line-height: 1.15; letter-spacing: -.025em; }
.engineering p, .engineering dd, .engineering figcaption { text-wrap: pretty; }
.eng-intro {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(110px, 10vw, 144px) clamp(42px, 4.5vw, 66px);
}
.eng-intro h1 { max-width: 100%; font-size: clamp(54px, 6.4vw, 96px); }
.eng-intro .lede { max-width: 37ch; }
.eng-cap { border: 1px solid var(--rule); }
.eng-cap img, .eng-render img { width: 100%; height: auto; }
.eng-cap figcaption, .eng-chart__heading span, .eng-scale, .eng-byline, .eng-legend, .eng-axis, .eng-phases {
  font: 500 13px/1.4 var(--mono);
}
.eng-cap figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
}
.eng-contents {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(18px, 3vw, 48px);
  padding-block: 8px;
  border-top: 1px solid var(--rule);
}
.eng-contents a {
  padding-block: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
}
.eng-contents a:hover, .eng-contents a:focus-visible { text-decoration-color: currentColor; }
.eng-chapter { padding-block: var(--pad); scroll-margin-top: 80px; }
.eng-spread, .eng-section-head, .eng-render {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
}
.eng-prose p { margin-top: 19px; max-width: 44ch; }
.eng-score { background: #222727; color: #faf4e9; }
.eng-score .eng-spread { align-items: center; }
.eng-score h2 { max-width: 12ch; }
.eng-source { display: inline-block; color: #c8d6c9; font-size: .86em; text-underline-offset: 3px; }
.eng-chart { border: 1px solid #63706b; padding: clamp(20px, 2.6vw, 36px); }
.eng-chart__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 30px; }
.eng-chart__heading h3 { font-size: clamp(27px, 2.8vw, 42px); }
.eng-chart__heading span, .eng-axis { color: #ccd5cf; }
.eng-phases { display: grid; grid-template-columns: repeat(2, 1fr); margin-inline: 1%; margin-bottom: 6px; }
.eng-plot img { width: 100%; height: clamp(135px, 13vw, 184px); }
.eng-axis { position: relative; display: flex; justify-content: space-between; padding-block: 5px 0; }
.eng-axis span:nth-child(2), .eng-axis span:nth-child(3), .eng-axis span:nth-child(4) {
  position: absolute; left: 25.5%; transform: translateX(-50%);
}
.eng-axis span:nth-child(3) { left: 50%; }
.eng-axis span:nth-child(4) { left: 74.5%; }
.eng-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-block: 22px 12px; }
.eng-legend span { display: inline-flex; align-items: center; gap: 8px; }
.eng-legend span::before { content: ""; width: 16px; height: 4px; background: #ffa980; }
.eng-legend span + span::before { width: 8px; height: 8px; border-radius: 50%; background: #b6d7bd; }
.eng-chart figcaption, .eng-budget figcaption, .eng-render figcaption { font-size: 16px; line-height: 1.45; }
.eng-chart figcaption { max-width: 54ch; color: #dadfd9; }
.eng-section-head { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: clamp(24px, 3vw, 44px); }
.eng-section-head p { max-width: 48ch; }
.eng-profiles { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--rule); }
.eng-profiles figure { padding: 20px clamp(16px, 2.5vw, 40px) 21px; }
.eng-profiles figure:first-child { padding-inline-start: 0; }
.eng-profiles figure:last-child { padding-inline-end: 0; }
.eng-profiles figure + figure { border-inline-start: 1px solid var(--rule); }
.eng-profiles h3 { font-size: 25px; }
.eng-profiles svg { width: 100%; height: auto; margin-block: 12px 8px; fill: #984422; }
.eng-profiles svg > path { stroke: #984422; stroke-width: 3; }
.eng-profiles figcaption { font-size: 17px; line-height: 1.4; max-width: 31ch; }
.eng-scale { margin-top: 10px; color: #59574f; }
.eng-after { margin-top: 25px; max-width: 82ch; }
.eng-defs { position: absolute; }
.eng-memory { background: #e1e8dc; }
.eng-memory .eng-spread { align-items: center; }
.eng-budget { border-block: 1px solid #a1ae9c; padding-block: 20px; }
.eng-budget h3 { font-size: clamp(24px, 2.6vw, 35px); }
.eng-byline { margin-top: 6px; color: #4a5649; }
.eng-meter { margin-block: 24px; }
.eng-meter > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.eng-meter b { font-weight: 710; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
.eng-track { margin-top: 9px; height: 14px; background: repeating-linear-gradient(-50deg, transparent 0 3px, #bac7b5 3px 4px); }
.eng-track i { display: block; width: 43.5028%; height: 100%; background: #42574a; }
.eng-track--full i { width: 100%; }
.eng-budget figcaption { max-width: 56ch; }
.eng-render { grid-template-columns: 1.18fr .82fr; gap: clamp(28px, 4.5vw, 72px); }
.eng-render img { border: 1px solid var(--rule); }
.eng-render figcaption { margin-top: 12px; max-width: 65ch; }
.eng-render-list, .eng-rules { margin: 0; }
.eng-render-list div, .eng-rules div { border-top: 1px solid var(--rule); padding-block: 15px; }
.eng-render-list div:first-child { padding-top: 13px; }
.eng-render-list dt { font-size: 23px; }
.eng-render-list dd, .eng-rules dd { margin: 6px 0 0; font-size: 17px; line-height: 1.45; }
.eng-ios { background: #e9e3d8; }
.eng-ios .eng-spread { grid-template-columns: .7fr 1.3fr; }
.eng-rules div { display: grid; grid-template-columns: minmax(105px, .36fr) 1fr; gap: 20px; }
.eng-rules dt { font-size: 21px; }
.eng-rules dd { margin: 0; }
@media (max-width: 900px) {
  .eng-intro { grid-template-columns: 1fr 1fr; }
  .eng-spread, .eng-render, .eng-ios .eng-spread { gap: 32px; }
  .eng-rules div { grid-template-columns: 1fr; gap: 6px; }
  .eng-legend { column-gap: 16px; }
}
@media (max-width: 720px) {
  .eng-intro, .eng-spread, .eng-section-head, .eng-render, .eng-ios .eng-spread { grid-template-columns: 1fr; gap: 26px; }
  .eng-intro { padding-block: 100px 26px; }
  .eng-intro h1 { max-width: 12ch; font-size: clamp(52px, 12.8vw, 66px); }
  .eng-contents { column-gap: 20px; }
  .eng-contents a { padding-block: 6px; }
  .eng-chapter { scroll-margin-top: 90px; }
  .eng-section-head { gap: 17px; }
  .eng-prose p { max-width: none; }
  .eng-profiles { grid-template-columns: 1fr; }
  .eng-profiles figure, .eng-profiles figure:first-child, .eng-profiles figure:last-child {
    display: grid; grid-template-columns: .68fr 1fr; column-gap: 12px; align-items: center; padding: 14px 0;
  }
  .eng-profiles figure + figure { border: 0; border-top: 1px solid var(--rule); }
  .eng-profiles svg { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .eng-profiles h3 { font-size: 22px; }
  .eng-profiles figcaption { font-size: 16px; margin-top: 5px; }
  .eng-chart { padding: 18px 16px; }
  .eng-chart__heading { margin-bottom: 23px; }
  .eng-rules div { grid-template-columns: 1fr; gap: 7px; }
}
