/* ============================================================
   Wall Real Estate — Classic Estate Design System
   Forest green + cream, serif headings, refined property blog
   ============================================================ */

:root {
  /* Brand colors */
  --c-forest:        var(--c-forest);
  --c-forest-dark:   #143526;
  --c-forest-light:  #2a6b51;
  --c-cream:         #f4f1ea;
  --c-cream-dark:    #ebe6db;
  --c-gold:          var(--c-gold);
  --c-gold-light:    #a98a4d;
  --c-ink:           #2a2520;
  --c-ink-soft:      #5a5448;
  --c-ink-muted:     #8b8578;
  --c-paper:         #fffdf8;
  --c-line:          #d9d2c2;
  --c-line-soft:     #e8e2d3;

  /* Type */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max-w:      72rem;     /* 1152px */
  --max-w-prose: 44rem;    /* 704px — comfortable reading width */
  --radius:     4px;
  --radius-lg:  8px;

  /* Spacing */
  --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;
  --space-9: 6rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;        /* hard safety guard against horizontal scroll bugs */
}

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

a {
  color: var(--c-forest);
  text-decoration: underline;
  text-decoration-color: rgba(29, 78, 58, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
a:hover { text-decoration-color: var(--c-forest); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--c-forest);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: var(--space-7); }
h3 { font-size: 1.375rem; margin-top: var(--space-6); }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0 0 var(--space-4); }

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li { margin-bottom: var(--space-2); }
li::marker { color: var(--c-gold); }

strong { font-weight: 600; color: var(--c-ink); }
em { color: var(--c-ink-soft); }

blockquote {
  border-left: 3px solid var(--c-gold);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  margin: var(--space-6) 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--c-ink-soft);
}

hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: var(--space-7) 0;
}

/* ============================================================
   Layout
   ============================================================ */

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-5); }
.container-prose { max-width: var(--max-w-prose); margin: 0 auto; padding: 0 var(--space-5); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-3);
}

/* ============================================================
   Site header
   ============================================================ */

.site-header {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  max-width: var(--nws-max-w);   /* widened for Newsstand layout */
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--c-forest);
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--c-forest);
  color: var(--c-cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500;
  border-radius: var(--radius);
}
.brand-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-primary a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--c-ink-soft);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;       /* WCAG AA tap target minimum */
  padding: 0 var(--space-2);
}
.nav-primary a:hover { color: var(--c-forest); }
.nav-primary a.is-active { color: var(--c-forest); font-weight: 500; }
.nav-cta {
  background: var(--c-forest);
  color: var(--c-cream) !important;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius);
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--c-forest-dark); }

.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: var(--space-2);
  cursor: pointer; color: var(--c-forest);
}

@media (max-width: 768px) {
  .nav-primary { display: none; }
  .nav-primary.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-paper);
    border-bottom: 1px solid var(--c-line);
    padding: var(--space-4);
  }
  .nav-primary.is-open a {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--c-line-soft);
  }
  .nav-toggle { display: block; }
}

/* ============================================================
   Hero — homepage
   ============================================================ */

.hero {
  background: var(--c-cream);
  padding: var(--space-9) var(--space-5);
  text-align: center;
  border-bottom: 1px solid var(--c-line);
}
.hero-inner { max-width: 48rem; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: var(--space-4);
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--c-ink-soft);
  max-width: 32rem;
  margin: 0 auto var(--space-6);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--c-forest); color: var(--c-cream); }
.btn-primary:hover { background: var(--c-forest-dark); }
.btn-outline {
  background: transparent; color: var(--c-forest);
  border-color: var(--c-forest);
}
.btn-outline:hover { background: var(--c-forest); color: var(--c-cream); }
.btn-tel {
  background: var(--c-gold); color: var(--c-paper);
}
.btn-tel:hover { background: var(--c-gold-light); }

