/*
Theme Name: Divergently Being Blog Shared
Theme URI: https://www.divergentlybeing.co.uk/
Author: Divergently Being
Author URI: https://www.divergentlybeing.co.uk/
Description: Lightweight WordPress theme for the Divergently Being blog, aligned with the main PHP website and using its shared navigation/footer where available.
Version: 1.16.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: divergently-being-blog
*/

:root {
    --db-yellow: #FADF00;
    --db-blue: #99CCCC;
    --db-pale-blue: #E9F4F1;
    --db-cream: #FDF0CA;
    --db-white: #FFFFFF;
    --db-text: #111111;
    --db-soft-border: rgba(153, 204, 204, 0.75);
    --db-soft-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    --db-image-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --db-dark-teal: #214747;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--db-white);
    color: var(--db-text);
    font-family: "proxima-nova", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
}

body.admin-bar {
    min-height: calc(100vh - 32px);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    min-width: 300px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
    background: var(--db-white);
    outline: none;
}

.db-skip-link {
    position: fixed;
    z-index: 100000;
    top: 10px;
    left: 10px;
    transform: translateY(-180%);
    padding: 10px 14px;
    background: var(--db-yellow);
    color: var(--db-text);
    border: 2px solid var(--db-dark-teal);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.db-skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--db-blue);
    outline-offset: 3px;
}

/* Shared header/navigation */
.top-banner {
    background-color: var(--db-blue);
    padding: 10px 0;
}

.top-banner .container {
    line-height: 0;
}

.top-banner a,
.top-banner a:hover,
.top-banner a:focus {
    display: inline-block;
    background: transparent;
    text-decoration: none;
    line-height: 0;
}

.top-banner img {
    width: 100%;
    max-width: 350px;
    height: auto;
}

.logo-hover {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-hover:hover,
.logo-hover:focus {
    transform: scale(1.02);
    filter: drop-shadow(0 0 5px rgba(250, 223, 0, 0.65));
}

.links-bar {
    background: var(--db-yellow);
    color: var(--db-text);
    padding: 5px 0;
    border-bottom: 1px solid var(--db-soft-border);
    font-size: 17px;
    font-weight: 700;
}

.links-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-container {
    position: relative;
}

.menu-toggle,
.menu-button {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.nav-links a,
.nav-dropdown-trigger {
    display: inline-block;
    margin: 3px 2px;
    padding: 6px 10px;
    border-bottom: 2px solid transparent;
    color: var(--db-text);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.nav-link-active,
.nav-links a[aria-current="page"],
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger,
.nav-dropdown-active .nav-dropdown-trigger {
    background: rgba(153, 204, 204, 0.35);
    border-bottom-color: var(--db-blue);
    color: var(--db-text);
    text-decoration: none;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-trigger::after {
    content: " ▾";
    font-size: 0.85em;
}

.nav-submenu {
    display: none;
    position: absolute;
    z-index: 9999;
    top: 100%;
    left: 2px;
    min-width: 245px;
    padding: 6px 0;
    background: var(--db-cream);
    border: 1px solid var(--db-soft-border);
    box-shadow: var(--db-soft-shadow);
    text-align: left;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
    display: block;
}

.nav-submenu a {
    display: block;
    margin: 0;
    padding: 10px 14px;
    background: var(--db-cream);
    border-bottom: 1px solid rgba(153, 204, 204, 0.55);
    font-size: 16px;
}

.nav-submenu a:last-child {
    border-bottom: 0;
}

.nav-submenu a:hover,
.nav-submenu a:focus,
.nav-submenu a.nav-link-active,
.nav-submenu a[aria-current="page"] {
    background: rgba(153, 204, 204, 0.45);
}

/* Blog hero */
.db-blog-hero {
    margin: 0;
    padding: 38px 20px 40px;
    background: var(--db-pale-blue);
    border-bottom: 1px solid var(--db-soft-border);
    text-align: center;
}

.db-blog-hero-compact {
    padding-top: 30px;
    padding-bottom: 32px;
}

.db-blog-hero .container {
    max-width: 980px;
}

.db-blog-eyebrow {
    margin: 0 0 6px;
    color: var(--db-dark-teal);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.db-blog-hero h1 {
    margin: 0 0 12px;
    font-size: 46px;
    line-height: 1.08;
    font-weight: 700;
}

.db-blog-hero p,
.db-hero-description {
    max-width: 820px;
    margin: 0 auto;
    font-size: 21px;
    line-height: 1.5;
    font-weight: 300;
}

.db-hero-description p {
    margin: 0;
}

/* Main blog layouts */
.db-blog-wrap {
    width: 90%;
    max-width: 1120px;
    margin: 34px auto 44px;
    box-sizing: border-box;
}

.db-single-wrap {
    max-width: 920px;
}

.db-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.db-post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--db-white);
    border: 1px solid var(--db-soft-border);
    box-shadow: var(--db-soft-shadow);
}

.db-post-card-image {
    display: block;
    background: var(--db-pale-blue);
    text-decoration: none;
}

.db-post-card-image:hover,
.db-post-card-image:focus {
    background: var(--db-pale-blue);
}

.db-post-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
}

.db-post-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.db-post-card h2 {
    margin: 5px 0 10px;
    font-size: 25px;
    line-height: 1.22;
}

.db-post-card h2 a {
    color: var(--db-text);
    text-decoration: none;
}

.db-post-card h2 a:hover,
.db-post-card h2 a:focus {
    background: var(--db-yellow);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.db-post-card .entry-summary {
    flex: 1;
}

.db-post-card .entry-summary p {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;
    margin: 0 0 10px;
    padding: 0;
    color: var(--db-dark-teal);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.post-meta a {
    color: var(--db-dark-teal);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.post-meta a:hover,
.post-meta a:focus {
    color: var(--db-text);
    background: var(--db-yellow);
}

.db-text-link {
    color: var(--db-dark-teal);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.db-text-link:hover,
.db-text-link:focus {
    background: var(--db-yellow);
    color: var(--db-text);
}

.db-post-card-link {
    align-self: flex-start;
    margin-top: 4px;
}

/* Search/archive tools */
.db-archive-tools {
    margin: 0 0 28px;
    padding: 20px 24px;
    background: var(--db-cream);
    border: 1px solid var(--db-soft-border);
    border-left: 10px solid var(--db-blue);
    box-shadow: var(--db-soft-shadow);
}

.db-archive-tools > p {
    margin: 0 0 10px;
    font-weight: 700;
}

.search-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    max-width: 720px;
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;
    height: 100%;
}

input,
textarea,
select {
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--db-soft-border);
    background: var(--db-white);
    color: var(--db-text);
    font: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--db-dark-teal);
    outline-offset: 2px;
}

/* Buttons */
.db-button,
.wp-block-button__link,
button,
input[type="submit"] {
    display: inline-block;
    padding: 10px 18px;
    background: var(--db-blue);
    border: 2px solid var(--db-blue);
    border-radius: 0;
    color: var(--db-text);
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.db-button:hover,
.db-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
    background: var(--db-yellow);
    border-color: var(--db-dark-teal);
    color: var(--db-text);
    text-decoration: none;
}

.db-button-secondary {
    background: var(--db-white);
    border-color: var(--db-blue);
}

/* Single posts */
.db-single-post {
    overflow: hidden;
    background: var(--db-white);
    border: 1px solid var(--db-soft-border);
    box-shadow: var(--db-soft-shadow);
}

.db-single-header {
    padding: 24px 30px 22px;
    background: var(--db-yellow);
    border-left: 10px solid var(--db-blue);
}

.db-single-header .post-meta {
    margin-bottom: 8px;
    color: var(--db-text);
}

.db-single-header .post-meta a {
    color: var(--db-text);
    text-decoration-color: var(--db-dark-teal);
}

.db-single-header h1 {
    max-width: 820px;
    margin: 0;
    font-size: 38px;
    line-height: 1.12;
    font-weight: 700;
}

.db-single-featured-image {
    margin: 0;
    background: var(--db-pale-blue);
}

.db-single-featured-image img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    object-position: center;
}

.entry-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 34px 24px;
}

.entry-content p,
.entry-content li {
    font-size: 18px;
    line-height: 1.72;
}

.entry-content p {
    margin: 0 0 18px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px;
    padding-left: 28px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--db-text);
    line-height: 1.22;
}

