/* =====================================================================
   Tudor Journals — main stylesheet
   Design tokens extracted from the supplied screenshots
   ===================================================================== */

:root {
    /* Brand */
    --tj-navy-900: #0f1535;
    --tj-navy-800: #1a2456;
    --tj-navy-700: #1e2a5e;
    --tj-navy-600: #243175;
    --tj-blue-600: #4f5ec5;
    --tj-blue-500: #5b6dd1;
    --tj-blue-400: #7c8ee0;
    --tj-blue-100: #e6e9fa;

    /* Neutrals */
    --tj-bg:       #f5f6fa;
    --tj-surface:  #ffffff;
    --tj-border:   #e2e6ef;
    --tj-text:     #1a202c;
    --tj-muted:    #64748b;

    /* Status */
    --tj-success-bg: #d1fae5;
    --tj-success-fg: #065f46;
    --tj-warning-bg: #fef3c7;
    --tj-warning-fg: #92400e;
    --tj-danger-bg:  #fee2e2;
    --tj-danger-fg:  #991b1b;
    --tj-info-bg:    #dbeafe;
    --tj-info-fg:    #1e40af;

    /* Misc */
    --tj-radius:   10px;
    --tj-radius-sm: 6px;
    /* Visual rule: no shadows.
       The legacy variables are kept as `none` so every selector that
       references them via `box-shadow: var(--tj-shadow*)` resolves to
       no shadow without having to edit each one individually. */
    --tj-shadow-sm: none;
    --tj-shadow:    none;
    --tj-shadow-lg: none;

    --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: var(--font-sans);  /* unified — single font across the whole site */
}

/* ---- Base ----------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--tj-text);
    background: var(--tj-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--tj-blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--tj-text); margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.text-center { text-align: center; }
.muted { color: var(--tj-muted); }

/* ---- Header / Nav -------------------------------------------------- */
.site-header {
    background: var(--tj-navy-800);
    color: #fff;
    padding: 1rem 0;
    position: sticky; top: 0; z-index: 50;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand {
    display: inline-flex; align-items: center; gap: 1rem;
    color: #fff; padding: .25rem 0;
}
.brand:hover { text-decoration: none; }
.brand:hover .brand-name { color: #fff; }
.brand:hover .brand-monogram { border-color: rgba(255,255,255,.45); }

/* Elegant typographic monogram — thin circle with serif initials.
   Replaces the old rounded-square logo image. Pure CSS, no asset. */
.brand-monogram {
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    position: relative;
}
.brand-monogram > span {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: .02em;
    line-height: 1;
    /* subtle gold tint on the second initial via background-clip */
}
.brand-monogram::after {
    /* tiny accent dot bottom-right, gold */
    content: '';
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #fbbf24;
    right: -2px; bottom: 1px;
}

.brand-text {
    line-height: 1.15;
    display: flex; flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, .18);
    padding-left: 1rem;
}
.brand-name {
    font-family: var(--font-serif);
    font-size: 1.35rem; font-weight: 700;
    color: #fff; letter-spacing: -.01em;
    display: block;
}
.brand-tagline {
    font-size: .58rem; font-weight: 500;
    color: rgba(255, 255, 255, .72);
    text-transform: uppercase; letter-spacing: .12em;
    margin-top: .2rem;
}
/* Hide the long tagline on narrower viewports — header only.
   Footer keeps it (rendered at a different size below). */
@media (max-width: 1100px) {
    .site-header .brand-tagline { display: none; }
}

/* Footer brand — white on the dark footer background. */
.brand--footer { color: #fff; gap: .85rem; }
.brand--footer .brand-monogram {
    width: 40px; height: 40px;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}
.brand--footer .brand-text {
    border-left: 1px solid rgba(255, 255, 255, .18);
    padding-left: .85rem;
}
.brand--footer .brand-name { color: #fff; font-size: 1.15rem; }
.brand--footer .brand-tagline {
    color: rgba(255, 255, 255, .72);
    font-size: .62rem;
    letter-spacing: .12em;
}

@media (max-width: 540px) {
    .brand { gap: .65rem; }
    .brand-text { padding-left: .75rem; }
    .brand-name { font-size: 1.1rem; }
    .brand-tagline { font-size: .62rem; letter-spacing: .1em; }
}

.nav-main { display: flex; align-items: center; gap: .25rem; }
.nav-main a {
    color: rgba(255,255,255,.85);
    padding: .55rem 1.1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-main a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav-main a.active { background: var(--tj-blue-600); color: #fff; }

.nav-actions { display: flex; gap: .75rem; align-items: center; }

/* Logged-in chip in the public header (replaces "Dashboard" button) */
.nav-userchip {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .35rem .9rem .35rem .4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .25);
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .15s;
}
.nav-userchip:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .55); }
.nav-userchip-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff; font-weight: 700; font-size: .8rem;
    letter-spacing: .03em;
    font-family: var(--font-sans, inherit);
    flex-shrink: 0;
}
.nav-userchip-greeting {
    display: inline-flex; flex-direction: column;
    line-height: 1.15;
    color: #fff;
}
.nav-userchip-greeting-label {
    font-size: .68rem; font-weight: 500;
    color: rgba(255, 255, 255, .7);
    letter-spacing: .02em;
}
.nav-userchip-greeting-name {
    font-size: .88rem; font-weight: 600; color: #fff;
    max-width: 140px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 600px) {
    .nav-userchip-greeting { display: none; }
    .nav-userchip { padding: 0; width: 40px; height: 40px; justify-content: center; }
    .nav-userchip-avatar { background: transparent; }
}

/* ---- Buttons ------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .7rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600; font-size: .95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    line-height: 1.2;
}
.btn:hover { text-decoration: none; filter: brightness(0.95); }
.btn-primary       { background: var(--tj-blue-600); color: #fff; }
.btn-primary:hover { background: var(--tj-blue-500); color: #fff; }
.btn-light         { background: #fff; color: var(--tj-navy-800); }
.btn-light:hover   { background: #f0f1f5; color: var(--tj-navy-800); }
.btn-outline       { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-outline-dark  { background: transparent; color: var(--tj-blue-600); border-color: var(--tj-blue-600); }
.btn-outline-dark:hover { background: var(--tj-blue-100); color: var(--tj-blue-600); }
.btn-block         { width: 100%; }
.btn-lg            { padding: .9rem 1.6rem; font-size: 1rem; }

/* ---- Hero ---------------------------------------------------------- */
.hero {
    /* Drop a photo at assets/images/home-hero.jpg (any tasteful library /
       manuscripts / lab photo). Layered: blue overlay first, then the image.
       The gradient stays as fallback when the file is missing — no broken
       layout regardless. */
    background:
        linear-gradient(
            135deg,
            rgba(30, 27, 75, .90) 0%,
            rgba(67, 56, 202, .82) 55%,
            rgba(79, 70, 229, .72) 100%
        ),
        url('../images/home-hero.jpg') center / cover no-repeat,
        linear-gradient(135deg, var(--tj-navy-800) 0%, var(--tj-blue-600) 100%);
    color: #fff;
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.10), transparent 55%);
    pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero h1 { color: #fff; font-size: 3.25rem; margin-bottom: 1.25rem; }
.hero p.lead { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.search-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 1.75rem;
    backdrop-filter: blur(8px);
}
.search-card h3 {
    color: #fff; font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600;
    display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
}
.search-form { display: flex; gap: .5rem; }
.search-form input {
    flex: 1; padding: .8rem 1rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    color: #fff;
    font-size: .95rem;
}
.search-form input::placeholder { color: rgba(255,255,255,.55); }
.search-form input:focus { outline: none; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); }
.search-form button {
    background: rgba(255,255,255,.18); color: #fff; border: 0; padding: 0 1.1rem;
    border-radius: 8px; cursor: pointer; font-size: 1rem;
}
.search-form button:hover { background: rgba(255,255,255,.28); }

.search-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.search-pills a {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .85rem;
}
.search-pills a:hover { background: rgba(255,255,255,.2); text-decoration: none; }

/* ---- Stats strip --------------------------------------------------- */
.stats {
    background: var(--tj-navy-900);
    color: #fff;
    padding: 2.5rem 0;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center;
}
.stat-num { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.stat-label { color: rgba(255,255,255,.65); margin-top: .35rem; font-size: .95rem; }

/* ---- Section heads ------------------------------------------------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p  { color: var(--tj-muted); font-size: 1.05rem; }

/* ---- Journal cards ------------------------------------------------- */
.journals-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem;
}
.journal-card {
    background: var(--tj-surface);
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius);
    padding: 1.75rem;
    border-top: 4px solid var(--tj-blue-600);
    display: flex; flex-direction: column;
    transition: border-color .15s;
}
.journal-card:hover { border-color: var(--tj-blue-400); }
.journal-card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.journal-card h3 a { color: var(--tj-text); }
.journal-card .meta {
    color: var(--tj-blue-600);
    font-size: .9rem; margin-bottom: 1rem;
    display: flex; gap: .75rem; align-items: center;
}
.journal-card .description {
    color: var(--tj-muted); font-size: .95rem; margin-bottom: 1.25rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.journal-card .badges { margin-top: auto; display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.journal-card-cover { display: block; margin: -1.75rem -1.75rem 1.25rem; overflow: hidden; }
.journal-card-cover img { width: 100%; height: 200px; object-fit: cover; display: block; }
/* image zoom on hover removed per visual policy */
.journal-cover-img { width: 200px; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; display: block; }

/* ---- Badges -------------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 500;
}
.badge-area    { background: var(--tj-blue-100); color: var(--tj-blue-600); }
.badge-success { background: var(--tj-success-bg); color: var(--tj-success-fg); }
.badge-warning { background: var(--tj-warning-bg); color: var(--tj-warning-fg); }
.badge-danger  { background: var(--tj-danger-bg); color: var(--tj-danger-fg); }
.badge-info    { background: var(--tj-info-bg); color: var(--tj-info-fg); }

/* ---- Features ------------------------------------------------------ */
.features-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.feature-card {
    background: var(--tj-surface);
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius);
    padding: 2rem 1.5rem;
    text-align: center;
}
.feature-icon {
    width: 56px; height: 56px;
    background: var(--tj-blue-100);
    color: var(--tj-blue-600);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
}
.feature-card h3 { font-family: var(--font-sans); font-size: 1.1rem; margin-bottom: .75rem; }
.feature-card p  { color: var(--tj-muted); font-size: .95rem; margin: 0; }

/* ---- CTA strip ----------------------------------------------------- */
.cta-strip {
    background: linear-gradient(135deg, var(--tj-navy-800), var(--tj-blue-600));
    color: #fff; padding: 5rem 0; text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 1rem; }
.cta-strip p  { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 2rem; }
.cta-strip .btn-light { color: var(--tj-navy-800); }

/* ---- Footer -------------------------------------------------------- */
.site-footer {
    background: var(--tj-navy-900);
    color: rgba(255, 255, 255, .72);
    padding: 4rem 0 1.5rem;
    /* Subtle blue→purple top edge to echo the brand without using a shadow. */
    border-top: 3px solid var(--tj-blue-600);
}
.site-footer h4 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: .78rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---- Modern footer (2-zone layout) -------------------------------- */
.site-footer--modern .footer-top {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
.site-footer--modern .footer-brand { max-width: 360px; }
.site-footer--modern .footer-blurb {
    color: rgba(255, 255, 255, .65);
    font-size: .92rem;
    line-height: 1.55;
    margin: 1.25rem 0 1rem;
}
.site-footer--modern .footer-contact { margin: 0; font-size: .9rem; }
.site-footer--modern .footer-contact a {
    color: #fbbf24;
    border-bottom: 1px solid rgba(251, 191, 36, .4);
    padding-bottom: 1px;
}
.site-footer--modern .footer-contact a:hover { border-bottom-color: #fbbf24; text-decoration: none; }

.site-footer--modern .footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

/* Accent rule between top and bottom zones */
.footer-rule {
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, .04) 0%,
        rgba(255, 255, 255, .22) 50%,
        rgba(255, 255, 255, .04) 100%
    );
    margin: 0 0 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, .55);
    font-size: .82rem;
}
.footer-bottom .footer-meta { color: rgba(255, 255, 255, .45); }
.footer-bottom .footer-meta a { color: rgba(255, 255, 255, .62); }
.footer-bottom .footer-meta a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
    .site-footer--modern .footer-top {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .site-footer--modern .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.25rem; }
}
@media (max-width: 540px) {
    .site-footer { padding: 3rem 0 1.5rem; }
    .site-footer--modern .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Journal detail header ---------------------------------------- */
.journal-header {
    background: linear-gradient(135deg, var(--tj-navy-800), var(--tj-blue-600));
    color: #fff;
    padding: 3rem 0;
}
.journal-header-grid {
    display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; align-items: flex-start;
}
.journal-cover {
    background: #c0392b; color: #fff;
    border-radius: 8px;
    padding: 1.25rem 1rem;
    text-align: center;
    aspect-ratio: 3/4;
    display: flex; flex-direction: column; justify-content: space-between;
}
.journal-cover .label { font-size: .75rem; opacity: .8; }
.journal-cover .title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; }
.journal-header h1 { color: #fff; font-size: 2.5rem; margin: 1rem 0 .5rem; }
.journal-header .badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.journal-header .meta-row { display: flex; flex-wrap: wrap; gap: 1.5rem; color: rgba(255,255,255,.85); font-size: .95rem; }
.journal-header .meta-row span { display: inline-flex; align-items: center; gap: .4rem; }

/* Two-column journal page */
.journal-body {
    display: grid; grid-template-columns: 2fr 1fr; gap: 2rem;
    padding-top: 3rem; padding-bottom: 3rem;
    /* keep horizontal padding from .container — don't override it */
}
.tabs {
    background: var(--tj-surface);
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius);
    overflow: hidden;
}
.tab-bar { display: flex; gap: 0; border-bottom: 1px solid var(--tj-border); padding: 0 1rem; }
.tab-bar button {
    background: none; border: 0; padding: 1rem 1.25rem;
    font-family: inherit; font-size: .95rem; font-weight: 500;
    color: var(--tj-muted); cursor: pointer;
    border-bottom: 2px solid transparent;
}
.tab-bar button.active { color: var(--tj-text); border-bottom-color: var(--tj-blue-600); }
.tab-pane { display: none; padding: 1.75rem; }
.tab-pane.active { display: block; }

.sidebar-card {
    background: var(--tj-surface);
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-card h3 { font-family: var(--font-sans); font-size: 1.1rem; margin-bottom: 1rem; }
.sidebar-card .info-block { margin-bottom: 1rem; }
.sidebar-card .info-block .label { font-size: .8rem; color: var(--tj-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }
.sidebar-card .info-block .value { font-weight: 500; }

/* ---- Forms (auth + generic) --------------------------------------- */
.auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth-card {
    background: var(--tj-surface);
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius);
    padding: 2.5rem;
    width: 100%; max-width: 460px;
}
.auth-card h1 { font-size: 2rem; margin-bottom: .5rem; text-align: center; }
.auth-card .sub { color: var(--tj-muted); text-align: center; margin-bottom: 2rem; }
.auth-card .auth-foot { text-align: center; margin-top: 1.25rem; color: var(--tj-muted); font-size: .9rem; }

.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .4rem; color: var(--tj-text); }
.form-control {
    width: 100%; padding: .7rem .9rem;
    border: 1px solid var(--tj-border);
    border-radius: 8px;
    font-size: .95rem; font-family: inherit;
    background: #fff;
    transition: border-color .15s;
}
.form-control:focus { outline: 2px solid var(--tj-blue-600); outline-offset: 1px; border-color: var(--tj-blue-600); }
.form-help { font-size: .82rem; color: var(--tj-muted); margin-top: .3rem; }
.form-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }

