/* ================================================================
   Lies of P - Belle Epoque / Steel-Blue & Crimson Theme
   Loaded by every /liesofp/ page after styles.css.
   Mirrors the Subnautica 2 checklist system (sn2-*) with the
   game's cold, desaturated steel-blue palette and crimson-red
   danger accents over near-black (lop-*).
   Signature colours: #819fa6 / #204c73 steel-blue, #d93d4a /
   #bf3636 red, #0d0d0d black.
   ================================================================ */

:root {
  --lop-primary: #819fa6;            /* steel blue-grey (signature) */
  --lop-primary-bright: #aecace;     /* hover/highlight */
  --lop-primary-dim: rgba(129, 159, 166, 0.18);
  --lop-primary-soft: rgba(129, 159, 166, 0.09);
  --lop-secondary: #bf3636;          /* crimson (danger/highlight) */
  --lop-secondary-bright: #d93d4a;
  --lop-secondary-dim: rgba(217, 61, 74, 0.18);
  --lop-ergo: #00F8FD;               /* Ergo glow (cyan) - links & area names */
  --lop-ergo-bright: #66fbff;
  --lop-ergo-dim: rgba(0, 248, 253, 0.15);
  --lop-ergo-border: rgba(0, 248, 253, 0.42);
  --lop-warning: #c9a23a;            /* muted brass for warning boxes */
  --lop-warning-dim: rgba(201, 162, 58, 0.14);
  --lop-deep: #070a0c;
  --lop-bg-dark: #0e1317;
  --lop-bg-card: #1a232b;
  --lop-bg-elev: #243039;
  --lop-border: rgba(129, 159, 166, 0.20);
  --lop-border-strong: rgba(129, 159, 166, 0.42);
  --lop-text: #f1f6f8;
  --lop-text-dim: rgba(241, 246, 248, 0.90);
  --lop-text-faint: rgba(241, 246, 248, 0.62);
}

/* ----------------------------------------------------------------
   Page background.
   ---------------------------------------------------------------- */
body[class*="lop-"] {
  background:
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(129, 159, 166, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 110%, rgba(191, 54, 54, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0e1317 0%, #090c0f 55%, #050708 100%) !important;
  background-attachment: fixed !important;
  color: var(--lop-text);
}
body[class*="lop-"] .container { background: transparent !important; }
body[class*="lop-"] .site-header { border-bottom-color: var(--lop-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*="lop-"] .site-header-new .header-tracker-tab,
body[class*="lop-"] .site-header-new .header-tracker-pill {
  --game-color: #00F8FD;
  color: #062029 !important;     /* dark ink reads on the bright cyan fill */
  text-shadow: none !important;
}
body[class*="lop-"] .site-header-new .header-tracker-tab:hover,
body[class*="lop-"] .site-header-new .header-tracker-pill:hover {
  color: #041519 !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*="lop-"] header {
  align-items: stretch;
}
body[class*="lop-"] header h1 {
  color: var(--lop-secondary-bright) !important;
  text-shadow: 0 0 30px rgba(217, 61, 74, 0.45);
}
body[class*="lop-"] .breadcrumbs a { color: var(--lop-primary) !important; text-decoration: none; }
body[class*="lop-"] .breadcrumbs a:hover { text-decoration: underline; color: var(--lop-primary-bright) !important; }

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

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

/* ----------------------------------------------------------------
   Quick-link grid (top of hub page).
   ---------------------------------------------------------------- */
.lop-quick-links {
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(129, 159, 166, 0.10) 0%, transparent 70%),
    linear-gradient(135deg, rgba(129, 159, 166, 0.06) 0%, rgba(14, 19, 23, 0.95) 50%, rgba(191, 54, 54, 0.05) 100%);
  border: 1px solid var(--lop-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(129, 159, 166, 0.10);
}
.lop-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(7, 10, 12, 0.5);
  border: 1px solid var(--lop-border);
  box-sizing: border-box;
}
.lop-quick-link::after { display: none !important; }
.lop-quick-link:hover {
  background: rgba(129, 159, 166, 0.08);
  border-color: rgba(129, 159, 166, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}
.lop-quick-link img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.lop-quick-link-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--lop-primary-bright);
  line-height: 1;
}
.lop-quick-link-name {
  font-size: 12px;
  color: var(--lop-text);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  max-width: 11em;
}
/* Muted / "coming soon" quick-link variant */
.lop-quick-link.muted {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: auto;
}
.lop-quick-link.muted:hover {
  background: rgba(7, 10, 12, 0.5);
  border-color: var(--lop-border);
  box-shadow: none;
  transform: none;
}
.lop-quick-link.muted .lop-quick-link-number {
  color: var(--lop-text-faint);
}

@media (max-width: 1024px) {
  .lop-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 12px;
  }
  .lop-quick-link {
    min-height: 96px;
    padding: 10px 6px;
  }
}
@media (max-width: 600px) {
  .lop-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;
  }
  .lop-quick-link {
    min-height: 92px;
    padding: 10px 6px;
    gap: 6px;
    border-radius: 10px;
  }
  .lop-quick-link img { width: 38px; height: 38px; }
  .lop-quick-link-number { font-size: 18px; }
  .lop-quick-link-name { font-size: 11px; max-width: 100%; }
}

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

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

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

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

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

