/* SeventyThirty.AI — Styles (Light-first with dark bands) */
:root{
  --font-sans-heading: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-sans-body: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --color-bg: #ffffff;
  --color-bg-alt: #f6f7fb;
  --color-bg-card: #ffffff;
  --color-border: rgba(15,23,42,0.12);

  --color-text-heading: rgba(15,23,42,0.92);
  --color-text: rgba(15,23,42,0.82);
  --color-text-muted: rgba(15,23,42,0.60);

  --color-dark: #0b0f1a;
  --color-dark-alt: #0f1524;
  --color-dark-border: rgba(255,255,255,0.14);
  --color-dark-heading: rgba(255,255,255,0.92);
  --color-dark-text: rgba(255,255,255,0.82);
  --color-dark-muted: rgba(255,255,255,0.62);

  --color-orange: #ff6a2b;
  --color-blue: #1f7cff;
  --color-purple: #6b4dff;

  --color-focus: rgba(31,124,255,0.55);

  --container-max: 1180px;
  --shadow-soft: 0 10px 24px rgba(15,23,42,0.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background: radial-gradient(1100px 520px at 5% 0%, rgba(107,77,255,0.07), transparent 60%),
              radial-gradient(900px 520px at 95% 10%, rgba(31,124,255,0.06), transparent 55%),
              radial-gradient(900px 520px at 35% 70%, rgba(255,106,43,0.06), transparent 55%),
              var(--color-bg);
  color:var(--color-text);
  font-family:var(--font-sans-body);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.container{
  width:100%;
  max-width:var(--container-max);
  margin:0 auto;
  padding:0 var(--space-4);
}
@media (min-width: 900px){
  .container{padding:0 var(--space-6);}
}

.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: var(--space-3) 0; gap: var(--space-4);
}
.site-header__logo img{height:64px;width:auto}
@media (min-width: 900px){ .site-header__logo img{height:72px;} }

nav ul{
  list-style:none; display:flex; align-items:center;
  gap: var(--space-4); margin:0; padding:0;
}
nav a{
  font-family:var(--font-sans-heading);
  font-weight:600; font-size: var(--text-sm);
  color: var(--color-text);
}
nav a.active{color: var(--color-text-heading)}
nav a:hover{color: rgba(15,23,42,0.95)}

.menu-toggle{
  display:none;
  border: 1px solid var(--color-border);
  background: rgba(15,23,42,0.03);
  border-radius: 10px;
  padding: 10px;
  cursor:pointer;
}
.menu-toggle span{display:block;width:22px;height:2px;margin:4px 0;background: rgba(15,23,42,0.75);}

@media (max-width: 820px){
  .menu-toggle{display:inline-block}
  nav ul{
    position:absolute; right: var(--space-4); top: 84px;
    flex-direction:column; align-items:stretch;
    width: min(340px, calc(100vw - 2*var(--space-4)));
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    gap: var(--space-3);
    display:none;
    box-shadow: var(--shadow-soft);
  }
  nav ul.open{display:flex}
}

.section{padding: var(--space-7) 0;}
@media (max-width: 820px){ .section{padding: var(--space-6) 0;} }

.section--alt{
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.section--dark{
  background: linear-gradient(180deg, var(--color-dark), var(--color-dark-alt));
  color: var(--color-dark-text);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4{color: var(--color-dark-heading)}
.section--dark .text-muted{color: var(--color-dark-muted)}
.section--dark .card{background: rgba(255,255,255,0.06); border: 1px solid var(--color-dark-border);}
.section--dark .accent-line{background: linear-gradient(90deg, var(--color-orange), var(--color-blue));}

h1,h2,h3,h4{
  font-family: var(--font-sans-heading);
  color: var(--color-text-heading);
  margin: 0 0 var(--space-3) 0;
  letter-spacing: -0.02em;
}
h1{font-size: clamp(2.1rem, 4vw, 3.1rem); line-height:1.08}
h2{font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height:1.15}
h3{font-size: 1.15rem; line-height:1.25}
p{margin: 0 0 var(--space-3) 0;}
.text-muted{color: var(--color-text-muted)}
.text-center{text-align:center}

.accent-line{
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-purple));
  border-radius: 2px;
  margin: 0 0 var(--space-4) 0;
}
.accent-line--center{margin-left:auto;margin-right:auto}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap: 0.5rem;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-sans-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.btn:focus{outline: 3px solid var(--color-focus); outline-offset: 2px;}
.btn--primary{background: linear-gradient(180deg, rgba(255,106,43,1), rgba(255,106,43,0.86)); color: #0b0f1a;}
.btn--primary:hover{transform: translateY(-1px)}
.btn--outline{background: transparent; border-color: rgba(15,23,42,0.22); color: var(--color-text-heading);}
.btn--outline:hover{transform: translateY(-1px); border-color: rgba(15,23,42,0.36)}
.btn-group{display:flex;flex-wrap:wrap;gap: var(--space-3); margin-top: var(--space-5);}

.grid-2{display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4);}
.grid-3{display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4);}
@media (max-width: 980px){ .grid-2,.grid-3{grid-template-columns: 1fr;} }

