/* ==========================================================================
   OTB26 - Opening the Book 2026 Redesign
   Only custom rules that Bootstrap 5 can't handle.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables & Base
   -------------------------------------------------------------------------- */

:root {
    --otb26-primary: #ec2669;
    --otb26-primary-hover: #d11e5b;
}

.otb26 {
    background-color: #222;
}

.otb26-content {
    background-color: #fff;
}

.otb26 .text-secondary {
    color: #555 !important;
}

.otb26-cap {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.otb26-cap-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: var(--bs-gutter-x, 0.75rem);
}

@media (min-width: 768px) {
    .otb26-cap-container { padding-left: calc((100vw - 720px) / 2 + 0.75rem); }
}
@media (min-width: 992px) {
    .otb26-cap-container { padding-left: calc((100vw - 960px) / 2 + 0.75rem); }
}
@media (min-width: 1200px) {
    .otb26-cap-container { padding-left: calc((100vw - 1140px) / 2 + 0.75rem); }
}
@media (min-width: 1400px) {
    .otb26-cap-container { padding-left: calc((100vw - 1320px) / 2 + 0.75rem); }
}
@media (min-width: 1440px) {
    .otb26-cap-container { padding-left: calc((1440px - 1320px) / 2 + 0.75rem); }
}

/* Reusable hover shadow — add to any card / panel */
.otb26-hover-shadow {
    transition: box-shadow 0.3s;
}

.otb26-hover-shadow:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.otb26 a {
    color: var(--otb26-primary);
    transition: color 0.2s;
}

.otb26 a:hover {
    color: var(--otb26-primary-hover);
}


/* --------------------------------------------------------------------------
   2. Buttons (brand colours Bootstrap can't provide)
   -------------------------------------------------------------------------- */

.otb26-btn-primary {
    display: inline-block;
    background-color: var(--otb26-primary);
    color: #fff !important;
    border: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 10px 24px;
    border-radius: 4px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.otb26-btn-primary:hover {
    background-color: var(--otb26-primary-hover);
    color: #fff !important;
}

.otb26-btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--otb26-primary) !important;
    border: 2px solid var(--otb26-primary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 8px 22px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.otb26-btn-outline:hover {
    background-color: var(--otb26-primary);
    color: #fff !important;
}


/* --------------------------------------------------------------------------
   3. Header nav (link styling Bootstrap can't do)
   -------------------------------------------------------------------------- */

.otb26-nav a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    transition: color 0.2s;
}

.otb26-nav a:hover,
.otb26-nav .active a {
    color: var(--otb26-primary) !important;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .otb26-nav-about { display: none; }
}


/* --------------------------------------------------------------------------
   4. Hamburger (animated icon - no Bootstrap equivalent)
   -------------------------------------------------------------------------- */

.otb26-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    width: 36px;
    height: 36px;
}

.otb26-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    position: absolute;
    left: 7px;
    transition: transform 0.3s, opacity 0.3s;
}

.otb26-hamburger span:nth-child(1) { top: 10px; }
.otb26-hamburger span:nth-child(2) { top: 17px; }
.otb26-hamburger span:nth-child(3) { top: 24px; }

.otb26-hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 17px; }
.otb26-hamburger.open span:nth-child(2) { opacity: 0; }
.otb26-hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 17px; }


/* --------------------------------------------------------------------------
   5. Mobile menu (full-screen overlay - no Bootstrap equivalent)
   -------------------------------------------------------------------------- */

.otb26-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1029;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.otb26-mobile-menu.open {
    display: flex;
}

