/* =============================================================================
   Neighborhood and building pages (single-area.html, single-building.html),
   below the first screen. Loaded by the page header's guide mode and the
   sections only these templates use. Every rule is scoped to .sv-guide (on
   <main>) or to the two body classes, so other templates don't change. The
   title block and first screen are in page-header.css (critical).

   Brand: white leads; Beige 2 only for the quick answer and the one band
   (Neighborhoods in … on hubs, More buildings on buildings); Beige 1 only for
   loading placeholders; red only for the quick answer's left border. Square,
   flat, no entrance animation.
   ========================================================================== */

/* Article column (up to 720px) and sidebar (280px), edges in line with the
   first screen. Below 1200px the sidebar sits above as before. */
.sv-guide .guide-body { padding-block: var(--space-8); }
.sv-guide .article-layout { max-width: calc(720px + 2 * var(--gutter)); }
@media (min-width: 1200px) {
  .sv-guide .article-layout { max-width: var(--container); grid-template-columns: minmax(0, 720px) 280px; justify-content: space-between; column-gap: var(--space-8); }
}
.sv-guide .article-main { color: var(--color-gray-800); }
.sv-guide .article-main > * + * { margin-block-start: var(--space-8); }
.sv-guide .article-main > .prose { max-width: none; }

/* No red apart from the quick answer's border: link hovers, the current
   "On this page" entry, and quotes in the article use the text colour. */
body.single-area a:hover,
body.single-building a:hover { text-decoration-color: currentColor; }
body.single-area .site-nav a::after,
body.single-building .site-nav a::after { background: currentColor; }
.sv-guide .article-toc__list a[aria-current="true"] { border-color: var(--color-black); }
.sv-guide blockquote,
.sv-guide .wp-block-quote { border-inline-start-color: var(--color-black); }

/* Square, flat. */
.sv-guide *, .sv-guide *::before, .sv-guide *::after { border-radius: 0; box-shadow: none; }
.sv-guide .article-contact__photo, .sv-guide .author-box__photo { border-radius: 50%; } /* The headshot stays round: a photo, not a brand element. */

/* Keyboard focus: 2px outline, 3px off; white on the dark band and footer. */
body.single-area :focus-visible,
body.single-building :focus-visible { outline: 2px solid var(--color-black); outline-offset: 3px; box-shadow: none; }
body.single-area .section--dark :focus-visible,
body.single-building .section--dark :focus-visible,
body.single-area .site-footer :focus-visible,
body.single-building .site-footer :focus-visible { outline-color: var(--color-white); }

@media (prefers-reduced-motion: reduce) {
  body.single-area *, body.single-building * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Sections in the article column ------------------------------------------------ */
.guide-section h2,
.sv-guide .article-main .link-list h2,
.sv-guide .article-main .faqs h2,
.sv-guide .article-main .sources h2 { margin: 0 0 var(--space-4); font-size: var(--fs-xl); line-height: 1.2; }
.guide-section__intro { margin: 0 0 var(--space-5); max-width: 62ch; }

/* Tables: their own sideways scroll on small screens. */
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: 2px; }
.guide-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 15px; }
.guide-table th, .guide-table td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--color-gray-200); text-align: start; vertical-align: top; background: none; }
.guide-table thead th { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--color-gray-700); border-bottom-color: var(--color-gray-300); }
.guide-table td { color: var(--color-black); }
.guide-table .is-num { text-align: end; padding-inline-end: 0; white-space: nowrap; }
.sales-table td:first-child a { font-weight: 500; }
.sales-table__specs { display: block; margin-block-start: 2px; font-size: 13px; color: var(--color-gray-700); }

/* Building facts: label and value, hairline rows. */
.guide-facts { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide-facts th, .guide-facts td { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-gray-200); text-align: start; vertical-align: top; background: none; }
.guide-facts tr:first-child th, .guide-facts tr:first-child td { border-top: 1px solid var(--color-gray-200); }
.guide-facts th { width: 38%; padding-inline-end: var(--space-5); font-weight: 400; color: var(--color-gray-700); }
.guide-facts td { color: var(--color-black); }

/* IDX widgets: Beige 1 blocks while loading, in the widget's two-column grid. */
.sv-guide .idx-widget .section__head { max-width: none; margin-block-end: var(--space-4); }
.sv-guide .idx-widget__note,
.sv-guide .idx-widget .section__head + .idx-widget__note { margin: 0 0 var(--space-5); max-width: 62ch; font-size: 15px; color: var(--color-gray-700); }
.idx-widget__placeholder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.idx-widget__placeholder[hidden] { display: none; }
.idx-widget__placeholder span { aspect-ratio: 4 / 3; background: var(--color-beige-1); }
@media (max-width: 599px) { .idx-widget__placeholder { grid-template-columns: minmax(0, 1fr); } .idx-widget__placeholder span:nth-child(n+3) { display: none; } }
.idx-widget__more { margin: var(--space-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }

/* Local Logic: a closed panel. */
.local-logic { border-top: 1px solid var(--color-gray-300); border-bottom: 1px solid var(--color-gray-300); }
.local-logic > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 3.5rem; cursor: pointer; list-style: none; font-family: var(--font-headline); font-size: 20px; color: var(--color-black); }
.local-logic > summary::-webkit-details-marker { display: none; }
.local-logic > summary::after { content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-inline-end: 0.25rem; border-block-end: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor; transform: rotate(45deg); }
.local-logic[open] > summary::after { transform: rotate(225deg); }
.local-logic .idx-widget__slot { padding-block-end: var(--space-5); }

/* Other neighborhoods: a three-column list, no arrows. */
.sv-guide .link-list ul { display: block; columns: 3 12rem; column-gap: var(--space-6); margin: 0; padding: 0; font-size: 15px; }
.sv-guide .link-list li { break-inside: avoid; border: 0; }
.sv-guide .link-list li a { display: inline-block; min-height: 0; padding-block: var(--space-1); }
.sv-guide .link-list li a::after { content: none; }

/* FAQ: questions as disclosure rows, the first open. */
.sv-guide .faq--details { border-top: 1px solid var(--color-gray-300); padding: 0; }
.sv-guide .faq--details:last-child { border-bottom: 1px solid var(--color-gray-300); }
.sv-guide .faq--details > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); cursor: pointer; list-style: none; font-family: var(--font-headline); font-size: 20px; line-height: 1.3; color: var(--color-black); margin: 0; }
.sv-guide .faq--details > summary::-webkit-details-marker { display: none; }
.sv-guide .faq--details > summary::after { content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-inline-end: 0.25rem; border-block-end: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor; transform: rotate(45deg); }
.sv-guide .faq--details[open] > summary::after { transform: rotate(225deg); }
.sv-guide .faq--details .faq__a { padding-block-end: var(--space-5); color: var(--color-gray-800); }

/* Sources: 14px. */
.sv-guide .sources__list { font-size: 14px; }

/* More buildings: text-only white cards on the band. */
.text-cards h2 { margin: 0 0 var(--space-6); font-size: var(--fs-xl); text-align: center; }
.text-cards__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.text-card { padding: var(--space-5) var(--space-6); background: var(--color-white); }
.text-card__title { margin: 0 0 var(--space-2); font-size: 22px; line-height: 1.25; }
.text-card__title a { text-decoration: none; }
.text-card__title a:hover { text-decoration: underline; }
.text-card__meta { margin: 0; font-size: 14px; color: var(--color-gray-700); }

/* Author box: white with a hairline here, since Beige 2 is kept for the quick
   answer and the page's one band. */
.sv-guide .author-box { background: var(--color-white); border: 1px solid var(--color-gray-300); }
