/*
=========================================================
Journal of Responsible AI in Education and Professional Learning
OJS 3 Custom Stylesheet
=========================================================
Security notes:
- CSS only; no JavaScript, remote imports, tracking code, or executable content.
- All custom selectors use the "jraiepl-" prefix to reduce conflicts with OJS.
*/

/* ---------- Design tokens ---------- */
:root {
  --jraiepl-navy: #102a43;
  --jraiepl-blue: #1f5f99;
  --jraiepl-blue-dark: #16466f;
  --jraiepl-cyan: #12a4a6;
  --jraiepl-teal-dark: #087d80;
  --jraiepl-gold: #d5a419;
  --jraiepl-text: #243b53;
  --jraiepl-muted: #627d98;
  --jraiepl-border: #d9e2ec;
  --jraiepl-surface: #ffffff;
  --jraiepl-surface-soft: #f4f8fb;
  --jraiepl-positive-soft: #edf9f4;
  --jraiepl-warning-soft: #fff8e6;
  --jraiepl-footer: #0b2239;
  --jraiepl-radius-sm: 10px;
  --jraiepl-radius-md: 18px;
  --jraiepl-radius-lg: 28px;
  --jraiepl-shadow-sm: 0 8px 24px rgba(16, 42, 67, 0.08);
  --jraiepl-shadow-md: 0 18px 48px rgba(16, 42, 67, 0.12);
  --jraiepl-max-width: 1180px;
}

/* ---------- General OJS refinements ---------- */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--jraiepl-text);
  background: #f7fafc;
  font-family:
    Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

a {
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(18, 164, 166, 0.42);
  outline-offset: 3px;
}

/* Optional: make the standard OJS content area wider */
.pkp_structure_main,
.pkp_structure_content {
  min-width: 0;
}

/* ---------- Aims and Scope page ---------- */
.jraiepl-page {
  width: 100%;
  margin: 0;
  color: var(--jraiepl-text);
}

.jraiepl-page *,
.jraiepl-page *::before,
.jraiepl-page *::after,
.jraiepl-footer *,
.jraiepl-footer *::before,
.jraiepl-footer *::after {
  box-sizing: border-box;
}

.jraiepl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 42px;
  border-radius: var(--jraiepl-radius-lg);
  background:
    radial-gradient(circle at 88% 20%, rgba(18, 164, 166, 0.26), transparent 32%),
    radial-gradient(circle at 12% 90%, rgba(213, 164, 25, 0.17), transparent 34%),
    linear-gradient(135deg, var(--jraiepl-navy) 0%, var(--jraiepl-blue-dark) 58%, #0d6c76 100%);
  box-shadow: var(--jraiepl-shadow-md);
}

