/* =====================================================================
   GT Design v1  (2026-11-16)  black, white, GT gold. Calm phone first.
   Scope: only pages whose <html> carries class "gt-v1". The theme adds
   that class page by page, which is how rollout runs in small batches.
   Presentation only. No words, links, forms, SEO fields or flows change.
   ===================================================================== */
html.gt-v1 {
  --v1-ink: #0b0b0b;
  --v1-ink-2: #141414;
  --v1-paper: #f7f4ee;
  --v1-white: #ffffff;
  --v1-gold: #c9a646;
  --v1-gold-ink: #8a6d1f;          /* gold text on light paper, 4.6:1 */
  --v1-grey: #57534a;              /* body grey on paper, 7:1 */
  --v1-line: rgba(11, 11, 11, .10);
  --v1-line-dark: rgba(255, 255, 255, .12);
  --v1-radius: 14px;
  --v1-s1: 8px; --v1-s2: 16px; --v1-s3: 24px; --v1-s4: 40px; --v1-s5: 64px; --v1-s6: 96px;
  --v1-head-h: 60px;
  --v1-dock-h: 64px;
}

/* ---------- 1. Shell: header, dock, one floating thing at a time ---------- */
/* On every screen size: the value pop up waits until the cookie choice is made */
html.gt-v1 body:has(#gt-trk-notice:not([hidden])) #nudge { display: none !important; }
@media (max-width: 760px) {
  html.gt-v1 #head.head { padding-top: 6px; padding-bottom: 6px; min-height: var(--v1-head-h); }
  html.gt-v1 #head.head > a img { height: 40px; width: auto; }
  html.gt-v1 #head .menu-btn { height: 44px; }
  html.gt-v1 nav.dock { padding: 8px 12px; min-height: var(--v1-dock-h); gap: 8px; }
  html.gt-v1 nav.dock > a, html.gt-v1 nav.dock > button { height: 46px; min-height: 44px; font-size: 13px; letter-spacing: .08em; border-radius: 10px; }
  html.gt-v1 .gtv2.gtlp { padding-bottom: var(--v1-dock-h); }

  /* Cookie notice: one slim bar that sits just above the dock */
  html.gt-v1 #gt-trk-notice { flex-wrap: wrap !important; padding: 10px 14px !important; gap: 8px 10px !important; align-items: center !important; box-sizing: border-box; }
  html.gt-v1 #gt-trk-notice > :first-child { flex: 1 1 100% !important; font-size: 12.5px !important; line-height: 1.4 !important; }
  html.gt-v1 #gt-trk-notice button { flex: 1 1 0 !important; min-height: 44px; margin: 0 !important; }

  /* While the cookie notice is up, nothing else floats. */
  html.gt-v1 body:has(#gt-trk-notice:not([hidden])) #nudge,
  html.gt-v1 body:has(#gt-trk-notice:not([hidden])) #gt-alexa-chat { display: none !important; }
  /* The value pop up becomes a bottom sheet, never a box over the middle of the page */
  html.gt-v1 #nudge.show { top: auto !important; bottom: calc(var(--v1-dock-h) + 12px) !important; left: 12px !important; right: 12px !important; width: auto !important; max-height: 46vh; overflow: auto; border-radius: var(--v1-radius); }
  /* Alexa photo button: smaller and above the dock, never over the dock buttons */
  html.gt-v1 #gt-alexa-chat > button, html.gt-v1 #gt-alexa-chat > a { transform: scale(.82); transform-origin: bottom right; }
  html.gt-v1 #gt-alexa-chat { bottom: calc(var(--v1-dock-h) + 10px) !important; }
}

/* ---------- 2. Type: one clear voice, fewer giant headings ---------- */
html.gt-v1 main h2 { letter-spacing: -.01em; text-wrap: balance; }
html.gt-v1 main h1 { text-wrap: balance; }
html.gt-v1 main p, html.gt-v1 main li { text-wrap: pretty; }
@media (max-width: 760px) {
  html.gt-v1 main h1.display { font-size: clamp(32px, 8.6vw, 38px) !important; line-height: 1.08 !important; margin: 10px 0 12px !important; }
  html.gt-v1 main h2, html.gt-v1 main h2.display { font-size: clamp(25px, 6.6vw, 28px) !important; line-height: 1.15 !important; }
  html.gt-v1 main p.lead { font-size: 16px !important; line-height: 1.55 !important; }
  html.gt-v1 main .eyebrow { font-size: 12px; letter-spacing: .18em; }
}
@media (min-width: 761px) {
  html.gt-v1 main h2.display { font-size: clamp(34px, 3.2vw, 46px); }
  html.gt-v1 section.page-hero h1.display { font-size: clamp(44px, 4.2vw, 62px) !important; line-height: 1.05 !important; max-width: 17ch; }
  /* Cookie notice: a small card in the lower left corner, away from page buttons */
  html.gt-v1 #gt-trk-notice { left: auto !important; right: 24px !important; bottom: 24px !important; max-width: 400px !important; border-radius: var(--v1-radius) !important; flex-wrap: wrap !important; padding: 16px 18px !important; gap: 10px !important; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
  html.gt-v1 #gt-trk-notice > :first-child { flex: 1 1 100% !important; }
  html.gt-v1 .sidx-hotsheet .sidx-grid { column-gap: 20px !important; row-gap: 24px !important; }
  html.gt-v1 section.gt-paper:has(> article.to-page) { background: var(--v1-paper) !important; }
}

/* ---------- 3. Homepage ---------- */
@media (max-width: 760px) {
  /* First phone screen = video, headline, one line, the search box. The dock already offers Book a Call. */
  html.gt-v1 .hero .hero-in > .ctas { display: none !important; }
  html.gt-v1 section.hero { padding-top: calc(var(--v1-head-h) + 28px) !important; padding-bottom: 24px !important; min-height: 0 !important; }
  html.gt-v1 section.hero .finder { margin-top: 20px !important; }
  html.gt-v1 .marquee:not(.small) { padding: 12px 0 !important; }
  html.gt-v1 main > section, html.gt-v1 main > .faq, html.gt-v1 main > .alerts { padding-top: var(--v1-s4) !important; padding-bottom: var(--v1-s4) !important; }
  html.gt-v1 .sec-head { margin-bottom: var(--v1-s3) !important; }
  /* Counties: compact two column list instead of twelve tall photo cards */
  html.gt-v1 #countyGrid.counties { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  html.gt-v1 #countyGrid.counties > * { min-width: 0 !important; width: auto !important; min-height: 0 !important; height: auto !important; aspect-ratio: auto !important; }
  html.gt-v1 #countyGrid.counties > .county { padding: 16px 16px 14px !important; gap: 4px !important; }
  html.gt-v1 #countyGrid.counties > .county b { font-size: 22px !important; line-height: 1.15 !important; overflow-wrap: anywhere; }
  html.gt-v1 #countyGrid.counties > .county > span:not(.go) { display: none !important; }
  html.gt-v1 #countyGrid.counties > .county .go { font-size: 12px !important; margin-top: 6px !important; }
  html.gt-v1 #countyGrid.counties > .county.all { grid-column: 1 / -1; }
  html.gt-v1 #countyGrid.counties > .county.all > span:not(.go) { display: block !important; }
  html.gt-v1 #countyGrid.counties > .county .go { white-space: nowrap; }
  /* Repeated card padding trimmed */
  html.gt-v1 .book-cards > *, html.gt-v1 .paths > *, html.gt-v1 .steps4 > * { padding: 20px !important; }
  html.gt-v1 .paths, html.gt-v1 .book-cards, html.gt-v1 .steps4 { gap: 12px !important; }
}

/* ---------- 4. Town, county, sub town, neighborhood pages (.to-page family) ---------- */
html.gt-v1 section.page-hero .ctas { gap: 10px; }
/* Tablet: fixed two row button layout so the brand font loading cannot push the page down. */
@media (min-width: 761px) and (max-width: 1023px) {
  html.gt-v1 section.page-hero .ctas { display: grid !important; grid-template-columns: repeat(2, max-content); gap: 10px !important; }
  html.gt-v1 section.page-hero .ctas > .btn-gold { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  html.gt-v1 section.page-hero { padding-top: calc(var(--v1-head-h) + 24px) !important; padding-bottom: 28px !important; min-height: 0 !important; }
  html.gt-v1 section.page-hero .ctas { margin-top: 18px !important; }
  html.gt-v1 section.page-hero .ctas .btn-line { display: none !important; }   /* one main action in the hero */
  html.gt-v1 section.gt-paper:has(> article.to-page) { padding: 0 !important; }   /* town pages only; feature pages keep 20px sides */
  html.gt-v1 article.to-page { padding: 0 0 var(--v1-s4) !important; border-radius: 0 !important; box-shadow: none !important; }
  html.gt-v1 article.to-page > section { padding: 28px 20px !important; margin: 0 !important; border-top: 1px solid var(--v1-line); }
  html.gt-v1 article.to-page > section:first-child { border-top: 0; }
  html.gt-v1 article.to-page > section h2 { margin-top: 0 !important; margin-bottom: 12px !important; }
  html.gt-v1 article.to-page p { font-size: 17px !important; line-height: 1.6 !important; }
}
/* Homes first: the listings block moves to the top of the content */
html.gt-v1 article.to-page { display: flex; flex-direction: column; }
html.gt-v1 article.to-page > #home-options { order: -1; background: var(--v1-ink); color: var(--v1-white); }
html.gt-v1 article.to-page > #home-options h2 { color: var(--v1-white) !important; }
html.gt-v1 article.to-page > #home-options > p { color: rgba(255,255,255,.78) !important; }
html.gt-v1 article.to-page > #home-options > p a { color: var(--v1-gold) !important; }
@media (min-width: 761px) {
  html.gt-v1 article.to-page > #home-options { padding: var(--v1-s5) var(--v1-s4) !important; border-radius: var(--v1-radius); margin-bottom: var(--v1-s4) !important; }
  /* The short numbered guide sections read as a calm two column grid */
  html.gt-v1 article.to-page { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--v1-s4); }
  html.gt-v1 article.to-page > * { grid-column: 1 / -1; }
  html.gt-v1 article.to-page > section:is([id$="-02"],[id$="-03"],[id$="-04"],[id$="-05"],[id$="-06"],[id$="-07"],[id$="-08"],[id$="-09"],[id$="-10"],[id$="-11"],[id$="-12"],[id$="-13"],[id$="-14"],[id$="-15"],[id$="-16"],[id$="-17"],[id$="-18"],[id$="-19"],[id$="-20"],[id$="-21"],[id$="-22"],[id$="-23"],[id$="-24"]) { grid-column: auto; border-top: 1px solid var(--v1-line); padding: var(--v1-s3) 0 !important; }
  html.gt-v1 article.to-page > #home-options { grid-row: 1; }
}

/* ---------- 5. Listing cards (Showcase IDX), GT style ---------- */
html.gt-v1 .sidx-hotsheet .sidx-search-result-grid-item .sidx-content { border: 0 !important; border-radius: var(--v1-radius) var(--v1-radius) 0 0; overflow: hidden; }
html.gt-v1 .sidx-hotsheet .sidx-search-result-grid-item { border-radius: var(--v1-radius); overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.10); background: var(--v1-white); }
html.gt-v1 .sidx-hotsheet .sidx-thumbnail img { aspect-ratio: 4 / 3; height: auto !important; object-fit: cover; }
html.gt-v1 .sidx-hotsheet .sidx-price { font-family: "GT Display", Georgia, serif !important; font-size: 24px !important; color: var(--v1-ink) !important; }
html.gt-v1 .sidx-hotsheet .sidx-info-value, html.gt-v1 .sidx-hotsheet .sidx-info-title { font-size: 13px !important; color: #3a3833 !important; }
html.gt-v1 .sidx-hotsheet .sidx-mls-details, html.gt-v1 .sidx-hotsheet .sidx-mls-details * { font-size: 12px !important; color: #5f5a4e !important; letter-spacing: .06em; }
html.gt-v1 .sidx-hotsheet .sidx-listing-heading { font-size: 15px !important; color: #2b2a27 !important; line-height: 1.4 !important; }
html.gt-v1 .sidx-hotsheet .sidx-disclaimer { font-size: 12px !important; color: #5f5a4e !important; line-height: 1.4 !important; }
html.gt-v1 .sidx-hotsheet .sidx-ribbon { background: var(--v1-ink) !important; color: var(--v1-gold) !important; letter-spacing: .1em; font-size: 12px !important; }
html.gt-v1 .sidx-hotsheet .sidx-actions { background: var(--v1-white) !important; border-top: 1px solid var(--v1-line); justify-content: flex-end !important; gap: 6px; padding: 4px 8px !important; }
html.gt-v1 .sidx-hotsheet .sidx-actions > div { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
html.gt-v1 .sidx-hotsheet .sidx-actions i { color: var(--v1-ink) !important; font-size: 22px !important; }
/* Keep Save and Share. Hide react, comment and hide icons that nobody uses on a town page. */
html.gt-v1 .sidx-hotsheet .sidx-actions > div:has(.sidx-smile-o),
html.gt-v1 .sidx-hotsheet .sidx-actions > div:has(.sidx-comments),
html.gt-v1 .sidx-hotsheet .sidx-actions > div:has(.sidx-hide-action) { display: none !important; }
html.gt-v1 .sidx-hotsheet .sidx-gallery-controls i { color: #fff !important; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
/* Reserve room so the page does not jump when homes load */
html.gt-v1 #home-options .sidx-container:empty, html.gt-v1 #home-options .sidx-container { min-height: 420px; }
@media (max-width: 760px) {
  /* Phone: homes become a side swipe row, about one and a bit cards wide */
  html.gt-v1 .sidx-hotsheet .sidx-grid { display: grid !important; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none !important; gap: 12px !important; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px 2px 16px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
  html.gt-v1 .sidx-hotsheet .sidx-grid::-webkit-scrollbar { display: none; }
  html.gt-v1 .sidx-hotsheet .sidx-grid > * { scroll-snap-align: start; min-width: 0; }
  html.gt-v1 .sidx-hotsheet .sidx-search-result-grid-item { box-shadow: 0 8px 24px rgba(0,0,0,.28); }
  html.gt-v1 #home-options { padding: 32px 20px 28px !important; }
}
/* Every card in a row is the same height, with the icon strip lined up at the bottom */
html.gt-v1 .sidx-hotsheet .sidx-grid > * { display: flex !important; flex-direction: column; align-self: stretch; }
html.gt-v1 .sidx-hotsheet .sidx-grid > * > div { display: flex !important; flex-direction: column; flex: 1 1 auto; }
html.gt-v1 .sidx-hotsheet .sidx-grid .sidx-search-result-grid-item { flex: 1 1 auto; height: auto !important; min-height: 0 !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
html.gt-v1 .sidx-hotsheet .sidx-grid { row-gap: 20px !important; }
html.gt-v1 .sidx-hotsheet .sidx-grid .sidx-search-result-grid-item > .sidx-content { flex: 1 1 auto; }
html.gt-v1 .sidx-hotsheet .sidx-details { padding: 14px 16px 6px !important; }
html.gt-v1 .sidx-hotsheet .sidx-listing-heading { margin-bottom: 8px !important; }
html.gt-v1 .sidx-hotsheet .sidx-listing-heading em:empty, html.gt-v1 .sidx-hotsheet .sidx-listing-heading br:last-of-type { display: none; }
/* The "see all" button under the cards matches GT buttons */
html.gt-v1 body .sidx-hotsheet button.sidx-hotsheet-see-all-results {
  background: transparent !important; color: var(--v1-gold) !important; border: 1px solid var(--v1-gold) !important; border-radius: 10px !important;
  min-height: 48px; font-weight: 600 !important; letter-spacing: .06em; width: 100%; box-shadow: none !important; margin-top: 12px; }
html.gt-v1 body #home-options:not([class*=dark]) .sidx-hotsheet button.sidx-hotsheet-see-all-results:hover { background: var(--v1-gold) !important; color: var(--v1-ink) !important; }
html.gt-v1 #home-options .to-query .to-button { width: 100%; justify-content: center; }

/* ---------- 5b. Tables read as stacked cards on phones ---------- */
@media (max-width: 760px) {
  html.gt-v1 .to-table-wrap { overflow: hidden !important; border: 0 !important; }
  html.gt-v1 .to-table-wrap table, html.gt-v1 .to-table-wrap tbody, html.gt-v1 .to-table-wrap tr, html.gt-v1 .to-table-wrap td { display: block !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
  html.gt-v1 .to-table-wrap table { border: 0 !important; background: transparent !important; }
  html.gt-v1 .to-table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html.gt-v1 .to-table-wrap tr { border: 1px solid var(--v1-line); border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; background: var(--v1-white); }
  html.gt-v1 .to-table-wrap td { border: 0 !important; padding: 2px 0 !important; font-size: 15px; line-height: 1.5; }
  html.gt-v1 .to-table-wrap td:first-child { font-weight: 700; color: var(--v1-ink); font-size: 16px; padding-bottom: 6px !important; }
  html.gt-v1 .to-table-wrap td:nth-child(2) { color: var(--v1-gold-ink); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
}

/* ---------- 6. Footer: shorter on phones ---------- */
@media (max-width: 760px) {
  html.gt-v1 footer { padding-top: var(--v1-s4) !important; padding-bottom: calc(var(--v1-dock-h) + 40px) !important; }
  html.gt-v1 footer .f-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 20px 16px !important; }
  html.gt-v1 footer .f-grid > div:first-child { grid-column: 1 / -1; }
  html.gt-v1 footer .f-grid p { font-size: 14px !important; line-height: 1.9 !important; }
  html.gt-v1 footer p.legal { font-size: 12px !important; line-height: 1.5 !important; margin-top: 24px !important; }
}

/* ---------- 7. Motion and focus ---------- */
html.gt-v1 a:focus-visible, html.gt-v1 button:focus-visible { outline: 2px solid var(--v1-gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html.gt-v1 * { scroll-behavior: auto !important; } }

/* ---------- 0.4.25 fixes from batch 2 review ---------- */
/* Gold buttons always use dark text (white on gold is only 2.5:1). */
html.gt-v1 a.gth-cta, html.gt-v1 a.gth-cta:visited { color: var(--v1-ink) !important; }
/* "Choose your question" lists: number sits on the first line of each item. */
html.gt-v1 .hp-guide-nav ol { list-style: none !important; counter-reset: gtq; padding-left: 0 !important; }
html.gt-v1 .hp-guide-nav ol > li { counter-increment: gtq; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; }
html.gt-v1 .hp-guide-nav ol > li::before { content: counter(gtq) "."; color: var(--v1-gold-ink); font-weight: 600; }
/* Old town page articles use width:100% plus padding, which pushes the page sideways on phones and tablets. */
@media (max-width: 1179px) {
  html.gt-v1 .gt-legacy > article { box-sizing: border-box !important; max-width: 100% !important; }
}
