/* ====== Brand Typography & @font-face ====== */
@font-face {
  font-family: 'Liberation Serif';
  src: url('/publicacion/assets/fonts/LiberationSerif-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Liberation Serif';
  src: url('/publicacion/assets/fonts/LiberationSerif-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans';
  src: url('/publicacion/assets/fonts/NotoSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans';
  src: url('/publicacion/assets/fonts/NotoSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  /* Color Palette - Premium Editorial */
  --rted-ink: #111827;
  --rted-ink-soft: #374151;
  --rted-muted: #6b7280;
  --rted-line: #cbd5e1;
  --rted-line-soft: #e2e8f0;
  --rted-soft: #f8fafc;
  --rted-panel: #ffffff;
  --rted-brand: #1e3a5f;
  --rted-brand-soft: #2d5a8f;
  --rted-brand-tint: #ecf3fa;
  --rted-maroon: #581c2d;
  --rted-gold: #b45309;
  --rted-gold-soft: #d97706;
  --rted-gold-tint: #fef3c7;
  --rted-green: #059669;
  --rted-green-tint: #ecfdf5;
  --rted-amber: #b45309;
  --rted-amber-tint: #fef3c7;
  --rted-rose: #dc2626;
  --rted-rose-tint: #fef2f2;
  
  /* Layout & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(30, 58, 95, 0.08), 0 8px 10px -6px rgba(30, 58, 95, 0.05);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #f7f9fb 0%, #f1f4f8 40%, #e8edf3 100%);
  color: var(--rted-ink);
  font-family: 'Noto Sans', Inter, system-ui, -apple-system, sans-serif;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a {
  color: #2b6cb0;
  text-decoration: none;
  transition: color 150ms ease, text-decoration 150ms ease;
}
a:hover {
  color: var(--rted-brand-soft);
  text-decoration: underline;
}

.wrap,
.rted-author-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

/* ====== Masthead (Navbar Style) ====== */
.mast,
.rted-author-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  margin-bottom: 36px;
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  transition: transform 200ms ease;
}

.mast-id,
.rted-author-topid {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.mast-wordmark {
  flex: 0 0 auto;
  display: block;
  transition: transform 150ms ease;
}
.mast-wordmark:hover {
  transform: scale(1.02);
}

.mast-wordmark img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 600px) {
  .mast-wordmark img {
    height: 38px;
  }
}

.brand,
.rted-author-brand {
  color: var(--rted-brand);
  font-family: 'Liberation Serif', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.issn,
.rted-author-kicker {
  color: var(--rted-muted);
  font-size: 13px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.muted,
.foot {
  color: var(--rted-muted);
  font-size: 14px;
}

/* ====== Verified Seal (Premium Credly-style Badge) ====== */
.seal,
.rted-author-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rted-green-tint) 0%, #d1fae5 100%);
  color: #047857;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.seal:hover,
.rted-author-status:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.12);
  text-decoration: none;
}

.seal::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/><polyline points='22 4 12 14.01 9 11.01'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

.rted-author-status::before {
  content: "↗";
  font-weight: 700;
}

/* ====== Grid & Layout ====== */
.hero,
.rted-author-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.panel,
.rted-author-panel,
.rted-side-panel {
  background: var(--rted-panel);
  border: 1px solid var(--rted-line-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: box-shadow 300ms ease;
}

.panel,
.rted-author-panel {
  padding: 44px;
  border-top: 5px solid var(--rted-brand);
}

.label,
.rted-label {
  color: var(--rted-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1 {
  margin: 12px 0 16px;
  font-family: 'Liberation Serif', Georgia, Times New Roman, serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--rted-ink);
}

h2 {
  margin: 36px 0 16px;
  font-family: 'Liberation Serif', Georgia, Times New Roman, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rted-ink);
}

.rted-authors-print {
  margin: 0 0 6px;
  color: var(--rted-ink-soft);
  font-size: 18px;
  line-height: 1.5;
}

.rted-corresponding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rted-author-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rted-brand-tint);
  color: var(--rted-brand);
  border: 1px solid rgba(31, 63, 87, 0.18);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.rted-author-tag::before {
  content: "\2709";
  font-size: 12px;
}

.rted-coauthors-print {
  margin: 0 0 28px;
  color: var(--rted-muted);
  font-size: 15px;
  line-height: 1.55;
}

.rted-coauthors-label {
  font-weight: 700;
  color: var(--rted-ink-soft);
  margin-right: 6px;
}

/* ====== Metadata Grid ====== */
.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.meta > div {
  min-width: 0;
  background: linear-gradient(180deg, var(--rted-soft) 0%, #f1f5f9 100%);
  border: 1px solid var(--rted-line-soft);
  border-radius: 12px;
  padding: 16px 20px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.meta > div:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.value {
  margin-top: 6px;
  font-weight: 700;
  overflow-wrap: anywhere;
  color: var(--rted-brand);
  font-size: 15px;
}

.abstract {
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
}

.doi {
  color: #1e40af;
  font-weight: 700;
  border-bottom: 1px dashed rgba(30, 64, 175, 0.4);
}
.doi:hover {
  color: #1d4ed8;
  border-bottom-style: solid;
}

/* Disclosure details component */
details {
  border: 1px solid var(--rted-line-soft);
  border-radius: 12px;
  background: var(--rted-soft);
  padding: 16px 20px;
  margin: 24px 0;
  transition: background-color 200ms ease;
}
details[open] {
  background: #fff;
  border-color: var(--rted-line);
}
details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rted-gold);
  outline: none;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary::after {
  content: "→";
  font-family: monospace;
  font-size: 16px;
  transition: transform 200ms ease;
}
details[open] summary::after {
  transform: rotate(90deg);
}

/* ====== Side Panel Badge Preview ====== */
.badge-img {
  display: block;
  width: 100%;
  border: 1px solid var(--rted-line-soft);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.badge-img:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-lg);
}

.rted-side-panel {
  padding: 28px;
  border-top: 4px solid var(--rted-gold);
}
.rted-side-panel .badge-img {
  margin-top: 16px;
}
.rted-side-panel p.foot {
  margin-top: 16px;
  line-height: 1.5;
  font-size: 13px;
}

/* ====== Buttons & Toolbars ====== */
.toolbar,
.rted-cite-tabs,
.rted-cite-downloads,
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar {
  margin-top: 24px;
}

.toolbar a,
.toolbar button,
.rted-cite-tabs button,
.rted-cite-downloads a,
.rted-cite-copy,
button,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 10px;
  background: #ffffff;
  color: var(--rted-brand);
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 100ms ease, box-shadow 150ms ease;
}

.toolbar a:hover,
.toolbar button:hover,
.rted-cite-tabs button:hover,
.rted-cite-downloads a:hover,
button:hover,
a.btn:hover {
  background: var(--rted-brand-tint);
  border-color: var(--rted-brand);
  color: var(--rted-brand);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.toolbar a:active,
.toolbar button:active,
button:active {
  transform: translateY(1px);
}

.toolbar button[data-copy],
.rted-cite-tabs button.active,
button[type="submit"] {
  border-color: var(--rted-brand);
  background: linear-gradient(180deg, var(--rted-brand-soft) 0%, var(--rted-brand) 100%);
  color: #ffffff;
}

.toolbar button[data-copy]:hover,
button[type="submit"]:hover {
  background: var(--rted-brand-soft);
  color: #ffffff;
  border-color: var(--rted-brand-soft);
}

button:disabled,
button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Custom social styles */
.rted-share-toolbar a[href*="facebook"] {
  border-color: #3b5998;
  color: #3b5998;
}
.rted-share-toolbar a[href*="facebook"]:hover {
  background: #eceff8;
  color: #2d4373;
}
.rted-share-toolbar a[href*="linkedin"] {
  border-color: #0077b5;
  color: #0077b5;
}
.rted-share-toolbar a[href*="linkedin"]:hover {
  background: #e6f2f7;
  color: #005987;
}
.rted-share-toolbar a[href*="whatsapp"] {
  border-color: #25d366;
  color: #25d366;
}
.rted-share-toolbar a[href*="whatsapp"]:hover {
  background: #e8f9ee;
  color: #128c7e;
}
.rted-share-toolbar a[href*="twitter"],
.rted-share-toolbar a[href*="x.com"] {
  border-color: #1da1f2;
  color: #1da1f2;
}
.rted-share-toolbar a[href*="twitter"]:hover,
.rted-share-toolbar a[href*="x.com"]:hover {
  background: #e8f5fe;
  color: #0d8bd9;
}

.author-link,
.rted-author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--rted-brand-soft);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px dashed rgba(45, 90, 143, 0.4);
  padding-bottom: 2px;
}
.author-link:hover,
.rted-author-link:hover {
  color: var(--rted-brand);
  border-bottom-style: solid;
  text-decoration: none;
}

.foot {
  margin-top: 32px;
  font-size: 13.5px;
  line-height: 1.6;
}

/* ====== Verified Record Note (Quote Block) ====== */
.rted-record-note {
  margin-top: 32px;
  border-left: 4px solid var(--rted-gold);
  background: linear-gradient(90deg, var(--rted-gold-tint) 0%, rgba(254, 243, 199, 0.4) 100%);
  color: #78350f;
  line-height: 1.6;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  font-size: 14.5px;
}

.rted-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}

