/* Scoped styles: all other tools retain their existing design. */
.family-reflection-page [hidden] { display: none !important; }
.family-reflection-page .skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.reflection-main { padding: clamp(24px,5vw,64px) 0 80px; background: linear-gradient(140deg,#f6f4eb,#eaf0e5); }
.reflection-shell { max-width: 940px; }
.reflection-panel { padding: clamp(24px,5vw,56px); background: #fffdf8; border: 1px solid #dce4d5; border-radius: 24px; box-shadow: 0 12px 45px #203b2410; }
.reflection-panel h1 { font-size: clamp(2.2rem,5vw,3.8rem); line-height: 1.08; max-width: 760px; margin: 12px 0 24px; }
.reflection-panel h2 { font-size: clamp(1.5rem,3vw,2rem); line-height: 1.2; margin: 12px 0; }
.reflection-panel h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 10px; }
.reflection-panel h4 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 10px; }
.reflection-panel p { line-height: 1.7; }
.reflection-lede { font-size: 1.12rem; color: #3f5142; }
.reflection-facts,.reflection-themes { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.reflection-facts span { font-size: .88rem; font-weight: 600; }
.reflection-facts span+span::before { content: '·'; margin-right: 10px; }
.reflection-themes span { padding: 9px 13px; border-radius: 20px; background: #eaf0e5; font-size: .9rem; }
.reflection-note,.reflection-storage { font-size: .88rem; color: #536256; }
.reflection-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 16px; }
.reflection-actions .button { white-space: normal; text-align: center; }
.reflection-text-button { padding: 8px 0; background: none; border: 0; color: #355c35; text-decoration: underline; cursor: pointer; font: inherit; }
.reflection-progress-copy { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: #536256; }
.reflection-progress { width: 100%; height: 7px; border: 0; border-radius: 10px; overflow: hidden; margin: 12px 0 30px; appearance: none; background: #e4e9df; }
.reflection-progress::-webkit-progress-bar { background: #e4e9df; }
.reflection-progress::-webkit-progress-value { background: #4f7147; }
.reflection-progress::-moz-progress-bar { background: #4f7147; }
.reflection-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.reflection-fieldset legend { font-family: 'Libre Caslon Display',Georgia,serif; font-size: clamp(1.8rem,4vw,2.6rem); line-height: 1.2; padding: 0; width: 100%; scroll-margin-top: 120px; }
.reflection-guidance { margin: 18px 0; color: #536256; font-size: .95rem; }
.reflection-options { display: grid; gap: 10px; }
.reflection-option { display: flex; align-items: center; gap: 13px; min-height: 58px; padding: 14px 18px; border: 1px solid #cdd8c7; border-radius: 12px; cursor: pointer; background: #fff; line-height: 1.5; }
.reflection-option:hover { background: #f1f5ed; border-color: #78966d; }
.reflection-option:has(input:checked) { background: #eaf0e3; border-color: #42683d; box-shadow: inset 0 0 0 1px #42683d; }
.reflection-option:focus-within { outline: 3px solid #ae702b; outline-offset: 3px; }
.reflection-option input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: #42683d; }
.reflection-question-actions { justify-content: space-between; }
.reflection-error { color: #a02d22; }
.reflection-priority-note,.reflection-conversation,.reflection-next { padding: 24px; margin: 30px 0; border-radius: 16px; background: #edf2e8; }
.reflection-pattern-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 24px 0 36px; }
.reflection-pattern { padding: 22px; border: 1px solid #dce4d5; border-radius: 14px; }
.reflection-pattern p { margin: 0; font-size: .95rem; }
.reflection-experiment { padding: 26px 0; border-bottom: 1px solid #dce4d5; }
.reflection-experiment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.reflection-experiment-grid p { margin: 0; }
.reflection-related { margin-bottom: 0; font-size: .9rem; }
.reflection-book { padding-top: 12px; }
.reflection-print-source { display: none; }
#reflection-results-title,#reflection-title { scroll-margin-top: 120px; }
.family-reflection-page .ideas-slot { margin-top: 36px; }
.family-reflection-page a:focus-visible,.family-reflection-page button:focus-visible { outline: 3px solid #ae702b; outline-offset: 4px; }
@media (max-width:600px) {
 .reflection-pattern-grid,.reflection-experiment-grid { grid-template-columns: 1fr; }
 .reflection-experiment-grid { gap: 24px; }
 .reflection-panel { border-radius: 16px; padding: 24px 20px; }
 .reflection-priority-note,.reflection-conversation,.reflection-next { padding: 20px; }
 .reflection-actions .button { flex: 1 1 180px; }
 .reflection-question-actions .button { flex: 0 1 auto; }
 .reflection-facts { gap: 6px 10px; }
}
@media (prefers-reduced-motion:reduce) { .family-reflection-page *, .family-reflection-page *::before,.family-reflection-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
 @page { margin: 16mm; }
 .family-reflection-page { background: #fff !important; display: block !important; color: #111; }
 .family-reflection-page .site-header,.family-reflection-page .site-footer,.family-reflection-page .skip-link,.family-reflection-page .reflection-no-print,.family-reflection-page .ideas-slot,.family-reflection-page noscript { display: none !important; }
 .family-reflection-page .reflection-main { background: #fff; padding: 0; overflow: visible; }
 .family-reflection-page .reflection-shell { max-width: none; width: auto; padding: 0; margin: 0; }
 .family-reflection-page .reflection-panel { background: #fff; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
 .family-reflection-page [data-reflection-view="results"] h1 { font-size: 27pt; }
 .family-reflection-page [data-reflection-view="results"] h2 { font-size: 17pt; }
 .family-reflection-page [data-reflection-view="results"] p { font-size: 10pt; line-height: 1.45; }
 .family-reflection-page .reflection-pattern-grid,.family-reflection-page .reflection-experiment-grid { display: block; }
 .family-reflection-page .reflection-pattern,.family-reflection-page .reflection-experiment-grid>div,.family-reflection-page .reflection-conversation,.family-reflection-page .reflection-book { break-inside: avoid; margin-bottom: 12px; }
 .family-reflection-page .reflection-priority-note,.family-reflection-page .reflection-next { background: none; padding: 0; }
 .family-reflection-page .reflection-pattern { padding: 12px; }
 .family-reflection-page .reflection-print-source { display: block; border-top: 1px solid #ccc; margin-top: 10px; padding-top: 5px; font-size: 8pt !important; break-before: avoid; }
 .family-reflection-page h2,.family-reflection-page h3,.family-reflection-page h4,.family-reflection-page .eyebrow { break-after: avoid; }
}
