.vdb-sticky-nav-sentinel {
    height: 1px;
    margin: 0;
    padding: 0;
    visibility: hidden;
    pointer-events: none;
}

/*
 * Height of the page chrome pinned to the top of the viewport (admin bar + the
 * theme's sticky nav clone). sticky-table-nav.js overwrites this on load, scroll,
 * resize and orientation change with what is actually pinned right now — the
 * theme builds its nav clone lazily, so the live value is 0 until it exists.
 * The 60px here is only the no-JS fallback.
 */
:root {
    --vdb-sticky-nav-offset: 60px;
}

/* --- Shared data-table skin (matches refinement / TablePress-342 look) --- */

.vdb-table,
.vdb-table table,
.vdb-table thead,
.vdb-table tfoot {
    border: none;
}

.vdb-table table {
    border-collapse: collapse;
    width: 100%;
    border: 0 !important;
}

.vdb-table thead th {
    background-color: #212121;
    font-weight: 700;
    text-align: left;
    padding: 0.6rem;
    border: none;
    border-bottom: 2px solid #2c2c2c;
    position: sticky;
    /*
     * Stick below whatever chrome is fixed to the top of the viewport.
     * sticky-table-nav.js keeps --vdb-sticky-nav-offset equal to the height that
     * is *currently* pinned there, so this needs no class toggle: the head never
     * parks behind the nav bar, and never floats over a gap no nav bar fills.
     */
    top: var(--vdb-sticky-nav-offset, 60px);
    z-index: 2;
}

/*
 * overflow-x: auto makes overflow-y compute to auto too, so this wrapper — not
 * the viewport — is the sticky containing block. Using the nav offset here
 * drops the head 32px into the table and covers the first row (boss/mount
 * stats-by-level). Stick to the wrapper's top instead.
 */
.vdb-table-scroll .vdb-table thead th {
    top: 0;
}

.vdb-table tbody td,
.vdb-table tbody th {
    background-color: #141414;
    padding: 0.6rem;
    vertical-align: top;
    border: none;
}

.vdb-stats-by-level__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.vdb-stats-by-level__icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.vdb-stats-by-level__label {
    font-weight: 600;
}

/* Mount stats-by-level: center the level value columns (not the Stats label column). */
.vdb-mount-stats-by-level .vdb-table--stats-by-level thead th:not(:first-child),
.vdb-mount-stats-by-level .vdb-table--stats-by-level tbody td {
    text-align: center;
}

/* Mount skills: cells centred on the icon row; learned-at column centered; description muted. */
.vdb-mount-skills .vdb-table tbody td {
    vertical-align: middle;
}

.vdb-mount-skills .vdb-table thead th.vdb-mount-skills__learned,
.vdb-mount-skills .vdb-table tbody td.vdb-mount-skills__learned {
    text-align: center;
}

.vdb-mount-skills .vdb-table tbody td.vdb-mount-skills__desc {
    font-size: 0.8em;
    color: #ececd199;
}

.vdb-table th.vdb-store-level,
.vdb-table td.vdb-store-level,
.vdb-table th.vdb-store-stock,
.vdb-table td.vdb-store-stock {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.vdb-table th.vdb-store-price,
.vdb-table td.vdb-store-price {
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

.vdb-store-price__value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.vdb-item-stat-price {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}

.vdb-store-price__value .vdb-store-currency__label {
    font-size: 0.8em;
    color: #ececd199;
}

.vdb-store-currency__icon {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.vdb-name-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.vdb-boss-skills tbody td:first-child {
    font-weight: 700;
}

.vdb-name-with-icon__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.vdb-table tbody tr:nth-child(even) td,
.vdb-table tbody tr:nth-child(even) th {
    background-color: #171717;
}

.vdb-table tbody td a {
    color: inherit;
    text-decoration: none;
}

.vdb-table tbody td a:hover {
    color: inherit;
    text-decoration: underline;
}

.vdb-table tbody td a.vdb-ref-link {
    font-weight: inherit;
}

/* --- Item reference icon + label (tables, trust items) --- */

.vdb-ref-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* max-width beats the theme's img { max-width: 100% }, which squeezes the icon
   below 56px when the cell around it is narrow. */
.vdb-ref-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    max-width: fit-content;
    object-fit: contain;
    display: block;
}

/* --- Entity singles: layout only; typography/colors from theme --- */

.vdb-entity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    margin: 0 0 1rem;
}

.vdb-entity-meta__row {
    flex: 1 1 9rem;
    min-width: 7rem;
    max-width: 16rem;
}

.vdb-entity-meta__label {
    margin: 0;
}

.vdb-entity-meta__value {
    margin: 0.2rem 0 0;
}

.vdb-entity-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1rem;
}

