body[data-page="/guide/"] { background: var(--paper); }

.exam-guide {
  --eg-sans: "DM Sans", Arial, sans-serif;
  --eg-serif: Georgia, "Times New Roman", serif;
  --eg-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
  margin: clamp(22px, 3.4vw, 54px) auto 0;
}

.exam-guide h1, .exam-guide h2, .exam-guide h3 {
  color: var(--ink);
  font-family: var(--eg-sans);
  font-weight: 450;
  letter-spacing: -.045em;
}
.exam-guide h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.1vw, 3.7rem);
  line-height: 1.04;
}
.exam-guide h1 span { color: inherit; }
.exam-guide cite { font-style: normal; }
.exam-guide p { color: var(--ink); line-height: 1.58; }
.exam-guide :is(a, button, summary, input, [tabindex="-1"]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.exam-guide [id] { scroll-margin-block-start: 16px; }
.exam-guide a { text-decoration-thickness: 1px; }
.exam-guide a:hover { text-decoration-thickness: 2px; }
.exam-guide a:not(.eg-start):hover, .exam-guide summary:hover { color: var(--action-hover); }

.eg-cover {
  display: grid;
  grid-template-areas: "title photo" "intro photo";
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 0 clamp(24px, 4vw, 68px);
  align-items: center;
}
.eg-cover-heading { grid-area: title; align-self: end; }
.eg-cover-copy { grid-area: intro; align-self: start; }
.eg-cover .page-intro { padding: 0; }
.eg-cover .eg-kicker, .eg-chapter-line, .eg-contents small,
.eg-limits dt, .eg-assignment .micro {
  font: 650 .75rem/1.45 var(--eg-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eg-cover .eg-kicker { color: var(--dim); }
.eg-cover .page-intro h1 {
  font-size: clamp(4.1rem, 6.8vw, 6.25rem);
  line-height: .99;
  letter-spacing: -.068em;
  margin: 20px 0 22px;
}
.eg-cover-copy > p { font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 37ch; }
.eg-start, .exam-guide #plan button, .exam-guide .next {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: .8rem 1.05rem; border: 1px solid var(--action); border-radius: 3px;
  background: var(--action); color: var(--paper); text-decoration: none;
  font: 640 .94rem/1.5 "DM Sans", sans-serif;
}
.eg-start { margin-top: 1.4rem; }
.eg-start span { font-size: 1.12rem; line-height: 1; }
.eg-start:hover, .exam-guide #plan button:hover, .exam-guide .next:hover { background: var(--action-hover); border-color: var(--action-hover); }

.exam-guide .eg-plate {
  grid-area: photo;
  margin: 0;
  max-width: none;
  background: var(--paper);
  border: 1px solid var(--enamel);
  box-shadow: 3px 4px 0 var(--enamel);
}
.eg-mount {
  padding: clamp(10px, 1.2vw, 19px);
  background: var(--sky);
}
.exam-guide .eg-plate img {
  display: block; width: 100%; height: auto; max-width: none;
  border: 0; border-radius: 0; filter: grayscale(1);
}
.exam-guide .eg-plate figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  border-top: 1px solid var(--line);
  padding: .75rem clamp(12px, 1.4vw, 22px); margin: 0;
  background: var(--paper); color: var(--ink);
  font: 400 .82rem/1.45 var(--eg-sans);
  text-transform: none; letter-spacing: 0;
}
.eg-plate figcaption strong { font: 400 1.25rem/1.2 var(--eg-serif); }
.eg-plate figcaption div > span { display: block; margin-top: .2rem; color: var(--dim); }
.eg-plate figcaption a { color: var(--action); white-space: nowrap; }

.eg-contents {
  display: flex; align-items: stretch; margin-top: clamp(26px, 3vw, 48px);
  padding-inline: clamp(.75rem, 1.5vw, 1.25rem);
  background: var(--sky); border-block: 1px solid var(--enamel);
}
.eg-contents > strong {
  display: flex; align-items: center; margin-right: clamp(16px, 4vw, 60px);
  font: 560 1.05rem/1.3 var(--eg-sans);
}
.eg-contents ol { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.eg-contents li { min-width: 0; display: flex; }
.eg-contents a {
  display: flex; width: 100%; align-items: center; gap: .7rem;
  padding: 1.05rem .8rem; text-decoration: none; font-weight: 620; color: var(--action);
}
.eg-contents small { color: var(--index-blue); }
.eg-contents a:hover, .eg-contents a:focus-visible { background: var(--enamel); text-decoration: underline; }

.exam-guide .eg-chapter {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 1.6rem clamp(26px, 6vw, 90px);
  align-items: start;
  padding: 0; margin: clamp(44px, 6vw, 90px) 0 0;
  border: 0; border-radius: 0; background: transparent; color: var(--ink);
}
.eg-chapter-line {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; border-top: 1px solid var(--line); padding-top: .5rem; color: var(--ink);
}
.eg-chapter-line b { padding-inline: .25em; }
.eg-chapter-line a {
  display: inline-flex; align-items: center; gap: .35em; min-height: 44px;
  letter-spacing: 0; text-transform: none; color: var(--action);
}
.exam-guide .eg-chapter-copy p { max-width: 45ch; margin: 1rem 0; color: var(--ink); }
#role-heading { text-wrap: balance; }
.exam-guide .eg-chapter-copy .eg-source-note { font-size: .92rem; margin: .95rem 0 .45rem; }
.eg-reference, .eg-sources a, .eg-applied a, .exam-guide .steps a, .exam-guide .study-map a {
  color: var(--action); font-weight: 610; text-underline-offset: .2em;
}
.eg-limits { margin: 1.3rem 0; display: flex; gap: 1.4rem; }
.eg-limits > div { border-left: 2px solid var(--enamel); padding-left: .75rem; }
.eg-limits dt { font-size: .7rem; letter-spacing: .055em; color: var(--ink); }
.eg-limits dd { margin: .25rem 0 0; font-size: .82rem; }
.eg-limits dd strong { font: 440 2.5rem/1 var(--eg-sans); letter-spacing: -.06em; color: var(--ink); }
.exam-guide .role-panel > .eg-assignment {
  background: var(--sky); border: 1px solid var(--enamel); border-top: 5px solid var(--index-blue);
  padding: clamp(20px, 3.3vw, 48px); border-radius: 0; color: var(--ink);
  box-shadow: 3px 4px 0 var(--enamel);
}
.eg-assignment .micro { color: var(--index-blue); }
.exam-guide .eg-assignment h3, .eg-applied h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.55rem); line-height: 1.1;
}
.exam-guide .eg-assignment h3 { margin-top: .75rem; }
.exam-guide .role-panel .eg-assignment p { max-width: none; margin: .85rem 0; color: var(--ink); }
.eg-assignment .choice-group { padding-top: .4rem; }
.eg-assignment .choice-group button, .exam-guide #plan input {
  min-height: 44px; background: var(--paper); border: 1px solid var(--dim);
  border-radius: 3px; color: var(--ink);
}
.eg-assignment .choice-group button { color: var(--action); }
.eg-assignment .choice-group button:hover { background: var(--surface); border-color: var(--action-hover); }
.eg-assignment .feedback.notice:not(.wrong) { background: var(--paper); border-inline-start: 3px solid var(--index-blue); }
.exam-guide .role-panel .eg-assignment .feedback.wrong { color: var(--retry-ink); }
.eg-assignment .feedback:empty { display: block; position: absolute; }
.eg-assignment .next { margin-top: .3rem; }
.eg-assignment .choice-group button[aria-pressed="true"] { color: var(--paper); background: var(--action); border-color: var(--action); font-weight: 700; }

