/* ===== PropertySensor — site-wide stylesheet ===== */
/* Design system: black & white "precision instrument" theme.
   Used site-wide (index.php, articles.php, partners.php, suburb pages).
   Colours: use the tokens below rather than hard-coded hex values. */

:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --fog: #F4F4F3;
  --graphite: #6B6B6B;
  --hairline: #E3E3E1;
  --hairline-dark: #2A2A2A;
  --hairline-dark-strong: #3A3A3A;
  /* Text on dark (--ink) backgrounds, strongest to weakest.
     All pass WCAG AA (4.5:1) on --ink. */
  --on-ink-soft: #C9C9C9;
  --on-ink-mut: #9A9A9A;
  --on-ink-dim: #808080;
  /* Status */
  --danger: #B3261E;
  --success: #1B7F37;
  /* Height of the sticky nav, used to offset #anchor jumps */
  --nav-offset: 88px;
  --display: 'Space Grotesk', sans-serif;
  --mono: 'Space Mono', monospace;
  --body: 'Inter', system-ui, sans-serif;
}
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  scroll-behavior: smooth;
}
/* Keep #section jump targets (e.g. /#services, /#about) clear of the sticky nav */
[id] {
  scroll-margin-top: var(--nav-offset);
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.02rem;
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
  /* With animation off, show the hero range bar at its final state */
  .range-fill {
    width: 100%;
  }
}

/* ===== Type ===== */
h1,
h2,
h3,
h4,
.display-face {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.04;
}
.h-xxl {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 600;
}
.h-xl {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}
.lead-mut {
  color: var(--graphite);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}
.readout {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--graphite);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.readout::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.readout.on-dark {
  color: var(--on-ink-mut);
}
.num {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -.02em;
}

/* ===== Buttons ===== */
.btn {
  border-radius: 0;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .85rem 1.5rem;
  font-weight: 700;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-ink:hover {
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-ghost.on-dark {
  color: var(--paper);
  border-color: var(--paper);
}
.btn-ghost.on-dark:hover {
  background: var(--paper);
  color: var(--ink);
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: none;
}
/* Focus ring must be visible on dark bands too */
.navbar :focus-visible,
.section-ink :focus-visible,
.footer :focus-visible {
  outline-color: var(--paper);
}

/* ===== Nav ===== */
.navbar {
  background: var(--ink);
  padding: .9rem 0;
  border-bottom: 1px solid var(--hairline-dark);
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  color: var(--paper);
  font-size: 1.15rem;
  letter-spacing: -.01em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: .15rem;
}
.brand small {
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .25em;
  color: var(--on-ink-dim);
  margin-left: .5rem;
  align-self: center;
}
.navbar .nav-link {
  color: var(--on-ink-soft);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem .95rem;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--paper);
}
.navbar-toggler {
  border: 1px solid var(--hairline-dark-strong);
  border-radius: 0;
  padding: .35rem .5rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-linecap='round' d='M4 8h22M4 15h22M4 22h22'/%3E%3C/svg%3E");
}

/* ===== Sections ===== */
.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}
.section-sm {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section-fog {
  background: var(--fog);
}
.section-ink {
  background: var(--ink);
  color: var(--paper);
}
.section-ink h2,
.section-ink h3,
.section-ink h4 {
  color: var(--paper);
}
.rule,
.rule-dark {
  height: 1px;
  background: var(--hairline);
  border: 0;
}
.rule-dark {
  background: var(--hairline-dark);
}

/* ===== Hero (home) ===== */
.hero {
  background: var(--paper);
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .5;
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.range {
  margin-top: 2.5rem;
  max-width: 560px;
}
.range-track {
  position: relative;
  height: 2px;
  background: var(--ink);
  margin: 1.4rem 0 .5rem;
}
.range-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  background: var(--ink);
  width: 0;
  animation: grow 1.4s cubic-bezier(.2, .8, .2, 1) .3s forwards;
}
@keyframes grow {
  to {
    width: 100%;
  }
}
.range-track .tick {
  position: absolute;
  top: -5px;
  width: 1px;
  height: 12px;
  background: var(--ink);
}
.range-cap {
  position: absolute;
  top: -9px;
  width: 11px;
  height: 11px;
  background: var(--ink);
  border-radius: 50%;
}
.range-cap.start {
  left: -1px;
}
.range-cap.end {
  right: -1px;
}
.range-labels {
  display: flex;
  justify-content: space-between;
}
.range-labels .num {
  font-size: 1.15rem;
}
.range-labels small {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  color: var(--graphite);
  text-transform: uppercase;
  display: block;
}

/* ===== Cards ===== */
/* Dark services card. Text colour is set on the card itself so headings stay
   legible even when the card is placed outside a .section-ink band. */
.pcard {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--hairline-dark);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform .18s ease, border-color .18s ease;
  position: relative;
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: var(--paper);
}
.pcard .idx {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--on-ink-mut);
  letter-spacing: .1em;
}
.pcard h3 {
  font-size: 1.28rem;
  margin: .8rem 0 .6rem;
  color: var(--paper);
}
.pcard p {
  color: var(--paper);
  font-size: .98rem;
  margin: 0;
}
.pcard .bi {
  font-size: 1.4rem;
}

