/* Ayrampu — estilo editorial (CSS estático, sin frameworks) */

:root {
  --sidebar-width: 18rem;
  --mobile-bar-height: 3.25rem;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --stone-50: #fafaf9;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --max-content: 56rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
}

a { color: var(--red-800); text-decoration: none; transition: color 0.15s; }
a:hover, a:focus { color: var(--red-900); }
a:focus-visible { outline: 2px solid var(--red-800); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.site-sidebar::-webkit-scrollbar { width: 6px; }
.site-sidebar::-webkit-scrollbar-track { background: var(--slate-900); }
.site-sidebar::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 3px; }
.site-sidebar::-webkit-scrollbar-thumb:hover { background: var(--slate-600); }

.site-mobile-bar {
  display: flex; align-items: center; gap: 0.75rem;
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: var(--mobile-bar-height); padding: 0 1rem;
  background: var(--slate-900); color: #fff;
}
@media (min-width: 768px) { .site-mobile-bar { display: none; } }

.site-menu-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 0.25rem; background: none; border: none; color: #fff; cursor: pointer; border-radius: 4px;
}
.site-menu-btn:hover { background: rgba(255, 255, 255, 0.1); }
.site-menu-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.site-mobile-brand {
  font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500;
  color: #fff !important; text-decoration: none;
}
.site-mobile-brand:hover { color: #fff !important; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.5);
}
.sidebar-overlay.is-visible { display: block; }
@media (min-width: 768px) { .sidebar-overlay { display: none !important; } }

.site-sidebar {
  position: fixed; top: 0; left: 0; z-index: 50;
  width: var(--sidebar-width); height: 100%;
  background: var(--slate-900); color: #fff; overflow-y: auto;
  transform: translateX(-100%); transition: transform 0.3s ease;
}
.site-sidebar.is-open { transform: translateX(0); }
@media (min-width: 768px) { .site-sidebar { transform: translateX(0); } }

.site-sidebar__inner {
  display: flex; flex-direction: column; min-height: 100%; padding: 2rem;
}

