/**
 * Main Stylesheet
 *
 * This file is compiled from the Style Manager plugin.
 * Custom CSS is added via the WordPress admin panel.
 *
 * Base styles and CSS custom properties are defined here.
 */

/* ============================================
   MOBILE-FIRST CSS CUSTOM PROPERTIES
   ============================================ */

   :root {
    /* Colors - Set via Theme Customizer */
    --color-primary: #1A1A1A;
    --color-secondary: #666666;
    --color-accent: #D4A574;
    --color-accent-dark: #B8935F;
    --color-text: #1A1A1A;
    --color-text-light: #FFFFFF;
    --color-background: #FAFAF5;
    --color-background-dark: #2C2C2C;
    --color-background-darker: #1A1A1A;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.1);

    /* Typography - Set via Theme Customizer */
    /* Body: Sans-serif */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    /* Headings: Serif */
    --font-heading: Georgia, "Times New Roman", Times, serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;
    --line-height-heading: 1.2;

    /* Spacing - Mobile First */
    --spacing-unit: 1rem;
    --spacing-xs: calc(var(--spacing-unit) * 0.25);   /* 4px */
    --spacing-sm: calc(var(--spacing-unit) * 0.5);    /* 8px */
    --spacing-md: var(--spacing-unit);                 /* 16px */
    --spacing-lg: calc(var(--spacing-unit) * 1.5);     /* 24px */
    --spacing-xl: calc(var(--spacing-unit) * 2);       /* 32px */
    --spacing-2xl: calc(var(--spacing-unit) * 3);      /* 48px */
    --spacing-3xl: calc(var(--spacing-unit) * 4);      /* 64px */
    --spacing-4xl: calc(var(--spacing-unit) * 5);      /* 80px */

    /* Layout - Mobile First */
    --container-width: 100%;
    --container-padding: 1rem;
    --container-max-width: 1200px;

    /* Mobile-First Breakpoints */
    --breakpoint-xs: 0px;      /* Mobile */
    --breakpoint-sm: 576px;    /* Large Mobile */
    --breakpoint-md: 768px;    /* Tablet */
    --breakpoint-lg: 992px;    /* Desktop */
    --breakpoint-xl: 1200px;   /* Large Desktop */
    --breakpoint-2xl: 1200px;  /* Extra Large */
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--color-text);
    /* Background color is set via Theme Customizer */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--spacing-md) 0;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--line-height-heading);
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

p {
    margin: 0 0 var(--spacing-md) 0;
    line-height: var(--line-height-base);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--color-primary);
    outline: none;
}

