/*
 * Copyright (c) 2026 Annie Lynn Simoy
 * https://www.linkedin.com/in/annielynnsimoy/
 * All rights reserved. Developed by Annie Lynn Simoy.
 * Unauthorised copying, distribution, or modification of this code
 * is strictly prohibited without prior written permission from the author.
 */

/* ============================================================
   GMH POST SYSTEM — Location Page Stylesheet
   Layer A: .post-*  (shared, all post types)
   Layer B: .loc-*   (location-page-specific)

   Drop-in ready for:
   - WordPress Appearance → Additional CSS
   - AS Content Publisher plugin (enqueue from assets/css/)

   Everything is scoped under .post-wrap so it cannot bleed into
   other pages of the host theme.

   To re-brand for a different client, override the CSS variables
   in the BRAND OVERRIDES block below. No other changes needed.
   ============================================================ */


/* ============================================================
   1. TOKENS — CSS variables (the brand contract)
   ============================================================ */
.post-wrap{
  /* —— Brand colours (override per-client) —— */
  --brand-accent:        #1D9E75;   /* primary brand colour */
  --brand-accent-rgb:    29,158,117; /* same colour, as an R,G,B triplet — used by rgba() glows below */
  --brand-accent-dark:   #0F6E56;   /* hover / pressed state */
  --brand-accent-mid:    #5DCAA5;   /* accent-on-dark surfaces */
  --brand-accent-light:  #E1F5EE;   /* tint backgrounds */
  --brand-amber:         #C68A2E;   /* secondary accent (rare) */

  /* —— Neutrals —— */
  --ink:                 #0A1A14;   /* primary text / dark surfaces */
  --ink-soft:            #1F3329;   /* secondary text */
  --paper:               #FAFAF7;   /* page background */
  --paper-warm:          #F1EDE4;   /* warm surfaces, hover states */
  --rule:                rgba(10,26,20,.12);
  --rule-soft:           rgba(10,26,20,.06);
  --muted:               rgba(10,26,20,.58);

  /* —— Typography —— */
  --font-serif:  'Instrument Serif', Georgia, serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* —— Layout —— */
  --max-width: 1180px;
  --pad-inline: 32px;
  --pad-inline-sm: 20px;
  --section-pad: 88px;
  --section-pad-sm: 60px;
}


/* ============================================================
   2. WRAPPER + RESET (scoped)
   ============================================================ */
