/* =========================================================
   SECTION 2 — INVESTIGATION DASHBOARD
   ========================================================= */

.investigation-section {
  position: relative;
  z-index: 3;
  margin-top: -280px;
  overflow: visible;
  padding: 24px 32px 88px;
  border-top: 0;
  background:
    radial-gradient(
      circle at 50% 110px,
      rgba(131, 86, 44, 0.12),
      transparent 48%
    ),
    linear-gradient(
      180deg,
      rgba(10, 9, 7, 0) 0%,
      rgba(10, 9, 7, 0) 90px,
      rgba(10, 9, 7, 0.92) 150px,
      #0e0c09 55%,
      #090806 100%
    );
}

.investigation-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.015) 4px
    );
}

.investigation-section-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
}

.investigation-panel {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(194, 159, 108, 0.46);
  border-radius: 7px;
  background:
    radial-gradient(
      circle at 50% 8%,
      rgba(135, 91, 48, 0.11),
      transparent 42%
    ),
    radial-gradient(
      circle at 12% 88%,
      rgba(238, 229, 211, 0.025),
      transparent 34%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(
      145deg,
      #14110d 0%,
      #0b0a08 55%,
      #060605 100%
    );
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.74),
    inset 0 0 0 3px rgba(194, 159, 108, 0.15),
    inset 0 0 0 6px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(232, 201, 153, 0.12),
    0 22px 40px rgba(0, 0, 0, 0.38);
}

.panel-corner {
  position: absolute;
  z-index: 5;
  width: 48px;
  height: 48px;
  pointer-events: none;
  background-image: url("../ui/mythical-mind-panel-corner.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 145% 145%;
  opacity: 0.94;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.72));
}

.panel-corner-tl {
  top: -3px;
  left: -3px;
}

.panel-corner-tr {
  top: -3px;
  right: -3px;
  transform: rotate(90deg);
}

.panel-corner-br {
  right: -3px;
  bottom: -3px;
  transform: rotate(180deg);
}

.panel-corner-bl {
  bottom: -3px;
  left: -3px;
  transform: rotate(270deg);
} {
  content: "";
  position: absolute;
  z-index: 5;
  width: 48px;
  height: 48px;
  pointer-events: none;
  background-image: url("../ui/mythical-mind-panel-corner.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 145% 145%;
  opacity: 0.94;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.72));
}

.investigation-panel::before {
  top: -3px;
  left: -3px;
}

.investigation-panel::after {
  right: -3px;
  bottom: -3px;
  transform: rotate(180deg);
}

.investigation-progress-panel {
  width: min(100%, 470px);
}
/* =========================================================
   INVESTIGATION PROGRESS — HEADER
   ========================================================= */

.investigation-panel-header {
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(194, 159, 108, 0.2);
}

.investigation-panel-kicker {
  margin: 0 0 10px;
  color: #b89b73;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.investigation-case-title {
  margin: 0;
  color: #e7d8bf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.investigation-overall {
  display: flex;
  align-items: flex-end;
  gap: 11px;
  margin-bottom: 9px;
}

.investigation-percentage {
  color: #a72d28;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.82;
  text-shadow: 0 3px 15px rgba(120, 20, 18, 0.25);
}

.investigation-percentage-label {
  padding-bottom: 5px;
  color: #a99a84;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.investigation-progress-track {
  width: 100%;
  height: 12px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(194, 159, 108, 0.34);
  background: rgba(0, 0, 0, 0.48);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65);
}

.investigation-progress-fill {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      #7f1f1d,
      #b13930
    );
  box-shadow: 0 0 12px rgba(168, 55, 47, 0.24);
}

.story-files-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 9px;
  color: #a9916d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-files-heading span:last-child {
  color: #84755f;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.6rem;
  text-align: right;
}
/* =========================================================
   INCIDENT FILE CARDS
   ========================================================= */

.story-files-list {
  display: grid;
  gap: 6px;
  max-height: 300px;
  padding-right: 7px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color:
    rgba(127, 31, 29, 0.75)
    rgba(0, 0, 0, 0.32);
}

.story-files-list::-webkit-scrollbar {
  width: 7px;
}

.story-files-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.32);
}

.story-files-list::-webkit-scrollbar-thumb {
  border: 1px solid rgba(194, 159, 108, 0.2);
  background: rgba(127, 31, 29, 0.75);
}

.story-file {
  position: relative;
  min-height: 50px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(194, 159, 108, 0.18);
  background:
    linear-gradient(
      100deg,
      rgba(29, 25, 20, 0.86),
      rgba(8, 8, 7, 0.94)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 8px 17px rgba(0, 0, 0, 0.2);
}

.story-file::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 2px;
  background: rgba(194, 159, 108, 0.25);
}