.entry-content h2 {
    margin: 34px 0 15px;
    padding: 10px 14px;
    background: var(--db-yellow);
    border-left: 8px solid var(--db-blue);
    font-size: 27px;
}

.entry-content h3 {
    margin: 30px 0 12px;
    font-size: 23px;
}

.entry-content h4 {
    margin: 26px 0 10px;
    font-size: 20px;
}

.entry-content a,
.db-post-footer a,
.comments-area a {
    color: var(--db-text);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--db-blue);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.entry-content a:hover,
.entry-content a:focus,
.db-post-footer a:hover,
.db-post-footer a:focus,
.comments-area a:hover,
.comments-area a:focus {
    background: var(--db-yellow);
    text-decoration-color: var(--db-text);
}

.entry-content blockquote,
.wp-block-quote {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--db-pale-blue);
    border: 1px solid var(--db-soft-border);
    border-left: 10px solid var(--db-yellow);
}

.entry-content blockquote p,
.wp-block-quote p {
    margin-bottom: 0;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 700;
}

.entry-content img {
    box-shadow: var(--db-image-shadow);
}

.db-post-footer {
    max-width: 760px;
    margin: 0 auto 30px;
    padding: 16px 34px;
    background: var(--db-pale-blue);
    border-left: 6px solid var(--db-blue);
    box-sizing: border-box;
}

.db-post-footer p {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.45;
}

.db-post-footer p:last-child {
    margin-bottom: 0;
}

/* CTAs and panels */
.db-blog-cta,
.db-blog-secondary-cta,
.db-content-panel {
    margin: 34px 0;
    padding: 24px 28px;
    box-sizing: border-box;
    background: var(--db-pale-blue);
    border: 1px solid var(--db-soft-border);
    border-left: 10px solid var(--db-yellow);
    box-shadow: var(--db-soft-shadow);
}

.db-blog-cta h2,
.db-blog-secondary-cta h2,
.db-content-panel h2 {
    margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.25;
}

.db-blog-cta p,
.db-blog-secondary-cta p,
.db-content-panel p {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.65;
}

.db-blog-cta-actions,
.db-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.db-blog-cta-compact {
    margin-top: 34px;
}

.db-blog-secondary-cta {
    background: var(--db-cream);
    border-left-color: var(--db-blue);
}

.db-centred-panel {
    text-align: center;
}

.db-404-search {
    max-width: 720px;
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--db-soft-border);
}

.db-404-search h3 {
    margin: 0 0 12px;
}

/* Post navigation */
.same-category-post-navigation {
    clear: both;
    margin: 34px 0 36px;
}

.same-category-post-navigation h2 {
    margin: 0;
    padding: 12px 18px;
    background: var(--db-yellow);
    border-left: 10px solid var(--db-blue);
    font-size: 22px;
    line-height: 1.25;
    text-align: center;
}

.same-category-post-navigation .post-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 20px;
    background: var(--db-cream);
    border: 1px solid var(--db-soft-border);
    box-shadow: var(--db-soft-shadow);
}

.same-category-post-navigation .post-nav-card {
    display: block;
    padding: 16px 18px;
    background: var(--db-white);
    border: 1px solid var(--db-soft-border);
    border-left: 10px solid var(--db-blue);
    color: var(--db-text);
    text-decoration: none;
}

.same-category-post-navigation .post-nav-card-next {
    border-left-color: var(--db-yellow);
}

.same-category-post-navigation .post-nav-card:hover,
.same-category-post-navigation .post-nav-card:focus {
    background: var(--db-pale-blue);
}

