/* VAULT PAGE SPECIFIC STYLES */
/* ============================= */
/* MOBILE-FIRST RESPONSIVE DESIGN */
/* ============================= */

:root {
  --vault-bg: #0F172A;
  /* Deep Gunmetal/Navy */
  --vault-card-bg: rgba(255, 255, 255, 0.03);
  --vault-glass-border: rgba(255, 255, 255, 0.08);
  /* Subtle light border */
  --vault-gold: #D4AF37;
  --vault-text: #FDFBF7;
  /* Cream/White */
  --vault-muted: rgba(253, 251, 247, 0.6);
  /* High contrast muted */
  --vault-font-serif: "Merriweather", serif;
  /* Headline font */
  --vault-font-sans: "Inter", sans-serif;
}

/* Page Background Override */
body.vault-body {
  background-color: var(--vault-bg);
  color: var(--vault-text);
  font-family: var(--vault-font-sans);
}

/* --- FOOTER OVERRIDES (Dark Mode) --- */
body.vault-body #global-footer {
  background: transparent;
  border-top: 1px solid var(--vault-glass-border);
  margin-top: 2rem;
}

body.vault-body .footer-brand {
  color: var(--vault-text);
}

body.vault-body .footer-heading {
  color: var(--vault-text);
}

body.vault-body .footer-links a {
  color: var(--vault-muted);
}

body.vault-body .footer-links a:hover {
  color: var(--vault-gold);
}

body.vault-body .footer-tagline,
body.vault-body .footer-copy {
  color: rgba(255, 255, 255, 0.4);
}

/* ===================================== */
/* LAYOUT & GRID - Mobile First         */
/* ===================================== */

.vault-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem;
  /* Mobile: minimal padding */
}

/* Grid for Cards - Mobile First (single column) */

/* ===================================== */
/* HEADER - Mobile First                */
/* ===================================== */

.vault-header {
  text-align: center;
  padding: 1.5rem 0 1rem;
  /* Mobile: compact padding */
  border-bottom: 1px solid var(--vault-glass-border);
  margin-bottom: 1rem;
}

.vault-title {
  font-family: var(--vault-font-serif);
  font-size: 2rem;
  /* Mobile: smaller headline */
  font-weight: 700;
  color: var(--vault-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.vault-subtitle {
  font-size: 0.95rem;
  /* Mobile: smaller */
  color: var(--vault-muted);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.5;
}

/* ===================================== */
/* CARD DESIGN - Mobile First           */
/* ===================================== */

.vault-card {
  background: var(--vault-card-bg);
  border: 1px solid var(--vault-glass-border);
  border-radius: 12px;
  /* Slightly smaller radius on mobile */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  /* Let content determine height */
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.vault-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Card Content - Mobile First */
.card-content {
  width: 100%;
  padding: 1.25rem;
  /* Mobile: compact padding */
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Typography - Mobile First */
.card-category-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--vault-gold);
  font-size: 0.65rem;
  /* Mobile: smaller */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  /* Mobile: reduced margin */
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
  font-family: var(--vault-font-serif);
  font-size: 1.25rem;
  /* Mobile: smaller title */
  font-weight: 700;
  color: var(--vault-text);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.card-desc {
  font-size: 0.9rem;
  /* Mobile: slightly smaller */
  color: var(--vault-text);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Bullets - Mobile First */
.card-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
}

.card-bullets li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  color: var(--vault-muted);
  font-size: 0.85rem;
  /* Mobile: smaller */
  line-height: 1.4;
}

.card-bullets li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--vault-gold);
}

.card-section-label {
  font-size: 0.7rem;
  /* Mobile: smaller */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vault-gold);
  margin-bottom: 0.35rem;
  display: block;
  font-weight: 600;
  margin-top: 0.5rem;
}

