/* ============================================================
   ACP GHOST THEME — screen.css
   Autism Centers of Pittsburgh Blog
   Design: Warm Cream bg, Deep Olive authority, Muted Teal, Amber CTAs
   Fonts: Roboto (headings) + Lato (body)
   ============================================================ */

/* Self-hosted fonts (latin subset), the same files acpitt.com serves */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/lato-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:        #F7F3EC;
  --olive:        #3A5A2A;
  --olive-dark:   #2A4A1C;
  --olive-light:  #4E7A3A;
  --teal:         #4A8B7F;
  --teal-light:   #6BA89E;
  --teal-dark:    #357066;
  --amber:        #C97D1A;
  --amber-hover:  #D88A26; /* v22: lighter, the text is dark (was #A86815, 4.3:1; now 7.0:1) */
  --amber-light:  #E8A84A;
  --navy:         #1E3A5F;
  --slate:        #4A6B8A;
  --warm-gray:    #6B6058; /* v21: was #8A8070 (3.5:1 on cream), now 5.5:1 */
  --light-green:  #EEF4E8;
  --light-teal:   #E8F4F2;
  --white:        #ffffff;
  --text-dark:    #222222;
  --text-mid:     #444444;
  --text-light:   #666666;
  --border:       #e0dbd2;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--olive);
}

a { color: var(--teal-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--olive); }

img { max-width: 100%; height: auto; display: block; }

/* ---- Layout ---- */
.gh-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .gh-container { padding: 0 2rem; }
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.gh-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 6px rgba(58,90,42,0.10);
  transition: box-shadow 0.3s;
}
.gh-head.scrolled {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(58,90,42,0.14);
}

/* Container for header — matches main site max-width */
.gh-head-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .gh-head-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .gh-head-container { padding: 0 2rem; } }

.gh-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
@media (min-width: 768px) {
  .gh-head-inner { height: 80px; }
}

/* Logo */
.gh-head-logo { display: flex; align-items: center; flex-shrink: 0; }
.gh-logo-img {
  height: 48px;
  width: auto;
}
@media (min-width: 768px) {
  .gh-logo-img { height: 56px; }
}

/* Desktop Nav */
.gh-head-menu { display: flex; align-items: center; gap: 0.25rem; }

.gh-head-menu a {
  padding: 0.5rem 0.75rem;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-mid);
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.gh-head-menu a:hover,
.gh-head-menu a.current {
  color: var(--olive);
  font-weight: 700;
  background: var(--light-green);
}

/* CTA area */
.gh-head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gh-head-phone {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.gh-head-phone:hover { color: var(--olive); }

/* Between 1024 and 1199px the full header doesn't fit: show the phone as an
   icon only (the link keeps its aria-label) and tighten the menu links. */
.gh-head-phone { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1199px) {
  .gh-head-phone-num { display: none; }
  .gh-head-menu a { padding: 0.5rem; }
}

.btn-amber {
  background-color: var(--amber);
  color: #1A0A00;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.85rem;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-block;
  white-space: nowrap;
}
.btn-amber:hover {
  background-color: var(--amber-hover);
  color: #1A0A00;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,125,26,0.35);
}

/* Search button */
.gh-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--text-mid);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.gh-search-btn:hover {
  color: var(--olive);
  background: var(--light-green);
}
.gh-search-btn svg { display: block; }

/* Mobile search button — inside mobile nav overlay */
.gh-search-btn--mobile {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid var(--light-green);
  border-radius: 6px;
  justify-content: flex-start;
}
.gh-search-btn--mobile:hover {
  color: var(--olive);
  background: var(--light-green);
}

/* Override sodo-search modal accent colors to match ACP brand */
:root {
  --sodo-search-brand-color: #3A5A2A;
}

/* Mobile hamburger */
.gh-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 6px;
  transition: background 0.15s;
}
.gh-burger:hover { background: var(--light-green); }
.gh-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--olive);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav — slides down from top (below header) */
.gh-head-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--white);
  flex-direction: column;
  padding: 1rem 1rem 1.5rem;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(58,90,42,0.12);
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}
.gh-head-mobile.is-open {
  display: flex;
  transform: translateY(0);
}

/* Backdrop for mobile */
.gh-head-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0,0,0,0.4);
}
.gh-head-mobile-backdrop.is-open { display: block; }

.gh-head-mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  color: var(--olive);
  line-height: 1;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.gh-head-mobile-close:hover { background: var(--light-green); }