.otb26-mobile-link {
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.active .otb26-mobile-link,
.otb26-mobile-link:hover {
    color: var(--otb26-primary) !important;
}


/* --------------------------------------------------------------------------
   6. Hero split (50/50 layout)
   -------------------------------------------------------------------------- */

.otb26-hero-content-inner {
    max-width: 600px;
}

/* Left padding that matches Bootstrap container edge */
.otb26-hero-container-pad {
    padding-left: 1rem;
}

@media (min-width: 768px) {
    .otb26-hero-container-pad { padding-left: calc((100vw - 720px) / 2 + 0.75rem); }
}
@media (min-width: 992px) {
    .otb26-hero-container-pad { padding-left: calc((100vw - 960px) / 2 + 0.75rem); }
}
@media (min-width: 1200px) {
    .otb26-hero-container-pad { padding-left: calc((100vw - 1140px) / 2 + 0.75rem); }
}
@media (min-width: 1400px) {
    .otb26-hero-container-pad { padding-left: calc((100vw - 1320px) / 2 + 0.75rem); }
}
/* When hero is capped at 1440px, use fixed padding */
@media (min-width: 1440px) {
    .otb26-hero-container-pad { padding-left: calc((1440px - 1320px) / 2 + 0.75rem); }
}

.otb26-hero-h1 {
    font-size: 3.4rem;
    line-height: 1.1;
}

.otb26-hero-text {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #000;
}

.otb26-hero-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

@media (min-width: 992px) {
    .otb26-hero-content { flex: 0 0 50%; max-width: 50%; }
    .otb26-hero-image   { flex: 0 0 50%; max-width: 50%; }
    .otb26-hero         { min-height: 520px; }
}

@media (max-width: 991.98px) {
    .otb26-hero-image { order: -1; }
    .otb26-hero-content-inner { margin: 0 auto; }
    .otb26-hero-h1 { font-size: 2.4rem; }
}


/* --------------------------------------------------------------------------
   7. Hero full-bleed
   -------------------------------------------------------------------------- */

.otb26-hero-full {
    min-height: 520px;
    background-size: cover;
    background-position: center;
}

.otb26-hero-full-overlay {
    background: linear-gradient(to top, rgba(30,30,30,0.95) 0%, rgba(30,30,30,0.85) 60%, transparent 100%);
}

@media (max-width: 991.98px) {
    .otb26-hero-full { min-height: 400px; }
}

/* Case Studies hero sizing */
.otb26-hero-cs { min-height: 560px; }
.otb26-hero-cs > .container { min-height: 560px; }
.otb26-hero-cs-h1 { font-size: 3.2rem; }
.otb26-hero-cs-p { font-size: 1.05rem; }

/* Smaller laptops / tablets landscape */
@media (max-width: 1199.98px) {
    .otb26-hero-cs,
    .otb26-hero-cs > .container { min-height: 420px; }
    .otb26-hero-cs-h1 { font-size: 2.6rem; }
}

/* Tablets portrait and below */
@media (max-width: 991.98px) {
    .otb26-hero-cs,
    .otb26-hero-cs > .container { min-height: 380px; }
    .otb26-hero-cs-h1 { font-size: 2.2rem; }
    .otb26-hero-cs-p { font-size: 0.95rem; }
}

/* Mobile */
@media (max-width: 575.98px) {
    .otb26-hero-cs,
    .otb26-hero-cs > .container { min-height: 400px; }
    .otb26-hero-cs-h1 { font-size: 2rem; }
}


/* --------------------------------------------------------------------------
   8. Stats bar (brand colour on numbers)
   -------------------------------------------------------------------------- */

.otb26-stats {
    background-color: #333333;
}

.otb26-stat-number {
    color: #fff; /*var(--otb26-primary);*/
}


/* --------------------------------------------------------------------------
   9. Service cards
   -------------------------------------------------------------------------- */

.otb26-card-img {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.otb26-card-img-tall {
    height: 280px;
}

.otb26-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--otb26-primary);
    margin-bottom: 6px;
}

/* Clickable card wrapper — use as <a> around a card */
.otb26-card-clickable {
    color: inherit !important;
    text-decoration: none !important;
    display: block;
}

.otb26-card-link {
    color: var(--otb26-primary) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.otb26-card-link:hover {
    color: var(--otb26-primary-hover) !important;
}

/* Case study index cards */
.otb26-cs-card {
    background: #f0f0f0;
    transition: box-shadow 0.3s, transform 0.3s;
}

.otb26-cs-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.otb26-cs-card-img {
    height: 260px;
    background-size: cover;
    background-position: center;
}

/* Case study detail page — hero */
.otb26-cs-hero {
    background-size: cover;
    background-position: center;
}

.otb26-cs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
}

/* Case study detail page — quote block override */
.otb26-case-study .blockQuote {
    background: #f5f0eb;
    border-left: 4px solid var(--otb26-primary);
    border-radius: 6px;
    padding: 2rem 2.5rem;
    margin: 2rem 0;
}