.post-wrap,
.post-wrap *,
.post-wrap *::before,
.post-wrap *::after{
  box-sizing: border-box;
}
.post-wrap *{
  margin: 0;
  padding: 0;
}
.post-wrap{
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.post-wrap .sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce){
  .post-wrap *,
  .post-wrap *::before,
  .post-wrap *::after{
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* ============================================================
   3. ANIMATIONS
   ============================================================ */
@keyframes post-fade-rise{
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes post-blink{
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
@keyframes post-scan{
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes post-rotate-words{
  0%, 18%  { transform: translateY(0); }
  25%, 43% { transform: translateY(-1.1em); }
  50%, 68% { transform: translateY(-2.2em); }
  75%, 93% { transform: translateY(-3.3em); }
  100%     { transform: translateY(0); }
}


/* ============================================================
   4. LAYOUT — shared section primitives
   ============================================================ */
.post-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-inline);
}
@media (max-width: 720px){
  .post-inner{ padding: 0 var(--pad-inline-sm); }
}

/* generic section spacing — every <section> inside .post-wrap */
.post-section{
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--rule);
}
.post-section:first-of-type{ border-top: none; }
@media (max-width: 720px){
  .post-section{ padding: var(--section-pad-sm) 0; }
}

/* numbered section header (used by main content sections) */
.post-section-head{
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 48px;
}
.post-section-num{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-accent);
  letter-spacing: .04em;
  font-weight: 500;
  padding-top: 8px;
}
.post-section-num span{ color: var(--muted); }
.post-section-title{
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--ink);
}
.post-section-title em{
  font-style: italic;
  color: var(--brand-accent);
}
.post-section-title .alt{
  color: var(--muted);
  font-style: italic;
}
.post-kicker{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-kicker::before{
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  animation: post-blink 1.8s ease-in-out infinite;
}
.post-lede{
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 18px;
}
@media (max-width: 720px){
  .post-section-head{ grid-template-columns: 1fr; gap: 8px; margin-bottom: 32px; }
  .post-section-num{ padding-top: 0; }
}


/* ============================================================
   5. LAYER A — shared section components
   (every post type uses these)
   ============================================================ */

/* —— 5.1 Dateline (published / updated / author) —— */
.post-dateline{
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-dateline .post-inner{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.post-dateline .post-dateline-author{ color: var(--ink-soft); }
/* The author name is a link; without an explicit colour it inherits the global
   link colour and can render near-invisible against the paper background. */
.post-dateline .post-dateline-author a{ color: var(--ink-soft); text-decoration: none; }
.post-dateline .post-dateline-author a:hover{ color: var(--brand-accent); text-decoration: underline; }
.post-dateline .post-dateline-sep{
  width: 3px; height: 3px;
  background: var(--rule);
  border-radius: 50%;
}

/* —— 5.2 TL;DR (1–2 sentence summary right after hero) —— */
.post-tldr{
  padding: 40px 0;
  background: var(--paper-warm);
}
.post-tldr .post-tldr-tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 10px;
  display: inline-block;
}
.post-tldr .post-tldr-body{
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 64ch;
  font-style: italic;
}

/* —— 5.3 Summary Block —— */
.post-ai-summary{
  padding: var(--section-pad-sm) 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.post-ai-summary::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-accent-mid), transparent);
  animation: post-scan 4s ease-in-out infinite;
}
.post-ai-summary .post-ai-tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-accent-mid);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-ai-summary .post-ai-tag::before{
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-accent-mid);
  animation: post-blink 1.6s ease-in-out infinite;
}
.post-ai-summary h2{
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 22px;
  max-width: none;   /* span full content width (was 52ch) */
}
.post-ai-summary p{
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  max-width: none;   /* span full content width (was 72ch) */
  margin-bottom: 14px;
}
.post-ai-summary p:last-of-type{ margin-bottom: 0; }

