/* CAS2_REISSUE1 — one 10 × 14 CSS-pixel right triangle at every supported size.
   Geometry is independent of fonts and --u. Other symbols, labels and links remain.
   CAS1's two-button-only rule is superseded, never removed. */
:root { --cas2-arrow-width:10px; --cas2-arrow-half-height:7px; }
body .button > .button-arrow,
body .editor-primary > span[aria-hidden="true"],
body .editor-secondary > span[aria-hidden="true"],
body .smp-arrow,
body .cas2-arrow {
  display:block !important;
  box-sizing:content-box !important;
  width:0 !important; height:0 !important;
  min-width:0 !important; min-height:0 !important;
  max-width:none !important; max-height:none !important;
  padding:0 !important; margin:0 !important;
  font-size:0 !important; line-height:0 !important;
  letter-spacing:0 !important;
  color:inherit !important; background:none !important;
  border-top:var(--cas2-arrow-half-height) solid transparent !important;
  border-bottom:var(--cas2-arrow-half-height) solid transparent !important;
  border-left:var(--cas2-arrow-width) solid currentColor !important;
  border-right:0 !important;
  border-radius:0 !important;
  flex:0 0 auto !important;
  pointer-events:none;
}
/* Bordered CTAs: align the label box and anchor the triangle at its exact middle.
   No change to width, height, font, padding, border or link/submit behaviour. */
body .button:has(> .button-arrow),
body .editor-primary:has(> span[aria-hidden="true"]),
body .editor-secondary:has(> span[aria-hidden="true"]),
body .cas2-control {
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
body .button > .button-arrow,
body .editor-primary > span[aria-hidden="true"],
body .editor-secondary > span[aria-hidden="true"],
body .cas2-control > .cas2-arrow {
  position:absolute !important;
  top:50% !important; bottom:auto !important; left:auto !important;
  right:clamp(9px, calc(17 * var(--u, 1px)), 17px) !important;
  transform:translateY(-50%) !important;
}
/* Plain-text article/category links and sitemap rows retain their layout type.
   These arrows stay in the flex row instead of being baseline-aligned glyphs. */
body .epp-more.cas2-inline,
body .epp-category-heading.cas2-inline,
body .smp-link, body .smp-category {
  display:flex !important; align-items:center !important; gap:8px;
}
body .epp-more.cas2-inline { justify-content:flex-end !important; }
body .epp-category-heading.cas2-inline { justify-content:flex-start !important; }
body .cas2-inline > .cas2-arrow,
body .smp-arrow {
  position:static !important; top:auto !important; right:auto !important;
  bottom:auto !important; left:auto !important; transform:none !important;
  align-self:center !important;
}
/* Leave chevrons, back-to-top, pagination, menu and image-embedded art alone. */
/* Explicitly preserve HTML's hidden state; no control is revealed by alignment. */
body .button[hidden], body .editor-primary[hidden], body .editor-secondary[hidden],
body .cas2-control[hidden], body .cas2-inline[hidden], body .cas2-arrow[hidden] { display:none !important; }
/* Auto-width editor buttons need room for the real triangle, not the old tiny
   glyph. Fixed-width public .button controls retain their existing padding. */
body .editor-primary.cas2-control,
body .editor-secondary.cas2-control,
body .editor-primary:has(> span[aria-hidden="true"]),
body .editor-secondary:has(> span[aria-hidden="true"]) {
  padding-inline:32px !important;
}