.exam-guide .eg-equipment { display: block; }
.exam-guide .study-map {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  margin: 1.6rem 0 0; padding: 0; border: 0; gap: 1.4rem clamp(26px, 6vw, 90px);
}
.exam-guide .study-map-intro .eyebrow { color: var(--ink); }
.exam-guide .study-map h2 { font-size: clamp(2.2rem, 3.4vw, 3.15rem); margin: .65rem 0 1rem; }
.exam-guide .study-map-intro p { max-width: 43ch; }
.exam-guide .study-map details { border-block-end: 1px solid var(--line); }
.exam-guide .study-map details:first-child { border-block-start: 1px solid var(--line); }
.exam-guide .study-map summary, .eg-applied summary {
  cursor: pointer; font-weight: 630; line-height: 1.5;
}
.exam-guide .study-map summary { padding: 1rem .35rem; }
.exam-guide summary { color: var(--action); }
.exam-guide .study-map-answer, .eg-applied details > p, .eg-assignment details > p {
  border-inline-start: 2px solid var(--ink);
  padding-inline-start: .85rem;
}
.exam-guide .study-map-answer { margin: 0 .35rem 1rem; padding-block: 0; }
.exam-guide .study-map-reading {
  max-width: 80ch; grid-column: 1 / -1; border-color: var(--line); padding-left: .9rem;
}
.exam-guide .study-map-reading h3 { font-size: 1.45rem; }
.exam-guide .eg-applied {
  display: grid; grid-template-columns: minmax(200px, .75fr) minmax(0, 1.25fr);
  gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(16px, 3vw, 42px);
  margin: 1.6rem 0 .75rem; background: var(--paper); border: 1px solid var(--line);
}
.eg-applied img { display: block; width: 100%; height: auto; max-width: 420px; }
.eg-applied p { margin-top: .55rem; }
.eg-applied details { margin: .65rem 0 .85rem; }
.eg-applied summary { padding: .45rem 0; }
.eg-sources { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; font-size: .92rem; }
.eg-sources a { display: inline-flex; align-items: center; gap: .3em; min-height: 32px; }
.exam-guide .steps { padding: 0; margin: 0; list-style: none; counter-reset: application; }
.exam-guide .steps li {
  margin: 0; padding: 0 0 1.1rem 2.8rem; position: relative; counter-increment: application;
}
.exam-guide .steps li + li { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.exam-guide .steps li::before {
  content: counter(application, decimal-leading-zero);
  position: absolute; left: 0; color: var(--ink); font: 600 .8rem/2.1 var(--eg-mono);
}
.exam-guide .steps strong { font: 510 1.45rem/1.2 var(--eg-sans); letter-spacing: -.035em; }
.exam-guide .steps p { margin: .45rem 0 .7rem; }
.exam-guide #plan {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem;
  align-items: end; justify-items: stretch; padding: clamp(18px, 3vw, 38px);
  border: 1px solid var(--line); background: var(--paper);
}
.exam-guide #plan label { min-width: 0; gap: .4rem; color: var(--ink); font-size: .95rem; }
.exam-guide #plan input { width: 100%; min-width: 0; max-width: none; font-size: 1rem; }
.exam-guide #plan button { justify-self: start; grid-column: 1 / -1; }
.exam-guide #plan [role="status"]:not(:empty) { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .8rem; margin: 0; }
.exam-guide #plan [role="status"]:empty { display: block; position: absolute; }

