/* ==========================================================================
   Blog post (all 256 articles)
   ========================================================================== */

.post-hero { padding-bottom: clamp(44px, 6vw, 72px); }
.post-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); max-width: 22ch; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: .95rem; color: var(--slate-700); font-weight: 600; }
.blog-meta span { display: inline-flex; align-items: center; gap: 8px; }
.blog-meta i { color: var(--ember); }

.blog-container { max-width: 800px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter) 24px; }

/* --- Reading progress (script.js sets --read) ------------------------------ */
.read-progress {
  position: fixed; z-index: 130; left: 0; top: 0; width: 100%; height: 4px; pointer-events: none;
  background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--read, 0));
}

/* --- Article + aside layout ----------------------------------------------- */
.post-layout { position: relative; }
.post-aside { max-width: 800px; margin: 0 auto; padding: clamp(28px, 4vw, 40px) var(--gutter) 0; }
.post-layout .blog-container { padding-top: clamp(24px, 4vw, 40px); }
.post-layout:not(.has-toc) .post-aside { display: none; }

.toc { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px;
  cursor: pointer; list-style: none; font-weight: 800; font-stretch: 108%; color: var(--slate-900);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary i { font-size: .8rem; color: var(--slate-500); transition: transform .25s var(--ease-out); }
.toc[open] summary i { transform: rotate(180deg); }
.toc summary:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; border-radius: var(--r-md); }
.toc-list { counter-reset: toc; padding: 0 10px 12px; }
.toc-list li { counter-increment: toc; }
.toc-list a {
  position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 8px 10px 8px 8px; border-radius: 8px;
  color: var(--slate-700); text-decoration: none; font-size: .93rem; font-weight: 600; line-height: 1.35;
  transition: background-color .2s, color .2s;
}
.toc-list a::before { content: counter(toc, decimal-leading-zero); font-size: .78rem; font-weight: 800; color: var(--slate-500); padding-top: 2px; }
.toc-list a:hover { background: var(--mist); color: var(--slate-950); }
.toc-list a.is-current { background: var(--orange-soft); color: var(--slate-950); }
.toc-list a.is-current::before { color: var(--ember); }

.post-aside-card { display: none; }

@media (min-width: 1100px) {
  .post-layout {
    display: grid; grid-template-columns: minmax(0, 760px) 300px; justify-content: center; column-gap: 56px;
    max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  }
  .post-layout .blog-container { grid-column: 1; grid-row: 1; max-width: none; margin: 0; padding: clamp(36px, 5vw, 64px) 0 24px; }
  .post-aside, .post-layout:not(.has-toc) .post-aside {
    display: flex; flex-direction: column; gap: 16px; grid-column: 2; grid-row: 1; align-self: start;
    position: sticky; top: 104px; max-width: none; margin: 0; padding: clamp(36px, 5vw, 64px) 0 24px;
  }
  .toc nav { max-height: max(180px, calc(100vh - 520px)); overflow: auto; scrollbar-width: thin; }
  .post-aside-card {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
    padding: 24px; border-radius: var(--r-lg); background: var(--slate-900); color: var(--slate-300);
  }
  .post-aside-card::after {
    content: ""; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; background: var(--orange);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
  }
  .pac-title { padding-right: 40px; font-weight: 850; font-stretch: 112%; font-size: 1.25rem; line-height: 1.2; color: var(--white); }
  .pac-status { font-size: .8rem; font-weight: 700; color: var(--slate-300); }
  .pac-body { font-size: .92rem; }
  .post-aside-card .btn { margin-top: 6px; }
  .pac-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 6px; font-weight: 800; font-stretch: 112%; color: var(--white); text-decoration: none; }
  .pac-phone i { color: var(--orange); }
  .pac-phone:hover { color: var(--orange); }
  .toc summary { padding: 16px 18px 10px; }
}

/* --- Article typography --------------------------------------------------- */
.post-body { font-size: 1.1rem; line-height: 1.78; color: var(--slate-800); }
.post-body > * + * { margin-top: 1.1em; }
.post-body p { max-width: 70ch; }
.post-body strong { color: var(--slate-900); }
.post-body a { color: var(--ember); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; }
.post-body a:hover { color: var(--slate-900); }
.post-body h2 {
  position: relative; margin-top: 2.1em; padding-left: 22px;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem); line-height: 1.18;
}
.post-body h2::before {
  /* small fin marker */
  content: ""; position: absolute; left: 0; top: .2em; width: 10px; height: .95em;
  background: var(--orange); clip-path: polygon(0 100%, 55% 0, 100% 100%);
}
.post-body h3 { margin-top: 1.7em; font-size: 1.22rem; }
.post-body h4 { font-size: 1.05rem; font-stretch: 108%; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body ul { list-style: none; padding-left: 0; }
.post-body ul > li { position: relative; padding-left: 1.5em; }
.post-body ul > li::before { content: ""; position: absolute; left: .2em; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.post-body ol { list-style: decimal; }
.post-body ol > li::marker { color: var(--ember); font-weight: 800; }
.post-body li + li { margin-top: .5em; }
.post-body img, .featured-image {
  display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--r-md);
  background: var(--slate-100);
}
.post-body > .featured-image:first-child {
  aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 2em;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 92% 100%, 0 100%);
}
.post-body > .featured-image + .featured-image { display: none; } /* duplicate header image in a few exports */
.post-body blockquote { border-left: 4px solid var(--orange); padding: .4em 0 .4em 1.2em; font-size: 1.15rem; color: var(--slate-900); }

