/*
 * Appearance family: documentary-case-study
 * Source of truth: css/colour-review-documentary.css
 * Owner: the documentary-case-study appearance writer.
 * Loaded automatically by inc/appearance-route-loader.php.
 *
 * The pilot rules below stay scoped to postid-995 (Ascension). The family
 * extension after them covers every single-documentaries rendering path:
 * the consolidated editorial template, six per-film editorial variants and
 * the older ACF template. Only this file is edited by this family's owner.
 */

/*
 * Documentary route colour review.
 *
 * Every rule is scoped to postid-995, the Ascension case study, so the shared
 * documentary navigation, footer and appearance control are untouched on the
 * other single-documentaries pages that load this file.
 */

/* Light: secondary text stays legible against white and the contact panel. */
body.postid-995 .doc-story .doc-story__figure figcaption,
body.postid-995 .doc-story .doc-story__facts dt,
body.postid-995 .doc-story .doc-story__eyebrow,
body.postid-995 .doc-story .doc-story__contents span {
    color: #6c6c6c;
}

body.postid-995 .doc-story .doc-story__contact p,
body.postid-995 .doc-story .doc-story__contact .doc-story__role-line,
body.postid-995 .doc-story .doc-story__contact .doc-story__eyebrow {
    color: #4f4f4f;
}

body.postid-995 .doc-story .doc-story__enquiry,
body.postid-995 .doc-story .doc-story__text-link {
    color: #373737;
}

body.postid-995 .doc-story .doc-story__enquiry:focus-visible,
body.postid-995 .doc-story .doc-story__text-link:focus-visible {
    outline: 2px solid #373737;
    outline-offset: 3px;
}

body.postid-995 #header .nav-links .sub-menu,
body.postid-995 #header .nav-links .sub-menu li {
    background: #ffffff;
    border-color: #d8d8d8;
    color: #373737;
}

body.postid-995 #header .nav-links .sub-menu a {
    background: #ffffff;
    border-color: #d8d8d8;
    color: #373737;
}

body.postid-995 #header .nav-links .sub-menu a:hover,
body.postid-995 #header .nav-links .sub-menu a:focus-visible {
    background: #f7f7f7;
    color: #121212;
}