.same-category-post-navigation .nav-direction {
    display: block;
    margin-bottom: 6px;
    color: var(--db-dark-teal);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.same-category-post-navigation .nav-title {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
}

.same-category-post-navigation .post-nav-back-link {
    margin: 0;
    padding: 14px 20px;
    background: var(--db-pale-blue);
    border: 1px solid var(--db-soft-border);
    border-top: 0;
    text-align: center;
}

.same-category-post-navigation .post-nav-back-link a {
    color: var(--db-dark-teal);
    font-weight: 700;
}

/* WordPress standard post pagination */
.navigation.posts-navigation {
    margin: 32px 0;
}

.navigation.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.navigation.posts-navigation a {
    display: inline-block;
    padding: 10px 16px;
    background: var(--db-blue);
    border: 2px solid var(--db-blue);
    color: var(--db-text);
    font-weight: 700;
    text-decoration: none;
}

.navigation.posts-navigation a:hover,
.navigation.posts-navigation a:focus {
    background: var(--db-yellow);
    border-color: var(--db-dark-teal);
}

/* Comments */
.comments-area {
    margin: 34px 0;
    padding: 24px 28px;
    background: var(--db-cream);
    border: 1px solid var(--db-soft-border);
    box-shadow: var(--db-soft-shadow);
}

.comments-title {
    margin-top: 0;
}

.comment-list {
    padding-left: 22px;
}

/* Footer aligned to main site */
.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

.footer {
    padding: 10px 0;
    background: var(--db-yellow);
    border-top: 1px solid var(--db-soft-border);
}

.footer .container,
.footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.footer-copyright {
    margin: 2px 0 8px;
    padding: 0;
    font-weight: 700;
}

.footer-service-links,
.footer-social-links,
.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer .container a,
.footer-bottom a {
    display: inline-block;
    margin: 3px 4px;
    padding: 6px 10px;
    border-bottom: 2px solid transparent;
    color: var(--db-text);
    font-weight: 700;
    text-decoration: none;
}

.footer .container a:hover,
.footer .container a:focus {
    background: rgba(153, 204, 204, 0.35);
    border-bottom-color: var(--db-blue);
}

.footer-bottom {
    padding: 10px 0;
    background: var(--db-blue);
    text-align: center;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    background: rgba(250, 223, 0, 0.45);
    border-bottom-color: var(--db-yellow);
}

.footer-company-details,
.footer-registered-office {
    margin: 0;
    padding: 0 18px;
    text-align: center;
    line-height: 1.45;
}

.footer-company-details {
    margin-bottom: 2px;
    font-size: 14px;
}

.footer-company-details span {
    display: inline-block;
    margin: 0 5px;
}

.footer-registered-office {
    margin-bottom: 5px;
    font-size: 13px;
}

.footer-legal-links span {
    margin: 0 2px;
}

/* Accessibility/focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--db-dark-teal);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .db-skip-link {
        transition: none;
    }
}

@media (max-width: 900px) {
    .db-post-grid {
        grid-template-columns: 1fr;
    }

    .db-post-card {
        max-width: 760px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    body.admin-bar {
        min-height: calc(100vh - 46px);
    }

    .container {
        width: 90%;
        max-width: 100%;
        min-width: 0;
    }

    .top-banner {
        padding: 8px 0;
    }

    .top-banner img {
        max-width: 195px;
    }

    .links-bar {
        padding: 0;
        border-bottom: 0;
        font-size: 18px;
    }

    .links-bar .container {
        display: block;
        width: 100%;
        max-width: 100%;
        text-align: left;
    }

    .menu-button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
        background: var(--db-yellow);
        color: var(--db-text);
        font-size: 20px;
        font-weight: 700;
        cursor: pointer;
    }

    .menu-button span {
        font-size: 24px;
        line-height: 1;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        background: var(--db-cream);
        border-top: 2px solid var(--db-blue);
    }

    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-links a,
    .nav-dropdown-trigger {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 13px 18px;
        background: var(--db-cream);
        border-bottom: 1px solid var(--db-blue);
        font-size: 18px;
        text-align: left;
    }

    .nav-links a:hover,
    .nav-links a:focus,
    .nav-links a.nav-link-active,
    .nav-links a[aria-current="page"],
    .nav-dropdown-active .nav-dropdown-trigger {
        background: var(--db-blue);
    }

    .nav-dropdown {
        position: static;
        display: block;
        width: 100%;
    }

    .nav-dropdown-trigger::after {
        content: "";
    }

    .nav-submenu {
        position: static;
        display: block;
        width: 100%;
        min-width: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: #FFF8DF;
    }

    .nav-submenu a {
        padding: 11px 18px 11px 34px;
        background: #FFF8DF;
        border-bottom: 1px solid rgba(153, 204, 204, 0.65);
        font-size: 16px;
    }

    .db-blog-hero {
        padding: 28px 18px 30px;
    }

    .db-blog-hero h1 {
        font-size: 34px;
    }

    .db-blog-hero p,
    .db-hero-description {
        font-size: 18px;
    }

    .db-blog-wrap {
        width: 90%;
        margin-top: 26px;
        margin-bottom: 34px;
    }

    .db-post-card-body {
        padding: 18px;
    }

    .db-post-card h2 {
        font-size: 22px;
    }

    .db-single-header {
        padding: 20px 20px 18px;
        border-left-width: 8px;
    }

    .db-single-header h1 {
        font-size: 29px;
    }

    .entry-content {
        padding: 24px 20px 18px;
    }

    .entry-content p,
    .entry-content li {
        font-size: 17px;
        line-height: 1.68;
    }

    .entry-content h2 {
        margin-top: 28px;
        font-size: 23px;
    }

    .entry-content h3 {
        font-size: 21px;
    }

    .db-post-footer {
        margin: 0 20px 24px;
        padding: 14px 16px;
    }

    .db-blog-cta,
    .db-blog-secondary-cta,
    .db-content-panel,
    .db-archive-tools,
    .comments-area {
        padding: 20px;
    }

    .db-blog-cta h2,
    .db-blog-secondary-cta h2,
    .db-content-panel h2 {
        font-size: 22px;
    }

    .db-blog-cta-actions,
    .db-link-row {
        align-items: stretch;
        flex-direction: column;
    }

    .db-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .search-form {
        flex-direction: column;
    }

    .same-category-post-navigation .post-nav-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .navigation.posts-navigation .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: transparent;
        border: 0;
    }

    .navigation.posts-navigation .nav-links a {
        width: auto;
        text-align: center;
    }

    .footer-company-details,
    .footer-registered-office {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-company-details {
        font-size: 13px;
    }

    .footer-registered-office {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .post-meta span[aria-hidden="true"] {
        display: none;
    }

    .post-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

/* =========================================================
   v1.16.1 SHARED LAYOUT PARITY HOTFIX
   ---------------------------------------------------------
   The WordPress theme uses /includes/db-shared-layout.php.
   That shared footer also loads /includes/accessibility-panel.php.
   The blog therefore needs the same footer and accessibility CSS
   as the main PHP site. Without the accessibility CSS, its launcher
   buttons remain in normal document flow after the footer, creating
   the large blank area seen on blog pages.
   ========================================================= */

/* Main-site footer base (kept here after theme rules so it wins). */
/* Footer Styles */
.footer {
    background-color: var(--db-yellow);
    padding: 10px 0;
    border-top: 1px solid var(--db-soft-border);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.footer .container .left,
.footer .container .right {
    text-align: center;
}

.footer .container a {
    display: inline-block;
    text-decoration: none;
    color: black;
    margin: 3px 4px;
    padding: 6px 10px;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.footer .container a:hover,
.footer .container a:focus {
    background-color: rgba(153, 204, 204, 0.35);
    border-bottom-color: var(--db-blue);
    color: black;
    text-decoration: none;
}

.footer-bottom {
    background-color: var(--db-blue);
    text-align: center;
    padding: 10px 0;
}

.footer-bottom .container {
    text-align: center;
}

.footer-bottom a {
    display: inline-block;
    text-decoration: none;
    color: black;
    margin: 3px 4px;
    padding: 6px 10px;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    background-color: rgba(251, 223, 0, 0.45);
    border-bottom-color: var(--db-yellow);
    color: black;
    text-decoration: none;
}

/* Main-site shared footer refinements. */
/* =========================================================
   SHARED FOOTER
   ========================================================= */

.footer-main-inner,
.footer-legal-inner {
    box-sizing: border-box;
}

.footer-main-inner {
    padding-top: 6px;
    padding-bottom: 8px;
}

.footer-copyright {
    margin: 2px 0 8px;
    padding: 0;
    font-weight: 700;
}

.footer-service-links,
.footer-social-links,
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-service-links {
    margin: 0 0 4px;
}

.footer-service-links a {
    font-size: 15px;
}

.footer-social-links {
    margin-top: 2px;
}

.footer-social-links a {
    font-size: 15px;
}

.footer-company-details,
.footer-registered-office {
    margin: 0;
    padding: 0 18px;
    line-height: 1.45;
    text-align: center;
}

.footer-company-details {
    font-size: 14px;
    margin-bottom: 2px;
}

.footer-company-details span {
    display: inline-block;
    margin: 0 5px;
}

.footer-registered-office {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 5px;
}

.footer-legal-links span {
    margin: 0 2px;
}

.footer-legal-links a {
    font-size: 14px;
}

@media (max-width: 700px) {
    .footer-service-links,
    .footer-social-links,
    .footer-legal-links {
        row-gap: 2px;
    }

    .footer-service-links {
        padding: 0 8px;
    }

    .footer-service-links a,
    .footer-social-links a,
    .footer-legal-links a {
        font-size: 14px;
    }

    .footer-company-details,
    .footer-registered-office {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-company-details {
        font-size: 13px;
    }

    .footer-registered-office {
        font-size: 12px;
    }
}

/* =========================================================
   Shared accessibility options panel
   Markup and behaviour: /includes/accessibility-panel.php
   ========================================================= */
:root {
    --db-a11y-tint-colour: transparent;
    --db-a11y-tint-opacity: 0;
}

.db-a11y-tools,
.db-a11y-tools * {
    box-sizing: border-box;
}

.db-a11y-tools {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10060;
    color: var(--db-text);
    font-family: 'proxima-nova', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
}

.db-a11y-launcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.db-a11y-main-button,
.db-a11y-hide-button,
.db-a11y-restore-button,
.db-a11y-close-button,
.db-a11y-tab,
.db-a11y-control,
.db-a11y-wide-control,
.db-a11y-toggle-control,
.db-a11y-step-button,
.db-a11y-section-reset,
.db-a11y-reset-all,
.db-a11y-colour-swatch {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
}

.db-a11y-main-button,
.db-a11y-hide-button,
.db-a11y-restore-button {
    min-height: 48px;
    border: 2px solid var(--db-text);
    border-radius: 999px;
    color: var(--db-text);
    font-weight: 800;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.db-a11y-main-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 8px;
    background: var(--db-yellow);
}

.db-a11y-main-button-icon,
.db-a11y-restore-button span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    border: 2px solid var(--db-text);
    border-radius: 50%;
    background: var(--db-blue);
    font-size: 14px;
    line-height: 1;
}

.db-a11y-hide-button {
    min-height: 44px;
    padding: 8px 12px;
    background: var(--db-white);
    font-size: 14px;
}

.db-a11y-restore-button {
    display: none;
    width: 48px;
    height: 48px;
    padding: 6px;
    align-items: center;
    justify-content: center;
    background: var(--db-yellow);
}

.db-a11y-restore-button span {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
}

.db-a11y-main-button:hover,
.db-a11y-main-button:focus-visible,
.db-a11y-hide-button:hover,
.db-a11y-hide-button:focus-visible,
.db-a11y-restore-button:hover,
.db-a11y-restore-button:focus-visible {
    background: var(--db-blue);
    outline: 3px solid var(--db-text);
    outline-offset: 3px;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.db-a11y-active-badge {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--db-text);
    color: var(--db-white);
    font-size: 13px;
    line-height: 1;
}

.db-a11y-active-badge[hidden],
.db-a11y-panel[hidden],
.db-a11y-tab-panel[hidden] {
    display: none !important;
}

.db-a11y-tools-hidden .db-a11y-launcher,
.db-a11y-tools-hidden .db-a11y-panel {
    display: none !important;
}

.db-a11y-tools-hidden .db-a11y-restore-button {
    display: inline-flex;
}

.db-a11y-panel {
    position: absolute;
    right: 0;
    bottom: 62px;
    display: flex;
    width: 470px;
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 112px);
    flex-direction: column;
    overflow: hidden;
    background: #fff8df;
    border: 2px solid var(--db-text);
    border-top: 10px solid var(--db-blue);
    border-radius: 18px;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.32);
    animation: dbA11yPanelPop 0.22s ease-out both;
}

.db-a11y-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 16px 13px;
    background: var(--db-pale-blue);
    border-bottom: 1px solid var(--db-soft-border);
}