.story-file-number {
  color: #9e896a;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.story-file-title {
  margin: 0;
  color: #dfd0b8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.015em;
}

.story-file-progress {
  justify-self: end;
  padding: 5px 8px 4px;
  border: 1px solid rgba(151, 169, 102, 0.62);
  background: rgba(104, 123, 65, 0.12);
  color: #b8c88a;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(120, 145, 72, 0.08);
}

/* Unsealed incident */

.story-file.is-unlocked {
  border-color: rgba(168, 55, 47, 0.42);
  background:
    radial-gradient(
      circle at 10% 50%,
      rgba(127, 31, 29, 0.16),
      transparent 42%
    ),
    linear-gradient(
      100deg,
      rgba(31, 25, 20, 0.94),
      rgba(8, 8, 7, 0.97)
    );
}

.story-file.is-unlocked::before {
  background: #982b27;
  box-shadow: 0 0 10px rgba(168, 55, 47, 0.34);
}

/* Restricted incidents */

.story-file.is-restricted {
  border-color: rgba(194, 159, 108, 0.11);
  background:
    linear-gradient(
      100deg,
      rgba(17, 15, 12, 0.87),
      rgba(5, 5, 5, 0.96)
    );
}

.story-file.is-restricted .story-file-number {
  color: #756957;
}

.restricted-title {
  display: grid;
  gap: 5px;
  width: 100%;
  filter: blur(2.2px);
  opacity: 0.64;
}

.restricted-title span {
  display: block;
  height: 5px;
  background:
    linear-gradient(
      90deg,
      rgba(133, 118, 95, 0.76),
      rgba(82, 72, 58, 0.52)
    );
  box-shadow: 0 0 6px rgba(177, 151, 111, 0.13);
}

.restricted-title span:first-child {
  width: 88%;
}

.restricted-title span:last-child {
  width: 57%;
}

.restricted-stamp {
  justify-self: end;
  padding: 5px 8px 4px;
  border: 1px solid rgba(159, 42, 37, 0.7);
  color: rgba(184, 55, 48, 0.86);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-2deg);
  white-space: nowrap;
}

/* =========================================================
   FEATURED BOOK — COVER
   ========================================================= */

.featured-book-cover-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-book-cover {
  display: block;
  width: min(100%, 360px);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 28px 24px rgba(0, 0, 0, 0.58))
    drop-shadow(0 7px 7px rgba(0, 0, 0, 0.35));
}

/* =========================================================
   SECTION 2 — THREE-PANEL LAYOUT
   ========================================================= */

.investigation-section-inner {
  display: grid;
  grid-template-columns:
    minmax(320px, 0.78fr)
    minmax(520px, 1.24fr)
    minmax(290px, 0.86fr);
  align-items: stretch;
  gap: 18px;
}

.investigation-progress-panel {
  width: 100%;
}

/* =========================================================
   FEATURED STORY PANEL
   ========================================================= */

.featured-story-panel {
  isolation: isolate;
  min-height: 540px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

.featured-story-background {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.featured-story-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(4, 4, 3, 0.97) 0%,
      rgba(4, 4, 3, 0.92) 34%,
      rgba(4, 4, 3, 0.58) 57%,
      rgba(4, 4, 3, 0.08) 82%
    ),
    linear-gradient(
      180deg,
      rgba(4, 4, 3, 0.24),
      rgba(4, 4, 3, 0.12) 62%,
      rgba(4, 4, 3, 0.7)
    );
}

.featured-story-content {
  position: relative;
  z-index: 1;
  width: min(57%, 540px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 25px 24px 20px;
}

.featured-story-header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(194, 159, 108, 0.22);
}

.featured-story-title {
  margin: 0;
  color: #e7d8bf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.featured-story-status {
  margin: 12px 0 0;
  color: #b13a32;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-story-description {
  margin-top: 20px;
  color: #b7aa97;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.65;
}

.featured-story-description p {
  margin: 0 0 16px;
}

.featured-story-hook {
  color: #d5c5ad;
  font-style: italic;
}

.featured-story-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid rgba(194, 159, 108, 0.26);
  background: rgba(3, 3, 3, 0.56);
}

.featured-story-details div {
  min-width: 0;
  padding: 12px 10px;
  border-right: 1px solid rgba(194, 159, 108, 0.2);
}

.featured-story-details div:last-child {
  border-right: 0;
}

.featured-story-details span,
.featured-story-details strong {
  display: block;
}

.featured-story-details span {
  color: #88775e;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.featured-story-details strong {
  margin-top: 5px;
  color: #cdbb9e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
}

.featured-story-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}