/* Links in body text ONLY - Smart color system for light/dark backgrounds */
/* Only applies to links inside paragraphs and text content, NOT buttons, titles, headings, or navigation */
.entry-content p a,
.block-content__text p a,
.block-icon-box__text p a,
.block-banner__text p a,
.block-cards__text p a,
.block-intro__text p a {
    text-decoration: underline;
    text-underline-offset: 0.25em; /* Space between text and underline */
    text-decoration-thickness: 1px;
    /* Use block-specific link color if set, otherwise use default */
    color: var(--block-link-color, var(--color-accent, #D4A574));
    text-decoration-color: var(--block-link-color, var(--color-accent, #D4A574));
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.entry-content p a:hover,
.entry-content p a:focus,
.block-content__text p a:hover,
.block-content__text p a:focus,
.block-icon-box__text p a:hover,
.block-icon-box__text p a:focus,
.block-banner__text p a:hover,
.block-banner__text p a:focus,
.block-cards__text p a:hover,
.block-cards__text p a:focus,
.block-intro__text p a:hover,
.block-intro__text p a:focus {
    /* Use block-specific hover link color if set, otherwise use default */
    color: var(--block-link-color-hover, var(--color-accent-dark, #B8935F));
    text-decoration-color: var(--block-link-color-hover, var(--color-accent-dark, #B8935F));
}

/* Explicitly exclude titles, headings, buttons, and navigation from link styles */
[class*="__title"] a,
[class*="__heading"] a,
[class*="__button"],
[class*="button"],
[class*="__icon-link"],
.article-card__title-link,
.block-content-slider__title a,
.block-latest-articles__title a {
    text-decoration: none !important;
    color: inherit !important;
}

[class*="__title"] a:hover,
[class*="__title"] a:focus,
[class*="__heading"] a:hover,
[class*="__heading"] a:focus,
[class*="__button"]:hover,
[class*="__button"]:focus,
[class*="button"]:hover,
[class*="button"]:focus,
[class*="__icon-link"]:hover,
[class*="__icon-link"]:focus,
.article-card__title-link:hover,
.article-card__title-link:focus,
.block-content-slider__title a:hover,
.block-content-slider__title a:focus,
.block-latest-articles__title a:hover,
.block-latest-articles__title a:focus {
    text-decoration: none !important;
    text-decoration-color: transparent !important;
}

/* Dark background link colors - applied via data attribute or class */
.block[data-background="dark"] a,
.block--dark-background a {
    --block-link-color: #E8C896; /* Lighter gold for dark backgrounds */
    --block-link-color-hover: #F5D9B0; /* Even lighter on hover */
}

/* Light background link colors (default - no override needed) */

/* Layout */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* Container - Mobile First */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Responsive Container Padding */
@media (min-width: 768px) {
    .container {
        padding: 0 calc(var(--container-padding) * 1.5);
    }
}

@media (min-width: 992px) {
    .container {
        padding: 0 calc(var(--container-padding) * 2);
    }
}

/* Main Content Width */
.site-main {
    width: 100%;
}

.site-main > *:not(.block-wrapper):not(.hkb-guide-hero) {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Exclude full-width blocks from container constraints */
.site-main > .block-wrapper--full-width,
.site-main > .single-article__hero,
.site-main > .single-dispatch__hero {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 768px) {
    .site-main > *:not(.block-wrapper):not(.hkb-guide-hero) {
        padding-left: calc(var(--container-padding) * 1.5);
        padding-right: calc(var(--container-padding) * 1.5);
    }

    .site-main > .block-wrapper--full-width,
    .site-main > .single-article__hero,
    .site-main > .single-dispatch__hero {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 992px) {
    .site-main > *:not(.block-wrapper):not(.hkb-guide-hero) {
        padding-left: calc(var(--container-padding) * 2);
        padding-right: calc(var(--container-padding) * 2);
    }

    .site-main > .block-main > .block-wrapper--full-width,
    .site-main > .single-article__hero,
    .site-main > .single-dispatch__hero {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ============================================
   HEADER - MOBILE FIRST (3 COLUMN LAYOUT)
   ============================================ */

.site-header {
    background-color: var(--color-background);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    width: 100%;
    padding: 0;
}

.site-header--sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header Inner - 3 Column Grid */
.site-header .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-md);
    align-items: center;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.site-header .site-header__inner.container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Header Columns */
.site-header__col {
    display: flex;
    align-items: center;
}

.site-header__col--logo {
    justify-content: flex-start;
}

.site-header__col--nav {
    display: none; /* Hidden on mobile */
}

.site-header__col--actions {
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

/* Branding */
.site-branding {
    display: flex;
    align-items: center;
}

.site-branding img,
.custom-logo {
    max-width: 120px;
    height: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Header Actions (Search, etc.) */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: inherit;
    transition: all 0.2s ease;
}

.header-action:hover,
.header-action:focus {
    background-color: rgba(0, 0, 0, 0.05);
    outline: none;
}

.header-action svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: inherit;
    transition: all 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background-color: rgba(0, 0, 0, 0.05);
    outline: none;
}

.menu-toggle__icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.menu-toggle__icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .site-header .site-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: var(--spacing-md);
    }

    .site-header .site-header__inner.container {
        padding-left: calc(var(--container-padding) * 1.5);
        padding-right: calc(var(--container-padding) * 1.5);
        padding-top: 0;
        padding-bottom: 0;
    }

    .site-header__col--nav {
        display: flex;
        justify-content: center;
    }

    .site-header__col--actions .menu-toggle {
        display: none; /* Hide hamburger on desktop */
    }

    .site-branding img,
    .custom-logo {
        max-width: 150px;
    }
}

@media (min-width: 992px) {
    .site-header .site-header__inner.container {
        padding-left: calc(var(--container-padding) * 2);
        padding-right: calc(var(--container-padding) * 2);
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* ============================================
   NAVIGATION - MOBILE FIRST
   ============================================ */

.main-navigation {
    width: 100%;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-menu li {
    position: relative;
    width: 100%;
}

.nav-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: var(--font-primary, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
    text-transform: uppercase;
    border-radius: 0;
    background-color: transparent;
}

.nav-menu a:hover,
.nav-menu a:focus {
    outline: none;
    color: inherit;
    background-color: transparent !important;
    border-radius: 0;
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    font-weight: 600;
}

/* Dropdown Arrow */
.dropdown-arrow {
    color: rgba(23, 54, 96, 0.6); /* Lighter version of #173660 */
    display: inline-block;
    margin-left: 0.5rem;
    margin-right: 0;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.dropdown-arrow svg {
    display: block;
    vertical-align: middle;
}

.has-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.sub-menu,
.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.has-dropdown[aria-expanded="true"] > .sub-menu,
.has-dropdown[aria-expanded="true"] > .dropdown-menu {
    max-height: 1000px;
    opacity: 1;
    margin-top: var(--spacing-xs);
}

.sub-menu a,
.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm) calc(var(--spacing-md) * 1.5);
    font-size: 0.9375rem;
    color: inherit;
    text-decoration: none;
    font-family: var(--font-primary, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
}

.sub-menu .sub-menu a,
.dropdown-menu .dropdown-menu a {
    padding-left: calc(var(--spacing-md) * 2);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav-menu {
        flex-direction: row;
        gap: var(--spacing-sm);
        width: auto;
        align-items: center;
    }

    .nav-menu li {
        width: auto;
        position: relative;
    }

    .nav-menu a {
        padding: var(--spacing-xs) var(--spacing-sm);
        white-space: nowrap;
        font-size: 0.8125rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    /* Dropdown on Desktop - Hover */
    .nav-menu .has-dropdown {
        position: relative;
    }

    .nav-menu .has-dropdown > .sub-menu,
    .nav-menu .has-dropdown > .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        width: 100%;
        background-color: var(--color-background);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 8px;
        padding: 0;
        z-index: 100;
        transition: max-height 0.2s ease, opacity 0.2s ease, visibility 0s linear 0.3s;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        perspective: none;
        backface-visibility: visible;
    }

    /* Add invisible bridge to fill the gap and maintain hover */
    .nav-menu .has-dropdown::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 8px;
        background: transparent;
        pointer-events: auto;
        z-index: 101;
    }

    /* Show dropdown on hover - parent OR dropdown itself OR the bridge */
    .nav-menu .has-dropdown:hover > .sub-menu,
    .nav-menu .has-dropdown:hover > .dropdown-menu,
    .nav-menu .has-dropdown > .sub-menu:hover,
    .nav-menu .has-dropdown > .dropdown-menu:hover,
    .nav-menu .has-dropdown:hover::after {
        /* Bridge hover keeps parent hovered */
    }

    .nav-menu .has-dropdown:hover > .sub-menu,
    .nav-menu .has-dropdown:hover > .dropdown-menu,
    .nav-menu .has-dropdown > .sub-menu:hover,
    .nav-menu .has-dropdown > .dropdown-menu:hover {
        max-height: 1000px;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.2s ease, opacity 0.2s ease, visibility 0s;
        pointer-events: all;
    }

    /* Dropdown list items */
    .nav-menu .has-dropdown > .sub-menu li,
    .nav-menu .has-dropdown > .dropdown-menu li {
        margin: 0;
        padding: 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu .has-dropdown > .sub-menu li:last-child,
    .nav-menu .has-dropdown > .dropdown-menu li:last-child {
        border-bottom: none;
    }

    /* Dropdown links - fill full width */
    .nav-menu .has-dropdown > .sub-menu a,
    .nav-menu .has-dropdown > .dropdown-menu a,
    .main-navigation .nav-menu .has-dropdown > .sub-menu a,
    .main-navigation .nav-menu .has-dropdown > .dropdown-menu a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: var(--spacing-md) var(--spacing-lg);
        color: var(--color-text);
        text-decoration: none;
        white-space: normal;
        font-family: var(--font-primary, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
        word-wrap: break-word;
        overflow-wrap: break-word;
        transition: all 0.2s ease;
        font-size: 0.75rem;
        font-weight: 500;
        line-height: 1.5;
        letter-spacing: 0.05em;
        max-width: 100%;
    }

    /* Dropdown link hover */
    .nav-menu .has-dropdown > .sub-menu a:hover,
    .nav-menu .has-dropdown > .sub-menu a:focus,
    .nav-menu .has-dropdown > .dropdown-menu a:hover,
    .nav-menu .has-dropdown > .dropdown-menu a:focus {
        background-color: rgba(0, 0, 0, 0.04);
        color: inherit;
        outline: none;
    }

    /* Multi-level dropdowns */
    .nav-menu .has-dropdown .has-dropdown > .sub-menu {
        left: 100%;
        top: 0;
        margin-top: 0;
        margin-left: var(--spacing-xs);
    }
}

/* ============================================
   MOBILE OFF-CANVAS MENU
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.mobile-menu[aria-hidden="false"] {
    pointer-events: all;
    visibility: visible;
    opacity: 1;
}

.mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background-color: var(--color-background);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu[aria-hidden="false"] .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: inherit;
    transition: all 0.2s ease;
}

.mobile-menu__close:hover,
.mobile-menu__close:focus {
    background-color: rgba(0, 0, 0, 0.05);
    outline: none;
}

.mobile-menu__nav {
    flex: 1;
    padding: var(--spacing-md);
    overflow-y: auto;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus {
    background-color: rgba(0, 0, 0, 0.05);
    outline: none;
}

.mobile-nav-menu .has-dropdown-toggle {
    cursor: pointer;
}

.mobile-nav-menu .sub-menu {
    background-color: rgba(0, 0, 0, 0.02);
    margin: 0;
    padding-left: var(--spacing-md);
}

.mobile-nav-menu .sub-menu a {
    padding-left: calc(var(--spacing-md) * 1.5);
    font-size: 0.9375rem;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Tablet and Up - Hide Mobile Menu */
@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

/* ============================================
   SEARCH MODAL
   ============================================ */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.search-modal[aria-hidden="false"] {
    pointer-events: all;
    visibility: visible;
    opacity: 1;
}

.search-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.search-modal__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: var(--color-background);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.search-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.search-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.search-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: inherit;
    transition: all 0.2s ease;
}

.search-modal__close:hover,
.search-modal__close:focus {
    background-color: rgba(0, 0, 0, 0.05);
    outline: none;
}

.search-modal__content {
    padding: var(--spacing-lg);
}

.search-form {
    display: flex;
    gap: var(--spacing-sm);
    width: 100%;
}

.search-field {
    flex: 1;
    padding: var(--spacing-md);
    font-size: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-submit:hover,
.search-submit:focus {
    background-color: var(--color-primary);
    outline: none;
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

body.search-modal-open {
    overflow: hidden;
}

/* Navigation - Mobile First */
.main-navigation {
    width: 100%;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
}

.main-navigation li {
    width: 100%;
}

.main-navigation a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text);
    text-align: center;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--color-accent);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Tablet and Up */
@media (min-width: 768px) {
    .main-navigation {
        width: auto;
    }

    .main-navigation ul {
        flex-direction: row;
        gap: var(--spacing-md);
        width: auto;
    }

    .main-navigation li {
        width: auto;
    }

    .main-navigation a {
        padding: var(--spacing-xs) var(--spacing-md);
        text-align: left;
    }
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg-color, #2C2C2C);
    padding-top: var(--footer-padding-top, 3rem);
    padding-bottom: var(--footer-padding-bottom, 3rem);
    margin-top: var(--spacing-2xl);
    border-top-width: var(--footer-border-top, 0px);
    border-top-style: solid;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.site-footer,
.site-footer p,
.site-footer a {
    color: var(--footer-text-color, #FFFFFF);
}

.site-footer__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.site-info {
    margin: 0;
}

.site-info p {
    margin: 0;
}

/* ============================================
   BLOCKS - MOBILE FIRST
   ============================================ */

.block-wrapper {
    width: 100%;
}

.block-wrapper--full-width {
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Ensure full-width blocks span full width */
.block-wrapper--full-width .block {
    width: 100%;
    max-width: 100%;
}

/* Hero background should span full width */
.block-wrapper--full-width .block-hero__background {
    width: 100%;
    left: 0;
    right: 0;
}

.block {
    padding: var(--spacing-md) 0;
    position: relative;
}

/* Block Spacing */
.block--spacing-none {
    padding-top: 0;
    padding-bottom: 0;
}

.block--spacing-small {
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.block--spacing-medium {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.block--spacing-large {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.block--spacing-xlarge {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

/* Spacing for full-width blocks - apply to wrapper */
.block-wrapper--full-width.block-wrapper--spacing-none {
    margin-top: 0;
    margin-bottom: 0;
}

.block-wrapper--full-width.block-wrapper--spacing-small {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.block-wrapper--full-width.block-wrapper--spacing-medium {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.block-wrapper--full-width.block-wrapper--spacing-large {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.block-wrapper--full-width.block-wrapper--spacing-xlarge {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

/* Hero block spacing - bottom only (snug against header) */
.block-hero-wrapper.block-wrapper--spacing-none {
    margin-top: 0;
    margin-bottom: 0;
}

.block-hero-wrapper.block-wrapper--spacing-small {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.block-hero-wrapper.block-wrapper--spacing-medium {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

.block-hero-wrapper.block-wrapper--spacing-large {
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
}

.block-hero-wrapper.block-wrapper--spacing-xlarge {
    margin-top: 0;
    margin-bottom: var(--spacing-xl);
}

/* Spacing for regular (non-full-width) blocks - apply to wrapper */
.block-wrapper:not(.block-wrapper--full-width):not(.block-hero-wrapper).block-wrapper--spacing-none {
    margin-top: 0;
    margin-bottom: 0;
}

.block-wrapper:not(.block-wrapper--full-width):not(.block-hero-wrapper).block-wrapper--spacing-small {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.block-wrapper:not(.block-wrapper--full-width):not(.block-hero-wrapper).block-wrapper--spacing-medium {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.block-wrapper:not(.block-wrapper--full-width):not(.block-hero-wrapper).block-wrapper--spacing-large {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.block-wrapper:not(.block-wrapper--full-width):not(.block-hero-wrapper).block-wrapper--spacing-xlarge {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.block--full-width {
    width: 100%;
}

.block__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Full-width blocks don't use container */
.block--full-width .block__inner,
.block-wrapper--full-width .block__inner {
    max-width: 100%;
    padding: 0 var(--container-padding);
}

@media (min-width: 768px) {
    .block__inner {
        padding: 0 calc(var(--container-padding) * 1.5);
    }

    .block--full-width .block__inner,
    .block-wrapper--full-width .block__inner {
        padding: 0 calc(var(--container-padding) * 1.5);
    }
}

@media (min-width: 992px) {
    .block__inner {
        padding: 0 calc(var(--container-padding) * 2);
    }

    .block--full-width .block__inner,
    .block-wrapper--full-width .block__inner {
        padding: 0 calc(var(--container-padding) * 2);
    }
}

/* Hero Block - Base layout only, detailed styles with CSS variables in blocks.css */
.block-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-xl) 0;
    background-color: var(--color-background-dark);
}

.block-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.block-hero__background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.block-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.block-hero__content {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Hero title, subtitle, welcome text, and CTA styles are in blocks.css with CSS variables */

/* Content Block */
.block-content {
    padding: var(--spacing-lg) 0;
}

.block-content__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Mobile: Minimal content block padding and smaller font */
@media (max-width: 767px) {
    /* Remove site-main padding for content blocks */
    .site-main > .block-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    /* Force full width on mobile, ignore custom width setting */
    .block-content--has-width {
        width: 100% !important;
        max-width: 100% !important;
    }

    .block-content__inner {
        padding: 0 0.75rem;
        max-width: 100%;
    }

    .block-content__text {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .block-content__text p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
}

/* Content block with custom width */
.block-content--has-width {
    width: var(--content-width);
    max-width: var(--content-width);
}

/* Override inner max-width when custom width is set */
.block-content--has-width .block-content__inner {
    max-width: 100%;
    width: 100%;
}

/* When inside flex container, the wrapper needs to respect the width */
/* Let the container's justify-content handle centering */
.block-container > .block-wrapper--has-width {
    flex: 0 0 var(--content-width);
    width: var(--content-width);
    max-width: var(--content-width);
}

.block-container > .block-wrapper > .block-content--has-width {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Alignment options for content with custom width (when NOT in container) */
.block-content--align-left:not(.block-container .block-content--has-width) {
    margin-left: 0;
    margin-right: auto;
}

.block-content--align-center:not(.block-container .block-content--has-width) {
    margin-left: auto;
    margin-right: auto;
}

.block-content--align-right:not(.block-container .block-content--has-width) {
    margin-left: auto;
    margin-right: 0;
}

/* When inside container, remove margins and let container's justify-content handle it */
.block-container .block-content--has-width.block-content--align-left,
.block-container .block-content--has-width.block-content--align-center,
.block-container .block-content--has-width.block-content--align-right {
    margin-left: 0;
    margin-right: 0;
}

.block-content__text {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Restore list styles in content blocks */
.block-content__text ul,
.entry-content ul,
.block-icon-box__text ul,
.block-banner__text ul,
.block-cards__text ul,
.block-intro__text ul {
    list-style-type: disc !important;
    padding-left: 1.5rem;
    margin: 1em 0;
}

.block-content__text ol,
.entry-content ol,
.block-icon-box__text ol,
.block-banner__text ol,
.block-cards__text ol,
.block-intro__text ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem;
    margin: 1em 0;
}

.block-content__text li,
.entry-content li,
.block-icon-box__text li,
.block-banner__text li,
.block-cards__text li,
.block-intro__text li {
    margin: 0.5em 0;
}

/* Text Highlighting - Full Background */
mark,
.highlight {
    display: inline;
    background-color: var(--color-highlight, #E8F5E9);
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-weight: inherit;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Highlight in dark backgrounds */
.has-dark-background mark,
.has-dark-background .highlight,
.dark-background mark,
.dark-background .highlight {
    background-color: rgba(255, 255, 255, 0.3);
}

.block-content--columns-2 .block-content__text {
    columns: 2;
    column-gap: var(--spacing-md);
}

.block-content--columns-3 .block-content__text {
    columns: 3;
    column-gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .block-content--columns-2 .block-content__text,
    .block-content--columns-3 .block-content__text {
        columns: 1;
    }
}

/* Gallery Block */
.block-gallery {
    padding: var(--spacing-lg) 0;
}

.block-gallery__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.block-gallery__grid {
    display: grid;
    gap: var(--spacing-md);
}

.block-gallery--columns-2 .block-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
}

.block-gallery--columns-3 .block-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
}

.block-gallery--columns-4 .block-gallery__grid {
    grid-template-columns: repeat(4, 1fr);
}

.block-gallery__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--gallery-aspect-ratio, 1);
    max-height: var(--gallery-max-height, none);
}

.block-gallery__link {
    display: block;
    width: 100%;
    height: 100%;
}

.block-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: var(--gallery-object-fit, cover);
    transition: transform 0.3s ease;
    max-height: var(--gallery-max-height, none);
}

.block-gallery__item:hover .block-gallery__image {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .block-gallery--columns-4 .block-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .block-gallery--columns-2 .block-gallery__grid,
    .block-gallery--columns-3 .block-gallery__grid,
    .block-gallery--columns-4 .block-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .block-gallery--columns-2 .block-gallery__grid,
    .block-gallery--columns-3 .block-gallery__grid,
    .block-gallery--columns-4 .block-gallery__grid {
        grid-template-columns: 1fr;
    }
}

.block-gallery__empty {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--color-secondary);
    font-style: italic;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Dark Background Utilities */
.has-dark-background {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
}

.has-dark-background h1,
.has-dark-background h2,
.has-dark-background h3,
.has-dark-background h4,
.has-dark-background h5,
.has-dark-background h6 {
    color: var(--color-text-light);
}

.has-dark-background a {
    color: var(--color-accent);
}

.has-dark-background a:hover {
    color: var(--color-text-light);
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-capitalize {
    text-transform: capitalize;
}

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.pt-0 { padding-top: 0; }
.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-0 { padding-bottom: 0; }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    z-index: 999999;
    padding: 1em;
    background: #000;
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MOBILE-FIRST RESPONSIVE UTILITIES
   ============================================ */

/* Mobile adjustments */
@media (max-width: 767px) {
    .block-hero {
        min-height: 50vh;
        padding: var(--spacing-xl) 0;
    }

    h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }
    h4 { font-size: clamp(1.125rem, 3vw, 1.5rem); }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .block-hero {
        min-height: 55vh;
    }
}

/* Desktop adjustments */
@media (min-width: 992px) {
    .block-hero {
        min-height: 60vh;
    }
}

/* ============================================
   ARTICLES / BLOG STYLING
   ============================================ */

/* Archive Header */
.archive-header {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    text-align: center;
}

.archive-header__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.archive-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-md);
    letter-spacing: var(--typography-heading-letter-spacing, -0.02em);
    line-height: var(--typography-heading-line-height, 1.2);
}

.archive-description {
    font-size: 1.125rem;
    color: var(--color-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Articles Grid */
.articles-grid {
    padding: var(--spacing-xl) 0 var(--spacing-2xl);
}

.articles-grid__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .articles-grid__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl) var(--spacing-lg);
    }
}

@media (min-width: 992px) {
    .articles-grid__inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Article Card */
.article-card {
    display: flex;
    flex-direction: column;
}

.article-card__image-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
    margin-bottom: var(--spacing-lg);
}

.article-card__image-link:hover {
    opacity: 0.85;
}

.article-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-background-dark);
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
    padding: 0 15px;
}

.article-card__title {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 900;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.article-card__title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.article-card__title-link:hover {
    opacity: 0.7;
}

.article-card__excerpt {
    font-family: var(--font-primary);
    font-size: clamp(0.9375rem, 1.5vw, 1rem);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0 0 var(--spacing-md);
    font-weight: 400;
    font-style: italic;
}

.article-card__date {
    font-family: var(--font-primary);
    font-size: clamp(0.6875rem, 1vw, 0.75rem);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-top: 0;
}

/* Archive Hero (Reference Library / Haulage Log style) */
.hkb-guide-hero {
    background: #f5f5f0;
    border-bottom: 3px solid #333;
    text-align: center;
    position: relative;
}

.hkb-guide-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 11px
    );
}

.hkb-guide-hero__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--container-padding) var(--spacing-lg);
}

.hkb-guide-hero__title {
    color: var(--color-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.hkb-guide-hero__subtitle {
    color: var(--color-accent);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 var(--spacing-xl);
    font-family: var(--font-primary);
}

.hkb-guide-hero__excerpt {
    color: var(--color-secondary);
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hkb-guide-hero__inner {
        padding: var(--spacing-2xl) calc(var(--container-padding) * 1.5) var(--spacing-xl);
    }
}

@media (min-width: 992px) {
    .hkb-guide-hero__inner {
        padding: var(--spacing-2xl) calc(var(--container-padding) * 2) var(--spacing-xl);
    }
}

/* Timber Guide Back Link */
.hkb-guide-back {
    padding: var(--spacing-md) 0;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
}

.hkb-guide-back__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hkb-guide-back__link {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-block;
}

.hkb-guide-back__link:hover {
    color: var(--color-accent);
}

/* Timber Guide Parts Grid - Notebook Aesthetic */
.hkb-parts-grid {
    padding: var(--spacing-2xl) 0;
    background: #f5f5f0;
    border-bottom: 3px solid #333;
    margin: 0 0 var(--spacing-2xl) 0;
    position: relative;
}

.hkb-parts-grid::before,
.hkb-parts-grid::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 11px
    );
}

.hkb-parts-grid::before {
    top: -1px;
}

.hkb-parts-grid::after {
    bottom: -1px;
}

.hkb-parts-grid__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 991px) {
    .hkb-parts-grid__inner {
        grid-template-columns: 1fr;
    }
}

.hkb-part-card {
    background: #ffffff;
    border: 2px solid #333;
    overflow: hidden;
    position: relative;
}

.hkb-part-card:hover {
    transform: none !important;
}

.hkb-part-card__header {
    padding: var(--spacing-lg);
    border-bottom: 2px solid #333;
    background: #ffffff;
}

.hkb-part-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hkb-part-card__number {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: var(--spacing-xs);
}

.hkb-part-card__title {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.hkb-part-card:hover .hkb-part-card__title {
    color: var(--color-accent);
}

.hkb-part-card__description {
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
}

.hkb-part-card__chapters {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    border-top: 1px solid #ddd;
}

.hkb-part-card__chapters-title {
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin: 0 0 var(--spacing-sm);
}

.hkb-part-card__chapters-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.hkb-part-card__chapter {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.hkb-part-card__chapter a {
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    padding: 2px 0 2px 12px;
    border-left: 3px solid transparent;
    margin-left: -12px;
}

.hkb-part-card__chapter a:hover {
    color: var(--color-accent);
    text-decoration: underline;
    border-left-color: var(--color-accent);
}

.hkb-no-parts {
    text-align: center;
    padding: var(--spacing-2xl);
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Timber Guide Part Index - Clean Styling */
.hkb-part-back {
    padding: var(--spacing-md) 0;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    margin-top: 0;
}

.hkb-part-back__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hkb-part-back__link {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-block;
}

.hkb-part-back__link:hover {
    color: var(--color-accent);
}

/* Chapter Page Breadcrumb */
.hkb-chapter-back {
    padding: var(--spacing-lg) 0;
    background: transparent;
    border-bottom: 1px solid #ddd;
    margin-top: 0;
}

.hkb-chapter-back__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 calc(var(--container-padding) * 2);
}

.hkb-chapter-back__link {
    font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    letter-spacing: 0.05em;
}

.hkb-chapter-back__link:hover {
    color: var(--color-accent);
    background: rgba(212, 165, 116, 0.1);
    border-radius: 2px;
}

.hkb-part-hero {
    background: #f5f5f0;
    border-bottom: 3px solid #333;
    text-align: center;
    position: relative;
    margin-top: 0;
}

.hkb-part-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 11px
    );
}

.hkb-part-hero__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--container-padding) var(--spacing-lg);
}

.hkb-part-hero__number {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: var(--spacing-sm);
}

.hkb-part-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #333;
    margin: 0 0 var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.hkb-part-hero__excerpt {
    color: #666;
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Chapters List - Clean Notebook Style */
.hkb-part-chapters {
    padding: var(--spacing-2xl) 0;
    background: #f5f5f0;
    border-bottom: 3px solid #333;
    margin: 0 0 var(--spacing-2xl) 0;
    position: relative;
}

.hkb-part-chapters::before,
.hkb-part-chapters::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 11px
    );
}

.hkb-part-chapters::before {
    top: -1px;
}

.hkb-part-chapters::after {
    bottom: -1px;
}

.hkb-part-chapters__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hkb-chapters-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.hkb-chapter-card {
    background: #ffffff;
    border: 2px solid #333;
    overflow: hidden;
    position: relative;
}

.hkb-chapter-card:hover {
    transform: none !important;
}

.hkb-chapter-card__header {
    padding: var(--spacing-lg);
    border-bottom: 2px solid #333;
    background: #ffffff;
}

.hkb-chapter-card__number {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: var(--spacing-xs);
}

.hkb-chapter-card__title {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.hkb-chapter-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hkb-chapter-card__title a:hover {
    color: var(--color-accent);
}

.hkb-chapter-card__excerpt {
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
    border-bottom: 1px solid #ddd;
}

.hkb-chapter-card__footer {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
}

.hkb-chapter-card__link {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hkb-chapter-card__link:hover {
    color: var(--color-accent);
}

.hkb-no-chapters {
    text-align: center;
    padding: var(--spacing-2xl);
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Single Chapter Page - Clean Styling */
.hkb-dossier-master {
    background: #F4F1EA;
    margin: var(--spacing-2xl) auto;
    max-width: var(--container-max-width);
    position: relative;
    display: flex;
    gap: var(--spacing-xl);
    padding: 0;
}

.hkb-dossier-master::before,
.hkb-dossier-master::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 11px
    );
}

.hkb-dossier-master::before {
    top: -1px;
}


.hkb-column-main {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    max-width: 700px !important;
    width: 100%;
}

.hkb-column-side {
    width: 250px;
    flex-shrink: 0;
}

.hkb-hero-box {
    background: #ffffff;
    border-bottom: 2px solid #333;
    padding: var(--spacing-2xl) var(--container-padding) var(--spacing-2xl) calc(var(--container-padding) * 2) !important;
    position: relative;
    max-width: 100%;
}

.hkb-meta-strip {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    color: #666;
}

.hkb-chapter-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: var(--spacing-sm);
}

.hkb-main-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1a1a1a !important;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hkb-hero-box::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 8px,
        rgba(0, 0, 0, 0.15) 8px,
        rgba(0, 0, 0, 0.15) 9px
    );
}

.hkb-content-area {
    background: #ffffff;
    padding: var(--spacing-2xl) calc(var(--container-padding) * 2);
}

.hkb-footer-stamp {
    background: #ffffff;
    border-top: 2px solid #333;
    padding: var(--spacing-xl) var(--container-padding);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .hkb-chapters-list {
        grid-template-columns: 1fr;
    }

    .hkb-dossier-master {
        flex-direction: column;
        max-width: 100%;
        margin: var(--spacing-2xl) 0;
    }

    .hkb-column-side {
        width: 100%;
        order: 2;
    }

    .hkb-column-main {
        order: 1;
    }

    .hkb-content-area {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .hkb-parts-grid__inner {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Dispatches Timeline (Mobile-First) */
.dispatches-timeline {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-2xl) 0;
}

.dispatch-entry {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--color-border);
}

.dispatch-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: var(--spacing-2xl);
}

.dispatch-entry__inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.dispatch-entry__date {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dispatch-entry__date time {
    color: inherit;
}

.dispatch-entry__image-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
    margin-bottom: var(--spacing-md);
    /* Ensure touch-friendly on mobile */
    min-height: 44px;
}

.dispatch-entry__image-link:hover {
    opacity: 0.85;
}

/* Mobile touch target improvements */
@media (max-width: 767px) {
    .dispatch-entry__title a {
        min-height: 44px; /* iOS recommended touch target */
        display: inline-block;
        padding: 4px 0; /* Add some padding for easier tapping */
    }
}

.dispatch-entry__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-background-dark);
    border-radius: 4px;
}

.dispatch-entry__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dispatch-entry__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.dispatch-entry__title {
    font-family: var(--font-heading);
    font-size: clamp(0.875rem, 2vw, 1rem) !important;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-xs);
    line-height: var(--line-height-heading);
}

.dispatch-entry__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dispatch-entry__title a:hover,
.dispatch-entry__title a:focus {
    color: var(--color-accent);
}

.dispatch-entry__load-info,
.dispatch-entry__location,
.dispatch-entry__rating,
.dispatch-entry__payload,
.dispatch-entry__temp {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.6;
}

.dispatch-entry__load-info strong,
.dispatch-entry__location strong,
.dispatch-entry__rating strong,
.dispatch-entry__payload strong,
.dispatch-entry__temp strong {
    font-weight: 600;
    color: var(--color-primary);
}

.dispatch-entry__location a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dispatch-entry__location a:hover,
.dispatch-entry__location a:focus {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.dispatch-rating {
    display: inline-flex;
    gap: 2px;
    margin-left: var(--spacing-xs);
}

.dispatch-rating .star {
    font-size: 1rem;
    line-height: 1;
}

.dispatch-rating .star--filled {
    color: var(--color-accent);
}

.dispatch-rating .star--empty {
    color: var(--color-border);
}

.dispatch-entry__excerpt {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--color-secondary);
    line-height: 1.5;
    margin-top: var(--spacing-sm);
    max-width: 100%;
    overflow: hidden;
}

.dispatch-entry__video {
    margin-top: var(--spacing-sm);
}

.dispatch-video-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dispatch-video-link:hover,
.dispatch-video-link:focus {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.dispatch-entry__read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.dispatch-entry__read-more:hover,
.dispatch-entry__read-more:focus {
    color: var(--color-accent-dark);
}

/* Tablet and up */
@media (min-width: 768px) {
    .dispatches-timeline {
        padding: var(--spacing-3xl) 0;
    }

    .dispatch-entry__inner {
        gap: var(--spacing-lg);
    }

    .dispatch-entry__image {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Desktop and up */
@media (min-width: 992px) {
    .dispatches-timeline {
        padding: var(--spacing-2xl) 0;
    }

    .dispatch-entry__inner {
        flex-direction: row;
        align-items: flex-start;
    }

    .dispatch-entry__image {
        flex: 0 0 300px;
        max-width: 300px;
        min-width: 250px;
    }

    .dispatch-entry__content {
        flex: 1;
        min-width: 0; /* Prevents content from overflowing */
    }
}

/* Single Article */
.single-article {
    padding: 0;
}

/* Hero Section - Full Width Featured Image with Overlay */
.single-article__hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: var(--spacing-xl);
    margin-top: 0;
    height: 60vh;
    max-height: 80vh;
    overflow: hidden;
}

.single-article__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.single-article__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Default, can be overridden by inline style for focal point */
    display: block;
    /* Ensure image fills container and focal point works */
    min-width: 100%;
    min-height: 100%;
}

.single-article__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.single-article__hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    /* Default padding - will be overridden by inline styles if provided */
    padding-top: 120px;
    padding-bottom: 120px;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-article__hero-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-2xl);
}

.single-article__hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 1140px;
    width: 100%;
}

.single-article__hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-text-light);
    margin: 0;
    letter-spacing: 3px;
    line-height: var(--typography-heading-line-height, 1.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    text-transform: uppercase;
    max-width: 1140px;
    width: 100%;
}

.single-article__hero-excerpt {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    text-align: center;
    font-style: italic;
    text-transform: none;
}

.single-article__hero-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.single-article__hero-author .single-article__author-avatar {
    flex-shrink: 0;
}

.single-article__hero-author .single-article__author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: block;
}

.single-article__hero-author .single-article__author-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.single-article__hero-author .single-article__author-name-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
}

.single-article__hero-author .single-article__author-label {
    font-weight: 400;
    color: var(--color-text-light);
    font-size: 0.9375rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.07em;
}

.single-article__hero-author .single-article__author-name {
    font-weight: 700;
    color: var(--color-text-light);
    font-size: 0.9375rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s ease;
    letter-spacing: 0.07em;
}

.single-article__hero-author .single-article__author-name:hover {
    opacity: 0.8;
}

.single-article__hero-author .single-article__date {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    /* Only apply responsive padding if no inline style is set */
    .single-article__hero-content:not([style*="padding-top"]) {
        padding-top: 150px;
        padding-bottom: 150px;
    }
    .single-article__hero-content:not([style*="padding-top"]) {
        padding-left: calc(var(--container-padding) * 1.5);
        padding-right: calc(var(--container-padding) * 1.5);
    }
}

@media (min-width: 992px) {
    /* Only apply responsive padding if no inline style is set */
    .single-article__hero-content:not([style*="padding-top"]) {
        padding-top: 180px;
        padding-bottom: 180px;
    }
    .single-article__hero-content:not([style*="padding-top"]) {
        padding-left: calc(var(--container-padding) * 2);
        padding-right: calc(var(--container-padding) * 2);
    }
}

/* Author Info Section - Under Hero */
.single-article__author-info {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--spacing-2xl);
}

.single-article__author-info-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.single-article__author-avatar {
    flex-shrink: 0;
}

.single-article__author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: block;
}

.single-article__author-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.single-article__author-name {
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.single-article__date {
    font-size: 0.875rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Fallback Header (when no featured image) */
.single-article__header {
    padding: var(--spacing-2xl) 0;
    margin-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--color-border);
}

.single-article__header-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.single-article__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-lg);
    letter-spacing: var(--typography-heading-letter-spacing, -0.02em);
    line-height: var(--typography-heading-line-height, 1.2);
}

.single-article__footer {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-2xl);
}

.single-article__footer-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.single-article__taxonomy {
    margin-bottom: var(--spacing-md);
}

.single-article__categories,
.single-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.single-article__categories:last-child,
.single-article__tags:last-child {
    margin-bottom: 0;
}

.single-article__taxonomy-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: var(--spacing-xs);
}

