/* Shared tactical shell for the live wiki. Loaded after the legacy inline CSS. */
:root {
  --bg: #070907;
  --panel: #10130f;
  --panel2: #161a15;
  --line: #30372f;
  --text: #f3f1e8;
  --muted: #9da397;
  --accent: #d2b873;
  --accent2: #ffe7a5;
  --green: #8fbd79;
  --shadow: 0 24px 70px rgba(0, 0, 0, .48);
  --radius: 4px;
}

body {
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 100% 4px,
    radial-gradient(circle at 78% 8%, rgba(170,151,93,.09), transparent 28rem),
    #070907;
  font-feature-settings: "palt" 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .16;
  pointer-events: none;
  background-image: url("assets/editorial/guide-map-texture.webp");
  background-size: cover;
  filter: grayscale(1) contrast(1.4);
}

.shell { grid-template-columns: 272px minmax(0, 1fr); }

.sidebar {
  padding: 26px 18px;
  border-right: 1px solid #494d42;
  background:
    linear-gradient(180deg, rgba(5,7,6,.83), #070907 50%),
    url("assets/editorial/ground-zero-avenue.webp") 62% top / auto 42% no-repeat,
    #070907;
  box-shadow: 14px 0 50px #0008;
}

.brand { align-items: flex-start; gap: 13px; padding: 0 4px 28px; }
.brand::after { content: "FIELD DATABASE\A BUILD 08.25"; white-space: pre; margin-left: auto; color: #6f756b; font: 700 8px/1.5 ui-monospace, monospace; letter-spacing: .1em; }
.logo {
  width: 48px;
  height: 48px;
  border: 1px solid #7f744e;
  border-radius: 0;
  background: linear-gradient(135deg, #37331f, #11130f 70%);
  color: #f3dda0;
  box-shadow: inset 0 0 0 3px #0b0d0b, 0 10px 30px #0009;
  clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 100%, 18% 100%, 0 82%);
  font-family: ui-monospace, monospace;
  letter-spacing: -.08em;
}
.brand b { font-size: 13px; line-height: 1.5; letter-spacing: .035em; }

.nav { gap: 6px; }
.nav button, .nav a {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: rgba(9, 12, 9, .72);
  color: #b8beb3;
  letter-spacing: .03em;
}
.nav button:hover, .nav a:hover { border-color: #3b4138; background: #171b16; color: #fff; }
.nav button.active {
  border-color: #665f43;
  background: linear-gradient(90deg, #292719, #121611);
  color: #f8edcd;
  box-shadow: inset 3px 0 #d2b873;
}
.nav .ico { color: #d2b873; font-family: ui-monospace, monospace; }
.side-foot { color: #686f65; font-family: ui-monospace, monospace; letter-spacing: .025em; }

.topbar {
  min-height: 68px;
  padding: 11px 26px;
  border-bottom: 1px solid #333a32;
  background: rgba(7, 9, 7, .86);
  backdrop-filter: blur(18px) saturate(.8);
}
.search { height: 46px; border-radius: 2px; border-color: #454b40; background: #0d100dcf; }
.search:focus { border-color: #9b8958; box-shadow: 0 0 0 3px rgba(210,184,115,.08); }
.kbd, .sync { border-radius: 2px; }
.content { padding: 34px 34px 74px; }

.hero { grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr); gap: 0; margin-bottom: 30px; box-shadow: var(--shadow); }
.hero-card, .panel, .card, .table-wrap, .modal { border-radius: 3px; }
.hero-copy {
  position: relative;
  min-height: 480px;
  padding: 52px;
  overflow: hidden;
  border-color: #474b3f;
  background:
    linear-gradient(90deg, rgba(5,7,6,.98) 0%, rgba(5,7,6,.8) 48%, rgba(5,7,6,.16) 100%),
    url("assets/editorial/ground-zero-avenue.webp") center / cover;
}
.hero-copy::before, .home-search::before {
  content: "// CLEARANCE: PUBLIC";
  position: absolute;
  top: 22px;
  right: 24px;
  color: #a9a47c;
  font: 700 9px/1 ui-monospace, monospace;
  letter-spacing: .15em;
}
.hero-copy::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 78px;
  height: 78px;
  border-right: 1px solid #b7aa75;
  border-bottom: 1px solid #b7aa75;
  opacity: .65;
}
.hero-copy > * { position: relative; z-index: 1; }
.eyebrow { color: #d5bf81; font-family: ui-monospace, monospace; letter-spacing: .2em; }
h1 { max-width: 760px; font-size: clamp(38px, 5.7vw, 76px); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.hero p { max-width: 600px; color: #c5c8bd; font-size: 15px; }
.hero-actions { margin-top: 28px; }
.chip {
  border-radius: 2px;
  border-color: #535748;
  background: rgba(12,15,12,.78);
  color: #e9e5d7;
  font-weight: 750;
}
.chip:hover { border-color: #b19c62; background: #282719; color: #fff3ce; }
.hero-status {
  position: relative;
  padding: 24px;
  border-left: 0;
  background: linear-gradient(160deg, #1b1d16, #0b0e0b);
}
.status-kicker { color: #8fbd79; font: 800 9px/1 ui-monospace, monospace; letter-spacing: .15em; }
.status-kicker::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #8fbd79; box-shadow: 0 0 12px #8fbd79; }
.stat { border-radius: 2px; border-color: #353a31; background: rgba(8,10,8,.6); }
.stat b { color: #f3e3b3; font-family: ui-monospace, monospace; }

.home-search {
  position: relative;
  max-width: 1180px;
  min-height: 510px;
  margin: 0 auto;
  padding: 76px 50% 52px 52px;
  overflow: hidden;
  border: 1px solid #474b3f;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(5,7,6,.98), rgba(5,7,6,.77) 50%, rgba(5,7,6,.08)),
    url("assets/editorial/ground-zero-avenue.webp") center / cover;
  box-shadow: var(--shadow);
}
.home-search .question-links { justify-content: flex-start; }
.home-search h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1; }
.home-search p { color: #c4c7bc; line-height: 1.8; }

.quick-grid { gap: 8px; }
.quick { min-height: 132px; border-radius: 2px; background: linear-gradient(145deg, #151914, #0c0f0c); }
.quick .qico { color: #d2b873; font-family: ui-monospace, monospace; }
.section-head { border-bottom: 1px solid #343a32; padding-bottom: 12px; }
.section-head h2::before { content: "// "; color: #8f8158; font-family: ui-monospace, monospace; }
.card { border-color: #2f352d; background: linear-gradient(145deg, #121611, #0b0e0b); }
.card:hover { border-color: #8d8057; background: #171b15; transform: translateY(-3px); box-shadow: 0 16px 30px #0007; }
.thumb, .detail-img { border-radius: 2px; background: radial-gradient(circle, #1d211b, #090b09); }
.tag { border-radius: 2px; }
.price { color: #e2c779; }
.modal { border-color: #5c604f; background: #0b0e0b; }
.map-stage, .location-dialog, .drop-zone { border-radius: 3px; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { width: 272px; }
  .hero { grid-template-columns: 1fr; }
  .hero-status { grid-template-columns: repeat(4, 1fr); border-top: 0; border-left: 1px solid #474b3f; }
  .status-kicker { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .content { padding: 12px 10px 42px; }
  .hero-copy { min-height: 480px; padding: 52px 22px 28px; background-position: 61% center; }
  .hero-copy::after { display: none; }
  h1 { font-size: 40px; }
  .hero-status { grid-template-columns: 1fr 1fr; padding: 10px; }
  .home-search { min-height: 550px; padding: 64px 22px 28px; background-position: 62% center; }
  .home-search h1 { font-size: 40px; }
  .home-search::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 20%, #060806e6 72%); pointer-events: none; }
  .home-search > * { position: relative; z-index: 1; }
  .home-search .question-links { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