/* Hub guide links: wide thumbnail instead of square icon */
.lop-row.lop-row-with-thumb {
  align-items: center;
  padding: 12px 16px;
  gap: 16px;
}
.lop-row-thumb {
  flex: 0 0 240px;
  width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--lop-border-strong);
  background: rgba(7, 10, 12, 0.85);
  box-shadow: inset 0 0 0 1px rgba(129, 159, 166, 0.06);
}
.lop-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) {
  .lop-row.lop-row-with-thumb {
    flex-wrap: wrap;
    align-items: center;
  }
  .lop-row-thumb {
    flex: 1 1 100%;
    width: 100%;
    max-height: 200px;
  }
  .lop-row.lop-row-with-thumb .lop-row-title {
    flex: 1;
    min-width: 0;
  }
}

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

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

/* Variants */
.lop-box.normal,
.lop-box.tip {
  background: var(--lop-primary-soft);
  border-color: var(--lop-border-strong);
}
.lop-box.important,
.lop-box.depth {
  background: linear-gradient(90deg, rgba(129, 159, 166, 0.12) 0%, rgba(7, 10, 12, 0.92) 100%);
  border-color: var(--lop-border-strong);
  border-left: 4px solid var(--lop-primary);
}
.lop-box.warning,
.lop-box.warn {
  background: var(--lop-warning-dim);
  border-color: rgba(201, 162, 58, 0.45);
  border-left: 4px solid var(--lop-warning);
}
.lop-box.warning .lop-box-title,
.lop-box.warn .lop-box-title {
  color: var(--lop-warning);
}
/* Danger / crimson box (boss warnings, missable content) */
.lop-box.danger {
  background: linear-gradient(90deg, rgba(191, 54, 54, 0.18) 0%, rgba(7, 10, 12, 0.92) 100%);
  border-color: rgba(217, 61, 74, 0.45);
  border-left: 4px solid var(--lop-secondary);
}
.lop-box.danger .lop-box-title {
  color: var(--lop-secondary-bright);
}

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

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

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

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

/* Table chrome */
body[class*="lop-"] table thead tr {
  background: linear-gradient(180deg, rgba(129, 159, 166, 0.10) 0%, rgba(129, 159, 166, 0.03) 100%);
  border-bottom: 2px solid var(--lop-primary);
}
body[class*="lop-"] table thead th {
  color: var(--lop-text) !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*="lop-"] table tbody tr {
  background: rgba(20, 27, 32, 0.55);
  border-bottom: 1px solid var(--lop-border);
}
body[class*="lop-"] table tbody tr:hover { background: rgba(129, 159, 166, 0.06); }

body[class*="lop-"] input[type="checkbox"] {
  border-color: rgba(129, 159, 166, 0.5) !important;
  background: rgba(7, 10, 12, 0.7) !important;
}
body[class*="lop-"] input[type="checkbox"]:checked {
  background: var(--lop-primary) !important;
  border-color: var(--lop-primary-bright) !important;
  box-shadow: 0 0 8px rgba(129, 159, 166, 0.6);
}

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

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

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

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