.single-article__category,
.single-article__tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    color: var(--color-text);
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.single-article__category:hover,
.single-article__tag:hover {
    border-color: var(--color-accent);
    background-color: rgba(var(--color-accent-rgb, 212, 165, 116), 0.05);
    color: var(--color-text);
}

.single-article__sharing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid #f0f0f0;
}

.single-article__sharing-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.single-article__share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.single-article__share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #999;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.single-article__share-button:hover {
    color: #000;
}

.single-article__share-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    display: block;
}

.single-article__share-button:hover .single-article__share-icon {
    opacity: 1;
}

.single-article__content {
    padding: var(--spacing-2xl) 0;
}

.single-article__content-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.single-article__content-inner p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

.single-article__content-inner h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: var(--spacing-xl) 0 var(--spacing-lg);
    color: var(--color-primary);
    letter-spacing: var(--typography-heading-letter-spacing, -0.02em);
    line-height: var(--typography-heading-line-height, 1.2);
}

/* Reduce top margin for first H2 after hero */
.single-article__content-inner > h2:first-child {
    margin-top: var(--spacing-lg);
}

.single-article__content-inner h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    margin: var(--spacing-xl) 0 var(--spacing-md);
    color: var(--color-primary);
    letter-spacing: var(--typography-heading-letter-spacing, -0.02em);
    line-height: var(--typography-heading-line-height, 1.2);
}