.db-a11y-eyebrow {
    margin: 0 0 2px;
    color: var(--db-dark-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.db-a11y-panel-header h2 {
    margin: 0;
    color: var(--db-text);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.db-a11y-panel-summary {
    margin: 5px 0 0;
    color: var(--db-dark-teal);
    font-size: 14px;
    line-height: 1.35;
}

.db-a11y-close-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    padding: 0;
    background: var(--db-white);
    border: 2px solid var(--db-text);
    border-radius: 50%;
    color: var(--db-text);
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.db-a11y-close-button:hover,
.db-a11y-close-button:focus-visible {
    background: var(--db-yellow);
    outline: 3px solid var(--db-text);
    outline-offset: 2px;
}

.db-a11y-tabs {
    display: flex;
    flex: 0 0 auto;
    overflow-x: auto;
    background: var(--db-white);
    border-bottom: 2px solid var(--db-text);
    scrollbar-width: thin;
}

.db-a11y-tab {
    flex: 1 0 auto;
    min-height: 45px;
    padding: 9px 12px;
    background: var(--db-white);
    border: 0;
    border-right: 1px solid var(--db-soft-border);
    border-bottom: 5px solid transparent;
    color: var(--db-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.db-a11y-tab:last-child {
    border-right: 0;
}

.db-a11y-tab:hover,
.db-a11y-tab:focus-visible {
    background: var(--db-pale-blue);
    outline: 3px solid var(--db-text);
    outline-offset: -3px;
}

.db-a11y-tab[aria-selected="true"] {
    background: #fff9cf;
    border-bottom-color: var(--db-yellow);
}

.db-a11y-panel-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--db-blue) var(--db-pale-blue);
}

.db-a11y-tab-panel {
    padding: 16px;
}

.db-a11y-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.db-a11y-section-heading h3 {
    margin: 0 0 3px;
    color: var(--db-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.db-a11y-section-heading p,
.db-a11y-help {
    margin: 0;
    color: #365353;
    font-size: 14px;
    line-height: 1.4;
}

.db-a11y-section-reset,
.db-a11y-reset-all {
    min-height: 34px;
    padding: 6px 9px;
    flex: 0 0 auto;
    background: var(--db-white);
    border: 1px solid var(--db-dark-teal);
    border-radius: 999px;
    color: var(--db-dark-teal);
    font-size: 13px;
    font-weight: 800;
}

.db-a11y-section-reset:hover,
.db-a11y-section-reset:focus-visible,
.db-a11y-reset-all:hover,
.db-a11y-reset-all:focus-visible {
    background: var(--db-yellow);
    border-color: var(--db-text);
    color: var(--db-text);
    outline: 2px solid var(--db-text);
    outline-offset: 2px;
}

.db-a11y-status {
    margin: 0 0 13px;
    padding: 10px 12px;
    background: var(--db-pale-blue);
    border-left: 6px solid var(--db-blue);
    color: var(--db-dark-teal);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.db-a11y-button-grid,
.db-a11y-toggle-grid,
.db-a11y-field-grid,
.db-a11y-page-actions {
    display: grid;
    gap: 9px;
}

.db-a11y-button-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 14px;
}

.db-a11y-control,
.db-a11y-wide-control,
.db-a11y-step-button {
    min-height: 43px;
    padding: 8px 10px;
    background: var(--db-white);
    border: 2px solid var(--db-blue);
    border-radius: 10px;
    color: var(--db-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.db-a11y-control:hover,
.db-a11y-control:focus-visible,
.db-a11y-wide-control:hover,
.db-a11y-wide-control:focus-visible,
.db-a11y-step-button:hover,
.db-a11y-step-button:focus-visible {
    background: var(--db-yellow);
    border-color: var(--db-text);
    outline: 2px solid var(--db-text);
    outline-offset: 2px;
}

.db-a11y-control:disabled,
.db-a11y-wide-control:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.db-a11y-wide-control {
    width: 100%;
    margin-top: 11px;
}

.db-a11y-field-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(105px, 0.7fr);
}

.db-a11y-field {
    margin: 12px 0;
}

.db-a11y-field label,
.db-a11y-range-field label,
.db-a11y-tint-fieldset legend,
.db-a11y-tint-actions label {
    display: block;
    margin: 0 0 6px;
    color: var(--db-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.db-a11y-select {
    width: 100%;
    min-height: 43px;
    padding: 8px 34px 8px 10px;
    background: var(--db-white);
    border: 2px solid var(--db-blue);
    border-radius: 8px;
    color: var(--db-text);
    font: inherit;
    font-size: 15px;
}

.db-a11y-select:focus-visible,
.db-a11y-range-field input:focus-visible {
    border-color: var(--db-text);
    outline: 3px solid var(--db-yellow);
    outline-offset: 2px;
}

.db-a11y-help {
    margin-top: 9px;
}

.db-a11y-setting-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 14px;
    padding: 12px;
    background: var(--db-white);
    border: 1px solid var(--db-soft-border);
    border-left: 7px solid var(--db-blue);
    border-radius: 10px;
}

.db-a11y-setting-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.db-a11y-setting-copy strong {
    font-size: 16px;
}

.db-a11y-setting-copy span {
    color: var(--db-dark-teal);
    font-size: 14px;
}

.db-a11y-stepper {
    display: flex;
    gap: 7px;
}

.db-a11y-step-button {
    min-width: 52px;
    font-size: 17px;
}

.db-a11y-toggle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.db-a11y-toggle-control {
    position: relative;
    min-height: 76px;
    padding: 11px 38px 11px 11px;
    background: var(--db-white);
    border: 2px solid var(--db-blue);
    border-radius: 11px;
    color: var(--db-text);
    text-align: left;
}

.db-a11y-toggle-control::after {
    content: "";
    position: absolute;
    right: 11px;
    top: 12px;
    width: 19px;
    height: 19px;
    background: var(--db-white);
    border: 2px solid var(--db-dark-teal);
    border-radius: 50%;
}

.db-a11y-toggle-control span,
.db-a11y-toggle-control small {
    display: block;
}

.db-a11y-toggle-control span {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.db-a11y-toggle-control small {
    margin-top: 4px;
    color: #365353;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.db-a11y-toggle-control:hover,
.db-a11y-toggle-control:focus-visible {
    background: var(--db-pale-blue);
    border-color: var(--db-text);
    outline: 2px solid var(--db-text);
    outline-offset: 2px;
}

.db-a11y-toggle-control[aria-pressed="true"] {
    background: #fff8c9;
    border-color: var(--db-text);
    box-shadow: inset 0 0 0 2px var(--db-yellow);
}

.db-a11y-toggle-control[aria-pressed="true"]::after {
    background: var(--db-yellow);
    box-shadow: inset 0 0 0 4px var(--db-white);
}

.db-a11y-tint-fieldset {
    margin: 14px 0;
    padding: 11px 12px 13px;
    background: var(--db-white);
    border: 1px solid var(--db-soft-border);
    border-radius: 11px;
}

.db-a11y-tint-fieldset legend {
    padding: 0 5px;
}

.db-a11y-tint-actions {
    display: grid;
    grid-template-columns: auto auto minmax(110px, 1fr);
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
}

.db-a11y-tint-actions label {
    margin: 0;
    text-align: right;
}

.db-a11y-tint-strength {
    min-height: 36px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 14px;
}

.db-a11y-colour-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 7px;
}

.db-a11y-colour-swatch {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 34px;
    padding: 0;
    border: 2px solid var(--db-text);
    border-radius: 5px;
}

.db-a11y-colour-swatch:hover,
.db-a11y-colour-swatch:focus-visible {
    outline: 3px solid var(--db-text);
    outline-offset: 2px;
    transform: scale(1.06);
}

.db-a11y-colour-swatch[aria-pressed="true"] {
    outline: 4px solid var(--db-yellow);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--db-text);
}

.db-a11y-swatch-cream { background: #fdf0ca; }
.db-a11y-swatch-soft-yellow { background: #fff3a8; }
.db-a11y-swatch-pale-blue { background: #dceeff; }
.db-a11y-swatch-aqua { background: #ccefee; }
.db-a11y-swatch-mint { background: #d9f4df; }
.db-a11y-swatch-sage { background: #dfe8cf; }
.db-a11y-swatch-peach { background: #ffd9bd; }
.db-a11y-swatch-soft-pink { background: #f7d8e5; }
.db-a11y-swatch-rose { background: #efc6ce; }
.db-a11y-swatch-lavender { background: #e6d9f3; }
.db-a11y-swatch-pale-purple { background: #dcd5f5; }
.db-a11y-swatch-cool-grey { background: #dfe5e8; }
.db-a11y-swatch-warm-grey { background: #e7e0d8; }
.db-a11y-swatch-sepia { background: #d8c7a3; }
.db-a11y-swatch-sky { background: #c9e8ff; }
.db-a11y-swatch-soft-green { background: #cfe8d2; }

.db-a11y-range-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    margin-top: 15px;
    padding: 12px;
    background: var(--db-white);
    border: 1px solid var(--db-soft-border);
    border-radius: 10px;
}

.db-a11y-range-field label {
    margin: 0;
}

.db-a11y-range-field input {
    width: 100%;
    grid-column: 1 / -1;
    accent-color: var(--db-dark-teal);
}

.db-a11y-range-field output {
    color: var(--db-dark-teal);
    font-size: 14px;
    font-weight: 800;
}

.db-a11y-page-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2px;
}

.db-a11y-page-actions .db-a11y-wide-control {
    margin: 0;
}

.db-a11y-outline {
    margin-top: 14px;
    padding: 12px;
    background: var(--db-pale-blue);
    border-left: 7px solid var(--db-blue);
    border-radius: 9px;
}

.db-a11y-outline h4 {
    margin: 0 0 8px;
    color: var(--db-text);
    font-size: 16px;
    line-height: 1.3;
}

.db-a11y-outline ol {
    margin: 0;
    padding-left: 22px;
}

.db-a11y-outline li {
    margin: 5px 0;
    color: var(--db-dark-teal);
    line-height: 1.3;
}

.db-a11y-outline-level-h3,
.db-a11y-outline-level-h4 {
    margin-left: 15px !important;
}

.db-a11y-outline a,
.db-a11y-panel-footer a {
    color: var(--db-dark-teal);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--db-blue);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.db-a11y-outline a:hover,
.db-a11y-outline a:focus-visible,
.db-a11y-panel-footer a:hover,
.db-a11y-panel-footer a:focus-visible {
    background: var(--db-yellow);
    color: var(--db-text);
    outline: 2px solid var(--db-text);
    outline-offset: 2px;
}

.db-a11y-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--db-pale-blue);
    border-top: 1px solid var(--db-soft-border);
    color: var(--db-dark-teal);
    font-size: 13px;
    line-height: 1.3;
}

.db-a11y-reset-all {
    background: var(--db-yellow);
    border-color: var(--db-text);
    color: var(--db-text);
}

@keyframes dbA11yPanelPop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Page-level transformations follow the classes used by the site's templates. */
body.db-a11y-text-size-1 :where(.picture-section .text, .text-section, .faq-section, .site-footer) :is(p, li, blockquote, figcaption),
body.db-a11y-text-size-1 .nav-links a {
    font-size: 18px !important;
}

body.db-a11y-text-size-2 :where(.picture-section .text, .text-section, .faq-section, .site-footer) :is(p, li, blockquote, figcaption),
body.db-a11y-text-size-2 .nav-links a {
    font-size: 20px !important;
}

body.db-a11y-text-size-3 :where(.picture-section .text, .text-section, .faq-section, .site-footer) :is(p, li, blockquote, figcaption),
body.db-a11y-text-size-3 .nav-links a {
    font-size: 23px !important;
}

body.db-a11y-font-arial :where(.top-banner, .links-bar, .picture-section, .text-section, .faq-section, .site-footer, .db-a11y-tools, input, select, textarea, button) {
    font-family: Arial, Helvetica, sans-serif !important;
}

body.db-a11y-font-verdana :where(.top-banner, .links-bar, .picture-section, .text-section, .faq-section, .site-footer, .db-a11y-tools, input, select, textarea, button) {
    font-family: Verdana, Geneva, sans-serif !important;
}

body.db-a11y-font-georgia :where(.top-banner, .links-bar, .picture-section, .text-section, .faq-section, .site-footer, .db-a11y-tools, input, select, textarea, button) {
    font-family: Georgia, 'Times New Roman', serif !important;
}

body.db-a11y-font-mono :where(.top-banner, .links-bar, .picture-section, .text-section, .faq-section, .site-footer, .db-a11y-tools, input, select, textarea, button) {
    font-family: 'Courier New', Courier, monospace !important;
}

body.db-a11y-spacing :where(.picture-section .text, .text-section, .faq-section, .site-footer) :is(p, li, blockquote, figcaption) {
    line-height: 1.9 !important;
    letter-spacing: 0.035em !important;
    word-spacing: 0.08em !important;
}

body.db-a11y-spacing :where(.text-section, .faq-section) p {
    margin-bottom: 1.35em !important;
}

body.db-a11y-readable-width :where(.picture-section .text, .text-section, .content-panel, .content-break, .faq-section .p, main article) > :is(p, ul, ol, blockquote) {
    max-width: 72ch !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.db-a11y-left-align :where(.picture-section .text, .text-section, .content-panel, .content-break, .faq-section .p, main article, .site-footer) {
    text-align: left !important;
}

body.db-a11y-highlight-links :where(.picture-section, .text-section, .faq-section, .site-footer, .links-bar) a:not(.button-link) {
    background: var(--db-yellow) !important;
    color: #000 !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
    text-decoration-color: #000 !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 4px !important;
}

body.db-a11y-grayscale :where(.picture-section, .text-section, main) :is(img, video, iframe) {
    filter: grayscale(1) !important;
}

body.db-a11y-contrast-dark {
    --db-a11y-page-bg: #101718;
    --db-a11y-page-panel: #1d2b2c;
    --db-a11y-page-text: #f7f7f2;
    --db-a11y-page-accent: #99cccc;
    --db-a11y-page-accent-text: #081010;
    --db-a11y-page-link: #fff36d;
}

body.db-a11y-contrast-light {
    --db-a11y-page-bg: #ffffff;
    --db-a11y-page-panel: #ffffff;
    --db-a11y-page-text: #000000;
    --db-a11y-page-accent: #000000;
    --db-a11y-page-accent-text: #ffffff;
    --db-a11y-page-link: #0000b5;
}

body.db-a11y-contrast-black-white {
    --db-a11y-page-bg: #000000;
    --db-a11y-page-panel: #000000;
    --db-a11y-page-text: #ffffff;
    --db-a11y-page-accent: #ffffff;
    --db-a11y-page-accent-text: #000000;
    --db-a11y-page-link: #ffffff;
}

body.db-a11y-contrast-black-yellow {
    --db-a11y-page-bg: #000000;
    --db-a11y-page-panel: #000000;
    --db-a11y-page-text: #fff000;
    --db-a11y-page-accent: #fff000;
    --db-a11y-page-accent-text: #000000;
    --db-a11y-page-link: #fff000;
}

body.db-a11y-contrast-navy-cream {
    --db-a11y-page-bg: #08264a;
    --db-a11y-page-panel: #12345b;
    --db-a11y-page-text: #fff4cf;
    --db-a11y-page-accent: #fff4cf;
    --db-a11y-page-accent-text: #08264a;
    --db-a11y-page-link: #fff4cf;
}

body.db-a11y-contrast-on,
body.db-a11y-contrast-on :where(.top-banner, .links-bar, .full-width, .picture-section, .section, .text-section, .site-footer, .footer, .footer-bottom) {
    background-color: var(--db-a11y-page-bg) !important;
    background-image: none !important;
    color: var(--db-a11y-page-text) !important;
    border-color: var(--db-a11y-page-text) !important;
}

body.db-a11y-contrast-on :where(.picture-section .text, .text-section, .faq-section, .site-footer),
body.db-a11y-contrast-on :where(.picture-section .text, .text-section, .faq-section, .site-footer) * {
    color: var(--db-a11y-page-text) !important;
    border-color: var(--db-a11y-page-text) !important;
}

body.db-a11y-contrast-on :where(.content-panel, .content-break, .service-box, .faq-section .p, main article, main [class$="-panel"], main [class$="-card"], main [class$="-strip"], main [class$="-banner"]) {
    background-color: var(--db-a11y-page-panel) !important;
    background-image: none !important;
    color: var(--db-a11y-page-text) !important;
    border-color: var(--db-a11y-page-text) !important;
    box-shadow: none !important;
}

body.db-a11y-contrast-on :where(.content-heading, .faq-section .c, main [class$="-heading"], .links-bar, .footer-bottom) {
    background-color: var(--db-a11y-page-accent) !important;
    color: var(--db-a11y-page-accent-text) !important;
    border-color: var(--db-a11y-page-text) !important;
}

body.db-a11y-contrast-on :where(.content-heading, .faq-section .c, main [class$="-heading"], .links-bar, .footer-bottom) * {
    color: var(--db-a11y-page-accent-text) !important;
}

body.db-a11y-contrast-on .nav-submenu,
body.db-a11y-contrast-on .nav-submenu a {
    background: var(--db-a11y-page-panel) !important;
    color: var(--db-a11y-page-text) !important;
    border-color: var(--db-a11y-page-text) !important;
}

body.db-a11y-contrast-on :where(.picture-section, .text-section, .faq-section, .site-footer, .links-bar) a:not(.button-link) {
    background: transparent !important;
    color: var(--db-a11y-page-link) !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 4px !important;
}

body.db-a11y-contrast-on .button-link,
body.db-a11y-contrast-on .text-section button:not(.db-a11y-control) {
    background: var(--db-a11y-page-accent) !important;
    color: var(--db-a11y-page-accent-text) !important;
    border: 2px solid var(--db-a11y-page-text) !important;
}

body.db-a11y-contrast-on :where(.text-section, main) :is(input, select, textarea, [contenteditable="true"]) {
    background: var(--db-a11y-page-panel) !important;
    color: var(--db-a11y-page-text) !important;
    border-color: var(--db-a11y-page-text) !important;
}

body.db-a11y-tint-on::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 10010;
    pointer-events: none;
    background: var(--db-a11y-tint-colour);
    opacity: var(--db-a11y-tint-opacity);
}

.db-a11y-reading-guide {
    position: fixed;
    left: 0;
    top: 50%;
    z-index: 10022;
    display: none;
    width: 100vw;
    height: 40px;
    pointer-events: none;
    border-top: 3px solid var(--db-yellow);
    border-bottom: 3px solid var(--db-yellow);
    background: rgba(153, 204, 204, 0.2);
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.55);
}

body.db-a11y-guide-on .db-a11y-reading-guide {
    display: block;
}

.db-a11y-reading-mask {
    position: fixed;
    left: 0;
    z-index: 10020;
    display: none;
    width: 100vw;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.72);
}

.db-a11y-reading-mask-top {
    top: 0;
}

.db-a11y-reading-mask-bottom {
    bottom: 0;
}

body.db-a11y-mask-on .db-a11y-reading-mask {
    display: block;
}

.db-a11y-cursor-highlight {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 10024;
    display: none;
    width: 58px;
    height: 58px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    border: 4px solid var(--db-yellow);
    border-radius: 50%;
    background: rgba(153, 204, 204, 0.2);
    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.8);
}

body.db-a11y-cursor-on .db-a11y-cursor-highlight {
    display: block;
}

.db-a11y-focus-target,
.db-a11y-speaking {
    position: relative;
    z-index: 1;
    background: #fff3a8 !important;
    color: #000 !important;
    outline: 4px solid var(--db-blue) !important;
    outline-offset: 4px !important;
    border-radius: 2px;
}

body.db-a11y-strong-focus :where(a, button, input, select, textarea, summary, [tabindex]):focus,
body.db-a11y-strong-focus :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 5px solid var(--db-yellow) !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 8px rgba(17, 17, 17, 0.92) !important;
}

body.db-a11y-reduce-motion *,
body.db-a11y-reduce-motion *::before,
body.db-a11y-reduce-motion *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

body.db-a11y-images-hidden :where(.picture-section, .text-section, main) img,
body.db-a11y-images-alt :where(.picture-section, .text-section, main) img,
body.db-a11y-text-only :where(.picture-section, .text-section, main) :is(img, picture, video, audio, iframe, canvas, svg) {
    display: none !important;
}

.db-a11y-alt-replacement {
    display: block;
    width: min(100%, 760px);
    margin: 12px auto;
    padding: 12px 14px;
    background: var(--db-pale-blue);
    border: 2px dashed var(--db-dark-teal);
    color: var(--db-text);
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
    text-align: left;
}

body.db-a11y-text-only :where(.picture-section, .text-section, main, main section, main article, .content-panel, .content-break) {
    background-image: none !important;
    box-shadow: none !important;
}

@media (max-width: 620px) {
    .db-a11y-tools {
        right: 8px;
        bottom: 8px;
    }

    .db-a11y-panel {
        bottom: 58px;
        width: calc(100vw - 16px);
        max-width: none;
        max-height: calc(100vh - 76px);
        border-radius: 14px;
    }

    .db-a11y-panel-header {
        padding: 13px;
    }

    .db-a11y-panel-header h2 {
        font-size: 22px;
    }

    .db-a11y-tab {
        min-width: 72px;
        padding-right: 9px;
        padding-left: 9px;
        font-size: 14px;
    }

    .db-a11y-tab-panel {
        padding: 13px;
    }

    .db-a11y-button-grid-five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .db-a11y-field-grid,
    .db-a11y-toggle-grid {
        grid-template-columns: 1fr;
    }

    .db-a11y-colour-grid {
        grid-template-columns: repeat(8, minmax(28px, 1fr));
        overflow-x: auto;
        padding: 3px;
    }

    .db-a11y-panel-footer {
        flex-wrap: wrap;
    }

    .db-a11y-hide-button {
        min-width: 44px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .db-a11y-main-button {
        padding-right: 10px;
        font-size: 14px;
    }

    .db-a11y-main-button-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 12px;
    }

    .db-a11y-tint-actions {
        grid-template-columns: 1fr 1fr;
    }

    .db-a11y-tint-actions label {
        text-align: left;
    }

    .db-a11y-tint-strength {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .db-a11y-panel,
    .db-a11y-main-button,
    .db-a11y-hide-button,
    .db-a11y-restore-button,
    .db-a11y-colour-swatch {
        animation: none !important;
        transition: none !important;
    }
}

/* WordPress blog-content compatibility for the shared access options. */
body.db-a11y-text-size-1 :where(.site-main, .entry-content, .entry-summary, .db-post-card-body) :is(p, li, blockquote, figcaption) {
    font-size: 18px !important;
}
body.db-a11y-text-size-2 :where(.site-main, .entry-content, .entry-summary, .db-post-card-body) :is(p, li, blockquote, figcaption) {
    font-size: 20px !important;
}
body.db-a11y-text-size-3 :where(.site-main, .entry-content, .entry-summary, .db-post-card-body) :is(p, li, blockquote, figcaption) {
    font-size: 23px !important;
}
body.db-a11y-font-arial :where(.site-main, .entry-content, .entry-summary, .db-post-card-body) {
    font-family: Arial, Helvetica, sans-serif !important;
}
body.db-a11y-font-verdana :where(.site-main, .entry-content, .entry-summary, .db-post-card-body) {
    font-family: Verdana, Geneva, sans-serif !important;
}
body.db-a11y-font-georgia :where(.site-main, .entry-content, .entry-summary, .db-post-card-body) {
    font-family: Georgia, 'Times New Roman', serif !important;
}
body.db-a11y-font-mono :where(.site-main, .entry-content, .entry-summary, .db-post-card-body) {
    font-family: 'Courier New', Courier, monospace !important;
}
body.db-a11y-spacing :where(.entry-content, .entry-summary, .db-post-card-body) :is(p, li, blockquote, figcaption) {
    line-height: 1.9 !important;
    letter-spacing: 0.035em !important;
    word-spacing: 0.08em !important;
}
body.db-a11y-highlight-links :where(.site-main) a:not(.db-button):not(.button-link) {
    background: var(--db-yellow) !important;
    color: #000 !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
    text-decoration-color: #000 !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 4px !important;
}

