/* Typography & layout for internalized governing documents
   (CC&Rs, Bylaws, Rules & Regulations, Design Guidelines, Fire Safety Plan).
   Loaded after styles.css; only adds rules that don't already exist. */

.governing-doc {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
}

.governing-doc h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.governing-doc h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  margin: 2.2rem 0 0.85rem;
  color: var(--text);
}

.governing-doc h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 1.6rem 0 0.5rem;
  color: var(--olive-dark);
}

.governing-doc h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 1.2rem 0 0.4rem;
  color: var(--text-muted);
}

.governing-doc p {
  margin: 0 0 1rem;
  max-width: 75ch;
}

.governing-doc ul,
.governing-doc ol {
  margin: 0 0 1rem 0;
  padding-left: 1.4rem;
  max-width: 75ch;
}
.governing-doc li {
  margin-bottom: 0.45rem;
}
.governing-doc li > ul,
.governing-doc li > ol {
  margin-top: 0.45rem;
}

.governing-doc a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}
.governing-doc a:hover {
  color: var(--olive);
  border-bottom-color: var(--olive);
}

.governing-doc strong { font-weight: 600; }
.governing-doc em { font-style: italic; }

.governing-doc hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.governing-doc blockquote {
  margin: 1.2rem 0;
  padding: 0.6rem 1.1rem;
  border-left: 3px solid var(--bronze);
  background: var(--surface);
  color: var(--text-muted);
}

.governing-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.95rem;
}
.governing-doc th,
.governing-doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.governing-doc th {
  font-weight: 600;
  background: var(--surface-2);
  font-family: var(--font-sans);
}

/* Inline images (preview cards from the original site) */
.governing-doc img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* Contents / TOC heading common in the originals */
.governing-doc h2:first-of-type + ul,
.governing-doc h2:first-of-type + ol {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 1rem 2.4rem;
  margin-bottom: 2rem;
}
.governing-doc h2:first-of-type + ul a,
.governing-doc h2:first-of-type + ol a {
  border-bottom: none;
}
.governing-doc h2:first-of-type + ul a:hover,
.governing-doc h2:first-of-type + ol a:hover {
  border-bottom: 1px solid var(--olive);
}

/* Wider container for legal docs with many sub-sections */
.container--narrow .governing-doc {
  max-width: 100%;
}


/* Inline placeholder for images that didn't survive migration */
.governing-doc .image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin: 1.25rem 0;
  padding: 1.2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  font-style: italic;
}
