:root {
  --navy-950: #06152f;
  --navy-900: #08204a;
  --navy-800: #0b2f70;
  --blue-700: #164ca8;
  --blue-600: #1f63d5;
  --blue-500: #3479ea;
  --blue-100: #e9f1ff;
  --blue-50: #f5f8ff;
  --gold: #f0a722;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #dfe7f2;
  --paper: #ffffff;
  --soft: #f4f7fc;
  --white: #ffffff;
  --success: #137a4a;
  --danger: #9f2d2d;
  --wine: var(--blue-600);
  --wine-dark: var(--navy-900);
  --wine-light: var(--blue-500);
  --shadow-sm: 0 8px 24px rgba(8, 32, 74, .08);
  --shadow: 0 24px 70px rgba(8, 32, 74, .15);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.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; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 10000; padding: 10px 14px; border-radius: 8px; color: var(--navy-900); background: white; }
.skip-link:focus { left: 10px; }

/* Topbar and navigation */
.topbar { color: rgba(255,255,255,.9); background: var(--navy-950); font-size: .78rem; }
.topbar-inner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-contact, .topbar-links { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.topbar a:hover { color: white; }
.topbar-welcome { color: #b8c8e6; }
.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(8,32,74,.08); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 260px; height: 74px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 12px 12px; border-radius: 9px; color: var(--navy-900); font-size: .86rem; font-weight: 800; transition: .2s ease; }
.main-nav a:hover, .main-nav a.nav-active { color: var(--blue-700); background: var(--blue-50); }
.main-nav .nav-cta { margin-left: 7px; padding-inline: 18px; color: white; background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); box-shadow: 0 10px 22px rgba(22,76,168,.22); }
.main-nav .nav-cta:hover { color: white; background: linear-gradient(135deg, var(--blue-500), var(--navy-800)); }
.menu-toggle { display: none; width: 46px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--navy-900); }

/* Reusable typography */
.eyebrow { margin: 0 0 12px; color: var(--blue-600); font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section-heading { max-width: 760px; margin-bottom: 40px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2, .page-title, .display-title { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.section-heading h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); }
.section-heading p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1.02rem; }
.lead { color: var(--muted); font-size: 1.08rem; }

.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: 10px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); box-shadow: 0 14px 30px rgba(22,76,168,.24); }
.btn-primary:hover { color: white; box-shadow: 0 18px 35px rgba(22,76,168,.32); }
.btn-secondary { color: var(--navy-900); border-color: rgba(22,76,168,.22); background: white; }
.btn-secondary:hover { border-color: var(--blue-500); }
.btn-light { color: var(--navy-900); background: white; }
.text-link { color: var(--blue-700); font-weight: 900; }

/* Home hero */
.hero { position: relative; overflow: hidden; color: white; background: linear-gradient(115deg, var(--navy-950), var(--navy-800) 60%, #1553b8); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 560px; height: 560px; right: -180px; top: -220px; border: 70px solid rgba(255,255,255,.05); }
.hero::after { width: 420px; height: 420px; left: -220px; bottom: -260px; border: 48px solid rgba(52,121,234,.18); }
.hero-grid { position: relative; z-index: 1; min-height: 650px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; padding-block: 72px; }
.hero .eyebrow { color: #a9c8ff; }
.hero h1 { margin: 0; max-width: 750px; color: white; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow) { max-width: 680px; color: rgba(255,255,255,.78); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-secondary { color: white; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.08); }
.hero-micro { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 34px; color: rgba(255,255,255,.78); font-size: .82rem; font-weight: 800; }
.hero-micro span::before { content: "✓"; margin-right: 7px; color: #8bd6b2; }
.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-cover-wrap { position: relative; width: min(390px, 85%); }
.hero-cover-wrap::before { content: ""; position: absolute; inset: 36px -34px -32px 38px; border-radius: 26px; background: rgba(255,255,255,.10); transform: rotate(6deg); }
.hero-cover { position: relative; z-index: 2; width: 100%; max-height: 520px; object-fit: contain; border-radius: 8px; box-shadow: 0 38px 90px rgba(0,0,0,.36); transform: rotate(-2deg); }
.hero-badge { position: absolute; z-index: 3; min-width: 170px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.26); border-radius: 14px; color: var(--navy-900); background: rgba(255,255,255,.96); box-shadow: 0 20px 42px rgba(0,0,0,.22); }
.hero-badge strong, .hero-badge span { display: block; }
.hero-badge strong { font-size: .86rem; }
.hero-badge span { color: var(--muted); font-size: .72rem; }
.hero-badge.one { left: -24px; top: 75px; }
.hero-badge.two { right: -18px; bottom: 78px; }

.feature-strip { position: relative; z-index: 2; margin-top: -34px; }
.feature-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.feature-item { padding: 24px 22px; border-right: 1px solid var(--line); }
.feature-item:last-child { border-right: 0; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--blue-500), var(--navy-800)); font-weight: 900; }
.feature-item h3 { margin: 0 0 5px; color: var(--navy-900); font-size: .98rem; }
.feature-item p { margin: 0; color: var(--muted); font-size: .79rem; }

/* Official banner */
.official-banner { padding: 66px 0 18px; }
.banner-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow-sm); }
.banner-frame img { width: 100%; height: auto; }

