.hwf-local-guide-page,
.hwf-guide-article-page {
  background: var(--paper);
}

.guide-hero {
  display: grid;
  min-height: 700px;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 7rem 5vw;
}

.guide-hero h1,
.field-article-header h1 {
  max-width: 850px;
  margin: 0.65rem 0 1.4rem;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.030em;
}

.guide-hero h1 span,
.field-article-header h1 span {
  color: var(--coral-dark);
}

.guide-hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--body);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.75;
}

.guide-map-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.8) 0 4px, transparent 5px),
    linear-gradient(135deg, transparent 0 48%, rgba(40, 52, 48, 0.07) 49% 51%, transparent 52%),
    #dfeee5;
  background-size: 64px 64px, 100% 100%, auto;
  box-shadow: 12px 12px 0 var(--lavender);
}

.guide-map-card::before,
.guide-map-card::after {
  position: absolute;
  width: 260px;
  height: 180px;
  border: 3px solid rgba(76, 116, 105, 0.55);
  border-radius: 48% 52% 58% 42%;
  content: "";
}

.guide-map-card::before {
  top: -55px;
  right: -50px;
  transform: rotate(12deg);
}

.guide-map-card::after {
  bottom: -45px;
  left: -70px;
  transform: rotate(-18deg);
}

.guide-map-card > p {
  position: absolute;
  right: 1.5rem;
  bottom: 1.4rem;
  z-index: 3;
  margin: 0;
  border: 2px solid var(--ink);
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.45;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.map-label {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border: 2px solid var(--ink);
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 rgba(211, 123, 101, 0.7);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.map-label span {
  color: var(--coral-dark);
}

.map-label-philly { right: 9%; bottom: 27%; }
.map-label-montco { top: 38%; left: 9%; }
.map-label-bucks { top: 13%; right: 12%; }
.map-label-delco { bottom: 15%; left: 8%; }

.map-route {
  position: absolute;
  z-index: 2;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--purple-dark) 0 10px, transparent 10px 18px);
  transform-origin: left center;
}

.route-one { top: 45%; left: 28%; width: 48%; transform: rotate(-27deg); }
.route-two { top: 48%; left: 28%; width: 49%; transform: rotate(24deg); }
.route-three { top: 50%; left: 24%; width: 34%; transform: rotate(69deg); }

.map-house {
  position: absolute;
  top: 36%;
  left: 42%;
  z-index: 4;
  width: 132px;
  height: auto;
  filter: drop-shadow(7px 7px 0 var(--yellow));
}

.guide-lanes,
.guide-method,
.guide-cta {
  padding-block: 7rem;
}

.guide-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 4rem;
  align-items: end;
}

.guide-section-heading h2,
.guide-method h2,
.guide-cta h2,
.article-cta h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.020em;
}

.guide-section-heading > p,
.guide-cta > p:not(.eyebrow),
.article-cta > p:not(.eyebrow) {
  margin: 0;
  color: var(--body);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.guide-lane-grid,
.guide-story-grid,
.guide-planned-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.guide-lane {
  min-height: 340px;
  border: 2px solid var(--ink);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.guide-lane-move { background: #f6e6df; }
.guide-lane-place { background: #e5f1ea; }
.guide-lane-local { background: #eee8f2; }

.guide-lane-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--ink);
  color: var(--white);
  background: var(--night);
  box-shadow: 4px 4px 0 var(--yellow);
  font-size: 1.5rem;
}

.guide-lane h3 {
  margin: 0.6rem 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.2;
}

.guide-lane > p:last-child {
  color: var(--body);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  line-height: 1.7;
}

.guide-stories {
  border-block: 2px solid var(--ink);
  padding-block: 7rem;
  background: var(--paper-deep);
}

.guide-story-card,
.guide-planned-grid article {
  min-width: 0;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 7px 7px 0 rgba(121, 169, 155, 0.55);
}

.guide-story-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  text-decoration: none;
}

.guide-story-link > img,
.guide-story-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 2px solid var(--ink);
  object-fit: cover;
}

.guide-story-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e5f1ea, #eee8f2);
}

.guide-story-placeholder span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--coral);
  font-size: 1.6rem;
}

.guide-story-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem;
}

