/* The couple's portal (revamp brief 4a): a course in a slick interface.
   "Order of Service" brand: navy on paper, one vermilion accent, serif
   headings. Plain CSS, loaded by PortalPanelProvider, so no build step. */

:root {
  --cb-navy: #1D3C64;
  --cb-navy-2: #2A4F80;
  --cb-ink: #1F2633;
  --cb-muted: #5D6675;
  --cb-paper: #FBF7EF;
  --cb-card: #FFFFFF;
  --cb-line: #E7E0D2;
  --cb-accent: #C8462B;
  --cb-red: #C8462B;
  --cb-yellow: #D99A1E;
  --cb-green: #3F8A5A;
  --cb-serif: "Cormorant Garamond", Georgia, serif;
  --cb-text: "Source Serif 4", Georgia, serif;
  --cb-radius: 14px;
  --cb-shadow: 0 1px 2px rgba(29, 60, 100, .06), 0 8px 24px rgba(29, 60, 100, .06);
}

body.fi-body, .fi-layout, .fi-main-ctn { background: var(--cb-paper) !important; }
.fi-topbar { background: #fff !important; box-shadow: 0 1px 0 var(--cb-line) !important; }
.fi-main { padding-top: 1.25rem !important; }
/* No sidebar in the portal, so the brand stays visible on phones too. */
.fi-topbar-start { display: flex !important; }
.fi-topbar-open-sidebar-btn, .fi-topbar-close-sidebar-btn { display: none !important; }
.fi-simple-layout { background: var(--cb-paper); }
.fi-simple-main { border-radius: var(--cb-radius) !important; box-shadow: var(--cb-shadow) !important; }

/* Brand in the top bar */
.cb-brand { display: flex; align-items: center; gap: .55rem; color: var(--cb-navy); font-family: var(--cb-serif); font-weight: 600; font-size: 1.35rem; letter-spacing: .01em; }
.cb-brand svg { width: 28px; height: 28px; color: var(--cb-navy); --heart: var(--cb-accent); }

/* Shell: course outline beside the work */
.cb-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2rem; max-width: 1240px; margin: 0 auto; align-items: start; color: var(--cb-ink); }
.cb-main { min-width: 0; }
@media (max-width: 960px) {
  .cb-shell { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

/* Outline */
.cb-outline { position: sticky; top: 5rem; background: var(--cb-card); border: 1px solid var(--cb-line); border-radius: var(--cb-radius); padding: 1.1rem 1rem 1rem; box-shadow: var(--cb-shadow); }
.cb-outline h2 { font-family: var(--cb-serif); font-size: 1.4rem; font-weight: 600; color: var(--cb-navy); margin: 0 0 .2rem .35rem; }
.cb-outline .cb-sub { font-size: .8rem; color: var(--cb-muted); margin: 0 0 .7rem .35rem; }
.cb-bar { height: 6px; background: #EFE9DC; border-radius: 99px; overflow: hidden; margin: 0 .35rem .9rem; }
.cb-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--cb-green), #5DAA78); border-radius: 99px; transition: width .6s ease; }
.cb-outline-people { display: flex; align-items: center; gap: .65rem; padding: .5rem .55rem; margin-bottom: .5rem; border-radius: 10px; border-bottom: 1px solid var(--cb-line); border-bottom-left-radius: 0; border-bottom-right-radius: 0; color: var(--cb-navy); text-decoration: none; font-size: .9rem; line-height: 1.25; }
.cb-outline-people:hover { background: #F6F1E6; }
.cb-outline-people.is-current { background: #EEF2F8; font-weight: 600; }
.cb-outline-people svg { width: 15px; height: 15px; flex: none; opacity: .75; }
.cb-outline-people .cb-mod-name { flex: 1; }
.cb-outline-people .cb-mod-state { font-size: .7rem; color: var(--cb-muted); white-space: nowrap; font-weight: 400; }
.cb-mods { list-style: none; margin: 0; padding: 0; counter-reset: mod; }
.cb-mods li { counter-increment: mod; }
.cb-mod { display: flex; align-items: center; gap: .65rem; padding: .5rem .55rem; border-radius: 10px; color: var(--cb-ink); text-decoration: none; font-size: .9rem; line-height: 1.25; }
a.cb-mod:hover { background: #F6F1E6; }
.cb-mod.is-current { background: #EEF2F8; color: var(--cb-navy); font-weight: 600; }
.cb-mod.is-locked { color: #9AA1AC; cursor: default; }
.cb-mod .cb-mod-name { flex: 1; }
.cb-mod .cb-mod-state { font-size: .7rem; color: var(--cb-muted); white-space: nowrap; }
.cb-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.cb-dot.red { background: var(--cb-red); opacity: .55; }
.cb-dot.yellow { background: var(--cb-yellow); }
.cb-dot.green { background: var(--cb-green); }
.cb-dot.pulse { animation: cb-pulse 1.4s ease-in-out infinite; }
@keyframes cb-pulse { 50% { transform: scale(1.35); opacity: .6; } }
.cb-lock { width: 13px; height: 13px; color: #A7ADB6; flex: none; }
.cb-outline-links { border-top: 1px solid var(--cb-line); margin-top: .8rem; padding-top: .6rem; display: grid; gap: .1rem; }
.cb-outline-links a { padding: .4rem .55rem; border-radius: 8px; font-size: .88rem; color: var(--cb-navy); text-decoration: none; }
.cb-outline-links a:hover { background: #F6F1E6; }
.cb-outline-library { border-top: 1px solid var(--cb-line); margin-top: .6rem; padding-top: .6rem; display: grid; gap: .15rem; }
.cb-outline-library-head { display: grid; padding: .4rem .55rem; border-radius: 8px; color: var(--cb-navy); text-decoration: none; font-size: .88rem; }
.cb-outline-library-head:hover, .cb-outline-ebook:hover { background: #F6F1E6; }
.cb-outline-library-label { margin: .3rem .55rem 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cb-muted, #6b6b6b); }
.cb-outline-ebook { display: flex; gap: .45rem; align-items: center; padding: .35rem .55rem; border-radius: 8px; font-size: .85rem; color: var(--cb-navy); text-decoration: none; }
.cb-outline-ebook .cb-lock { width: 12px; height: 12px; flex: none; opacity: .6; }
.cb-legend { display: flex; gap: .8rem; margin: .7rem .35rem 0; font-size: .7rem; color: var(--cb-muted); }
.cb-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.cb-legend .cb-dot { width: 8px; height: 8px; }
@media (max-width: 960px) {
  .cb-outline { position: static; padding: .8rem; }
  .cb-mods { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
  .cb-mod { flex: none; border: 1px solid var(--cb-line); padding: .4rem .6rem; white-space: nowrap; }
  .cb-outline h2 { font-size: 1.2rem; }
  .cb-mod .cb-mod-state { display: none; }
  .cb-outline-links { display: flex; gap: .5rem; }
  .cb-legend { display: none; }
}

/* Type */
.cb-eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cb-accent); font-weight: 600; margin: 0 0 .35rem; }
.cb-title { font-family: var(--cb-serif); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; color: var(--cb-navy); margin: 0 0 .6rem; }
.cb-lede { font-family: var(--cb-text); font-size: 1.12rem; line-height: 1.6; color: #33404F; max-width: 46rem; margin: 0 0 1.4rem; }
.cb-h3 { font-family: var(--cb-serif); font-weight: 600; font-size: 1.55rem; color: var(--cb-navy); margin: 0 0 .5rem; }
.cb-muted { color: var(--cb-muted); }
.cb-small { font-size: .85rem; }

/* Cards and buttons */
.cb-card { background: var(--cb-card); border: 1px solid var(--cb-line); border-radius: var(--cb-radius); padding: 1.4rem 1.5rem; box-shadow: var(--cb-shadow); }
.cb-card + .cb-card { margin-top: 1rem; }
.cb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--cb-navy); color: #fff !important; border: 0; border-radius: 999px; padding: .8rem 1.4rem; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.cb-btn:hover { background: var(--cb-navy-2); }
.cb-btn:active { transform: translateY(1px); }
.cb-btn[disabled] { opacity: .55; cursor: wait; }
.cb-btn.accent { background: var(--cb-accent); }
.cb-btn.accent:hover { background: #B23C23; }
.cb-btn.ghost { background: transparent; color: var(--cb-navy) !important; box-shadow: inset 0 0 0 1.5px var(--cb-navy); }
.cb-btn.ghost:hover { background: #EEF2F8; }
.cb-btn.small { padding: .45rem .9rem; font-size: .85rem; }
.cb-link { color: var(--cb-navy); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.cb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.3rem; }
.cb-spacer { flex: 1; }

/* Step bar */
.cb-steps { display: flex; gap: .35rem; margin: 0 0 1.4rem; padding: 0; list-style: none; flex-wrap: wrap; }
.cb-steps button { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--cb-line); background: #fff; color: var(--cb-muted); border-radius: 999px; padding: .4rem .85rem .4rem .45rem; font-size: .86rem; cursor: pointer; }
.cb-steps button[disabled] { cursor: default; opacity: .6; }
.cb-steps .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #EFE9DC; font-size: .75rem; font-weight: 700; color: var(--cb-navy); }
.cb-steps .is-done .n { background: var(--cb-green); color: #fff; }
.cb-steps .is-on { border-color: var(--cb-navy); color: var(--cb-navy); font-weight: 600; box-shadow: 0 0 0 3px rgba(29, 60, 100, .08); }
.cb-steps .is-on .n { background: var(--cb-navy); color: #fff; }

/* Watch */
.cb-intro { font-family: var(--cb-text); font-size: 1.08rem; line-height: 1.6; color: #2F3B4A; background: #fff; border-left: 3px solid var(--cb-accent); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; margin: 0 0 1rem; }
.cb-skeleton { display: grid; gap: .45rem; }
.cb-skeleton i { display: block; height: .8rem; border-radius: 6px; background: linear-gradient(90deg, #F1ECE1, #F8F4EC, #F1ECE1); background-size: 200% 100%; animation: cb-shimmer 1.2s linear infinite; }
.cb-skeleton i:nth-child(2) { width: 85%; } .cb-skeleton i:nth-child(3) { width: 60%; }
@keyframes cb-shimmer { to { background-position: -200% 0; } }
.cb-video { position: relative; border-radius: var(--cb-radius); overflow: hidden; background: #0E1B2C; box-shadow: var(--cb-shadow); aspect-ratio: 16 / 9; }
.cb-video video { width: 100%; height: 100%; display: block; background: #0E1B2C; }
.cb-pause { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 27, 44, .86); color: #fff; padding: 1.5rem; text-align: center; }
.cb-pause .inner { max-width: 32rem; }
.cb-pause .label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #F2B8A8; margin-bottom: .6rem; }
.cb-pause p { font-family: var(--cb-serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.25; margin: 0 0 1.2rem; }
.cb-pause .cb-btn { background: #fff; color: var(--cb-navy) !important; }
.cb-how { margin: 0 0 1.4rem; }
.cb-video-hidden { display: grid; place-items: center; text-align: center; color: #D7DEE8; aspect-ratio: 16 / 9; border-radius: var(--cb-radius); background: #22344D; padding: 1rem; }

/* Examples */
.cb-examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.cb-example { position: relative; background: #fff; border: 1px solid var(--cb-line); border-radius: 12px; padding: 1rem 1.1rem 1rem; font-family: var(--cb-text); font-size: .95rem; line-height: 1.55; }
.cb-example.is-fav { border-color: var(--cb-accent); box-shadow: 0 0 0 3px rgba(200, 70, 43, .1); }
.cb-example h4 { font-family: var(--cb-serif); font-weight: 600; font-size: 1.15rem; color: var(--cb-navy); margin: 0 2.2rem .4rem 0; }
.cb-example .body { max-height: 9.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.cb-example.is-open .body { max-height: none; -webkit-mask-image: none; mask-image: none; }
.cb-example .body p { margin: 0 0 .6rem; }
.cb-star { position: absolute; top: .7rem; right: .7rem; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--cb-line); background: #fff; display: grid; place-items: center; cursor: pointer; color: #B9B2A3; }
.cb-star.on { color: var(--cb-accent); border-color: var(--cb-accent); background: #FDF1EC; }
.cb-star svg { width: 18px; height: 18px; }
.cb-sec-label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cb-muted); margin: 1.4rem 0 .6rem; font-weight: 600; }

/* Discuss */
.cb-prompts { counter-reset: p; display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.cb-prompts li { counter-increment: p; display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--cb-line); border-radius: 12px; padding: 1rem 1.2rem; font-family: var(--cb-text); font-size: 1.08rem; line-height: 1.55; }
.cb-prompts li::before { content: counter(p); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #FDF1EC; color: var(--cb-accent); font-family: var(--cb-serif); font-weight: 700; font-size: 1.2rem; }
.cb-starters { margin: 0 0 1.2rem; }
.cb-starters summary { cursor: pointer; color: var(--cb-navy); font-size: .92rem; font-weight: 600; }
.cb-starters .cb-prompts { margin-top: .8rem; }
.cb-starters .cb-prompts li { font-size: 1rem; padding: .7rem 1rem; }
.cb-pausecard { display: flex; gap: 1rem; align-items: center; background: #EEF2F8; border-radius: 12px; padding: .9rem 1.1rem; margin: 0 0 1rem; color: var(--cb-navy); }
.cb-pausecard svg { width: 28px; height: 28px; flex: none; }

/* Answer */
.cb-q { margin: 0 0 1.2rem; }
.cb-q label { display: block; font-family: var(--cb-text); font-size: 1.06rem; line-height: 1.5; color: var(--cb-ink); margin: 0 0 .45rem; font-weight: 600; }
.cb-q textarea, .cb-textarea { width: 100%; min-height: 7.5rem; border: 1px solid #D9D1C0; border-radius: 10px; padding: .8rem .9rem; font-family: var(--cb-text); font-size: 1rem; line-height: 1.55; background: #FFFDF9; color: var(--cb-ink); resize: vertical; }
.cb-q textarea:focus, .cb-textarea:focus, .cb-input:focus, .cb-select:focus { outline: 0; border-color: var(--cb-navy); box-shadow: 0 0 0 3px rgba(29, 60, 100, .12); }
.cb-input, .cb-select { width: 100%; border: 1px solid #D9D1C0; border-radius: 10px; padding: .7rem .85rem; font-size: 1rem; background: #FFFDF9; color: var(--cb-ink); }
.cb-error { color: #B23C23; font-size: .88rem; margin: .4rem 0 0; }
.cb-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--cb-muted); background: #F4EFE4; border-radius: 99px; padding: .2rem .6rem; }

/* Draft */
.cb-processing { display: flex; gap: 1rem; align-items: center; }
.cb-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #E6DECF; border-top-color: var(--cb-navy); animation: cb-spin .9s linear infinite; flex: none; }
@keyframes cb-spin { to { transform: rotate(360deg); } }
.cb-section { background: #fff; border: 1px solid var(--cb-line); border-radius: var(--cb-radius); box-shadow: var(--cb-shadow); margin: 0 0 1.2rem; overflow: hidden; }
.cb-section header { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--cb-line); background: #FFFCF6; flex-wrap: wrap; }
.cb-section header h3 { font-family: var(--cb-serif); font-weight: 600; font-size: 1.4rem; color: var(--cb-navy); margin: 0; flex: 1; }
.cb-prose { font-family: var(--cb-text); font-size: 1.07rem; line-height: 1.7; color: #253041; padding: 1.2rem 1.4rem; }
.cb-prose p { margin: 0 0 .9rem; }
.cb-prose p:last-child { margin-bottom: 0; }
/* Examples brought into a section together: a title above each, a line between. */
.cb-prose h4 { font-family: var(--cb-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--cb-navy); margin: 0 0 .5rem; }
.cb-prose hr { border: 0; border-top: 2px solid var(--cb-line); margin: 1.4rem 0; }
.cb-tools { display: grid; gap: .7rem; padding: 0 1.4rem 1.2rem; }
.cb-revise { display: flex; gap: .6rem; }
.cb-revise input { flex: 1; }
.cb-history { font-size: .85rem; color: var(--cb-muted); }
.cb-history ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; }
.cb-history li { display: flex; gap: .6rem; align-items: center; }
.cb-note { margin: 1rem 1.4rem 0; padding: .6rem .8rem; border-left: 3px solid var(--cb-navy); background: #FFFCF6; font-size: .9rem; color: var(--cb-muted); }
.cb-starred { font-size: .9rem; border: 1px solid var(--cb-line); border-radius: var(--cb-radius); padding: .6rem .8rem; background: #FFFCF6; }
.cb-starred summary { cursor: pointer; color: var(--cb-navy); font-weight: 600; }
.cb-starred-item { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--cb-line); }
.cb-starred-item h4 { margin: 0 0 .3rem; font-size: .9rem; color: var(--cb-navy); }
.cb-starred .cb-prose { padding: 0; font-size: .95rem; line-height: 1.6; }

/* Paywall */
.cb-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0 .6rem; }
@media (max-width: 700px) { .cb-paths { grid-template-columns: 1fr; } }
.cb-paths-one { grid-template-columns: minmax(0, 32rem); }
.cb-path { position: relative; background: #fff; border: 1.5px solid var(--cb-line); border-radius: var(--cb-radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; box-shadow: var(--cb-shadow); }
.cb-path.primary { border-color: var(--cb-navy); }
.cb-path .tag { position: absolute; top: -.7rem; left: 1.2rem; background: var(--cb-accent); color: #fff; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 99px; font-weight: 700; }
.cb-path .price { font-family: var(--cb-serif); font-size: 2.6rem; font-weight: 600; color: var(--cb-navy); line-height: 1; }
.cb-path .price small { font-size: 1rem; color: var(--cb-muted); font-family: inherit; }
.cb-path h3 { font-family: var(--cb-serif); font-size: 1.45rem; margin: 0; color: var(--cb-ink); }
.cb-path ul { margin: .2rem 0 .8rem; padding-left: 1.1rem; color: #3A4555; line-height: 1.6; font-size: .95rem; }
.cb-path form { margin-top: auto; }
.cb-path .cb-btn { width: 100%; }
.cb-ahead { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; }
.cb-ahead-item { display: flex; gap: .7rem; background: #fff; border: 1px solid var(--cb-line); border-radius: 12px; padding: .85rem 1rem; }
.cb-ahead-item strong { display: block; color: var(--cb-navy); font-family: var(--cb-serif); font-size: 1.15rem; }
.cb-ahead-item span { font-size: .88rem; color: var(--cb-muted); line-height: 1.45; }
.cb-ebooks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.cb-ebook { background: linear-gradient(160deg, #22406A, #1D3C64 60%, #172F50); color: #F6EFE2; border-radius: 10px; padding: 1rem; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; }
.cb-ebook-icon { display: block; width: 34px; height: 34px; margin-bottom: .6rem; color: #F3C9A8; flex: none; }
.cb-ebook strong { font-family: var(--cb-serif); font-size: 1.15rem; line-height: 1.2; }
.cb-ebook span { font-size: .8rem; opacity: .8; }
.cb-ebook a { color: #fff; font-size: .85rem; }

/* Intake */
.cb-choice-group { margin: 0 0 1.4rem; }
.cb-choice-group legend { font-family: var(--cb-serif); font-size: 1.35rem; font-weight: 600; color: var(--cb-navy); margin: 0 0 .6rem; }
.cb-choices { display: flex; flex-wrap: wrap; gap: .55rem; }
.cb-choices label { position: relative; }
.cb-choices input { position: absolute; opacity: 0; }
.cb-choices span { display: inline-block; padding: .65rem 1.1rem; border: 1.5px solid #D9D1C0; border-radius: 999px; background: #fff; cursor: pointer; font-size: .98rem; }
.cb-choices input:checked + span { border-color: var(--cb-navy); background: var(--cb-navy); color: #fff; }
.cb-choices input:focus-visible + span { box-shadow: 0 0 0 3px rgba(29, 60, 100, .2); }

/* Home */
.cb-next { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; background: linear-gradient(120deg, #1D3C64, #2A4F80); color: #fff; border-radius: var(--cb-radius); padding: 1.6rem 1.8rem; box-shadow: var(--cb-shadow); }
.cb-next .txt { flex: 1; min-width: 14rem; }
.cb-next .cb-eyebrow { color: #F2B8A8; }
.cb-next h2 { font-family: var(--cb-serif); font-size: 2rem; font-weight: 600; margin: 0 0 .3rem; }
.cb-next p { margin: 0; opacity: .88; }
.cb-next .cb-btn { background: #fff; color: var(--cb-navy) !important; }
.cb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.cb-grid2 > .cb-card { margin: 0; }
@media (max-width: 760px) {
  .cb-grid2 { grid-template-columns: minmax(0, 1fr); }
  .cb-card { padding: 1.1rem; }
  .cb-section header, .cb-prose { padding-left: 1rem; padding-right: 1rem; }
  .cb-tools { padding: 0 1rem 1rem; }
  .cb-revise { flex-direction: column; }
  .cb-next { padding: 1.2rem; }
  .cb-steps button { padding: .3rem .6rem .3rem .3rem; font-size: .8rem; }
}
.cb-flash { background: #EAF4EE; color: #285A3B; border-radius: 12px; padding: .85rem 1.1rem; margin: 0 0 1rem; }

/* Ceremony */
.cb-order { counter-reset: s; }
.cb-order .cb-section header h3::before { counter-increment: s; content: counter(s, upper-roman) ". "; color: var(--cb-accent); }
.cb-empty { color: var(--cb-muted); font-style: italic; }

/* People */
.cb-people { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.cb-people li { display: flex; align-items: center; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--cb-line); }
.cb-people li:last-child { border-bottom: 0; }
.cb-people .who { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cb-avatar { width: 38px; height: 38px; border-radius: 50%; background: #EEF2F8; color: var(--cb-navy); display: grid; place-items: center; font-family: var(--cb-serif); font-weight: 700; font-size: 1.2rem; flex: none; }
.cb-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.cb-form-grid label { display: grid; gap: .35rem; font-size: .9rem; color: var(--cb-ink); }
@media (max-width: 760px) { .cb-form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Feedback */
.cb-feedback { border-top: 1px solid var(--cb-line); margin-top: .6rem; padding-top: .6rem; }
.cb-feedback textarea { min-height: 5rem; font-size: .9rem; }
.cb-feedback summary { cursor: pointer; padding: .4rem .55rem; font-size: .88rem; color: var(--cb-navy); }

/* The ebook callout bar: top of the key parts and of the download area. */
.cb-callout { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; background: linear-gradient(160deg, #22406A, #1D3C64 60%, #172F50); color: #F6EFE2; border-left: 6px solid var(--cb-accent); border-radius: var(--cb-radius); padding: 1rem 1.3rem; margin: 0 0 1.2rem; box-shadow: var(--cb-shadow); }
.cb-callout-text { flex: 1 1 320px; margin: 0; font-size: .98rem; line-height: 1.45; }
.cb-callout-text strong { display: block; font-family: var(--cb-serif); font-size: 1.4rem; font-weight: 700; line-height: 1.2; color: #fff; margin-bottom: .15rem; }
.cb-callout-text b { color: #fff; }
.cb-callout-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cb-callout .cb-btn { background: #fff; color: var(--cb-navy) !important; }
.cb-callout .cb-btn:hover { background: #F6F1E6; }
.cb-callout .cb-btn.ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.cb-callout .cb-btn.ghost:hover { background: rgba(255, 255, 255, .12); }