.card{
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.card--raised{box-shadow: var(--shadow-soft)}
.card__icon{
  width: 42px; height: 42px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-weight: 700;
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-border);
  background: rgba(15,23,42,0.02);
}
.card__icon--orange{color: var(--color-orange)}
.card__icon--blue{color: var(--color-blue)}
.card__icon--purple{color: var(--color-purple)}

.hero{padding: clamp(2.2rem, 4vw, 3.6rem) 0 var(--space-7);}
.hero__grid{display:grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-7); align-items:start;}
@media (max-width: 980px){ .hero__grid{grid-template-columns: 1fr; gap: var(--space-6);} }
.hero__eyebrow{
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.60);
  margin-bottom: var(--space-3);
}
.hero__subtitle{font-size: var(--text-lg); max-width: 46rem;}
.hero__lockup{display:flex; align-items:center; gap: var(--space-3); margin-bottom: var(--space-4);}
.hero__lockup img{height: auto; width:auto;}
@media (min-width: 900px){ .hero__lockup img{height: 92px;} }

.article-banner{
  width:100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow:hidden;
  margin: 0 0 var(--space-5) 0;
}
.article{max-width: 860px;}
.article h2{margin-top: var(--space-6);}
.article h3{margin-top: var(--space-5);}
.article ul{padding-left: 1.2rem; color: var(--color-text-muted);}
.article-nav{display:flex; flex-wrap:wrap; gap: var(--space-2); margin: var(--space-6) 0 var(--space-4);}
.article-nav a{
  font-family: var(--font-mono); font-size: var(--text-xs);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(15,23,42,0.02);
  color: rgba(15,23,42,0.78);
}
.article-nav a.active{border-color: rgba(255,106,43,0.55); background: rgba(255,106,43,0.10);}
.article-prevnext{
  display:flex; justify-content:space-between; gap: var(--space-4);
  margin-top: var(--space-6); padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.site-footer{
  border-top: 1px solid var(--color-border);
  padding: var(--space-7) 0 var(--space-6);
  background: var(--color-bg-alt);
}
.footer-grid{display:grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6);}
@media (max-width: 980px){ .footer-grid{grid-template-columns: 1fr;} }
.footer-brand img{height: 64px; width:auto; margin-bottom: var(--space-3);}
.footer-brand p{color: var(--color-text-muted)}
.footer-links h4{
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.70);
  margin-bottom: var(--space-3);
}
.footer-links ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap: var(--space-2)}
.footer-links a{color: rgba(15,23,42,0.78)}
.footer-links a:hover{color: rgba(15,23,42,0.95)}
.footer-bottom{
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  display:flex;
  justify-content:space-between;
  gap: var(--space-4);
  flex-wrap:wrap;
  color: rgba(15,23,42,0.55);
  font-size: var(--text-sm);
}
.kicker{
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(15,23,42,0.60);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.inline-link{color: var(--color-blue); font-weight:700}

.figure { text-align: center; margin: 1.5rem 0; }
.figure__img { display: block; margin: 0 auto; }
.figure__caption { font-size: 0.85rem; margin-top: 0.5rem; color: #ffffffdb; }

/* ------------------------------------------------------------
   Additions for AI Lexicon article (appended; does not remove or
   modify any existing SeventyThirty.AI CSS rules above).
   ------------------------------------------------------------ */

/* Optional wrapper if you use <main class="content"> from the draft HTML */
.content{
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 900px){
  .content{ padding: 0; }
}

/* Callouts used in the article */
.callout{
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-5) 0;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.callout > p:last-child,
.callout > ul:last-child,
.callout > ol:last-child{ margin-bottom: 0; }

.callout ul, .callout ol{
  padding-left: 1.2rem;
  margin-top: var(--space-3);
  color: var(--color-text-muted);
}

/* Brand callout variant for the opening principle */
.callout--brand{
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(31,124,255,0.10), transparent 60%),
    radial-gradient(900px 420px at 85% 30%, rgba(255,106,43,0.08), transparent 55%),
    var(--color-bg-card);
  border-color: rgba(31,124,255,0.30);
}

/* Improve readability of <hr/> in article context */
.content hr{
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-7) 0;
}

