/*
Theme Name: Dahlonega Townhouses
Theme URI: https://dahlonegatownhouses.com
Description: Near-monochrome market-report block theme for dahlonegatownhouses.com -- townhouse inventory, pricing and market conditions in Dahlonega and North Georgia.
Version: 1.1.3
Template: twentytwentyfour
Author: Gold Peach Realty (WDF Factory)
Tags: block-theme, full-site-editing, editorial, market-report, real-estate
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

:root {
  --tw-slate:    #1F2A33;
  --tw-slate-dp: #162027;
  --tw-steel:    #46606F;
  --tw-steel-lt: #6C8494;
  --tw-amber:    #D08A1E;
  --tw-amber-lt: #E5A63F;
  --tw-paper:    #F6F7F5;
  --tw-paper-dp: #E9ECE9;
  --tw-ink:      #101619;
  --tw-ink-soft: #3A464C;
  --tw-hair:     rgba(16,22,25,.14);
}

/* ---------- Base: flat paper, no grain. The texture here is the RULE, not noise ----------
   Deliberately unlike the sibling sites (golf = fractal grain, townhouse = linen weave). */
body { background-color: var(--tw-paper); }

h1, h2, h3, .tw-display {
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.022em;
  color: var(--tw-ink);
}
body, p, li, input, button, textarea, select {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

/* ---------- Scale contrast ---------- */
.entry-content > h1:first-child,
.tw-page-title {
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.04;
  font-weight: 600;
  max-width: 20ch;
  margin: 0 0 1.35rem;
  padding-bottom: .9rem;
  border-bottom: 2px solid var(--tw-ink);
}

/* ---------- Rhythm: numbered section rules, a market-report cadence ---------- */
.entry-content { counter-reset: tw-sec; }
.entry-content > h2 {
  counter-increment: tw-sec;
  margin-top: 3.6rem; margin-bottom: .8rem;
  font-size: clamp(1.45rem, 2.3vw, 2rem); font-weight: 600;
  padding-top: .9rem;
  border-top: 1px solid var(--tw-hair);
  display: flex; align-items: baseline; gap: .75rem;
}
.entry-content > h2::before {
  content: counter(tw-sec, decimal-leading-zero);
  font-family: 'Space Grotesk', monospace;
  font-size: .72em; font-weight: 500;
  color: var(--tw-amber);
  letter-spacing: .06em;
  flex: none;
}
.entry-content > h3 { margin-top: 2rem; margin-bottom: .45rem; font-size: clamp(1.1rem,1.6vw,1.35rem); font-weight: 600; color: var(--tw-steel); }
.entry-content > p  { margin-bottom: 1.05rem; max-width: 70ch; margin-left: 0; margin-right: auto; color: var(--tw-ink-soft); }
.entry-content > ul, .entry-content > ol { max-width: 68ch; margin-left: 0; margin-right: auto; margin-bottom: 1.35rem; padding-left: 1.3rem; }
.entry-content li { margin-bottom: .4rem; color: var(--tw-ink-soft); }
.entry-content a { color: var(--tw-steel); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:hover { color: var(--tw-amber); text-decoration-thickness: 2px; }

.entry-content > p.gpr-tldr {
  background: #fff;
  border: 1px solid var(--tw-hair);
  border-left: 4px solid var(--tw-amber);
  padding: 1.05rem 1.25rem; margin: 0 0 2.25rem;
  font-size: 1.06rem; line-height: 1.6; color: var(--tw-ink);
}
.entry-content > p.gpr-tldr strong { color: var(--tw-steel); }

/* ---------- Header: a DARK command bar (inverted against the sibling cream masthead) ---------- */
.tw-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--tw-slate);
  border-bottom: 2px solid var(--tw-amber);
}
.tw-header .wp-block-site-title a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 1.18rem; color: var(--tw-paper);
  text-decoration: none; letter-spacing: -0.01em;
}
.tw-header .wp-block-site-title a:hover { color: var(--tw-amber-lt); }
/* The label SPAN carries its own colour from core/theme.json, so colouring only
   the anchor left it at ink-soft #3A464C on slate #1F2A33 = 1.5:1 (measured
   2026-08-07). The span must be targeted explicitly; #C3CDD4 measures 9.2:1. */