body.postid-995 #header .nav-links .sub-menu a:focus-visible {
    outline: 2px solid #373737;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    body.postid-995 .doc-story .doc-story__figure {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__contact {
    background: #1c1c1c;
    color: #e4e4e4;
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__contact p,
:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__contact .doc-story__eyebrow,
:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__contact .doc-story__role-line {
    color: #bcbcbc;
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__contact .doc-story__enquiry,
:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__text-link {
    color: #f5f5f5;
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__enquiry:focus-visible,
:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__text-link:focus-visible {
    outline-color: #ffffff;
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__contact .doc-story__enquiry {
    border-color: #4a4a4a;
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__figure figcaption,
:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__eyebrow,
:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__contents span {
    color: #9a9a9a;
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-editorial__timeline li {
    border-color: #4a4a4a;
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-editorial__timeline li::before {
    background-color: #4a4a4a;
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-editorial__timeline li h3 {
    color: #f5f5f5;
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-editorial__timeline li p {
    color: #bcbcbc;
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__facts {
    border-color: #2c2c2c;
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__contents {
    border-bottom-color: #2c2c2c;
}

:root[data-afilms-scheme="dark"] body.postid-995 .doc-story .doc-story__facts dt {
    color: #9a9a9a;
}

:root[data-afilms-scheme="dark"] body.postid-995 #header .nav-links .sub-menu,
:root[data-afilms-scheme="dark"] body.postid-995 #header .nav-links .sub-menu li {
    background: #1c1c1c;
    border-color: #4a4a4a;
    color: #e4e4e4;
}

:root[data-afilms-scheme="dark"] body.postid-995 #header .nav-links .sub-menu a {
    background: #1c1c1c;
    border-color: #4a4a4a;
    color: #e4e4e4;
}

:root[data-afilms-scheme="dark"] body.postid-995 #header .nav-links .sub-menu a:hover,
:root[data-afilms-scheme="dark"] body.postid-995 #header .nav-links .sub-menu a:focus-visible {
    background: #2c2c2c;
    color: #ffffff;
}

:root[data-afilms-scheme="dark"] body.postid-995 #header .nav-links .sub-menu a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

:root[data-afilms-scheme="dark"] body.postid-995 > .talk[style*="background:white"] {
    background-color: #121212 !important;
}

:root[data-afilms-scheme="dark"] body.postid-995 .talk .social-title,
:root[data-afilms-scheme="dark"] body.postid-995 .talk .social-link.smallest {
    color: #e4e4e4;
}

:root[data-afilms-scheme="dark"] body.postid-995 .talk .social-link.smallest:hover,
:root[data-afilms-scheme="dark"] body.postid-995 .talk .social-link.smallest:focus-visible {
    color: #ffffff;
}

:root[data-afilms-scheme="dark"] body.postid-995 .talk-grid.bbottom {
    border-bottom-color: #2c2c2c;
}

:root[data-afilms-scheme="dark"] body.postid-995 .afilms-colour-scheme-label,
:root[data-afilms-scheme="dark"] body.postid-995 .afilms-colour-scheme-status {
    color: #bcbcbc;
}

:root[data-afilms-scheme="dark"] body.postid-995 .afilms-colour-scheme-option[aria-pressed="false"] {
    color: #e4e4e4;
}

:root[data-afilms-scheme="dark"] body.postid-995 .afilms-colour-scheme-option[aria-pressed="true"] {
    color: #121212;
}

:root[data-afilms-scheme="dark"] body.postid-995 .afilms-colour-scheme-option:focus-visible {
    outline-color: #ffffff;
}

/* Mobile: the timeline heading carries an explicit break. The consolidated
   layout hides it, which runs "filming" and "and post-production" together. */
@media (max-width: 720px) {
    body.postid-995 .doc-editorial__timeline h2 br {
        display: inline;
    }
}

/* ---- Family extension: all documentary detail layouts ----
 * The editorial variants define opaque light surfaces in their own files.
 * These rules pair those surfaces with a dark canvas and legible muted text
 * without changing the original photographs, film stills or posters.
 */
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story,
:root[data-afilms-scheme="dark"] body.single-documentaries .vc-case,
:root[data-afilms-scheme="dark"] body.single-documentaries .jf-case,
:root[data-afilms-scheme="dark"] body.single-documentaries .ec-case,
:root[data-afilms-scheme="dark"] body.single-documentaries .tc-case,
:root[data-afilms-scheme="dark"] body.single-documentaries .sr-case,
:root[data-afilms-scheme="dark"] body.single-documentaries .batf-case,
:root[data-afilms-scheme="dark"] body.single-documentaries .com-detail-page {
    background: #121212;
    color: #e4e4e4;
}

/* Quiet full-width bands inside each editorial variant. */
:root[data-afilms-scheme="dark"] body.single-documentaries .vc-route,
:root[data-afilms-scheme="dark"] body.single-documentaries .jf-research,
:root[data-afilms-scheme="dark"] body.single-documentaries .ec-research,
:root[data-afilms-scheme="dark"] body.single-documentaries .tc-contributors,
:root[data-afilms-scheme="dark"] body.single-documentaries .sr-gorge,
:root[data-afilms-scheme="dark"] body.single-documentaries .batf-preparation,
:root[data-afilms-scheme="dark"] body.single-documentaries .gw-access,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-edition-f .doc-story__interlude,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-editorial__note,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__contact {
    background: #1c1c1c;
    color: #e4e4e4;
}

/* Muted captions, credits and supporting copy keep their reading rank. */
:root[data-afilms-scheme="dark"] body.single-documentaries figcaption,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__eyebrow,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__original,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__facts dt,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__contents span,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__stills-intro,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__sources p,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-intro-review span,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story .doc-story__recognition,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-editorial__small-label,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-editorial__scope-list p,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-editorial__handover p,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-consolidated .doc-story__contact .doc-story__role-line {
    color: #9a9a9a;
}

:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__contact p,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__contact .doc-story__role-line,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__contact .doc-story__eyebrow,
:root[data-afilms-scheme="dark"] body.single-documentaries .vc-case p,
:root[data-afilms-scheme="dark"] body.single-documentaries .jf-case p,
:root[data-afilms-scheme="dark"] body.single-documentaries .ec-case p,
:root[data-afilms-scheme="dark"] body.single-documentaries .tc-case p,
:root[data-afilms-scheme="dark"] body.single-documentaries .sr-case p,
:root[data-afilms-scheme="dark"] body.single-documentaries .batf-case p,
:root[data-afilms-scheme="dark"] body.single-documentaries .gw-essay p {
    color: #bcbcbc;
}

/* The per-film variants set their fact labels and values in the light palette.
 * Cover the actual dt/dd pairs as well as the shared doc-story labels. */
:root[data-afilms-scheme="dark"] body.single-documentaries :is(.gw-facts,.vc-facts,.jf-facts,.ec-facts,.tc-facts,.sr-facts,.batf-facts,.vc-credits,.jf-credits,.ec-credits,.batf-credits) dt,
:root[data-afilms-scheme="dark"] body.single-documentaries :is(.sr-case,.tc-case,.batf-case) dl:not([class]) dt,
:root[data-afilms-scheme="dark"] body.single-documentaries :is(.sr-case,.tc-case,.batf-case) :is(.sr-more,.tc-more,.batf-more) summary span {
    color: #9a9a9a;
}

:root[data-afilms-scheme="dark"] body.single-documentaries :is(.gw-facts,.vc-facts,.jf-facts,.ec-facts,.tc-facts,.sr-facts,.batf-facts) dd {
    color: #e4e4e4;
}

/* Secondary navigation on The Great Wall uses its own small labels. The
   summary owns the disclosure text and marker; the nested image count alone
   cannot carry its contrast. */
:root[data-afilms-scheme="dark"] body.single-documentaries .gw-contents span,
:root[data-afilms-scheme="dark"] body.single-documentaries .gw-more summary,
:root[data-afilms-scheme="dark"] body.single-documentaries .gw-more summary span,
:root[data-afilms-scheme="dark"] body.single-documentaries .gw-gallery-note {
    color: #9a9a9a;
}

:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__back,
:root[data-afilms-scheme="dark"] body.single-documentaries .gw-contents a,
:root[data-afilms-scheme="dark"] body.single-documentaries .gw-sources a {
    color: #c9c9c9;
}

/* The back link inherits the light focus ring; pair it with the dark canvas. */
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__back:focus-visible,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story a:focus-visible,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-production a:focus-visible,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-production summary:focus-visible {
    outline-color: #ffffff;
}

/* The Great Wall's light composition uses #858585 for its small section
 * numbers; raise that tone on white while keeping the dark value legible. */
body.single-documentaries .gw-contents a span {
    color: #6c6c6c;
}

body.single-documentaries .doc-story__back,
body.single-documentaries .gw-contents a,
body.single-documentaries .gw-sources a,
body.single-documentaries .doc-story__contact .doc-story__text-link {
    color: #6c6c6c;
}

/* Pair ink with surface on the closing enquiry and secondary action. */
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__enquiry,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__text-link {
    color: #f5f5f5;
    border-color: #4a4a4a;
}

:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__enquiry:hover,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__text-link:hover {
    color: #ffffff;
}

:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__enquiry:focus-visible,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__text-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Thin rules and timeline markers stay visible without dominating the copy. */
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__facts,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__contents,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-story__recognition,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-editorial__handover-line,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-editorial__timeline li,
:root[data-afilms-scheme="dark"] body.single-documentaries .doc-editorial__timeline li::before {
    border-color: #4a4a4a;
}

:root[data-afilms-scheme="dark"] body.single-documentaries .doc-editorial__timeline li h3 {
    color: #f5f5f5;
}

:root[data-afilms-scheme="dark"] body.single-documentaries .doc-editorial__timeline li p {
    color: #bcbcbc;
}

/* The per-film layouts paint their own editorial rules. Keep the larger
   section breaks slightly stronger than the detail and related-link rules. */
:root[data-afilms-scheme="dark"] body.single-documentaries :is(
    .gw-continuity, .gw-programme, .gw-credits-section, .gw-more,
    .vc-film-record, .jf-film-record,
    .sr-transport, .sr-sequence, .sr-programme, .sr-more,
    .tc-programme, .batf-plan, .batf-programme, .batf-more
) {
    border-color: #373737;
}

:root[data-afilms-scheme="dark"] body.single-documentaries :is(
    .gw-facts, .vc-facts, .jf-facts, .sr-facts, .ec-facts, .tc-facts, .batf-facts,
    .vc-credits, .jf-credits, .ec-credits, .tc-credits,
    .vc-service-links, .jf-service-links, .ec-service-links, .tc-service-links,
    .sr-credits dl, .batf-credits dl > div:last-child,
    .sr-planning-grid > section, .sr-planning-close,
    .batf-planning-grid > section, .batf-planning-close
) {
    border-color: #303030;
}

/* Inline time and location labels on the editorial variants. */
:root[data-afilms-scheme="dark"] body.single-documentaries .vc-case h2,
:root[data-afilms-scheme="dark"] body.single-documentaries .jf-case h2,
:root[data-afilms-scheme="dark"] body.single-documentaries .ec-case h2,
:root[data-afilms-scheme="dark"] body.single-documentaries .tc-case h2,
:root[data-afilms-scheme="dark"] body.single-documentaries .sr-case h2,
:root[data-afilms-scheme="dark"] body.single-documentaries .batf-case h2,
:root[data-afilms-scheme="dark"] body.single-documentaries .gw-essay h2 {
    color: #f5f5f5;
}

/* Preserve original media: no filters on frames or posters. Narrow screens
   keep full gutters and let every frame scale within the reading column. */
@media (max-width: 767px) {
    body.single-documentaries .doc-story__figure,
    body.single-documentaries .vc-frame,
    body.single-documentaries .jf-frame,
    body.single-documentaries .ec-frame,
    body.single-documentaries .tc-frame,
    body.single-documentaries .sr-frame,
    body.single-documentaries .batf-frame {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