/* Tweak list spacing inside the article without impacting nav/footer lists */
.content ul, .content ol{
  margin: 0 0 var(--space-4) 0;
}
.content li{ margin: 0.35rem 0; }

/* Slightly tighter h2 rhythm for the article */
.content h2{ margin-top: var(--space-7); }

/* ------------------------------------------------------------
   Dana in the Elevator — Story layout & Lexicon tooltips
   ------------------------------------------------------------ */

/* Lexicon highlighted terms */
.lexicon-term{
  color: var(--color-blue);
  font-weight: 600;
  cursor: help;
  border-bottom: 1.5px dotted rgba(31,124,255,0.45);
  transition: color 120ms ease, border-color 120ms ease;
  position: relative;
}
.lexicon-term:hover,
.lexicon-term:focus{
  color: var(--color-purple);
  border-color: rgba(107,77,255,0.55);
  outline: none;
}

/* Tooltip container */
.lexicon-tooltip{
  position: absolute;
  z-index: 9999;
  width: max-content;
  max-width: min(380px, calc(100vw - 24px));
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15,23,42,0.16), 0 2px 6px rgba(15,23,42,0.08);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text);
  pointer-events: auto;

  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}
.lexicon-tooltip.visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lexicon-tooltip.above{ transform-origin: bottom center; }
.lexicon-tooltip.below{ transform-origin: top center; }

.lexicon-tooltip strong{
  display: block;
  font-family: var(--font-sans-heading);
  font-size: var(--text-md);
  color: var(--color-text-heading);
  margin-bottom: 2px;
}
.lexicon-tooltip em{
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  font-style: normal;
}

/* Arrow (CSS triangle) */
.lexicon-tooltip.above::after{
  content: '';
  position: absolute;
  bottom: -7px; left: 50%; transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--color-bg-card);
  filter: drop-shadow(0 2px 2px rgba(15,23,42,0.08));
}
.lexicon-tooltip.below::after{
  content: '';
  position: absolute;
  top: -7px; left: 50%; transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--color-bg-card);
  filter: drop-shadow(0 -1px 2px rgba(15,23,42,0.06));
}

/* Story illustrations — float alongside text */
.story-figure{
  margin: var(--space-4) 0;
  max-width: 240px;
}
.story-figure img{
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 18px rgba(15,23,42,0.10);
}
.story-figure--right{
  float: right;
  margin-left: var(--space-5);
  margin-bottom: var(--space-3);
}
.story-figure--left{
  float: left;
  margin-right: var(--space-5);
  margin-bottom: var(--space-3);
}

