/* ============================================================
   DigiContent — digicontent.in
   Orange / gold / white warm palette
   ============================================================ */

:root {
  /* Warm "dark" tones (headers, footer, strong text) — no blue */
  --navy-900: #7a3a06;   /* deep burnt orange (header/footer bg, headings) */
  --navy-800: #9c4a08;   /* rich orange-brown */
  --navy-700: #c0630f;   /* chocolate orange (links) */
  /* Primary action = orange */
  --orange-500: #ea7317;
  --orange-600: #cc5f0c;
  --orange-400: #f6923a;
  /* Accent = gold */
  --gold-500: #e0a82e;
  --gold-400: #f2c14e;
  /* Neutrals */
  --paper:    #fffaf3;   /* warm white background */
  --ink:      #3a2a1e;   /* warm dark brown text */
  --muted:    #8a7358;   /* warm muted */
  --line:     #f0e4d3;   /* warm border */
  --white:    #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, Segoe UI, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }

a { color: var(--navy-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-solid {
  background: var(--orange-500);
  color: var(--white);
  border-color: var(--orange-500);
}
.btn-solid:hover { background: var(--orange-600); border-color: var(--orange-600); }
.btn-outline {
  background: transparent;
  color: var(--orange-600);
  border-color: var(--orange-500);
}
.btn-outline:hover { background: var(--orange-500); color: var(--white); }
.btn-lg { padding: 0.8rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; text-align: center; border: none; }

/* ---------- Header ---------- */
.site-topwrap {
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header {
  background: var(--navy-900);
  border-bottom: 3px solid var(--gold-500);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--orange-500);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
}
.brand-text span { color: var(--gold-400); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: #d7dcea;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--gold-400); }
.site-nav .btn-outline { color: var(--white); border-color: var(--gold-400); }
.site-nav .btn-outline:hover { background: var(--gold-400); color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 80% -20%, rgba(242,193,78,0.35), transparent 55%),
    linear-gradient(160deg, var(--orange-600) 0%, var(--orange-500) 55%, var(--gold-500) 120%);
  color: var(--white);
  padding: 5rem 0 4.5rem;
  text-align: center;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-400);
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  color: #c4ccdf;
  font-size: 1.08rem;
}

/* ---------- Search form ---------- */
.search-form {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.search-form input[type="text"] {
  flex: 1;
  border: none;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
  font-family: var(--font-body);
  outline-offset: -2px;
}
.search-form select {
  border: none;
  border-left: 1px solid var(--line);
  padding: 0 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.search-form button {
  background: var(--orange-500);
  color: var(--white);
  border: none;
  padding: 0 1.8rem;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .15s;
}
.search-form button:hover { background: var(--orange-600); }

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.6); }
.hero .btn-outline:hover { background: var(--white); color: var(--navy-900); }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  text-align: center;
  padding: 1.6rem 1.25rem;
  gap: 1rem;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy-800);
}
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2rem;
  color: var(--navy-900);
}
.section-cta { margin-top: 2rem; text-align: center; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
  border-radius: 8px;
  padding: 1.6rem 1.4rem;
}
.info-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--navy-800); }
.info-card p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Resource cards ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.resource-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.4rem;
}
.resource-type {
  display: inline-block;
  background: var(--navy-800);
  color: var(--gold-400);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.7rem;
}
.resource-card h3, .result-item h3 { font-size: 1.12rem; color: var(--navy-900); margin-bottom: 0.25rem; }
.resource-author { font-size: 0.88rem; color: var(--muted); font-style: italic; margin-bottom: 0.5rem; }
.resource-desc { font-size: 0.92rem; color: var(--ink); margin-bottom: 0.7rem; }
.resource-cat {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  display: inline-block;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}
.step { text-align: center; padding: 1rem; }
.step-num {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--gold-500);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  border-radius: 50%;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.1rem; color: var(--navy-800); margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Auth pages ---------- */
.auth-section { padding: 4rem 0; }
.auth-container { max-width: 480px; }
.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
  border-radius: 10px;
  padding: 2.2rem 2rem;
}
.auth-card h1 { font-size: 1.8rem; color: var(--navy-900); margin-bottom: 0.4rem; }
.auth-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.auth-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 1rem 0 0.3rem;
  color: var(--navy-800);
}
.auth-form label small { font-weight: 400; color: var(--muted); }
.auth-form input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cfd4e0;
  border-radius: 6px;
  font-size: 0.98rem;
  font-family: var(--font-body);
}
.auth-form input:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
  border-color: var(--gold-500);
}
.auth-form .btn-block { margin-top: 1.5rem; padding: 0.8rem; font-size: 1rem; }
.auth-alt { margin-top: 1.3rem; text-align: center; font-size: 0.92rem; color: var(--muted); }

/* ---------- Two-column registration grid ---------- */
.auth-container-wide { max-width: 720px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.1rem;
  row-gap: 0.2rem;
}
.form-grid .field { min-width: 0; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .org-spacer { display: none !important; }
}