.single-article__content-inner img {
    width: 100%;
    height: auto;
    margin: var(--spacing-xl) 0;
}

.single-article__content-inner a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Mobile: Minimal article content padding and smaller font */
@media (max-width: 767px) {
    /* Remove site-main padding for articles */
    .site-main > .single-article {
        padding-left: 0;
        padding-right: 0;
    }

    /* Reduce hero author/date sizes on mobile */
    .single-article__hero-author .single-article__author-avatar img {
        width: 40px;
        height: 40px;
    }

    .single-article__hero-author .single-article__author-label,
    .single-article__hero-author .single-article__author-name {
        font-size: 0.75rem;
    }

    .single-article__hero-author .single-article__date {
        font-size: 0.625rem;
    }

    .single-article__content {
        padding: var(--spacing-lg) 0;
    }

    .single-article__content-inner {
        padding: 0 0.75rem;
        max-width: 100%;
    }

    .single-article__content-inner p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .single-article__header-inner,
    .single-article__footer-inner {
        padding: 0 0.75rem;
    }

    .site-header .site-header__inner {
        padding-top: var(--spacing-xs);
        padding-bottom: var(--spacing-xs);
        gap: var(--spacing-sm);
    }

    .site-branding img,
    .custom-logo {
        max-width: 100px;
    }

    .header-action,
    .menu-toggle {
        width: 40px;
        height: 40px;
    }
}

.single-article__content-inner a:hover {
    text-decoration: none;
}

/* Article Navigation */
.article-navigation {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-2xl);
}

.article-navigation__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.article-navigation__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.article-navigation__link:hover {
    border-color: var(--color-accent);
    background-color: rgba(var(--color-accent-rgb, 212, 165, 116), 0.05);
}

.article-navigation__link--next {
    text-align: right;
}

.article-navigation__label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.article-navigation__title {
    font-weight: 500;
    color: var(--color-primary);
}

/* Pagination */
.pagination {
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pagination a:hover {
    border-color: var(--color-accent);
    background-color: rgba(var(--color-accent-rgb, 212, 165, 116), 0.05);
}

.pagination .current {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

/* Related Articles */
.related-articles {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-2xl);
}

.related-articles__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.related-articles__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-xl);
    letter-spacing: var(--typography-heading-letter-spacing, -0.02em);
    line-height: var(--typography-heading-line-height, 1.2);
}

.related-articles__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .related-articles__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl) var(--spacing-lg);
    }
}

@media (min-width: 992px) {
    .related-articles__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* No Posts */
.no-posts {
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.no-posts__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Single Dispatch Template */
.single-dispatch {
    padding: 0;
}

.single-dispatch__hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 60vh;
    max-height: 80vh;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    margin-top: 0;
}

.single-dispatch__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.single-dispatch__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Default, can be overridden by inline style for focal point */
    display: block;
    /* Ensure image fills container and focal point works */
    min-width: 100%;
    min-height: 100%;
}

.single-dispatch__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
}

.single-dispatch__hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 3;
    padding: 120px var(--container-padding);
}

.single-dispatch__hero-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-lg);
}

.single-dispatch__hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.single-dispatch__hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-text-light);
    margin: 0;
    letter-spacing: 3px;
    line-height: var(--typography-heading-line-height, 1.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    text-transform: uppercase;
}

.single-dispatch__hero-date {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .single-dispatch__hero-content {
        padding-top: 150px;
        padding-bottom: 150px;
        padding-left: calc(var(--container-padding) * 1.5);
        padding-right: calc(var(--container-padding) * 1.5);
    }
}

@media (min-width: 992px) {
    .single-dispatch__hero-content {
        padding-top: 180px;
        padding-bottom: 180px;
        padding-left: calc(var(--container-padding) * 2);
        padding-right: calc(var(--container-padding) * 2);
    }
}

@media (max-width: 767px) {
    .single-dispatch__hero-content {
        padding: 80px var(--container-padding);
    }

    .single-dispatch__hero-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        letter-spacing: 2px;
    }

    .single-dispatch__hero-date {
        font-size: 0.75rem;
    }
}

.single-dispatch__header {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.single-dispatch__header-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.single-dispatch__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-sm);
    line-height: var(--line-height-heading);
}

.single-dispatch__date {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Journey Details Section */
.single-dispatch__journey {
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 0;
}

.single-dispatch__journey-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.single-dispatch__journey-route,
.single-dispatch__journey-payload,
.single-dispatch__journey-temp {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.single-dispatch__journey-route:last-child,
.single-dispatch__journey-payload:last-child,
.single-dispatch__journey-temp:last-child {
    margin-bottom: 0;
}

.single-dispatch__journey-label {
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.single-dispatch__journey-value {
    color: var(--color-text);
}

.single-dispatch__journey-route-content {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Route List with Arrows */
.single-dispatch__route-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.single-dispatch__route-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-dispatch__route-location,
.location-pill {
    padding: 0.375rem 0.875rem;
    background: var(--color-highlight);
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.single-dispatch__route-location:hover,
.location-pill:hover {
    background-color: #d4e5d6;
}

.single-dispatch__route-arrow {
    color: var(--color-accent);
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0.25rem;
    flex-shrink: 0;
}

.single-dispatch__route-text {
    color: var(--color-text);
}

/* Night Out Review Section */
.single-dispatch__night-out-review {
    margin: 3rem 0;
    padding: 2rem 0;
}

.single-dispatch__night-out-review-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.single-dispatch__night-out-review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.single-dispatch__night-out-review-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.single-dispatch__night-out-review-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.single-dispatch__night-out-review-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.single-dispatch__night-out-review-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    color: var(--color-primary);
}

.single-dispatch__night-out-review-truck-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.single-dispatch__night-out-review-name strong {
    font-weight: 600;
}

.single-dispatch__night-out-review-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.single-dispatch__night-out-review-rating-label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
}

.single-dispatch__night-out-review-stars {
    display: flex;
    gap: 0.25rem;
}

.single-dispatch__night-out-review-stars .star {
    font-size: 1.25rem;
    line-height: 1;
}

.single-dispatch__night-out-review-stars .star--filled {
    color: #fbbf24;
}

.single-dispatch__night-out-review-stars .star--empty {
    color: #d1d5db;
}

.single-dispatch__night-out-review-notes {
    color: var(--color-text);
    line-height: 1.7;
    margin-top: 0.5rem;
}

.single-dispatch__night-out-review-notes p {
    margin: 0 0 1rem 0;
}

.single-dispatch__night-out-review-notes p:last-child {
    margin-bottom: 0;
}

/* ============================================
   TRAMPER'S MANIFEST - Dark Mode Aesthetic
   ============================================ */

/* Mission Card - Top Section - Timber Aesthetic */
.tramper-manifest__mission-card {
    background: #fafafa;
    border: 2px solid #333;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    padding: 35px 0;
    margin: 2rem 0;
    overflow: hidden;
}

.tramper-manifest__mission-card-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 calc(var(--container-padding) * 2);
}

.tramper-manifest__mission-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
}

/* Route Section - Full Width on Top */
.tramper-manifest__route-section {
    margin-bottom: 2rem;
    text-align: center;
}

.tramper-manifest__route-container {
    margin-top: 0.75rem;
}

.tramper-manifest__route-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tramper-manifest__route-pill {
    padding: 0.5rem 1rem;
    background: #333;
    border-radius: 4px;
    font-weight: 600;
    color: #fff;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tramper-manifest__route-pill:hover {
    background-color: #000;
}

.tramper-manifest__route-arrow {
    color: #333;
    font-size: 1.3em;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1;
}

.tramper-manifest__route-text {
    color: #333;
}

/* Three-Column Stats Grid */
.tramper-manifest__mission-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    justify-items: center;
}

.tramper-manifest__mission-stat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tramper-manifest__mission-label {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.tramper-manifest__mission-value {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
}

.tramper-manifest__mission-value--number {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #333;
}

/* Dispatch Route Map (Daily Ribbon) */
.single-dispatches .dispatch-route-map {
    width: 100%;
    margin: 2rem 0;
    padding: 0 var(--container-padding);
}

.single-dispatches .dispatch-route-map__container {
    width: 100%;
    height: 300px;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    filter: grayscale(50%);
    opacity: 0.95;
}

/* Dark mode route map */
.haulage-wrap .single-dispatches .dispatch-route-map__container {
    border-color: #2a2a2a;
    background: #1a1a1a;
}

/* Postcode Section */
.tramper-manifest__postcode-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333333;
}

.tramper-manifest__postcode-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.tramper-manifest__postcode {
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.tramper-manifest__copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #2c2c2c;
    color: #b0b0b0;
    border: 1px solid #404040;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tramper-manifest__copy-btn:hover {
    background: #333333;
    border-color: #4a4a4a;
    color: #ffffff;
}

.tramper-manifest__copy-btn:active {
    transform: translateY(0);
}

.tramper-manifest__copy-btn--copied {
    background: #FFD700;
    border-color: #FFA500;
    color: #000;
}

.tramper-manifest__copy-icon {
    font-size: 0.875rem;
}

.tramper-manifest__copy-text {
    font-size: 0.875rem;
}

/* The Log - Middle Section */
.tramper-manifest__log {
    background: #ffffff;
    padding: 3rem 0;
    margin: 2rem 0;
}

.tramper-manifest__log-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.tramper-manifest__log-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 2rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1rem;
}

.tramper-manifest__log-content-wrapper {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tramper-manifest__log-content {
    color: var(--color-text);
    line-height: 1.8;
}

.tramper-manifest__log-content p {
    margin-bottom: 1.5rem;
}

.tramper-manifest__log-content p:last-child {
    margin-bottom: 0;
}

/* The Bivouac Card - Bottom Section - Timber Aesthetic */
.tramper-manifest__bivouac-card {
    background: #fafafa;
    border: 2px solid #333;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    padding: 2.5rem 0;
    margin: 3rem 0;
    overflow: hidden;
}

.tramper-manifest__bivouac-card-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 calc(var(--container-padding) * 2);
}

.tramper-manifest__bivouac-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 calc(var(--spacing-lg) * 1.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
}

/* Note-only layout - simple centered design */
.tramper-manifest__bivouac-card--note-only {
    padding: 3rem 0;
}

.tramper-manifest__bivouac-card--note-only .tramper-manifest__bivouac-card-title {
    margin-bottom: 1.5rem;
}

.tramper-manifest__bivouac-note-only {
    text-align: center;
    padding: 0 2rem;
}

.tramper-manifest__bivouac-note-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 400;
    color: #333;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.02em;
}

/* Dark mode styling for note-only */
.haulage-wrap .tramper-manifest__bivouac-note-text {
    color: #f5f5f5;
}