.featured-story-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(194, 159, 108, 0.3);
  background: rgba(4, 4, 3, 0.7);
  color: #ad9b7f;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.featured-story-button-primary {
  border-color: rgba(168, 55, 47, 0.45);
  color: #c7675f;
}

.featured-story-button.is-disabled {
  cursor: default;
  opacity: 0.72;
  pointer-events: none;
}

/* =========================================================
   RECENTLY DISCOVERED PANEL
   ========================================================= */

.discoveries-panel {
  display: flex;
  flex-direction: column;
  min-height: 540px;
}

.discoveries-header {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(194, 159, 108, 0.2);
}

.discoveries-title {
  margin: 0;
  color: #e7d8bf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.discoveries-list {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.discovery-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px;
  border: 1px solid rgba(194, 159, 108, 0.14);
  background:
    linear-gradient(
      135deg,
      rgba(20, 18, 15, 0.84),
      rgba(7, 7, 6, 0.95)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 8px 16px rgba(0, 0, 0, 0.16);
}

.discovery-thumb {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(194, 159, 108, 0.18);
  background:
    linear-gradient(
      145deg,
      rgba(58, 49, 39, 0.94),
      rgba(18, 15, 12, 0.98)
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 3px 8px rgba(0, 0, 0, 0.22);
}

.discovery-thumb-record {
  background:
    linear-gradient(
      145deg,
      rgba(95, 78, 58, 0.94),
      rgba(27, 22, 18, 0.98)
    );
}

.discovery-thumb-site {
  background:
    linear-gradient(
      145deg,
      rgba(65, 62, 48, 0.94),
      rgba(21, 20, 16, 0.98)
    );
}

.discovery-thumb-report {
  background:
    linear-gradient(
      145deg,
      rgba(76, 58, 49, 0.94),
      rgba(19, 16, 14, 0.98)
    );
}

.discovery-thumb-unsealed {
  background:
    linear-gradient(
      145deg,
      rgba(70, 75, 47, 0.94),
      rgba(17, 19, 12, 0.98)
    );
}

.discovery-body {
  min-width: 0;
}

.discovery-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  padding: 4px 7px 3px;
  border: 1px solid rgba(194, 159, 108, 0.35);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-2deg);
}

.discovery-stamp-new {
  border-color: rgba(159, 42, 37, 0.7);
  color: rgba(184, 55, 48, 0.88);
}

.discovery-stamp-archived {
  border-color: rgba(184, 155, 115, 0.55);
  color: #c7b08a;
}

.discovery-stamp-review {
  border-color: rgba(155, 125, 72, 0.56);
  color: #c9a66d;
}

.discovery-stamp-unsealed {
  border-color: rgba(151, 169, 102, 0.62);
  color: #b8c88a;
}

.discovery-card-title {
  margin: 0 0 4px;
  color: #e0d1b8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
}

.discovery-body p {
  margin: 0;
  color: #a99a84;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.73rem;
  line-height: 1.45;
}

.discoveries-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid rgba(194, 159, 108, 0.22);
  background: rgba(5, 5, 4, 0.55);
  color: #b89b73;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1450px) {
  .investigation-section-inner {
    grid-template-columns:
      minmax(320px, 0.82fr)
      minmax(520px, 1.18fr);
  }

  .discoveries-panel {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 1150px) {
  .investigation-section-inner {
    grid-template-columns: 1fr;
  }

  .featured-story-panel {
    min-height: 540px;
  }

  .featured-story-content {
    width: min(65%, 540px);
  }

  .discoveries-panel {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .featured-story-panel {
    min-height: 650px;
  }

  .featured-story-background {
    object-position: 67% center;
  }

  .featured-story-shade {
    background:
      linear-gradient(
        180deg,
        rgba(4, 4, 3, 0.96) 0%,
        rgba(4, 4, 3, 0.88) 57%,
        rgba(4, 4, 3, 0.38) 100%
      );
  }

  .featured-story-content {
    width: 100%;
    padding: 27px 20px 22px;
  }

  .featured-story-details {
    grid-template-columns: 1fr;
  }

  .featured-story-details div {
    border-right: 0;
    border-bottom: 1px solid rgba(194, 159, 108, 0.2);
  }

  .featured-story-details div:last-child {
    border-bottom: 0;
  }

  .featured-story-actions {
    grid-template-columns: 1fr 1fr;
  }

  .discovery-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }

  .discovery-thumb {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 420px) {
  .story-file {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .story-file-progress,
  .restricted-stamp {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}
@media (max-width: 620px) {
  .investigation-section {
    padding: 54px 12px 64px;
  }

  .investigation-section-inner {
    width: 100%;
  }

  .investigation-panel {
    padding: 22px 18px;
  }
}
