/* PW-03: shared only by the existing DE/EN tagging pages. */
.ai-prep-page {
  --ai-muted: #425d6c;
  --ai-line: #b1c6d2;
  color: var(--deep-blue);
}
.ai-prep-page [id] { scroll-margin-top: 24px; }
.ai-prep-page h1,
.ai-prep-page h2,
.ai-prep-page h3,
.ai-prep-page h4 { font-family: 'Montserrat', sans-serif; }
.ai-prep-hero { padding: 72px 0 64px; background: var(--ice-blue); }
.ai-prep-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.ai-prep-kicker {
  margin: 0 0 16px;
  color: var(--ai-muted);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ai-prep-lead { max-width: 800px; margin: 0; font-size: 1.1875rem; line-height: 1.75; }
.ai-prep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }
.ai-prep-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 28px;
  background: var(--action-orange);
  color: var(--deep-blue);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.ai-prep-primary:hover { background: #FF7A2F; }
.ai-prep-page a:focus-visible { outline: 3px solid var(--deep-blue); outline-offset: 4px; }
.ai-prep-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; color: var(--deep-blue); font-weight: 600; line-height: 1.5; text-underline-offset: 4px; }
.ai-prep-link:hover { text-decoration-thickness: 2px; }
.ai-prep-flow { padding: 64px 0 0; }
.ai-prep-intro { max-width: 850px; }
.ai-prep-intro h2,
.ai-prep-review h2 { margin: 0 0 20px; font-size: clamp(1.875rem, 3vw, 2.625rem); font-weight: 400; line-height: 1.25; letter-spacing: -.02em; }
.ai-prep-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0; }
.ai-prep-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 0;
  border-top: 2px solid var(--sky-blue);
  border-bottom: 1px solid var(--ai-line);
  color: var(--deep-blue);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.ai-prep-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ai-prep-nav-number { color: var(--ai-muted); font-size: .875rem; }
