@charset "UTF-8";

:root {
  --elma-purple: #310653;
  --elma-purple-deep: #22043e;
  --elma-purple-mid: #592384;
  --elma-gold: #c89a3c;
  --elma-gold-light: #efd592;
  --elma-ink: #25143e;
  --elma-muted: #625777;
  --elma-line: #e7deec;
  --elma-surface: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.elma-preview {
  margin: 0;
  background: #f8f6fb;
  color: var(--elma-ink);
  font-family: Arial, Helvetica, sans-serif;
}

/* Standalone preview header. OJS uses its own functional header below. */
.elma-site-header {
  position: relative;
  background: var(--elma-purple);
  color: #fff;
}
.elma-header-inner {
  max-width: 1500px;
  min-height: 146px;
  margin: auto;
  padding: 18px 42px;
  display: flex;
  align-items: center;
}
.elma-brand { display: block; width: min(540px, 100%); text-decoration: none; color: #fff; }
.elma-brand img { display: block; width: 100%; height: auto; }
.elma-preview-nav {
  position: relative;
  z-index: 1;
  min-height: 55px;
  background: var(--elma-purple-deep);
  border-top: 1px solid rgba(232, 202, 116, .6);
}
.elma-preview-nav .nav-inner {
  max-width: 1500px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding: 0 30px;
}
.elma-preview-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 55px;
  padding: 0 21px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease;
}
.elma-preview-nav a:hover, .elma-preview-nav a:focus-visible { background: rgba(255,255,255,.12); }
.elma-preview-nav a.active {
  background: linear-gradient(135deg, #f5df9d, #c9973d);
  color: var(--elma-purple-deep);
}
.elma-preview-nav .nav-search { margin-left: auto; }

/* OJS Default Theme integration, scoped to the public journal page. */
.pkp_structure_head {
  background: var(--elma-purple);
  border-bottom: 3px solid var(--elma-gold);
}
.pkp_structure_head .pkp_head_wrapper { max-width: 1500px; }
.pkp_structure_head .pkp_site_name .is_img img { display: block; width: auto; height: auto; max-height: 100px; max-width: 100%; object-fit: contain; }
.pkp_structure_head .pkp_navigation_primary_wrapper {
  background: var(--elma-purple-deep);
}
.pkp_structure_head .pkp_navigation_primary > li > a { color: #fff; font-size: 14px; }
.pkp_structure_head .pkp_navigation_primary > li > a:hover,
.pkp_structure_head .pkp_navigation_primary > li > a:focus { color: var(--elma-gold-light); }
.pkp_structure_head .pkp_navigation_primary > li:first-child > a { color: #f5d78a; font-weight: 700; }
.pkp_structure_head .pkp_navigation_primary li ul,
.pkp_structure_head .pkp_navigation_primary .dropdown-menu {
  background: #fff;
  border: 1px solid #e2d8e9;
  box-shadow: 0 8px 22px rgba(29, 5, 48, .15);
  z-index: 30;
}
.pkp_structure_head .pkp_navigation_primary li ul a,
.pkp_structure_head .pkp_navigation_primary .dropdown-menu a { color: #2d1948 !important; }
.pkp_structure_head .pkp_navigation_primary li ul a:hover,
.pkp_structure_head .pkp_navigation_primary li ul a:focus,
.pkp_structure_head .pkp_navigation_primary .dropdown-menu a:hover,
.pkp_structure_head .pkp_navigation_primary .dropdown-menu a:focus {
  color: #310653 !important;
  background: #f2e9f7;
}
.pkp_structure_content { max-width: 1510px; }
.pkp_page_index .pkp_structure_main { float: none; width: 100%; padding: 0; }
.pkp_page_index .pkp_structure_side { display: none; }
.pkp_page_index .pkp_structure_content { padding-left: 20px; padding-right: 20px; }
.pkp_page_index .pkp_structure_main::before { display: none; }
.pkp_page_index .page_index_journal { padding: 0; }
.pkp_page_index .page_index_journal > h1 { display: none; }
.pkp_structure_foot { background: var(--elma-purple-deep); color: #fff; }
.pkp_structure_foot a { color: #f4ddab; }

/* Shared homepage composition. */
.elma-page {
  width: 100%;
  margin: 8px auto 0;
  color: var(--elma-ink);
  font-family: Georgia, "Times New Roman", serif;
}
.elma-page a { text-decoration: none; }
.elma-page a:focus-visible, .elma-preview-nav a:focus-visible {
  outline: 3px solid var(--elma-gold);
  outline-offset: 2px;
}
.elma-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 26px;
  padding: 0 0 18px;
}
.elma-main { min-width: 0; }
.elma-hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: url("https://jurnal.aretelitera.com/plugins/themes/elma/assets/book-hero.webp") center / cover;
  box-shadow: 0 8px 28px rgba(52, 23, 68, .1);
}
.elma-hero::before {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, rgba(255,253,250,.96), rgba(255,250,244,.78) 30%, rgba(255,255,255,.04) 61%);
  pointer-events: none;
}
.elma-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 30px 0 28px 8%;
  max-width: 570px;
}
.elma-eyebrow {
  margin: 0 0 8px;
  color: #ad711a;
  text-transform: uppercase;
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: .055em;
}
.elma-hero h1 {
  margin: 0;
  color: var(--elma-purple);
  font: italic 700 clamp(29px, 3vw, 48px)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.03em;
}
.elma-gold-rule {
  display: block;
  width: 74px;
  height: 3px;
  margin: 18px 0 12px;
  background: linear-gradient(90deg, var(--elma-gold), #f4d891);
}
.elma-hero-sub {
  margin: 0 0 18px;
  color: #3a1c59;
  font: italic 16px/1.45 Georgia, serif;
}
.elma-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 22px;
  padding: 10px 22px;
  background: linear-gradient(115deg, #28043e, #53217d);
  color: #fff !important;
  font: 16px/1.2 Georgia, serif;
  box-shadow: 0 5px 14px rgba(38, 6, 66, .16);
  transition: transform .15s ease, box-shadow .15s ease;
}
.elma-button:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(38, 6, 66, .23); }
.elma-button.gold { color: #291040 !important; background: linear-gradient(115deg, #f2d485, #cb9a42); }
.elma-hero-quote {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 22px 30px 45px;
  background: linear-gradient(150deg, rgba(57, 5, 94, .96), rgba(28, 4, 58, .98));
  clip-path: polygon(23% 0,100% 0,100% 100%,0 100%);
  color: #fff;
  text-align: center;
}
.elma-hero-quote q { font: italic 21px/1.32 Georgia, serif; quotes: "“" "”"; }
.elma-hero-quote span { width: 72px; height: 2px; margin: 16px auto 0; background: var(--elma-gold); }
.elma-below {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr);
  gap: 28px;
  margin-top: 20px;
}
.elma-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  border-bottom: 1px solid #dabb75;
  padding-bottom: 8px;
}
.elma-heading h2 {
  margin: 0 !important;
  border-left: 7px solid var(--elma-gold);
  padding-left: 12px;
  color: var(--elma-purple);
  font: 27px/1.15 Georgia, serif;
}
.elma-heading a {
  flex: 0 0 auto;
  color: var(--elma-purple);
  font: 13px Georgia, serif;
  white-space: nowrap;
}
.elma-about p, .elma-issue p {
  margin: 0 0 10px;
  color: #46335f;
  font: 16px/1.42 Georgia, serif;
}
.elma-readmore {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 6px 16px;
  border-radius: 5px;
  background: var(--elma-purple);
  color: #fff !important;
  font: 14px Georgia, serif;
}
.elma-topics {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  margin-top: 10px;
  border: 1px solid var(--elma-line);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(46, 15, 68, .04);
}
.elma-topic {
  position: relative;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 7px;
  text-align: center;
  color: #201138;
  font: 12px/1.13 Georgia, serif;
  text-transform: uppercase;
}
.elma-topic:not(:last-child)::after {
  position: absolute;
  content: "";
  top: 16px;
  right: 0;
  bottom: 16px;
  border-right: 1px solid #e6c578;
}
.elma-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.elma-topic .elma-icon { width: 38px; height: 38px; color: #b98422; }
.elma-issue-card {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 18px;
  align-items: start;
}
.elma-cover {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 11px;
  color: #fff;
  background: linear-gradient(180deg, #260543, #501b73);
  border: 4px solid #fff;
  box-shadow: 2px 5px 14px rgba(31, 10, 54, .25);
}
.elma-cover strong { font: 700 35px/1 Georgia, serif; letter-spacing: -.05em; }
.elma-cover small { font: 8px/1.2 Arial, sans-serif; }
.elma-cover span { display: block; border-top: 2px solid var(--elma-gold); padding-top: 10px; font: italic 12px Georgia, serif; }
.elma-issue-card h3 { margin: 1px 0 8px; color: var(--elma-purple); font: 21px Georgia,serif; }
.elma-issue-card .elma-button { margin-top: 4px; border-radius: 6px; font-size: 14px; }
.elma-issue-live .current_issue { margin: 0; }
.elma-issue-live .current_issue h2 { display: none; }

.elma-side { border-left: 1px solid var(--elma-line); padding-left: 17px; }
.elma-actions { display: grid; gap: 5px; }
.elma-action {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 18px;
  border-radius: 4px;
  padding: 7px 16px;
  background: #eeeef1;
  color: #2d1948 !important;
  font: 12px/1.2 Arial, sans-serif;
  text-transform: uppercase;
  transition: background .15s ease, transform .15s ease;
}
.elma-action:hover { background: #e4d9eb; transform: translateX(2px); }
.elma-action .elma-icon { flex: none; color: var(--elma-purple); }
.elma-action.primary { min-height: 44px; background: var(--elma-purple); color: #fff !important; font: 15px Georgia, serif; }
.elma-action.primary .elma-icon { color: #fff; }
.elma-action.muted { opacity: .7; cursor: default; }
.elma-side-card { margin-top: 13px; border: 1px solid #e4dde9; border-radius: 5px; overflow: hidden; background: #fff; }
.elma-side-card h3 { margin: 0; padding: 9px 20px; background: linear-gradient(90deg, #310653, #552582); color: #fff; font: 16px Georgia, serif; text-transform: uppercase; }
.elma-side-card .body { padding: 8px 17px; }
.elma-side-card .body a { display: block; padding: 7px 4px; border-bottom: 1px solid #eee9ef; color: #271542; font: 14px Georgia,serif; }
.elma-side-card .body a:last-child { border-bottom: 0; }
.elma-side-card .body a:hover { color: #8d5b14; }
.elma-side-card .scope { display: flex; gap: 14px; align-items: center; color: #271542; font: 14px/1.65 Georgia,serif; }
.elma-side-card .scope .elma-icon { width: 48px; height: 48px; color: #bb8728; }
.elma-side-card .scope ul { margin: 0; padding-left: 16px; }
.elma-side-card .scope li::marker { color: #bd8527; }
.elma-reference-card h3 {
  background: #ededf0;
  color: #423657;
  text-align: center;
  border-bottom: 3px solid var(--elma-gold);
  font: 15px Georgia,serif;
}
.elma-reference-card .body { padding: 13px 15px; }
.elma-reference-card p { margin: 5px 0; color: #5b506a; font: 13px/1.45 Arial,sans-serif; }
.elma-status { display: inline-block; border-radius: 3px; padding: 5px 9px; background: #f1edf4; color: #4d2d65; font: 700 12px Arial,sans-serif; }
/* OJS Custom Block Manager content sits inside the ELMA resource column. */
.elma-side .pkp_block.block_custom {
  margin: 13px 0 0;
  border: 1px solid #e4dde9;
  border-radius: 5px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}
.elma-side .pkp_block.block_custom .title {
  display: block;
  margin: 0;
  border-bottom: 3px solid var(--elma-gold);
  padding: 9px 12px;
  background: #ededf0;
  color: #423657;
  text-align: center;
  text-transform: uppercase;
  font: 15px Georgia, serif;
}
.elma-side .pkp_block.block_custom .content { padding: 12px; }
.elma-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.elma-index-logo {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid #e7e3e9;
  padding: 4px;
  background: #fff;
  color: #27222d;
  text-align: center;
  font: 11px/1.1 Arial, sans-serif;
  white-space: nowrap;
}
.elma-index-logo strong { font-weight: 700; }
.elma-index-pkp { font: 15px Georgia, serif; }
.elma-index-pkp strong:last-child { font-weight: 400; }
.elma-index-issn { gap: 4px; }
.elma-index-issn strong { color: #972052; font: 700 22px Georgia, serif; }
.elma-index-issn small { max-width: 46px; font: 5px/1.25 Arial, sans-serif; white-space: normal; text-align: left; }
.elma-index-garuda strong:first-child { color: #f22223; font-size: 22px; }
.elma-index-garuda strong:last-child { font-size: 13px; }
.elma-index-scholar strong:first-child { color: #4385d0; font-size: 19px; }
.elma-index-scholar strong:last-child { color: #5d6470; font-size: 11px; }
.elma-index-copernicus { flex-direction: column; gap: 0; font: 13px Georgia, serif; }
.elma-index-copernicus small { align-self: flex-start; color: #646169; font: 7px Arial, sans-serif; letter-spacing: .12em; }
.elma-index-dimensions strong:first-child { color: #4a90e2; font-size: 22px; }
.elma-index-dimensions strong:last-child { color: #67656b; font-size: 12px; }
.elma-template-card { display: flex; align-items: center; gap: 16px; }
.elma-doc-icon {
  display: flex; flex: 0 0 78px; min-height: 88px; flex-direction: column;
  align-items: center; justify-content: center; border-radius: 7px;
  background: #1661bf; color: #fff; font: 700 27px Arial,sans-serif;
}
.elma-doc-icon span { margin-top: 8px; padding: 3px 5px; background: #103b7b; font: 700 8px Arial,sans-serif; letter-spacing: .08em; }
.elma-template-card p strong { color: #6b5a7c; font-size: 12px; }
.elma-tools-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.elma-tools-grid a {
  display: flex; min-height: 30px; align-items: center; justify-content: center;
  border: 1px solid #ece7ef; border-radius: 3px; padding: 5px;
  color: #3b2752; font: 700 12px Arial,sans-serif; text-align: center;
}
.elma-tools-grid a:hover { background: #f5eff8; color: #310653; }
.elma-whatsapp { display: block !important; margin: 14px auto 0; padding: 9px 0 !important; color: #24a35a !important; font: 700 20px Arial,sans-serif !important; text-align: center; }
.elma-whatsapp small { display: block; margin-top: 3px; font: 12px Arial,sans-serif; }
.elma-keywords { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 8px; min-height: 100px; text-align: center; }
.elma-keywords span { color: #6c3a91; font: italic 12px Georgia,serif; }
.elma-keywords span:nth-child(3n+1) { color: #ad771e; font-size: 15px; }
.elma-keywords span:nth-child(4n+2) { color: #4478a0; font-size: 14px; }
.elma-people { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 18px 0 4px; }
.elma-role-card { scroll-margin-top: 24px; border: 1px solid var(--elma-line); border-top: 3px solid var(--elma-gold); border-radius: 4px; padding: 18px 20px; background: #fff; }
.elma-role-card h2 { margin: 0 0 8px; color: var(--elma-purple); font: 24px Georgia,serif; }
.elma-role-card p { margin: 0 0 9px; color: #514364; font: 15px/1.5 Georgia,serif; }
.elma-role-card a { color: #512078; font: 700 13px Arial,sans-serif; }
.elma-role-card a:hover { text-decoration: underline; }
.elma-aux { padding: 16px 0 10px; }
.elma-aux h2 { margin: 0 0 8px; color: var(--elma-purple); font: 23px Georgia,serif; }
.elma-aux p { margin: 0; color: var(--elma-muted); font: 15px/1.5 Georgia,serif; }
.elma-site-footer {
  background: linear-gradient(100deg, #270344, #512078 50%, #22043e);
  border-top: 3px solid var(--elma-gold);
  color: #fdf8ff;
}
.elma-footer-inner { max-width: 1500px; margin: auto; padding: 22px 42px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.elma-footer-brand { font: 23px Georgia, serif; }
.elma-footer-brand small { display: block; margin-top: 4px; font: 10px Arial,sans-serif; letter-spacing: .12em; }
.elma-footer-links { display: flex; flex-wrap: wrap; gap: 11px; }
.elma-footer-links a { color: #fff; font: 12px Arial,sans-serif; }
.elma-footer-copy { font: 11px Arial,sans-serif; opacity: .8; }

@media (max-width: 1100px) {
  .elma-header-inner { padding: 16px 24px; }
  .elma-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 15px; }
  .elma-hero { grid-template-columns: minmax(0,1fr) 180px; }
  .elma-hero-quote { padding-left: 28px; }
  .elma-hero-quote q { font-size: 18px; }
  .elma-below { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .elma-header-inner { min-height: 86px; padding: 10px 16px; }
  .elma-brand { width: min(330px, 100%); }
  .elma-preview-nav .nav-inner { padding: 0 8px; justify-content: center; }
  .elma-preview-nav a { min-height: 45px; padding: 0 9px; font-size: 10px; }
  .elma-preview-nav .nav-search { margin-left: 0; }
  .elma-layout { display: block; }
  .elma-hero { min-height: 360px; grid-template-columns: 1fr; }
  .elma-hero-copy { padding: 24px 28px 45px; }
  .elma-hero h1 { max-width: 440px; }
  .elma-hero-quote { display: none; }
  .elma-side { margin-top: 22px; padding-left: 0; border-left: 0; }
  .elma-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .elma-people { grid-template-columns: 1fr; }
  .elma-topics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .elma-topic:nth-child(3)::after { display: none; }
  .elma-footer-inner { padding: 22px; flex-direction: column; align-items: flex-start; }
  .pkp_structure_head .pkp_site_name .is_img img { max-height: 52px; max-width: calc(100vw - 92px); }
}
@media (max-width: 460px) {
  .elma-hero { background-position: 61% center; }
  .elma-hero-copy { padding: 22px 20px 28px; }
  .elma-hero h1 { font-size: 31px; }
  .elma-hero-sub { font-size: 13px; }
  .elma-issue-card { grid-template-columns: 95px 1fr; gap: 10px; }
  .elma-cover { min-height: 160px; }
  .elma-cover strong { font-size: 28px; }
  .elma-topics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .elma-topic:nth-child(3)::after { display: block; }
  .elma-topic:nth-child(even)::after { display: none; }
  .elma-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .elma-button, .elma-action, .elma-preview-nav a { transition: none; }
}
