/* Extends the full IYB stylesheet; scoped to the free planning tools. */
.story-tools-page { --story-gold: var(--primary, #d5a753); }
.story-tools-page [hidden] { display: none !important; }
.story-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 64px; }
.story-skip { position: fixed; left: 16px; top: -100px; z-index: 100; background: #d5a753; color: #16120b; padding: 12px 20px; }
.story-skip:focus { top: 12px; }
.story-tools-page :focus-visible { outline: 2px solid var(--story-gold); outline-offset: 5px; }
.story-tools-page p { color: #bfc0c7; font-size: 1rem; }
.story-eyebrow { color: var(--story-gold) !important; font-size: .8rem !important; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.story-breadcrumb { display: flex; gap: 12px; padding-top: 26px; font-size: .875rem; color: #b7b7bc; }
.story-breadcrumb a { text-decoration: none; }
.story-intro { max-width: 840px; margin: 32px 0 30px; }
.story-intro h1 { font-size: clamp(2rem, 3.8vw, 3.15rem); margin: 12px 0; line-height: 1.1; text-wrap: balance; }
.story-intro > p:last-child { max-width: 730px; margin-bottom: 0; }
.story-workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 24px; align-items: start; scroll-margin-top: 85px; }
.story-quiz { background: #151516; border: 1px solid #343035; border-radius: 16px; padding: 30px; box-shadow: 0 14px 60px #0003; }
.story-progress-heading { display: flex; justify-content: space-between; gap: 12px; color: #bfc0c7; font-size: .875rem; }
.story-progress-heading span:first-child { color: var(--story-gold); }
.story-quiz progress { display: block; width: 100%; height: 3px; appearance: none; border: 0; margin: 14px 0 30px; background: #303034; border-radius: 4px; }
.story-quiz progress::-webkit-progress-bar { background: #303034; border-radius: 4px; }
.story-quiz progress::-webkit-progress-value { background: var(--story-gold); border-radius: 4px; }
.story-quiz progress::-moz-progress-bar { background: var(--story-gold); border-radius: 4px; }
.story-choices { padding: 0; margin: 0; border: 0; min-width: 0; }
.story-choices legend, #story-question { color: #f3f3f3; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.65rem, 2.5vw, 2rem); line-height: 1.2; font-weight: 600; margin: 0 0 22px; padding: 0; }
.story-choice { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; margin: 10px 0; border: 1px solid #363639; border-radius: 10px; background: #1c1c1e; cursor: pointer; transition: border-color .15s, background .15s; }
.story-choice:hover { border-color: #8d754d; background: #242220; }
.story-choice:has(input:checked) { border-color: var(--story-gold); background: #d5a75312; }
.story-choice:has(input:focus-visible) { outline: 2px solid var(--story-gold); outline-offset: 3px; }
.story-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.story-choice > span:first-of-type { flex: 1; }
.story-choice strong { display: block; font-size: 1rem; font-weight: 600; color: #f3f3f3; }
.story-choice strong + span { display: block; margin-top: 5px; color: #b8b8bf; font-size: .875rem; line-height: 1.5; }
.story-choice-mark { width: 18px; height: 18px; border: 1px solid #77777e; border-radius: 50%; flex: 0 0 18px; }
.story-choice input:checked ~ .story-choice-mark { border: 5px solid var(--story-gold); background: #171717; }
.story-actions { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-top: 18px; }
.story-actions .btn { margin-left: auto; min-height: 46px; min-width: 154px; }
.story-back { padding: 10px 0; background: none; border: 0; color: #d5c5a5; font: inherit; font-size: .9rem; cursor: pointer; min-height: 44px; }
.story-back:hover { color: #f7e3b0; text-decoration: underline; }
.story-status { margin: 0; color: #f0c58a !important; }
.story-status:empty { display: none; }
.story-companion { padding: 24px 12px 20px 24px; }
.story-companion h2 { font-size: 2.5rem; line-height: 1.14; margin: 18px 0; font-weight: 500; }
.story-companion h2 span { color: var(--story-gold); font-style: italic; }
.story-companion > p { max-width: 30ch; }
.story-companion ol { list-style: none; padding: 0; margin: 28px 0; counter-reset: choices; }
.story-companion li { counter-increment: choices; display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid #28282b; font-size: .875rem; line-height: 1.5; }
.story-companion li::before { content: "0" counter(choices); font-variant-numeric: tabular-nums; color: #9f927a; }
.story-pending { color: #aaaab2; }
.story-chosen { color: #f2dec0; }
.story-companion-foot { font-size: .875rem !important; color: #aaaab2 !important; }
.story-field { display: block; font-size: .95rem; font-weight: 600; margin: 24px 0 10px; color: #eee; }
.story-field span { font-size: .875rem; font-weight: 400; color: #b7b7bc; }
.story-tools-page .story-input { width: 100%; padding: 14px; border: 1px solid #444449; border-radius: 8px; background: #0e0e10; color: #f3f3f3; font: inherit; font-size: 1rem; line-height: 1.6; resize: vertical; }
.story-input::placeholder { color: #9999a1; }
.story-optional { font-size: .875rem !important; }
.story-result { max-width: 860px; padding: 32px; background: #151516; border: 1px solid #615034; border-radius: 16px; scroll-margin-top: 85px; }
.story-result-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.story-result h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0; }
.story-result-sub { font-size: .875rem !important; color: #d6b980 !important; }
.story-result-premise { font-size: 1.15rem !important; color: #e2e2e7 !important; }
.story-result h3 { font-size: 1.5rem; margin: 26px 0 16px; }
.story-beats { list-style: none; padding: 0; counter-reset: beats; }
.story-beats li { counter-increment: beats; position: relative; padding: 14px 0 14px 43px; color: #ccccd2; font-size: 1rem; line-height: 1.7; border-bottom: 1px solid #2c2c30; }
.story-beats li::before { content: "0" counter(beats); position: absolute; left: 0; top: 16px; color: var(--story-gold); font-size: .875rem; }
.story-copy-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 24px 0; }
#story-copy-status { font-size: .875rem; color: #ded2b8; }
.story-book-cta { margin-top: 30px; padding: 26px; background: linear-gradient(120deg, #d5a75316, #d5a75305); border: 1px solid #5b4b31; border-radius: 10px; }
.story-book-cta h3 { margin: 8px 0 12px; font-size: 2rem; }
.story-book-cta .btn { display: inline-flex; margin: 8px 0; min-height: 48px; }
.story-trial-note { font-size: .875rem !important; line-height: 1.6; margin-bottom: 0; max-width: 66ch; }
.story-about { margin: 60px 0; max-width: 820px; }
.story-about h2 { font-size: 1.9rem; }
.story-about details, .story-prompt-details { border-top: 1px solid #343438; padding: 18px 0; }
.story-about details:last-of-type { border-bottom: 1px solid #343438; }
.story-tools-page summary { cursor: pointer; font-size: 1rem; color: #e6e1d8; line-height: 1.5; }
.story-example li { margin: 12px 0; color: #bfc0c7; line-height: 1.7; }
.story-directory-intro { max-width: 760px; margin: 52px 0 30px; }
.story-directory-intro h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); margin: 16px 0 24px; }
.story-directory-intro > p { max-width: 62ch; }
.story-pills { display: flex; gap: 18px; flex-wrap: wrap; font-size: .875rem; color: #d2c6af; margin: 24px 0; }
.story-family-nav { display: flex; gap: 12px; flex-wrap: wrap; margin: 36px 0; }
.story-family-nav a { display: inline-flex; gap: 16px; padding: 12px 20px; background: #1a1a1c; border: 1px solid #39393d; border-radius: 30px; text-decoration: none; }
.story-family-nav a:hover { border-color: var(--story-gold); }
.story-family-nav span { color: var(--story-gold); }
.story-category { margin: 42px 0; scroll-margin-top: 90px; }
.story-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.story-section-heading h2 { margin: 0; }
.story-section-heading > span, .story-section-heading > a { font-size: .875rem; color: #b7b7bc; }
.story-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.story-directory-card { display: flex; flex-direction: column; padding: 24px; background: #161618; border: 1px solid #333337; border-radius: 12px; text-decoration: none; transition: border-color .15s, background .15s; }
.story-directory-card:hover { border-color: #9b7b48; background: #1c1b1a; }
.story-directory-card h3 { font-size: 1.6rem; line-height: 1.2; margin: 18px 0 12px; color: #eeeae3; }
.story-directory-card p { font-size: .95rem; margin-top: 0; }
.story-card-link { display: flex; justify-content: space-between; margin-top: auto; padding-top: 18px; color: #e0bd7d; font-size: .9rem; }
@media (max-width: 850px) { .story-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .story-workspace { grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; } .story-quiz { padding: 24px; } .story-companion { padding: 20px 8px 20px 16px; } }
@media (max-width: 650px) { .story-shell { width: calc(100% - 28px); } .story-intro { margin: 24px 0; } .story-workspace { grid-template-columns: 1fr; } .story-companion { display: none; } .story-quiz, .story-result { padding: 20px; border-radius: 12px; } .story-choice { padding: 14px; } .story-section-heading { flex-wrap: wrap; } .story-directory-grid { grid-template-columns: 1fr; } .story-directory-intro { margin-top: 32px; } .story-book-cta { padding: 20px; } .story-book-cta .btn { width: 100%; justify-content: center; } .story-about { margin: 42px 0; } .story-result-top { gap: 8px; } .story-result-top .story-eyebrow { max-width: 14ch; } }
@media (prefers-reduced-motion: reduce) { .story-tools-page * { transition: none !important; scroll-behavior: auto !important; } }
