:root {
  --ink: #071a5f;
  --muted: #536284;
  --paper: #fff9ed;
  --surface: #ffffff;
  --line: #eadfd0;
  --teal: #079aa6;
  --teal-dark: #057985;
  --pink: #ef2d6f;
  --gold: #f5a800;
  --green: #5f8f2f;
  --soft-teal: #e0f5f5;
  --soft-pink: #ffe5ee;
  --shadow: 0 18px 45px rgba(7, 26, 95, .10);
  --radius: 8px;
}

body.page-id-27230 #main-content {
  background: #fff9ed;
}

body.page-id-27230 #main-content > .container {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

body.page-id-27230 #main-content .container:before,
body.page-id-27230 #sidebar,
body.page-id-27230 .entry-title.main_title,
body.page-id-27230 .et_post_meta_wrapper {
  display: none !important;
}

body.page-id-27230 #left-area {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

body.page-id-27230 article.page,
body.page-id-27230 .entry-content,
body.page-id-27230 .ndh-mariage-couple-section,
body.page-id-27230 .ndh-mariage-couple-section .et_pb_row,
body.page-id-27230 .ndh-mariage-couple-section .et_pb_column,
body.page-id-27230 .ndh-mariage-couple-section .et_pb_module,
body.page-id-27230 .ndh-mariage-couple-section .et_pb_code_inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0 18%, rgba(7, 154, 166, .12), transparent 24%),
    radial-gradient(circle at 100% 6%, rgba(245, 168, 0, .15), transparent 20%),
    radial-gradient(circle at 94% 82%, rgba(239, 45, 111, .10), transparent 22%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.wedding-app {
  min-height: 100vh;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: 420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding: 62px 0 42px;
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

h3 {
  font-size: 21px;
  line-height: 1.18;
}

.lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: #273260;
  font-size: 20px;
  font-weight: 700;
}

.hero-guide {
  display: block;
  max-width: 820px;
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  color: #24304d;
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.hero-guide p {
  display: block;
  margin: 0;
  font-weight: 750;
}

.hero-guide p + p {
  margin-top: 10px;
}

.hero-guide ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.hero-guide li {
  color: #24304d;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 720;
}

.hero-actions,
.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 12px 24px rgba(239, 45, 111, .22);
}

.button.secondary,
.button.ghost {
  border-color: rgba(7, 26, 95, .16);
  background: #fff;
  color: var(--ink);
}

.button.ghost {
  box-shadow: none;
}

.button.dossier-action {
  border-color: rgba(7, 26, 95, .18);
  background: var(--gold);
  color: #fff;
}

.hero-panel,
.intro-card,
.preview-pane,
.choice-card,
.field-card,
.reading-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
  border-top: 6px solid var(--teal);
}

.hero-panel.progress-cards {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wedding-app:not(.is-public-demo) .hero-panel.progress-cards {
  margin-top: 195px;
}

.progress-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.progress-card-link {
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.progress-card-link:hover,
.progress-card-link:focus-visible {
  border-color: rgba(245, 168, 0, .75);
  box-shadow: 0 18px 40px rgba(7, 26, 95, .14);
  outline: 0;
  transform: translateY(-1px);
}

.progress-card:nth-child(2) {
  border-top-color: var(--gold);
}

.progress-card-title {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.public-access-card {
  border-color: rgba(7, 26, 95, .14);
  border-top-width: 1px;
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.public-access-card .button.primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(245, 168, 0, .18);
}

.public-access-card .button.primary:hover {
  background: #e59c00;
  color: var(--ink);
}

.public-link-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.public-link-form label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.public-link-row {
  display: grid;
  gap: 8px;
}

.public-link-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(7, 26, 95, .14);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

.public-link-row input:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 154, 166, .13);
}

.public-link-message {
  min-height: 20px;
  margin-top: 4px !important;
  color: var(--teal-dark) !important;
  font-size: 13px;
}

.is-public-demo .hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-bottom: 28px;
  align-items: start;
}

.is-public-demo .hero-content {
  max-width: 920px;
}

.is-public-demo .hero-panel.progress-cards {
  width: auto;
  max-width: 340px;
}

.is-public-demo .hero-panel.progress-cards > .progress-card:first-child {
  margin-top: 42px;
}

.is-public-demo .public-access-card {
  margin-top: 22px;
  width: 100%;
  max-width: 920px;
}