@media screen and (min-width: 681px) {
  #role-heading { font-size: clamp(2rem, 4.1vw, 3.7rem); }
}

@media (max-width: 850px) {
  .eg-cover { column-gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .eg-cover .page-intro h1 { font-size: clamp(3.7rem, 8vw, 4.8rem); }
  .exam-guide .eg-plate figcaption { align-items: start; flex-direction: column; gap: .35rem; }
  .eg-contents > strong { margin-right: .75rem; }
  .eg-contents a { padding-inline: .45rem; gap: .4rem; }
  .exam-guide #plan { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .exam-guide .eg-cover { grid-template-areas: "title" "photo" "intro"; grid-template-columns: 1fr; gap: 16px; }
  .eg-cover .page-intro h1 { font-size: clamp(3.75rem, 15vw, 6.1rem); margin: 12px 0 0; }
  .eg-cover-copy > p { max-width: 42ch; }
  .eg-cover .eg-kicker { font-size: .71rem; }
  .eg-start { margin-top: .85rem; }
  .exam-guide .eg-plate figcaption { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .eg-contents { display: block; }
  .eg-contents > strong { padding: .55rem 0 0; }
  .eg-contents ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eg-contents a { min-height: 44px; padding: .6rem .2rem; }
  .exam-guide .eg-chapter, .exam-guide .study-map { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .exam-guide .eg-chapter-copy h2 br { display: none; }
  .exam-guide .eg-applied { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .eg-applied img { max-width: 330px; }
}

@media (scripting: none) {
  .exam-guide #plan { display: none; }
}
@media (max-width:380px) {
  .eg-contents a { font-size:.9rem; }
}
@media screen and (scripting: enabled) {
  .eg-paper-plan { display: none; }
}
@media print {
  body[data-page="/guide/"] > .skip,
  body[data-page="/guide/"] > header :is(nav, .my) { display: none; }
  body[data-page="/guide/"] > header { position: static; border: 0; box-shadow: none; }
  body[data-page="/guide/"] > footer { margin-top: 1rem; padding-block: .75rem; break-inside: avoid; }
  .exam-guide { margin: 0; }
  .exam-guide .role-panel > .eg-assignment, .exam-guide .eg-plate, .eg-mount { background: var(--paper); border-color: var(--line); box-shadow: none; }
  .eg-contents, .eg-start, .eg-chapter-line a, .eg-assignment .choice-group, .eg-assignment .next, .exam-guide #plan button { display: none; }
  .exam-guide :is(a, button, summary, input, [tabindex="-1"]):focus-visible { outline: none; }
  .eg-paper-plan { margin-top: .75rem; }
  .exam-guide .eg-chapter, .exam-guide .study-map { display: block; margin-top: 1.5rem; }
  .exam-guide .eg-cover .page-intro h1 { font-size: 40pt; }
  .exam-guide .eg-chapter h2 { font-size: 22pt; }
  .exam-guide h2, .exam-guide h3, .eg-chapter-line { break-after: avoid; }
  .exam-guide figure, .eg-applied, .eg-assignment, .exam-guide .steps li { break-inside: avoid; }
  .exam-guide details::details-content { display: block; content-visibility: visible; }
  .eg-chapter-line { margin-bottom: .6rem; }
}
