/* HunterCloudSec Master Stylesheet */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand Colors */
  --hcs-blue-900: #002a4a;
  --hcs-blue-500: #659ec9;
  --hcs-gold-300: #f4d4a3;
  
  /* Surfaces */
  --bg-main: #ffffff;
  --surface-1: #f8f9fa;
  --surface-2: #e9ecef;
  --border-subtle: #dee2e6;
  
  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius-lg: 24px;
  --shadow-soft: 0 2px 8px rgba(0, 42, 74, 0.08);
  
  /* Typography */
  --font-headline: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: #212529;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--hcs-blue-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--hcs-blue-900);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

h1 {
  font-size: 3rem;
  color: var(--hcs-blue-900);
}

h2 {
  font-size: 2rem;
  color: var(--hcs-blue-900);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.5rem;
  color: var(--hcs-blue-900);
}

p {
  margin-bottom: 16px;
}

.meta {
  font-size: 0.875rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

code {
  font-family: 'Courier New', monospace;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ===== NAVBAR ===== */
.hcs-nav-wrapper {
  background: var(--hcs-blue-900);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

.hcs-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-lg);
  background: var(--hcs-blue-900);
}

.hcs-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: white;
}

.hcs-brand:hover {
  color: var(--hcs-gold-300);
}

.hcs-brand-name {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
}

.hcs-brand-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hcs-gold-300);
}

.hcs-nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.hcs-nav-links a {
  color: white;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.hcs-nav-links a:hover {
  color: var(--hcs-gold-300);
}

.hcs-nav-links a[aria-current="page"] {
  color: var(--hcs-gold-300);
}

.hcs-nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--hcs-gold-300);
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero {
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: 32px;
}

.hero p {
  font-size: 1.25rem;
  color: #495057;
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

section {
  padding: 64px 0;
}

/* ===== CARDS & COMPONENTS ===== */
.card {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 42, 74, 0.15);
  border-color: var(--hcs-blue-500);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--hcs-blue-900) 0%, var(--hcs-blue-500) 100%);
}

.card-content {
  padding: 32px;
}

.card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tag {
  background: var(--hcs-blue-500);
  color: white;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag.accent {
  background: var(--hcs-gold-300);
  color: var(--hcs-blue-900);
}

/* ===== GRID LAYOUTS ===== */
.grid {
  display: grid;
  gap: 32px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
  justify-content: center;
}

/* ===== CASE STUDY SPECIFIC ===== */
.case-study-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.case-study-card p {
  color: #495057;
  margin-bottom: 16px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 5.1em;
}

.post-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-content {
  padding: 0;
}

.post-content section {
  padding: 32px 0;
}

.phase {
  background: var(--surface-1);
  padding: 48px;
  border-radius: 12px;
  margin-bottom: 48px;
  border: 1px solid var(--border-subtle);
}

.phase h3 {
  margin-bottom: 24px;
  color: var(--hcs-blue-900);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.gallery img {
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.gallery img:hover {
  transform: scale(1.02);
}

/* ===== DEFINITION BOX ===== */
.definition-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
  border-left: 4px solid var(--hcs-blue-500);
  padding: 24px;
  border-radius: 8px;
  margin: 32px 0;
}

.definition-list {
  margin: 0;
}

.definition-list dt {
  font-weight: 700;
  color: var(--hcs-blue-900);
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.definition-list dd {
  margin: 0;
  line-height: 1.7;
  color: #374151;
}

/* ===== AHA CALLOUT ===== */
.hcs-callout {
  background: linear-gradient(135deg, #fff9f0 0%, #fff4e6 100%);
  border-left: 4px solid var(--hcs-gold-300);
  border-radius: 8px;
  padding: 32px;
  margin: 48px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.hcs-aha-label {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--hcs-blue-900);
  margin-bottom: 12px;
}

.hcs-aha-content h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #1f2937;
  margin: 0;
}

.hcs-aha-media {
  flex-shrink: 0;
  width: 80px;
}

.hcs-aha-media img {
  width: 100%;
  border-radius: 8px;
}

/* ===== PROBLEM LIST ===== */
.problem-list {
  padding-left: 1.25rem;
  margin: 24px 0;
  list-style: none;
}

.problem-list li {
  margin-bottom: 12px;
  line-height: 1.6;
  position: relative;
  padding-left: 24px;
}

.problem-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--hcs-blue-500);
  font-weight: bold;
}

/* ===== EXAMPLE BLOCK ===== */
.hcs-example-block {
  background: #1e293b;
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
  overflow-x: auto;
}

.hcs-example-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.hcs-example-label {
  background: var(--hcs-blue-500);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hcs-example-title {
  color: #e2e8f0;
  font-weight: 600;
}

.hcs-example-block pre {
  margin: 0;
  background: transparent;
}

.hcs-example-block code {
  background: transparent;
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ===== HERO IMAGE ===== */
.hcs-hero {
  margin: 16px auto 2rem;
  max-width: 100%;
}

.hcs-hero-image {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* ===== ENDCAP SECTIONS ===== */
.hcs-endcap {
  background: var(--surface-1);
  padding: 32px;
  border-radius: 12px;
  margin: 48px 0;
}

.hcs-endcap-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.hcs-lessons-list {
  list-style: none;
  padding: 0;
}

.hcs-lessons-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.6;
}

.hcs-lessons-list li:last-child {
  border-bottom: none;
}

.hcs-next-text {
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0;
}

/* ===== ARTIFACT TAGS & FOOTER ===== */
.artifact-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 48px 0 24px;
}

.artifact-tag {
  background: var(--hcs-blue-500);
  color: white;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hcs-artifact-footer {
  border-top: 2px solid var(--border-subtle);
  padding-top: 24px;
  margin-top: 48px;
}

.hcs-footer-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: #6c757d;
}

.hcs-footer-label {
  font-weight: 600;
  color: var(--hcs-blue-900);
}

.hcs-footer-sep {
  color: #dee2e6;
}

/* ===== ABOUT PAGE SPLIT LAYOUT ===== */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}

.split-layout img {
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--hcs-blue-500);
  color: white;
}