.jraiepl-hero::after {
  position: absolute;
  z-index: -1;
  top: -110px;
  right: -70px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.jraiepl-hero__content {
  max-width: 900px;
  padding: clamp(42px, 7vw, 84px);
}

.jraiepl-eyebrow,
.jraiepl-kicker {
  margin: 0 0 10px;
  color: var(--jraiepl-teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.jraiepl-eyebrow {
  color: #9ce6e3;
}

.jraiepl-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.jraiepl-hero__lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #e8f4f8;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.75;
}

.jraiepl-content {
  display: grid;
  gap: 38px;
}

.jraiepl-section {
  padding: clamp(25px, 4vw, 46px);
  border: 1px solid var(--jraiepl-border);
  border-radius: var(--jraiepl-radius-md);
  background: var(--jraiepl-surface);
  box-shadow: var(--jraiepl-shadow-sm);
}

.jraiepl-section__heading {
  max-width: 850px;
  margin-bottom: 26px;
}

.jraiepl-section h2,
.jraiepl-card h2,
.jraiepl-callout h2 {
  margin: 0 0 12px;
  color: var(--jraiepl-navy);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.jraiepl-section__heading > p:last-child {
  margin-bottom: 0;
  color: var(--jraiepl-muted);
}

.jraiepl-prose {
  display: grid;
  gap: 16px;
  max-width: 970px;
}

.jraiepl-prose p {
  margin: 0;
}

.jraiepl-contexts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.jraiepl-contexts span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid #c7e6e5;
  border-radius: 999px;
  color: #0b6669;
  background: #effafa;
  font-size: 0.88rem;
  font-weight: 700;
}

.jraiepl-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  counter-reset: jraiepl-topic;
  list-style: none;
}

.jraiepl-topic-grid li {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 88px;
  overflow: hidden;
  border: 1px solid var(--jraiepl-border);
  border-radius: var(--jraiepl-radius-sm);
  background: var(--jraiepl-surface-soft);
  counter-increment: jraiepl-topic;
}

.jraiepl-topic-grid li::before {
  display: grid;
  place-items: center;
  width: 48px;
  height: 100%;
  color: #ffffff;
  background: linear-gradient(180deg, var(--jraiepl-blue), var(--jraiepl-teal-dark));
  content: counter(jraiepl-topic, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.jraiepl-topic-grid span {
  align-self: center;
  padding: 15px 17px;
  color: var(--jraiepl-text);
  font-weight: 650;
  line-height: 1.45;
}

.jraiepl-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.jraiepl-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(25px, 4vw, 40px);
  border: 1px solid var(--jraiepl-border);
  border-radius: var(--jraiepl-radius-md);
  background: var(--jraiepl-surface);
  box-shadow: var(--jraiepl-shadow-sm);
}

.jraiepl-card--positive {
  border-top: 5px solid var(--jraiepl-cyan);
}

.jraiepl-card--boundary {
  border-top: 5px solid var(--jraiepl-gold);
}

.jraiepl-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #ffffff;
  background: var(--jraiepl-teal-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.jraiepl-card--boundary .jraiepl-card__icon {
  color: #4a3800;
  background: #f3ca4f;
}

.jraiepl-card p {
  margin: 0 0 14px;
}

.jraiepl-check-list,
.jraiepl-boundary-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jraiepl-check-list li,
.jraiepl-boundary-list li {
  position: relative;
  padding-left: 27px;
}

.jraiepl-check-list li::before,
.jraiepl-boundary-list li::before {
  position: absolute;
  top: 0.08em;
  left: 0;
  font-weight: 900;
}

.jraiepl-check-list li::before {
  color: var(--jraiepl-teal-dark);
  content: "✓";
}

.jraiepl-boundary-list li::before {
  color: #a97600;
  content: "—";
}

.jraiepl-callout {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #b9dcdd;
  border-radius: var(--jraiepl-radius-md);
  background:
    linear-gradient(135deg, #effafa 0%, #f8fbfd 65%, #fff9e9 100%);
}

.jraiepl-callout__mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid #a3d5d5;
  border-radius: 50%;
  color: var(--jraiepl-teal-dark);
  background: #ffffff;
  font-size: 1.65rem;
  font-weight: 900;
}

.jraiepl-callout p {
  margin: 0;
}

/* ---------- Footer main menu ---------- */
.jraiepl-footer {
  width: 100%;
  margin-top: 58px;
  color: #dce9f2;
  background:
    radial-gradient(circle at 8% 10%, rgba(18, 164, 166, 0.15), transparent 27%),
    linear-gradient(145deg, #071b2d 0%, var(--jraiepl-footer) 60%, #0b3443 100%);
}

.jraiepl-footer a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.jraiepl-footer a:hover {
  color: #9ce6e3;
  text-decoration-color: #9ce6e3;
}

.jraiepl-footer__inner {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.9fr 1fr;
  gap: clamp(28px, 4vw, 58px);
  width: min(calc(100% - 40px), var(--jraiepl-max-width));
  margin: 0 auto;
  padding: 58px 0 46px;
}

.jraiepl-footer__journal {
  display: inline-block;
  max-width: 390px;
  margin-bottom: 15px;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.jraiepl-footer__brand p,
.jraiepl-footer__contact p {
  margin: 0;
  color: #b9ccdb;
  font-size: 0.92rem;
  line-height: 1.7;
}

.jraiepl-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.jraiepl-footer__nav ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jraiepl-footer__nav a {
  font-size: 0.92rem;
  text-decoration: none;
}

.jraiepl-footer__nav a::before {
  margin-right: 8px;
  color: #65c9c8;
  content: "›";
}

.jraiepl-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  margin-top: 20px;
  padding: 9px 16px;
  border: 1px solid rgba(156, 230, 227, 0.6);
  border-radius: 999px;
  background: rgba(18, 164, 166, 0.14);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.jraiepl-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 40px), var(--jraiepl-max-width));
  margin: 0 auto;
  padding: 20px 0 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.jraiepl-footer__bottom p {
  margin: 0;
  color: #9fb6c8;
  font-size: 0.78rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .jraiepl-two-column {
    grid-template-columns: 1fr;
  }

  .jraiepl-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .jraiepl-hero {
    border-radius: 20px;
  }

  .jraiepl-topic-grid {
    grid-template-columns: 1fr;
  }

  .jraiepl-card,
  .jraiepl-callout {
    grid-template-columns: 1fr;
  }

  .jraiepl-footer__inner {
    grid-template-columns: 1fr;
  }

  .jraiepl-footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .jraiepl-section,
  .jraiepl-card,
  .jraiepl-callout {
    padding: 22px;
  }

  .jraiepl-hero__content {
    padding: 38px 24px;
  }

  .jraiepl-topic-grid li {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .jraiepl-topic-grid li::before {
    width: 42px;
  }
}

/* ---------- Reduced motion and print accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .jraiepl-page,
  .jraiepl-section,
  .jraiepl-card,
  .jraiepl-callout {
    box-shadow: none;
  }

  .jraiepl-hero {
    color: #000000;
    background: #ffffff;
    border: 2px solid #000000;
  }

  .jraiepl-hero h1,
  .jraiepl-hero__lead,
  .jraiepl-eyebrow {
    color: #000000;
  }

  .jraiepl-footer {
    display: none;
  }
}