/* WhatsApp button — primary conversion CTA */
.btn-wa {
  background: #25D366; color: #ffffff;
  display: inline-flex; align-items: center; gap: .55rem;
}
.btn-wa:hover { background: #1ebe5a; color: #ffffff; }
.btn-wa::before {
  content: ""; display: inline-block; width: 18px; height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'><path d='M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z'/></svg>") center/contain no-repeat;
}
.post-cta .btn-wa { background: #25D366; color: #ffffff; }
.post-cta .btn-wa:hover { background: #1ebe5a; }

/* Floating sticky WhatsApp button — visible all viewports */
.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .35), 0 2px 4px rgba(0,0,0,.12);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.wa-float:hover {
  background: #1ebe5a;
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 4px 8px rgba(0,0,0,.18);
}
.wa-float:focus-visible {
  outline: 3px solid var(--c-forest);
  outline-offset: 3px;
}
.wa-float svg { width: 30px; height: 30px; fill: #ffffff; }
.wa-float .wa-label {
  position: absolute;
  right: 70px;
  background: #2a2520;
  color: #ffffff;
  padding: .35rem .65rem;
  border-radius: 6px;
  font-size: .8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.wa-float:hover .wa-label { opacity: 1; }

/* === Call FAB (desktop) — sits to the left of the WhatsApp FAB === */
.call-float {
  position: fixed;
  bottom: 1.25rem;
  right: calc(1.25rem + 56px + 12px); /* 56px wa-float + 12px gap */
  z-index: 9999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-forest);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(29, 78, 58, .35), 0 2px 4px rgba(0,0,0,.12);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.call-float:hover {
  background: var(--c-forest-dark);
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(29, 78, 58, .45), 0 4px 8px rgba(0,0,0,.18);
}
.call-float:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
}
.call-float svg { width: 26px; height: 26px; fill: #fff; }
.call-float .call-label {
  position: absolute;
  right: 70px;
  background: #2a2520;
  color: #fff;
  padding: .35rem .65rem;
  border-radius: 6px;
  font-size: .8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.call-float:hover .call-label { opacity: 1; }

/* === Mobile sticky CTA bar (call + WhatsApp 50/50) === */
.mobile-cta-bar { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: 60px; }   /* clear space for the sticky bar */
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9998;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .15);
  }
  .mobile-cta-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 14px 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
  }
  .mobile-cta-bar a:active { filter: brightness(0.92); }
  .mobile-cta-bar .mobile-cta-call { background: var(--c-forest); }
  .mobile-cta-bar .mobile-cta-wa   { background: #25D366; }
  .mobile-cta-bar svg { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }
  /* On mobile the bottom bar replaces the floating buttons */
  .wa-float, .call-float { display: none !important; }
}
@media (min-width: 769px) {
  .wa-float { width: 64px; height: 64px; bottom: 1.5rem; right: 1.5rem; }
  .wa-float svg { width: 34px; height: 34px; }
}
@media (max-width: 768px) {
  /* Bottom-right thumb-zone friendly. No label on mobile. */
  .wa-float { bottom: 1rem; right: 1rem; }
  .wa-float .wa-label { display: none; }
}
@media print {
  .wa-float { display: none; }
}

/* ============================================================
   Cards — post grid
   ============================================================ */

.section { padding: var(--space-8) 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.section-head h2 { margin: 0; }
.section-head .more {
  font-size: 0.875rem;
  color: var(--c-gold);
  text-decoration: none;
}
.section-head .more:hover { color: var(--c-forest); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.post-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 53, 38, 0.08);
}
.post-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--c-cream-dark);
  object-fit: cover;
}
.post-card-body { padding: var(--space-4) var(--space-5) var(--space-5); flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-2);
}
.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-forest);
  margin: 0 0 var(--space-3);
  line-height: 1.3;
}
.post-card-excerpt {
  font-size: 0.9375rem;
  color: var(--c-ink-soft);
  margin: 0 0 var(--space-4);
  flex: 1;
}
.post-card-meta {
  font-size: 0.8125rem;
  color: var(--c-ink-muted);
  display: flex;
  gap: var(--space-3);
}

/* Category landing — header band */
.cat-header {
  background: var(--c-cream);
  padding: var(--space-8) 0 var(--space-7);
  border-bottom: 1px solid var(--c-line);
  text-align: center;
}
.cat-header h1 { margin: 0 0 var(--space-3); }
.cat-header p { color: var(--c-ink-soft); max-width: 36rem; margin: 0 auto; }
.cat-meta { color: var(--c-ink-muted); font-size: 0.875rem; margin-top: var(--space-3); }

/* ============================================================
   Article / post page
   ============================================================ */

.post-header {
  background: var(--c-cream);
  padding: var(--space-8) 0 var(--space-7);
  border-bottom: 1px solid var(--c-line);
}
.post-header-inner { max-width: var(--max-w-prose); margin: 0 auto; padding: 0 var(--space-5); }
.post-breadcrumbs {
  font-size: 0.8125rem;
  color: var(--c-ink-muted);
  margin-bottom: var(--space-4);
}
.post-breadcrumbs a { color: var(--c-ink-soft); text-decoration: none; }
.post-breadcrumbs a:hover { color: var(--c-forest); }
.post-breadcrumbs .sep { color: var(--c-line); margin: 0 var(--space-2); }
.post-title { margin: 0 0 var(--space-3); }
.post-meta {
  font-size: 0.875rem;
  color: var(--c-ink-muted);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.post-meta .dot { color: var(--c-line); }

.post-featured {
  margin: var(--space-7) auto 0;
  max-width: var(--max-w);
  padding: 0 var(--space-5);
}
.post-featured img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
}