.benefit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.3rem 0;
  border-top: 1px solid var(--hairline-dark);
}
.benefit .bi {
  font-size: 1.3rem;
  color: var(--paper);
  margin-top: .15rem;
}
.benefit h4 {
  font-size: 1.08rem;
  margin: 0 0 .25rem;
}
.benefit p {
  color: var(--on-ink-mut);
  font-size: .95rem;
  margin: 0;
}

/* ===== Insights: stat strip ===== */
/* Interactive-map styling lives in the "Mapbox" block lower in this file.
   The earlier stopgap map rules were removed to avoid conflicting duplicates —
   do not re-add #map / .map-sidebar / #map-legend / .spinner-container here. */
.stat-strip {
  border: 1px solid var(--hairline-dark);
}
.stat-strip .cell {
  padding: 1.6rem 1.25rem;
  border-right: 1px solid var(--hairline-dark);
}
.stat-strip .cell:last-child {
  border-right: 0;
}
.stat-strip .num {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: var(--paper);
  display: block;
}
.stat-strip small {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--on-ink-mut);
}
@media (max-width: 767.98px) {
  .stat-strip .cell {
    border-right: 0;
    border-bottom: 1px solid var(--hairline-dark);
  }
  .stat-strip .cell:last-child {
    border-bottom: 0;
  }
}

/* ===== Testimonials ===== */
.quote {
  border: 1px solid var(--hairline);
  padding: 2rem 1.9rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quote .mark {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: .6;
  color: var(--ink);
}
.quote blockquote {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.14rem;
  line-height: 1.4;
  margin: 1rem 0 1.5rem;
}
.quote figcaption {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--graphite);
  text-transform: uppercase;
  margin-top: auto;
}

/* ===== FAQ ===== */
.accordion {
  --bs-accordion-border-color: var(--hairline);
  --bs-accordion-border-radius: 0;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--ink);
  --bs-accordion-btn-focus-box-shadow: none;
}
.accordion-button {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.25rem 0;
  background: transparent;
}
.accordion-button:not(.collapsed) {
  box-shadow: none;
}
.accordion-item {
  border-left: 0;
  border-right: 0;
}
.accordion-body {
  padding: 0 0 1.4rem;
  color: var(--graphite);
}
.accordion-button::after {
  background-size: 1rem;
}

