/**
 * /characterforge/compendium/compendium.css
 * Book-like public reference styling and scoped sheet definition links, drawer
 * articles, and Senses panel treatments using the Forge's fantasy typography.
 */
.cc-book-body{font-family:"Crimson Pro",serif;background:radial-gradient(ellipse at top,#2b241a 0,#12100e 65%);color:#e8dfcc}
.cc-book{max-width:1320px;margin:auto;padding:38px 30px 60px}
.cc-book-heading{padding:10px 0 26px;border-bottom:1px solid #8b703b;text-align:center}
.cc-book-heading h1{font-size:clamp(2.4rem,5vw,4.2rem);margin:0;color:#ebcf87;letter-spacing:.05em}
.cc-book-heading>p:last-child{font-size:1.25rem;margin:.5rem 0}
.cc-kicker{font:600 .72rem/1.4 "Cinzel",serif;text-transform:uppercase;letter-spacing:.12em;color:#b99a58;margin:0 0 .6rem}
.cc-search{padding:24px 0;max-width:900px;margin:auto}
.cc-search>label{display:block;margin-bottom:8px;font-weight:600}
.cc-search-row{display:flex;align-items:center;gap:10px}
.cc-search input,.cc-search select{font:1.1rem "Crimson Pro",serif;color:#f4e7d3;background:#171511;border:1px solid #8b703b;border-radius:5px;padding:12px;min-width:0}
.cc-search input{flex:1;width:100%}
.cc-search button{padding:12px 20px;background:linear-gradient(#d2b36e,#a37b32);color:#1f1608;border:1px solid #efd18c;border-radius:5px;font:700 .85rem "Cinzel",serif;cursor:pointer}
.cc-search :focus-visible,.cc-book a:focus-visible,.cc-term:focus-visible,.cc-drawer button:focus-visible{outline:2px solid #d5a847;outline-offset:3px}
.cc-book-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:35px;align-items:start}
.cc-contents{position:sticky;top:20px;border-right:1px solid #6d5734;padding-right:22px}
.cc-contents h2{color:#e0c48a;font-size:1.1rem}
.cc-contents a{display:flex;gap:5px;color:#c6bda9;padding:9px 0;font-size:1.02rem;line-height:1.35}
.cc-contents a span{display:inline-block;min-width:35px;color:#9e824d;font-family:"Cinzel",serif}
.cc-contents a[aria-current],.cc-contents a:hover{color:#ffe0a0}
.cc-reading{min-width:0}
.cc-reading>h2{font-size:1.8rem;color:#e4c684}
.cc-intro{font-size:1.2rem;margin-bottom:25px}
.cc-chapters{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cc-chapter{display:flex;gap:16px;padding:22px 18px;border:1px solid #655134;border-radius:5px;background:linear-gradient(135deg,#2a2319,#1c1914);color:#e3d8be;min-width:0}
.cc-chapter:hover{border-color:#ceab64;text-decoration:none;background:#30281c}
.cc-chapter-number{font:1.8rem "Cinzel",serif;color:#a3844b}
.cc-chapter h3{font-size:1.05rem;line-height:1.4;margin:0 0 10px;color:#e1c584}
.cc-chapter p{margin:0;line-height:1.45}
.cc-results{display:grid;gap:12px}
.cc-result{display:block;border:1px solid #655134;padding:18px 22px;background:#211d17;color:#ddd2bc;border-radius:4px}
.cc-result:hover{border-color:#c2a163;text-decoration:none;color:#f3e5c7}
.cc-result h3{margin:4px 0 7px;color:#e1c584;font-size:1.13rem}
.cc-result p{margin:4px 0;line-height:1.45}
.cc-muted{color:#b6ab94;font-size:.95em}
.cc-pagination{display:flex;justify-content:space-between;gap:16px;margin-top:25px}
.cc-alphabet{display:flex;flex-wrap:wrap;gap:5px;margin:20px 0}
.cc-alphabet a{padding:4px 9px;border:1px solid #695331}
.cc-alphabet a[aria-current]{background:#b18a43;color:#17120b}
.cc-entry{font:1.08rem/1.6 "Crimson Pro",serif;overflow-wrap:anywhere}
.cc-entry h2,.cc-entry h3,.cc-entry h4{font-family:"Cinzel",serif;color:inherit}
.cc-entry h2{font-size:1.7rem;margin:.3rem 0 1rem}
.cc-entry h3{font-size:1.05rem;margin:1.5rem 0 .6rem}
.cc-entry h4{font-size:.95rem;margin:1rem 0 .4rem}
.cc-entry li{margin:.45rem 0}
.cc-entry ul{padding-left:1.3rem}
.cc-entry .cc-summary{font-size:1.2rem}
.cc-example{border-left:3px solid #a98646;background:#a9853b13;padding:12px 16px;margin:20px 0}
.cc-example p{margin:.35rem 0 0}
.cc-paragraph{margin:.5rem 0}
.cc-chapter-sections{margin:18px 0}.cc-chapter-sections a[aria-current]{background:#a9864633;color:#ffe4aa}
.cc-related a{display:inline-block;border:1px solid #8b703b;border-radius:4px;padding:3px 9px;margin:4px 3px 4px 0;color:inherit;text-decoration:none}
.cc-source{border-top:1px solid #8b703b66;padding-top:16px;font-size:.83rem;opacity:.85}
.cc-source code{font-size:.78rem;overflow-wrap:anywhere}
.cc-spell-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;padding:16px 0;border-top:1px solid #8b703b66;border-bottom:1px solid #8b703b66}.cc-spell-facts dt{font:bold .8rem "Cinzel",serif}.cc-spell-facts dd{margin:4px 0 0}
.cc-table-wrap{max-width:100%;overflow:auto}
.cc-entry table{border-collapse:collapse;width:100%}
.cc-entry th,.cc-entry td{padding:7px;border:1px solid #8b703b66;text-align:left}
.cc-back-link{display:inline-block;margin-bottom:18px}
.sheet-body .cc-term{color:inherit;font:inherit;text-decoration:none;cursor:pointer;border-radius:2px}
.sheet-body .cc-term:hover{text-decoration:underline;text-decoration-color:#926c29;text-underline-offset:3px}
/* Term launchers are interface controls; links within entry documents retain
   their existing decoration. Suppressed senses keep the strike-through below. */
.cc-term:not(.cc-entry *):not(.cc-drawer article *):not(.cc-sense-row.is-suppressed *):is(:hover,:active,:focus,:focus-visible){text-decoration:none}
.sheet-body #panel-senses{--frame-corner:61.5px;--frame-strip:21px;--frame-jewel-width:32.1px;--frame-jewel-height:36px;--header-inset:10.5px;--panel-padding-x:28px;--panel-padding-y:27px;min-height:123px;padding:var(--panel-padding-y) var(--panel-padding-x)}
.sheet-body #panel-senses>.panel-ribbon-header{margin:calc(var(--header-inset) - var(--panel-padding-y)) calc(var(--header-inset) - var(--panel-padding-x)) 14px}
#panel-senses :is(.edge-left,.edge-right){grid-template-rows:minmax(0,1fr) minmax(0,1fr)}
#panel-senses :is(.edge-left,.edge-right) .panel-frame-jewel{display:none}
.cc-passives,.cc-special-senses{display:grid;gap:6px}
.cc-sense-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:.9rem}
.cc-sense-row strong{font-family:"Cinzel",serif;flex:none}
.cc-special-senses{border-top:1px solid #8b703b66;margin-top:12px;padding-top:10px}
.cc-sense-row.is-suppressed .cc-term{text-decoration:line-through;opacity:.65}
.cc-sense-state{font-size:.72rem;color:#861c1c;display:block}
.cc-sense-notices{font-size:.8rem;line-height:1.35;margin-top:10px}
.cc-sense-notices p{margin:.4rem 0}
.cc-sense-notices:empty{display:none}
.cc-drawer{font-family:"Crimson Pro",serif;color:inherit;max-width:100%}
.cc-drawer-nav{display:flex;gap:15px;justify-content:space-between;align-items:center;margin-bottom:12px}
.cc-drawer-nav button{background:transparent;color:inherit;border:1px solid #94713b;border-radius:4px;padding:5px 10px;cursor:pointer}
.cc-drawer-nav a,.cc-drawer-nav a:is(:hover,:active,:focus,:focus-visible){text-decoration:none}
.cc-drawer-nav a:focus-visible{outline:2px solid #d5a847;outline-offset:3px}
.cc-drawer a{color:inherit}
.cc-character-context{border-bottom:1px solid #94713b88;padding-bottom:18px;margin-bottom:22px}
.cc-character-context h3{font:700 1rem "Cinzel",serif;margin:.5rem 0}
.cc-character-context table{border-collapse:collapse;width:100%;font-size:.9rem}
.cc-character-context td,.cc-character-context th{padding:5px;text-align:left;border-bottom:1px solid #94713b44}
.cc-passive-scenarios{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;font-size:.85rem}
.cc-passive-scenarios span{border:1px solid #94713b66;padding:4px 7px;border-radius:4px}
.sheet-body .medallion-passive[role=button],.sheet-body .medallion-prof[role=button]{cursor:pointer}
@media(max-width:900px){.cc-book-layout{grid-template-columns:195px minmax(0,1fr);gap:22px}.cc-chapters{grid-template-columns:1fr}}
@media(max-width:600px){.cc-book{padding:24px 16px}.cc-book-layout{display:block}.cc-contents{position:static;border-right:0;border-bottom:1px solid #6d5734;margin-bottom:24px;padding:0 0 20px}.cc-contents nav{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.cc-contents h2{grid-column:1/-1}.cc-search-row{flex-wrap:wrap}.cc-search input{flex-basis:100%}.cc-search button{margin-left:auto}.cc-entry{font-size:1rem}.cc-entry h2{font-size:1.4rem}.cc-chapter{padding:18px 14px}}

.cc-creature-abilities{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:20px 0;text-align:center}.cc-creature-abilities div{display:flex;flex-direction:column;padding:9px 3px;border:1px solid #655235;border-radius:5px}.cc-creature-abilities strong{color:var(--gold,#d4af37)}@media(max-width:600px){.cc-creature-abilities{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Shared catalogue navigation, source artwork, and the narrow VTT book. */
.cc-quick-links{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.cc-quick-links a{flex:1;text-align:center;padding:12px 10px;border:1px solid #8b703b;border-radius:4px;color:#e7cb89;background:#211d17;font:600 .85rem "Cinzel",serif}
.cc-quick-links a[aria-current]{background:#5b4521;color:#ffdfa0}
.cc-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:16px 0;padding:16px;border:1px solid #655134;border-radius:5px}
.cc-filters label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:.95rem}
.cc-filters input,.cc-filters select{width:100%;min-width:0;box-sizing:border-box;padding:10px;font:inherit;color:#f4e7d3;background:#171511;border:1px solid #8b703b;border-radius:4px}
.cc-filter-actions{display:flex;align-items:end;gap:14px;flex-wrap:wrap}
.cc-filters button,.cc-vtt-action{padding:10px 14px;background:linear-gradient(#d2b36e,#a37b32);color:#1f1608;border:1px solid #efd18c;border-radius:4px;font:700 .8rem "Cinzel",serif;cursor:pointer}
.cc-filters :focus-visible,.cc-vtt-action:focus-visible,.cc-contents summary:focus-visible{outline:2px solid #d5a847;outline-offset:3px}
.cc-contents summary{cursor:pointer;font:600 1.1rem "Cinzel",serif;color:#e0c48a;padding:8px 0}
.cc-artwork{margin:1rem 0 1.5rem;text-align:center;border:1px solid #655134;border-radius:6px;background:#0e0d0b;padding:8px}
.cc-artwork a{display:block}.cc-artwork img{display:block;margin:auto;max-width:100%;width:auto;height:auto;max-height:480px;object-fit:contain;border-radius:3px}
.cc-result-meta{color:#d5ba7d;font-size:.95rem}
.cc-vtt-action{margin:0 0 18px}
.cc-embedded{margin:0;min-width:0}.cc-embedded .cc-book{padding:14px 12px 24px}.cc-embedded .cc-book-heading{padding:0 0 12px}.cc-embedded .cc-book-heading h1{font-size:1.65rem}
.cc-embedded .cc-book-heading>p:last-child{font-size:1rem}.cc-embedded .cc-search{padding:12px 0}.cc-embedded .cc-book-layout{display:block}
.cc-embedded .cc-contents{position:static;border-right:0;border-bottom:1px solid #6d5734;padding:0 0 12px;margin-bottom:18px}
.cc-embedded .cc-search-row{flex-wrap:wrap}.cc-embedded .cc-search input{flex-basis:100%}.cc-embedded .cc-search button{margin-left:auto}
.cc-embedded .cc-contents nav{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.cc-embedded .cc-chapters{grid-template-columns:1fr}
.cc-embedded .cc-chapter,.cc-embedded .cc-result{padding:14px 12px}.cc-embedded .cc-artwork img{max-height:310px}
.cc-embedded .cc-entry{font-size:1rem}.cc-embedded .cc-entry h2{font-size:1.35rem}.cc-embedded .cc-creature-abilities{grid-template-columns:repeat(3,minmax(0,1fr))}
.cc-global-search>summary,.cc-filter-panel>summary{cursor:pointer;color:#e7cb89;padding:10px 0;font:600 .9rem "Cinzel",serif}
.cc-global-search{border-bottom:1px solid #6d5734;margin-bottom:8px}.cc-filter-panel{margin:12px 0}
.cc-embedded .cc-book-heading>.cc-kicker,.cc-embedded .cc-book-heading>p:last-child{display:none}.cc-embedded .cc-book-heading h1{font-size:1.35rem}
.cc-embedded .cc-quick-links{margin:12px 0}.cc-embedded .cc-reading>h2{font-size:1.3rem;margin:.5rem 0}.cc-embedded .cc-contents{margin-bottom:14px;padding-bottom:8px}
.cc-embedded .cc-search>label{display:none}
.cc-embedded .cc-result p:not(.cc-result-meta):not(.cc-muted){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(min-width:601px){.cc-book-body:not(.cc-embedded) .cc-contents>summary{display:none}.cc-book-body:not(.cc-embedded) .cc-contents>nav{display:block}}
@media(max-width:600px){.cc-contents{margin-bottom:18px;padding-bottom:12px}.cc-filters{padding:12px;gap:10px}.cc-artwork img{max-height:360px}}
@media(max-width:360px){.cc-filters{grid-template-columns:minmax(0,1fr)}.cc-search-row{gap:8px}.cc-search button{padding:12px}.cc-spell-facts{grid-template-columns:minmax(0,1fr)}.cc-contents a{font-size:.94rem}.cc-quick-links{gap:6px}.cc-quick-links a{font-size:.75rem;padding:10px 6px}}


/* Enabled by the VTT parent only at its mobile breakpoint, not iframe width. */
.cc-embedded.cc-vtt-mobile .cc-book { padding: 6px 3px 8px; }
.cc-embedded.cc-vtt-mobile :is(.cc-chapter, .cc-result, .cc-filters, .cc-example) { padding-left: 4px; padding-right: 4px; }
.cc-embedded.cc-vtt-mobile :is(.cc-chapters, .cc-results, .cc-filters) { gap: 6px; }
.cc-embedded.cc-vtt-mobile :is(.cc-quick-links, .cc-filters, .cc-filter-panel) { margin-top: 6px; margin-bottom: 6px; }
.cc-embedded.cc-vtt-mobile .cc-contents { margin-bottom: 6px; padding-bottom: 4px; }
.cc-embedded.cc-vtt-mobile .cc-entry :is(th, td) { padding-left: 3px; padding-right: 3px; }
.cc-embedded.cc-vtt-mobile .cc-entry :is(th, td):first-child { padding-left: 1px; }
.cc-embedded.cc-vtt-mobile .cc-entry :is(th, td):last-child { padding-right: 1px; }
.cc-embedded.cc-vtt-mobile, .cc-embedded.cc-vtt-mobile * { scrollbar-width: thin; }
.cc-embedded.cc-vtt-mobile::-webkit-scrollbar, .cc-embedded.cc-vtt-mobile *::-webkit-scrollbar { width: 5px; height: 5px; }