.post-body {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
}
.post-body p { font-size: 1.0625rem; line-height: 1.75; }
.post-body img {
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  width: 100%;
}
.post-figure {
  margin: var(--space-6) 0;
}
.post-figure img {
  margin: 0;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}
.post-figure a {
  display: block;
}
.post-body h2 { border-top: 1px solid var(--c-line-soft); padding-top: var(--space-6); }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: 0.9375rem;
}
.post-body table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--c-ink-soft);
  padding: 0 0 var(--space-2) 0;
  letter-spacing: 0.01em;
}
.post-body th, .post-body td {
  border: 1px solid var(--c-line);
  padding: var(--space-3) var(--space-4);
  text-align: left;
}
.post-body th {
  background: var(--c-cream);
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--c-forest);
}
.post-body tr:nth-child(even) td { background: var(--c-cream); }

/* Inline CTA panel inside posts */
.post-cta {
  background: var(--c-forest);
  color: var(--c-cream);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  margin: var(--space-7) 0;
  text-align: center;
}
.post-cta h3 { color: var(--c-cream); margin: 0 0 var(--space-3); }
.post-cta p { color: rgba(244, 241, 234, 0.85); margin: 0 0 var(--space-4); }
.post-cta .btn-tel { background: var(--c-cream); color: var(--c-forest); }
.post-cta .btn-tel:hover { background: var(--c-paper); }

/* TOC */
.toc {
  background: var(--c-cream);
  border-left: 3px solid var(--c-gold);
  padding: var(--space-4) var(--space-5);
  margin: 0 0 var(--space-6);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.toc-title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--c-forest);
  margin: 0 0 var(--space-3);
  font-size: 1rem;
}
.toc ol { margin: 0; padding-left: var(--space-5); }
.toc li { margin: var(--space-1) 0; font-size: 0.9375rem; }
.toc a { color: var(--c-ink-soft); text-decoration: none; }
.toc a:hover { color: var(--c-forest); text-decoration: underline; }

/* Related posts at end of article */
.related {
  background: var(--c-cream);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--c-line);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--c-forest-dark);
  color: var(--c-cream);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-8);
}
.footer-inner { max-width: var(--nws-max-w); margin: 0 auto; padding: 0 var(--space-5); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

.footer-brand { font-family: var(--font-serif); font-size: 1.375rem; margin-bottom: var(--space-3); }
.footer-desc { font-size: 0.9375rem; color: rgba(244, 241, 234, 0.7); max-width: 22rem; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin: 0 0 var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-1); }
.footer-col a {
  color: rgba(244, 241, 234, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;       /* WCAG AA tap target minimum */
}
.footer-col a:hover { color: var(--c-cream); }
.footer-bottom {
  border-top: 1px solid rgba(244, 241, 234, 0.15);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: rgba(244, 241, 234, 0.6);
}
.footer-bottom a { color: rgba(244, 241, 234, 0.8); margin-left: var(--space-4); text-decoration: none; }

/* ============================================================
   Utilities
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.divider-dot {
  display: inline-flex; align-items: center;
  color: var(--c-gold); font-family: var(--font-serif); font-size: 1.5rem;
  margin: 0 var(--space-2); vertical-align: middle;
}

/* ============================================================
   B1 — FAQ block on flagship posts
   ============================================================ */
.post-faq {
  margin: var(--space-8) 0 var(--space-6);
  padding: var(--space-6) 0;
  border-top: 2px solid var(--c-line);
}
.post-faq > h2 {
  border-top: none;
  padding-top: 0;
  font-size: 1.625rem;
  margin-bottom: var(--space-5);
  color: var(--c-forest);
}
.post-faq .faq-q {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  color: var(--c-ink);
  font-family: var(--font-serif);
  border-top: none;
  padding-top: 0;
}
.post-faq .faq-q + p {
  color: var(--c-ink-soft);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   C1 — Comparison table on flagship posts (top-of-article)
   ============================================================ */
.post-compare {
  margin: var(--space-6) 0 var(--space-7);
  /* Mobile: enable horizontal scroll so 4-column table never breaks layout */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post-compare table {
  width: 100%;
  min-width: 640px;  /* forces horizontal scroll on narrow mobile rather than crushing cells */
  border-collapse: collapse;
  margin: 0;
  font-size: 0.875rem;
  background: var(--c-paper);
}
.post-compare caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--c-ink-soft);
  padding: 0 0 var(--space-3) 0;
}
.post-compare th, .post-compare td {
  border: 1px solid var(--c-line);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}
.post-compare thead th {
  background: var(--c-forest);
  color: var(--c-cream);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 0.9375rem;
  text-align: center;
}
.post-compare thead th a {
  color: var(--c-cream);
  text-decoration: underline;
  text-decoration-color: rgba(244, 241, 234, 0.4);
  text-underline-offset: 3px;
}
.post-compare thead th a:hover {
  text-decoration-color: rgba(244, 241, 234, 0.9);
}
.post-compare tbody th {
  background: var(--c-cream);
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--c-forest);
  width: 1%;
  white-space: nowrap;
}
.post-compare tbody tr:nth-child(even) td { background: var(--c-cream); }

