/* ═══════════════════════════════════════════════════════════════════════
   Property Management Insights — the expertise library.

   A real stylesheet rather than an inline <style> block, for two reasons.
   The site's CSP still carries 'unsafe-inline' only because the legacy pages
   need it; nothing added from here on should deepen that debt. And these
   pages are generated, so their styling has to live somewhere a person can
   edit without regenerating anything.

   Everything below uses the existing brand tokens from styles.css. No new
   colours are introduced — an article that does not look like the rest of
   the site reads as a syndicated advertorial, which is the opposite of what
   these pages are for.
   ═══════════════════════════════════════════════════════════════════════ */

/* A measure that is actually readable. The site's default container is
   1100px, which is right for cards and wrong for 1,500 words of prose:
   past roughly 75 characters a line, the eye loses its place returning to
   the left margin. */
.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.insight-hero .page-hero__subtitle {
  max-width: 700px;
}

/* ── Byline ──────────────────────────────────────────────────────────── */

.insight-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-bottom: 20px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--c-accent);
}

.insight-byline__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin: 0 0 4px;
}

.insight-byline__name a {
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px solid var(--c-accent);
}

.insight-byline__name a:hover { color: var(--c-accent-dark); }

.insight-byline__role,
.insight-byline__meta {
  font-size: 13px;
  color: var(--c-text-mid);
  margin: 0;
}

/* ── Article prose ───────────────────────────────────────────────────── */

.insight-article {
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-text);
}

.insight-article h2 {
  font-family: var(--font-heading);
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.25;
  color: var(--c-primary);
  margin: 48px 0 16px;
}

.insight-article h2:first-child { margin-top: 0; }

.insight-article p { margin: 0 0 20px; }

.insight-article a {
  color: var(--c-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.insight-article a:hover { color: var(--c-accent); }

.insight-article strong { font-weight: 600; }

/* ── The standing legal note ─────────────────────────────────────────── */

.insight-note {
  margin: 44px 0 0;
  padding: 18px 22px;
  background: var(--c-light-bg);
  border-left: 3px solid var(--c-text-light);
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--c-text-mid);
}

.insight-note a { color: var(--c-accent-dark); }

/* ── Author card ─────────────────────────────────────────────────────── */

.insight-author {
  margin-top: 40px;
  padding: 30px 32px;
  background: var(--c-cream);
  border: 1px solid var(--c-border);
  border-radius: 12px;
}

.insight-author__title {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--c-primary);
  margin: 0 0 14px;
}

.insight-author__bio {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--c-text);
  margin: 0 0 18px;
}

.insight-author__creds {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.insight-author__creds li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
  font-size: 14px;
  color: var(--c-text-mid);
}

.insight-author__creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
}

.insight-author__contact {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  font-size: 14.5px;
  color: var(--c-text-mid);
}

.insight-author__contact a {
  color: var(--c-accent-dark);
  font-weight: 500;
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.insight-faq { background: var(--c-light-bg); }

.insight-faq__list {
  margin-top: 28px;
  border-top: 1px solid var(--c-border);
}

.insight-faq .faq-item { border-bottom: 1px solid var(--c-border); }

.insight-faq .faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-primary);
  text-align: left;
  cursor: pointer;
}

.insight-faq .faq-q:hover { color: var(--c-accent-dark); }

.insight-faq .faq-chevron {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--c-accent);
  transition: transform 0.2s ease;
}

.insight-faq .faq-a {
  padding: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--c-text-mid);
}

.insight-faq .faq-a p { margin: 0; }

/* The generator toggles the `hidden` attribute rather than a class, so the
   collapsed state is expressed in HTML the accessibility tree already
   understands. The chevron follows aria-expanded, which means one attribute
   drives both what is announced and what is drawn — they cannot disagree. */
.insight-faq .faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

/* ── Closing call to action ──────────────────────────────────────────── */

.cta-band--brand {
  background: var(--c-primary);
  border-top: 3px solid var(--c-accent);
  text-align: center;
}

.cta-band--brand h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--c-white);
  margin: 0 0 10px;
}

.cta-band--brand p {
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.cta-band--brand p a {
  color: var(--c-white);
  border-bottom: 1px solid var(--c-accent);
}

.cta-band--brand .btn { margin: 0 6px 8px; }

/* ── Related + index listings ────────────────────────────────────────── */

.insight-related__list,
.insight-index {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.insight-related__list li { border-top: 1px solid var(--c-border); }

.insight-related__list a {
  display: block;
  padding: 18px 0;
  text-decoration: none;
}

.insight-related__list strong {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 4px;
}

.insight-related__list a:hover strong { color: var(--c-accent-dark); }

.insight-related__list span {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-mid);
}

.insight-related__all {
  margin-top: 24px;
  font-size: 15px;
}

.insight-related__all a {
  color: var(--c-accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.insight-index__item {
  padding: 26px 28px;
  margin-bottom: 18px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: 10px;
}

.insight-index__item h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 6px;
}

.insight-index__item h3 a {
  color: var(--c-primary);
  text-decoration: none;
}

.insight-index__item h3 a:hover { color: var(--c-accent-dark); }

.insight-index__topics {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 12px;
}

.insight-index__item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text-mid);
  margin: 0 0 14px;
}

.insight-index__more {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-accent-dark);
  text-decoration: none;
}

.insight-index__more:hover { text-decoration: underline; }

/* ── Narrow screens ──────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .insight-article { font-size: 16.5px; }
  .insight-author { padding: 24px 20px; }
  .insight-index__item { padding: 22px 20px; }
  .insight-byline { flex-direction: column; gap: 8px; }
}

/* Honour the site-wide motion preference. */
@media (prefers-reduced-motion: reduce) {
  .insight-faq .faq-chevron { transition: none; }
}
