/* Content module: resource library, department pages, staff directory, contact form, partners. */

/* Markdown text of pages and answers */
.content-body {
  max-width: 48rem;
  overflow-wrap: anywhere;
}

.content-body h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-body h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.content-body > :first-child {
  margin-top: 0;
}

.content-body > :last-child {
  margin-bottom: 0;
}

.content-body blockquote {
  border-left: 4px solid var(--gic-green, #3b7d23);
  background: var(--gic-green-light, #e9f3e4);
  padding: 0.6rem 1rem;
  margin: 1rem 0;
  border-radius: 0 0.375rem 0.375rem 0;
}

.content-body blockquote p {
  margin: 0;
}

.content-body img {
  max-width: 100%;
  height: auto;
}

.content-subnav .nav-link {
  color: #495057;
}

.content-subnav .nav-link.active {
  color: var(--gic-green-dark, #2d6119);
  border-bottom-color: var(--gic-green, #3b7d23);
}

/* Resource library */
.content-filter .nav-link {
  color: var(--gic-green-dark, #2d6119);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 0.3rem 0.8rem;
}

.content-filter .nav-link.active {
  background: var(--gic-green, #3b7d23);
  border-color: var(--gic-green, #3b7d23);
  color: #fff;
}

.content-filter .nav-link .badge {
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font-weight: 500;
}

.content-filter .nav-link.active .badge {
  background: rgba(255, 255, 255, 0.25);
}

.content-kind {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--gic-green-light, #e9f3e4);
  color: var(--gic-green-dark, #2d6119);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.content-kind svg {
  width: 1.3rem;
  height: 1.3rem;
}

.min-w-0 {
  min-width: 0;
}

/* Staff directory */
.staff-photo,
.staff-initials {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}

.staff-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gic-green-light, #e9f3e4);
  color: var(--gic-green-dark, #2d6119);
  font-size: 1.6rem;
  font-weight: 600;
}

.staff-card dt {
  font-weight: 600;
  font-size: 0.8rem;
  color: #495057;
}

.staff-card dd {
  margin-bottom: 0.4rem;
}

/* Contact form: the honeypot field is off screen for people, visible to robots */
.content-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Partners and sponsors: quiet, clearly labelled, no animation */
.partner-card {
  background: #fff;
}

.partner-logo {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
}

.partner-band {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
}

.partner-band-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c757d;
}

.partner-band img {
  height: 40px;
  max-width: 140px;
  object-fit: contain;
}

/* Administration */
.content-admin-table td,
.content-admin-table th {
  vertical-align: middle;
}

.content-markdown {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Khmer", monospace;
  font-size: 0.9rem;
}

.content-message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.content-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 0.375rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Help centre accordion in the GIC colours */
.accordion {
  --bs-accordion-active-bg: var(--gic-green-light, #e9f3e4);
  --bs-accordion-active-color: var(--gic-green-dark, #2d6119);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(59, 125, 35, 0.25);
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232d6119' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}

/* Phones: the site makes buttons 44 px high; keep their text centred */
@media (max-width: 575.98px) {
  a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Hovered links stay green (site.css sets --bs-link-hover-color but not its RGB variant) */
:root {
  --bs-link-hover-color-rgb: 31, 68, 17;
}