.btn-primary:hover {
  background: var(--hcs-blue-900);
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hcs-nav {
    flex-direction: column;
    gap: 24px;
  }
  
  .hcs-nav-links {
    gap: 24px;
  }
  
  .split-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .phase {
    padding: 32px 24px;
  }
  
  .hcs-callout {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0;
  }
  
  .hero p {
    font-size: 1.125rem;
    line-height: 1.8;
    padding: 0 16px;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
    text-align: center;
    padding: 0 16px;
  }
  
  .hero .meta {
    text-align: center;
  }
  
  .hero .card-meta {
    justify-content: center;
  }
  
  section {
    padding: 48px 0;
  }
  
  .hcs-nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  
  .grid {
    gap: 24px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
  }
  
  .card {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .case-study-card h3 {
    text-align: center;
  }
  
  .case-study-card p {
    text-align: center;
  }
  
  .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .card-content .card-meta {
    justify-content: center;
  }
  
  .focus-areas-container {
    flex-direction: column;
    align-items: center;
    gap: 16px !important;
  }
  
  .focus-area-item {
    width: 100%;
    max-width: 300px;
    justify-content: flex-start;
  }
  
  .post-wrapper {
    padding: 0 20px;
  }
  
  .post-content h2 {
    font-size: 1.5rem;
    padding: 0;
    text-align: center;
  }
  
  .post-content h3 {
    font-size: 1.25rem;
  }
  
  .post-content p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .phase {
    padding: 24px 20px;
  }
  
  .definition-box {
    padding: 20px;
    margin: 24px 0;
  }
  
  .hcs-callout {
    padding: 24px 20px;
    margin: 32px 0;
  }
  
  .hcs-example-block {
    padding: 20px;
    margin: 24px 0;
  }
  
  .hcs-endcap {
    padding: 24px 20px;
    margin: 32px 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.875rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .hero p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .hcs-brand-name {
    font-size: 1.25rem;
  }
  
  .card {
    padding: 24px;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .post-wrapper {
    padding: 0 16px;
  }
  
  .phase {
    padding: 20px 16px;
  }
  
  .definition-box,
  .hcs-callout,
  .hcs-example-block,
  .hcs-endcap {
    padding: 16px;
    margin: 20px 0;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}.flow-container {
      max-width: 900px;
      margin: 0 auto;
      background: white;
      padding: 48px;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 42, 74, 0.08);
    }

    .flow-title {
      font-size: 1.5rem;
      font-weight: 700;
      color: #002a4a;
      margin-bottom: 32px;
      text-align: center;
    }

    .flow-step {
      display: flex;
      align-items: flex-start;
      margin-bottom: 32px;
      position: relative;
    }

    .flow-step:last-child {
      margin-bottom: 0;
    }

    .flow-step:not(:last-child)::after {
      content: '';
      position: absolute;
      left: 27px;
      top: 56px;
      width: 2px;
      height: calc(100% - 20px);
      background: linear-gradient(180deg, #659ec9 0%, #002a4a 100%);
    }

    .step-number {
      flex-shrink: 0;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: linear-gradient(135deg, #002a4a 0%, #659ec9 100%);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1.25rem;
      margin-right: 24px;
      box-shadow: 0 4px 12px rgba(0, 42, 74, 0.15);
      position: relative;
      z-index: 1;
    }

    .step-content {
      flex: 1;
      padding-top: 4px;
    }

    .step-name {
      font-size: 1.125rem;
      font-weight: 700;
      color: #002a4a;
      margin-bottom: 8px;
    }

    .step-description {
      font-size: 1rem;
      color: #495057;
      line-height: 1.6;
    }

    @media (max-width: 768px) {
      .flow-container {
        padding: 32px 24px;
      }

      .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
        margin-right: 16px;
      }

      .flow-step:not(:last-child)::after {
        left: 23px;
        top: 48px;
      }

      .step-name {
        font-size: 1rem;
      }

      .step-description {
        font-size: 0.9375rem;
      }
    }


    /* =========================================================
   Role Matrix (Table) — HunterCloudSec
   Works with:
   <figure class="hcs-figure">
     <table class="hcs-role-matrix">...
========================================================= */

/* Optional figure wrapper */
.hcs-figure {
  margin: 28px 0;
}

/* Table base */
.hcs-role-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface-1, #ffffff);
  border: 1px solid var(--border-subtle, #e5e5e5);
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  box-shadow: var(--shadow-soft, 0 6px 18px rgba(15, 18, 22, 0.06));
}

/* Header */
.hcs-role-matrix thead th {
  text-align: left;
  font-family: var(--font-body, Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  padding: 16px 18px;
  background: var(--surface-2, #f6f8fa);
  color: var(--text-primary, #111111);
  border-bottom: 1px solid var(--border-subtle, #e5e5e5);
}

/* Body cells */
.hcs-role-matrix tbody td {
  padding: 18px;
  vertical-align: top;
  color: var(--text-primary, #111111);
  border-bottom: 1px solid var(--border-subtle, #e5e5e5);
}

/* Remove last row border */
.hcs-role-matrix tbody tr:last-child td {
  border-bottom: none;
}

/* Column sizing */
.hcs-role-matrix thead th:first-child,
.hcs-role-matrix tbody td:first-child {
  width: 22%;
}

/* Role column styling */
.hcs-role-matrix tbody td:first-child {
  font-weight: 700;
  font-family: var(--font-body, Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
  color: var(--hcs-blue-900, #002a4a);
  white-space: nowrap;
}

/* Experience label */
.hcs-role-matrix tbody td strong {
  display: inline-block;
  font-family: var(--font-body, Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-weight: 700;
  color: var(--text-primary, #111111);
  margin-bottom: 8px;
}

/* Notes list */
.hcs-role-notes {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-muted, #5f6368);
  line-height: 1.55;
}

.hcs-role-notes li {
  margin: 6px 0;
}

/* Zebra striping (subtle) */
.hcs-role-matrix tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.02);
}

/* Hover (desktop) */
@media (hover: hover) and (pointer: fine) {
  .hcs-role-matrix tbody tr:hover td {
    background: rgba(101, 158, 201, 0.10); /* uses your HCS blue tone vibe */
  }
}

/* Responsive: stack into “cards” on small screens */
@media (max-width: 720px) {
  .hcs-role-matrix,
  .hcs-role-matrix thead,
  .hcs-role-matrix tbody,
  .hcs-role-matrix th,
  .hcs-role-matrix td,
  .hcs-role-matrix tr {
    display: block;
    width: 100%;
  }

  .hcs-role-matrix thead {
    /* visually hide header but keep accessible */
    position: absolute;
    left: -9999px;
    top: -9999px;
  }

  .hcs-role-matrix tbody tr {
    border-bottom: 1px solid var(--border-subtle, #e5e5e5);
    padding: 14px 14px 12px;
    background: var(--surface-1, #ffffff);
  }

  .hcs-role-matrix tbody tr:last-child {
    border-bottom: none;
  }

  .hcs-role-matrix tbody td {
    border: none;
    padding: 10px 8px;
  }

  /* Role title as a “card header” */
  .hcs-role-matrix tbody td:first-child {
    width: auto;
    padding: 8px 8px 4px;
    font-size: 1.05rem;
  }

  /* Add label before the experience cell */
  .hcs-role-matrix tbody td:nth-child(2)::before {
    content: "Post-Login Experience";
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-muted, #5f6368);
    margin-bottom: 6px;
  }

  .hcs-role-matrix tbody td:nth-child(2) strong {
    margin-bottom: 6px;
  }
}


/* =========================================================
   Artifacts & References — HunterCloudSec
========================================================= */

.hcs-artifacts {
  margin: 56px 0;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle, #e5e5e5);
}

.hcs-artifact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Individual artifact item */
.hcs-artifact-item {
  background: var(--surface-1, #ffffff);
  border: 1px solid var(--border-subtle, #e5e5e5);
  border-radius: var(--radius-sm, 12px);
  padding: 20px 22px;
}

/* Label (what this thing is) */
.hcs-artifact-label {
  display: block;
  font-family: var(--font-body, Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #5f6368);
  margin-bottom: 6px;
}

/* Link styling */
.hcs-artifact-link {
  font-family: var(--font-body, Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--hcs-blue-900, #002a4a);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hcs-artifact-link:hover,
.hcs-artifact-link:focus {
  border-bottom-color: currentColor;
}

/* Non-link text artifact */
.hcs-artifact-text {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary, #111111);
  line-height: 1.55;
}

/* Supporting note under link */
.hcs-artifact-note {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted, #5f6368);
  max-width: 70ch;
}

/* Optional subtle hover affordance (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .hcs-artifact-item:hover {
    border-color: var(--hcs-blue-500, #659ec9);
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hcs-artifacts {
    margin: 40px 0;
  }

  .hcs-artifact-item {
    padding: 18px;
  }

  .hcs-artifact-note {
    max-width: none;
  }
}



.principles-list dt {
  font-weight: 600;
  margin-top: 1rem;
}

.principles-list dd {
  margin-left: 0;
  color: #555;
}


.hcs-threat-model {
  margin-top: 3rem;
}

.threat-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.threat-block,
.impact-block {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
}

.threat-block h4,
.impact-block h4 {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.threat-block ul,
.impact-block ul {
  padding-left: 1.25rem;
  margin: 0;
}

.threat-block li,
.impact-block li {
  margin-bottom: 0.5rem;
  color: #374151;
}

.hcs-system-architecture {
  margin-top: 3rem;
}

.architecture-intro {
  max-width: 760px;
  color: #374151;
  margin-bottom: 1rem;
}

.architecture-flow {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
}

.architecture-flow li {
  position: relative;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-weight: 500;
}

/* Connector arrow */
.architecture-flow li::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -0.9rem;
  transform: translateX(-50%);
  color: #9ca3af;
  font-size: 1.1rem;
}

.architecture-flow li:last-child::after {
  content: none;
}

/* Decision styling */
.architecture-flow .decision {
  font-weight: 600;
  text-align: center;
}

.architecture-flow .pass {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.architecture-flow .fail {
  background: #fef2f2;
  border-color: #ef4444;
  color: #7f1d1d;
}


.architecture-execution {
  margin-top: 2.5rem;
  max-width: 760px;
}

.architecture-execution h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.architecture-execution p {
  color: #374151;
  margin-bottom: 1rem;
}

.architecture-decisions {
  margin: 1rem 0 1.25rem 1.25rem;
}

.architecture-decisions li {
  margin-bottom: 0.5rem;
}


/* =========================================================
   HunterCloudSec — Web Scanner: Technical Implementation
   Drop-in section styles (no JS required)
========================================================= */

/* Optional: if you already have tokens, these will inherit nicely */
:root {
  --hcs-navy: #002A4A;
  --hcs-accent: #659EC9;
  --hcs-sand: #F4D4A3;

  --hcs-bg: #ffffff;
  --hcs-text: #0f172a;
  --hcs-muted: #475569;
  --hcs-border: #e5e7eb;

  --hcs-card: #ffffff;
  --hcs-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --hcs-radius: 16px;
}

/* Section wrapper */
.hcs-section {
  background: var(--hcs-bg);
  color: var(--hcs-text);
  padding: 2.25rem 0;
}

.hcs-section__header {
  max-width: 980px;
  margin: 0 auto 1.25rem auto;
  padding: 0 1rem;
}

.hcs-section__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.hcs-section__subtitle {
  margin: 0;
  color: var(--hcs-muted);
  max-width: 72ch;
}

/* Steps grid */
.hcs-steps {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 840px) {
  .hcs-steps {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  /* Make Step 4 full-width (nice emphasis) */
  .hcs-step:nth-child(4) {
    grid-column: 1 / -1;
  }
}

/* Step card */
.hcs-step {
  background: var(--hcs-card);
  border: 1px solid var(--hcs-border);
  border-radius: var(--hcs-radius);
  box-shadow: var(--hcs-shadow);
  padding: 1.25rem;
}

.hcs-step__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hcs-step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--hcs-navy);
  background: rgba(101, 158, 201, 0.22);
  border: 1px solid rgba(101, 158, 201, 0.35);
  white-space: nowrap;
}

.hcs-step__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hcs-step__hint {
  margin: 0.5rem 0 0.75rem 0;
  color: var(--hcs-muted);
}

/* Lists */
.hcs-list {
  margin: 0.75rem 0 0 1.05rem;
  color: var(--hcs-text);
}

.hcs-list li {
  margin: 0.35rem 0;
  color: var(--hcs-text);
}

.hcs-list strong {
  color: var(--hcs-navy);
}

/* Definition list (for “Evaluate: …”) */
.hcs-dl {
  margin: 0.9rem 0 0 0;
  border-top: 1px solid var(--hcs-border);
  padding-top: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.hcs-dl__row dt {
  font-weight: 700;
  color: var(--hcs-navy);
}

.hcs-dl__row dd {
  margin: 0.2rem 0 0 0;
  color: var(--hcs-muted);
}

/* Chips (headers list) */
.hcs-chiplist {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hcs-chip {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--hcs-border);
  background: rgba(0, 42, 74, 0.04);
  color: var(--hcs-navy);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Pills (triage states) */
.hcs-pilllist {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hcs-pill {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--hcs-border);
  font-weight: 700;
  font-size: 0.9rem;
}

.hcs-pill--ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #166534;
}

.hcs-pill--warn {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.30);
  color: #92400e;
}

.hcs-pill--muted {
  background: rgba(100, 116, 139, 0.12);
  border-color: rgba(100, 116, 139, 0.26);
  color: #334155;
}

/* Callouts */
.hcs-callout {
  margin-top: 0.95rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--hcs-border);
  background: rgba(0, 42, 74, 0.03);
}

.hcs-callout__title {
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--hcs-navy);
}

.hcs-callout__body {
  color: var(--hcs-muted);
}

.hcs-callout--danger {
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.06);
}

.hcs-callout--note {
  border-color: rgba(101, 158, 201, 0.35);
  background: rgba(101, 158, 201, 0.10);
}

/* =========================
   HunterCloudSec – Sections (drop-in styles)
   Uses your palette: #002A4A / #659EC9 / #F4D4A3
========================= */

:root {
  --hcs-navy: #002a4a;
  --hcs-blue: #659ec9;
  --hcs-sand: #f4d4a3;

  --hcs-bg: #ffffff;
  --hcs-surface: #f6f8fb;
  --hcs-border: #e6eaf0;

  --hcs-text: #0f172a;
  --hcs-muted: #475569;

  --hcs-shadow: 0 10px 30px rgba(2, 10, 24, 0.08);
}

.hcs-section {
  padding: 28px 0;
}

.hcs-section__header {
  margin-bottom: 14px;
}

.hcs-h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 6px 0;
  color: var(--hcs-text);
  letter-spacing: -0.02em;
}

.hcs-muted {
  margin: 0;
  color: var(--hcs-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Cards */
.hcs-card {
  background: var(--hcs-bg);
  border: 1px solid var(--hcs-border);
  border-radius: 14px;
  box-shadow: var(--hcs-shadow);
}

.hcs-card--padded {
  padding: 18px;
}

/* Callouts */
.hcs-callout {
  margin-top: 14px;
  border-radius: 12px;
  padding: 14px 14px;
  border: 1px solid var(--hcs-border);
  background: var(--hcs-surface);
}

.hcs-callout--note {
  border-left: 4px solid var(--hcs-blue);
}

.hcs-callout--closing {
  border-left: 4px solid var(--hcs-sand);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
}

.hcs-closing {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--hcs-text);
}

/* Financial alignment list */
.hcs-icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.hcs-icon-list__item {
  display: grid;
  grid-template-columns: max-content 24px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--hcs-border);
}

.hcs-icon-list__arrow {
  color: var(--hcs-muted);
  text-align: center;
}

.hcs-icon-list__text {
  color: var(--hcs-text);
  font-size: 14px;
}

/* Chips */
.hcs-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--hcs-border);
  background: #fff;
  color: var(--hcs-navy);
}

.hcs-chip--risk {
  border-color: rgba(101, 158, 201, 0.35);
  background: rgba(101, 158, 201, 0.12);
  color: var(--hcs-navy);
}

/* Results grid */
.hcs-grid {
  display: grid;
  gap: 12px;
}

.hcs-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hcs-stat {
  background: var(--hcs-bg);
  border: 1px solid var(--hcs-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--hcs-shadow);
}

.hcs-stat__title {
  margin: 0 0 6px 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hcs-navy);
}

.hcs-stat__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hcs-text);
}

/* Takeaways */
.hcs-takeaways {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.hcs-takeaways__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--hcs-border);
  background: #ffffff;
}

.hcs-takeaways__bullet {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #ffffff;
  background: var(--hcs-navy);
}

/* Resume bullets */
.hcs-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--hcs-text);
}

.hcs-bullets li {
  margin: 8px 0;
  line-height: 1.55;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 820px) {
  .hcs-grid--2 {
    grid-template-columns: 1fr;
  }

  .hcs-icon-list__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hcs-icon-list__arrow {
    display: none;
  }
}


/* =========================================================
  HunterCloudSec Persona Section Styles
  File: /assets/css/hcs-persona.css  (suggested)
  Requires: your existing brand variables (or uses fallbacks)
========================================================= */

/* ---- Brand Tokens (fallbacks if not defined elsewhere) ---- */
:root {
  --hcs-navy: var(--brand-blue, #002A4A);
  --hcs-accent: var(--accent-blue, #659EC9);
  --hcs-sand: var(--brand-secondary, #F4D4A3);

  --hcs-bg: var(--main-bg, #ffffff);
  --hcs-text: var(--text-primary, #111111);
  --hcs-muted: var(--text-muted, #51657a);
  --hcs-border: var(--border-color, #e5e5e5);

  --hcs-card: #ffffff;
  --hcs-shadow: 0 10px 30px rgba(0,0,0,0.08);
  --hcs-radius: 16px;
}

/* ---- Container helper ---- */
.hcs-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ---- Section ---- */
.hcs-persona {
  background: var(--hcs-bg);
  color: var(--hcs-text);
  padding: 2.25rem 0;
}

.hcs-persona__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hcs-persona__grid {
    grid-template-columns: 380px 1fr;
    align-items: start;
  }
}

/* ---- Cards ---- */
.hcs-card {
  background: var(--hcs-card);
  border: 1px solid var(--hcs-border);
  border-radius: var(--hcs-radius);
  box-shadow: var(--hcs-shadow);
}

/* ---- Left column ---- */
.hcs-persona__left {
  display: grid;
  gap: 0.9rem;
}

.hcs-persona__photo-card {
  margin: 0;
  padding: 0.75rem;
}

.hcs-persona__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--hcs-radius) - 6px);
  border: 1px solid var(--hcs-border);
  display: block;
}

.hcs-persona__bio {
  padding: 1rem 1.05rem;
}

.hcs-persona__bio-text {
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
  font-size: 0.95rem;
  color: var(--hcs-text);
}

.hcs-persona__bio-text:last-child {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--hcs-text), #000 10%);
}

/* ---- Right column ---- */
.hcs-persona__right {
  display: grid;
  gap: 1rem;
}

.hcs-persona__header {
  padding: 0.25rem 0.25rem 0;
}

.hcs-persona__name {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--hcs-text);
}

.hcs-persona__role {
  margin: 0.25rem 0 0.45rem 0;
  color: var(--hcs-muted);
  font-size: 0.95rem;
}

.hcs-persona__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--hcs-muted);
}

.hcs-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hcs-accent), #fff 20%);
}

/* ---- Pills ---- */
.hcs-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hcs-accent), #fff 60%);
  background: color-mix(in srgb, var(--hcs-accent), #fff 88%);
  color: color-mix(in srgb, var(--hcs-navy), #000 8%);
  font-weight: 600;
}

/* ---- Cards grid ---- */
.hcs-persona__cards {
  display: grid;
  gap: 0.9rem;
}

.hcs-persona__card {
  padding: 1rem 1.05rem;
}

.hcs-persona__card-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.hcs-persona__card-title h3 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hcs-text);
}

/* ---- Icons ---- */
.hcs-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  border: 1px solid var(--hcs-border);
  background: #fff;
}