.tw-header .wp-block-navigation a,
.tw-header .wp-block-navigation a .wp-block-navigation-item__label,
.tw-header .wp-block-navigation .wp-block-navigation-item__label {
  font-size: .86rem; font-weight: 500; color: #C3CDD4; text-decoration: none;
  letter-spacing: .02em; text-transform: uppercase;
  transition: color .18s ease, border-color .18s ease;
}
.tw-header .wp-block-navigation a { padding: .3rem 0; border-bottom: 2px solid transparent; }
.tw-header .wp-block-navigation a:hover,
.tw-header .wp-block-navigation a:hover .wp-block-navigation-item__label { color: #fff; }
.tw-header .wp-block-navigation a:hover { border-bottom-color: var(--tw-amber); }
.tw-header .wp-block-navigation__responsive-container-open svg { fill: var(--tw-paper); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--tw-amber); outline-offset: 3px;
}

/* ---------- Masthead: a report header block, ruled and left-weighted ---------- */
.tw-masthead {
  background: var(--tw-slate-dp);
  color: var(--tw-paper);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.tw-masthead__inner { max-width: 1180px; margin: 0 auto; }
.tw-masthead__meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  font-family: 'Space Grotesk', monospace;
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tw-amber); margin-bottom: 1.2rem;
  padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.14);
}
/* steel-lt #6C8494 on slate-dp #162027 measured 4.22:1 at 11.5px -- below the
   4.5:1 minimum. #8098A8 measures 5.89:1 and stays subordinate to the amber. */
.tw-masthead__meta span { color: #8098A8; }
.tw-masthead__h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.03em;
  color: #fff; margin: 0 0 1rem; max-width: 17ch;
}
.tw-masthead__h1 strong { color: var(--tw-amber); font-weight: 600; }
.tw-masthead__tagline {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.28rem); line-height: 1.55;
  color: #BAC6CD; margin: 0; max-width: 52ch;
}
.tw-masthead__anchor { margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.tw-masthead__anchor a:first-child {
  display: inline-block; background: var(--tw-amber); color: var(--tw-ink);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .93rem;
  text-decoration: none; padding: .8rem 1.4rem; min-height: 48px; line-height: 1.5;
  transition: background .16s ease, transform .16s ease;
}
.tw-masthead__anchor a:first-child:hover { background: var(--tw-amber-lt); transform: translateY(-2px); }
.tw-masthead__tel {
  color: var(--tw-amber-lt); font-weight: 600; text-decoration: none;
  display: inline-block; padding: .8rem 0; min-height: 48px; line-height: 1.5;
}
.tw-masthead__tel:hover { text-decoration: underline; }

/* ---------- Canvas ---------- */
.tw-canvas {
  background: var(--tw-paper);
  padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.1rem, 4vw, 3rem) clamp(2.25rem, 4vw, 3.25rem);
}

