/*
 * sentraOjs 1.0.90 — uniform outer card radius
 * Source of truth: @sentra-radius = 8px (styles/index.less).
 * Main homepage cards and sidebar OJS Custom Block cards share this one radius.
 * Loaded after journal-menu-v89.css to override older radius:9px/18px rules.
 */
:root { --sentra-outer-card-radius: 8px; }

/* Main column: match the existing theme token explicitly. */
body .pkp_structure_main .sentra-home-section,
body .pkp_structure_main .sentra-articles-section {
  border-radius: var(--sentra-outer-card-radius) !important;
}

/* The OJS block itself is the outer panel. Do not round each nested body. */
body .pkp_structure_sidebar > .pkp_block,
body .pkp_structure_sidebar .pkp_block.block_custom,
body .pkp_structure_sidebar .pkp_block.custom,
body .pkp_structure_sidebar > .block_custom,
body .pkp_structure_sidebar > [id^="customblock-"],
body .pkp_structure_sidebar > [id*="customblock"],
body .pkp_structure_sidebar > .sentra-widget,
body .pkp_structure_sidebar > .sentra-side-card,
body .pkp_structure_sidebar .sentra-jmenu-block-v84.sentra-jmenu-block-v84,
body .pkp_structure_sidebar .sentra-template-rebuilt-v65.sentra-template-rebuilt-v65,
body .pkp_structure_sidebar .sentra-analytics-rebuilt-v66.sentra-analytics-rebuilt-v66,
body .pkp_structure_sidebar .sentra-info-rebuilt-v66.sentra-info-rebuilt-v66,
body .pkp_structure_sidebar .sentra-index-rebuilt-v64.sentra-index-rebuilt-v64,
body .pkp_structure_sidebar .sentra-index-rebuilt-v63.sentra-index-rebuilt-v63,
body .pkp_structure_sidebar .sentra-side-card.sentra-side-card {
  border-radius: var(--sentra-outer-card-radius) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Nested Journal Menu: allow the parent to clip its own top and bottom corners. */
body .pkp_structure_sidebar .sentra-jmenu-block-v84 > .content,
body .pkp_structure_sidebar .sentra-jmenu-block-v84 .sentra-jmenu-v84 {
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* A nested header should not draw a second, differently curved rectangle. */
body .pkp_structure_sidebar .sentra-jmenu-heading-v84,
body .pkp_structure_sidebar > .pkp_block > .title,
body .pkp_structure_sidebar > .block_custom > .title,
body .pkp_structure_sidebar .sentra-template-head-v65,
body .pkp_structure_sidebar .sentra-analytics-head-v66,
body .pkp_structure_sidebar .sentra-info-head-v66 {
  border-radius: 0 !important;
}

/* Keep custom block cards in a common system, even if rebuilt by JS. */
body .pkp_structure_sidebar .sentra-template-card-v65,
body .pkp_structure_sidebar .sentra-analytics-card-v66,
body .pkp_structure_sidebar .sentra-info-card-v66,
body .pkp_structure_sidebar .sentra-index-card-v64 {
  border-radius: 0 !important;
}

/* No changes to internal accordion row radius, buttons, or thumbnails. */
