/* Eclipse parchment module: loaded after site-pages.css. */
body.eclipse-page {
  --eclipse-paper-url: url("/assets/eclipse/eclipse-parchment-texture.png");
  --eclipse-paper-base: #dbc693;
  --eclipse-paper-warm: #efdca9;
  --eclipse-paper-edge: rgba(92, 55, 19, 0.24);
  --eclipse-paper-line: rgba(76, 48, 20, 0.34);
  --eclipse-paper-ink: #21170d;
  --eclipse-paper-muted: #654d2d;
  --eclipse-paper-green: #155f35;
}

body.eclipse-page .realm-intel-section,
body.eclipse-page .news-card,
body.eclipse-page .guild-info-section,
body.eclipse-page .apply-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--eclipse-paper-line);
  border-radius: 3px;
  background:
    radial-gradient(ellipse at 52% 18%, rgba(255, 246, 207, 0.44), transparent 58%),
    linear-gradient(90deg, rgba(88, 52, 18, 0.13), transparent 8%, transparent 92%, rgba(88, 52, 18, 0.12)),
    linear-gradient(180deg, rgba(255, 246, 213, 0.36), rgba(139, 91, 36, 0.14)),
    var(--eclipse-paper-url) center / cover no-repeat,
    var(--eclipse-paper-base);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 218, 0.5),
    inset 0 16px 38px rgba(255, 243, 198, 0.16),
    inset 0 -22px 42px rgba(92, 55, 19, 0.16),
    0 24px 58px rgba(0, 0, 0, 0.38);
}

body.eclipse-page .realm-intel-section::before,
body.eclipse-page .news-card::before,
body.eclipse-page .guild-info-section::before,
body.eclipse-page .apply-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--eclipse-paper-edge), transparent 5%, transparent 95%, var(--eclipse-paper-edge)),
    linear-gradient(180deg, rgba(103, 61, 21, 0.16), transparent 9%, transparent 89%, rgba(103, 61, 21, 0.2)),
    radial-gradient(circle at 18% 22%, rgba(255, 250, 221, 0.2), transparent 24%),
    radial-gradient(circle at 86% 80%, rgba(98, 58, 22, 0.12), transparent 30%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

body.eclipse-page .realm-intel-section::after,
body.eclipse-page .news-card::after,
body.eclipse-page .guild-info-section::after,
body.eclipse-page .apply-band::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: 2px;
  border: 1px solid rgba(80, 51, 23, 0.18);
  background:
    repeating-linear-gradient(0deg, rgba(82, 51, 20, 0.035) 0 1px, transparent 1px 11px),
    radial-gradient(circle at 22% 34%, rgba(82, 51, 20, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 64%, rgba(255, 250, 224, 0.14) 0 1px, transparent 2px);
  background-size: auto, 43px 37px, 61px 53px;
  opacity: 0.78;
  pointer-events: none;
}

body.eclipse-page .realm-intel-copy,
body.eclipse-page .news-card .card-head,
body.eclipse-page .guild-info-head,
body.eclipse-page .apply-band > div {
  border-bottom: 1px solid rgba(79, 49, 20, 0.26);
  padding-bottom: clamp(14px, 1.8vw, 20px);
}

body.eclipse-page .realm-intel-copy h2,
body.eclipse-page .news-card .card-head strong,
body.eclipse-page .guild-info-head h2,
body.eclipse-page .apply-band h2 {
  color: var(--eclipse-paper-ink);
  font-family: "LifeCraft", Georgia, "Times New Roman", serif !important;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 248, 218, 0.62);
}

body.eclipse-page .realm-intel-copy p,
body.eclipse-page .news-card p,
body.eclipse-page .feed-row em,
body.eclipse-page .guild-info-head p,
body.eclipse-page .guild-info-columns ol,
body.eclipse-page .info-list,
body.eclipse-page .apply-band p {
  color: var(--eclipse-paper-muted);
}

