/* Buckeye EDP — shared visual system
   Warm paper, deep navy chrome, teal/amber signals.
   Loaded after each page's local styles so the portfolio reads as one product. */

body.theme-station12,
body.theme-ps2,
body.theme-sentinel,
body.theme-pipeguard,
body.theme-manual {
  --brand-navy:#0c1f2e;
  --brand-navy2:#123a52;
  --brand-teal:#0f766e;
  --brand-teal2:#147a72;
  --brand-amber:#e8a33d;
  --brand-paper:#f4efe5;
  --brand-card:#fffdf8;
  --brand-ink:#14252f;
  --brand-muted:#61707a;
  --brand-line:#ddd4c4;
  --brand-red:#b42318;
  --brand-green:#067647;
  --brand-blue:#1f4e79;
  --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --shadow:0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.05);
}

/* page tokens */
body.theme-station12{
  --bg:#f4efe5; --card:#fffdf8; --ink:#14252f; --muted:#61707a;
  --line:#ddd4c4; --blue:#0f766e; --blue2:#147a72; --teal:#0f766e;
  --acc:#0f766e; --amber:#b45309; --red:#b42318; --green:#067647;
  --shadow:0 1px 2px #10182808, 0 8px 24px #1018280d;
}
body.theme-ps2{
  --navy:#0c1f2e; --navy2:#123a52; --ink:#14252f; --muted:#61707a;
  --line:#ddd4c4; --paper:#fffdf8; --bg:#f4efe5; --teal:#0f766e;
  --teal2:#14b8a6; --amber:#b45309; --red:#b42318; --green:#067647;
  --shadow:0 1px 2px #10182808, 0 8px 24px #1018280d;
}
body.theme-sentinel{
  --bg:#f4efe5; --card:#fffdf8; --ink:#14252f; --muted:#61707a;
  --line:#ddd4c4; --navy:#0c1f2e; --teal:#0f766e; --amber:#b45309;
  --red:#b42318; --green:#067647; --blue:#1f4e79;
}
body.theme-pipeguard{
  --bg:#f4efe5; --panel:#fffdf8; --panel2:#f8f3e9; --line:#ddd4c4;
  --text:#14252f; --muted:#61707a; --teal:#0f766e; --amber:#b45309;
  --red:#b42318; --green:#067647; --blue:#1f4e79;
}
body.theme-manual{
  --paper:#f4efe5; --paper-2:#ebe4d7; --card:#fffdf8; --ink:#14252f;
  --ink-2:#31434b; --muted:#61707a; --line:#ddd4c4; --line-dark:#b9ab95;
  --signal:#d95d2a; --signal-dark:#b2471c; --signal-light:#e8a33d;
  --teal:#0f766e; --teal-dark:#155449; --green:#2f6b4f;
  --amber:#c98a2e; --red:#b4472f; --cream:#f4efe5; --cream-muted:#adbfba;
}

/* shared page surface */
body.theme-station12,
body.theme-ps2,
body.theme-sentinel,
body.theme-pipeguard,
body.theme-manual{
  background:
    radial-gradient(1200px 500px at 100% 0%, rgba(232,163,61,.07), transparent 60%),
    #f4efe5 !important;
  color:var(--brand-ink) !important;
  font-family:var(--sans) !important;
  -webkit-font-smoothing:antialiased;
}

