:root {
    /* Shared DomRaider theme tokens used by the banner, header, footer, and grids. */
    --dr-bg: #0f1418;
    --dr-bg-soft: #171d23;
    --dr-panel: #ffffff;
    --dr-panel-alt: #f5f7f8;
    --dr-text: #1c242b;
    --dr-muted: #66717b;
    --dr-line: #dfe5e8;
    --dr-coral: #ec6b57;
    --dr-coral-dark: #d95440;
    --dr-teal: #1fb7a6;
    --dr-gold: #f3b34c;
    --dr-radius: 6px;
    --dr-shadow: 0 14px 34px rgba(15, 20, 24, .12);
}

/* Full-page base layer. The dark top band visually connects the header and hero banner. */
html,
body {
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(15, 20, 24, .96) 0, rgba(15, 20, 24, .90) 188px, #eef2f3 188px, #eef2f3 100%);
    color: var(--dr-text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--dr-coral);
}

/* Header and responsive category menu. */
.wp-site-blocks,
.wrapper {
    background: transparent !important;
}

header.wp-block-template-part {
    background: var(--dr-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

header.wp-block-template-part > .wp-block-group {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 24px !important;
    background: transparent !important;
}

.wp-block-site-title {
    margin: 0;
}

.wp-block-site-title a {
    color: #ffffff !important;
    font-size: 23px;
    font-weight: 800;
    text-decoration: none !important;
    letter-spacing: 0;
}

.wp-block-site-title a::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 10px;
    background: var(--dr-coral);
    border-radius: 2px;
    box-shadow: 11px 0 0 var(--dr-teal), 22px 0 0 var(--dr-gold);
}

.wp-block-navigation__responsive-container-open {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: var(--dr-radius);
    background: rgba(255, 255, 255, .05) !important;
    color: #ffffff !important;
}

.wp-block-navigation__responsive-container-open svg rect {
    fill: currentColor;
}

.wp-block-navigation {
    position: relative;
}

.categories-container {
    display: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(560px, calc(100vw - 32px));
    max-height: min(68vh, 520px);
    overflow: auto;
    padding: 12px !important;
    background: #11181e !important;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--dr-radius);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .38);
    z-index: 2000;
}

.wp-block-navigation.is-menu-open .categories-container {
    display: grid !important;
}

.category-item,
.domain-item {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.category-item a,
.domain-item a,
.wp-block-navigation-item__content {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: var(--dr-radius) !important;
    background: rgba(255, 255, 255, .04) !important;
    color: #f5f7f8 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-sizing: border-box;
}

.category-item a:hover,
.domain-item a:hover,
.wp-block-navigation-item__content:hover {
    background: var(--dr-coral) !important;
    border-color: var(--dr-coral) !important;
    color: #ffffff !important;
}

/* Category/listing cards and page containers. */
main.wp-block-group {
    max-width: none;
    margin: 0 auto !important;
    padding: 0 16px 28px;
    width: 100%;
    box-sizing: border-box;
}

#container {
    width: min(100%, calc(100vw - 32px));
    max-width: none;
    margin: 20px auto 0;
    padding: 18px !important;
    background: var(--dr-panel) !important;
    border: 1px solid var(--dr-line);
    border-radius: var(--dr-radius);
    box-shadow: var(--dr-shadow);
    box-sizing: border-box;
}

.content.left {
    width: 100%;
    padding: 0 !important;
    float: none !important;
}

.entry,
.post-content {
    color: var(--dr-text);
}

.entry p a[href^="http"],
.entry p a[href*="-catalog/"],
.post-content p a[href^="http"],
.post-content p a[href*="-listings/"],
.catalog-grid a,
.listing-grid a,
.links-grid a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    background: #ffffff !important;
    border: 1px solid #dce3e6 !important;
    border-left: 4px solid var(--dr-coral) !important;
    border-radius: var(--dr-radius) !important;
    color: #24313a !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    box-shadow: 0 8px 18px rgba(15, 20, 24, .06);
    break-inside: avoid;
}

