/* Steady Ground */
.sth-app {
	--sth-primary: #1b365d;
	--sth-accent: #008b80;
	--sth-gold: #c9942a;
	--sth-ink: #1d2a3b;
	--sth-muted: #5a6878;
	--sth-line: #e3e0d8;
	--sth-line-2: #cfd6dd;
	--sth-bg: #f7f5f0;
	--sth-accent-ink: #00675f;
	--sth-soft: #e9f3f1;
	--sth-warm: #fbf6ea;
	color: var(--sth-ink);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.sth-app *, .sth-app *::before, .sth-app *::after { box-sizing: border-box; }
/* The container sits on the wrapper, not the app, so the fixed Leave quickly button stays fixed to the screen. */
.sth-wrap { max-width: 860px; margin: 0 auto; container-type: inline-size; }
.sth-app p { margin: 0 0 12px; }
.sth-app svg { width: 1em; height: 1em; vertical-align: -0.14em; flex: 0 0 auto; }
.sth-app a { color: var(--sth-accent-ink); }
.sth-loading { color: var(--sth-muted); }
.sth-muted { color: var(--sth-muted); }
.sth-small { font-size: 0.88em; }
.sth-block { display: block; }
.sth-gap { margin-top: 14px !important; }
.sth-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }
.sth-between { justify-content: space-between; }

/* Buttons: base look; colors are also pinned inline by the script so themes can't override them. */
.sth-app.sth-app button { font: inherit; cursor: pointer; line-height: 1.3; text-align: inherit; margin: 0; }
.sth-app.sth-app.sth-app button::before, .sth-app.sth-app.sth-app button::after { content: none !important; display: none !important; }
.sth-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-radius: 12px; padding: 12px 20px; transition: transform .08s ease, filter .15s ease; }
.sth-btn:hover { filter: brightness(0.96); }
.sth-btn:active { transform: translateY(1px); }
.sth-sm { font-size: 0.9em; }
.sth-app button:focus-visible, .sth-app a:focus-visible, .sth-input:focus-visible { outline: 3px solid var(--sth-gold); outline-offset: 2px; }
.sth-link { font-weight: 600; font-size: 0.95em; display: inline-flex; align-items: center; gap: 4px; }

/* Hero */
.sth-hero { text-align: center; padding: 8px 0 14px; }
.sth-hero-ic { color: var(--sth-gold); line-height: 1; margin-bottom: 6px; }
.sth-hero-ic svg { width: 54px; height: 54px; }
.sth-title { margin: 0 0 4px; font-size: 2.1em; line-height: 1.15; font-weight: 800; color: var(--sth-primary); letter-spacing: -0.01em; }
.sth-sub { font-size: 1.1em; color: var(--sth-accent-ink); font-weight: 600; margin: 0 auto 12px !important; max-width: 600px; }
.sth-intro { max-width: 680px; margin: 0 auto 6px !important; text-align: left; }
.sth-intro-show { margin: 0 auto 12px !important; max-width: 680px; text-align: left; font-size: .9em; }

