/* ================================================================
   Elden Ring - Dark Green & Gold Theme
   Loaded by every /elden-ring/ page after styles.css.
   Mirrors the Lies of P checklist system (er-*) with the game's
   deep forest-green palette and warm gold accents.
   Signature colours: #303F3D dark green, #F1D06C gold.
   ================================================================ */

:root {
  --er-primary: #5a7370;            /* muted sage-green (chrome) */
  --er-primary-bright: #7a9490;     /* hover/highlight */
  --er-primary-dim: rgba(90, 115, 112, 0.22);
  --er-primary-soft: rgba(90, 115, 112, 0.10);
  --er-secondary: #c9a857;          /* deep gold (headings) */
  --er-secondary-bright: #F1D06C;     /* bright gold accent */
  --er-secondary-dim: rgba(241, 208, 108, 0.16);
  --er-ergo: #F1D06C;               /* gold glow - links & area pills */
  --er-ergo-bright: #f8e49a;
  --er-ergo-dim: rgba(241, 208, 108, 0.14);
  --er-ergo-border: rgba(241, 208, 108, 0.42);
  --er-warning: #d4a843;            /* amber for warning boxes */
  --er-warning-dim: rgba(212, 168, 67, 0.14);
  --er-deep: #1a2220;
  --er-bg-dark: #303F3D;
  --er-bg-card: #3a4f4c;
  --er-bg-elev: #455956;
  --er-border: rgba(90, 115, 112, 0.28);
  --er-border-strong: rgba(241, 208, 108, 0.22);
  --er-text: #eef5f0;
  --er-text-dim: rgba(238, 245, 240, 0.90);
  --er-text-faint: rgba(238, 245, 240, 0.62);
}

/* ----------------------------------------------------------------
   Page background.
   Checklist pages only; profile/tracker pages keep the site default.
   ---------------------------------------------------------------- */
body[class*="er-"]:not(.profile-page):not(.profile-page-content) {
  background:
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(241, 208, 108, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 110%, rgba(90, 115, 112, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #303F3D 0%, #283532 55%, #1a2220 100%) !important;
  background-attachment: fixed !important;
  color: var(--er-text);
}
body[class*="er-"] .container { background: transparent !important; }
body[class*="er-"] .site-header { border-bottom-color: var(--er-border-strong) !important; }

/* Header colour split: the bright Ergo cyan is reserved for the
   "Track Progress" button only. The 100% Hub pill, section tabs and active
   pills use the game crimson (--game-color) / neutral chrome, never cyan.
   Re-localising --game-color on the tracker controls keeps their fill and
   hover glow cyan while the rest of the row stays crimson. */
body[class*="er-"] .site-header-new .header-tracker-tab,
body[class*="er-"] .site-header-new .header-tracker-pill {
  --game-color: #F1D06C;
  color: #1a1408 !important;
  text-shadow: none !important;
}
body[class*="er-"] .site-header-new .header-tracker-tab:hover,
body[class*="er-"] .site-header-new .header-tracker-pill:hover {
  color: #0d0a04 !important;
}

/* Page <header> defaults to align-items: center which would centre the
   warning box, intro paragraphs and other prose blocks.  Stretch the
   children so they fill the column; the H1 keeps text-align: center. */
body[class*="er-"] header {
  align-items: stretch;
}
body[class*="er-"] header h1 {
  color: var(--er-secondary-bright) !important;
  text-shadow: 0 0 30px rgba(241, 208, 108, 0.35);
}
body[class*="er-"] .breadcrumbs a { color: var(--er-primary) !important; text-decoration: none; }
body[class*="er-"] .breadcrumbs a:hover { text-decoration: underline; color: var(--er-primary-bright) !important; }

/* ----------------------------------------------------------------
   .article-content cascade reset
   ---------------------------------------------------------------- */
body[class*="er-"] .article-content {
  font-size: inherit;
  line-height: inherit;
  color: var(--er-text);
  overflow-x: visible;
}
body[class*="er-"] .article-content img {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  max-width: 100%;
  height: auto;
}
body[class*="er-"] .article-content a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}
body[class*="er-"] .article-content > p,
body[class*="er-"] .page-intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--er-text-dim);
  margin: 0 0 12px 0;
}
body[class*="er-"] .article-content > p a,
body[class*="er-"] .page-intro a {
  color: var(--er-ergo);
  text-decoration: underline;
  text-decoration-color: rgba(241, 208, 108, 0.5);
  text-underline-offset: 2px;
  font-weight: 600;
}
body[class*="er-"] .article-content > p a:hover,
body[class*="er-"] .page-intro a:hover {
  color: var(--er-ergo-bright);
  text-decoration-color: var(--er-ergo-bright);
  text-decoration-thickness: 2px;
}
body[class*="er-"] .article-content > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--er-secondary-bright);
  margin: 28px 0 12px 0;
  line-height: 1.35;
  letter-spacing: -0.2px;
  border-bottom: none;
  padding-bottom: 0;
}
body[class*="er-"] .article-content .region-stat {
  color: var(--er-secondary-bright);
  font-weight: 700;
}
body[class*="er-"] .article-content > h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--er-secondary-bright);
  margin: 22px 0 10px 0;
  line-height: 1.4;
}
body[class*="er-"] .article-content > p strong,
body[class*="er-"] .article-content > ul strong,
body[class*="er-"] .article-content > ul li strong,
body[class*="er-"] .article-content > ol strong {
  color: var(--er-text);
}
body[class*="er-"] .article-content table strong,
body[class*="er-"] .article-content .item-info strong,
body[class*="er-"] .article-content .description-cell strong { color: inherit; }

/* Bullet lists in intro / info copy: tight spacing, custom cyan markers,
   no wasted left gutter. */
body[class*="er-"] .article-content > ul,
body[class*="er-"] .article-content > ol {
  margin: 4px 0 16px 0;
  padding-left: 4px;
  list-style: none;
}
body[class*="er-"] .article-content > ul > li,
body[class*="er-"] .article-content > ol > li {
  position: relative;
  margin: 0 0 6px 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--er-text-dim);
}
body[class*="er-"] .article-content > ul > li::marker {
  content: none;
}
body[class*="er-"] .article-content > ul > li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--er-ergo);
  box-shadow: 0 0 6px rgba(241, 208, 108, 0.55);
}
body[class*="er-"] .article-content > ol {
  counter-reset: er-ol;
}
body[class*="er-"] .article-content > ol > li {
  counter-increment: er-ol;
}
body[class*="er-"] .article-content > ol > li::before {
  content: counter(er-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--er-ergo);
  font-weight: 700;
  font-size: 13px;
}

/* ----------------------------------------------------------------
   Quick-link grid (top of hub page).
   ---------------------------------------------------------------- */
