/*
 * Catrawarta Homepage Consistency — v5.7.4
 * Final presentation layer for shared geometry only.
 * No queries, layout order, content, or behavior are changed here.
 */
body.home.catra-home-editorial{
  --catra-home-card-radius:4px;
  --catra-home-media-radius:4px;
  --catra-home-control-radius:4px;
}

/* One restrained corner radius for every visible homepage card / rectangular box. */
body.home.catra-home-editorial :is(
  .catra-home-top-featured .catra-top-panel,
  .catra-home-top-featured .mc-hs2-post--featured,
  .catra-home-top-featured .mc-hs2-post--side,
  .catra-editors-only .mc-ep-wrap,
  .catra-editors-only .mc-ep-card,
  .catra-flash-custom .catra-flash-card,
  .catra-popular-showcase-card,
  .catra-story-card,
  .catra-category-card-link,
  .catra-shortcode-skin-topic,
  .catra-popular-source-switch,
  .catra-popular-source-btn,
  .catra-read-more
){
  border-radius:var(--catra-home-card-radius)!important;
}

/* Media inside rectangular cards follows the same restrained radius language. */
body.home.catra-home-editorial :is(
  .catra-home-top-featured .mc-hs2-post--side .mc-hs2-thumb-link,
  .catra-home-top-featured .mc-hs2-post--side .mc-hs2-img,
  .catra-story-media,
  .catra-category-media
){
  border-radius:var(--catra-home-media-radius)!important;
}

/* Top media of cards with a separate body: only the top corners are rounded. */
body.home.catra-home-editorial :is(
  .catra-home-top-featured .mc-hs2-post--featured .mc-hs2-thumb-link,
  .catra-home-top-featured .mc-hs2-col--featured .mc-hs2-img,
  .catra-editors-only .mc-ep-thumb
){
  border-radius:var(--catra-home-card-radius) var(--catra-home-card-radius) 0 0!important;
}