/* Cards */
.sth-card { background: #fff; border: 1.5px solid var(--sth-line); border-radius: 18px; padding: 22px 24px; margin: 18px 0; }
.sth-card > :last-child { margin-bottom: 0; }
.sth-h { margin: 0 0 10px; font-size: 1.2em; font-weight: 800; color: var(--sth-primary); line-height: 1.3; }
.sth-h4 { margin: 18px 0 6px; font-size: 1.02em; font-weight: 800; color: var(--sth-primary); }
.sth-sec { margin: 28px 0 10px; font-size: 1.25em; font-weight: 800; color: var(--sth-primary); }
.sth-eyebrow { display: inline-block; font-size: 0.78em; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sth-accent-ink); margin-bottom: 4px; }
.sth-start { border-color: var(--sth-gold); }
.sth-soft { background: var(--sth-soft); border-color: #cfe5e1; }
.sth-safety { border-color: #e2b4a8; background: #fdf6f3; }
.sth-lead { font-size: 1.05em; }
.sth-list { margin: 0; padding-left: 1.2em; }
.sth-list li { margin: 0 0 8px; }
.sth-dont li::marker { color: #b5462f; }

/* Choosing a path */
.sth-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sth-path { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.sth-path:hover { border-color: var(--sth-accent) !important; }
.sth-path-t { font-weight: 800; color: var(--sth-primary); font-size: 1.05em; }
.sth-path-d { color: var(--sth-muted); font-size: 0.92em; }
.sth-path-h { font-size: 1.4em; }
.sth-prog { max-width: 420px; margin: 8px 0 0; }
.sth-prog-bar { height: 10px; background: #e7ebef; border-radius: 99px; overflow: hidden; }
.sth-prog-bar span { display: block; height: 100%; background: var(--sth-accent); border-radius: 99px; transition: width .3s ease; }
.sth-prog-t { margin-top: 4px; font-size: 0.9em; color: var(--sth-muted); }

/* Steps list */
.sth-steps { list-style: none; margin: 16px 0 6px; padding: 0; border-top: 1px solid var(--sth-line); }
.sth-steps li { margin: 0; border-bottom: 1px solid var(--sth-line); }
.sth-steprow { display: flex; align-items: center; gap: 12px; text-align: left; }
.sth-steprow:hover { background: var(--sth-bg) !important; }
.sth-num { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85em; background: var(--sth-bg); color: var(--sth-primary); border: 1.5px solid var(--sth-line-2); }
.sth-steprow.sth-on .sth-num { background: var(--sth-accent); color: #fff; border-color: var(--sth-accent); }
.sth-st { display: flex; flex-direction: column; min-width: 0; }
.sth-st-t { font-weight: 700; color: var(--sth-primary); }
.sth-st-m { font-size: 0.82em; color: var(--sth-muted); }

/* Tool tiles */
.sth-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sth-tile { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.sth-tile:hover { border-color: var(--sth-accent) !important; }
.sth-tile-ic { color: var(--sth-accent); font-size: 1.5em; line-height: 1; margin-bottom: 4px; }
.sth-tile-t { font-weight: 800; color: var(--sth-primary); }
.sth-tile-d { font-size: 0.86em; color: var(--sth-muted); }
.sth-tile-night .sth-tile-ic { color: var(--sth-gold); }
.sth-tile-night .sth-tile-t { color: #fff; }
.sth-tile-night .sth-tile-d { color: #d7dfea; }

/* Step pages */
.sth-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 10px; }
.sth-step-t { margin: 0 0 4px; font-size: 1.8em; line-height: 1.2; font-weight: 800; color: var(--sth-primary); }
.sth-meta { color: var(--sth-muted); font-size: 0.92em; }
.sth-tag { display: inline-block; font-size: 0.8em; font-weight: 700; color: #7a4f0d; background: #f7ecd6; border-radius: 99px; padding: 2px 10px; }
.sth-read { display: flex; gap: 12px; align-items: flex-start; background: var(--sth-warm); border-radius: 14px; padding: 14px 18px; margin: 10px 0 18px; }
.sth-read > svg { color: var(--sth-gold); width: 1.5em; height: 1.5em; margin-top: 2px; }
.sth-read-h { display: block; font-weight: 700; }
.sth-read-w { display: block; font-style: italic; color: #3c3a33; margin-top: 2px; }
.sth-ref { font-weight: 700; color: var(--sth-accent-ink) !important; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.sth-body p { font-size: 1.03em; }
.sth-after { border-left: 4px solid var(--sth-gold); padding: 4px 0 4px 16px; margin: 18px 0; }
.sth-after p { margin: 0; }
.sth-done { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; padding-top: 18px; border-top: 1.5px solid var(--sth-line); }
.sth-toolhead { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.sth-toolhead-ic { color: var(--sth-accent); font-size: 2.2em; line-height: 1; }
.sth-toolhead .sth-meta { margin: 0; }
.sth-tool { border-color: var(--sth-accent); }

/* Checklists */
.sth-checks { display: flex; flex-direction: column; gap: 2px; }
.sth-check { display: flex !important; align-items: flex-start; gap: 10px; text-align: left; }
.sth-check:hover { background: var(--sth-bg) !important; }
.sth-box { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--sth-line-2); background: #fff; display: flex; align-items: center; justify-content: center; margin-top: 2px; color: #fff; }
.sth-check.sth-on .sth-box { background: var(--sth-accent); border-color: var(--sth-accent); }
.sth-check.sth-on > span:last-child { color: var(--sth-muted); }
.sth-term { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px; align-items: center; border-bottom: 1px solid var(--sth-line); padding: 4px 0; }

/* Inputs */
.sth-label { display: block; font-weight: 700; margin: 12px 0 4px; }
.sth-app .sth-input { display: block; width: 100%; max-width: 100%; font: inherit; font-size: 1em; color: var(--sth-ink); background: #fff; border: 1.5px solid var(--sth-line-2); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; box-shadow: none; line-height: 1.45; min-height: 0; height: auto; }
.sth-app textarea.sth-input { resize: vertical; }
.sth-app .sth-input-sm { padding: 7px 10px; font-size: 0.92em; margin: 0; }
.sth-part { margin-bottom: 8px; }

/* Tonight */
.sth-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sth-panel { background: var(--sth-bg); border-radius: 14px; padding: 16px 18px; }
.sth-panel .sth-h4 { margin-top: 0; }
.sth-clock { font-size: 3.2em; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sth-primary); line-height: 1.1; margin: 4px 0; }
.sth-unsent-list { list-style: none; margin: 14px 0 0; padding: 0; }
.sth-unsent { background: #fff; border: 1px solid var(--sth-line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.sth-unsent .sth-row { margin: 0 0 4px; }
.sth-unsent-t { white-space: normal; overflow-wrap: anywhere; }
.sth-verse { margin: 16px 0 0; padding: 14px 18px; background: var(--sth-warm); border-radius: 14px; font-style: italic; color: #3c3a33; border: 0; quotes: none; }
.sth-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 8px !important; }
.sth-line > svg { color: var(--sth-accent); }
.sth-call { font-weight: 700; border: 1.5px solid var(--sth-line-2); border-radius: 99px; padding: 2px 12px; text-decoration: none !important; font-size: 0.9em; }

/* Daily floor */
.sth-hist { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; max-width: 520px; }
.sth-day { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sth-dot { width: 100%; aspect-ratio: 1; max-width: 28px; border-radius: 7px; background: #e7ebef; }
.sth-dot[data-n] { background: var(--sth-accent); }
.sth-today .sth-dot { outline: 2px solid var(--sth-gold); outline-offset: 1px; }
.sth-dl { font-size: 0.7em; color: var(--sth-muted); }

/* Things to say, psalms */
.sth-say { margin: 0; }
.sth-say dt { font-weight: 700; color: var(--sth-primary); margin-top: 14px; }
.sth-say dt:first-child { margin-top: 0; }
.sth-say dd { margin: 4px 0 0; }
.sth-quote { display: block; background: var(--sth-soft); border-radius: 10px; padding: 8px 12px; }
.sth-psalms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.sth-psalms .sth-card { margin: 0 0 14px; }
.sth-ps-r { margin-bottom: 8px !important; }

/* Footer and the leave-quickly button */
.sth-foot { margin-top: 30px; padding-top: 16px; border-top: 1.5px solid var(--sth-line); }
.sth-foot svg { color: var(--sth-accent); }
.sth-exit { position: fixed; right: 16px; bottom: 16px; z-index: 99999; display: inline-flex !important; align-items: center; gap: 6px; font-weight: 800; font-size: 0.92em; box-shadow: 0 4px 16px rgba(0, 0, 0, .18) !important; }
.sth-has-exit .sth-wrap { padding-bottom: 56px; }

@container (max-width: 700px) {
	.sth-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 560px) {
	.sth-paths, .sth-two, .sth-psalms, .sth-term { grid-template-columns: minmax(0, 1fr); }
	.sth-card { padding: 18px 16px; }
	.sth-title { font-size: 1.75em; }
	.sth-step-t { font-size: 1.5em; }
	.sth-tile { padding: 14px !important; }
}
@container (max-width: 380px) {
	.sth-tiles { grid-template-columns: minmax(0, 1fr); }
}
@media print {
	.sth-exit, .sth-bar, .sth-done, .sth-foot button { display: none !important; }
}