.er-quick-links {
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(90, 115, 112, 0.10) 0%, transparent 70%),
    linear-gradient(135deg, rgba(90, 115, 112, 0.06) 0%, rgba(48, 63, 61, 0.95) 50%, rgba(241, 208, 108, 0.05) 100%);
  border: 1px solid var(--er-border-strong);
  border-radius: 14px;
  padding: 16px 14px;
  margin: 22px -20px 18px -20px;
  width: calc(100% + 40px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  box-shadow: 0 0 30px rgba(90, 115, 112, 0.10);
}
.er-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 102px;
  padding: 12px 8px;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  color: inherit;
  background: rgba(26, 34, 32, 0.5);
  border: 1px solid var(--er-border);
  box-sizing: border-box;
}
.er-quick-link::after { display: none !important; }
.er-quick-link:hover {
  background: rgba(90, 115, 112, 0.08);
  border-color: rgba(90, 115, 112, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}
.er-quick-link img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.er-quick-link-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--er-primary-bright);
  line-height: 1;
}
.er-quick-link-name {
  font-size: 12px;
  color: var(--er-text);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  max-width: 11em;
}
/* Muted / "coming soon" quick-link variant */
.er-quick-link.muted {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: auto;
}
.er-quick-link.muted:hover {
  background: rgba(26, 34, 32, 0.5);
  border-color: var(--er-border);
  box-shadow: none;
  transform: none;
}
.er-quick-link.muted .er-quick-link-number {
  color: var(--er-text-faint);
}

@media (max-width: 1024px) {
  .er-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 12px;
  }
  .er-quick-link {
    min-height: 96px;
    padding: 10px 6px;
  }
}
/* Overture checklist + hub: skip-to-section / Overture grid */
body.er-overture-checklist .er-skip-section,
body.er-index .er-skip-section {
  margin: 18px 0 22px 0;
  width: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
body.er-index .er-hub-overture-grid {
  margin-top: 0;
}
body.er-index .er-hub-grid-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--er-secondary-bright);
  margin: 22px 0 12px 0;
}
body.er-index header > .er-hub-grid-title:first-of-type {
  margin-top: 18px;
}
body.er-index .er-base-game-links {
  margin-top: 0;
}
body.er-index .er-hub-checklists-heading {
  color: var(--er-secondary-bright);
}
body.er-index .er-hub-checklists-heading .er-checklists-label {
  color: var(--er-secondary-bright);
}
body.er-index .er-row-list .er-row-title {
  color: #fff;
}
body.er-index .er-row-list .er-row:hover .er-row-title {
  color: #fff;
}
body.er-index .er-quick-link.muted:not(:has(img)) {
  justify-content: center;
}
body.er-overture-checklist .er-section-heading {
  scroll-margin-top: 80px;
}
body.er-overture-checklist .er-skip-link .er-quick-link-number,
body.er-index .er-skip-link .er-quick-link-number {
  font-size: 16px;
}
@media (max-width: 1200px) {
  body.er-overture-checklist .er-skip-section,
  body.er-index .er-skip-section {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  body.er-overture-checklist .er-skip-section,
  body.er-index .er-skip-section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body.er-overture-checklist .er-skip-section,
  body.er-index .er-skip-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 14px 0 18px 0;
  }
  body.er-overture-checklist .er-skip-link,
  body.er-index .er-skip-link {
    min-height: 84px;
  }
  body.er-overture-checklist .er-skip-link .er-quick-link-number,
  body.er-index .er-skip-link .er-quick-link-number {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .er-quick-links {
    margin: 16px -10px 14px -10px;
    width: calc(100% + 20px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 10px;
    gap: 8px;
    border-radius: 12px;
  }
  .er-quick-link {
    min-height: 92px;
    padding: 10px 6px;
    gap: 6px;
    border-radius: 10px;
  }
  .er-quick-link img { width: 38px; height: 38px; }
  .er-quick-link-number { font-size: 18px; }
  .er-quick-link-name { font-size: 11px; max-width: 100%; }
}

/* ----------------------------------------------------------------
   Checklist page intros
   ---------------------------------------------------------------- */
body[class*="er-"] .er-checklist-intro-overview {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--er-secondary-bright);
  margin: 0 0 12px 0;
}
body[class*="er-"] .er-checklist-intro-section {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--er-secondary-bright);
  margin: 20px 0 10px 0;
}
body[class*="er-"] .er-checklist-intro-locator {
  font-style: italic;
  color: var(--er-text-faint);
  border-left: 3px solid var(--er-primary);
  padding-left: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

/* Skip-to region nav (compact inline links) */
body[class*="er-"] .er-skip-nav {
  margin: 0 0 18px 0;
  padding: 12px 14px;
  border: 1px solid var(--er-border-strong);
  border-radius: 10px;
  background: rgba(241, 208, 108, 0.06);
}
body[class*="er-"] .er-skip-nav-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--er-text-dim);
}
body[class*="er-"] .er-skip-nav-line + .er-skip-nav-line {
  margin-top: 8px;
}
body[class*="er-"] .er-skip-nav-label {
  color: var(--er-text);
  font-weight: 700;
  margin-right: 4px;
}
body[class*="er-"] .er-skip-nav a {
  color: var(--er-secondary-bright);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(241, 208, 108, 0.45);
  text-underline-offset: 2px;
}
body[class*="er-"] .er-skip-nav a::after { display: none !important; }
body[class*="er-"] .er-skip-nav a:hover {
  color: var(--er-ergo-bright);
  text-decoration-color: var(--er-secondary-bright);
}
body.er-all-sites-of-grace .er-section-heading,
body.er-all-sites-of-grace .er-subsection-heading {
  scroll-margin-top: 140px;
}
html:has(body.er-all-sites-of-grace) {
  scroll-padding-top: 140px;
}
body.er-all-bosses .er-section-heading,
body.er-all-bosses .er-subsection-heading {
  scroll-margin-top: 140px;
}
html:has(body.er-all-bosses) {
  scroll-padding-top: 140px;
}
body.er-all-quests .er-section-heading,
body.er-all-quests .er-subsection-heading,
body.er-all-quests tr[id] {
  scroll-margin-top: 140px;
}
html:has(body.er-all-quests) {
  scroll-padding-top: 140px;
}

