/* ============================================
   Pedapub - Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Peda Tipografi Sistemi — font yükleme === */
@font-face {
    font-family: "IBM Plex Sans";
    src: url("/fonts/ibm-plex-sans/IBMPlexSans-VF-latin-ext.woff2") format("woff2-variations");
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-017F, U+0131, U+015E-015F, U+011E-011F, U+0152-0153,
                   U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304,
                   U+0308-0309, U+0323, U+0329, U+2000-206F, U+20BA, U+2122, U+2191, U+2193, U+2212, U+FEFF;
}
@font-face {
    font-family: "IBM Plex Sans";
    src: url("/fonts/ibm-plex-sans/IBMPlexSans-VF-latin.woff2") format("woff2-variations");
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --color-bg: #efefef;
    --color-bg-white: #ffffff;
    --color-text: #000000;
    --color-text-secondary: #333333;
    --color-text-light: #555555;
    --color-accent: #085E7D;
    --color-accent-hover: #064d68;
    --color-btn-secondary: #333333;
    --color-btn-secondary-hover: #292929;
    --color-btn-tertiary: #dedfe0;
    --color-btn-tertiary-hover: #b2b2b3;
    --color-border: #b1a6a6c2;
    --color-border-light: #dedfe0;
    --font-main: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Roboto Mono", monospace;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --lh-body: 1.6;
    --lh-heading: 1.25;
    --ls-heading: -0.01em;
    --max-width: 1400px;
    --header-height: 80px;
    --journal-nav-height: 44px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: var(--fw-regular);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.page-journal-detail {
    background-color: #ffffff;
}

main {
    min-height: 60vh;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    color: var(--color-text);
}

strong, b { font-weight: var(--fw-semibold); }
code, pre, kbd { font-family: var(--font-mono); }

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.35rem;
    color: var(--color-text-secondary);
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section--alt {
    background-color: var(--color-bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header p {
    max-width: 640px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}

/* --- Top Bar --- */
.top-bar {
    background: var(--color-accent);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1;
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 44px;
    gap: 0.5rem;
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-right: 0.75rem;
}

.top-bar__link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: var(--font-main);
    transition: color 0.2s;
}

.top-bar__link:hover {
    color: #fff;
}

.top-bar__messages {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.top-bar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    line-height: 1;
}

/* User dropdown menu */
.top-bar__user-menu {
    position: relative;
}

.top-bar__user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.top-bar__user-trigger:hover {
    background: rgba(255,255,255,0.15);
}

.top-bar__user-arrow {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s;
}

.top-bar__user-menu.open .top-bar__user-arrow {
    transform: rotate(180deg);
}

.top-bar__user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 200;
    padding: 6px 0;
    margin-top: 8px;
}

.top-bar__user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.top-bar__user-menu.open .top-bar__user-dropdown,
.top-bar__user-menu:hover .top-bar__user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-bar__user-menu:hover .top-bar__user-arrow {
    transform: rotate(180deg);
}

.top-bar__user-dropdown a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.top-bar__user-dropdown a:hover {
    background: #f1f5f9;
    color: var(--color-accent);
}

.top-bar__user-dropdown a:last-child {
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
    padding-top: 0.6rem;
    color: #dc2626;
}

.top-bar__user-dropdown a:last-child:hover {
    background: #fef2f2;
    color: #dc2626;
}

.top-bar__sep {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
}

.top-bar .lang-switcher {
    margin-left: 0;
    background: rgba(255,255,255,0.15);
    padding: 2px;
}

.top-bar .lang-switcher a {
    color: rgba(255,255,255,0.75);
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
}

.top-bar .lang-switcher a:hover {
    color: #fff;
}

.top-bar .lang-switcher a.active {
    background: #fff;
    color: var(--color-accent);
}

/* --- Header --- */
.site-header {
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    transition: height 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    transition: height 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
}

.logo img {
    height: 36px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header.scrolled .logo img {
    height: 27px;
}

.logo-text {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a,
.nav-dropdown > span {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, padding 0.3s ease, font-size 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.site-header.scrolled .main-nav a,
.site-header.scrolled .nav-dropdown > span {
    padding: 0.45rem 0.75rem;
    font-size: 0.9375rem;
}

.main-nav a:hover,
.main-nav a.active,
.nav-dropdown:hover > span {
    color: var(--color-accent);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > span::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 5px;
    vertical-align: middle;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dropdown:hover > span::after {
    transform: rotate(-135deg) translateY(-1px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) perspective(600px) rotateX(-3deg);
    transform-origin: top center;
    background: #fff;
    border: none;
    border-radius: 14px;
    padding: 6px;
    min-width: 250px;
    box-shadow:
        0 12px 48px -6px rgba(8, 94, 125, 0.13),
        0 2px 6px rgba(0, 0, 0, 0.04);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.3s;
    pointer-events: none;
}

/* Invisible hover bridge — connects trigger to menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -10px;
    right: -10px;
    height: 18px;
}

.nav-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) perspective(600px) rotateX(0deg);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-radius: 10px;
    border-bottom: none;
    position: relative;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(8, 94, 125, 0.07), rgba(8, 94, 125, 0.03));
    color: var(--color-accent);
}

.dropdown-menu a.active {
    color: var(--color-accent);
    background: linear-gradient(135deg, rgba(8, 94, 125, 0.1), rgba(8, 94, 125, 0.04));
    font-weight: 600;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 0.75rem;
    background: var(--color-border-light);
    border-radius: 50px;
    padding: 3px;
}

.lang-switcher a {
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.lang-switcher a:hover {
    color: var(--color-text);
}

.lang-switcher a.active {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Nav auth button */
.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-left: 0.25rem;
    white-space: nowrap;
}
.nav-auth-btn:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 1px;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.55) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero h1 {
    font-size: 2.75rem;
    max-width: 780px;
    margin: 0 auto 1.25rem;
    line-height: 1.35;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(255,255,255,0.6);
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: #fff;
}

.btn-secondary {
    background: var(--color-btn-secondary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--color-btn-secondary-hover);
    color: #fff;
}

/* --- Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.card-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
}

.card-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: var(--color-bg);
}

.card-body {
    padding: 1.25rem;
}

.card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.card-body p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Content sections --- */
.content-block {
    margin-bottom: 2.5rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h3 {
    font-size: 1.35rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--color-accent);
}

.content-block h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* --- Feature boxes (homepage) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.feature-box {
    padding: 2rem;
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    background: var(--color-bg-white);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.feature-box h3 {
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-box p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.feature-box .btn {
    margin-top: auto;
}

/* --- Badge --- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    background: var(--color-btn-tertiary);
    color: var(--color-text-secondary);
    vertical-align: middle;
}

.badge--soon {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    color: #6366f1;
    letter-spacing: 0.04em;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* --- Dropdown disabled item --- */
.dropdown-disabled {
    cursor: default !important;
    opacity: 0.55;
}

.dropdown-disabled:hover {
    background: transparent !important;
    color: var(--color-text-secondary) !important;
}

/* --- Footer disabled --- */
.footer-disabled {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* --- Verify page --- */
.verify-form {
    max-width: 480px;
    margin: 0 auto;
}

.verify-input-row {
    display: flex;
    gap: 0.5rem;
}

.verify-input-row input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-family: var(--font-main);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    color: var(--color-text);
}

.verify-input-row input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.verify-result {
    max-width: 600px;
    margin: 0 auto;
}

.verify-success {
    background: #dcfce7;
    border: 1px solid #16a34a;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.verify-success h2 {
    color: #166534;
    border: none;
    margin-bottom: 0.5rem;
}

.verify-success p {
    color: #166534;
    margin: 0;
}

.verify-error {
    background: #fef2f2;
    border: 1px solid #dc2626;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.verify-error h2 {
    color: #991b1b;
    border: none;
    margin-bottom: 0.5rem;
}

.verify-error p {
    color: #991b1b;
    margin: 0;
}

.verify-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    overflow: hidden;
}

.verify-table td {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
}

.verify-table tr:last-child td {
    border-bottom: none;
}

.verify-table td:first-child {
    font-weight: 600;
    color: var(--color-text);
    width: 35%;
}

/* --- Sidebar layout --- */
.sidebar-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}

.sidebar-nav {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    max-height: calc(100vh - var(--header-height) - 3rem);
    overflow-y: auto;
    padding-right: 1rem;
}

.sidebar-nav nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 2px solid var(--color-border-light);
}

.sidebar-nav nav a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    color: var(--color-text-light);
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1.4;
}

.sidebar-nav nav a:hover {
    color: var(--color-accent);
}

.sidebar-nav nav a.active {
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    font-weight: 600;
}

.sidebar-content {
    min-width: 0;
}

/* Scroll offset for anchors */
.sidebar-content [id] {
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

/* --- Contact blocks --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    background: var(--color-bg-white);
}

.contact-card h3 {
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.contact-card p {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --- Open Access highlight --- */
.highlight-box {
    padding: 2rem 2.5rem;
    background: var(--color-bg-white);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 10px 10px 0;
    margin-bottom: 2rem;
}

.highlight-box h2 {
    color: var(--color-accent);
}

.highlight-box p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* --- Page header --- */
.page-header {
    padding: 0;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border-light);
}

.page-header .container {
    width: 100%;
}

.page-header h1 {
    margin: 0;
}

.page-header__logo {
    max-height: 40px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* --- Policy sections --- */
.policy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: 1rem;
}

.policy-section h3 {
    color: var(--color-accent);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.policy-section h4 {
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.policy-image {
    margin-top: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
    max-width: 50%;
    height: auto;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border-light);
    padding: 3rem 0 0;
    margin-top: 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-light);
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo-link {
    display: inline-block;
}

.footer-pedapub-logo {
    height: 32px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.2s, opacity 0.2s;
}

.footer-logo-link:hover .footer-pedapub-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-right {
    display: flex;
    gap: 3rem;
    text-align: right;
}

.footer-nav-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.footer-nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-col ul li {
    margin-bottom: 0.4rem;
}

.footer-nav-col ul li a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-col ul li a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--color-text);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 1;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    vertical-align: middle;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.peda-logo {
    height: 20px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.2s, filter 0.2s;
}

.peda-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- Journal standalone footer (non-Pedapub publishers) --- */
.journal-standalone-footer {
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border-light);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.journal-standalone-footer p {
    margin: 0.25rem 0;
}
.journal-standalone-footer a {
    color: var(--color-primary);
    text-decoration: none;
}
.journal-standalone-footer a:hover {
    text-decoration: underline;
}

/* --- Journals illustration --- */
.journals-illustration {
    max-width: 320px;
    margin: 0 auto 1.5rem;
}

/* --- Journals section background --- */
.section--journals {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8,94,125,0.10) 0%, rgba(8,94,125,0.03) 40%, var(--color-bg) 75%);
}