.gh-head-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gh-head-mobile nav a {
  padding: 0.875rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid var(--light-green);
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.gh-head-mobile nav a:hover { color: var(--olive); background: var(--light-green); }

.gh-head-mobile-cta {
  margin-top: 1rem;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* Offset body for fixed header */
body { padding-top: 64px; }
@media (min-width: 768px) {
  body { padding-top: 80px; }
  .gh-head-mobile { top: 80px; }
}

@media (max-width: 1023px) {
  .gh-head-menu,
  .gh-head-actions { display: none; }
  .gh-burger { display: flex; }
}

/* ============================================================
   HERO — Blog Index
   ============================================================ */
.gh-hero {
  background-color: var(--olive);
  color: var(--white);
  padding: 4rem 0 5rem;
}
.gh-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
}
.gh-hero h1 {
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.gh-hero p {
  font-family: 'Lato', sans-serif;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin: 0;
}
.gh-hero .acp-rule {
  margin: 0.75rem 0 0;
}

/* ============================================================
   POST GRID
   ============================================================ */
.gh-feed {
  padding: 3rem 0;
}

.gh-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Post card */
.gh-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(58,90,42,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.gh-card:hover {
  box-shadow: 0 6px 28px rgba(58,90,42,0.14);
  transform: translateY(-3px);
}

.gh-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.gh-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gh-card:hover .gh-card-image img { transform: scale(1.04); }

.gh-card-image-placeholder {
  aspect-ratio: 16/9;
  background: var(--light-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gh-card-image-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--olive);
  opacity: 0.35;
}

.gh-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gh-card-tag {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--light-teal);
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}

.gh-card-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--olive);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.gh-card-title a { color: inherit; }
.gh-card-title a:hover { color: var(--teal-dark); }

.gh-card-excerpt {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gh-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: var(--warm-gray);
  margin-top: auto;
}
.gh-card-meta-dot { color: var(--border); }

/* ============================================================
   PAGINATION
   ============================================================ */
.gh-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0 4rem;
}
.gh-pagination a {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--olive);
  border: 2px solid var(--olive);
  border-radius: 9999px;
  padding: 0.55rem 1.5rem;
  transition: all 0.2s;
}
.gh-pagination a:hover {
  background: var(--olive);
  color: var(--white);
}
.gh-pagination .gh-pagination-count {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--warm-gray);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.gh-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.gh-article-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.gh-article-tag {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--light-teal);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.gh-article-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--olive);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.gh-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--warm-gray);
  flex-wrap: wrap;
}

.gh-article-feature-image {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 24px rgba(58,90,42,0.12);
}
.gh-article-feature-image img {
  width: 100%;
  height: auto;
}

/* Post body typography */
.gh-content {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dark);
}
.gh-content h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.875rem;
  color: var(--olive);
}
.gh-content h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.625rem;
  color: var(--olive);
}
.gh-content h4 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--olive-dark);
}
.gh-content p { margin-bottom: 1.4rem; }
.gh-content ul, .gh-content ol {
  margin: 0 0 1.4rem 1.5rem;
}
.gh-content li { margin-bottom: 0.4rem; }
.gh-content blockquote {
  border-left: 4px solid var(--amber);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--light-green);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--olive-dark);
}
.gh-content a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gh-content a:hover { color: var(--olive); }
.gh-content img {
  border-radius: 0.75rem;
  margin: 1.5rem auto;
  box-shadow: 0 2px 16px rgba(58,90,42,0.1);
}
.gh-content hr {
  border: none;
  border-top: 2px solid var(--light-green);
  margin: 2.5rem 0;
}
.gh-content code {
  background: var(--light-green);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--olive-dark);
}
.gh-content pre {
  background: var(--navy);
  color: #e8f4f2;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin-bottom: 1.4rem;
}
.gh-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Author box */
.gh-author-box {
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--light-green);
  border-radius: 1rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.gh-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(58,90,42,0.15);
}
.gh-author-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.gh-author-info h3 {
  font-size: 1rem;
  color: var(--olive);
  margin-bottom: 0.25rem;
}
.gh-author-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Related posts */
.gh-related {
  background: var(--light-green);
  padding: 3rem 0;
  margin-top: 3rem;
}
.gh-related h3 {
  font-size: 1.4rem;
  color: var(--olive);
  margin-bottom: 1.75rem;
  text-align: center;
}

/* ============================================================
   TAG / AUTHOR ARCHIVE HEADER
   ============================================================ */