body.er-all-quests .er-quest-guide-block {
  margin: 0 0 10px 0;
  line-height: 1.65;
  font-size: 15px;
}
body.er-all-quests .er-quest-guide-step {
  margin: 0 0 10px 0;
  padding-left: 4px;
  line-height: 1.65;
  font-size: 15px;
}
body.er-all-quests .er-quest-guide-step strong,
body.er-all-quests .er-quest-guide-list li strong {
  color: var(--er-secondary-bright);
}
body.er-all-quests .er-quest-guide-heading {
  margin: 18px 0 8px 0;
  font-size: 15px;
  color: var(--er-secondary-bright);
}
body.er-all-quests .er-quest-guide-heading:first-child {
  margin-top: 0;
}
body.er-all-quests .er-quest-guide-note {
  margin: 0 0 10px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--er-secondary-bright);
  background: rgba(241, 208, 108, 0.06);
  line-height: 1.65;
  font-size: 15px;
}
body.er-all-quests .er-quest-guide-note strong {
  color: var(--er-secondary-bright);
}
body.er-all-quests .er-quest-guide-list {
  margin: 0 0 12px 0;
  padding-left: 4px;
  list-style: none;
  line-height: 1.65;
  font-size: 15px;
}
body.er-all-quests .er-quest-guide-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
}
body.er-all-quests .er-quest-guide-list li::marker {
  content: none;
}
body.er-all-quests .er-quest-guide-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--er-secondary-bright);
  box-shadow: 0 0 6px rgba(241, 208, 108, 0.55);
}
body.er-all-quests .er-quest-guide-list li:last-child {
  margin-bottom: 0;
}
body.er-all-quests .er-quest-related {
  margin: 16px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  line-height: 1.6;
}
body.er-all-quests .er-quest-inline-link,
body.er-all-quests .er-quest-related-link,
body[class*="er-all-"] .description-cell a.er-item-link-inline,
body[class*="er-all-"] .description-cell a.er-grace-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--er-secondary-bright);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.45);
}
body.er-all-quests .er-quest-inline-link:hover,
body.er-all-quests .er-quest-related-link:hover,
body[class*="er-all-"] .description-cell a.er-item-link-inline:hover,
body[class*="er-all-"] .description-cell a.er-grace-link-inline:hover {
  color: var(--er-ergo-bright);
  text-decoration-color: var(--er-secondary-bright);
}
body.er-all-quests .description-cell a.er-grace-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
body[class*="er-all-"] .description-cell .er-grace-link-icon,
body[class*="er-all-"] .description-cell .er-item-link-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  vertical-align: middle;
}
body.er-all-quests .er-quest-portraits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
body.er-all-quests .er-quest-portraits .er-description-media {
  flex: 1 1 min(520px, 100%);
  max-width: min(520px, 100%);
  margin: 0;
}
body.er-all-quests .er-quest-portraits .er-description-img {
  width: 100%;
  max-width: min(520px, 100%);
}

body[class*="er-"] .er-overture-crosslink-footer {
  margin-top: 28px;
}

/* ----------------------------------------------------------------
   Section heading
   ---------------------------------------------------------------- */
.er-section-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--er-secondary-bright);
  margin: 28px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--er-secondary-dim);
}

/* Spreadsheet subsection (Subsection:) - sits under a Section h2 */
.er-subsection-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--er-secondary-bright);
  margin: 22px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--er-secondary-dim);
}

.article-content > .er-section-heading + .er-subsection-heading {
  margin-top: 14px;
}

/* ----------------------------------------------------------------
   Row list - flat, single-line title + arrow.
   ---------------------------------------------------------------- */
.er-row-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.er-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--er-bg-card);
  border: 1px solid var(--er-border);
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: inherit !important;
}
.er-row::after { display: none !important; }
.er-row:hover {
  border-color: var(--er-primary);
  background: linear-gradient(180deg, rgba(90, 115, 112, 0.06) 0%, var(--er-bg-card) 100%);
  transform: translateX(3px);
  box-shadow: 0 4px 18px rgba(90, 115, 112, 0.12);
}
.er-row.featured {
  border-color: var(--er-primary);
  background: linear-gradient(135deg, rgba(90, 115, 112, 0.08) 0%, var(--er-bg-card) 100%);
}
.er-row-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.er-row-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.er-row-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--er-primary-bright);
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0;
}
.er-row-arrow {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--er-primary);
  transition: transform 0.2s ease;
}
.er-row:hover .er-row-arrow { transform: translateX(3px); color: var(--er-primary-bright); }
/* Disabled / "Coming soon" row */
.er-row.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.er-row.disabled:hover {
  transform: none;
  border-color: var(--er-border);
  background: var(--er-bg-card);
  box-shadow: none;
}

/* Hub guide links: wide thumbnail instead of square icon */
.er-row.er-row-with-thumb {
  align-items: center;
  padding: 12px 16px;
  gap: 16px;
}
.er-row-thumb {
  flex: 0 0 240px;
  width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--er-border-strong);
  background: rgba(26, 34, 32, 0.85);
  box-shadow: inset 0 0 0 1px rgba(90, 115, 112, 0.06);
}
.er-row-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
@media (max-width: 520px) {
  .er-row.er-row-with-thumb {
    flex-wrap: wrap;
    align-items: center;
  }
  .er-row-thumb {
    flex: 1 1 100%;
    width: 100%;
    max-height: 200px;
  }
  .er-row.er-row-with-thumb .er-row-title {
    flex: 1;
    min-width: 0;
  }
}

.er-soon-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--er-secondary-bright);
  background: var(--er-secondary-dim);
  border: 1px solid rgba(241, 208, 108, 0.45);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ----------------------------------------------------------------
   Boxes - tip / important / warning.
     .er-box.normal    -> Steel Normal (default)
     .er-box.important -> Steel Important (stronger left-stripe)
     .er-box.warning   -> Warning / brass
     .er-box.danger    -> Crimson (boss warnings, missable content)
   Backwards-compatible aliases: .tip, .depth, .warn keep working.
   ---------------------------------------------------------------- */
.er-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--er-border);
  background: var(--er-primary-soft);
  margin: 12px 0;
}
.er-box-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.er-box-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.er-box-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.er-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--er-primary-bright);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 4px 0;
}
.er-box-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--er-text);
}

/* Variants */
.er-box.normal,
.er-box.tip {
  background: var(--er-primary-soft);
  border-color: var(--er-border-strong);
}
.er-box.important,
.er-box.depth {
  background: linear-gradient(90deg, rgba(90, 115, 112, 0.12) 0%, rgba(26, 34, 32, 0.92) 100%);
  border-color: var(--er-border-strong);
  border-left: 4px solid var(--er-primary);
}
.er-box.warning,
.er-box.warn {
  background: var(--er-warning-dim);
  border-color: rgba(201, 162, 58, 0.45);
  border-left: 4px solid var(--er-warning);
}
.er-box.warning .er-box-title,
.er-box.warn .er-box-title {
  color: var(--er-warning);
}
/* Danger / crimson box (boss warnings, missable content) */
.er-box.danger {
  background: linear-gradient(90deg, rgba(241, 208, 108, 0.18) 0%, rgba(26, 34, 32, 0.92) 100%);
  border-color: rgba(241, 208, 108, 0.45);
  border-left: 4px solid var(--er-secondary);
}
.er-box.danger .er-box-title {
  color: var(--er-secondary-bright);
}

/* Hub launch notice: multi-paragraph + list (icon aligned to top) */
.er-box.er-hub-launch-notice {
  align-items: flex-start;
}
.er-box.er-hub-launch-notice .er-box-icon {
  margin-top: 2px;
}
.er-box-body ul {
  margin: 12px 0 0 0;
  padding-left: 1.25em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--er-text);
}
.er-box-body li {
  margin: 0.35em 0;
}

/* ----------------------------------------------------------------
   Stats / progress card on checklist pages
   ---------------------------------------------------------------- */