/* ===== Forms ===== */
.form-control {
  border-radius: 0;
  border: 1px solid var(--hairline);
  padding: .85rem 1rem;
  font-size: .98rem;
  background: var(--paper);
}
.form-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: .4rem;
}
/* Labels on dark (.section-ink) bands, e.g. the contact form */
.section-ink .form-label {
  color: var(--paper);
}
.contact-detail {
  font-family: var(--mono);
  font-size: .9rem;
}
.contact-detail a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.contact-detail a:hover {
  border-color: var(--ink);
}
/* Contact block sits in a dark (.section-ink) band — keep the email link legible */
.section-ink .contact-detail a {
  color: var(--paper);
  border-bottom-color: rgba(255, 255, 255, .35);
}
.section-ink .contact-detail a:hover {
  border-bottom-color: var(--paper);
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: var(--on-ink-mut);
  padding: 4rem 0 2rem;
}
.footer a {
  color: var(--on-ink-soft);
  text-decoration: none;
}
.footer a:hover {
  color: var(--paper);
}
.footer .foot-links a {
  display: block;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .05em;
  padding: .28rem 0;
}
.footer .social a {
  font-size: 1.15rem;
  margin-right: 1.1rem;
}
.compliance {
  font-size: .74rem;
  line-height: 1.7;
  color: var(--on-ink-dim);
}
.compliance .num {
  color: var(--on-ink-mut);
}

/* ===== Reveal + a11y ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: .6rem 1rem;
  z-index: 2000;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ===== ARTICLE PAGE ===== */
/* reading-progress bar — the "sensor" reading your position */
.progress-sensor {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--ink);
  z-index: 1080;
  transition: width .1s linear;
}
.section-ink .progress-sensor {
  background: var(--paper);
}

.crumb {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--graphite);
}
.crumb a {
  color: var(--graphite);
  text-decoration: none;
}
.crumb a:hover {
  color: var(--ink);
}

.article-head {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.article-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 16ch;
}
.article-meta {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--graphite);
}
.article-meta .dot {
  margin: 0 .6rem;
  color: var(--hairline);
}

.article-figure {
  margin: 0 0 2.5rem;
}
.article-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  display: block;
}
.article-figure figcaption {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--graphite);
  margin-top: .6rem;
}
.article-figure figcaption a {
  color: var(--graphite);
}

/* body prose */
.prose {
  font-size: 1.12rem;
  line-height: 1.75;
}
.prose>p {
  margin: 0 0 1.5rem;
}
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2.8rem 0 1rem;
}
.prose h3 {
  font-size: 1.3rem;
  margin: 2.2rem 0 .8rem;
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--graphite);
}
.prose a:hover {
  text-decoration-color: var(--ink);
}
.prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.prose ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .8rem;
}
.prose ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--ink);
}
.prose blockquote {
  border-left: 2px solid var(--ink);
  margin: 2rem 0;
  padding: .4rem 0 .4rem 1.5rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.4;
}
.prose strong {
  font-weight: 600;
}
.prose .pullquote {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 2.5rem 0;
}

/* answer-first summary callout */
.key-takeaways {
  background: var(--fog);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink);
  padding: 1.6rem 1.8rem;
  margin: 0 0 2.5rem;
}
.key-takeaways .kt-title {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 .8rem;
}
.key-takeaways ul {
  margin: 0;
}
.key-takeaways ul li {
  font-size: 1rem;
  margin-bottom: .6rem;
}
.key-takeaways ul li:last-child {
  margin-bottom: 0;
}

.author-bio {
  border: 1px solid var(--hairline);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.author-bio .avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
}
.author-bio h4 {
  font-size: 1.1rem;
  margin: 0 0 .4rem;
}
.author-bio p {
  color: var(--graphite);
  font-size: .95rem;
  margin: 0 0 .6rem;
}
.author-bio a {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.author-bio a:hover {
  border-color: var(--ink);
}

.share {
  display: flex;
  gap: .6rem;
  align-items: center;
}
.share span {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--graphite);
}
.share a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.share a:hover {
  background: var(--ink);
  color: var(--paper);
}

/* related articles list */
.related-item {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left .18s ease;
}
.related-item:last-child {
  border-bottom: 1px solid var(--hairline);
}
.related-item:hover {
  padding-left: .5rem;
}
.related-item .rn {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--graphite);
  flex: 0 0 auto;
}
.related-item h4 {
  font-size: 1.12rem;
  margin: 0;
  font-weight: 500;
}
.related-item .arr {
  margin-left: auto;
  font-family: var(--mono);
  opacity: 0;
  transition: opacity .18s ease;
}
.related-item:hover .arr {
  opacity: 1;
}

