/* HFDXARC Guestbook Page Plugin */
body.hfdxarc-guestbook-page,
body.hfdxarc-guestbook-page .site,
body.hfdxarc-guestbook-page .site-content,
body.hfdxarc-guestbook-page .content-area,
body.hfdxarc-guestbook-page .site-main,
body.hfdxarc-guestbook-page article,
body.hfdxarc-guestbook-page .entry,
body.hfdxarc-guestbook-page .entry-content {
    max-width: none !important;
}

body.hfdxarc-guestbook-page .site-content,
body.hfdxarc-guestbook-page .content-area,
body.hfdxarc-guestbook-page .site-main {
    width: 100% !important;
}

body.hfdxarc-guestbook-edge-layout .site-content,
body.hfdxarc-guestbook-edge-layout .content-area,
body.hfdxarc-guestbook-edge-layout .site-main,
body.hfdxarc-guestbook-edge-layout article,
body.hfdxarc-guestbook-edge-layout .entry-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.hfdxarc-guestbook-page article,
body.hfdxarc-guestbook-page .entry,
body.hfdxarc-guestbook-page .entry-content {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.hfdxarc-guestbook-hide-title .entry-title,
body.hfdxarc-guestbook-hide-title .page-title,
body.hfdxarc-guestbook-hide-title header.entry-header {
    display: none !important;
}

/* Keep the guestbook hero readable even when the parent theme forces dark heading colours. */
body.hfdxarc-guestbook-page .hfdxarc-guestbook-hero,
body.hfdxarc-guestbook-page .hfdxarc-guestbook-hero h1,
body.hfdxarc-guestbook-page .hfdxarc-guestbook-hero h2,
body.hfdxarc-guestbook-page .hfdxarc-guestbook-hero h3,
body.hfdxarc-guestbook-page .hfdxarc-guestbook-hero p,
body.hfdxarc-guestbook-page .hfdxarc-guestbook-hero span {
    color: #ffffff !important;
}

body.hfdxarc-guestbook-page .hfdxarc-guestbook-hero .hfdxarc-guestbook-kicker {
    color: #bdf3ff !important;
}

/* Close up the space below the menu/header on the guestbook page. */
body.hfdxarc-guestbook-page #content,
body.hfdxarc-guestbook-page .site-content,
body.hfdxarc-guestbook-page .content-area,
body.hfdxarc-guestbook-page .site-main,
body.hfdxarc-guestbook-page article,
body.hfdxarc-guestbook-page .entry,
body.hfdxarc-guestbook-page .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.hfdxarc-guestbook-hide-related .ngg-related-gallery,
body.hfdxarc-guestbook-hide-related .sharedaddy,
body.hfdxarc-guestbook-hide-related .sd-sharing-enabled,
body.hfdxarc-guestbook-hide-related .sd-like,
body.hfdxarc-guestbook-hide-related .wp-block-jetpack-like,
body.hfdxarc-guestbook-hide-related .jp-relatedposts,
body.hfdxarc-guestbook-hide-related .entry-footer,
body.hfdxarc-guestbook-hide-related .post-navigation,
body.hfdxarc-guestbook-hide-related .comments-area {
    display: none !important;
}

.hfdxarc-guestbook-shell {
    width: min(100%, 2600px);
    max-width: 2600px;
    margin: 0 auto;
    padding: clamp(6px, 1vw, 16px) clamp(10px, 2vw, 34px) clamp(12px, 1.4vw, 24px);
    box-sizing: border-box;
}

.hfdxarc-guestbook-hero {
    width: 100%;
    margin: 0 auto clamp(10px, 1.1vw, 18px);
    padding: clamp(18px, 2.1vw, 34px) clamp(22px, 3.4vw, 56px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(0, 180, 216, 0.30), transparent 34%),
        linear-gradient(135deg, rgba(4, 34, 66, 0.98), rgba(5, 15, 36, 0.99));
    color: #ffffff !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
}

.hfdxarc-guestbook-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0, 180, 216, 0.24);
    color: #bdf3ff !important;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hfdxarc-guestbook-hero h1 {
    margin: 0 0 8px;
    color: #ffffff !important;
    font-size: clamp(2rem, 3.2vw, 4rem);
    line-height: 0.98;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

.hfdxarc-guestbook-hero p {
    max-width: 980px;
    margin: 0;
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: clamp(0.98rem, 1vw, 1.18rem);
    line-height: 1.45;
}

.hfdxarc-guestbook-frame-wrap {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: clamp(8px, 1vw, 16px);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    box-sizing: border-box;
}

.hfdxarc-guestbook-frame {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
    background: #ffffff;
    overflow: auto !important;
    scrollbar-gutter: stable both-edges;
}