/* --- Local guide panel (place-specific facts) ----------------------------- */
.post-body section.local-guide {
  margin: 3em 0 2em; padding: clamp(24px, 3vw, 36px);
  background: var(--mist); border-radius: var(--r-lg); border-top: 6px solid var(--slate-900);
  position: relative; font-size: 1.02rem;
}
.post-body section.local-guide::before {
  content: "\f3c5"; font-family: "Font Awesome 5 Free"; font-weight: 900;
  position: absolute; top: -22px; right: 26px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: var(--slate-950); font-size: 1.05rem;
  box-shadow: 0 0 0 5px var(--white);
}
.post-body section.local-guide h2 { margin-top: 0; padding-left: 0; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); padding-right: 40px; }
.post-body section.local-guide h2::before { display: none; }
.post-body section.local-guide h3 { font-size: 1.08rem; margin-top: 1.6em; }
.post-body section.local-guide .lg-note { font-size: .88rem; color: var(--text-muted); }
.post-body section.local-guide .lg-note a { font-weight: 600; }
.post-body section.local-guide ul.lg-nearby { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .8em; }
.post-body section.local-guide ul.lg-nearby li { padding: 0; margin: 0; }
.post-body section.local-guide ul.lg-nearby li::before { display: none; }
.post-body section.local-guide ul.lg-nearby a {
  display: inline-flex; padding: 7px 14px; border-radius: 999px; background: var(--white);
  border: 1.5px solid var(--slate-200); color: var(--slate-900); text-decoration: none; font-size: .9rem; font-weight: 650;
}
.post-body section.local-guide ul.lg-nearby a:hover { border-color: var(--orange); background: var(--orange); color: var(--slate-950); }
.post-body section.local-guide .lg-faq { display: grid; gap: 10px; margin-top: .8em; }
.post-body section.local-guide .lg-faq-item { background: var(--white); border-radius: var(--r-md); padding: 16px 18px; border: 1px solid var(--line); }
.post-body section.local-guide .lg-faq-item h4 { font-size: 1rem; }
.post-body section.local-guide .lg-faq-item p { margin-top: 6px; font-size: .97rem; }

/* --- Prev / next ---------------------------------------------------------- */
.blog-navigation { display: flex; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--slate-900); }
.nav-arrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--r-sm);
  border: 2px solid var(--slate-200); color: var(--slate-900); text-decoration: none; font-weight: 750; font-stretch: 106%;
  transition: border-color .2s, background-color .2s, color .2s;
}
.nav-arrow svg { width: 20px; height: 20px; }
.nav-arrow:hover { border-color: var(--slate-900); background: var(--slate-900); color: var(--white); }
.nav-arrow.next { margin-left: auto; }

/* --- Related -------------------------------------------------------------- */
.related-posts { max-width: var(--container); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 8px; }
.related-posts h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 22px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 26px;
  border-radius: var(--r-md); background: var(--mist); color: var(--slate-900); text-decoration: none;
  border: 1px solid transparent; transition: border-color .2s, transform .25s var(--ease-out), background-color .2s;
}
.related-card::after {
  content: ""; position: absolute; right: 18px; bottom: 18px; width: 12px; height: 12px;
  background: var(--orange); clip-path: polygon(0 100%, 55% 0, 100% 100%);
}
.related-card:hover { background: var(--white); border-color: var(--slate-900); transform: translateY(-3px); }
.related-date { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.related-title { font-weight: 750; font-stretch: 106%; line-height: 1.3; padding-right: 18px; }

/* --- CTA ---------------------------------------------------------------- */
.post-cta {
  position: relative; overflow: hidden;
  max-width: var(--container); margin: clamp(40px, 6vw, 72px) auto clamp(56px, 8vw, 96px);
  width: calc(100% - 2 * var(--gutter));
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 44px);
  background: var(--orange); color: var(--slate-950); border-radius: var(--r-lg);
}
.post-cta::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--slate-950) 0 12px, #fff 12px 24px);
}
.post-cta-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); color: var(--slate-950); }
.post-cta p { margin-top: 8px; font-size: 1.08rem; }
.post-cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.post-cta-phone { font-weight: 900; font-stretch: 122%; font-size: 1.45rem; color: var(--slate-950); text-decoration: none; }
.post-cta-phone:hover { color: var(--white); }

@media (max-width: 860px) {
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .blog-navigation { flex-direction: column; }
  .nav-arrow.next { margin-left: 0; }
  .post-body { font-size: 1.04rem; }
}