/* ---------- User type selector ---------- */
.type-selector {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}
.type-option {
  flex: 1;
  min-width: 100px;
}
.type-option input { display: none; }
.type-option span {
  display: block;
  text-align: center;
  padding: 0.55rem 0.4rem;
  border: 2px solid #cfd4e0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.type-option input:checked + span {
  border-color: var(--gold-500);
  background: #fdf7e3;
  color: var(--navy-900);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.auth-form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cfd4e0;
  border-radius: 6px;
  font-size: 0.98rem;
  font-family: var(--font-body);
  background: var(--white);
}
.auth-form select:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
  border-color: var(--gold-500);
}

/* ---------- Alerts ---------- */
.alert {
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.alert ul { margin-left: 1.1rem; }
.alert-error { background: #fdecec; border: 1px solid #f3b8b8; color: #8a1f1f; }
.alert-success { background: #eef8ee; border: 1px solid #b7dfb7; color: #1f6b2a; }

/* ---------- Search page ---------- */
.search-form-page { margin: 0 0 1.5rem; max-width: 100%; box-shadow: none; border: 1px solid var(--line); }
.results-count { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.4rem; }
.result-list { display: flex; flex-direction: column; gap: 1.1rem; }
.result-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
}
.result-meta { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.5rem; }
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-state h3 { color: var(--navy-800); margin-bottom: 0.5rem; }
.empty-state .btn { margin-top: 1rem; }

/* ---------- Dashboard ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}
.dash-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
}
.dash-card h3 { color: var(--navy-800); margin-bottom: 0.9rem; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.dash-table td { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.dash-table td:first-child { color: var(--muted); width: 40%; }
.dash-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.7rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #b9c1d6;
  margin-top: 2rem;
  border-top: 3px solid var(--gold-500);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 2.5rem 1.25rem 1.5rem;
}
.footer-brand strong {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.2rem;
}
.footer-brand p { font-size: 0.9rem; margin-top: 0.5rem; max-width: 420px; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: #b9c1d6; text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  padding-bottom: 1.4rem;
  font-size: 0.83rem;
  text-align: center;
}
.visitor-ip {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #8f99b3;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero { padding: 3.2rem 0 3rem; }
  .search-form { flex-direction: column; border-radius: 10px; }
  .search-form input[type="text"],
  .search-form select,
  .search-form button { width: 100%; padding: 0.85rem 1rem; }
  .search-form select { border-left: none; border-top: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; }
}

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

/* ============================================================
   Journals module
   ============================================================ */
.lead-text { color: var(--muted); max-width: 640px; margin-bottom: 1.6rem; }
.crumb { margin-bottom: 1rem; }
.crumb a { text-decoration: none; font-weight: 600; font-size: 0.9rem; }

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}
.journal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
  border-radius: 8px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}
.journal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.journal-card-head h3 { font-size: 1.15rem; line-height: 1.3; }
.journal-card-head h3 a { color: var(--navy-900); text-decoration: none; }
.journal-card-head h3 a:hover { color: var(--navy-700); }
.journal-meta { font-size: 0.88rem; color: var(--ink); margin-bottom: 0.25rem; }
.journal-meta strong { color: var(--muted); font-weight: 600; }

.access-pill {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #e9f6ec;
  color: #1f6b2a;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.journal-indexing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.7rem 0;
}
.idx-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: #eef0f4;
  color: #55607a;
  border: 1px solid #e0e3ea;
}
.idx-premier {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
  font-weight: 700;
}
.idx-none { color: var(--muted); }

.journal-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.9rem;
}
.article-count { font-size: 0.82rem; color: var(--muted); }

/* Journal detail */
.journal-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.journal-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy-900); }
.journal-desc { color: var(--ink); max-width: 720px; margin-bottom: 1.4rem; }
.journal-info-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 720px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.journal-info-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.93rem; }
.journal-info-table tr:last-child td { border-bottom: none; }
.journal-info-table td:first-child { width: 130px; color: var(--muted); font-weight: 600; }

.volume-block { margin-bottom: 1.8rem; }
.volume-title {
  font-size: 1.25rem;
  color: var(--navy-800);
  border-bottom: 2px solid var(--gold-500);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}
.issue-block { margin: 0 0 1.2rem 0; }
.issue-title { font-size: 1.02rem; color: var(--navy-700); margin-bottom: 0.5rem; }
.issue-year { color: var(--muted); font-weight: 400; font-size: 0.9rem; }