.vdb-entity-chip {
    display: inline-block;
    text-decoration: none;
}

.vdb-entity-desc {
    margin-top: 1rem;
    line-height: 1.65;
}

.vdb-entity-desc--wysiwyg p:first-child {
    margin-top: 0;
}

.vdb-entity-desc--plain p:last-child {
    margin-bottom: 0;
}

.vdb-acf-wysiwyg a:has(> img):not(.vdb-no-lightbox) {
    cursor: zoom-in;
}

.vdb-acf-wysiwyg img {
    display: block;
}

.vdb-entity-external-link {
    margin: 0.5rem 0 0;
}

.vdb-single-item__icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vdb-cpt-mission__title {
    margin: 0 0 0.25rem;
}

.vdb-cpt-mission__description {
    margin: 0 0 1rem;
    line-height: 1.5;
}

.vdb-cpt-objectives li {
    margin-bottom: 0.35rem;
}

/* --- Shared table cell patterns: icon column, item name, subtitle --- */

.vdb-icon-cell {
    /* 56px is the icon. content-box keeps the cell padding outside that width. */
    box-sizing: content-box;
    width: 56px;
}

.vdb-icon-cell .vdb-ref-icon {
    width: 56px;
    height: 56px;
    display: block;
}

/* The icon links to the single. Keep the target the size of the icon itself. */
.vdb-icon-cell a {
    display: block;
    width: fit-content;
}

/* Keep row height consistent when the icon column is empty */
.vdb-table tbody .vdb-icon-cell:not(:has(.vdb-ref-icon))::after {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
}

/*
 * Phone and tablet: tables wider than the screen scroll sideways inside
 * .vdb-table-scroll. Pin the icon column so the item stays identifiable.
 * 1024px matches the item archive and isMobileArchiveView() in sticky-table-nav.js.
 */
@media (max-width: 1024px) {
    .vdb-table th.vdb-icon-cell,
    .vdb-table td.vdb-icon-cell {
        position: sticky;
        left: 0;
        z-index: 1;
    }

    .vdb-table thead th.vdb-icon-cell {
        z-index: 3;
    }

    /*
     * collapse clips box-shadow on sticky cells. Same reason the archive and
     * refinement tables use separate.
     */
    .vdb-table:has(.vdb-icon-cell) table {
        border-collapse: separate;
        border-spacing: 0;
    }

    /* sticky-table-nav.js adds vdb-h-scrolled on the element that scrolls. */
    .vdb-h-scrolled :is(th, td).vdb-icon-cell {
        box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.45);
    }
}

/* Rows with an item icon: every cell shares the icon's middle line. */
.vdb-table tbody tr:has(> .vdb-icon-cell) > td {
    vertical-align: middle;
}

.vdb-table .vdb-col-qty {
    text-align: center;
    white-space: nowrap;
    width: 4.5rem;
}

.vdb-table tbody .vdb-col-qty {
    color: #dd9933;
    font-weight: 700;
}

/* Support columns (Location, Slot, Category, Tool...) sit behind the item name. */
.vdb-table tbody td.vdb-col-secondary {
    color: #ececd199;
    font-size: 0.9em;
}

.vdb-table tbody td.vdb-col-secondary a {
    color: inherit;
}


.vdb-item-name {
    font-weight: 600;
}

.vdb-enchant-level {
    margin-left: 0.35em;
    font-weight: 600;
    white-space: nowrap;
}