/* ---------- GPR call-to-action: a ruled slate panel, not a gradient card ---------- */
.tw-cta {
  margin: 3rem 0 0;
  background: var(--tw-slate);
  border-top: 3px solid var(--tw-amber);
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.1rem, 3vw, 2rem);
}
.tw-cta p { color: #C3CDD4; margin: 0 0 1rem; max-width: 60ch; }
.tw-cta a.tw-btn {
  display: inline-block; background: var(--tw-amber); color: var(--tw-ink);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .93rem;
  text-decoration: none; padding: .78rem 1.35rem; min-height: 48px; line-height: 1.5;
  transition: background .16s ease, transform .16s ease;
}
.tw-cta a.tw-btn:hover { background: var(--tw-amber-lt); transform: translateY(-2px); }
.tw-cta a.tw-tel {
  color: var(--tw-amber-lt); font-weight: 600; text-decoration: none;
  margin-left: 1rem; display: inline-block; padding: .78rem 0; min-height: 48px; line-height: 1.5;
}
.tw-cta a.tw-tel:hover { text-decoration: underline; }

/* ---------- Contact panel: hairline ledger cells ---------- */
.tw-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 1.75rem 0; border: 1px solid var(--tw-hair); background: #fff; }
.tw-contact__card { padding: 1.15rem 1.25rem; border-left: 1px solid var(--tw-hair); }
.tw-contact__card:first-child { border-left: 0; }
.tw-contact__card h3 {
  margin: 0 0 .4rem; font-size: .7rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tw-amber); font-family: 'Space Grotesk', sans-serif;
}
.tw-contact__card p { margin: 0; font-size: 1rem; color: var(--tw-ink-soft); }
.tw-contact__card a { color: var(--tw-steel); font-weight: 600; text-decoration: none; }
.tw-contact__card a:hover { color: var(--tw-amber); text-decoration: underline; }

