/* =========================================
   Base Theme Variables
   ========================================= */
:root {
  --saas-text: #334155;
  --saas-muted: #6b7280;
  --saas-border: #e5e7eb;
  --saas-surface: #ffffff;
  --saas-shadow: 0 10px 25px rgba(15, 23, 42, .08);

  --saas-radius: 16px;
  --saas-pill-radius: 999px;

  --saas-progress-bg: #e5e7eb;
  /* --saas-progress-grad: linear-gradient(90deg, #16a34a, #4ade80); */
  --saas-progress-grad: linear-gradient(90deg, #15803d, #22c55e);
  --saas-progress-green: #16a34a;

  --content-gutter: 24px;
  --content-max: 760px;
}

/* =========================================
   Back to Strategic Direction Overview
   ========================================= */
.llc-overview-pill,
.llc-overview-pill *,
.llc-overview-pill *::before,
.llc-overview-pill *::after {
  box-sizing: border-box;
}

.llc-overview-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin: 8px 0 26px;
  padding: 11px 18px;

  background: #f5f7fa;
  border: 1px solid #e2e8f0;
  border-radius: 999px;

  color: #4b5563;
  text-decoration: none;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 600;

  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.llc-overview-pill svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition: transform .18s ease;
}

.llc-overview-pill:hover {
  background: #ffffff;
  border-color: #d4dce6;
  color: #c8102e;

  transform: translateY(-1px);

  box-shadow:
    0 4px 12px rgba(0, 0, 0, .06);
}

.llc-overview-pill:hover svg {
  transform: translateX(-3px);
}

.llc-overview-pill:focus-visible {
  outline: 3px solid rgba(200, 16, 46, .18);
  outline-offset: 3px;
}

@media (max-width:650px) {

  .llc-overview-pill {
    font-size: 14px;
    padding: 10px 16px;
  }

}