/* one header chrome */
body.theme-station12 .topbar,
body.theme-ps2 .topbar,
body.theme-sentinel .top,
body.theme-pipeguard .wrap > header{
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0/42px 42px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0/42px 42px,
    linear-gradient(120deg,#081924,#0c2c40 48%,#0b4a46) !important;
  color:#f5f1e8 !important;
  border-color:rgba(255,255,255,.12) !important;
}
body.theme-pipeguard .wrap > header{
  padding:18px 22px !important;
  border-radius:14px;
  box-shadow:0 12px 34px rgba(12,31,46,.18);
  margin-bottom:16px !important;
}
body.theme-manual .site-header,
body.theme-manual .hero{
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0/42px 42px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0/42px 42px,
    linear-gradient(120deg,#081924,#0c2c40 48%,#0b4a46) !important;
  color:#f5f1e8 !important;
}

/* brand mark */
body.theme-station12 .mark,
body.theme-ps2 .mark,
body.theme-sentinel .mark{
  background:linear-gradient(145deg,#147a72,#0a4f4a) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  color:#fff !important;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}

/* header type */
body.theme-station12 .topbar h1,
body.theme-ps2 .topbar h1,
body.theme-sentinel .top h1,
body.theme-pipeguard .wrap > header h1{
  font-size:22px !important;
  font-weight:750 !important;
  letter-spacing:-.02em !important;
  color:#f5f1e8 !important;
}
body.theme-station12 .sub,
body.theme-ps2 .topbar p,
body.theme-sentinel .sub,
body.theme-pipeguard .wrap > header .sub{
  color:#c6d9d5 !important;
}
body.theme-pipeguard .wrap > header .badge{
  color:#f2e7ce !important;
  border-color:rgba(255,255,255,.22) !important;
  background:rgba(255,255,255,.08) !important;
}

/* cards and panels */
body.theme-station12 .card,
body.theme-station12 .kpi,
body.theme-ps2 .card,
body.theme-ps2 .asset-card,
body.theme-ps2 .side-card,
body.theme-ps2 .results-card,
body.theme-sentinel .card,
body.theme-sentinel .kpi,
body.theme-pipeguard .panel,
body.theme-pipeguard .kpi{
  background:var(--brand-card) !important;
  border-color:var(--brand-line) !important;
  box-shadow:var(--shadow) !important;
}
body.theme-ps2 .memo{
  background:#fffdf8 !important;
  border-color:var(--brand-line) !important;
}
body.theme-pipeguard .panel,
body.theme-pipeguard .kpi{
  border-radius:14px;
}
body.theme-pipeguard .kpi{
  background:var(--brand-card) !important;
}
body.theme-pipeguard .panel-head h2,
body.theme-pipeguard .panel-head .note,
body.theme-pipeguard .chart h3,
body.theme-pipeguard .chart .csub{
  color:var(--brand-ink) !important;
}
body.theme-pipeguard .panel-head .note,
body.theme-pipeguard .chart .csub{
  color:var(--brand-muted) !important;
}
body.theme-pipeguard .legend{
  color:var(--brand-muted) !important;
  border-color:var(--brand-line) !important;
}
body.theme-pipeguard #net{
  background:#faf6ec !important;
}

/* tables */
body.theme-station12 th,
body.theme-ps2 th,
body.theme-sentinel th,
body.theme-pipeguard th{
  background:#f0eadf !important;
  color:var(--brand-muted) !important;
  border-color:var(--brand-line) !important;
}
body.theme-station12 td,
body.theme-ps2 td,
body.theme-sentinel td,
body.theme-pipeguard td{
  border-color:var(--brand-line) !important;
  color:var(--brand-ink) !important;
}
body.theme-pipeguard tbody tr:hover{
  background:#f5eee1 !important;
}
body.theme-pipeguard tbody tr.sel{
  background:#efe6d6 !important;
  box-shadow:inset 3px 0 0 var(--brand-teal) !important;
}

/* tabs */
body.theme-ps2 .tabs{
  background:rgba(255,253,248,.96) !important;
  border-color:var(--brand-line) !important;
}
body.theme-station12 .tabs button.on{
  background:var(--brand-paper) !important;
  color:var(--brand-teal) !important;
}

/* controls */
body.theme-station12 .btn,
body.theme-sentinel .btn,
body.theme-ps2 .btn,
body.theme-pipeguard .btn{
  border-radius:8px;
}
body.theme-station12 .btn.primary,
body.theme-sentinel .btn.primary,
body.theme-ps2 .btn.primary{
  background:var(--brand-amber) !important;
  border-color:var(--brand-amber) !important;
  color:#231a05 !important;
}
body.theme-station12 select,
body.theme-station12 input[type="text"],
body.theme-sentinel select,
body.theme-sentinel input[type="text"],
body.theme-pipeguard select,
body.theme-pipeguard input[type="text"]{
  background:var(--brand-card) !important;
  border-color:var(--brand-line) !important;
  color:var(--brand-ink) !important;
}
body.theme-pipeguard .toggle{
  background:#f0eadf !important;
  border-color:var(--brand-line) !important;
}
body.theme-pipeguard .toggle button{
  color:var(--brand-muted) !important;
}
body.theme-pipeguard .toggle button.on{
  background:var(--brand-navy) !important;
  color:#fff !important;
  box-shadow:none !important;
}

/* PipeGuard light conversion */
body.theme-pipeguard .insight{
  background:#f8f3e9 !important;
  color:var(--brand-muted) !important;
  border-color:var(--brand-line) !important;
}
body.theme-pipeguard .insight b{
  color:var(--brand-ink) !important;
}
body.theme-pipeguard .note-box{
  background:#f8f3e9 !important;
  color:var(--brand-muted) !important;
  border-color:var(--brand-line) !important;
}
body.theme-pipeguard .bar{
  background:#e9e1d2 !important;
}
body.theme-pipeguard .status.ok{
  background:#e7f5ee !important;
  border-color:#b7dfc8 !important;
  color:#067647 !important;
}
body.theme-pipeguard .status.bad{
  background:#fbe9e6 !important;
  border-color:#e7b9b2 !important;
  color:#b42318 !important;
}
body.theme-pipeguard .chip{
  color:var(--brand-muted) !important;
  border-color:var(--brand-line) !important;
}
body.theme-pipeguard .chip.up{
  color:#8a5a10 !important;
  background:#f8edd7 !important;
  border-color:#e8d3a9 !important;
}
body.theme-pipeguard .chip.down,
body.theme-pipeguard .chip.flat{
  color:var(--brand-muted) !important;
  background:transparent !important;
  border-color:var(--brand-line) !important;
}
body.theme-pipeguard footer{
  color:var(--brand-muted) !important;
}
body.theme-pipeguard .chart + .chart{
  border-color:var(--brand-line) !important;
}

/* Station 12 workflow accents that are hard-coded in the source page */
body.theme-station12 .bar-fill{
  background:linear-gradient(90deg,#147a72,#0f766e) !important;
}
body.theme-station12 .bar-track{
  background:#ece6da !important;
}
body.theme-station12 .skill{
  background:#e7f3f0 !important;
  color:#0f766e !important;
}
body.theme-station12 .say{
  background:#f8f3e9 !important;
  border-left-color:#0f766e !important;
}
body.theme-station12 .step .n{
  background:#e7f3f0 !important;
  color:#0f766e !important;
}
body.theme-station12 tr.hl td:first-child{
  box-shadow:inset 3px 0 0 #0f766e !important;
}

/* local field manual keeps its editorial serif, but uses the same brand chrome */
body.theme-manual .brand-mark{
  background:linear-gradient(145deg,#147a72,#0a4f4a) !important;
  color:#fff !important;
}
body.theme-manual .btn-primary{
  background:var(--brand-amber) !important;
  border-color:var(--brand-amber) !important;
  color:#231a05 !important;
}
body.theme-manual .nav-quiz{
  background:var(--brand-amber) !important;
  color:#231a05 !important;
}

/* footers */
body.theme-station12 footer,
body.theme-ps2 footer,
body.theme-sentinel footer{
  color:var(--brand-muted) !important;
}

/* small screens: the shared chrome should not crowd the page title */
@media (max-width:760px){
  body.theme-station12 .topbar .row{
    flex-direction:column;
    align-items:flex-start;
  }
  body.theme-station12 .topbar .chips{
    justify-content:flex-start;
    margin-top:8px;
  }
  body.theme-station12 .topbar h1{
    font-size:19px !important;
    line-height:1.15 !important;
  }
  body.theme-station12 .topbar{
    padding:16px 18px 0 !important;
  }
  body.theme-pipeguard .wrap > header{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
  body.theme-pipeguard .wrap > header .badge{
    white-space:normal;
    max-width:100%;
  }
  body.theme-pipeguard .panel.rank{
    overflow-x:auto;
  }
  body.theme-pipeguard .panel.rank table{
    min-width:560px;
  }
}