/* Cantico music planners (1.9): the planner as a full-width tool.
 * Uses the theme's design tokens (site.css). Class names follow the mockups. */
.cn-planner {
  --planner-ground: #ebe5d9; --card: #ffffff; --pl-gutter: 32px;
  --pl-eyebrow: var(--ochre, #8a5a22);
  font-family: var(--font-sans); color: var(--ink); font-size: 16px; line-height: 1.6;
}
.cn-planner--funeral { --planner-ground: var(--paper-sombre, #f4f2ee); --pl-eyebrow: var(--ink-faint, #6e6559); }
body.cn-tool { background: var(--planner-ground, #ebe5d9); margin: 0; }
body.cn-tool.is-funeral { --planner-ground: var(--paper-sombre, #f4f2ee); background: var(--paper-sombre, #f4f2ee); }
html.cn-pl-locked, html.cn-pl-locked body { overflow: hidden; }
.cn-pl-page { display: block; min-height: 100vh; }
.cn-planner.is-tool { background: var(--planner-ground); }
.cn-planner :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cn-planner button { font: inherit; }
.cn-planner .cn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 2px; font-size: 15px; cursor: pointer; text-decoration: none; }
.cn-pl-sr, .cn-planner .cn-pl-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cn-pl-eyebrow { margin: 0; font-size: 12px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.cn-pl-eyebrow--part { color: var(--pl-eyebrow); }
.cn-pl-eyebrow--ochre { color: var(--ochre); font-weight: 600; }
.cn-pl-link { background: none; border: 0; padding: 0; min-height: 32px; font: inherit; font-size: 15px; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.cn-pl-link:hover { color: var(--green-deep); }
.cn-planner.is-tool .cn-pl-app { min-height: calc(100vh - 60px); }
.cn-planner-loading, .cn-pl-noscript { max-width: 1360px; margin: 0 auto; padding: 32px var(--pl-gutter); color: var(--ink-faint); }

/* Funeral call bar (above the tool header) */
.cn-pl-callbar { background: var(--whatsapp, #1f6b53); padding: 10px var(--pl-gutter, 32px); }
.cn-pl-callbar .cn-callbar { max-width: 1360px; margin: 0 auto; box-shadow: none; padding: 0; }

/* Tool header */
.cn-pl-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; box-shadow: var(--shadow-sticky); }
.cn-planner:not(.is-tool) .cn-pl-header { position: relative; box-shadow: none; }
.cn-pl-header__in { position: relative; max-width: 1360px; margin: 0 auto; padding: 12px var(--pl-gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cn-pl-wordmark { font-family: var(--font-serif); font-size: 26px; font-weight: 500; line-height: 1; color: var(--ink); text-decoration: none; }
.cn-pl-wordmark:hover { color: var(--green); }
.cn-pl-divider { width: 1px; height: 28px; background: var(--rule); }
.cn-pl-name { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 0; }
.cn-planner .cn-pl-name__title { margin: 0; font-family: var(--font-serif); font-size: 20px; line-height: 1.2; font-weight: 500; color: var(--ink); }
.cn-planner--funeral .cn-pl-name__title { color: var(--ink-muted); }
.cn-pl-name__short { display: none; font-size: 13px; color: var(--ink-muted); }
.cn-pl-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-faint); }
.cn-pl-saved svg { color: var(--green); }
.cn-pl-saved[hidden], .cn-pl-hbtns [hidden] { display: none !important; }
.cn-pl-hbtns { display: flex; gap: 10px; align-items: center; }
.cn-pl-line { height: 0; background: var(--rule); }
.cn-pl-line span { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s; }
.cn-pl-sharemenu { position: absolute; right: var(--pl-gutter); top: calc(100% + 6px); z-index: 40; width: 280px; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; box-shadow: var(--shadow-sticky); }
.cn-pl-sharemenu .cn-btn { width: 100%; }
.cn-pl-sharemenu__msg { margin: 0; font-size: 13px; color: var(--ink-muted); }
.cn-pl-sharemenu__msg:empty { display: none; }

/* Summary strip */
.cn-pl-summary { max-width: 1360px; margin: 0 auto; padding: 28px var(--pl-gutter) 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.cn-pl-summary::after { content: ""; flex-basis: 100%; height: 0; border-bottom: 1px solid var(--rule-strong); margin-top: 14px; }
.cn-pl-summary__names { font-family: var(--font-serif); font-size: 30px; line-height: 1.2; font-weight: 500; overflow-wrap: anywhere; }
.cn-pl-summary__meta { font-size: 15px; color: var(--ink-muted); }

/* Two columns: order of service + current part */
.cn-pl-layout { max-width: 1360px; margin: 0 auto; padding: 8px var(--pl-gutter) 56px; display: flex; gap: 32px; align-items: flex-start; }
.cn-pl-order { flex: 0 0 300px; max-width: 330px; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 22px 20px; position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; }
.cn-pl-order__count { margin: 8px 0 6px; font-family: var(--font-serif); font-size: 22px; line-height: 1.2; }
.cn-pl-progress { height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
.cn-pl-progress span { display: block; height: 100%; background: var(--green); }
.cn-pl-part { border-top: 1px solid var(--rule); padding: 8px 0 6px; }
.cn-pl-part__head { display: flex; gap: 10px; align-items: baseline; width: 100%; min-height: 40px; padding: 4px; background: none; border: 0; text-align: left; cursor: pointer; font-family: var(--font-serif); font-size: 18px; line-height: 1.25; color: var(--ink); }
.cn-pl-part__head:hover { color: var(--green); }
.cn-pl-roman { font-family: var(--font-serif); font-size: 14px; color: var(--pl-eyebrow); min-width: 24px; }
.cn-pl-part__head.is-current { color: var(--green); font-weight: 600; }
.cn-planner ul.cn-pl-rows, .cn-pl-rows { list-style: none; margin: 0; padding: 0; }
.cn-pl-rows li { margin: 0; padding: 0; }
.cn-pl-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 4px 4px 4px 30px; background: none; border: 0; text-align: left; cursor: pointer; font-size: 14px; line-height: 1.35; color: var(--ink); }
.cn-pl-row:hover .cn-pl-row__name { text-decoration: underline; text-underline-offset: 3px; }
.cn-pl-row__note { margin-left: auto; padding-left: 8px; font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.cn-pl-row.is-optional, .cn-pl-row.is-priest { color: var(--ink-faint); }
.cn-pl-row.is-priest { font-style: italic; }
.cn-pl-mark { flex: 0 0 auto; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--paper); }
.cn-pl-mark--chosen { background: var(--green); }
.cn-pl-mark--needed { border: 2px solid var(--ochre); }
.cn-pl-mark--optional { border: 1px dashed var(--rule-strong); }
.cn-pl-mark--priest::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rule-strong); }
.cn-pl-toggle { border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 6px; }
.cn-pl-toggle label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--ink-muted); cursor: pointer; }
.cn-pl-toggle input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; flex: 0 0 auto; }
.cn-pl-toggle p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-faint); }

.cn-pl-main { flex: 1 1 auto; min-width: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 40px 48px 32px; }
.cn-planner .cn-pl-h { margin: 6px 0 10px; font-family: var(--font-serif); font-size: 44px; line-height: 1.08; font-weight: 500; color: var(--ink); outline: none; }
.cn-pl-intro { margin: 0 0 8px; max-width: 64ch; font-size: 17px; line-height: 1.7; color: var(--ink-muted); }

/* Moments */
.cn-pl-moment { border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 24px; }
.cn-pl-moment__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; }
.cn-pl-moment__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cn-planner .cn-pl-moment__name { margin: 0; font-family: var(--font-serif); font-size: 28px; line-height: 1.2; font-weight: 500; color: inherit; }
.cn-pl-kind { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.cn-pl-status { font-size: 14px; font-weight: 600; color: var(--ochre); }
.cn-pl-status.is-done { color: var(--green); }
.cn-pl-desc { margin: 6px 0 16px; max-width: 64ch; font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
.cn-pl-desc--note { margin-top: -8px; font-size: 14px; color: var(--ochre); }
.cn-pl-moment.is-priest { color: var(--ink-faint); }
.cn-planner .cn-pl-moment.is-priest .cn-pl-moment__name { font-size: 22px; font-style: italic; }
.cn-pl-moment.is-priest .cn-pl-desc { color: var(--ink-faint); font-size: 15px; margin-bottom: 0; }
.cn-planner .cn-pl-moment.is-collapsed .cn-pl-moment__name { font-size: 24px; }
.cn-pl-collapsed { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.cn-pl-collapsed .cn-pl-desc { margin-bottom: 0; font-size: 15px; }
.cn-pl-add { min-height: 44px; padding: 0 18px; border: 1px dashed var(--rule-strong); border-radius: 2px; background: transparent; color: var(--green); font-weight: 600; font-size: 15px; cursor: pointer; }
.cn-pl-add:hover { border-color: var(--green); background: var(--green-tint); }
.cn-pl-remove { margin-top: 10px; font-size: 14px; color: var(--ink-muted); }
.cn-pl-choose { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Option cards */
.cn-pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cn-pl-card { position: relative; display: flex; flex-direction: column; border-radius: 4px; background: var(--card); border: 1px solid var(--rule); box-shadow: 0 0 0 1px transparent; }
.cn-pl-card:hover { border-color: var(--rule-strong); }
.cn-pl-card.is-selected { background: var(--green-tint); border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.cn-pl-card:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.cn-pl-card__pick { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 12px; flex: 1 1 auto; cursor: pointer; }
.cn-pl-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cn-pl-card__title { font-family: var(--font-serif); font-size: 21px; line-height: 1.2; font-weight: 500; }
.cn-pl-card__radio { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--rule-strong); color: transparent; }
.is-selected .cn-pl-card__radio { background: var(--green); border-color: var(--green); color: var(--paper); }
.cn-pl-card__by { font-size: 13px; line-height: 1.4; color: var(--ink-faint); }
.cn-pl-card__why { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.cn-pl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cn-pl-tag { font-size: 12px; line-height: 1.4; padding: 2px 8px; border-radius: 2px; background: var(--paper-raised); color: var(--ink-muted); border: 1px solid var(--rule); }
.cn-pl-card__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-height: 52px; padding: 8px 16px 10px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-faint); }
.cn-pl-listen { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 8px; border: 1px solid var(--rule-strong); border-radius: 18px; background: var(--paper); color: var(--green); font-size: 13px; font-weight: 600; cursor: pointer; }
.cn-pl-listen:hover, .cn-pl-listen.is-playing { border-color: var(--green); }
.cn-pl-more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 12px; }
.cn-pl-more .cn-pl-link { min-height: 44px; }
.cn-pl-suggest.is-on { color: var(--paper); background: var(--green); padding: 0 12px; border-radius: 2px; text-decoration: none; }
.cn-pl-all { margin-top: 14px; padding: 14px; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 4px; }
.cn-pl-search { margin-bottom: 8px; }
.cn-planner ul.cn-pl-alllist, .cn-pl-alllist { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.cn-pl-alllist li { margin: 0; border-bottom: 1px solid var(--rule); }
.cn-pl-alllist li:last-child { border-bottom: 0; }
.cn-pl-allrow { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 4px; cursor: pointer; }
.cn-pl-allrow input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; flex: 0 0 auto; }
.cn-pl-allrow > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.cn-pl-allrow__t { font-size: 15px; }
.cn-pl-allrow__by { font-size: 13px; color: var(--ink-faint); }
.cn-pl-allrow__rec { margin-left: auto; font-size: 12px; color: var(--green); }
.cn-pl-own { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.cn-pl-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; color: var(--ink); cursor: pointer; }
.cn-pl-check input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; flex: 0 0 auto; }
.cn-pl-check--small { font-size: 14px; line-height: 1.5; color: var(--ink-muted); align-items: flex-start; }
.cn-pl-check--small input { width: 18px; height: 18px; margin-top: 2px; }
.cn-pl-soft { margin: 0; border: 1px solid var(--ochre); background: var(--ochre-tint); border-radius: 4px; padding: 12px 16px; font-size: 15px; line-height: 1.55; }
.cn-pl-soft p { margin: 0 0 8px; }
.cn-pl-soft[hidden] { display: none; }

.cn-pl-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule-strong); }
.cn-pl-msg { margin: 8px 0 0; font-size: 14px; color: var(--ink-muted); }
.cn-pl-msg:empty { display: none; }
p.cn-pl-msg[role="alert"] { color: #9b2c1f; }

/* Check step */
.cn-planner ul.cn-pl-blank, .cn-pl-blank { list-style: none; margin: 16px 0; padding: 0; border-top: 1px solid var(--rule); }
.cn-pl-blank li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 20px; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--rule); }
.cn-pl-blank__name { font-family: var(--font-serif); font-size: 20px; }
.cn-pl-blank__acts { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.cn-pl-blank__acts .cn-pl-link { min-height: 44px; }
.cn-pl-checklist { margin: 0; padding-left: 20px; }

/* Your celebration (wedding) and the funeral start */
.cn-pl-narrow { max-width: 820px; margin: 0 auto; padding: 36px var(--pl-gutter) 64px; }
.cn-pl-card-panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 36px 40px; display: flex; flex-direction: column; gap: 20px; }
.cn-pl-card-panel > * { margin: 0; }
.cn-pl-card-panel .cn-pl-h { margin: 0; }
.cn-planner .cn-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-items: start; }
.cn-planner .cn-field { margin: 0; }
.cn-pl-other { margin-top: 8px; }
.cn-pl-start { max-width: 1120px; margin: 0 auto; padding: 44px var(--pl-gutter) 72px; }
.cn-planner .cn-pl-h--start { font-size: 42px; margin: 0 0 12px; }
.cn-pl-start > .cn-pl-intro { font-size: 18px; max-width: 62ch; margin-bottom: 32px; }
.cn-pl-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cn-pl-choice { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.cn-pl-choice.is-primary { border: 2px solid var(--green); }
.cn-pl-choice.is-primary .cn-pl-eyebrow { color: var(--green); font-weight: 600; }
.cn-planner .cn-pl-choice h3 { margin: 8px 0; font-family: var(--font-serif); font-size: 28px; font-weight: 500; line-height: 1.2; }
.cn-pl-choice p:not(.cn-pl-eyebrow) { margin: 0 0 20px; color: var(--ink-muted); line-height: 1.65; }
.cn-pl-choice .cn-btn { margin-top: auto; }
.cn-pl-startrow { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-start; }
.cn-pl-startform { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.cn-pl-startside { flex: 1 1 280px; border-left: 1px solid var(--rule-strong); padding-left: 28px; }
.cn-planner .cn-pl-startside h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 24px; font-weight: 500; }
.cn-pl-startside p { margin: 0 0 12px; color: var(--ink-muted); }
.cn-pl-startside a { font-weight: 600; color: var(--green); }

/* Your plan */
.cn-pl-planlayout { max-width: 1360px; margin: 0 auto; padding: 36px var(--pl-gutter) 72px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.cn-pl-sheetcol { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cn-pl-paper { width: 100%; max-width: 660px; background: #fffdf8; border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(34, 28, 23, .06); padding: 56px 64px 32px; }
.cn-pl-paper__head { text-align: center; }
.cn-pl-paper__head p { margin: 0; }
.cn-planner .cn-pl-paper__eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--pl-eyebrow); font-weight: 600; }
.cn-planner .cn-pl-paper__names { margin: 14px 0 8px; font-family: var(--font-serif); font-size: 44px; line-height: 1.1; overflow-wrap: anywhere; }
.cn-planner .cn-pl-paper__when { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--ink-muted); }
.cn-pl-paper__rule { display: block; width: 48px; height: 1px; background: var(--green); margin: 24px auto 8px; }
.cn-planner .cn-pl-paper__loved { margin: 16px 0 0; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--ink-muted); }
.cn-pl-paper__part { margin-top: 24px; }
.cn-planner .cn-pl-paper__part h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--green); text-align: center; }
.cn-planner .cn-pl-paper__part ol { list-style: none; margin: 0; padding: 0; }
.cn-planner li.cn-pl-paper__row { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 4px 0; }
.cn-pl-paper__m { font-family: var(--font-serif); font-size: 17px; line-height: 1.35; }
.cn-pl-paper__dots { flex: 1 1 auto; min-width: 16px; border-bottom: 1px dotted var(--rule-strong); transform: translateY(-4px); }
.cn-pl-paper__v { font-size: 14px; line-height: 1.4; text-align: right; max-width: 60%; }
.cn-pl-paper__row.is-priest .cn-pl-paper__m { font-style: italic; color: var(--ink-faint); font-size: 16px; }
.cn-pl-paper__row.is-priest .cn-pl-paper__v { font-size: 12px; color: var(--ink-faint); }
.cn-pl-paper__row.is-suggest .cn-pl-paper__v { font-style: italic; color: var(--ochre); }
.cn-pl-paper__foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 11px; color: var(--ink-faint); }
.cn-planner .cn-pl-paper__note { margin: 0; max-width: 660px; font-size: 13px; line-height: 1.5; color: var(--ink-faint); text-align: center; }