.ai-prep-nav a > span:last-child { margin-left: auto; }
.ai-prep-scenario { max-width: 900px; padding: 24px 0 32px; }
.ai-prep-scenario > p { margin: 0 0 12px; line-height: 1.75; }
.ai-prep-scenario .ai-prep-example-note { margin: 0; color: var(--ai-muted); font-size: .9375rem; }
/* Distinct task imagery within one utility-industry series. */
.ai-prep-chapter { padding: 56px 0; border-top: 1px solid var(--ai-line); }
.ai-prep-explanation { max-width: 850px; margin-bottom: 28px; }
.ai-prep-explanation h3 { margin: 0 0 16px; font-size: clamp(1.75rem, 2.7vw, 2.25rem); font-weight: 400; line-height: 1.25; letter-spacing: -.015em; }
.ai-prep-explanation > p:not(.ai-prep-kicker) { margin: 0; max-width: 72ch; font-size: 1.0625rem; line-height: 1.65; }
.ai-prep-figure { min-width: 0; margin: 0; }
.ai-prep-artwork { display: block; width: 100%; height: auto; border-radius: 8px; }
.ai-prep-figure figcaption { margin-top: 12px; color: var(--ai-muted); font-size: .8125rem; line-height: 1.6; }
.ai-prep-details { margin-top: 12px; max-width: 850px; }
.ai-prep-details summary { padding: 12px 0; min-height: 44px; cursor: pointer; font-size: .875rem; color: var(--link-blue, #216D99); font-weight: 600; line-height: 1.6; }
.ai-prep-details summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.ai-prep-details summary:focus-visible { outline: 3px solid var(--deep-blue); outline-offset: 4px; }
.ai-prep-details > div { padding: 4px 0 8px; }
.ai-prep-details p { margin: 0 0 16px; font-size: .9375rem; line-height: 1.75; }
.ai-prep-review { padding: 64px 0; background: var(--ice-blue); }
.ai-prep-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 32px; }
.ai-prep-review h3 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 600; line-height: 1.5; }
.ai-prep-review-grid p,
.ai-prep-next > p { margin: 0; line-height: 1.75; }
.ai-prep-next { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--ai-line); }
.ai-prep-next .ai-prep-actions { margin-top: 24px; }
/* Retained foundations: consistent alignment and hierarchy after their old H1s. */
.ai-prep-page .tagging-hero { padding: 64px 0; background: var(--deep-blue); text-align: left; }
.ai-prep-page .tagging-hero > .tagging-container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 48px; }
.ai-prep-page .tagging-hero-content { margin: 0; }
.ai-prep-page .tagging-hero-title,
.ai-prep-page .tagging-h1 { color: var(--white); font-size: clamp(1.75rem, 2.5vw, 2rem); font-weight: 400; line-height: 1.3; margin: 0 0 24px; }
.ai-prep-page .tagging-hero-lead,
.ai-prep-page .tagging-body-large { font-size: 1.0625rem; line-height: 1.8; margin: 0; }
.ai-prep-page .tagging-hero-media { margin: 0; }
.ai-prep-page .tagging-hero img { max-width: 100%; height: auto; }
.ai-prep-page .tagging-split,
.ai-prep-page .tagging-features { padding: 64px 0; }
.ai-prep-page .tagging-h2 { font-weight: 400; font-size: clamp(1.75rem, 2.5vw, 2rem); overflow-wrap: anywhere; hyphens: auto; }
.ai-prep-page .tagging-features-grid > * { min-width: 0; }
.ai-prep-page .tagging-quote-author { color: var(--ai-muted); }
@media (max-width: 800px) {
  .ai-prep-hero { padding: 48px 0; }
  .ai-prep-flow { padding-top: 48px; }
  .ai-prep-nav { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ai-prep-nav a + a { border-top: 0; }
  .ai-prep-chapter { padding: 40px 0; }
  .ai-prep-explanation { margin-bottom: 24px; }
  .ai-prep-review-grid,
  .ai-prep-page .tagging-hero > .tagging-container { grid-template-columns: minmax(0, 1fr); }
  .ai-prep-review { padding: 48px 0; }
  .ai-prep-review-grid { gap: 24px; }
  .ai-prep-page .tagging-hero { padding: 48px 0; }
  .ai-prep-page .tagging-hero-media { max-width: 500px; }
}
@media (max-width: 480px) {
  .ai-prep-lead { font-size: 1.0625rem; }
  .ai-prep-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Approved image-led tagging composition; terms remain ordinary accessible text. */
.ai-prep-tagging-stage { max-width: 960px; margin-inline: auto; padding: 28px; background: var(--ice-blue); border-radius: 8px; container-type: inline-size; }
.ai-prep-tagging-label { margin: 0 0 16px; color: var(--ai-muted); font-size: .875rem; font-weight: 600; }
.ai-prep-tagging-photo { position: relative; isolation: isolate; }
.ai-prep-tagging-photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
.ai-prep-tagging-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai-prep-tagging-terms { list-style: none; margin: 0; padding: 0; }
.ai-prep-tagging-term { position: absolute; max-width: 33%; padding: .55em .75em; border-radius: 3px; background: var(--white); color: var(--deep-blue); font-size: clamp(.6875rem, 2cqw, 1.0625rem); font-weight: 600; line-height: 1.25; box-shadow: 0 2px 10px #03213d15; }
.ai-prep-tagging-term--1 { left: 4%; top: 8%; }
.ai-prep-tagging-term--2 { left: 3%; top: 61%; }
.ai-prep-tagging-term--3 { left: 43%; top: 77%; }
.ai-prep-tagging-term--4 { right: 3%; top: 12%; }
.ai-prep-tagging-file { position: absolute; bottom: 3%; left: 3%; padding: 3px 6px; background: var(--deep-blue); color: var(--white); border-radius: 2px; font-size: clamp(.625rem, 1.5cqw, .8125rem); }
.ai-prep-tagging-context { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.ai-prep-tagging-context > span { font-size: 2rem; line-height: 1; }
.ai-prep-tagging-context p { margin: 0 0 4px; color: var(--ai-muted); font-size: .8125rem; line-height: 1.5; }
.ai-prep-tagging-context strong { display: block; font-size: clamp(.875rem, 2.5cqw, 1.125rem); line-height: 1.5; font-weight: 600; }
@media (max-width: 640px) {
  .ai-prep-tagging-stage { padding: 16px; }
  .ai-prep-tagging-label { margin-bottom: 12px; font-size: .8125rem; }
  .ai-prep-tagging-context { gap: 10px; margin-top: 16px; }
  .ai-prep-tagging-term { padding: .4em .5em; }
}