.site-brand { display: block; margin-bottom: 3rem; text-decoration: none; color: #fff !important; }
.site-brand:hover { color: #fff !important; }
.site-brand__title {
  display: block; font-family: var(--font-serif); font-size: 1.5rem;
  font-weight: 500; letter-spacing: -0.02em;
}
.site-brand__subtitle {
  display: block; margin-top: 0.25rem; font-size: 0.625rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--slate-400);
}

.site-nav { list-style: none; margin: 0; padding: 0; flex: 1; }
.site-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0.75rem; font-size: 0.875rem;
  color: var(--slate-400) !important; border-radius: 6px;
  transition: background 0.15s, color 0.15s; text-decoration: none;
}
.site-nav a:hover { color: #fff !important; background: rgba(255, 255, 255, 0.05); }
.site-nav a[aria-current="page"] { color: #fff !important; background: rgba(255, 255, 255, 0.1); }
.site-nav__icon { flex-shrink: 0; opacity: 0.85; }

.site-search { display: flex; gap: 0.35rem; margin-top: 1.5rem; }
.site-search input[type="search"] {
  flex: 1; min-width: 0; padding: 0.45rem 0.6rem; font-size: 0.8125rem;
  font-family: inherit; border: 1px solid var(--slate-700); border-radius: 6px;
  background: var(--slate-800); color: #fff;
}
.site-search input[type="search"]::placeholder { color: var(--slate-500); }
.site-search button {
  padding: 0.45rem 0.65rem; font-size: 0.8125rem; font-family: inherit;
  border: 1px solid var(--slate-600); border-radius: 6px;
  background: var(--slate-800); color: var(--slate-300); cursor: pointer;
}
.site-search button:hover { background: var(--slate-700); color: #fff; }

.site-sidebar__meta {
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-700);
  font-size: 0.75rem; color: var(--slate-500);
}
.site-sidebar__meta p { margin: 0 0 0.35rem; }
.site-sidebar__meta a { color: var(--slate-400) !important; }
.site-sidebar__meta a:hover { color: #fff !important; }
.site-sidebar__copy { color: var(--slate-600) !important; margin-top: 0.5rem !important; }

.site-main { min-height: 100vh; padding-top: var(--mobile-bar-height); }
@media (min-width: 768px) {
  .site-main { margin-left: var(--sidebar-width); padding-top: 0; }
}

.section { border-bottom: 1px solid var(--border); }
.section--alt { background: var(--stone-50); }
.section-inner { max-width: var(--max-content); margin: 0 auto; padding: 4rem 1.5rem; }
@media (min-width: 768px) {
  .section-inner { padding: 5rem 3rem; }
  .section-inner--hero { padding-top: 7rem; padding-bottom: 7rem; }
}
.section-inner--page { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) {
  .section-inner--page { padding-top: 4rem; padding-bottom: 4rem; }
}

.eyebrow {
  margin: 0 0 1rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-800);
}
.hero-title {
  margin: 0 0 1.5rem; font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500; letter-spacing: -0.02em; line-height: 0.95; color: var(--slate-900);
}
.hero-lead {
  margin: 0 0 2.5rem; max-width: 42rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem); line-height: 1.65; color: var(--slate-500);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 500; font-family: inherit;
  border-radius: 6px; text-decoration: none; transition: background 0.15s, border-color 0.15s; cursor: pointer; border: none;
}
.btn--primary { background: var(--red-800); color: #fff !important; }
.btn--primary:hover { background: var(--red-900); color: #fff !important; }
.btn--outline { background: transparent; color: var(--slate-700) !important; border: 1px solid var(--slate-300); }
.btn--outline:hover { border-color: var(--slate-400); color: var(--slate-900) !important; }
.btn--link { padding: 0; background: none; color: var(--red-800) !important; font-weight: 500; }
.btn--link:hover { color: var(--red-900) !important; }
.btn svg { flex-shrink: 0; }

.section-heading {
  margin: 0 0 2.5rem; font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 500; letter-spacing: -0.02em; color: var(--slate-900);
}
.scope-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .scope-grid { grid-template-columns: repeat(3, 1fr); } }
.scope-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; border-radius: 50%;
  background: rgba(153, 27, 27, 0.1); color: var(--red-800);
}
.scope-card h3 { margin: 0 0 0.5rem; font-size: 1.125rem; color: var(--slate-900); }
.scope-card p { margin: 0; font-size: 0.875rem; line-height: 1.65; color: var(--slate-500); }

.section-header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.section-header-row .section-heading { margin-bottom: 0; }

.card {
  background: var(--stone-50); border: 1px solid var(--border);
  border-radius: 8px; padding: 2rem;
}
.card--centered { text-align: center; }
.card--centered p { max-width: 32rem; margin-left: auto; margin-right: auto; }
.card p { color: var(--slate-500); line-height: 1.65; }
.card h3 { margin: 0 0 0.75rem; font-size: clamp(1.25rem, 2.5vw, 1.5rem); color: var(--slate-900); }
.card .eyebrow { margin-bottom: 0.5rem; }

.page_title {
  margin: 0 0 1.5rem; font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500; letter-spacing: -0.02em; color: var(--slate-900); border: none; padding: 0;
}
.section_label {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--red-800); margin: 2rem 0 0.75rem;
}
.home_block { margin-bottom: 0; }
.home_block h2 { font-size: 1.375rem; margin-bottom: 1rem; color: var(--slate-900); }
.issue_heading { font-size: 1.125rem; margin: 0 0 0.25rem; color: var(--slate-900); }
.issue_meta { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.issue_dossier { font-style: italic; margin-bottom: 0.5rem; color: var(--slate-500); }

.obj_issue_toc .section { border-bottom: none; margin-bottom: 2rem; }
.obj_issue_toc .section h3 {
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-800);
  border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 1rem;
}
.obj_article_summary {
  margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border);
}
.obj_article_summary:last-child { border-bottom: none; }
.obj_article_summary .title { font-family: var(--font-serif); font-size: 1.0625rem; font-weight: 500; margin: 0 0 0.35rem; }
.obj_article_summary .title a { color: var(--slate-900); }
.obj_article_summary .title a:hover { color: var(--red-800); }
.obj_article_summary .authors { font-size: 0.9375rem; color: var(--text-muted); margin: 0 0 0.25rem; }
.obj_article_summary .pages { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.galleys_links { margin-top: 0.35rem; font-size: 0.875rem; }
.galleys_links a { margin-right: 0.75rem; }

.article_detail .title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; margin-top: 0; color: var(--slate-900); }
.article_detail .authors { font-size: 1rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.article_detail .affiliation { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.article_galleys {
  margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--stone-50);
  border: 1px solid var(--border); border-radius: 8px;
}
.article_galleys a { display: inline-block; margin-right: 1rem; font-weight: 500; }
.article_keywords { margin-top: 1rem; }
.article_keywords span {
  display: inline-block; background: var(--stone-50); border: 1px solid var(--border);
  padding: 0.2rem 0.55rem; margin: 0.25rem 0.25rem 0 0; font-size: 0.8125rem;
  border-radius: 4px; color: var(--slate-600);
}
.citation {
  margin-top: 2rem; padding: 1rem 1.25rem; background: var(--stone-50);
  border-left: 3px solid var(--red-800); border-radius: 0 6px 6px 0; font-size: 0.9375rem;
}

.article_html_galley .article-html-body {
  margin-top: 2rem; font-family: var(--font-serif); font-size: 1rem; line-height: 1.65; text-align: justify;
}
.article_html_galley .article-html-body p { margin: 0 0 1rem; text-indent: 1.5em; }
.article_html_galley .article-html-body p:first-child { text-indent: 0; }
.article_html_galley .article-html-page { margin-bottom: 1.5rem; }
.article_html_galley .article-verse p { text-indent: 0; margin: 0.35rem 0; text-align: left; font-style: italic; }
.article-html-body--from-pdf .article-pdf-h1 {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; line-height: 1.25;
  margin: 1.75rem 0 0.75rem; text-align: left; text-indent: 0;
}
.article-html-body--from-pdf .article-pdf-h2 {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; margin: 1.5rem 0 0.5rem; text-indent: 0;
}
.article-html-body--from-pdf .article-pdf-h3 {
  font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; margin: 1.25rem 0 0.35rem; text-indent: 0;
}
.article-html-body--from-pdf .article-pdf-subtitle {
  font-size: 1.05rem; font-style: italic; text-align: center; text-indent: 0;
  margin: 0.25rem 0 1.25rem; color: var(--text-muted);
}
.article-html-body--from-pdf > .article-html-page:first-child .article-pdf-h1:first-child { margin-top: 0; }

.cmp_announcements .announcement {
  margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.cmp_announcements .announcement:last-child { border-bottom: none; }
.cmp_announcements .announcement h3 { font-size: 1.0625rem; font-weight: 500; margin: 0 0 0.35rem; color: var(--slate-900); }
.cmp_announcements .date { font-size: 0.8125rem; color: var(--text-muted); }

.archive_year { margin-bottom: 2rem; }
.archive_year h2 {
  font-size: 1.125rem; font-weight: 500; border-bottom: 2px solid var(--red-800);
  padding-bottom: 0.35rem; color: var(--slate-900);
}
.archive_issue { margin: 0.75rem 0 0.75rem 1rem; }

.search_form {
  background: var(--stone-50); padding: 1.5rem; border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 1.5rem;
}
.search_form .form_row { margin-bottom: 1rem; }
.search_form label { display: block; font-weight: 500; font-size: 0.875rem; margin-bottom: 0.35rem; color: var(--slate-700); }
.search_form input, .search_form select {
  width: 100%; max-width: 400px; padding: 0.5rem 0.65rem;
  border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 0.9375rem;
}
.search_form button[type="submit"] {
  padding: 0.55rem 1.25rem; background: var(--red-800); color: #fff; border: none;
  border-radius: 6px; font-family: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer;
}
.search_form button[type="submit"]:hover { background: var(--red-900); }

.search_results table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.search_results th, .search_results td { text-align: left; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--border); }
.search_results th {
  background: var(--stone-50); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-600);
}
.search_results .no_results { color: var(--text-muted); font-style: italic; }

.btn_link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; color: var(--red-800) !important; }
.subpages_list { list-style: none; padding: 0; margin: 1.5rem 0; }
.subpages_list li { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.content_page h2 { font-size: 1.25rem; font-weight: 500; margin-top: 2rem; color: var(--slate-900); }
.content_page ul, .content_page ol { padding-left: 1.5rem; }
.content_page table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.content_page th, .content_page td { border: 1px solid var(--border); padding: 0.55rem 0.75rem; text-align: left; }

.issue_cover {
  max-width: 200px; margin-bottom: 1.5rem; border: 1px solid var(--border); border-radius: 8px;
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 100%);
  aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-serif); font-size: 0.875rem; text-align: center; padding: 1rem;
}

.about_index { list-style: none; padding: 0; margin: 1.5rem 0; }
.about_index li { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.about_index li:last-child { border-bottom: none; }
.about_index a { font-size: 1.05rem; color: var(--slate-900); }
.about_index a:hover { color: var(--red-800); }
.article-list-compact .obj_article_summary { padding-bottom: 1rem; margin-bottom: 1rem; }