.cn-pl-side { flex: 1 1 340px; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.cn-pl-panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.cn-pl-panel > * { margin: 0; }
.cn-planner .cn-pl-panel h3 { margin: 0; font-family: var(--font-serif); font-size: 24px; line-height: 1.2; font-weight: 500; }
.cn-pl-panel p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.cn-pl-panel--ochre { background: var(--ochre-tint); border-color: var(--ochre); }
.cn-pl-panel--ochre p { color: var(--ink); }
.cn-pl-panel--plain { background: transparent; border: 0; border-top: 1px solid var(--rule-strong); border-radius: 0; padding: 20px 0 0; }
.cn-pl-stack { display: flex; flex-direction: column; gap: 10px; }
.cn-pl-wide { width: 100%; min-height: 48px !important; }
.cn-pl-pair { display: flex; gap: 10px; }
.cn-pl-pair > * { flex: 1 1 0; min-height: 48px !important; padding: 0 10px !important; white-space: nowrap; }
.cn-pl-emailform { border-top: 1px solid var(--rule); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.cn-pl-emailform .cn-label { margin: 0; }
.cn-pl-inline { display: flex; gap: 8px; }
.cn-pl-inline .cn-input { flex: 1 1 auto; min-width: 0; min-height: 44px; }
.cn-pl-privacy { margin: 0; font-size: 13px !important; color: var(--ink-faint) !important; }
.cn-pl-sub { margin-top: -6px !important; font-size: 14px !important; color: var(--ink-faint) !important; }
.cn-planner ul.cn-pl-qs, .cn-pl-qs { list-style: none; margin: 0; padding: 0; }
.cn-pl-qs li { position: relative; margin: 0; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.cn-pl-qs li:last-child { border-bottom: 0; }
.cn-pl-qs li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 10px; border: 1px solid var(--ochre); border-radius: 2px; }
.cn-planner .cn-pl-ochrebtn { background: transparent; color: var(--ochre); border: 1px solid var(--ochre); align-self: flex-start; min-height: 48px; }
.cn-planner .cn-pl-ochrebtn:hover { background: var(--paper); color: var(--ochre); border-color: var(--ochre); }
.cn-pl-ochrebtn[hidden] { display: none; }
.cn-pl-checkform { display: flex; flex-direction: column; gap: 14px; }
.cn-pl-checkform[hidden] { display: none; }
.cn-pl-done { font-weight: 600; color: var(--green) !important; }
.cn-pl-sidefoot { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.cn-pl-sidefoot .cn-pl-link { min-height: 44px; }
.cn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* About this planner (collapsed, below the tool) */
.cn-pl-about { max-width: 1360px; margin: 0 auto; padding: 0 var(--pl-gutter, 32px) 64px; }
.cn-pl-about details { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 0 28px; }
.cn-pl-about summary { cursor: pointer; padding: 18px 0; min-height: 44px; font-family: var(--font-serif); font-size: 22px; line-height: 1.3; }
.cn-pl-about__body { max-width: var(--measure, 68ch); padding-bottom: 12px; }
.cn-pl-about details > .cn-faq, .cn-pl-about details > section { max-width: var(--measure, 68ch); }

/* Phone bottom bar and sheet (hidden on desktop) */
.cn-pl-bar, .cn-pl-sheetwrap { display: none; }

@media (max-width: 899px) {
  .cn-planner, .cn-pl-callbar, .cn-pl-about { --pl-gutter: 16px; }
  .cn-pl-header__in { gap: 10px 12px; padding: 10px 16px; }
  .cn-pl-wordmark { font-size: 22px; }
  .cn-pl-divider, .cn-pl-name .cn-pl-eyebrow, .cn-pl-saved, .cn-pl-seeplan { display: none !important; }
  .cn-planner .cn-pl-name__title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cn-pl-name__short { display: block; }
  .cn-pl-name { flex: 1 1 auto; }
  .cn-pl-sharebtn { width: 44px; padding: 0 !important; }
  .cn-pl-sharebtn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cn-pl-line { height: 3px; }
  .cn-pl-sharemenu { right: 16px; left: 16px; width: auto; }
  .cn-pl-summary { padding: 18px 16px 12px; }
  .cn-pl-summary__names { font-size: 24px; }
  .cn-pl-summary::after { margin-top: 8px; }
  .cn-pl-layout { display: block; padding: 0 0 120px; }
  .cn-pl-layout > .cn-pl-order { display: none; }
  .cn-pl-main { border: 0; border-radius: 0; padding: 20px 16px 24px; }
  .cn-planner .cn-pl-h { font-size: 32px; }
  .cn-planner .cn-pl-moment__name { font-size: 24px; }
  .cn-pl-moment { margin-top: 20px; padding-top: 18px; }
  .cn-pl-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cn-pl-card__pick { padding: 14px 14px 10px; }
  .cn-pl-card__title { font-size: 20px; }
  .cn-pl-card__foot { padding: 6px 14px 10px; }
  .cn-pl-more { gap: 0 18px; }
  .cn-pl-nav { margin-top: 28px; }
  .cn-pl-nav .cn-btn { flex: 1 1 100%; }
  .cn-pl-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--paper); border-top: 1px solid var(--rule-strong); box-shadow: 0 -2px 12px rgba(34, 28, 23, .12); border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom, 0); }
  .cn-pl-bar__handle { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--rule-strong); margin: 8px auto 0; }
  .cn-pl-bar__in { display: flex; align-items: center; gap: 12px; padding: 8px 16px 14px; }
  .cn-pl-bar__open { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
  .cn-pl-bar__count { font-family: var(--font-serif); font-size: 19px; line-height: 1.2; }
  .cn-pl-bar .cn-btn { min-height: 48px; flex: 0 0 auto; }
  .cn-pl-sheetwrap { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(34, 28, 23, .4); }
  .cn-pl-sheetpanel { position: absolute; left: 0; right: 0; bottom: 0; height: 85vh; overflow-y: auto; background: var(--paper); border-radius: 12px 12px 0 0; padding: 8px 8px 24px; animation: cn-pl-up .2s ease-out; }
  .cn-pl-sheetpanel .cn-pl-order { display: block; position: static; max-width: none; max-height: none; overflow: visible; border: 0; padding: 12px 12px 0; }
  .cn-pl-sheet__close { position: sticky; top: 0; float: right; z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--ink); cursor: pointer; }
  .cn-pl-row { min-height: 44px; }
  .cn-pl-narrow { padding: 16px 0 48px; }
  .cn-pl-card-panel { border-left: 0; border-right: 0; border-radius: 0; padding: 24px 16px; }
  .cn-planner .cn-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .cn-pl-start { padding: 28px 16px 56px; }
  .cn-planner .cn-pl-h--start { font-size: 32px; }
  .cn-pl-choice { padding: 22px; }
  .cn-pl-startside { border-left: 0; border-top: 1px solid var(--rule-strong); padding: 20px 0 0; }
  .cn-pl-planlayout { padding: 20px 16px 56px; gap: 24px; }
  .cn-pl-sheetcol { flex-basis: 100%; }
  .cn-pl-side { max-width: none; flex-basis: 100%; }
  .cn-pl-paper { padding: 32px 18px 24px; }
  .cn-planner .cn-pl-paper__names { font-size: 32px; }
  .cn-planner li.cn-pl-paper__row { flex-wrap: wrap; gap: 0 8px; }
  .cn-pl-paper__dots { display: none; }
  .cn-pl-paper__v { max-width: none; width: 100%; text-align: left; }
  .cn-pl-panel { padding: 20px 16px; }
  .cn-pl-callbar .cn-callbar { flex-wrap: wrap; gap: 8px 16px; }
  .cn-pl-callbar .cn-callbar__text { font-size: 14px; }
  .cn-pl-about details { padding: 0 16px; }
  .cn-pl-about summary { font-size: 19px; }
}
@media (max-width: 380px) {
  .cn-pl-pair { flex-direction: column; }
  .cn-pl-name__short { font-size: 12px; }
}
@keyframes cn-pl-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cn-pl-sheetpanel { animation: none; }
  .cn-pl-line span { transition: none; }
}

