.cfd-shell {
  --cfd-rule: rgba(180, 160, 200, 0.35);
  /* Inherit the skin's body font. Declaring a face the skin does not load only forces a fallback. */
  max-width: 48rem;
  margin: 0 auto;
  color: inherit;
  line-height: 1.55;
}

.cfd-mast {
  text-align: center;
  border-top: 3px solid var(--cfd-rule);
  border-bottom: 1px solid var(--cfd-rule);
  padding: 0.6rem 0 0.85rem;
  margin-bottom: 1.25rem;
}

/* One heading face for the mast, case titles, and card titles. text-shadow is cleared
   because a skin glow at mast size blurs the letterforms. */
.cfd-shell h1,
.cfd-shell h2,
.cfd-shell h3 {
  font-family: "Cinzel Decorative", "Palatino Linotype", Georgia, serif;
  text-shadow: none;
}

.cfd-mast h1 {
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin: 0.2rem 0;
}

.cfd-kicker, .cfd-dateline {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
  margin: 0;
}

.cfd-back, .cfd-muted, .cfd-hint { opacity: 0.8; font-size: 0.92rem; }
.cfd-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.cfd-flash {
  border: 1px solid var(--cfd-rule);
  padding: 0.55rem 0.75rem;
  margin: 0.75rem 0;
}
.cfd-empty { opacity: 0.7; font-style: italic; }

.cfd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  align-items: center;
}

.cfd-input, .cfd-btn, .cfd-shell select.cfd-input {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--cfd-rule);
  padding: 0.35rem 0.55rem;
}

.cfd-area { width: 100%; min-height: 6rem; }
.cfd-shell a.cfd-btn,
.cfd-btn {
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  color: inherit;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
}
.cfd-shell a.cfd-btn:hover,
.cfd-btn:hover { border-color: rgba(190, 150, 220, 0.85); }
.cfd-btn-ghost { opacity: 0.85; }
.cfd-btn-danger { border-color: rgba(180, 60, 80, 0.6); }

.cfd-datefield { display: inline-flex; gap: 0.35rem; align-items: center; }
.cfd-date-pick {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--cfd-rule);
  padding: 0.3rem;
}
.cfd-date-text { min-width: 9rem; }
.cfd-state-other { margin: 0.25rem 0 0.5rem; }

.cfd-card {
  border: 1px solid var(--cfd-rule);
  padding: 0.85rem 1rem;
  margin: 0 0 0.75rem;
}
.cfd-card a { color: inherit; text-decoration: none; }
.cfd-card h3 { margin: 0.2rem 0 0.35rem; font-size: 1.25rem; }
.cfd-caseid {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  opacity: 0.85;
}
.cfd-meta, .cfd-tags, .cfd-excerpt { margin: 0.25rem 0; font-size: 0.95rem; }

.cfd-pager { display: flex; gap: 0.45rem; margin: 1rem 0; flex-wrap: wrap; }
.cfd-pager a, .cfd-pager .cfd-on {
  border: 1px solid var(--cfd-rule);
  padding: 0.15rem 0.5rem;
  text-decoration: none;
  color: inherit;
}
.cfd-pager .cfd-on { font-weight: 700; }

.cfd-file section { margin: 1.25rem 0; border-top: 1px solid var(--cfd-rule); padding-top: 0.75rem; }
.cfd-file h3 { margin: 0 0 0.5rem; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem; }
.cfd-statement {
  margin: 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid rgba(140, 90, 170, 0.7);
  white-space: normal;
}
.cfd-evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.75rem; }
.cfd-evidence figure { margin: 0; }
.cfd-evidence img { max-width: 100%; height: auto; display: block; border: 1px solid var(--cfd-rule); }
.cfd-evidence audio, .cfd-evidence video { width: 100%; }
.cfd-evidence figcaption { font-size: 0.85rem; opacity: 0.8; margin-top: 0.25rem; }
.cfd-doc { display: inline-block; border: 1px solid var(--cfd-rule); padding: 0.4rem 0.6rem; text-decoration: none; color: inherit; }
.cfd-timeline { list-style: none; padding: 0; margin: 0; }
.cfd-timeline li { padding: 0.35rem 0; border-bottom: 1px dotted var(--cfd-rule); }
.cfd-note { margin: 0.75rem 0; }

.cfd-form label { display: block; margin: 0.65rem 0; }
.cfd-checks label { display: inline-block; margin: 0.25rem 0.75rem 0.25rem 0; }

/* Checkbox and its caption share one line; ASP.NET emits input + label siblings. */
.cfd-consent { border: 1px solid var(--cfd-rule); padding: 0.75rem; margin: 1rem 0; }
.cfd-consent input[type="checkbox"] { margin: 0 0.45rem 0 0; vertical-align: middle; }
.cfd-consent label,
.cfd-checks label,
span.cfd-check label { display: inline; vertical-align: middle; }
span.cfd-check { display: block; margin: 0.3rem 0; }
.cfd-checks input[type="checkbox"] { margin: 0 0.35rem 0 0; vertical-align: middle; }
.cfd-honey { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.cfd-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }

.cfd-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.cfd-table th, .cfd-table td { border-bottom: 1px solid var(--cfd-rule); padding: 0.4rem 0.35rem; text-align: left; vertical-align: top; }
.cfd-admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