@media (max-width: 768px) {
  .post-compare table { min-width: 520px; font-size: 0.8125rem; }
  .post-compare th, .post-compare td { padding: var(--space-2) var(--space-3); }
}

/* ============================================================
   G1 — byline link on post meta line
   ============================================================ */
.post-byline {
  color: var(--c-forest);
  text-decoration: none;
  border-bottom: 1px dotted var(--c-line);
  transition: border-color 0.2s, color 0.2s;
}
.post-byline:hover {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
}

/* ============================================================
   G2 — Trust & standards page stats block
   ============================================================ */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: 6px;
}
.trust-stat {
  text-align: center;
  padding: var(--space-3);
}
.trust-stat-n {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--c-forest);
  line-height: 1.1;
  margin-bottom: var(--space-1);
}
.trust-stat-label {
  font-size: 0.875rem;
  color: var(--c-ink-soft);
  line-height: 1.3;
}
@media (max-width: 640px) {
  .trust-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--space-3);
  }
  .trust-stat-n { font-size: 2rem; }
  .trust-stat-label { font-size: 0.8125rem; }
}

/* ============================================================
   NEWSSTAND DESIGN SYSTEM (v10)
   Card-based modular editorial — Apple News / The Browser
   Applied to homepage + post template
   ============================================================ */

:root {
  --nws-max-w: 80rem;          /* 1280px — wider than current 1152 */
  --nws-card-radius: 12px;
  --nws-card-radius-sm: 8px;
  --nws-card-shadow: 0 1px 3px rgba(20, 25, 18, 0.04), 0 4px 16px rgba(20, 25, 18, 0.04);
  --nws-card-shadow-hover: 0 2px 6px rgba(20, 25, 18, 0.06), 0 12px 32px rgba(20, 25, 18, 0.08);
  --nws-card-border: 1px solid #eae5d6;
  --nws-bg: #f5f1e6;
  --nws-bg-soft: #faf7ee;
}

/* override container to wider on newsstand pages */
.nws-container {
  max-width: var(--nws-max-w);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ---------- masthead override for clean editorial header ---------- */
body.nws-page { background: var(--nws-bg); }

body.nws-page .site-header,
body.nws-post .site-header {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line-soft);
}
body.nws-page .header-inner,
body.nws-post .header-inner {
  max-width: var(--nws-max-w);
  padding: var(--space-4) var(--space-5);
}
/* Logo mark — new icon (June 2026) */
.brand-mark {
  display: block !important;
  width: 36px; height: 36px;
  background: transparent;   /* override the old forest square */
  color: transparent;        /* hide the legacy text node */
  flex-shrink: 0;
}
img.brand-mark {
  object-fit: contain;
}
.brand-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  color: var(--c-forest);
}

/* ---------- generic card ---------- */
.nws-card {
  background: var(--c-paper);
  border-radius: var(--nws-card-radius);
  border: var(--nws-card-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
}
a.nws-card { display: flex; }
a.nws-card:hover { transform: translateY(-2px); box-shadow: var(--nws-card-shadow-hover); }

/* ---------- section heading ---------- */
.nws-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-3);
}
.nws-section { padding: var(--space-7) 0; }
.nws-section-head {
  margin-bottom: var(--space-5);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.nws-section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--c-forest);
  margin: 0;
}
.nws-section-head .more {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--c-ink-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nws-section-head .more:hover { color: var(--c-forest); }

/* ============================================================
   HOMEPAGE LAYOUT — featured hero + city stack + city grid
   ============================================================ */

/* row 1: featured hero (left) + latest by city (right) */
.nws-lead-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
@media (max-width: 900px) {
  .nws-lead-row { grid-template-columns: minmax(0, 1fr); }
}

/* main hero card */
.nws-hero {
  position: relative;
  min-height: 460px;
  border-radius: var(--nws-card-radius);
  overflow: hidden;
  background: var(--c-forest);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: #fff;
}
@media (max-width: 600px) {
  .nws-hero { min-height: 360px; border-radius: var(--nws-card-radius-sm); }
  .nws-hero-body { padding: var(--space-5) var(--space-4); }
}
.nws-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 75%;  /* Crop to lower portion — for portrait marketing flyers
                                    this skips title overlap and shows the architectural rendering */
}
.nws-hero-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(20,25,18,0.55) 0%,
    rgba(20,25,18,0.25) 30%,
    rgba(20,25,18,0.55) 65%,
    rgba(20,25,18,0.92) 100%);
}
.nws-hero-body {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
}
.nws-hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: var(--space-3);
  display: block;
}
.nws-hero h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  color: #fff;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.nws-hero-meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-3);
}
.nws-hero-meta .dot { padding: 0 .5rem; opacity: .6; }
.nws-hero-excerpt {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin: 0 0 var(--space-3);
  max-width: 36rem;
}
.nws-hero-cta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  font-weight: 600;
}
a.nws-hero { transition: transform .25s ease; }
a.nws-hero:hover { transform: translateY(-2px); }