/* ---------- Blog cards: ledger rows, square, hairline ---------- */
.tw-card {
  background: #fff; border: 1px solid var(--tw-hair);
  border-left: 3px solid var(--tw-steel);
  padding: 1.3rem 1.45rem;
  transition: border-left-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tw-card:hover { border-left-color: var(--tw-amber); transform: translateX(3px); box-shadow: 0 10px 26px -22px rgba(16,22,25,.7); }
.tw-card .wp-block-post-title { margin: 0 0 .35rem; font-size: clamp(1.15rem,1.9vw,1.42rem); }
.tw-card .wp-block-post-title a { font-family: 'Space Grotesk', sans-serif; color: var(--tw-ink); text-decoration: none; }
.tw-card .wp-block-post-title a:hover { color: var(--tw-steel); }
.tw-card .wp-block-post-excerpt { color: var(--tw-ink-soft); font-size: .96rem; }

/* ---------- Search ---------- */
.wp-block-search__input { border: 1px solid var(--tw-hair); background: #fff; padding: .7rem .9rem; font-size: 1rem; color: var(--tw-ink); }
.wp-block-search__button { background: var(--tw-slate); color: var(--tw-paper); border: 0; padding: .7rem 1.2rem; font-weight: 600; min-height: 48px; transition: background .16s ease; }
.wp-block-search__button:hover { background: var(--tw-steel); }

/* ---------- FAQ markup carried over ---------- */
.dg-faq-item { background: #fff; border: 1px solid var(--tw-hair); border-left: 3px solid var(--tw-steel); padding: 1.05rem 1.2rem; margin-bottom: .8rem; }
.dg-faq-item strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.04rem; color: var(--tw-ink); margin-bottom: .38rem; }

/* ---------- Footer (gpr-anchor mu-plugin splices the GPR blurb before </footer>) ---------- */
.tw-footer { background: var(--tw-ink); color: #A9B6BD; margin-top: 3.5rem; }
.tw-footer a { color: var(--tw-amber-lt); }
.tw-footer .wp-block-site-title a { font-family: 'Space Grotesk', sans-serif; color: var(--tw-paper); text-decoration: none; }
.tw-footer .wp-block-navigation a { color: #A9B6BD; text-decoration: none; }
.tw-footer .wp-block-navigation a:hover { color: var(--tw-amber-lt); text-decoration: underline; }
.tw-footer .gpr-anchor { color: #A9B6BD; border-top: 1px solid rgba(255,255,255,.14) !important; }
.tw-footer .gpr-anchor a { color: var(--tw-amber-lt); }

/* ---------- Accessibility ---------- */
.tw-skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--tw-amber); color: var(--tw-ink); padding: .7rem 1.1rem; text-decoration: none; font-weight: 600; }
.tw-skip:focus { left: .5rem; top: .5rem; }

@media (max-width: 781px) {
  .tw-contact__card { border-left: 0; border-top: 1px solid var(--tw-hair); }
  .tw-contact__card:first-child { border-top: 0; }
  .tw-cta a.tw-tel { margin-left: 0; display: block; }
  .entry-content > h2 { flex-direction: column; gap: .15rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
/* ---- Constrained-layout override -------------------------------------------
   WordPress emits `margin-left:auto !important; margin-right:auto !important`
   on every constrained-layout child, so any element narrower than contentSize
   gets centred -- which pushes the text column out of line with the full-width
   headings. Reassert left alignment; !important is required to beat it. */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content > .wp-block-search,
.entry-content > .wp-block-table,
.entry-content > .wp-block-image,
.entry-content > .wp-block-buttons,
.entry-content > .wp-block-quote,
.entry-content > .wp-block-pullquote,
.entry-content > .wp-block-details,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-preformatted {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* ============================================================================
   PHOTOGRAPHY (v1.1.0) -- full-bleed report cover plate
   The slate report header was type-only. Rather than repeat the sibling site's
   side-by-side panel, the image runs full width directly beneath the masthead
   as a cover plate, banded by an amber rule -- a document plate, not a hero.
   ========================================================================== */
.tw-plate {
  position: relative;
  border-top: 3px solid var(--tw-amber);
  border-bottom: 1px solid var(--tw-hair);
  background: var(--tw-slate-dp);
  line-height: 0;                       /* kill the inline-image descender gap */
}
.tw-plate img {
  display: block;
  width: 100%;
  height: clamp(200px, 26vw, 360px);
  object-fit: cover;
  object-position: center 60%;
}
/* the legend strip -- reads as a plate caption on a market report */
.tw-plate__legend {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  padding: .6rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(22,32,39,0) 0%, rgba(22,32,39,.86) 55%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem; font-weight: 500; line-height: 1.5;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tw-amber);
}
.tw-plate__legend span { color: #BAC6CD; }

@media (max-width: 640px) {
  .tw-plate__legend { font-size: .62rem; letter-spacing: .12em; }
}

/* ============================================================================
   CORE BLOCK VOCABULARY (v1.1.0)
   Previously only authored components were styled; editor blocks fell back to
   bare browser defaults. Language here is the ledger: square, hairline, ruled.
   ========================================================================== */

/* ---------- Table: a market-report data table ---------- */
.wp-block-table {
  margin: 2rem 0 2.4rem;
  overflow-x: auto;            /* required: a 3-col table blows out 320px */
  -webkit-overflow-scrolling: touch;
}
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  background: #fff;
  border: 1px solid var(--tw-hair);
}
.wp-block-table thead th {
  background: var(--tw-slate);
  color: var(--tw-paper);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  text-align: left;
  padding: .8rem 1rem;
  border: 0;
}
.wp-block-table tbody td {
  padding: .78rem 1rem;
  border-top: 1px solid var(--tw-hair);
  border-left: 1px solid var(--tw-hair);
  color: var(--tw-ink-soft);
  vertical-align: top;
  font-variant-numeric: tabular-nums;   /* figures align down the column */
}
.wp-block-table tbody td:first-child {
  border-left: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: var(--tw-ink);
}
.wp-block-table tbody tr:hover td { background: var(--tw-paper); }
/* the amber marker rides the left edge of the hovered row */
.wp-block-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 0 var(--tw-amber); }
.wp-block-table figcaption {
  margin-top: .55rem; font-size: .8rem; color: var(--tw-steel);
  font-family: 'Space Grotesk', sans-serif; letter-spacing: .04em;
}

/* ---------- Image / figure: square, hairline-framed, no soft shadow ---------- */
.wp-block-image { margin: 2rem 0; }
.wp-block-image img {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--tw-hair);
}
.wp-block-image figcaption {
  margin-top: .6rem;
  font-family: 'Space Grotesk', sans-serif; font-size: .8rem; line-height: 1.5;
  letter-spacing: .03em;
  color: var(--tw-steel);
  padding-top: .45rem; border-top: 1px solid var(--tw-hair);
}
.wp-block-image.alignfull, .wp-block-image.alignwide { margin-left: 0 !important; }

/* ---------- Buttons: square, amber, no radius ---------- */
.wp-block-buttons { margin: 1.85rem 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.wp-block-button__link {
  background: var(--tw-amber); color: var(--tw-ink);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .93rem;
  text-decoration: none; border-radius: 0;
  padding: .78rem 1.35rem; min-height: 48px; line-height: 1.5;
  display: inline-flex; align-items: center;
  transition: background .16s ease, transform .16s ease;
}
.wp-block-button__link:hover { background: var(--tw-amber-lt); transform: translateY(-2px); color: var(--tw-ink); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--tw-slate); border: 2px solid var(--tw-slate);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--tw-slate); color: var(--tw-paper); }

/* ---------- Quote / pullquote ---------- */
.wp-block-quote {
  border-left: 3px solid var(--tw-steel);
  background: #fff; border-top: 1px solid var(--tw-hair);
  border-right: 1px solid var(--tw-hair); border-bottom: 1px solid var(--tw-hair);
  margin: 2rem 0; padding: 1.1rem 1.3rem;
  font-size: 1.06rem; line-height: 1.55; color: var(--tw-ink);
}
.wp-block-quote cite {
  display: block; margin-top: .55rem;
  font-family: 'Space Grotesk', sans-serif; font-style: normal;
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tw-steel);
}
.wp-block-pullquote {
  border: 0; border-left: 4px solid var(--tw-amber);
  background: var(--tw-paper-dp); padding: 1.5rem 1.6rem; margin: 2.5rem 0; text-align: left;
}
.wp-block-pullquote blockquote { border: 0; background: none; margin: 0; padding: 0; }
.wp-block-pullquote p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; letter-spacing: -0.02em;
  color: var(--tw-ink); margin: 0; max-width: 34ch;
}
.wp-block-pullquote cite {
  display: block; margin-top: .65rem; font-family: 'Space Grotesk', sans-serif; font-style: normal;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tw-steel);
}

