/* Escala de igreja, page only */

.esc {
  --esc-accent: #1f6feb;
  --esc-accent-dark: #0d47c2;
  --esc-navy: #0b1f4d;
  --esc-title: #1546c9;
  --esc-ink: #0f172a;
  --esc-body: #334155;
  --esc-muted: #64748b;
  --esc-line: #e3e8f1;
  --esc-card: #fff;
  --esc-soft: #f7f9fc;
  --esc-head: #eaf1fc;
  --esc-lead: #475569;
  --esc-amber: #b45309;
  display: grid;
  gap: 16px;
  align-items: start;
  margin: 0 0 28px;
  color: var(--esc-ink);
}

.esc,
.esc * {
  overflow-wrap: normal;
  word-break: normal;
}

.esc [hidden] { display: none !important; }

@media (min-width: 1100px) {
  .esc {
    grid-template-columns: 290px minmax(0, 1fr) 290px;
    grid-template-areas:
      "head head head"
      "left center right";
  }

  .esc-head { grid-area: head; }
  .esc-left { grid-area: left; }
  .esc-center { grid-area: center; }
  .esc-right { grid-area: right; }
}

/* Break out of the 1152px article column, same as the converter pages */
@media (min-width: 1360px) {
  .esc {
    --esc-w: min(1600px, calc(100vw - 96px));
    width: var(--esc-w);
    margin-left: calc((100% - var(--esc-w)) / 2);
    grid-template-columns: clamp(300px, 21vw, 340px) minmax(0, 1fr) clamp(290px, 20vw, 330px);
    column-gap: 22px;
  }
}

.esc-left,
.esc-center,
.esc-right,
.esc-head {
  min-width: 0;
}

.esc-right {
  display: grid;
  gap: 14px;
}

.article .esc p,
.article .esc li,
.article .esc h2,
.article .esc ol,
.article .esc ul,
.article .esc dl,
.article .esc dd {
  margin: 0;
}

/* Header: title + steps */

.esc-head {
  display: grid;
  gap: 14px;
  align-items: center;
}

@media (min-width: 1100px) {
  .esc-head { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); }
}

.esc-title {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.esc-church {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #e3edfd;
  color: var(--esc-accent-dark);
}

.esc-church svg { width: 36px; height: 36px; }

.article .esc-h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--esc-navy);
}

.article .esc-lead {
  margin: 4px 0 0;
  color: var(--esc-lead);
  font-size: 1.08rem;
  line-height: 1.35;
}

/* Steps (same compact card as the converter pages) */

.esc-stepbar {
  padding: 12px;
  background: var(--esc-card);
  border: 1px solid var(--esc-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.article .esc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.article .esc-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.esc-step > span:last-child { min-width: 0; }

.esc-step strong,
.esc-step span span { display: block; }

.esc-step strong {
  color: var(--esc-ink);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.esc-step span span {
  color: var(--esc-muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.esc-step-n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.esc-step:first-child .esc-step-n,
.esc-step.is-on .esc-step-n {
  background: var(--esc-accent);
  color: #fff;
}

.article .esc-step:first-child strong,
.article .esc-step.is-on strong { color: var(--esc-accent); }

/* Cards */

.esc-panel,
.esc-sheet {
  background: var(--esc-card);
  border: 1px solid var(--esc-line);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.esc-panel {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.article .esc-sec {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 2px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--esc-navy);
}

.esc-sec svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--esc-accent);
}

/* Form */

.esc-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--esc-ink);
}

.esc-input,
.esc-textarea,
.esc-select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  color: var(--esc-ink);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
  letter-spacing: normal;
  padding: 8px 12px;
}

.esc-textarea {
  resize: vertical;
  min-height: 4.2rem;
}

.article .esc-hint {
  margin-top: 5px;
  color: var(--esc-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.esc-services {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 8px 16px;
}

.esc-services .esc-check { font-size: 0.86rem; white-space: nowrap; }

.esc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--esc-body);
}

.esc-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--esc-accent);
}

.esc-roles {
  display: grid;
  gap: 8px;
}

.esc-role {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--esc-line);
  border-radius: 10px;
  background: var(--esc-soft);
}

.esc-role-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.esc-role .esc-role-name {
  padding: 5px 10px;
  font-weight: 700;
  font-size: 0.86rem;
}

.esc-role .esc-textarea {
  font-size: 0.86rem;
  padding: 6px 10px;
}

.esc-role-x {
  border: 0;
  background: transparent;
  color: var(--esc-muted);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
}

.esc-role-x:disabled {
  opacity: 0.35;
  cursor: default;
}

.esc-add {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--esc-accent);
  font: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 0;
}