.tramper-manifest__bivouac-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.tramper-manifest__bivouac-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tramper-manifest__bivouac-map {
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.tramper-manifest__bivouac-map .acf-map {
    height: 300px;
    width: 100%;
}

.tramper-manifest__bivouac-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tramper-manifest__bivouac-location-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.tramper-manifest__bivouac-postcode {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tramper-manifest__bivouac-postcode .tramper-manifest__postcode {
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.tramper-manifest__bivouac-checklist {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tramper-manifest__checklist-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tramper-manifest__bivouac-checklist-title {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin: 0 0 0.5rem 0;
}

.tramper-manifest__bivouac-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tramper-manifest__bivouac-group-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.tramper-manifest__bivouac-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tramper-manifest__checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.tramper-manifest__checklist-item:last-child {
    border-bottom: none;
}

.tramper-manifest__checklist-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.tramper-manifest__checklist-label {
    flex: 1;
    color: #333;
    font-size: 0.9375rem;
    font-family: var(--font-primary);
}

.tramper-manifest__bivouac-review {
    margin-top: 2rem;
}

.tramper-manifest__bivouac-review-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tramper-manifest__bivouac-review-content {
    color: #333;
    line-height: 1.8;
    font-family: var(--font-primary);
}

.tramper-manifest__bivouac-review-content p {
    margin: 0 0 1rem 0;
}

.tramper-manifest__bivouac-review-content p:last-child {
    margin-bottom: 0;
}

.tramper-manifest__checklist-status {
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.tramper-manifest__checklist-status.checked {
    color: #4a7c59;
}

.tramper-manifest__checklist-status.unchecked {
    color: #999;
}

/* Overnight Report - Legacy (keeping for backwards compatibility) */
.tramper-manifest__overnight-report {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 2.5rem 0;
    margin: 3rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tramper-manifest__overnight-report-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.tramper-manifest__overnight-report-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #404040;
    padding-bottom: 1rem;
}

.tramper-manifest__overnight-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.tramper-manifest__overnight-report-content {
    display: contents;
}

.tramper-manifest__overnight-map {
    background: #2c2c2c;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #404040;
}

.tramper-manifest__overnight-map .acf-map {
    height: 400px;
    width: 100%;
}

.tramper-manifest__waze-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #2c2c2c;
    color: #b0b0b0;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.tramper-manifest__waze-btn:hover {
    background: #333333;
    border-color: #4a4a4a;
    color: #ffffff;
}

.tramper-manifest__waze-btn:active {
    transform: translateY(0);
}

.tramper-manifest__overnight-address {
    padding: 1rem;
    margin: 0;
    color: #b0b0b0;
    font-size: 0.9375rem;
    background: #2c2c2c;
    border-top: 1px solid #404040;
}

.tramper-manifest__overnight-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tramper-manifest__overnight-location-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
}

.tramper-manifest__overnight-ratings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: #2c2c2c;
    border-radius: 6px;
    border: 1px solid #404040;
}

.tramper-manifest__rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #404040;
}

.tramper-manifest__rating-item:last-child {
    border-bottom: none;
}

.tramper-manifest__rating-label {
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.tramper-manifest__rating-stars {
    display: flex;
    gap: 0.25rem;
}

.tramper-manifest__rating-stars .star {
    font-size: 1.25rem;
    line-height: 1;
}

.tramper-manifest__rating-stars .star--filled {
    color: #fbbf24;
}

.tramper-manifest__rating-stars .star--empty {
    color: #4a4a4a;
}

.tramper-manifest__overnight-review {
    margin-top: 1rem;
}

.tramper-manifest__overnight-review-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tramper-manifest__overnight-review-content {
    color: #d0d0d0;
    line-height: 1.8;
    padding: 1.5rem;
    background: #2c2c2c;
    border-radius: 6px;
    border: 1px solid #404040;
}

.tramper-manifest__overnight-review-content p {
    margin: 0 0 1rem 0;
}

.tramper-manifest__overnight-review-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tramper-manifest__mission-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .tramper-manifest__mission-stat {
        gap: 0.375rem;
        padding: 0.5rem;
        border: 1px solid rgba(42, 42, 42, 0.2);
        border-radius: 4px;
    }

    .tramper-manifest__mission-label {
        font-size: 0.6875rem;
        margin-bottom: 0.25rem;
    }

    .tramper-manifest__mission-value {
        font-size: 0.875rem;
        line-height: 1.3;
    }

    .tramper-manifest__mission-value--number {
        font-size: 0.9375rem;
    }

    /* If there's an odd number of stats, make the last one full width */
    .tramper-manifest__mission-stat:nth-child(3):last-child {
        grid-column: 1 / -1;
    }

    /* Mobile Route Timeline */
    .tramper-manifest__route-section {
        margin-bottom: 1rem;
    }

    .tramper-manifest__route-container {
        margin-top: 0.5rem;
    }

    .tramper-manifest__route-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-left: 1rem;
        border-left: 2px solid #2a2a2a;
        position: relative;
    }

    .tramper-manifest__route-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        width: 100%;
        position: relative;
    }

    .tramper-manifest__route-item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: -1.5rem;
        top: 1.5rem;
        width: 0.5rem;
        height: 2px;
        background: #2a2a2a;
    }

    .tramper-manifest__route-pill {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        margin: 0;
        flex: 0 0 auto;
        line-height: 1.2;
    }

    .tramper-manifest__route-arrow {
        display: none;
    }

    /* Dark mode mobile timeline */
    .haulage-wrap .tramper-manifest__route-flex {
        border-left-color: #2a2a2a;
    }

    .haulage-wrap .tramper-manifest__route-item:not(:last-child)::after {
        background: #2a2a2a;
    }

    /* Reduce route label size on mobile */
    .tramper-manifest__route-label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    /* Mobile route map */
    .single-dispatches .dispatch-route-map {
        padding: 0 var(--container-padding);
        margin: 1.5rem 0;
    }

    .single-dispatches .dispatch-route-map__container {
        width: 100%;
        height: 250px;
    }

    /* Dark mode mobile mission stats */
    .haulage-wrap .tramper-manifest__mission-stat {
        border-color: rgba(42, 42, 42, 0.5);
    }

    .tramper-manifest__overnight-report-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tramper-manifest__postcode-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .tramper-manifest__overnight-map .acf-map {
        height: 300px;
    }

    .tramper-manifest__mission-card {
        padding: 25px 0;
    }

    .tramper-manifest__mission-card-inner,
    .tramper-manifest__bivouac-card-inner {
        padding: 0 var(--container-padding);
    }

    .dispatches-stats__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dispatches-stats__value {
        font-size: 1.5rem;
    }

    .tramper-manifest__bivouac-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tramper-manifest__bivouac-map .acf-map {
        height: 250px;
    }

    .tramper-manifest__mission-card {
        padding: 25px 0;
    }

    .tramper-manifest__mission-card,
    .tramper-manifest__bivouac-card {
        margin: 1.5rem 0;
        padding: 1.5rem 0;
    }

    .tramper-manifest__mission-card-title,
    .tramper-manifest__overnight-report-title,
    .tramper-manifest__log-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   HAULAGE LOG - DARK MODE (NIGHT CAB STYLE)
   Scoped to .haulage-wrap only - affects dispatch pages
   ============================================ */

/* Base Dark Mode Styles - Scoped to .haulage-wrap */
.haulage-wrap {
    background: #0d0d0d;
}

/* Make the entire page background dark when viewing dispatch pages */
body:has(.haulage-wrap),
body.post-type-archive-dispatches,
body.single-dispatches,
body.page-template-haulage-log {
    background: #0d0d0d !important;
}

.site-main:has(.haulage-wrap),
.post-type-archive-dispatches .site-main,
.single-dispatches .site-main {
    background: #0d0d0d;
}

/* Ensure the page container is also dark */
#page:has(.haulage-wrap) {
    background: #0d0d0d;
}

.haulage-wrap .tramper-manifest__mission-card,
.haulage-wrap .tramper-manifest__bivouac-card,
.haulage-wrap .tramper-manifest__log,
.haulage-wrap .haulage-stat-card,
.haulage-wrap .haulage-dashboard-map,
.haulage-wrap .dispatch-entry {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    box-shadow: none;
}

.haulage-wrap .dispatch-entry__inner {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Add padding to dispatch entry cards */
.haulage-wrap .dispatch-entry {
    padding: 2rem;
    padding-bottom: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.haulage-wrap .dispatch-entry:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 2rem;
}

/* Remove border from inner */
.haulage-wrap .dispatch-entry__inner {
    border: none;
}

/* Mobile: Remove left/right padding and ensure bottom padding on entries */
@media (max-width: 767px) {
    .haulage-wrap .dispatches-timeline {
        padding-left: 0;
        padding-right: 0;
    }

    /* Reduce padding on dispatch entries for mobile */
    .haulage-wrap .dispatch-entry {
        padding: 1rem;
        padding-bottom: 2rem !important;
        margin-bottom: 2rem;
    }

    .haulage-wrap .dispatch-entry:last-child {
        padding-bottom: 2rem !important;
        margin-bottom: 0;
    }
}

.haulage-wrap .tramper-manifest__mission-card {
    padding: 40px 0;
}

.haulage-wrap .tramper-manifest__bivouac-card {
    padding: 40px 0;
}

/* Safety Orange/Contrasting Red for Numerical Values */
.haulage-wrap .tramper-manifest__mission-stats-value,
.haulage-wrap .tramper-manifest__mission-value--number,
.haulage-wrap .tramper-manifest__postcode-value,
.haulage-wrap .tramper-manifest__coordinates {
    color: #e74c3c !important;
    text-shadow: none !important;
    font-family: 'Roboto Mono', 'Courier New', monospace !important;
    font-weight: 600;
}

/* Light Text for Readability - Comprehensive Coverage */
.haulage-wrap .tramper-manifest__mission-card-title,
.haulage-wrap .tramper-manifest__bivouac-card-title,
.haulage-wrap .tramper-manifest__log-title,
.haulage-wrap .tramper-manifest__log-content,
.haulage-wrap .tramper-manifest__log-content p,
.haulage-wrap .tramper-manifest__log-content a,
.haulage-wrap .tramper-manifest__log-content li,
.haulage-wrap .tramper-manifest__mission-stats-label,
.haulage-wrap .tramper-manifest__mission-label,
.haulage-wrap .tramper-manifest__mission-value:not(.tramper-manifest__mission-value--number),
.haulage-wrap .tramper-manifest__route-label,
.haulage-wrap .tramper-manifest__route-pill,
.haulage-wrap .tramper-manifest__postcode-label,
.haulage-wrap h1,
.haulage-wrap h2,
.haulage-wrap h3,
.haulage-wrap h4,
.haulage-wrap h5,
.haulage-wrap h6,
.haulage-wrap p,
.haulage-wrap li,
.haulage-wrap td,
.haulage-wrap th,
.haulage-wrap label,
.haulage-wrap span:not(.tramper-manifest__mission-stats-value):not(.tramper-manifest__postcode-value):not(.tramper-manifest__coordinates),
.haulage-wrap .hkb-guide-hero__title,
.haulage-wrap .hkb-guide-hero__subtitle,
.haulage-wrap .hkb-guide-hero__excerpt,
.haulage-wrap .dispatch-entry__title,
.haulage-wrap .dispatch-entry__title a,
.haulage-wrap .dispatch-entry__date,
.haulage-wrap .dispatch-entry__excerpt,
.haulage-wrap .dispatch-entry__load-info,
.haulage-wrap .dispatch-entry__location,
.haulage-wrap .dispatch-entry__location a,
.haulage-wrap .dispatch-entry__payload,
.haulage-wrap .dispatch-entry__payload strong,
.haulage-wrap .dispatch-entry__temp,
.haulage-wrap .dispatch-entry__temp strong,
.haulage-wrap .dispatch-entry__rating,
.haulage-wrap .dispatch-entry__rating strong,
.haulage-wrap .dispatch-entry__read-more,
.haulage-wrap .single-dispatch__hero-title,
.haulage-wrap .single-dispatch__hero-date,
.haulage-wrap .single-dispatch__title,
.haulage-wrap .single-dispatch__date,
.haulage-wrap .haulage-stat-card__value,
.haulage-wrap .haulage-stat-card__label,
.haulage-wrap .dispatches-stats__title,
.haulage-wrap .dispatches-stats__value,
.haulage-wrap .dispatches-map__description,
.haulage-wrap .haulage-dashboard__map-description {
    color: #e0e0e0;
}

/* Override base mission value colors in dark mode - Force override with maximum specificity */
.haulage-wrap .tramper-manifest__mission-stat .tramper-manifest__mission-value,
.haulage-wrap .tramper-manifest__mission-card .tramper-manifest__mission-value,
.haulage-wrap .tramper-manifest__mission-value:not(.tramper-manifest__mission-value--number) {
    color: #e0e0e0 !important;
}

.haulage-wrap .tramper-manifest__mission-stat .tramper-manifest__mission-value--number,
.haulage-wrap .tramper-manifest__mission-card .tramper-manifest__mission-value--number,
.haulage-wrap .tramper-manifest__mission-value--number {
    color: #e74c3c !important;
    text-shadow: none !important;
    font-family: 'Roboto Mono', 'Courier New', monospace !important;
    font-weight: 600 !important;
}

/* Tramper Essentials and Review Notes - Bright Off-White */
.haulage-wrap .tramper-manifest__checklist-label,
.haulage-wrap .tramper-manifest__bivouac-review-content,
.haulage-wrap .tramper-manifest__bivouac-review-content p,
.haulage-wrap .tramper-manifest__bivouac-checklist-title {
    color: #f0f0f0 !important;
}

/* All Stats Use Monospace Font */
.haulage-wrap .tramper-manifest__mission-stats-value,
.haulage-wrap .tramper-manifest__mission-value,
.haulage-wrap .tramper-manifest__mission-value--number,
.haulage-wrap .tramper-manifest__postcode-value,
.haulage-wrap .tramper-manifest__coordinates,
.haulage-wrap .haulage-stat-card__value,
.haulage-wrap .dispatches-stats__value {
    font-family: 'Roboto Mono', 'Courier New', monospace !important;
}

/* Typography - Serif for titles only */
.haulage-wrap .tramper-manifest__mission-card-title,
.haulage-wrap .tramper-manifest__bivouac-card-title,
.haulage-wrap .tramper-manifest__log-title,
.haulage-wrap h1,
.haulage-wrap h2,
.haulage-wrap h3 {
    font-family: var(--font-heading);
}

/* Map Grayscale Filter in Dark Mode - Lighter */
.haulage-wrap .single-dispatch__map-container,
.haulage-wrap .haulage-dashboard-map {
    filter: grayscale(50%);
    opacity: 0.95;
}

/* Lighten Hero Overlay in Dark Mode */
.haulage-wrap .single-dispatch__hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.75) 100%);
}

