/* Hide automatically generated WordPress page headings */
body.page .site-main > article > .entry-header {
    display: none;
}

/* =========================================================
   HIPPO WINDOW CLEANING : site-wide styling
   Navy + cyan palette taken from the logo
   ========================================================= */
:root {
    --hp-navy: #14284b;
    --hp-navy-2: #1d3a66;
    --hp-cyan: #5ee5fd;
    --hp-cyan-dark: #19b8d6;
    --hp-light: #f3f7fa;
    --hp-text: #22324a;
    --hp-radius: 12px;
}

body {
    color: var(--hp-text);
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
}

/* ---------- Top bar ---------- */
#page::before {
    content: "Free, no-obligation quotes in Bournemouth, Poole & Christchurch  |  07476 199086";
    display: block;
    background: var(--hp-navy);
    color: #fff;
    text-align: center;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 11px 16px;
    white-space: pre-wrap;
}

/* ---------- Header ---------- */
.site-header.responsive-max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    text-align: left;
}
.site-header .site-branding { margin: 0; }
.site-header .site-logo { margin: 0; }
.site-header .custom-logo {
    max-height: 92px;
    width: auto;
}
.site-header .site-title,
.site-header .site-description {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.main-navigation { margin: 0; }
.main-navigation > div > ul { justify-content: flex-end; align-items: center; }
.main-navigation .main-menu > li > a {
    color: var(--hp-navy);
    font-weight: 500;
    font-size: 17px;
    padding: 10px 12px;
}
.main-navigation .main-menu > li > a:hover,
.main-navigation .main-menu > li.current-menu-item > a {
    color: var(--hp-navy);
    text-decoration: underline;
    text-decoration-color: var(--hp-cyan);
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}
.main-navigation .main-menu > li.hp-cta > a {
    background: var(--hp-cyan);
    color: var(--hp-navy);
    border-radius: 10px;
    padding: 12px 20px;
    margin-left: 8px;
    text-decoration: none;
}
.main-navigation .main-menu > li.hp-cta > a:hover {
    background: var(--hp-navy);
    color: #fff;
}
.main-navigation .sub-menu {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(20, 40, 75, .15);
    padding: 8px 0;
}
.main-navigation .sub-menu a {
    color: var(--hp-navy);
    font-size: 15px;
}
.main-navigation .sub-menu a:hover { background: var(--hp-light); }
@media (max-width: 781px) {
    .site-header.responsive-max-width { justify-content: center; text-align: center; }
    .site-header .custom-logo { max-height: 72px; }
    #page::before { font-size: 12px; }
}

/* ---------- Full-width page wrapper ---------- */
.entry-content > .hp-page {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0;
}
.hp-page {
    color: var(--hp-text);
    font-size: 18px;
    line-height: 1.7;
}
.hp-page > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.hp-section {
    padding: 72px max(24px, calc((100% - 1140px) / 2)) !important;
}
.hp-section.hp-alt { background: var(--hp-light); }
.hp-section.hp-tight { padding-top: 40px !important; padding-bottom: 40px !important; }
.hp-page h1,
.hp-page h2,
.hp-page h3,
.hp-page h4 {
    color: var(--hp-navy);
    font-family: inherit;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.hp-page h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 400; margin-bottom: 24px; }
.hp-page h1 strong { font-weight: 700; }
.hp-page h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; margin-bottom: 18px; }
.hp-page h3 { font-size: 22px; font-weight: 700; font-style: italic; margin-bottom: 10px; }
.hp-page p { margin-bottom: 1.1em; }
.hp-page a { color: var(--hp-navy-2); text-decoration-color: var(--hp-cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hp-page a:hover { color: var(--hp-cyan-dark); }
.hp-page ul li { margin-bottom: 6px; }
.hp-center { text-align: center; }
.hp-narrow { max-width: 780px; margin-left: auto !important; margin-right: auto !important; }

/* Highlight underline, like a marker stroke */
.hp-hl {
    background-image: linear-gradient(transparent 80%, var(--hp-cyan) 80%, var(--hp-cyan) 93%, transparent 93%);
    padding: 0 2px;
}

/* ---------- Hero ---------- */
.hp-hero { padding-top: 64px !important; padding-bottom: 64px !important; }
.hp-hero .wp-block-columns { align-items: center; gap: 48px; }
.hp-hero .hp-kicker {
    display: inline-block;
    background: var(--hp-light);
    color: var(--hp-navy);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
}
.hp-hero .wp-block-image img,
.hp-img img {
    border-radius: var(--hp-radius);
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(20, 40, 75, .18);
}
.hp-call { font-size: 16px; margin-top: 18px; }
.hp-call a { font-size: 28px; font-weight: 700; color: var(--hp-navy) !important; text-decoration: none !important; display: block; }

/* ---------- Buttons ---------- */
.hp-page .wp-block-buttons { gap: 12px; margin-top: 8px; }
.hp-page .wp-block-button__link {
    background: var(--hp-cyan);
    color: var(--hp-navy) !important;
    border: 2px solid var(--hp-cyan);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 26px;
    text-decoration: none !important;
    transition: all .2s ease;
}
.hp-page .wp-block-button__link:hover { background: var(--hp-navy); border-color: var(--hp-navy); color: #fff !important; }
.hp-page .is-style-outline .wp-block-button__link { background: transparent; border-color: var(--hp-navy); }
.hp-page .is-style-outline .wp-block-button__link:hover { background: var(--hp-navy); color: #fff !important; }

/* ---------- Trust strip ---------- */
.hp-trust { gap: 16px !important; }
.hp-trust p {
    background: #fff;
    border-radius: var(--hp-radius);
    padding: 18px 20px;
    margin: 0;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(20, 40, 75, .07);
    height: 100%;
}
.hp-trust strong { display: block; color: var(--hp-navy); font-size: 18px; }

/* ---------- Cards ---------- */
.hp-cards { gap: 24px !important; }
.hp-card {
    background: var(--hp-light);
    border-radius: var(--hp-radius);
    padding: 28px !important;
    height: 100%;
}
.hp-alt .hp-card { background: #fff; }
.hp-card h3 { margin-top: 0; }
.hp-card p:last-child { margin-bottom: 0; }

/* ---------- Feature rows ---------- */
.hp-feature { align-items: center; gap: 48px !important; }
.hp-feature + .hp-feature { margin-top: 48px !important; }

/* ---------- Area links ---------- */
.hp-areas { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hp-areas li { margin: 0; }
.hp-areas a {
    display: inline-block;
    background: #fff;
    border: 2px solid var(--hp-cyan);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
}
.hp-areas a:hover { background: var(--hp-cyan); color: var(--hp-navy); }

/* ---------- FAQs ---------- */
.hp-page .wp-block-details {
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: var(--hp-radius);
    padding: 18px 22px;
    margin-bottom: 12px !important;
}
.hp-page .wp-block-details summary {
    color: var(--hp-navy);
    font-weight: 700;
    font-size: 19px;
    cursor: pointer;
}
.hp-page .wp-block-details[open] summary { margin-bottom: 10px; }
.hp-page .wp-block-details p { margin-bottom: 0; font-size: 17px; }

/* ---------- CTA band ---------- */
.hp-cta {
    background: var(--hp-navy);
    color: #fff;
    text-align: center;
}
.hp-cta h2, .hp-cta p { color: #fff; }
.hp-cta a:not(.wp-block-button__link) { color: var(--hp-cyan); }
.hp-cta .wp-block-buttons { justify-content: center; }
.hp-cta .is-style-outline .wp-block-button__link { border-color: #fff; color: #fff !important; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
    .hp-section { padding-top: 48px !important; padding-bottom: 48px !important; }
    .hp-hero .wp-block-columns, .hp-feature { gap: 28px !important; }
    .hp-page { font-size: 17px; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--hp-navy);
    color: #dfe9f3;
    max-width: none !important;
    padding: 48px 24px 32px !important;
    margin-top: 0 !important;
    text-align: center;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--hp-cyan); }
.site-footer .footer-navigation .footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    max-width: 1100px;
    margin: 0 auto 20px;
}
.site-footer .footer-navigation .footer-menu a { font-size: 15px; font-weight: 500; }
.site-footer .site-info { color: #b9c8d8; font-size: 14px; }
.site-footer .site-info a { color: #fff; }
.widget-area { max-width: 1140px; margin: 0 auto; }


/* ---------- Layout fixes for the Varia/Exford theme ---------- */
.site { overflow-x: clip; }
.site-header.responsive-max-width { width: 100%; }
.hp-page .hp-section {
    max-width: none !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.hp-page .wp-block-group__inner-container > *,
.hp-page .wp-block-columns,
.hp-page .wp-block-column > * { max-width: none !important; }
.hp-page .hp-narrow { max-width: 780px !important; margin-left: auto !important; margin-right: auto !important; }
.hp-page .wp-block-column > *:first-child { margin-top: 0; }
.hp-hero .hp-img img,
.hp-feature .hp-img img { aspect-ratio: 4 / 3; }
.hp-page .wp-block-image { margin: 0; }
.hp-trust .wp-block-column { display: flex; }


/* ---------- Header layout (stronger selectors) ---------- */
#masthead.site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 14px 24px !important;
}
#masthead .site-branding { text-align: left; flex: 0 0 auto; }
#masthead .main-navigation { flex: 1 1 auto; text-align: right; }
#masthead .main-navigation > div > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
@media (max-width: 781px) {
    #masthead.site-header { flex-direction: column; justify-content: center !important; }
    #masthead .site-branding, #masthead .main-navigation { text-align: center; }
    #masthead .main-navigation > div > ul { justify-content: center; }
}

/* ---------- Remove theme gaps around full-width pages ---------- */
.entry-content:has(> .hp-page) { margin-top: 0 !important; margin-bottom: 0 !important; }
.site-main:has(.hp-page) { padding-bottom: 0 !important; }
.hp-page .hp-section { margin-top: 0 !important; margin-bottom: 0 !important; }


/* ---------- Column alignment + footer (stronger selectors) ---------- */
.hp-page .wp-block-columns.hp-feature,
.hp-page .wp-block-columns.hp-hero-cols { align-items: center !important; }
#colophon.site-footer {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 56px max(24px, calc((100% - 1140px) / 2)) 32px !important;
    background: var(--hp-navy);
}
#colophon .widget-area,
#colophon .site-info,
#colophon .footer-navigation { max-width: 1140px !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
#colophon .widget iframe { border-radius: var(--hp-radius); max-width: 100%; }
#colophon .footer-navigation { margin-top: 32px !important; margin-bottom: 24px !important; }
#colophon .hp-foot-title { color: var(--hp-cyan); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin: 28px 0 10px; }


/* ---------- Quote button fix ---------- */
#masthead .main-navigation .main-menu > li.hp-cta { background: transparent !important; margin-left: 10px; }
#masthead .main-navigation .main-menu > li.hp-cta > a { margin-left: 0 !important; display: inline-block; }


/* ---------- Quote / contact form panel ---------- */
.hp-form {
    background: var(--hp-navy);
    color: #fff;
    border-radius: var(--hp-radius);
    padding: 28px !important;
    box-shadow: 0 18px 40px rgba(20, 40, 75, .18);
}
.hp-form label, .hp-form legend, .hp-form .grunion-field-label, .hp-form p { color: #fff !important; font-weight: 600; }
.hp-form input[type=text], .hp-form input[type=email], .hp-form input[type=tel], .hp-form input[type=number],
.hp-form input[type=url], .hp-form select, .hp-form textarea {
    background: #fff !important;
    color: var(--hp-text) !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    width: 100%;
}
.hp-form .wp-block-button__link, .hp-form button[type=submit], .hp-form input[type=submit] {
    background: var(--hp-cyan) !important;
    color: var(--hp-navy) !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-weight: 700;
    padding: 14px 28px !important;
}
.hp-form .wp-block-button__link:hover, .hp-form button[type=submit]:hover { background: #fff !important; }

/* ---------- Blog posts and archive ---------- */
body.single-post .site-main, body.blog .site-main, body.archive .site-main { max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; }
body.single-post .entry-title, body.blog .entry-title, body.archive .entry-title { color: var(--hp-navy); font-family: inherit; font-weight: 700; letter-spacing: -.01em; }
body.single-post .entry-content h2, body.single-post .entry-content h3 { color: var(--hp-navy); font-family: inherit; }
body.single-post .entry-content { font-size: 18px; line-height: 1.75; color: var(--hp-text); }
body.single-post .entry-content a, body.blog .entry-title a { color: var(--hp-navy-2); text-decoration-color: var(--hp-cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.blog article, body.archive article { background: var(--hp-light); border-radius: var(--hp-radius); padding: 28px; margin-bottom: 28px; }
body.single-post .entry-content .wp-block-button__link { background: var(--hp-cyan); color: var(--hp-navy); border-radius: 10px; }
body.single-post .entry-content img { border-radius: var(--hp-radius); }

/* ---------- Mobile polish ---------- */
@media (max-width: 781px) {
    .hp-page .wp-block-buttons { flex-direction: column; align-items: stretch; }
    .hp-page .wp-block-button { width: 100%; text-align: center; }
    .hp-page .wp-block-button__link { display: block; }
    .hp-trust .wp-block-column { flex-basis: 100% !important; }
    .hp-areas a { font-size: 15px; padding: 7px 14px; }
    .hp-form { padding: 20px !important; }
    #masthead .main-navigation .main-menu > li.hp-cta { margin: 8px 0 0; }
}


/* ---------- Form page layout ---------- */
.hp-page .wp-block-columns.hp-hero-cols:has(.hp-form) { align-items: flex-start !important; }
@media (min-width: 782px) {
    .hp-hero-cols:has(.hp-form) > .wp-block-column:first-child { position: sticky; top: 24px; }
}
.hp-form .wp-block-jetpack-contact-form > *,
.hp-form .grunion-field-wrap { margin-top: 0 !important; margin-bottom: 14px !important; }
.hp-form .wp-block-jetpack-contact-form { gap: 0 !important; row-gap: 0 !important; }
.hp-form label { margin-bottom: 4px !important; font-size: 15px; }
.hp-form textarea { min-height: 110px; }


/* ---------- Mobile menu + trust fixes ---------- */
.hp-trust .wp-block-column > p { width: 100%; }
#masthead #toggle-menu.button {
    background: var(--hp-navy) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 10px 22px;
}
#masthead #toggle-menu.button:hover { background: var(--hp-cyan) !important; color: var(--hp-navy) !important; }
@media (max-width: 781px) {
    #masthead.site-header { padding: 12px 16px !important; gap: 8px; }
    #masthead .main-navigation > div > ul { flex-direction: column; align-items: center; }
    .hp-hero { padding-top: 32px !important; }
}


/* ---------- Homepage: even service and area boxes ---------- */
.entry-content .hippo-home-service-row,
.entry-content .hippo-home-area-row {
    display: flex !important;
    align-items: stretch !important;
    gap: 32px !important;
}
.entry-content .hippo-home-service-row + .hippo-home-service-row,
.entry-content .hippo-home-area-row + .hippo-home-area-row { margin-top: 32px !important; }
.entry-content .hippo-home-service-row > .wp-block-column,
.entry-content .hippo-home-area-row > .wp-block-column {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    margin: 0 !important;
}
.entry-content .hippo-home-service-row > .wp-block-column > .wp-block-image { margin: 0 0 18px !important; }
.entry-content .hippo-home-service-row > .wp-block-column > .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
}
.entry-content .hippo-home-service-row .hippo-home-card-link,
.entry-content .hippo-home-area-row .hippo-home-card-link {
    margin-top: auto !important;
    padding-top: 12px;
    margin-bottom: 0 !important;
}
@media (max-width: 781px) {
    .entry-content .hippo-home-service-row,
    .entry-content .hippo-home-area-row { flex-direction: column !important; }
}

/* ---------- Footer link contrast ---------- */
#colophon .footer-navigation a,
#colophon .footer-menu a,
#colophon .footer-menu .menu-item a { color: #ffffff !important; }
#colophon .footer-navigation a:hover,
#colophon .footer-menu a:hover { color: var(--hp-cyan) !important; }
#colophon .site-info, #colophon .site-info .comma { color: #dfe9f3 !important; }

.entry-content .hippo-home-service-row .hippo-home-card-link,
.entry-content .hippo-home-area-row .hippo-home-card-link { font-size: 17px !important; line-height: 1.4 !important; }
@media (min-width: 782px) {
    .entry-content .hippo-home-service-row .hippo-home-card-link,
    .entry-content .hippo-home-area-row .hippo-home-card-link { white-space: nowrap; }
}


/* ---------- Footer links: full-width grid ---------- */
#colophon.site-footer { flex-wrap: wrap !important; }
#colophon .widget-area { flex: 1 1 100% !important; order: 1; }
#colophon .footer-navigation {
    flex: 1 1 100% !important;
    order: 2;
    max-width: 1140px !important;
    width: 100% !important;
    margin: 40px auto 24px !important;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}
#colophon .footer-navigation .menu-footer-service-areas-container { display: block; }
#colophon .footer-navigation .footer-menu {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 32px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0;
    text-align: left;
}
#colophon .footer-navigation .footer-menu li { margin: 0; }
#colophon .footer-navigation .footer-menu a { font-size: 16px; padding: 0; }
#colophon .site-info { flex: 1 1 100% !important; order: 3; max-width: 1140px !important; text-align: center; }
@media (max-width: 781px) {
    #colophon .footer-navigation .footer-menu { grid-template-columns: 1fr 1fr; gap: 10px 20px !important; }
}
@media (max-width: 480px) {
    #colophon .footer-navigation .footer-menu { grid-template-columns: 1fr; text-align: center; }
}


/* ---------- Homepage card headings on one line ---------- */
.entry-content .hippo-home-service-row h3,
.entry-content .hippo-home-area-row h3 {
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}
.entry-content .hippo-home-service-row h3 + p,
.entry-content .hippo-home-area-row h3 + p { margin-top: 0 !important; }
@media (min-width: 782px) {
    .entry-content .hippo-home-service-row h3,
    .entry-content .hippo-home-area-row h3 { white-space: nowrap; }
}


/* ---------- Buttons on older pages: brand colours instead of theme green ---------- */
.entry-content > :not(.hp-page) .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.entry-content > :not(.hp-page) .wp-block-jetpack-button .wp-block-button__link {
    background: var(--hp-cyan) !important;
    color: var(--hp-navy) !important;
    border-color: var(--hp-cyan) !important;
    border-radius: 10px;
    font-weight: 600;
}
.entry-content > :not(.hp-page) .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.entry-content > :not(.hp-page) .wp-block-jetpack-button .wp-block-button__link:hover {
    background: var(--hp-navy) !important;
    color: #fff !important;
    border-color: var(--hp-navy) !important;
}
.entry-content > :not(.hp-page) .wp-block-button.is-style-outline > .wp-block-button__link {
    border-color: var(--hp-navy) !important;
    color: var(--hp-navy) !important;
    border-radius: 10px;
}
.hippo-home-hero .wp-block-button.is-style-outline > .wp-block-button__link,
.hippo-home-contact .wp-block-button.is-style-outline > .wp-block-button__link { border-color: #fff !important; color: #fff !important; }


/* ---------- Blog listing heading ---------- */
.hp-blog-header { text-align: center; margin: 0 auto 40px !important; padding: 0 0 24px; border-bottom: 3px solid var(--hp-cyan); max-width: 820px; }
.hp-blog-header .page-title { color: var(--hp-navy); font-family: inherit; font-weight: 700; font-size: clamp(32px, 4.5vw, 48px); margin: 0 0 12px; }
.hp-blog-intro { color: var(--hp-text); font-size: 18px; margin: 0; }


/* ---------- Outline buttons on photo / dark backgrounds ---------- */
.entry-content .wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link,
.entry-content .hippo-home-outline-button > .wp-block-button__link,
.entry-content .has-dark-bg .wp-block-button.is-style-outline > .wp-block-button__link {
    color: #fff !important;
    border-color: #fff !important;
    background: transparent !important;
}
.entry-content .wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.entry-content .hippo-home-outline-button > .wp-block-button__link:hover {
    background: #fff !important;
    color: var(--hp-navy) !important;
}


/* ---------- Readable links + dark sections on older pages ---------- */
.entry-content > :not(.hp-page) a:not(.wp-block-button__link),
body.single-post .entry-content a:not(.wp-block-button__link) {
    color: var(--hp-navy-2) !important;
    text-decoration: underline;
    text-decoration-color: var(--hp-cyan);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.entry-content > :not(.hp-page) a:not(.wp-block-button__link):hover { color: #0f7f95 !important; }
.entry-content [class*="-cta"].has-background a:not(.wp-block-button__link),
.entry-content [style*="background-color:#14284b"] a:not(.wp-block-button__link),
.entry-content .wp-block-cover a:not(.wp-block-button__link) { color: var(--hp-cyan) !important; }
.entry-content [class*="-cta"].has-background .wp-block-button.is-style-outline > .wp-block-button__link,
.entry-content [style*="background-color:#14284b"] .wp-block-button.is-style-outline > .wp-block-button__link {
    color: #fff !important;
    border-color: #fff !important;
    background: transparent !important;
}
.entry-content [class*="-cta"].has-background .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.entry-content [style*="background-color:#14284b"] .wp-block-button.is-style-outline > .wp-block-button__link:hover {
    background: #fff !important;
    color: var(--hp-navy) !important;
}


/* ---------- About page: match site width ---------- */
body.page-id-1 .entry-content > *:not(.alignfull),
body.page-id-1 .entry-content > .alignfull > .wp-block-group__inner-container > * {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.page-id-1 .entry-content .wp-block-columns { gap: 32px; }
body.page-id-1 .entry-content .wp-block-media-text { grid-template-columns: 45% 1fr !important; }
@media (max-width: 781px) {
    body.page-id-1 .entry-content .wp-block-media-text { grid-template-columns: 100% !important; }
}

body.page-id-1 .entry-content p.has-text-align-center,
body.page-id-1 .entry-content .has-text-align-center + p { max-width: 800px !important; }

body.page-id-1 .entry-content > .alignfull:first-child p { max-width: 800px !important; margin-left: auto !important; margin-right: auto !important; }


/* ---------- 404 page ---------- */
body.error404 .page-title { color: var(--hp-navy); font-family: inherit; font-size: clamp(30px, 4vw, 44px); }
body.error404 .hp-404 { font-size: 18px; margin-bottom: 24px; }
body.error404 .hp-404 .hp-areas { margin: 16px 0 20px; }
body.error404 .hp-404 .hp-areas a { color: var(--hp-navy) !important; font-family: inherit; }
body.error404 .hp-404 .hp-areas a:hover { background: var(--hp-cyan); }
body.error404 .hp-404 > p a { color: var(--hp-navy-2); text-decoration-color: var(--hp-cyan); text-decoration-thickness: 2px; }
body.error404 .page-content .hp-404 ~ p { display: none; }
body.error404 .search-form .search-submit,
body.error404 .search-form button { background: var(--hp-cyan) !important; color: var(--hp-navy) !important; border-radius: 10px; }


/* ---------- Guides ---------- */
.hp-guide-meta { font-size: 15px; color: #5a6b80; margin-top: 8px; }
.hp-article h2 { margin-top: 48px; scroll-margin-top: 24px; }
.hp-article h2:first-child { margin-top: 0; }
.hp-article .hp-img { margin: 28px 0 !important; }
.hp-article .hp-img img { aspect-ratio: 16 / 9; }
.hp-page .hp-toc {
    list-style: none;
    background: var(--hp-light);
    border-left: 4px solid var(--hp-cyan);
    border-radius: var(--hp-radius);
    padding: 20px 24px;
    margin: 0 0 8px;
}
.hp-page .hp-toc li { margin: 6px 0; font-size: 17px; }
.hp-page .hp-toc a { font-weight: 600; }
.hp-page .hp-tip {
    background: #e9fbff;
    border: 1px solid var(--hp-cyan);
    border-radius: var(--hp-radius);
    padding: 16px 20px;
    font-size: 17px;
}
.hp-page .hp-tip strong { color: var(--hp-navy); }
.hp-card { display: flex; flex-direction: column; }
.hp-card > .wp-block-group__inner-container { display: flex; flex-direction: column; height: 100%; }
.hp-page .hp-card-link { margin-top: auto !important; font-weight: 700; }
.hp-guide-link { font-size: 18px; margin: 32px auto !important; max-width: 780px; }

.hp-page a, .hp-page .hp-areas a, .hp-page .hp-toc a, .hp-404 a { font-family: "Helvetica Neue", Arial, Helvetica, sans-serif !important; }

.hp-guide-cards .hp-card, .hp-guide-cards .hp-card h3, .hp-guide-cards .hp-card p { text-align: left !important; }
.hp-guide-row2 { margin-top: 24px !important; }
