/* ─────────────────────────────────────────────────────────────────
   /seceng/ — security-engineer-facing site overlay.
   Inherits everything from ../assets/styles.css; overrides where
   the technical/dense aesthetic differs from the marketing tone.
   ───────────────────────────────────────────────────────────────── */

/* Eyebrow notice bar at top — establishes the site identity. */
.seceng-eyebrow-bar {
  background: #0f1c30;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  padding: 8px 0;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.seceng-eyebrow-bar a { color: var(--orange); }

/* Tighter eyebrow text. */
.seceng-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

/* Three-up fact card on the home and on dense reference pages. */
.seceng-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.seceng-fact {
  display: flex;
  gap: 14px;
  padding: 18px 18px;
  background: white;
  border: 1px solid var(--rule-cool);
  border-radius: 6px;
}
.seceng-fact-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
}
.seceng-fact-body {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.seceng-fact-body strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

/* Two-up content cards. */
.seceng-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Solid white card used for record/event/control examples. */
.seceng-card {
  background: white;
  border: 1px solid var(--rule-cool);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.seceng-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.seceng-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.seceng-card code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* Linkable card (Deeper reads grid). */
.seceng-card-link {
  display: block;
  background: white;
  border: 1px solid var(--rule-cool);
  border-radius: 6px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.seceng-card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -4px rgba(15, 28, 48, 0.15);
  text-decoration: none;
}
.seceng-card-link h3 {
  font-size: 16px;
  margin: 10px 0 6px;
  color: var(--ink);
}
.seceng-card-link p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* Status tags. */
.seceng-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.seceng-tag.crit { background: #fde8e7; color: #b13d3a; }
.seceng-tag.warn { background: #fff4d6; color: #7a5b00; }
.seceng-tag.ok   { background: #e0f3eb; color: #0a6f3e; }
.seceng-tag.info { background: rgba(31,169,224,0.12); color: #0f7fa9; }

/* Code/JSON block. */
.seceng-mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
  background: #0f1c30;
  color: #e7eef7;
  padding: 16px 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 8px 0;
  white-space: pre;
}
.seceng-mono .c { color: #6c8aaa; }    /* comments */
.seceng-mono .k { color: #f6a96b; }    /* keys */
.seceng-mono .s { color: #b5e0b3; }    /* strings */
.seceng-mono .n { color: #c1a5e8; }    /* numbers */
.seceng-mono .o { color: #e7eef7; }    /* operators */

/* Stack-comparison tables. */
.stack-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0;
}
.stack-table th, .stack-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule-cool);
  vertical-align: top;
}
.stack-table th {
  background: var(--bg-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.stack-table tr:last-child td { border-bottom: 0; }
.stack-table code {
  font-size: 11px;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 3px;
}
.seceng-l1-row { background: rgba(227,100,25,0.06); }

/* Controls grid (PCI/SOC/HIPAA/etc.). */
.seceng-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.seceng-controls-grid > div {
  background: var(--bg-soft);
  padding: 10px 12px;
  border-radius: 4px;
}
.seceng-controls-grid strong { color: var(--ink); }

/* List of "what we do not defend". */
.seceng-not-list {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
  padding-left: 20px;
  margin: 0;
}
.seceng-not-list li { padding: 2px 0; }
.seceng-not-list strong { color: #b13d3a; }

/* CTA band with darker engineering tone. */
.cta-band.seceng-cta {
  background: linear-gradient(180deg, #0f1c30 0%, #1a2942 100%);
  color: white;
}

/* Breadcrumb strip — sits below the eyebrow bar on deep pages. */
.seceng-breadcrumb {
  background: #f4f6fa;
  border-bottom: 1px solid var(--rule-cool);
  padding: 8px 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.seceng-breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}
.seceng-breadcrumb a:hover { color: var(--orange-deep); }
.seceng-breadcrumb .crumb-sep {
  margin: 0 8px;
  color: var(--ink-faint);
}
.seceng-breadcrumb .crumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────
   Dropdown navigation overlay for /seceng/.
   Desktop: hover-to-open dropdowns.
   Mobile: flattened inside the hamburger menu (no hover, always visible).
   ───────────────────────────────────────────────────────────────── */

.site-nav .nav-dropdown { position: relative; }
.site-nav .nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 10px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav .nav-dropdown-toggle::after {
  content: "▾";
  margin-left: 4px;
  font-size: 9px;
  color: var(--ink-faint);
  transition: transform 0.12s;
}
.site-nav .nav-dropdown:hover .nav-dropdown-toggle,
.site-nav .nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--orange-deep);
}
.site-nav .nav-dropdown:hover .nav-dropdown-toggle::after,
.site-nav .nav-dropdown:focus-within .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}
.site-nav .nav-dropdown.has-current .nav-dropdown-toggle {
  color: var(--orange-deep);
  border-bottom-color: var(--orange);
}

.site-nav .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--rule-cool);
  border-radius: 6px;
  padding: 6px 0;
  min-width: 240px;
  box-shadow: 0 6px 18px rgba(15, 28, 48, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.12s, transform 0.12s, visibility 0s 0.12s;
  list-style: none;
  margin: 0;
  z-index: 100;
}
.site-nav .nav-dropdown:hover .nav-dropdown-menu,
.site-nav .nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.12s, transform 0.12s, visibility 0s;
}
.site-nav .nav-dropdown-menu li { margin: 0; }
.site-nav .nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: none;
}
.site-nav .nav-dropdown-menu a:hover {
  background: var(--bg-soft);
  color: var(--orange-deep);
}
.site-nav .nav-dropdown-menu a.current {
  color: var(--orange-deep);
  font-weight: 700;
  background: rgba(227, 100, 25, 0.06);
}

/* Mobile: hamburger view — flatten dropdowns into a long vertical list. */
@media (max-width: 800px) {
  .site-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav .nav-dropdown { width: 100%; }
  .site-nav .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 0 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule-cool);
  }
  .site-nav .nav-dropdown-toggle::after { display: none; }
  .site-nav .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 8px;
    background: transparent;
    min-width: 0;
  }
  .site-nav .nav-dropdown-menu a {
    padding: 8px 0 8px 12px;
    font-size: 14px;
  }
  .site-nav .btn.btn-orange { margin: 14px 0 0; align-self: flex-start; }
}

/* Footer — slim two-row layout: quick links + legal links + copyright. */
.site-footer.seceng-footer { padding: 36px 0 28px; }
.site-footer.seceng-footer .footer-quick,
.site-footer.seceng-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.site-footer.seceng-footer .footer-quick a,
.site-footer.seceng-footer .footer-legal a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  white-space: nowrap;
}
.site-footer.seceng-footer .footer-quick a:hover,
.site-footer.seceng-footer .footer-legal a:hover {
  color: var(--orange);
}
.site-footer.seceng-footer .footer-legal {
  font-size: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer.seceng-footer .footer-legal a {
  color: rgba(255, 255, 255, 0.55);
}
.site-footer.seceng-footer .footer-sep {
  color: rgba(255, 255, 255, 0.3);
}
.site-footer.seceng-footer .footer-bottom {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  justify-content: center;
  gap: 6px 28px;
  flex-wrap: wrap;
  text-align: center;
}
.site-footer.seceng-footer .footer-bottom a {
  color: var(--orange);
}
@media (max-width: 800px) {
  .site-footer.seceng-footer .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 480px) {
  .site-footer.seceng-footer .footer-nav { grid-template-columns: 1fr; gap: 20px; }
  .site-footer.seceng-footer .footer-bottom {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }
}

/* CTA band uses .wrap-narrow on seceng pages; the main .cta-band rule
   only centers the inner .wrap, so .wrap-narrow needs its own treatment. */
.cta-band.seceng-cta .wrap-narrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-band.seceng-cta .wrap-narrow h2,
.cta-band.seceng-cta .wrap-narrow p {
  max-width: 720px;
}
.cta-band.seceng-cta .wrap-narrow .btn {
  margin: 0 auto;
}

/* Mobile: collapse the 3-up grids. */
@media (max-width: 800px) {
  .seceng-grid-3 { grid-template-columns: 1fr; }
  .seceng-grid { grid-template-columns: 1fr; }
  .seceng-controls-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .seceng-controls-grid { grid-template-columns: 1fr; }
}