/* latest-by-city stack on right */
.nws-side-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.nws-side-card {
  background: var(--c-paper);
  border-radius: var(--nws-card-radius);
  border: var(--nws-card-border);
  padding: var(--space-5);
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.nws-side-card:hover { transform: translateY(-2px); box-shadow: var(--nws-card-shadow); }
.nws-side-card-cat {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-2);
}
.nws-side-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-forest);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
}
.nws-side-card-desc {
  font-size: 0.875rem;
  color: var(--c-ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---------- city grid (5 cards in a row) ---------- */
.nws-city-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 1000px) { .nws-city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .nws-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.nws-city-card {
  background: var(--c-paper);
  border-radius: var(--nws-card-radius);
  border: var(--nws-card-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.nws-city-card:hover { transform: translateY(-3px); box-shadow: var(--nws-card-shadow-hover); }
.nws-city-card-top {
  background: var(--c-forest);
  color: #fff;
  padding: var(--space-6) var(--space-4);
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* city color variations for visual distinction */
.nws-city-card[data-c="lahore"]     .nws-city-card-top { background: #2a5a44; }
.nws-city-card[data-c="islamabad"]  .nws-city-card-top { background: #3a6a54; }
.nws-city-card[data-c="karachi"]    .nws-city-card-top { background: #4a7a64; }
.nws-city-card[data-c="rawalpindi"] .nws-city-card-top { background: #5a8a74; }
.nws-city-card[data-c="faisalabad"] .nws-city-card-top { background: #6a8a78; }
.nws-city-card[data-c="multan"]     .nws-city-card-top { background: #4a6555; }
.nws-city-card[data-c="murree"]     .nws-city-card-top { background: #355543; }
.nws-city-card[data-c="sahiwal"]    .nws-city-card-top { background: #5a7060; }
.nws-city-card[data-c="gujranwala"] .nws-city-card-top { background: #6a7a70; }
.nws-city-card[data-c="sheikhupura"] .nws-city-card-top { background: #4a5a4e; }
.nws-city-card[data-c="jhelum"]     .nws-city-card-top { background: #5a6a5e; }
.nws-city-card[data-c="nowshera"]   .nws-city-card-top { background: #5a6a5e; }
.nws-city-card[data-c="dubai-properties"] .nws-city-card-top { background: #7a6a4a; }
.nws-city-card[data-c="news"]       .nws-city-card-top { background: #4a4a4a; }

.nws-city-card-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
  color: #fff;
}
.nws-city-card-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  text-align: center;
}
.nws-city-card-count {
  font-size: 0.85rem;
  color: var(--c-ink-soft);
  margin: 0 0 var(--space-1);
}
.nws-city-card-cta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--c-gold);
  letter-spacing: 0.05em;
}

/* "more cities" tile (dashed) */
.nws-city-card.is-more {
  background: var(--nws-bg-soft);
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5);
}
.nws-city-card.is-more .nws-more-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  line-height: 1;
}
.nws-city-card.is-more .nws-more-label {
  font-size: 0.8rem;
  color: var(--c-ink-soft);
  margin-top: var(--space-1);
}

/* ---------- featured projects (3-up cards with image + text below) ---------- */
.nws-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
@media (max-width: 900px) { .nws-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nws-project-grid { grid-template-columns: minmax(0, 1fr); } }

.nws-project-card {
  background: var(--c-paper);
  border-radius: var(--nws-card-radius);
  border: var(--nws-card-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.nws-project-card:hover { transform: translateY(-2px); box-shadow: var(--nws-card-shadow); }
.nws-project-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--c-cream);
  object-fit: cover;
}
.nws-project-body { padding: var(--space-4) var(--space-5) var(--space-5); }
.nws-project-cat {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-2);
}
.nws-project-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-forest);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
}
.nws-project-excerpt {
  font-size: 0.9rem;
  color: var(--c-ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---------- guides strip ---------- */
.nws-guides-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 900px) { .nws-guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .nws-guides-grid { grid-template-columns: minmax(0, 1fr); } }

.nws-guide-card {
  background: var(--c-paper);
  border: var(--nws-card-border);
  border-radius: var(--nws-card-radius-sm);
  padding: var(--space-5);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.nws-guide-card:hover { transform: translateY(-2px); box-shadow: var(--nws-card-shadow); }
.nws-guide-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--c-gold);
  margin-bottom: var(--space-2);
}
.nws-guide-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-forest);
  margin: 0 0 var(--space-2);
  line-height: 1.3;
}
.nws-guide-desc {
  font-size: 0.85rem;
  color: var(--c-ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   POST TEMPLATE — modular card layout
   ============================================================ */

body.nws-post { background: var(--nws-bg); }

/* wrap the entire post in container of cards */
.nws-post-wrap {
  max-width: var(--nws-max-w);
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-9);
}
@media (max-width: 600px) {
  /* Tighter padding on mobile for more reading room */
  .nws-post-wrap { padding: var(--space-4) var(--space-3) var(--space-7); }
}

/* main 2-col layout (article + right rail) */
.nws-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-6);
  align-items: start;
}
/* Critical: grid item containing article must allow its content to shrink.
   Without min-width: 0, child grids (like facts grid) force parent to expand. */
.nws-post-grid > div { min-width: 0; }

@media (max-width: 1024px) {
  /* minmax(0, 1fr) — NOT just 1fr — prevents child content from forcing
     the grid track wider than the viewport (root cause of mobile overflow) */
  .nws-post-grid { grid-template-columns: minmax(0, 1fr); }
  /* On tablet/mobile: rail (which IS the aside) shows ABOVE article body
     for fast navigation, no longer sticky */
  .nws-post-grid > .nws-rail {
    order: -1;
    position: static;   /* override the desktop sticky */
    top: auto;
  }
  /* Hide the CTA card on mobile (the WhatsApp float button serves that role) */
  .nws-post-grid > .nws-rail .nws-rail-card.is-cta { display: none; }
  /* TOC card on mobile: less visually heavy */
  .nws-post-grid > .nws-rail .nws-rail-card {
    background: var(--nws-bg-soft);
    border: 1px solid var(--c-line-soft);
    padding: var(--space-4);
  }
}
@media (max-width: 768px) {
  /* On phones (incl. larger ones / landscape), hide the rail entirely.
     The article is the focus, and the user can scroll naturally. */
  .nws-post-grid > .nws-rail { display: none !important; }
}

/* hero card (post header) */
.nws-post-hero {
  position: relative;
  border-radius: var(--nws-card-radius);
  overflow: hidden;
  margin-bottom: var(--space-5);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--c-forest);
  color: #fff;
}
@media (max-width: 600px) {
  .nws-post-hero { min-height: 260px; border-radius: var(--nws-card-radius-sm); }
  .nws-post-hero h1 { font-size: 1.5rem; }
  .nws-post-hero-body { padding: var(--space-5) var(--space-4); }
}
.nws-post-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 75%;  /* Show lower portion of portrait marketing flyers
                                    (architectural renderings) to avoid title overlap */
}
.nws-post-hero-img-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(20,25,18,0.5) 0%,
    rgba(20,25,18,0.2) 30%,
    rgba(20,25,18,0.55) 65%,
    rgba(20,25,18,0.95) 100%);
}
.nws-post-hero-body {
  position: relative; z-index: 2;
  padding: var(--space-6);
}
.nws-post-hero-crumbs {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: var(--space-3);
}
.nws-post-hero-crumbs a {
  color: var(--c-gold-light);
  text-decoration: none;
}
.nws-post-hero-crumbs a:hover { color: #fff; }
.nws-post-hero-crumbs .sep { opacity: .5; padding: 0 .35rem; }
.nws-post-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 500;
  margin: 0 0 var(--space-3);
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.nws-post-hero-meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}
.nws-post-hero-meta a { color: rgba(255,255,255,0.9); text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.4); }
.nws-post-hero-meta a:hover { color: #fff; }
.nws-post-hero-meta .dot { padding: 0 .5rem; opacity: .55; }

/* quick-facts card (snapshot replacement) */
.nws-facts-card {
  background: var(--c-paper);
  border-radius: var(--nws-card-radius);
  border: var(--nws-card-border);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
@media (max-width: 480px) {
  .nws-facts-card {
    padding: var(--space-4);
    border-radius: var(--nws-card-radius-sm);
  }
}
.nws-facts-head {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-3);
}
.nws-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
@media (max-width: 900px) {
  .nws-facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .nws-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .nws-facts-grid { grid-template-columns: 1fr; }
}
.nws-fact {
  padding: var(--space-3);
  background: var(--nws-bg-soft);
  border-radius: var(--nws-card-radius-sm);
}
.nws-fact-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: var(--space-1);
}
.nws-fact-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-forest);
  line-height: 1.2;
}