.section--journals::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(8,94,125,0.09) 0%, transparent 70%);
    animation: gradientPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(5%, 5%) scale(1.08);
    }
}

.section--journals > .container {
    position: relative;
    z-index: 1;
}

/* --- Journals Split (Illustration + List) --- */
.journals-split {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: center;
}

.journals-split__left {
    text-align: center;
}

.journals-split__illustration {
    width: 100%;
    max-width: 420px;
}

.journals-split__right {
    display: flex;
    flex-direction: column;
}

.journals-split__header {
    margin-bottom: 1.25rem;
}

.journals-split__header h2 {
    margin-bottom: 0.5rem;
}

.journals-split__header p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.journals-split__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.journals-split__footer {
    margin-top: 1.5rem;
}

/* --- Minimal List (journal items) --- */
.minimal-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.minimal-list__item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.2s;
}

.minimal-list__item:first-child {
    border-top: 1px solid var(--color-border-light);
}

.minimal-list__item:hover {
    background: var(--color-bg-white);
}

.minimal-list__thumb {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.minimal-list__info {
    flex: 1;
}

.minimal-list__info h3 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.minimal-list__info p {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin: 0;
}

.minimal-list__arrow {
    font-size: 1.4rem;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.minimal-list__item:hover .minimal-list__arrow {
    transform: translateX(4px);
}

/* --- Journal Detail --- */
.journal-detail {
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    gap: 2.5rem;
    align-items: start;
}

.journal-detail__cover {
    position: sticky;
    top: calc(var(--header-height) + var(--journal-nav-height) + 1.5rem);
}

.journal-detail__cover img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: block;
    margin-bottom: 1.25rem;
}

.journal-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
}

