/* Original colony records and rules, arranged as an outpost field journal. */
#log-view .section-panel {
  padding: 28px;
  border-color: #5f5a4b;
  border-top: 2px solid #a58a58;
  border-radius: 2px;
  background: #20221f;
}

#log-view .section-intro {
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
}

#log-view .section-intro > div { min-width: 0; }
#log-view .section-intro .eyebrow { color: #c0b59a; letter-spacing: .18em; }
#log-view .section-intro h2 {
  margin: 10px 0 8px;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--text);
}

#log-view .section-intro p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

#log-view .small-tag {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid #756747;
  border-radius: 2px;
  background: #302e24;
  color: #dac89f;
  font-size: 11px;
  white-space: nowrap;
}

#log-view .full-log {
  min-width: 0;
  border-bottom: 1px solid var(--border);
}

#log-view .activity-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 20px 8px;
  border-top: 1px solid #514f44;
  color: #d8d3c7;
  font-size: 13px;
  line-height: 1.9;
}

#log-view .activity-row:nth-child(even) { background: #ffffff03; }
#log-view .activity-row::before {
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border: 1px solid #bba274;
  border-radius: 0;
  background: #80704e;
}

#log-view .activity-row p { min-width: 0; overflow-wrap: anywhere; }
#log-view .activity-row time {
  margin-left: 0;
  padding: 3px 8px;
  border: 1px solid #504c40;
  border-radius: 2px;
  background: #191b19;
  color: #c7bfae;
  font-size: 11px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

#log-view .empty-state {
  padding: 44px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

#game-dialog .guide-current {
  padding: 20px;
  margin: 20px 0 24px;
  border: 1px solid #8c7950;
  border-left: 3px solid #c2a66b;
  border-radius: 2px;
  background: #302e23;
}

#game-dialog .guide-current > strong {
  color: #ead6a8;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

#game-dialog .guide-current > p,
#game-dialog .guide-intro {
  color: #d0c7b5;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

#game-dialog .guide-current > p { margin: 10px 0 16px !important; }
#game-dialog .guide-current > button {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}

#game-dialog .guide-steps {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

#game-dialog .guide-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #565246;
}

#game-dialog .guide-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid #706347;
  border-radius: 2px;
  background: #343125;
  color: #d4bf91;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

#game-dialog .guide-steps li > div { min-width: 0; }
#game-dialog .guide-steps strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

#game-dialog .guide-steps p {
  margin-top: 8px;
  color: #c7c1b5;
  font-size: 13px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

#game-dialog .guide-steps p + p { margin-top: 12px; }
#game-dialog .guide-advanced {
  margin: 24px 0;
  border: 1px solid #756747;
  border-radius: 2px;
  background: #1c1e1b;
}

#game-dialog .guide-advanced > summary {
  min-height: 48px;
  padding: 14px 16px;
  color: #e3cea1;
  background: #343025;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  cursor: pointer;
  overflow-wrap: anywhere;
}

#game-dialog .guide-advanced > summary:hover { background: #40392a; }
#game-dialog .guide-advanced[open] > summary {
  margin-bottom: 0;
  border-bottom: 1px solid #756747;
}

#game-dialog .guide-advanced > p,
#game-dialog .guide-advanced > ol {
  margin: 20px 16px;
}

#game-dialog .guide-advanced > p {
  color: #c7c1b5;
  font-size: 13px;
  line-height: 2;
  overflow-wrap: anywhere;
}

#game-dialog .guide-advanced > .dialog-note { line-height: 1.95; }
#game-dialog .guide-advanced .guide-steps li { gap: 12px; }
#game-dialog .policy-guide {
  padding: 20px 0;
  border-top: 1px solid #655b44;
}

#game-dialog .policy-guide h3 { color: #e1c994; font-size: 15px; line-height: 1.6; }
#game-dialog .policy-guide p {
  margin-top: 10px;
  color: #c7c1b5;
  font-size: 13px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

@media (max-width: 650px) {
  #log-view .section-panel { padding: 20px 16px; }
  #log-view .section-intro { flex-wrap: wrap; gap: 16px; padding-bottom: 20px; }
  #log-view .section-intro h2 { font-size: 21px; }
  #log-view .activity-row { gap: 12px; padding: 16px 0; font-size: 12px; }
  #log-view .activity-row time { padding: 3px 5px; font-size: 10px; }
  #game-dialog .guide-current { padding: 16px; margin-top: 16px; }
  #game-dialog .guide-steps li { gap: 12px; padding: 16px 0; }
  #game-dialog .guide-advanced > p,
  #game-dialog .guide-advanced > ol { margin: 16px 12px; }
  #game-dialog .guide-advanced > summary { padding: 14px 12px; }
}

@media (max-width: 380px) {
  #log-view .activity-row { grid-template-columns: 6px minmax(0, 1fr); gap: 8px 12px; }
  #log-view .activity-row p { grid-column: 2; }
  #log-view .activity-row time { grid-column: 2; justify-self: start; }
  #game-dialog .guide-steps li { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  #game-dialog .guide-steps li::before { width: 24px; min-height: 28px; }
}