.article-list { list-style: none; }
.article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.article-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.article-title { font-weight: 600; color: var(--navy-900); font-size: 0.95rem; }
.article-authors { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.article-pages { font-size: 0.8rem; color: var(--muted); }
.pdf-btn { flex-shrink: 0; }
.pdf-missing { font-size: 0.8rem; color: var(--muted); flex-shrink: 0; }

@media (max-width: 480px) {
  .article-row { flex-direction: column; align-items: flex-start; }
}

.vol-label { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.issue-empty { color: var(--muted); font-size: 0.88rem; padding: 0.2rem 0 0.6rem; }

/* ============================================================
   Categories, subscriptions, accordion display
   ============================================================ */
.cat-pill {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: #e8eefb; color: #274b9f; padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap;
}
.trial-badge {
  font-size: 0.72rem; font-weight: 700; background: #fff4d6; color: #92600a;
  border: 1px solid #f0d488; padding: 0.18rem 0.6rem; border-radius: 999px; white-space: nowrap;
}
.subscribed-badge {
  font-size: 0.72rem; font-weight: 700; background: #e3f5e6; color: #1f6b2a;
  border: 1px solid #b7dfb7; padding: 0.18rem 0.6rem; border-radius: 999px; white-space: nowrap;
}

.cat-group { margin-bottom: 2.6rem; }
.cat-heading {
  font-size: 1.35rem; color: var(--navy-900); border-bottom: 2px solid var(--gold-500);
  padding-bottom: 0.4rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.7rem;
}

.my-access { margin-bottom: 1.6rem; font-size: 0.9rem; color: var(--muted); display:flex; flex-wrap:wrap; gap:0.4rem; align-items:center; }
.access-chip { font-size: 0.78rem; font-weight: 600; padding: 0.18rem 0.6rem; border-radius: 999px; }
.chip-trial { background: #fff4d6; color: #92600a; border: 1px solid #f0d488; }
.chip-sub   { background: #e3f5e6; color: #1f6b2a; border: 1px solid #b7dfb7; }

.access-note {
  background: #fdf6e3; border: 1px solid #f0d488; border-radius: 8px;
  padding: 1rem 1.2rem; margin-top: 1.4rem; font-size: 0.93rem; color: #5a4a1e;
}
.access-note a { color: var(--navy-700); font-weight: 600; }

/* Accordion volumes */
.volume-acc {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 0.9rem; overflow: hidden;
}
.volume-summary {
  display: flex; align-items: center; gap: 0.8rem; cursor: pointer;
  padding: 0.9rem 1.2rem; list-style: none; font-family: var(--font-display);
  border-left: 4px solid var(--gold-500); background: #fbfaf6;
}
.volume-summary::-webkit-details-marker { display: none; }
.volume-summary::before {
  content: '▸'; color: var(--gold-500); font-size: 0.9rem; transition: transform .15s;
}
.volume-acc[open] .volume-summary::before { transform: rotate(90deg); }
.vol-name { font-size: 1.1rem; color: var(--navy-800); font-weight: 600; }
.current-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--gold-500); color: var(--navy-900); padding: 0.12rem 0.5rem; border-radius: 4px;
}
.acc-count { margin-left: auto; font-size: 0.82rem; color: var(--muted); }
.volume-body { padding: 1rem 1.2rem 0.4rem; }

.pdf-locked {
  flex-shrink: 0; font-size: 0.82rem; color: #92600a; background: #fff4d6;
  border: 1px solid #f0d488; border-radius: 6px; padding: 0.3rem 0.7rem; white-space: nowrap;
}

/* Subscriptions table */
.row-expired { opacity: 0.55; }
.status-active { color: #1f6b2a; font-weight: 600; }
.status-expired { color: #8a1f1f; font-weight: 600; }

/* ===== Subject overview (journals by subject) ===== */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.subject-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.8rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(122,58,6,0.12);
  border-color: var(--orange-400);
}
.subject-icon {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--orange-500), var(--gold-500));
  color: var(--white);
  margin-bottom: 0.3rem;
}
.subject-icon svg { width: 40px; height: 40px; }
.subject-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-800); }
.subject-counts { font-size: 0.9rem; color: var(--muted); }
.subject-counts strong { color: var(--ink); }

/* Clickable resource / info card */
.info-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.info-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(122,58,6,0.10);
  border-color: var(--orange-400);
}
.info-card-cta {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orange-600);
}