.esc-add:disabled {
  opacity: 0.4;
  cursor: default;
}

.esc-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--esc-accent);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(31, 111, 235, 0.25);
}

.esc-submit:hover { background: var(--esc-accent-dark); }

.esc-submit svg { width: 22px; height: 22px; }

.article .esc-quiet {
  display: flex;
  gap: 14px;
  margin-top: -4px;
}

.esc-link {
  border: 0;
  background: transparent;
  color: var(--esc-muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.article .esc-status {
  font-size: 0.84rem;
  color: var(--esc-body);
}

.esc-status:empty { display: none; }

.esc-status.is-bad {
  color: #b91c1c;
  font-weight: 700;
}

/* Sheet */

.esc-sheet {
  padding: 14px 16px 16px;
  min-width: 0;
}

.esc-empty { padding: 22px 18px; }

.article .esc-empty-title {
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--esc-navy);
}

.esc-empty p:last-child { color: var(--esc-muted); }

.esc-sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.article .esc-sheet-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--esc-navy);
}

.esc-sheet-title svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--esc-accent);
}

.esc-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.esc-views {
  display: flex;
  margin-left: auto;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  overflow: hidden;
}

.esc-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: #fff;
  color: var(--esc-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
}

.esc-view + .esc-view { border-left: 1px solid #d9e0ea; }

.esc-view svg { width: 16px; height: 16px; }

.esc-view.is-on {
  background: var(--esc-accent);
  color: #fff;
}

.article .esc-notes {
  list-style: none;
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #fff7ed;
  border-radius: 8px;
  color: var(--esc-amber);
  font-size: 0.8rem;
  line-height: 1.35;
}

/* Table */

.esc-table-wrap { overflow-x: auto; }

.article .esc-table {
  display: table;
  width: 100%;
  min-width: 520px;
  max-width: none;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--esc-line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.86rem;
}

.article .esc-table thead { display: table-header-group; }
.article .esc-table tbody { display: table-row-group; }

.article .esc-table tr {
  display: table-row;
  width: auto;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: none;
}

.article .esc-table th,
.article .esc-table td {
  min-width: 0;
  letter-spacing: normal;
  border: 0;
  background: #fff;
}

.article .esc-table th {
  padding: 8px 10px;
  background: var(--esc-head);
  color: var(--esc-ink);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: left;
}

.article .esc-table th:nth-child(-n+3) { text-align: center; }

.article .esc-table td {
  padding: 3px 10px;
  border-top: 1px solid #eef2f7;
  vertical-align: middle;
  color: var(--esc-body);
  font-weight: 400;
  line-height: 1.3;
}

.article .esc-table tr.is-day-start td { border-top: 2px solid #d5deea; }
.article .esc-table tbody tr:first-child td { border-top: 0; }
.article .esc-table tr.is-slot-start td { border-top-color: #dfe6f0; }

.article .esc-table td.esc-date-cell,
.article .esc-table td.esc-day-cell,
.article .esc-table td.esc-when-cell {
  text-align: center;
  border-right: 1px solid #eef2f7;
}

.esc-date,
.esc-year { display: block; }

.esc-date {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--esc-navy);
}

.esc-year {
  font-size: 0.78rem;
  color: var(--esc-muted);
}

.esc-day {
  display: inline-block;
  min-width: 2.6rem;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--esc-body);
  font-size: 0.86rem;
  font-weight: 800;
}

.esc-day.is-d0 { background: #fee2e2; color: #dc2626; }
.esc-day.is-d3 { background: #dbeafe; color: #1d4ed8; }

.article .esc-table td.esc-when-cell { color: var(--esc-body); }

.article .esc-table tbody tr:nth-child(even) td.esc-role-cell,
.article .esc-table tbody tr:nth-child(even) td.esc-name { background: var(--esc-soft); }

.article .esc-table td.esc-name { padding: 2px 6px; }

.esc-pick {
  width: 100%;
  min-width: 7rem;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--esc-ink);
  font: inherit;
  font-size: 0.86rem;
  letter-spacing: normal;
  padding: 2px 22px 2px 4px;
  cursor: pointer;
}

.esc-pick:hover,
.esc-pick:focus {
  border-color: #d9e0ea;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 4px center / 16px no-repeat;
}

.article .esc-table td.is-blocked { background: #fff7ed; }
.article .esc-table td.is-tight { box-shadow: inset 3px 0 0 #f59e0b; }

.esc-print-name { display: none; }

.article .esc-counts {
  margin-top: 12px;
  color: var(--esc-body);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Calendar */

.esc-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.esc-cal-wd {
  padding: 6px 4px;
  border-radius: 6px;
  background: var(--esc-head);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.esc-cal-day {
  min-height: 64px;
  padding: 4px 5px 6px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.esc-cal-day.is-blank {
  border-color: transparent;
  background: transparent;
}

.esc-cal-day.has-slot {
  border-color: #cfdcf5;
  background: #f8fbff;
}

.esc-cal-day.is-closed { background: #fff7ed; }

.esc-cal-n {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--esc-muted);
}

.esc-cal-slot { margin-top: 4px; }

.esc-cal-when {
  display: inline-block;
  margin-bottom: 2px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.66rem;
  font-weight: 800;
}

.article .esc-cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article .esc-cal-list li {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--esc-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.esc-cal-list b {
  color: var(--esc-ink);
  font-weight: 600;
}

.esc-cal-off {
  display: block;
  margin-top: 4px;
  color: #c2410c;
  font-size: 0.68rem;
  font-weight: 700;
}

/* Right column */

.esc-actions {
  display: grid;
  gap: 10px;
}

.esc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--esc-accent);
  background: var(--esc-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 12px;
  cursor: pointer;
}

.esc-btn:hover { filter: brightness(0.95); }

.esc-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

.esc-btn-ghost {
  background: #fff;
  color: var(--esc-accent-dark);
}

.esc-sum { display: grid; }

.esc-sum-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.84rem;
  line-height: 1.3;
}

.esc-sum-row:last-child { border-bottom: 0; }

.esc-sum-row::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--esc-navy);
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}

.esc-sum-row dt { color: var(--esc-muted); }

.article .esc-sum-row dd {
  color: var(--esc-ink);
  font-weight: 600;
}

.esc-sum-row.is-cal { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm12 8H5v10h14V10z'/%3E%3C/svg%3E"); }
.esc-sum-row.is-church { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 1h2v2h2v2h-2v2.3l5 3.2V13l2 1v9h-6v-4a2 2 0 0 0-4 0v4H4v-9l2-1v-2.5l5-3.2V5H9V3h2V1z'/%3E%3C/svg%3E"); }
.esc-sum-row.is-people { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm7 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM9 13c-3.3 0-7 1.6-7 4v3h14v-3c0-2.4-3.7-4-7-4zm7 0c-.4 0-.8 0-1.2.1 1.3.9 2.2 2.2 2.2 3.9v3h6v-3c0-2.4-3.5-4-7-4z'/%3E%3C/svg%3E"); }
.esc-sum-row.is-roles { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h3v3H4V5zm5 0h11v3H9V5zm-5 5.5h3v3H4v-3zm5 0h11v3H9v-3zM4 16h3v3H4v-3zm5 0h11v3H9v-3z'/%3E%3C/svg%3E"); }
.esc-sum-row.is-off { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm12 8H5v10h14V10zm-9.8 2.2 1.4-1.4 1.4 1.4 1.4-1.4 1.4 1.4-1.4 1.4 1.4 1.4-1.4 1.4-1.4-1.4-1.4 1.4-1.4-1.4 1.4-1.4z'/%3E%3C/svg%3E"); }
.esc-sum-row.is-warn { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm1 15h-2v2h2v-2zm0-7h-2v5h2v-5z'/%3E%3C/svg%3E"); }
.esc-sum-row.is-repeat { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z'/%3E%3C/svg%3E"); }
.esc-sum-row.is-doc { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v15H6V2zm8 1.5V8h4.5L14 3.5zM8 12h8v2H8v-2zm0 4h8v2H8v-2z'/%3E%3C/svg%3E"); }

.esc-tips {
  background: #fffaeb;
  border: 1px solid #fbefc4;
  border-radius: 14px;
  padding: 14px 16px 16px;
}

.article .esc-tips h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--esc-navy);
}

.esc-tips h2 svg {
  width: 28px;
  height: 28px;
  color: #f5c518;
  flex: 0 0 auto;
}

.article .esc-tips ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.article .esc-tips li {
  position: relative;
  margin: 0;
  padding-left: 30px;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--esc-ink);
}

.article .esc-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f5c518 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%230b1f4d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m5.5 10.3 3 2.9 6-6.2'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.esc-btn:focus-visible,
.esc-submit:focus-visible,
.esc-view:focus-visible,
.esc-input:focus-visible,
.esc-textarea:focus-visible,
.esc-select:focus-visible,
.esc-pick:focus-visible,
.esc-link:focus-visible,
.esc-add:focus-visible {
  outline: 2px solid var(--esc-accent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .article .esc-h1 { font-size: 1.45rem; }
  .article .esc-lead { font-size: 0.98rem; }
  .esc-church { width: 48px; height: 48px; }
  .esc-church svg { width: 28px; height: 28px; }
  .esc-stepbar { display: none; }
  .esc-views { margin-left: 0; }

  .esc-cal { grid-template-columns: 1fr; }
  .esc-cal-wd,
  .esc-cal-day.is-blank,
  .esc-cal-day:not(.has-slot):not(.is-closed) { display: none; }
  .esc-cal-day { min-height: 0; }
  .article .esc-cal-list li { font-size: 0.8rem; white-space: normal; }
}

html[data-theme="dark"] .esc {
  --esc-navy: #e2e8f0;
  --esc-title: #93b4ff;
  --esc-ink: #e5e7eb;
  --esc-body: #cbd5e1;
  --esc-muted: #94a3b8;
  --esc-line: #1f2937;
  --esc-card: #0f172a;
  --esc-soft: #111827;
  --esc-head: #16213a;
  --esc-lead: #a5b8f5;
  --esc-amber: #fdba74;
}

html[data-theme="dark"] .esc-input,
html[data-theme="dark"] .esc-textarea,
html[data-theme="dark"] .esc-select,
html[data-theme="dark"] .esc-btn-ghost,
html[data-theme="dark"] .esc-view,
html[data-theme="dark"] .article .esc-table td,
html[data-theme="dark"] .esc-cal-day {
  background: #0b1220;
  color: #e5e7eb;
  border-color: #1f2937;
}

html[data-theme="dark"] .esc-btn-ghost { border-color: var(--esc-accent); color: #93b4ff; }
html[data-theme="dark"] .esc-view.is-on { background: var(--esc-accent); color: #fff; }
html[data-theme="dark"] .esc-views,
html[data-theme="dark"] .esc-view + .esc-view { border-color: #1f2937; }
html[data-theme="dark"] .esc-church { background: #16213a; color: #93b4ff; }
html[data-theme="dark"] .esc-step-n { background: #334155; color: #cbd5e1; }
html[data-theme="dark"] .article .esc-step:first-child strong,
html[data-theme="dark"] .article .esc-step.is-on strong { color: #93b4ff; }
html[data-theme="dark"] .esc-stepbar { background: var(--esc-card); border-color: var(--esc-line); }
html[data-theme="dark"] .article .esc-table tbody tr:nth-child(even) td.esc-role-cell,
html[data-theme="dark"] .article .esc-table tbody tr:nth-child(even) td.esc-name { background: #111827; }
html[data-theme="dark"] .article .esc-table td,
html[data-theme="dark"] .article .esc-table tr.is-day-start td,
html[data-theme="dark"] .article .esc-table td.esc-date-cell,
html[data-theme="dark"] .article .esc-table td.esc-day-cell,
html[data-theme="dark"] .article .esc-table td.esc-when-cell { border-color: #1f2937; }
html[data-theme="dark"] .esc-day { background: #1e293b; color: #cbd5e1; }
html[data-theme="dark"] .esc-day.is-d0 { background: #3f1d24; color: #fca5a5; }
html[data-theme="dark"] .esc-day.is-d3 { background: #1e2b4d; color: #93b4ff; }
html[data-theme="dark"] .esc .esc-pick {
  background-color: transparent;
  border-color: transparent;
  color: #e5e7eb;
}

html[data-theme="dark"] .esc .esc-pick:hover,
html[data-theme="dark"] .esc .esc-pick:focus { background-color: #0f172a; border-color: #334155; }
html[data-theme="dark"] .esc-pick option { background: #0f172a; color: #e5e7eb; }
html[data-theme="dark"] .article .esc-table td.is-blocked,
html[data-theme="dark"] .esc-cal-day.is-closed,
html[data-theme="dark"] .article .esc-notes { background: #3b2412; }
html[data-theme="dark"] .esc-cal-day.has-slot { background: #0f1a33; border-color: #1e3a6e; }
html[data-theme="dark"] .esc-cal-when { background: #1e2b4d; color: #93b4ff; }
html[data-theme="dark"] .esc-badge { background: #052e16; color: #bbf7d0; }
html[data-theme="dark"] .esc-role { background: #111827; }
html[data-theme="dark"] .esc-sum-row,
html[data-theme="dark"] .article .esc-table tr.is-slot-start td { border-color: #1f2937; }
html[data-theme="dark"] .esc-tips { background: #292010; border-color: #854d0e; }

@media print {
  body * { visibility: hidden; }
  #esc-sheet,
  #esc-sheet * { visibility: visible; }
  #esc-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  .esc-no-print { display: none !important; }
  .esc-pick { display: none !important; }
  .esc-print-name { display: inline; }
  .esc-table-wrap { overflow: visible; }
  .esc-notes { color: #000; background: transparent; }
}