/* ---- Alerts -------------------------------------------------------- */
.alert {
    position: relative;
    padding: .85rem 2.5rem .85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: .92rem;
    border: 1px solid transparent;
}
.alert-success { background: var(--tj-success-bg); color: var(--tj-success-fg); border-color: #6ee7b7; }
.alert-error,
.alert-danger,
.alert-warning { background: var(--tj-danger-bg); color: var(--tj-danger-fg); border-color: #fca5a5; }
.alert-info    { background: var(--tj-info-bg); color: var(--tj-info-fg); border-color: #93c5fd; }
.alert-close {
    position: absolute;
    top: .5rem; right: .55rem;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: .55;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: .15rem .4rem;
    border-radius: 4px;
}
.alert-close:hover { opacity: 1; background: rgba(0,0,0,.06); }

/* ---- Page hero (smaller) ------------------------------------------ */
.page-hero {
    background: linear-gradient(135deg, var(--tj-navy-800), var(--tj-blue-600));
    color: #fff; padding: 3.5rem 0;
}
.page-hero h1 { color: #fff; font-size: 2.5rem; margin: 0; }
.page-hero p  { color: rgba(255,255,255,.85); margin-top: .5rem; max-width: 720px; }

/* ---- Article list (journal-style rows) ---------------------------- */
.article-list { background: #fff; border: 1px solid var(--tj-border); border-radius: var(--tj-radius); overflow: hidden; }
.article-row { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--tj-border); }
.article-row:last-child { border-bottom: 0; }
.article-row-title { margin: 0 0 .35rem; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.article-row-title a { color: var(--tj-blue-600); text-decoration: none; transition: color .15s; }
.article-row-title a:hover { color: var(--tj-navy-800); text-decoration: none; }
.article-row-chevron { display: inline-block; margin-left: .25rem; font-weight: 400; color: var(--tj-blue-400); transition: color .15s; }
.article-row-title a:hover .article-row-chevron { color: var(--tj-blue-600); }
.article-row-authors { color: var(--tj-blue-600); font-size: .92rem; margin-bottom: .5rem; }
.article-row-meta { color: var(--tj-muted); font-size: .85rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.article-row-type { color: var(--tj-blue-600); font-weight: 500; }
.article-row-divider { color: var(--tj-blue-400); }
.article-row-journal { font-style: italic; color: var(--tj-blue-600) !important; text-decoration: none; }
.article-row-journal:hover { text-decoration: underline; }

/* ---- 2-column article grid (homepage Latest Articles) ------------ */
.article-list--grid {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1.25rem;
}
.article-list--grid .article-row {
    padding: 1rem 1.25rem;
    border: 1px solid var(--tj-border);
    border-radius: 8px;
    background: #fff;
}
.article-list--grid .article-row-title { font-size: 1.05rem; }
.article-list--grid .article-row-abstract { font-size: .85rem; line-height: 1.5; }
.article-list--grid .article-row-meta { font-size: .78rem; }
@media (max-width: 900px) {
    .article-list--grid { grid-template-columns: 1fr; }
}

/* ---- Article detail (single page) -------------------------------- */
.article-head {
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--tj-border);
    padding: 3rem 0 1.5rem;
}
.article-head-type { font-size: .82rem; color: var(--tj-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; margin-bottom: .75rem; }
.article-head-title { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: var(--tj-text); line-height: 1.18; margin: 0 0 1rem; }
.article-head-authors { color: var(--tj-blue-600); font-size: 1.05rem; margin-bottom: .85rem; font-weight: 500; }
.article-head-dates { color: var(--tj-muted); font-size: .92rem; margin-bottom: .85rem; }
.article-head-doi { font-size: .92rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: .4rem; }
.article-head-doi a { color: var(--tj-blue-600); }

.article-tabs { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: 1.5rem; border-bottom: 1px solid var(--tj-border); padding-bottom: 0; }
.article-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.1rem;
    background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer;
    color: var(--tj-muted); font-family: inherit; font-size: .92rem; font-weight: 500;
    text-decoration: none; transition: all .15s;
}
.article-tab:hover { color: var(--tj-navy-800); text-decoration: none; }
.article-tab.active { color: var(--tj-text); border-bottom-color: var(--tj-blue-600); background: var(--tj-navy-800); color: #fff; border-radius: 6px 6px 0 0; padding: .7rem 1.25rem; border-bottom-color: var(--tj-navy-800); }
.article-tab.read-btn { background: #4ade80; color: #064e3b; border-radius: 6px; margin-left: auto; padding: .65rem 1.25rem; font-weight: 600; }
.article-tab.read-btn:hover { background: #22c55e; color: #064e3b; }

.article-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; max-width: 1200px; }
.article-content { font-size: 1.02rem; line-height: 1.75; color: var(--tj-text); }
.article-section-title { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; margin: 0 0 1rem; color: var(--tj-text); }
.article-abstract { font-size: 1.02rem; line-height: 1.75; }
.article-keywords { color: var(--tj-muted); font-size: .95rem; margin: 1.5rem 0; padding: .85rem 1rem; background: #f8f9fc; border-radius: 6px; }
.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--font-serif); margin-top: 2rem; margin-bottom: .75rem; }
.article-body h2 { font-size: 1.6rem; }
.article-body h3 { font-size: 1.3rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1rem 1.5rem; padding: 0; }
.article-body li { margin-bottom: .35rem; }

/* CMS pages reuse the same rich-text typography */
.cms-content { font-size: 1.02rem; line-height: 1.75; color: var(--tj-text); }
.cms-content h2, .cms-content h3, .cms-content h4 { font-family: var(--font-serif); margin-top: 1.75rem; margin-bottom: .65rem; }
.cms-content h2 { font-size: 1.5rem; }
.cms-content h3 { font-size: 1.2rem; }
.cms-content p  { margin-bottom: 1rem; }
.cms-content ul, .cms-content ol { margin: 1rem 0 1rem 1.5rem; padding: 0; }
.cms-content li { margin-bottom: .35rem; }
.cms-content blockquote { border-left: 3px solid var(--tj-blue-600); padding: .25rem 1rem; margin: 1rem 0; color: var(--tj-muted); font-style: italic; }
.cms-content a { color: var(--tj-blue-600); text-decoration: underline; }
.cms-content .ql-align-center  { text-align: center; }
.cms-content .ql-align-right   { text-align: right; }
.cms-content .ql-align-justify { text-align: justify; }
.article-body blockquote { border-left: 3px solid var(--tj-blue-600); padding: .25rem 1rem; margin: 1rem 0; color: var(--tj-muted); font-style: italic; }
.article-body code { background: #f0f1f5; padding: .15rem .4rem; border-radius: 4px; font-size: .92em; }
.article-body pre { background: #1a2456; color: #e6e9fa; padding: 1rem; border-radius: 8px; overflow-x: auto; }
.article-body a { color: var(--tj-blue-600); text-decoration: underline; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 1rem 0; }
/* Quill alignment classes */
.article-body .ql-align-center  { text-align: center; }
.article-body .ql-align-right   { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }

.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { padding: 1rem 0; border-bottom: 1px solid var(--tj-border); }
.related-list li:last-child { border-bottom: 0; }
.related-title { display: block; font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--tj-blue-600); margin-bottom: .25rem; }
.related-title:hover { text-decoration: none; color: var(--tj-navy-800); }
.related-authors { color: var(--tj-text); font-size: .88rem; margin-bottom: .15rem; }
.related-meta { color: var(--tj-muted); font-size: .82rem; }

.article-sidebar { font-size: .92rem; }
.article-sidebar h3 { font-family: var(--font-sans); font-size: .8rem; color: var(--tj-muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--tj-border); }
.article-sidebar ul { list-style: none; padding: 0; margin: 0; }
.article-sidebar li { padding: .35rem 0; }
.article-sidebar li a { color: var(--tj-text); }
.article-sidebar li a:hover { color: var(--tj-blue-600); }
.cite-box { background: #f8f9fc; border-left: 3px solid var(--tj-blue-600); padding: .85rem 1rem; font-size: .88rem; line-height: 1.55; border-radius: 0 6px 6px 0; }
.cite-box a { word-break: break-all; }

@media (max-width: 900px) {
    .article-grid { grid-template-columns: 1fr; gap: 2rem; }
    .article-head-title { font-size: 1.7rem; }
    .article-tab.read-btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* ---- Empty state -------------------------------------------------- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--tj-muted); }

/* ---- Floating "back to top" -------------------------------------- */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--tj-blue-600); color: #fff;
    display: none; align-items: center; justify-content: center;
    border: 0; cursor: pointer; font-size: 1.2rem;
    z-index: 40;
}
.back-to-top.visible { display: inline-flex; }

/* ---- Mobile -------------------------------------------------------- */
.nav-toggle {
    display: none; background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer;
}

@media (max-width: 900px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }
    .hero h1 { font-size: 2.4rem; }
    .hero { padding: 3rem 0 4rem; }
    .hero-grid,
    .journal-header-grid,
    .journal-body { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

    .nav-toggle { display: inline-flex; }
    .nav-main, .nav-actions {
        display: none; width: 100%;
        flex-direction: column; align-items: stretch; gap: .25rem;
        margin-top: 1rem;
    }
    .site-header .container { flex-wrap: wrap; }
    body.nav-open .nav-main,
    body.nav-open .nav-actions { display: flex; }
}
@media (max-width: 540px) {
    .features-grid,
    .footer-grid,
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* =====================================================================
   Dashboard layout (sidebar + content), used for /dashboard, /author/*,
   /manage/*. No public site header/footer is rendered.
   ===================================================================== */
.dashboard-body { background: #f5f6fa; }

.dashboard-shell {
    display: grid;
    grid-template-columns: 264px 1fr;
    min-height: 100vh;
}

/* ---- Sidebar ------------------------------------------------------- */
.dashboard-sidebar {
    background: var(--tj-navy-900);
    color: rgba(255,255,255,.78);
    display: flex; flex-direction: column;
    position: sticky; top: 0;
    height: 100vh; max-height: 100vh;
    overflow-y: auto;
    padding: 1.25rem 0 1rem;
    /* Firefox: thin scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}
.dashboard-sidebar::-webkit-scrollbar { width: 4px; }
.dashboard-sidebar::-webkit-scrollbar-track { background: transparent; }
.dashboard-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 2px; }
.dashboard-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); }

.dashboard-brand { padding: .25rem 1.5rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.dashboard-brand-link { display: flex; align-items: center; gap: .85rem; color: #fff; text-decoration: none; }
.dashboard-brand-link:hover { text-decoration: none; }

/* Sidebar TJ monogram — same circle treatment as the header, sized down. */
.dashboard-brand-monogram {
    width: 40px; height: 40px;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}
.dashboard-brand-monogram > span { font-size: 1rem; }
.dashboard-brand-logo {
    width: 38px; height: 38px;
    border-radius: 9px;
    display: block;
    flex-shrink: 0;
    /* shadow removed per visual policy */
}
.dashboard-brand-text { line-height: 1.15; }
.dashboard-brand-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; display: block; color: #fff; }
.dashboard-brand-tagline { font-size: .72rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; }

.dashboard-userblock {
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.dashboard-user-avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--tj-blue-500), var(--tj-blue-400));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 600; font-size: .92rem;
    flex-shrink: 0;
}
.dashboard-user-info { min-width: 0; flex: 1; }
.dashboard-user-name { color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-user-role { color: rgba(255,255,255,.55); font-size: .78rem; margin-top: .15rem; text-transform: uppercase; letter-spacing: .04em; }

.dashboard-nav { flex: 1; padding: .5rem .75rem; }
.dashboard-nav-group { margin-bottom: 1rem; }
.dashboard-nav-label {
    color: rgba(255,255,255,.4);
    font-size: .68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    padding: .85rem .75rem .35rem;
}
.dashboard-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: .65rem .75rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, .88);
    font-size: .92rem; font-weight: 500;
    text-decoration: none;
    margin-bottom: .15rem;
    /* No transition / no transform — visual policy: instant feedback only. */
}
.dashboard-nav-item:hover {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    text-decoration: none;
}
.dashboard-nav-item.active {
    background: var(--tj-blue-600);
    color: #ffffff;
}
.dashboard-nav-item.disabled { opacity: .55; cursor: not-allowed; }

/* Icon slot — fixed 20×20 box that centers a monochrome SVG. The SVG
   inherits the item's text color via currentColor, so:
     - inactive item → icon at rgba(255,255,255,.88)
     - hover         → icon at #fff
     - active        → icon at #fff
   No fills, no gradients, no shadows. */
.dashboard-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.dashboard-nav-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
    fill: none;
}
.dashboard-nav-item.active .dashboard-nav-icon,
.dashboard-nav-item:hover  .dashboard-nav-icon { color: #ffffff; }

.dashboard-nav-text { flex: 1; }
.dashboard-nav-badge {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.7);
    font-size: .65rem; font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 999px;
    text-transform: uppercase;
}

.dashboard-sidebar-foot { padding: .5rem .75rem 0; border-top: 1px solid rgba(255,255,255,.08); margin-top: .5rem; }
.dashboard-nav-signout:hover { background: rgba(220,38,38,.15); color: #fca5a5; }

/* ---- Main column (top bar + content) ------------------------------ */
.dashboard-main { display: flex; flex-direction: column; min-width: 0; }

.dashboard-topbar {
    display: flex; align-items: center; gap: 1rem;
    background: #fff;
    border-bottom: 1px solid var(--tj-border);
    padding: .85rem 1.75rem;
    position: sticky; top: 0; z-index: 20;
}
.dashboard-toggle {
    display: none;
    background: none; border: 0;
    font-size: 1.4rem; color: var(--tj-text); cursor: pointer;
}
.dashboard-crumb { flex: 1; font-size: .9rem; }
.dashboard-crumb a { color: var(--tj-muted); text-decoration: none; }
.dashboard-crumb a:hover { color: var(--tj-blue-600); }

.dashboard-userchip {
    display: flex; align-items: center; gap: .65rem;
    padding: .35rem .35rem .35rem .75rem;
    background: #f8f9fc;
    border: 1px solid var(--tj-border);
    border-radius: 999px;
    font-size: .88rem;
}

/* ---- Notifications bell ------------------------------------------- */
.dashboard-bell { position: relative; }
.dashboard-bell-btn {
    background: #f8f9fc; border: 1px solid var(--tj-border);
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem; color: var(--tj-text); cursor: pointer; position: relative;
    transition: background .15s, border-color .15s;
}
.dashboard-bell-btn:hover { background: #fff; border-color: var(--tj-blue-400); }
.dashboard-bell-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: #ef4444; color: #fff;
    border-radius: 999px;
    font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center;
    border: 2px solid #fff;
}
.dashboard-bell-menu {
    position: absolute; top: calc(100% + .5rem); right: 0;
    width: 360px; max-width: calc(100vw - 2rem);
    background: #fff; border: 1px solid var(--tj-border);
    border-radius: 12px; border: 1px solid var(--tj-border);
    z-index: 30; overflow: hidden;
}
.dashboard-bell-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: .75rem 1rem; border-bottom: 1px solid var(--tj-border);
    font-size: .92rem;
}
.dashboard-bell-head a { color: var(--tj-blue-600); text-decoration: none; font-size: .82rem; }
.dashboard-bell-head a:hover { text-decoration: underline; }
.dashboard-bell-empty {
    padding: 1.5rem 1rem; text-align: center; color: var(--tj-muted); font-size: .88rem;
}
.dashboard-bell-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.dashboard-bell-list li { border-top: 1px solid var(--tj-border); }
.dashboard-bell-list li:first-child { border-top: 0; }
.dashboard-bell-list li.is-unread { background: #f4f6fc; }
.dashboard-bell-item {
    display: block; width: 100%; text-align: left;
    background: transparent; border: 0; cursor: pointer;
    padding: .7rem 1rem; font-family: inherit;
    transition: background .12s;
}
.dashboard-bell-item:hover { background: #eef0f8; }
.dashboard-bell-item strong { display: block; font-size: .88rem; color: var(--tj-text); }
.dashboard-bell-item span { display: block; font-size: .82rem; color: var(--tj-muted); margin-top: .15rem; }
.dashboard-bell-item em { display: block; font-style: normal; font-size: .74rem; color: var(--tj-muted); margin-top: .35rem; }

/* ---- Pagination --------------------------------------------------- */
.tj-pagination {
    display: flex; gap: .35rem; justify-content: center; align-items: center;
    margin-top: 2rem; flex-wrap: wrap;
}
.tj-page-link {
    display: inline-flex; align-items: center;
    min-width: 36px; height: 36px; padding: 0 .65rem;
    background: #fff; border: 1px solid var(--tj-border);
    border-radius: 8px;
    color: var(--tj-text); text-decoration: none;
    font-size: .88rem; font-weight: 500;
    transition: background .12s, border-color .12s, color .12s;
}
.tj-page-link:hover { background: #f1f3f9; border-color: var(--tj-blue-400); color: var(--tj-blue-600); text-decoration: none; }
.tj-page-link.is-active { background: var(--tj-blue-600); color: #fff; border-color: var(--tj-blue-600); }
.tj-page-gap { color: var(--tj-muted); padding: 0 .25rem; }

/* ---- Journals filter bar ----------------------------------------- */
.tj-filterbar {
    background: #fff; border: 1px solid var(--tj-border); border-radius: 12px;
    padding: 1rem 1.25rem; margin-bottom: 1.75rem;
    display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
}
.tj-filterbar input[type="search"], .tj-filterbar select {
    padding: .55rem .85rem; border: 1px solid var(--tj-border); border-radius: 8px;
    font-size: .92rem; font-family: inherit; background: #f8f9fc;
}
.tj-filterbar input[type="search"] { flex: 1; min-width: 220px; }
.tj-filterbar input[type="search"]:focus, .tj-filterbar select:focus {
    outline: 2px solid var(--tj-blue-400); border-color: var(--tj-blue-500); background: #fff;
}
.tj-filterbar-meta { color: var(--tj-muted); font-size: .85rem; margin-left: auto; }

/* ---- Article row with thumbnail (home page) ----------------------- */
.article-row-thumb {
    display: flex; gap: 1.25rem; align-items: stretch;
}
.article-row-thumb .article-row-body { flex: 1; min-width: 0; }
.article-row-cover {
    flex-shrink: 0;
    width: 110px; min-height: 140px;
    border-radius: 8px; overflow: hidden;
    background: linear-gradient(135deg, var(--tj-blue-600), var(--tj-navy-800));
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    border: 1px solid var(--tj-border);
}
.article-row-cover:hover { border-color: var(--tj-blue-400); }
.article-row-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-row-cover-fallback {
    color: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem;
    letter-spacing: .05em;
}
@media (max-width: 640px) {
    .article-row-thumb { flex-direction: column-reverse; }
    .article-row-cover { width: 100%; min-height: 160px; max-height: 200px; }
}
.dashboard-context {
    display: inline-flex; align-items: center; gap: .35rem;
    background: #fff7ed; color: #92400e;
    border: 1px solid #fcd34d;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .78rem; font-weight: 600;
    cursor: pointer;
}
.dashboard-context select {
    border: 0; background: transparent; font-family: inherit; font-size: .78rem;
    font-weight: 600; color: #92400e; cursor: pointer; padding: 0; margin-left: .25rem;
}
.dashboard-context select:focus { outline: 2px solid #fcd34d; border-radius: 4px; }
.dashboard-userchip-avatar {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--tj-blue-500), var(--tj-blue-400));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 600; font-size: .7rem;
}
.dashboard-userchip-name { color: var(--tj-text); font-weight: 500; }
.dashboard-signout {
    width: 28px; height: 28px;
    background: var(--tj-danger-bg);
    color: var(--tj-danger-fg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 1rem;
}
.dashboard-signout:hover { background: #fca5a5; text-decoration: none; }

.dashboard-flash { padding: 1rem 1.75rem 0; }

.dashboard-content { flex: 1; padding: 0; }

/* Inside the dashboard, override page-hero to look like a compact page header */
.dashboard-content .page-hero {
    background: #fff;
    color: var(--tj-text);
    padding: 1.75rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--tj-border);
}
.dashboard-content .page-hero h1 { color: var(--tj-text); font-size: 1.85rem; }
.dashboard-content .page-hero p { color: var(--tj-muted); }
.dashboard-content .page-hero .btn-light { background: var(--tj-blue-600); color: #fff; }
.dashboard-content .page-hero .btn-light:hover { background: var(--tj-blue-500); }
/* Page-hero (sub-page header inside dashboard) — text colors now use .tj-* classes */
.dashboard-content .page-hero .tj-breadcrumb,
.dashboard-content .page-hero .tj-subtitle { color: var(--tj-muted); }
.dashboard-content .page-hero .tj-breadcrumb a { color: var(--tj-blue-600); text-decoration: none; }
.dashboard-content .page-hero .tj-breadcrumb a:hover { text-decoration: underline; }

/* Tab pills used in journal_nav and wizard_nav */
.tj-breadcrumb { margin: 0 0 .25rem; font-size: .85rem; }
.tj-subtitle   { margin: 0; font-size: .9rem; }
.tj-tabs       { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: 1.25rem; }
.tj-tab {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem .9rem;
    border-radius: 7px;
    font-size: .85rem; font-weight: 500;
    color: var(--tj-muted);
    background: transparent;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.tj-tab:hover, .tj-tab:visited { color: var(--tj-text); text-decoration: none; }
.tj-tab.is-active, .tj-tab.is-active:visited {
    background: var(--tj-blue-600);
    color: #fff;
}
/* Wizard step pills */
.tj-tab-step { background: #f0f1f5; }
.tj-tab-step:not(.is-reached) { opacity: .55; cursor: not-allowed; }
.tj-tab-step.is-active, .tj-tab-step.is-active:visited {
    background: var(--tj-blue-600); color: #fff;
}
.tj-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(0,0,0,.08);
    font-size: .68rem; font-weight: 700;
    color: inherit;
}
.tj-tab.is-active .tj-step-num,
.tj-tab-step.is-active .tj-step-num { background: rgba(255,255,255,.25); }

.dashboard-content .section { padding: 1.5rem 1.75rem; }
.dashboard-content .container { padding: 0; max-width: none; }

/* ---- Mobile dashboard ---------------------------------------------- */
@media (max-width: 900px) {
    .dashboard-shell { grid-template-columns: 1fr; }
    .dashboard-sidebar {
        position: fixed; top: 0; left: 0;
        width: 280px; height: 100vh;
        transform: translateX(-100%);
        /* transition removed per visual policy (snap, no slide) */
        z-index: 100;
        border-right: 1px solid rgba(255,255,255,.08);
    }
    body.sidebar-open .dashboard-sidebar { transform: translateX(0); }
    body.sidebar-open::after {
        content: ''; position: fixed; inset: 0;
        background: rgba(0,0,0,.4); z-index: 99;
    }
    .dashboard-toggle { display: inline-flex; }

    /* Wide admin/manage tables (subscriptions, charges, logs, …) can have
       6-8 columns and would force the viewport to zoom out on phones.
       Make any dashboard table scroll horizontally inside its container
       instead, with a sticky header row for context. */
    .dashboard-content table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    .dashboard-content table thead th { white-space: nowrap; }
    /* Tables that already sit inside a wrapper div with overflow:auto
       (issues, dashboards, etc.) keep behaving as block elements — the
       outer wrapper handles scroll; the inner table fits naturally. */
}

/* =====================================================================
   Dashboard hub (per-role overview with metrics + charts)
   ===================================================================== */
.dash-hero {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    padding: 2rem 1.75rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    border-bottom: 1px solid var(--tj-border);
}
.dash-hero h1 { font-family: var(--font-serif); font-size: 1.85rem; margin: 0 0 .15rem; }
.dash-hero-eyebrow { color: var(--tj-blue-600); font-size: .78rem; text-transform: uppercase;
    letter-spacing: .08em; font-weight: 600; margin: 0 0 .15rem; }
.dash-hero-sub { color: var(--tj-muted); margin: 0; }

.dash-metrics {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem;
    padding: 1.5rem 1.75rem 0;
}
.dash-metric {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem;
    transition: border-color .15s;
}
.dash-metric:hover { border-color: var(--tj-blue-400); }
.dash-metric-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.dash-metric-body { min-width: 0; }
.dash-metric-label { color: var(--tj-muted); font-size: .82rem; text-transform: uppercase;
    letter-spacing: .04em; font-weight: 500; }
.dash-metric-value { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--tj-text); line-height: 1.1; margin: .15rem 0; }
.dash-metric-sub { color: var(--tj-muted); font-size: .82rem; }

.dash-metric.tone-blue  .dash-metric-icon { background: #e6e9fa; color: #4f5ec5; }
.dash-metric.tone-navy  .dash-metric-icon { background: #d1d5e8; color: #1a2456; }
.dash-metric.tone-green .dash-metric-icon { background: #d1fae5; color: #065f46; }
.dash-metric.tone-amber .dash-metric-icon { background: #fef3c7; color: #92400e; }
.dash-metric.tone-red   .dash-metric-icon { background: #fee2e2; color: #991b1b; }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
}
.dash-card {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 200px;
}
.dash-card-wide { grid-column: 1 / -1; }
.dash-card-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 1rem; margin-bottom: 1rem;
}
.dash-card-head h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; margin: 0; }
.dash-card-sub  { color: var(--tj-muted); font-size: .82rem; }
.dash-card-link { font-size: .85rem; color: var(--tj-blue-600); text-decoration: none; font-weight: 500; }
.dash-card-link:hover { text-decoration: underline; }

/* Chart wrappers — guarantee a bounded height for Chart.js (responsive: true, maintainAspectRatio: false) */
.dash-chart           { position: relative; height: 280px; width: 100%; }
.dash-chart-doughnut  { height: 240px; max-width: 320px; margin: 0 auto; }

/* =====================================================================
   Issues archive — grid of cover cards
   ===================================================================== */
.issues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.issue-card {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
    transition: border-color .15s;
}
.issue-card:hover { border-color: var(--tj-blue-400); text-decoration: none; }
.issue-card-cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.issue-card-cover-placeholder {
    width: 100%; aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--tj-navy-800), var(--tj-blue-600));
    color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: var(--font-serif);
}
.issue-card-cover-placeholder .vol { font-size: 1.4rem; font-weight: 700; }
.issue-card-cover-placeholder .num { font-size: 1rem; opacity: .85; }
.issue-card-body { padding: 1rem 1.25rem 1.25rem; }
.issue-card-body h3 { font-family: var(--font-serif); font-size: 1.05rem; margin: .35rem 0 .25rem; }
.issue-card-title { color: var(--tj-blue-600); font-size: .92rem; line-height: 1.35; margin-bottom: .35rem; }
.issue-card-meta { color: var(--tj-muted); font-size: .82rem; }

/* =====================================================================
   Article individual page (/articles/{id}) — full scientific layout
   ===================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Skip-to-content link (keyboard a11y) ------------------------- */
.skip-link {
    position: absolute; top: 0; left: 0;
    padding: .65rem 1.1rem;
    background: var(--tj-blue-600); color: #fff;
    border-radius: 0 0 8px 0;
    text-decoration: none; font-weight: 600; font-size: .92rem;
    z-index: 1000;
    transform: translateY(-110%);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: -4px; }

/* ---- Focus-visible (keyboard users see focus, mouse users don't) -- */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--tj-blue-600);
    outline-offset: 2px;
    border-radius: 4px;
}
.btn:focus-visible,
.form-control:focus-visible,
.tj-page-link:focus-visible,
.dashboard-nav-item:focus-visible,
.dashboard-bell-btn:focus-visible {
    outline: 2px solid var(--tj-blue-600);
    outline-offset: 2px;
}
/* Inside the dark sidebar, foco amarelo destaca melhor */
.dashboard-sidebar a:focus-visible,
.dashboard-sidebar button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ---- Disabled state (consistent across buttons/inputs) ------------ */
.btn:disabled,
.btn[aria-disabled="true"],
.form-control:disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---- Responsive table wrapper for the dashboard ------------------- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--tj-radius);
}
.table-responsive table { min-width: 100%; }

/* On narrow viewports, let dashboard tables scroll horizontally inside
   their card containers instead of forcing the whole page to scroll. */
@media (max-width: 768px) {
    .dashboard-content section .container > div { overflow-x: auto; }
    .dashboard-content table { font-size: .82rem; }
}

.art-head {
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--tj-border);
    padding: 2rem 0 1.25rem;
}
/* Override default `.section { padding: 4rem 0 }` for the article body wrap */
.section.art-section-wrap { padding: 1.5rem 0 3rem; }
.art-head-crumb { margin: 0 0 .5rem; font-size: .9rem; }
.art-head-crumb a { color: var(--tj-blue-600); text-decoration: none; }
.art-head-crumb a:hover { text-decoration: underline; }
.art-head-type {
    color: var(--tj-muted); font-size: .78rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem;
}
.art-head-title {
    font-family: var(--font-sans);
    font-size: 1.95rem; font-weight: 700; line-height: 1.2;
    color: var(--tj-text); margin: 0 0 1rem;
}
.art-head-authors { color: var(--tj-text); margin: 0 0 .85rem; line-height: 1.7; font-size: .98rem; }
.art-author { display: inline; }
.art-author-corresp { color: var(--tj-blue-600); margin-left: .15rem; cursor: help; }
.art-author-orcid {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px;
    background: #a6ce39; color: #fff;
    border-radius: 50%; margin-left: .15rem;
    font-size: .55rem; font-weight: 700;
    text-decoration: none; vertical-align: middle;
}
.art-author-orcid:hover { background: #8fb429; text-decoration: none; }
.art-author-aff { color: var(--tj-muted); font-size: .85rem; }

.art-head-dates { color: var(--tj-muted); font-size: .9rem; margin: 0 0 .75rem; }
.art-head-doi { font-size: .9rem; margin: 0 0 1.25rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.art-head-doi a { color: var(--tj-blue-600); word-break: break-all; }
.art-doi-copy {
    background: #fff; border: 1px solid var(--tj-border);
    color: var(--tj-blue-600);
    padding: .25rem .65rem; border-radius: 6px;
    font-size: .78rem; font-family: inherit; cursor: pointer;
    transition: background .15s;
}
.art-doi-copy:hover { background: var(--tj-blue-100); }

.art-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.art-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .55rem 1rem;
    border-radius: 7px;
    font-size: .85rem; font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer; font-family: inherit;
}
.art-btn--primary { background: var(--tj-blue-600); color: #fff; }
.art-btn--primary:hover { background: var(--tj-blue-500); color: #fff; text-decoration: none; }
.art-btn--ghost { background: #fff; color: var(--tj-text); border-color: var(--tj-border); }
.art-btn--ghost:hover { background: #f8f9fc; text-decoration: none; }
.art-btn--disabled { opacity: .55; cursor: not-allowed; }

.art-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    align-items: flex-start;
}
.art-content { min-width: 0; }
.art-section { margin-bottom: 2rem; scroll-margin-top: 80px; }
.art-section h2 {
    font-family: var(--font-sans);
    font-size: 1.3rem; font-weight: 700;
    color: var(--tj-text);
    margin: 0 0 .75rem;
    padding-bottom: .35rem;
    border-bottom: 2px solid var(--tj-blue-600);
    display: inline-block;
}
.art-section p { line-height: 1.7; }

.art-cite-block { background: #fff; border: 1px solid var(--tj-border); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 2rem; }
.art-cite-block summary { cursor: pointer; font-weight: 600; color: var(--tj-text); list-style: none; }
.art-cite-block summary::-webkit-details-marker { display: none; }
.art-cite-block summary::before { content: '▸ '; color: var(--tj-blue-600); }
.art-cite-block[open] summary::before { content: '▾ '; }
.art-cite-row { padding: 1rem 0; border-top: 1px solid var(--tj-border); }
.art-cite-row:first-of-type { border-top: 0; padding-top: 1rem; }
.art-cite-row h4 { margin: 0 0 .5rem; font-size: .82rem; color: var(--tj-blue-600); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.art-cite-row p { margin: 0 0 .5rem; line-height: 1.6; font-size: .92rem; }
.art-link { background: none; border: 0; padding: 0; color: var(--tj-blue-600); font-family: inherit; font-size: .82rem; cursor: pointer; }
.art-link:hover { text-decoration: underline; }

.art-keywords-block { background: #f8f9fc; padding: .85rem 1rem; border-radius: 6px; }
.art-kw {
    display: inline-block;
    background: #fff; color: var(--tj-blue-600);
    padding: .15rem .65rem; border-radius: 999px;
    font-size: .82rem; margin: 0 .25rem;
    text-decoration: none; border: 1px solid var(--tj-border);
}
.art-kw:hover { background: var(--tj-blue-100); border-color: var(--tj-blue-400); text-decoration: none; }

.art-refs { padding-left: 1.5rem; margin: 0; }
.art-refs li { margin-bottom: .65rem; line-height: 1.55; font-size: .92rem; color: var(--tj-text); overflow-wrap: anywhere; }

.art-sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 80px; }
.art-card, .art-nav {
    background: #fff; border: 1px solid var(--tj-border); border-radius: 10px; padding: 1.1rem 1.25rem;
}
.art-nav h3, .art-card h3 {
    font-family: var(--font-sans); font-size: .78rem;
    color: var(--tj-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
    margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--tj-border);
}
.art-nav ul { list-style: none; padding: 0; margin: 0; }
.art-nav li { padding: .3rem 0; }
.art-nav a {
    color: var(--tj-text); text-decoration: none; font-size: .88rem;
    display: block; padding-left: .6rem; border-left: 2px solid transparent;
}
.art-nav a:hover { color: var(--tj-blue-600); border-left-color: var(--tj-blue-400); }

.art-metrics-row { display: grid; grid-template-columns: 1fr 1fr; text-align: center; gap: .75rem; }
.art-metrics-num { font-size: 1.4rem; font-weight: 700; color: var(--tj-blue-600); line-height: 1; }
.art-metrics-lbl { color: var(--tj-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; margin-top: .15rem; }

@media (max-width: 900px) {
    .art-grid { grid-template-columns: 1fr; padding-top: 1.25rem; }
    .art-head { padding: 1.5rem 0 1.25rem; }
    .art-head-title { font-size: 1.5rem; }
    .art-sidebar { position: static; }
}

/* =====================================================================
   Journal individual page (/journals/{slug})
   ===================================================================== */
.journal-hero {
    background: linear-gradient(135deg, var(--tj-navy-900) 0%, var(--tj-navy-700) 50%, var(--tj-blue-600) 100%);
    color: #fff;
    padding: 2.5rem 0;
}
.journal-hero-grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}
.journal-hero-cover img,
.journal-hero-cover-placeholder {
    width: 200px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    /* shadow removed per visual policy */
    object-fit: cover;
    display: block;
}
.journal-hero-cover-placeholder {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .35rem;
    color: #fff;
}
.journal-hero-cover-placeholder .mono { font-size: 2.4rem; font-weight: 700; letter-spacing: .04em; }
.journal-hero-cover-placeholder .lbl  { font-size: .7rem; opacity: .65; text-transform: uppercase; letter-spacing: .08em; }

.journal-hero-info { min-width: 0; }
.journal-hero-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.jc-badge--ghost { background: rgba(255,255,255,.18); color: #fff; }

.journal-hero-title {
    font-family: var(--font-sans);
    font-size: 2rem; font-weight: 700; line-height: 1.2;
    color: #fff; margin: 0 0 .25rem;
}
.journal-hero-abbrev { color: rgba(255,255,255,.7); margin: 0 0 1rem; font-size: .92rem; letter-spacing: .04em; }

.journal-hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem 1.5rem;
    margin: 0 0 1.25rem;
}
.journal-hero-meta > div { min-width: 0; }
.journal-hero-meta dt {
    color: rgba(255,255,255,.6);
    font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 500;
    margin: 0 0 .15rem;
}
.journal-hero-meta dd { margin: 0; color: #fff; font-size: .92rem; font-weight: 500; overflow-wrap: anywhere; }

.journal-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---- Page grid (tabs + sidebar) -------------------------------- */
.journal-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: flex-start;
}

.journal-tabs-wrap {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 12px;
    overflow: hidden;
}
.journal-tabs-bar {
    display: flex; flex-wrap: wrap;
    border-bottom: 1px solid var(--tj-border);
    background: #f8f9fc;
    padding: 0 .25rem;
}
.journal-tab {
    background: none; border: 0; border-bottom: 2px solid transparent;
    padding: .85rem 1rem; cursor: pointer;
    font-family: inherit; font-size: .85rem; font-weight: 500;
    color: var(--tj-muted);
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.journal-tab:hover { color: var(--tj-text); }
.journal-tab.is-active {
    color: var(--tj-text);
    border-bottom-color: var(--tj-blue-600);
    background: #fff;
}

.journal-pane { display: none; padding: 1.5rem; }
.journal-pane.is-active { display: block; }
.journal-pane-head {
    display: flex; justify-content: space-between; align-items: baseline;
    flex-wrap: wrap; gap: .5rem;
    margin-bottom: 1rem;
}
.journal-pane-head h2 {
    margin: 0;
    font-size: 1.15rem; font-weight: 600;
    font-family: var(--font-sans);
}
.journal-pane-link { font-size: .82rem; color: var(--tj-blue-600); text-decoration: none; }
.journal-pane-link:hover { text-decoration: underline; }

.issue-list { list-style: none; padding: 0; margin: 0; }
.issue-list li {
    padding: .85rem 0;
    border-top: 1px solid var(--tj-border);
}
.issue-list li:first-child { border-top: 0; }
.issue-list a { color: var(--tj-text); text-decoration: none; }
.issue-list a:hover strong { color: var(--tj-blue-600); }
.issue-list-title { color: var(--tj-muted); font-size: .9rem; }
.issue-list-meta  { display: block; color: var(--tj-muted); font-size: .82rem; margin-top: .15rem; }

.journal-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

@media (max-width: 900px) {
    .journal-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .journal-hero-cover img,
    .journal-hero-cover-placeholder { width: 140px; margin: 0 auto; }
    .journal-page-grid { grid-template-columns: 1fr; }
    .journal-tabs-bar { overflow-x: auto; flex-wrap: nowrap; }
    .journal-tab { flex: 0 0 auto; }
}

/* =====================================================================
   Journal cards (jc-*)  —  used in /journals and home "Featured Journals"
   ===================================================================== */
.jc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.jc {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .15s ease;
}
.jc:hover { border-color: var(--tj-blue-400); }

/* ---- Cover ------------------------------------------------------- */
.jc-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: var(--tj-navy-800);
    position: relative;
}
.jc-cover img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .35s ease;
}
/* image zoom on hover removed per visual policy */
.jc-cover-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--tj-navy-800) 0%, var(--tj-blue-600) 100%);
    color: #fff;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .25rem;
    position: relative;
}
.jc-cover-placeholder::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 55%);
}
.jc-cover-monogram {
    font-size: 2rem; font-weight: 700;
    letter-spacing: .04em;
    position: relative;
}
.jc-cover-pub { font-size: .72rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; position: relative; }

/* ---- Body -------------------------------------------------------- */
.jc-body {
    display: flex; flex-direction: column;
    padding: 1.25rem 1.35rem 1.35rem;
    gap: .85rem;
    flex: 1;
}

/* ---- Badges (sólidos com bom contraste) -------------------------- */
.jc-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.jc-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .03em;
    line-height: 1.4;
}
.jc-badge--success { background: #059669; color: #fff; }
.jc-badge--info    { background: var(--tj-blue-600); color: #fff; }
.jc-badge--warning { background: #d97706; color: #fff; }

/* ---- Title ------------------------------------------------------- */
.jc-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tj-text);
}
.jc-title a { color: inherit; text-decoration: none; }
.jc-title a:hover { color: var(--tj-blue-600); text-decoration: none; }

/* ---- Description (line-clamp prevents overflow) ----------------- */
.jc-desc {
    margin: 0;
    color: var(--tj-muted);
    font-size: .9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Compact meta line (replaces the verbose dl on cards) -------- */
.jc-meta-line {
    display: flex; flex-wrap: wrap; gap: .5rem .85rem;
    padding: .65rem 0 0;
    border-top: 1px dashed var(--tj-border);
    color: var(--tj-muted);
    font-size: .78rem;
}
.jc-meta-line span { display: inline-flex; align-items: center; }
.jc-meta-line span + span::before {
    content: "·"; margin-right: .85rem; color: var(--tj-blue-400);
}

/* ---- Info list (definition list, two columns) ------------------- */
.jc-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem .75rem;
    margin: 0;
    padding: .75rem 0 0;
    border-top: 1px dashed var(--tj-border);
    font-size: .85rem;
}
.jc-info > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: baseline; gap: .5rem; }
.jc-info dt {
    color: var(--tj-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 500;
    margin: 0;
}
.jc-info dd {
    margin: 0;
    color: var(--tj-text);
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* ---- Actions ----------------------------------------------------- */
.jc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-top: auto;
    padding-top: .25rem;
}
.jc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .6rem .85rem;
    border-radius: 8px;
    font-size: .85rem; font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
    text-align: center;
    line-height: 1.2;
}
.jc-btn--primary { background: var(--tj-blue-600); color: #fff; }
.jc-btn--primary:hover { background: var(--tj-blue-500); color: #fff; text-decoration: none; }
.jc-btn--ghost   { background: #fff; color: var(--tj-blue-600); border-color: var(--tj-border); }
.jc-btn--ghost:hover { background: var(--tj-blue-100); color: var(--tj-blue-600); border-color: var(--tj-blue-400); text-decoration: none; }
.jc-btn--disabled { background: #f0f1f5; color: var(--tj-muted); cursor: not-allowed; }

/* ---- Responsive -------------------------------------------------- */
@media (max-width: 640px) {
    .jc-grid { grid-template-columns: 1fr; gap: 1rem; }
    .jc-info > div { grid-template-columns: 110px minmax(0, 1fr); }
    .jc-actions { grid-template-columns: 1fr; }
}

.dash-feed { list-style: none; padding: 0; margin: 0; }
.dash-feed li {
    display: flex; gap: .85rem; align-items: flex-start;
    padding: .85rem 0;
    border-bottom: 1px solid var(--tj-border);
}
.dash-feed li:last-child { border-bottom: 0; }
.dash-feed-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--tj-blue-600);
    margin-top: .5rem; flex-shrink: 0;
}
.dash-feed-dot.tone-green { background: #10b981; }
.dash-feed-dot.tone-amber { background: #f59e0b; }
.dash-feed-dot.tone-red   { background: #ef4444; }
.dash-feed-dot.tone-blue  { background: #4f5ec5; }
.dash-feed-body { flex: 1; min-width: 0; font-size: .92rem; line-height: 1.45; }
.dash-feed-body a { color: var(--tj-text); text-decoration: none; }
.dash-feed-body a:hover { color: var(--tj-blue-600); text-decoration: underline; }
.dash-feed-meta { color: var(--tj-muted); font-size: .82rem; margin-top: .15rem; }

/* Right-aligned action button inside dash-feed items */
.dash-feed li { align-items: flex-start; }
.dash-feed li > .btn { flex-shrink: 0; margin-left: auto; align-self: center; }

/* Smart alert above metric cards (author dashboard) */
.dash-alert {
    margin: 1rem 1.75rem 0;
    padding: .75rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: .9rem;
    line-height: 1.4;
}
.dash-alert--success { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.dash-alert--info    { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.dash-alert--warning { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.dash-alert--danger  { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

.dashboard-nav-count {
    background: var(--tj-blue-600);
    color: #fff;
    font-size: .72rem; font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 999px;
    min-width: 22px; text-align: center;
}
.dashboard-nav-item.active .dashboard-nav-count { background: rgba(255,255,255,.25); }

@media (max-width: 900px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dash-metrics { padding: 1.25rem 1rem 0; }
    .dash-grid    { padding: 1.25rem 1rem; }
    .dash-hero    { padding: 1.5rem 1rem 1rem; }
}

/* =====================================================================
   Article page — align head and body to the same readable column
   ===================================================================== */
.article-head > .container { max-width: 1200px !important; padding-left: 1.5rem; padding-right: 1.5rem; }
.article-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (max-width: 900px) {
    .article-grid { padding-left: 1rem; padding-right: 1rem; grid-template-columns: 1fr; }
    .article-head > .container { padding-left: 1rem; padding-right: 1rem; }
}

/* =====================================================================
   Polish pass — overflow fixes + minimalist dashboard + cleaner wizard
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* Grid columns must shrink — prevents children with long words pushing past */
.journal-header-grid > *,
.journal-body > *,
.article-grid > *,
.dash-grid > *,
.dash-metric > *,
.dashboard-shell > * { min-width: 0; }

.journal-body         { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.journal-header-grid  { grid-template-columns: 200px minmax(0, 1fr); }

/* ---- Dashboard scale (minimalist) ------------------------------- */
.dashboard-content { font-size: .92rem; }
.dashboard-content h1 { font-size: 1.45rem; line-height: 1.25; }
.dashboard-content h2 { font-size: 1.15rem; }
.dashboard-content h3 { font-size: .98rem; font-family: var(--font-sans); margin-bottom: .85rem; }
.dashboard-content h4 { font-size: .85rem; font-family: var(--font-sans); }

/* Page hero (sub-page header inside dashboard) — slimmer */
.dashboard-content .page-hero { padding: 1.1rem 1.75rem .85rem; }
.dashboard-content .page-hero h1 { font-size: 1.4rem; margin: 0 0 .25rem; }
.dashboard-content .page-hero p  { font-size: .85rem; margin: 0; }

/* Hero on /dashboard hub */
.dash-hero { padding: 1.4rem 1.75rem 1rem; }
.dash-hero h1 { font-size: 1.5rem; }
.dash-hero-sub { font-size: .85rem; }

/* Metric cards */
.dash-metrics { gap: 1rem; padding: 1.25rem 1.75rem 0; }
.dash-metric  { padding: 1rem 1.1rem; gap: .85rem; }
.dash-metric-icon  { width: 40px; height: 40px; font-size: 1.15rem; border-radius: 10px; }
.dash-metric-label { font-size: .7rem; letter-spacing: .05em; }
.dash-metric-value { font-size: 1.5rem; }
.dash-metric-sub   { font-size: .76rem; }

/* Cards / charts */
.dash-grid { gap: 1rem; padding: 1.25rem 1.75rem; }
.dash-card { padding: 1.1rem 1.25rem; min-height: 0; border-radius: 10px; }
.dash-card-head { margin-bottom: .65rem; }
.dash-card-head h3 { font-size: .9rem; }
.dash-card-sub  { font-size: .74rem; }
.dash-chart           { height: 240px; }
.dash-chart-doughnut  { height: 200px; max-width: 280px; }

/* Buttons inside dashboard */
.dashboard-content .btn        { padding: .5rem 1rem;    font-size: .85rem; border-radius: 7px; }
.dashboard-content .btn-lg     { padding: .6rem 1.15rem; font-size: .9rem; }

/* Form controls */
.dashboard-content .form-control { padding: .55rem .75rem; font-size: .88rem; border-radius: 7px; }
.dashboard-content .form-label   { font-size: .82rem; margin-bottom: .3rem; }
.dashboard-content .form-help    { font-size: .76rem; }
.dashboard-content .form-group   { margin-bottom: .85rem; }

/* Tables (manage lists) */
.dashboard-content table { font-size: .88rem; }
.dashboard-content thead th { padding: .65rem 1rem !important; font-size: .7rem !important; }
.dashboard-content tbody td { padding: .7rem 1rem !important; }

/* Alerts */
.dashboard-content .alert { font-size: .85rem; padding: .65rem .85rem; }

/* Section padding */
.dashboard-content .section { padding: 1.25rem 1.75rem; }

/* Inline cards built with [style] in views — make padding consistent */
.dashboard-content [style*="border-radius:var(--tj-radius);padding:2rem"],
.dashboard-content [style*="border-radius:var(--tj-radius);padding:1.75rem"] {
    padding: 1.25rem !important;
    border-radius: 10px !important;
}
.dashboard-content [style*="border-radius:var(--tj-radius);padding:1.5rem"] {
    border-radius: 10px !important;
}

/* (Legacy inline-style pill overrides removed — tabs now use .tj-tab classes) */

/* Sidebar */
.dashboard-nav-item  { padding: .55rem .75rem; font-size: .88rem; }
.dashboard-nav-label { font-size: .65rem; padding: .75rem .75rem .3rem; }
.dashboard-user-name { font-size: .88rem; }
.dashboard-user-role { font-size: .7rem; }

/* Top bar */
.dashboard-topbar    { padding: .65rem 1.5rem; }
.dashboard-userchip  { font-size: .82rem; padding: .25rem .25rem .25rem .65rem; }

@media (max-width: 900px) {
    .dashboard-content .section { padding: 1rem; }
    .dash-metrics { padding: 1rem 1rem 0; gap: .75rem; }
    .dash-grid    { padding: 1rem; gap: .85rem; }
    .dashboard-content .page-hero { padding: 1rem; }
    .dash-hero { padding: 1rem; }
}

/* =====================================================================
   Article page extras (toolbar, cite panel, side-nav, metrics)
   These extend the older .art-* rules above without breaking them.
   ===================================================================== */
.art-head-affs {
    list-style: decimal; padding-left: 1.25rem; margin: .5rem 0 1rem;
    color: var(--tj-muted); font-size: .85rem; line-height: 1.5;
}
.art-head-affs li { margin: .15rem 0; }
.art-head-meta {
    display: flex; flex-wrap: wrap; gap: .35rem 1rem;
    color: var(--tj-muted); font-size: .88rem;
    margin: 0 0 1.25rem;
}
.art-head-license { color: var(--tj-success-fg, #047857); font-weight: 600; }

.art-toolbar {
    display: flex; flex-wrap: wrap; gap: .5rem;
    padding-top: 1rem; border-top: 1px solid var(--tj-border);
    margin-top: 1rem;
}
.art-toolbar .art-btn {
    background: #fff; color: var(--tj-text);
    border: 1px solid var(--tj-border);
    padding: .55rem .9rem;
    transition: background .15s, border-color .15s, color .15s;
}
.art-toolbar .art-btn:hover { background: var(--tj-blue-50, #eef0fb); border-color: var(--tj-blue-400); color: var(--tj-blue-600); text-decoration: none; }
.art-btn--link { color: var(--tj-blue-600) !important; font-weight: 500 !important; word-break: break-all; }

/* PDF download — red so it stands out as the primary content download.
   Use !important to win against the generic .art-toolbar .art-btn rule that
   sets a white background on hover/default. */
.art-toolbar .art-btn--pdf,
.art-toolbar a.art-btn--pdf {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #dc2626 !important;
}
.art-toolbar a.art-btn--pdf:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
}
.art-toolbar .art-btn--pdf.is-disabled {
    background: #fca5a5 !important;
    border-color: #fca5a5 !important;
    cursor: not-allowed;
    opacity: .85;
}

/* Cite panel (collapsible from toolbar) */
.art-cite-panel {
    margin-top: 1rem;
    background: #fff; border: 1px solid var(--tj-border);
    border-radius: 10px; padding: 1rem;
}
.art-cite-tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--tj-border); margin-bottom: .85rem; }
.art-cite-tab {
    background: transparent; border: 0; padding: .55rem .9rem;
    font-family: inherit; font-size: .85rem; color: var(--tj-muted);
    cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.art-cite-tab:hover { color: var(--tj-text); }
.art-cite-tab.is-active { color: var(--tj-blue-600); border-bottom-color: var(--tj-blue-600); font-weight: 600; }
.art-cite-body { display: none; position: relative; }
.art-cite-body.is-active { display: block; }
.art-cite-body pre {
    background: #f8f9fc; border: 1px solid var(--tj-border);
    border-radius: 8px; padding: .85rem 3.5rem .85rem 1rem;
    font-size: .85rem; white-space: pre-wrap; word-break: break-word;
    margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace;
    line-height: 1.55;
}
.art-cite-copy {
    position: absolute; top: .65rem; right: .65rem;
    background: #fff; border: 1px solid var(--tj-border);
    color: var(--tj-blue-600); padding: .25rem .55rem;
    border-radius: 6px; font-size: .72rem; font-family: inherit; cursor: pointer;
}
.art-cite-copy:hover { background: var(--tj-blue-50, #eef0fb); }

/* "How to Cite" inline list (always visible at bottom) */
.art-cite-list { display: flex; flex-direction: column; gap: .65rem; }
.art-cite-row {
    display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: .85rem;
    align-items: start;
    padding: .85rem; background: #f8f9fc;
    border: 1px solid var(--tj-border); border-radius: 8px;
}
.art-cite-row .art-cite-style {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--tj-blue-600);
    padding-top: .15rem;
}
.art-cite-row .art-cite-text { font-size: .9rem; line-height: 1.55; color: var(--tj-text); }
.art-cite-mini {
    background: #fff; border: 1px solid var(--tj-border);
    color: var(--tj-blue-600); padding: .3rem .65rem;
    border-radius: 6px; font-size: .72rem; cursor: pointer; font-family: inherit;
    align-self: start;
}
.art-cite-mini:hover { background: var(--tj-blue-50, #eef0fb); }

/* 2-column grid: main + right sidebar (which now also hosts the side-nav) */
.art-section-wrap { background: #f4f6fb; padding: 1.5rem 0 3rem; }
.art-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: flex-start;
}
.art-main { background: #fff; border: 1px solid var(--tj-border); border-radius: 12px; padding: 2rem; min-width: 0; }

/* Side-nav (now inside the right sidebar — not standalone-sticky anymore;
   the parent .art-sidebar handles sticky positioning) */
.art-nav {
    background: #fff; border: 1px solid var(--tj-border); border-radius: 10px;
    padding: 1rem 1.1rem; font-size: .88rem;
}
.art-nav strong {
    display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--tj-muted); margin-bottom: .65rem; font-weight: 700;
}
.art-nav ul { list-style: none; padding: 0; margin: 0; }
.art-nav li { margin: 0; }
.art-nav a {
    display: block; padding: .35rem .6rem; border-left: 2px solid transparent;
    color: var(--tj-text); text-decoration: none; transition: color .12s, border-color .12s, background .12s;
    border-radius: 0 4px 4px 0;
}
.art-nav a:hover { background: #f4f6fc; color: var(--tj-blue-600); }
.art-nav a.is-active { color: var(--tj-blue-600); border-left-color: var(--tj-blue-600); background: #f4f6fc; font-weight: 600; }

/* Sections in main */
.art-prose { font-size: .98rem; line-height: 1.75; color: var(--tj-text); }
.art-prose p { margin: 0 0 1rem; }
.art-prose h3, .art-prose h4 { margin-top: 1.5rem; }
.art-prose img { max-width: 100%; border-radius: 6px; margin: 1rem 0; }
/* P9 — table styling for pasted tables in the body. */
.art-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: .92rem;
}
.art-prose th, .art-prose td {
    border: 1px solid var(--tj-border);
    padding: .55rem .75rem;
    text-align: left;
    vertical-align: top;
}
.art-prose thead th {
    background: #f8f9fc;
    font-weight: 700;
}
.art-prose tbody tr:nth-child(even) { background: #fafbff; }
.art-prose caption { font-size: .85rem; color: var(--tj-muted); padding: .5rem 0; text-align: left; }
.art-prose blockquote {
    border-left: 4px solid var(--tj-blue-400);
    margin: 1rem 0; padding: .25rem 1rem;
    color: var(--tj-muted); font-style: italic;
}
.art-prose .ql-align-center  { text-align: center; }
.art-prose .ql-align-right   { text-align: right; }
.art-prose .ql-align-justify { text-align: justify; }

.art-section-sub { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--tj-text); margin: 0 0 .5rem; }
.art-section-meta { background: #f8f9fc; border-left: 3px solid var(--tj-blue-400); padding: .85rem 1rem; border-radius: 0 6px 6px 0; }
.art-section-meta p { margin: 0; font-size: .9rem; line-height: 1.6; }

.art-keywords { display: flex; flex-wrap: wrap; gap: .4rem; }
.art-keyword {
    display: inline-block; background: var(--tj-blue-50, #eef0fb);
    color: var(--tj-blue-600); padding: .25rem .7rem;
    border-radius: 999px; font-size: .82rem; font-weight: 500;
}

.art-references { padding-left: 1.5rem; margin: 0; counter-reset: refs; }
.art-references li {
    margin-bottom: .9rem; padding-left: .25rem; line-height: 1.55;
    font-size: .9rem; color: var(--tj-text); overflow-wrap: anywhere;
}

.art-related { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.art-related li {
    background: #f8f9fc; border: 1px solid var(--tj-border); border-radius: 8px;
    padding: .85rem 1rem; transition: background .12s;
}
.art-related li:hover { background: #eef0fb; }
.art-related a { color: var(--tj-text); text-decoration: none; }
.art-related a:hover { color: var(--tj-blue-600); }

/* Right sidebar cards extras */
.art-dates { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.art-dates li { display: flex; justify-content: space-between; padding: .35rem 0; border-top: 1px dashed var(--tj-border); }
.art-dates li:first-child { border-top: 0; }
.art-dates span { color: var(--tj-muted); }
.art-dates strong { color: var(--tj-text); font-weight: 600; }

.art-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.art-metrics > div {
    text-align: center; padding: .85rem .25rem;
    background: #f8f9fc; border: 1px solid var(--tj-border); border-radius: 8px;
}
.art-metrics strong { display: block; font-size: 1.5rem; font-weight: 700; color: var(--tj-blue-600); line-height: 1; margin-bottom: .25rem; }
.art-metrics span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tj-muted); }

.art-author-list { list-style: none; padding: 0; margin: 0; }
.art-author-list li { padding: .55rem 0; border-top: 1px solid var(--tj-border); }
.art-author-list li:first-child { border-top: 0; }

@media (max-width: 900px) {
    .art-grid { grid-template-columns: 1fr; }
    .art-sidebar { position: static; }
    .art-main { padding: 1.25rem; }
}
@media (max-width: 540px) {
    .art-cite-row { grid-template-columns: 1fr; }
    .art-cite-row .art-cite-style { font-size: .68rem; }
}

/* =====================================================================
   Journal public page (/journals/{slug}) — refined hero, tabs, sidebar
   ===================================================================== */
.jh {
    background: linear-gradient(135deg, #1a2456 0%, #3d4cb5 60%, #4f5ec5 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}
.jh::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.08), transparent 55%);
    pointer-events: none;
}
.jh-grid {
    display: grid; grid-template-columns: 200px 1fr; gap: 2.25rem;
    align-items: center; position: relative; z-index: 1;
}
.jh-cover img,
.jh-cover-placeholder {
    width: 200px; aspect-ratio: 3/4; object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.18);
    display: block;
}
.jh-cover-placeholder {
    background: linear-gradient(135deg, var(--tj-blue-600), var(--tj-navy-800));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff;
}
.jh-cover-placeholder span { font-family: var(--font-serif); font-weight: 700; font-size: 2.4rem; letter-spacing: .04em; }
.jh-cover-placeholder small { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; margin-top: .35rem; }

.jh-info { min-width: 0; }
.jh-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .85rem; }
.jh-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .7rem; font-size: .78rem; font-weight: 500;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
}
.jh-badge--success { background: rgba(16, 185, 129, .18); border-color: rgba(16, 185, 129, .4); }
.jh-badge--info    { background: rgba(124, 142, 224, .25); border-color: rgba(124, 142, 224, .55); }
/* Highlight badge for journals actively accepting submissions — solid
   green so it pops on the dark hero, with a live "status dot" prefix. */
.jh-badge--accepting {
    background: #10b981;
    border-color: #059669;
    color: #fff;
    font-weight: 700;
    padding: .35rem .85rem .35rem .65rem;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .25);
}
.jh-badge-dot {
    display: inline-block;
    width: .55rem; height: .55rem;
    background: #fff; border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}
.jc-badge--accepting {
    background: #10b981;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, .25);
    padding: .3rem .7rem .3rem .55rem;
}
.jh-title {
    font-family: var(--font-serif); font-size: 2.25rem; font-weight: 700;
    color: #fff; margin: 0; line-height: 1.18;
}
.jh-abbrev { color: rgba(255, 255, 255, .75); font-size: .92rem; margin: .35rem 0 1rem; }
.jh-meta {
    display: flex; flex-wrap: wrap; gap: .35rem 1.5rem;
    color: rgba(255, 255, 255, .85); font-size: .9rem; margin-bottom: 1.25rem;
}
.jh-actions { display: flex; gap: .65rem; flex-wrap: wrap; }

/* ---- Body grid (main + aside) ------------------------------------- */
.jp-section { background: #f4f6fb; }
.jp-grid {
    display: grid; grid-template-columns: 1fr 320px; gap: 2rem;
    align-items: flex-start;
}
.jp-main {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 14px;
    overflow: hidden;
}
.jp-tabs {
    display: flex; gap: 0;
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    border-bottom: 1px solid var(--tj-border);
    background: #fafbfd;
    padding: 0 .5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 94, 197, .35) transparent;
    -webkit-overflow-scrolling: touch;
}
.jp-tabs::-webkit-scrollbar { height: 4px; }
.jp-tabs::-webkit-scrollbar-thumb { background: rgba(79, 94, 197, .35); border-radius: 2px; }
.jp-tabs::-webkit-scrollbar-track { background: transparent; }
.jp-tab { flex-shrink: 0; }
.jp-tab {
    background: transparent; border: 0; padding: 1rem 1.1rem;
    font-family: inherit; font-size: .92rem; font-weight: 500;
    color: var(--tj-muted); cursor: pointer;
    border-bottom: 3px solid transparent; margin-bottom: -1px;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.jp-tab:hover { color: var(--tj-text); }
.jp-tab.is-active {
    color: var(--tj-blue-600);
    border-bottom-color: var(--tj-blue-600);
    font-weight: 600;
}
.jp-pane { display: none; padding: 1.75rem 2rem 2rem; }
.jp-pane.is-active { display: block; }
.jp-pane-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin: 0 0 1.25rem;
}
.jp-pane-head h2 {
    font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700;
    margin: 0; color: var(--tj-text);
}
.jp-pane-meta { font-size: .82rem; color: var(--tj-muted); }
.jp-prose { font-size: .95rem; line-height: 1.7; color: var(--tj-text); }
.jp-prose p:first-child { margin-top: 0; }
.jp-prose h2, .jp-prose h3 { font-family: var(--font-serif); margin-top: 1.5rem; }
.jp-prose .ql-align-center  { text-align: center; }
.jp-prose .ql-align-right   { text-align: right; }
.jp-prose .ql-align-justify { text-align: justify; }
.jp-prose ol, .jp-prose ul { padding-left: 1.5rem; }
.jp-prose blockquote {
    border-left: 4px solid var(--tj-blue-400);
    margin: 1rem 0; padding: .25rem 1rem;
    color: var(--tj-muted); font-style: italic;
}

.article-row-doi {
    color: var(--tj-blue-600); text-decoration: none; font-family: monospace; font-size: .82rem;
}
.article-row-doi:hover { text-decoration: underline; }

.jp-pane-link { color: var(--tj-blue-600); text-decoration: none; }
.jp-pane-link:hover { text-decoration: underline; }

/* ---- Issues grid (inside Issues tab) ----------------------------- */
.jp-issue-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}
.jp-issue-card {
    display: block; text-decoration: none; color: inherit;
    transition: transform .15s;
}
.jp-issue-card:hover { text-decoration: none; }
.jp-issue-card:hover img,
.jp-issue-card:hover .jp-issue-card-placeholder { border-color: var(--tj-blue-400); }
.jp-issue-card img,
.jp-issue-card-placeholder {
    width: 100%; aspect-ratio: 3/4; object-fit: cover;
    border-radius: 8px; border: 1px solid var(--tj-border);
    display: block; margin-bottom: .55rem;
}
.jp-issue-card-placeholder {
    background: linear-gradient(135deg, var(--tj-blue-600), var(--tj-navy-800));
    color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.jp-issue-card-placeholder span { font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; }
.jp-issue-card-placeholder small { opacity: .8; font-size: .82rem; margin-top: .15rem; }
.jp-issue-card-body { padding: .15rem .15rem; font-size: .85rem; line-height: 1.4; display: flex; flex-direction: column; gap: .15rem; }
.jp-issue-card-body strong { color: var(--tj-text); font-weight: 600; }
.jp-issue-card-title { color: var(--tj-muted); font-size: .8rem; }
.jp-issue-card-date { color: var(--tj-muted); font-size: .76rem; margin-top: .1rem; }

.jp-empty {
    text-align: center; padding: 2.5rem 1rem;
    color: var(--tj-muted);
}
.jp-empty-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.jp-empty p { margin: 0 0 1rem; }

/* Minimalist editorial board list — no cards, just rows separated by
   a hairline. Avatars are small monogram circles (or hidden on mobile).
   No gradients, no shadows. */
.jp-board-card {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: .75rem 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--tj-border);
    border-radius: 0;
    margin: 0;
}
.jp-board-list .jp-board-card:last-child { border-bottom: 0; }
.jp-board-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: transparent;
    color: var(--tj-blue-600);
    border: 1px solid var(--tj-border);
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .04em;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: .12rem;
}
.jp-board-role {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tj-muted);
    font-weight: 600;
}
.jp-board-name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--tj-text);
    line-height: 1.3;
    margin-top: 0;
}
.jp-board-email { font-size: .82rem; }

/* Section heading separating role groups (Editors / Reviewers / etc.) */
.jp-board-section {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--tj-muted);
    font-weight: 600;
    margin: 1.75rem 0 .35rem;
    padding-bottom: 0;
    border-bottom: 0;
}
.jp-board-section:first-of-type { margin-top: .25rem; }
.jp-board-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--tj-border);
}
.jp-board-affil {
    color: var(--tj-muted);
    font-size: .82rem;
    margin-top: .1rem;
}
.jp-board-links {
    display: flex; flex-wrap: wrap; gap: .4rem .9rem;
    margin-top: .25rem;
    font-size: .78rem;
}
.jp-board-link {
    color: var(--tj-blue-600);
    text-decoration: none;
}
.jp-board-link:hover { text-decoration: underline; }

@media (max-width: 540px) {
    .jp-board-avatar { display: none; }
}

/* ---- Sidebar cards ----------------------------------------------- */
.jp-aside { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1rem; }
.jp-card {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 12px;
    padding: 1.25rem;
}
.jp-card--featured {
    background: linear-gradient(180deg, #f4f6fc 0%, #ffffff 50%);
    padding: 1.25rem 1.25rem 1.5rem;
}
.jp-card-eyebrow {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--tj-blue-600); font-weight: 700; margin-bottom: .75rem;
}
.jp-card-title {
    margin: 0 0 .85rem; font-size: 1.02rem; font-weight: 700;
    color: var(--tj-text); font-family: var(--font-sans);
}
.jp-card-cta { width: 100%; margin-top: 1rem; justify-content: center; display: flex; }

.jp-issue-link { display: block; text-align: center; margin-bottom: .85rem; }
.jp-issue-link img {
    width: 65%; max-width: 140px; aspect-ratio: 3/4; object-fit: cover;
    border-radius: 8px; border: 1px solid var(--tj-border);
}
.jp-issue-link:hover img { border-color: var(--tj-blue-400); }
.jp-issue-placeholder {
    width: 65%; max-width: 140px; aspect-ratio: 3/4; margin: 0 auto;
    background: linear-gradient(135deg, var(--tj-blue-600), var(--tj-navy-800));
    color: #fff; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-weight: 700; text-align: center;
    line-height: 1.3;
}
.jp-card-body { text-align: center; }

.jp-info { margin: 0; padding: 0; display: grid; gap: .75rem; }
.jp-info > div { display: grid; grid-template-columns: 110px 1fr; gap: .5rem; align-items: baseline; }
.jp-info dt { color: var(--tj-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; margin: 0; }
.jp-info dd { margin: 0; color: var(--tj-text); font-weight: 500; font-size: .9rem; overflow-wrap: anywhere; }

.jp-editor-mini { display: flex; gap: .85rem; align-items: center; }
.jp-editor-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--tj-blue-600), var(--tj-navy-800));
    color: #fff; font-weight: 700; font-size: .85rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---- Mobile ------------------------------------------------------ */
@media (max-width: 900px) {
    .jh-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .jh-cover img, .jh-cover-placeholder { width: 160px; margin: 0 auto; }
    .jh-info { text-align: center; }
    .jh-meta, .jh-actions, .jh-badges { justify-content: center; }
    .jp-grid { grid-template-columns: 1fr; }
    .jp-aside { position: static; }
}
@media (max-width: 540px) {
    .jh-title { font-size: 1.7rem; }
    .jp-pane { padding: 1.25rem; }
    .jp-tab { padding: .75rem .85rem; font-size: .85rem; }
}

/* ===================================================================
   Submission timeline (author submission_show.php sidebar)
   Vertical list of milestones with colored markers — no shadows,
   no animations, just borders + color tones.
   =================================================================== */
.tj-timeline {
    list-style: none;
    padding: 0 0 0 .5rem;
    margin: .65rem 0 0;
    position: relative;
}
.tj-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: .35rem;
    bottom: .35rem;
    width: 2px;
    background: var(--tj-border);
}
.tj-timeline-item {
    position: relative;
    padding: 0 0 1rem 1.5rem;
}
.tj-timeline-item:last-child { padding-bottom: 0; }
.tj-timeline-marker {
    position: absolute;
    left: 0;
    top: .25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--tj-blue-600);
    z-index: 1;
}
.tj-timeline-item[data-tone="green"] .tj-timeline-marker { border-color: #10b981; }
.tj-timeline-item[data-tone="red"]   .tj-timeline-marker { border-color: #ef4444; }
.tj-timeline-item[data-tone="amber"] .tj-timeline-marker { border-color: #f59e0b; }
.tj-timeline-item.is-current .tj-timeline-marker {
    background: var(--tj-blue-600);
}
.tj-timeline-item[data-tone="green"].is-current .tj-timeline-marker { background: #10b981; }
.tj-timeline-item[data-tone="red"].is-current   .tj-timeline-marker { background: #ef4444; }
.tj-timeline-item[data-tone="amber"].is-current .tj-timeline-marker { background: #f59e0b; }

.tj-timeline-title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--tj-text);
    line-height: 1.3;
}
.tj-timeline-meta {
    font-size: .76rem;
    color: var(--tj-muted);
    margin-top: .15rem;
}
.tj-timeline-note {
    font-size: .82rem;
    color: var(--tj-text);
    font-style: italic;
    margin-top: .35rem;
    padding: .35rem .55rem;
    background: #f8f9fc;
    border-left: 2px solid var(--tj-blue-400);
    border-radius: 0 4px 4px 0;
}

/* =====================================================================
   FASE 1 — Visual standardization (no shadows, no animations).
   ===================================================================== */

/* ---- Auth split layout (login / forgot / register) -----------------
   Full-bleed background, but inner content padded so it lines up with
   the header's .container box (max-width 1200px, 1.5rem side padding).
   The padding formula reproduces the container's left/right offset. */
.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: calc(100vh - 200px);
    background: var(--tj-bg, #f5f6fb);
    --auth-gutter: max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
}
.auth-split-brand {
    position: relative;
    color: #fff;
    display: flex; align-items: center; justify-content: flex-start;
    /* Left padding = container offset → content aligns with header brand.
       Right padding small (gap to the form column). */
    padding: 3rem 2rem 3rem var(--auth-gutter);
    overflow: hidden;
    background: linear-gradient(135deg, var(--tj-blue-600) 0%, #4338ca 100%);
}
.auth-split-brand-overlay { display: none; }
.auth-split-brand-inner {
    position: relative; z-index: 2;
    max-width: 440px;
    width: 100%;
}

/* ---- Elegant brandmark (refined logo treatment) -------------------- */
.auth-brandmark {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.18);
}
.auth-brandmark-monogram {
    flex-shrink: 0;
    width: 72px; height: 72px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    position: relative;
    color: #fff;
}
.auth-brandmark-monogram > span {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.65rem;
    letter-spacing: .02em;
    line-height: 1;
}
.auth-brandmark-monogram::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    right: -2px; bottom: 4px;
}
.auth-brandmark-text { display: flex; flex-direction: column; }
.auth-brandmark-name {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.05;
    color: #fff;
}
.auth-brandmark-rule {
    display: block;
    width: 42px; height: 2px;
    margin: .55rem 0;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 2px;
}
.auth-brandmark-tagline {
    font-family: var(--font-sans);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(255,255,255,.85);
    line-height: 1.4;
}

.auth-split-points {
    list-style: none; padding: 0; margin: 0;
    font-size: .95rem;
    line-height: 1.5;
}
.auth-split-points li {
    padding: .65rem 0 .65rem 1.75rem;
    position: relative;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
}
.auth-split-points li:first-child { border-top: 0; }
.auth-split-points li::before {
    content: '\2713';
    position: absolute; left: 0; top: .65rem;
    color: #fbbf24;
    font-weight: 700;
}
.auth-split-form {
    display: flex; align-items: center; justify-content: flex-end;
    /* Right padding = container offset → form right edge aligns with header. */
    padding: 3rem var(--auth-gutter) 3rem 2rem;
    background: var(--tj-bg, #f5f6fb);
}
.auth-split .auth-card { max-width: 440px; width: 100%; padding: 2.25rem; }
.auth-card-head { text-align: center; margin-bottom: 1.5rem; }
.auth-card-head h1 { margin: 0 0 .35rem; font-size: 1.65rem; }
.auth-card-head .muted { margin: 0; font-size: .95rem; }
.auth-row {
    display: flex; justify-content: space-between; align-items: center;
    margin: .25rem 0 1.25rem; font-size: .9rem; gap: .5rem; flex-wrap: wrap;
}
.auth-link { color: var(--tj-blue-600); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-foot { text-align: center; margin-top: 1.25rem; font-size: .9rem; }

/* ---- Latest Published Issues (homepage block) -------------------- */
.tj-issues-section { background: #fff; }
.tj-issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
/* Dedicated /issues page — slightly tighter cards to fit the sidebar layout. */
.tj-issues-grid--page {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.tj-issue-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius, 8px);
    overflow: hidden;
    text-decoration: none;
    color: var(--tj-text);
}
.tj-issue-card:hover { border-color: var(--tj-blue-400); text-decoration: none; }
.tj-issue-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--tj-blue-600), #4338ca);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.tj-issue-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tj-issue-cover-fallback {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.85rem; font-weight: 700; letter-spacing: .04em;
}
.tj-issue-badge {
    position: absolute; top: .55rem; left: .55rem;
    background: #fbbf24; color: #1e1b4b;
    font-size: .68rem; font-weight: 700;
    padding: .15rem .55rem; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .06em;
}
.tj-issue-body { padding: .85rem 1rem 1rem; }
.tj-issue-journal {
    font-size: .72rem;
    color: var(--tj-blue-600);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin-bottom: .25rem;
}
.tj-issue-vol {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tj-text);
    line-height: 1.25;
}
.tj-issue-title {
    font-size: .88rem;
    color: var(--tj-text);
    margin-top: .25rem;
    line-height: 1.4;
}
.tj-issue-meta {
    margin-top: .55rem;
    font-size: .8rem;
    color: var(--tj-muted);
    display: flex; flex-wrap: wrap; gap: .35rem; align-items: center;
}
.tj-issue-dot { color: rgba(0,0,0,.25); }

/* ---- Article-row enhancements (homepage list) -------------------- */
.article-row-abstract {
    font-size: .9rem;
    color: var(--tj-text);
    line-height: 1.55;
    margin: .5rem 0 .25rem;
    max-width: 70ch;
}
.article-row-doi {
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.article-row-tags {
    margin: .55rem 0 0;
    display: flex; flex-wrap: wrap; gap: .4rem;
}
.tj-tag--link { color: var(--tj-blue-600); text-decoration: none; }
.tj-tag--link:hover { background: #eef0fb; text-decoration: none; }

@media (max-width: 540px) {
    .tj-issues-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* ---- Branded confirmation modal (replaces window.confirm) --------
   Native <dialog>, centred, with the Tudor Journals monogram in the
   header bar. No shadow, no animation. */
.tj-confirm {
    border: 1px solid var(--tj-border);
    border-radius: 12px;
    padding: 0;
    width: min(440px, 92vw);
    background: #fff;
    color: var(--tj-text);
}
.tj-confirm::backdrop { background: rgba(15, 17, 38, .55); }

.tj-confirm-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1.25rem;
    background: linear-gradient(135deg, var(--tj-blue-600) 0%, #4338ca 100%);
    color: #fff;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}
.tj-confirm-mark {
    width: 32px; height: 32px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
    position: relative;
}
.tj-confirm-mark > span {
    font-family: var(--font-serif, Georgia, serif);
    font-style: italic;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1;
}
.tj-confirm-mark::after {
    content: '';
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #fbbf24;
    right: -1px; bottom: 2px;
}
.tj-confirm-brand {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.tj-confirm-body { padding: 1.5rem 1.5rem .25rem; }
.tj-confirm-title {
    margin: 0 0 .5rem;
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.2rem;
    font-weight: 600;
}
.tj-confirm-msg {
    margin: 0;
    font-size: .95rem;
    line-height: 1.55;
    color: var(--tj-text);
}

.tj-confirm-foot {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: 1.25rem 1.5rem 1.5rem;
}
.tj-confirm-foot .btn { min-width: 90px; }

@media (max-width: 480px) {
    .tj-confirm-body, .tj-confirm-foot { padding-left: 1.25rem; padding-right: 1.25rem; }
    .tj-confirm-foot { flex-direction: column-reverse; }
    .tj-confirm-foot .btn { width: 100%; }
}

/* ---- Internal chat (admin ↔ editor-chief) ------------------------ */
.tj-chat {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius, 8px);
    overflow: hidden;
    min-height: 580px;
}
.tj-chat-list {
    border-right: 1px solid var(--tj-border);
    background: #f8f9fc;
    max-height: 720px;
    overflow-y: auto;
}
.tj-chat-list-head {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--tj-muted);
    font-weight: 700;
    padding: 1rem 1rem .35rem;
}
.tj-chat-threads { list-style: none; padding: 0; margin: 0; }
.tj-chat-thread {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    text-decoration: none;
    color: var(--tj-text);
    border-bottom: 1px solid var(--tj-border);
}
.tj-chat-thread:hover { background: rgba(79, 94, 197, .06); text-decoration: none; }
.tj-chat-thread.is-active { background: #eef0fb; border-left: 3px solid var(--tj-blue-600); padding-left: calc(1rem - 3px); }
.tj-chat-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tj-blue-600), #4338ca);
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tj-chat-avatar--ghost {
    background: transparent;
    color: var(--tj-blue-600);
    border: 1px solid var(--tj-border);
}
.tj-chat-thread-body { flex: 1; min-width: 0; }
.tj-chat-thread-name {
    display: flex; justify-content: space-between; align-items: center; gap: .35rem;
    font-weight: 600; font-size: .92rem;
}
.tj-chat-thread-preview {
    display: block;
    color: var(--tj-muted);
    font-size: .8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tj-chat-thread-time {
    color: var(--tj-muted);
    font-size: .72rem;
    flex-shrink: 0;
}
.tj-chat-unread {
    background: var(--tj-blue-600);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .1rem .45rem;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

/* Right pane */
.tj-chat-pane {
    display: flex; flex-direction: column;
    min-width: 0;
}
.tj-chat-empty {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 2rem;
}
.tj-chat-empty h2 { font-family: var(--font-serif, Georgia, serif); margin: 0 0 .35rem; }
.tj-chat-head {
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tj-border);
    background: #fff;
}
.tj-chat-head-name { font-weight: 600; }
.tj-chat-head-role { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.tj-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    background: #fafbff;
    max-height: 540px;
}
.tj-chat-daybreak {
    text-align: center;
    margin: 1rem 0 .5rem;
    position: relative;
}
.tj-chat-daybreak::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%;
    border-top: 1px solid var(--tj-border); z-index: 0;
}
.tj-chat-daybreak span {
    position: relative; z-index: 1;
    background: #fafbff;
    padding: 0 .65rem;
    color: var(--tj-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.tj-chat-msg {
    display: flex; margin: .25rem 0;
}
.tj-chat-msg.is-mine { justify-content: flex-end; }
.tj-chat-bubble {
    max-width: 70%;
    padding: .55rem .85rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--tj-border);
    color: var(--tj-text);
    font-size: .92rem;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}
.tj-chat-msg.is-mine .tj-chat-bubble {
    background: var(--tj-blue-600);
    color: #fff;
    border-color: var(--tj-blue-600);
}
.tj-chat-time {
    display: block;
    margin-top: .25rem;
    font-size: .68rem;
    opacity: .65;
    text-align: right;
}
.tj-chat-msg.is-mine .tj-chat-time { color: rgba(255,255,255,.85); opacity: .9; }

.tj-chat-compose {
    display: flex; gap: .5rem;
    padding: .85rem 1rem;
    border-top: 1px solid var(--tj-border);
    background: #fff;
}
.tj-chat-compose textarea {
    flex: 1;
    border: 1px solid var(--tj-border);
    border-radius: 8px;
    padding: .55rem .75rem;
    font-size: .9rem;
    resize: vertical;
    min-height: 44px;
    max-height: 160px;
    font-family: inherit;
}
.tj-chat-compose textarea:focus {
    outline: 2px solid var(--tj-blue-600);
    outline-offset: 1px;
    border-color: var(--tj-blue-600);
}

@media (max-width: 900px) {
    .tj-chat { grid-template-columns: 1fr; min-height: 0; }
    .tj-chat-list { border-right: 0; border-bottom: 1px solid var(--tj-border); max-height: 280px; }
    .tj-chat-messages { max-height: 420px; }
}

/* ---- Required-field asterisk -------------------------------------- */
.form-label .req,
.req {
    color: #dc2626;          /* red-600 — visible against white form bg */
    font-weight: 700;
    margin-left: 2px;
}

/* ---- Keyword chip editor (Metadata Step 1) ------------------------
   Plain input wrapper + UL of pill chips below. JS in metadata.php
   keeps the hidden field in sync. No shadow, no animation, no
   transform — visual policy. */
.keyword-input-wrapper {
    border: 1px solid var(--tj-border);
    border-radius: 8px;
    padding: .55rem .75rem;
    background: #fff;
    cursor: text;
}
.keyword-input-wrapper:focus-within {
    border-color: var(--tj-blue-600);
    outline: 1px solid var(--tj-blue-600);
}
.keyword-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: .95rem;
    padding: .25rem 0;
    background: transparent;
    color: var(--tj-text);
}
.keyword-tags {
    list-style: none;
    padding: 0;
    margin: .55rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: #eef0fb;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.3;
}
.keyword-remove {
    border: 0;
    background: transparent;
    color: #3730a3;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0 0 0 .15rem;
}
.keyword-remove:hover { color: #1e1b4b; }
.keyword-counter {
    margin: .5rem 0 0;
    font-size: .8rem;
    color: var(--tj-muted);
}
.keyword-error {
    margin: .35rem 0 0;
    font-size: .82rem;
    color: #b91c1c;
}

/* ---- "New submission" — journal confirmation block ----------------
   Used by app/views/author/choose_journal.php when an author picks
   the journal from the dropdown. Green pill with check icon, no
   shadow, no animation. */
.journal-selected-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid #b7ebc6;
    background: #f0fff4;
    color: #166534;
    border-radius: 10px;
}
.journal-check-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.journal-selected-body { flex: 1; min-width: 0; }
.journal-selected-head {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: #166534;
    margin-bottom: .35rem;
}
.journal-selected-name {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tj-text);
    margin-bottom: .35rem;
}
.journal-selected-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .88rem;
    color: var(--tj-text);
}
.journal-selected-list li { padding: .12rem 0; }
.journal-selected-list strong {
    color: var(--tj-muted);
    font-weight: 600;
    margin-right: .25rem;
}

/* Continue button disabled state — readable, no movement on hover */
#tj-newsub-continue[disabled],
#tj-newsub-continue[disabled]:hover {
    opacity: .55;
    cursor: not-allowed;
    background: var(--tj-blue-600);
    color: #fff;
}

/* ---- OAuth provider buttons --------------------------------------- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0 1rem;
    color: var(--tj-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tj-border);
}
.auth-providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .5rem;
}
.auth-provider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .55rem 1rem;
    border: 1px solid var(--tj-border);
    border-radius: 6px;
    background: #fff;
    color: var(--tj-text);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
}
.auth-provider:hover { background: #f8f9fc; text-decoration: none; }
.auth-provider-icon { display: inline-flex; line-height: 0; }

@media (max-width: 768px) {
    .auth-split { grid-template-columns: 1fr; min-height: auto; }
    .auth-split-brand { padding: 2rem 1.5rem; text-align: center; }
    .auth-split-brand-inner { max-width: none; }
    .auth-split-points { display: none; }
    .auth-split-form { padding: 2rem 1rem; }
}

/* ---- Card baseline (single border, no shadow) ---------------------- */
.tj-card {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius, 8px);
    padding: 1.5rem;
}
.tj-card + .tj-card { margin-top: 1.25rem; }
.tj-card-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-family: var(--font-sans);
}

/* ---- Button normalization (no transform on hover) ------------------ */
.btn { box-shadow: none !important; }
.btn:hover, .btn:focus { transform: none !important; }

/* ---- Badge normalization ------------------------------------------- */
.badge { box-shadow: none !important; }

/* ---- Thin scrollbars (global) --------------------------------------
   Applies to the page, dashboard main area and any other overflow:auto
   container that didn't define its own scrollbar look. Discreet, no
   shadow, no animation — keeps focus on the content. */
html {
    scrollbar-width: thin;                                   /* Firefox */
    scrollbar-color: rgba(79, 94, 197, .35) transparent;     /* thumb / track */
}
*::-webkit-scrollbar         { width: 8px; height: 8px; }    /* Chrome / Safari / Edge */
*::-webkit-scrollbar-track   { background: transparent; }
*::-webkit-scrollbar-thumb   {
    background: rgba(79, 94, 197, .35);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(79, 94, 197, .55); background-clip: content-box; }

/* =====================================================================
   Email template preview (admin) — inbox-style envelope.
   No shadows, no animations. Clean Tudor Journals frame around the
   plain-text body so the admin can see how the message will read.
   ===================================================================== */
.tj-email-meta {
    background: #f8f9fc;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius, 8px);
    padding: .85rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}
.tj-email-meta dl {
    margin: 0;
    display: grid;
    grid-template-columns: 80px 1fr;
    row-gap: .2rem;
    column-gap: .75rem;
}
.tj-email-meta dt {
    color: var(--tj-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .7rem;
    font-weight: 700;
    padding-top: .15rem;
}
.tj-email-meta dd { margin: 0; color: var(--tj-text); }

.tj-email {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius, 8px);
    overflow: hidden;
}
.tj-email-header {
    padding: 1.5rem 2rem 1rem;
    background: linear-gradient(135deg, var(--tj-blue-600) 0%, #4338ca 100%);
    color: #fff;
}
.tj-email-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.tj-email-header .brand-monogram {
    width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
}
.tj-email-header .brand-monogram > span {
    font-family: var(--font-serif, Georgia, serif);
    font-style: italic;
    font-size: 1.1rem;
}
.tj-email-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.tj-email-brand-name {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}
.tj-email-brand-tagline {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.75);
    margin-top: .15rem;
}
.tj-email-rule {
    display: block;
    width: 42px; height: 2px;
    margin-top: .85rem;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 2px;
}

.tj-email-body {
    padding: 1.75rem 2rem;
    font-family: var(--font-sans);
    font-size: .98rem;
    line-height: 1.65;
    color: var(--tj-text);
    /* Preserve mono-style breaks but keep proportional font so it looks like
       a normal email, not a code block. */
    white-space: normal;
    word-break: break-word;
}

.tj-email-foot {
    padding: 1.25rem 2rem 1.5rem;
    border-top: 1px solid var(--tj-border);
    background: #f8f9fc;
    font-size: .82rem;
    color: var(--tj-muted);
}
.tj-email-foot p { margin: 0 0 .4rem; }
.tj-email-foot-meta { font-size: .75rem; }
.tj-email-foot-meta a { color: var(--tj-blue-600); text-decoration: none; }
.tj-email-foot-meta a:hover { text-decoration: underline; }

@media (max-width: 540px) {
    .tj-email-header,
    .tj-email-body,
    .tj-email-foot { padding-left: 1.25rem; padding-right: 1.25rem; }
    .tj-email-meta dl { grid-template-columns: 60px 1fr; }
}

/* ---- Preview modal (native <dialog>) ------------------------------- */
.tj-modal {
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius, 8px);
    padding: 0;
    width: min(760px, 92vw);
    max-height: 88vh;
    background: #fff;
    color: var(--tj-text);
}
.tj-modal::backdrop { background: rgba(15, 17, 38, .55); }

.tj-modal-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--tj-border);
    background: #f8f9fc;
}
.tj-modal-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--tj-text);
}
.tj-modal-key {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: .82rem;
    color: var(--tj-muted);
    padding: .15rem .55rem;
    border: 1px solid var(--tj-border);
    border-radius: 999px;
    background: #fff;
}
.tj-modal-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--tj-muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .35rem;
}
.tj-modal-close:hover { color: var(--tj-text); }

.tj-modal-body {
    padding: 0;
    height: 70vh;
    background: #f5f6fb;
}
.tj-modal-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #f5f6fb;
}

@media (max-width: 540px) {
    .tj-modal { width: 96vw; max-height: 92vh; }
    .tj-modal-body { height: 76vh; }
}

/* =====================================================================
   Public Articles page — search + filters + results
   (Inspired by PubMed information architecture; visual identity is
   Tudor Journals — no shadows, no animations, no card-floats.)
   ===================================================================== */

/* ---- Search bar ---------------------------------------------------- */
.tj-articles-search { padding-top: 1.5rem; padding-bottom: 0; }
.tj-search-bar {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius, 8px);
    padding: 1.25rem 1.25rem 1rem;
}
.tj-search-label {
    display: block;
    font-size: .72rem;
    color: var(--tj-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .5rem;
    font-weight: 600;
}
.tj-search-row {
    display: flex;
    gap: .5rem;
    align-items: stretch;
    flex-wrap: wrap;
}
.tj-search-input {
    flex: 1;
    min-width: 240px;
    border: 1px solid var(--tj-border);
    border-radius: 6px;
    padding: .65rem .85rem;
    font-size: 1rem;
    background: #fff;
}
.tj-search-input:focus {
    outline: 2px solid var(--tj-blue-600);
    outline-offset: 1px;
    border-color: var(--tj-blue-600);
}
.tj-search-btn { padding: 0 1.5rem; }
.tj-search-help { font-size: .82rem; margin: .65rem 0 0; }

.tj-search-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid var(--tj-border);
    font-size: .9rem;
}
.tj-search-controls-left { color: var(--tj-text); }
.tj-search-term { color: var(--tj-blue-600); font-weight: 600; }
.tj-search-controls-right {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
}
.tj-search-ctl {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: var(--tj-muted);
}
.tj-search-ctl select {
    border: 1px solid var(--tj-border);
    border-radius: 4px;
    padding: .3rem .5rem;
    background: #fff;
    font-size: .88rem;
    color: var(--tj-text);
}

/* ---- 2-column grid ------------------------------------------------- */
.tj-articles-main { padding-top: 1.25rem; }
.tj-articles-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.75rem;
    align-items: start;
}

/* ---- Sidebar filters ----------------------------------------------- */
.tj-filters {
    position: sticky;
    top: 1rem;
}
.tj-filters-toggle { display: none; }
.tj-filters-form {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius, 8px);
    padding: 1rem 1rem .75rem;
}
.tj-filter-section {
    border: 0;
    padding: 0 0 .85rem;
    margin: 0 0 .85rem;
    border-bottom: 1px solid var(--tj-border);
}
.tj-filter-section:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.tj-filter-section legend {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--tj-muted);
    font-weight: 700;
    margin-bottom: .5rem;
    padding: 0;
}
.tj-filter-check, .tj-filter-radio {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .25rem 0;
    font-size: .88rem;
    color: var(--tj-text);
    cursor: pointer;
}
.tj-filter-check input, .tj-filter-radio input { margin: 0; }
.tj-filter-radio-input {
    margin-top: .5rem;
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; color: var(--tj-muted);
}
.tj-filter-radio-input input {
    width: 90px;
    border: 1px solid var(--tj-border);
    border-radius: 4px;
    padding: .25rem .4rem;
    font-size: .85rem;
}
.tj-filter-count {
    color: var(--tj-muted);
    font-size: .8rem;
    font-style: normal;
    margin-left: .2rem;
}
.tj-filter-reset {
    display: inline-block;
    font-size: .78rem;
    color: var(--tj-blue-600);
    margin-top: .35rem;
}
.tj-filter-clear-all {
    width: 100%;
    margin-top: .75rem;
    font-size: .85rem;
    padding: .45rem;
}