/* article body card */
.nws-body-card {
  background: var(--c-paper);
  border-radius: var(--nws-card-radius);
  border: var(--nws-card-border);
  padding: var(--space-7) var(--space-7) var(--space-6);
}
@media (max-width: 700px) {
  .nws-body-card { padding: var(--space-5) var(--space-5) var(--space-5); }
}
@media (max-width: 480px) {
  /* Tighter on very narrow screens — every pixel of reading width counts */
  .nws-body-card {
    padding: var(--space-4) var(--space-4) var(--space-4);
    border-radius: var(--nws-card-radius-sm);
  }
}
.nws-body-card > .post-body {
  max-width: none;       /* allow card to dictate width */
  margin: 0;
}

/* right rail */
.nws-rail {
  position: sticky;
  top: calc(var(--space-7) + 60px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.nws-rail-card {
  background: var(--c-paper);
  border-radius: var(--nws-card-radius);
  border: var(--nws-card-border);
  padding: var(--space-5);
}
.nws-rail-card-head {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-3);
}
.nws-rail-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--c-forest);
  margin: 0 0 var(--space-3);
}
.nws-rail-toc {
  list-style: none;
  margin: 0; padding: 0;
}
.nws-rail-toc li { margin-bottom: var(--space-2); }
.nws-rail-toc a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--c-ink-soft);
  text-decoration: none;
  line-height: 1.45;
  display: block;
  padding-left: var(--space-3);
  border-left: 2px solid transparent;
  transition: all .15s;
}
.nws-rail-toc a:hover {
  color: var(--c-forest);
  border-left-color: var(--c-gold);
}
.nws-rail-toc .toc-l3 {
  padding-left: var(--space-5);
  font-size: 0.8rem;
}

