body {
  margin: 0;
  padding: 18px 0 28px 0;
  background-color: #ffffff;
  background-image: none;
  color: #222222;
  font-family: Verdana, Arial, sans-serif;
}

a {
  color: #0b3d2e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: 980px;
  margin: 0 auto;
}

.page-narrow {
  width: 760px;
  margin: 0 auto;
  position: relative;
}

.banner {
  background: #000000;
  border: 3px solid #000000;
  box-shadow: 5px 5px 0 rgba(92, 80, 48, 0.28);
}

.page > .page-narrow.banner,
.page > .page-narrow.black-rule {
  width: 100%;
  margin: 0;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

.black-rule {
  height: 8px;
  background: #000000;
  box-shadow: 4px 4px 0 rgba(92, 80, 48, 0.22);
}

.nav-row {
  text-align: center;
  font-size: 12px;
  margin: 10px 0 14px 0;
  padding: 8px 10px;
  background: #f6eed8;
  border: 1px solid #bcae8e;
  box-shadow: 3px 3px 0 rgba(107, 95, 66, 0.18);
  line-height: 1.6;
}

.nav-row a {
  color: #0b3d2e;
}

.content-shell {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.side-nav,
.main-panel {
  display: table-cell;
  vertical-align: top;
}

.side-nav {
  width: 208px;
  background: #faf2df;
  border: 1px solid #c9bea6;
  padding: 12px;
  box-sizing: border-box;
  font-size: 12px;
  box-shadow: 4px 4px 0 rgba(118, 105, 79, 0.14);
}

.main-panel {
  background: #fcf7eb;
  border: 1px solid #c9bea6;
  padding: 18px;
  box-sizing: border-box;
  box-shadow: 4px 4px 0 rgba(118, 105, 79, 0.14);
  position: relative;
}

.stack-gap {
  width: 16px;
  display: table-cell;
}

.box {
  border: 1px solid #c9bea6;
  background: #fffdfa;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 3px 3px 0 rgba(118, 105, 79, 0.12);
}

.box h3,
.box h4 {
  margin: 0 0 6px 0;
  font-family: Georgia, "Times New Roman", serif;
}

.box p,
.main-panel p,
.main-panel li {
  font-size: 13px;
  line-height: 1.55;
}

.hero {
  border: 1px solid #c9bea6;
  background: #ffffff;
  margin-bottom: 14px;
  box-shadow: 4px 4px 0 rgba(118, 105, 79, 0.14);
}

.hero-bar {
  padding: 12px 14px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
}

.hero-copy {
  padding: 15px 16px 16px 16px;
  font-size: 14px;
  line-height: 1.55;
}

.summary-grid {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}

.summary-grid .cell {
  display: table-cell;
  width: 50%;
  vertical-align: top;
  padding-right: 10px;
}

.summary-grid .cell:last-child {
  padding-right: 0;
}

.link-list {
  margin: 0;
  padding-left: 18px;
}

.link-list li {
  margin-bottom: 6px;
}

.section-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}

.section-table td {
  vertical-align: top;
  padding: 12px 10px;
  border-top: 1px solid #e3dfd0;
}

.section-table tr:first-child td {
  border-top: 0;
}

.section-title {
  font-weight: bold;
  color: #5a2015;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.muted {
  color: #666666;
  font-size: 12px;
}

.footer-bar {
  background: #000000;
  color: #ffffff;
  padding: 9px;
  text-align: center;
  font-size: 12px;
  margin-top: 14px;
  box-shadow: 4px 4px 0 rgba(92, 80, 48, 0.22);
}

.footer-bar a {
  color: #ffffff;
}

.footer-note {
  text-align: center;
  font-size: 12px;
  color: #666666;
  margin-top: 6px;
}

.search-box {
  margin-bottom: 10px;
}

.search-box input[type="text"] {
  width: 118px;
  font-size: 12px;
  padding: 3px;
}

.search-box input[type="submit"] {
  font-size: 12px;
  padding: 3px 6px;
}

.badge {
  display: inline-block;
  background: #efe7d5;
  border: 1px solid #d3d0c5;
  padding: 2px 6px;
  font-size: 11px;
  margin-right: 4px;
}

.result {
  border-top: 1px solid #d3d0c5;
  padding: 10px 0;
}

.result:first-child {
  border-top: 0;
  padding-top: 0;
}

.result-title {
  font-weight: bold;
  font-size: 14px;
  font-family: Georgia, "Times New Roman", serif;
}

.callout {
  background: #efe7d4;
  border: 1px solid #bcae8f;
  padding: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  box-shadow: 3px 3px 0 rgba(118, 105, 79, 0.12);
}

.retro-button {
  display: inline-block;
  border: 1px solid #999999;
  background: #efefef;
  color: #000000;
  padding: 5px 10px;
  font-size: 12px;
  box-shadow: 2px 2px 0 rgba(90, 90, 90, 0.18);
}

.resonance-warning {
  background: #fff8e7;
  border: 1px solid #b89f6d;
  color: #4d3920;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.resonance-warning strong,
.field-copy strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 4px;
}

.field-copy {
  background: #f5f3ea;
  border: 1px solid #bcb5a2;
  color: #2f2a20;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.supplemental-tag {
  display: inline-block;
  background: #efead7;
  border: 1px solid #b8ae8e;
  color: #4a4334;
  padding: 2px 6px;
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.redacted {
  display: inline-block;
  min-width: 84px;
  height: 1em;
  background: #111111;
  vertical-align: baseline;
}

.redacted.long {
  min-width: 180px;
}

.omitted-note {
  font-size: 12px;
  color: #5d5647;
  background: #f3efe2;
  border: 1px dashed #b9b19a;
  padding: 8px;
  margin-bottom: 10px;
}

.unstable-link {
  color: #5a2015;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.delayed-popup {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 260px;
  background: #fffff4;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  padding: 10px;
  z-index: 9999;
  font-size: 12px;
}

.delayed-popup .popup-title {
  font-weight: bold;
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 6px;
}

.delayed-popup button {
  margin-top: 8px;
  font-size: 12px;
}

.resonance-flicker {
  animation: resonanceFlicker 0.18s steps(2) 3;
}

.document-meta {
  font-size: 12px;
  color: #5f5b4f;
  margin-bottom: 10px;
}

.recovered-quote {
  border-left: 3px solid #b8ae8e;
  margin: 10px 0;
  padding: 6px 0 6px 10px;
  color: #40392d;
  font-style: italic;
}

.kids-window {
  border: 2px solid #5b7754;
  background: #dbe7d4;
  margin-bottom: 12px;
  box-shadow: 5px 5px 0 rgba(58, 87, 56, 0.18);
}

.kids-titlebar {
  background: linear-gradient(to bottom, #52744c 0%, #355632 55%, #213b1f 100%);
  color: #ffffff;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 9px;
  letter-spacing: 0.03em;
}

.kids-window-body {
  background: linear-gradient(to bottom, #f8fbf4 0%, #edf4e6 100%);
  border-top: 1px solid #95aa8d;
  padding: 12px;
}

.kids-status {
  margin-top: 8px;
  border: 1px solid #9aad96;
  background: #edf5e8;
  color: #314533;
  padding: 4px 6px;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 11px;
}

.kids-toolbar {
  margin-bottom: 8px;
  font-size: 12px;
}

.kids-toolbar button,
.kids-toolbar input[type="button"],
.game-button {
  border: 1px solid #6d7f68;
  background: #ece9d8;
  color: #000000;
  padding: 3px 8px;
  font-size: 12px;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  cursor: pointer;
}

.kids-toolbar button:active,
.kids-toolbar input[type="button"]:active,
.game-button:active {
  border-color: #4c6149;
  background: #dfdbc8;
}

.kids-launch-body {
  background:
    radial-gradient(circle at top right, rgba(255, 244, 161, 0.55), transparent 35%),
    linear-gradient(to bottom, #f7fbf4 0%, #e8f1e0 58%, #d6e7cf 100%);
}

.kids-splash,
.kids-shortcut-grid,
.kids-mission-grid,
.kids-room-header {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px 0;
  margin-bottom: 12px;
}

.kids-splash-main,
.kids-splash-side,
.kids-shortcut,
.kids-mission-card,
.kids-room-header-main,
.kids-room-header-side {
  display: table-cell;
  vertical-align: top;
}

.kids-splash-main,
.kids-room-header-main {
  width: 68%;
}

.kids-splash-side,
.kids-room-header-side {
  width: 32%;
}

.kids-badge-strip {
  margin-bottom: 10px;
}

.kids-badge-strip span {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 8px;
  border: 1px solid #8b8f2a;
  background: linear-gradient(to bottom, #fff9c8 0%, #f2de6e 100%);
  color: #6c5200;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.kids-launch-title,
.kids-lab-title {
  margin: 0 0 8px 0;
  color: #204a24;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  text-shadow: 1px 1px 0 #ffffff;
}

.kids-launch-title {
  font-size: 28px;
  line-height: 1.05;
}

.kids-lab-title {
  font-size: 24px;
}

.kids-launch-copy {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.kids-shortcut {
  width: 25%;
  border: 2px outset #9cb290;
  background: linear-gradient(to bottom, #ffffff 0%, #e4efdc 100%);
  text-align: center;
  padding: 10px 8px;
  color: #214924;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  text-decoration: none;
  box-shadow: inset 0 1px 0 #ffffff;
}

.kids-shortcut:hover {
  text-decoration: none;
  filter: brightness(1.03);
}

.kids-shortcut img {
  display: block;
  margin: 0 auto 6px auto;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.kids-shortcut strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.kids-shortcut span {
  display: block;
  font-size: 11px;
  line-height: 1.3;
}

.kids-note-card,
.kids-prompt-card {
  border: 2px solid #97ad92;
  background: #ffffff;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 3px 3px 0 rgba(58, 87, 56, 0.12);
}

.kids-note-card h3,
.kids-prompt-card h3,
.kids-mission-card h3 {
  margin: 0 0 6px 0;
  color: #285229;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 15px;
}

.kids-note-card p,
.kids-prompt-card p,
.kids-mission-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.kids-mission-card {
  width: 33.33%;
  border: 2px solid #8ea789;
  background: linear-gradient(to bottom, #fffdf5 0%, #ebf4e2 100%);
  padding: 10px;
  box-shadow: 3px 3px 0 rgba(58, 87, 56, 0.12);
}

.kids-mission-card .retro-button {
  margin-top: 8px;
}

.kids-toolbar-row {
  margin-bottom: 10px;
  padding: 6px 8px;
  border: 1px solid #9eb297;
  background: #f1f7ec;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 11px;
  color: #355034;
}

.kids-toolbar-row span {
  margin-right: 12px;
  font-weight: bold;
}

.kids-helper-note {
  border: 1px dashed #7f9b79;
  background: #fffef4;
  color: #5a4a18;
  padding: 8px;
  font-size: 11px;
  line-height: 1.45;
}

.game-grid {
  border-collapse: separate;
  border-spacing: 6px;
  margin: 0 auto;
}

.game-grid td {
  padding: 0;
}

.match-card {
  width: 78px;
  height: 78px;
  border: 2px outset #d7d7d7;
  background: #d9e7fb;
  text-align: center;
  vertical-align: middle;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 11px;
  color: #173861;
  cursor: pointer;
}

.match-card img {
  display: block;
  margin: 0 auto 4px auto;
  max-width: 40px;
  max-height: 40px;
}

.match-card.revealed,
.match-card.done {
  background: #fffdf0;
}

.match-card.done {
  border-style: inset;
}

.match-card .card-label {
  display: block;
  line-height: 1.15;
}

.signal-pad {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px;
  margin-bottom: 8px;
}

.signal-pad button {
  width: 100%;
  height: 64px;
  border: 2px outset #c8c8c8;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.signal-pad .signal-north {
  background: #d7ebff;
  color: #24496e;
}

.signal-pad .signal-east {
  background: #ffe7a8;
  color: #6c4d00;
}

.signal-pad .signal-south {
  background: #d8f0cf;
  color: #2f5a24;
}

.signal-pad .signal-west {
  background: #ffd3cc;
  color: #7a2e24;
}

.signal-pad button.active {
  border-style: inset;
  filter: brightness(0.9);
}

.score-strip {
  border: 1px solid #aab8ce;
  background: #ffffff;
  padding: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  font-family: Tahoma, Verdana, Arial, sans-serif;
}

.score-strip strong {
  margin-right: 8px;
}

.marquee-shell {
  border: 1px solid #c9bea6;
  background: #fffdf7;
  margin-bottom: 14px;
  font-size: 12px;
  box-shadow: 3px 3px 0 rgba(118, 105, 79, 0.12);
}

.marquee-label {
  background: #e9dcc0;
  border-bottom: 1px solid #d3d0c5;
  color: #5b4730;
  font-weight: bold;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.marquee-shell marquee {
  display: block;
  padding: 6px 8px;
  color: #403523;
}

.button-banner {
  border: 1px solid #c9bea6;
  background: #f7f2e6;
  padding: 10px;
  margin-bottom: 14px;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(118, 105, 79, 0.12);
}

.button-banner a {
  display: inline-block;
  margin: 4px 6px;
  vertical-align: middle;
}

.button-banner img {
  display: block;
  border: 1px solid #998d75;
}

.science-jump-strip {
  margin-top: -2px;
}

.home-card-button {
  display: inline-block;
  width: 156px;
  height: 22px;
  max-width: 100%;
  image-rendering: auto;
}

.home-card-button-wrap {
  text-align: center;
  margin: 12px 0 2px 0;
}

.button-caption {
  color: #6a614f;
  font-size: 11px;
  margin-top: 4px;
}

.thumb-grid,
.utility-grid {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 14px 0;
  margin-bottom: 14px;
}

.thumb-cell,
.utility-cell {
  display: table-cell;
  vertical-align: top;
}

.thumb-grid.three-up .thumb-cell,
.utility-grid.three-up .utility-cell {
  width: 33.33%;
}

.thumb-grid.two-up .thumb-cell,
.utility-grid.two-up .utility-cell {
  width: 50%;
}

.thumb-card,
.utility-panel,
.headline-lead {
  border: 1px solid #c9bea6;
  background: #ffffff;
  box-shadow: 3px 3px 0 rgba(118, 105, 79, 0.12);
}

.thumb-card img,
.headline-lead img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: #d5d0c5;
}

.thumb-card img.home-card-button {
  display: inline-block;
  width: 156px;
  height: 22px;
  object-fit: fill;
  background: transparent;
}

.thumb-body,
.utility-panel,
.headline-lead-body {
  padding: 11px;
}

.thumb-title,
.utility-title {
  color: #5a2015;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.thumb-body p,
.utility-panel p,
.headline-lead-body p {
  margin: 0 0 8px 0;
  font-size: 12px;
  line-height: 1.4;
}

.thumb-meta,
.archive-meta,
.clip-date {
  color: #6a6354;
  font-size: 11px;
}

.icon-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon-links li {
  margin-bottom: 8px;
  font-size: 12px;
}

.icon-links img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 6px;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.status-table td {
  border-top: 1px solid #e7e1d3;
  padding: 5px 3px;
}

.status-table tr:first-child td {
  border-top: 0;
}

.download-box {
  border: 1px dashed #b6ac94;
  background: #fbf7ed;
  color: #4b4334;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 8px;
  padding: 8px;
}

.counter-box {
  border: 1px solid #b1a994;
  background: #1b1b1b;
  color: #b8f1a9;
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
}

.media-player {
  border: 1px solid #bdb39a;
  background: #f8f4ea;
  margin-bottom: 10px;
  padding: 8px;
  font-size: 12px;
}

.player-title {
  color: #513925;
  font-weight: bold;
  margin-bottom: 4px;
}

.player-bar {
  height: 10px;
  border: 1px solid #b6ac94;
  background: #ffffff;
  margin: 6px 0;
  position: relative;
}

.player-fill {
  display: block;
  height: 100%;
  background: #89a8cc;
}

.archive-list {
  margin-bottom: 12px;
}

.news-clip {
  border: 1px solid #c9bea6;
  background: #fffef9;
  margin-bottom: 12px;
  padding: 11px;
  box-shadow: 3px 3px 0 rgba(118, 105, 79, 0.1);
}

.news-clip .result-title {
  margin-bottom: 4px;
}

.utility-links {
  background: #f3eedf;
  border: 1px solid #c9bea6;
  color: #5b5141;
  font-size: 12px;
  margin-bottom: 14px;
  padding: 6px 8px;
  box-shadow: 3px 3px 0 rgba(118, 105, 79, 0.1);
}

.gallery-strip {
  border: 1px solid #c9bea6;
  background: #ffffff;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(118, 105, 79, 0.12);
}

.gallery-strip img {
  display: block;
  float: left;
  width: 33.33%;
  height: 132px;
  object-fit: cover;
}

.headline-lead {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.headline-lead img,
.headline-lead-body {
  display: table-cell;
  vertical-align: top;
}

.headline-lead img {
  width: 40%;
  height: 244px;
}

.headline-lead-body {
  width: 60%;
}

.home-layout,
.trailcam-layout,
.evidence-layout,
.archive-hero {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 14px 0;
  margin-bottom: 14px;
}

.home-layout .primary-column,
.home-layout .side-column,
.trailcam-layout .primary-column,
.trailcam-layout .side-column,
.evidence-photos,
.evidence-copy,
.archive-hero img,
.archive-hero-body {
  display: table-cell;
  vertical-align: top;
}

.home-layout .primary-column {
  width: 68%;
}

.home-layout .side-column {
  width: 32%;
}

.trailcam-layout .primary-column {
  width: 64%;
}

.trailcam-layout .side-column {
  width: 36%;
}

.home-splash,
.camera-shell,
.archive-hero {
  border: 1px solid #c9bea6;
  background: #ffffff;
  box-shadow: 4px 4px 0 rgba(118, 105, 79, 0.14);
}

.home-splash-image,
.camera-shell img,
.archive-hero img {
  display: block;
  width: 100%;
  height: 285px;
  object-fit: cover;
  background: #d5d0c5;
}

.home-splash-body,
.archive-hero-body {
  padding: 12px;
  background: #fffaf0;
}

.archive-hero img {
  display: table-cell;
  width: 42%;
  max-width: 42%;
}

.archive-hero-body {
  display: table-cell;
  width: 58%;
}

.home-sticker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border: 1px dashed #7e6a35;
  background: #ffe898;
  color: #6c3700;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.camera-statusbar {
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  padding: 5px 8px;
  border-top: 1px solid #2d2d2d;
  font-family: "Courier New", monospace;
}

.camera-statusbar.alt {
  background: #2a2a2a;
}

.camera-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #dbe3d7;
  border-bottom: 1px solid #97a48d;
  color: #1d331a;
  font-family: "Courier New", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.camera-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a8e41;
  box-shadow: 0 0 0 1px #1e1e1e, 0 0 6px rgba(74, 142, 65, 0.55);
  flex: 0 0 auto;
}

.camera-led.alert {
  background: #b33a2f;
  box-shadow: 0 0 0 1px #1e1e1e, 0 0 8px rgba(179, 58, 47, 0.65);
}

.camera-screen {
  position: relative;
  background: #000000;
  overflow: hidden;
}

.camera-screen img {
  filter: saturate(0.82) contrast(1.05);
}

.camera-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #f4f7f1;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.camera-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.camera-console {
  border-top: 1px solid #adb9a8;
  background: #f0f4ed;
  padding: 10px;
}

.camera-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.camera-button {
  border: 1px solid #7f8d7c;
  background: #ffffff;
  color: #1d2b1c;
  padding: 4px 8px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  cursor: pointer;
}

.camera-button.active,
.camera-button:active {
  background: #dbe5d6;
  border-color: #587154;
}

.camera-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.camera-meter {
  border: 1px solid #bcbcbc;
  background: #ffffff;
  padding: 7px 8px;
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.camera-meter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.camera-meter-bar {
  flex: 1 1 auto;
  height: 8px;
  background: #d6d6d6;
  border: 1px solid #a6a6a6;
  overflow: hidden;
}

.camera-meter-fill {
  display: block;
  height: 100%;
  background: linear-gradient(to right, #3b6f35, #8eb86d);
}

.camera-meter-fill.archive {
  background: linear-gradient(to right, #576b4c, #a2ba8b);
}

.camera-log {
  border: 1px solid #bcbcbc;
  background: #ffffff;
  min-height: 74px;
  padding: 8px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.45;
}

.camera-log-entry {
  border-top: 1px dotted #cfcfcf;
  padding-top: 5px;
  margin-top: 5px;
}

.camera-log-entry:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.survey-panel {
  border: 1px solid #bcbcbc;
  background: #ffffff;
  padding: 8px;
}

.survey-photo-shell {
  position: relative;
  border: 1px solid #000000;
  background: #000000;
  overflow: hidden;
}

.survey-photo-shell img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
}

.survey-photo-shell.alert {
  box-shadow: 0 0 0 3px #7d2017;
}

.survey-photo-shell.alert img {
  filter: grayscale(0.15) contrast(1.12);
}

.survey-photo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(18, 18, 18, 0.82);
  color: #f4f7f1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 3px 6px;
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.survey-crosshair {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.survey-crosshair.active {
  opacity: 1;
}

.survey-crosshair::before,
.survey-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.35);
}

.survey-crosshair::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
}

.survey-crosshair::after {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-0.5px);
}

.survey-caption {
  margin-top: 6px;
  color: #5f5b4f;
  font-size: 11px;
}

.survey-button-row {
  margin-top: 8px;
}

.survey-transcript {
  margin-top: 8px;
  border: 1px solid #bcbcbc;
  background: #f8f8f8;
  min-height: 84px;
  padding: 8px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.45;
}

.survey-transcript .danger-line {
  color: #7d2017;
}

.survey-alert {
  display: none;
  margin-top: 8px;
  border: 1px solid #7d2017;
  background: #fff2ef;
  color: #4e1711;
  padding: 8px;
  font-size: 12px;
}

.survey-alert.visible {
  display: block;
}

.search-memory {
  border: 1px solid #c9bea6;
  background: #fffdf7;
  box-shadow: 3px 3px 0 rgba(118, 105, 79, 0.1);
  margin-bottom: 12px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.search-memory strong {
  display: block;
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  color: #5a2015;
}

.search-chip {
  display: inline-block;
  margin: 3px 6px 3px 0;
  padding: 3px 7px;
  border: 1px solid #bcb39a;
  background: #ffffff;
  color: #2f2a20;
  font-family: "Courier New", monospace;
  font-size: 11px;
  text-decoration: none;
}

.search-chip:hover {
  background: #f4ead1;
  text-decoration: none;
}

.memory-list,
.pattern-list {
  font-size: 12px;
  line-height: 1.5;
}

.memory-list .muted {
  display: block;
  margin-top: 4px;
}

.integrity-panel {
  border: 1px solid #bac3cf;
  background: #f7f9fc;
  box-shadow: 3px 3px 0 rgba(102, 111, 126, 0.12);
  margin-bottom: 14px;
  padding: 12px;
}

.integrity-title {
  color: #30445d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.integrity-panel p {
  margin: 0 0 10px 0;
  font-size: 12px;
  line-height: 1.45;
}

.integrity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.integrity-button {
  border: 1px solid #8795a6;
  background: #ffffff;
  color: #203449;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 11px;
  padding: 4px 8px;
}

.integrity-button.active,
.integrity-button:active {
  background: #dfe7f2;
  border-color: #5f738c;
}

.integrity-screen {
  border: 1px solid #c0c9d5;
  background: #ffffff;
  min-height: 112px;
  padding: 10px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.5;
}

.integrity-screen .danger-line {
  color: #7d2017;
}

.integrity-screen .muted-line {
  color: #677487;
}

.integrity-log {
  margin-top: 8px;
  border: 1px solid #c7cfda;
  background: #eef3f8;
  color: #405163;
  padding: 7px 8px;
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.thermal-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.thermal-overlay.visible {
  opacity: 1;
}

.thermal-overlay::before {
  content: "";
  position: absolute;
  left: 28%;
  bottom: 12%;
  width: 22%;
  height: 34%;
  background: radial-gradient(circle, rgba(255, 160, 77, 0.72), rgba(255, 73, 28, 0.18) 72%, transparent 78%);
}

.thermal-overlay::after {
  content: "";
  position: absolute;
  right: 19%;
  top: 18%;
  width: 14%;
  height: 58%;
  background: linear-gradient(to bottom, rgba(255, 205, 99, 0.1), rgba(255, 74, 32, 0.72), rgba(124, 10, 8, 0.35));
  border-radius: 40% 40% 20% 20%;
}

.thermal-readout {
  margin-top: 8px;
  border: 1px solid #bcbcbc;
  background: #faf7f1;
  padding: 7px 8px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.45;
}

.recorder-panel {
  border: 1px solid #bcbcbc;
  background: #ffffff;
  padding: 8px;
}

.recorder-meter {
  display: flex;
  gap: 3px;
  margin-top: 8px;
  height: 32px;
  align-items: end;
}

.recorder-meter span {
  display: block;
  flex: 1 1 auto;
  background: linear-gradient(to top, #44647d, #bdd0e3);
  height: 18%;
}

.recorder-meter.alert span:nth-child(2),
.recorder-meter.alert span:nth-child(5),
.recorder-meter.alert span:nth-child(8) {
  height: 100%;
  background: linear-gradient(to top, #7d2017, #e39d87);
}

.recorder-readout {
  margin-top: 8px;
  border: 1px solid #bcbcbc;
  background: #f7f8fb;
  padding: 7px 8px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.45;
}

#posterCRT {
  width: 480px;
  margin: 10px auto 18px auto;
  background: #ffffff;
  color: #000000;
  border: 1px solid #cccccc;
  padding: 18px;
  text-align: center;
  font-family: "Courier New", monospace;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

#posterCRT div.title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 6px;
}

#posterCRT div.headline {
  font-size: 14px;
  margin-bottom: 8px;
}

#posterCRT .info {
  text-align: left;
  font-size: 13px;
  margin-bottom: 10px;
}

#posterCRT .images {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
}

#posterCRT .images img {
  width: 140px;
  height: auto;
  border: 1px solid #000000;
  background: #ffffff;
  display: block;
}

#posterCRT .callout {
  font-size: 13px;
  margin-top: 6px;
}

#posterCRT .contact {
  font-size: 12px;
  margin-top: 6px;
}

.crt-scanline {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    rgba(255, 255, 255, 0) 2px
  );
  mix-blend-mode: multiply;
  opacity: 0.22;
}

.wiggle-frame {
  animation: wobbleFrame 5.8s ease-in-out infinite;
  transform-origin: center top;
}

.floaty-note {
  animation: floatCard 4.8s ease-in-out infinite;
}

.moving-tag {
  animation: bobTag 2.8s ease-in-out infinite;
}

.blink-lite {
  animation: blinkLite 1.25s steps(2, end) infinite;
}

@keyframes resonanceFlicker {
  0% { opacity: 1; }
  50% { opacity: 0.58; }
  100% { opacity: 1; }
}

@keyframes wobbleFrame {
  0% { transform: rotate(-0.7deg); }
  50% { transform: rotate(0.7deg); }
  100% { transform: rotate(-0.7deg); }
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes bobTag {
  0% { transform: translateX(0); }
  50% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

@keyframes blinkLite {
  0% { opacity: 1; }
  50% { opacity: 0.45; }
  100% { opacity: 1; }
}

@media (max-width: 820px) {
  .page {
    width: 94%;
  }

  .page-narrow {
    width: 94%;
  }

  .content-shell,
  .summary-grid,
  .thumb-grid,
  .utility-grid,
  .headline-lead,
  .home-layout,
  .trailcam-layout,
  .archive-hero,
  .kids-splash,
  .kids-shortcut-grid,
  .kids-mission-grid,
  .kids-room-header {
    display: block;
  }

  .side-nav,
  .main-panel,
  .stack-gap,
  .summary-grid .cell,
  .thumb-cell,
  .utility-cell,
  .headline-lead img,
  .headline-lead-body,
  .home-layout .primary-column,
  .home-layout .side-column,
  .trailcam-layout .primary-column,
  .trailcam-layout .side-column,
  .archive-hero img,
  .archive-hero-body,
  .kids-splash-main,
  .kids-splash-side,
  .kids-shortcut,
  .kids-mission-card,
  .kids-room-header-main,
  .kids-room-header-side {
    display: block;
    width: auto;
    padding-right: 0;
  }

  .stack-gap {
    height: 12px;
  }

  .gallery-strip img {
    float: none;
    width: 100%;
    height: auto;
  }

  .thumb-card img,
  .home-splash-image,
  .camera-shell img,
  .headline-lead img,
  .archive-hero img {
    height: auto;
  }

  .delayed-popup {
    right: 8px;
    left: 8px;
    width: auto;
  }

  .camera-meters {
    grid-template-columns: 1fr;
  }

  .survey-photo-shell img {
    height: auto;
  }

  .integrity-actions {
    display: block;
  }

  .integrity-button {
    display: block;
    width: 100%;
    margin-bottom: 6px;
  }

  #posterCRT {
    width: 100%;
    box-sizing: border-box;
  }

  #posterCRT .images img {
    width: 45%;
  }
}