/* =========================================
   Strategic Direction Objectives
   ========================================= */
  .llc-strategy-summary,
  .llc-strategy-summary *,
  .llc-strategy-summary *::before,
  .llc-strategy-summary *::after {
    box-sizing: border-box;
  }

  .llc-strategy-summary {
    display: grid;
    grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1.18fr);
    width: 100%;
    margin: 30px auto;
    padding: 28px 20px;
    background: #ffffff;
    border: 1px solid #e2e5e9;
    border-radius: 18px;
    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.07),
      0 2px 4px rgba(0, 0, 0, 0.03);
    font-family: Arial, Helvetica, sans-serif;
  }

  .llc-strategy-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
    padding: 12px 22px;
    border-right: 1px solid #d9dde2;
  }

  .llc-strategy-stat:last-child {
    border-right: 0;
  }

  .llc-strategy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
  }

  .llc-strategy-icon svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .llc-icon-red {
    background: linear-gradient(135deg, #c90012, #ef2535);
  }

  .llc-icon-green {
    background: linear-gradient(135deg, #148433, #27b94f);
  }

  .llc-icon-orange {
    background: linear-gradient(135deg, #f59e0b, #ffb72c);
  }

  .llc-icon-blue {
    background: linear-gradient(135deg, #063e7f, #0d63b7);
  }

  .llc-strategy-content {
    min-width: 0;
    text-align: center;
  }

.llc-strategy-number {
  margin: 0;
  color: #111111;
  font-size: 31px;
  font-weight: 800;
  line-height: 0.95;
}

  .llc-strategy-label {
    margin-top: 7px;
    color: #111111;
    font-size: clamp(16px, 1.25vw, 21px);
    font-weight: 700;
    line-height: 1.2;
  }

  .llc-strategy-note {
    margin-top: 12px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.35;
  }

  /* Timeline panel */
  .llc-strategy-timeline {
    align-items: center;
    padding-left: 24px;
    padding-right: 16px;
    gap: 16px;
}

  .llc-strategy-timeline .llc-strategy-content {
    text-align: left;
  }

  .llc-strategy-through {
    margin: 0;
    color: #222222;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
  }

  .llc-strategy-date {
    margin: 5px 0 8px;
    color: #111111;
    font-size: clamp(27px, 2.3vw, 31px);
    font-weight: 800;
   line-height: 1;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

  .llc-strategy-timeline .llc-strategy-label {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
  }

  .llc-strategy-timeline .llc-strategy-icon {
    flex-basis: 82px;
    width: 82px;
    height: 82px;
  }

  .llc-strategy-timeline .llc-strategy-icon svg {
    width: 44px;
    height: 44px;
  }

  /* Tablet */
  @media (max-width: 1100px) {
    .llc-strategy-summary {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      padding: 18px;
    }

    .llc-strategy-stat {
      padding: 24px 18px;
    }

    .llc-strategy-stat:nth-child(2) {
      border-right: 0;
    }

    .llc-strategy-stat:nth-child(-n + 2) {
      border-bottom: 1px solid #d9dde2;
    }

    .llc-strategy-date {
      font-size: 31px;
    }
  }

  /* Mobile */
  @media (max-width: 650px) {
    .llc-strategy-summary {
      grid-template-columns: 1fr;
      padding: 8px 16px;
    }

    .llc-strategy-stat,
    .llc-strategy-stat:nth-child(2) {
      justify-content: flex-start;
      border-right: 0;
      border-bottom: 1px solid #d9dde2;
    }

    .llc-strategy-stat:last-child {
      border-bottom: 0;
    }

    .llc-strategy-content,
    .llc-strategy-timeline .llc-strategy-content {
      text-align: left;
    }

    .llc-strategy-icon,
    .llc-strategy-timeline .llc-strategy-icon {
      flex-basis: 70px;
      width: 70px;
      height: 70px;
    }

    .llc-strategy-icon svg,
    .llc-strategy-timeline .llc-strategy-icon svg {
      width: 39px;
      height: 39px;
    }

    .llc-strategy-number {
      font-size: 31px;
    }

    .llc-strategy-date {
      font-size: 36px;
    }
  }


/* =========================================
   Strategic Direction Progress bar
   ========================================= */
.saas-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
}

.track {
  flex: 1 1 auto;
  height: 10px;
  border-radius: 999px;
  background: var(--saas-progress-bg);
  overflow: hidden;
  position: relative;
}

.bar {
  height: 100%;
  width: 0;
  /* updated inline */
  background: var(--saas-progress-grad);
  border-radius: inherit;
  transition: width .35s ease;
}

.saas-small {
  font-size: .9rem;
  color: var(--saas-muted);
  white-space: nowrap;
}

.progress-percent {
  color: var(--saas-progress-green);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.progress-value {
  font-size: 0.9rem;
  color: var(--saas-muted);
}

/* =========================================
   Table: Project Timeline
   ========================================= */
table.saas-status-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--saas-surface);
  border: 1px solid var(--saas-border);
  border-radius: var(--saas-radius);
  overflow: hidden;
  box-shadow: var(--saas-shadow);
}

table.saas-status-table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--saas-muted);
  background: #f9fafb;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--saas-border);
  white-space: nowrap;
}

table.saas-status-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--saas-border);
  vertical-align: middle;
  color: var(--saas-text);
}

table.saas-status-table tbody tr:last-child td {
  border-bottom: 0;
}

table.saas-status-table tbody tr:hover {
  background: #f8fafc;
}

@media (min-width: 768px) {

  table.saas-status-table th:nth-child(4),
  table.saas-status-table td:nth-child(4) {
    width: 220px;
  }

  table.saas-status-table th:nth-child(5),
  table.saas-status-table td:nth-child(5) {
    width: 110px;
    text-align: left;
  }
}

/* Mobile stacked “cards”
   Add data-labels to <td>: <td data-label="Start Date">01/29/26</td> */