/* CTA rail card */
.nws-rail-card.is-cta {
  background: var(--c-forest);
  color: #fff;
  border: 0;
}
.nws-rail-card.is-cta .nws-rail-card-head { color: var(--c-gold-light); }
.nws-rail-card.is-cta h3 { color: #fff; }
.nws-rail-card.is-cta p { color: rgba(255,255,255,0.85); font-size: 0.875rem; }
.nws-rail-card.is-cta .btn {
  display: block;
  background: var(--c-gold-light);
  color: var(--c-forest-dark);
  font-weight: 600;
  padding: .65rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.03em;
  transition: background .2s;
}
.nws-rail-card.is-cta .btn:hover { background: #fff; }

/* footer cards row after body */
.nws-post-foot {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

/* inline body adjustments — give body more breathing room inside the card */
.nws-body-card .post-body h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  margin-top: var(--space-7);
}
.nws-body-card .post-body h3 {
  margin-top: var(--space-6);
}
.nws-body-card .post-table-wrap {
  margin: var(--space-5) 0;
  overflow-x: auto;     /* let wide tables scroll horizontally on mobile
                           instead of forcing the page wider */
  -webkit-overflow-scrolling: touch;
  border-radius: var(--nws-card-radius-sm);
}
.nws-body-card .post-table-wrap table {
  min-width: 100%;
  width: auto;  /* allow content to stretch if wider than viewport */
}
/* Constrain large inline body images — portrait marketing flyers shouldn't
   dominate the layout. Show them at a reasonable max-height and center. */
.nws-body-card .post-body figure.post-figure {
  margin: var(--space-6) auto;
  max-width: 580px;
  text-align: center;
}
.nws-body-card .post-body figure.post-figure img {
  max-height: 640px;
  width: auto;
  margin: 0 auto;
  border-radius: var(--nws-card-radius-sm);
  box-shadow: 0 4px 16px rgba(20, 25, 18, 0.08);
}
.nws-body-card .post-cta {
  background: var(--nws-bg-soft);
  border: var(--nws-card-border);
  border-radius: var(--nws-card-radius);
  padding: var(--space-5);
  margin: var(--space-6) 0;
  text-align: center;
}
.nws-body-card .post-cta h3 {
  font-family: var(--font-serif);
  color: var(--c-forest);
  font-size: 1.25rem;
  margin: 0 0 var(--space-2);
}
.nws-body-card .post-cta p {
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  margin: 0 0 var(--space-3);
}
.nws-body-card .post-cta .btn-wa {
  display: inline-block;
  background: #25d366;
  color: #fff;
  padding: .65rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nws-body-card .post-cta .btn-wa:hover { background: #1eb84d; }

/* ============================================================
   ACCESSIBILITY — keyboard focus indicators
   Visible only when navigating by keyboard (:focus-visible)
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Cards get a soft glow rather than a hard outline */
.nws-card:focus-visible,
.nws-hero:focus-visible,
.nws-side-card:focus-visible,
.nws-city-card:focus-visible,
.nws-project-card:focus-visible,
.nws-guide-card:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--c-gold), var(--nws-card-shadow-hover);
}

/* Skip-to-content link — invisible until focused via keyboard */
/* Skip-to-content link — visually hidden until focused (bulletproof pattern) */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  width: auto;
  height: auto;
  padding: var(--space-3) var(--space-4);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--c-forest);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
  z-index: 10000;
}

