/* ============================================================
   policy.css — Board Policy theme
   ============================================================
   Visual identity:
   - Primary color: gold #D4A017 (the "ceremonial" tier color)
   - Header layout: 96px gold seal + title block, single 2px gold rule
   - Metadata: definition list (Policy Code / Adoption / Amendment /
     Cross Reference / Legal Reference)
   - Signature element: cream policy-statement box (gold-bordered)

   Used by class="policy" documents (Board Policies, Tier 1).
   ============================================================ */

:root {
  --accent-primary: #D4A017;       /* gold */
  --accent-light:   #FBF4E0;
  --accent-dark:    #B8860B;
  --policy-cream:   #FBF4E0;
  --policy-cream-border: #E8C97A;
}

/* ---------- Header band ------------------------------------ */
.gov-header.policy {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--accent-primary);
  margin-bottom: 24px;
}

/* The gold seal — circular ring with cream/white inner.
   Double-band effect: outer gold ring + cream gap + inner white ring + inner gold ring. */
.policy-seal {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  padding: 8px;
  background: #FDF9EE;
  box-shadow: inset 0 0 0 2px #FFFFFF, inset 0 0 0 4px var(--accent-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.policy-seal__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.policy-seal__inner img {
  width: 92%;
  height: auto;
  object-fit: contain;
}

.policy-meta-block { flex: 1; }

.policy-type {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--accent-dark);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 1px 0;
  line-height: 1.2;
}

.policy-title {
  font-size: 18pt;
  font-weight: 600;
  color: #1F1F1F;
  line-height: 1.15;
  margin: 0 0 4px 0;
}

.policy-org {
  font-size: 11pt;
  color: var(--text-faint);
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 0;
}

/* ---------- Metadata table (replaces deflist) -------------- */
/* The "registration record" — Policy Code, dates, references.
   Subtle cream tint differentiates it as document metadata,
   not body content. Reads like the front matter of a deed. */
.policy-meta-table {
  width: 100%;
  border-collapse: collapse;
  background: #FDFAF0;
  border: 1px solid var(--policy-cream-border);
  border-radius: 4px;
  margin: 0 0 22px 0;
  font-size: 10.5pt;
  overflow: hidden;
}

/* Override base.css zebra striping — the metadata table is one solid tone. */
.policy-meta-table tbody tr,
.policy-meta-table tbody tr:nth-child(even) {
  background: transparent;
}

.policy-meta-table tr {
  border-bottom: 1px solid #F2E6C2;
}

.policy-meta-table tr:last-child {
  border-bottom: none;
}

.policy-meta-table th {
  width: 150px;
  text-align: left;
  font-weight: 600;
  color: var(--accent-dark);
  background: transparent;     /* override base.css table th */
  padding: 7px 14px;
  vertical-align: top;
  border: none;                 /* override base.css table cell border */
  white-space: nowrap;
}

.policy-meta-table td {
  color: var(--text-body);
  padding: 7px 14px;
  vertical-align: top;
  border: none;                 /* override base.css table cell border */
  line-height: 1.5;
}

/* Cross-reference links inside metadata: lighter than body links
   so they don't visually compete with the title block. */
.policy-meta-table a.gov-xref {
  color: var(--accent-dark);
  border-bottom: 1px dotted var(--accent-dark);
}

.policy-meta-table a.gov-xref:hover {
  background: rgba(212, 160, 23, 0.12);
  border-bottom-style: solid;
}

/* ---------- Policy statement box (signature element) ------- */
.policy-statement-box {
  background: var(--policy-cream);
  border: 1px solid var(--policy-cream-border);
  border-radius: 4px;
  padding: 18px 24px;
  margin: 0 0 18px 0;
  page-break-inside: avoid;
}

.policy-statement-box__heading {
  color: var(--accent-dark);
  font-size: 11pt;
  font-weight: 500;
  letter-spacing: 2.5px;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.policy-statement-box__body {
  font-size: 11pt;
  line-height: 1.55;
  color: var(--text-body);
}

.policy-statement-box__body p:last-child { margin-bottom: 0; }

/* ---------- Heading overrides for policy ------------------- */
/* Scoped to .gov-content so the header band's policy-title
   (which is also an h1) keeps its own styling.

   Visual hierarchy mirrors AP: H1 section headings hang at
   page-padding edge with an underline rule; body content
   indents 28px inward. */
.tier-policy .gov-content h1 {
  color: var(--accent-dark);
  font-size: 15pt;
  margin: 24px 0 14px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--policy-cream-border);
}

.tier-policy .gov-content h2 {
  color: var(--accent-dark);
  font-size: 13pt;
  margin-left: 28px;
}

.tier-policy .gov-content h3 {
  color: var(--accent-dark);
  font-size: 11.5pt;
  margin-left: 28px;
}

.tier-policy .gov-content h4,
.tier-policy .gov-content h5,
.tier-policy .gov-content h6 {
  margin-left: 28px;
}

/* Body content indents under each section heading */
.tier-policy .gov-content > p,
.tier-policy .gov-content > ul,
.tier-policy .gov-content > ol,
.tier-policy .gov-content > table,
.tier-policy .gov-content > blockquote,
.tier-policy .gov-content > section,
.tier-policy .gov-content > div {
  margin-left: 28px;
  margin-right: 0;
}

.tier-policy .gov-content > table {
  width: calc(100% - 28px);
}
