.ew-nav > a[aria-current="page"] {
  color: var(--ew-accent);
  border-bottom-color: var(--ew-accent);
}

.ew-menu-motion {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: white;
  font-size: 16px;
  line-height: 1.25;
  cursor: pointer;
}

.ew-menu-motion input { accent-color: var(--ew-accent); }

.policy-example .example-intro, .policy-example .example-step > p { max-width: 80ch; }
.policy-example .example-step { margin-top: 24px; border-top: 1px solid #ddd9e9; padding-top: 6px; }
.policy-example .example-pair, .policy-example .example-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 38px);
  align-items: start;
}
.policy-example .example-pair { margin-block: 16px; }
.policy-example .example-capture { margin: 0; min-width: 0; }
.policy-example .example-capture a { display: block; width: fit-content; max-width: 100%; }
.policy-example .example-capture img {
  display: block; max-width: 100%; height: auto; box-sizing: border-box;
  border: 1px solid #ddd9e9; border-radius: 8px;
}
.policy-example .example-capture figcaption { max-width: 70ch; font-size: 16px; line-height: 1.5; margin-top: 7px; }
.policy-example .example-paper { width: min(100%, 485px); margin-top: 18px; justify-self: center; }
.policy-example .prompt-box { min-width: 0; }
.policy-example .prompt-box label { display: block; margin-bottom: 8px; font-weight: 700; }
.policy-example .prompt-text {
  width: 100%; height: 10em; box-sizing: border-box; font: inherit; line-height: 1.55;
}
@supports (field-sizing: content) {
  .policy-example .prompt-text { field-sizing: content; height: auto; min-height: 6em; }
}
.policy-example .prompt-toolbar { justify-content: flex-start; flex-direction: row; flex-wrap: wrap; align-items: center; }
.policy-example .prompt-toolbar button { margin: 0; }
.policy-example .copy-status:empty { display: none; }
.policy-example .example-result .button { white-space: normal; text-align: center; }
.policy-example details h4 { font-size: 1.3rem; }
.policy-example details h5 { font-size: 1.1rem; margin: 1.1em 0 .3em; }
@media (max-width: 760px) {
  .policy-example .example-pair, .policy-example .example-result { grid-template-columns: minmax(0, 1fr); }
}

/* Match the classroom policy guide's outer edges across every content template. */
@media screen {
  body.refinement-v1 { --layout-gutter: var(--page-gutter); }
  body.refinement-v1 #main:is(.reading-main, .standard-main, .experience-main, .tc-main, .agents-main),
  body.refinement-v1 :is(.ew-container, .ew-top-inner, .site-footer) {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--page-width);
    margin-inline: auto;
    padding-inline: var(--layout-gutter);
    min-width: 0;
  }
  body.refinement-v1 #main > :is(.prose, .review-article, .article-jumps),
  body.refinement-v1.finder-page #main :is(.finder-intro-panel, .finder-content-panel, .finder-context) {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  .refinement-v1 .review-article :is(p, li, .review-intro h1) { max-width: none; }
}

@media (max-width: 495px) {
  .ew-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 10px;
  }
  .ew-nav > a, .ew-nav-menu > summary { width: auto; }
}

/* Keep keyboard focus and fragment targets below the header, including wrapped menus. */
@media screen {
  html { scroll-padding-top: calc(var(--ew-header-height, 79px) + 12px); }
  #main [id] { scroll-margin-top: 0; }
  #main .article-panel-heading[id], #main .tc-browse [id] { scroll-margin-top: 0; }
}
@media screen and (max-width: 800px) {
  html { --ew-header-height: 106px; }
}
@media screen and (max-width: 495px) {
  html { --ew-header-height: 150px; }
  .ew-nav > a, .ew-nav-menu > summary { height: auto; }
}
li[id^="reference-"]:target { background-color: #f2eff8; outline: 2px solid #c9c1df; outline-offset: 2px; }
.ew-nav > a[data-current-section],
.ew-nav-menu:has(a[aria-current="page"]) > summary {
  color: var(--ew-accent);
  border-bottom-color: var(--ew-accent);
}
.ew-nav-panel a[aria-current="page"] { text-decoration: underline; text-underline-offset: .22em; }
.review-intro .editorial-status { color: #49436a; font-weight: 650; margin: 0 0 .6em; }
.ag-optional > summary > h2 { display: inline; font: inherit; margin: 0; color: inherit; }

.headline-comparison { margin-block: 1.5rem .5rem; }
.headline-comparison h4, .headline-meeting h4 { font-size: 1.2rem; margin: 0 0 .4rem; }
.headline-responses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; margin-top: 1rem; }
.headline-responses > div { padding: 1rem 1.2rem; background: #f7f6fb; border: 1px solid #ddd9e9; border-radius: .5rem; }
.headline-responses h5 { margin: 0; font-size: 1rem; color: #453d71; }
.headline-responses blockquote { margin-block: .65rem; }
.headline-responses p:last-child { margin-bottom: 0; }
.headline-meeting { margin-top: 2rem; border-top: 1px solid #ddd9e9; padding-top: 1.25rem; }
.headline-meeting-example { margin-top: 1rem; }
.headline-meeting-example summary { cursor: pointer; padding-block: .75rem; color: #453d71; font-weight: 700; }
.headline-meeting-example h5 { font-size: 1.05rem; margin-block: 1rem .4rem; }