@media (min-width: 1041px) {
  .is-public-demo .public-access-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1.15fr);
    column-gap: 20px;
    align-items: start;
  }

  .is-public-demo .public-access-card .public-link-form {
    margin-top: 0;
  }

  .is-public-demo .public-access-card .public-link-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.hero-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
}

.hero-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1e7d9;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--pink));
  transition: width .25s ease;
}

.workspace {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 56px;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 249, 237, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(7, 26, 95, .07);
}

.tab.dossier-tab {
  margin-left: auto;
  border-color: rgba(245, 168, 0, .65);
  background: #fff8dc;
  color: #6f4a00;
}

.tab.dossier-tab.is-active {
  background: var(--gold);
  color: #fff;
}

.tab {
  min-height: 42px;
  flex: 1;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.tab.is-active {
  background: var(--ink);
  color: #fff;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  margin-top: 20px;
  align-items: start;
}

.main-pane {
  min-width: 0;
}

.layout.is-full-width-view {
  grid-template-columns: minmax(0, 1fr);
}

.layout.is-full-width-view .preview-pane {
  display: none;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.intro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 24px;
  border-top: 6px solid var(--teal);
}

.intro-card .section-kicker,
.preview-header .section-kicker {
  margin-bottom: 9px;
}

.celebration-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9fc;
}

.celebration-mode-switch button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: calc(var(--radius) - 3px);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.celebration-mode-switch button.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 26, 95, .18);
}

.celebration-mode-switch button:focus-visible {
  outline: 3px solid rgba(242, 167, 22, .42);
  outline-offset: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.is-public-demo .form-grid {
  margin-top: -16px;
  padding: 0 24px 24px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.is-public-demo #panel-steps > .intro-card {
  margin-bottom: 0;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.is-public-demo .public-name-field {
  background: #fff;
}

.field-card {
  padding: 16px;
  box-shadow: none;
}

.field-card label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 900;
}

.field-card input,
.field-card textarea,
.filters input,
.booklet-editor {
  width: 100%;
  border: 1px solid rgba(7, 26, 95, .14);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  padding: 13px 14px;
}

.field-card textarea {
  min-height: 110px;
  resize: vertical;
}

.field-card input:focus,
.field-card textarea:focus,
.filters input:focus,
.booklet-editor:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 154, 166, .13);
}

.field-card.full {
  grid-column: 1 / -1;
}

.accordion-list {
  display: grid;
  gap: 12px;
}

.steps-finish {
  display: flex;
  justify-content: center;
  margin: 22px 0 4px;
}

.steps-finish .button {
  min-width: min(100%, 280px);
}

.step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.step summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}

.step summary::-webkit-details-marker {
  display: none;
}

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

.step-number {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--soft-teal);
  color: var(--teal-dark);
  font-weight: 950;
}

.step-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.step-state {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: var(--radius);
  background: #fff9ed;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.step[open] .step-state {
  background: var(--soft-pink);
  color: var(--pink);
}

.step-body {
  padding: 0 20px 20px;
}

.step-help {
  margin: 0 0 14px;
  color: #273260;
  font-weight: 700;
}

.choices {
  display: grid;
  gap: 10px;
}

.choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  box-shadow: none;
}

.selected-reading,
.note-box {
  border: 1px solid rgba(7, 26, 95, .12);
  border-radius: var(--radius);
  background: #fff;
}

.selected-reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.selected-reading h4 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.18;
}

.selected-reading p {
  margin: 0;
  color: #24304d;
  font-weight: 650;
  line-height: 1.5;
}

.selected-reading-label {
  display: inline-flex;
  margin: 0 0 8px !important;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: var(--soft-teal);
  color: var(--teal-dark) !important;
  font-size: 12px;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-transform: uppercase;
}

.note-box {
  margin-top: 12px;
  padding: 13px 14px;
  background: #fff9ed;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.fixed-liturgical-text {
  display: block;
  margin-top: 6px;
  white-space: pre-line;
  color: #24304d;
  font-weight: 700;
  line-height: 1.5;
}

.choice-card input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--teal-dark);
}

.choice-card.is-selected {
  border-color: rgba(7, 154, 166, .56);
  background: rgba(224, 245, 245, .52);
}

.choice-title {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 950;
}

.choice-text {
  margin: 0;
  color: #24304d;
  white-space: pre-wrap;
}

.choice-text .booklet-inline-rubric,
.choice-text .choice-rubric-line {
  color: #b3263a;
  font-style: italic;
  font-weight: 850;
}