/* article card (for listing / related grids) */
.acard {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--hairline);
  height: 100%;
  transition: transform .18s ease, border-color .18s ease;
}
.acard:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}
.acard .thumb {
  aspect-ratio: 16/10;
  background: var(--fog);
  overflow: hidden;
}
.acard .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acard .body {
  padding: 1.4rem 1.5rem 1.7rem;
}
.acard .kicker {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--graphite);
}
.acard h3 {
  font-size: 1.2rem;
  margin: .6rem 0 .5rem;
}
.acard p {
  color: var(--graphite);
  font-size: .93rem;
  margin: 0;
}

/* ===== PARTNERS PAGE ===== */
/* Partner tiles: white cards. (.pcard is the dark services card, so override it
   here only — scoped to the partners #network section so the homepage is untouched.) */
#network .pcard {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--hairline);
}
#network .pcard:hover {
  border-color: var(--ink);
}
#network .pcard .idx {
  color: var(--graphite);
}
#network .pcard h3 {
  color: var(--ink);
}
#network .pcard p {
  color: var(--graphite);
}
#network .pcard .team-link {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  display: inline-block;
}
#network .pcard .team-link:hover {
  border-color: var(--ink);
}

.logo-grid {
  border: 1px solid var(--hairline);
  border-bottom: 0;
}
.logo-cell {
  aspect-ratio: 3/2;
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.logo-cell:nth-child(3n) {
  border-right: 0;
}
@media (max-width: 767.98px) {
  .logo-cell {
    aspect-ratio: 2/1;
  }
  .logo-cell:nth-child(3n) {
    border-right: 1px solid var(--hairline);
  }
  .logo-cell:nth-child(2n) {
    border-right: 0;
  }
}
.logo-cell span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--graphite);
  letter-spacing: -.01em;
}
.logo-cell img {
  max-width: 100%;
  max-height: 100%;
  filter: grayscale(1);
}

.partner-cat {
  border-top: 1px solid var(--hairline-dark);
  padding: 1.6rem 0;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.partner-cat .bi {
  font-size: 1.4rem;
  color: var(--paper);
  margin-top: .1rem;
}
.partner-cat h4 {
  font-size: 1.15rem;
  margin: 0 0 .3rem;
}
.partner-cat p {
  color: var(--on-ink-mut);
  font-size: .95rem;
  margin: 0;
}

.step-row {
  counter-reset: step;
}
.step {
  display: flex;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--hairline);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-weight: 700;
  color: var(--graphite);
  flex: 0 0 auto;
}
.step h4 {
  font-size: 1.15rem;
  margin: 0 0 .3rem;
}
.step p {
  color: var(--graphite);
  margin: 0;
  font-size: .97rem;
}

/* Mapbox - https://stackoverflow.com/questions/61236140/mapbox-not-showing-map */

#map-container {
  position: relative;
  width: 100%;
}

#map {
  position: relative;
  height: 400px;
  width: 100%;
}

#map-style-menu {
  text-align: right;
  background: var(--fog);
  padding: 10px;
}

#marker {
  background-color: red;
  border: 4px solid var(--paper);
  background-size: cover;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  cursor: pointer;
}

/* https://docs.mapbox.com/mapbox-gl-js/example/filter-markers-by-input/ */

#map-filter-ctrl {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 290px;
}

/* Map controls share one look: theme body font, square corners, hairline ring */
#map-filter-ctrl input[type="text"] {
  font: 12px/20px var(--body);
  border: 0;
  background-color: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .1);
  border-radius: 0;
  width: 100%;
  padding: 5px;
}

.mapbox-ctrl-styles {
  background-color: var(--paper);
  border-radius: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .1);
  font: 12px/20px var(--body);
  color: var(--ink);
}