body[class*="er-"] .location-stats {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 12px 0;
}
body[class*="er-"] .stat-item {
  padding: 10px 22px;
  background: var(--er-bg-card);
  border-radius: 10px;
  border: 1px solid var(--er-border);
  text-align: center;
}
body[class*="er-"] .stat-value {
  font-size: 22px;
  font-weight: 700;
  display: block;
  color: var(--er-primary-bright);
}
body[class*="er-"] .stat-label {
  font-size: 11px;
  color: var(--er-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 4px;
  display: block;
}
body[class*="er-"] .stat-item.progress-zero { border-color: rgba(90, 115, 112, 0.3); }
body[class*="er-"] .stat-item.progress-zero .stat-value { color: var(--er-text-faint); }
body[class*="er-"] .stat-item.progress-low { border-color: var(--er-warning); }
body[class*="er-"] .stat-item.progress-low .stat-value { color: var(--er-warning); }
body[class*="er-"] .stat-item.progress-medium,
body[class*="er-"] .stat-item.progress-high {
  border-color: var(--er-primary);
}
body[class*="er-"] .stat-item.progress-medium .stat-value,
body[class*="er-"] .stat-item.progress-high .stat-value {
  color: var(--er-primary);
}
body[class*="er-"] .stat-item.progress-complete {
  border-color: var(--er-primary-bright);
  box-shadow: 0 0 12px rgba(90, 115, 112, 0.35);
}

/* Progress counters in section headers */
body[class*="er-"] .progress-counter.progress-zero { color: var(--er-text-faint) !important; }
body[class*="er-"] .progress-counter.progress-low { color: var(--er-warning) !important; }
body[class*="er-"] .progress-counter.progress-medium,
body[class*="er-"] .progress-counter.progress-high { color: var(--er-primary) !important; }
body[class*="er-"] .progress-counter.progress-complete { color: var(--er-primary-bright) !important; }

/* ----------------------------------------------------------------
   Checklist tables
   ---------------------------------------------------------------- */
body[class*="er-"] .card {
  background: linear-gradient(180deg, rgba(20, 27, 32, 0.9) 0%, rgba(26, 34, 32, 0.95) 100%) !important;
  border: 1px solid var(--er-border) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(90, 115, 112, 0.04) !important;
}
body[class*="er-"] .section-header {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to right, rgba(241, 208, 108, 0.10) 0%, transparent 100%) !important;
  border-left: 4px solid var(--er-secondary-bright) !important;
  padding: 10px 14px !important;
}
body[class*="er-"] .section-header .progress-counter {
  flex-shrink: 0;
}
body[class*="er-"] .section-header .section-header-controls {
  margin-left: auto !important;
  flex-shrink: 0;
}
body[class*="er-"] .section-header h2,
body[class*="er-"] .section-header h3,
body[class*="er-"] .section-header .er-card-table-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: var(--er-secondary-bright) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
body[class*="er-"] .section-header h2 strong,
body[class*="er-"] .section-header h3 strong,
body[class*="er-"] .section-header .er-card-table-title strong {
  color: var(--er-secondary-bright) !important;
  font-weight: 600 !important;
}
body[class*="er-"] .section-title { color: var(--er-primary-bright) !important; }

/* Table chrome */
body[class*="er-"] table thead tr {
  background: linear-gradient(180deg, rgba(241, 208, 108, 0.12) 0%, rgba(241, 208, 108, 0.04) 100%);
  border-bottom: 2px solid var(--er-secondary-bright);
}
body[class*="er-"] table thead th {
  color: var(--er-secondary-bright) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 6px !important;
  line-height: 1.2 !important;
}
body[class*="er-"] table tbody tr {
  background: rgba(20, 27, 32, 0.55);
  border-bottom: 1px solid var(--er-border);
}
body[class*="er-"] table tbody tr:hover { background: rgba(90, 115, 112, 0.06); }

body[class*="er-"] input[type="checkbox"] {
  border-color: rgba(90, 115, 112, 0.5) !important;
  background: rgba(26, 34, 32, 0.7) !important;
}
body[class*="er-"] input[type="checkbox"]:checked {
  background: var(--er-primary) !important;
  border-color: var(--er-primary-bright) !important;
  box-shadow: 0 0 8px rgba(90, 115, 112, 0.6);
}

body[class*="er-"] .collapse-btn,
body[class*="er-"] .options-btn {
  border-color: var(--er-border-strong) !important;
  color: var(--er-text) !important;
}
body[class*="er-"] .collapse-btn:hover,
body[class*="er-"] .options-btn:hover {
  background: var(--er-primary-dim) !important;
  border-color: var(--er-primary) !important;
  color: var(--er-primary-bright) !important;
}
body[class*="er-"] .table-action-btn { color: var(--er-primary-bright) !important; }
body[class*="er-"] .table-action-btn:hover { background: var(--er-primary-dim) !important; }