/* Links in Dark Mode */
.haulage-wrap a:not(.tramper-manifest__route-pill):not(.tramper-manifest__copy-btn):not(.tramper-manifest__waze-btn):not(.tramper-manifest__mission-value):not(.tramper-manifest__mission-value--number):not(.comment-author-name):not(.comment-reply a):not(.comment-list a):not(.comments-area a) {
    color: #e74c3c;
    text-decoration: underline;
}

.haulage-wrap a:not(.tramper-manifest__route-pill):not(.tramper-manifest__copy-btn):not(.tramper-manifest__waze-btn):hover,
.haulage-wrap a:not(.tramper-manifest__route-pill):not(.tramper-manifest__copy-btn):not(.tramper-manifest__waze-btn):focus {
    color: #33ff88;
    text-decoration: none;
}

/* Diary Entry Max Width */
.haulage-wrap .single-dispatch__content,
.haulage-wrap .tramper-manifest__log-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single-dispatch__meta {
    padding: var(--spacing-lg) 0;
    background-color: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.single-dispatch__meta-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .single-dispatch__meta-inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }
}

.single-dispatch__meta-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.single-dispatch__meta-label {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    flex-shrink: 0;
}

.single-dispatch__meta-value {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.6;
}

.single-dispatch__meta-value a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-dispatch__meta-value a:hover,
.single-dispatch__meta-value a:focus {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.single-dispatch__content {
    padding: var(--spacing-2xl) 0;
}

.single-dispatch__content-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.single-dispatch__map {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.single-dispatch__map-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.single-dispatch__map-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-lg);
}

.single-dispatch__map-container {
    margin-bottom: var(--spacing-md);
}

.acf-map {
    width: 100%;
    height: 400px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.single-dispatch__map-address {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--color-secondary);
    margin: var(--spacing-md) 0 0;
    font-style: italic;
}

.single-dispatch__video {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--color-border);
}

.single-dispatch__video-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.single-dispatch__video-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-lg);
}

.single-dispatch__video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--color-background-dark);
}

.single-dispatch__video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.single-dispatch__video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.single-dispatch__video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.single-dispatch__video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.related-dispatches {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-2xl);
}

.related-dispatches__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.related-dispatches__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-xl);
}

.related-dispatches__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .related-dispatches__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl) var(--spacing-lg);
    }
}

@media (min-width: 992px) {
    .related-dispatches__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dispatch-card {
    display: flex;
    flex-direction: column;
}

.dispatch-card__image-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
    margin-bottom: var(--spacing-lg);
}

.dispatch-card__image-link:hover {
    opacity: 0.85;
}

.dispatch-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-background-dark);
    border-radius: 4px;
}

.dispatch-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dispatch-card__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.dispatch-card__title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: var(--line-height-heading);
}

.dispatch-card__title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.dispatch-card__title-link:hover,
.dispatch-card__title-link:focus {
    color: var(--color-accent);
}

.dispatch-card__load-info,
.dispatch-card__location {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.dispatch-card__load-info strong,
.dispatch-card__location strong {
    font-weight: 600;
    color: var(--color-primary);
}

.dispatch-card__date {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: var(--spacing-xs);
}

.dispatch-navigation {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-2xl);
}

.dispatch-navigation__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.dispatch-navigation__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dispatch-navigation__link:hover {
    border-color: var(--color-accent);
    background-color: rgba(212, 165, 116, 0.05);
}

.dispatch-navigation__link--next {
    text-align: right;
}

.dispatch-navigation__label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.dispatch-navigation__title {
    font-weight: 500;
    color: var(--color-primary);
}

/* Single Dispatch Gallery */
.single-dispatch__gallery {
    margin: var(--spacing-2xl) 0;
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-border);
}

.single-dispatch__gallery-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.single-dispatch__gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

/* Center gallery when there are fewer than 4 images */
.single-dispatch__gallery-grid--centered {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center;
    max-width: calc(4 * (200px + var(--spacing-md)));
    margin: 0 auto;
}

/* For 1-3 images, ensure they're centered */
@media (min-width: 768px) {
    .single-dispatch__gallery-grid--centered {
        max-width: calc(3 * (250px + var(--spacing-lg)));
    }
}

.single-dispatch__gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--color-background-dark);
}

.single-dispatch__gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.single-dispatch__gallery-link:hover {
    opacity: 0.85;
}

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

@media (min-width: 768px) {
    .single-dispatch__gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-lg);
    }
}

/* Dispatch Form Styles */
.dispatch-form-wrapper {
    max-width: 800px;
    margin: var(--spacing-2xl) auto;
    padding: 0 var(--container-padding);
}

.dispatch-form__inner {
    background: var(--color-background);
    padding: var(--spacing-2xl);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dispatch-form__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-xl);
    text-align: center;
}

.dispatch-form__message {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-radius: 4px;
}

.dispatch-form__message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dispatch-form__message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dispatch-form__message ul {
    margin: 0;
    padding-left: var(--spacing-lg);
}

.dispatch-form__field {
    margin-bottom: var(--spacing-lg);
}

.dispatch-form__label {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.dispatch-form__label .required {
    color: #dc3545;
}

.dispatch-form__input,
.dispatch-form__textarea,
.dispatch-form__select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: #fff;
    color: var(--color-text);
    transition: border-color 0.2s ease;
}

.dispatch-form__input:focus,
.dispatch-form__textarea:focus,
.dispatch-form__select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.dispatch-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.dispatch-form__select[multiple] {
    min-height: 120px;
}

.dispatch-form__help {
    display: block;
    font-size: 0.875rem;
    color: var(--color-secondary);
    margin-top: var(--spacing-xs);
    font-style: italic;
}