/* —— 5.4 Key Facts —— */
.post-key-facts{ padding: var(--section-pad-sm) 0; }
.post-key-facts ul{
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin-top: 24px;
}
@media (max-width: 720px){ .post-key-facts ul{ grid-template-columns: 1fr; } }
.post-key-facts li{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.post-key-facts li::before{
  content: '';
  width: 7px; height: 7px;
  background: var(--brand-accent);
  border-radius: 50%;
  align-self: center;
}
.post-key-facts strong{
  display: block;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

/* —— 5.5 Comparison Table (real <table>) —— */
.post-comparison-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.post-comparison-table th,
.post-comparison-table td{
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
}
.post-comparison-table th{
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  background: var(--paper-warm);
  font-weight: 500;
}
.post-comparison-table td.win{
  background: var(--brand-accent-light);
  font-weight: 500;
  color: var(--brand-accent-dark);
}
.post-comparison-table tr:last-child td{ border-bottom: none; }

/* —— 5.6 Information Gain / named framework block —— */
.post-framework{
  padding: var(--section-pad) 0;
  background: var(--paper-warm);
}
.post-framework .post-framework-header{
  margin-bottom: 32px;
}
.post-framework .post-framework-name{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(32px, 4.6vw, 44px);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}
.post-framework .post-framework-name::before{
  content: '"';
  font-family: var(--font-serif);
  font-size: 1em;
  color: var(--brand-accent);
  margin-right: 4px;
}
.post-framework .post-framework-name::after{
  content: '"';
  font-family: var(--font-serif);
  color: var(--brand-accent);
  margin-left: 2px;
}
.post-framework .post-framework-intro{
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.post-framework-steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 920px){ .post-framework-steps{ grid-template-columns: 1fr; } }
.post-framework-step{
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px;
  position: relative;
}
.post-framework-step-num{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-accent);
  letter-spacing: .08em;
  margin-bottom: 12px;
  display: block;
}
.post-framework-step h3{
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.25;
}
.post-framework-step p{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* —— 5.7 Takeaways —— */
.post-takeaways{ padding: var(--section-pad-sm) 0; }
.post-takeaways ul{
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.post-takeaways li{
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.post-takeaways li:last-child{ border-bottom: none; }
.post-takeaways li::before{
  content: counter(takeaway-counter, decimal-leading-zero);
  counter-increment: takeaway-counter;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-accent);
  letter-spacing: .04em;
  padding-top: 4px;
}
.post-takeaways ul{ counter-reset: takeaway-counter; }

/* —— 5.8 Conclusion —— */
.post-conclusion{ padding: var(--section-pad-sm) 0; }
.post-conclusion p{
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.45;
  color: var(--ink);
  max-width: none;   /* span full content width like other sections (was 60ch) */
  margin-bottom: 18px;
}
.post-conclusion p:last-of-type{ margin-bottom: 0; }

/* —— 5.9 Sources / Further reading —— */
.post-sources{
  padding: var(--section-pad-sm) 0;
  border-top: 1px solid var(--rule);
}
.post-sources ul{
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.post-sources li{
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  line-height: 1.5;
}
.post-sources a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-accent);
  padding-bottom: 1px;
  transition: color .15s ease;
}
.post-sources a:hover{ color: var(--brand-accent); }
.post-sources .post-sources-meta{
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* —— 5.10 Author Bio (E-E-A-T credential block) —— */
.post-author-bio{
  padding: 44px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 720px){
  .post-author-bio{
    grid-template-columns: 1fr;
    padding: 28px;
    text-align: left;
  }
}
.post-author-bio-avatar{
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--paper-warm);
}
.post-author-bio-kicker{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 10px;
  display: block;
}
.post-author-bio-name{
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}
.post-author-bio-name a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--brand-accent);
}
.post-author-bio-name a:hover{ color: var(--brand-accent); }
.post-author-bio-title{
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.4;
}
.post-author-bio-credentials{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.post-author-bio-credentials span{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-accent-dark);
  background: var(--brand-accent-light);
  border: 1px solid rgba(var(--brand-accent-rgb),.2);
  border-radius: 3px;
  padding: 5px 10px;
}
.post-author-bio-text{
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 64ch;
  margin-bottom: 16px;
}
.post-author-bio-social{
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.post-author-bio-social a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.post-author-bio-social a:hover{
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}

/* —— 5.11 Author Page (full standalone "About" page) —— */
.post-author-page-header{
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.post-author-page-avatar{
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--paper-warm);
  flex-shrink: 0;
}
.post-author-page-title{
  font-size: 17px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 52ch;
  line-height: 1.4;
}
.post-prose{
  max-width: 72ch;
}
.post-prose p{
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.post-prose h2{
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin: 40px 0 18px;
  letter-spacing: -.005em;
}
.post-author-bio-highlights{
  list-style: none;
  display: grid;
  gap: 14px;
}
.post-author-bio-highlights li{
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.post-author-bio-highlights li::before{
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-accent);
  margin-top: 8px;
}
.post-author-bio-expertise{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.post-author-bio-expertise span{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand-accent-dark);
  background: var(--brand-accent-light);
  border: 1px solid rgba(var(--brand-accent-rgb),.2);
  border-radius: 4px;
  padding: 8px 14px;
}

/* —— 5.12 CTA (shared base) —— */
.post-cta-button{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 22px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .18s ease;
  border: 1px solid transparent;
  letter-spacing: .005em;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
}
.post-cta-button:hover{
  background: var(--brand-accent);
  transform: translateY(-1px);
}
.post-cta-button:focus-visible{
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}
.post-cta-button .arr{
  display: inline-block;
  transition: transform .2s ease;
}
.post-cta-button:hover .arr{ transform: translateX(3px); }
.post-cta-button.ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.post-cta-button.ghost:hover{
  border-color: var(--ink);
  background: rgba(10,26,20,.03);
  transform: none;
}


/* ============================================================
   6. LAYER B — location-page extras (.loc-*)
   ============================================================ */

/* —— 6.1 Hero —— */
.loc-hero{
  padding: 56px 0 96px;
  position: relative;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 60%, transparent 100%),
    radial-gradient(900px 400px at 80% 0%, rgba(var(--brand-accent-rgb),.08), transparent 70%);
}
.loc-hero-meta{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.loc-hero-meta .live{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-accent);
}
.loc-hero-meta .live::before{
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  animation: post-blink 1.6s ease-in-out infinite;
}
.loc-hero-meta .sep{
  width: 3px; height: 3px;
  background: var(--rule);
  border-radius: 50%;
}
.loc-hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 920px){
  .loc-hero-grid{ grid-template-columns: 1fr; gap: 40px; }
}