/* Item info column - Name / Area / Category */
body[class*="er-"] .item-info .item-name {
  color: var(--er-text);
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
body[class*="er-"] .item-info .item-biome {
  font-size: 12px;
  color: var(--er-text-dim);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
body[class*="er-"] .item-info .item-biome .er-area-field-label {
  flex-shrink: 0;
  color: inherit;
}
body[class*="er-"] .item-info .item-biome .er-area-pill-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
body[class*="er-"] .item-info .item-type {
  font-size: 11px;
  color: var(--er-text-faint);
  font-style: italic;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Region / Site of Grace meta lines (plain linked text, no pills) */
body[class*="er-"] .item-info .item-meta-line {
  font-size: 12px;
  color: var(--er-text-dim);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  line-height: 1.45;
}
body[class*="er-"] .item-info .item-meta-line .er-meta-label {
  flex-shrink: 0;
  color: inherit;
}
body[class*="er-"] .item-info a.er-region-link,
body[class*="er-"] .item-info a.er-grace-link {
  color: var(--er-secondary-bright) !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-color: rgba(241, 208, 108, 0.45) !important;
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-shadow 0.15s ease, text-decoration-color 0.15s ease;
}
body[class*="er-"] .item-info a.er-region-link:visited,
body[class*="er-"] .item-info a.er-grace-link:visited {
  color: #d4b85a !important;
  text-decoration-color: rgba(212, 184, 90, 0.45) !important;
}
body[class*="er-"] .item-info a.er-region-link:hover,
body[class*="er-"] .item-info a.er-grace-link:hover,
body[class*="er-"] .item-info a.er-region-link:focus-visible,
body[class*="er-"] .item-info a.er-grace-link:focus-visible {
  color: var(--er-ergo-bright) !important;
  text-decoration-color: var(--er-ergo-bright) !important;
  text-decoration-thickness: 2px;
  text-shadow: 0 0 10px rgba(241, 208, 108, 0.4);
}
body[class*="er-"] .item-info a.er-region-link::after,
body[class*="er-"] .item-info a.er-grace-link::after,
body[class*="er-"] .item-meta-line a::after {
  content: none !important;
  display: none !important;
}
body[class*="er-"] .item-info a.er-grace-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
body[class*="er-"] .item-info .er-grace-link-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  vertical-align: middle;
}

/* Description column - smaller font */
body[class*="er-"] .description-cell {
  color: var(--er-text-dim);
  font-size: 12.5px;
  line-height: 1.5;
}
body[class*="er-"] .description-cell p { margin: 0 0 4px 0; }
body[class*="er-"] .description-cell p:last-child { margin-bottom: 0; }
body[class*="er-"] .description-cell strong { color: var(--er-primary-bright); }
body[class*="er-"] .er-missable {
  color: #e85d5d !important;
  font-weight: 700;
}
body[class*="er-"] .er-ng-plus {
  color: #e85d5d;
  font-weight: 600;
}
body[class*="er-"] a.er-area-pill-link {
  text-decoration: none;
  color: inherit;
}
body[class*="er-"] a.er-area-pill-link:hover {
  border-color: var(--er-primary-bright);
  color: var(--er-primary-bright);
}
body[class*="er-"] .er-cv-section-label {
  color: #e07a7a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 0 0 6px 0;
}
body[class*="er-"] .er-cv-puzzle-block {
  margin-top: 14px;
}
body[class*="er-"] .er-riddle-quote {
  font-style: italic;
}
body[class*="er-"] .er-preorder-note {
  font-style: italic;
  margin-top: 8px;
}
body[class*="er-"] .er-subheading {
  font-size: 13px;
  font-weight: 700;
  color: var(--er-primary-bright);
  margin: 12px 0 6px 0;
}
body[class*="er-"] .er-bullet-list {
  margin: 6px 0 8px 0;
  padding-left: 1.25em;
}
body[class*="er-"] .er-bullet-list li {
  margin-bottom: 4px;
}
/* Cross-links inside checklist table descriptions */
body[class*="er-"] .description-cell a:not(.er-area-pill) {
  color: var(--er-secondary-bright) !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(241, 208, 108, 0.45) !important;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.15s ease, text-shadow 0.15s ease, text-decoration-color 0.15s ease;
}
body[class*="er-"] .description-cell a:not(.er-area-pill):hover {
  color: var(--er-ergo-bright) !important;
  text-decoration-color: var(--er-ergo-bright) !important;
  text-decoration-thickness: 2px;
  text-shadow: 0 0 10px rgba(241, 208, 108, 0.35);
}
body[class*="er-"] .description-cell a:not(.er-area-pill)::after {
  content: none !important;
  display: none !important;
}

/* Ergo currency highlight (e.g. "2000 Ergo") */
.er-ergo-amount {
  color: var(--er-ergo-bright);
  font-weight: 700;
  white-space: nowrap;
}

/* Inline reference images below description copy (never above the paragraphs) */
body[class*="er-"] .description-cell .er-description-media {
  margin: 12px 0 0 0;
  padding: 0;
}
body[class*="er-"] .description-cell .er-description-media + p {
  margin-top: 18px;
}
body[class*="er-"] .description-cell .er-description-img {
  display: block;
  max-width: min(520px, 100%);
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--er-border);
}
body[class*="er-"] .description-cell img.er-deferred-img:not([src]) {
  min-height: 280px;
  background: rgba(241, 208, 108, 0.06);
}

/* Bigger checklist icons */
body[class*="er-"] .checklist-icon {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  object-fit: contain !important;
  border: 0 !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  display: block;
}
body[class*="er-"] table tbody tr td:nth-child(2) {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  padding: 8px 4px !important;
  text-align: center;
  vertical-align: middle;
  overflow: visible !important;
}

@media (max-width: 768px) {
  body[class*="er-"] .checklist-icon {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }
  body[class*="er-"] table tbody tr td:nth-child(2) {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
  }

  body[class*="er-"] .article-content table:has(colgroup) {
    table-layout: fixed !important;
    width: 100% !important;
  }
  body[class*="er-"] .article-content table:has(colgroup) colgroup col:nth-child(1) {
    width: 42px !important;
  }
  body[class*="er-"] .article-content table:has(colgroup) colgroup col:nth-child(2) {
    width: 52px !important;
  }
  body[class*="er-"] .article-content table:has(colgroup) colgroup col:nth-child(3) {
    width: 24% !important;
  }
  body[class*="er-"] .article-content table:has(colgroup) colgroup col:nth-child(4) {
    width: auto !important;
  }
  body[class*="er-"] .article-content table:has(colgroup) thead th:first-child,
  body[class*="er-"] .article-content table:has(colgroup) tbody td:first-child {
    width: 42px !important;
    max-width: 42px !important;
    padding: 6px 4px !important;
    box-sizing: border-box;
  }
  body[class*="er-"] .article-content table:has(colgroup) tbody td:first-child {
    vertical-align: middle !important;
  }
  body[class*="er-"] .article-content table:has(colgroup) thead th:nth-child(3),
  body[class*="er-"] .article-content table:has(colgroup) tbody td:nth-child(3) {
    min-width: 0 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 8px 6px !important;
    vertical-align: middle !important;
  }
  body[class*="er-"] .article-content table:has(colgroup) thead th:nth-child(4),
  body[class*="er-"] .article-content table:has(colgroup) tbody td:nth-child(4) {
    min-width: 0 !important;
    padding: 8px 6px !important;
    vertical-align: middle !important;
  }
  body[class*="er-"] .article-content table:has(colgroup) .item-info {
    min-width: 0;
  }
  /* Area label on its own line; pills wrap below */
  body[class*="er-"] .item-info .item-meta-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  body[class*="er-"] .item-info .item-biome {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  body[class*="er-"] .item-info .item-biome .er-area-pill-row {
    width: 100%;
    gap: 8px;
  }
  body[class*="er-"] .er-area-pill {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 5px;
  }
}

/* ----------------------------------------------------------------
   Area / region pills (Krat districts).
   One distinct colour token per area; add more as data lands.
   ---------------------------------------------------------------- */
.er-area-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--er-ergo-dim);
  color: var(--er-ergo-bright);
  border: 1px solid var(--er-ergo-border);
  max-width: 100%;
  box-sizing: border-box;
  vertical-align: middle;
  word-break: break-word;
}
/* All chapter / area pills share the Ergo cyan look. The tokens below are
   kept as aliases so existing markup keeps working, but they all resolve to
   the same cyan rather than per-district colours. */
.er-area-pill.er-ar-ergo,
.er-area-pill.er-ar-hotel,
.er-area-pill.er-ar-station,
.er-area-pill.er-ar-factory,
.er-area-pill.er-ar-cathedral,
.er-area-pill.er-ar-swamp,
.er-area-pill.er-ar-unknown,
.er-area-pill.er-ar-all-areas {
  background: var(--er-ergo-dim);
  color: var(--er-ergo-bright);
  border-color: var(--er-ergo-border);
}

a.er-area-pill {
  text-decoration: none;
  cursor: pointer;
}
a.er-area-pill:hover {
  filter: brightness(1.06);
}
a.er-area-pill:focus-visible {
  outline: 2px solid var(--er-ergo-bright);
  outline-offset: 2px;
}