.map-sidebar {
  position: absolute;
  width: 290px;
  max-height: 325px;
  top: 50px;
  left: 10px;
  overflow-y: auto;
}

.map-sidebar-content {
  padding: 10px;
  background: var(--paper);
  border-radius: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .1);
  color: var(--ink);
}

/* Mapbox legend */

#map-legend {
  position: absolute;
  top: 10px;
  right: 50px;
  z-index: 1;
  padding: 10px;
  background-color: var(--paper);
  border-radius: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .1);
  font: 12px/20px var(--body);
  color: var(--ink);
}

#map-legend div span {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  margin-right: 5px;
  width: 10px;
}

@media (max-width: 767.98px) {
  #map-legend {
    display: none !important;
  }
}

/*
The map-sidebar styling has them "expanded" by default, we use CSS transforms to push them offscreen
The toggleSidebar() function removes this class from the element in order to expand it.
*/

.left.collapsed {
  visibility: hidden;
}

.map-sidebar-content .extra {
  display: none;
}

.map-sidebar-content.expanded .extra {
  display: block;
}

.display_row {
  display: block;
  width: 100%;
  margin: 5px 0;
}

.display_row label {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.display_row span {
  font-size: 12px;
}

.spinner-container {
  position: absolute;
  height: 100%;
  background: rgba(0, 0, 0, .5);
  z-index: 1900;
  width: 100%;
  display: none;
}

.spinner-container.on {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-container .spinner {
  height: 80px;
  width: 100px;
  background: transparent;
}

.lds-facebook {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-facebook div {
  display: inline-block;
  position: absolute;
  left: 8px;
  width: 16px;
  background: var(--paper);
  animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.lds-facebook div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}

.lds-facebook div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}

.lds-facebook div:nth-child(3) {
  left: 56px;
  animation-delay: 0s;
}

@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }
  50%,
  100% {
    top: 24px;
    height: 32px;
  }
}

.style-button {
  width: 60px;
  height: 80px;
  cursor: pointer;
  background-size: 60px 60px;
  background-position: 50%;
}

.styles-current {
  display: none;
}

.style-satellite {
  background-image: url('../images/mapbox_switcher_satellite.jpg');
}
.style-streets {
  background-image: url('../images/mapbox_switcher_streets.jpg');
}

.style-label {
  margin: 0;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: var(--paper);
}

/* Articles */

.article-post {
  margin-bottom: 4rem;
}
.article-post-title {
  margin-bottom: .25rem;
  font-size: 2.5rem;
}

.article-post-meta {
  margin-bottom: 1.25rem;
  color: var(--graphite);
}

.article-image {
  width: 70%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* https://www.geeksforgeeks.org/convert-an-image-into-grayscale-image-using-html-css/ */
.article-image-landing {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);

  /* https://stackoverflow.com/questions/67355788/how-to-resize-and-crop-an-image-with-css-inside-a-bootstrap-card */
  width: 100%;
  height: 15vw;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .article-image-landing {
    height: 50vw;
  }
}

.article-author-bio {
  font-style: normal;
}

a.article-related-link,
a.article-related-link:hover {
  color: var(--paper);
}

/* https://stackoverflow.com/questions/11903773/add-space-between-li-elements */
li.article-related:not(:last-child) {
  margin-bottom: 16px;
}

/* Hide reCAPTCHA - https://developers.google.com/recaptcha/docs/faq#id-like-to-hide-the-recaptcha-badge.-what-is-allowed */

.grecaptcha-badge {
  visibility: hidden;
}

/* ===== Merged from general.css ===== */
/* Page/component styles not already present. Global theme rules from general.css
   (body, a, .nav-link, #logo, .services-form, .flex-center) were intentionally NOT
   merged — the new design system replaces them (see the note at the end of the file). */

/* jQuery UI autocomplete (postcode search) — must sit above the sticky nav */
.ui-autocomplete {
  z-index: 2000;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 20px;
}