.journal-meta__row {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.journal-meta__row:first-child {
    border-top: 1px solid var(--color-border-light);
}

.journal-meta__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 0.15rem;
}

.journal-meta__value {
    font-size: 0.88rem;
    color: var(--color-text);
}

.journal-meta__value a {
    color: var(--color-accent);
}

.journal-meta__more-btn {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: transparent;
    border: 1px solid var(--color-border-light);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.journal-meta__more-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Journal Info Popup */
.journal-info-popup__body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.journal-info-popup__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-light);
    gap: 1rem;
}

.journal-info-popup__row:last-child {
    border-bottom: none;
}

.journal-info-popup__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    flex-shrink: 0;
}

.journal-info-popup__value {
    font-size: 0.88rem;
    color: var(--color-text);
    text-align: right;
}

.journal-info-popup__value a {
    color: var(--color-accent);
}

.journal-detail__meta {
    position: sticky;
    top: calc(var(--header-height) + var(--journal-nav-height) + 1.5rem);
}

.journal-submit-btn {
    display: block;
    width: 100%;
    text-align: center;
}

.journal-detail__content h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.journal-detail__content h2:first-child {
    margin-top: 0;
}

.journal-detail__content h3 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.journal-detail__content p {
    margin-bottom: 0.75rem;
}

.subject-areas {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subject-areas li {
    padding: 0.3rem 0.75rem;
    background: var(--color-bg);
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-light);
}

.indexing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.indexing-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Indexing vertical list (indexing page) */
.indexing-list-vertical {
    list-style: none;
    padding: 0;
    margin: 0;
}
.indexing-list-vertical li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.95rem;
}
.indexing-list-vertical li:last-child {
    border-bottom: none;
}
.indexing-list-vertical a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}
.indexing-list-vertical a:hover {
    text-decoration: underline;
}

/* Indexing list (journal home) */
.indexing-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.indexing-list__item {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: transparent;
    border: 1px solid var(--color-border-light);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a.indexing-list__item:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    text-decoration: none;
}

.back-link {
    display: inline-block;
    font-size: 0.88rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--color-accent);
}

/* --- Journal Navigation --- */
.journal-nav-section {
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.journal-nav-section.is-stuck {
    border-top: none;
    position: -webkit-sticky;
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    transition: top 0.3s ease;
}


.journal-nav-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 1.25rem;
}

.journal-nav__brand {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.6rem 0;
    padding-right: 0;
    border-right: 1px solid transparent;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    margin-right: 0;
    transition: max-width 0.3s ease, opacity 0.25s ease, margin-right 0.3s ease, padding-right 0.3s ease, border-right-color 0.3s ease;
}

.journal-nav-section.is-stuck .journal-nav__brand {
    max-width: 300px;
    opacity: 1;
    margin-right: 0;
    padding-right: 1.25rem;
    border-right-color: var(--color-border-light);
}

.journal-nav__brand:hover {
    color: var(--color-accent);
}

.journal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: stretch;
}

.journal-nav__item {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.94rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.journal-nav__item:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-border-light);
}

.journal-nav__item--active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.journal-nav__dropdown {
    position: relative;
}

.journal-nav__dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    min-width: 220px;
    z-index: 100;
    padding: 0.35rem 0;
}

.journal-nav__dropdown:hover .journal-nav__dropdown-menu {
    display: block;
}

.journal-nav__dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.94rem;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.journal-nav__dropdown-menu a:hover {
    background: var(--color-bg);
    color: var(--color-accent);
}