/* ---------- Separator: a measured amber tick ---------- */
.wp-block-separator {
  border: 0; height: 3px; width: 3.5rem;
  background: var(--tw-amber); margin: 2.6rem 0; opacity: 1;
}
.wp-block-separator.is-style-wide { width: 100%; height: 1px; background: var(--tw-hair); }

/* ---------- Columns ---------- */
.wp-block-columns { margin: 2rem 0; gap: 1.85rem; }
@media (max-width: 781px) { .wp-block-columns { gap: 1.2rem; } }

/* ---------- Details / accordion ---------- */
.wp-block-details {
  background: #fff; border: 1px solid var(--tw-hair); border-left: 3px solid var(--tw-steel);
  padding: .95rem 1.2rem; margin: .7rem 0;
}
.wp-block-details summary {
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.02rem; font-weight: 600;
  color: var(--tw-ink);
  list-style: none; position: relative; padding-right: 1.75rem;
  min-height: 32px; display: flex; align-items: center;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
  content: "+"; position: absolute; right: 0;
  font-size: 1.25rem; font-weight: 400; color: var(--tw-amber); line-height: 1;
}
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details[open] summary { margin-bottom: .5rem; }
.wp-block-details > *:not(summary) { color: var(--tw-ink-soft); }

/* ---------- Code / preformatted ---------- */
.wp-block-code, .wp-block-preformatted {
  background: var(--tw-paper-dp); border: 1px solid var(--tw-hair);
  padding: 1rem 1.15rem; margin: 1.6rem 0;
  font-size: .88rem; overflow-x: auto; color: var(--tw-ink);
}

/* ---------- Tap targets (measured 2026-08-07: both were under 44px) ---------- */
/* mobile nav toggle rendered at 24px tall */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  min-width: 48px; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
}
/* Fluent Forms submit rendered at 42px */
.ff-btn-submit {
  min-height: 48px;
  padding-top: .75rem; padding-bottom: .75rem;
}
