/**
 * /characterforge/css/compendium_share.css
 * Small gold SVG share buttons, keyboard-accessible tooltips, clipboard
 * feedback, and read-only standalone compendium presentation.
 */
.cf-share-host { position: relative; }
button.cf-share-button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-width: 28px; padding: 5px; margin: 0; border: 0; border-radius: 4px; background: transparent; color: #b9a16b; box-shadow: none; cursor: pointer; vertical-align: middle; flex-shrink: 0; position: relative; line-height: 1; }
button.cf-share-button svg { width: 18px; height: 18px; display: block; pointer-events: none; }
button.cf-share-button:hover, button.cf-share-button:focus-visible { color: #f0d390; background: #30291e; }
button.cf-share-button:focus-visible { outline: 2px solid #d3b774; outline-offset: 2px; }
button.cf-share-button:disabled { opacity: .5; cursor: wait; }
button.cf-share-button::after { content: 'Share URL'; position: absolute; bottom: calc(100% + 6px); right: 0; padding: 6px 9px; background: #171512; color: #eddfc4; border: 1px solid #665337; border-radius: 4px; font: 12px/1.3 sans-serif; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; z-index: 2147483647; }
button.cf-share-button:hover::after, button.cf-share-button:focus-visible::after { opacity: 1; visibility: visible; }
button.cf-share-corner { position: absolute; right: 3px; bottom: 3px; z-index: 3; }
button.cf-share-inline { float: right; margin-left: 8px; }
#cf-share-toast { position: fixed; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 40px); box-sizing: border-box; background: #211c15; border: 1px solid #a4874d; border-radius: 7px; box-shadow: 0 5px 24px #0009; color: #f3e8d0; padding: 11px 20px; font: 15px/1.4 sans-serif; z-index: 2147483647; pointer-events: none; }
.cf-share-copy-buffer { position: fixed; left: -10000px; top: 0; }
.cf-share-copy-fallback { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: min(480px, calc(100vw - 40px)); padding: 20px; box-sizing: border-box; background: #211c15; color: #f3e8d0; border: 1px solid #a4874d; border-radius: 7px; z-index: 2147483647; font: 15px/1.4 sans-serif; }
.cf-share-copy-fallback input { display: block; box-sizing: border-box; width: 100%; padding: 8px; margin: 8px 0; background: #111; color: #eee; border: 1px solid #665337; }
.cf-share-copy-fallback button { padding: 6px 16px; background: #392e1d; border: 1px solid #a4874d; color: #f3e8d0; border-radius: 4px; cursor: pointer; }
.cf-share-heading { display: flex; align-items: center; gap: 12px; }
.cf-share-heading > :first-child { flex: 1; min-width: 0; }
body.cf-compendium-page { margin: 0; background: #141312; color: #e6ddcf; font: 18px/1.55 'Crimson Pro', Georgia, serif; }
.cf-compendium-page main { box-sizing: border-box; max-width: 860px; margin: 32px auto; padding: 28px; background: #211e1a; border: 1px solid #715c38; border-radius: 8px; overflow-wrap: anywhere; }
.cf-compendium-page h1, .cf-compendium-page h2 { font-family: Cinzel, Georgia, serif; color: #d6b975; line-height: 1.25; }
.cf-compendium-page h1 { margin: 0 0 8px; font-size: 30px; }
.cf-compendium-page h2 { font-size: 20px; border-bottom: 1px solid #665337; padding-bottom: 6px; clear: both; }
.cf-compendium-page .cf-meta { color: #c6b89f; margin-top: 0; }
.cf-compendium-page .cf-art { float: right; width: min(35%, 220px); height: auto; max-height: 330px; object-fit: contain; margin: 0 0 18px 22px; border-radius: 6px; }
.cf-compendium-page dl { display: grid; grid-template-columns: minmax(100px, auto) 1fr; gap: 4px 18px; }
.cf-compendium-page dt { color: #d6b975; font-weight: bold; }
.cf-compendium-page dd { margin: 0; }
.cf-compendium-page table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.cf-compendium-page th, .cf-compendium-page td { padding: 6px; border-bottom: 1px solid #665337; text-align: left; }
.cf-compendium-page a { color: #d6b975; }
.cf-compendium-page main::after { content: ''; display: block; clear: both; }
@media(max-width:600px) { .cf-compendium-page main { margin: 12px; padding: 18px; } .cf-compendium-page h1 { font-size: 25px; } .cf-compendium-page dl { grid-template-columns: 1fr; gap: 2px; } .cf-compendium-page dd { margin-bottom: 8px; } }
@media print { .cf-share-button, .cf-compendium-page nav, #cf-share-toast { display: none !important; } body.cf-compendium-page, .cf-compendium-page main { background: white; color: black; border: 0; } }