.entry p a[href^="http"]:hover,
.entry p a[href*="-catalog/"]:hover,
.post-content p a[href^="http"]:hover,
.post-content p a[href*="-listings/"]:hover,
.catalog-grid a:hover,
.listing-grid a:hover,
.links-grid a:hover {
    transform: translateY(-1px);
    border-left-color: var(--dr-teal) !important;
    color: var(--dr-coral-dark) !important;
    box-shadow: 0 12px 24px rgba(15, 20, 24, .12);
}

.breadcrumb {
    margin: 0 0 18px !important;
    padding: 12px 14px !important;
    background: var(--dr-bg-soft) !important;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--dr-radius) !important;
    text-align: center !important;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 4px 8px !important;
    padding: 8px 14px;
    background: var(--dr-coral);
    border-radius: var(--dr-radius);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.breadcrumb a:hover {
    background: var(--dr-coral-dark);
}

/* DomRaider promotional banner. */
.domraider-banner {
    position: relative;
    margin: 0 -16px;
    padding: 46px 20px;
    background:
        linear-gradient(135deg, rgba(236, 107, 87, .18), rgba(31, 183, 166, .10)),
        #10161b;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.domraider-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.domraider-banner__copy {
    flex: 1 1 560px;
    min-width: 280px;
}

.domraider-banner__logo {
    display: block;
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 0 18px;
}

.domraider-banner h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.12;
    font-weight: 900;
}

.domraider-banner p {
    max-width: 720px;
    margin: 0;
    color: #dce4e7;
    font-size: 17px;
    line-height: 1.58;
}

.domraider-banner__actions {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.domraider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: var(--dr-radius);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none !important;
}

.domraider-button--primary {
    background: var(--dr-coral);
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(236, 107, 87, .28);
}

.domraider-button--primary:hover {
    background: var(--dr-coral-dark);
}

.domraider-button--ghost {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .32);
    color: #ffffff !important;
}

.domraider-button--ghost:hover {
    border-color: var(--dr-teal);
}

.domraider-banner-vacant {
    margin: 24px auto;
    max-width: 1120px;
    padding: 34px 20px;
    background: var(--dr-panel);
    color: var(--dr-muted);
    text-align: center;
    border: 2px dashed var(--dr-line);
    border-radius: var(--dr-radius);
}

.domraider-banner-vacant h2 {
    margin: 0 0 10px;
    color: var(--dr-text);
    font-size: 28px;
}

.domraider-banner-vacant a {
    color: var(--dr-coral-dark);
    font-weight: 800;
}

/* Footer styling that keeps the WordPress-shaped markup visually consistent. */
footer.wp-block-template-part {
    margin-top: 34px;
    background: #0b0f12;
    color: #cbd4d8;
    border-top: 4px solid var(--dr-coral);
}

footer.wp-block-template-part > .wp-block-group {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 24px !important;
    background: transparent !important;
}

footer h2,
footer .wp-block-site-title a {
    color: #ffffff !important;
}

footer p,
footer span,
footer a {
    color: #cbd4d8 !important;
}

footer a:hover {
    color: var(--dr-coral) !important;
}

.wp-block-site-tagline {
    color: var(--dr-muted) !important;
}

/* Tablet adjustments for the category menu and banner controls. */
@media (max-width: 900px) {
    header.wp-block-template-part > .wp-block-group {
        padding: 18px 16px !important;
    }

    .categories-container {
        grid-template-columns: 1fr;
        right: 0;
        margin-top: 0;
        max-width: calc(100vw - 32px);
    }

    .domraider-banner {
        padding: 34px 18px;
    }

    .domraider-banner h2 {
        font-size: 31px;
    }

    .domraider-banner__actions {
        width: 100%;
    }

    .domraider-button {
        flex: 1 1 210px;
    }
}

/* Mobile spacing and heading scale. */
@media (max-width: 600px) {
    main.wp-block-group {
        padding: 0 12px 24px;
    }

    #container {
        width: min(100%, calc(100vw - 16px));
        padding: 12px !important;
    }

    .domraider-banner {
        margin: 0 -12px;
    }

    .domraider-banner h2 {
        font-size: 28px;
    }
}
