/* Hemannonser.NET v2.12.7 – surface polish for remaining flows */
:root {
  --hem-bg: #f5f0e8;
  --hem-card: #fffaf3;
  --hem-card-strong: #ffffff;
  --hem-ink: #14202b;
  --hem-muted: #64748b;
  --hem-border: rgba(15, 23, 42, 0.12);
  --hem-brand: #0f766e;
  --hem-brand-dark: #123946;
  --hem-accent: #9a3412;
  --hem-soft: #ecfdf5;
  --hem-warn: #fff7ed;
  --hem-danger: #fee2e2;
  --hem-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.hem-report-page,
.hem-surface-page,
.hem-admin-surface {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem) 1rem 4rem;
}

.hem-report-hero,
.hem-surface-hero,
.hem-admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.hem-eyebrow {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  color: var(--hem-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .65rem;
}

.hem-report-hero h1,
.hem-surface-hero h1,
.hem-admin-hero h1 {
  margin: 0 0 .7rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.02;
  color: var(--hem-ink);
  letter-spacing: -0.04em;
}

.hem-lead {
  max-width: 62ch;
  margin: 0;
  color: #475569;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
}

.hem-report-card,
.hem-side-card,
.hem-panel-card,
.hem-admin-card {
  background: var(--hem-card-strong);
  border: 1px solid var(--hem-border);
  border-radius: 22px;
  box-shadow: var(--hem-shadow);
}

.hem-side-card,
.hem-admin-card {
  padding: 1.25rem;
}

.hem-side-card h2,
.hem-panel-card h2,
.hem-admin-card h2 {
  margin: 0 0 .65rem;
  color: var(--hem-ink);
  letter-spacing: -0.03em;
}

.hem-side-card p,
.hem-admin-card p {
  color: #475569;
  line-height: 1.55;
  margin: 0 0 .75rem;
}

.hem-report-grid,
.hem-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 1rem;
  align-items: start;
}

.hem-report-card {
  padding: clamp(1rem, 2.2vw, 1.6rem);
}

.hem-report-card form,
.hem-report-form,
.hem-surface-form {
  display: grid;
  gap: 1rem;
}

.hem-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.hem-field,
.hem-form-row,
.hem-report-card label {
  display: grid;
  gap: .38rem;
  color: #334155;
  font-weight: 750;
  font-size: .92rem;
}

.hem-field input,
.hem-field select,
.hem-field textarea,
.hem-report-card input,
.hem-report-card select,
.hem-report-card textarea,
.hem-surface-page input,
.hem-surface-page select,
.hem-surface-page textarea,
.hem-admin-surface input,
.hem-admin-surface select,
.hem-admin-surface textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 14px;
  padding: .75rem .9rem;
  background: #fff;
  color: var(--hem-ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .03);
}

.hem-field textarea,
.hem-report-card textarea,
.hem-surface-page textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.45;
}

.hem-input-help {
  color: var(--hem-muted);
  font-weight: 500;
  font-size: .82rem;
  line-height: 1.4;
}

.hem-actions,
.hem-report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-top: .25rem;
}

.hem-btn,
.hem-report-card button,
.hem-surface-page button,
.hem-admin-surface button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: .78rem 1.1rem;
  background: var(--hem-brand-dark);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.hem-btn.secondary,
.hem-actions a,
.hem-report-actions a {
  color: var(--hem-brand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hem-step-list,
.hem-check-list {
  display: grid;
  gap: .65rem;
  margin: .85rem 0 0;
  padding: 0;
  list-style: none;
}

.hem-step-list li,
.hem-check-list li {
  display: grid;
  grid-template-columns: 1.8rem minmax(0,1fr);
  gap: .55rem;
  align-items: start;
  color: #334155;
  line-height: 1.45;
}

.hem-step-list li::before,
.hem-check-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--hem-soft);
  color: var(--hem-brand);
  font-size: .85rem;
  font-weight: 900;
}

.hem-warning-card {
  padding: 1rem;
  background: var(--hem-warn);
  border: 1px solid rgba(154, 52, 18, .18);
  border-radius: 18px;
  color: #7c2d12;
  line-height: 1.5;
}

.hem-admin-list,
.hem-moderation-list {
  display: grid;
  gap: .85rem;
}

.hem-admin-list > *,
.hem-moderation-list > *,
.hem-admin-surface article,
.hem-surface-page article {
  border: 1px solid var(--hem-border);
  border-radius: 18px;
  background: #fff;
  padding: 1rem;
}

.hem-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .75rem 0;
}

.hem-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .8rem;
  font-weight: 850;
  background: #e6fffb;
  color: #0f766e;
}

/* Polish older generated pages without rewriting their code-behind */
body:has(form[action*="Report"]),
body:has(a[href*="/Report"]),
body:has(a[href*="/Publish"]),
body:has(a[href*="/Status"]),
body:has(a[href*="/Edit"]) {
  background: var(--hem-bg);
}

@media (max-width: 820px) {
  .hem-report-page,
  .hem-surface-page,
  .hem-admin-surface {
    padding: 1.2rem .9rem 3rem;
  }
  .hem-report-hero,
  .hem-surface-hero,
  .hem-admin-hero,
  .hem-report-grid,
  .hem-admin-grid,
  .hem-field-grid {
    grid-template-columns: 1fr;
  }
  .hem-report-hero h1,
  .hem-surface-hero h1,
  .hem-admin-hero h1 {
    font-size: 2.2rem;
  }
  .hem-report-card,
  .hem-side-card,
  .hem-panel-card,
  .hem-admin-card {
    border-radius: 18px;
  }
  .hem-actions,
  .hem-report-actions {
    align-items: stretch;
  }
  .hem-btn,
  .hem-report-card button,
  .hem-surface-page button,
  .hem-admin-surface button {
    width: 100%;
  }
}