/* Interlude / internal-thought paragraphs */
.story-interlude{
  font-style: italic;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-orange);
  padding-left: var(--space-4);
  margin: var(--space-5) 0;
}

/* Clear floats after story sections (scoped to pages with story figures) */
.story-figure ~ h2{ clear: both; }

/* Mobile: stack images above text instead of floating */
@media (max-width: 640px){
  .story-figure,
  .story-figure--right,
  .story-figure--left{
    float: none;
    max-width: 280px;
    margin: var(--space-4) auto;
  }
}

/* Latest insights card — stack on mobile */
@media (max-width: 640px){
  .card[style*="grid-template-columns: 140px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ------------------------------------------------------------
   Lexicon table — AI Lexicon page
   ------------------------------------------------------------ */

.lexicon-table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-5) 0 var(--space-6);
}

.lexicon-table{
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.lexicon-table thead{
  position: sticky;
  top: 0;
  z-index: 2;
}

.lexicon-table th{
  font-family: var(--font-sans-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: left;
  padding: var(--space-3) var(--space-3);
  background: var(--color-bg-alt);
  border-bottom: 2px solid var(--color-border);
}

.lexicon-table td{
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text);
}

.lexicon-table tbody tr:hover{
  background: rgba(31,124,255,0.03);
}

.lexicon-table td:first-child{
  white-space: nowrap;
  color: var(--color-text-heading);
}

/* Column widths */
.lexicon-col-term{ width: 18%; min-width: 140px; }
.lexicon-col-cat{ width: 15%; min-width: 110px; }
.lexicon-col-def{ width: 52%; }
.lexicon-col-tone{ width: 15%; min-width: 100px; }

/* Disclaimer block */
.lexicon-disclaimer{
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.lexicon-disclaimer p{ margin: 0 0 var(--space-2) 0; }
.lexicon-disclaimer p:last-child{ margin-bottom: 0; }

/* Mobile: allow term column to wrap on very small screens */
@media (max-width: 640px){
  .lexicon-table td:first-child{
    white-space: normal;
  }
  .lexicon-table th,
  .lexicon-table td{
    padding: var(--space-2);
    font-size: var(--text-xs);
  }
}

/* ------------------------------------------------------------
   Workflow Example Pages (Before & After comparisons)
   Brand-spec colors used per seventythirty-visual-specs:
     Seventy Blue  #0038A8   (people/process — the 70%)
     Thirty Purple #7B3AB8   (AI/automation — the 30%)
     Foundation Orange #FF5300
   ------------------------------------------------------------ */

.wf-hero{
  background: var(--color-dark);
  padding: var(--space-8) 0 var(--space-7);
  text-align: center;
}
.wf-hero__badge{
  display: inline-block;
  font-family: var(--font-sans-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FF5300;
  margin-bottom: var(--space-4);
}
.wf-hero h1{
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--space-2);
}
.wf-hero p{
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.55);
  max-width: 680px;
  margin: 0 auto;
}

/* ── Section labels (Current State / Future State) ── */
.wf-section-label{
  font-family: var(--font-sans-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: var(--space-5) 0 var(--space-2);
}
.wf-section-label--before{ color: var(--color-text-muted); }
.wf-section-label--after{ color: #7B3AB8; }

/* ── Scenario header (title + hours badge) ── */
.wf-scenario-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0 var(--space-4);
  border-bottom: 3px solid var(--color-border);
}
.wf-scenario-header--after{
  border-bottom-color: #7B3AB8;
  margin-top: var(--space-2);
}
.wf-scenario-header h2{
  font-size: var(--text-xl);
  margin: 0;
}
.wf-scenario-header--after h2{ color: #7B3AB8; }

.wf-total-badge{
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans-heading);
}
.wf-total-badge--before{
  background: #fef2f2;
  border: 1px solid #fca5a5;
}
.wf-total-badge--after{
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
}
.wf-total-badge .wf-hours{
  font-size: 1.75rem;
  font-weight: 700;
}
.wf-total-badge--before .wf-hours{ color: #d97706; }
.wf-total-badge--after .wf-hours{ color: #059669; }
.wf-total-badge .wf-unit{
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ── Workflow grid ── */
.wf-grid{
  padding-bottom: var(--space-6);
}

.wf-col-headers{
  display: grid;
  grid-template-columns: 100px 1fr 80px 100px;
  gap: 12px;
  padding: var(--space-2) var(--space-4);
  border-bottom: 2px solid var(--color-border);
}
.wf-col-headers span{
  font-family: var(--font-sans-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.wf-col-headers span:nth-child(3){ text-align: center; }
.wf-col-headers span:nth-child(4){ text-align: right; }

.wf-row{
  display: grid;
  grid-template-columns: 100px 1fr 80px 100px;
  gap: 12px;
  align-items: center;
  padding: 14px var(--space-4);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}
.wf-row:hover{ background: rgba(15,23,42,0.02); }
.wf-row--after:hover{ background: rgba(123,58,184,0.04); }

.wf-day{
  font-family: var(--font-sans-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wf-task{ display: flex; flex-direction: column; gap: 3px; }
.wf-task__name{
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-text-heading);
}
.wf-task__detail{
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.wf-time{
  text-align: center;
  font-family: var(--font-sans-heading);
  font-size: var(--text-md);
  font-weight: 600;
}
.wf-time--before{ color: var(--color-text-heading); }
.wf-time--after{ color: #7B3AB8; }

.wf-owner{ text-align: right; }
.wf-tag{
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.wf-tag--human{ background: #dbeafe; color: #0038A8; }
.wf-tag--ai{ background: #ede9fe; color: #7B3AB8; }
.wf-tag--manager{ background: #fef3c7; color: #92400e; }
.wf-tag--both{
  background: linear-gradient(135deg, #dbeafe 50%, #ede9fe 50%);
  color: #0038A8;
}

/* ── Approval gate row ── */
.wf-gate{
  display: grid;
  grid-template-columns: 100px 1fr 80px 100px;
  gap: 12px;
  align-items: center;
  padding: 10px var(--space-4);
  background: #fffbeb;
  border: 1px dashed #d97706;
  border-radius: 6px;
  margin: 4px 0;
}
.wf-gate__icon{
  font-size: 14px;
  color: #d97706;
  font-weight: 700;
}
.wf-gate__label{
  font-size: var(--text-xs);
  font-weight: 600;
  color: #92400e;
}

/* ── Guardrail callout ── */
.wf-guardrail{
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: var(--space-3) var(--space-4);
  background: #fef2f2;
  border-left: 3px solid #FF5300;
  margin: var(--space-2) 0 var(--space-1);
  border-radius: 0 6px 6px 0;
}
.wf-guardrail__label{
  font-family: var(--font-sans-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #FF5300;
  padding-top: 2px;
}
.wf-guardrail__text{
  font-size: var(--text-xs);
  color: #7c2d12;
  line-height: 1.45;
}

/* ── "Freed hours" highlight row ── */
.wf-row--freed{
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  margin-top: var(--space-2);
}
.wf-row--freed .wf-day{ color: #059669; }
.wf-row--freed .wf-task__name{ color: #059669; font-weight: 700; }
.wf-row--freed .wf-time{ color: #059669; font-weight: 700; }

/* ── Transformation divider ── */
.wf-divider{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-7) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(123,58,184,0.04) 100%);
}
.wf-divider__line{
  flex: 1;
  height: 2px;
  background: #FF5300;
}
.wf-divider__content{ text-align: center; }
.wf-divider__arrow{
  font-size: 28px;
  color: #FF5300;
  display: block;
  margin-bottom: 4px;
}
.wf-divider__text{
  font-family: var(--font-sans-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #FF5300;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Impact panel (light section) ── */
.wf-impact{
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-7) 0;
}
.wf-impact__title{
  font-family: var(--font-sans-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #FF5300;
  margin-bottom: var(--space-5);
}

.wf-impact-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.wf-impact-card{
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
}
.wf-impact-card__metric{
  font-family: var(--font-sans-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.wf-impact-card__metric--blue{ color: #0038A8; }
.wf-impact-card__metric--purple{ color: #7B3AB8; }
.wf-impact-card__metric--orange{ color: #FF5300; }

.wf-impact-card__label{
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-text-heading);
  margin-bottom: var(--space-2);
}
.wf-impact-card__detail{
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Reallocation panel (inside impact) ── */
.wf-reallocation{
  background: rgba(123,58,184,0.06);
  border: 1px solid rgba(123,58,184,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.wf-reallocation h3{
  font-size: var(--text-md);
  color: #7B3AB8;
  margin-bottom: var(--space-4);
}
.wf-reallocation-items{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.wf-reallocation-item{
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.wf-reallocation-item__icon{
  color: #FF5300;
  font-size: var(--text-md);
  margin-top: 2px;
  flex-shrink: 0;
}
.wf-reallocation-item__text{
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.45;
}
.wf-reallocation-item__text strong{
  color: var(--color-text-heading);
  font-weight: 600;
}

/* ── Sources ── */
.wf-sources{
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
}
.wf-sources__title{
  font-family: var(--font-sans-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.wf-sources__list{
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ── Workflow responsive ── */
@media (max-width: 768px){
  .wf-impact-grid,
  .wf-reallocation-items{ grid-template-columns: 1fr; }
  .wf-row,
  .wf-col-headers,
  .wf-gate{
    grid-template-columns: 80px 1fr 60px 80px;
    gap: 8px;
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
}

@media print{
  .wf-hero{ padding: var(--space-5) 0; }
  .wf-hero h1{ font-size: 1.5rem; }
  .wf-impact-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------
   Homepage — hero split layout, featured articles, framework
   ------------------------------------------------------------ */

/* Hero: split grid with infographic */
.hp-hero{
  padding-top: clamp(2.4rem, 5vw, 4rem);
  padding-bottom: var(--space-7);
}
.hp-hero__grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.hp-hero__text{ max-width: 560px; }

.hp-hero__visual{
  position: relative;
}
.hp-hero__visual a{
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  transition: box-shadow 200ms ease;
}
.hp-hero__visual a:hover{
  box-shadow: 0 6px 28px rgba(0,0,0,0.18);
}
.hp-hero__visual img{
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.hp-hero__caption{
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 980px){
  .hp-hero__grid{
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .hp-hero__text{ max-width: none; }
  .hp-hero__visual{ max-width: 540px; }
}

/* Framework text */
.hp-framework__text{
  font-size: var(--text-lg);
  max-width: 52rem;
  color: var(--color-text);
}

/* Featured article cards (with image thumbnails) */
.hp-featured{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.hp-featured__card{
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.hp-featured__card:hover{
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.hp-featured__img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.hp-featured__body{
  padding: var(--space-5);
  border-left: 4px solid;
  flex: 1;
}
.hp-featured__card--orange .hp-featured__body{ border-left-color: var(--color-orange); }
.hp-featured__card--blue .hp-featured__body{ border-left-color: var(--color-blue); }

.hp-featured__label{
  margin: 0 0 var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hp-featured__card--orange .hp-featured__label{ color: var(--color-orange); }
.hp-featured__card--blue .hp-featured__label{ color: var(--color-blue); }

.hp-featured__title{
  margin: 0 0 var(--space-2);
  font-family: var(--font-sans-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-heading);
}
.hp-featured__desc{
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 768px){
  .hp-featured{ grid-template-columns: 1fr; }
  .hp-featured__img{ height: 160px; }
}