.dispatch-form__image-upload {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.dispatch-form__upload-btn {
    align-self: flex-start;
    padding: 12px 24px;
    background-color: var(--color-accent);
    color: #fff !important;
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    min-width: 150px;
    text-align: center;
}

.dispatch-form__upload-btn:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dispatch-form__image-preview {
    margin-top: var(--spacing-md);
}

.dispatch-form__image-preview img {
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.dispatch-form__gallery-upload {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.dispatch-form__gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.dispatch-form__gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dispatch-form__gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.dispatch-form__gallery-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background-color: rgba(220, 53, 69, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.dispatch-form__gallery-remove:hover {
    background-color: #dc3545;
}

.dispatch-form__new-location {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.dispatch-form__label--small {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.dispatch-form__new-location-input {
    display: flex;
    gap: var(--spacing-sm);
}

.dispatch-form__input--inline {
    flex: 1;
}

.dispatch-form__map {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.dispatch-form__actions {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.dispatch-form__btn {
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

.dispatch-form__btn--primary {
    background-color: var(--color-accent);
    color: #fff !important;
    border-color: var(--color-accent);
}

.dispatch-form__btn--primary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.dispatch-form__btn--secondary {
    background-color: var(--color-secondary);
    color: #fff !important;
    border-color: var(--color-secondary);
    margin-top: var(--spacing-sm);
    min-width: auto;
    padding: 10px 20px;
    font-size: 0.875rem;
}

.dispatch-form__btn--secondary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.dispatch-form__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .dispatch-form-wrapper {
        margin: var(--spacing-lg) auto;
        padding: 0 var(--container-padding);
    }

    .dispatch-form__inner {
        padding: var(--spacing-lg);
    }
}

/* ============================================
   HAULAGE LOG DASHBOARD
   ============================================ */

/* Stats Cards */
.haulage-dashboard__stats {
    background: #fafafa;
    padding: var(--spacing-2xl) var(--container-padding);
    border-bottom: 2px solid #333;
}

.haulage-dashboard__stats-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.haulage-stat-card {
    background: #fff;
    border: 2px solid #333;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 100px; /* Ensure consistent height on mobile */
}

.haulage-stat-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
}

.haulage-stat-card__icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.haulage-stat-card__content {
    flex: 1;
    min-width: 0; /* Prevent text overflow */
}

.haulage-stat-card__value {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    color: #333;
    line-height: 1.1;
    margin-bottom: var(--spacing-xs);
    white-space: nowrap;
}

.haulage-stat-card__label {
    font-family: var(--font-primary);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    font-weight: 600;
}

/* Mobile optimizations for stats */
@media (max-width: 767px) {
    .haulage-dashboard__stats {
        padding: var(--spacing-xl) var(--container-padding);
    }

    .haulage-dashboard__stats-inner {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .haulage-stat-card {
        padding: var(--spacing-lg);
        min-height: 90px;
    }

    .haulage-stat-card__icon {
        font-size: 2rem;
    }

    .haulage-stat-card__value {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    .haulage-dashboard__stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .haulage-stat-card {
        padding: var(--spacing-lg);
    }
}

/* Dashboard Map */
.haulage-dashboard__map {
    background: transparent;
    padding: var(--spacing-3xl) var(--container-padding);
}

.haulage-dashboard__map-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.haulage-dashboard__map-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #333;
    margin: 0 0 var(--spacing-sm);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.haulage-dashboard__map-description {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin: 0 0 var(--spacing-lg);
}

.haulage-dashboard__map-empty {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    font-style: italic;
    padding: var(--spacing-lg);
    background: #f5f5f0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.haulage-dashboard-map {
    width: 100%;
    height: 500px;
    border: 2px solid #333;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    touch-action: pan-x pan-y; /* Enable touch gestures */
}

/* Mobile map optimizations */
@media (max-width: 767px) {
    .haulage-dashboard__map {
        padding: var(--spacing-xl) var(--container-padding);
    }

    .haulage-dashboard-map {
        height: 400px;
        border-radius: 4px;
    }

    .haulage-dashboard__map-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: var(--spacing-md);
    }
}

/* Tablet map */
@media (min-width: 768px) and (max-width: 1023px) {
    .haulage-dashboard-map {
        height: 500px;
    }
}

/* Desktop map */
@media (min-width: 1024px) {
    .haulage-dashboard-map {
        height: 600px;
    }
}

/* Dashboard Feed */
.haulage-dashboard__feed {
    background: transparent;
    padding: var(--spacing-3xl) 0;
}

.haulage-dashboard__feed-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.haulage-dashboard__feed-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    color: #333;
    margin: 0 0 var(--spacing-2xl);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Mobile feed optimizations */
@media (max-width: 767px) {
    .haulage-dashboard__feed {
        padding: var(--spacing-xl) 0;
    }

    .haulage-dashboard__feed-title {
        margin-bottom: var(--spacing-xl);
        font-size: clamp(1.25rem, 6vw, 2rem);
    }
}

/* Feed uses same styles as dispatches archive - see .dispatch-entry styles above */
.haulage-dashboard__feed .dispatch-entry {
    border-bottom: none;
    margin-bottom: var(--spacing-xl);
    padding-bottom: 0;
}

.haulage-dashboard__feed .dispatch-entry:last-child {
    margin-bottom: 0;
}

/* Mobile optimizations for feed entries */
@media (max-width: 767px) {
    .haulage-dashboard__feed .dispatch-entry {
        margin-bottom: var(--spacing-lg);
    }

    .haulage-dashboard__feed .dispatch-entry__inner {
        gap: var(--spacing-md);
    }

    .haulage-dashboard__feed .dispatch-entry__title {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: var(--spacing-xs);
    }

    .haulage-dashboard__feed .dispatch-entry__excerpt {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    /* Ensure touch targets are large enough */
    .haulage-dashboard__feed .dispatch-entry__title a,
    .haulage-dashboard__feed .dispatch-entry__image-link {
        min-height: 44px; /* iOS recommended touch target */
        display: flex;
        align-items: center;
    }
}

.dispatch-entry__reviews {
    margin-top: var(--spacing-sm);
}

.haulage-review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.haulage-review-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-background-dark);
    color: var(--color-text-light);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Safety rating color coding - Red (1) to Green (5) */
.haulage-review-badge--safety[data-rating="1"] {
    background: #dc2626; /* Red */
    color: #ffffff;
}

.haulage-review-badge--safety[data-rating="2"] {
    background: #ea580c; /* Orange-red */
    color: #ffffff;
}

.haulage-review-badge--safety[data-rating="3"] {
    background: #f59e0b; /* Amber */
    color: #ffffff;
}

.haulage-review-badge--safety[data-rating="4"] {
    background: #84cc16; /* Lime-green */
    color: #1a1a1a;
}

.haulage-review-badge--safety[data-rating="5"] {
    background: #22c55e; /* Green */
    color: #ffffff;
}

@media (max-width: 767px) {
    .haulage-feed__item {
        grid-template-columns: 1fr;
    }

    .haulage-feed__image {
        aspect-ratio: 16 / 9;
    }
}

/* Dispatches Archive Map */
/* Dispatch Archive Stats */
.dispatches-stats {
    background: #1a1a1a;
    padding: 2rem 0;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid #333333;
}

.dispatches-stats__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.dispatches-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.dispatches-stats__card {
    text-align: center;
    padding: 1.5rem;
    background: #2c2c2c;
    border-radius: 6px;
    border: 1px solid #404040;
}

.dispatches-stats__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
}

.dispatches-stats__value {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #32CD32;
    margin: 0;
    white-space: nowrap;
}

.dispatches-map-wrapper {
    padding: var(--spacing-2xl) 0;
    background-color: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.dispatches-map-wrapper__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.dispatches-map__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-sm);
    text-align: center;
}

.dispatches-map__description {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-secondary);
    text-align: center;
    margin: 0 0 var(--spacing-lg);
    font-style: italic;
}

.dispatches-map__empty {
    text-align: center;
    color: var(--color-secondary);
    font-style: italic;
    margin-top: var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

.dispatches-archive-map {
    width: 100%;
    height: 500px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .dispatches-archive-map {
        height: 400px;
    }
}


/* ============================================
   TIMBER SPECIES ARCHIVE
   Technical Manual / Data-Sheet Aesthetic
   ============================================ */

/* Single Species Page */
.single-species {
    background: #f5f5f0; /* Beige/graph paper background */
    background-image:
        linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
}

/* Header with Search */
.species-header {
    background: #ffffff;
    border-bottom: 2px solid #333;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.species-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.species-header__nav {
    text-align: left;
}

.species-header__back-link {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.species-header__back-link:hover {
    color: var(--color-accent);
}

.species-search {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.species-search__form {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.species-search__input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #333;
    border-right: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    background: #ffffff;
    color: #333;
}

.species-search__input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.species-search__button {
    padding: 12px 24px;
    background: #333;
    color: #ffffff !important;
    border: 2px solid #333;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.species-search__button:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff !important;
}

/* Content Wrapper */
.species-content-wrapper {
    padding: var(--spacing-2xl) 0;
}

.species-content__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

/* Sidebar: Technical Specs Card */
.species-sidebar {
    position: sticky;
    top: calc(var(--spacing-lg) + 60px);
    align-self: start;
}

.species-specs-card {
    background: #fafafa;
    border: 2px solid #333;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.species-specs-card__image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e8e8e8;
    border-bottom: 2px solid #333;
}

.species-specs-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.species-specs-card__content {
    padding: var(--spacing-lg);
}

.species-specs-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
}

.species-specs-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.species-spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.species-spec-item__label {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.species-spec-item__value {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
}

.species-specs-card__divider {
    height: 2px;
    background: #333;
    margin: var(--spacing-lg) 0;
}

.species-status {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.species-status__label {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.species-status__value {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

/* Technical Specs Table */
.species-specs-table {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid #ddd;
}

.species-tech-table {
    width: 100%;
    border-collapse: collapse;
}

.species-tech-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.species-tech-table tbody tr:last-child {
    border-bottom: none;
}

.species-tech-table__label {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    padding: 8px 0;
    text-align: left;
}

.species-tech-table__value {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #333;
    padding: 8px 0 8px var(--spacing-sm);
    text-align: right;
}

/* Main Content Column */
.species-main {
    background: #ffffff;
    padding: var(--spacing-2xl);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.species-title-section {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid #333;
}

.species-botanical-name {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #333;
    margin: 0 0 var(--spacing-sm);
    font-style: italic;
}

.species-botanical-name em {
    font-style: italic;
    font-weight: 700;
}

.species-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #333;
    margin: 0 0 var(--spacing-sm);
}

.species-common-names {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: #666;
    font-style: italic;
}

/* Sections */
.species-section {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid #ddd;
}

.species-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.species-section--haulage:last-of-type {
    padding-bottom: var(--spacing-lg);
}

.species-section--disclaimer:last-of-type {
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.species-section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 800;
    color: #333;
    margin: 0 0 var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.species-field {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.species-field__label {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.species-field__value {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
}

.species-field__value p {
    margin: 0 0 var(--spacing-sm);
}

.species-field__value p:last-child {
    margin-bottom: 0;
}

.species-distribution-map {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    margin-top: var(--spacing-sm);
}

/* Gallery */
.species-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.species-gallery__item {
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f5f5f5;
}

.species-gallery__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.species-gallery__link:hover {
    opacity: 0.85;
}

.species-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Haulage File Section */
.species-section--haulage {
    background: rgba(212, 175, 55, 0.05);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
    border-left: 3px solid var(--color-accent);
}

.species-section--disclaimer {
    background: rgba(0, 0, 0, 0.02);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.hkb-species-section--disclaimer {
    background: rgba(0, 0, 0, 0.02);
    padding: var(--spacing-lg) 0;
}

.hkb-species-section--disclaimer .hkb-species-section__title {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    margin-bottom: var(--spacing-lg);
}

.hkb-species-section--disclaimer .species-disclaimer {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    line-height: 1.7;
    color: #666;
}

.hkb-species-section--disclaimer .species-disclaimer p {
    margin: 0 0 var(--spacing-md);
}

.hkb-species-section--disclaimer .species-disclaimer p:last-child {
    margin-bottom: 0;
}

.hkb-species-section--disclaimer .species-disclaimer strong {
    color: #333;
    font-weight: 600;
}

.species-disclaimer {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    line-height: 1.7;
    color: #666;
}

.species-disclaimer p {
    margin: 0 0 var(--spacing-md);
}

.species-disclaimer p:last-child {
    margin-bottom: 0;
}

.species-disclaimer strong {
    color: #333;
    font-weight: 600;
}

/* Archive Disclaimer Wrapper */
.species-archive-disclaimer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding) var(--spacing-2xl);
}

/* Content */
.species-content {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.species-content h2,
.species-content h3,
.species-content h4 {
    font-family: var(--font-heading);
    color: #333;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.species-content p {
    margin-bottom: var(--spacing-md);
}

/* Linked Haulage Logs */
.species-haulage-logs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.species-haulage-log-item {
    padding: var(--spacing-md);
    background: #f9f9f9;
    border-left: 3px solid var(--color-accent);
}

.species-haulage-log-item__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-xs);
}

.species-haulage-log-item__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.species-haulage-log-item__title a:hover {
    color: var(--color-accent);
}

.species-haulage-log-item__date {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: #666;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.species-haulage-log-item__load {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: #333;
}

/* Archive Page */
.species-archive-header {
    background: transparent;
    padding: var(--spacing-2xl) 0 var(--spacing-md) 0;
}

.species-archive-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
}

.species-archive-header__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #333;
    margin: 0 0 var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Species Filter */
.species-filter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding) var(--spacing-lg);
}

.species-filter__inner {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.species-filter__button {
    padding: 10px 24px;
    background: #ffffff;
    border: 2px solid #333;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.species-filter__button:hover {
    background: #f5f5f5;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.species-filter__button.active {
    background: #333;
    color: #ffffff !important;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.species-filter__button.active:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff !important;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.species-archive-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding) var(--spacing-2xl);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.species-card {
    background: #ffffff;
    border: 2px solid #333;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.species-card:hover {
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
}

.species-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.species-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8e8e8;
    border-bottom: 2px solid #333;
}

.species-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.species-card__content {
    padding: var(--spacing-lg);
}

.species-card__common-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 var(--spacing-xs);
    line-height: 1.3;
}

.species-card__alt-names {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    margin: 0 0 var(--spacing-xs);
}

.species-card__botanical-name {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: #666;
    font-style: italic;
    margin: 0 0 var(--spacing-md);
}

.species-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid #ddd;
}

.species-card__wood-type {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.species-card__density-badge {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 4px 8px;
    background: var(--color-accent);
    color: #333;
    border: 1px solid #333;
}

.species-archive-empty {
    text-align: center;
    padding: var(--spacing-2xl);
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .species-content__inner {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .species-sidebar {
        position: static;
        order: -1;
    }

    .species-specs-card {
        margin-bottom: var(--spacing-xl);
    }

    .species-main {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 767px) {
    .species-header {
        padding: var(--spacing-md) 0;
    }

    .species-content-wrapper {
        padding: var(--spacing-xl) 0;
    }

    .species-archive-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .species-gallery {
        grid-template-columns: 1fr;
    }
}

/* Timber Species Section on Reference Library Index */
.hkb-species-section {
    padding: var(--spacing-2xl) 0;
    background: #f5f5f0;
    border-bottom: 3px solid #333;
    margin: var(--spacing-2xl) 0;
    position: relative;
}

.hkb-species-section::before,
.hkb-species-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 11px
    );
}

.hkb-species-section::before {
    top: -1px;
}

.hkb-species-section::after {
    bottom: -1px;
}

.hkb-species-section__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hkb-species-section__header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid #333;
    position: relative;
}

.hkb-species-section__header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 8px,
        rgba(0, 0, 0, 0.15) 8px,
        rgba(0, 0, 0, 0.15) 9px
    );
}

.hkb-species-section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
}

.hkb-species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.hkb-species-category {
    margin-bottom: var(--spacing-2xl);
}

.hkb-species-category:last-of-type {
    margin-bottom: var(--spacing-lg);
}

.hkb-species-category__title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #333;
    margin: 0 0 var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #ddd;
}

.hkb-species-section__footer {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid #ddd;
    margin-top: var(--spacing-lg);
}

.hkb-species-section__view-all {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #333;
    background: #ffffff;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.hkb-species-section__view-all::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.hkb-species-section__view-all:hover {
    background: var(--color-accent);
    color: #333;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
}

.hkb-species-section__view-all:active {
    transform: translate(0, 0);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.hkb-no-species {
    text-align: center;
    padding: var(--spacing-xl);
    color: #666;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .hkb-species-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hkb-species-section__view-all {
        font-size: 0.875rem;
        padding: 10px 20px;
    }
}

/* Dendrological Archive Section (Timber Guide Index) */
.hkb-dendrological-archive {
    padding: var(--spacing-3xl) 0;
    background: #fafafa;
    border-top: 3px solid #333;
    margin-top: var(--spacing-3xl);
    position: relative;
}

.hkb-dendrological-archive::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 8px,
        rgba(0, 0, 0, 0.2) 8px,
        rgba(0, 0, 0, 0.2) 9px
    );
}

.hkb-dendrological-archive__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hkb-dendrological-archive__header {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid #333;
    position: relative;
}

.hkb-dendrological-archive__header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 6px,
        rgba(0, 0, 0, 0.15) 6px,
        rgba(0, 0, 0, 0.15) 7px
    );
}

.hkb-dendrological-archive__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
    font-variant-numeric: oldstyle-nums;
}

.hkb-dendrological-category {
    margin-bottom: var(--spacing-2xl);
}

.hkb-dendrological-category:last-child {
    margin-bottom: 0;
}

.hkb-dendrological-category__title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #333;
    margin: 0 0 var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #ddd;
}

.hkb-dendrological-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.hkb-dendrological-card {
    background: #ffffff;
    border: 2px solid #333;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.hkb-dendrological-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.hkb-dendrological-card:hover {
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.hkb-dendrological-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hkb-dendrological-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8e8e8;
    border-bottom: 2px solid #333;
    position: relative;
}

.hkb-dendrological-card__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 4px,
        rgba(0, 0, 0, 0.1) 4px,
        rgba(0, 0, 0, 0.1) 5px
    );
}

.hkb-dendrological-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hkb-dendrological-card__content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.hkb-dendrological-card__botanical-name {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: #333;
    font-style: italic;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.hkb-dendrological-card__botanical-name em {
    font-style: italic;
    font-weight: 600;
}

.hkb-dendrological-card__density-badge {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 4px 8px;
    background: var(--color-accent);
    color: #333;
    border: 1px solid #333;
    display: inline-block;
    align-self: flex-start;
    margin-top: var(--spacing-xs);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.hkb-no-species {
    text-align: center;
    padding: var(--spacing-xl);
    color: #666;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .hkb-dendrological-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .hkb-dendrological-archive {
        padding: var(--spacing-2xl) 0;
    }
}

/* Location Archive */
.location-archive {
    padding: var(--spacing-2xl) 0;
}

.location-archive__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.location-archive__section {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 2px solid var(--color-border);
}

.location-archive__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.location-archive__section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.location-archive__icon {
    font-size: 1.5em;
    line-height: 1;
}

.location-archive__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .location-archive__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl) var(--spacing-lg);
    }
}

@media (min-width: 992px) {
    .location-archive__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.location-archive__empty {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--color-secondary);
    font-style: italic;
}

/* ============================================
   TO TOP BUTTON - Site Wide
   ============================================ */
.hkb-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--hkb-navy, var(--color-primary, #1A1A1A));
    color: #ffffff;
    border: 3px solid var(--hkb-navy, var(--color-primary, #1A1A1A));
    border-radius: 0;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    font-size: 0;
    padding: 0;
}

.hkb-to-top.visible {
    display: flex;
}

.hkb-to-top:hover {
    background: var(--hkb-gold, var(--color-accent, #D4A574));
    border-color: var(--hkb-gold, var(--color-accent, #D4A574));
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.hkb-to-top:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.hkb-to-top svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

@media (max-width: 768px) {
    .hkb-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .hkb-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   NIGHT STOP TEMPLATE - Timber Aesthetic
   ============================================ */
.single-night-stop {
    background: #fafafa;
}

.night-stop-header {
    background: #fff;
    border-bottom: 2px solid #333;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-2xl);
}

.night-stop-header__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.night-stop-header__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #333;
    margin: 0 0 var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.night-stop-header__postcode {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

.night-stop-content-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.night-stop-content__inner {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.night-stop-specs-card {
    background: #fafafa;
    border: 2px solid #333;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: sticky;
    top: var(--spacing-lg);
}

.night-stop-specs-card__image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e8e8e8;
    border-bottom: 2px solid #333;
}

.night-stop-specs-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.night-stop-specs-card__content {
    padding: var(--spacing-lg);
}

.night-stop-specs-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
}

.night-stop-specs-card__map {
    margin: var(--spacing-lg) 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.night-stop-specs-card__map .acf-map {
    height: 250px;
    width: 100%;
}

.night-stop-specs-card__divider {
    height: 2px;
    background: #333;
    margin: var(--spacing-lg) 0;
}

.night-stop-amenities__title {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin: 0 0 var(--spacing-sm);
}

.night-stop-amenities__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.night-stop-amenities__item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid #ddd;
}

.night-stop-amenities__item:last-child {
    border-bottom: none;
}

.night-stop-amenities__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.night-stop-amenities__name {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: #333;
}

.night-stop-main {
    padding: var(--spacing-lg) 0;
}

.night-stop-section {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid #ddd;
}

.night-stop-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.night-stop-section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 800;
    color: #333;
    margin: 0 0 var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.night-stop-content {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
}

.night-stop-video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.night-stop-video-gallery__item {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.night-stop-video-gallery__embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.night-stop-video-gallery__embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.night-stop-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.night-stop-image-gallery__item {
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.night-stop-image-gallery__link {
    display: block;
    width: 100%;
    height: 100%;
}

.night-stop-image-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.night-stop-image-gallery__link:hover .night-stop-image-gallery__image {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .night-stop-content__inner {
        grid-template-columns: 1fr;
    }

    .night-stop-specs-card {
        position: static;
    }
}

/* ============================================
   FRONT PAGE LIVE MISSION STATUS BAR
   Night Cab Aesthetic - Scoped to .front-page-mission-bar
   ============================================ */

.front-page-mission-bar {
    background: #0d0d0d;
    border-bottom: 1px solid #333;
    padding: 1.5rem 0;
    margin-bottom: 0;
}

.front-page-mission-bar__link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.front-page-mission-bar__link:hover {
    opacity: 0.9;
}

.front-page-mission-bar__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.front-page-mission-bar__status {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.front-page-mission-bar__status-label,
.front-page-mission-bar__position-label,
.front-page-mission-bar__telemetry-label {
    font-family: var(--font-primary);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e0e0e0;
}

.front-page-mission-bar__status-value {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 700;
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.front-page-mission-bar__position {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 200px;
}

.front-page-mission-bar__position-value {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
}

.front-page-mission-bar__telemetry {
    display: flex;
    gap: 2rem;
    flex-shrink: 0;
}

.front-page-mission-bar__telemetry-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.front-page-mission-bar__telemetry-value {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .front-page-mission-bar {
        padding: 1.25rem 0;
    }

    .front-page-mission-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .front-page-mission-bar__status,
    .front-page-mission-bar__position {
        width: 100%;
    }

    .front-page-mission-bar__telemetry {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .front-page-mission-bar__telemetry-item {
        width: 100%;
    }

    .front-page-mission-bar__status-value,
    .front-page-mission-bar__telemetry-value {
        font-size: 1.25rem; /* Larger for vibrating cab readability */
    }

    .front-page-mission-bar__position-value {
        font-size: 1.125rem;
    }
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
    margin: 1rem 0;
    padding: 0;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
}

.breadcrumbs__separator {
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumbs__link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
    color: #000;
    text-decoration: underline;
}

.breadcrumbs__current {
    color: #666;
    font-weight: 500;
}

/* ============================================
   COMMENTS SECTION
   ============================================ */

.comments-area {
    max-width: 800px;
    margin: var(--spacing-3xl) auto 0;
    padding: 0 var(--container-padding);
}

.comments-title {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-2xl);
}

.comment-list .comment {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: none;
}

.comment-list .comment:first-child {
    border-top: 1px solid #e8e8e8;
    padding-top: var(--spacing-lg);
}

.comment-list .comment:not(:last-child) {
    border-bottom: 1px solid #e8e8e8;
}

.comment-list .comment:last-child {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0;
    padding-bottom: var(--spacing-lg);
}

.comment-body {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.comment-author {
    flex-shrink: 0;
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: block;
}

.comment-meta {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0;
    gap: var(--spacing-sm);
}

.comment-meta__left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.comment-meta > .comment-reply {
    display: none;
}

.comment-author-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #333;
    margin: 0;
}

.comment-author-name a {
    color: #333;
    text-decoration: none;
}

.comment-date {
    font-size: 0.8125rem;
    color: #999;
    margin: 0;
}

.comment-content {
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
    margin-left: calc(50px + var(--spacing-md));
    line-height: 1.6;
    color: #666;
    font-size: 0.9375rem;
}

.comment-content p {
    margin-bottom: var(--spacing-sm);
}

.comment-reply {
    margin: 0;
}

.comment-reply--bottom {
    margin-top: var(--spacing-xs);
    margin-left: calc(50px + var(--spacing-md));
}

.comment-reply a {
    font-size: 0.8125rem;
    color: #999;
    text-decoration: none;
    font-weight: 400;
}

.comment-reply a:hover {
    color: #333;
    text-decoration: underline;
}

.comment-awaiting-moderation {
    color: #ff8800;
    font-style: italic;
    font-size: 0.875rem;
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    margin-left: calc(50px + var(--spacing-md) + var(--spacing-xl));
    margin-top: var(--spacing-lg);
    padding-left: 0;
    padding-top: var(--spacing-lg);
    border-top: 1px solid #e8e8e8;
}

.comment-list .children .comment {
    margin-left: 0;
    padding-left: 0;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: none;
    border-top: none;
}

.comment-list .children .comment:first-child {
    border-top: none;
    padding-top: var(--spacing-lg);
}

.comment-list .children .comment:last-child {
    margin-bottom: 0;
    padding-bottom: var(--spacing-lg);
}

.comment-list .children .comment-body {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.comment-list .children .comment-author {
    flex-shrink: 0;
}

.comment-list .children .comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: block;
}

.comment-list .children .comment-meta {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0;
    gap: var(--spacing-sm);
}

.comment-list .children .comment-meta__left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.comment-list .children .comment-meta > .comment-reply {
    display: none;
}

.comment-list .children .comment-author-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #333;
    margin: 0;
}

.comment-list .children .comment-author-name a {
    color: #333;
    text-decoration: none;
}

.comment-list .children .comment-date {
    font-size: 0.8125rem;
    color: #999;
    margin: 0;
}

.comment-list .children .comment-content {
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
    margin-left: calc(50px + var(--spacing-md));
    line-height: 1.6;
    color: #666;
    font-size: 0.9375rem;
}

.comment-list .children .comment-content p {
    margin-bottom: var(--spacing-sm);
}

.comment-list .children .comment-reply--bottom {
    margin-top: var(--spacing-xs);
    margin-left: calc(50px + var(--spacing-md));
}

.comment-list .children .comment-reply a {
    font-size: 0.8125rem;
    color: #999;
    text-decoration: none;
    font-weight: 400;
}

.comment-list .children .comment-reply a:hover {
    color: #333;
    text-decoration: underline;
}


/* Comment Form */
.comment-form {
    margin-top: var(--spacing-2xl);
}

.comment-form-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
    display: block;
}

#cancel-comment-reply-link {
    display: block;
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 400;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

#cancel-comment-reply-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.comment-notes {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: var(--spacing-lg);
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: var(--spacing-md);
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.2s ease;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.comment-form-comment textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form-cookies-consent {
    margin-bottom: var(--spacing-md);
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-right: 0.5rem;
}

.comment-form-cookies-consent label {
    font-size: 0.875rem;
    color: var(--color-text);
    cursor: pointer;
}

.form-submit {
    margin-top: var(--spacing-lg);
}

.form-submit input[type="submit"] {
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-submit input[type="submit"]:hover {
    background: var(--color-accent);
}

/* Dark Mode Comments (Dispatch Posts) */
.haulage-wrap .comments-area {
    max-width: 800px;
    margin: var(--spacing-3xl) auto 0;
    padding: 0 var(--container-padding);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.haulage-wrap .comments-title {
    color: #e0e0e0;
}

.haulage-wrap .comment-list .comment {
    border-bottom: none;
}

.haulage-wrap .comment-list .comment:first-child {
    border-top: 1px solid #2a2a2a;
    padding-top: var(--spacing-lg);
}

.haulage-wrap .comment-list .comment:not(:last-child) {
    border-bottom: 1px solid #2a2a2a;
}

.haulage-wrap .comment-list .comment:last-child {
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: var(--spacing-lg);
}

.haulage-wrap .comment-author-name,
.haulage-wrap .comment-author-name a {
    color: #e0e0e0;
}

.haulage-wrap .comment-date {
    color: #999;
}

.haulage-wrap .comment-content {
    color: #d0d0d0;
}

.haulage-wrap .comment-reply a {
    color: #999;
}

.haulage-wrap .comment-reply a:hover {
    color: #e0e0e0;
}

.haulage-wrap .comment-meta > .comment-reply {
    display: none;
}

.haulage-wrap .comment-reply--bottom {
    margin-left: calc(50px + var(--spacing-md));
}

.haulage-wrap .single-article__sharing {
    border-top: 1px solid #2a2a2a;
}

.haulage-wrap .single-article__sharing-label {
    color: #999;
}

.haulage-wrap .single-article__share-button {
    color: #999;
}

.haulage-wrap .single-article__share-button:hover {
    color: #e0e0e0;
}

.haulage-wrap .single-article__share-icon {
    opacity: 0.6;
    filter: brightness(0) invert(1);
}

.haulage-wrap .single-article__share-button:hover .single-article__share-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.haulage-wrap .comment-list .children {
    border-top: 1px solid #2a2a2a;
}

.haulage-wrap .comment-list .children .comment {
    border-bottom: none;
    border-top: none;
}

.haulage-wrap .comment-list .children .comment:first-child {
    border-top: none;
    padding-top: var(--spacing-lg);
}

.haulage-wrap .comment-list .children .comment:last-child {
    padding-bottom: var(--spacing-lg);
}

.haulage-wrap .comment-list .children .comment-author-name,
.haulage-wrap .comment-list .children .comment-author-name a {
    color: #e0e0e0;
}

.haulage-wrap .comment-list .children .comment-date {
    color: #999;
}

.haulage-wrap .comment-list .children .comment-content {
    color: #d0d0d0;
}

.haulage-wrap .comment-list .children .comment-reply a {
    color: #999;
}

.haulage-wrap .comment-list .children .comment-reply a:hover {
    color: #e0e0e0;
}

.haulage-wrap .comment-form-title {
    color: #e0e0e0;
}

.haulage-wrap #cancel-comment-reply-link {
    color: #999;
}

.haulage-wrap #cancel-comment-reply-link:hover {
    color: #e0e0e0;
}

.haulage-wrap .comment-notes {
    color: #999;
}

.haulage-wrap .comment-form-comment label,
.haulage-wrap .comment-form-author label,
.haulage-wrap .comment-form-email label,
.haulage-wrap .comment-form-url label {
    color: #e0e0e0;
}

.haulage-wrap .comment-form-comment textarea,
.haulage-wrap .comment-form-author input,
.haulage-wrap .comment-form-email input,
.haulage-wrap .comment-form-url input {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #e0e0e0;
}

.haulage-wrap .comment-form-comment textarea:focus,
.haulage-wrap .comment-form-author input:focus,
.haulage-wrap .comment-form-email input:focus,
.haulage-wrap .comment-form-url input:focus {
    border-color: #4a90e2;
    background: #1f1f1f;
}

.haulage-wrap .comment-form-cookies-consent label {
    color: #d0d0d0;
}

.haulage-wrap .form-submit input[type="submit"] {
    background: #4a90e2;
    color: #fff;
    border: none;
}

.haulage-wrap .form-submit input[type="submit"]:hover {
    background: #357abd;
}

/* Mobile Comments */
@media (max-width: 767px) {
    .comments-area {
        padding: 0 var(--spacing-md);
    }

    .comment-body {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .comment-author .avatar {
        width: 50px;
        height: 50px;
    }

    .comment-list .children {
        margin-left: 0;
        margin-top: var(--spacing-md);
        padding-left: var(--spacing-md);
    }

}

/* HR Styling */
hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: var(--spacing-xl) 0;
    clear: both;
}

.haulage-wrap hr {
    border-top-color: rgba(255, 255, 255, 0.2);
}