/* ---- Active chips above results ------------------------------------ */
.tj-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 1rem;
}
.tj-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #eef0fb;
    color: var(--tj-blue-600);
    border: 1px solid #c7cef0;
    border-radius: 999px;
    padding: .2rem .7rem;
    font-size: .8rem;
    text-decoration: none;
}
.tj-chip:hover { background: #dfe3f5; text-decoration: none; }
.tj-chip-x { font-weight: 700; }

/* ---- Result list (no cards, divider-based) ------------------------- */
.tj-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius, 8px);
}
.tj-result {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--tj-border);
}
.tj-result:first-child { border-top: 0; }

.tj-result-title {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 .35rem;
    line-height: 1.3;
}
.tj-result-title a {
    color: var(--tj-blue-600);
    text-decoration: none;
}
.tj-result-title a:hover { text-decoration: underline; }
.tj-result-authors {
    font-size: .9rem;
    color: var(--tj-text);
    margin: 0 0 .35rem;
}
.tj-result-meta {
    font-size: .82rem;
    color: var(--tj-muted);
    margin: 0 0 .55rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}
.tj-result-meta a { color: var(--tj-muted); text-decoration: none; }
.tj-result-meta a:hover { color: var(--tj-blue-600); text-decoration: underline; }
.tj-result-type {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--tj-text);
}
.tj-result-dot { color: rgba(0,0,0,.25); }
.tj-result-doi { font-family: ui-monospace, Menlo, Consolas, monospace; }

.tj-result-abstract {
    font-size: .92rem;
    color: var(--tj-text);
    line-height: 1.55;
    margin: .35rem 0 .55rem;
    max-width: 70ch;
}

.tj-result-tags { margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tj-tag {
    display: inline-block;
    border: 1px solid var(--tj-border);
    border-radius: 4px;
    padding: .12rem .5rem;
    font-size: .72rem;
    color: var(--tj-muted);
    background: #f8f9fc;
}
.tj-tag--oa {
    border-color: #34d399;
    color: #047857;
    background: #ecfdf5;
}
.tj-result-actions { margin: .65rem 0 0; display: flex; flex-wrap: wrap; gap: .85rem; font-size: .85rem; }
.tj-action {
    color: var(--tj-blue-600);
    text-decoration: none;
    font-weight: 500;
}
.tj-action:hover { text-decoration: underline; }

/* Display modes ------------------------------------------------------ */
.tj-result-list--compact  .tj-result { padding: .9rem 1.25rem; }
.tj-result-list--compact  .tj-result-title { font-size: 1rem; }

/* ---- Pagination ---------------------------------------------------- */
.tj-pagination {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}
.tj-page {
    padding: .35rem .75rem;
    border: 1px solid var(--tj-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--tj-text);
    background: #fff;
}
.tj-page:hover { background: #f8f9fc; text-decoration: none; }
.tj-page.is-current {
    background: var(--tj-blue-600);
    color: #fff;
    border-color: var(--tj-blue-600);
}
.tj-page.is-disabled {
    color: rgba(0,0,0,.3);
    background: #f8f9fc;
    cursor: not-allowed;
}
.tj-page-gap { padding: 0 .25rem; color: var(--tj-muted); }
.tj-page-summary { margin-left: 1rem; }

/* ---- Empty state --------------------------------------------------- */
.tj-empty {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius, 8px);
    padding: 2.5rem 1.5rem;
    text-align: center;
}
.tj-empty h2 { font-family: var(--font-serif, Georgia, serif); margin: 0 0 .5rem; font-size: 1.35rem; }
.tj-empty p  { color: var(--tj-muted); max-width: 480px; margin: 0 auto 1rem; }
.tj-empty-actions { display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap; }

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 900px) {
    .tj-articles-grid { grid-template-columns: 1fr; }
    .tj-filters { position: static; }
    .tj-filters-toggle {
        display: inline-block;
        background: #fff;
        border: 1px solid var(--tj-border);
        border-radius: 6px;
        padding: .55rem 1rem;
        font-weight: 600;
        color: var(--tj-text);
        cursor: pointer;
        margin-bottom: .75rem;
        width: 100%;
        text-align: left;
    }
    .tj-filters-toggle::after { content: ' \25BE'; float: right; }
    .tj-filters-toggle[aria-expanded="true"]::after { content: ' \25B4'; }
    .tj-filters-form { display: none; }
    .tj-filters-form.is-open { display: block; }
    .tj-search-controls { font-size: .85rem; }
    .tj-search-controls-right { width: 100%; }
}
@media (max-width: 540px) {
    .tj-search-btn { flex: 1; }
    .tj-result { padding: 1rem; }
    .tj-result-meta { font-size: .78rem; }
    .tj-pagination { gap: .25rem; }
    .tj-page { padding: .3rem .55rem; font-size: .85rem; }
    .tj-page-summary { width: 100%; text-align: center; margin: .5rem 0 0; }
}

/* Quill alignment classes — rendered on public CMS pages and journal rich-text panes. */
.ql-align-center  { text-align: center !important; }
.ql-align-right   { text-align: right  !important; }
.ql-align-justify { text-align: justify !important; }