/* Cards and grids */
.about-grid, .spotlight-grid, .two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-panel { position: relative; overflow: hidden; min-height: 430px; padding: 42px; border-radius: var(--radius-lg); color: white; background: linear-gradient(145deg, var(--navy-950), var(--blue-700)); }
.about-panel::after { content: "S"; position: absolute; right: -10px; bottom: -120px; color: rgba(255,255,255,.06); font-family: Georgia, serif; font-size: 28rem; line-height: 1; }
.about-panel > * { position: relative; z-index: 1; }
.about-panel h3 { margin: 0 0 16px; font-family: Georgia, serif; font-size: 2.15rem; }
.about-panel p { color: rgba(255,255,255,.76); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.about-stat { padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.07); }
.about-stat strong { display: block; font-size: 1.35rem; }
.about-stat span { color: rgba(255,255,255,.67); font-size: .72rem; }
.check-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--success); font-size: .7rem; font-weight: 900; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; min-height: 330px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); transition: .22s ease; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(31,99,213,.34); box-shadow: var(--shadow); }
.service-card .number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: var(--blue-700); background: var(--blue-100); font-weight: 900; }
.service-card h3 { margin: 22px 0 10px; color: var(--navy-900); font-size: 1.18rem; }
.service-card p { color: var(--muted); font-size: .9rem; }
.service-card ul { margin: 18px 0 0; padding-left: 18px; color: var(--text); font-size: .84rem; }
.service-card li { margin: 7px 0; }
.service-card.featured { color: white; border-color: transparent; background: linear-gradient(145deg, var(--navy-900), var(--blue-700)); }
.service-card.featured h3, .service-card.featured p, .service-card.featured ul { color: white; }
.service-card.featured p, .service-card.featured ul { opacity: .8; }
.service-card.featured .number { color: var(--navy-900); background: white; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { padding: 26px; border-left: 4px solid var(--blue-600); border-radius: 0 16px 16px 0; background: white; box-shadow: var(--shadow-sm); }
.why-card h3 { margin: 0 0 8px; color: var(--navy-900); font-size: 1rem; }
.why-card p { margin: 0; color: var(--muted); font-size: .84rem; }

.process-section { color: white; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); }
.process-section .section-heading h2 { color: white; }
.process-section .section-heading p { color: rgba(255,255,255,.66); }
.process-section .eyebrow { color: #9fc2ff; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.process-step { position: relative; min-height: 220px; padding: 24px 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.055); }
.process-step:not(:last-child)::after { content: "→"; position: absolute; top: 32px; right: -13px; z-index: 2; color: #8eb5fa; font-weight: 900; }
.process-step .step-no { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-900); background: white; font-weight: 900; }
.process-step h3 { margin: 22px 0 8px; font-size: 1rem; }
.process-step p { margin: 0; color: rgba(255,255,255,.66); font-size: .82rem; }

.spotlight-cover { padding: 26px; border-radius: var(--radius-lg); background: linear-gradient(145deg, #eaf1ff, #ffffff); box-shadow: var(--shadow-sm); }
.spotlight-cover img { max-height: 570px; margin-inline: auto; object-fit: contain; border-radius: 7px; box-shadow: 0 28px 58px rgba(8,32,74,.22); }
.meta-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 26px; }
.meta-chip { padding: 7px 10px; border: 1px solid #cfe0ff; border-radius: 999px; color: var(--blue-700); background: var(--blue-50); font-size: .74rem; font-weight: 800; }

.publication-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.preview-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.preview-card-cover { height: 290px; display: grid; place-items: center; overflow: hidden; background: var(--soft); }
.preview-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.preview-card-cover.fallback { color: white; background: linear-gradient(145deg, var(--blue-700), var(--navy-950)); font-family: Georgia, serif; font-size: 3rem; }
.preview-card-body { padding: 22px; }
.preview-card-body h3 { margin: 8px 0; color: var(--navy-900); font-size: 1rem; line-height: 1.35; }
.preview-card-body p { margin: 0; color: var(--muted); font-size: .8rem; }
.type-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: var(--blue-700); background: var(--blue-100); font-size: .67rem; font-weight: 900; text-transform: uppercase; }

.cta-band { padding: 62px 0; color: white; background: linear-gradient(110deg, var(--blue-700), var(--navy-950)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.cta-band h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.cta-band p { margin: 0; color: rgba(255,255,255,.72); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; padding: 78px 0; color: white; background: linear-gradient(115deg, var(--navy-950), var(--navy-800)); }
.page-hero::after { content: ""; position: absolute; width: 450px; height: 450px; right: -190px; top: -210px; border: 55px solid rgba(255,255,255,.06); border-radius: 50%; }
.page-hero-inner { position: relative; z-index: 1; max-width: 850px; }
.page-hero .eyebrow { color: #a9c8ff; }
.page-hero h1 { margin: 0; color: white; font-family: Georgia, serif; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: -.035em; }
.page-hero p:not(.eyebrow) { max-width: 720px; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.breadcrumbs { margin-bottom: 18px; color: rgba(255,255,255,.68); font-size: .78rem; }
.breadcrumbs a { color: white; }

.content-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.content-card h2, .content-card h3 { color: var(--navy-900); }
.content-card h2 { margin-top: 0; font-family: Georgia, serif; font-size: 2rem; }
.content-card h3 { margin-top: 0; }
.content-card p:last-child { margin-bottom: 0; }
.value-grid, .guideline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.value-card span { display: inline-grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--blue-500), var(--navy-800)); font-weight: 900; }
.value-card h3 { margin: 18px 0 8px; color: var(--navy-900); }
.value-card p { margin: 0; color: var(--muted); font-size: .86rem; }

.service-detail-grid { display: grid; gap: 22px; }
.service-detail { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.service-detail .service-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px; color: white; background: linear-gradient(135deg, var(--blue-500), var(--navy-800)); font-size: 1.2rem; font-weight: 900; }
.service-detail h2 { margin: 0 0 8px; color: var(--navy-900); font-family: Georgia, serif; font-size: 1.8rem; }
.service-detail p { margin: 0; color: var(--muted); }
.service-detail ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px 24px; margin: 18px 0 0; padding-left: 18px; font-size: .86rem; }

.journal-profile { display: grid; grid-template-columns: 380px 1fr; gap: 58px; align-items: start; }
.journal-profile-cover { padding: 24px; border-radius: var(--radius-lg); background: var(--soft); box-shadow: var(--shadow-sm); }
.journal-profile-cover img { width: 100%; border-radius: 7px; box-shadow: 0 24px 54px rgba(8,32,74,.22); }
.journal-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.journal-fact { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.journal-fact span, .journal-fact strong { display: block; }
.journal-fact span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.journal-fact strong { margin-top: 3px; color: var(--navy-900); font-size: .9rem; }
.scope-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.scope-tags span { padding: 7px 10px; border-radius: 999px; color: var(--blue-700); background: var(--blue-100); font-size: .73rem; font-weight: 800; }

/* Forms */
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: start; }
.contact-card { padding: 30px; border-radius: var(--radius); color: white; background: linear-gradient(145deg, var(--navy-950), var(--blue-700)); box-shadow: var(--shadow); }
.contact-card h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 2rem; }
.contact-card p { color: rgba(255,255,255,.72); }
.contact-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-list a, .contact-list div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-list span, .contact-list strong { display: block; }
.contact-list span { color: rgba(255,255,255,.62); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list strong { margin-top: 3px; font-size: .92rem; }
.web-form { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; color: var(--navy-900); font-size: .8rem; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #ccd8e8; border-radius: 10px; color: var(--ink); background: white; outline: none; transition: .2s ease; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(52,121,234,.13); }
.form-help { margin: 8px 0 0; color: var(--muted); font-size: .72rem; }
.form-actions { margin-top: 20px; }
.form-status { min-height: 22px; margin: 10px 0 0; color: var(--blue-700); font-size: .8rem; font-weight: 800; }

/* Repository */
.repository-page-hero { padding: 70px 0; color: white; background: linear-gradient(115deg, var(--navy-950), var(--navy-800)); }
.repository-page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.repository-page-hero h1 { margin: 0; color: white; font-family: Georgia, serif; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; }
.repository-page-hero p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.repository-page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.repository-page-stat-card { padding: 28px; border: 1px solid rgba(255,255,255,.17); border-radius: 18px; background: rgba(255,255,255,.07); }
.repository-page-stat-card span, .repository-page-stat-card strong, .repository-page-stat-card small { display: block; }
.repository-page-stat-card span { color: #a9c8ff; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.repository-page-stat-card strong { margin: 12px 0 8px; font-family: Georgia, serif; font-size: 1.7rem; }
.repository-page-stat-card small { color: rgba(255,255,255,.65); }
.repository-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; }
.repository-heading { margin-bottom: 0; }
.repository-admin-link { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-900); background: white; font-size: .75rem; font-weight: 900; }
.repository-toolbar { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(180px,.6fr) minmax(180px,.6fr); gap: 12px; margin-top: 34px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.repository-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 0; }
.repository-summary p { margin: 0; color: var(--muted); font-size: .84rem; font-weight: 800; }
.repository-clear { border: 0; color: var(--blue-700); background: transparent; font-size: .78rem; font-weight: 900; }
.repository-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.repository-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.repository-cover { position: relative; height: 320px; overflow: hidden; background: linear-gradient(145deg, var(--blue-700), var(--navy-950)); }
.repository-cover-placeholder { position: absolute; inset: 0; display: grid; place-content: center; padding: 22px; color: white; text-align: center; }
.repository-cover-placeholder span { display: block; font-family: Georgia, serif; font-size: 3rem; font-weight: 800; }
.repository-cover-placeholder small { display: block; margin-top: 8px; opacity: .72; }
.repository-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: white; }
.repository-card-body { flex: 1; display: flex; flex-direction: column; padding: 22px; }
.repository-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.repository-type-badge, .repository-featured { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.repository-type-badge { color: var(--blue-700); background: var(--blue-100); }
.repository-featured { color: #7a5100; background: #fff2cf; }
.repository-card h3 { margin: 13px 0 7px; color: var(--navy-900); font-family: Georgia, serif; font-size: 1.15rem; line-height: 1.3; }
.repository-author, .repository-meta, .repository-description { margin: 0; }
.repository-author { color: var(--text); font-size: .82rem; font-weight: 800; }
.repository-meta { margin-top: 6px; color: var(--muted); font-size: .74rem; }
.repository-description { display: -webkit-box; overflow: hidden; margin-top: 13px; color: var(--muted); font-size: .82rem; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.repository-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.repository-details-button, .repository-access-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 9px; font-size: .75rem; font-weight: 900; }
.repository-details-button { color: var(--navy-900); border: 1px solid var(--line); background: white; }
.repository-access-button { color: white; border: 1px solid transparent; background: var(--blue-700); }
.repository-empty { padding: 50px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.publication-dialog {
  width: min(1040px, calc(100% - 32px));
  height: min(88dvh, 850px);
  max-height: min(88vh, 850px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(185,204,234,.75);
  border-radius: 24px;
  background: white;
  box-shadow: 0 34px 90px rgba(0,0,0,.30);
}
.publication-dialog::backdrop { background: rgba(6,21,47,.76); backdrop-filter: blur(3px); }
.publication-dialog[open] { animation: publication-dialog-in .18s ease-out; }
@keyframes publication-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8,32,74,.12);
  border-radius: 50%;
  color: white;
  background: var(--navy-900);
  box-shadow: 0 10px 25px rgba(6,21,47,.22);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.dialog-close:hover { background: var(--blue-700); transform: translateY(-1px); }
.publication-dialog #publication-dialog-content { height: 100%; min-height: 0; }
.dialog-publication-layout {
  display: grid;
  grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
.dialog-cover-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 34px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 15%, rgba(71,134,255,.17), transparent 34%),
    linear-gradient(155deg, #f7faff 0%, #e9f0fb 100%);
}
.dialog-cover-panel .repository-cover {
  width: min(100%, 330px);
  height: auto;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(8,32,74,.10);
  border-radius: 18px;
  box-shadow: 0 24px 55px rgba(6,21,47,.22);
}
.dialog-cover-panel .repository-cover img { object-fit: contain; }
.dialog-publication-copy {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
}
.dialog-scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  padding: 48px 44px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.dialog-publication-header { padding-right: 44px; }
.dialog-publication-copy h2 {
  margin: 14px 0 8px;
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.dialog-author { margin: 0; color: var(--muted); font-size: 1rem; }
.dialog-author strong { color: var(--navy-800); font-weight: 800; }
.dialog-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
}
.dialog-metadata div {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #dce7f6;
  border-radius: 13px;
  background: #f5f8fd;
}
.dialog-metadata dt { color: var(--blue-700); font-size: .64rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.dialog-metadata dd { margin: 4px 0 0; color: var(--navy-900); font-size: .86rem; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.dialog-description { margin: 24px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.75; }
.dialog-keywords { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 0; }
.dialog-keywords span { padding: 6px 10px; border-radius: 999px; color: var(--blue-700); background: var(--blue-100); font-size: .69rem; font-weight: 800; }
.dialog-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 18px 44px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.98);
  box-shadow: 0 -10px 24px rgba(8,32,74,.07);
}
.dialog-repository-note { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.dialog-access { flex: 0 0 auto; margin: 0; white-space: nowrap; }

/* Footer */
.site-footer { color: #c6d2e6; background: var(--navy-950); }
.footer-main { display: grid; grid-template-columns: 1.4fr .7fr .8fr 1fr; gap: 42px; padding: 62px 0 42px; }
.footer-brand img { width: 260px; height: 88px; object-fit: contain; filter: drop-shadow(0 3px 9px rgba(71,134,255,.26)); }
.footer-brand-wrap p { max-width: 370px; color: #98a9c4; font-size: .85rem; }
.footer-main h3 { margin: 0 0 14px; color: white; font-size: .88rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-main a, .footer-main span { display: block; margin: 9px 0; color: #aebbd0; font-size: .82rem; }
.footer-main a:hover { color: white; }
.footer-bottom { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(255,255,255,.10); color: #8495af; font-size: .76rem; }
.footer-bottom a { color: #c5d4ec; }

@media (max-width: 1060px) {
  .brand img { width: 220px; }
  .main-nav a { padding-inline: 8px; font-size: .8rem; }
  .hero-grid, .about-grid, .spotlight-grid, .two-column, .form-layout, .repository-page-hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .hero-visual { min-height: 560px; }
  .feature-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: 0; }
  .feature-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-grid, .repository-grid, .publication-preview-grid, .value-grid, .guideline-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-step::after { display: none; }
  .journal-profile { grid-template-columns: 320px 1fr; }
  .footer-main { grid-template-columns: 1.2fr .8fr .8fr; }
  .footer-brand-wrap { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .topbar-links { display: none; }
  .menu-toggle { display: block; }
  .site-header { top: 0; }
  .header-inner { min-height: 78px; }
  .brand img { width: 205px; height: 64px; }
  .main-nav { position: absolute; top: 78px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 20px 22px; border-bottom: 1px solid var(--line); background: white; box-shadow: 0 24px 45px rgba(8,32,74,.13); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; }
  .main-nav .nav-cta { margin: 5px 0 0; text-align: center; }
  .hero-grid { gap: 34px; padding-block: 58px 76px; }
  .service-grid, .why-grid, .value-grid, .guideline-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .service-detail ul { grid-template-columns: 1fr; }
  .journal-profile { grid-template-columns: 1fr; }
  .journal-profile-cover { max-width: 390px; }
  .repository-toolbar { grid-template-columns: 1fr 1fr; }
  .repository-search-wrap { grid-column: 1 / -1; }
  .dialog-publication-layout { grid-template-columns: minmax(240px, 34%) minmax(0, 1fr); }
  .dialog-cover-panel { padding: 38px 26px; }
  .dialog-scroll-area { padding: 42px 34px 26px; }
  .dialog-footer { padding-inline: 34px; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .footer-brand-wrap { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 66px 0; }
  .topbar-inner { min-height: 36px; }
  .topbar-contact { gap: 12px; }
  .topbar-contact a:first-child { display: none; }
  .hero h1 { font-size: 3.05rem; }
  .hero-visual { min-height: 450px; }
  .hero-cover-wrap { width: 280px; }
  .hero-badge { min-width: 140px; padding: 10px; }
  .hero-badge.one { left: -2px; top: 55px; }
  .hero-badge.two { right: 0; bottom: 52px; }
  .feature-strip { margin-top: -20px; }
  .feature-strip-grid, .service-grid, .why-grid, .process-grid, .publication-preview-grid, .value-grid, .guideline-grid, .footer-main, .form-grid, .repository-grid, .repository-toolbar, .journal-facts { grid-template-columns: 1fr; }
  .feature-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-item:last-child { border-bottom: 0; }
  .about-panel { padding: 28px; }
  .about-stats { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail .service-icon { width: 58px; height: 58px; }
  .cta-inner, .repository-heading-row, .repository-summary, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .page-hero { padding: 64px 0; }
  .form-field.full, .repository-search-wrap { grid-column: auto; }
  .web-form, .content-card { padding: 22px; }
  .repository-cover { height: 380px; }
  .publication-dialog { width: calc(100% - 16px); height: calc(100dvh - 16px); max-height: 94vh; overflow: hidden; border-radius: 18px; }
  .dialog-publication-layout { display: flex; flex-direction: column; height: 100%; min-height: 0; }
  .dialog-cover-panel { flex: 0 0 auto; min-height: 0; max-height: 34vh; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
  .dialog-cover-panel .repository-cover { width: min(170px, 45vw); }
  .dialog-publication-copy { flex: 1 1 auto; min-height: 0; }
  .dialog-scroll-area { padding: 28px 20px 22px; }
  .dialog-footer { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  .dialog-access { width: 100%; white-space: normal; text-align: center; }
  .dialog-publication-header { padding-right: 34px; }
  .dialog-publication-copy h2 { font-size: 2rem; }
  .dialog-metadata { grid-template-columns: 1fr; }
  .dialog-close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; }
  .footer-main { gap: 26px; }
  .footer-brand img { width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Final brand refinements */
.footer-brand { display: inline-flex; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.96); }
.publication-preview-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 340px)); justify-content: center; }


/* Bibliographic portfolio notice */
.repository-disclaimer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid #b9ccea;
  border-left: 5px solid var(--blue-700);
  border-radius: 16px;
  background: #f3f7fd;
  box-shadow: var(--shadow-sm);
}
.repository-disclaimer-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue-700);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 900;
}
.repository-disclaimer h3 {
  margin: 0 0 5px;
  color: var(--navy-900);
  font-size: 1rem;
}
.repository-disclaimer p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.65;
}
.dialog-repository-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--blue-700);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  background: var(--soft);
  font-size: .74rem;
  line-height: 1.55;
}
@media (max-width: 620px) {
  .repository-disclaimer { grid-template-columns: 1fr; padding: 18px; }
}

/* Subject classification and category sections */
.repository-category-browser {
  margin-top: 30px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 0%, rgba(52,121,234,.10), transparent 30%),
    linear-gradient(145deg, #ffffff, #f7faff);
  box-shadow: var(--shadow-sm);
}
.repository-category-browser-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.repository-category-browser-heading .eyebrow { margin-bottom: 5px; }
.repository-category-browser-heading h3 { margin: 0; color: var(--navy-900); font-family: Georgia, serif; font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
.repository-category-browser-heading p:last-child { max-width: 760px; margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.repository-category-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.repository-category-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid #dce7f6;
  border-radius: 14px;
  color: var(--navy-900);
  text-align: left;
  background: white;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.repository-category-card:hover { transform: translateY(-2px); border-color: #9dbbeb; box-shadow: 0 12px 25px rgba(8,32,74,.10); }
.repository-category-card.is-active { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(31,99,213,.10); }
.repository-category-code,
.repository-category-heading-code {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--blue-600), var(--navy-800));
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 8px 18px rgba(22,76,168,.20);
}
.repository-category-code { width: 54px; height: 54px; border-radius: 13px; font-size: .68rem; }
.repository-category-card-copy { min-width: 0; }
.repository-category-card-copy strong,
.repository-category-card-copy small { display: block; }
.repository-category-card-copy strong { overflow: hidden; color: var(--navy-900); font-size: .78rem; line-height: 1.3; }
.repository-category-card-copy small { margin-top: 4px; color: var(--muted); font-size: .68rem; }

.repository-toolbar { grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(170px, .65fr)); }
.repository-grid { display: flex; flex-direction: column; gap: 58px; }
.repository-category-section { scroll-margin-top: 110px; }
.repository-category-heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
}
.repository-category-heading-code { width: 64px; height: 64px; border-radius: 16px; font-size: .76rem; }
.repository-category-heading-copy { min-width: 0; }
.repository-category-kicker { margin: 0 0 2px; color: var(--blue-700); font-size: .63rem; font-weight: 900; letter-spacing: .10em; text-transform: uppercase; }
.repository-category-heading h3 { margin: 0; color: var(--navy-900); font-family: Georgia, serif; font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.15; }
.repository-category-heading-copy > p:last-child { max-width: 780px; margin: 6px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.repository-category-count { align-self: center; padding: 8px 12px; border: 1px solid #ccdcf3; border-radius: 999px; color: var(--navy-900); background: white; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.repository-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.dialog-metadata .dialog-metadata-wide { grid-column: 1 / -1; background: linear-gradient(135deg, #edf4ff, #f8fbff); }

@media (max-width: 1060px) {
  .repository-category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repository-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repository-search-wrap { grid-column: 1 / -1; }
  .repository-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .repository-category-browser { padding: 20px 16px; }
  .repository-category-cards,
  .repository-toolbar,
  .repository-category-grid { grid-template-columns: 1fr; }
  .repository-search-wrap { grid-column: auto; }
  .repository-category-heading { grid-template-columns: 52px minmax(0, 1fr); align-items: start; padding: 16px; }
  .repository-category-heading-code { width: 52px; height: 52px; border-radius: 13px; }
  .repository-category-count { grid-column: 1 / -1; justify-self: start; }
  .repository-grid { gap: 44px; }
}


/* Peer review infographic on the For Authors page */
.peer-review-figure {
  margin: 0 0 34px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.peer-review-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.author-process-grid {
  color: white;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
}
@media (max-width: 620px) {
  .peer-review-figure { padding: 6px; border-radius: 16px; }
  .peer-review-figure img { border-radius: 10px; }
  .author-process-grid { padding: 18px; border-radius: 18px; }
}