.er-danger {
  color: var(--er-secondary-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11.5px;
}

/* Boss / NPC disposition openers */
.er-disposition-boss {
  color: var(--er-secondary-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11.5px;
}
.er-disposition-friendly {
  color: var(--er-primary-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11.5px;
}

/* Buttons */
.er-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid var(--er-primary);
  background: var(--er-primary-dim);
  color: var(--er-primary-bright);
  cursor: pointer;
}
.er-btn:hover {
  background: var(--er-primary);
  color: var(--er-deep);
  box-shadow: 0 4px 18px rgba(90, 115, 112, 0.35);
}
.er-btn.secondary {
  border-color: var(--er-secondary);
  background: var(--er-secondary-dim);
  color: var(--er-secondary-bright);
}
.er-btn.secondary:hover {
  background: var(--er-secondary);
  color: #160404;
  box-shadow: 0 4px 18px rgba(241, 208, 108, 0.4);
}

/* Box-style label heading above the box examples */
.er-boxes-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--er-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin: 18px 0 6px 0;
}

/* ----------------------------------------------------------------
   Element stash - reusable design pieces in one place.
   ---------------------------------------------------------------- */
.er-stash-section {
  margin-top: 32px;
  padding: 18px 18px 22px 18px;
  border: 1px dashed var(--er-border-strong);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(90, 115, 112, 0.04) 0%, rgba(26, 34, 32, 0.6) 100%);
}
.er-stash-section > .er-stash-intro {
  font-size: 13.5px;
  color: var(--er-text-dim);
  margin: 0 0 14px 0;
}
.er-stash-section code {
  background: rgba(90, 115, 112, 0.10);
  border: 1px solid var(--er-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  color: var(--er-primary-bright);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.er-stash-group {
  margin: 18px 0 0 0;
}
.er-stash-group:first-of-type { margin-top: 0; }
.er-stash-group-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--er-primary-bright);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--er-border);
}

/* Icon library grid */
.er-stash-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.er-stash-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: rgba(26, 34, 32, 0.6);
  border: 1px solid var(--er-border);
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.er-stash-icon:hover {
  border-color: var(--er-primary);
  transform: translateY(-2px);
}
.er-stash-icon img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.er-stash-icon .er-stash-file {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--er-text-dim);
  word-break: break-all;
  line-height: 1.3;
}

/* Generic stash row */
.er-stash-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(26, 34, 32, 0.55);
  border: 1px solid var(--er-border);
  border-radius: 10px;
  margin: 0 0 10px 0;
}
.er-stash-row:last-child { margin-bottom: 0; }
.er-stash-row-label {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--er-text-dim);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.er-stash-row-label strong {
  display: block;
  color: var(--er-primary-bright) !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.er-stash-row-demo > * { margin: 0 !important; }

/* Inline pill row used to demo all area/danger pills together */
.er-stash-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 700px) {
  .er-stash-row {
    grid-template-columns: 1fr;
  }
  .er-stash-row-label { order: 2; }
  .er-stash-row-demo { order: 1; }
}

/* Strip the auto-arrow that styles.css adds to ::after on links. */
body[class*="er-"] .er-btn::after,
body[class*="er-"] .er-row::after,
body[class*="er-"] .er-quick-link::after,
body[class*="er-"] .container table .item-info a::after,
body[class*="er-"] .container td .item-info a::after { content: none !important; display: none !important; }

/* Elden Ring table links: warm grace-gold instead of global cyan */
body[class*="er-"] .container table a:not(.site-header a):not(.footer-links a):not(.footer a),
body[class*="er-"] .container td a:not(.site-header a):not(.footer-links a):not(.footer a),
body[class*="er-"] .container th a:not(.site-header a):not(.footer-links a):not(.footer a),
body[class*="er-"] table:not(.site-header table):not(.footer table) a,
body[class*="er-"] td:not(.site-header td):not(.footer td) a,
body[class*="er-"] th:not(.site-header th):not(.footer th) a {
  color: var(--er-secondary-bright) !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(241, 208, 108, 0.45) !important;
  text-underline-offset: 2px;
}
body[class*="er-"] .container table a:not(.site-header a):not(.footer-links a):not(.footer a):visited,
body[class*="er-"] .container td a:not(.site-header a):not(.footer-links a):not(.footer a):visited,
body[class*="er-"] table:not(.site-header table):not(.footer table) a:visited,
body[class*="er-"] td:not(.site-header td):not(.footer td) a:visited {
  color: #d4b85a !important;
  text-decoration-color: rgba(212, 184, 90, 0.45) !important;
}
body[class*="er-"] .container table a:not(.site-header a):not(.footer-links a):not(.footer a):hover,
body[class*="er-"] .container td a:not(.site-header a):not(.footer-links a):not(.footer a):hover,
body[class*="er-"] table:not(.site-header table):not(.footer table) a:hover,
body[class*="er-"] td:not(.site-header td):not(.footer td) a:hover {
  color: var(--er-ergo-bright) !important;
  text-decoration-color: var(--er-ergo-bright) !important;
  text-decoration-thickness: 2px;
  text-shadow: 0 0 10px rgba(241, 208, 108, 0.35);
}
body[class*="er-"] .container table a:not(:has(img))::after,
body[class*="er-"] .container td a:not(:has(img))::after,
body[class*="er-"] table a:not(:has(img))::after,
body[class*="er-"] td a:not(:has(img))::after {
  content: none !important;
  display: none !important;
}

/* ----------------------------------------------------------------
   Guide pages (long-form articles, e.g. liesofp/guides/*.html)
   ---------------------------------------------------------------- */
body.er-guide .article-content.er-guide-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--er-text-dim);
}
body.er-guide .article-content.er-guide-body > p {
  margin: 0 0 14px 0;
}
body.er-guide header h1 {
  color: var(--er-secondary-bright);
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: 18px;
}
body.er-guide .er-section-heading {
  margin-top: 28px;
  margin-bottom: 12px;
}
body.er-guide .er-guide-subhead {
  font-size: 15px;
  font-weight: 600;
  color: var(--er-text);
  margin: 22px 0 8px 0;
}
body.er-guide .er-guide-list {
  margin: 0 0 16px 0;
  padding-left: 1.25em;
  color: var(--er-text-dim);
}
body.er-guide .er-guide-list li {
  margin: 6px 0;
}
body.er-guide .article-content a {
  color: var(--er-primary-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.er-guide .article-content a:hover {
  color: var(--er-secondary-bright);
}
body.er-guide .er-guide-media {
  margin: 22px 0;
  padding: 0;
}
body.er-guide .er-guide-media-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--er-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
body.er-guide .er-guide-table-card {
  overflow-x: auto;
  padding: 12px 14px !important;
}
body.er-guide .er-guide-parts-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}
body.er-guide .er-guide-parts-table th,
body.er-guide .er-guide-parts-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
body.er-guide .er-guide-parts-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--er-primary-bright);
}