.guide-story-meta,
.guide-planned-grid small {
  color: var(--purple-text);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.guide-story-content strong {
  margin: 0.55rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.guide-story-content > span:not(.guide-story-meta) {
  color: var(--body);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
}

.guide-story-content em {
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--ink);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.guide-planned-grid article {
  display: grid;
  min-height: 220px;
  align-content: end;
  padding: 1.5rem;
}

.guide-planned-grid article:nth-child(2) { background: #e5f1ea; }
.guide-planned-grid article:nth-child(3) { background: #eee8f2; }

.guide-planned-grid article > span {
  margin-bottom: auto;
  color: var(--coral-dark);
  font-size: 0.75rem;
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.guide-planned-grid strong {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.guide-method {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.guide-method ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-method li {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 1.2rem;
  border-top: 2px solid var(--ink);
  padding: 1.3rem 0;
}

.guide-method li:last-child { border-bottom: 2px solid var(--ink); }
.guide-method li strong { font-size: 1rem; }
.guide-method li span { color: var(--body); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.guide-cta,
.article-cta {
  margin-block: 2rem 7rem;
  border: 2px solid var(--ink);
  padding: clamp(2rem, 5vw, 4.5rem);
  background: #f6e6df;
  box-shadow: 10px 10px 0 var(--lavender);
}

.guide-cta h2,
.article-cta h2 { max-width: 900px; }
.guide-cta > p:not(.eyebrow),
.article-cta > p:not(.eyebrow) { max-width: 720px; margin: 1.2rem 0 1.7rem; }

/* Reusable guide article */
.field-article-header {
  padding-block: 6rem 3rem;
}

.guide-breadcrumb {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
  color: var(--body);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.guide-breadcrumb a { text-underline-offset: 0.2em; }

.field-article-header h1 {
  max-width: 1050px;
  font-size: clamp(2.8rem, 6.2vw, 5.7rem);
}

.field-article-deck {
  max-width: 850px;
  color: var(--body);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1.7;
}

.field-article-meta {
  display: flex;
  gap: 0.6rem 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
  color: var(--body);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.field-article-image { margin-bottom: 4rem; }
.field-article-image img { display: block; width: 100%; max-height: 680px; border: 2px solid var(--ink); object-fit: cover; box-shadow: 10px 10px 0 var(--lavender); }

.field-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(280px, 340px);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  justify-content: space-between;
  padding-bottom: 7rem;
}

.field-article-content {
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.04rem;
  line-height: 1.85;
}

.field-article-content > *:first-child { margin-top: 0; }
.field-article-content h2,
.field-article-content h3 { font-family: Georgia, "Times New Roman", serif; color: var(--ink); letter-spacing: 0.000em; }
.field-article-content h2 { margin: 3.4rem 0 1rem; font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.15; }
.field-article-content h3 { margin: 2.4rem 0 0.8rem; font-size: 1.45rem; line-height: 1.25; }
.field-article-content a { color: var(--teal-dark); font-weight: 750; text-underline-offset: 0.18em; }
.field-article-content img { max-width: 100%; height: auto; border: 2px solid var(--ink); }
.field-article-content blockquote { margin: 2.5rem 0; border-left: 5px solid var(--coral); padding: 1rem 1.4rem; background: #f6e6df; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; line-height: 1.55; }
.field-article-content .wp-block-separator { margin-block: 3rem; border-color: rgba(40, 52, 48, 0.35); }

.field-author-card {
  position: sticky;
  top: 110px;
  border: 2px solid var(--ink);
  padding: 1.25rem;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--lavender);
}

.field-author-card img { display: block; width: 100%; aspect-ratio: 1; border: 2px solid var(--ink); object-fit: cover; object-position: left center; }
.field-author-card .eyebrow { margin-top: 1.25rem; }
.field-author-card h2 { margin: 0.55rem 0 0.7rem; font-size: 1.5rem; }
.field-author-card > p:not(.eyebrow) { color: var(--body); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.88rem; line-height: 1.65; }
.field-author-card .field-author-language { display: inline-flex; border: 1px solid #a9b0aa; padding: 0.25rem 0.45rem; color: var(--ink) !important; background: #e5f1ea; font-size: 0.64rem !important; font-weight: 900; text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important; }
.field-author-card > a { display: flex; justify-content: space-between; margin-top: 1rem; border-top: 2px dashed #c9c4b8; padding-top: 1rem; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; text-underline-offset: 0.2em; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.article-cta { padding-block: clamp(2rem, 5vw, 4.5rem); }

@media (max-width: 920px) {
  .guide-hero,
  .guide-method,
  .field-article-layout { grid-template-columns: 1fr; }
  .guide-map-card { min-height: 440px; }
  .guide-lane-grid,
  .guide-story-grid,
  .guide-planned-grid { grid-template-columns: 1fr; }
  .guide-lane { min-height: 0; }
  .field-author-card { position: static; max-width: 520px; }
}

@media (max-width: 760px) {
  .guide-hero { min-height: auto; padding-block: 4rem 5rem; }
  .guide-hero h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .guide-map-card { min-height: 390px; }
  .guide-section-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .guide-lanes,
  .guide-stories,
  .guide-method { padding-block: 5rem; }
  .guide-method li { grid-template-columns: 1fr; gap: 0.45rem; }
  .guide-cta,
  .article-cta { margin-bottom: 5rem; }
  .field-article-header { padding-block: 4rem 2.5rem; }
  .field-article-layout { padding-bottom: 5rem; }
}

@media (max-width: 520px) {
  .guide-map-card { min-height: 350px; box-shadow: 7px 7px 0 var(--lavender); }
  .map-label { font-size: 0.58rem; padding: 0.5rem; }
  .map-label-montco { left: 4%; }
  .map-label-bucks { right: 5%; }
  .map-label-delco { left: 3%; bottom: 18%; }
  .map-house { left: 39%; width: 108px; }
  .guide-map-card > p { right: 0.8rem; bottom: 0.8rem; max-width: 210px; font-size: 0.6rem; }
  .guide-lane,
  .guide-story-content,
  .guide-planned-grid article { padding: 1.2rem; }
  .field-article-content { font-size: 1rem; }
}

@media (min-width: 900px) {
  .guide-hero h1, .field-article-header h1 { font-size: clamp(2.8rem, 4.4vw, 4.5rem); line-height: 1.06; }
}
