:root {
  --am-radius-control: 6px;
  --am-radius-photo: 10px;
  --am-radius-panel: 12px;
  --am-photo-shadow: 0 12px 28px rgba(16,30,34,.18);
  --am-preview-shadow: 0 20px 40px rgba(0,0,0,.48), 0 5px 14px rgba(0,0,0,.3);
}

/* Shared corners on real controls, including native WordPress/theme controls. */
body :is(button, input[type="submit"], input[type="button"], input[type="reset"],
  .button, .wp-block-button__link, .wp-element-button, .kt-button,
  a[role="button"], .wp-block-file__button,
  .am-hero-link, .am-community-link, .am-find-tabs > a, .page-numbers) {
  border-radius: var(--am-radius-control) !important;
}
.primary > ul > li:last-child > a { border-radius: var(--am-radius-control) !important; }
body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select) {
  border-radius: var(--am-radius-control) !important;
}
body .am-hero .am-hero-preview {
  border-radius: var(--am-radius-photo) !important;
  box-shadow: var(--am-preview-shadow);
}
body .am-hero .am-hero-arrow { border-radius: 50% !important; }
.am-explore-menu { border-radius: var(--am-radius-panel); }

/* Clip image overlays with the photograph; full-bleed hero backgrounds stay edge-to-edge. */
:is(.am-find-photo, .story-photo, .map-photo) {
  border-radius: var(--am-radius-photo);
  overflow: hidden;
}
.am-find-photo { box-shadow: var(--am-photo-shadow); }
:is(.am-find-community, .am-quiz-board, .season) { border-radius: var(--am-radius-panel); overflow: hidden; }
:is(.profile, .writer-photos, .wp-block-image, .entry-content figure, .article-body figure, .am-post-body figure) img {
  border-radius: var(--am-radius-photo);
}

/* WordPress adds neutral group wrappers that must not become a grid column. */
.guide-layout > .wp-block-group__inner-container,
.article-body > .wp-block-group__inner-container { display: contents; }
.guide-layout > .wp-block-group__inner-container > :is(.guide-contents, .article-body) { margin-block: 0; }

/* About is a short page: its contents links scroll with the biographies. */
.page-about-absolute-munich .guide-contents { position: static; inset: auto; }

/* Two compact author columns need more room beside a contents sidebar. */
@media (min-width: 55rem) and (max-width: 69.99rem) {
  .page-about-absolute-munich .profiles { grid-template-columns: 1fr; }
}