.rted-pill--scheduled {
  background: var(--rted-amber-tint);
  color: var(--rted-amber);
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.rted-orcid-link {
  margin-left: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 150ms ease;
}
.rted-orcid-link:hover {
  transform: scale(1.15);
}

/* ====== Citation Section ====== */
.rted-cite-block {
  margin-top: 36px;
  border: 1px solid var(--rted-line-soft);
  border-radius: 16px;
  padding: 24px;
  background: rgba(251, 252, 254, 0.9);
}

.rted-cite-tabs {
  margin: 16px 0;
}

.rted-cite-block pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
  max-height: 220px;
  overflow-y: auto;
}

.rted-cite-downloads {
  margin-top: 16px;
}
.rted-cite-downloads a {
  font-size: 13px;
  padding: 8px 14px;
  min-height: auto;
}

.rted-print-footer {
  display: none;
}

/* ====== Author Dashboard Panel ====== */
.rted-author-panel p {
  line-height: 1.65;
  color: var(--rted-ink-soft);
}

.rted-author-form {
  display: grid;
  gap: 18px;
  max-width: 650px;
  margin-top: 24px;
}

/* Load-bearing display rule: DO NOT touch */
.rted-author-form[hidden],
[hidden] {
  display: none !important;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.field label {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--rted-ink-soft);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 10px;
  color: var(--rted-ink);
  font-family: inherit;
  padding: 12px 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
textarea:focus {
  border-color: var(--rted-brand-soft);
  box-shadow: 0 0 0 3px rgba(45, 90, 143, 0.2);
  outline: none;
}

/* Highlighted "Send to institution" Form Card */
#sendForm {
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: linear-gradient(180deg, #ffffff 0%, var(--rted-soft) 100%);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

/* ====== Dashboard Impact Stats (Financial Dashboard Style) ====== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 36px;
}

.stat {
  background: linear-gradient(135deg, #ffffff 0%, var(--rted-soft) 100%);
  border: 1px solid var(--rted-line-soft);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat strong {
  font-size: 32px;
  display: block;
  margin-bottom: 2px;
  color: var(--rted-brand);
  font-weight: 700;
  line-height: 1.1;
  font-family: 'Liberation Serif', Georgia, serif;
}

/* ====== Status Alert Banners ====== */
.rted-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 1.55;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

/* Load-bearing display rule: DO NOT touch */
.rted-banner[hidden] {
  display: none !important;
}

.rted-banner::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.rted-banner--error {
  background: var(--rted-rose-tint);
  border-color: rgba(220, 38, 38, 0.25);
  color: #991b1b;
}
.rted-banner--error::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23991b1b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='13'/><line x1='12' y1='16.5' x2='12' y2='17'/></svg>");
}

.rted-banner--success {
  background: var(--rted-green-tint);
  border-color: rgba(5, 150, 105, 0.25);
  color: #065f46;
}
.rted-banner--success::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23065f46' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='8 12.5 11 15.5 16.5 9.5'/></svg>");
}