.journal-nav__dropdown-item--disabled {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.94rem;
    white-space: nowrap;
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Journal Nav Search --- */
.journal-nav__search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}
.journal-nav__search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s;
}
.journal-nav__search:focus-within .journal-nav__search-icon {
    color: var(--color-primary, #085E7D);
}
.journal-nav__search-input {
    border: 1px solid var(--color-border-light);
    border-radius: 20px;
    padding: 7px 14px 7px 32px;
    font-size: 0.82rem;
    width: 180px;
    outline: none;
    background: #f8fafc;
    color: var(--color-text);
    font-family: inherit;
    transition: width 0.25s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.journal-nav__search-input::placeholder {
    color: #94a3b8;
}
.journal-nav__search-input:focus {
    width: 300px;
    background: #fff;
    border-color: var(--color-primary, #085E7D);
    box-shadow: 0 0 0 3px rgba(8, 94, 125, 0.1);
}

/* --- Journal Nav Search Results Dropdown --- */
.journal-nav__search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 360px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
    z-index: 300;
    padding: 6px;
}

.journal-nav__search-item {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 6px;
    transition: background .1s;
}
.journal-nav__search-item:hover {
    background: #f1f5f9;
    text-decoration: none;
}

.journal-nav__search-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-nav__search-meta {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.journal-nav__search-empty {
    padding: 16px 12px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

/* --- Journal Announcement List --- */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.announcement-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
}

.announcement-item__date {
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--color-text-light);
    min-width: 90px;
    padding-top: 0.2rem;
}

.announcement-item__body h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.announcement-item__excerpt {
    margin: 0;
}

.announcement-item__readmore {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 0.4rem;
}

.announcement-item__readmore:hover {
    text-decoration: underline;
}

/* --- Journal Page Content --- */
.journal-page-content {
    max-width: 800px;
}

.journal-page-content h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.journal-page-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: #495057;
}

.editorial-board-members {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.editorial-board-members__item {
    display: block;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.eb-member-subtitle {
    display: block;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
    margin-top: 1px;
}

.eb-member-name {
    position: relative;
    display: inline-block;
}

.eb-member-name.author-inline__item--has-tip {
    cursor: pointer;
    border-bottom: 1px solid #999;
}

.eb-member-name.author-inline__item--has-tip:hover {
    color: var(--color-accent);
}

.eb-member-name:hover > .author-tooltip,
.eb-member-name.tooltip-active > .author-tooltip {
    display: block;
}

/* Editorial board tooltip: show to the right of the name */
.eb-member-name > .author-tooltip {
    left: calc(100% + 10px);
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
}

.eb-member-name > .author-tooltip::before {
    /* Arrow pointing left */
    top: 50%;
    bottom: auto;
    left: -8px;
    width: 14px;
    height: 14px;
    transform: translateY(-50%) rotate(45deg);
    border: none;
    border-left: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.eb-member-name > .author-tooltip::after {
    /* Invisible bridge to the left */
    top: 0;
    left: -10px;
    bottom: auto;
    right: auto;
    width: 10px;
    height: 100%;
}

/* EB tooltip repositioned above when overflowing viewport */
.eb-member-name > .author-tooltip.tip-above {
    left: 50%;
    right: auto;
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
}
.eb-member-name > .author-tooltip.tip-above::before {
    top: auto;
    bottom: -8px;
    left: var(--tip-arrow, 50%);
    width: 14px;
    height: 14px;
    transform: translateX(-50%) rotate(45deg);
    border: none;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.eb-member-name > .author-tooltip.tip-above::after {
    top: 100%;
    left: 0;
    bottom: auto;
    right: auto;
    width: 100%;
    height: 12px;
}

.journal-page-body {
    line-height: 1.7;
}

.journal-page-body p {
    margin-bottom: 0.75rem;
}

/* --- Issue Cards --- */
.card-grid--issues {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.issue-card {
    display: flex;
    flex-direction: column;
}

.issue-card .card-body h3 {
    font-size: 0.95rem;
}

/* --- Issue Grid (new layout) --- */
.issue-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.issue-grid__item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.issue-grid__item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.issue-grid__cover {
    flex-shrink: 0;
    width: 80px;
}

.issue-grid__cover img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.issue-grid__vol {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.1rem;
}

.issue-grid__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.issue-grid__year {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.issue-grid__special {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(8, 94, 125, 0.08);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.issue-grid__title {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.issue-grid__meta {
    font-size: 0.82rem;
    color: var(--color-text-light);
}

.issue-grid__sep {
    margin: 0 0.25rem;
}

/* --- Issue Detail Header --- */
.issue-detail-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.issue-detail-header__cover {
    flex-shrink: 0;
    width: 180px;
}

.issue-detail-header__cover img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.issue-detail-header__info {
    flex: 1;
    min-width: 0;
}

.issue-detail-header__info h2 {
    margin-top: 0;
    font-size: 1.35rem;
}

.issue-detail-header__title {
    font-size: 1.1rem;
    color: #555;
}

.issue-detail-header__desc {
    color: #666;
}
.issue-detail-header__issue-info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}
.issue-detail-header__issue-info-link:hover {
    text-decoration: underline;
}

/* --- Article Card (issue article list) --- */
.article-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
}

.article-card__title {
    margin: 0 0 0.3rem 0;
}

.article-card__title a {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 1.1em;
}

.article-card__title a:hover {
    color: var(--color-accent);
}

.article-card__authors {
    color: #666;
    font-size: 0.88rem;
    margin: 0.3rem 0;
}

.article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: #888;
    margin-top: 0.5rem;
}

.article-card__pdf {
    color: #e74c3c;
    font-weight: 600;
}

.article-card__pdf:hover {
    color: #c0392b;
}

/* --- Article Detail --- */
.section--article-detail {
    background-color: #ffffff;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
}

.article-detail {
    min-width: 0;
}

.article-detail__sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-height) + var(--journal-nav-height) + 1.5rem);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-card {
    background: #f8f9fa;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.sidebar-card__title {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text);
}

/* Sections nav in sidebar */
.sidebar-sections__list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: calc(100vh - var(--header-height) - 12rem);
    overflow-y: auto;
}

.sidebar-sections__item a {
    font-size: 0.84rem;
    color: #555;
    text-decoration: none;
    display: block;
    padding: 3px 0 3px 8px;
    border-left: 2px solid transparent;
    -webkit-transition: color 0.15s, border-color 0.15s;
    transition: color 0.15s, border-color 0.15s;
}

.sidebar-sections__item a:hover {
    color: var(--color-accent);
}

.sidebar-sections__item--h3 a {
    padding-left: 1.25rem;
}

.sidebar-sections__item--active a {
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    font-weight: 600;
}

/* Full text content area */
.article-detail__fulltext {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: #333;
}

.article-detail__fulltext h2 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    scroll-margin-top: calc(var(--header-height) + var(--journal-nav-height) + 1.5rem);
}

.article-detail__fulltext h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    scroll-margin-top: calc(var(--header-height) + var(--journal-nav-height) + 1.5rem);
}

.article-detail__fulltext p {
    margin-bottom: 1rem;
}

.article-detail__fulltext table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.92rem;
}

