/* Cosmopolitan University — OJS theme overrides */

/* ── Links ── */
a { color: #003366; }
a:hover, a:focus { color: #C9A84C; }

/* ── Primary navigation ── */
.pkp_navigation_primary a:hover,
.pkp_navigation_primary a:focus,
.pkp_navigation_primary li.current > a { color: #C9A84C; }

/* ── Buttons ── */
.pkp_button_primary,
.cmp_button,
button[type="submit"] {
    background: #003366;
    border-color: #003366;
    color: #fff;
}
.pkp_button_primary:hover,
.cmp_button:hover,
button[type="submit"]:hover {
    background: #C9A84C;
    border-color: #C9A84C;
    color: #fff;
}

/* ── Header ── */
.pkp_site_name a { color: #fff; }

/* ── Footer ── */
.pkp_structure_footer {
    border-top: 4px solid #C9A84C;
    background: #f8f8f8;
}

/* ── Tags / labels ── */
.pkp_block .label,
.pkp_tag { background: #C9A84C; color: #fff; }

/* ── Prevent horizontal overflow ── */
html, body { overflow-x: hidden; }
.pkp_structure_page { overflow-x: hidden; }

/* ── Landing page — full-width structure so journals align with the navbar ── */
body.pkp_page_index .pkp_structure_content,
body.pkp_page_index .pkp_structure_main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* ── Remove side border lines from pkp_structure_main ── */
.pkp_structure_main::before,
.pkp_structure_main::after { display: none !important; }

/* ════════════════════════════════════
   JOURNALS SECTION — landing page
   ════════════════════════════════════ */
.cu-journals-section {
    max-width: 1160px;
    margin: 0 auto;
    padding: 36px 32px 52px;
}
.cu-journals-section__header {
    text-align: center;
    margin-bottom: 40px;
}
.cu-journals-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #003366;
    margin: 0 0 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.cu-journals-section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: #C9A84C;
    border-radius: 2px;
}
.cu-journals-section__subtitle {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* ── Journal cards grid ── */
.cu-journal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.cu-journal-card {
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cu-journal-card:hover {
    box-shadow: 0 8px 28px rgba(0,51,102,0.13);
    transform: translateY(-3px);
}
.cu-journal-card__thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.cu-journal-card__body {
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 3px solid #C9A84C;
}
.cu-journal-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}
.cu-journal-card__name a {
    color: #003366;
    text-decoration: none;
}
.cu-journal-card__name a:hover { color: #C9A84C; }
.cu-journal-card__desc {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
}
.cu-journal-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}
.cu-journal-card__btn {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all .18s;
    white-space: nowrap;
}
.cu-journal-card__btn--primary {
    background: #003366;
    color: #fff !important;
    border: 2px solid #003366;
}
.cu-journal-card__btn--primary:hover {
    background: #C9A84C;
    border-color: #C9A84C;
    color: #002855 !important;
}
.cu-journal-card__btn--outline {
    border: 2px solid #003366;
    color: #003366 !important;
    background: transparent;
}
.cu-journal-card__btn--outline:hover {
    background: #003366;
    color: #fff !important;
}

/* ── No journals placeholder ── */
.cu-journals-empty {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}

@media (max-width: 600px) {
    .cu-journals-section { padding: 36px 16px 48px; }
    .cu-journal-cards { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════
   RESET OJS DEFAULT HEADER LAYOUT
   ════════════════════════════════════ */

/* OJS default theme positions user nav absolutely at top-center.
   We override this to put everything in one horizontal flex row. */
.pkp_structure_head { background: #003366; }

.pkp_head_wrapper {
    position: relative !important;
    padding-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    min-height: 72px !important;
    gap: 0 !important;
}

.pkp_site_name_wrapper {
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    display: flex !important;
    align-items: center;
    flex-shrink: 0 !important;
}

/* Hide original OJS user nav — replaced by cu-nav-user */
.pkp_navigation_user_wrapper { display: none !important; }

/* Primary nav wrapper — fills remaining space */
.pkp_site_nav_menu {
    position: static !important;
    width: auto !important;
    top: auto !important;
    background: transparent !important;
    left: auto !important;
    padding: 0 !important;
    flex: 1 !important;
}

/* ── Unified nav row ── */
.cu-nav-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 0;
}

/* cu-auth-items: Register/Login styled identically to primary nav items */
.cu-auth-items {
    display: flex !important;
    align-items: center;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* cu-journal-nav: Current/Archives/About — hidden on landing page */
.cu-journal-nav {
    display: flex;
    align-items: center;
    gap: 0;
}
body.cu-site-ctx .cu-journal-nav { display: none !important; }

/* Search icon */
.cu-nav-search {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    padding: 8px 10px;
    text-decoration: none;
    transition: color .15s;
}
.cu-nav-search:hover { color: #C9A84C; }

/* Undo has_site_logo extra padding — we handle height ourselves */
.pkp_head_wrapper { padding-top: 0 !important; }
.has_site_logo .pkp_head_wrapper { padding-top: 0 !important; }

.pkp_navigation_primary_row { display: flex !important; align-items: center !important; }
.pkp_navigation_primary_wrapper { display: flex !important; align-items: center !important; }

/* ════════════════════════════════════
   TOP BAR
   ════════════════════════════════════ */
.cu-topbar {
    background: #002855;
    border-bottom: 1px solid rgba(201,168,76,0.3);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}
.cu-topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}
.cu-topbar__text { display: flex; align-items: center; gap: 6px; }
.cu-topbar__text .fa { color: #C9A84C; font-size: 0.7rem; }

/* ════════════════════════════════════
   HEADER ENHANCEMENTS
   ════════════════════════════════════ */
.pkp_structure_head { padding: 0 !important; }
.pkp_head_wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 32px !important;
    min-height: 72px;
    box-sizing: border-box;
    width: 100%;
}

/* Logo + site name side by side */
.cu-logo-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}
.cu-logo-link img { flex-shrink: 0; }
.cu-site-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.cu-site-title strong {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}
.cu-site-title em {
    font-size: 0.72rem;
    font-style: normal;
    color: #C9A84C;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Nav menu */
.pkp_navigation_primary { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pkp_navigation_primary > li > a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li.current > a {
    background: rgba(201,168,76,0.15);
    color: #C9A84C !important;
}

/* User nav — Register & Login as buttons */
.pkp_navigation_user { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pkp_navigation_user li a {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 4px;
    text-decoration: none;
    transition: all .18s;
    white-space: nowrap;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.4);
}
.pkp_navigation_user li a:hover { border-color: #C9A84C; color: #C9A84C !important; }
/* Make the first user link (Register) gold-filled */
.pkp_navigation_user li:first-child a {
    background: #C9A84C;
    border-color: #C9A84C;
    color: #002855 !important;
}
.pkp_navigation_user li:first-child a:hover {
    background: #e0bf66;
    border-color: #e0bf66;
    color: #002855 !important;
}

/* Mobile toggle button */
.pkp_site_nav_toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    padding: 4px 10px;
}
@media (max-width: 767px) {
    .pkp_site_nav_toggle { display: block; }
    .cu-topbar { display: none; }
    .cu-site-title strong { font-size: 0.85rem; }
}

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
.cu-footer {
    background: #001a3a;
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    margin-top: 0;
}
.cu-footer__main {
    border-top: 4px solid #C9A84C;
    padding: 52px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.cu-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 900px) {
    .cu-footer__grid { grid-template-columns: 1fr 1fr; }
    .cu-footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
    .cu-footer__grid { grid-template-columns: 1fr; }
}

/* Brand column */
.cu-footer__logo-link {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 10px;
}
.cu-footer__brand-name {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 14px;
}
.cu-footer__brand-name em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 400;
    color: #C9A84C;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 3px;
}
.cu-footer__blurb {
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    margin: 0 0 16px;
    font-size: 0.83rem;
}
.cu-footer__social { display: flex; gap: 10px; }
.cu-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.4);
    color: #C9A84C;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all .18s;
}
.cu-footer__social-link:hover { background: #C9A84C; color: #002855; border-color: #C9A84C; }

/* Headings */
.cu-footer__heading {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #C9A84C;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

/* Link lists */
.cu-footer__links { list-style: none; margin: 0; padding: 0; }
.cu-footer__links li { margin-bottom: 9px; }
.cu-footer__links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color .15s;
    font-size: 0.84rem;
}
.cu-footer__links a:hover { color: #C9A84C; }

/* Contact list */
.cu-footer__contact { list-style: none; margin: 0; padding: 0; }
.cu-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 11px;
    color: rgba(255,255,255,0.65);
    font-size: 0.84rem;
    line-height: 1.5;
}
.cu-footer__contact .fa { color: #C9A84C; margin-top: 2px; flex-shrink: 0; }
.cu-footer__contact a { color: rgba(255,255,255,0.65); text-decoration: none; }
.cu-footer__contact a:hover { color: #C9A84C; }

/* Bottom bar */
.cu-footer__bottom {
    background: #001226;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 14px 20px;
}
.cu-footer__bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}
.cu-footer__pkp a { opacity: .6; transition: opacity .2s; }
.cu-footer__pkp a:hover { opacity: 1; }

@media (max-width: 767px) {
    .cu-nav-row { display: none; }
}

/* ════════════════════════════════════
   LANDING PAGE SECTIONS
   ════════════════════════════════════ */
.cu-section {
    padding: 60px 0;
    background: #fff;
}
.cu-section--alt { background: #f7f8fb; }
.cu-section--navy {
    background: linear-gradient(135deg, #002855 0%, #003366 100%);
    color: #fff;
}
.cu-section__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}
.cu-section__header {
    text-align: center;
    margin-bottom: 40px;
}
.cu-section__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #003366;
    margin: 0 0 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.cu-section__title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 48px; height: 3px;
    background: #C9A84C;
    border-radius: 2px;
}
.cu-section__title--light { color: #fff; }
.cu-section__title--light::after { background: #C9A84C; }
.cu-section__subtitle { color: #666; font-size: 0.92rem; margin: 0; }

/* ── People / Management cards ── */
.cu-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.cu-person-card {
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-top: 3px solid #C9A84C;
}
.cu-person-card__avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #003366;
    display: flex; align-items: center; justify-content: center;
    color: #C9A84C;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.cu-person-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #003366;
    margin: 0 0 4px;
}
.cu-person-card__role {
    font-size: 0.82rem;
    color: #555;
    margin: 0 0 2px;
}
.cu-person-card__note {
    font-size: 0.78rem;
    color: #C9A84C;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Senate cards ── */
.cu-senate-notice {
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 0.85rem;
    color: #5a4a20;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 32px;
}
.cu-senate-notice .fa { color: #C9A84C; margin-top: 2px; flex-shrink: 0; }
.cu-people-grid--senate {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.cu-senate-card {
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: 6px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.87rem;
}
.cu-senate-card__icon { color: #003366; font-size: 1.1rem; flex-shrink: 0; }
.cu-senate-card__name { font-weight: 700; color: #003366; margin: 0 0 2px; font-size: 0.88rem; }
.cu-senate-card__role { color: #888; margin: 0; font-size: 0.78rem; }

/* ── About Portal section ── */
.cu-about-portal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 768px) { .cu-about-portal { grid-template-columns: 1fr; gap: 32px; } }
.cu-about-portal__text p {
    color: rgba(255,255,255,0.8);
    line-height: 1.75;
    margin: 0 0 16px;
    font-size: 0.94rem;
}
.cu-about-portal__btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 28px;
    background: #C9A84C;
    color: #002855 !important;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background .18s;
}
.cu-about-portal__btn:hover { background: #e0bf66; }
.cu-about-portal__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cu-about-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
}
.cu-about-stat__num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #C9A84C;
    line-height: 1;
    margin-bottom: 8px;
}
.cu-about-stat__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.55);
}

/* ════════════════════════════════════
   LOGIN & REGISTER PAGES
   ════════════════════════════════════ */

/* White page, structure reset */
body.pkp_page_login .pkp_structure_content,
body.pkp_page_userRegister .pkp_structure_content {
    background: #fff !important;
    padding-top: 0 !important;
}
body.pkp_page_login .pkp_structure_main,
body.pkp_page_userRegister .pkp_structure_main {
    padding: 32px 16px 48px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}
body.pkp_page_login .breadcrumbs,
body.pkp_page_userRegister .breadcrumbs { display: none !important; }

/* ── Card ── */
.page_login,
.page_register {
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dde3ee;
    border-top: 3px solid #003366;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,51,102,0.09);
    overflow: hidden;
}
.page_register { max-width: 580px; }

/* ── Logo strip ── */
.cu-form-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px 14px;
    border-bottom: 1px solid #edf0f7;
}
.cu-form-brand img {
    flex-shrink: 0;
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    object-fit: contain;
}
.cu-form-brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.cu-form-brand__text strong { font-size: 0.9rem; font-weight: 700; color: #003366; }
.cu-form-brand__text span {
    font-size: 0.68rem; color: #C9A84C; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── Page title + hint ── */
.page_login > h1,
.page_register > h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003366;
    margin: 0;
    padding: 20px 28px 2px;
}
.page_login > p,
.page_register > p {
    font-size: 0.78rem;
    color: #999;
    margin: 0;
    padding: 0 28px 18px;
}

/* ── Form container ── */
.page_login .cmp_form,
.page_register .cmp_form {
    padding: 0 28px 24px !important;
    margin: 0 !important;
}

/* ── Error ── */
.pkp_form_error {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    border-left: 3px solid #dc3545;
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #721c24;
    margin-bottom: 14px;
}
.cu-form-notice {
    background: #eef3ff;
    border-left: 3px solid #003366;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 0.82rem;
    color: #003366;
    margin: 0 28px 12px;
}

/* ── Field spacing ── */
.cmp_form .fields { margin: 0; padding: 0; border: none; }
.cmp_form .username,
.cmp_form .password,
.cmp_form .fields > div { margin-bottom: 12px; }

/* ── Labels ── */
.cmp_form label { display: block; }
.cmp_form .label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}
.cmp_form .label .required { color: #C9A84C; margin-left: 2px; }

/* ── Inputs — full width, tall ── */
.cmp_form input[type="text"],
.cmp_form input[type="password"],
.cmp_form input[type="email"],
.cmp_form input[type="url"],
.cmp_form select,
.cmp_form textarea {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #ccd3e0;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #222;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.cmp_form textarea { height: auto; padding: 10px 14px; }
.cmp_form input[type="text"]:focus,
.cmp_form input[type="password"]:focus,
.cmp_form input[type="email"]:focus,
.cmp_form input[type="url"]:focus,
.cmp_form select:focus,
.cmp_form textarea:focus {
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0,51,102,0.08);
}

/* ── Forgot password ── */
.cmp_form .password a {
    display: inline-block;
    font-size: 0.75rem;
    color: #C9A84C;
    text-decoration: none;
    margin-top: 5px;
}
.cmp_form .password a:hover { text-decoration: underline; }

/* ── Checkboxes ── */
.cmp_form .remember { margin-bottom: 0; margin-top: 2px; }
.cmp_form .remember label,
.cmp_form .optin label,
.cmp_form .consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
}
.cmp_form input[type="checkbox"] {
    width: 14px; height: 14px;
    margin-top: 2px; flex-shrink: 0;
    accent-color: #003366;
}

/* ── Fieldset section headings ── */
.cmp_form fieldset { border: none; padding: 0; margin: 0 0 6px; }
.cmp_form fieldset > legend:not(.pkp_screen_reader) {
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #003366; border-bottom: 1px solid #e8edf5;
    padding-bottom: 6px; margin-bottom: 12px;
    display: block; width: 100%;
}

/* ── Journal contexts ── */
.cmp_form .context_role { margin-bottom: 8px; }
.cmp_form .context_role h3 { font-size: 0.85rem; font-weight: 600; color: #333; margin: 0 0 4px; }

/* ── Buttons ── */
.cmp_form .buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.page_login .cmp_form .buttons,
.page_register .cmp_form .buttons { flex-direction: column; align-items: stretch; gap: 10px; }

button.submit,
.cmp_form .buttons button[type="submit"] {
    width: 100%;
    height: 44px;
    padding: 0;
    background: #003366;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s;
    letter-spacing: 0.02em;
}
button.submit:hover,
.cmp_form .buttons button[type="submit"]:hover { background: #C9A84C; color: #002855; }

.cmp_form .buttons a.register,
.cmp_form .buttons a.login {
    font-size: 0.82rem;
    color: #003366;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}
.cmp_form .buttons a:hover { color: #C9A84C; text-decoration: underline; }

/* ── Select arrow ── */
.cmp_form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23555' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