/* ===== Header user badge + access tag ===== */
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.7rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 0.85rem;
}
.user-badge .user-org { color: var(--white); font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-tag {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.access-tag.tag-sub   { background: #e2f4e4; color: #1f7a34; }
.access-tag.tag-trial { background: #fff0d9; color: #c9700a; }

/* ===== Journals subject LISTING (count in front of category) ===== */
.subject-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.subject-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.subject-row:hover {
  border-color: var(--orange-400);
  box-shadow: 0 6px 18px rgba(122,58,6,0.10);
  transform: translateX(2px);
}
.subject-count {
  flex: 0 0 auto;
  min-width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(150deg, var(--orange-500), var(--gold-500));
  border-radius: 10px;
}
.subject-ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-600);
}
.subject-ico svg { width: 30px; height: 30px; }
.subject-name {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-800);
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.subject-articles { flex: 0 0 auto; color: var(--muted); font-size: 0.9rem; }
.subject-arrow { flex: 0 0 auto; color: var(--orange-500); font-size: 1.2rem; font-weight: 700; }

@media (max-width: 560px) {
  .subject-articles { display: none; }
  .user-badge .user-org { max-width: 120px; }
}

/* Article title as a view link */
a.article-view { color: var(--navy-800); text-decoration: none; }
a.article-view:hover { color: var(--orange-600); text-decoration: underline; }

/* ===== Top bar (organisation name above the menu) ===== */
.top-bar {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: .6rem;
  padding-bottom: .6rem;
  text-align: center;
}
.top-org {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--gold-400);
  white-space: normal;
  word-break: break-word;
}
@media (max-width: 640px) {
  .top-org { font-size: 1.2rem; }
}

/* ===== Customer usage report ===== */
.usage-form { display:flex; flex-wrap:wrap; gap:1rem; align-items:flex-end; margin:1.2rem 0 1.6rem; }
.usage-form label { display:flex; flex-direction:column; gap:.3rem; font-weight:600; font-size:.9rem; color:var(--ink); }
.usage-form input[type=date] { padding:.55rem .7rem; border:1px solid var(--line); border-radius:8px; font:inherit; background:var(--white); }
.usage-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1rem; }
.usage-card {
  background:var(--white); border:1px solid var(--line); border-radius:14px;
  padding:1.6rem 1.2rem; text-align:center;
}
.usage-num { display:block; font-family:var(--font-display); font-size:2.6rem; font-weight:700; color:var(--orange-600); line-height:1; }
.usage-label { display:block; margin-top:.5rem; color:var(--muted); font-size:.92rem; }