/* visible H1 for location pages */
.loc-hero h1.post-title{
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  animation: post-fade-rise .7s ease both;
}
.loc-hero h1.post-title em{
  font-style: italic;
  color: var(--brand-accent);
  white-space: nowrap;
}
.loc-hero h1.post-title .alt{
  color: var(--muted);
  font-style: italic;
}
.loc-hero .rotator{
  display: inline-block;
  height: 1.1em;
  overflow: hidden;
  vertical-align: bottom;
}
.loc-hero .rotator-track{
  display: inline-flex;
  flex-direction: column;
  animation: post-rotate-words 10s ease-in-out infinite;
}
.loc-hero .rotator-track > span{
  height: 1.1em;
  font-style: italic;
  color: var(--brand-accent);
  white-space: nowrap;
}
.loc-hero-sub{
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
  animation: post-fade-rise .7s ease .1s both;
  opacity: 0;
  animation-fill-mode: forwards;
}
.loc-hero-cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: post-fade-rise .7s ease .2s both;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* —— 6.2 Calculator console —— */
.loc-calc{
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  animation: post-fade-rise .8s ease .15s both;
  opacity: 0;
  animation-fill-mode: forwards;
}
.loc-calc::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-accent-mid), transparent);
  animation: post-scan 3.5s ease-in-out infinite;
}
.loc-calc-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 20px;
}
.loc-calc-head-label{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.loc-calc-head-dots{ display: flex; gap: 5px; }
.loc-calc-head-dots span{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.loc-calc-head-dots span:first-child{ background: var(--brand-accent-mid); }
.loc-calc-row{
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.loc-calc-row:last-of-type{ border-bottom: none; }
.loc-calc-label{
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.loc-calc-select{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.loc-calc-opt{
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 6px 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--paper);
  border-radius: 3px;
  cursor: pointer;
  transition: all .15s ease;
  font-weight: 400;
}
.loc-calc-opt:hover{
  border-color: var(--brand-accent-mid);
  background: rgba(93,202,165,.08);
}
.loc-calc-opt[aria-pressed="true"]{
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  font-weight: 500;
}
.loc-calc-opt:focus-visible{
  outline: 2px solid var(--brand-accent-mid);
  outline-offset: 2px;
}
.loc-calc-output{
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255,255,255,.18);
}
.loc-calc-out-label{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
}
.loc-calc-figure{
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 68px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.02em;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.loc-calc-figure .cur{
  font-size: .5em;
  color: var(--brand-accent-mid);
  font-style: italic;
}
.loc-calc-figure .num{
  font-variant-numeric: tabular-nums;
  transition: color .2s ease;
}
.loc-calc-foot{
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
  flex-wrap: wrap;
}
.loc-calc-pct{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(93,202,165,.12);
  color: var(--brand-accent-mid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  border-radius: 3px;
  border: 1px solid rgba(93,202,165,.25);
}

/* —— 6.3 Trust strip (chips) —— */
.loc-trust{
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  margin-top: 36px;
}
.loc-trust-inner{
  /* 3 items per row on desktop, 2 per row on mobile (was a wrapping flex row) */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 720px){
  .loc-trust-inner{ grid-template-columns: repeat(2, 1fr); }
}
.loc-trust-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.loc-trust-item .tick{
  width: 14px; height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
  font-size: 14px;
}

/* —— 6.4 The Math — ledger comparison —— */
.loc-math{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 720px){ .loc-math{ grid-template-columns: 1fr; } }
.loc-ledger{
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px;
  position: relative;
  transition: border-color .2s ease;
}
.loc-ledger.win{
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.loc-ledger-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.loc-ledger.win .loc-ledger-head{
  border-bottom-color: rgba(255,255,255,.12);
}
.loc-ledger-name{
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
}
.loc-ledger-tag{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 9px;
  background: var(--paper-warm);
  border-radius: 3px;
}
.loc-ledger.win .loc-ledger-tag{
  background: rgba(93,202,165,.16);
  color: var(--brand-accent-mid);
}
.loc-ledger-line{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--rule);
  align-items: baseline;
}
.loc-ledger.win .loc-ledger-line{
  border-bottom-color: rgba(255,255,255,.1);
}
.loc-ledger-line:last-of-type{ border-bottom: none; }
.loc-ledger-key{
  font-size: 13px;
  color: var(--ink-soft);
}
.loc-ledger.win .loc-ledger-key{ color: rgba(255,255,255,.72); }
.loc-ledger-val{
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.loc-ledger-total{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.loc-ledger.win .loc-ledger-total{
  border-top-color: var(--brand-accent);
}
.loc-ledger-total-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.loc-ledger.win .loc-ledger-total-label{ color: var(--brand-accent-mid); }
.loc-ledger-total-val{
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.loc-ledger.win .loc-ledger-total-val{ color: #fff; }
.loc-delta{
  margin-top: 36px;
  padding: 28px;
  background: linear-gradient(135deg, var(--brand-accent-light), rgba(225,245,238,.4));
  border: 1px solid rgba(var(--brand-accent-rgb),.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.loc-delta-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-accent-dark);
}
.loc-delta-fig{
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 56px);
  line-height: 1;
  color: var(--brand-accent-dark);
  font-variant-numeric: tabular-nums;
}
.loc-delta-fig em{ font-style: italic; }
.loc-delta-note{
  font-size: 13px;
  color: var(--brand-accent-dark);
  max-width: 24ch;
  line-height: 1.5;
}

/* —— 6.5 Capability matrix —— */
.loc-cap{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
@media (max-width: 720px){ .loc-cap{ grid-template-columns: 1fr; } }
.loc-cap-cell{
  padding: 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background .2s ease;
}
.loc-cap-cell:nth-child(2n){ border-right: none; }
.loc-cap-cell:nth-last-child(-n+2){ border-bottom: none; }
@media (max-width: 720px){
  .loc-cap-cell{ border-right: none; }
  .loc-cap-cell:last-child{ border-bottom: none; }
}
.loc-cap-cell:hover{ background: var(--paper-warm); }
.loc-cap-cell::before{
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--brand-accent);
  transition: width .3s ease;
}
.loc-cap-cell:hover::before{ width: 100%; }
.loc-cap-num{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-accent);
  letter-spacing: .06em;
  margin-bottom: 14px;
  display: block;
}
.loc-cap-name{
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -.005em;
}
.loc-cap-desc{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 38ch;
}
.loc-cap-list{
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}
.loc-cap-list li{
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.loc-cap-list li::before{
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
  margin-top: 8px;
}
.loc-cap-link{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .15s ease;
}
.loc-cap-link:hover{
  gap: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.loc-industries{
  margin-top: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.loc-industries .ind-label{
  color: var(--brand-accent);
  font-weight: 500;
}
.loc-industries .ind-sep{ opacity: .4; }

/* —— 6.6 Day track / Mountain Time —— */
.loc-day-track{
  margin-top: 8px;
  position: relative;
  padding: 32px 0 24px;
}
.loc-day-rail{
  position: relative;
  height: 6px;
  background: var(--rule);
  border-radius: 3px;
}
.loc-day-segment{
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 3px;
  transition: opacity .2s ease;
}
.loc-day-seg-mt{
  background: var(--ink);
  left: 33%;
  width: 38%;
}
.loc-day-seg-va{
  background: var(--brand-accent);
  left: 71%;
  width: 29%;
  border-radius: 3px 0 0 3px;
}
.loc-day-seg-va-2{
  background: var(--brand-accent);
  left: 0%;
  width: 33%;
  border-radius: 0 3px 3px 0;
}
.loc-day-marks{
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .06em;
}
.loc-day-marks span{ position: relative; }
.loc-day-marks span::before{
  content: '';
  position: absolute;
  top: -22px; left: 50%;
  width: 1px; height: 8px;
  background: var(--rule);
}
.loc-day-marks span:first-child::before{ display: none; }
.loc-day-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
@media (max-width: 720px){ .loc-day-cards{ grid-template-columns: 1fr; } }
.loc-day-card{
  padding: 24px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  position: relative;
}
.loc-day-card-time{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-accent);
  letter-spacing: .08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.loc-day-card-time::after{
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.loc-day-card-title{
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.2;
}
.loc-day-card-body{
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* —— 6.7 Benefits index —— */
.loc-bens{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 920px){ .loc-bens{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .loc-bens{ grid-template-columns: 1fr; } }
.loc-ben{
  padding: 28px 24px;
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background .15s ease;
}
.loc-ben:hover{ background: var(--paper-warm); }
.loc-ben:nth-child(3n){ border-right: none; }
@media (max-width: 920px){
  .loc-ben:nth-child(3n){ border-right: 1px solid var(--rule); }
  .loc-ben:nth-child(2n){ border-right: none; }
}
@media (max-width: 520px){
  .loc-ben{ border-right: none !important; }
}
.loc-ben-idx{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-accent);
  letter-spacing: .08em;
  margin-bottom: 10px;
  display: block;
}
.loc-ben-title{
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -.005em;
}
.loc-ben-body{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* —— 6.8 Steps (three-stage process) —— */
.loc-steps{ display: grid; gap: 0; }
.loc-step{
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: padding .2s ease;
}
.loc-step:last-child{ border-bottom: none; }
.loc-step:hover{ padding-left: 8px; }
.loc-step-n{
  font-family: var(--font-serif);
  font-size: 54px;
  line-height: 1;
  color: var(--brand-accent);
  font-style: italic;
  font-variant-numeric: tabular-nums;
}
.loc-step-body h3{
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}
.loc-step-body p{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 60ch;
}
.loc-step-time{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 720px){
  .loc-step{ grid-template-columns: 60px 1fr; gap: 18px; }
  .loc-step-n{ font-size: 38px; }
  .loc-step-time{ grid-column: 2; margin-top: 4px; }
}

/* —— 6.9 Testimonials —— */
.loc-quotes{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 920px){ .loc-quotes{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .loc-quotes{ grid-template-columns: 1fr; } }
.loc-quote{
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.loc-quote:hover{
  transform: translateY(-3px);
  border-color: var(--brand-accent);
}
.loc-quote-mark{
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: .7;
  color: var(--brand-accent);
  font-style: italic;
  margin-bottom: 6px;
  display: block;
}
.loc-quote blockquote{
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 22px;
  font-style: italic;
  font-weight: 400;
}
.loc-quote-by{
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 12px;
}
.loc-quote-mono{
  width: 36px; height: 36px;
  border-radius: 4px;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}
.loc-quote-meta{
  font-size: 12px;
  line-height: 1.4;
}
.loc-quote-meta strong{
  display: block;
  font-weight: 500;
  color: var(--ink);
  font-size: 13px;
}
.loc-quote-meta cite{
  font-style: normal;
  color: var(--muted);
}

/* —— 6.10 FAQ (lined accordion) —— */
.loc-faq{ border-top: 1px solid var(--ink); }
.loc-faq-item{ border-bottom: 1px solid var(--rule); }
.loc-faq-q{
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: baseline;
  font-family: var(--font-sans);
  color: var(--ink);
  transition: padding .2s ease;
}
.loc-faq-q:hover{ padding-left: 8px; }
.loc-faq-q:focus-visible{
  outline: 2px solid var(--brand-accent);
  outline-offset: 4px;
}
.loc-faq-q-tag{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-accent);
  letter-spacing: .06em;
  font-weight: 500;
}
.loc-faq-q-text{
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.005em;
}
.loc-faq-q-toggle{
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  position: relative;
  flex-shrink: 0;
}
.loc-faq-q-toggle::before,
.loc-faq-q-toggle::after{
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform .25s ease, background .2s ease;
}
.loc-faq-q-toggle::before{ width: 10px; height: 1.5px; }
.loc-faq-q-toggle::after{  width: 1.5px; height: 10px; }
.loc-faq-q.open .loc-faq-q-toggle{
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}
.loc-faq-q.open .loc-faq-q-toggle::before,
.loc-faq-q.open .loc-faq-q-toggle::after{
  background: #fff;
}
.loc-faq-q.open .loc-faq-q-toggle::after{ transform: scaleY(0); }
.loc-faq-a{
  /* Always-open: answers render below each question, no accordion/JS needed.
     (The toggle JS is harmless if present, but answers no longer depend on it.) */
  max-height: none;
  overflow: visible;
}
.loc-faq-a-inner{
  padding: 0 0 24px 76px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: none;   /* span full content width (was 70ch) */
}
/* Answers are always open now; the toggle circle and hover-shift are pointless. */
.loc-faq-q{ cursor: default; }
.loc-faq-q:hover{ padding-left: 0; }
.loc-faq-q-toggle{ display: none; }
@media (max-width: 720px){
  .loc-faq-q{ grid-template-columns: 42px 1fr auto; gap: 10px; }
  .loc-faq-q-text{ font-size: 17px; }
  .loc-faq-a-inner{ padding-left: 52px; }
}

/* —— Hide theme-injected post-tags ——
   The Hello Elementor theme renders a "Tagged ..." block from its single
   template, OUTSIDE the_content and outside .post-wrap, so the PHP
   the_content filter (ascp_strip_post_tags_div) can't reach it. The body
   carries the CPT class on these pages, so hide it here instead. */
.single-services_locations .post-tags{ display: none; }

/* —— 6.11 CTA (anchored dark panel) —— */
.loc-cta{
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
.loc-cta::before{
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background: radial-gradient(circle at 90% 10%, rgba(var(--brand-accent-rgb),.22), transparent 60%);
  pointer-events: none;
}
@media (max-width: 720px){ .loc-cta{ padding: 44px 28px; } }
.loc-cta-grid{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  position: relative;
}
@media (max-width: 720px){ .loc-cta-grid{ grid-template-columns: 1fr; gap: 28px; } }
.loc-cta h2{
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
  margin-bottom: 16px;
}
.loc-cta h2 em{
  font-style: italic;
  color: var(--brand-accent-mid);
}
.loc-cta-sub{
  font-size: 16px;
  color: rgba(255,255,255,.7);
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: 24px;
}
.loc-cta-meta{
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.loc-cta-meta a{
  color: var(--paper);
  text-decoration: none;
  transition: color .15s;
}
.loc-cta-meta a:hover{ color: var(--brand-accent-mid); }
.loc-cta-meta-row{
  display: flex;
  align-items: center;
  gap: 10px;
}
.loc-cta-meta-row .dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-accent-mid);
  flex-shrink: 0;
}
.loc-cta-button.loc-cta-button-primary{
  background: var(--brand-accent);
  color: #fff;
}
.loc-cta-button.loc-cta-button-primary:hover{
  background: #fff;
  color: var(--ink);
}