.hfdxarc-guestbook-frame::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

.hfdxarc-guestbook-frame::-webkit-scrollbar-track {
    background: #eef3f8;
}

.hfdxarc-guestbook-frame::-webkit-scrollbar-thumb {
    background: #173f73;
    border: 3px solid #eef3f8;
    border-radius: 999px;
}

.hfdxarc-guestbook-frame::-webkit-scrollbar-thumb:hover {
    background: #0f2c52;
}

.hfdxarc-guestbook-frame-wrap::after {
    content: 'Scroll inside the guestbook window to view older posts';
    display: block;
    margin-top: 10px;
    color: #233b5b;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 900px) {
    .hfdxarc-guestbook-shell {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    .hfdxarc-guestbook-hero {
        border-radius: 18px;
        padding: 24px 18px;
    }

    .hfdxarc-guestbook-frame-wrap {
        border-radius: 16px;
        padding: 8px;
    }

    .hfdxarc-guestbook-frame {
        min-height: 1200px !important;
    }
}

@media (min-width: 2400px) {
    .hfdxarc-guestbook-shell {
        max-width: 3000px;
        padding-left: 52px;
        padding-right: 52px;
    }
}

/* v1.0.3 - align guestbook page panels to the same visual width as the site menu/header. */
body.hfdxarc-guestbook-page .hfdxarc-guestbook-shell {
    width: calc(100vw - clamp(24px, 2.4vw, 44px)) !important;
    max-width: none !important;
    margin: clamp(-26px, -1.35vw, -10px) auto 0 !important;
    padding: 0 !important;
}

body.hfdxarc-guestbook-page .hfdxarc-guestbook-hero,
body.hfdxarc-guestbook-page .hfdxarc-guestbook-frame-wrap {
    width: 100% !important;
    max-width: none !important;
}

body.hfdxarc-guestbook-page .hfdxarc-guestbook-hero {
    margin-bottom: clamp(5px, 0.55vw, 9px) !important;
    padding: clamp(14px, 1.45vw, 24px) clamp(24px, 3.1vw, 54px) !important;
    min-height: 0 !important;
}

body.hfdxarc-guestbook-page .hfdxarc-guestbook-kicker {
    margin-bottom: 8px !important;
}

body.hfdxarc-guestbook-page .hfdxarc-guestbook-hero h1 {
    font-size: clamp(2rem, 2.6vw, 3.45rem) !important;
    margin-bottom: 6px !important;
}

body.hfdxarc-guestbook-page .hfdxarc-guestbook-hero p {
    line-height: 1.35 !important;
}

body.hfdxarc-guestbook-page .hfdxarc-guestbook-frame-wrap {
    padding: clamp(6px, 0.75vw, 12px) !important;
    border-radius: 20px !important;
}

/* Some gallery/share plugins inject content after the shortcode; remove it from this purpose-built guestbook page. */
body.hfdxarc-guestbook-hide-related .entry-content > .hfdxarc-guestbook-shell ~ *,
body.hfdxarc-guestbook-hide-related .hentry > .hfdxarc-guestbook-shell ~ *,
body.hfdxarc-guestbook-hide-related .ngg-related,
body.hfdxarc-guestbook-hide-related .ngg-related-images,
body.hfdxarc-guestbook-hide-related .ngg-related-gallery,
body.hfdxarc-guestbook-hide-related .ngg-galleryoverview,
body.hfdxarc-guestbook-hide-related .sharedaddy,
body.hfdxarc-guestbook-hide-related .sd-sharing,
body.hfdxarc-guestbook-hide-related .sd-sharing-enabled,
body.hfdxarc-guestbook-hide-related .sd-like,
body.hfdxarc-guestbook-hide-related .post-likes-widget,
body.hfdxarc-guestbook-hide-related .jp-relatedposts,
body.hfdxarc-guestbook-hide-related #jp-relatedposts {
    display: none !important;
}

@media (max-width: 900px) {
    body.hfdxarc-guestbook-page .hfdxarc-guestbook-shell {
        width: calc(100vw - 16px) !important;
        margin-top: -8px !important;
    }

    body.hfdxarc-guestbook-page .hfdxarc-guestbook-hero {
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }

    body.hfdxarc-guestbook-page .hfdxarc-guestbook-frame-wrap {
        padding: 6px !important;
        border-radius: 14px !important;
    }
}

@media (min-width: 2400px) {
    body.hfdxarc-guestbook-page .hfdxarc-guestbook-shell {
        width: calc(100vw - clamp(36px, 2vw, 72px)) !important;
        padding: 0 !important;
    }
}
