/* Part oa-home2: three home page sections that "pop" (Adam, 11/4). oa-home2.php sets each class below on the home page
   only, so these rules style nothing elsewhere. Gold is the site's one accent (zz-accent.css); the fallback keeps the
   same color if that part ever goes. Navy and white edges throughout, never pale grays, which vanish on Adam's screen. */

/* ---------- 1. Where We Have Land: the map as the star ---------- */

/* A deep navy band, so it reads apart from Our Latest Listings' navy just above it. The list keeps its white card. */
body .gl-map-band.gl-oa-map, body.gl-home-mix .gl-map-band.gl-oa-map { border: 0; background: var(--gl-navy-deep); color: #fff; }
body .gl-oa-map .gl-map-intro h2 { color: #fff; }
body .gl-oa-map .gl-map-summary { color: rgba(255, 255, 255, .86); }
body:is(.gl-home-c, .gl-home-mix) .gl-oa-map .gl-o-mapmore a { color: #fff; }
body .gl-oa-map .gl-map-intro a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Counties: navy with light outlines, so the state's shape shows on the band; gold where there's a listing for sale.
   Sold listings don't show here (11/20 call). Every other county is a button too (enhance.js, is-empty), so under the
   mouse or in focus it turns a clear mid blue with a white edge, and never reads as dead. Selection is a white ring,
   which shows on gold and navy alike. The focus ring keeps restyle.css's white halo under dark navy. */
body .gl-oa-map .gl-map-svg .gl-c { fill: var(--gl-navy); stroke: #8b99c6; }
body .gl-oa-map .gl-map-svg .gl-c.is-now { fill: var(--gl-accent, #c8952b); stroke: var(--gl-navy-deep); }
body .gl-oa-map .gl-map-svg .gl-c.is-empty { cursor: pointer; }
body .gl-oa-map .gl-map-svg .gl-c.is-now:hover, body .gl-oa-map .gl-map-svg .gl-c.is-now:focus-visible { fill: #ddb052; }
body .gl-oa-map .gl-map-svg .gl-c.is-empty:hover, body .gl-oa-map .gl-map-svg .gl-c.is-empty:focus-visible, body .gl-oa-map .gl-map-svg .gl-c.is-empty.is-selected { fill: #4a63a8; stroke: #fff; }
body .gl-oa-map .gl-map-svg .gl-c.is-selected, body .gl-oa-map .gl-map-svg .gl-c-ring--selected { stroke: #fff; }

body .gl-oa-map .gl-map-legend { color: #fff; }
body .gl-oa-map .gl-map-legend li.gl-map-hover { color: #fff; }
body .gl-oa-map .gl-map-legend li.gl-map-hover.gl-map-idle { color: rgba(255, 255, 255, .8); font-weight: 400; }
body .gl-oa-map .gl-swatch.is-now { background: var(--gl-accent, #c8952b); }

/* The list beside the map: a white card with no edge, since the navy around it is the edge. */
body .gl-oa-map .gl-map-panel { border-color: #fff; padding: 16px 20px; }

/* A county with no listing for sale: the plain line, each nearest listing's county and distance in the body ink, and
   two filled buttons on to every listing and to email alerts. */
body .gl-oa-map .gl-panel-intro { margin: 0 0 4px; color: var(--gl-ink); font-size: 16px; line-height: 1.45; }
body .gl-oa-map .gl-item-near { color: var(--gl-ink); font-size: 15px; line-height: 1.35; }
body .gl-oa-map .gl-item-miles { white-space: nowrap; }
/* The buttons stay under the list, which scrolls inside the panel on wide screens (a-global.css), so they always show.
   Each takes the panel's width; the two don't fit side by side in its column. */
body .gl-oa-map .gl-panel-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--gl-navy); }
body .gl-oa-map .gl-panel-act { display: inline-flex; flex: 1 1 100%; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--gl-navy); border-radius: var(--gl-radius); background: #fff; color: var(--gl-navy); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; }
body .gl-oa-map .gl-panel-act--main { background: var(--gl-navy); color: #fff; }
@media (hover: hover) {
  body .gl-oa-map .gl-panel-act:hover { border-color: var(--gl-navy-hover); background: var(--gl-navy-hover); color: #fff; }
}
body .gl-oa-map .gl-panel-act:focus-visible { outline: 3px solid var(--gl-navy); outline-offset: 2px; }

/* Wide screens give the map more of the row. */
@media (min-width: 1024px) {
  body .gl-oa-map .gl-map-grid { grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); gap: 36px; }
}
/* Tablets and the Fold's inner screen (850 to 1023 px) take the phone layout: the map at full width and the list under
   it, growing with the page, its first six showing. Beside the map, the list for a county with nothing for sale showed
   one listing and a half above its buttons at 884 px (11/20). The weights match a-global.css's wide-screen rules,
   which this file follows. */
@media (min-width: 850px) and (max-width: 1023px) {
  html.gl-js .home .gl-map-band.gl-oa-map:not(.gl-map-failed) .gl-map-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
  html.gl-js .home .gl-map-band.gl-oa-map:not(.gl-map-failed) .gl-map-panel { display: block; min-height: 0; contain: none; }
  html.gl-js .home .gl-map-band.gl-oa-map:not(.gl-map-failed) .gl-panel-list { max-height: none; overflow: visible; overscroll-behavior: auto; }
  html.gl-js .home .gl-map-band.gl-oa-map:not(.gl-map-failed) .gl-panel-list::after { display: none; }
  html.gl-js .home .gl-map-band.gl-oa-map:not(.gl-map-failed) .gl-map-legend li.gl-map-hover { order: 0; }
  body .gl-oa-map .gl-panel-list.gl-panel-list--clip > :nth-child(n+7) { display: none; }
  body .gl-oa-map .gl-map-panel .gl-panel-more { display: flex !important; width: 100%; margin: 10px 0 0; text-transform: none; letter-spacing: 0; cursor: pointer; }
}

/* ---------- 2. More About Growthland: the team's faces ---------- */

/* A row of real faces, each overlapping the last inside a white ring, with "Meet the team" beside them. The whole row
   is one link to Our Team. On a narrow column the words wrap under the faces. */
.gl-oa-about .gl-oa-team { margin: 4px 0 28px; }
.gl-oa-about .gl-oa-team-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-height: 44px; color: var(--gl-navy); text-decoration: none; }
/* oa-home2.js adds the faces after the page draws, so the row holds their room from the start: 14 px of padding plus
   46 px for each face (60 px less the 14 px overlap). --gl-oa-n is the number of faces, set by oa-home2.php. Without
   the script, the noscript's faces sit in the row as they would. */
.gl-oa-about .gl-oa-faces { display: inline-flex; flex: none; box-sizing: border-box; min-width: calc(14px + var(--gl-oa-n, 7) * 46px); min-height: 60px; padding-left: 14px; }
html:not(.gl-js) .gl-oa-about .gl-oa-faces > noscript { display: contents; }
.gl-oa-about .gl-oa-face { flex: none; width: 60px; height: 60px; max-width: none; margin: 0 0 0 -14px; border: 3px solid #fff; border-radius: 50%; background: var(--gl-wash); object-fit: cover; }
.gl-oa-about .gl-oa-team-text { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.gl-oa-about .gl-oa-team-text .gl-i { width: 18px; height: 18px; }
@media (hover: hover) {
  .gl-oa-about .gl-oa-team-link:hover .gl-oa-team-text { text-decoration-thickness: 2px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gl-oa-about .gl-oa-team-text .gl-i { transition: transform var(--gl-fast); }
  .gl-oa-about .gl-oa-team-link:hover .gl-oa-team-text .gl-i { transform: translateX(3px); }
}
@media (max-width: 479px) {
  .gl-oa-about .gl-oa-faces { min-width: calc(14px + min(var(--gl-oa-n, 7), 6) * 42px); min-height: 56px; }
  .gl-oa-about .gl-oa-face { width: 56px; height: 56px; }
  /* Of type, since the noscript is the row's first child. */
  .gl-oa-about .gl-oa-face:nth-of-type(n+7) { display: none; }
}

/* ---------- 3. What Our Clients Say: on a farm photo ---------- */

/* Deep navy, with the photo (grain bins under a big sky) at low strength over it, so the quotes read in white. The
   photo arrives from oa-home2.js and fades in; without it the band is plain navy. */
body.home section.section.gl-oa-quotes.gl-h-italic, body.home section.section.gl-oa-quotes.gl-h-italic > .section-bg { background-color: var(--gl-navy-deep) !important; }
.gl-oa-quotes > .section-bg { overflow: hidden; }
.gl-oa-quotes > .section-bg::before { content: ""; position: absolute; inset: 0; background: var(--gl-oa-qbg, none) center 70% / cover no-repeat; opacity: 0; transition: opacity 700ms ease; }
.gl-oa-quotes.gl-oa-bg-on > .section-bg::before { opacity: .22; }

.home .gl-oa-quotes h2 { color: #fff; }
.gl-oa-quotes .gl-quotes .gl-quote figure { padding-top: 0; border-top: 0; }
/* A large gold quote mark over each quote. The quote keeps its own marks, so a screen reader hears it as written. */
.gl-oa-quotes .gl-quotes .gl-quote figure::before { content: "\201C"; content: "\201C" / ""; display: block; height: 48px; margin: 0 0 4px; color: var(--gl-accent, #c8952b); font: 600 96px/1 var(--gl-sans); }
.gl-oa-quotes .gl-quotes .gl-quote blockquote { color: #fff; font-size: 18px; line-height: 1.6; }
.gl-oa-quotes .gl-quotes .gl-quote-name { color: #fff; font-weight: 600; }
.gl-oa-quotes .gl-quotes .gl-quote-role { color: rgba(255, 255, 255, .82); }

/* Previous, Next, and Pause: white outlines that fill white on hover. The button at an end of the row dims. */
.gl-oa-quotes .gl-quotes .gl-quotes-btn { border-color: #fff; background: transparent; color: #fff; }
@media (hover: hover) {
  .gl-oa-quotes .gl-quotes .gl-quotes-btn:not([aria-disabled="true"]):hover { border-color: #fff; background: #fff; color: var(--gl-navy-deep); }
}
.gl-oa-quotes .gl-quotes .gl-quotes-btn[aria-disabled="true"] { border-color: rgba(255, 255, 255, .45); background: transparent; color: rgba(255, 255, 255, .5); }
.gl-oa-quotes .gl-quotes .gl-quotes-count { color: rgba(255, 255, 255, .86); }
.home .gl-oa-quotes .gl-more-quotes a { color: #fff; }
.gl-oa-quotes .gl-quotes .gl-quotes-btn:focus-visible, .gl-oa-quotes a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .gl-oa-quotes > .section-bg::before { transition: none; }
}
/* Paper drops backgrounds, so both navy bands print as dark text on white. */
@media print {
  body .gl-map-band.gl-oa-map, body.home section.section.gl-oa-quotes.gl-h-italic, body.home section.section.gl-oa-quotes.gl-h-italic > .section-bg { background: #fff !important; }
  .gl-oa-quotes > .section-bg::before { display: none; }
  body .gl-oa-map :is(h2, .gl-map-summary, .gl-map-legend, .gl-map-legend li.gl-map-hover),
  .gl-oa-quotes .gl-quotes :is(.gl-quote blockquote, .gl-quote-name, .gl-quotes-count),
  .home .gl-oa-quotes :is(h2, .gl-more-quotes a) { color: #000 !important; }
}

/* Beyond Iowa, under the map's legend, white on the navy band; and the panel's outside-Iowa note in the body ink, as the
   muted gray washed out (11/4). */
body.gl-home-mix .gl-oa-beyond { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .25); color: #fff; }
body.gl-home-mix p.gl-oa-beyond-h { display: flex; align-items: center; gap: 10px; margin: 0; color: #fff; font-size: 17px; font-weight: 600; line-height: 1.4; }
body.gl-home-mix p.gl-oa-beyond-h .gl-i { flex: none; width: 20px; height: 20px; color: var(--gl-accent, #c8952b); }
/* "Listings in other states:" reads a little louder than the licensing line above it (Adam, 11/20 call: should it "pop
   out better"): full white at the body size, with each state in gold. Still one line, not a band of its own. */
body.gl-home-mix p.gl-oa-beyond-l { margin: 6px 0 0 30px; color: #fff; font-size: 17px; line-height: 1.6; }
body.gl-home-mix p.gl-oa-beyond-l .gl-oa-beyond-k { font-weight: 600; }
body.gl-home-mix p.gl-oa-beyond-l a { color: var(--gl-accent, #c8952b); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (hover: hover) {
  body.gl-home-mix p.gl-oa-beyond-l a:hover { color: #fff; }
}
body.gl-home-mix .gl-oa-map .gl-panel-note { color: var(--gl-ink); }
@media (max-width: 849px) { body.gl-home-mix p.gl-oa-beyond-l { margin-left: 0; } }
body.gl-home-mix p.gl-oa-beyond-l a { white-space: nowrap; }

/* ---------- 11/4 /ui review ---------- */

/* The list's second group under Where We Have Land (o-home.js): pending and lease listings under a small heading
   with a navy rule, so the "For sale" count above it matches the hero's "Show 20 listings". */
body .gl-map-panel .gl-panel-sub { margin: 14px 0 4px; padding: 12px 0 0; border-top: 1px solid var(--gl-navy); color: var(--gl-navy); font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; }

/* More About Growthland: the photo starts level with the heading instead of centered on the text, which left it
   about 70 px lower than "More About Growthland" (Flatsome's align-middle row). */
@media (min-width: 550px) {
  body .gl-oa-about .row.align-middle { align-items: flex-start !important; }
  body .gl-oa-about .row.align-middle > .col { align-self: flex-start !important; }
}

/* "Listings outside Iowa now": each county link is a 44 px tap target (11/4 CTA review; they were 18 px lines). */
body .gl-oa-beyond-l a { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }
