/* R28-B18: semantic book content inside the two existing PF2e reference owners. */
.reference-article-description .r28-rich-rule,
#r27ReferenceDrawer .r28-rich-rule { color:inherit; font:inherit; white-space:normal; }
.r28-rich-rule .r28-rich-paragraph { margin:0 0 1.05em; line-height:1.75; white-space:normal; overflow-wrap:anywhere; }
.r28-rich-rule .r28-rich-paragraph:last-child { margin-bottom:0; }
.r28-rich-rule .r28-rich-table-block { margin:18px 0 22px; }
.r28-rich-rule .r28-rich-table-block h3,
#r27ReferenceDrawer .r28-rich-rule .r28-rich-table-block h3 {font:700 12px/1.45 system-ui,sans-serif; letter-spacing:.045em; color:#d8a56d; margin:0 0 10px;}
.r28-rich-rule .r28-rich-table-scroll { width:100%; max-width:100%; overflow-x:auto; border:1px solid rgba(170,136,81,.38); border-radius:8px; background:#0e1a27; scrollbar-color:#9d7e56 #112234; }
.r28-rich-rule .r28-rich-table-scroll:focus-visible {outline:2px solid #c49c68;outline-offset:2px;}
.r28-rich-rule .r28-rich-table { border-collapse:collapse; min-width:515px; width:100%; margin:0; table-layout:auto; color:#dbe2e9; font:400 12px/1.45 system-ui,sans-serif; }
.r28-rich-rule .r28-rich-table th,.r28-rich-rule .r28-rich-table td {padding:9px 11px; text-align:left; border-bottom:1px solid rgba(148,160,175,.19); vertical-align:middle; white-space:nowrap;}
.r28-rich-rule .r28-rich-table thead th { font-weight:650; background:#182a3c; color:#e7b979; }
.r28-rich-rule .r28-rich-table tbody th { font-weight:600; color:#e2e9ef; }
.r28-rich-rule .r28-rich-table tbody tr:nth-child(even) { background:rgba(78,108,134,.12); }
.r28-rich-rule .r28-rich-table tbody tr:last-child th,.r28-rich-rule .r28-rich-table tbody tr:last-child td {border-bottom:0;}
.r28-rich-hazard .r28-rich-hazard-tag {display:inline-block; margin:0 7px 13px 0; padding:4px 9px; border:1px solid rgba(173,141,88,.45); border-radius:5px; background:rgba(102,74,44,.13); font:600 11px/1.4 system-ui,sans-serif; color:#dfb47e; }
.r28-rich-hazard .r28-rich-field {padding:12px 0; border-bottom:1px solid rgba(141,160,177,.16);}
.r28-rich-hazard .r28-rich-field:last-child {border-bottom:none;}
.r28-rich-hazard .r28-rich-field h3,
#r27ReferenceDrawer .r28-rich-hazard .r28-rich-field h3 {font:650 13px/1.4 system-ui,sans-serif; color:#e6b67b; margin:0 0 5px;}
.r28-rich-hazard .r28-rich-field p {font:inherit; line-height:1.7; margin:0 0 8px; white-space:normal; overflow-wrap:anywhere;}
.r28-rich-hazard .r28-rich-field p:last-child {margin-bottom:0;}
.r28-rich-hazard .r28-rich-field p strong {color:#e4c9a7; font-weight:600;}
#r27ReferenceDrawer .r27-ref-description .r28-rich-rule p {font-size:13px;line-height:1.7;white-space:normal;}
@media(max-width:600px) { .r28-rich-rule .r28-rich-table th, .r28-rich-rule .r28-rich-table td {padding:7px 9px;} .r28-rich-hazard .r28-rich-field {padding:10px 0;} }


/* R14 — a readable deity entry in both existing PF2e reference surfaces. */
.rwi-deity-profile {color:#d5dce4; font:400 13px/1.67 system-ui,-apple-system,sans-serif; width:100%; max-width:100%; overflow-wrap:break-word;}
.rwi-deity-profile * {box-sizing:border-box;}
.rwi-deity-heading {padding:0 0 16px; border-bottom:1px solid rgba(178,147,99,.25);}
.rwi-deity-kicker {font:700 10px/1.4 system-ui,sans-serif;letter-spacing:.11em;color:#d9a963;}
.rwi-deity-profile .rwi-deity-heading h2 {font:600 clamp(24px,2.1vw,31px)/1.18 Georgia,serif;color:#eee9df;margin:9px 0 3px;}
.rwi-deity-original {font-size:12px;color:#97a9ba;}
.rwi-deity-epithet {font:italic 16px/1.45 Georgia,serif;color:#e7c69a;margin:13px 0 0;}
.rwi-deity-alignment {display:inline-block;margin-top:14px;font:600 11px/1.4 system-ui,sans-serif;color:#c9d4df;}
.rwi-deity-section {padding:17px 0 19px;border-bottom:1px solid rgba(159,174,191,.14);}
.rwi-deity-section h3,#r27ReferenceDrawer .rwi-deity-section h3 {font:700 14px/1.4 system-ui,sans-serif;color:#e6b779;margin:0 0 12px;letter-spacing:.015em;}
.rwi-deity-lore p,.rwi-deity-intercession p {margin:0 0 12px;line-height:1.75;color:#d5dce4;white-space:normal;}
.rwi-deity-lore p:last-child,.rwi-deity-intercession p:last-child {margin-bottom:0;}
.rwi-deity-facts {margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;}
.rwi-deity-fact {min-width:0;}
.rwi-deity-fact dt {font:600 11px/1.35 system-ui,sans-serif;color:#a8afba;margin:0 0 4px;}
.rwi-deity-fact dd {font:400 13px/1.55 system-ui,sans-serif;color:#dfe5eb;margin:0;white-space:pre-line;}
.rwi-deity-faith .rwi-deity-fact:nth-child(2),.rwi-deity-faith .rwi-deity-fact:nth-child(3) {grid-column:1/-1;}
.rwi-deity-spells .rwi-deity-subnote {color:#9eaaba;font:400 12px/1.6 system-ui,sans-serif;margin:0 0 12px;}
.rwi-deity-spells ul {list-style:none;padding:0;margin:0;display:grid;gap:0;}
.rwi-deity-spells li {display:flex;align-items:baseline;gap:11px;padding:9px 0;border-bottom:1px solid rgba(145,167,186,.11);font-size:13px;}
.rwi-deity-spells li:last-child {border:0;}
.rwi-deity-rank {flex:0 0 26px;text-align:center;border:1px solid rgba(198,151,82,.35);border-radius:5px;color:#eab875;font-weight:700;font-size:12px;}
.rwi-deity-gift-group {padding:7px 0 0;}
.rwi-deity-gift-group h4 {font:700 12px/1.4 system-ui,sans-serif;color:#f0c18b;margin:13px 0 6px;}
.rwi-deity-gift-group.curse h4 {color:#cca8c3;}
.rwi-deity-gift {padding:11px 0 9px;border-bottom:1px solid rgba(150,165,184,.13);}
.rwi-deity-gift:last-child {border-bottom:0;}
.rwi-deity-gift h5 {font:600 12px/1.5 system-ui,sans-serif;color:#edcb9c;margin:0 0 5px;}
.rwi-deity-gift-group.curse h5 {color:#d7bad0;}
.rwi-deity-source {font:400 11px/1.55 system-ui,sans-serif;color:#8e9cac;padding:14px 0 5px;}
.rwi-deity-profile .rwi-deity-subnote {color:#a5afbc;font-size:12px;line-height:1.6;}
#r27ReferenceDrawer .rwi-deity-profile {font-size:13px;}
@media(max-width:850px) { .rwi-deity-facts{grid-template-columns:minmax(0,1fr);} .rwi-deity-profile .rwi-deity-heading h2{font-size:26px;} }

/* R16: same reference article navigation; no nested modal or styling overrides. */
.rwi-deity-spell-link {appearance:none;border:0;background:none;padding:2px 0;color:#f0ba6e;cursor:pointer;text-align:left;font:inherit;text-decoration:underline;text-decoration-color:rgba(240,186,110,.48);text-underline-offset:3px;}
.rwi-deity-spell-link:hover,.rwi-deity-spell-link:focus-visible{color:#ffda98;text-decoration-color:currentColor;}
.rwi-deity-spell-link:focus-visible,.rwi-reference-back:focus-visible{outline:2px solid #eab364;outline-offset:2px;border-radius:3px;}
.rwi-reference-back{appearance:none;background:transparent;border:1px solid rgba(183,137,70,.53);border-radius:7px;padding:8px 11px;color:#eab364;cursor:pointer;margin:0 0 17px;font:700 12px/1.25 system-ui,sans-serif;}
.rwi-spell-reference-text p{margin:0 0 12px;line-height:1.65;white-space:normal;}
