/* shell.css — shell global do handbook */

* { box-sizing: border-box; }
html, body { margin:0; padding:0; background:#0b0b0b; color:#e8e6e2; font-family:'Inter',system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
body { min-height:100vh; }

/* Top nav bar */
.hb-topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: rgba(11,11,11,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hb-brand {
  display: flex; align-items: baseline; gap: 10px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px; letter-spacing: -0.01em;
  margin-right: 32px;
}
.hb-brand .mark { color: #E89A4A; font-weight: 400; }
.hb-brand .sub {
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #7a7a7a; font-weight: 500;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 10px;
}
.hb-tabs { display: flex; gap: 4px; flex: 1; }
.hb-tab {
  position: relative;
  background: transparent; border: 0;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  color: #8a8a8a;
  cursor: pointer; border-radius: 8px;
  transition: background .15s, color .15s;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
}
.hb-tab:hover { color: #e8e6e2; background: rgba(255,255,255,0.04); }
.hb-tab.active { color: #e8e6e2; background: rgba(232,154,74,0.12); }
.hb-tab .num {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: #555; letter-spacing: 0;
}
.hb-tab.active .num { color: #E89A4A; }
.hb-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: #7a7a7a;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
}
.hb-meta .dot { width:6px; height:6px; border-radius:50%; background:#4CAF50; box-shadow:0 0 10px rgba(76,175,80,0.5); }

/* Page container */
.hb-page { min-height: calc(100vh - 57px); }
.hb-section { padding: 64px 28px; max-width: 1560px; margin: 0 auto; }
.hb-section.wide { max-width: none; padding: 48px 40px; }

/* Eyebrow / title / subtitle */
.hb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #E89A4A;
  margin-bottom: 18px;
}
.hb-eyebrow::before { content: ''; display: inline-block; width: 18px; height: 1px; background: #E89A4A; }
.hb-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 56px; letter-spacing: -0.02em; line-height: 1.05;
  font-weight: 400;
  margin: 0 0 20px; color: #e8e6e2;
  text-wrap: balance;
}
.hb-title em { font-style: italic; color: #E89A4A; }
.hb-subtitle {
  font-size: 17px; line-height: 1.55; color: #b0b0b0;
  max-width: 740px; margin: 0;
  text-wrap: pretty;
}

.hb-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 0; }

/* Generic card */
.hb-card {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px;
}
.hb-card.elev {
  background: #232323; border-color: rgba(255,255,255,0.08);
}

/* Station strip (contexto de fase) */
.hb-strip {
  display: grid; gap: 0;
  grid-template-columns: 200px 1fr 240px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
}
.hb-strip > div { padding: 20px 22px; }
.hb-strip-code {
  background: rgba(232,154,74,0.08);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.hb-strip-code .code {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 40px; color: #E89A4A; line-height: 1; letter-spacing: -0.02em;
}
.hb-strip-code .name {
  font-size: 13px; color: #b0b0b0; margin-top: 4px;
}
.hb-strip-main .label {
  font-size: 10px; color: #7a7a7a;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 6px;
}
.hb-strip-main .stage {
  font-size: 20px; color: #e8e6e2; font-weight: 500;
  margin-bottom: 8px;
}
.hb-strip-main .desc {
  font-size: 13px; color: #b0b0b0; line-height: 1.5;
}
.hb-strip-side {
  background: #171717;
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 10px;
  justify-content: center;
}
.hb-strip-side .lab { font-size: 10px; letter-spacing: 0.1em; color: #7a7a7a; text-transform: uppercase; font-family: 'JetBrains Mono',monospace; }
.hb-strip-side .val { font-size: 14px; color: #e8e6e2; }
.hb-strip-side .val.brand { color: #E89A4A; }

/* Badges */
.hb-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.06);
  color: #b0b0b0;
  border: 1px solid rgba(255,255,255,0.08);
}
.hb-badge.brand { background: rgba(232,154,74,0.14); color: #E89A4A; border-color: rgba(232,154,74,0.3); }
.hb-badge.ok { background: rgba(76,175,80,0.14); color: #4CAF50; border-color: rgba(76,175,80,0.3); }
.hb-badge.warn { background: rgba(232,154,74,0.14); color: #E89A4A; border-color: rgba(232,154,74,0.3); }
.hb-badge.danger { background: rgba(239,68,68,0.14); color: #ef4444; border-color: rgba(239,68,68,0.3); }
.hb-badge.info { background: rgba(74,158,232,0.14); color: #4A9EE8; border-color: rgba(74,158,232,0.3); }
.hb-badge.crit { background: rgba(232,154,74,0.2); color: #f0a658; border-color: rgba(232,154,74,0.45); }

/* Frame chrome around device/desktop mocks */
.hb-frame {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; overflow: hidden;
}
.hb-frame-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #171717;
}
.hb-frame-head .t { font-size: 12px; color: #b0b0b0; font-weight: 500; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.hb-frame-head .m { font-size: 11px; color: #7a7a7a; }
.hb-frame-body { padding: 24px; display: flex; gap: 24px; justify-content: center; background: #121212; }
.hb-frame-body.wide { padding: 16px; }
.hb-frame-body.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* Phone bezel (compact) */
.phone-bezel {
  width: 380px; flex-shrink: 0;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
.phone-bezel-inner {
  width: 100%; aspect-ratio: 9/19.5;
  background: #141414; border-radius: 34px; overflow: hidden;
  display: flex; flex-direction: column;
}

/* Desktop bezel */
.desk-bezel {
  width: 100%; max-width: 980px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
.desk-bezel-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.desk-bezel-chrome .lights { display: flex; gap: 6px; }
.desk-bezel-chrome .lights span { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; }
.desk-bezel-chrome .url {
  flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #7a7a7a;
  background: #0a0a0a; border-radius: 6px; padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.04);
}
.desk-bezel-body { background: #141414; }

/* Clickable controls */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  font-family: inherit; transition: background .15s;
}
.btn.primary { background: #E89A4A; color: #141414; }
.btn.primary:hover { background: #f0a658; }
.btn.ghost { background: transparent; color: #e8e6e2; border-color: rgba(255,255,255,0.12); }
.btn.ghost:hover { background: rgba(255,255,255,0.04); }

/* Footnote / caption */
.hb-caption {
  font-size: 12px; color: #7a7a7a; line-height: 1.5;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em;
}