.article-detail__fulltext table th,
.article-detail__fulltext table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.article-detail__fulltext table th {
    background: #f5f5f5;
    font-weight: 600;
}

.article-detail__fulltext figure {
    margin: 1.5rem 0;
    text-align: center;
}

.article-detail__fulltext figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.article-detail__fulltext img {
    max-width: 100%;
    height: auto;
}

/* References block */
.article-detail__references {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light);
}

.article-detail__references h3 {
    margin: 0 0 1rem;
    scroll-margin-top: calc(var(--header-height) + var(--journal-nav-height) + 1.5rem);
}

.article-detail__references p,
.article-detail__references li {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #444;
}

.refs-toggle-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0;
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s;
}

.refs-toggle-btn:hover {
    color: var(--color-text);
}

/* Suggested article */
.article-detail__suggested {
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light);
}

.article-detail__suggested h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.suggested-article-card {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--color-bg-alt, #f8f9fa);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.suggested-article-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.suggested-article-card__title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.45;
    margin-bottom: 0.35rem;
}

.suggested-article-card__authors {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.suggested-article-card__meta {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted, #999);
}

.article-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    line-height: 1.4;
}
.article-badge--type {
    background: #fff;
    color: #6b7280;
    border: 1px solid #d1d5db;
}
.article-badge--access {
    background: #fff;
    color: #6b7280;
    border: 1px solid #d1d5db;
}
.article-badge--access svg {
    flex-shrink: 0;
}

.article-detail__title {
    margin-bottom: 0.75rem;
}

.article-detail h3 {
    scroll-margin-top: calc(var(--header-height) + var(--journal-nav-height) + 1.5rem);
}

/* Author list */
/* Authors - inline with tooltips */
.author-inline {
    margin: 0 0 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.author-inline__item {
    position: relative;
    display: inline-block;
    color: var(--color-text);
}

.author-inline__item--has-tip {
    cursor: pointer;
    border-bottom: 1px solid #999;
}

.author-inline__item--has-tip:hover {
    color: var(--color-primary);
}

/* Tooltip */
.author-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    padding: 12px 16px;
    min-width: 240px;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    max-width: 440px;
    z-index: 100;
    text-align: left;
    white-space: normal;
    line-height: 1.5;
    font-size: 0.88rem;
}

/* Invisible bridge between tooltip and author name so hover doesn't break */
.author-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

/* Arrow (rotated square so the tooltip border continues onto the arrow) */
.author-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: var(--tip-arrow, 50%);
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    z-index: 1;
}

.author-inline__item:hover > .author-tooltip {
    display: block;
}

.author-tooltip strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 4px;
    color: var(--color-text);
}

.author-tooltip__corresponding {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 6px;
}

.author-tooltip__affiliation {
    display: block;
    color: #666;
    margin-bottom: 6px;
}

.author-tooltip__bio {
    display: block;
    font-size: 0.82rem;
    color: #444;
    margin-bottom: 6px;
    line-height: 1.5;
    white-space: normal;
}

.author-tooltip__email {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: 4px;
    font-size: 0.84rem;
    white-space: nowrap;
}

.author-tooltip__email svg {
    flex-shrink: 0;
}

.author-tooltip__email:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.author-tooltip__orcid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    color: #a6ce39;
    text-decoration: none;
    font-size: 0.84rem;
}

.author-tooltip__orcid:hover {
    color: #82a52c;
    text-decoration: underline;
}

.author-tooltip__orcid img {
    vertical-align: middle;
    flex-shrink: 0;
}

.author-tooltip__profile {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: center;
}

.author-tooltip__profile:hover {
    text-decoration: underline;
}

/* Keywords */
.article-detail__keywords {
    margin-bottom: 1.5rem;
}

.keyword-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    font-size: 0.82rem;
    margin: 0.15rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.keyword-tag:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    text-decoration: none;
}

/* Abstract */
.article-detail__abstract {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #444;
}

/* Declarations */
.article-detail__declarations {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.article-detail__declarations h3 {
    scroll-margin-top: calc(var(--header-height, 80px) + 20px);
}
.article-detail__decl-item {
    margin-bottom: 1rem;
}
.article-detail__decl-item h4 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
}
.article-detail__decl-item p {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    line-height: 1.6;
}

/* Article info (now inside sidebar-card) */
.article-detail__info {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.article-detail__info h4 {
    margin: 0 0 0.8rem 0;
}

.sidebar-card .article-detail__info-row {
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    word-break: break-word;
}

.sidebar-card .article-detail__info-row a {
    color: var(--color-accent);
    word-break: break-all;
}

.article-detail__info-row {
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
}

.article-detail__info-row a {
    color: var(--color-accent);
}

/* Article stats */
.article-detail__stats {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.sidebar-card .article-detail__stats {
    gap: 1rem;
    margin-bottom: 0;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.article-detail__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
}

.article-detail__stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-accent);
}

.article-detail__stat-label {
    font-size: 0.78rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* How to Cite */
.article-detail__cite {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
}

.article-detail__cite h4 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.article-detail__cite-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.sidebar-card .article-detail__cite-text {
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 0;
}

/* Citation style tabs */
.cite-style-tabs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.6rem;
}