/* Printing: only the plan sheet, A4, one page where possible. */
@page { size: A4; margin: 18mm; }
@media print {
  body:has(.cn-pl-paper) * { visibility: hidden !important; }
  body:has(.cn-pl-paper) .cn-pl-paper, body:has(.cn-pl-paper) .cn-pl-paper * { visibility: visible !important; }
  body, body.cn-tool { background: #fff !important; }
  .cn-pl-header, .cn-pl-bar, .cn-pl-callbar { display: none !important; }
  body:has(.cn-pl-paper) .cn-pl-side, body:has(.cn-pl-paper) .cn-pl-about, body:has(.cn-pl-paper) .cn-pl-paper__note, body:has(.cn-pl-paper) .skip-link, body:has(.cn-pl-paper) #wpadminbar { display: none !important; }
  .cn-pl-planlayout { display: block; padding: 0; margin: 0; max-width: none; }
  .cn-pl-sheetcol { display: block; }
  .cn-pl-paper { position: static; width: 100%; max-width: none; border: 0; box-shadow: none; padding: 0; background: #fff; font-size: 11pt; }
  .cn-planner .cn-pl-paper__names { font-size: 28pt; margin: 8pt 0 4pt; }
  .cn-planner .cn-pl-paper__when { font-size: 13pt; }
  .cn-pl-paper__rule { margin: 12pt auto 4pt; }
  .cn-pl-paper__part { margin-top: 10pt; break-inside: avoid-page; }
  .cn-planner .cn-pl-paper__part h3 { font-size: 9.5pt; margin-bottom: 3pt; color: #2f5d4f !important; }
  .cn-planner li.cn-pl-paper__row { padding: 1.5pt 0; break-inside: avoid; }
  .cn-pl-paper__m { font-size: 11.5pt; }
  .cn-pl-paper__v { font-size: 10.5pt; }
  .cn-pl-paper__row.is-priest .cn-pl-paper__m { font-size: 10.5pt; }
  .cn-pl-paper__row.is-priest .cn-pl-paper__v { font-size: 9pt; }
  .cn-pl-paper__foot { margin-top: 16pt; padding-top: 6pt; font-size: 8.5pt; break-inside: avoid; }
  .cn-planner li.cn-pl-paper__row { flex-wrap: nowrap; gap: 6pt; }
  .cn-pl-paper__dots { display: block; }
  .cn-pl-paper__v { width: auto; max-width: 60%; text-align: right; }
}
.cn-pl-moment.is-collapsed .cn-pl-moment__head, .cn-pl-moment.is-priest .cn-pl-moment__head { justify-content: flex-start; gap: 4px 12px; }