.otb26-case-study .blockQuote .quote {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

.otb26-case-study .blockQuote .quote-arrow {
    display: none;
}

.otb26-case-study .blockQuote .source {
    font-weight: 700;
    color: var(--otb26-primary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.otb26-case-study .blockQuote .attribute {
    color: #666;
    font-size: 0.9rem;
}

/* Case study detail page — rich text & headings */
.otb26-case-study .blockRichText {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin: 1.5rem 0;
}

.otb26-case-study .blockRichText h3,
.otb26-case-study .blockRichText h2 {
    font-weight: 700;
    color: #222;
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.otb26-case-study .blockImage {
    margin: 2rem 0;
}

.otb26-case-study .blockSplitComponent {
    margin: 2rem 0;
    --bs-gutter-x: 0.5rem;
}

.otb26-case-study .blockSplitComponent .blockImage {
    margin: 0;
}

.otb26-case-study .blockSplitComponent .blockImage img {
    border-radius: 6px;
}

/* Case study detail page — gallery grid */
.otb26-cs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.otb26-cs-gallery-item {
    height: 240px;
    display: block;
    overflow: hidden;
}

.otb26-cs-gallery-wide {
    grid-column: span 2;
}

@media (max-width: 576px) {
    .otb26-cs-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .otb26-cs-gallery-wide {
        grid-column: span 2;
    }
    .otb26-cs-gallery-item {
        height: 180px;
    }
}


/* --------------------------------------------------------------------------
   10. Dark section (reusable dark-background block)
   -------------------------------------------------------------------------- */

.otb26-dark-section {
    background-color: #2b2b2b;
}

.otb26-dark-section a {
    color: var(--otb26-primary) !important;
}

.otb26-dark-section a:hover {
    color: var(--otb26-primary-hover) !important;
}

.otb26-dark-section .otb26-btn-primary,
.otb26-dark-section .otb26-btn-primary:hover {
    color: #fff !important;
}


/* --------------------------------------------------------------------------
   11. Before / After comparison slider
   -------------------------------------------------------------------------- */

.otb26-compare {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    cursor: ew-resize;
}

.otb26-compare img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.otb26-compare-after,
.otb26-compare-before {
    max-height: 420px;
}

.otb26-compare-after {
    height: 420px;
}

.otb26-compare-after {
    position: relative;
}

.otb26-compare-before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
}

.otb26-compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.otb26-compare-line {
    flex: 1;
    width: 3px;
    background: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.otb26-compare-grip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}

.otb26-compare-label {
    position: absolute;
    bottom: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 1;
}

.otb26-compare-label-before { left: 12px; }
.otb26-compare-label-after  { right: 12px; }


/* --------------------------------------------------------------------------
   12. Jump navigation (sticky section nav)
   -------------------------------------------------------------------------- */

/* --- Sticky behaviour (shared by jump nav and section nav) --- */

.otb26-jump-nav.stuck,
.otb26-section-nav.stuck {
    position: fixed;
    /* top is set dynamically by JS to sit below the header */
    left: 0;
    right: 0;
    z-index: 1020;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* --- Jump link pills (row 2 / standalone) --- */

.otb26-jump-link {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 13px;
    font-weight: 500;
    color: #555 !important;
    text-decoration: none !important;
    transition: all 0.2s;
    white-space: nowrap;
}

.otb26-jump-link:hover {
    border-color: var(--otb26-primary);
    color: var(--otb26-primary) !important;
}

.otb26-jump-link.active {
    background-color: var(--otb26-primary);
    border-color: var(--otb26-primary);
    color: #fff !important;
}

@media (max-width: 767px) {
    .otb26-jump-nav {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    .otb26-jump-nav .container {
        gap: 0.25rem !important;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    .otb26-jump-nav .otb26-jump-link {
        font-size: 10px;
        padding: 3px 8px;
        border-radius: 14px;
    }
}

/* --- Two-layer section navigation --- */

.otb26-section-nav {
    position: relative;
    z-index: 2;
}

.otb26-section-nav-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.otb26-section-nav-row::-webkit-scrollbar {
    display: none;
}

/* Row 1: section pages — slightly darker neutral grey */
.otb26-section-nav-row--sections {
    background: #e6e6e6;
    border-bottom: 1px solid #d0d0d0;
}

/* Row 2: jump links — lighter to show hierarchy */
.otb26-section-nav-row--jump {
    background: #efefef;
    border-bottom: 1px solid #d0d0d0;
}

.otb26-section-nav-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.otb26-section-nav-label--jump {
    font-size: 0.65rem;
    color: #aaa;
}

.otb26-section-nav-sep {
    display: inline-flex;
    align-items: center;
    color: #bbb;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.otb26-section-links {
    display: flex;
    gap: 0.15rem;
    flex-wrap: nowrap;
    align-items: center;
}

/* Shared link base for both rows */
.otb26-section-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #777 !important;
    text-decoration: none !important;
    white-space: nowrap;
    border: none;
    border-radius: 0;
    background: none;
    transition: color 0.2s;
}

.otb26-section-link:hover {
    color: #555 !important;
}

/* Row 1 active: bold dark grey + pink underline via ::after */
.otb26-section-nav-row--sections .otb26-section-link.active {
    position: relative;
    color: #555 !important;
    font-weight: 700;
}

.otb26-section-nav-row--sections .otb26-section-link.active::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 3px;
    background: var(--otb26-primary);
    border-radius: 2px 2px 0 0;
}

/* Jump links inside section nav — override pill defaults */
.otb26-jump-link.otb26-section-link {
    border: none;
    border-radius: 0;
    background: none;
    padding: 10px 10px;
    font-size: 0.85rem;
    color: #777 !important;
}

.otb26-jump-link.otb26-section-link:hover {
    background: none;
    color: #555 !important;
}

/* Row 2 active: bold + pink text, no underline */
.otb26-section-nav-row--jump .otb26-section-link.active {
    color: var(--otb26-primary) !important;
    font-weight: 700;
}

/* --- Gallery browse bar (row 2 on GalleryDetail) --- */

.otb26-gallery-browse-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 30px 4px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #444;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 10px 6px;
    min-width: 180px;
    max-width: 300px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1.4;
}

.otb26-gallery-browse-select:focus {
    outline: 2px solid var(--otb26-primary);
    outline-offset: 1px;
    border-color: var(--otb26-primary);
}

.otb26-gallery-browse-all {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #999 !important;
    text-decoration: none !important;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.otb26-gallery-browse-all:hover {
    color: var(--otb26-primary) !important;
}

/* Responsive: compact on small screens */
@media (max-width: 767.98px) {
    .otb26-section-nav-row .container {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .otb26-section-nav-row .container::-webkit-scrollbar {
        display: none;
    }
    .otb26-section-link,
    .otb26-jump-link.otb26-section-link {
        font-size: 0.75rem;
        padding: 8px 8px;
    }
    .otb26-gallery-browse-select {
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
    }
    .otb26-gallery-browse-quick {
        display: none;
    }
}


/* --------------------------------------------------------------------------
   13. Principle cards & carousel
   -------------------------------------------------------------------------- */

.otb26-principle-card {
    background-color: #353535;
    border: 1px solid #444;
    min-height: 160px;
}

.otb26-principle-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--otb26-primary);
    line-height: 1;
}

/* Splide arrows on dark sections */
.otb26-dark-section .splide__arrow {
    background: rgba(255,255,255,0.1);
    opacity: 1;
}

.otb26-dark-section .splide__arrow svg {
    fill: #fff;
}

.otb26-dark-section .splide__arrow:hover {
    background: rgba(255,255,255,0.2);
}

#principles-carousel .splide__arrow--prev { left: -1.5rem; }
#principles-carousel .splide__arrow--next { right: -1.5rem; }


/* --------------------------------------------------------------------------
   13. Footer (dark theme overrides)
   -------------------------------------------------------------------------- */

.otb26-footer {
    background-color: #2b2b2b;
    color: #ccc;
    border-top: 4px solid var(--otb26-primary);
}

.otb26-footer h4 { color: #fff; }

.otb26-footer a { color: #ccc !important; transition: color 0.2s; }
.otb26-footer a:hover { color: #fff !important; }

.otb26-footer hr { border-color: rgba(255,255,255,0.1); }

.otb26-footer .copyright {
    background-color: #222;
    color: #888;
}

.otb26-footer .copyright a { color: #888 !important; display: inline; }
.otb26-footer .copyright a:hover { color: #fff !important; }


/* --------------------------------------------------------------------------
   10. Logo
   -------------------------------------------------------------------------- */

.otb26-logo img {
    height: 42px;
    width: auto;
    position: relative;
    top: 3px;
}

@media (max-width: 991.98px) {
    .otb26-logo img { height: 30px; }
}


/* --------------------------------------------------------------------------
   14. Breadcrumb (tag-style pills)
   -------------------------------------------------------------------------- */

.otb26-breadcrumb,
.otb26-breadcrumb .breadcrumb-item,
.otb26-breadcrumb .breadcrumb-item a {
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

    .otb26-breadcrumb .breadcrumb-item a {
        color: #999 !important;
        text-decoration: none !important;
    }

.otb26-breadcrumb .breadcrumb-item a:hover {
    color: var(--otb26-primary-hover) !important;
}

.otb26-breadcrumb .breadcrumb-item.active {
    color: #999;
}

.otb26-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #aaa;
}


/* --------------------------------------------------------------------------
   15. Interior Design principle cards (gradient-bar grid)
   -------------------------------------------------------------------------- */

.otb26-id-principle-card {
    background-color: #353535;
    border: 1px solid #444;
    position: relative;
    overflow: hidden;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.otb26-id-principle-bar {
    height: 4px;
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* Inset shadow overlay for white-edged images */
.otb26-inset-shadow {
    position: relative;
}
.otb26-inset-shadow::after,
.otb26-inset-shadow-strong::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.15);
    border-radius: inherit;
    pointer-events: none;
}
.otb26-inset-shadow-strong { position: relative; }
.otb26-inset-shadow-strong::after {
    box-shadow: inset 0 0 40px rgba(0,0,0,0.3);
}

/* Theme tag pills (gallery cross-link) */
.otb26-theme-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid #c5c0b8;
    background: #fff;
    color: #666 !important;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: border-color 0.2s, color 0.2s;
}
.otb26-theme-pill:hover {
    border-color: var(--otb26-primary);
    color: var(--otb26-primary) !important;
}
@media (max-width: 767px) {
    .otb26-theme-pill {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* "Also in Library Design" section-switcher cards */
.otb26-also-in {
    background: #fff;
}

.otb26-also-in-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #999;
    border-bottom: 3px solid var(--otb26-primary);
    padding-bottom: 0.75rem;
}

.otb26-also-in-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.otb26-also-in-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.otb26-also-in-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #999;
    margin-bottom: 0.5rem;
}

.otb26-also-in-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.otb26-also-in-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.otb26-also-in-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--otb26-primary);
}

.otb26-also-in-card:hover .otb26-also-in-link {
    color: var(--otb26-primary-hover);
}


/* --------------------------------------------------------------------------
   16. FAQ accordion (brand-coloured active state)
   -------------------------------------------------------------------------- */

.otb26-accordion .accordion-button {
    font-size: 1.05rem;
    color: #222;
}

.otb26-accordion .accordion-button:not(.collapsed) {
    color: #fff !important;
    background-color: #2b2b2b !important;
    box-shadow: none;
}

.otb26-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.otb26-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}


/* --------------------------------------------------------------------------
   17. Reading for Pleasure — hero collage grid
   -------------------------------------------------------------------------- */

.otb26-rfp-collage-wrap {
    background-color: #1a0a14;
    overflow: hidden;
}

.otb26-rfp-collage {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 100%;
    gap: 3px;
    opacity: 0.75;
}

.otb26-rfp-collage > div {
    min-height: 80px;
}

/* --------------------------------------------------------------------------
   9. Timeline (otb26Timeline block)

   Lifted out of Views/Partials/Blocks/blockTimeline/blockTimelineOTBAbout.cshtml,
   where ~250 lines of CSS sat inline in the Razor and were re-emitted on every
   render, plus a second fragment that lived in a `blockCode` CONTENT block an
   editor could break by accident. Prefixed otb26- so the legacy .main-timeline
   markup keeps working untouched.
   -------------------------------------------------------------------------- */

.otb26-timeline {
    position: relative;
}

.otb26-timeline:before {
    content: "";
    display: block;
    width: 2px;
    height: 100%;
    background: #c6c6c6;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.otb26-timeline-entry {
    margin-bottom: 40px;
    position: relative;
}

.otb26-timeline-entry:after {
    content: "";
    display: block;
    clear: both;
}

.otb26-timeline-date {
    width: 50%;
    float: left;
    margin-top: 22px;
    position: relative;
}

.otb26-timeline-date:before {
    content: "";
    width: 36.5%;
    height: 2px;
    background: #c6c6c6;
    margin: auto 0;
    position: absolute;
    top: 0;
    right: 10px;
    bottom: 0;
}

.otb26-timeline-marker {
    width: 125px;
    height: 125px;
    font-size: 16px;
    text-align: center;
    margin: auto;
    z-index: 1;
}

.otb26-timeline-marker:before {
    content: "";
    width: 125px;
    height: 125px;
    margin: 0 auto;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #d6264e;
}

.otb26-timeline-year {
    width: 100%;
    margin: auto;
    position: absolute;
    top: 33%;
    left: 0;
    color: #fff;
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
}

/* Long labels such as "2025-2026" shrink on their own - the old block made the
   editor tick a "use small year text" box to do this by hand. */
.otb26-timeline-year--long {
    font-size: 0.7em;
}

.otb26-timeline-body {
    width: 50%;
    padding: 20px 0 20px 50px;
    float: right;
}

.otb26-timeline-eyebrow {
    text-transform: uppercase;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.otb26-timeline-title {
    color: #d6264e;
    font-size: 19px;
    font-weight: 700;
    line-height: 24px;
    margin: 0 0 15px 0;
}

.otb26-timeline-text {
    margin-bottom: 0;
}

.otb26-timeline-entry:nth-child(2n) .otb26-timeline-date {
    float: right;
}

.otb26-timeline-entry:nth-child(2n) .otb26-timeline-date:before {
    left: 10px;
}

.otb26-timeline-entry:nth-child(2n) .otb26-timeline-body {
    padding: 20px 50px 20px 0;
    text-align: right;
}

/* Zoom cue on the thumbnails - this used to live in a `blockCode` block. */
.otb26-timeline .glightbox .overlay {
    opacity: 1;
    position: absolute;
    right: 0;
    bottom: 0;
    background-image: url(/media/tqxbvklc/image-zoom-icon.png);
    width: 50px;
    height: 50px;
}

@media only screen and (max-width: 991px) {
    .otb26-timeline-date { margin-top: 35px; }
    .otb26-timeline-date:before { width: 22.5%; }
    .otb26-timeline-body { padding: 10px 0 10px 30px; }
    .otb26-timeline-title { font-size: 17px; }
    .otb26-timeline-entry:nth-child(2n) .otb26-timeline-body { padding: 10px 30px 10px 0; }
}

@media only screen and (max-width: 767px) {
    .otb26-timeline:before { margin: 0; left: 7px; }
    .otb26-timeline-entry { margin-bottom: 20px; }
    .otb26-timeline-entry:last-child { margin-bottom: 0; }
    .otb26-timeline-date { width: 95%; float: right; margin-top: 0; }
    .otb26-timeline-date:before { display: none; }
    .otb26-timeline-marker,
    .otb26-timeline-marker:before { width: 110px; height: 110px; }
    .otb26-timeline-year { top: 30%; font-size: 24px; }
    .otb26-timeline-body,
    .otb26-timeline-entry:nth-child(2n) .otb26-timeline-body {
        width: 95%;
        text-align: center;
        padding: 10px 0;
    }
    .otb26-timeline-title { margin-bottom: 10px; }
}

/* --------------------------------------------------------------------------
   10. Publications (otb26PublicationGrid / otb26Publication)

   Book covers are a mix of portrait fronts and wide front-and-back spreads, so
   they are fitted with object-fit: contain on a neutral panel rather than
   cropped with background-size: cover the way the case-study cards are - a
   crop would slice the titles off.
   -------------------------------------------------------------------------- */

.otb26-pub-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s, transform 0.3s;
}

.otb26-pub-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.otb26-pub-card-img {
    height: 240px;
    background: #f5f3ef;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.otb26-pub-card-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* Keeps the cards level when one publication has a much longer summary than
   the others - previously a three-line card sat next to a fifteen-line one. */
.otb26-pub-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- detail page --- */

.otb26-publication-cover {
    background: #f5f3ef;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: block;
}

.otb26-publication-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.otb26-publication-order {
    background: #f5f3ef;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
}

.otb26-publication-order ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.otb26-publication-order li + li {
    margin-top: 0.5rem;
}

.otb26-publication-order li a {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    font-weight: 500;
    text-decoration: none;
}

.otb26-publication-order li a:before {
    content: "\2192";
    color: var(--otb26-primary);
}

/* Body rhythm: the descriptions are long, list-heavy and quote-heavy. */
.otb26-publication-body p { line-height: 1.75; }
.otb26-publication-body ul { padding-left: 1.1rem; margin-bottom: 1.25rem; }
.otb26-publication-body li { margin-bottom: 0.4rem; line-height: 1.7; }

/* Editors can turn a review into a real pull quote by choosing the blockquote
   style in the rich-text editor; the existing ones are plain paragraphs. */
.otb26-publication-body blockquote {
    border-left: 3px solid var(--otb26-primary);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

@media (min-width: 992px) {
    /* The cover column is much shorter than the text on most of these pages,
       so let it follow the reader down instead of leaving a long empty gutter. */
    .otb26-publication-aside {
        position: sticky;
        top: 6rem;
    }
}

/* --------------------------------------------------------------------------
   11. Blog (otb26BlogRoll / otb26BlogFigure / otb26BlogText / the post page)

   The posts are photo essays, so the pictures get the room and the prose is
   capped at a reading measure rather than running the full container width.
   -------------------------------------------------------------------------- */

/* --- index --- */

.otb26-blog-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s, transform 0.3s;
}

.otb26-blog-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.otb26-blog-card-img {
    aspect-ratio: 20 / 13;
    overflow: hidden;
    background: #f5f3ef;
}

.otb26-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.otb26-blog-card:hover .otb26-blog-card-img img {
    transform: scale(1.03);
}

/* Keeps the cards level: one legacy summary runs to fifteen lines and another
   to three, which is what made the old four-column grid so ragged. */
.otb26-blog-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.otb26-blog-meta {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #777;
}

/* --- post page --- */

.otb26-post-hero {
    max-height: 460px;
    overflow: hidden;
    background: #f5f3ef;
}

.otb26-post-hero img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.otb26-post-head {
    max-width: 46em;
    margin: 2.5rem auto 0;
}

.otb26-post-title {
    color: var(--otb26-primary);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.otb26-post-standfirst {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0;
}

.otb26-post-body {
    max-width: 46em;
    margin: 2rem auto 0;
}

/* Prose sits at the reading measure; a full-width figure is allowed to break
   out of it, because in a photo essay the picture is the content. */
.otb26-blog-text {
    margin-bottom: 1.5rem;
}

.otb26-blog-text p {
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

.otb26-blog-text ul,
.otb26-blog-text ol {
    padding-left: 1.1rem;
    margin-bottom: 1.25rem;
}

.otb26-blog-text li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.otb26-blog-text blockquote {
    border-left: 3px solid var(--otb26-primary);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

.otb26-blog-figure {
    margin: 0 0 2rem;
}

.otb26-blog-figure-narrow {
    max-width: 30em;
    margin-left: auto;
    margin-right: auto;
}

.otb26-blog-figure-link {
    display: block;
    background: #f5f3ef;
    border-radius: 0.5rem;
    overflow: hidden;
}

.otb26-blog-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.otb26-blog-caption {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #555;
    padding-top: 0.75rem;
}

.otb26-blog-caption p:last-child {
    margin-bottom: 0;
}

.otb26-post-foot {
    max-width: 46em;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.otb26-post-tags .otb26-card-tag {
    margin-right: 0.5rem;
}

.otb26-post-back {
    font-weight: 500;
    text-decoration: none;
    color: var(--otb26-primary);
}

.otb26-post-back:hover {
    color: var(--otb26-primary-hover);
    text-decoration: underline;
}

@media (min-width: 992px) {
    /* Let a full-width figure spill past the 46em prose column. */
    .otb26-post-body .otb26-blog-figure:not(.otb26-blog-figure-narrow) {
        width: 116%;
        margin-left: -8%;
    }
}

.otb26-post-more {
    background: #f5f3ef;
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.otb26-post-more-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--otb26-primary);
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   12. Contact form (otb26ContactForm)

   The form used to sit in a half-width column beside a full-height photo that
   was rendered as an empty background-image div. Six full-width inputs stacked
   down a narrow column, the heading and standfirst crammed in above them, and
   the only contact detail on the page was a phone number mid-sentence.
   -------------------------------------------------------------------------- */

.otb26-contact-head {
    max-width: 46em;
    margin-bottom: 2rem;
}

.otb26-contact-title {
    color: var(--otb26-primary);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.otb26-contact-intro {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0;
}

/* --- the form itself --- */

.otb26-form-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 1.75rem;
}

@media (min-width: 768px) {
    .otb26-form-card { padding: 2.25rem; }
}

.otb26-contact-form .form-label {
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #333;
}

.otb26-contact-form .form-control,
.otb26-contact-form .form-select {
    padding: 0.65rem 0.85rem;
    border-color: rgba(0, 0, 0, 0.18);
    border-radius: 0.375rem;
}

.otb26-contact-form .form-control:focus,
.otb26-contact-form .form-select:focus {
    border-color: var(--otb26-primary);
    box-shadow: 0 0 0 0.2rem rgba(236, 38, 105, 0.15);
}

.otb26-contact-form .form-text {
    font-size: 0.85rem;
    color: #6b6b6b;
}

/* Consent read as a stray line of text followed by an unrelated checkbox. */
.otb26-form-consent {
    background: #f5f3ef;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.375rem;
    padding: 1rem 1.15rem;
    margin-top: 0.5rem;
}

.otb26-form-consent-heading {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.otb26-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.otb26-form-submit {
    padding: 0.7rem 2.25rem;
    font-weight: 600;
    border-radius: 0.375rem;
}

.otb26-form-note {
    font-size: 0.9rem;
    color: #6b6b6b;
}

/* --- the panel beside it --- */

.otb26-contact-panel {
    background: #f5f3ef;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.otb26-contact-details {
    margin-top: 0.85rem;
    line-height: 1.7;
    color: #444;
}

.otb26-contact-details p { margin-bottom: 0.85rem; }
.otb26-contact-details p:last-child { margin-bottom: 0; }

.otb26-contact-details a {
    color: var(--otb26-primary);
    font-weight: 500;
    text-decoration: none;
}

.otb26-contact-details a:hover {
    color: var(--otb26-primary-hover);
    text-decoration: underline;
}

.otb26-contact-image {
    border-radius: 0.5rem;
    overflow: hidden;
}

.otb26-contact-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 992px) {
    /* The form is much taller than the panel, so let the panel follow the
       reader rather than leaving a long empty gutter. */
    .otb26-contact-aside {
        position: sticky;
        top: 6rem;
    }
}

/* --------------------------------------------------------------------------
   13. Policy pages (otb26PolicyPage / otb26PolicySection)

   Privacy, Terms, Ordering, Accessibility Statement. Dense legal copy, so the
   priorities are a readable measure, headings you can actually see, and a way
   to link to a clause.
   -------------------------------------------------------------------------- */

.otb26-policy {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.otb26-policy-doc {
    /* The old template let this run the full 8-column width, which at 1440px
       is well over 100 characters a line. */
    max-width: 44em;
}

.otb26-policy-head {
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--otb26-primary);
}

.otb26-policy-title {
    color: var(--otb26-primary);
    font-weight: 700;
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.otb26-policy-standfirst {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0;
}

/* --- sections --- */

.otb26-policy-section + .otb26-policy-section {
    margin-top: 2.5rem;
}

.otb26-policy-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.85rem;
    scroll-margin-top: 6rem;   /* the header is sticky; without this a jump link hides the heading under it */
}

.otb26-policy-body p {
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

.otb26-policy-body ul,
.otb26-policy-body ol {
    padding-left: 1.2rem;
    margin-bottom: 1.25rem;
}

.otb26-policy-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.otb26-policy-body a {
    color: var(--otb26-primary);
    text-decoration: underline;
}

.otb26-policy-body a:hover { color: var(--otb26-primary-hover); }

/* Any headings left inside a section body sit below the section heading. */
.otb26-policy-body h3,
.otb26-policy-body h4,
.otb26-policy-body h5,
.otb26-policy-body h6 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}

/* --- the side column --- */

.otb26-policy-nav {
    background: #f5f3ef;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.5rem;
}

/* The shared customNavigation partial renders a Bootstrap list-group; strip it
   back so it reads as a sidebar rather than a stack of white cards. */
.otb26-policy-nav .list-group,
.otb26-policy-nav .list-group-item {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}

.otb26-policy-nav .list-group-item + .list-group-item {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.otb26-policy-nav .list-group-item a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
}

.otb26-policy-nav .list-group-item a:hover { color: var(--otb26-primary); }

.otb26-policy-nav .list-group-item.active {
    background: transparent;
    border-left: 3px solid var(--otb26-primary);
    padding-left: 0.6rem;
}

.otb26-policy-nav .list-group-item.active a {
    color: var(--otb26-primary);
    font-weight: 600;
}

.otb26-policy-contents {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 1.15rem 1.25rem;
}

.otb26-policy-contents ol {
    list-style: none;
    counter-reset: otb26-toc;
    padding-left: 0;
    margin: 0.85rem 0 0;
}

.otb26-policy-contents li {
    counter-increment: otb26-toc;
    margin-bottom: 0.55rem;
    line-height: 1.4;
}

.otb26-policy-contents li:last-child { margin-bottom: 0; }

.otb26-policy-contents li:before {
    content: counter(otb26-toc) ".";
    color: var(--otb26-primary);
    font-weight: 600;
    margin-right: 0.4rem;
}

.otb26-policy-contents a {
    color: #333;
    text-decoration: none;
    font-size: 0.92rem;
}

.otb26-policy-contents a:hover {
    color: var(--otb26-primary);
    text-decoration: underline;
}

@media (min-width: 992px) {
    .otb26-policy-side {
        position: sticky;
        top: 6rem;
    }
}