.cite-style-tab {
    background: transparent;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    -webkit-transition: all 0.15s;
    transition: all 0.15s;
    line-height: 1.5;
}

.cite-style-tab:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.cite-style-tab--active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.cite-style-tab--active:hover {
    color: #fff;
}

/* License */
.article-detail__license {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
}

.article-detail__license h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.sidebar-card .article-detail__cc {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
}

.sidebar-card .article-detail__cc p {
    font-size: 0.78rem;
}

.sidebar-card .article-detail__copyright {
    font-size: 0.82rem;
}

.article-detail__copyright {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.article-detail__cc {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.article-detail__cc img {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.article-detail__cc p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Article Info action buttons (Stats, Cite, License) */
.article-info-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border-light);
}

.article-info-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    -webkit-transition: all 0.15s ease;
    transition: all 0.15s ease;
    font-family: inherit;
}

.article-info-btn:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: #f0f7fa;
}

/* Article Info Popup Overlay */
.article-info-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 1rem;
}

.article-info-popup__content {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
}

.article-info-popup__header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.article-info-popup__title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text);
}

.article-info-popup__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    -webkit-transition: color 0.15s;
    transition: color 0.15s;
}

.article-info-popup__close:hover {
    color: #333;
}

#stats-popup .article-info-popup__content {
    max-width: 560px;
}

.article-info-popup .article-detail__stats {
    gap: 1rem;
    margin-bottom: 0;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Monthly stats chart */
.article-stats-chart {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-light);
}

.article-stats-chart__title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    text-align: center;
}

.article-stats-chart canvas {
    width: 100% !important;
    height: 220px !important;
}

.article-info-popup .article-detail__cc {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
}

.article-info-popup .article-detail__copyright {
    font-size: 0.85rem;
    text-align: center;
}

/* --- Service cards (Author Services) --- */
.service-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.service-card__header h2 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: 1rem;
}

.service-card__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.service-card__col h3 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.service-card__pricing {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light);
}

.service-card__pricing h3 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.service-card__pricing p {
    margin-bottom: 0;
}

.service-card__action {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Services top cards (Verify + Expert) --- */
.services-top-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.services-top-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-top-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.services-top-card p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin: 0 0 1rem;
    line-height: 1.6;
}

.services-top-card .btn {
    margin-top: auto;
    text-align: center;
}

/* Verify card - green theme */
.services-top-card--verify {
    background: #f0fdf4;
    border-color: #bbf7d0;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.services-top-card--verify:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.10);
}

.services-top-card--verify h3 {
    color: #166534;
}

/* Expert card - neutral gray theme */
.services-top-card--expert {
    background: #f9fafb;
    border-color: var(--color-border-light);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.services-top-card--expert:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.services-top-card--expert h3 {
    color: var(--color-text);
}

.expert-info {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border-light);
    width: 100%;
}

.expert-info__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.expert-info__credential {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.35rem;
}