body.eclipse-page .realm-intel-copy span,
body.eclipse-page .news-card .card-head span,
body.eclipse-page .guild-info-head span,
body.eclipse-page .guild-info-columns article > span,
body.eclipse-page .apply-band > div > span,
body.eclipse-page .phase-map span,
body.eclipse-page .feed-row b {
  color: var(--eclipse-paper-green);
}

body.eclipse-page .phase-map b,
body.eclipse-page .source-strip a,
body.eclipse-page .feed-row,
body.eclipse-page .guild-info-columns article,
body.eclipse-page .apply-form {
  border: 1px solid rgba(69, 43, 18, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 248, 219, 0.52), rgba(148, 95, 36, 0.09)),
    rgba(248, 224, 171, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 219, 0.2),
    0 10px 24px rgba(73, 44, 18, 0.12);
}

body.eclipse-page .phase-map strong,
body.eclipse-page .guild-info-columns article b,
body.eclipse-page .apply-form label > span {
  color: var(--eclipse-paper-ink);
}

body.eclipse-page .phase-map em,
body.eclipse-page .source-strip a,
body.eclipse-page .guild-info-columns article em,
body.eclipse-page .apply-status {
  color: var(--eclipse-paper-muted);
}

body.eclipse-page .source-strip a {
  text-decoration-color: rgba(21, 95, 53, 0.36);
}

body.eclipse-page .source-strip a:hover,
body.eclipse-page .source-strip a:focus-visible {
  color: #0e4728;
  border-color: rgba(21, 95, 53, 0.46);
}

body.eclipse-page .apply-band {
  background:
    radial-gradient(ellipse at 28% 16%, rgba(255, 247, 213, 0.5), transparent 56%),
    linear-gradient(90deg, rgba(242, 225, 181, 0.96), rgba(230, 204, 142, 0.88)),
    linear-gradient(180deg, rgba(255, 246, 213, 0.34), rgba(132, 82, 30, 0.1)),
    var(--eclipse-paper-url) center / cover no-repeat,
    var(--eclipse-paper-base);
}

body.eclipse-page .apply-form input,
body.eclipse-page .apply-form select,
body.eclipse-page .apply-form textarea {
  border-color: rgba(68, 43, 18, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 247, 217, 0.54), rgba(155, 98, 38, 0.08)),
    rgba(255, 239, 197, 0.34);
  color: var(--eclipse-paper-ink);
  box-shadow: inset 0 1px 2px rgba(75, 45, 17, 0.1);
}

body.eclipse-page .apply-form input::placeholder,
body.eclipse-page .apply-form textarea::placeholder {
  color: rgba(83, 62, 36, 0.68);
}

body.eclipse-page .apply-form input:focus,
body.eclipse-page .apply-form select:focus,
body.eclipse-page .apply-form textarea:focus {
  border-color: rgba(21, 95, 53, 0.62);
  outline: 2px solid rgba(21, 95, 53, 0.16);
  outline-offset: 1px;
}

body.eclipse-page .apply-form button {
  border: 1px solid rgba(74, 47, 19, 0.42);
  color: #fff4d2;
  background:
    linear-gradient(180deg, rgba(45, 112, 70, 0.98), rgba(15, 73, 39, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px rgba(38, 68, 39, 0.26);
}

body.eclipse-page .apply-form button:hover,
body.eclipse-page .apply-form button:focus-visible {
  background:
    linear-gradient(180deg, rgba(56, 130, 82, 0.98), rgba(18, 86, 46, 0.98));
}

@media (max-width: 720px) {
  body.eclipse-page .realm-intel-copy,
  body.eclipse-page .news-card .card-head,
  body.eclipse-page .guild-info-head,
  body.eclipse-page .apply-band > div {
    padding-bottom: 12px;
  }

  body.eclipse-page .realm-intel-section,
  body.eclipse-page .news-card,
  body.eclipse-page .guild-info-section,
  body.eclipse-page .apply-band {
    background-size: auto, auto, auto, 145% auto, auto;
  }
}