/* Reduce motion if user prefers it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   T5 · TEAL LEDGER — design system override layer
   Petrol teal + warm yellow · Archivo + Source Sans 3
   Hard 2px borders · offset shadows · ledger tables
   ============================================================ */
:root {
  --c-forest:        #0e5a64;
  --c-forest-dark:   #083c44;
  --c-forest-light:  #157a87;
  --c-cream:         #f4f7f7;
  --c-cream-dark:    #e8eef0;
  --c-gold:          #ffd43b;
  --c-gold-light:    #ffdf66;
  --c-ink:           #102a2e;
  --c-ink-soft:      #4e6468;
  --c-ink-muted:     #7e9296;
  --c-paper:         #ffffff;
  --c-line:          #c2d4d8;
  --c-line-soft:     #d6e2e4;
  --font-serif: "Archivo", "Arial Black", sans-serif;
  --font-sans:  "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
  --radius-lg: 6px;
  --nws-card-radius: 6px;
}

/* Display headers: bold Archivo, ledger uppercase for h1/h2 */
h1, h2 { text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; }
h3 { text-transform: none; letter-spacing: 0; font-weight: 600; }
.brand-text { text-transform: none; font-weight: 700; letter-spacing: -0.01em; }

/* Header: hard bottom rule */
.site-header { border-bottom: 2px solid var(--c-ink); }
.nav-primary a.is-active { border-bottom: 3px solid var(--c-gold); }
.nav-cta { background: var(--c-forest); border-radius: var(--radius); }
.nav-cta:hover { background: var(--c-forest-dark); }

/* Hero */
.nws-post-hero { border-bottom: 3px solid var(--c-ink); }
.nws-post-hero-img-gradient {
  background: linear-gradient(180deg, rgba(8,60,68,0.25) 0%, rgba(8,60,68,0.78) 70%, rgba(8,60,68,0.92) 100%);
}
.nws-post-hero-crumbs a { color: var(--c-gold); }

/* Cards: ledger borders + offset shadow */
.nws-facts-card, .nws-body-card, .nws-rail-card, .post-card {
  border: 2px solid var(--c-ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--c-ink);
}
.post-card { overflow: hidden; transition: transform .12s, box-shadow .12s; }
.post-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--c-ink); }
.nws-facts-head, .nws-rail-card-head { color: var(--c-forest); letter-spacing: 0.14em; }
.nws-fact-label { color: var(--c-ink-soft); }
.nws-fact-value { font-family: var(--font-serif); font-weight: 600; }

/* Rail CTA card: teal bg + yellow button */
.nws-rail-card.is-cta { background: var(--c-forest-dark); border-color: var(--c-ink); }
.nws-rail-card.is-cta .btn,
.post-cta .btn:not(.btn-wa) {
  background: var(--c-gold); color: #2e2600; font-weight: 700; border-radius: var(--radius);
}
.nws-rail-card.is-cta .btn:hover { background: var(--c-gold-light); }

/* Post CTA blocks */
.post-cta {
  background: var(--c-forest-dark);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--c-ink);
}
.post-cta h3 { color: #fff; }
.post-cta p { color: rgba(255,255,255,0.85); }
.post-cta .btn-wa { border-radius: var(--radius); font-weight: 700; }

/* Ledger tables */
.post-table-wrap table { border: 2px solid var(--c-ink); }
.post-table-wrap th {
  background: var(--c-forest); color: #eafcff;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem;
}
.post-table-wrap td { border-bottom: 1px solid var(--c-line-soft); }
.post-table-wrap tr:nth-child(even) td { background: #f0f6f7; }
.post-table-wrap caption { font-family: var(--font-serif); font-weight: 600; color: var(--c-forest-dark); }

/* Buttons */
.btn { border-radius: var(--radius); font-weight: 700; }

/* Figures */
.post-figure img { border: 2px solid var(--c-ink); border-radius: var(--radius); }

/* TOC rail */
.nws-rail-toc a:hover { color: var(--c-forest); }

/* Footer */
.site-footer { background: var(--c-forest-dark); border-top: 3px solid var(--c-gold); }

/* FABs */
.call-float { background: var(--c-forest); }
.call-float:hover { background: var(--c-forest-dark); }
.call-float:focus-visible { outline-color: var(--c-gold); }

/* City tiles (landing pages) */
.city-tile { border: 2px solid var(--c-ink) !important; box-shadow: 4px 4px 0 var(--c-ink); border-radius: var(--radius) !important; }
.city-tile:hover { transform: translate(-2px,-2px) !important; box-shadow: 6px 6px 0 var(--c-ink) !important; }
.city-tile-name { color: var(--c-forest) !important; }
