/* Upcuan 1.0.0.44 — unified spacing patch for OJS 3.4.0.8.
 * Loaded after all previous versioned CSS; scoped to the public theme.
 * Does not change colour, typography families, navigation or widget styling.
 */
:root {
  --upc-space-section: 28px;
  --upc-space-block: 18px;
  --upc-space-copy: 12px;
}
/* Reduce excessive hero height while allowing longer admin-managed content
 * to grow naturally rather than being cropped. */
#hero.hero-section,
#hero.hero-section > .container.hero-container {
  height: auto !important;
  min-height: 620px !important;
}
#hero.hero-section > .container.hero-container {
  padding-top: 125px !important;
  padding-bottom: 155px !important;
}
#hero.hero-section .hero-row { padding-top: 0 !important; }
#hero.hero-section .hero-copy h1,
#hero.hero-section .upc-hero-admin-content h1 { margin-bottom: 18px !important; }
#hero.hero-section .hero-description { margin-bottom: 22px !important; }
#hero.hero-section .upc-hero-admin-content h2 { margin-bottom: 14px !important; }
#hero.hero-section .upc-hero-admin-content h3 { margin-bottom: 12px !important; }
#hero.hero-section .upc-hero-admin-content p { margin-bottom: 12px !important; }
#hero.hero-section .upc-hero-admin-content p > a:only-child { margin-top: 8px !important; }
/* Same inner header is shared by issues, article, archives, announcements,
 * about, and journal-created static pages. */
.upc-main > .hero-section.inner-page {
  height: 330px !important;
  min-height: 330px !important;
  max-height: none !important;
}
.upc-main > .hero-section.inner-page .hero-text {
  transform: translateY(-28px) !important;
}
.upc-main > .hero-section.inner-page h1 {
  line-height: 1.2 !important;
  overflow-wrap: anywhere;
}
/* Constrain generic page rhythm without collapsing gallery, tables or forms. */
.upc-main > .hero-section.inner-page ~ .page,
.upc-main > .hero-section.inner-page ~ [class^="page_"],
.upc-main > .hero-section.inner-page ~ [class*=" page_"],
.upc-main > .hero-section.inner-page ~ .obj_article_details {
  padding-top: 22px !important;
  padding-bottom: 36px !important;
}
.upc-main > .page .cmp_breadcrumbs,
.upc-main > [class^="page_"] .cmp_breadcrumbs,
.upc-main > .obj_article_details .cmp_breadcrumbs {
  margin-bottom: 14px !important;
}
.upc-main > .page h1.page_title,
.upc-main > [class^="page_"] h1.page_title,
.upc-main > .obj_article_details h1.page_title {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}
/* Archive grid and content sections. Keep native responsive column widths. */
.upc-main .page_issue_archive .gap-y-10 { row-gap: 24px !important; }
.upc-main .page_issue_archive .mt-6 { margin-top: 18px !important; }
.upc-main .page_issue_archive .issues_archive { gap: 22px !important; }
.upc-main .page_issue .obj_issue_toc > .heading { margin-bottom: 18px !important; }
.upc-main .page_issue .obj_issue_toc .sections { margin-top: 20px !important; }
/* Article metadata: padding is controlled by the theme's Tailwind-like
 * utility classes; target rows only, not gallery buttons or author names. */
.upc-main .obj_article_details dl > div.py-6 { padding-top: 16px !important; padding-bottom: 16px !important; }
.upc-main .obj_article_details dl > div.py-6 li.py-4 { padding-top: 10px !important; padding-bottom: 10px !important; }
.upc-main .obj_article_details .mt-6 { margin-top: 18px !important; }
/* Public home page spacing, preserving content blocks and cover proportions. */
.upc-main .page_index_journal { padding-bottom: 38px !important; }
.upc-main .page_index_journal > .additional_content { padding-bottom: 30px !important; }
.upc-main .cmp_announcements { padding-top: 32px !important; padding-bottom: 30px !important; }
.upc-main .current_issue { padding-top: 35px !important; padding-bottom: 26px !important; }
/* Sidebar / footer: don't alter column widths or theme colours. */
.upc-sidebar-zone { margin-top: 12px !important; padding-top: 20px !important; padding-bottom: 22px !important; }
.footer { padding-top: 30px !important; padding-bottom: 32px !important; }
@media (max-width: 991.98px) {
  #hero.hero-section, #hero.hero-section > .container.hero-container { min-height: 600px !important; }
  #hero.hero-section > .container.hero-container { padding-top: 110px !important; padding-bottom: 175px !important; }
  #hero.hero-section .hero-copy h1 { margin-top: 0 !important; }
  .upc-main > .hero-section.inner-page { height: 290px !important; min-height: 290px !important; }
  .upc-main > .hero-section.inner-page .hero-text { transform: translateY(-18px) !important; }
}
@media (max-width: 767.98px) {
  #hero.hero-section, #hero.hero-section > .container.hero-container { min-height: 550px !important; }
  #hero.hero-section > .container.hero-container { padding-top: 95px !important; padding-bottom: 155px !important; }
  .upc-main > .hero-section.inner-page { height: 260px !important; min-height: 260px !important; }
  .upc-main > .hero-section.inner-page .hero-text { transform: translateY(-12px) !important; }
  .upc-main > .hero-section.inner-page h1 { font-size: 2rem !important; }
  .upc-main > .hero-section.inner-page ~ .page,
  .upc-main > .hero-section.inner-page ~ [class^="page_"],
  .upc-main > .hero-section.inner-page ~ [class*=" page_"],
  .upc-main > .hero-section.inner-page ~ .obj_article_details {
    padding-top: 16px !important;
    padding-bottom: 26px !important;
  }
  .upc-main .cmp_announcements { padding-top: 26px !important; padding-bottom: 25px !important; }
  .upc-main .current_issue { padding-top: 28px !important; }
}
@media (max-width: 575.98px) {
  #hero.hero-section, #hero.hero-section > .container.hero-container { min-height: 520px !important; }
  #hero.hero-section > .container.hero-container { padding-top: 90px !important; padding-bottom: 145px !important; }
  .upc-main > .hero-section.inner-page { height: 240px !important; min-height: 240px !important; }
  .upc-main > .hero-section.inner-page h1 { font-size: 1.75rem !important; }
}