/* Inline reference images below description copy (never above the paragraphs) */
body[class*="lop-"] .description-cell .lop-description-media {
  margin: 12px 0 0 0;
  padding: 0;
}
body[class*="lop-"] .description-cell .lop-description-img {
  display: block;
  max-width: min(520px, 100%);
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--lop-border);
}

/* Bigger checklist icons */
body[class*="lop-"] .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*="lop-"] 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*="lop-"] .checklist-icon {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }
  body[class*="lop-"] table tbody tr td:nth-child(2) {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
  }

  body[class*="lop-"] .article-content table:has(colgroup) {
    table-layout: fixed !important;
    width: 100% !important;
  }
  body[class*="lop-"] .article-content table:has(colgroup) colgroup col:nth-child(1) {
    width: 42px !important;
  }
  body[class*="lop-"] .article-content table:has(colgroup) colgroup col:nth-child(2) {
    width: 52px !important;
  }
  body[class*="lop-"] .article-content table:has(colgroup) colgroup col:nth-child(3) {
    width: 24% !important;
  }
  body[class*="lop-"] .article-content table:has(colgroup) colgroup col:nth-child(4) {
    width: auto !important;
  }
  body[class*="lop-"] .article-content table:has(colgroup) thead th:first-child,
  body[class*="lop-"] .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*="lop-"] .article-content table:has(colgroup) tbody td:first-child {
    vertical-align: middle !important;
  }
  body[class*="lop-"] .article-content table:has(colgroup) thead th:nth-child(3),
  body[class*="lop-"] .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*="lop-"] .article-content table:has(colgroup) thead th:nth-child(4),
  body[class*="lop-"] .article-content table:has(colgroup) tbody td:nth-child(4) {
    min-width: 0 !important;
    padding: 8px 6px !important;
    vertical-align: middle !important;
  }
  body[class*="lop-"] .article-content table:has(colgroup) .item-info {
    min-width: 0;
  }
  /* Area label on its own line; pills wrap below */
  body[class*="lop-"] .item-info .item-biome {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  body[class*="lop-"] .item-info .item-biome .lop-area-pill-row {
    width: 100%;
    gap: 8px;
  }
  body[class*="lop-"] .lop-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.
   ---------------------------------------------------------------- */
.lop-area-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--lop-ergo-dim);
  color: var(--lop-ergo-bright);
  border: 1px solid var(--lop-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. */
.lop-area-pill.lop-ar-ergo,
.lop-area-pill.lop-ar-hotel,
.lop-area-pill.lop-ar-station,
.lop-area-pill.lop-ar-factory,
.lop-area-pill.lop-ar-cathedral,
.lop-area-pill.lop-ar-swamp,
.lop-area-pill.lop-ar-unknown,
.lop-area-pill.lop-ar-all-areas {
  background: var(--lop-ergo-dim);
  color: var(--lop-ergo-bright);
  border-color: var(--lop-ergo-border);
}

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

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

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

/* Buttons */
.lop-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(--lop-primary);
  background: var(--lop-primary-dim);
  color: var(--lop-primary-bright);
  cursor: pointer;
}
.lop-btn:hover {
  background: var(--lop-primary);
  color: var(--lop-deep);
  box-shadow: 0 4px 18px rgba(129, 159, 166, 0.35);
}
.lop-btn.secondary {
  border-color: var(--lop-secondary);
  background: var(--lop-secondary-dim);
  color: var(--lop-secondary-bright);
}
.lop-btn.secondary:hover {
  background: var(--lop-secondary);
  color: #160404;
  box-shadow: 0 4px 18px rgba(191, 54, 54, 0.4);
}

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

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

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

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

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

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

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

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

