/**
 * /characterforge/css/new_beginnings.css
 * Text-led narrative choices with expandable lore and the main builder's
 * compact ability cards, scoped to the beginner journey.
 */
.nb-story.story-container{max-width:1000px;width:100%;box-sizing:border-box;text-align:left}
.nb-story #story-text-container{font-size:1.35rem;min-height:120px}
.nb-story h1,.nb-story h3{font-family:Cinzel,serif;color:#e4c078}
.nb-story #nb-content{display:flex;flex-direction:column;gap:12px}
.nb-story .nb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;align-items:start}
.nb-story .nb-lore-row{min-width:0;padding:14px 0;border-bottom:1px solid #76603955}
.nb-story .nb-lore-heading{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
.nb-story .nb-option-icon{width:32px;height:32px;object-fit:contain}
.nb-story .nb-tagline{margin:6px 0;color:#c5bcad;line-height:1.5}
.nb-story .nb-recommended{font-size:.8rem;color:#c5af80;font-style:italic}
.nb-story .nb-lore-description{display:flow-root;line-height:1.65;padding:8px 0}
.nb-story .nb-lore-expanded{grid-column:1 / -1;min-width:0;padding:8px 0 18px;border-bottom:1px solid #76603955}
.nb-story .nb-description-art{float:right;width:36%;max-width:260px;max-height:300px;object-fit:cover;margin:0 0 16px 20px;border-radius:3px}
.nb-story .nb-choice{border-top:1px solid #76603955;padding:12px 0;overflow-wrap:anywhere}
.nb-story select,.nb-story input:not([type=checkbox]),.nb-story textarea{display:block;width:100%;max-width:32rem;box-sizing:border-box;background:#131313;color:#f4e7d3;border:1px solid #766039;border-radius:3px;padding:8px;font:1rem Georgia,serif;margin:6px 0}
.nb-story select{width:auto;max-width:100%}.nb-story select[hidden]{display:none!important}
.nb-story textarea{min-height:130px;max-width:100%}.nb-story label{display:block;line-height:1.5}
.nb-story small,.nb-note,#nb-draft-status{color:#aaa394;font-size:.9rem}
.nb-story button.nb-answer,.nb-story #nb-content button{display:block;background:none;border:0;border-radius:0;box-shadow:none;color:#e4c078;padding:5px 0;min-height:32px;width:fit-content;max-width:100%;font:inherit;font-size:1.05rem;font-weight:normal;letter-spacing:normal;text-transform:none;text-align:left;line-height:1.5;cursor:pointer;white-space:normal;transform:none}
.nb-story button.nb-answer:hover,.nb-story #nb-content button:hover{color:#ffdf9b;text-decoration:underline;text-underline-offset:4px;background:none;transform:none}
.nb-story button[aria-pressed=true]{color:#fff0c9;font-weight:bold}.nb-story button[aria-pressed=true]::before{content:'› ';color:#d1ae65}
.nb-story button:disabled{opacity:.45;cursor:not-allowed}
.nb-story :is(button,select,summary,a,input,textarea):focus-visible{outline:2px solid #f7d999;outline-offset:3px}
.nb-story .nb-answers{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:4px 0 12px}
.nb-story .nb-answer-label{color:#b7ad9a;font-size:.9rem;margin-bottom:4px}
.nb-story details{margin:4px 0}.nb-story summary{cursor:pointer;color:#b9a478;font-size:.95rem;padding:4px 0}
.nb-story #nb-nav{display:flex;flex-wrap:wrap;gap:10px 24px;margin:28px 0 12px;padding-top:14px;border-top:1px solid #76603955}
.nb-story #nb-notice{color:#f4d690}.nb-story #nb-notice:empty{display:none}.nb-story #nb-progress{color:#a69575;font-size:.85rem}
.nb-story .spell-source{width:100%;box-sizing:border-box}.nb-story .input-area{opacity:1}.nb-story a{color:#efd395}
 .nb-story .abilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; max-width: 950px; margin-left: auto; margin-right: auto; }
 .nb-story .stat-card { background: #1a1a1a; border: 1px solid #444; border-radius: 8px; padding: 15px; transition: border-color 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
 .nb-story .stat-card:hover { border-color: var(--gold); }
 .nb-story .stat-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 15px; }
 .nb-story .stat-card-title { font-size: 1.3rem; font-weight: bold; color: var(--gold-bright); font-family: 'Cinzel', serif; text-transform: uppercase; letter-spacing: 1px; }
 .nb-story .stat-card-mod { font-size: 1.4rem; font-weight: bold; color: #fff; background: #0b0b0b; border: 2px solid var(--gold); border-radius: 8px; width: 55px; height: 50px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 10px rgba(184, 134, 11, 0.2); }
 .nb-story .stat-breakdown { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; gap: 4px; }
 .nb-story .stat-part { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
 .nb-story .stat-part-label { font-size: 0.65rem; color: var(--gold); text-transform: uppercase; font-weight: bold; text-align: center; }
 .nb-story .stat-part-val { font-size: 1.1rem; font-weight: bold; color: #ccc; }
 .nb-story .stat-part-total { color: #fff; font-size: 1.4rem; border-bottom: 2px solid var(--gold-bright); padding-bottom: 2px; width: 80%; text-align: center; }
 .nb-story .score-box-small { width: 115px !important; font-size: 1rem; text-align-last: center; padding: 4px; }
 .nb-story .mod-box-tiny { width: 45px !important; font-size: 1rem; padding: 4px; }
 .nb-story .stat-card-desc { font-size: 0.75rem; color: #999; font-style: italic; line-height: 1.4; text-align: center; background: rgba(0,0,0,0.4); padding: 10px; border-radius: 6px; }
.nb-story .stat-part select{width:58px;min-width:0;text-align:center;margin:0;padding:5px}
.nb-story .stat-part-label{display:block}.nb-story .stat-card{min-width:0}
@media(max-width:850px){.nb-story .abilities-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.nb-story.story-container{padding:22px 16px}.nb-story .abilities-grid{grid-template-columns:1fr;width:100%}.nb-story .upload-row{grid-template-columns:1fr}.nb-story .spell-source-row{flex-direction:column}.nb-story .nb-description-art{float:none;width:100%;max-width:100%;margin:0 0 12px}}
@media(prefers-reduced-motion:reduce){.nb-story *{transition:none!important;animation:none!important}}

.nb-story .abilities-grid{width:100%;box-sizing:border-box}
.nb-story .stat-card-header{gap:8px}.nb-story .stat-card-title{font-size:1.05rem;letter-spacing:.3px}.nb-story .stat-card-mod{flex-shrink:0;width:46px;height:44px}

/* Full-height content panel over an uncropped banner that fades into the page. */
.nb-journey{position:relative;isolation:isolate;display:flow-root;flex:1}
.nb-story.story-container{position:relative;z-index:1;width:calc(100% - 32px);margin:125px auto 40px;padding:24px;background:rgba(0,0,0,.6);border:1px solid #766039;border-radius:8px}
.nb-story .nb-chapter{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.nb-story #nb-top-back .nb-answer{font-size:.9rem}
.nb-story h1{margin-top:8px}
.nb-story .nb-story-row{display:flex;align-items:center;gap:18px;margin-bottom:18px}
.nb-story #story-text-container{flex:1;min-width:0;min-height:120px;margin:0}
.nb-story #nb-next:empty{display:none}
.nb-story .nb-name-row{display:flex;align-items:center;gap:14px}
.nb-story .nb-name-row input{color:#e4c078;min-width:0;flex:1}
.nb-story .nb-name-row input::placeholder{color:#c5af80}
.nb-story button.nb-next-button,.nb-story #nb-content button.nb-next-button{background:#131313;border:1px solid #766039;border-radius:3px;color:#e4c078;padding:8px 22px;font:1rem Georgia,serif;white-space:nowrap}
.nb-story .nb-multi{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.nb-story #nb-content .nb-multi button{border:2px solid transparent;border-radius:999px;padding:7px 16px}
.nb-story #nb-content .nb-multi button[aria-pressed=true]{border-color:#d1ae65;background:#b8860b18}
.nb-story .nb-multi button[aria-pressed=true]::before,.nb-story .nb-equipment[aria-pressed=true]::before{content:none}
.nb-story #nb-content button.nb-equipment{display:flex;flex-direction:column;gap:8px;width:100%;border:1px solid #766039;border-radius:8px;padding:16px;background:#131313}
.nb-story #nb-content button.nb-equipment[aria-pressed=true]{border:2px solid #d1ae65;background:#b8860b18}
@media(max-width:700px){.nb-story .nb-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.nb-story.story-container{width:calc(100% - 20px);margin-top:125px;padding:18px 14px}.nb-story .nb-story-row{gap:10px;flex-wrap:wrap}.nb-story #story-text-container{flex-basis:100%}.nb-story #nb-next{margin-left:auto}.nb-story .nb-name-row{gap:8px}}

/* Inline names/taglines with separate actions shared by every lore card. */
.nb-story .nb-lore-title{flex:1;min-width:0;line-height:1.5}
.nb-story .nb-lore-name{color:#e4c078;font-size:1.05rem}
.nb-story .nb-lore-title .nb-tagline{display:inline;margin:0}
.nb-story .nb-option-icon{flex-shrink:0}
.nb-story #nb-content button.nb-choose-button{margin-left:auto;flex-shrink:0;padding:8px 12px}
.nb-story button.nb-choose-button[aria-pressed=true]::before{content:none}
.nb-story .nb-lore-actions{clear:both;display:flex;justify-content:flex-end;padding-top:16px}
.nb-story .nb-lore-row>.nb-note,.nb-story .nb-lore-row>.nb-recommended{display:block}
.nb-story .nb-ability-advance{display:flex;align-items:center;justify-content:space-between;gap:16px}
@media(max-width:600px){.nb-story .nb-lore-heading{gap:8px}.nb-story .nb-ability-advance{flex-wrap:wrap}.nb-story .nb-ability-advance p{margin-bottom:0}}

/* Included background belongings are informational; only real choices are controls. */
.nb-story .nb-included-equipment{padding:12px 16px;background:#131313;border:1px solid #766039;border-radius:8px;line-height:1.6}
.nb-story .nb-included-equipment ul{margin:0;padding-left:20px}
.nb-story #nb-nav .nb-bottom-next{margin-left:auto}


/* Keep the guide outside the quote so short dialogue has a consistent gap. */
.nb-story .nb-guide{width:64px;height:64px;object-fit:cover;border:2px solid var(--gold);border-radius:50%}
.nb-story #story-text-container{min-height:0}
.nb-story .nb-story-row{align-items:flex-start;margin-bottom:1.8rem}
.nb-story #nb-content .nb-answers button{border:2px solid transparent;border-radius:999px;padding:7px 16px}
.nb-story #nb-content .nb-answers button[aria-pressed=true]{border-color:#d1ae65;background:#b8860b18}
.nb-story .nb-answers button[aria-pressed=true]::before{content:none}
.nb-story .nb-alignment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:8px}
.nb-story .nb-alignment-grid .nb-answer-label{grid-column:1 / -1}
.nb-story .upload-box{cursor:default}

.nb-story input[hidden]{display:none!important}

/* Appearance exposes only the two shared-style image source actions. */
.nb-story .nb-artwork-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}
.nb-story .nb-artwork-data[hidden]{display:none!important}

/* Recommendations lead each card; race prose flows around its icon. */
.nb-story .nb-lore-row>.nb-recommended{margin:0 0 8px}
.nb-story .nb-race-option .nb-lore-heading{display:block}
.nb-story .nb-race-option .nb-option-icon{float:left;margin:0 10px 5px 0}
.nb-story .nb-race-option .nb-lore-title{display:block}
.nb-story #nb-content .nb-race-option .nb-lore-heading>.nb-choose-button{clear:both;margin:10px 0 0 auto}

/* Bestiary-style radio tabs and image framing for completed artwork crops. */
.nb-story #nb-top-back{display:flex;flex-wrap:wrap;gap:10px 24px}
.nb-story .nb-artwork-preview{max-width:360px;margin:24px auto}
.nb-story .nb-artwork-preview[hidden]{display:none!important}
.nb-story .nb-image-toggle{display:flex;justify-content:center;gap:6px;margin:0 0 10px;padding:5px;border:1px solid #c5a05959;border-radius:6px;background:#00000038}
.nb-story .nb-image-toggle legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.nb-story label.nb-image-option{display:flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid transparent;border-radius:4px;color:#ccc;cursor:pointer;font:12px/1 Cinzel,serif;text-transform:uppercase}
.nb-story .nb-image-option input[type=radio]{width:13px;height:13px;margin:0;accent-color:#c5a059;padding:0}
.nb-story .nb-image-option.is-selected{border-color:#c5a059;background:#c5a05929;color:#fff}
.nb-story .nb-image-option:has(input:disabled){opacity:.45;cursor:not-allowed}
.nb-story #nb-preview-image{width:100%;height:auto;border-radius:8px;border:1px solid #c5a059;box-shadow:0 4px 15px #0008;object-fit:cover}
.nb-story .is-token-mode #nb-preview-image{width:min(100%,320px);aspect-ratio:1;display:block;margin:0 auto;border-radius:50%;border-width:2px;background:#080808}