.gh-archive-header {
  background: var(--olive);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}
.gh-archive-header h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 0.5rem;
}
.gh-archive-header p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto;
}
.gh-archive-count {
  display: inline-block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.5rem;
}

/* ============================================================
   404 / ERROR PAGE
   ============================================================ */
.gh-error {
  text-align: center;
  padding: 6rem 1.5rem;
}
.gh-error h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--olive);
  margin-bottom: 0.5rem;
}
.gh-error h2 {
  font-size: 1.5rem;
  color: var(--text-mid);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.gh-error p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.gh-foot {
  background-color: var(--navy);
  color: var(--white);
}

.gh-foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1rem 0;
}
@media (min-width: 640px)  { .gh-foot-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .gh-foot-inner { padding-left: 2rem; padding-right: 2rem; } }

.gh-foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .gh-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  /* Brand | Quick Links (centered) | Locations (right-justified) */
  .gh-foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Center the Quick Links column on desktop */
.gh-foot-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .gh-foot-links-col { align-items: center; }
}

/* Right-justify the Locations column on desktop */
.gh-foot-locations-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .gh-foot-locations-col { align-items: flex-end; }
}

.gh-foot-brand-logo-wrap { margin-bottom: 1rem; }

.gh-foot-brand-logo {
  height: 56px;
  width: auto;
}
.gh-foot-brand p {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: #a8c4d8;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.gh-foot-brand-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gh-foot-brand-contacts a {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: #8FC4BA;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.gh-foot-brand-contacts a:hover { color: var(--white); }

.gh-foot-heading {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.gh-foot-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gh-foot-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: #a8c4d8;
}
.gh-foot-links a:hover { color: var(--white); }

.gh-foot-locations {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.gh-foot-location {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.gh-foot-location-pin {
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--amber);
}
.gh-foot-location-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--white);
}
.gh-foot-location-addr {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: #a8c4d8;
  line-height: 1.5;
}
.gh-foot-location-phone {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: #8FC4BA;
}
.gh-foot-location-phone:hover { color: var(--white); }

.gh-foot-bottom {
  border-top: 1px solid #2A4A6F;
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gh-foot-bottom p {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: #A8BFD4;
  text-align: center;
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Amber accent rule used in headings */
.acp-rule {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* Tag pill */
.gh-tag-pill {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--light-teal);
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
}

/* ============================================================
   GHOST KOENIG EDITOR — Required width classes
   Ghost's block editor uses these classes for wide/full-width
   image and embed cards. GScan requires them to be styled.
   ============================================================ */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 1.5rem auto;
  max-width: 1200px;
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-width-wide img,
.kg-width-full img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 640px) {
  .gh-feed-grid { grid-template-columns: 1fr; }
  .gh-foot-locations { grid-template-columns: 1fr; }
  .gh-author-box { flex-direction: column; }
}

/* ============================================================
   GHOST KOENIG CARD STYLES — Required by GScan
   These classes are injected by Ghost's block editor (Koenig).
   They must be styled for the theme to pass validation.
   ============================================================ */

/* Gallery card */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  width: 100%;
  margin: 1.5rem auto;
}
.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.kg-gallery-image img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image card */
.kg-image-card {
  margin: 1.5rem auto;
}
.kg-image-card img {
  display: block;
  max-width: 100%;
  height: auto;
}
.kg-image-card figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--warm-gray);
  margin-top: 0.5rem;
}

/* Bookmark card */
.kg-bookmark-card {
  width: 100%;
  margin: 1.5rem auto;
}
.kg-bookmark-container {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.kg-bookmark-container:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.kg-bookmark-content {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.kg-bookmark-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}
.kg-bookmark-description {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--warm-gray);
}
.kg-bookmark-icon {
  width: 16px;
  height: 16px;
}
.kg-bookmark-publisher {
  font-weight: 600;
}
.kg-bookmark-thumbnail {
  width: 140px;
  flex-shrink: 0;
}
.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Audio card */
.kg-audio-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin: 1.5rem auto;
}
.kg-audio-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 0.25rem;
  object-fit: cover;
  flex-shrink: 0;
}
.kg-audio-player-container {
  flex: 1;
}
.kg-audio-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* Product card */
.kg-product-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin: 1.5rem auto;
}
.kg-product-card-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
}
.kg-product-card-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.kg-product-card-description {
  font-size: 0.875rem;
  color: var(--text-light);
}
.kg-product-card-rating {
  display: flex;
  gap: 0.2rem;
  margin: 0.5rem 0;
}
.kg-product-card-rating-active {
  color: var(--amber);
}
.kg-product-card-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: var(--olive);
  color: #fff;
  border-radius: 9999px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}
