/* ============================================================
   Theme color overrides — replace bright green with slate blue
   ============================================================ */
:root {
  --accent-color:  #2d5fa6 !important;
  --primary-color: #1a1f2e !important;
}

/* ============================================================
   Disable all WOW / animation classes — just show content
   ============================================================ */
.wow { visibility: visible !important; animation: none !important; }
.text-anime-style-2 { opacity: 1 !important; }

/* ============================================================
   Hero report screenshot
   ============================================================ */
.hero-report-preview {
  padding: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  margin-left: 16px;
  position: relative;
  overflow: hidden;
}

.report-screenshot-img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  display: block;
}

/* ============================================================
   Sample report section
   ============================================================ */
.sd-report-section { background: #f7f7f5; }

.sd-report-frame {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0da;
  border-radius: 10px;
  padding: 32px;
  overflow: hidden;
}

.sd-report-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #f0f0eb;
  color: #6b7280;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.sd-report-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

/* ============================================================
   Sediment — custom overrides & page-specific styles
   Loaded after theme CSS. Controls case report, intake,
   processing, privacy, and wordmark.
   ============================================================ */

:root {
  --sd-bg:      #fafaf8;
  --sd-fg:      #1a1a1a;
  --sd-muted:   #6b7280;
  --sd-border:  #e5e5e0;
  --sd-radius:  6px;
}

/* Landing page — left-align CTA buttons */
.section-btn { text-align: left !important; }

/* ============================================================
   Wordmark
   ============================================================ */
.sediment-wordmark {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
}
.sediment-footer-logo {
  font-size: 1.6rem;
}

/* ============================================================
   Utility
   ============================================================ */
.muted  { color: var(--sd-muted); }
.small  { font-size: 0.875rem; }
.mt-sm  { margin-top: 8px; }

/* ============================================================
   Intake form — constrain width inside Bootstrap container
   ============================================================ */
.intake-wrap > .container,
.processing-wrap > .container {
  max-width: 640px;
}

.intake-wrap {
  padding: 56px 0;
  min-height: calc(100vh - 160px);
  background: var(--sd-bg);
  color: var(--sd-fg);
}
.intake-wrap h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  color: var(--sd-fg);
}
.intake-wrap .sub {
  color: var(--sd-muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

/* Form errors */
.form-errors {
  background: #3a1a1a;
  border-left: 3px solid var(--sd-red, #e65757);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 24px;
  color: #f5a0a0;
  font-size: 0.9rem;
}
.form-errors p { margin: 0; }
.form-errors p + p { margin-top: 6px; }

/* Form fields */
.field {
  margin-bottom: 28px;
}
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--sd-fg);
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  color: var(--sd-fg);
  transition: border-color 0.15s;
  outline: none;
  box-shadow: none;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--sd-fg);
  box-shadow: none;
}
.field textarea {
  resize: vertical;
  min-height: 220px;
}
.field-hint {
  margin: 4px 0 8px;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--sd-muted);
  line-height: 1.55;
  padding-left: 2px;
  border-left: 2px solid var(--sd-border);
  padding-left: 8px;
}

/* Framing angle checkboxes */
.angles-wrap {
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius);
  overflow: hidden;
  min-height: 200px;
  background: white;
}
.angle-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--sd-border);
  cursor: pointer;
  transition: background 0.1s;
}
.angle-item:last-child { border-bottom: none; }
.angle-item:hover { background: #f5f5f2; }
.angle-item input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.angle-item label {
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
  color: var(--sd-fg);
}

/* Shimmer for loading angles */
.shimmer {
  background: linear-gradient(90deg, #f0f0ee 25%, #e8e8e6 50%, #f0f0ee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  height: 16px;
  width: 70%;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.angle-item.loading label { visibility: hidden; }
.angle-item.loading .shimmer-label {
  display: flex;
  align-items: center;
  width: 100%;
}

/* "Something else" inline input */
.angle-other-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-family: inherit;
  background: transparent;
  padding: 0;
  color: var(--sd-fg);
}
.angle-other-input::placeholder { color: var(--sd-muted); }

/* Intake submit button */
.intake-wrap .btn-default {
  margin-top: 4px;
}

/* ============================================================
   Processing page
   ============================================================ */
.processing-wrap {
  padding: 96px 0;
  text-align: center;
  background: var(--sd-bg);
  min-height: calc(100vh - 160px);
}
.processing-wrap h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--sd-fg);
}
.processing-wrap p {
  color: var(--sd-muted);
  font-size: 0.95rem;
}
.processing-hint {
  font-size: 0.82rem;
  color: var(--sd-muted);
  margin-top: 12px;
}
.processing-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--sd-border);
  border-top-color: var(--sd-fg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   Privacy / policy page
   ============================================================ */
.policy-wrap {
  padding: 56px 0 80px;
  background: var(--sd-bg);
  color: var(--sd-fg);
}
.policy-wrap > .container {
  max-width: 720px;
}
.policy-wrap h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--sd-fg);
}
.policy-date {
  color: var(--sd-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}
.policy-wrap h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--sd-fg);
}
.policy-wrap p, .policy-wrap ul, .policy-wrap li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--sd-fg);
  margin-bottom: 10px;
}
.policy-wrap ul {
  padding-left: 20px;
}
.policy-wrap a { color: #2563eb; }

/* ============================================================
   Case report page
   ============================================================ */
.case-share-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.share-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sd-muted);
  text-decoration: none;
  cursor: pointer;
}
.share-link:hover { color: var(--sd-fg); }