/* ===== Report head + print ===== */
.report-head { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; flex-wrap:wrap; margin-bottom:1rem; }
.report-customer, .report-date { margin:.1rem 0; color:var(--ink); font-size:.98rem; }
.report-table { background:var(--white); border-radius:12px; overflow:hidden; }
@media print {
  .no-print, .site-header, .top-bar, .site-footer { display:none !important; }
  body { background:#fff; }
  .section { padding:0 !important; }
  .usage-card { border:1px solid #ccc; }
  a[href]:after { content:""; }
}

/* ===== My subscriptions (dashboard) ===== */
.my-subs { display:flex; flex-direction:column; gap:.5rem; margin-top:.6rem; }
.my-sub-row {
  display:flex; justify-content:space-between; align-items:center; gap:.8rem;
  padding:.7rem .9rem; border:1px solid var(--line); border-radius:10px;
  background:var(--white); text-decoration:none; color:var(--ink);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.my-sub-row:hover { border-color:var(--orange-400); box-shadow:0 6px 16px rgba(122,58,6,.08); }
.my-sub-name { font-family:var(--font-display); font-weight:600; color:var(--navy-800); }
.my-sub-meta { display:flex; align-items:center; gap:.6rem; }
.my-sub-count { color:var(--muted); font-size:.86rem; }

.sub-heading { font-family:var(--font-display); color:var(--navy-800); margin-bottom:.8rem; font-size:1.15rem; }
.dash-articles { margin-top:.4rem; }

/* ===== Journal list (subscribed subject) ===== */
.journal-list { list-style:none; display:flex; flex-direction:column; gap:.5rem; margin-top:.4rem; }
.journal-list-row {
  display:flex; align-items:center; gap:1rem; flex-wrap:wrap;
  padding:.75rem 1rem; background:var(--white); border:1px solid var(--line); border-radius:10px;
}
.journal-list-row a[href] { text-decoration:none; color:var(--navy-800); }
.journal-list-row a[href]:hover { color:var(--orange-600); }
.journal-list-row .jl-pub { color:var(--muted); font-size:.9rem; flex:1 1 auto; }
.journal-list-row .jl-count { color:var(--muted); font-size:.86rem; }

/* Narrow container for auth/forms */
.container.narrow { max-width: 640px; }

/* ===== eBook grid (public books page) ===== */
.ebook-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1.2rem; margin-top:1rem; }
.ebook-card { display:flex; flex-direction:column; background:var(--white); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.ebook-cover { height:180px; background:linear-gradient(135deg,var(--gold-400),var(--orange-400)); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.ebook-cover img { width:100%; height:100%; object-fit:cover; }
.ebook-cover-fallback { color:#fff; font-weight:600; padding:1rem; text-align:center; font-family:var(--font-display); }
.ebook-body { padding:.9rem 1rem 1.1rem; display:flex; flex-direction:column; gap:.35rem; flex:1; }
.ebook-body h3 { font-size:1rem; margin:0; color:var(--navy-800); line-height:1.3; }
.ebook-author { color:var(--muted); font-size:.85rem; margin:0; }
.ebook-license { color:var(--gold-500); font-size:.78rem; margin:0; }
.ebook-actions { margin-top:auto; display:flex; gap:.5rem; padding-top:.5rem; }

/* ===== Subscribe / login gate card ===== */
.subscribe-card { background:var(--white); border:1px solid var(--line); border-radius:16px; padding:2.2rem 1.8rem; text-align:center; }
.subscribe-ico { font-size:2.6rem; line-height:1; margin-bottom:.6rem; }
.subscribe-actions { display:flex; gap:.7rem; justify-content:center; flex-wrap:wrap; margin-top:1.2rem; }
.subscribe-contact { margin:1rem 0; font-size:1.05rem; }
a.pdf-locked { text-decoration:none; color:var(--orange-600); font-weight:600; font-size:.82rem; white-space:nowrap; }
a.pdf-locked:hover { text-decoration:underline; }

/* ===== My Subscriptions cards ===== */
.subs-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1rem; margin-top:.6rem; }
.subs-card {
  display:block; background:var(--white); border:1px solid var(--line); border-radius:14px;
  padding:1.1rem 1.2rem; text-decoration:none; color:var(--ink);
  transition:border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.subs-card:hover { border-color:var(--orange-400); box-shadow:0 8px 20px rgba(122,58,6,.10); transform:translateY(-1px); }
.subs-card-head { display:flex; align-items:center; justify-content:space-between; gap:.6rem; margin-bottom:.5rem; }
.subs-card-name { font-family:var(--font-display); font-weight:700; color:var(--navy-800); font-size:1.08rem; }
.subs-card-meta { margin:.1rem 0; color:var(--muted); font-size:.88rem; }
.subs-card-valid { margin:.35rem 0 0; color:var(--ink); font-size:.9rem; }

/* ===== Impact Factor ===== */
.if-formula { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; margin:1.4rem 0; padding:1.2rem 1.4rem; background:var(--white); border:1px solid var(--line); border-radius:14px; font-family:var(--font-display); }
.if-formula > span:first-child { font-weight:700; color:var(--navy-800); }
.if-eq { font-size:1.6rem; color:var(--muted); }
.if-frac { display:inline-flex; flex-direction:column; text-align:center; }
.if-num { padding:0 .6rem .35rem; border-bottom:2px solid var(--navy-800); }
.if-den { padding:.35rem .6rem 0; }
.if-cta { margin:1.6rem 0; }
.if-value { color:var(--orange-600); }

/* ===== Certificate ===== */
.certificate { background:#fff; padding:0; }
.cert-border { border:3px double var(--gold-500); border-radius:8px; padding:2.6rem 2rem; text-align:center; background:linear-gradient(180deg,#fffdf8,#fff7ea); }
.cert-head { margin-bottom:1.4rem; }
.cert-mark { width:56px; height:56px; margin:0 auto .5rem; border-radius:12px; background:var(--navy-900); color:var(--gold-400); font-family:var(--font-display); font-weight:700; font-size:1.8rem; display:flex; align-items:center; justify-content:center; }
.cert-brand { font-family:var(--font-display); font-weight:700; font-size:1.4rem; color:var(--navy-900); }
.cert-sub { letter-spacing:.18em; text-transform:uppercase; font-size:.78rem; color:var(--muted); }
.cert-line { color:var(--ink); margin:.6rem 0; }
.cert-journal { font-family:var(--font-display); color:var(--navy-800); font-size:1.9rem; margin:.3rem 0; }
.cert-issn, .cert-pub { color:var(--muted); margin:.15rem 0; }
.cert-if { margin:1.4rem 0; }
.cert-if-label { display:block; letter-spacing:.1em; text-transform:uppercase; font-size:.8rem; color:var(--muted); }
.cert-if-value { display:block; font-family:var(--font-display); font-weight:700; font-size:3.4rem; color:var(--orange-600); line-height:1.1; }
.cert-if-5y { display:block; color:var(--ink); margin-top:.3rem; }
.cert-foot { display:flex; justify-content:space-around; gap:1rem; flex-wrap:wrap; margin-top:2rem; padding-top:1.2rem; border-top:1px solid var(--line); }
.cert-foot-col { text-align:center; }
.cert-value { font-weight:700; color:var(--navy-800); }
.cert-sign { font-family:var(--font-display); font-size:1.2rem; color:var(--navy-900); }
.cert-label { font-size:.75rem; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; margin-top:.2rem; }
.cert-verify { margin-top:1.4rem; font-size:.78rem; color:var(--muted); }
@media print { .site-header,.top-bar,.site-topwrap,.site-footer,.no-print { display:none !important; } .certificate { padding:0; } .cert-border { border-color:#caa53a; } }

/* Impact-factor auto-fetch bar */
.if-fetch-bar { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; margin-bottom:.8rem; padding:.7rem .9rem; background:#fff7ea; border:1px solid var(--gold-400); border-radius:10px; }
.if-fetch-bar .admin-hint { margin:0; }

/* ===== Indexed journals impact-factor table ===== */
.if-table-wrap { margin-top:1rem; overflow-x:auto; border:1px solid var(--line); border-radius:16px; box-shadow:0 10px 30px rgba(122,58,6,.06); background:var(--white); }
.if-table { width:100%; border-collapse:collapse; min-width:720px; }
.if-table thead th {
  background:linear-gradient(135deg,var(--navy-900),var(--navy-700));
  color:var(--gold-400); text-align:left; padding:1rem 1.1rem; font-family:var(--font-display);
  font-size:.85rem; letter-spacing:.03em; text-transform:uppercase; white-space:nowrap;
}
.if-table thead th.if-rank { text-align:center; width:52px; }
.if-table thead th.if-col-if, .if-table thead th.if-col-5y, .if-table thead th.if-col-year { text-align:center; }
.if-table tbody td { padding:.85rem 1.1rem; border-top:1px solid var(--line); vertical-align:middle; }
.if-table tbody tr:nth-child(even) { background:#fffaf3; }
.if-table tbody tr:hover { background:#fff2e0; }
.if-rank { text-align:center; color:var(--muted); font-weight:700; font-family:var(--font-display); }
.if-journal { min-width:220px; }
.if-jname { display:block; font-family:var(--font-display); font-weight:700; color:var(--navy-800); font-size:1.02rem; line-height:1.25; }
.if-jissn { display:block; color:var(--muted); font-size:.8rem; margin-top:.15rem; }
.if-subject-tag { display:inline-block; padding:.2rem .6rem; background:#f0e4d3; color:#7a3a06; border-radius:20px; font-size:.78rem; font-weight:600; white-space:nowrap; }
.if-col-year, .if-col-5y { text-align:center; color:var(--ink); }
.if-col-if { text-align:center; }
.if-badge {
  display:inline-block; min-width:64px; padding:.4rem .7rem; border-radius:10px;
  background:linear-gradient(135deg,var(--orange-500),var(--gold-500));
  color:#fff; font-family:var(--font-display); font-weight:700; font-size:1.15rem; line-height:1;
  box-shadow:0 3px 8px rgba(204,95,12,.25);
}
.if-cert-link { font-family:var(--font-display); font-weight:600; color:var(--orange-600); text-decoration:none; white-space:nowrap; }
.if-cert-link:hover { text-decoration:underline; }

/* Field help text under form inputs */
.field-help { display:block; margin-top:.3rem; color:var(--muted); font-size:.8rem; line-height:1.35; }
.field-help span { font-weight:600; color:var(--orange-600); }

/* ===== Star rating ===== */
.stars { position:relative; display:inline-block; font-size:1.05rem; line-height:1; letter-spacing:2px; white-space:nowrap; }
.stars-bg { color:#e2d3bb; }
.stars-fg { position:absolute; left:0; top:0; overflow:hidden; white-space:nowrap; color:#e8a723; }
.if-col-rating { text-align:center; }
.if-col-rating .stars { font-size:1rem; }

/* Certificate: stars, statement, method */
.cert-stars { margin:.4rem 0 1rem; text-align:center; }
.cert-stars .stars { font-size:1.9rem; letter-spacing:4px; }
.cert-stars-label { display:block; margin-top:.25rem; font-size:.8rem; color:var(--muted); letter-spacing:.06em; text-transform:uppercase; }
.cert-statement { max-width:560px; margin:1.2rem auto 0; color:var(--ink); font-size:.94rem; line-height:1.6; text-align:center; }
.cert-method-note { margin-top:1.1rem; font-size:.82rem; color:var(--navy-800); font-weight:600; }

/* ===== Magazines ===== */
.mag-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:1.4rem; margin-top:1.2rem; }
.mag-card { background:var(--white); border:1px solid var(--line); border-radius:14px; overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .15s ease, transform .1s ease; }
.mag-card:hover { box-shadow:0 12px 28px rgba(122,58,6,.12); transform:translateY(-2px); }
.mag-cover { aspect-ratio:3/4; background:#f3e9da; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.mag-cover img { width:100%; height:100%; object-fit:cover; }
.mag-cover-ph { font-size:3rem; opacity:.55; }
.mag-body { padding:.9rem 1rem 1.1rem; display:flex; flex-direction:column; gap:.35rem; flex:1; }
.mag-title { font-family:var(--font-display); font-size:1.02rem; font-weight:700; color:var(--navy-800); margin:0; line-height:1.25; }
.mag-issue { margin:0; color:var(--orange-600); font-size:.82rem; font-weight:600; }
.mag-pub { margin:0; color:var(--muted); font-size:.82rem; }
.mag-cat-tag { align-self:flex-start; padding:.15rem .55rem; background:#f0e4d3; color:#7a3a06; border-radius:20px; font-size:.72rem; font-weight:600; }
.mag-actions { margin-top:auto; padding-top:.6rem; display:flex; gap:.5rem; flex-wrap:wrap; }
.mag-none { color:var(--muted); font-size:.82rem; }

/* Magazine detail */
.mag-detail-head { display:flex; gap:1.6rem; flex-wrap:wrap; align-items:flex-start; }
.mag-detail-cover { flex:0 0 180px; aspect-ratio:3/4; background:#f3e9da; border-radius:12px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.mag-detail-cover img { width:100%; height:100%; object-fit:cover; }
.mag-detail-meta { flex:1; min-width:260px; }
.mag-year-head { font-family:var(--font-display); font-size:1.1rem; color:var(--navy-800); margin:1.6rem 0 .6rem; padding-bottom:.3rem; border-bottom:2px solid var(--gold-400); }

/* Import working overlay + progress */
.work-overlay { position:fixed; inset:0; background:rgba(30,15,4,.45); display:none; align-items:center; justify-content:center; z-index:9999; }
.work-overlay.on { display:flex; }
.work-box { background:var(--white); padding:1.6rem 2rem; border-radius:14px; display:flex; flex-direction:column; align-items:center; gap:.9rem; box-shadow:0 20px 50px rgba(0,0,0,.3); font-weight:600; color:var(--ink); }
.spinner { width:38px; height:38px; border:4px solid #f0e4d3; border-top-color:var(--orange-500,#e0761a); border-radius:50%; animation:spin .8s linear infinite; }
.spinner-sm { width:20px; height:20px; border-width:3px; display:inline-block; }
@keyframes spin { to { transform:rotate(360deg); } }
.prog-track { height:12px; background:#f0e4d3; border-radius:8px; overflow:hidden; }
.prog-fill { height:100%; background:linear-gradient(90deg,var(--gold-400,#e8b923),var(--orange-500,#e0761a)); width:0; transition:width .3s ease; }

/* Journal active/inactive bifurcation */
.sb-split { display:block; font-size:.68rem; opacity:.75; margin-top:1px; }
.inactive-divider td { background:#faf1e6; color:#8a5a2a; font-weight:600; font-size:.85rem; border-top:2px solid var(--gold-400,#e8b923); }
.row-inactive { opacity:.7; }

/* Browse subjects — big rounded boxes, two per row */
.subject-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:1.4rem; }
.subject-box { display:flex; align-items:center; gap:1.2rem; padding:1.7rem 1.9rem; background:var(--white);
  border:1px solid var(--line); border-radius:22px; text-decoration:none; color:inherit;
  transition:box-shadow .15s ease, transform .1s ease, border-color .15s ease; }
.subject-box:hover { box-shadow:0 14px 34px rgba(122,58,6,.13); transform:translateY(-3px); border-color:var(--gold-400,#e8b923); }
.subject-box-ico { width:56px; height:56px; flex:0 0 auto; color:var(--orange-600,#c85f13); }
.subject-box-ico svg { width:100%; height:100%; }
.subject-box-body { display:flex; flex-direction:column; gap:.25rem; }
.subject-box-name { font-family:var(--font-display); font-size:1.35rem; font-weight:700; color:var(--navy-800,#7a3a06); line-height:1.2; }
.subject-box-meta { color:var(--muted); font-size:.92rem; }
.subject-box-arrow { margin-left:auto; font-size:1.5rem; color:var(--gold-500,#d9a520); font-weight:700; }
@media (max-width:640px) { .subject-grid { grid-template-columns:1fr; } .subject-box { padding:1.4rem 1.5rem; } }
.browse-head { font-family:var(--font-display); font-size:1.5rem; color:var(--navy-800,#7a3a06); text-align:center; margin:.5rem 0 1.2rem; padding-bottom:.4rem; position:relative; }
.browse-head::after { content:""; display:block; width:56px; height:3px; background:var(--gold-400,#e8b923); margin:.5rem auto 0; border-radius:2px; }

/* Plagiarism report */
.plag-scores { display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; margin:0 0 1.6rem; }
.plag-score-card { border:1px solid var(--line); border-radius:18px; padding:1.6rem; text-align:center; background:var(--white); }
.plag-score-num { font-family:var(--font-display); font-size:2.6rem; font-weight:700; line-height:1; }
.plag-score-lbl { color:var(--muted); font-size:.9rem; margin-top:.4rem; }
.plag-score-band { margin-top:.6rem; font-weight:600; font-size:.85rem; }
.plag-high { border-color:#e3b4b4; background:#fdf2f2; } .plag-high .plag-score-num, .plag-high .plag-score-band { color:#c0392b; }
.plag-mid  { border-color:#ead9b0; background:#fdf8ec; } .plag-mid .plag-score-num,  .plag-mid .plag-score-band  { color:#b8860b; }
.plag-low  { border-color:#cfe0c9; background:#f4f9f1; } .plag-low .plag-score-num,  .plag-low .plag-score-band  { color:#5a8a3c; }
.plag-ok   { border-color:#c9e0d6; background:#f1f9f5; } .plag-ok .plag-score-num,   .plag-ok .plag-score-band   { color:#2e8b6f; }
.tag.plag-high { background:#fdf2f2; color:#c0392b; } .tag.plag-mid { background:#fdf8ec; color:#b8860b; }
.tag.plag-low { background:#f4f9f1; color:#5a8a3c; } .tag.plag-ok { background:#f1f9f5; color:#2e8b6f; }
.chk { display:block; font-weight:400; margin:.3rem 0; cursor:pointer; }
.chk input { margin-right:.5rem; }
@media (max-width:640px) { .plag-scores { grid-template-columns:1fr; } }

/* OthentiQ report — Red-Paper style */
.plag-report-head { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; flex-wrap:wrap;
  border-bottom:3px solid var(--orange-600,#c85f13); padding-bottom:1rem; margin-bottom:1.6rem; }
.plag-brand { font-family:var(--font-display); font-size:1.6rem; font-weight:800; color:var(--navy-800,#7a3a06); margin:0; }
.plag-h { font-family:var(--font-display); font-size:1.25rem; color:var(--navy-800,#7a3a06); margin:1.8rem 0 .8rem;
  border-bottom:1px solid var(--line); padding-bottom:.4rem; }
.plag-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.plag-sum-card { border-radius:12px; padding:1.4rem; text-align:center; }
.plag-sum-num { font-size:1.8rem; font-weight:800; }
.plag-sum-lbl { font-size:.85rem; font-weight:600; margin-top:.2rem; }
.plag-sum-card.plag-high { background:#fdecec; } .plag-sum-card.plag-high .plag-sum-num { color:#c0392b; }
.plag-sum-card.plag-blue { background:#e9eefb; } .plag-sum-card.plag-blue .plag-sum-num { color:#3a5bbf; }
.plag-sum-card.plag-green { background:#e9f6ec; } .plag-sum-card.plag-green .plag-sum-num { color:#2e8b57; }
.plag-two-col { display:grid; grid-template-columns:1fr 1fr; gap:1.6rem; }
.plag-meta { width:100%; border-collapse:collapse; }
.plag-meta th { text-align:left; padding:.45rem .6rem; width:45%; color:var(--muted); font-weight:600; vertical-align:top; border-bottom:1px solid var(--line); }
.plag-meta td { padding:.45rem .6rem; border-bottom:1px solid var(--line); word-break:break-word; }
.plag-mini-cards { display:flex; gap:.7rem; flex-wrap:wrap; }
.plag-mini { flex:1; min-width:120px; border:1px solid var(--line); border-radius:12px; padding:1rem; text-align:center; }
.plag-mini strong { display:block; font-size:1.5rem; } .plag-mini span { font-size:.8rem; color:var(--muted); }
.plag-class td:first-child { display:flex; align-items:center; gap:.5rem; }
.hl-dot { width:12px; height:12px; border-radius:3px; display:inline-block; }
.plag-legend { list-style:none; padding:0; margin:0; } .plag-legend li { display:flex; align-items:center; gap:.6rem; margin:.5rem 0; }
.hl-swatch { width:20px; height:14px; border-radius:3px; display:inline-block; }
.hl-identical, .hl-dot.hl-identical, .hl-swatch.hl-identical { background:#f8c9c9; }
.hl-minor, .hl-dot.hl-minor, .hl-swatch.hl-minor { background:#ffe1b0; }
.hl-para, .hl-dot.hl-para { background:#d9c9f0; }
.hl-omit, .hl-dot.hl-omit, .hl-swatch.hl-omit { background:#d8dde3; }
.plag-doc { line-height:1.9; background:var(--white); border:1px solid var(--line); border-radius:12px; padding:1.6rem; font-size:.98rem; }
.plag-doc .hl { padding:.05rem .1rem; border-radius:3px; text-decoration:none; color:inherit; }
.plag-doc a.hl { border-bottom:1px dotted #c0392b; }
.plag-doc a.hl:hover { filter:brightness(.95); }
@media (max-width:720px) { .plag-summary, .plag-two-col { grid-template-columns:1fr; } }
.plag-index-row { display:flex; gap:.7rem; flex-wrap:wrap; }
.plag-doc a.hl.hl-para, .plag-doc span.hl.hl-para { background:#e5d9f5; }

/* Pagination */
.pager { display:flex; gap:.35rem; flex-wrap:wrap; justify-content:center; align-items:center; margin:1.6rem 0; }
.pager-btn { display:inline-block; padding:.45rem .7rem; border:1px solid var(--line); border-radius:8px; text-decoration:none; color:var(--navy-800,#7a3a06); background:var(--white); font-size:.9rem; }
.pager-btn:hover { border-color:var(--gold-400,#e8b923); }
.pager-btn.is-active { background:var(--orange-600,#c85f13); color:#fff; border-color:var(--orange-600,#c85f13); }
.pager-gap { padding:0 .3rem; color:var(--muted); }