/* Item preview in column 2 (weapons, amulets, costumes, gestures, grindstones) */
body.lop-weapons-checklist .lop-visual-table,
body.lop-amulets-checklist .lop-visual-table,
body.lop-grindstones-checklist .lop-visual-table,
body.lop-costumes-checklist .lop-visual-table,
body.lop-gestures-checklist .lop-visual-table {
  table-layout: fixed;
}
body.lop-weapons-checklist .lop-visual-table tbody tr.lop-visual-row,
body.lop-amulets-checklist .lop-visual-table tbody tr.lop-visual-row,
body.lop-grindstones-checklist .lop-visual-table tbody tr.lop-visual-row,
body.lop-costumes-checklist .lop-visual-table tbody tr.lop-visual-row,
body.lop-gestures-checklist .lop-visual-table tbody tr.lop-visual-row {
  min-height: 132px;
}
body.lop-weapons-checklist .lop-visual-table tbody tr.lop-visual-row td,
body.lop-amulets-checklist .lop-visual-table tbody tr.lop-visual-row td,
body.lop-grindstones-checklist .lop-visual-table tbody tr.lop-visual-row td,
body.lop-costumes-checklist .lop-visual-table tbody tr.lop-visual-row td,
body.lop-gestures-checklist .lop-visual-table tbody tr.lop-visual-row td {
  padding: 4px 6px !important;
  vertical-align: middle;
}
body.lop-weapons-checklist .lop-visual-table tbody tr td:nth-child(1),
body.lop-amulets-checklist .lop-visual-table tbody tr td:nth-child(1),
body.lop-grindstones-checklist .lop-visual-table tbody tr td:nth-child(1),
body.lop-costumes-checklist .lop-visual-table tbody tr td:nth-child(1),
body.lop-gestures-checklist .lop-visual-table tbody tr td:nth-child(1) {
  padding: 4px 4px !important;
}
body.lop-weapons-checklist .lop-visual-table tbody tr td.lop-visual-image-cell,
body.lop-amulets-checklist .lop-visual-table tbody tr td.lop-visual-image-cell,
body.lop-grindstones-checklist .lop-visual-table tbody tr td.lop-visual-image-cell,
body.lop-costumes-checklist .lop-visual-table tbody tr td.lop-visual-image-cell,
body.lop-gestures-checklist .lop-visual-table tbody tr td.lop-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.lop-weapons-checklist .lop-visual-figure,
body.lop-amulets-checklist .lop-visual-figure,
body.lop-grindstones-checklist .lop-visual-figure,
body.lop-costumes-checklist .lop-visual-figure,
body.lop-gestures-checklist .lop-visual-figure {
  margin: 0;
  padding: 0;
  line-height: 0;
}
body.lop-weapons-checklist .lop-visual-img,
body.lop-amulets-checklist .lop-visual-img,
body.lop-grindstones-checklist .lop-visual-img,
body.lop-costumes-checklist .lop-visual-img,
body.lop-gestures-checklist .lop-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.lop-costumes-checklist .lop-visual-img {
  max-height: 148px;
}
body.lop-weapons-checklist .lop-visual-info-cell .item-info .item-name,
body.lop-amulets-checklist .lop-visual-info-cell .item-info .item-name,
body.lop-grindstones-checklist .lop-visual-info-cell .item-info .item-name,
body.lop-costumes-checklist .lop-visual-info-cell .item-info .item-name,
body.lop-gestures-checklist .lop-visual-info-cell .item-info .item-name {
  margin-bottom: 2px;
}
body.lop-weapons-checklist .lop-visual-info-cell .item-info .item-biome,
body.lop-amulets-checklist .lop-visual-info-cell .item-info .item-biome,
body.lop-grindstones-checklist .lop-visual-info-cell .item-info .item-biome,
body.lop-costumes-checklist .lop-visual-info-cell .item-info .item-biome,
body.lop-gestures-checklist .lop-visual-info-cell .item-info .item-biome {
  margin-bottom: 2px;
}
body.lop-weapons-checklist .lop-visual-description-cell p,
body.lop-amulets-checklist .lop-visual-description-cell p,
body.lop-grindstones-checklist .lop-visual-description-cell p,
body.lop-costumes-checklist .lop-visual-description-cell p,
body.lop-gestures-checklist .lop-visual-description-cell p {
  margin: 0 0 3px 0;
}

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

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

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

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