/* Renfroe Holdings — site-specific styling. */

/* Slightly wider content column for tables-heavy pages. */
.md-grid {
  max-width: 80rem;
}

/* Tighter cell padding on the dense entity index tables. */
.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  padding: 0.55em 0.85em;
}

/* Mermaid diagrams scale to width and center. */
.mermaid {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

/* ---- Custom landing page ("home" template) styles ---- */

.rh-hero {
  margin: -1rem -1rem 2.5rem -1rem;
  padding: 3rem 1.5rem 2.5rem 1.5rem;
  background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 50%, #1a3a5c 100%);
  color: #f5f5f5;
  border-radius: 0 0 16px 16px;
}

[data-md-color-scheme="slate"] .rh-hero {
  background: linear-gradient(135deg, #0d1f33 0%, #1a3a5c 50%, #0d1f33 100%);
}

.rh-hero h1 {
  color: #f5d28c !important;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 0.6rem 0;
}

.rh-hero p.rh-tagline {
  color: rgba(245, 245, 245, 0.85);
  font-size: 1.15rem;
  margin: 0 0 1.5rem 0;
  max-width: 50rem;
  line-height: 1.5;
}

.rh-hero a.rh-cta {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  margin-right: 0.5rem;
  background: #f5d28c;
  color: #1a3a5c;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 120ms ease, transform 120ms ease;
}

.rh-hero a.rh-cta:hover {
  background: #f7dc9a;
  transform: translateY(-1px);
}

.rh-hero a.rh-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
  border: 1px solid rgba(245, 210, 140, 0.4);
}

.rh-hero a.rh-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Hero stat strip */
.rh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 210, 140, 0.25);
}

.rh-stat {
  text-align: left;
}

.rh-stat .rh-stat-number {
  display: block;
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #f5d28c;
  line-height: 1.05;
}

.rh-stat .rh-stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 245, 0.7);
  margin-top: 0.3rem;
}

/* Card icons (small Material icon to the left of each card title) */
.rh-card-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.4em;
  height: 1.4em;
  margin-right: 0.45rem;
  margin-bottom: 0.1em;
  color: var(--md-primary-fg-color);
}

[data-md-color-scheme="slate"] .rh-card-icon {
  color: var(--md-accent-fg-color);
}

.rh-card h3 svg.twemoji {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.15em;
  margin-right: 0.35rem;
}

/* Card grid for the landing-page sections. */
.rh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.rh-card {
  padding: 1.2rem 1.4rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  transition: border-color 120ms ease, transform 120ms ease;
}

.rh-card:hover {
  border-color: var(--md-accent-fg-color);
  transform: translateY(-2px);
}

.rh-card h3 {
  margin: 0 0 0.4rem 0 !important;
  color: var(--md-primary-fg-color) !important;
  font-size: 1.1rem;
  font-weight: 600;
}

[data-md-color-scheme="slate"] .rh-card h3 {
  color: var(--md-accent-fg-color) !important;
}

.rh-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.4;
}

.rh-card ul {
  margin: 0.4rem 0 0 0 !important;
  padding-left: 1.2rem !important;
  font-size: 0.9rem;
}

.rh-card ul li {
  margin: 0.2rem 0;
}

.rh-card a {
  text-decoration: none;
  color: var(--md-default-fg-color);
  display: block;
}

.rh-card a:hover {
  color: var(--md-accent-fg-color);
}

/* Status callouts for active mandates. */
.rh-status {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--md-accent-fg-color);
  background: var(--md-default-fg-color--lightest);
  border-radius: 0 8px 8px 0;
}

.rh-status strong {
  color: var(--md-accent-fg-color);
}

/* Subtle separator for landing-page section breaks. */
.rh-section-break {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--md-default-fg-color--lighter), transparent);
  border: none;
  margin: 2.5rem 0;
}