.expert-info__detail {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* --- Services grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.services-grid__item {
    background: var(--color-bg-white);
    border: 1px dashed var(--color-border-light);
    border-radius: 12px;
    padding: 2rem 2rem 1.75rem;
    text-align: center;
    opacity: 0.65;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-grid__item:hover {
    opacity: 0.85;
}

.services-grid__item--active {
    opacity: 1;
    border: 1px solid var(--color-border-light);
    border-style: solid;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.services-grid__item--active:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(8, 94, 125, 0.10);
}

.services-grid__item .btn {
    margin-top: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    align-self: center;
}


.services-grid__item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.services-grid__item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

/* --- Proofreading expert --- */
.pr-expert {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    text-align: center;
}

.pr-expert h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.pr-expert__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.pr-expert__detail {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.pr-expert__credential {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 0.15rem;
}

/* --- Proofreading form --- */
.pr-form {
    margin-top: 1.5rem;
}

.pr-form__group {
    margin-bottom: 1.25rem;
}

.pr-form__group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.pr-form__group input[type="text"],
.pr-form__group input[type="email"],
.pr-form__group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-family: var(--font-main);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.pr-form__group textarea {
    resize: vertical;
}

.pr-form__group input[type="text"]:focus,
.pr-form__group input[type="email"]:focus,
.pr-form__group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.pr-form__group input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-family: var(--font-main);
    border: 1px dashed var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    cursor: pointer;
}

.pr-form__help {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

/* Order summary */
.pr-summary {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
}

.pr-summary h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.pr-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pr-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.pr-summary__row--total {
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border-light);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
}

.pr-summary__row--total span:last-child {
    color: var(--color-accent);
    font-size: 1.15rem;
}

.pr-summary__row--total small {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.pr-summary__coupon-badge {
    background: var(--color-accent);
    color: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pr-form__action {
    margin-top: 1.5rem;
    text-align: center;
}

/* Pricing display */
.pr-pricing {
    background: var(--color-bg);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.pr-pricing__label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 0.35rem;
}

.pr-pricing__amount {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pr-pricing__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
}

.pr-pricing__sub {
    font-size: 1rem;
    color: var(--color-text-light);
}

.pr-pricing__old {
    font-size: 1.25rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}

/* Coupon input row */
.pr-coupon-row {
    display: flex;
    gap: 0.5rem;
}

.pr-coupon-row input {
    flex: 1;
    max-width: 280px;
}

.btn--sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}

.pr-coupon-msg {
    font-size: 0.85rem;
    margin-top: 0.35rem;
    min-height: 1.2em;
}

.pr-coupon-msg--valid {
    color: #16a34a;
}

.pr-coupon-msg--invalid {
    color: #dc2626;
}

/* Payment info */
.pr-payment-info {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    background: var(--color-bg);
}

.pr-payment-info h3 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.pr-payment-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 1rem;
}

.pr-bank-table {
    width: 100%;
    border-collapse: collapse;
}

.pr-bank-table td {
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
}

.pr-bank-table tr:last-child td {
    border-bottom: none;
}

.pr-bank-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    width: 40%;
    color: var(--color-text);
}

/* Alerts */
.pr-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pr-alert--success {
    background: #dcfce7;
    border: 1px solid #16a34a;
    color: #166534;
}

.pr-alert--error {
    background: #fef2f2;
    border: 1px solid #dc2626;
    color: #991b1b;
}

.service-card--muted {
    text-align: center;
    border-style: dashed;
}

.service-card--muted h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.service-card--muted p {
    margin-bottom: 0;
    color: var(--color-text-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-area {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg-white);
        border-bottom: 1px solid var(--color-border-light);
        padding: 1rem;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-area.open {
        display: block;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav a,
    .nav-dropdown > span {
        padding: 0.75rem 1rem;
        display: block;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-dropdown > span::after {
        float: right;
        margin-left: auto;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0.15rem 0 0.15rem 0.75rem;
        min-width: 0;
        opacity: 1;
        visibility: hidden;
        transform: none;
        pointer-events: none;
        transition: none;
        display: none;
        border-left: 2px solid var(--color-border-light);
        margin-left: 1rem;
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
        visibility: visible;
        pointer-events: auto;
    }

    .dropdown-menu a {
        border-radius: 0;
        padding: 0.55rem 0.75rem;
        font-size: 0.88rem;
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    .dropdown-menu a:hover {
        padding-left: 0.75rem;
    }

    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        transform: none;
    }

    .top-bar__inner {
        font-size: 0.72rem;
        height: 38px;
    }

    .top-bar__right {
        gap: 0.75rem;
        padding-right: 0.25rem;
    }

    .top-bar__link {
        font-size: 0.72rem;
    }

    .top-bar__user-trigger {
        font-size: 0.72rem;
        padding: 0.25rem 0.4rem;
        min-height: 32px;
    }

    .top-bar__user-dropdown a {
        padding: 0.6rem 1rem;
        min-height: 40px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    /* Page header mobile */
    .page-header {
        min-height: 120px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header__logo {
        max-height: 32px;
    }

    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .card-grid--two {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .section {
        padding: 2.5rem 0;
    }

    .feature-grid,
    .feature-grid--three {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-right {
        text-align: center;
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }

    .footer-nav-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        text-align: center;
    }

    .service-card__columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card__header {
        text-align: center;
    }

    .service-card__header h2 {
        border-bottom: none;
        padding-bottom: 0;
    }

    .services-top-cards {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pr-coupon-row {
        flex-direction: column;
    }

    .pr-coupon-row input {
        max-width: none;
    }

    .pr-bank-table td:first-child {
        width: auto;
    }

    .pr-pricing__value {
        font-size: 1.4rem;
    }

    /* Policy image full-width on mobile */
    .policy-image {
        max-width: 100%;
    }

    /* Highlight box reduced padding */
    .highlight-box {
        padding: 1.25rem 1.5rem;
    }

    /* Verify table responsive */
    .verify-table td:first-child {
        width: auto;
    }

    /* Journal metrics responsive */
    .journal-metrics {
        gap: 0.75rem;
    }
    .journal-metrics__card {
        min-width: calc(50% - 0.75rem);
    }

    /* Journal detail responsive */
    .journal-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .journal-detail__cover {
        position: static;
        max-width: 180px;
        margin: 0 auto;
    }

    .journal-detail__meta {
        position: static;
        text-align: center;
    }

    .journal-meta {
        max-width: 400px;
        margin: 0 auto;
    }

    .journal-submit-btn {
        max-width: 400px;
        margin: 0 auto;
    }

    .journal-nav-container {
        gap: 0.5rem;
    }

    .journal-nav__brand {
        display: none;
    }

    .journal-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .journal-nav::-webkit-scrollbar {
        display: none;
    }

    .journal-nav__item {
        padding: 0.6rem 0.9rem;
        font-size: 0.82rem;
        min-height: 40px;
    }

    /* Journal nav dropdown: fixed positioning to escape overflow clip */
    .journal-nav__dropdown-menu {
        min-width: 180px;
        position: fixed;
        z-index: 9999;
    }

    .journal-nav__dropdown-menu a {
        padding: 0.6rem 1rem;
        min-height: 40px;
    }

    .journal-nav__search {
        display: none;
    }

    /* Search results responsive (in case search shown) */
    .journal-nav__search-results {
        width: calc(100vw - 2rem);
        max-width: 360px;
        right: -1rem;
    }

    .announcement-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Issue detail header responsive */
    .issue-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .issue-detail-header__cover {
        width: 140px;
    }

    /* Issue grid responsive */
    .issue-grid__item {
        gap: 1rem;
        padding: 1rem;
    }

    .issue-grid__cover {
        width: 60px;
    }

    /* Article card responsive */
    .article-card__meta {
        flex-direction: column;
        gap: 0.35rem;
    }

    /* Article detail responsive */
    .article-detail-layout {
        grid-template-columns: 1fr;
    }

    .article-detail__sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    /* Article stats centered */
    .article-detail__stats {
        justify-content: center;
    }

    /* Article badges centered */
    .article-detail__badges {
        justify-content: center;
    }

    /* Author tooltip: show on tap instead of hover */
    .author-tooltip {
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: auto;
        top: auto;
        transform: none;
        max-width: none;
        width: auto;
        z-index: 1000;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }

    .author-tooltip::before,
    .author-tooltip::after {
        display: none;
    }

    /* Override EB desktop positioning so tooltip stays on screen */
    .eb-member-name > .author-tooltip,
    .eb-member-name > .author-tooltip.tip-above {
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: auto;
        transform: none;
    }

    .author-inline__item:hover > .author-tooltip,
    .eb-member-name:hover > .author-tooltip {
        display: none;
    }

    .author-inline__item.tooltip-active > .author-tooltip,
    .eb-member-name.tooltip-active > .author-tooltip {
        display: block;
    }

    /* Journals split responsive */
    .journals-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .journals-split__left {
        text-align: center;
    }

    .journals-split__illustration {
        max-width: 220px;
    }

    .journals-split__header {
        text-align: center;
    }

    /* Sidebar: collapse to top on mobile */
    .sidebar-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sidebar-nav {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid var(--color-border-light);
        padding-bottom: 1rem;
    }

    .sidebar-nav nav {
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        gap: 0.25rem;
    }

    .sidebar-nav nav a {
        border-left: none;
        margin-left: 0;
        padding: 0.3rem 0.6rem;
        font-size: 0.78rem;
        border-radius: 4px;
        background: var(--color-bg);
    }

    .sidebar-nav nav a.active {
        background: var(--color-accent);
        color: #fff;
        border-left: none;
    }

    /* Minimal list responsive */
    .minimal-list__item {
        padding: 1rem;
        gap: 1rem;
    }

    .minimal-list__thumb {
        width: 48px;
        height: 64px;
    }

    /* Article info actions responsive */
    .article-info-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .article-info-btn {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    /* Section header always centered (already is) */
    .section-header {
        text-align: center;
    }

    /* Proofreading expert center on mobile */
    .pr-expert {
        text-align: center;
    }

    /* Journal home section header: stack on mobile */
    .journal-home-section__header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* Indexing badges center */
    .indexing-badges {
        justify-content: center;
    }

    .indexing-list {
        justify-content: center;
    }

    /* Subject areas center */
    .subject-areas {
        justify-content: center;
    }

    /* Announcement centered on mobile */
    .announcement-item {
        text-align: center;
    }

    .announcement-item__date {
        text-align: center;
    }
}

/* --- Article card badges (in article lists) --- */
.article-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.article-card__badges .article-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
}

/* --- Journal home metrics --- */
.journal-metrics {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.journal-metrics__card {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 140px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    text-align: center;
}
.journal-metrics__number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent);
}
.journal-metrics__number small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}
.journal-metrics__label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* --- Journal home section headings --- */
.journal-home-section {
    margin-top: 2.5rem;
}
.journal-home-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.journal-home-section__header h2 {
    margin: 0;
    font-size: 1.35rem;
}
.journal-home-section__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* --- Service Badge (Account) --- */
.account-order-card__service {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(8, 94, 125, 0.08);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.account-cert-card__service {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

/* --- Admin Service Badge --- */
.badge--service {
    background: #e0f2fe;
    color: #0369a1;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-direction: column;
    }

    /* Page header smaller on phones */
    .page-header {
        min-height: 100px;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    /* Hero smaller */
    .hero h1 {
        font-size: 1.4rem;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    /* Buttons stack on very small screens */
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    /* Journal detail cover smaller */
    .journal-detail__cover {
        max-width: 140px;
    }

    /* Journal meta smaller text */
    .journal-meta__value {
        font-size: 0.82rem;
    }

    /* Issue grid cover smaller */
    .issue-grid__cover {
        width: 50px;
    }

    /* Article detail stats wrap */
    .article-detail__stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .article-detail__stat {
        padding: 0.5rem 1rem;
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Verify form responsive */
    .verify-input-row {
        flex-direction: column;
    }

    .verify-input-row .btn {
        width: 100%;
    }

    /* Top bar simplify */
    .top-bar__sep {
        display: none;
    }

    .top-bar__right {
        gap: 0.5rem;
    }

    .lang-switcher a {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }

    /* Announcement items tighter */
    .announcement-item {
        padding: 1rem;
    }
}

/* --- Public Pagination --- */
.pub-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}
.pub-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.pub-pagination a,
.pub-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pub-pagination a:hover {
    background: var(--color-bg);
    border-color: var(--color-border);
}
.pub-pagination .active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.pub-pagination .disabled {
    color: #ccc;
    cursor: default;
    border-color: var(--color-border-light);
}
.pub-pagination .ellipsis {
    border: none;
    min-width: auto;
    padding: 0 0.25rem;
    color: #999;
}

/* Cookie Consent Banner — boxed popup */
.cookie-banner {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    max-width: 400px;
    width: calc(100% - 2.5rem);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 1.5px 6px rgba(0,0,0,.08);
    padding: 1.5rem;
    animation: cookieSlideUp .35s ease-out;
}
@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner__inner h3 {
    margin: 0 0 .5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}
.cookie-banner__inner p {
    margin: 0 0 1rem;
    font-size: .875rem;
    line-height: 1.55;
    color: #555;
}
.cookie-banner__inner a {
    color: var(--color-accent, #085E7D);
    text-decoration: underline;
}
.cookie-banner__inner a:hover {
    color: var(--color-accent-hover, #064d68);
}
.cookie-banner__accept {
    display: block;
    width: 100%;
    padding: .65rem 1rem !important;
    font-size: .9rem !important;
    border-radius: 8px;
    cursor: pointer;
}
@media (max-width: 480px) {
    .cookie-banner {
        right: .75rem;
        bottom: .75rem;
        max-width: none;
        width: calc(100% - 1.5rem);
        padding: 1.25rem;
    }
}