.vdb-item-subtitle {
    display: block;
    font-size: 0.6875rem;
    color: rgba(236, 236, 209, 0.42);
    line-height: 1.3;
    margin-top: 0;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
}

/* Note under the item name in a store listing row. */
.vdb-item-subtitle--note {
    font-size: 0.9rem;
}

/* Links in a note (items, quests, characters) are gold. */
.vdb-item-subtitle--note a {
    color: #ddab5f !important;
    text-underline-offset: 0.15em;
}

.vdb-table-scroll {
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

/*
 * GP dynamic templates: GenerateBlocks sets fixed px grid tracks (e.g. 957px + 200px)
 * that overflow the content column when GP's right/left sidebar is active.
 */
body[class*="single-vulkk_"]:is(.right-sidebar, .left-sidebar) .dynamic-content-template {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

body[class*="single-vulkk_"]:is(.right-sidebar, .left-sidebar) .dynamic-content-template > [class*="gb-element-"] {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    grid-template-columns: unset !important;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

body[class*="single-vulkk_"]:is(.right-sidebar, .left-sidebar) .dynamic-content-template > [class*="gb-element-"] > div:first-child {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

body[class*="single-vulkk_"]:is(.right-sidebar, .left-sidebar) .dynamic-content-template .wp-block-post-featured-image {
    order: -1;
    max-width: min(200px, 100%);
    margin: 0 0 1.25rem;
}

body[class*="single-vulkk_"]:is(.right-sidebar, .left-sidebar) .dynamic-content-template > [class*="gb-element-"] > div:first-child > section[class^="vdb-"] {
    max-width: 100%;
    min-width: 0;
}

body[class*="single-vulkk_"]:is(.right-sidebar, .left-sidebar) .dynamic-content-template figure.wp-block-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body[class*="single-vulkk_"]:is(.right-sidebar, .left-sidebar) .dynamic-content-template figure.wp-block-table table {
    width: max-content;
    min-width: 100%;
}

/*
 * Store listing tables keep their head stuck below the page nav. overflow-x: auto on
 * .vdb-table-scroll, on core's figure.wp-block-table and on the sidebar override above
 * each turns that element into the sticky containing block, so the head only ever stuck
 * inside a wrapper that never scrolls. Here the page scrolls instead and the table fits
 * the column: names wrap rather than push the table sideways.
 */
.vdb-table-scroll--sticky-head,
.vdb-table-scroll--sticky-head .vdb-table,
body[class*="single-vulkk_"]:is(.right-sidebar, .left-sidebar) .dynamic-content-template .vdb-table-scroll--sticky-head figure.wp-block-table {
    overflow: visible;
}

body[class*="single-vulkk_"]:is(.right-sidebar, .left-sidebar) .dynamic-content-template .vdb-table-scroll--sticky-head figure.wp-block-table table {
    width: 100%;
    min-width: 0;
}

.vdb-table-scroll--sticky-head .vdb-table thead th {
    top: var(--vdb-sticky-nav-offset, 60px);
}

.vdb-table-scroll--sticky-head .vdb-item-name {
    overflow-wrap: anywhere;
}

/*
 * Phone and tablet: the table keeps a readable width and scrolls sideways inside its
 * wrapper, so the wrapper becomes the sticky containing block. The head sits at the top
 * of the table until sticky-table-nav.js pins it below the page nav, the way it does for
 * the refinement table. The sidebar selector repeats the override above so min-width wins.
 */
@media (max-width: 1024px) {
    .vdb-table-scroll--sticky-head {
        overflow-x: auto;
    }

    .vdb-table-scroll--sticky-head .vdb-table thead th {
        top: 0;
    }

    /*
     * The pinned head is sized cell by cell in JS from the body cells' outer widths and
     * the row height. .vdb-icon-cell is content-box, so without this its head cell grows
     * by its padding, comes out wider and taller than the rest and covers the Item label.
     */
    .vdb-table-scroll--sticky-head table.vdb-sticky-nav-pinned thead th {
        box-sizing: border-box;
    }

    .vdb-table-scroll--sticky-head .vdb-table table,
    body[class*="single-vulkk_"]:is(.right-sidebar, .left-sidebar) .dynamic-content-template .vdb-table-scroll--sticky-head figure.wp-block-table table {
        width: 100%;
        min-width: 34rem;
    }
}

.vdb-cpt-coats {
    display: grid;
    grid-template-columns: repeat(var(--coat-columns, 3), 1fr);
    gap: 2rem;
    max-width: 100%;
}

.vdb-cpt-coats img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.vdb-cpt-coats__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: color-mix(in srgb, currentColor 12%, transparent);
}

.vdb-cpt-coats__label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
    text-align: center;
}

.vdb-cpt-coats__label a {
    color: inherit;
    text-decoration: none;
}

.vdb-cpt-coats__label a:hover,
.vdb-cpt-coats__label a:focus-visible {
    text-decoration: underline;
}

/* Trust items: grid layout only */

.vdb-table .vdb-col-trust {
    text-align: center;
    white-space: nowrap;
    width: 5rem;
}

:is(.vdb-pet-trust-items, .vdb-mount-trust-items, .vdb-character-trust-gifts, .vdb-character-trust-rewards, .vdb-pet-compatible-gear, .vdb-mount-compatible-gear) .vdb-table tbody td {
    vertical-align: middle;
}

:is(.vdb-pet-trust-items, .vdb-mount-trust-items, .vdb-character-trust-gifts) .vdb-table tbody tr:has(.vdb-trust-group[open]) td {
    vertical-align: top;
}

.vdb-trust-group > summary {
    list-style: none;
    cursor: pointer;
}

.vdb-trust-group > summary::-webkit-details-marker {
    display: none;
}

.vdb-trust-group__summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vdb-trust-group__chev {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    flex-shrink: 0;
}

.vdb-trust-group__chev::before {
    content: '';
    display: block;
    box-sizing: content-box;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid currentColor;
    transform-origin: 50% 50%;
    transition: transform 0.18s ease;
}

.vdb-trust-group[open] > summary .vdb-trust-group__chev::before {
    transform: rotate(90deg);
}

.vdb-trust-group__points {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.vdb-trust-group {
    padding: 10px 0;
    margin-left: -4px;
}

.vdb-trust-group__panel {
    padding: 0;
    margin-top: 1rem;
}

.vdb-trust-group__child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0 0.8rem 1rem;
    border-top: 1px solid #1e1e1e;
}

.vdb-trust-group__child .vdb-ref-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* Refinement materials — plain icon + text links (TablePress #342 and block table). */
.vdb-item-refinement__materials a,
.tablepress-id-342 td a {
    color: inherit;
    text-decoration: none;
}

.vdb-item-refinement__materials a:hover,
.tablepress-id-342 td a:hover {
    color: #dda54f;
    text-decoration: underline;
}

/* TablePress #342 — sticky header + level column; scroll wrapper from filter or TP. */
.tablepress-scroll-wrapper:has(.tablepress-id-342),
.vdb-item-refinement__wrap:has(.tablepress-id-342) {
    overflow: visible;
}

.tablepress-id-342 .dt-layout-cell {
    position: static;
}

.tablepress-id-342 thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.tablepress-id-342.vdb-sticky-nav-pinned thead th {
    /* Already includes the admin bar — see the note on --vdb-sticky-nav-offset. */
    top: var(--vdb-sticky-nav-offset, 60px);
}

.tablepress-id-342 thead th:first-child,
.tablepress-id-342 tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
}

.tablepress-id-342 thead th:first-child {
    z-index: 3;
}

/* TablePress #342 — same icon row layout as blocks/item/refinement/style.css */
.tablepress-id-342 .vdb-stat-icon-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tablepress-id-342 .vdb-stat-icon-row__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.tablepress-id-342 .vdb-stat-icon-row__line {
    font-weight: 500;
    line-height: 1;
}

.tablepress-id-342 .vdb-refinement-material {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tablepress-id-342 .vdb-refinement-material__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.tablepress-id-342 .vdb-refinement-material__text {
    line-height: 1;
}

.tablepress-id-342 td a {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 768px) {
    .vdb-item-refinement__wrap:has(.tablepress-id-342) {
        overflow: auto;
        max-height: 70vh;
        max-height: 70dvh;
        overscroll-behavior: contain;
    }

    .tablepress-id-342 {
        border-collapse: separate;
        border-spacing: 0;
    }

    .tablepress-id-342.vdb-sticky-nav-pinned thead th {
        top: 0;
    }
}

/*
 * Related Posts for WP on database singles: mirror single-post rp4wp layout.
 */
body[class*="single-vulkk_"] .rp4wp-related-posts {
    clear: both;
}

body[class*="single-vulkk_"] .rp4wp-related-posts > h3 {
    margin: 0 0 1.25rem;
    color: #dda54f;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.618;
}

body[class*="single-vulkk_"] .rp4wp_component_image,
body[class*="single-vulkk_"] .rp4wp_component_taxonomy,
body[class*="single-vulkk_"] .rp4wp_component_0,
body[class*="single-vulkk_"] .rp4wp_component_1 {
    height: auto !important;
}

body[class*="single-vulkk_"] .rp4wp_component_0,
body[class*="single-vulkk_"] .rp4wp_component_1 {
    font-size: 0.75em;
    line-height: 1em;
    position: relative;
    top: -20px;
}

body[class*="single-vulkk_"] ul.rp4wp-posts-list .rp4wp-col-first {
    clear: both;
}

body[class*="single-vulkk_"] .rp4wp_component_wrapper {
    width: auto !important;
}

body[class*="single-vulkk_"] .rp4wp_component_author {
    width: auto !important;
}

body[class*="single-vulkk_"] .rp4wp_component_0 {
    border-right: 1px solid #ececd1;
    padding-right: 15px !important;
}

body[class*="single-vulkk_"] .rp4wp_component_1 {
    padding-left: 15px !important;
}

body[class*="single-vulkk_"] .rp4wp_component_image {
    padding-bottom: 0 !important;
}

body[class*="single-vulkk_"] .rp4wp_component_taxonomy {
    font-size: 0.75em;
    padding: 3px 7px 5px 7px !important;
    display: table-cell;
    position: relative;
    top: -38px;
    background-color: rgba(17, 17, 17, 0.66);
    color: #ece2d1;
    font-weight: 300;
    text-transform: uppercase;
    max-height: 2em;
    width: max-content !important;
}

body[class*="single-vulkk_"] .rp4wp_component_taxonomy a {
    color: inherit;
}

body[class*="single-vulkk_"] .rp4wp_component_title {
    position: relative;
    top: -20px;
    width: 100% !important;
}

/* --- Utilities --- */

.scroll-margin-top-150 {
    scroll-margin-top: 150px !important;
}

/* --- Crafting cards: blueprint <-> item with crafting requirements --- */
.vdb-craft {
    --vdb-craft-frame: 2px solid #2c2c2c;
    --vdb-craft-head-bg: #212121;
    --vdb-craft-body-bg: #141414;
}

.vdb-craft__head {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.vdb-craft__icon img {
    display: block;
}

.vdb-craft__name {
    flex: 1 1 auto;
    font-weight: 600;
}

.vdb-craft__meta {
    color: #ececd199;
    font-size: 0.9em;
}

.vdb-craft__meta a,
.vdb-craft a,
.vdb-craft a.vdb-item-name {
    color: inherit;
    text-decoration: none;
}

.vdb-craft a:hover {
    color: inherit;
    text-decoration: underline;
}

/* One item: the head sits on a lighter grey over the body, framed top and bottom. */
.vdb-craft--card {
    background: var(--vdb-craft-body-bg);
    border-bottom: var(--vdb-craft-frame);
    border-top: var(--vdb-craft-frame);
}

.vdb-craft--card > .vdb-craft__head {
    background: var(--vdb-craft-head-bg);
    border-bottom: 1px solid #2c2c2c;
}

/* Several items: main rows alternate and expand with a + like our TablePress dropdowns. */
.vdb-craft-list > .vdb-craft {
    background: #171717;
    border-top: 1px solid var(--border-color, #1e1e1e);
}

.vdb-craft-list > .vdb-craft:nth-child(odd) {
    background: #1d1d1d;
}

summary.vdb-craft__head {
    cursor: pointer;
    list-style: none;
}

summary.vdb-craft__head::-webkit-details-marker {
    display: none;
}

summary.vdb-craft__head::before,
.vdb-craft-list > .vdb-craft > div.vdb-craft__head::before,
.vdb-craft-list__thead::before {
    background: #1a1a1a;
    color: #ececd1;
    content: "+";
    flex: 0 0 auto;
    font-size: 0.8em;
    height: 1.2em;
    line-height: 1.1em;
    text-align: center;
    width: 1.2em;
}

details[open] > summary.vdb-craft__head::before {
    background: #dd9933;
    color: #1a1a1a;
    content: "\2212";
}

/* Crafting requirements: icon, name with "x 2", then optional Required Tool / Source columns. */
.vdb-craft__children {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 4.5rem;
    padding: 0 0.75rem 0.75rem 2.75rem;
    column-gap: 0.75rem;
}

.vdb-craft--card > .vdb-craft__children {
    padding-left: 0.75rem;
}

.vdb-craft__children--tool {
    grid-template-columns: 56px minmax(0, 1.4fr) minmax(7rem, 1fr) 4.5rem;
}

.vdb-craft__children--source {
    grid-template-columns: 56px minmax(0, 1.4fr) minmax(8rem, 1.2fr) 4.5rem;
}

.vdb-craft__children--tool.vdb-craft__children--source {
    grid-template-columns: 56px minmax(0, 1.4fr) minmax(7rem, 1fr) minmax(8rem, 1.2fr) 4.5rem;
}

.vdb-craft__child {
    align-items: center;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    padding: 0.6rem 0;
}

.vdb-craft__child .vdb-ref-icon {
    height: 32px;
    width: 32px;
}

.vdb-craft__child-name {
    min-width: 0;
}

.vdb-craft__qty {
    color: #dd9933;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.vdb-craft__child--head .vdb-craft__qty {
    color: inherit;
}

.vdb-craft__cell {
    color: #ececd199;
    font-size: 0.9em;
}

.vdb-craft__child--head {
    color: #ececd199;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding-bottom: 0.4rem;
    text-transform: uppercase;
}

.vdb-craft__child--head .vdb-craft__label {
    font-weight: 600;
    grid-column: 1 / 3;
}

.vdb-craft__child-icon {
    display: flex;
    justify-content: center;
    min-height: 32px;
}

/* Unlock rows: name cell lines up with the columns beside it. */
.vdb-craft-list > .vdb-craft > .vdb-craft__head {
    padding-bottom: 0;
    padding-top: 0;
}

.vdb-craft-list .vdb-craft__head .vdb-craft__name {
    align-items: center;
    align-self: stretch;
    display: flex;
    padding: 0.5rem 0;
}

/* Unlocks list header: a normal table header row, lined up with the rows below. */
.vdb-craft-list > .vdb-craft > div.vdb-craft__head::before,
.vdb-craft-list__thead::before {
    content: "+";
    visibility: hidden;
}

.vdb-craft-list__thead .vdb-craft__icon {
    flex: 0 0 56px;
}

.vdb-craft-list > .vdb-craft-list__thead {
    background-color: #212121;
    border-bottom: 2px solid #2c2c2c;
    font-weight: 700;
    padding-bottom: 0.6rem;
    padding-top: 0.6rem;
    text-transform: uppercase;
}

.vdb-craft-list > .vdb-craft-list__thead .vdb-craft__name {
    border-right: 0;
    font-weight: 700;
    padding: 0;
}

.vdb-craft-list > .vdb-craft-list__thead .vdb-craft__meta {
    color: inherit;
    font-size: inherit;
}

/* Unlocks list: grid columns, so the name column is narrower and the divider sits in the same place on every row. */
.vdb-craft-list > .vdb-craft > .vdb-craft__head,
.vdb-craft-list > .vdb-craft-list__thead {
    display: grid;
    gap: 0 0.75rem;
    grid-template-columns: auto 56px minmax(0, 1fr);
}

.vdb-craft-list--category > .vdb-craft > .vdb-craft__head,
.vdb-craft-list--category > .vdb-craft-list__thead,
.vdb-craft-list--subcategory > .vdb-craft > .vdb-craft__head,
.vdb-craft-list--subcategory > .vdb-craft-list__thead {
    grid-template-columns: auto 56px minmax(0, 1fr) minmax(0, 1fr);
}

.vdb-craft-list--category.vdb-craft-list--subcategory > .vdb-craft > .vdb-craft__head,
.vdb-craft-list--category.vdb-craft-list--subcategory > .vdb-craft-list__thead {
    grid-template-columns: auto 56px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

/*
 * Phone: five grid columns do not fit, so the name overflows into Category. Keep + / icon / name and
 * stack Category and Subcategory under the name. Their header labels go, since each value sits with its row.
 */
@media (max-width: 600px) {
    .vdb-craft-list.vdb-craft-list.vdb-craft-list > .vdb-craft > .vdb-craft__head,
    .vdb-craft-list.vdb-craft-list.vdb-craft-list > .vdb-craft-list__thead {
        grid-template-columns: auto 56px minmax(0, 1fr);
    }

    .vdb-craft-list > .vdb-craft > .vdb-craft__head::before {
        grid-column: 1;
        grid-row: 1 / span 3;
        align-self: center;
    }

    .vdb-craft-list > .vdb-craft > .vdb-craft__head .vdb-craft__icon {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: center;
    }

    .vdb-craft-list > .vdb-craft > .vdb-craft__head .vdb-craft__name {
        grid-column: 3;
        grid-row: 1;
    }

    .vdb-craft-list > .vdb-craft > .vdb-craft__head .vdb-craft__name {
        padding-bottom: 0;
    }

    .vdb-craft-list > .vdb-craft > .vdb-craft__head .vdb-craft__meta {
        grid-column: 3;
        padding-bottom: 0.1rem;
    }

    .vdb-craft-list > .vdb-craft > .vdb-craft__head {
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
    }

    .vdb-craft-list > .vdb-craft-list__thead .vdb-craft__meta {
        display: none;
    }
}

/*
 * Phone: the requirements grid keeps a 56px icon, a 4.5rem Qty and Tool/Source columns, which
 * leaves no room for the name. Keep icon / name / Qty and stack Required Tool and Source under
 * the name. Their header labels go, since each value sits with its row.
 */
@media (max-width: 600px) {
    .vdb-craft__children.vdb-craft__children.vdb-craft__children {
        grid-template-columns: 32px minmax(0, 1fr) 2.5rem;
        column-gap: 0.6rem;
        padding-left: 0.75rem;
    }

    .vdb-craft__child .vdb-ref-icon {
        height: 32px;
        width: 32px;
    }

    .vdb-craft__child:not(.vdb-craft__child--head) > .vdb-craft__child-icon {
        grid-column: 1;
        grid-row: 1 / span 3;
    }

    .vdb-craft__child:not(.vdb-craft__child--head) > .vdb-craft__child-name {
        grid-column: 2;
        grid-row: 1;
    }

    .vdb-craft__child:not(.vdb-craft__child--head) > .vdb-craft__cell {
        grid-column: 2;
        overflow-wrap: anywhere;
    }

    .vdb-craft__child:not(.vdb-craft__child--head) > .vdb-craft__cell:empty {
        display: none;
    }

    .vdb-craft__child:not(.vdb-craft__child--head) > .vdb-craft__qty {
        grid-column: 3;
        grid-row: 1 / span 3;
    }

    .vdb-craft__child--head > span:not(.vdb-craft__label):not(.vdb-craft__qty) {
        display: none;
    }

    .vdb-craft__child--head .vdb-craft__qty {
        grid-column: 3;
    }
}
