/* console.css — S3-3 Tech | prefix: s33- */

/* ── Reset & tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0d13;
  --surface:   #111520;
  --surface2:  #161b2a;
  --border:    #1e2535;
  --border-hi: #2d3a55;
  --accent:    #3b82f6;
  --accent-hi: #60a5fa;
  --green:     #22d3a3;
  --yellow:    #f0c050;
  --red:       #f87171;
  --text:      #d8e0ee;
  --muted:     #7a8aa8;
  --dim:       #4a5570;
  --mono:      'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius:    4px;
  --max:       1100px;
}

html { font-size: 15px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; color: #fff; }

/* ── Outer shell ── */
.s33-shell { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* ────────────────────────────────────────────────
   CONSOLE HEADER STRIP
──────────────────────────────────────────────── */
.s33-cbar {
  background: #060810;
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.s33-cbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 44px;
}
/* window-control dots */
.s33-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.s33-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.s33-dot--r { background: #e74c4c; }
.s33-dot--y { background: #f0a030; }
.s33-dot--g { background: #27c766; }

/* prompt line */
.s33-prompt {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s33-prompt-user { color: var(--green); }
.s33-prompt-host { color: var(--accent-hi); }
.s33-prompt-path { color: var(--yellow); }
.s33-prompt-cmd  { color: var(--text); }
.s33-prompt-cur  {
  display: inline-block;
  width: 7px; height: 0.85em;
  background: var(--accent-hi);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: s33-blink 1.1s step-end infinite;
}
@keyframes s33-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* site nav (inline, right side) */
.s33-topnav { display: flex; gap: 1.25rem; list-style: none; flex-shrink: 0; }
.s33-topnav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color .15s;
}
.s33-topnav a:hover, .s33-topnav a.active {
  color: var(--accent-hi);
  text-decoration: none;
}

/* ── Brand headline under console bar ── */
.s33-titlerow {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.s33-titlerow-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.s33-sitetitle {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.s33-sitetitle span { color: var(--accent-hi); }
.s33-tagline {
  font-size: 0.75rem;
  color: var(--muted);
  padding-left: 0.5rem;
  border-left: 1px solid var(--border-hi);
}

/* ────────────────────────────────────────────────
   MAIN DASHBOARD LAYOUT
──────────────────────────────────────────────── */
.s33-dashboard {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: auto auto;
  gap: 1.25rem;
  grid-template-areas:
    "tbl  tbl"
    "tbl  tbl";
}

/* ── Panel base ── */
.s33-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Panel title bar ── */
.s33-panel-head {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s33-panel-head-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.s33-panel-head-label strong { color: var(--accent-hi); font-weight: 600; }
.s33-panel-head-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  background: #1c2540;
  color: var(--accent-hi);
  border: 1px solid var(--border-hi);
  border-radius: 2px;
  padding: 0.1em 0.45em;
}

/* ────────────────────────────────────────────────
   TOOLS DATA TABLE
──────────────────────────────────────────────── */
.s33-tblwrap {
  grid-area: tbl;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.25rem;
  align-items: start;
}

.s33-tbl-panel { flex: 1; }

.s33-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.s33-table thead tr {
  background: var(--surface2);
  border-bottom: 2px solid var(--border-hi);
}
.s33-table th {
  padding: 0.55rem 0.9rem;
  text-align: left;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.s33-table th:last-child { border-right: none; }
.s33-table td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.4;
}
.s33-table td:last-child { border-right: none; }
.s33-table tbody tr { transition: background .1s; }
.s33-table tbody tr:hover { background: #151c30; }
.s33-table tbody tr:last-child td { border-bottom: none; }

/* table column-specific styling */
.s33-td-topic a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  font-family: var(--sans);
  line-height: 1.35;
}
.s33-td-topic a:hover { color: var(--accent-hi); text-decoration: none; }
.s33-td-topic small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.2rem;
  font-family: var(--mono);
}

.s33-badge {
  display: inline-block;
  font-size: 0.62rem;
  padding: 0.15em 0.55em;
  border-radius: 2px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.s33-badge--how  { background: #0e2040; color: #60a5fa; border: 1px solid #1e3a6a; }
.s33-badge--list { background: #0e2e1e; color: #34d399; border: 1px solid #1a4a30; }
.s33-badge--ref  { background: #1e1a00; color: #f0c050; border: 1px solid #3a3200; }
.s33-badge--priv { background: #2a1020; color: #f472b6; border: 1px solid #4a1835; }
.s33-badge--perf { background: #1a1000; color: #fb923c; border: 1px solid #3a2000; }

.s33-plat {
  font-size: 0.68rem;
  color: var(--dim);
  white-space: nowrap;
}

.s33-td-desc {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 240px;
}

/* row index number */
.s33-td-idx {
  color: var(--dim);
  font-size: 0.65rem;
  text-align: right;
  width: 28px;
  padding-right: 0.5rem;
  user-select: none;
}

/* ────────────────────────────────────────────────
   RECENT LOG SIDEBAR
──────────────────────────────────────────────── */
.s33-log-panel {
  position: sticky;
  top: 1.25rem;
}

.s33-log-body { padding: 0.75rem 0; }

/* feed list — pipeline class, styled here */
ul.feed {
  list-style: none;
}
ul.feed li {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
ul.feed li:last-child { border-bottom: none; }
ul.feed li:hover { background: #151c30; }

div.kicker {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dim);
  margin-bottom: 0.2rem;
}
ul.feed h3 {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}
ul.feed h3 a { color: var(--text); }
ul.feed h3 a:hover { color: var(--accent-hi); text-decoration: none; }
ul.feed p {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ────────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────────── */
.s33-statusbar {
  margin-top: auto;
  background: #060810;
  border-top: 1px solid var(--border);
  padding: 0;
}
.s33-statusbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.s33-status-left {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.s33-status-left span + span::before {
  content: '│';
  margin-right: 1rem;
  color: var(--border-hi);
}
.s33-status-seg { display: flex; align-items: center; gap: 0.3rem; }
.s33-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.s33-status-right {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--dim);
  display: flex;
  gap: 1.25rem;
  list-style: none;
}
.s33-status-right a { color: var(--dim); }
.s33-status-right a:hover { color: var(--muted); text-decoration: none; }

/* ────────────────────────────────────────────────
   INNER PAGES — article/about/contact chrome
──────────────────────────────────────────────── */
.s33-page { padding: 2rem 0 3.5rem; flex: 1; }

/* breadcrumb path */
.s33-crumb {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--dim);
  margin-bottom: 1.5rem;
}
.s33-crumb a { color: var(--muted); }
.s33-crumb a:hover { color: var(--text); text-decoration: none; }
.s33-crumb-sep { margin: 0 0.4rem; color: var(--border-hi); }

/* article header */
.s33-article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.s33-article-header h1 {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0.5rem 0 0.6rem;
}
.s33-article-meta { font-size: 0.75rem; color: var(--muted); font-family: var(--mono); }

.s33-article-body { max-width: 720px; }
.s33-article-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.s33-article-body h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin: 1.4rem 0 0.4rem; }
.s33-article-body p { margin-bottom: 1rem; color: var(--text); font-size: 0.93rem; }
.s33-article-body ul, .s33-article-body ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--text);
  font-size: 0.93rem;
}
.s33-article-body li { margin-bottom: 0.35rem; }

/* step cards */
.s33-steps { list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: step; }
.s33-steps li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 1.1rem 0.9rem 3.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
}
.s33-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s33-steps li strong { display: block; color: #fff; margin-bottom: 0.2rem; font-size: 0.9rem; }
.s33-steps li p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* inline code */
code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: #131b2e;
  color: #a5f3fc;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
pre {
  background: #0a1020;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  margin-bottom: 1.1rem;
}
pre code { background: none; padding: 0; font-size: 0.82rem; color: #e2e8f0; }

/* tip box */
.s33-tip {
  background: #071833;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
  color: #93c5fd;
}
.s33-tip strong { color: var(--accent-hi); }

/* static (about) body */
.s33-static-body { max-width: 720px; }
.s33-static-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 0.65rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}
.s33-static-body p { margin-bottom: 1rem; font-size: 0.93rem; color: var(--text); }
.s33-static-body ul { margin: 0 0 1rem 1.5rem; font-size: 0.93rem; color: var(--text); }
.s33-static-body li { margin-bottom: 0.35rem; }

/* contact form */
.s33-form { max-width: 500px; }
.s33-form-row { margin-bottom: 1.1rem; }
.s33-form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.s33-form-row input,
.s33-form-row textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.88rem;
  padding: 0.6rem 0.8rem;
  transition: border-color .15s;
  outline: none;
}
.s33-form-row input:focus,
.s33-form-row textarea:focus { border-color: var(--accent); }
.s33-form-row textarea { resize: vertical; min-height: 120px; }
.s33-honeypot { display: none !important; }
.s33-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  font-family: var(--mono);
}
.s33-submit:hover { background: var(--accent-hi); }
.s33-notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
}
.s33-notice.ok { background: #041a0e; border: 1px solid #155724; color: #86efac; }
.s33-notice.err { background: #1e0a0a; border: 1px solid #7f1d1d; color: #fca5a5; }

/* tools/index page feed heading */
.s33-page-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.s33-page-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .s33-tblwrap {
    grid-template-columns: 1fr;
  }
  .s33-log-panel { position: static; }

  .s33-td-desc { display: none; }
  .s33-table th:nth-child(5),
  .s33-table td:nth-child(5) { display: none; }

  .s33-tagline { display: none; }
}

@media (max-width: 600px) {
  .s33-dashboard { padding: 1rem 1rem 2rem; }
  .s33-shell { padding: 0 1rem; }
  .s33-cbar-inner { padding: 0 1rem; }
  .s33-titlerow-inner { padding: 0.5rem 1rem; }

  .s33-table th:nth-child(3),
  .s33-table td:nth-child(3) { display: none; }

  .s33-article-header h1 { font-size: 1.3rem; }
  .s33-topnav { display: none; }
}