.card-text-block {
  font-size: 0.85rem;
  /* Mobile: smaller */
  color: var(--vault-muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
  /* Mobile: reduced padding */
  border-radius: 6px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

/* Action Button */
.btn-download-icon {
  width: 44px;
  /* Touch-friendly size */
  height: 44px;
  border-radius: 50%;
  background: var(--vault-gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
  align-self: flex-end;
  margin-top: 0.75rem;
  flex-shrink: 0;
}

.btn-download-icon:hover {
  background: #fff;
  transform: scale(1.1);
}

/* ===================================== */
/* SEARCH (Hidden as per design)        */
/* ===================================== */

.vault-search-container {
  display: none;
}

/* ===================================== */
/* CATEGORY/ACCORDION - Mobile First    */
/* ===================================== */

.category-header {
  padding: 1rem 0;
  /* Mobile: compact */
  min-height: 56px;
  /* Touch target */
  background: transparent;
  border-bottom: 1px solid var(--vault-glass-border);
  margin-bottom: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-title {
  font-family: var(--vault-font-sans);
  font-size: 0.85rem;
  /* Mobile: smaller */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vault-gold);
  font-weight: 600;
}

.category-group {
  border: none;
  background: transparent;
  margin-bottom: 1.5rem;
}

.category-content {
  display: none;
  padding: 1rem 0;
  /* Mobile: minimal padding */
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.category-group[data-expanded="true"] .category-content {
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile: single column */
  gap: 1.25rem;
  padding: 1rem;
}

.category-icon {
  display: block;
  color: var(--vault-muted);
  transition: transform 0.3s;
  font-size: 0.75rem;
  padding: 0.5rem;
}

.category-group[data-expanded="true"] .category-icon {
  transform: rotate(180deg);
}

/* Start Here Accordion (now accordion style) */
.start-here-accordion {
  margin-bottom: 1rem;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  padding: 0 1rem;
}

.start-here-accordion .category-header {
  border-bottom: none;
  margin-bottom: 0;
}

.start-here-accordion .category-title {
  color: var(--vault-gold);
  font-size: 0.9rem;
}

.start-here-accordion[data-expanded="true"] .category-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 0 1rem 0;
}

/* White Papers Section */
.white-papers-section {
  margin-top: 0;
  margin-bottom: 2rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.white-papers-section .category-group {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 0 1rem;
}

.white-papers-section .category-content {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 0 1rem 0;
}

.white-papers-section .category-group[data-expanded="true"] .category-content {
  display: flex;
  flex-direction: column;
}

.white-papers-section h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.white-papers-section p {
  font-size: 0.9rem;
  color: var(--vault-muted);
}

/* ===================================== */
/* TABLET BREAKPOINT (600px+)           */
/* ===================================== */

@media (min-width: 600px) {

  /* Container */
  .vault-container {
    padding: 2rem 1.5rem;
  }

  /* Header */
  .vault-header {
    padding: 2rem 0 1.5rem;
    margin-bottom: 1.5rem;
  }

  .vault-title {
    font-size: 2.75rem;
    margin-bottom: 0.65rem;
  }

  .vault-subtitle {
    font-size: 1.1rem;
  }

  .start-here-accordion[data-expanded="true"] .category-content {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Grid - 2 columns */
  .category-group[data-expanded="true"] .category-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Cards */
  .vault-card {
    border-radius: 14px;
  }

  .card-content {
    padding: 1.5rem;
  }

  .card-category-tag {
    font-size: 0.68rem;
    padding: 4px 10px;
    margin-bottom: 1rem;
  }

  .card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .card-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .card-bullets li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .card-text-block {
    font-size: 0.88rem;
    padding: 0.85rem;
  }

  .btn-download-icon {
    width: 46px;
    height: 46px;
  }

  /* Category Headers */
  .category-header {
    padding: 1.25rem 0;
  }

  .category-title {
    font-size: 0.9rem;
  }

  .category-content {
    padding: 1.25rem;
  }

  /* Footer */
  body.vault-body #global-footer {
    margin-top: 3rem;
  }
}

/* ===================================== */
/* DESKTOP BREAKPOINT (900px+)          */
/* ===================================== */

@media (min-width: 900px) {

  /* Container */
  .vault-container {
    padding: 2.5rem 2rem;
  }

  /* Header */
  .vault-header {
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
  }

  .vault-title {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
  }

  .vault-subtitle {
    font-size: 1.2rem;
  }

  /* Grid */
  .start-here-accordion[data-expanded="true"] .category-content,
  .category-group[data-expanded="true"] .category-content {
    gap: 1.5rem;
  }

  /* Cards */
  .vault-card {
    border-radius: 16px;
  }

  .card-content {
    padding: 2rem;
  }

  .card-category-tag {
    font-size: 0.7rem;
    margin-bottom: 1.5rem;
  }

  .card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .card-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .card-bullets {
    margin-bottom: 1.5rem;
  }

  .card-bullets li {
    font-size: 0.95rem;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .card-section-label {
    font-size: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  .card-text-block {
    font-size: 0.9rem;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .btn-download-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    margin-top: auto;
  }

  /* Category Headers */
  .category-header {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
  }

  .category-title {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

  .category-group {
    margin-bottom: 2rem;
  }

  .category-content {
    padding: 1.5rem;
  }

  /* Footer */
  body.vault-body #global-footer {
    margin-top: 4rem;
  }
}

/* ===================================== */
/* CASE STUDIES SECTION                  */
/* ===================================== */

.case-studies-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--vault-glass-border);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Playbooks Section */
.playbooks-section {
  margin-bottom: 2rem;
}

.playbooks-section .section-title {
  color: var(--vault-text);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Responsive: Case Studies */
@media (min-width: 600px) {
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================== */
/* MOBILE FIXES - Horizontal Scroll Fix */
/* ===================================== */

/* Prevent horizontal scroll on body and container */
body.vault-body {
  overflow-x: hidden;
}

.vault-container {
  overflow-x: hidden;
  max-width: 100%;
}

/* Mobile: Stack outcomes grid */
@media (max-width: 600px) {

  /* Case study card mobile padding */

  /* Ensure text doesn't overflow */

  /* Section title mobile */

  .section-description {
    font-size: 0.85rem;
  }
}