/* Final review batch 8: additive layout, readability, and print repairs. */
/* Inline sources must read as links in both light and dark sections. */
main :is(p, li) a:not([class]) {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

/* Keep nested nowrap text from inheriting related-card eyebrow styling. */
.related-links a > span {
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--clay);
  font-size: .75rem;
  font-weight: 700;
}
.related-links strong span {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

:focus-visible {
  outline: 3px solid #ad452b;
  outline-offset: 4px;
}
:is(.site-header, .hero, .things, .guide-header, .guide-hero, .guide-cta, .dark) :focus-visible {
  outline-color: var(--peach, #e09b7c);
}

.button { text-align: center; }
.textbar a {
  border: 1px solid rgba(251, 248, 241, .45);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.prose > .pull-quote { text-wrap: pretty; }
.town-shortlist-detail { text-wrap: pretty; }
.guide-grid .go { font-size: .75rem; }
.origins-layout + .origins-everywhere,
.origins-everywhere + .origins-everywhere { border-top: 0; }

main > .guide-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .35em;
}
main > .guide-byline > .byline-part { white-space: nowrap; }

.content-section.paper.batch5-alt-cream { background: var(--cream); }
.content-section.dark.batch7-alt-cream {
  background: #eee8dc;
  color: var(--ink);
}
.content-section.dark.batch7-alt-cream .content-heading > p,
.content-section.dark.batch7-alt-cream .fl-days p,
.content-section.dark.batch7-alt-cream .fl-town-links small { color: #48514b; }
.content-section.dark.batch7-alt-cream .fl-days article,
.content-section.dark.batch7-alt-cream .fl-town-links a { border-color: var(--line-dark); }
.content-section.dark.batch7-alt-cream .resource-kicker { color: var(--clay); }

@media (min-width: 861px) {
  .home-page .work-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .work-band .ph { aspect-ratio: 1 / 1; }
  .home-page .hero-bottom { align-items: flex-start; }

  .batch7-greenville-page .area-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  .batch7-greer-page .resource-list > article:last-child:nth-child(odd) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 3rem;
  }
  .batch7-greer-page .resource-list > article:last-child:nth-child(odd) .resource-kicker {
    grid-column: 1;
    grid-row: 1;
  }
  .batch7-greer-page .resource-list > article:last-child:nth-child(odd) h3 {
    grid-column: 1;
    grid-row: 2 / 4;
  }
  .batch7-greer-page .resource-list > article:last-child:nth-child(odd) p {
    grid-column: 2;
    grid-row: 1 / 3;
    margin-top: 0;
  }
  .batch7-greer-page .resource-list > article:last-child:nth-child(odd) .official-link {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
  }

  .veterans-guide #care .fl-days > article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: .75rem 3rem;
  }
  .veterans-guide #care .fl-days > article:last-child:nth-child(odd) :is(.resource-kicker, h3) {
    grid-column: 1;
  }
  .veterans-guide #care .fl-days > article:last-child:nth-child(odd) p {
    grid-column: 2;
    max-width: 70ch;
    margin: 0;
  }
}

@media (max-width: 860px) {
  .guide-nav {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .guide-hero .hero-image:not(.parcel-diagram) {
    width: 100%;
    min-width: 0;
    height: 32svh;
    min-height: 180px;
    max-height: 280px;
  }
  .parcel-diagram {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .parcel-diagram img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .parcel-diagram .parcel-caption {
    position: static;
    max-width: none;
    margin: 0;
    padding: .65rem var(--pad);
    background: var(--cream);
    color: var(--ink);
    font-size: .75rem;
    line-height: 1.4;
    letter-spacing: .03em;
    text-align: center;
    text-wrap: balance;
  }
  .guide-contact-proof:has(> picture) {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: .75rem 1rem;
    max-width: none;
  }
  .guide-contact-proof:has(> picture) picture {
    grid-column: 1;
    margin: 0;
  }
  .guide-contact-proof:has(> picture) .guide-contact-identity { grid-column: 2; }
  .guide-contact-proof:has(> picture) :is(blockquote, figcaption, .google-reviews) { grid-column: 1 / -1; }
  .origin-state-guide .eyebrow { text-wrap: balance; }
}

@media (max-width: 360px) {
  .guide-header .wordmark-tagline { display: none; }
}

@media print {
  :is(.hero, .guide-hero, .guide-cta, .things, .dark, .scene, .quote-slab, .ask)
  :is(p, a, span, small, strong, em, li, .eyebrow, .section-label, .kicker):not(.btn):not(.button) {
    color: #111 !important;
  }
  .btn,
  .button {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #111 !important;
  }
}

/* Batch 8: dark-card citations and utility-page keyboard bypass. */
.content-section.dark .official-link { color: var(--peach, #e09b7c); }
.skip-link { position:fixed; z-index:100; top:.75rem; left:.75rem; padding:.75rem 1rem; border-radius:999px; background:#fbf8f1; color:#111613; font-weight:700; transform:translateY(-180%); }
.skip-link:focus { transform:none; }