@media (max-width: 640px) {
  table.saas-status-table thead {
    display: none;
  }

  table.saas-status-table,
  table.saas-status-table tbody,
  table.saas-status-table tr,
  table.saas-status-table td {
    display: block;
    width: 100%;
  }

  table.saas-status-table tbody tr {
    border-top: 1px solid var(--saas-border);
    border-bottom: 1px solid var(--saas-border);
    padding: 12px;
    margin-bottom: 12px;
    background: #f8fafc;
    border-radius: 12px;
  }

  table.saas-status-table tbody td {
    display: flex;
    gap: .5rem;
    padding: 6px 0;
    border: 0;
  }

  table.saas-status-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--saas-muted);
    min-width: 120px;
    flex: 0 0 auto;
  }
}


/* ----- Base table (desktop) ----- */

/* ----- Desktop / base table ----- */
table.milestones-status-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--saas-surface);
  border: 1px solid var(--saas-border);
  border-radius: var(--saas-radius);
  overflow: hidden;
  box-shadow: var(--saas-shadow);
}

table.milestones-status-table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--saas-muted);
  background: #f9fafb;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--saas-border);
  white-space: nowrap;
}

table.milestones-status-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--saas-border);
  vertical-align: middle;
  color: var(--saas-text);
}

table.milestones-status-table tbody tr:last-child td {
  border-bottom: 0;
}

table.milestones-status-table tbody tr:hover {
  background: #f8fafc;
}

/* Optional column sizing */
@media (min-width: 768px) {

  table.milestones-status-table th:nth-child(4),
  table.milestones-status-table td:nth-child(4) {
    width: 220px;
  }

  table.milestones-status-table th:nth-child(5),
  table.milestones-status-table td:nth-child(5) {
    width: 110px;
    text-align: left;
  }
}

/* ----- Scroll wrapper for narrow-but-not-phone widths ----- */
.milestones-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-radius: var(--saas-radius);
  background: var(--saas-surface);
  border: 1px solid var(--saas-border);
}

.milestones-table-wrap::after {
  content: "";
  position: sticky;
  right: 0;
  top: 0;
  width: 24px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to left, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0));
}

@supports (position: sticky) {
  @media (max-width: 920px) and (min-width: 641px) {

    table.milestones-status-table th:first-child,
    table.milestones-status-table td:first-child {
      position: sticky;
      left: 0;
      z-index: 1;
      background: var(--saas-surface);
    }
  }
}

/* ----- Mobile card layout (≤640px) — remove double container ----- */
@media (max-width: 640px) {

  /* Kill outer container chrome */
  .milestones-table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    /* no horizontal scroll in card layout */
  }

  /* Kill table chrome so only the cards show a surface */
  table.milestones-status-table {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  /* Visually hide header; keep semantics for AT */
  table.milestones-status-table thead {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }

  /* Stack */
  table.milestones-status-table,
  table.milestones-status-table tbody,
  table.milestones-status-table tr,
  table.milestones-status-table td {
    display: block;
    width: 100%;
  }

  /* Each row becomes the single “card” surface */
  table.milestones-status-table tbody tr {
    background: #fff;
    border: 1px solid var(--saas-border);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 12px 0;
    box-shadow: 0 1px 0 rgba(16, 24, 40, .04);
  }

  /* Label/value pairs */
  table.milestones-status-table tbody td {
    display: flex;
    gap: .5rem;
    padding: 6px 0;
    border: 0;
    background: transparent;
  }

  /* First cell = card title */
  table.milestones-status-table tbody td:first-child {
    font-weight: 600;
    font-size: 1.05rem;
    padding-top: 2px;
    margin-bottom: 4px;
  }

  /* Show the header label for other cells */
  table.milestones-status-table tbody td:not(:first-child)::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--saas-muted);
    min-width: 120px;
    flex: 0 0 auto;
  }

  /* Optional badge polish */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1;
  }

  .badge.success {
    background: #E8FFF1;
    color: #047857;
  }

  .badge.warning {
    background: #FFF7ED;
    color: #C2410C;
  }
}