/* Item preview in column 2 (weapons, amulets, costumes, gestures, grindstones) */
body.er-weapons-checklist .er-visual-table,
body.er-amulets-checklist .er-visual-table,
body.er-grindstones-checklist .er-visual-table,
body.er-costumes-checklist .er-visual-table,
body.er-gestures-checklist .er-visual-table {
  table-layout: fixed;
}
body.er-weapons-checklist .er-visual-table tbody tr.er-visual-row,
body.er-amulets-checklist .er-visual-table tbody tr.er-visual-row,
body.er-grindstones-checklist .er-visual-table tbody tr.er-visual-row,
body.er-costumes-checklist .er-visual-table tbody tr.er-visual-row,
body.er-gestures-checklist .er-visual-table tbody tr.er-visual-row,
body.er-legion-arms-checklist .er-visual-table tbody tr.er-visual-row,
body.er-achievements-checklist .er-visual-table tbody tr.er-visual-row {
  min-height: 132px;
}
body.er-weapons-checklist .er-visual-table tbody tr.er-visual-row td,
body.er-amulets-checklist .er-visual-table tbody tr.er-visual-row td,
body.er-grindstones-checklist .er-visual-table tbody tr.er-visual-row td,
body.er-costumes-checklist .er-visual-table tbody tr.er-visual-row td,
body.er-gestures-checklist .er-visual-table tbody tr.er-visual-row td,
body.er-legion-arms-checklist .er-visual-table tbody tr.er-visual-row td,
body.er-achievements-checklist .er-visual-table tbody tr.er-visual-row td {
  padding: 4px 6px !important;
  vertical-align: middle;
}
body.er-weapons-checklist .er-visual-table tbody tr td:nth-child(1),
body.er-amulets-checklist .er-visual-table tbody tr td:nth-child(1),
body.er-grindstones-checklist .er-visual-table tbody tr td:nth-child(1),
body.er-costumes-checklist .er-visual-table tbody tr td:nth-child(1),
body.er-gestures-checklist .er-visual-table tbody tr td:nth-child(1),
body.er-legion-arms-checklist .er-visual-table tbody tr td:nth-child(1),
body.er-achievements-checklist .er-visual-table tbody tr td:nth-child(1) {
  padding: 4px 4px !important;
}
body.er-weapons-checklist .er-visual-table tbody tr td.er-visual-image-cell,
body.er-amulets-checklist .er-visual-table tbody tr td.er-visual-image-cell,
body.er-grindstones-checklist .er-visual-table tbody tr td.er-visual-image-cell,
body.er-costumes-checklist .er-visual-table tbody tr td.er-visual-image-cell,
body.er-gestures-checklist .er-visual-table tbody tr td.er-visual-image-cell,
body.er-legion-arms-checklist .er-visual-table tbody tr td.er-visual-image-cell,
body.er-achievements-checklist .er-visual-table tbody tr td.er-visual-image-cell {
  width: 132px !important;
  min-width: 132px !important;
  max-width: 132px !important;
  padding: 2px 4px !important;
  text-align: center;
  overflow: visible !important;
}
body.er-weapons-checklist .er-visual-figure,
body.er-amulets-checklist .er-visual-figure,
body.er-grindstones-checklist .er-visual-figure,
body.er-costumes-checklist .er-visual-figure,
body.er-gestures-checklist .er-visual-figure,
body.er-legion-arms-checklist .er-visual-figure,
body.er-achievements-checklist .er-visual-figure {
  margin: 0;
  padding: 0;
  line-height: 0;
}
body.er-weapons-checklist .er-visual-img,
body.er-amulets-checklist .er-visual-img,
body.er-grindstones-checklist .er-visual-img,
body.er-costumes-checklist .er-visual-img,
body.er-gestures-checklist .er-visual-img,
body.er-legion-arms-checklist .er-visual-img,
body.er-achievements-checklist .er-visual-img {
  display: block;
  width: 100%;
  max-width: 120px;
  max-height: 128px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}
body.er-costumes-checklist .er-visual-img {
  max-height: 148px;
}
body.er-legion-arms-checklist .er-visual-img,
body.er-achievements-checklist .er-visual-img {
  max-width: 128px;
  max-height: 136px;
}
body.er-weapons-checklist .er-visual-info-cell .item-info .item-name,
body.er-amulets-checklist .er-visual-info-cell .item-info .item-name,
body.er-grindstones-checklist .er-visual-info-cell .item-info .item-name,
body.er-costumes-checklist .er-visual-info-cell .item-info .item-name,
body.er-gestures-checklist .er-visual-info-cell .item-info .item-name,
body.er-legion-arms-checklist .er-visual-info-cell .item-info .item-name,
body.er-achievements-checklist .er-visual-info-cell .item-info .item-name {
  margin-bottom: 2px;
}
body.er-weapons-checklist .er-visual-info-cell .item-info .item-biome,
body.er-amulets-checklist .er-visual-info-cell .item-info .item-biome,
body.er-grindstones-checklist .er-visual-info-cell .item-info .item-biome,
body.er-costumes-checklist .er-visual-info-cell .item-info .item-biome,
body.er-gestures-checklist .er-visual-info-cell .item-info .item-biome,
body.er-legion-arms-checklist .er-visual-info-cell .item-info .item-biome,
body.er-achievements-checklist .er-visual-info-cell .item-info .item-biome {
  margin-bottom: 2px;
}
body.er-weapons-checklist .er-visual-description-cell p,
body.er-amulets-checklist .er-visual-description-cell p,
body.er-grindstones-checklist .er-visual-description-cell p,
body.er-costumes-checklist .er-visual-description-cell p,
body.er-gestures-checklist .er-visual-description-cell p,
body.er-legion-arms-checklist .er-visual-description-cell p,
body.er-achievements-checklist .er-visual-description-cell p {
  margin: 0 0 3px 0;
}

@media (max-width: 768px) {
  body.er-weapons-checklist .er-visual-table colgroup col:nth-child(2),
  body.er-amulets-checklist .er-visual-table colgroup col:nth-child(2),
  body.er-grindstones-checklist .er-visual-table colgroup col:nth-child(2),
  body.er-costumes-checklist .er-visual-table colgroup col:nth-child(2),
  body.er-gestures-checklist .er-visual-table colgroup col:nth-child(2),
  body.er-legion-arms-checklist .er-visual-table colgroup col:nth-child(2),
  body.er-achievements-checklist .er-visual-table colgroup col:nth-child(2) {
    width: 88px !important;
  }
  body.er-weapons-checklist .er-visual-table tbody tr td.er-visual-image-cell,
  body.er-amulets-checklist .er-visual-table tbody tr td.er-visual-image-cell,
  body.er-grindstones-checklist .er-visual-table tbody tr td.er-visual-image-cell,
  body.er-costumes-checklist .er-visual-table tbody tr td.er-visual-image-cell,
  body.er-gestures-checklist .er-visual-table tbody tr td.er-visual-image-cell,
  body.er-legion-arms-checklist .er-visual-table tbody tr td.er-visual-image-cell,
  body.er-achievements-checklist .er-visual-table tbody tr td.er-visual-image-cell {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
  }
  body.er-weapons-checklist .er-visual-img,
  body.er-amulets-checklist .er-visual-img,
  body.er-grindstones-checklist .er-visual-img,
  body.er-costumes-checklist .er-visual-img,
  body.er-gestures-checklist .er-visual-img,
  body.er-legion-arms-checklist .er-visual-img,
  body.er-achievements-checklist .er-visual-img {
    max-width: 80px;
    max-height: 96px;
  }
  body.er-costumes-checklist .er-visual-img {
    max-height: 108px;
  }
  body.er-legion-arms-checklist .er-visual-img,
  body.er-achievements-checklist .er-visual-img {
    max-width: 84px;
    max-height: 100px;
  }
}

