/* ============================================================
   guide.css - the "Make a Film" section
   ============================================================
   This is long-form reading, which the rest of the site is not, so it
   sets its own measure and rhythm rather than reusing the film-page
   styles. Body text is 18px with a 1.75 line height and a ~68ch measure:
   the section exists to be read start to finish by people who may find
   reading effortful, and dense small type is the fastest way to lose
   them.
   ============================================================ */

/* ---- Hero ---- */
.guide-hero {
    padding: 120px 24px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.guide-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.guide-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #8f8f8f;
    margin-bottom: 14px;
}

.guide-eyebrow a { color: #cfcfcf; text-decoration: none; }
.guide-eyebrow a:hover { color: #fff; text-decoration: underline; }
.guide-eyebrow span { margin: 0 8px; opacity: .5; }

.guide-hero h1 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.5px;
    margin-bottom: 16px;
}

.guide-standfirst {
    font-size: clamp(17px, 2.2vw, 20px);
    line-height: 1.6;
    color: #b9b9b9;
    max-width: 62ch;
}

/* ---- Two column layout ----
   Sidebar is second in the grid on desktop but first in the DOM, so
   keyboard and screen reader users meet the series navigation before a
   long article. On narrow screens it simply stacks in DOM order, which
   is also the order that makes sense there. */
.guide-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 24px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: start;
}

.guide-layout--hub { grid-template-columns: minmax(0, 1fr); }
.guide-layout--hub .guide-body { max-width: 72ch; }

.guide-aside {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 90px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
}

.guide-body { grid-column: 1; grid-row: 1; }

@media (max-width: 900px) {
    .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .guide-aside,
    .guide-body { grid-column: 1; grid-row: auto; }
    .guide-aside { position: static; }
}

.guide-aside-title {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8f8f8f;
    margin-bottom: 14px;
}

/* ---- Step list ---- */
.guide-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.guide-step + .guide-step { margin-top: 4px; }

.guide-step a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #c8c8c8;
    transition: background .18s ease, color .18s ease;
}

.guide-step a:hover,
.guide-step a:focus-visible {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.guide-step.is-current a {
    background: rgba(255, 255, 255, .10);
    color: #fff;
}

.guide-step-num {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 800;
    background: rgba(255, 255, 255, .09);
    color: #d8d8d8;
}

.guide-step.is-current .guide-step-num {
    background: #fff;
    color: #111;
}

.guide-step-text { display: block; min-width: 0; }

.guide-step-title {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
}

.guide-step-blurb {
    display: block;
    font-size: 12.5px;
    line-height: 1.5;
    color: #909090;
    margin-top: 3px;
}

/* On the hub the list is the main event, not a sidebar. */
.guide-layout--hub .guide-steps { margin: 22px 0 40px; }
.guide-layout--hub .guide-step a {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
}
.guide-layout--hub .guide-step + .guide-step { margin-top: 10px; }
.guide-layout--hub .guide-step-title { font-size: 17px; }
.guide-layout--hub .guide-step-blurb { font-size: 14px; }

/* ---- Article body ---- */
.guide-body {
    font-size: 18px;
    line-height: 1.75;
    color: #d2d2d2;
    max-width: 68ch;
}

.guide-body h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.3px;
    color: #fff;
    margin: 44px 0 14px;
}

.guide-body h2:first-child { margin-top: 0; }

.guide-body p { margin: 0 0 18px; }

.guide-lede {
    font-size: 20px;
    line-height: 1.65;
    color: #e6e6e6;
    margin-bottom: 26px;
}

.guide-closing {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    color: #e6e6e6;
}

.guide-body a { color: #9fc6ff; }
.guide-body a:hover { color: #cfe2ff; }

.guide-body strong { color: #fff; font-weight: 700; }

.guide-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .88em;
    background: rgba(255, 255, 255, .08);
    padding: 2px 6px;
    border-radius: 5px;
}

/* ---- Lists ---- */
.guide-list {
    margin: 0 0 22px;
    padding-left: 22px;
}

.guide-list li { margin-bottom: 10px; }
.guide-list--numbered li { margin-bottom: 14px; }

/* ---- Callouts ----
   Colour is never the only signal: each variant has a title that says
   what it is, so the distinction survives greyscale and colour blindness.
   The access variant is visually distinct because those notes are the
   reason this section exists. */
.guide-callout {
    margin: 26px 0;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-left: 4px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .04);
    font-size: 16.5px;
    line-height: 1.7;
}

.guide-callout p:last-child,
.guide-callout ul:last-child { margin-bottom: 0; }

.guide-callout-title {
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.guide-callout ul {
    margin: 0 0 14px;
    padding-left: 20px;
}
.guide-callout li { margin-bottom: 8px; }

.guide-callout--tip {
    border-left-color: #6fb3ff;
    background: rgba(111, 179, 255, .07);
}

.guide-callout--access {
    border-left-color: #7fd6a0;
    background: rgba(127, 214, 160, .07);
}

/* ---- Script sample ---- */
.guide-script-sample {
    margin: 22px 0;
    padding: 20px 22px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .09);
    overflow-x: auto;
}

.guide-script-sample code {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #d8d8d8;
    white-space: pre;
}

/* ---- Checklist ---- */
.guide-checklist {
    margin: 36px 0 10px;
    padding: 22px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
}

.guide-checklist-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #9d9d9d;
    margin-bottom: 14px;
}

.guide-checklist ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 16.5px;
}

.guide-checklist li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Decorative tick. aria-hidden by virtue of being a pseudo-element, so
   screen readers read a plain list, which is what this is. */
.guide-checklist li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .45em;
    width: 14px;
    height: 8px;
    border-left: 2.5px solid #7fd6a0;
    border-bottom: 2.5px solid #7fd6a0;
    transform: rotate(-45deg);
}

/* ---- Prev / next ---- */
.guide-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.guide-pager-link {
    display: block;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}

.guide-pager-link:hover,
.guide-pager-link:focus-visible {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
}

.guide-pager-link.next { text-align: right; }

.guide-pager-label {
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #8f8f8f;
    margin-bottom: 5px;
}

.guide-pager-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

@media (max-width: 560px) {
    .guide-pager { grid-template-columns: 1fr; }
    .guide-pager-link.next { text-align: left; }
}

/* ---- Closing CTA ---- */
.guide-cta {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 64px 24px 80px;
    background: rgba(255, 255, 255, .02);
}

.guide-cta-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.guide-cta h2 {
    font-size: clamp(22px, 3.2vw, 30px);
    font-weight: 900;
    margin-bottom: 12px;
}

.guide-cta p {
    font-size: 17px;
    line-height: 1.7;
    color: #b9b9b9;
    margin-bottom: 26px;
}

.guide-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