/* Public CMS pages — generic typography */
.cms-page { line-height: 1.7; font-size: 1rem; color: #1f2937; }
.cms-page h2 { font-size: 1.4rem; margin: 1.75rem 0 .75rem; }
.cms-page h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.cms-page p  { margin: 0 0 1rem; }
.cms-page ul, .cms-page ol { margin: 0 0 1rem 1.5rem; }
.cms-page li { margin-bottom: .35rem; }
.cms-page blockquote { border-left: 3px solid var(--tj-border); padding: .25rem 0 .25rem 1rem; color: #475569; margin: 1rem 0; }
.cms-page a { color: #2563eb; text-decoration: underline; }

/* ========================================================================
   HERO v2 — Academic gradient + SVG pattern + inline stats
   ======================================================================== */
.hero--v2 {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #3730a3 100%);
    color: #fff;
    padding: 2rem 0 2rem;
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none; opacity: .5;
}
.hero--v2 .container { position: relative; z-index: 1; }
.hero--v2 .hero-grid {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 500;
    padding: .42rem .9rem; border-radius: 999px; margin-bottom: 1.5rem;
    letter-spacing: .02em;
}
.hero-eyebrow-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #10b981;
    animation: tjPulseDot 2s infinite;
}
@keyframes tjPulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
    70%  { box-shadow: 0 0 0 9px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.hero-title {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 700; line-height: 1.15; margin: 0 0 .85rem;
    letter-spacing: -.015em;
}
.hero-title-accent {
    background: linear-gradient(90deg, #fbbf24, #f97316);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
    font-size: .95rem; line-height: 1.55; color: rgba(255,255,255,.82);
    margin: 0 0 1.25rem; max-width: 520px;
}
.hero--v2 .hero-actions {
    display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.hero-btn-primary { display: inline-flex; align-items: center; gap: .5rem; }
.hero-btn-arrow { transition: transform .2s; }
.hero-btn-primary:hover .hero-btn-arrow { transform: translateX(4px); }

.hero-inline-stats {
    display: flex; align-items: center; gap: 1.2rem;
    padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num { font-size: 1.3rem; }
.hero-stat-label { font-size: .72rem; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-divider { width: 1px; height: 34px; background: rgba(255,255,255,.16); }

/* Refined search card */
.hero--v2 .search-card {
    background: #fff; border-radius: 14px; padding: 1.75rem;
    color: var(--tj-text);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.45);
}
.hero--v2 .search-card h3 {
    margin: 0 0 1rem; font-size: 1rem; font-weight: 600; color: var(--tj-text);
}
.hero--v2 .search-form { display: flex; gap: .5rem; margin-bottom: 1rem; }
.hero--v2 .search-form input {
    flex: 1; padding: .75rem .9rem;
    border: 1px solid var(--tj-border); border-radius: 8px;
    font-size: .92rem; outline: none; min-height: 44px;
    color: #1f2937; background: #fff;
}
.hero--v2 .search-form input::placeholder { color: #9ca3af; }
.hero--v2 .search-form input::selection { background: #2563eb; color: #fff;
}
.hero--v2 .search-form input:focus {
    border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.hero--v2 .search-form button {
    background: #1e3a8a; color: #fff; border: 0; border-radius: 8px;
    padding: 0 1rem; cursor: pointer; min-width: 48px;
    display: flex; align-items: center; justify-content: center;
}
.hero--v2 .search-form button:hover { background: #1e40af; }
.hero--v2 .search-pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.hero--v2 .search-pills a {
    font-size: .8rem; background: #f3f4f6; color: #374151;
    padding: .35rem .8rem; border-radius: 999px;
    text-decoration: none; transition: background .15s;
}
.hero--v2 .search-pills a:hover { background: #e5e7eb; }
.search-divider { height: 1px; background: var(--tj-border); margin: 1.25rem 0; }
.search-features { display: flex; flex-direction: column; gap: .55rem; }
.search-feature {
    display: flex; align-items: center; gap: .55rem;
    font-size: .85rem; color: #4b5563;
}
.search-feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: #d1fae5; color: #065f46;
    font-weight: 700; font-size: .7rem; flex-shrink: 0;
}

/* ========================================================================
   RESPONSIVE — home page across breakpoints
   ======================================================================== */
@media (max-width: 1024px) { .hero--v2 { padding: 1.75rem 0 1.75rem; }
    .hero--v2 { padding: 2.5rem 0 2.25rem; }
    .hero--v2 .hero-grid { gap: 2rem; }
}

@media (max-width: 900px) {
    .hero--v2 .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero--v2 .hero-aside { order: -1; max-width: 480px; }
    .hero-inline-stats { flex-wrap: wrap; gap: 1.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .jc-grid { grid-template-columns: repeat(2, 1fr); }
    .tj-issues-grid { grid-template-columns: repeat(2, 1fr); }
    .article-list--grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero--v2 { padding: 2.5rem 0 2.5rem; }
    .hero-title { font-size: 1.85rem; }
    .hero-lead { font-size: .98rem; }
    .hero--v2 .hero-actions { flex-direction: column; gap: .55rem; }
    .hero--v2 .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-inline-stats { justify-content: space-between; gap: .75rem; }
    .hero-stat-divider { display: none; }
    .hero-stat-num { font-size: 1.35rem; }
    .hero-stat-label { font-size: .74rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }  
    .stat-num { font-size: 1.85rem; }
    .features-grid { grid-template-columns: 1fr; }
    .jc-grid { grid-template-columns: 1fr; }
    .tj-issues-grid { grid-template-columns: 1fr; }
    .cta-strip { padding: 2.5rem 1rem; }
    .cta-strip .hero-actions { flex-direction: column; gap: .55rem; }
    .cta-strip .btn { width: 100%; }
    .section-head h2 { font-size: 1.5rem; }
    .hero--v2 .search-card { padding: 1.25rem; }
}

/* Touch device — minimum tap targets */
@media (hover: none) and (pointer: coarse) {
    .btn, .tj-page-link, .search-pills a { min-height: 44px; }
}

/* ========================================================================
   PUBLIC JOURNALS PAGE — editorial / academic
   ======================================================================== */
.tj-public-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
    color: #ffffff;
    padding: 2.5rem 0 2.25rem;
    text-align: center;
}
.tj-public-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(5,255,255,.92);
    font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
    padding: .35rem .85rem; border-radius: 999px; margin: 0 0 1rem;
}
.tj-public-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #10b981;
}
.tj-public-hero h1,
.tj-public-h1 {
    color: #fff !important;
    font-size: clamp(1.65rem, 3.5vw, 2.4rem);
    font-weight: 700; line-height: 1.15;
    margin: 0 0 .65rem; letter-spacing: -.01em;
}
.tj-public-hero p,
.tj-public-sub {
    color: rgba(255,255,255,.85) !important;
    font-size: 1rem; line-height: 1.6;
    max-width: 760px; margin: 0 auto 1.5rem;
}
.tj-public-cta {
    display: flex; gap: .55rem; flex-wrap: wrap; justify-content: center;
}

/* Search + filter bar */
.tj-jsearch {
    background: #fff; border: 1px solid var(--tj-border);
    border-radius: 12px; padding: 1rem 1.1rem;
    margin: -1.25rem auto 2rem; position: relative; z-index: 2;
    max-width: 1120px;
    box-shadow: 0 6px 24px -8px rgba(15,23,42,.18);
}
.tj-jsearch-row {
    display: grid;
    grid-template-columns: 1fr 220px auto auto;
    gap: .55rem;
    align-items: center;
}
.tj-jsearch-input {
    position: relative; display: flex; align-items: center;
}
.tj-jsearch-input svg {
    position: absolute; left: .8rem; width: 18px; height: 18px;
    color: #6b7280; pointer-events: none;
}
.tj-jsearch-input input {
    width: 100%; padding: .65rem .85rem .65rem 2.4rem;
    border: 1px solid var(--tj-border); border-radius: 8px;
    font-size: .92rem; min-height: 44px; outline: none;
}
.tj-jsearch-input input:focus {
    border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.tj-jsearch select {
    padding: .65rem .8rem; border: 1px solid var(--tj-border);
    border-radius: 8px; min-height: 44px; font-size: .92rem;
    background: #fff; cursor: pointer;
}
.tj-jsearch-meta {
    margin-top: .85rem; font-size: .85rem; color: #4b5563;
}

/* Refined journal cards (academic) */
.jc--academic {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--tj-border);
    border-radius: 12px; overflow: hidden;
    transition: border-color .15s, transform .15s;
}
.jc--academic:hover { border-color: #1e3a8a; }
.jc--academic .jc-cover {
    aspect-ratio: 16 / 9; display: block;
    background: #f3f4f6; overflow: hidden;
}
.jc--academic .jc-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.jc--academic .jc-cover-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .35rem;
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    color: #fff;
}
.jc--academic .jc-cover-monogram {
    font-size: 1.85rem; font-weight: 700; letter-spacing: .04em;
}
.jc--academic .jc-cover-pub {
    font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
    color: rgba(255,255,255,.75);
}
.jc--academic .jc-body {
    padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .55rem;
}
.jc--academic .jc-title {
    margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3;
}
.jc--academic .jc-title a { color: #0f172a; text-decoration: none; }
.jc--academic .jc-title a:hover { color: #1e3a8a; text-decoration: underline; }
.jc-acronym {
    margin: 0; font-size: .78rem; color: #6b7280; letter-spacing: .02em;
}
.jc--academic .jc-meta {
    margin: 0; font-size: .82rem; color: #4b5563;
    display: flex; flex-wrap: wrap; gap: .35rem; align-items: center;
}
.jc-sep { color: #cbd5e1; }
.jc--academic .jc-badges {
    display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .15rem;
}
.jc-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 600;
    padding: .2rem .55rem; border-radius: 999px;
    letter-spacing: .02em;
}
.jc-pill--oa { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.jc-pill--accept { background: #10b981; color: #fff; }
.jc-pill--accept .jc-pill-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #fff;
}
.jc-pill--closed { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.jc--academic .jc-desc {
    margin: .25rem 0 0; font-size: .9rem; line-height: 1.55;
    color: #374151;
}
.jc-articles {
    margin: 0; font-size: .78rem; color: #6b7280;
    border-top: 1px dashed var(--tj-border); padding-top: .65rem; margin-top: .25rem;
}
.jc--academic .jc-actions {
    display: flex; gap: .45rem; margin-top: .65rem;
}
.jc-btn {
    flex: 1; text-align: center; padding: .55rem .8rem;
    border-radius: 8px; font-size: .82rem; font-weight: 600;
    text-decoration: none; min-height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s, border-color .15s;
}
.jc-btn--ghost { background: #fff; color: #1e3a8a; border: 1px solid #cbd5e1; }
.jc-btn--ghost:hover { background: #f1f5f9; border-color: #1e3a8a; }
.jc-btn--primary { background: #1e3a8a; color: #fff; border: 1px solid #1e3a8a; }
.jc-btn--primary:hover { background: #1e40af; border-color: #1e40af; }

/* Editorial workflow */
.tj-section-head {
    text-align: center; max-width: 760px; margin: 0 auto 2rem;
}
.tj-section-head h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    margin: 0 0 .5rem; color: #0f172a;
}
.tj-section-head p {
    color: #4b5563; font-size: 1rem; line-height: 1.6; margin: 0;
}
.tj-workflow { background: #fff; border-top: 1px solid var(--tj-border); }
.tj-workflow-steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.tj-workflow-step {
    background: #f8f9fc; border: 1px solid var(--tj-border);
    border-radius: 10px; padding: 1.25rem 1.25rem 1.1rem;
    position: relative;
}
.tj-workflow-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: #1e3a8a; color: #fff;
    font-weight: 700; font-size: .92rem;
    margin-bottom: .65rem;
}
.tj-workflow-step h3 {
    margin: 0 0 .35rem; font-size: 1rem; color: #0f172a;
}
.tj-workflow-step p {
    margin: 0; font-size: .88rem; line-height: 1.55; color: #4b5563;
}

/* Roles grid */
.tj-roles-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.tj-role-card {
    background: #fff; border: 1px solid var(--tj-border);
    border-radius: 10px; padding: 1.25rem;
    display: flex; flex-direction: column;
}
.tj-role-card h3 {
    margin: 0 0 .4rem; font-size: 1rem; color: #1e3a8a;
}
.tj-role-card p {
    margin: 0 0 .85rem; font-size: .88rem; line-height: 1.55; color: #4b5563;
    flex: 1;
}
.tj-role-link {
    font-size: .85rem; color: #1e3a8a; font-weight: 600;
    text-decoration: none;
}
.tj-role-link:hover { text-decoration: underline; }

/* Footer additions */
.footer-static {
    color: rgba(255,255,255,.55); font-size: .85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .tj-jsearch-row { grid-template-columns: 1fr; }
    .tj-jsearch select, .tj-jsearch .btn { width: 100%; }
    .tj-workflow-steps { grid-template-columns: repeat(2, 1fr); }
    .tj-roles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .tj-public-hero { padding: 1.75rem 0 1.5rem; }
    .tj-public-cta { flex-direction: column; }
    .tj-public-cta .btn { width: 100%; }
    .tj-workflow-steps { grid-template-columns: 1fr; }
    .tj-roles-grid { grid-template-columns: 1fr; }
    .jc--academic .jc-actions { flex-direction: column; }
    .jc-btn { width: 100%; }
}

/* Focus visibility (accessibility) */
.tj-jsearch-input input:focus-visible,
.tj-jsearch select:focus-visible,
.jc-btn:focus-visible,
.tj-public-cta .btn:focus-visible {
    outline: 2px solid #fbbf24; outline-offset: 2px;
}

/* ========================================================================
   JOURNAL DETAIL v2 — editorial / academic refinements
   ======================================================================== */
.jh--v2 { padding: 2.25rem 0 1.75rem; }
.jh--v2 .jh-grid { gap: 2rem; align-items: start; }
.jh--v2 .jh-cover {
    border-radius: 8px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
}

/* Compact badges */
.jh-badges--v2 { gap: .35rem; margin-bottom: .85rem; }
.jh-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 600; letter-spacing: .02em;
    padding: .22rem .6rem; border-radius: 999px;
    background: rgba(255,255,255,.1); color: #fff;
    border: 1px solid rgba(255,255,255,.18);
}
.jh-pill .tj-i { width: 12px; height: 12px; }
.jh-pill--oa { background: rgba(16,185,129,.18); border-color: rgba(16,185,129,.4); color: #d1fae5; }
.jh-pill--accept { background: #10b981; border-color: #10b981; color: #fff; }
.jh-pill--accept .jh-pill-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #fff;
}

.jh--v2 .jh-title { margin: 0 0 .35rem; }
.jh-abbrev { color: rgba(255,255,255,.78); font-size: .92rem; margin: 0 0 .5rem; }
.jh-meta--v2 {
    font-size: .9rem; color: rgba(255,255,255,.85);
    line-height: 1.5; margin: 0 0 .35rem;
}
.jh-editor { color: rgba(255,255,255,.9); font-size: .92rem; margin: 0 0 1.25rem; }
.jh-actions--v2 { display: flex; gap: .55rem; flex-wrap: wrap; }
.jh-actions--v2 .btn { display: inline-flex; align-items: center; gap: .5rem; }

/* Tabs v2 — wraps gracefully */
.jp-tabs--v2 {
    display: flex; flex-wrap: wrap; gap: .25rem;
    border-bottom: 1px solid var(--tj-border);
    margin-bottom: 1.5rem;
}
.jp-tabs--v2 .jp-tab {
    padding: .65rem 1rem; background: transparent; border: 0;
    font-size: .92rem; font-weight: 500; color: #4b5563;
    cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.jp-tabs--v2 .jp-tab:hover { color: #1e3a8a; }
.jp-tabs--v2 .jp-tab.is-active {
    color: #1e3a8a; border-bottom-color: #1e3a8a; font-weight: 600;
}
.jp-tabs--v2 .jp-tab:focus-visible {
    outline: 2px solid #fbbf24; outline-offset: 2px; border-radius: 4px;
}

/* Scholarly empty state */
.jp-empty--scholarly {
    background: #f8f9fc; border: 1px solid var(--tj-border);
    border-radius: 10px; padding: 2rem 1.5rem; text-align: center;
}
.jp-empty--scholarly h3 {
    margin: 0 0 .6rem; font-size: 1.1rem; color: #0f172a;
}
.jp-empty--scholarly p {
    margin: 0 auto 1.25rem; max-width: 540px;
    color: #4b5563; font-size: .95rem; line-height: 1.55;
}
.jp-empty-actions {
    display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap;
}
.jp-empty-actions .btn { display: inline-flex; align-items: center; gap: .5rem; }

/* Policies grid (inside Editorial Policies tab) */
.jp-policies-grid {
    display: flex; flex-direction: column; gap: 1.25rem;
}
.jp-policy-card { padding: 1.5rem 1.75rem; }
.jp-policy-card h3 {
    margin: 0 0 .85rem; font-size: 1.15rem;
    color: #1e3a8a; padding-bottom: .55rem;
    border-bottom: 1px solid var(--tj-border);
}
.jp-policy-body { font-size: .95rem; line-height: 1.65; }

/* Sidebar policy list */
.jp-policy-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: .35rem;
}
.jp-policy-list a {
    display: block; padding: .35rem 0; color: #1e3a8a;
    font-size: .88rem; text-decoration: none; border-bottom: 1px solid var(--tj-border);
}
.jp-policy-list li:last-child a { border-bottom: 0; }
.jp-policy-list a:hover { text-decoration: underline; }

/* Card buttons */
.jp-card-cta { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; margin-top: .85rem; }
.jp-card-cta .tj-i { width: 14px; height: 14px; }

/* Editor email */
.jp-editor-email { font-size: .85rem; color: #1e3a8a; }
.jp-editor-email:hover { text-decoration: underline; }

/* Focus visibility */
.jp-card a:focus-visible,
.jp-empty-actions .btn:focus-visible,
.jh-actions--v2 .btn:focus-visible {
    outline: 2px solid #fbbf24; outline-offset: 2px;
}

/* Mobile — stack sidebar below content */
@media (max-width: 900px) {
    .jp-grid { grid-template-columns: 1fr; }
    .jp-aside { margin-top: 1.5rem; }
}
@media (max-width: 600px) {
    .jh--v2 { padding: 1.5rem 0 1.25rem; }
    .jh--v2 .jh-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .jh--v2 .jh-cover { max-width: 180px; }
    .jh-actions--v2 .btn { width: 100%; justify-content: center; }
}

/* ========================================================================
   PUBLIC ARTICLES PAGE — compact hero + scholarly empty states
   ======================================================================== */
.tj-articles-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
    color: #fff;
    padding: 2rem 0 1.75rem;
}
.tj-articles-hero h1 {
    color: #fff !important;
    margin: 0 0 .4rem;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.tj-articles-sub {
    color: rgba(255,255,255,.85) !important;
    font-size: 1rem; margin: 0 0 .65rem; max-width: 760px;
}
.tj-articles-stats {
    color: rgba(255,255,255,.78); font-size: .85rem;
    margin: 0; display: flex; flex-wrap: wrap; gap: .35rem .55rem;
    align-items: center;
}
.tj-articles-stats strong { color: #fff; font-weight: 700; }
.tj-articles-stats-dot { color: rgba(255,255,255,.4); }

/* Scholarly empty state */
.tj-empty--scholarly {
    background: #f8f9fc; border: 1px solid var(--tj-border);
    border-radius: 12px; padding: 2.5rem 1.5rem;
    text-align: center; margin-bottom: 1rem;
}
.tj-empty--scholarly h2 {
    margin: 0 0 .75rem; font-size: 1.3rem; color: #0f172a;
}
.tj-empty--scholarly p {
    margin: 0 auto 1.5rem; max-width: 640px;
    color: #4b5563; font-size: .95rem; line-height: 1.6;
}

/* Browse by Journal grid */
.tj-articles-jgrid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.tj-articles-jcard {
    background: #fff; border: 1px solid var(--tj-border);
    border-radius: 10px; padding: 1.1rem 1.25rem;
}
.tj-articles-jcard h3 { margin: 0 0 .35rem; font-size: 1rem; }
.tj-articles-jcard h3 a { color: #0f172a; text-decoration: none; }
.tj-articles-jcard h3 a:hover { color: #1e3a8a; text-decoration: underline; }
.tj-articles-jmeta {
    margin: 0 0 .85rem; font-size: .82rem; color: #4b5563;
    display: flex; flex-wrap: wrap; gap: .35rem; align-items: center;
}
.tj-articles-jpill {
    display: inline-flex; align-items: center;
    font-size: .7rem; font-weight: 600; padding: .15rem .55rem;
    border-radius: 999px; letter-spacing: .02em;
}
.tj-articles-jpill--oa { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.tj-articles-jpill--accept { background: #10b981; color: #fff; }
.tj-articles-jactions { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn.btn-sm { padding: .35rem .75rem; font-size: .82rem; }

/* Role guidance grid */
.tj-articles-rgrid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.tj-articles-rcard {
    background: #fff; border: 1px solid var(--tj-border);
    border-radius: 10px; padding: 1.25rem;
}
.tj-articles-rcard h3 {
    margin: 0 0 .4rem; font-size: 1rem; color: #1e3a8a;
}
.tj-articles-rcard p {
    margin: 0; font-size: .88rem; line-height: 1.55; color: #4b5563;
}

/* Smaller, more discreet back-to-top button */
.back-to-top {
    width: 36px !important; height: 36px !important;
    bottom: 1.25rem !important; right: 1.25rem !important;
    font-size: .95rem !important;
    background: rgba(15,23,42,.85) !important;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,.25);
    transition: background .15s;
}
.back-to-top:hover { background: #1e3a8a !important; }

/* Responsive */
@media (max-width: 900px) {
    .tj-articles-rgrid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .tj-articles-hero { padding: 1.5rem 0 1.25rem; }
    .tj-articles-stats { font-size: .78rem; }
    .tj-empty--scholarly { padding: 1.75rem 1rem; }
    .tj-empty-actions { flex-direction: column; align-items: stretch; }
    .tj-empty-actions .btn { width: 100%; }
}

/* ========================================================================
   SIDEBAR v2 — sticky header/footer, collapsible groups, refined active
   ======================================================================== */
.dashboard-sidebar {
    display: flex; flex-direction: column;
    overflow: hidden; /* nav handles scroll */
}
.dashboard-brand,
.dashboard-userblock,
.dashboard-search { flex-shrink: 0; }
.dashboard-nav { flex: 1; overflow-y: auto; }
.dashboard-sidebar-foot { flex-shrink: 0; border-top: 1px solid rgba(255,255,255,.08); }

/* Quick search input */
.dashboard-search {
    position: relative;
    padding: .5rem .85rem .85rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.dashboard-search-icon {
    position: absolute; left: 1.45rem; top: 50%;
    transform: translateY(-15%);
    color: rgba(255,255,255,.55);
    display: inline-flex;
}
.dashboard-search input {
    width: 100%; padding: .5rem .7rem .5rem 2rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: #fff; font-size: .85rem; outline: none;
    transition: border-color .15s, background .15s;
}
.dashboard-search input::placeholder { color: rgba(255,255,255,.5); }
.dashboard-search input:focus {
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.1);
}

/* Collapsible groups via <details>/<summary> */
.dashboard-nav-group { padding: 0; margin: 0; }
.dashboard-nav-label {
    display: block;
    padding: .85rem 1.25rem .35rem;
    font-size: .68rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.55);
}


.dashboard-nav-items { padding: 0 0 .5rem; }

/* Active state — left accent bar + stronger contrast */
.dashboard-nav-item {
    position: relative;
    display: flex; align-items: center; gap: .65rem;
    padding: .55rem 1.25rem;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .9rem; font-weight: 500;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.dashboard-nav-item:hover {
    background: rgba(255,255,255,.06); color: #fff;
}
.dashboard-nav-item.active {
    background: rgba(99,102,241,.18);
    color: #fff;
    border-left-color: #818cf8;
    font-weight: 600;
}
.dashboard-nav-item.active .dashboard-nav-icon { color: #fff; }
.dashboard-nav-item:focus-visible {
    outline: 2px solid #fbbf24; outline-offset: -2px; border-radius: 4px;
}
.dashboard-nav-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; flex-shrink: 0;
    color: rgba(255,255,255,.7);
}
.dashboard-nav-icon svg { width: 18px; height: 18px; }
.dashboard-nav-text { flex: 1; line-height: 1.3; }
.dashboard-nav-count {
    background: rgba(99,102,241,.25);
    color: #c7d2fe;
    font-size: .7rem; font-weight: 700;
    padding: .12rem .45rem; border-radius: 999px;
    min-width: 22px; text-align: center;
}

/* Visually hidden helper */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Mobile off-canvas */
@media (max-width: 900px) {
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open::after {
        content: ''; position: fixed; inset: 0;
        background: rgba(0,0,0,.5); z-index: 40;
    }
    .dashboard-sidebar { z-index: 50; }
}

/* ========================================================================
   OXTON-STYLE MINIMALIST LIST — Tudor Journals applied to People page
   ======================================================================== */
.tj-list { background: #f8f9fc; }

/* Tab pills with counts */
.tj-tabs-pills {
    display: flex; gap: .25rem; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--tj-border);
    border-radius: 10px; padding: .35rem;
    margin: 0 0 1.25rem;
}
.tj-tab-pill {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem 1rem; border-radius: 6px;
    color: #4b5563; text-decoration: none;
    font-size: .9rem; font-weight: 500;
    transition: background .15s, color .15s;
}
.tj-tab-pill:hover { background: #f3f4f6; color: #1e3a8a; }
.tj-tab-pill.is-active {
    background: #1e3a8a; color: #fff;
    font-weight: 600;
}
.tj-tab-pill.is-active .tj-tab-count { background: rgba(255,255,255,.2); color: #fff; }
.tj-tab-count {
    background: #e5e7eb; color: #6b7280;
    padding: .1rem .5rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700; min-width: 22px; text-align: center;
}

/* Toolbar */
.tj-toolbar {
    display: flex; gap: .55rem; flex-wrap: wrap;
    justify-content: space-between; align-items: center;
    background: #fff; border: 1px solid var(--tj-border);
    border-radius: 10px; padding: .75rem 1rem;
    margin: 0 0 .9rem;
}
.tj-toolbar-left, .tj-toolbar-right {
    display: flex; gap: .55rem; align-items: center; flex-wrap: wrap;
}
.tj-toolbar-select { width: auto; min-width: 140px; }
.tj-toolbar-search { width: 280px; max-width: 100%; }
.tj-toolbar-sel-count {
    background: #eef0fb; color: #3730a3;
    padding: .25rem .65rem; border-radius: 999px;
    font-size: .78rem; font-weight: 600;
}
.btn.btn-sm { padding: .4rem .85rem; font-size: .85rem; }

/* Table */
.tj-table-wrap {
    background: #fff; border: 1px solid var(--tj-border);
    border-radius: 10px; overflow: hidden;
}
.tj-table {
    width: 100%; border-collapse: collapse;
}
.tj-table thead {
    background: #f9fafb; border-bottom: 1px solid var(--tj-border);
}
.tj-table th {
    padding: .85rem 1rem; text-align: left;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: #6b7280;
}
.tj-table tbody tr {
    border-top: 1px solid var(--tj-border);
    transition: background .12s;
}
.tj-table tbody tr:hover { background: #f9fafb; }
.tj-table tbody tr:first-child { border-top: 0; }
.tj-table td { padding: .9rem 1rem; vertical-align: middle; }
.tj-table-check { width: 38px; padding: .9rem .85rem; }
.tj-table-check input { width: 16px; height: 16px; cursor: pointer; }
.tj-table-actions { width: 130px; text-align: right; position: relative; }
.tj-table-empty { padding: 2.5rem 1rem !important; text-align: center; color: #9ca3af; }

.tj-cell-name strong { color: #0f172a; }
.tj-cell-sub { font-size: .78rem; color: #6b7280; margin-top: .1rem; }
.tj-cell-muted { color: #6b7280; font-size: .88rem; }

/* Pills */
.tj-pill {
    display: inline-flex; align-items: center;
    padding: .2rem .6rem; border-radius: 999px;
    font-size: .72rem; font-weight: 600;
    letter-spacing: .02em;
}
.tj-pill--neutral { background: #eef0fb; color: #3730a3; border: 1px solid #c7d2fe; }
.tj-pill--success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.tj-pill--danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.tj-pill--warning { background: #fef3c7; color: #78350f; border: 1px solid #fde68a; }

/* Actions (Edit + ⋯) */
.tj-action-link {
    color: #1e3a8a; font-weight: 600; font-size: .85rem;
    text-decoration: none; margin-right: .35rem;
}
.tj-action-link:hover { text-decoration: underline; }
.tj-action-menu { display: inline-block; position: relative; vertical-align: middle; }
.tj-action-dots {
    background: transparent; border: 1px solid var(--tj-border);
    color: #6b7280; cursor: pointer;
    width: 28px; height: 28px; border-radius: 6px;
    font-size: 1.1rem; line-height: 1;
}
.tj-action-dots:hover { background: #f3f4f6; color: #1e3a8a; border-color: #1e3a8a; }
.tj-action-popover {
    position: absolute; right: 0; top: calc(100% + 4px);
    background: #fff; border: 1px solid var(--tj-border);
    border-radius: 8px; box-shadow: 0 10px 25px -5px rgba(15,23,42,.12);
    min-width: 180px; z-index: 30; padding: .35rem 0;
}
.tj-action-popover[hidden] { display: none; }
.tj-action-popover a,
.tj-action-popover button {
    display: block; width: 100%; text-align: left;
    padding: .55rem .9rem; background: transparent; border: 0;
    font-size: .85rem; color: #1f2937; text-decoration: none; cursor: pointer;
}
.tj-action-popover form { margin: 0; }
.tj-action-popover a:hover,
.tj-action-popover button:hover { background: #f3f4f6; color: #1e3a8a; }

/* Responsive */
@media (max-width: 720px) {
    .tj-toolbar { flex-direction: column; align-items: stretch; }
    .tj-toolbar-left, .tj-toolbar-right { width: 100%; }
    .tj-toolbar-search { width: 100%; }
    .tj-table { font-size: .85rem; }
    .tj-table-actions { width: auto; }
}

/* ========================================================================
   AUTH PAGES (login/register/forgot/reset) — minimal chrome
   ======================================================================== */
.auth-body { background: #f8f9fc; }
.auth-main { min-height: 100vh; display: flex; flex-direction: column; }

.auth-back-link {
    position: fixed; top: 1.25rem; left: 1.5rem; z-index: 30;
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem .9rem;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 999px;
    color: #1e3a8a; text-decoration: none;
    font-size: .85rem; font-weight: 600;
}
.auth-back-link:hover {
    background: #fff;
    color: #0f172a;
}

@media (max-width: 600px) {
    .auth-back-link {
        top: .75rem; left: .75rem;
        padding: .4rem .75rem; font-size: .8rem;
    }
}
.auth-body .auth-main  { min-height: 100vh; }
.auth-body .auth-split { min-height: 100vh; }
.auth-body .auth-wrap  { min-height: 100vh; }

/* User chip in dashboard header — name + role under */
.dashboard-userchip-meta {
    display: inline-flex; flex-direction: column;
    line-height: 1.15; margin-left: .55rem;
}
.dashboard-userchip-name {
    font-size: .9rem; font-weight: 600; color: #1f2937;
}
.dashboard-userchip-role {
    font-size: .72rem; font-weight: 500;
    color: #6b7280; letter-spacing: .02em;
    margin-top: .15rem;
}

/* Hide on small screens to save space */
@media (max-width: 600px) {
    .dashboard-userchip-meta { display: none; }
}

/* ========================================================================
   USER MENU DROPDOWN (header)
   ======================================================================== */
.dashboard-usermenu { position: relative; }
.dashboard-usermenu .dashboard-userchip {
    display: inline-flex; align-items: center; gap: .5rem;
    background: transparent; border: 1px solid rgba(15,23,42,.1);
    padding: .35rem .65rem .35rem .35rem;
    border-radius: 999px; cursor: pointer;
}
.dashboard-usermenu .dashboard-userchip:hover { background: #f3f4f6; }
.dashboard-usermenu.is-open .dashboard-userchip { background: #eef0fb; border-color: #c7d2fe; }
.dashboard-userchip-caret {
    color: #6b7280; transition: transform .15s;
}
.dashboard-usermenu.is-open .dashboard-userchip-caret { transform: rotate(180deg); }

.dashboard-usermenu-panel {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 260px; background: #fff;
    border: 1px solid rgba(15,23,42,.1);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(15,23,42,.18);
    padding: .35rem;
    z-index: 80;
}
.dashboard-usermenu-panel[hidden] { display: none; }

.dashboard-usermenu-head {
    display: flex; gap: .65rem; align-items: flex-start;
    padding: .85rem .85rem .85rem;
    border-bottom: 1px solid #eef0fb;
    margin-bottom: .35rem;
}
.dashboard-usermenu-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: #1e3a8a; color: #fff;
    font-weight: 700; font-size: .85rem;
    flex-shrink: 0;
}
.dashboard-usermenu-head strong { display: block; font-size: .92rem; color: #0f172a; }
.dashboard-usermenu-rolebadge {
    display: inline-block; margin-top: .35rem;
    background: #eef0fb; color: #3730a3;
    font-size: .68rem; font-weight: 700;
    padding: .15rem .55rem; border-radius: 999px;
    letter-spacing: .04em; text-transform: uppercase;
}

.dashboard-usermenu-item {
    display: flex; align-items: center; gap: .65rem;
    padding: .55rem .75rem; border-radius: 6px;
    color: #374151; text-decoration: none;
    font-size: .88rem;
}
.dashboard-usermenu-item svg { color: #6b7280; flex-shrink: 0; }
.dashboard-usermenu-item:hover {
    background: #f3f4f6; color: #1e3a8a;
}
.dashboard-usermenu-item:hover svg { color: #1e3a8a; }
.dashboard-usermenu-signout { color: #b91c1c; }
.dashboard-usermenu-signout svg { color: #b91c1c; }
.dashboard-usermenu-signout:hover { background: #fee2e2; color: #991b1b; }
.dashboard-usermenu-signout:hover svg { color: #991b1b; }
.dashboard-usermenu-divider {
    height: 1px; background: #eef0fb; margin: .35rem 0;
}

@media (max-width: 600px) {
    .dashboard-usermenu-panel { right: -.5rem; min-width: 240px; }
}

/* ========================================================================
   SUBMISSION PROGRESS STEPPER
   ======================================================================== */
.tj-stepper-wrap {
    background: #fff; border-bottom: 1px solid var(--tj-border);
    padding: .85rem 0;
}
.tj-stepper-wrap .container { max-width: 720px; }
.tj-stepper {
    list-style: none !important; margin: 0; padding: 0;
    display: flex; align-items: flex-start;
}
.tj-step {
    flex: 1; position: relative;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: .25rem;
}    
    
.tj-step::marker { display: none; content: ''; }
.tj-step::before {
    content: ''; position: absolute;
    top: 10px; left: -50%; width: 100%; height: 2px;
    background: #e5e7eb; z-index: 0;
}
.tj-step:first-child::before { display: none; }
.tj-step--done::before,
.tj-step--current::before { background: #1e3a8a; }

.tj-step-dot {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    font-size: .68rem; font-weight: 700;
    background: #e5e7eb; color: #9ca3af;
    border: 2px solid #e5e7eb;
    transition: background .2s, color .2s, border-color .2s;
}
.tj-step--done .tj-step-dot {
    background: #1e3a8a; color: #fff; border-color: #1e3a8a;
}
.tj-step--current .tj-step-dot {
    background: #fff; color: #1e3a8a; border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30,58,138,.12);
}
.tj-step-label {
    font-size: .7rem; font-weight: 500; color: #9ca3af;
    line-height: 1.2;
}
.tj-step--done .tj-step-label { color: #4b5563; }
.tj-step--current .tj-step-label { color: #1e3a8a; font-weight: 700; }

.tj-stepper-note {
    margin: 1rem 0 0; text-align: center;
    font-size: .85rem; color: #92400e;
    background: #fef3c7; border: 1px solid #fde68a;
    border-radius: 8px; padding: .55rem 1rem; display: inline-block;
    width: 100%; box-sizing: border-box;
}

.tj-stepper-stopped {
    border-radius: 10px; padding: 1rem 1.25rem;
    display: flex; flex-direction: column; gap: .2rem;
}
.tj-stepper-stopped strong { font-size: 1rem; }
.tj-stepper-stopped span { font-size: .88rem; }
.tj-stepper-stopped--rejected {
    background: #fee2e2; border: 1px solid #fecaca; color: #991b1b;
}
.tj-stepper-stopped--withdrawn {
    background: #f3f4f6; border: 1px solid #e5e7eb; color: #4b5563;
}

@media (max-width: 600px) {
    .tj-step-label { font-size: .68rem; }
    .tj-step-dot { width: 26px; height: 26px; font-size: .72rem; }
    .tj-step::before { top: 12px; }
}

/* ========================================================================
   SUBMISSION EDITOR SCREEN — SaaS editorial dashboard
   ======================================================================== */
.se-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #3730a3 100%);
    color: #fff; padding: 1.5rem 0 1.25rem;
}
.se-hero-breadcrumb { margin: 0 0 .5rem; font-size: .85rem; }
.se-hero-breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.se-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start; }
.se-hero-eyebrow {
    text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 700;
    color: rgba(255,255,255,.7); margin: 0 0 .25rem;
}
.se-hero-title { color: #fff; font-size: 1.55rem; margin: 0 0 .25rem; line-height: 1.15; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.se-hero-protocol { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; background: rgba(255,255,255,.12); padding: .12rem .55rem; border-radius: 6px; }
.se-hero-articletitle { margin: .35rem 0 .75rem; font-size: 1rem; color: rgba(255,255,255,.92); line-height: 1.4; max-width: 760px; }
.se-hero-meta {
    list-style: none; padding: 0; margin: .65rem 0 0;
    display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.85);
}
.se-hero-meta li { display: flex; flex-direction: column; }
.se-hero-meta li > span:first-child { font-size: .68rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.se-hero-status { text-align: right; }
.se-hero-stage { font-size: 1rem; font-weight: 700; margin-top: .55rem; }
.se-hero-stagesub { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: .2rem; }

.se-status-pill { display: inline-flex; align-items: center; padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.se-status--submitted { background: rgba(59,130,246,.2); color: #93c5fd; border: 1px solid rgba(147,197,253,.4); }
.se-status--under_review { background: rgba(124,58,237,.22); color: #c4b5fd; border: 1px solid rgba(196,181,253,.4); }
.se-status--revision_required { background: rgba(245,158,11,.2); color: #fde68a; border: 1px solid rgba(253,224,71,.4); }
.se-status--accepted { background: rgba(16,185,129,.2); color: #6ee7b7; border: 1px solid rgba(110,231,183,.45); }
.se-status--rejected, .se-status--withdrawn { background: rgba(239,68,68,.18); color: #fca5a5; border: 1px solid rgba(252,165,165,.4); }
.se-status--published { background: rgba(16,185,129,.25); color: #6ee7b7; border: 1px solid rgba(110,231,183,.5); }
.se-status--draft { background: rgba(156,163,175,.2); color: #d1d5db; border: 1px solid rgba(209,213,219,.35); }

.se-hero-quickactions { display: flex; gap: .45rem; margin-top: 1rem; flex-wrap: wrap; }
.se-qa-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem .85rem; border-radius: 8px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600;
    cursor: pointer;
}
.se-qa-btn:hover { background: rgba(255,255,255,.18); }
.se-qa-btn--primary { background: #fff; color: #1e3a8a; }
.se-qa-btn--primary:hover { background: #f3f4f6; }

/* Stepper current sub-status */
.tj-step-substatus {
    position: absolute; bottom: -1.5rem;
    font-size: .65rem; color: #1e3a8a; font-weight: 600;
    white-space: nowrap;
}
.tj-stepper-wrap { padding: 1rem 0 1.75rem; }

.se-alert {
    padding: .65rem 1rem; border-radius: 8px; font-size: .88rem; margin-bottom: .65rem;
    border: 1px solid;
}
.se-alert--warning { background: #fef3c7; color: #78350f; border-color: #fde68a; }
.se-alert--danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.se-alert--info { background: #dbeafe; color: #1e3a8a; border-color: #bfdbfe; }

.se-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }

/* Tabs */
.se-tabs {
    display: flex; gap: .15rem; background: #fff; border: 1px solid var(--tj-border);
    border-radius: 10px; padding: .35rem; overflow-x: auto; margin-bottom: 1rem;
}
.se-tab {
    padding: .55rem 1rem; border: 0; background: transparent;
    font-size: .88rem; font-weight: 500; color: #4b5563; cursor: pointer;
    border-radius: 6px; white-space: nowrap;
    display: inline-flex; align-items: center; gap: .35rem;
}
.se-tab:hover { background: #f3f4f6; color: #1e3a8a; }
.se-tab.is-active { background: #1e3a8a; color: #fff; font-weight: 600; }
.se-tab-badge {
    background: #e5e7eb; color: #6b7280;
    padding: .1rem .5rem; border-radius: 999px;
    font-size: .68rem; font-weight: 700; min-width: 20px; text-align: center;
}
.se-tab.is-active .se-tab-badge { background: rgba(255,255,255,.2); color: #fff; }

.se-pane[hidden] { display: none; }
.se-card { background: #fff; border: 1px solid var(--tj-border); border-radius: 10px; padding: 1.5rem; margin-bottom: 1rem; }
.se-card-title { margin: 0 0 1rem; font-size: 1.05rem; color: #0f172a; display: flex; gap: .55rem; align-items: center; }
.se-section-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; font-weight: 700; margin: 1rem 0 .35rem; }
.se-articletitle { font-family: var(--font-serif); font-size: 1.35rem; margin: 0 0 .65rem; line-height: 1.3; }
.se-abstract { line-height: 1.55; color: #374151; margin: 0 0 .5rem; }

.se-keywords { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.se-keyword-pill { background: #eef0fb; color: #3730a3; padding: .15rem .65rem; border-radius: 999px; font-size: .78rem; }

.se-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; margin: 0; }
.se-meta-grid > div { font-size: .9rem; }
.se-meta-grid dt { font-size: .68rem; color: #6b7280; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.se-meta-grid dd { margin: 0; color: #1f2937; }

/* Files */
.se-file-list { display: flex; flex-direction: column; gap: .55rem; }
.se-file-card { display: flex; align-items: center; gap: .85rem; padding: .85rem; border: 1px solid var(--tj-border); border-radius: 8px; }
.se-file-icon { width: 42px; height: 42px; border-radius: 6px; background: #1e3a8a; color: #fff; font-size: .68rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.se-file-body { flex: 1; min-width: 0; }
.se-file-name { font-weight: 600; color: #0f172a; word-break: break-word; }
.se-file-meta { font-size: .78rem; color: #6b7280; display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .15rem; }
.se-file-actions { display: flex; gap: .35rem; flex-shrink: 0; }
.se-btn-sm { padding: .35rem .75rem !important; font-size: .8rem !important; }

/* Pills */
.se-pill { display: inline-flex; padding: .15rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.se-pill--accent { background: #fef3c7; color: #78350f; border: 1px solid #fde68a; }
.se-pill--success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.se-pill--mute { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.se-pill--danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.se-empty { background: #f8f9fc; border: 1px dashed var(--tj-border); border-radius: 10px; padding: 2rem; text-align: center; color: #6b7280; }
.se-empty strong { color: #0f172a; display: block; margin-bottom: .35rem; }

/* Checklist */
.se-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.se-check-item { display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border: 1px solid var(--tj-border); border-radius: 8px; }
.se-check-icon { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.se-check-item.is-done .se-check-icon { background: #10b981; }
.se-check-item.is-done .se-check-icon::before { content: '✓'; color: #fff; font-size: .68rem; font-weight: 700; }
.se-check-item.is-pending .se-check-icon { background: #fef3c7; border: 1px solid #fde68a; }
.se-check-item.is-done { color: #065f46; }
.se-check-item.is-pending { color: #92400e; }
.se-check-item--manual { color: #1f2937; }
.se-check-item--manual input { width: 18px; height: 18px; cursor: pointer; }
.se-check-item--manual label { cursor: pointer; }

/* Reviewer list */
.se-reviewer-list { list-style: none; padding: 0; margin: 0; }
.se-reviewer-item { padding: .85rem 0; border-bottom: 1px solid var(--tj-border); }
.se-reviewer-item:last-child { border-bottom: 0; }
.se-reviewer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.se-reviewer-report { margin-top: .65rem; background: #f8f9fc; border-radius: 6px; padding: .65rem; font-size: .88rem; }
.se-reviewer-report details { margin-top: .35rem; }

.se-consensus { background: #f4f6fc; border: 1px solid #c7cef0; border-left: 4px solid #4f5ec5; border-radius: 6px; padding: .75rem .9rem; margin-bottom: 1rem; font-size: .85rem; }

/* History timeline */
.se-history-filters { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.se-chip { padding: .35rem .75rem; border-radius: 999px; background: #f3f4f6; color: #4b5563; border: 0; font-size: .8rem; cursor: pointer; font-weight: 500; }
.se-chip:hover { background: #e5e7eb; }
.se-chip.is-active { background: #1e3a8a; color: #fff; }
.se-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.se-timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: #e5e7eb; }
.se-timeline-item { position: relative; padding: .35rem 0 .85rem 1.5rem; }
.se-timeline-dot { position: absolute; left: 2px; top: .6rem; width: 12px; height: 12px; border-radius: 50%; background: #6b7280; border: 2px solid #fff; box-shadow: 0 0 0 2px #e5e7eb; }
.se-timeline-dot--submission { background: #2563eb; }
.se-timeline-dot--review { background: #7c3aed; }
.se-timeline-dot--decision { background: #10b981; }
.se-timeline-dot--files { background: #f59e0b; }
.se-timeline-dot--technical { background: #6b7280; }
.se-timeline-note { background: #f8f9fc; border-radius: 6px; padding: .4rem .65rem; margin-top: .25rem; font-size: .82rem; font-style: italic; }

/* Emails table */
.se-emails-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.se-emails-table th, .se-emails-table td { padding: .55rem; text-align: left; border-bottom: 1px solid var(--tj-border); }
.se-emails-table th { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; }

/* Sidebar */
.se-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1rem; }
.se-action-panel { background: #fff; border: 1px solid var(--tj-border); border-radius: 10px; padding: 1.25rem; }
.se-action-eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #6b7280; font-weight: 700; margin-bottom: .35rem; }
.se-action-stage { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: .35rem; }
.se-action-next { font-size: .85rem; color: #4b5563; line-height: 1.5; margin: 0 0 1rem; }
.se-action-buttons { display: flex; flex-direction: column; gap: .4rem; }

/* Responsive */
@media (max-width: 1024px) {
    .se-grid { grid-template-columns: 1fr; }
    .se-side { position: static; }
}
@media (max-width: 600px) {
    .se-hero-grid { grid-template-columns: 1fr; }
    .se-hero-status { text-align: left; }
    .se-hero-meta { gap: .75rem; }
    .se-tabs { padding: .25rem; }
    .se-tab { padding: .45rem .65rem; font-size: .8rem; }
    .se-file-card { flex-direction: column; align-items: stretch; }
    .se-file-actions { flex-wrap: wrap; }
}

/* ============================================================
   Editorial Screening — refinement pass
   ============================================================ */

/* 1. Hero mais baixo e compacto */
.se-hero {
    padding: 1.25rem 0 1rem;
    margin-bottom: 1rem;
}
.se-hero-eyebrow { font-size: .68rem; margin-bottom: .35rem; }
.se-hero-protocol { font-size: .85rem; margin-bottom: .85rem; }

/* 2. Título: menor, line-height confortável, truncar em 2 linhas no hero */
.se-hero-title {
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 600;
    text-transform: none;          /* sem caixa alta */
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 .35rem;
    max-width: 880px;
}

/* 3. Status pill contextual (sobrescreve cor de "submitted" no hero) */
.se-hero .se-status-pill.se-status--submitted {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
.se-hero .se-status-pill {
    padding: .35rem .7rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
}

/* 4. Bloco direito do hero — respiro e alinhamento */
.se-hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .35rem;
    padding-left: 1.5rem;
    text-align: right;
    min-width: 200px;
}
.se-hero-side .label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
}
.se-hero-side .value { font-size: .85rem; color: #111827; font-weight: 600; }

.se-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

/* 5. Stepper: legenda contextual da etapa atual */
.tj-stepper-caption {
    text-align: center;
    margin-top: .6rem;
    font-size: .78rem;
    color: #4b5563;
}
.tj-stepper-caption strong { color: #0f172a; font-weight: 600; }

/* 7. Destaque do anonymized manuscript na aba Files */
.se-file-card--anon {
    border: 1px solid #fcd34d;
    background: linear-gradient(0deg, #fffbeb 0%, #fff 70%);
    box-shadow: 0 1px 2px rgba(146,64,14,.06);
}
.se-file-card--anon .se-file-icon { background: #f59e0b; color: #fff; }
.se-file-card--anon .se-file-badge--anon {
    display: inline-block;
    background: #92400e;
    color: #fff;
    font-size: .65rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .15rem .5rem;
    border-radius: 4px;
    margin-left: .5rem;
}
.se-file-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.se-file-actions .btn { padding: .35rem .7rem; font-size: .78rem; }

/* 6. Mini checklist no painel lateral */
.se-mini-check {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .75rem .85rem;
    background: #f9fafb;
    border: 1px solid var(--tj-border);
    border-radius: 8px;
    margin-bottom: .85rem;
}
.se-mini-check-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    color: #374151;
}
.se-mini-check-item .dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .65rem;
    color: #fff;
    font-weight: 700;
}
.se-mini-check-item.is-done .dot { background: #16a34a; }
.se-mini-check-item.is-done .dot::before { content: "✓"; }
.se-mini-check-item.is-pending .dot { background: #d1d5db; }
.se-mini-check-item.is-pending { color: #6b7280; }

/* 8. Botão desabilitado contextual */
.se-action-btn.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    position: relative;
}
.se-action-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    font-size: .78rem;
    padding: .55rem .7rem;
    border-radius: 6px;
    margin: .5rem 0 .75rem;
    display: none;
}
.se-action-warning.is-visible { display: block; }

/* 9. Responsividade — não vaza scroll horizontal */
.dashboard-content { overflow-x: hidden; }
.se-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
@media (max-width: 820px) {
    .se-hero-row { flex-direction: column; align-items: flex-start; }
    .se-hero-side {
        align-items: flex-start;
        padding-left: 0;
        text-align: left;
        border-top: 1px solid var(--tj-border);
        margin-top: .75rem;
        padding-top: .75rem;
        width: 100%;
    }
    .se-hero-title { font-size: 1.1rem; }
}

/* ============================================================
   Editorial Screening — refinement pass
   ============================================================ */

/* 1. Hero compacto */
.se-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    padding: 1.5rem 0 1.25rem;
}
.se-hero .container { max-width: 1280px; }
.se-hero-breadcrumb { margin: 0 0 .65rem; font-size: .85rem; }
.se-hero-breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.se-hero-eyebrow {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin: 0 0 .4rem;
    font-weight: 600;
}

/* 2. Título artigo no hero: tamanho menor, line-height confortável, truncar 2 linhas */
.se-hero-title {
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 .35rem;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 760px;
}
.se-hero-protocol {
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    margin: 0 0 .85rem;
}

.se-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 2rem;
    align-items: start;
}
.se-hero-main { min-width: 0; }

/* Meta interna no hero — grid, sem amontoar */
.se-hero-meta {
    list-style: none;
    padding: 0;
    margin: .5rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .5rem 1.25rem;
}
.se-hero-meta li {
    display: flex;
    flex-direction: column;
    color: rgba(255,255,255,.95);
    font-size: .85rem;
    min-width: 0;
}
.se-hero-meta li span {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.6);
    margin-bottom: .1rem;
}

/* 3+4. Bloco direito do hero com respiro */
.se-hero-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: .25rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255,255,255,.15);
    min-width: 220px;
}
.se-hero-stage-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.6);
    margin-top: .65rem;
}
.se-hero-stage { font-size: .95rem; font-weight: 600; color: #fff; }
.se-hero-stagesub { font-size: .78rem; color: rgba(255,255,255,.75); }

/* 3. Status pill contextual */
.se-status-pill {
    display: inline-block;
    padding: .35rem .75rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
.se-status--submitted    { background:#fef3c7; color:#92400e; border-color:#fcd34d; }
.se-status--under_review { background:#ede9fe; color:#5b21b6; border-color:#c4b5fd; }
.se-status--revision_required { background:#fef3c7; color:#92400e; border-color:#fcd34d; }
.se-status--accepted     { background:#d1fae5; color:#065f46; border-color:#6ee7b7; }
.se-status--rejected     { background:#fee2e2; color:#991b1b; border-color:#fca5a5; }
.se-status--published    { background:#d1fae5; color:#065f46; border-color:#6ee7b7; }
.se-status--draft        { background:#e5e7eb; color:#374151; border-color:#d1d5db; }

/* Quick actions */
.se-hero-quickactions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}
.se-qa-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    font-size: .82rem;
    text-decoration: none;
    font-weight: 500;
}
.se-qa-btn:hover { background: rgba(255,255,255,.2); }
.se-qa-btn--primary { background:#fff; color:#1e3a8a; border-color:#fff; }
.se-qa-btn--primary:hover { background:#f3f4f6; }

/* 5. Stepper caption */
.tj-stepper-wrap { background: #f9fafb; padding: 1rem 0; border-bottom: 1px solid var(--tj-border); }
.tj-stepper-wrap .container { max-width: 1280px; }
.tj-stepper {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    max-width: 820px;
    margin-inline: auto;
}
.tj-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    position: relative;
    font-size: .72rem;
}
.tj-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 11px;
    left: calc(50% + 14px);
    right: calc(-50% + 14px);
    height: 2px;
    background: #e5e7eb;
}
.tj-step--done:not(:last-child)::after { background: #16a34a; }
.tj-step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    position: relative;
    z-index: 1;
}
.tj-step--done .tj-step-dot   { background:#16a34a; color:#fff; border-color:#16a34a; }
.tj-step--current .tj-step-dot{ background:#fff; color:#1e40af; border-color:#1e40af; box-shadow:0 0 0 4px rgba(30,64,175,.12); }
.tj-step-label { color: #4b5563; text-align: center; line-height: 1.2; }
.tj-step--current .tj-step-label { color:#1e40af; font-weight:600; }
.tj-stepper-caption {
    text-align: center;
    margin: .75rem 0 0;
    font-size: .78rem;
    color: #4b5563;
}
.tj-stepper-caption strong { color: #0f172a; font-weight: 600; }
.tj-stepper-stopped {
    text-align: center;
    padding: .75rem 1rem;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-size: .9rem;
}
.tj-stepper-stopped strong { display: block; margin-bottom: .15rem; }

/* Alerts */
.se-alert {
    padding: .65rem .9rem;
    border-radius: 6px;
    font-size: .85rem;
    margin-bottom: .5rem;
    border: 1px solid;
}
.se-alert--warning { background:#fffbeb; color:#92400e; border-color:#fcd34d; }
.se-alert--danger  { background:#fef2f2; color:#991b1b; border-color:#fca5a5; }

/* Grid principal */
.se-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    max-width: 1280px;
}
.se-main { min-width: 0; }

/* Tabs */
.se-tabs {
    display: flex;
    gap: .15rem;
    border-bottom: 1px solid var(--tj-border);
    margin-bottom: 1.25rem;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}
.se-tab {
    background: none;
    border: none;
    padding: .75rem 1rem;
    font-size: .88rem;
    color: #4b5563;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}
.se-tab.is-active { color: #1e40af; border-bottom-color: #1e40af; font-weight: 600; }
.se-tab-badge {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    border-radius: 10px;
    padding: 0 .5rem;
    font-size: .7rem;
    margin-left: .25rem;
}
.se-tab.is-active .se-tab-badge { background: #dbeafe; color: #1e40af; }

/* Cards */
.se-card {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.se-card-title { font-size: 1rem; margin: 0 0 .85rem; color: #0f172a; font-weight: 600; }
.se-articletitle { font-size: 1.2rem; line-height: 1.4; margin: 0 0 .85rem; color: #0f172a; }
.se-section-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color:#6b7280; margin: 1rem 0 .35rem; }
.se-abstract { white-space: pre-line; line-height: 1.55; color: #374151; }
.se-keywords { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.se-keyword-pill {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .78rem;
}

.se-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem 1.5rem;
    margin: 0;
}
.se-meta-grid dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color:#6b7280; margin-bottom: .15rem; }
.se-meta-grid dd { margin: 0; font-size: .9rem; color: #111827; font-weight: 500; }

/* 7. File cards — destaque anonymized */
.se-card--anon {
    border-color: #fcd34d;
    background: linear-gradient(0deg, #fffbeb 0%, #fff 60%);
}
.se-file-list { display: flex; flex-direction: column; gap: .6rem; }
.se-file-card {
    display: flex;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1px solid var(--tj-border);
    border-radius: 8px;
    background: #fff;
    align-items: center;
}
.se-file-card--anon { border-color:#fcd34d; background:#fffdf7; }
.se-file-icon {
    width: 42px; height: 42px;
    border-radius: 6px;
    background: #3b82f6;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.se-file-card--anon .se-file-icon { background:#f59e0b; }
.se-file-body { flex: 1; min-width: 0; }
.se-file-name { font-weight: 600; color: #111827; font-size: .9rem; word-break: break-word; }
.se-file-meta { font-size: .75rem; color: #6b7280; display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .15rem; }
.se-file-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.se-btn-sm { padding: .35rem .7rem !important; font-size: .78rem !important; }

/* Pills */
.se-pill { display: inline-block; padding: .15rem .55rem; border-radius: 4px; font-size: .68rem; letter-spacing: .04em; font-weight: 600; text-transform: uppercase; }
.se-pill--accent  { background:#fef3c7; color:#92400e; }
.se-pill--success { background:#d1fae5; color:#065f46; }
.se-pill--mute    { background:#e5e7eb; color:#374151; }
.se-pill--danger  { background:#fee2e2; color:#991b1b; }

/* Empty state */
.se-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
    background: #f9fafb;
    border: 1px dashed var(--tj-border);
    border-radius: 10px;
}

/* Checklist (Screening tab) */
.se-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.se-check-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .75rem;
    border-radius: 6px;
    background: #f9fafb;
    border: 1px solid var(--tj-border);
    font-size: .88rem;
}
.se-check-item .se-check-icon { width: 14px; height: 14px; border-radius: 50%; background: #d1d5db; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .65rem; font-weight: 700; }
.se-check-item.is-done .se-check-icon { background: #16a34a; }
.se-check-item.is-done .se-check-icon::before { content: "✓"; }
.se-check-item--manual { background: #fff; }

/* SIDEBAR — Action panel */
.se-side { min-width: 0; }
.se-action-panel {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
}
.se-action-eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #6b7280; font-weight: 600; }
.se-action-stage { font-size: 1rem; font-weight: 700; color: #0f172a; margin: .15rem 0 .5rem; }
.se-action-next { font-size: .82rem; color: #4b5563; line-height: 1.5; margin: 0 0 .85rem; }
.se-action-buttons { display: flex; flex-direction: column; gap: .5rem; }

/* 6. Mini checklist */
.se-mini-check {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .65rem .8rem;
    background: #f9fafb;
    border: 1px solid var(--tj-border);
    border-radius: 8px;
    margin-bottom: .75rem;
}
.se-mini-check-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .8rem;
    color: #374151;
}
.se-mini-check-item .dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .6rem;
    color: #fff;
    font-weight: 700;
}
.se-mini-check-item.is-done .dot { background: #16a34a; }
.se-mini-check-item.is-done .dot::before { content: "✓"; }
.se-mini-check-item.is-pending .dot { background: #d1d5db; }
.se-mini-check-item.is-pending { color: #6b7280; }

/* 8. Botão desabilitado + aviso */
.se-action-btn.is-disabled { opacity: .55; cursor: not-allowed; }
.se-action-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    font-size: .78rem;
    padding: .55rem .7rem;
    border-radius: 6px;
    margin-bottom: .75rem;
    display: none;
}
.se-action-warning.is-visible { display: block; }

/* Consensus / Reviewers / Timeline / Emails */
.se-consensus { background:#f4f6fc; border:1px solid #c7cef0; border-left:4px solid #4f5ec5; border-radius:6px; padding:.75rem .9rem; margin-bottom:1rem; font-size:.85rem; }
.se-reviewer-list { list-style:none; padding:0; margin:0; }
.se-reviewer-item { padding: .85rem 0; border-bottom: 1px solid var(--tj-border); }
.se-reviewer-item:last-child { border-bottom: 0; }
.se-reviewer-head { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.se-reviewer-report { margin-top: .75rem; font-size: .85rem; }

.se-history-filters { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.se-chip { background:#f1f5f9; border:1px solid var(--tj-border); padding:.3rem .7rem; border-radius:999px; font-size:.78rem; color:#475569; cursor:pointer; }
.se-chip.is-active { background:#1e40af; color:#fff; border-color:#1e40af; }

.se-timeline { list-style:none; padding: 0 0 0 1.25rem; margin: 0; position: relative; }
.se-timeline::before { content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background:#e5e7eb; }
.se-timeline-item { position: relative; padding: .65rem 0; }
.se-timeline-dot { position:absolute; left:-1.25rem; top:.85rem; width:14px; height:14px; border-radius:50%; background:#9ca3af; border:2px solid #fff; box-shadow:0 0 0 1px #e5e7eb; }
.se-timeline-dot--submission { background:#3b82f6; }
.se-timeline-dot--review     { background:#a855f7; }
.se-timeline-dot--decision   { background:#16a34a; }
.se-timeline-dot--files      { background:#f59e0b; }
.se-timeline-dot--technical  { background:#6b7280; }
.se-timeline-note { background: #f9fafb; padding: .5rem .65rem; border-radius: 6px; margin-top: .35rem; font-size: .82rem; color: #374151; font-style: italic; }

.se-emails-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.se-emails-table th, .se-emails-table td { padding: .55rem .65rem; border-bottom: 1px solid var(--tj-border); text-align: left; }
.se-emails-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; font-weight: 600; }

/* 9. Responsividade — sem scroll horizontal na página */
.dashboard-content, body { overflow-x: hidden; }
@media (max-width: 1024px) {
    .se-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .se-hero { padding: 1.25rem 0 1rem; }
    .se-hero-grid { grid-template-columns: 1fr; gap: 1rem; }
    .se-hero-status {
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.15);
        padding-top: .75rem;
        margin-top: .5rem;
        min-width: 0;
    }
    .se-hero-title { font-size: 1.1rem; }
    .tj-stepper { flex-wrap: wrap; }
    .tj-step { min-width: 33%; margin-bottom: .5rem; }
}

/* Alinha o hero com o conteúdo das abas abaixo */
.se-hero .container,
.tj-stepper-wrap .container {
    max-width: 1270px;
    margin: 0 auto;
    padding-left: 3.2rem;
    padding-right: 3.2rem;
    box-sizing: border-box;
}

/* Garante que o grid principal (abas + sidebar) use exatamente a mesma largura/padding */
.section > .se-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* Encolhe a coluna direita do hero para não colar na borda */
.se-hero-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1.5rem;
}
.se-hero-status { padding-right: 0; min-width: 0; }

/* Título do artigo no hero — remove o ALL CAPS herdado e dá respiro */
.se-hero-title {
    text-transform: none !important;
    font-size: 1.2rem;
    line-height: 1.4;
    max-width: 100%;
}

/* O bloco "Submission #34 · TJ-..." não pode ficar com fundo de barra */
.se-hero-protocol {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: rgba(255,255,255,.8);
}

@media (max-width: 1024px) {
    .se-hero .container,
    .tj-stepper-wrap .container,
    .section > .se-grid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .se-hero-grid { grid-template-columns: 1fr; }
}

/* Aba ativa: fundo azul + texto branco */
.se-tab.is-active {
    background: #1e40af;
    color: #fff !important;
    border-bottom-color: #1e40af;
    border-radius: 6px 6px 0 0;
}
.se-tab.is-active .se-tab-badge {
    background: rgba(255,255,255,.25);
    color: #fff;
}

/* Quebra nomes longos de arquivo no wizard de submissão */
.uploaded-files a,
.uploaded-files li,
.uploaded-files .filename,
[class*="upload"] a[href*="manuscript"],
[class*="upload"] .filename {
    word-break: break-all;
    overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
}

/* Container do item de arquivo enviado */
.uploaded-files li,
.wizard-file-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}
.uploaded-files li > *,
.wizard-file-item > * { min-width: 0; }

/* Botão Remove fica à direita sem comprimir o nome */
.uploaded-files .btn,
.wizard-file-item .btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* Quebra qualquer nome de arquivo longo em qualquer card da plataforma */
.wizard-file-row,
.review-file-row,
[class*="file-row"],
[class*="file-item"],
.uploaded-files li,
.section .card li,
.section .card p {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

/* Garante que o nome do arquivo respeite a largura do card */
.section strong,
.section b {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Linha "arquivo + botões": botões fixos à direita, nome ocupa o resto e quebra */
.section .card > div,
.section .card > li {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .65rem;
}
.section .card > div > div:first-child,
.section .card > li > div:first-child {
    flex: 1 1 280px;
    min-width: 0;
}

/* Fallback global pra qualquer texto longo dentro de section/card */
.section, .se-card, .se-file-card, .se-file-body, .se-file-name {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
.se-file-name { white-space: normal !important; }

/* =====================================================
   Submissions list — minimalist refresh
   ===================================================== */

/* Tabela base */
.submissions-table,
.section table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* Header da tabela — mais clean */
.submissions-table thead th,
.section table thead th {
    background: #f9fafb;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--tj-border);
    white-space: nowrap;
}

/* Linhas */
.submissions-table tbody td,
.section table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #374151;
}
.submissions-table tbody tr:hover,
.section table tbody tr:hover { background: #f9fafb; }

/* Protocol — mono, mais sutil */
.submissions-table td:first-child,
.section table td:first-child {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: .78rem;
    color: #6366f1;
    white-space: nowrap;
    width: 1%;
}

/* Título — SEM caixa alta, peso normal, line-height confortável */
.submissions-table td:nth-child(2),
.submissions-table .title-cell,
.section table td.title,
.section table tbody td:nth-child(2) {
    text-transform: none !important;
    font-weight: 500;
    font-size: .92rem;
    line-height: 1.45;
    color: #0f172a;
    max-width: 480px;
}
.submissions-table td:nth-child(2) a,
.section table td:nth-child(2) a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}
.submissions-table td:nth-child(2) a:hover { color: #1e40af; }

/* Journal — fonte menor, cor secundária */
.submissions-table td:nth-child(3),
.section table td:nth-child(3) {
    font-size: .82rem;
    color: #6b7280;
    white-space: nowrap;
    width: 1%;
}

/* Status pill — compacta, sem wrap */
.submissions-table .badge,
.section table .badge,
.submissions-table td[class*="status"] span,
.section table td[class*="status"] span {
    display: inline-block;
    padding: .25rem .65rem;
    font-size: .72rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: .02em;
}

/* Coluna status — sem wrap */
.submissions-table td:nth-child(4),
.section table td:nth-child(4) { white-space: nowrap; width: 1%; }

/* Coluna data — sem wrap, fonte menor */
.submissions-table td:nth-child(5),
.section table td:nth-child(5) {
    white-space: nowrap;
    font-size: .82rem;
    color: #6b7280;
    width: 1%;
}

/* Botão Open — compacto, sem wrap */
.submissions-table td:last-child,
.section table td:last-child {
    white-space: nowrap;
    width: 1%;
    text-align: right;
}
.submissions-table td:last-child .btn,
.section table td:last-child .btn,
.submissions-table .btn-sm,
.section table .btn {
    padding: .35rem .85rem !important;
    font-size: .8rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
    min-width: 0 !important;
}

/* Card que envolve a tabela */
.submissions-card,
.section .card:has(table) {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
}

/* Linha inferior da última row sem borda */
.submissions-table tbody tr:last-child td,
.section table tbody tr:last-child td { border-bottom: 0; }

/* Responsivo — esconde colunas menos críticas em mobile */
@media (max-width: 900px) {
    .submissions-table td:nth-child(3),
    .submissions-table th:nth-child(3),
    .section table td:nth-child(3),
    .section table th:nth-child(3) { display: none; } /* esconde Journal */
}
@media (max-width: 640px) {
    .submissions-table td:nth-child(5),
    .submissions-table th:nth-child(5),
    .section table td:nth-child(5),
    .section table th:nth-child(5) { display: none; } /* esconde Updated */
    .submissions-table td:nth-child(2),
    .section table td:nth-child(2) { max-width: 220px; }
}

/* =====================================================
   Editorial Queue — minimalist refresh
   ===================================================== */

/* Tabela base */
.section table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    background: #fff;
}

/* Cabeçalho */
.section table thead th {
    background: #f9fafb;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--tj-border);
    white-space: nowrap;
}

/* Linhas */
.section table tbody td {
    padding: .9rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #374151;
    line-height: 1.45;
}
.section table tbody tr:hover { background: #fafbfc; }

/* Checkbox coluna — largura mínima */
.section table th:first-child,
.section table td:first-child {
    width: 36px;
    padding-right: 0;
}

/* Coluna # — mono, sem wrap */
.section table th:nth-child(2),
.section table td:nth-child(2) {
    width: 1%;
    white-space: nowrap;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: .8rem;
    color: #6366f1;
    padding-right: 1.25rem;
}

/* Título / Submitter — caso minúsculo, peso normal */
.section table tbody td strong,
.section table tbody td b,
.section table .title-cell,
.section table tbody td:nth-child(3) > *:first-child {
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: .92rem;
    color: #0f172a;
    letter-spacing: 0;
    line-height: 1.45;
}
.section table tbody td a {
    color: #0f172a;
    text-decoration: none;
}
.section table tbody td a:hover { color: #1e40af; }

/* Submitter — segunda linha cinza */
.section table tbody td .muted,
.section table tbody td small {
    display: block;
    font-size: .8rem;
    color: #6b7280;
    margin-top: .15rem;
    font-weight: 400;
    text-transform: none;
}

/* Pills/badges */
.section table .badge {
    display: inline-block;
    padding: .25rem .65rem;
    font-size: .72rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: .02em;
}

/* Filtros — card mais clean */
.section form[method="get"],
.queue-filters {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}
.queue-filters .form-control,
.section form[method="get"] .form-control {
    font-size: .88rem;
}

/* Botão Apply menor */
.section form[method="get"] .btn,
.queue-filters .btn {
    padding: .5rem 1.1rem;
    font-size: .85rem;
}

/* "17 result(s)" + bulk actions */
.queue-meta,
.section > .container > p {
    font-size: .82rem;
    color: #6b7280;
}

/* Botão "Send reminder to reviewers" desabilitado mais sutil */
.section button[disabled],
.section .btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

/* Página hero — título mais clean */
.page-hero {
    background: #fff !important;
    color: #0f172a !important;
    border-bottom: 1px solid var(--tj-border);
    padding: 1.5rem 0 1.25rem;
}
.page-hero .container > p:first-child,
.page-hero .eyebrow {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: .25rem;
}
.page-hero h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 .25rem;
    text-transform: none;
}
.page-hero p {
    color: #6b7280;
    font-size: .92rem;
    margin: 0;
}

/* =====================================================
   Editorial Queue — fix overflow + título legível
   ===================================================== */

/* Layout fixo da tabela — colunas se comportam */
.section table {
    table-layout: fixed;
    width: 100%;
}

/* Largura por coluna */
.section table th:nth-child(1),
.section table td:nth-child(1) { width: 36px; }                /* checkbox */
.section table th:nth-child(2),
.section table td:nth-child(2) { width: 60px; }                /* #ID */
.section table th:nth-child(3),
.section table td:nth-child(3) { width: auto; }                /* Title/Submitter — flex */
.section table th:nth-child(4),
.section table td:nth-child(4) { width: 110px; text-align: left; }  /* Status */
.section table th:nth-child(5),
.section table td:nth-child(5) { width: 110px; }               /* Updated */
.section table th:last-child,
.section table td:last-child   { width: 90px; text-align: right; }  /* Action */

/* Título: força minúsculo visual + clamp em 2 linhas com ellipsis */
.section table tbody td:nth-child(3) > *:first-child,
.section table tbody td:nth-child(3) strong,
.section table tbody td:nth-child(3) a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none !important;
    font-weight: 500;
    font-size: .9rem;
    line-height: 1.4;
    color: #0f172a;
    letter-spacing: 0;
    /* Capitaliza visualmente: primeira letra do título maiúscula, resto minúsculo */
    /* Não aplicamos `lowercase` porque o navegador conserva maiúsculas no display.
       Em vez disso, suavizamos via font-variant. */
    font-variant: normal;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Submitter (segunda linha) */
.section table tbody td:nth-child(3) .muted,
.section table tbody td:nth-child(3) small {
    display: block;
    font-size: .78rem;
    color: #6b7280;
    margin-top: .2rem;
    text-transform: none;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Padding das células */
.section table tbody td { padding: .85rem 1rem; vertical-align: top; }
.section table tbody td:nth-child(3) { padding-right: 2rem; }

/* Hover */
.section table tbody tr:hover { background: #fafbfc; }

/* Container/wrapper da tabela com scroll horizontal só se REALMENTE precisar */
.section .table-wrap,
.section .card { overflow-x: auto; }

/* =====================================================
   Tables — minimalist, single source of truth
   ===================================================== */

.section table,
.tj-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;          /* deixa o browser distribuir */
    font-size: .88rem;
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 10px;
    overflow: hidden;
}

.section table thead th,
.tj-table thead th {
    background: #f9fafb;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--tj-border);
    white-space: nowrap;
}

.section table tbody td,
.tj-table tbody td {
    padding: .85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #374151;
    line-height: 1.45;
}
.section table tbody tr:last-child td,
.tj-table tbody tr:last-child td { border-bottom: 0; }
.section table tbody tr:hover,
.tj-table tbody tr:hover { background: #fafbfc; }

/* Coluna # — compacta */
.section table td:first-child,
.tj-table td:first-child {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: .8rem;
    color: #6366f1;
    white-space: nowrap;
    width: 1%;
    padding-right: 1.25rem;
}

/* Coluna título — limita largura via max-width na CELL, não no conteúdo */
.section table td.title-cell,
.section table td[data-col="title"],
.tj-table td.title-cell {
    max-width: 420px;
}

/* Título dentro da célula: clamp em 2 linhas */
.section table td.title-cell > a,
.section table td.title-cell > strong,
.tj-table td.title-cell > a {
    display: block;
    text-transform: none !important;
    font-weight: 500;
    font-size: .9rem;
    color: #0f172a;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
    word-break: break-word;
}

/* Submitter abaixo do título */
.section table td.title-cell .muted,
.section table td.title-cell small,
.tj-table td.title-cell .muted {
    display: block;
    font-size: .78rem;
    color: #6b7280;
    margin-top: .2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status / data / ações — nowrap */
.section table .status-cell,
.section table td.status-cell,
.tj-table td.status-cell,
.section table td.date-cell,
.section table td.action-cell {
    white-space: nowrap;
    width: 1%;
}
.section table td.action-cell,
.tj-table td.action-cell { text-align: right; }

/* Badge compacta */
.section table .badge,
.tj-table .badge {
    display: inline-block;
    padding: .25rem .65rem;
    font-size: .72rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

/* Botão Open compacto */
.section table .btn,
.tj-table .btn {
    padding: .35rem .85rem !important;
    font-size: .8rem !important;
    border-radius: 6px !important;
}

/* Botão Open — fundo azul sólido + texto branco */
.tj-table .btn-primary,
.tj-table .btn.btn-primary {
    background: #4f46e5 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600 !important;
}
.tj-table .btn-primary:hover { background: #4338ca !important; }

/* Badges status — cor consistente e texto branco em todas */
.tj-table .badge {
    color: #fff !important;
    border: none !important;
    padding: .3rem .75rem !important;
    font-size: .72rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: .02em !important;
}
.tj-table .badge-info,
.tj-table .badge-primary    { background: #3b82f6 !important; }  /* Submitted */
.tj-table .badge-warning    { background: #f59e0b !important; }  /* Under review / revision */
.tj-table .badge-success    { background: #16a34a !important; }  /* Accepted / Published */
.tj-table .badge-danger     { background: #dc2626 !important; }  /* Rejected */
.tj-table .badge-secondary,
.tj-table .badge-mute       { background: #6b7280 !important; }  /* Draft / withdrawn */

/* Título em fonte normal (não monospace) */
.tj-table td.title-cell > a {
    font-family: inherit !important;
}
.tj-table td.title-cell .muted {
    font-family: inherit !important;
}

/* =====================================================
   Editorial Queue — Phase 1
   ===================================================== */
.eq-header {
    background: #fff;
    border-bottom: 1px solid var(--tj-border);
    padding: 1.5rem 0 1.25rem;
}
.eq-eyebrow {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6366f1;
    font-weight: 600;
    margin: 0 0 .25rem;
}
.eq-title { font-size: 1.6rem; font-weight: 700; color: #0f172a; margin: 0 0 .3rem; }
.eq-subtitle { color: #6b7280; font-size: .92rem; margin: 0; }

/* Metric cards */
.eq-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .75rem;
    margin: 1.25rem 0;
}
.eq-metric {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.eq-metric:hover { border-color: #94a3b8; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.eq-metric:focus-visible { outline: 2px solid #1e40af; outline-offset: 2px; }
.eq-metric-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: #6b7280; font-weight: 600; }
.eq-metric-value { font-size: 1.65rem; font-weight: 700; color: #0f172a; line-height: 1; }

.eq-metric--blue   { border-left: 3px solid #3b82f6; }
.eq-metric--purple { border-left: 3px solid #a855f7; }
.eq-metric--amber  { border-left: 3px solid #f59e0b; }
.eq-metric--green  { border-left: 3px solid #16a34a; }
.eq-metric--red    { border-left: 3px solid #dc2626; }

/* Filters card */
.eq-filters {
    background: #fff;
    border: 1px solid var(--tj-border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.eq-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.eq-filter-search { grid-column: span 2; }
.eq-filter-overdue { display: flex; align-items: flex-end; }
.eq-filters-actions {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tj-border);
}

/* Active filter chips */
.eq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
    margin: 0 0 1rem;
    padding: .65rem .85rem;
    background: #f9fafb;
    border: 1px solid var(--tj-border);
    border-radius: 8px;
}
.eq-chips-label { font-size: .78rem; color: #6b7280; font-weight: 600; margin-right: .25rem; }
.eq-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .7rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: .78rem;
    color: #334155;
    text-decoration: none;
}
.eq-chip:hover { border-color: #94a3b8; background: #f1f5f9; }
.eq-chips-clear {
    margin-left: auto;
    font-size: .78rem;
    color: #1e40af;
    text-decoration: none;
}
.eq-chips-clear:hover { text-decoration: underline; }

/* Results counter */
.eq-results-count {
    font-size: .85rem;
    color: #6b7280;
    margin: 0 0 .5rem;
}
.eq-results-count .muted { font-size: .78rem; }

/* Bulk action bar */
.eq-bulk-bar {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .65rem .85rem;
    background: #f9fafb;
    border: 1px solid var(--tj-border);
    border-radius: 8px 8px 0 0;
    border-bottom: 0;
    font-size: .85rem;
    color: #6b7280;
}
.eq-bulk-bar.is-active {
    background: #eff6ff;
    color: #1e40af;
    font-weight: 500;
}
.eq-bulk-bar .btn-sm { padding: .3rem .75rem; font-size: .78rem; }
.eq-bulk-bar #eq-bulk-count { flex: 1; }

/* Table tweaks */
.eq-table { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
.eq-table .eq-col-check { width: 36px; }
.eq-table .eq-col-id    { width: 60px; }
.eq-table .eq-col-action { width: 90px; text-align: right; }
.eq-table tr.is-overdue { background: #fffbeb; }
.eq-table tr.is-overdue:hover { background: #fef3c7; }

/* Empty state */
.eq-empty {
    text-align: center;
    padding: 3rem 1rem !important;
}
.eq-empty strong { display: block; font-size: 1rem; color: #0f172a; margin-bottom: .35rem; }
.eq-empty p { color: #6b7280; font-size: .9rem; margin: 0 0 1rem; }

/* Responsive */
@media (max-width: 720px) {
    .eq-filter-search { grid-column: span 1; }
    .eq-table th:nth-child(4), .eq-table td:nth-child(4) { display: none; }  /* Hide Journal column on mobile */
}

/* sr-only */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Editorial Queue — corrigir respiro com o sidebar */
.eq-header,
.eq-header + .section {
    padding-left: 0;
    padding-right: 0;
}
.eq-header .container,
section.section > .container:has(.eq-metrics) {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .eq-header .container,
    section.section > .container:has(.eq-metrics) {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
/* Tabs */
.eq-tabs {
    display: flex;
    gap: .15rem;
    border-bottom: 1px solid var(--tj-border);
    margin: 1rem 0;
    overflow-x: auto;
}
.eq-tab {
    padding: .65rem 1.1rem;
    font-size: .88rem;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.eq-tab:hover { color: #1e40af; }
.eq-tab.is-active {
    color: #1e40af;
    border-bottom-color: #1e40af;
    font-weight: 600;
}
.eq-tab-badge {
    background: #e5e7eb;
    color: #374151;
    padding: .1rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
}
.eq-tab.is-active .eq-tab-badge { background: #dbeafe; color: #1e40af; }

/* Next action pill */
.eq-next-action {
    display: inline-block;
    font-size: .78rem;
    color: #475569;
    background: #f1f5f9;
    padding: .2rem .55rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* Reviews table: title clamp */
.eq-table--reviews td.title-cell > a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 320px;
}

/* Reviews table — column widths and no-wrap fixes */
.eq-table--reviews { table-layout: fixed; }
.eq-table--reviews th:nth-child(1), .eq-table--reviews td:nth-child(1) { width: 36px; }   /* check */
.eq-table--reviews th:nth-child(2), .eq-table--reviews td:nth-child(2) { width: auto; }   /* submission */
.eq-table--reviews th:nth-child(3), .eq-table--reviews td:nth-child(3) { width: 160px; }  /* journal */
.eq-table--reviews th:nth-child(4), .eq-table--reviews td:nth-child(4) { width: 200px; }  /* reviewer */
.eq-table--reviews th:nth-child(5), .eq-table--reviews td:nth-child(5) { width: 50px; text-align: center; }   /* round */
.eq-table--reviews th:nth-child(6), .eq-table--reviews td:nth-child(6) { width: 180px; }  /* status */
.eq-table--reviews th:nth-child(7), .eq-table--reviews td:nth-child(7) { width: 130px; white-space: nowrap; } /* due */
.eq-table--reviews th:nth-child(8), .eq-table--reviews td:nth-child(8) { width: 150px; }  /* next action */
.eq-table--reviews th:nth-child(9), .eq-table--reviews td:nth-child(9) { width: 90px; text-align: right; }    /* action */

/* DUE cell — keep "Jun 24, 2026" and "22 days left" on single lines */
.eq-table--reviews td:nth-child(7) > div { white-space: nowrap; }
.eq-table--reviews td:nth-child(7) > div:last-child { font-size: .75rem; margin-top: .15rem; }

/* Title font — force Inter, kill monospace, allow 2-line clamp */
.eq-table--reviews td.title-cell {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.eq-table--reviews td.title-cell > a {
    font-family: inherit !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal !important;
    max-width: 100%;
    word-break: break-word;
}
.eq-table--reviews td.title-cell .muted {
    font-family: inherit !important;
    font-size: .76rem;
    display: block;
    margin-top: .15rem;
}

/* Reviewer cell — keep email on one line */
.eq-table--reviews td:nth-child(4) > div:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Journal — single line ellipsis */
.eq-table--reviews td:nth-child(3) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compact card padding for reviews */
.eq-table--reviews td { padding: .85rem .75rem; }

/* =====================================================
   Journal Detail Page (.jdp-*) — unified package
   ===================================================== */
.jdp-container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; box-sizing: border-box; }
.jdp-page { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #0f172a; background: #fff; }
.jdp-page a:focus-visible,
.jdp-page button:focus-visible,
.jdp-page input:focus-visible { outline: 2px solid #1e40af; outline-offset: 2px; }

/* Breadcrumb */
.jdp-breadcrumb-wrap { background: #f8fafc; border-bottom: 1px solid #e5e7eb; padding: .65rem 0; }
.jdp-breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 0; font-size: 13px; color: #6b7280; }
.jdp-breadcrumb a { color: #6b7280; text-decoration: none; }
.jdp-breadcrumb a:hover { color: #1e40af; }
.jdp-breadcrumb-sep { color: #9ca3af; }
.jdp-breadcrumb [aria-current="page"] { color: #0b2e5e; font-weight: 600; }

/* Hero */
.jdp-hero { background: linear-gradient(135deg, #0b2e5e 0%, #1e40af 100%); color: #fff; padding: 2.5rem 0; }
.jdp-hero-inner { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.jdp-hero-cover { width: 220px; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.jdp-hero-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jdp-hero-cover-monogram { font-size: 3rem; font-weight: 700; color: rgba(255,255,255,.85); letter-spacing: .04em; }
.jdp-hero-meta { min-width: 0; }
.jdp-hero-title { font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 0 0 .75rem; color: #fff; }
.jdp-hero-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.jdp-badge { display: inline-block; padding: .25rem .7rem; font-size: .72rem; font-weight: 600; letter-spacing: .03em; border-radius: 999px; text-transform: uppercase; }
.jdp-badge-abbr { background: rgba(255,255,255,.18); color: #fff; }
.jdp-badge-peer { background: #dbeafe; color: #1e40af; }
.jdp-badge-oa { background: #d1fae5; color: #065f46; }
.jdp-hero-info { margin: 0 0 1.25rem; }
.jdp-hero-info-row { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: .35rem 0; font-size: .92rem; }
.jdp-hero-info-row dt { color: rgba(255,255,255,.7); font-weight: 500; }
.jdp-hero-info-row dd { color: #fff; margin: 0; }
.jdp-hero-info-sub { opacity: .8; font-size: .85em; }
.jdp-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Buttons */
.jdp-btn { display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1.1rem; border-radius: 6px; font-weight: 600; font-size: .92rem; font-family: inherit; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background-color 100ms, color 100ms; }
.jdp-btn-sm { padding: .35rem .75rem; font-size: .82rem; }
.jdp-btn-primary { background: #1e40af; color: #fff; border-color: #1e40af; }
.jdp-btn-primary:hover { background: #0b2e5e; border-color: #0b2e5e; color: #fff; }
.jdp-btn-secondary,
.jdp-btn-outline { background: transparent; color: #1e40af; border-color: #1e40af; }
.jdp-btn-secondary:hover,
.jdp-btn-outline:hover { background: #1e40af; color: #fff; }
.jdp-hero .jdp-btn-primary { background: #fff; color: #0b2e5e; border-color: #fff; }
.jdp-hero .jdp-btn-primary:hover { background: #e2e8f0; color: #0b2e5e; }
.jdp-hero .jdp-btn-secondary { color: #fff; border-color: rgba(255,255,255,.6); }
.jdp-hero .jdp-btn-secondary:hover { background: #fff; color: #0b2e5e; border-color: #fff; }

/* CTA */
.jdp-cta { background: #0b2e5e; border-radius: 12px; padding: 2rem; color: #fff; margin: 2rem auto; max-width: 1280px; box-sizing: border-box; }
.jdp-cta-inner { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.jdp-cta-title { font-size: 1.4rem; font-weight: 700; margin: 0; color: #fff; }
.jdp-cta-desc { margin: 0; font-size: .95rem; opacity: .88; max-width: 720px; line-height: 1.55; }
.jdp-cta-closed { font-size: .92rem; opacity: .85; margin: 0; }
.jdp-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.jdp-cta .jdp-btn-primary { background: #fff; color: #0b2e5e; border-color: #fff; }
.jdp-cta .jdp-btn-primary:hover { background: #e5e7eb; }
.jdp-cta .jdp-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.jdp-cta .jdp-btn-outline:hover { background: #fff; color: #0b2e5e; border-color: #fff; }

/* Main grid */
.jdp-main-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 2rem; padding: 1.5rem 0 3rem; }
.jdp-main { min-width: 0; }
.jdp-sidebar { min-width: 0; }
.jdp-section-title { font-size: 1.5rem; font-weight: 700; color: #0b2e5e; margin: 0 0 1.25rem; }

/* Articles */
.jdp-articles { padding: 2rem 0; }
.jdp-articles-list { display: flex; flex-direction: column; gap: .85rem; }
.jdp-article-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1.25rem; }
.jdp-article-meta-top { display: flex; gap: .5rem; align-items: center; margin-bottom: .35rem; }
.jdp-article-type { display: inline-block; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #1e40af; }
.jdp-article-title { font-size: 1.05rem; font-weight: 600; line-height: 1.4; margin: 0 0 .35rem; }
.jdp-article-title a { color: #0b2e5e; text-decoration: none; }
.jdp-article-title a:hover { color: #1e40af; }
.jdp-article-authors { font-size: .88rem; color: #475569; margin: 0 0 .5rem; }
.jdp-article-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: #6b7280; margin-bottom: .65rem; }
.jdp-article-meta a { color: #1e40af; }
.jdp-article-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.jdp-articles-footer { margin-top: 1rem; }
.jdp-link-more { color: #1e40af; font-weight: 600; font-size: .9rem; text-decoration: none; }
.jdp-link-more:hover { text-decoration: underline; }
.jdp-empty-state { padding: 2.5rem 1.5rem; background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 10px; text-align: center; }
.jdp-empty-title { font-size: 1.05rem; color: #0f172a; font-weight: 600; margin: 0 0 .35rem; }
.jdp-empty-text { color: #6b7280; font-size: .9rem; margin: 0 0 1.25rem; }
.jdp-empty-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* Issues */
.jdp-issues { padding: 2rem 0; }
.jdp-issues__inner { }
.jdp-issues__header { margin-bottom: 1.25rem; }
.jdp-issues__title { font-size: 1.5rem; font-weight: 700; color: #0b2e5e; margin: 0; }
.jdp-issues__empty { padding: 2.5rem 1.5rem; background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 10px; text-align: center; }
.jdp-issues__empty-title { font-size: 1.05rem; color: #0f172a; font-weight: 600; margin: 0 0 .35rem; }
.jdp-issues__empty-hint { color: #6b7280; font-size: .9rem; margin: 0; }
.jdp-issues__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.jdp-issue-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.jdp-issue-card.is-current { border-color: #1e40af; }
.jdp-issue-card__badge { position: absolute; top: .65rem; left: .65rem; background: #1e40af; color: #fff; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .55rem; border-radius: 4px; z-index: 2; }
.jdp-issue-card__cover { width: 100%; aspect-ratio: 3/4; background: linear-gradient(135deg, #0b2e5e, #1e40af); overflow: hidden; }
.jdp-issue-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jdp-issue-card__monogram { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; font-weight: 700; letter-spacing: .05em; }
.jdp-issue-card__body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.jdp-issue-card__meta { font-size: .8rem; color: #6b7280; margin: 0; }
.jdp-issue-card__title { font-size: .95rem; font-weight: 600; color: #0b2e5e; margin: .1rem 0; line-height: 1.35; }
.jdp-issue-card__count { font-size: .78rem; color: #6b7280; margin: 0 0 .65rem; }
.jdp-issue-card__btn { display: inline-block; padding: .4rem .85rem; background: transparent; color: #1e40af; border: 1.5px solid #1e40af; border-radius: 6px; font-size: .82rem; font-weight: 600; text-decoration: none; text-align: center; }
.jdp-issue-card__btn:hover { background: #1e40af; color: #fff; }
.jdp-issues__footer { margin-top: 1.25rem; }
.jdp-issues__browse { color: #1e40af; font-weight: 600; font-size: .9rem; text-decoration: none; }

/* Sidebar cards */
.jdp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.jdp-card-title { font-size: 1rem; font-weight: 600; color: #0b2e5e; margin: 0 0 .65rem; }
.jdp-card-text { font-size: .88rem; color: #374151; line-height: 1.55; margin: 0 0 .85rem; display: flex; align-items: center; gap: .5rem; }
.jdp-card-text--muted { color: #6b7280; font-style: italic; }
.jdp-card-hint { font-size: .78rem; color: #6b7280; margin: .5rem 0 0; }
.jdp-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.jdp-status-dot--open { background: #16a34a; }
.jdp-status-dot--closed { background: #6b7280; }
.jdp-btn--block { display: block; width: 100%; text-align: center; }
.jdp-btn--primary { background: #1e40af; color: #fff; border: 1.5px solid #1e40af; padding: .55rem 1rem; border-radius: 6px; font-weight: 600; font-size: .88rem; text-decoration: none; }
.jdp-btn--primary:hover { background: #0b2e5e; }
.jdp-btn--outline { background: transparent; color: #1e40af; border: 1.5px solid #1e40af; padding: .55rem 1rem; border-radius: 6px; font-weight: 600; font-size: .88rem; text-decoration: none; }
.jdp-btn--outline:hover { background: #1e40af; color: #fff; }
.jdp-follow-actions { display: flex; flex-direction: column; gap: .45rem; }
.jdp-info-list { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: .35rem .75rem; font-size: .85rem; }
.jdp-info-list dt { color: #6b7280; font-weight: 500; }
.jdp-info-list dd { color: #0f172a; margin: 0; font-weight: 500; }
.jdp-editor-name { font-size: .92rem; font-weight: 600; color: #0b2e5e; margin: 0 0 .25rem; }
.jdp-editor-affiliation { font-size: .82rem; color: #6b7280; margin: 0 0 .5rem; line-height: 1.4; }
.jdp-editor-email { font-size: .82rem; color: #1e40af; text-decoration: none; }

/* Responsive */
@media (max-width: 1024px) {
    .jdp-main-grid { grid-template-columns: 1fr; }
    .jdp-hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .jdp-hero-cover { width: 160px; }
    .jdp-issues__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .jdp-container { padding: 0 1rem; }
    .jdp-hero { padding: 1.75rem 0; }
    .jdp-hero-title { font-size: 1.4rem; }
    .jdp-hero-actions, .jdp-cta-actions, .jdp-empty-actions { flex-direction: column; align-items: stretch; }
    .jdp-hero-actions .jdp-btn,
    .jdp-cta-actions .jdp-btn,
    .jdp-empty-actions .jdp-btn { width: 100%; }
    .jdp-issues__grid { grid-template-columns: 1fr; }
    .jdp-section-title, .jdp-issues__title { font-size: 1.25rem; }
}

/* Breadcrumb */
.jdp-breadcrumb-wrap { background: #f8fafc; border-bottom: 1px solid #e5e7eb; padding: .65rem 0; }
.jdp-breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 0; font-size: 13px; color: #6b7280; }
.jdp-breadcrumb a { color: #6b7280; text-decoration: none; }
.jdp-breadcrumb a:hover { color: #1e40af; }
.jdp-breadcrumb-sep { color: #9ca3af; }
.jdp-breadcrumb [aria-current="page"] { color: #0b2e5e; font-weight: 600; }

/* Sticky nav */
.jdp-nav { background: #fff; border-bottom: 1px solid #e5e7eb; position: relative; z-index: 50; }
.jdp-nav.is-sticky { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 1px 3px rgba(11,46,94,.08); }
.jdp-nav-spacer { display: none; }
.jdp-nav-spacer.is-active { display: block; height: 52px; }
.jdp-nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 52px; }
.jdp-nav-brand { font-weight: 700; color: #0b2e5e; text-decoration: none; font-size: 14px; flex-shrink: 0; }
.jdp-nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: .25rem; flex: 1; }
.jdp-nav-item { position: relative; }
.jdp-nav-trigger { background: none; border: 0; padding: 14px 12px; font-family: inherit; font-size: 13.5px; font-weight: 500; color: #1f2937; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.jdp-nav-trigger:hover, .jdp-nav-trigger[aria-expanded="true"] { color: #0b2e5e; border-bottom-color: #1e40af; }
.jdp-nav-trigger[aria-expanded="true"] .jdp-nav-caret { transform: rotate(180deg); }
.jdp-nav-dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid #e5e7eb; border-top: 2px solid #1e40af; padding: 6px 0; z-index: 60; }
.jdp-nav-dropdown[hidden] { display: none; }
.jdp-nav-dropdown ul { list-style: none; margin: 0; padding: 0; }
.jdp-nav-dropdown a { display: block; padding: 8px 16px; font-size: 13.5px; color: #374151; text-decoration: none; }
.jdp-nav-dropdown a:hover { background: #f3f4f6; color: #0b2e5e; }
.jdp-nav-cta { flex-shrink: 0; background: #1e40af; color: #fff; text-decoration: none; padding: 8px 16px; font-size: 13px; font-weight: 600; border-radius: 4px; }
.jdp-nav-cta:hover { background: #0b2e5e; }
@media (max-width: 900px) { .jdp-nav-list { overflow-x: auto; flex-wrap: nowrap; } .jdp-nav-trigger { white-space: nowrap; } }

/* Search */
.jdp-search-section { background: #f4f6fb; border-bottom: 1px solid #e2e8f0; padding: 1.5rem 0; }
.jdp-search { background: #fff; border: 1px solid #dbe3ef; border-radius: 8px; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.jdp-search-scope { display: flex; gap: 1.25rem; font-size: .88rem; color: #475569; }
.jdp-search-scope label { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.jdp-search-bar { display: flex; border: 1.5px solid #0b2e5e; border-radius: 6px; overflow: hidden; }
.jdp-search-input { flex: 1; border: 0; outline: 0; padding: .65rem .85rem; font-family: inherit; font-size: .92rem; color: #0f172a; min-width: 0; }
.jdp-search-input::placeholder { color: #8493a8; }
.jdp-search-submit { border: 0; background: #1e40af; color: #fff; padding: 0 1.5rem; font-family: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.jdp-search-submit:hover { background: #0b2e5e; }
.jdp-search-links { display: flex; gap: .85rem; font-size: .82rem; }
.jdp-search-links a { color: #1e40af; text-decoration: none; font-weight: 500; }
.jdp-search-links a:hover { text-decoration: underline; }

/* CTA */
.jdp-cta-section { padding: 2rem 0; }
.jdp-cta { background: #0b2e5e; border-radius: 12px; padding: 2rem; color: #fff; }
.jdp-cta-inner { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.jdp-cta-title { font-size: 1.4rem; font-weight: 700; margin: 0; color: #fff; }
.jdp-cta-desc { margin: 0; font-size: .95rem; opacity: .88; max-width: 720px; line-height: 1.55; }
.jdp-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.jdp-btn { display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1.1rem; border-radius: 6px; font-weight: 600; font-size: .92rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.jdp-btn-primary { background: #fff; color: #0b2e5e; border-color: #fff; }
.jdp-btn-primary:hover { background: #e5e7eb; }
.jdp-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.jdp-btn-outline:hover { background: #fff; color: #0b2e5e; border-color: #fff; }

@media (max-width: 720px) {
    .jdp-cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .jdp-cta-actions .jdp-btn { width: 100%; }
}

/* Latest Issues grid */
.jdp-issues-section { padding: 2.5rem 0; background: #f8fafc; border-top: 1px solid #e5e7eb; }
.jdp-issues-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.jdp-issues-title { font-size: 1.5rem; font-weight: 700; color: #0b2e5e; margin: 0; }
.jdp-issues-browse { color: #1e40af; font-weight: 600; font-size: .9rem; text-decoration: none; }
.jdp-issues-browse:hover { text-decoration: underline; }

.jdp-issues-empty { padding: 2.5rem 1.5rem; background: #fff; border: 1px dashed #d1d5db; border-radius: 10px; text-align: center; }
.jdp-issues-empty h3 { font-size: 1.05rem; color: #0f172a; font-weight: 600; margin: 0 0 .35rem; }
.jdp-issues-empty p { color: #6b7280; font-size: .9rem; margin: 0; }

.jdp-issues-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.jdp-issue-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: border-color .15s, transform .15s; }
.jdp-issue-card:hover { border-color: #1e40af; }
.jdp-issue-card.is-current { border-color: #1e40af; border-width: 2px; }
.jdp-issue-card__badge { position: absolute; top: .65rem; left: .65rem; background: #1e40af; color: #fff; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .55rem; border-radius: 4px; z-index: 2; }
.jdp-issue-card__cover-link { display: block; width: 100%; aspect-ratio: 3/4; background: linear-gradient(135deg, #0b2e5e, #1e40af); overflow: hidden; text-decoration: none; }
.jdp-issue-card__cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jdp-issue-card__monogram { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; font-weight: 700; letter-spacing: .05em; }
.jdp-issue-card__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; }
.jdp-issue-card__meta { font-size: .78rem; color: #6b7280; margin: 0; font-weight: 500; }
.jdp-issue-card__title { font-size: .95rem; font-weight: 600; color: #0b2e5e; margin: .15rem 0 .35rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jdp-issue-card__count { font-size: .78rem; color: #6b7280; margin: 0 0 .75rem; }
.jdp-issue-card__btn { display: inline-block; padding: .45rem .9rem; background: transparent; color: #1e40af; border: 1.5px solid #1e40af; border-radius: 6px; font-size: .82rem; font-weight: 600; text-decoration: none; text-align: center; transition: background-color .15s, color .15s; }
.jdp-issue-card__btn:hover { background: #1e40af; color: #fff; }

@media (max-width: 1024px) { .jdp-issues-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .jdp-issues-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Ready to submit — inline card (Taylor & Francis style)
   ============================================================ */
.jdp-rts-section { padding: 1.5rem 0; background: #fff; }
.jdp-rts-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.jdp-rts-text { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 320px; min-width: 0; }
.jdp-rts-title { font-size: 1.1rem; font-weight: 700; color: #0b2e5e; }
.jdp-rts-desc { font-size: .92rem; color: #475569; }
.jdp-rts-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #16a34a;
    color: #fff !important;
    padding: .75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s;
}
.jdp-rts-btn:hover { background: #15803d; }

/* ============================================================
   Jump to section — left sidebar on About/Aims/Board panes
   ============================================================ */
.jp-pane--with-sidebar {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
.jp-pane--with-sidebar .jp-pane-body { min-width: 0; }
.jp-pane.is-active.jp-pane--with-sidebar { display: grid; }

.jdp-jump {
    border-right: 1px solid #e5e7eb;
    padding-right: 1.25rem;
    position: sticky;
    top: 80px;
}
.jdp-jump-title {
    font-size: .82rem;
    font-weight: 700;
    color: #0b2e5e;
    margin: 0 0 .85rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #e5e7eb;
}
.jdp-jump-list { list-style: none; padding: 0; margin: 0; }
.jdp-jump-list li { margin: 0; }
.jdp-jump-list a {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 0;
    font-size: .88rem;
    color: #1e40af;
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: .65rem;
    margin-left: -.65rem;
}
.jdp-jump-list a::before {
    content: '›';
    color: #1e40af;
    font-weight: 700;
    flex-shrink: 0;
}
.jdp-jump-list a:hover { color: #0b2e5e; }
.jdp-jump-list a.is-current {
    color: #0b2e5e;
    font-weight: 600;
    border-left-color: #1e40af;
    background: #f1f5f9;
}

@media (max-width: 900px) {
    .jp-pane--with-sidebar { grid-template-columns: 1fr; }
    .jdp-jump { border-right: 0; border-bottom: 1px solid #e5e7eb; padding-right: 0; padding-bottom: 1rem; position: static; }
}

/* Jump sidebar — 3-column layout when active */
.jp-grid:has(.jdp-jump-side:not([hidden])) {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}

.jdp-jump-side {
    position: sticky;
    top: 80px;
    border-right: 1px solid #e5e7eb;
    padding-right: 1.25rem;
}
.jdp-jump-side[hidden] { display: none; }
.jdp-jump-title {
    font-size: .82rem;
    font-weight: 700;
    color: #0b2e5e;
    margin: 0 0 .85rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #e5e7eb;
}
.jdp-jump-list { list-style: none; padding: 0; margin: 0; }
.jdp-jump-list li { margin: 0; }
.jdp-jump-list a {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .75rem;
    font-size: .9rem;
    color: #1e40af;
    text-decoration: none;
    border-left: 3px solid transparent;
    margin-left: -3px;
}
.jdp-jump-list a::before {
    content: '›';
    color: #1e40af;
    font-weight: 700;
    flex-shrink: 0;
}
.jdp-jump-list a:hover { color: #0b2e5e; background: #f8fafc; }
.jdp-jump-list a.is-current {
    color: #0b2e5e;
    font-weight: 600;
    border-left-color: #1e40af;
    background: #f1f5f9;
}



/* About page mini hero + grid */
.jdp-mini-hero { background: linear-gradient(135deg, #0b2e5e 0%, #1e40af 100%); padding: 1.5rem 0; color: #fff; }
.jdp-mini-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.jdp-mini-title { font-size: 1.6rem; font-weight: 700; margin: 0; color: #fff; line-height: 1.25; }
.jdp-mini-sub { margin-top: .25rem; font-size: .85rem; opacity: .85; }
.jdp-mini-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.jdp-mini-btn { display: inline-block; border: 1px solid #fff; color: #fff; background: transparent; padding: .45rem .9rem; border-radius: 6px; font-size: .9rem; text-decoration: none; }
.jdp-mini-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

.jdp-about-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 2rem; max-width: 1280px; margin: 0 auto; padding: 2rem; }
.jdp-jump-side--static { position: sticky; top: 80px; align-self: start; padding-right: 1.25rem; border-right: 1px solid #e5e7eb; }
.jdp-about-main { min-width: 0; }
.jdp-about-title { font-size: 1.8rem; font-weight: 700; color: #0b2e5e; margin: 0 0 1.5rem; }
.jdp-about-section { padding: 1.5rem 0; border-bottom: 1px solid #e5e7eb; }
.jdp-about-section:last-child { border-bottom: 0; }
.jdp-about-section h2 { font-size: 1.25rem; font-weight: 700; color: #0b2e5e; margin: 0 0 .85rem; }
.jdp-about-section p { font-size: .95rem; line-height: 1.6; color: #1f2937; margin: 0 0 .85rem; }

.jdp-details-dl { display: grid; grid-template-columns: 200px 1fr; gap: .5rem 1rem; margin: 0; font-size: .9rem; }
.jdp-details-dl > div { display: contents; }
.jdp-details-dl dt { color: #6b7280; font-weight: 500; }
.jdp-details-dl dd { color: #0f172a; margin: 0; font-weight: 500; }

.jdp-jump-link { display: flex; align-items: center; gap: .4rem; padding: .5rem .65rem; font-size: .88rem; color: #1e40af; text-decoration: none; border-left: 3px solid transparent; margin-left: -3px; }
.jdp-jump-link::before { content: '›'; color: #1e40af; font-weight: 700; }
.jdp-jump-link:hover { color: #0b2e5e; background: #f8fafc; }
.jdp-jump-link.is-active { color: #0b2e5e; font-weight: 600; border-left-color: #1e40af; background: #f1f5f9; }

.jdp-about-side .jdp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.jdp-about-side .jdp-card-title { font-size: 1rem; font-weight: 700; color: #0b2e5e; margin: 0 0 .65rem; }
.jdp-about-side .jdp-card-text { font-size: .88rem; color: #475569; margin: 0 0 .85rem; line-height: 1.5; }
.jdp-about-side .jdp-card-cta { display: block; width: 100%; text-align: center; margin-bottom: .45rem; }

/* Nav dropdown styling (used by partial) */
.jdp-nav-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.jdp-nav-item { position: relative; }
.jdp-nav-trigger { display: inline-flex; align-items: center; gap: .35rem; padding: .85rem 1.1rem; color: #e6ecf7; font-size: .92rem; font-weight: 500; text-decoration: none; }
.jdp-nav-trigger:hover, .jdp-nav-trigger.is-active, .jdp-nav-item.is-open > .jdp-nav-trigger { background: #1e40af; color: #fff; }
.jdp-nav-caret { font-size: .7rem; opacity: .8; }
.jdp-nav-dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid #e5e7eb; display: none; z-index: 60; }
.jdp-nav-item:hover > .jdp-nav-dropdown, .jdp-nav-item.is-open > .jdp-nav-dropdown { display: block; }
.jdp-nav-dropdown-list { list-style: none; margin: 0; padding: .35rem 0; }
.jdp-nav-dropdown-link { display: block; padding: .55rem 1rem; color: #0b2e5e; font-size: .88rem; text-decoration: none; }
.jdp-nav-dropdown-link:hover { background: #f3f6fb; color: #1e40af; }

@media (max-width: 1024px) {
    .jdp-about-grid { grid-template-columns: 1fr; }
    .jdp-jump-side--static { position: static; border-right: 0; border-bottom: 1px solid #e5e7eb; padding-right: 0; padding-bottom: 1rem; margin-bottom: 1.5rem; }
}
@media (max-width: 720px) {
    .jdp-mini-hero-inner { flex-direction: column; align-items: flex-start; }
    .jdp-about-grid { padding: 0 1rem; }
    .jdp-about-title { font-size: 1.5rem; }
    .jdp-nav-list { flex-direction: column; }
}

/* Override — nav agora é navy com texto claro */
.jdp-nav {
    background: #0b2e5e !important;
    border-bottom: 1px solid #1e40af !important;
}
.jdp-nav .jdp-nav-trigger {
    color: #e6ecf7 !important;
    background: transparent !important;
}
.jdp-nav .jdp-nav-trigger:hover,
.jdp-nav .jdp-nav-trigger.is-active,
.jdp-nav .jdp-nav-item.is-open > .jdp-nav-trigger,
.jdp-nav .jdp-nav-item:hover > .jdp-nav-trigger {
    background: #1e40af !important;
    color: #ffffff !important;
}
.jdp-nav .jdp-nav-caret { color: #e6ecf7 !important; opacity: .85; }

/* Dropdown items mantêm contraste sobre fundo branco */
.jdp-nav .jdp-nav-dropdown {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}
.jdp-nav .jdp-nav-dropdown-link {
    color: #0b2e5e !important;
}
.jdp-nav .jdp-nav-dropdown-link:hover {
    background: #f3f6fb !important;
    color: #1e40af !important;
}

/* Homepage sem sidebar — 1 coluna full width */
.jp-grid {
    display: block !important;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
}
.jp-main { width: 100%; min-width: 0; }

/* Explore articles section */
.jdp-explore-section { padding: 2.5rem 0; background: #fff; border-top: 1px solid #e5e7eb; }
.jdp-explore-section .container { max-width: 1280px; padding: 0 2rem; }

.jdp-explore-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0b2e5e;
    margin: 0 0 1.25rem;
}

.jdp-explore-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f1f5f9;
    border-bottom: 0;
}
.jdp-explore-tab {
    background: #f1f5f9;
    border: 0;
    padding: 1rem 1.25rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    color: #475569;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}
.jdp-explore-tab:hover { color: #0b2e5e; }
.jdp-explore-tab.is-active {
    background: #0b2e5e;
    color: #fff;
    font-weight: 600;
    border-bottom: 0;
}
.jdp-explore-tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #0b2e5e;
    border-bottom: 0;
}

.jdp-explore-desc-wrap { background: #f8fafc; padding: 1.5rem 1.25rem; text-align: center; }
.jdp-explore-desc { color: #475569; font-size: 1rem; margin: 0; }

.jdp-explore-list { border-top: 0; }
.jdp-explore-article {
    position: relative;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    transition: background-color .15s;
}
.jdp-explore-article:hover { background: #fafbfc; }
.jdp-explore-article-link { display: block; text-decoration: none; color: inherit; padding-right: 60px; }

.jdp-explore-article-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 600;
    color: #0b2e5e;
    margin: 0 0 .35rem;
}
.jdp-explore-chevron { color: #0b2e5e; margin-left: .25rem; font-weight: 700; }
.jdp-explore-article:hover .jdp-explore-article-title { text-decoration: underline; }

.jdp-explore-article-authors {
    font-size: .92rem;
    color: #475569;
    margin: 0 0 .35rem;
}

.jdp-explore-article-meta {
    font-size: .85rem;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}
.jdp-explore-article-type { color: #1e40af; font-weight: 500; }
.jdp-explore-article-sep { color: #cbd5e1; }

/* OA triangle (orange corner) */
.jdp-explore-oa {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 60px 60px 0;
    border-color: transparent #f59e0b transparent transparent;
}
.jdp-explore-oa svg {
    position: absolute;
    top: 8px;
    right: -52px;
    color: #fff;
}

/* Empty state */
.jdp-explore-empty {
    padding: 3rem 1.5rem;
    background: #f8fafc;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    text-align: center;
}
.jdp-explore-empty h3 { font-size: 1.1rem; color: #0f172a; margin: 0 0 .5rem; }
.jdp-explore-empty p { color: #6b7280; font-size: .95rem; margin: 0 0 1.25rem; }
.jdp-explore-empty-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.jdp-explore-footer { padding: 1.25rem 0 0; text-align: right; }
.jdp-explore-more {
    color: #1e40af;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
}
.jdp-explore-more:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .jdp-explore-tabs { grid-template-columns: repeat(2, 1fr); }
    .jdp-explore-title { font-size: 1.35rem; }
    .jdp-explore-section .container { padding: 0 1rem; }
}

/* ============================================================
   Fix 1: Sticky nav não passa por cima do header
   ============================================================ */

/* Garante que o nav fica abaixo do header, não em cima */
.jdp-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important; /* abaixo do header global (geralmente 100) */
}
.jdp-nav.is-sticky,
.jdp-nav.is-stuck {
    position: sticky !important;
    top: 0 !important;
}

/* Remove qualquer position:fixed antigo */
.jdp-nav { position: sticky !important; }
.jdp-nav-spacer { display: none !important; }

/* ============================================================
   Fix 2: Largura máxima consistente — mesma do header/footer
   ============================================================ */

/* Padroniza todos os containers das seções do journal */
.jdp-breadcrumb-wrap > .container,
.jh--v2 > .container,
.jdp-search-section > .container,
.jdp-rts-section > .container,
.jdp-explore-section > .container,
.jdp-issues-section > .container,
.jdp-mini-hero > .jdp-mini-hero-inner,
.jp-section > .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* jdp-about-grid também respeita o limite */
.jdp-about-grid {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
    box-sizing: border-box !important;
}

/* jdp-nav-inner segue mesma largura */
.jdp-nav > .container,
.jdp-nav .jdp-nav-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-sizing: border-box !important;
}

/* Evita scroll horizontal */
body, html { overflow-x: hidden; }

/* Responsive */
@media (max-width: 720px) {
    .jdp-breadcrumb-wrap > .container,
    .jh--v2 > .container,
    .jdp-search-section > .container,
    .jdp-rts-section > .container,
    .jdp-explore-section > .container,
    .jdp-issues-section > .container,
    .jp-section > .container,
    .jdp-about-grid,
    .jdp-nav > .container,
    .jdp-nav .jdp-nav-inner {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* ============================================================
   Fix dashboard sidebar — restore sticky behavior
   ============================================================ */

/* Remove overflow-x do body (quebra sticky/fixed) — limita só ao público */
html, body { overflow-x: visible !important; }

/* Mas mantém scroll-x fechado APENAS nas seções do journal público */
.jdp-mini-hero,
.jdp-explore-section,
.jdp-search-section,
.jdp-rts-section,
.jdp-issues-section,
.jdp-about-grid,
.jh--v2 {
    overflow-x: hidden;
}

/* Sidebar do dashboard volta a ficar fixo */
.dashboard-shell .dashboard-sidebar,
.dashboard-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 30 !important;
    box-sizing: border-box;
}

/* Container do conteúdo do dashboard respeita largura do sidebar */
.dashboard-shell .dashboard-main,
.dashboard-main {
    margin-left: var(--tj-sidebar-width, 250px);
    width: calc(100% - var(--tj-sidebar-width, 250px));
    box-sizing: border-box;
}

/* Em mobile o sidebar volta a virar drawer */
@media (max-width: 900px) {
    .dashboard-shell .dashboard-sidebar,
    .dashboard-sidebar {
        position: fixed !important;
        transform: translateX(-100%);
        transition: transform .2s;
    }
    body.sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }
    .dashboard-shell .dashboard-main,
    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }
}

/* ============================================================
   Revert dashboard sidebar — let original layout work
   ============================================================ */

/* Apaga as regras anteriores que forçaram position:fixed */
.dashboard-shell .dashboard-sidebar,
.dashboard-sidebar {
    position: unset !important;
    top: unset !important;
    left: unset !important;
    height: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: auto !important;
}
.dashboard-shell .dashboard-main,
.dashboard-main {
    margin-left: 0 !important;
    width: auto !important;
}

/* E mantém o overflow-x normal */
html, body { overflow-x: visible !important; }

/* ============================================================
   Dashboard sidebar — sticky correto (NÃO fixed)
   ============================================================ */

/* Remove os reverts anteriores */
.dashboard-shell .dashboard-sidebar,
.dashboard-sidebar {
    position: sticky !important;
    top: 0 !important;
    align-self: flex-start !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    /* Não mexe em left, width, transform, margin */
}

/* Reset main */
.dashboard-shell .dashboard-main,
.dashboard-main {
    margin-left: 0 !important;
    width: auto !important;
}

/* Body sem overflow bloqueado */
html, body { overflow-x: visible !important; }

/* Mobile mantém comportamento original (drawer) */
@media (max-width: 900px) {
    .dashboard-shell .dashboard-sidebar,
    .dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
    }
}

/* Scrollbar fina pro sidebar */
.dashboard-sidebar::-webkit-scrollbar { width: 6px; }
.dashboard-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.dashboard-sidebar::-webkit-scrollbar-track { background: transparent; }

.jdp-about-grid--no-side {
    grid-template-columns: 220px minmax(0, 1fr) !important;
}
@media (max-width: 1024px) {
    .jdp-about-grid--no-side {
        grid-template-columns: 1fr !important;
    }
}

/* Remove section headings from dashboard sidebar */
.dashboard-nav-heading,
.dashboard-sidebar h2,
.dashboard-sidebar h3,
.dashboard-sidebar .nav-section-title,
.dashboard-sidebar .sidebar-section-title {
    display: none !important;
}

/* Sem espaçamento extra entre grupos */
.dashboard-nav-group,
.dashboard-sidebar .nav-group {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

/* Mantém só um pequeno gap entre itens */
.dashboard-nav-group + .dashboard-nav-group {
    margin-top: .25rem !important;
}
/* Remove section dividers from dashboard sidebar */
.dashboard-sidebar .dashboard-nav-label {
    display: none !important;
}

/* Flatten groups — no extra spacing between sections */
.dashboard-sidebar .dashboard-nav-group {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Small gap between consecutive items (visual breath, not section break) */
.dashboard-sidebar .dashboard-nav-group + .dashboard-nav-group {
    margin-top: .1rem !important;
}

/* Itens ficam todos com mesmo espaçamento */
.dashboard-sidebar .dashboard-nav-item {
    margin-bottom: .15rem !important;
}

/* Quill editor com altura fixa e rolagem interna */
#editor-body {
    height: 500px;
    max-height: 500px;
    overflow-y: auto;
}
#editor-body .ql-editor {
    min-height: 100%;
    max-height: none;
}
.ql-container.ql-snow {
    border: 1px solid #ccc;
    border-top: 0;
}
.ql-toolbar.ql-snow {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}