/* Trinity + route photos: screenshots in description column */
body.er-weapons-checklist .er-screenshot-table tbody tr.er-screenshot-row td,
body.er-amulets-checklist .er-screenshot-table tbody tr.er-screenshot-row td,
body.er-grindstones-checklist .er-screenshot-table tbody tr.er-screenshot-row td,
body.er-costumes-checklist .er-screenshot-table tbody tr.er-screenshot-row td,
body.er-gestures-checklist .er-screenshot-table tbody tr.er-screenshot-row td {
  padding: 6px 8px !important;
  vertical-align: top;
}
body.er-weapons-checklist .er-screenshot-table tbody tr td:nth-child(1),
body.er-amulets-checklist .er-screenshot-table tbody tr td:nth-child(1),
body.er-grindstones-checklist .er-screenshot-table tbody tr td:nth-child(1),
body.er-costumes-checklist .er-screenshot-table tbody tr td:nth-child(1),
body.er-gestures-checklist .er-screenshot-table tbody tr td:nth-child(1),
body.er-overture-checklist .er-overture-table tbody tr td:nth-child(1) {
  vertical-align: middle;
}
body.er-weapons-checklist .er-screenshot-description-cell .er-item-screenshot-media,
body.er-amulets-checklist .er-screenshot-description-cell .er-item-screenshot-media,
body.er-grindstones-checklist .er-screenshot-description-cell .er-item-screenshot-media,
body.er-costumes-checklist .er-screenshot-description-cell .er-item-screenshot-media,
body.er-gestures-checklist .er-screenshot-description-cell .er-item-screenshot-media,
body.er-overture-checklist .er-overture-description-cell .er-item-screenshot-media {
  margin: 0 0 8px 0;
  padding: 0;
}
body.er-weapons-checklist .er-item-screenshot,
body.er-amulets-checklist .er-item-screenshot,
body.er-grindstones-checklist .er-item-screenshot,
body.er-costumes-checklist .er-item-screenshot,
body.er-gestures-checklist .er-item-screenshot,
body.er-overture-checklist .er-item-screenshot {
  display: block;
  max-width: min(560px, 100%);
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--er-border);
  object-fit: unset;
}

/* Overture weapons/costumes/gestures: same preview column as base-game visual tables */
body.er-overture-checklist .er-overture-visual-icon-table tbody tr td.er-visual-image-cell {
  width: 132px !important;
  min-width: 132px !important;
  max-width: 132px !important;
  padding: 2px 4px !important;
  text-align: center;
  overflow: visible !important;
}
body.er-overture-checklist .er-overture-visual-icon-table .er-visual-figure {
  margin: 0;
  padding: 0;
  line-height: 0;
}
body.er-overture-checklist .er-overture-visual-icon-table .er-visual-img {
  display: block;
  width: 100%;
  max-width: 120px;
  max-height: 128px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}
body.er-overture-checklist .er-overture-visual-icon-table#overture-table-costumes_outfits .er-visual-img,
body.er-overture-checklist .er-overture-visual-icon-table#overture-table-costumes_accessories .er-visual-img {
  max-height: 148px;
}

@media (max-width: 768px) {
  body.er-overture-checklist .er-overture-visual-icon-table colgroup col:nth-child(2) {
    width: 92px !important;
  }
  body.er-overture-checklist .er-overture-visual-icon-table tbody tr td.er-visual-image-cell {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
  }
  body.er-overture-checklist .er-overture-visual-icon-table .er-visual-img {
    max-width: 84px;
    max-height: 96px;
  }
  body.er-overture-checklist .er-overture-visual-icon-table#overture-table-costumes_outfits .er-visual-img,
  body.er-overture-checklist .er-overture-visual-icon-table#overture-table-costumes_accessories .er-visual-img {
    max-height: 108px;
  }
}

body.er-weapons-checklist .er-screenshot-info-cell .item-info .item-name,
body.er-amulets-checklist .er-screenshot-info-cell .item-info .item-name,
body.er-grindstones-checklist .er-screenshot-info-cell .item-info .item-name,
body.er-costumes-checklist .er-screenshot-info-cell .item-info .item-name,
body.er-gestures-checklist .er-screenshot-info-cell .item-info .item-name {
  margin-bottom: 2px;
}
body.er-weapons-checklist .er-screenshot-description-cell p,
body.er-amulets-checklist .er-screenshot-description-cell p,
body.er-grindstones-checklist .er-screenshot-description-cell p,
body.er-costumes-checklist .er-screenshot-description-cell p,
body.er-gestures-checklist .er-screenshot-description-cell p {
  margin: 0 0 4px 0;
}

/* Trinity: standard row alignment; route photos only in description column */
body.er-trinity-checklist .er-trinity-description-cell .er-item-screenshot-media {
  margin: 0 0 8px 0;
  padding: 0;
}
body.er-trinity-checklist .er-item-screenshot {
  display: block;
  max-width: min(560px, 100%);
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--er-border);
  object-fit: unset;
}
body.er-trinity-checklist .er-trinity-description-cell p {
  margin: 0 0 4px 0;
}

/* FAQ (checklist pages + hub) */
body[class*="er-"] .er-faq-section {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--er-border);
}
body[class*="er-"] .er-faq-section > .er-section-heading {
  margin-bottom: 20px;
}
body[class*="er-"] .er-faq-list {
  margin: 0 0 28px 0;
}
body[class*="er-"] .er-faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--er-border);
}
body[class*="er-"] .er-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
body[class*="er-"] .er-faq-item h3 {
  color: var(--er-secondary-bright) !important;
  font-size: 1.05em;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.35;
}
body[class*="er-"] .er-faq-item p {
  margin: 0;
  color: var(--er-primary-bright);
  font-size: 15px;
  line-height: 1.65;
}
body[class*="er-"] .er-faq-item p a {
  color: var(--er-ergo) !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(241, 208, 108, 0.5);
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
body[class*="er-"] .er-faq-item p a:hover {
  color: var(--er-ergo-bright) !important;
  text-decoration-color: var(--er-ergo-bright);
  text-decoration-thickness: 2px;
}
body[class*="er-"] .er-faq-item p a:visited {
  color: var(--er-ergo) !important;
}
body[class*="er-"] .er-faq-item p a:visited:hover {
  color: var(--er-ergo-bright) !important;
}
body[class*="er-"] .er-faq-thumbnail {
  margin-top: 8px;
}
body[class*="er-"] .er-faq-thumbnail img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--er-border-strong);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