.optional-input {
  margin-top: 12px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-buttons button,
.mini-btn {
  min-height: 40px;
  border: 1px solid rgba(7, 26, 95, .14);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  padding: 9px 11px;
}

.filter-buttons button.is-active,
.mini-btn.is-active {
  border-color: var(--teal);
  background: var(--soft-teal);
  color: var(--teal-dark);
}

.selected-pill {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff9ed;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.filter-context {
  background: var(--soft-teal);
  color: var(--teal-dark);
}

.reading-grid {
  display: grid;
  gap: 12px;
}

.reading-card {
  padding: 20px;
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.reading-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.reading-card h3 {
  margin-bottom: 8px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: #fff9ed;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.badge.strong {
  background: var(--soft-pink);
  color: var(--pink);
}

.reading-highlight {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: #fff8dc;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.reading-excerpt {
  max-height: 168px;
  overflow: hidden;
  margin: 0 0 12px;
  color: #24304d;
  line-height: 1.55;
  white-space: pre-wrap;
}

.reading-card.is-expanded .reading-excerpt {
  max-height: none;
}

.reading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.reading-choose {
  display: none;
  margin-left: auto;
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 20px rgba(239, 45, 111, .18);
}

.reading-card.is-expanded .reading-choose {
  display: inline-flex;
}

.reading-choose.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.preview-pane {
  padding: 20px;
  border-top: 6px solid var(--pink);
}

.preview-booklet-button {
  width: 100%;
  margin-bottom: 16px;
}

.preview-header {
  margin-bottom: 14px;
}

.checklist {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff9ed;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.check-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eadfd0;
  color: #fff;
  font-size: 13px;
}

.check-item.is-done {
  color: var(--teal-dark);
}

.check-item.is-done .check-mark {
  background: var(--green);
}

.booklet-preview,
.booklet-editor {
  min-height: 360px;
  margin: 0;
  white-space: normal;
}

.booklet-preview {
  padding: 16px;
  border: 1px solid rgba(7, 26, 95, .10);
  border-radius: var(--radius);
  background: #fff;
  color: #172347;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
}

.booklet-editor {
  min-height: 680px;
  font-family: Georgia, "Times New Roman", serif;
}

.rich-booklet {
  font-family: Georgia, "Times New Roman", serif;
}

.rich-booklet h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.rich-booklet h2 {
  margin: 24px 0 8px;
  color: #b3263a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 900;
}

.rich-booklet h2.booklet-main-heading {
  color: var(--ink);
  font-size: 24px;
  text-transform: uppercase;
}

.rich-booklet p {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.55;
}

.rich-booklet .booklet-meta-line,
.rich-booklet .booklet-line-meta {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.rich-booklet .booklet-line-response {
  color: #1f2937;
  font-weight: 800;
}

.rich-booklet .booklet-line-rubric,
.rich-booklet .booklet-inline-rubric {
  color: #b3263a;
  font-style: italic;
  font-weight: 800;
}

.rich-booklet .booklet-line-rubric {
  font-size: 15px;
}

.booklet-preview.rich-booklet h1 {
  font-size: 24px;
}

.booklet-preview.rich-booklet h2 {
  font-size: 18px;
}

.booklet-preview.rich-booklet p {
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  min-width: min(420px, calc(100% - 32px));
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 18px 42px rgba(7, 26, 95, .24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dossier-intro,
.dossier-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.dossier-intro {
  margin-bottom: 14px;
  padding: 18px;
}

.dossier-intro p {
  margin: 0;
  color: #24304d;
  font-weight: 750;
}

.dossier-intro .button {
  margin-top: 14px;
}

.dossier-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.dossier-meta-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  background: #f8fbff;
}

.dossier-meta-card.is-external {
  border-left-color: var(--gold);
  background: #fffdf6;
}

.dossier-meta-card.is-paid {
  border-left-color: var(--green);
  background: #f7fff5;
}

.dossier-meta-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.dossier-meta-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
}

.dossier-meta-card p {
  margin: 0;
  color: #24304d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.dossier-meta-card a {
  color: var(--ink);
  font-weight: 950;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.send-box,
.intention-model-intro,
.external-dossier-box {
  border: 1px solid rgba(245, 168, 0, .65);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  background: #fff8dc;
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.send-box,
.external-dossier-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
}

.send-box h3,
.send-box h4,
.intention-model-intro h3,
.external-dossier-box h3 {
  margin: 0;
  color: var(--ink);
}

.send-box p,
.intention-model-intro p,
.external-dossier-box p {
  margin: 0;
  color: #24304d;
  font-weight: 750;
}

.external-dossier-box {
  border-color: rgba(83, 98, 132, .25);
  border-left-color: var(--muted);
  background: #f8fbff;
}

.external-dossier-box strong {
  color: var(--ink);
}

.send-box address {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.send-box-compact {
  margin-top: 0;
  box-shadow: none;
}

.dossier-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dossier-column {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
}

.dossier-column-shared {
  grid-column: 1 / -1;
}

.dossier-column > h3 {
  margin: 0 0 12px;
  color: var(--ink);
}

.dossier-grid {
  display: grid;
  gap: 12px;
}

.dossier-card {
  padding: 18px;
}

.dossier-status.is-external-dossier .dossier-card.is-locked {
  background: #f5f7fb;
  box-shadow: none;
  opacity: .78;
}

.dossier-status.is-external-dossier .dossier-card.is-locked h4,
.dossier-status.is-external-dossier .dossier-card.is-locked p {
  color: #536284;
}

.dossier-card h4 {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.dossier-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.dossier-state {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: var(--radius);
  background: #fff9ed;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dossier-state.received {
  background: var(--soft-teal);
  color: var(--teal-dark);
}

.dossier-state.submitted {
  background: #fff3c4;
  color: #7a5400;
}

.dossier-state.validated {
  background: rgba(95, 143, 47, .14);
  color: var(--green);
}

.dossier-state.to_request {
  background: var(--soft-pink);
  color: var(--pink);
}

.dossier-submit {
  width: 100%;
  margin-top: 14px;
}

.dossier-submitted-note {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff8dc;
  color: #594000 !important;
  font-size: 13px;
}

.intention-page {
  display: grid;
  gap: 18px;
}

.intention-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.intention-explainer h3,
.intention-explainer h4,
.intention-model h3,
.pillar-grid h4 {
  color: var(--ink);
}

.intention-explainer p,
.pillar-grid p,
.model-note,
.model-text p,
.signature-lines p {
  color: #24304d;
  font-weight: 700;
}

.intention-explainer aside {
  padding: 0;
  border-radius: var(--radius);
  background: transparent;
}

.intention-model-intro {
  padding: 18px 20px;
}

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

.pillar-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
}

.pillar-grid h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.pillar-grid p {
  margin: 0;
  font-size: 14px;
}

.intention-templates {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.intention-template-tabs {
  position: sticky;
  top: 74px;
  display: grid;
  gap: 8px;
}

.intention-template-tabs button {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.intention-template-tabs button.is-active {
  border-left-color: var(--pink);
  background: var(--ink);
  color: #fff;
}

.intention-template-tabs strong,
.intention-template-tabs span {
  display: block;
}

.intention-template-tabs span {
  color: inherit;
  font-size: 13px;
  line-height: 1.3;
  opacity: .82;
}

.intention-model {
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--pink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.intention-model h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.model-note {
  margin: 0 0 18px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--soft-teal);
}

.model-text {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.model-text p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
}

.signature-lines {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1040px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .is-public-demo .hero-panel.progress-cards {
    width: 100%;
    max-width: none;
  }

  .is-public-demo .hero-panel.progress-cards > .progress-card:first-child {
    margin-top: 0;
  }

  .wedding-app:not(.is-public-demo) .hero-panel.progress-cards {
    margin-top: 0;
  }

  .hero-panel,
  .preview-pane {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding: 46px 0 30px;
  }

  .lead {
    font-size: 18px;
  }

  .tabs,
  .intro-card,
  .filters,
  .form-grid,
  .dossier-meta-grid,
  .dossier-columns,
  .intention-explainer,
  .pillar-grid,
  .intention-templates {
    grid-template-columns: 1fr;
  }

  .tabs,
  .intro-card,
  .filters {
    display: grid;
  }

  .tab.dossier-tab {
    margin-left: 0;
  }

  .intention-template-tabs {
    position: static;
  }

  .intro-card {
    padding: 18px;
  }

  .celebration-mode-switch {
    width: 100%;
  }

  .step summary,
  .reading-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .selected-reading {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .step-state {
    align-self: flex-start;
  }
}

@media print {
  body {
    background: #fff;
  }

  .hero,
  .tabs,
  .main-pane,
  .checklist,
  .preview-header {
    display: none !important;
  }

  .workspace,
  .layout,
  .preview-pane {
    width: auto;
    margin: 0;
    display: block;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .booklet-preview {
    border: 0;
    font-size: 12pt;
  }
}