/* Suburb A–Z index */
.az-link {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  padding: .25rem .5rem;
  font-family: var(--mono);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
}
.az-link:hover {
  background: var(--fog);
  border-color: var(--hairline);
}
.az-link.disabled {
  color: var(--hairline);
  pointer-events: none;
}
.three-columns {
  column-gap: 1.5rem;
}
@media (min-width: 992px) {
  .three-columns {
    column-count: 3;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .three-columns {
    column-count: 2;
  }
}
@media (max-width: 767.98px) {
  .three-columns {
    column-count: 1;
  }
}
.alpha-group {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 1rem;
}
.alpha-group h2 {
  font-size: 1.5rem;
  margin: .25rem 0;
}
.alpha-group ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* Developer / suburb profile grids */
.grid-developer-trends-container {
  display: grid;
  grid-template-columns: auto auto auto;
  word-break: break-word;
}
.grid-developer-trends-container .item {
  border-bottom: 1px solid var(--hairline);
}
.grid-suburb-profiles-container {
  display: grid;
  grid-template-columns: auto auto auto auto;
}
.grid-suburb-profiles-container .item {
  border-bottom: 1px solid var(--hairline);
}

/* Google Charts */
.chart-postcode-trend {
  width: 100%;
  min-height: 500px;
}

/* YouTube / responsive iframes (articles) */
.youtube-container {
  display: flex;
  justify-content: center;
}
.responsive-iframe {
  aspect-ratio: 16 / 9;
  width: 100% !important;
  max-width: 800px;
}

/* Flag icons — path corrected for web-root site.css (../images -> assets/images) */
.fi {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
  font-style: normal;
}
.fi-au {
  background-image: url("../images/au.png");
}

/* Partner / offer / funded-project image sizes */
img.partners {
  width: 200px;
  height: auto;
}
img.offers {
  width: 200px;
  height: auto;
  margin: auto;
  padding: 10px;
}
img.funded-projects {
  width: 400px;
  height: auto;
}

/* Legacy anchor offset (spacer element). New jump targets don't need this:
   any element with an id is offset by scroll-margin-top (see top of file).
   Tune --nav-offset in :root to match the nav height. */
.anchor {
  display: block;
  height: var(--nav-offset);
  margin-top: calc(var(--nav-offset) * -1);
  visibility: hidden;
}

/* ===== Not merged from general.css ===== */
/* The new theme already defines these:
     body { font-family:Roboto; line-height:2.3; padding-top:100px }
     a { color:black }   a:hover { color:blue; text-decoration:underline }
     .nav-link, .dropdown-item { color:white }
     #logo { width:150px }   .services-form { margin-top:80px }
     .flex-center { ... }   (unused — map.js uses .map-sidebar)
   If your PHP article/suburb pages show default-blue body links, add a
   SCOPED rule instead of a global one, e.g.:
     .article-post a, .three-columns a { color: var(--ink); } */

/* ===== Article cards ===== */
/* "Recent articles" at the foot of the homepage use Bootstrap .card markup with
   unclassed <a> links, so they default to Bootstrap blue — blacken title + footer. */
.card a {
  color: var(--ink);
}
.card a:hover {
  color: var(--ink);
  text-decoration: underline;
}
/* Match the .acard hover-lift (used on articles.php) for the index.php thumbnails */
.card {
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}

/* ===== Square off Bootstrap cards ===== */
/* Match the sharp-cornered theme (.pcard, .acard, .team-card, .quote are 0-radius).
   Covers the card, its image caps, and header/footer. */
.card,
.card-img,
.card-img-top,
.card-img-bottom,
.card-header,
.card-footer,
.card-group>.card {
  border-radius: 0 !important;
}

/* ===== Message box (search + contact feedback) ===== */
/* White card, legible on light and dark (.section-ink) sections. Visibility is
   toggled by JS via inline display, so display is intentionally not set here. */
.message-box {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .02em;
  line-height: 1.55;
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--graphite);
}
.message-box.is-error {
  border-left-color: var(--danger);
  color: var(--danger);
}
.message-box.is-success {
  border-left-color: var(--success);
  color: var(--success);
}
