/* v0.0.0.45 — Safe active-theme inheritance layer.
 * Theme inheritance is deliberately limited to presentation accents such as
 * typography, text/icons, links, buttons and form controls. It MUST NOT make
 * plugin panels/cards transparent or allow a theme page/background colour to
 * flood the plugin module. Structural surfaces and responsive layout remain
 * owned by the plugin.
 */
.goshp-theme-mode-hybrid,
.goshp-theme-mode-inherit{font-family:inherit!important;color:inherit!important}

/* Typography only. */
.goshp-theme-mode-hybrid.goshp-inherit-typography *,
.goshp-theme-mode-inherit.goshp-inherit-typography *{font-family:inherit!important}

/* Theme colour inheritance applies to text, headings, icons and link accents.
 * Do not alter module/card/filter/no-result backgrounds here. */
.goshp-theme-mode-hybrid.goshp-inherit-colours :is(
  .goshp-directory-header h2,.goshp-directory-header p,.goshp-directory-kicker,
  .goshp-article-heading h2,.goshp-article-heading p,.goshp-section-heading h2,.goshp-section-heading p,
  .goshp-heading-with-icon,.goshp-heading-with-icon .fa,
  .goshp-journal-card h3 a,.goshp-article-card h3 a,
  .goshp-journal-description,.goshp-article-authors,.goshp-article-meta,.goshp-article-abstract,
  .goshp-result-summary,.goshp-announcement-card h3,.goshp-archive-directory h3
),
.goshp-theme-mode-inherit.goshp-inherit-colours :is(
  .goshp-directory-header h2,.goshp-directory-header p,.goshp-directory-kicker,
  .goshp-article-heading h2,.goshp-article-heading p,.goshp-section-heading h2,.goshp-section-heading p,
  .goshp-heading-with-icon,.goshp-heading-with-icon .fa,
  .goshp-journal-card h3 a,.goshp-article-card h3 a,
  .goshp-journal-description,.goshp-article-authors,.goshp-article-meta,.goshp-article-abstract,
  .goshp-result-summary,.goshp-announcement-card h3,.goshp-archive-directory h3
){color:inherit!important}

/* Preserve plugin-owned neutral surfaces in BOTH inherit and hybrid modes.
 * This is the v0.0.0.45 correction for themes whose page/background colour
 * otherwise became the module background. */
.goshp-theme-mode-hybrid :is(.goshp-hub-component,.goshp-journal-card,.goshp-article-card,.goshp-announcement-card,.goshp-archive-journal,.goshp-apc-card,.goshp-scope-result,.goshp-article-filters,.goshp-no-results),
.goshp-theme-mode-inherit :is(.goshp-hub-component,.goshp-journal-card,.goshp-article-card,.goshp-announcement-card,.goshp-archive-journal,.goshp-apc-card,.goshp-scope-result,.goshp-article-filters,.goshp-no-results){background-color:#fff!important}

/* Keep intentionally soft plugin surfaces neutral instead of inheriting a
 * full-page theme colour. */
.goshp-theme-mode-hybrid .goshp-article-filters,
.goshp-theme-mode-inherit .goshp-article-filters{background-color:#f5f9fc!important}
.goshp-theme-mode-hybrid .goshp-no-results,
.goshp-theme-mode-inherit .goshp-no-results{background-color:#fafcfd!important}

/* Button/menu-style controls: inherit typography/accent text, but keep a
 * neutral readable surface. This allows active-theme colour to influence the
 * control without turning the whole plugin background into the theme colour. */
.goshp-theme-mode-hybrid.goshp-inherit-buttons :is(button,.goshp-journal-btn,.goshp-filter-apply,.goshp-filter-clear,.goshp-read-article,.goshp-pdf-link,.goshp-read-more,.goshp-view-all,.goshp-action-primary,.goshp-action-secondary,.goshp-action-submit),
.goshp-theme-mode-inherit.goshp-inherit-buttons :is(button,.goshp-journal-btn,.goshp-filter-apply,.goshp-filter-clear,.goshp-read-article,.goshp-pdf-link,.goshp-read-more,.goshp-view-all,.goshp-action-primary,.goshp-action-secondary,.goshp-action-submit){background-color:#fff!important;color:inherit!important;border:1px solid currentColor!important;box-shadow:none!important;font-family:inherit!important}

/* Active alphabetical/pagination controls remain clearly selected. */
.goshp-theme-mode-hybrid.goshp-inherit-buttons :is(.goshp-alphabet button.is-active,.goshp-pagination button.is-active),
.goshp-theme-mode-inherit.goshp-inherit-buttons :is(.goshp-alphabet button.is-active,.goshp-pagination button.is-active){font-weight:800!important;box-shadow:inset 0 -2px 0 currentColor!important}

/* Form controls inherit font/text while keeping a white input surface for
 * readability regardless of active theme background. */
.goshp-theme-mode-hybrid.goshp-inherit-forms :is(input,select,textarea),
.goshp-theme-mode-inherit.goshp-inherit-forms :is(input,select,textarea){font:inherit!important;color:inherit!important;background-color:#fff!important;border-color:#cbd5e1!important;box-shadow:none!important}

/* Content width remains explicitly opt-in. */
.goshp-theme-mode-hybrid.goshp-inherit-content-width,
.goshp-theme-mode-inherit.goshp-inherit-content-width{max-width:100%!important;width:auto!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}
.goshp-theme-mode-hybrid.goshp-inherit-content-width .goshp-module-main,
.goshp-theme-mode-inherit.goshp-inherit-content-width .goshp-module-main{max-width:100%!important;width:100%!important}

/* Never interfere with semantic scope match/status colours. */
.goshp-theme-mode-hybrid :is(.goshp-scope-match-badge,.goshp-scope-directory-match-badge,.goshp-journal-status,.goshp-featured-badge),
.goshp-theme-mode-inherit :is(.goshp-scope-match-badge,.goshp-scope-directory-match-badge,.goshp-journal-status,.goshp-featured-badge){font-family:inherit!important}

@media(max-width:760px){
  .goshp-theme-mode-hybrid.goshp-keep-responsive-layout,
  .goshp-theme-mode-inherit.goshp-keep-responsive-layout{max-width:100%!important;box-sizing:border-box!important}
}