.rted-banner--info {
  background: var(--rted-brand-tint);
  border-color: rgba(30, 58, 95, 0.2);
  color: #1e3a8a;
}
.rted-banner--info::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='11' x2='12' y2='16'/><circle cx='12' cy='8' r='0.6' fill='%231e3a8a'/></svg>");
}

.msg {
  color: var(--rted-muted);
  font-weight: 600;
  margin-top: 12px;
  font-size: 13.5px;
}

/* ====== OTP Gated Step Indicator ====== */
.rted-steps {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rted-muted);
}

.rted-steps .step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rted-steps .step .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rted-line-soft);
  color: var(--rted-muted);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--rted-line);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.rted-steps .step.active .dot {
  background: var(--rted-brand);
  color: #ffffff;
  border-color: var(--rted-brand);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.15);
}

.rted-steps .step.done .dot {
  background: var(--rted-green);
  color: #ffffff;
  border-color: var(--rted-green);
}

.rted-steps .step.active,
.rted-steps .step.done {
  color: var(--rted-ink);
}

.rted-steps .sep {
  flex: 1;
  height: 2px;
  background: var(--rted-line-soft);
  max-width: 60px;
}

/* ====== Author Intro & Recipient Badges ====== */
.rted-author-intro {
  background: linear-gradient(135deg, #f0f6fa 0%, #e2edf6 100%);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.rted-author-intro h2 {
  margin: 0 0 10px;
  font-family: 'Liberation Serif', Georgia, serif;
  font-size: 20px;
  color: var(--rted-brand);
}

.rted-author-intro p {
  margin: 0;
  color: var(--rted-ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.rted-sent-to {
  display: inline-block;
  background: #ffffff;
  border: 1px dashed var(--rted-brand-soft);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--rted-ink);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}

/* ====== Delivery History Log ====== */
.rted-history {
  margin-top: 16px;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rted-history li {
  background: var(--rted-soft);
  border: 1px solid var(--rted-line-soft);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--rted-ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  transition: background-color 150ms ease;
}
.rted-history li:hover {
  background-color: #f1f5f9;
}

.rted-history .who {
  font-weight: 700;
  color: var(--rted-brand);
}
.rted-history .status-sent {
  color: var(--rted-green);
  font-weight: 700;
  background: var(--rted-green-tint);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(5, 150, 105, 0.2);
  font-size: 12px;
}
.rted-history .status-failed {
  color: var(--rted-rose);
  font-weight: 700;
  background: var(--rted-rose-tint);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  font-size: 12px;
}

hr {
  border: none;
  border-top: 1px solid var(--rted-line-soft);
  margin: 36px 0 24px;
}

/* ====== Responsive Styles ====== */
@media (max-width: 860px) {
  .hero,
  .rted-author-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 30px;
  }
  .meta,
  .stats {
    grid-template-columns: 1fr;
  }
  .mast,
  .rted-author-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
  }
  .panel,
  .rted-author-panel {
    padding: 28px 24px;
  }
}

/* ====== Print Custom Styles ====== */
@media print {
  .rted-share-toolbar,
  .rted-cite-block,
  .rted-author-link,
  .rted-footer-nav,
  header nav,
  .rted-otp-cta {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-family: 'Liberation Serif', Georgia, serif;
  }
  .rted-validation {
    max-width: 100%;
    padding: 2cm;
  }
  .rted-badge-image {
    max-width: 16cm;
    margin: 0 auto 1cm;
    display: block;
  }
  .rted-title-print {
    font-size: 18pt;
    text-align: center;
    margin: 1cm 0 0.5cm;
  }
  .rted-authors-print {
    font-size: 12pt;
    text-align: center;
    font-style: italic;
  }
  .rted-meta-print {
    font-size: 10pt;
    text-align: center;
    margin-top: 1cm;
  }
  .rted-print-footer {
    display: block !important;
    text-align: center;
    font-size: 9pt;
    color: #555;
    margin-top: 2cm;
    border-top: 1px solid #999;
    padding-top: 0.5cm;
  }
  @page {
    size: A4 portrait;
    margin: 1.5cm;
  }
}
