/* Shared furias content (catalogues, native MyAAC pages, forms) restyled for the global frame. */

/* parchment cards become flat inner panels; no torn edges or drop shadows */
.vh .vbox-b .parch {
  clip-path: none !important; filter: none; box-shadow: inset 0 1px 0 #fff8, 0 1px 2px #49341a18;
  background-color: var(--vh-parch); background-image: radial-gradient(ellipse at 12% 0%, #fffdf352, transparent 70%), repeating-linear-gradient(0deg, #6d4c280b 0, #6d4c280b 1px, transparent 1px, transparent 5px);
  border: 1px solid var(--vh-parch-line); margin: 0 0 10px;
}
.vh .vbox-b .parch:last-child { margin-bottom: 0; }
.vh .vbox.raw > .vbox-b { display: grid; gap: 10px; }
.vh .vbox.raw > .vbox-b > .parch { margin: 0; }

/* section headings become dark table captions */
.vh .vbox-b .ph {
  justify-content: flex-start; gap: 8px; margin: 0 0 6px; padding: 4px 10px; text-align: left;
  font: 700 12px/1.5 var(--vh-font); letter-spacing: 0; text-transform: none; color: #fff !important;
  background: linear-gradient(180deg, #76513b, var(--vh-brown-dark)); border: 1px solid #080604; box-shadow: inset 0 1px 0 #f6dca050; text-shadow: 0 1px 0 #000;
}
.vh .vbox-b .ph::before, .vh .vbox-b .ph::after { display: none; }
.vh .vbox-b .aac-block { margin: 0 0 12px; }
.vh .vbox-b .aac-block:last-child { margin-bottom: 0; }
.vh .vbox-b .aac-block-b, .vh .vbox-b .pb { padding: 4px 2px; font-size: 12px; }

/* tables: dark brown header, alternating parchment rows */
.vh .vbox-b .twrap { margin: 0 0 6px; }
.vh .vbox-b .tt { font-size: 12px; border: 1px solid var(--vh-brown); border-spacing: 0; }
.vh .vbox-b .tt th, .vh .vbox-b table > thead > tr > th {
  background: linear-gradient(180deg, #78513a, var(--vh-brown-dark)) !important; color: #fff; font: 700 11.5px var(--vh-font); border-bottom: 1px solid #080604;
  text-shadow: none; border-radius: 0 !important; padding: 4px 8px;
}
.vh .vbox-b .tt td { padding: 4px 8px; border-bottom: 1px solid #00000014; background: var(--vh-parch); }
.vh .vbox-b .tt tbody tr:nth-child(even) td { background: var(--vh-parch-dark); }
.vh .vbox-b .tt tbody tr:hover td { background: #fff7e6; }
.vh .vbox-b .tt a { font-weight: 700; }
.vh .vbox-b table > thead > tr > th a, .vh .vbox-b table > thead > tr > th .table-sort { color: #fff; }

/* native MyAAC table markup (TableContainer, bgcolor rows) */
.vh .vbox-b table:not(.tt) { border-collapse: collapse; }
.vh .vbox-b td.white, .vh .vbox-b th.white { color: #fff; }

/* buttons from the shared theme get the global look */
.vh .vbox-b .btn { border-radius: 2px; font: 700 11.5px/1.4 var(--vh-font); text-transform: none; letter-spacing: 0; }
.vh .vbox-b .btn-gold, .vh .vbox-b .btn-blue {
  color: #fff; text-shadow: 0 1px 0 #000; border: 1px solid #000;
  background: linear-gradient(180deg, #4c86c9, #1d4f8f 55%, #133a6c); box-shadow: inset 0 1px 0 #ffffff55;
}
.vh .vbox-b .btn-ghost { color: #fff; border: 1px solid #000; background: linear-gradient(180deg, #7a6150, var(--vh-brown) 55%, var(--vh-brown-dark)); }

/* catalogue detail pages: breadcrumb bar and the blue item/creature header become global-style */
.vh .vbox-b .catalogue-breadcrumb {
  background: linear-gradient(180deg, #f9efd9, var(--vh-parch)) !important; border: 1px solid var(--vh-brown) !important; box-shadow: inset 0 1px 0 #fff, 0 1px 2px #38241333 !important;
  color: var(--vh-text) !important; border-radius: 0;
}
.vh .vbox-b .catalogue-breadcrumb :is(li, span) { color: var(--vh-text) !important; }
.vh .vbox-b .catalogue-breadcrumb a { color: var(--vh-link) !important; }
.vh .vbox-b thead th .table-sort { background: none !important; box-shadow: none !important; border: 0 !important; color: #fff !important; padding: 0; }
.vh .vbox-b span.pagination-number { background: linear-gradient(180deg, #7a6150, var(--vh-brown) 55%, var(--vh-brown-dark)) !important; }
.vh .vbox-b :is(.sheet-cap, .char-flags .pill, .spell-kind-badge) {
  background: var(--vh-brown) !important; color: #fff !important; border-color: #000 !important; box-shadow: none !important; text-shadow: none;
}
.vh .vbox-b :is(.wiki-facts > div, .library-stats > div) {
  background: var(--vh-parch) !important; color: var(--vh-text) !important; border-color: var(--vh-parch-line) !important; box-shadow: none !important;
}
.vh .vbox-b :is(.wiki-facts > div, .library-stats > div) :is(dt, dd, b, span, strong, small) { color: inherit !important; }
.vh .vbox-b img.no-logo { background: var(--vh-parch-dark) !important; }
.vh .vbox-b :is(.char-portrait, .monster-powers > div, .monster-stats > div, .sp-icon) { background: #00000040 !important; border-color: var(--vh-gold-line) !important; }
.vh .vbox-b .monster-stats dd { white-space: nowrap; font-size: 15px; }
.vh .vbox-b :is(.item-modal-header, .char-head, .spell-modal-header) {
  background: linear-gradient(180deg, var(--vh-brown) 0, var(--vh-brown-dark) 60%, var(--vh-brown-deep) 100%) !important;
  border: 1px solid #000 !important; box-shadow: none !important; border-radius: 0; color: var(--vh-parch) !important;
}
.vh .vbox-b .char-head :is(h2, h3) { color: var(--vh-gold-soft) !important; font-family: var(--vh-font-head); }
.vh .vbox-b .item-modal-header img { background: #00000040 !important; border-color: var(--vh-gold-line) !important; }
.vh .vbox-b .spell-modal-header :is(h2, h3) { color: var(--vh-gold-soft) !important; font-family: var(--vh-font-head); }
.vh .vbox-b .spell-modal-header :is(p, small) { color: var(--vh-parch) !important; }
.vh .vbox-b .item-modal-header :is(h2, h3) { color: var(--vh-gold-soft) !important; font-family: var(--vh-font-head); }
.vh .vbox-b .item-modal-header :is(p, small, span) { color: var(--vh-parch) !important; }
.vh .vbox-b .library-detail-panel { border-radius: 0; border-color: var(--vh-parch-line); }

/* page headline */
.vh .vbox.page > .vbox-h { font-size: 18px; }
.vh .vbox-b > h1:first-child { display: none; }

/* the shared library styles assume a wide parchment; give long catalogue grids some breathing room */
.vh .vbox-b img { max-width: 100%; }
@media (max-width: 640px) { .vh .vbox-b { padding: 8px; } }
