/* 30-Day Couple Challenges */
.ccd-app {
	--ccd-primary: #1b365d;
	--ccd-accent: #008b80;
	--ccd-gold: #c9942a;
	--ccd-ink: #1d2a3b;
	--ccd-muted: #5a6878;
	--ccd-line: #e3e0d8;
	--ccd-line-2: #cfd6dd;
	--ccd-bg: #f7f5f0;
	--ccd-track: #ebe8e0;
	--ccd-accent-ink: #00675f;
	--ccd-accent-soft: #e6f3f1;
	--ccd-gold-soft: #faf1df;
	--ccd-gold-ink: #7a5410;
	--cc: var(--ccd-accent);
	container: ccd / inline-size;
	color: var(--ccd-ink);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.ccd-app *, .ccd-app *::before, .ccd-app *::after { box-sizing: border-box; }
.ccd-wrap { max-width: 860px; margin: 0 auto; }
.ccd-app p { margin: 0 0 12px; }
.ccd-app p:last-child { margin-bottom: 0; }
.ccd-app strong, .ccd-app b { font-weight: 800; }
.ccd-app svg { width: 1em; height: 1em; vertical-align: -0.14em; flex: 0 0 auto; }
.ccd-loading, .ccd-muted { color: var(--ccd-muted); }
.ccd-small { font-size: .88em; }
.ccd-center { text-align: center; }
.ccd-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 0; }
.ccd-centerrow { justify-content: center; }
.ccd-top { margin: 0 0 10px; }
.ccd-gap { margin-top: 12px !important; }

/* Buttons: colors are also pinned inline by the script so themes can't override them. */
.ccd-app.ccd-app button { font: inherit; cursor: pointer; line-height: 1.25; text-align: inherit; margin: 0; }
.ccd-app.ccd-app.ccd-app button::before, .ccd-app.ccd-app.ccd-app button::after { content: none !important; display: none !important; }
.ccd-app.ccd-app .ccd-btn { font-weight: 700; }
.ccd-app.ccd-app button strong { font-weight: 800; }
.ccd-btn { display: inline-flex; align-items: center; gap: 8px; transition: transform .08s ease, filter .15s ease; }
.ccd-btn:hover { filter: brightness(0.95); }
.ccd-btn:active { transform: translateY(1px); }
.ccd-btn[disabled] { opacity: .4; cursor: default; }
.ccd-btn.ccd-sm { font-size: .9em; }
.ccd-btn.ccd-lg { font-size: 1.05em; }
.ccd-app button:focus-visible, .ccd-input:focus-visible, .ccd-app a:focus-visible { outline: 3px solid var(--ccd-gold); outline-offset: 2px; }
.ccd-app .ccd-title, .ccd-app .ccd-h { font-family: inherit; text-transform: none; letter-spacing: normal; }
.ccd-app .ccd-a { color: var(--ccd-accent-ink); font-weight: 700; }
.ccd-pop { animation: ccd-pop .35s ease; }
@keyframes ccd-pop { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .ccd-pop { animation: none; } }

