/* White default; Paperlike is an explicit, persistent reading preference. */
/* Old writing templates must not expose browser-print shortcuts. */
[data-print] { display: none !important; }
html, html[data-theme="dark"] { --cream: #fff; --paper: #fff; --ink: #17212b; --muted: #697682; --line: #e1e7e3; color-scheme: light; }
body:not(.paperlike-mode), body:not(.paperlike-mode) main { background: #fff; color: #17212b; }
body.paperlike-mode { --cream: #f4eedf; --paper: #fbf7ed; --ink: #332e24; --muted: #655c4c; --line: #d6ccb8; background-color: #f4eedf !important; color: #332e24 !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.045' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.paperlike-mode main { background: transparent !important; }
body.paperlike-mode :is(.detail-hero, .detail-section, .qa-card, .extract-card, .prose, .resource-actions-top, .qa-toolbar) { background-color: #fbf7ed !important; border-color: #d6ccb8 !important; color: #332e24 !important; border-radius: 3px; box-shadow: none; }
body.paperlike-mode :is(.qa-card h2, .qa-card h3, .qa-answer, .prose, .detail-section p, .qa-extract-heading blockquote) { font-family: Georgia, 'Times New Roman', serif !important; line-height: 1.75; color: #332e24 !important; letter-spacing: .005em; }

.learning-study-notice { max-width: 1200px; margin: 14px auto 0; padding: 12px 0 0; border-top: 1px solid #e2e8e4; color: #53615b; font-size: 12px; line-height: 1.55; }
.learning-study-notice-button { display: inline-flex; align-items: center; gap: 8px; width: fit-content; cursor: pointer; list-style: none; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 12px; color: #dbe8e1; background: rgba(255,255,255,.06); font: inherit; font-weight: 700; }
.learning-study-notice-button::-webkit-details-marker { display: none; }
.learning-study-notice-button::after { content: '+'; font-size: 15px; line-height: 1; }
.learning-study-notice[open] .learning-study-notice-button::after { content: '−'; }
.learning-study-notice-panel { max-width: 860px; padding: 10px 4px 0; color: #9fb2aa; }
.learning-study-notice-panel a { font-weight: 700; color: #dbe8e1; }
@media (max-width: 640px) { .learning-study-notice { margin-top: 10px; padding: 10px 16px 0; } .learning-study-notice-panel { padding-top: 9px; } }
@media print { body::after { content: 'Flying Hands Learning'; position: fixed; top: 42%; left: 5%; width: 90%; text-align: center; font: 700 32pt Georgia; color: rgba(20,60,40,.18); z-index: 2147483647; pointer-events: none; transform: rotate(-25deg); } body { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
@media (prefers-reduced-motion: reduce) { body.paperlike-mode * { scroll-behavior: auto; } }