.case-wrap {
  padding: 48px 0 80px;
  min-height: 80vh;
  background: var(--sd-bg);
  color: var(--sd-fg);
}
.case-container {
  max-width: 740px;
}
.case-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--sd-fg);
}
.case-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.case-header-top h1 {
  margin-bottom: 0;
  min-width: 0;
  flex: 1;
}
.case-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sd-muted);
  margin-bottom: 8px;
}
.case-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--sd-fg);
}
.case-type {
  font-size: 0.9rem;
  color: var(--sd-muted);
}

/* Sections */
.case-section {
  margin-bottom: 48px;
}
.section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sd-border);
  color: var(--sd-fg);
}

/* Playbook — markdown rendered by marked.js */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  font-weight: 700;
  margin: 1.4em 0 0.5em;
  line-height: 1.3;
  color: var(--sd-fg);
}
.markdown-body h1 { font-size: 1.4rem; }
.markdown-body h2 { font-size: 1.15rem; }
.markdown-body h3 { font-size: 1rem; }
.markdown-body p  { margin-bottom: 0.9em; color: var(--sd-fg); }
.markdown-body ul,
.markdown-body ol { margin: 0.6em 0 0.9em 1.4em; }
.markdown-body li { margin-bottom: 0.3em; color: var(--sd-fg); }
.markdown-body strong { font-weight: 700; }
.markdown-body em    { font-style: italic; }

/* Institution contacts */
.contacts-grid {
  display: grid;
  gap: 16px;
}
.contact-card {
  padding: 16px;
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius);
  background: #fff;
}
.contact-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-muted);
  margin-bottom: 4px;
}
.contact-label {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--sd-fg);
}
.contact-value {
  font-size: 0.9rem;
  word-break: break-all;
  color: var(--sd-fg);
}
.contact-value a { color: #2563eb; text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }
.contact-verified {
  font-size: 0.75rem;
  color: var(--sd-muted);
  margin-top: 6px;
}

/* Regulations */
.regulations-list { display: flex; flex-direction: column; gap: 20px; }
.reg-item {
  padding: 18px;
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius);
  background: #fff;
}
.reg-name {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--sd-fg);
}
.reg-regulator {
  font-size: 0.8rem;
  color: var(--sd-muted);
  margin-bottom: 8px;
}
.reg-obligation {
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--sd-fg);
}
.reg-timeline {
  font-size: 0.88rem;
  margin-bottom: 4px;
  color: var(--sd-fg);
}
.reg-citation {
  font-size: 0.8rem;
  color: var(--sd-muted);
  margin-top: 4px;
}
.reg-notes {
  font-size: 0.85rem;
  color: var(--sd-muted);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--sd-border);
}

/* Behavior profile */
.behavior-grid { display: grid; gap: 16px; }
.behavior-item {
  padding: 16px;
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius);
  background: #fff;
}
.behavior-item--highlight {
  border-color: #2563eb;
  background: #eff6ff;
}
.behavior-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sd-muted);
  margin-bottom: 6px;
}
.behavior-value {
  line-height: 1.5;
  color: var(--sd-fg);
}

/* Disclaimer */
.case-disclaimer {
  margin: 40px 0 32px;
  padding: 16px 20px;
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius);
  font-size: 0.8rem;
  color: var(--sd-muted);
  line-height: 1.6;
}

/* Footer / share */
.case-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--sd-border);
}
.share-btn {
  background: transparent;
  color: var(--sd-muted);
  border: 1px solid var(--sd-border);
  padding: 6px 14px;
  border-radius: var(--sd-radius);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.share-btn:hover { color: var(--sd-fg); border-color: var(--sd-fg); }
.share-confirm {
  font-size: 0.85rem;
  color: var(--sd-muted);
}