/* Cards */
.ccd-card { background: #fff; border: 1px solid var(--ccd-line); border-radius: 18px; padding: 22px 24px; margin: 0 0 16px; box-shadow: 0 1px 2px rgba(27, 54, 93, .04); }
.ccd-hero { background: linear-gradient(160deg, #fff 55%, var(--ccd-accent-soft)); }
.ccd-colored { background: linear-gradient(160deg, #fff 50%, color-mix(in srgb, var(--cc) 12%, #fff)); border-top: 5px solid var(--cc); }
.ccd-eyebrow { display: flex; align-items: center; gap: 6px; font-size: .78em; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--ccd-accent-ink); margin-bottom: 4px; }
.ccd-cc { color: color-mix(in srgb, var(--cc) 75%, #1d2a3b); }
.ccd-app .ccd-title { font-size: 1.75em; line-height: 1.2; margin: 0 0 8px; color: var(--ccd-primary); font-weight: 800; }
.ccd-lead { font-size: 1.02em; }
.ccd-app .ccd-h { display: flex; align-items: center; gap: 8px; font-size: 1.12em; line-height: 1.3; margin: 0 0 10px; color: var(--ccd-primary); font-weight: 800; }
.ccd-head2 { margin: 6px 0 10px; }
.ccd-intro-show { margin: 0 !important; }

.ccd-banner { display: flex; gap: 10px; align-items: center; border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; font-weight: 600; }
.ccd-banner span { flex: 1; }
.ccd-banner-ok { background: var(--ccd-accent-soft); color: var(--ccd-accent-ink); }
.ccd-banner-warn { background: var(--ccd-gold-soft); color: var(--ccd-gold-ink); }
.ccd-x { font-size: 1.3em; line-height: 1; }

/* Icons */
.ccd-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--cc) 15%, #fff); color: color-mix(in srgb, var(--cc) 80%, #1d2a3b); flex: 0 0 auto; }
.ccd-ic svg { width: 22px; height: 22px; }
.ccd-ic-lg { width: 58px; height: 58px; border-radius: 18px; }
.ccd-ic-lg svg { width: 30px; height: 30px; }

/* Home */
.ccd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
.ccd-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.ccd-choice:hover { box-shadow: 0 6px 18px rgba(27, 54, 93, .1) !important; }
.ccd-choice strong { font-size: 1.12em; color: var(--ccd-primary); margin-top: 8px; }
.ccd-choice span:not(.ccd-ic) { color: var(--ccd-muted); font-size: .94em; }
.ccd-choice em { font-style: normal; font-size: .8em; font-weight: 700; color: color-mix(in srgb, var(--cc) 75%, #1d2a3b); margin-top: 4px; }
.ccd-today { border-left: 5px solid var(--cc); }
.ccd-today-h { display: flex; gap: 12px; align-items: center; }
.ccd-today-h strong { font-size: 1.15em; color: var(--ccd-primary); }
.ccd-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ccd-track { flex: 1; height: 10px; background: var(--ccd-track); border-radius: 99px; overflow: hidden; display: block; }
.ccd-track span { display: block; height: 100%; border-radius: 99px; }
.ccd-bar-l { font-size: .85em; font-weight: 700; color: var(--ccd-muted); white-space: nowrap; }

/* Challenge */
.ccd-chead { display: flex; gap: 14px; align-items: center; }
.ccd-chead > div:nth-child(2) { flex: 1; min-width: 0; }
.ccd-chead .ccd-title { margin: 0; }
.ccd-streak { display: flex; flex-direction: column; align-items: center; background: var(--ccd-gold-soft); color: var(--ccd-gold-ink); border-radius: 14px; padding: 8px 14px; line-height: 1.1; }
.ccd-streak svg { width: 20px; height: 20px; }
.ccd-streak strong { font-size: 1.4em; }
.ccd-streak span { font-size: .72em; font-weight: 700; }
.ccd-days { display: grid; grid-template-columns: repeat(var(--ccd-cols, 10), minmax(0, 1fr)); gap: 6px; margin-top: 16px; max-width: calc(var(--ccd-cols, 10) * 64px); }
.ccd-half { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 20px; background: var(--ccd-gold-soft, #faf1df); color: #7a5410; font-size: .78em; font-weight: 800; }
.ccd-lens { margin: 6px 0 4px; }
.ccd-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--ccd-bg); border: 1px solid var(--ccd-line); border-radius: 12px; margin-bottom: 6px; }
.ccd-app.ccd-app .ccd-segb { font-weight: 700; font-size: .92em; }
.ccd-app.ccd-app .ccd-d { aspect-ratio: 1; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85em; text-align: center; }
.ccd-d svg { width: 16px; height: 16px; }
.ccd-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--ccd-muted); }
.ccd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ccd-k { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1.5px solid var(--ccd-line-2); }
.ccd-k-done { background: var(--cc); border-color: var(--cc); }
.ccd-k-today { border: 2.5px solid var(--cc); }
.ccd-k-missed { background: var(--ccd-bg); }
.ccd-daycard { border: 2px solid color-mix(in srgb, var(--cc) 40%, #fff); }
.ccd-dayhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ccd-nav svg { width: 20px; height: 20px; }
.ccd-app .ccd-prompt { font-size: 1.45em; line-height: 1.4; font-weight: 800; color: var(--ccd-primary); text-align: center; margin: 22px auto 10px; max-width: 620px; }
.ccd-app .ccd-prompt-sm { font-size: 1.12em; text-align: left; margin: 12px 0 0; }
.ccd-verse { margin: 0; padding: 12px 16px; border-left: 4px solid var(--ccd-gold); background: var(--ccd-gold-soft); border-radius: 0 12px 12px 0; font-style: italic; }
.ccd-verse cite { display: block; font-style: normal; font-weight: 700; font-size: .85em; margin-top: 4px; color: var(--ccd-gold-ink); }
.ccd-peek { background: #fff; border: 1px dashed var(--ccd-line-2); border-radius: 14px; padding: 12px 16px; margin: 4px 0 16px; }
.ccd-peek ol { margin: 6px 0 0; padding-left: 22px; }
.ccd-peek li { margin-bottom: 4px; }
.ccd-finish { text-align: center; border: 2px solid var(--cc); background: linear-gradient(160deg, #fff 40%, color-mix(in srgb, var(--cc) 14%, #fff)); }
.ccd-big { width: 64px; height: 64px; border-radius: 50%; background: var(--cc); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.ccd-app .ccd-big svg { width: 34px; height: 34px; }

/* Fields */
.ccd-field { margin: 12px 0 0; }
.ccd-field p { margin: 4px 0 0 !important; }
.ccd-label { display: block; font-weight: 700; margin-bottom: 5px; font-size: .92em; }
.ccd-app .ccd-input { display: block; width: 100%; max-width: 100%; font: inherit; color: var(--ccd-ink); background: #fff; border: 2px solid var(--ccd-line-2); border-radius: 12px; padding: 9px 12px; margin: 0; box-shadow: none; height: auto; line-height: 1.4; }
.ccd-app .ccd-input:focus { border-color: var(--ccd-accent); outline: none; }
.ccd-app textarea.ccd-input { resize: vertical; min-height: 60px; }
.ccd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ccd-check, .ccd-radio { display: inline-flex; gap: 8px; align-items: flex-start; margin: 12px 18px 0 0; cursor: pointer; }
.ccd-check input, .ccd-radio input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ccd-accent); }
.ccd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ccd-err { color: #b52b27; font-weight: 700; margin: 12px 0 0 !important; }
.ccd-mail { background: var(--ccd-bg); }
.ccd-sent { display: flex; gap: 12px; align-items: flex-start; background: var(--ccd-accent-soft); border-color: var(--ccd-accent); }
.ccd-sent > svg { width: 26px; height: 26px; color: var(--ccd-accent-ink); margin-top: 2px; }

@container ccd (max-width: 620px) {
	.ccd-wrap { font-size: 16px; }
	.ccd-card { padding: 18px 16px; border-radius: 16px; }
	.ccd-app .ccd-title { font-size: 1.45em; }
	.ccd-grid, .ccd-two { grid-template-columns: 1fr; }
	.ccd-days-wide { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.ccd-app .ccd-prompt { font-size: 1.25em; }
	.ccd-chead { flex-wrap: wrap; }
	.ccd-ic-lg { width: 48px; height: 48px; }
}

/* Printing */
.ccd-print-h { border-bottom: 3px solid var(--cc); margin-bottom: 10px; }
.ccd-print-h h1 { font-size: 1.6em; color: var(--ccd-primary); margin: 0; }
.ccd-print-h p { color: var(--ccd-muted); margin: 2px 0 8px; }
.ccd-ptable { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.ccd-ptable td { border-bottom: 1px solid var(--ccd-line); padding: 5px 6px; vertical-align: top; }
.ccd-pn { width: 28px; color: var(--ccd-muted); font-weight: 800; }
.ccd-pc { width: 24px; color: var(--cc); font-weight: 800; }
.ccd-ptable strong { font-weight: 600; }
.ccd-pnote { font-style: italic; color: var(--ccd-muted); font-size: .92em; }
.ccd-print-foot { text-align: center; color: var(--ccd-muted); font-size: .8em; margin-top: 10px !important; }
@media print {
	@page { size: letter; margin: 0.5in; }
	.ccd-app, .ccd-app * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
	.ccd-print-doc .ccd-app { font-size: 11.5px; }
	.ccd-ptable tr { break-inside: avoid; }
}