.kg-product-card-button:hover {
  background: var(--olive-dark);
}

/* Toggle card */
.kg-toggle-card {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin: 1.5rem auto;
  overflow: hidden;
}
.kg-toggle-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background: var(--cream-light);
}
.kg-toggle-heading-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}
.kg-toggle-content {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

/* Callout card */
.kg-callout-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 0.5rem;
  background: var(--cream-light);
  margin: 1.5rem auto;
}
.kg-callout-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.kg-callout-text {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
}

/* NFT card */
.kg-nft-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 1.5rem auto;
  max-width: 480px;
}
.kg-nft-image {
  width: 100%;
  height: auto;
  display: block;
}
.kg-nft-metadata {
  padding: 1rem;
}
.kg-nft-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}
.kg-nft-description {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}

/* Video card */
.kg-video-card {
  position: relative;
  margin: 1.5rem auto;
}
.kg-video-card video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

/* Embed card */
.kg-embed-card {
  margin: 1.5rem auto;
}
.kg-embed-card iframe {
  width: 100%;
  border: none;
}

/* Header card */
.kg-header-card {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--olive);
  color: #fff;
  border-radius: 0.5rem;
  margin: 1.5rem auto;
}
.kg-header-card-header {
  font-family: 'Roboto', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}
.kg-header-card-subheader {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}
.kg-header-card-button {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  background: var(--amber);
  color: var(--navy);
  border-radius: 9999px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.kg-header-card-button:hover {
  background: #e6a800;
}

/* Required by GScan: kg-bookmark-author */
.kg-bookmark-author {
  font-weight: 600;
  color: var(--navy);
}

/* ============================================================
   TABLE OF CONTENTS (acp-toc)
   Collapsible, clickable TOC — starts collapsed on all devices.
   Triggered by <div id="acp-toc"></div> in post body
   or by the #toc tag on the post.
   ============================================================ */

.acp-toc-wrapper {
  border: 1px solid #d4e4cc;
  border-radius: 0.625rem;
  background: var(--light-green);
  margin: 2rem 0;
  overflow: hidden;
  font-family: 'Lato', sans-serif;
}

.acp-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  user-select: none;
  gap: 0.75rem;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.acp-toc-header:hover {
  background: rgba(58, 90, 42, 0.06);
}

.acp-toc-title {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--olive);
  letter-spacing: 0.01em;
  flex: 1;
}

.acp-toc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--teal);
  border-radius: 0.375rem;
  background: #fff;
  color: var(--teal-dark);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.acp-toc-header:hover .acp-toc-toggle {
  background: var(--teal);
  color: #fff;
}

.acp-toc-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s ease;
}

.acp-toc-wrapper.is-open .acp-toc-toggle svg {
  transform: rotate(180deg);
}

.acp-toc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
}

.acp-toc-wrapper.is-open .acp-toc-body {
  max-height: 9999px;
  padding: 0.75rem 1.25rem 1.25rem;
}

.acp-toc-wrapper.is-open .acp-toc-header {
  border-bottom: 1px solid #d4e4cc;
}

.acp-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc-h2;
}

.acp-toc-list > li {
  counter-increment: toc-h2;
  margin-bottom: 0.3rem;
}

.acp-toc-list > li > a {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--olive-dark);
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 0.15s;
  line-height: 1.4;
}

.acp-toc-list > li > a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.acp-toc-sublist {
  list-style: none;
  margin: 0.2rem 0 0.3rem 1.25rem;
  padding: 0;
  counter-reset: toc-h3;
}

.acp-toc-sublist > li {
  counter-increment: toc-h3;
  margin-bottom: 0.15rem;
}

.acp-toc-sublist > li > a {
  display: block;
  font-size: 0.825rem;
  font-weight: 400;
  color: var(--warm-gray);
  text-decoration: none;
  padding: 0.15rem 0;
  transition: color 0.15s;
  line-height: 1.4;
}

.acp-toc-sublist > li > a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .acp-toc-title { font-size: 0.875rem; }
  .acp-toc-list > li > a { font-size: 0.85rem; }
  .acp-toc-sublist > li > a { font-size: 0.8rem; }
}