.hcs-icon--ok {
  border-color: color-mix(in srgb, #22c55e, #fff 60%);
  background: color-mix(in srgb, #22c55e, #fff 90%);
}

.hcs-icon--warn {
  border-color: color-mix(in srgb, #f59e0b, #fff 60%);
  background: color-mix(in srgb, #f59e0b, #fff 90%);
}

.hcs-icon--tool {
  border-color: color-mix(in srgb, var(--hcs-accent), #fff 55%);
  background: color-mix(in srgb, var(--hcs-accent), #fff 88%);
}

/* ---- List ---- */
.hcs-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.55;
  color: var(--hcs-text);
  font-size: 0.95rem;
}

.hcs-list li {
  margin: 0.3rem 0;
}

/* ---- Microcopy ---- */
.hcs-persona__microcopy {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--hcs-muted);
  border-top: 1px solid var(--hcs-border);
  padding-top: 0.75rem;
}


.hcs-footer-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  row-gap: 0.5rem;
  column-gap: 1rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.hcs-footer-label {
  font-weight: 600;
  color: #111827;
}

.hcs-footer-value {
  color: #4b5563;
}


.hcs-threat-model h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hcs-threat-model h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.hcs-threat-model ul {
  margin: 0.25rem 0 1.25rem 1.25rem;
  padding: 0;
}

.hcs-threat-model li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.hcs-threat-model h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #cbd5e1; /* light slate */
  border-radius: 50%;
  margin-right: 0.5rem;
  transform: translateY(-1px);
}
.hcs-threat-model h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hcs-threat-model h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.hcs-threat-model ul {
  margin: 0.25rem 0 1.25rem 1.25rem;
  padding: 0;
}

.hcs-threat-model li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.hcs-threat-model h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hcs-threat-model h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.hcs-threat-model ul {
  margin: 0.25rem 0 1.25rem 1.25rem;
  padding: 0;
}

.hcs-threat-model li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
/* kill any "fake bullet" before your subheadings */
.hcs-threat-model h3::before,
.hcs-threat-model h4::before {
  content: none !important;
  display: none !important;
}

/* prevent headings being treated like list items */
.hcs-threat-model h3,
.hcs-threat-model h4 {
  display: block !important;
  list-style: none !important;
}
html {
  scroll-behavior: smooth;
}