/* Remove bullets and left indent for this list */
/* Stronger selector in case theme forces list styles */
ul.wp-block-list.saas-clean,
ul.wp-block-list.saas-clean li {
  list-style: none;
}

/* Explicitly hide markers if the theme uses ::marker */
ul.wp-block-list.saas-clean li::marker {
  content: "";
}

/* Remove default indentation */
ul.wp-block-list.saas-clean {
  padding-left: 0;
  margin-left: 0;
}


/* =========================================
   Pills (Status Badges)
   ========================================= */
.saas-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  border-radius: var(--saas-pill-radius);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  background: #f1f5f9;
  color: var(--saas-text);
}

.saas-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #94a3b8;
  flex: 0 0 auto;
}

/* Status colors */
.saas-none {
  background: #ffffff;
  color: #475569;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

.saas-none::before {
  background: #cbd5e1;
}

.saas-purple {
  background: #f5f3ff;
  color: #5b21b6;
}

.saas-purple::before {
  background: #8b5cf6;
}

.saas-green {
  background: #ecfdf5;
  color: #047857;
}

.saas-green::before {
  background: #10b981;
}

.saas-yellow {
  background: #fffbeb;
  color: #92400e;
}

.saas-yellow::before {
  background: #f59e0b;
}

.saas-red {
  background: #fef2f2;
  color: #991b1b;
}

.saas-red::before {
  background: #ef4444;
}

.saas-gray {
  background: #eef2f7;
  color: #475569;
}

.saas-gray::before {
  background: #94a3b8;
}

.saas-black {
  background: #1d2327;
  color: #f8fafc;
}

.saas-black::before {
  background: #cbd5e1;
}

/* Only apply width to status colors *inside* the saas status table */
.saas-clean .saas-none,
.saas-clean .saas-purple,
.saas-clean .saas-green,
.saas-clean .saas-yellow,
.saas-clean .saas-red,
.saas-clean .saas-gray,
.saas-clean .saas-black {
  width: 100%;
}


/* =========================================
   Project Quick Links (Equal-Height Cards)
   ========================================= */

/* Section wrapper */
.saas-quick-links {
  margin-top: 28px;
}

/* Grid: 4 → 2 → 1, with equal-height rows */
.saas-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
  /* make children fill row height */
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (max-width: 1024px) {
  .saas-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .saas-links-grid {
    grid-template-columns: 1fr;
  }
}

/* Grid item */
.link-card {
  margin: 0;
  padding: 0;
  height: 100%;
  /* fill row height */
}

/* Clickable card */
.link-card__inner {
  position: relative;
  display: grid;
  grid-template-rows: 140px 1fr;
  /* fixed media + flexible title */
  grid-template-columns: 1fr;

  height: 100%;
  /* equal height across row */
  background: #ffffff !important;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: rgba(0, 0, 0, 0.24) 0 3px 3px;
  transition: box-shadow .4s cubic-bezier(.22, 1, .36, 1),
    transform .4s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}

.link-card__inner:hover,
.link-card__inner:focus-visible {
  box-shadow: rgba(0, 0, 0, .24) 0 5px 10px;
  transform: translateY(-3px);
  outline: none;
}

/* Media (fixed visual block) */
.link-card__media {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #ffffff !important;
  padding: 0;
  margin: 0;
}

.link-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #ffffff !important;
}

/* Title (normalized height, clamp to 2 lines) */
.link-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* prevent tall titles from stretching card */
  -webkit-box-orient: vertical;
  overflow: hidden;

  display: flex;
  /* for centering */
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 1rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: #334155;
  line-height: 1.25;

  /* 2 lines * line-height (1.25em) + 2rem vertical padding */
  min-height: calc(1.25em * 2 + 2rem);
}

/* ---- Optional: aspect-ratio media variant ---- */
/*
.link-card__inner{
  grid-template-rows: auto 1fr;
}
.link-card__media{
  aspect-ratio: 16 / 9;  width: 100%;
}
.link-card__img{ object-fit: contain; }
*/