/* =============================================================================
   SXSW — Film Portal (Film & TV) · Branding & Customizations
   =============================================================================
   Loaded AFTER Alex's base sxds-rf.css, which already supplies the Founders
   font faces, colour tokens, heading faces/sizes, and the white org header.
   Everything here is a film-portal-specific override on top of that base.

   Body-class selectors use the [class*="..."] substring form on purpose, so
   they survive the yearly sxsw<NN> slug bump — do NOT re-pin them to a year.
   (Year-pathed static.rainfocus.com asset URLs are permanent and are fine.)

   Pages covered
     · Film-tv-page-film-tv ................ landing page
     · film-tv-portal-tasks ................ task list ("Projects")
     · film-tv-portal-page-home ............ portal home cards
     · film-tv-portal-page-exhibition-delivery
     · filmmaker-media-page-filmmakermedia . media report table
   ============================================================================= */
div.field-information p{
margin-top: -.9em;
margin-bottom: 1.5em;
/*font-family: "Founders Condensed", Arial, Helvetica, sans-serif;*/
color: #606060;
font-size: .875em;
}
/* No global h1-h6 rule. This file used to force every heading to
   var(--font-headline) + uppercase !important; that's gone (Jennifer,
   2026-09-29), matching sessions-portal and client-portal. Base already ships
   the headline face and the per-page heading scale ("PORTAL HEADING
   OVERRIDES" in sxds-rf.css); task detail headings are set below. Do NOT
   re-add a local @font-face or heading font-family. */
button#wf-btn-submit:hover,
a.mdBtnR-primary:hover{
background-color: #ffca51 !important;
border-color: #ffca51 !important;
}
button#wf-btn-submit:hover span,
a.mdBtnR-primary:hover span{
color: black !important;
}
nav#content-nav ul li a img {
    display: none;
}
@media (min-width: 1100px) {
    .rf-org-header-container header nav > ul > li {
        position: relative;
        margin-left: 40px;
    }
}
#logo-link{
    max-height: unset;
    max-width: unset;
}
img#logo-url {
    height: 25px;
    vertical-align: top;
    width: auto;
    max-height: unset;
    max-width: unset;
}

body .rf-overlay-new ul li{
    display: list-item;
    list-style-position: outside;
    margin-left: 2em;
    font-size: .9em;
    margin-bottom: .3em;
}
body .rf-overlay-new p,
body .rf-overlay-new p:last-child {
    margin: .9em 0 .9em 0;
    font-size: .9em;
}
.rf-overlay-new ul, .rf-overlay-new ol{
    margin-bottom: 0 0 .9em 0;
    font-size: .9em;
}
body .rf-overlay-new.rf-overlay-bottom.rf-overlay-centered.rf-tooltip {
       transform: translateX(-5%) translateY(0%);
}
body .rf-overlay-new.rf-overlay-top.rf-overlay-centered.rf-tooltip {
       transform: translateX(-5%) translateY(-100%);
}
body .rf-overlay-new.rf-has-arrow.rf-overlay-bottom.rf-tooltip:after{
       transform: translateX(-36%) rotate(45deg);
    left: 4%;
}
body .rf-overlay-new.rf-has-arrow.rf-overlay-top.rf-tooltip:after{
       transform: translateX(-36%) rotate(225deg);
      left: 4%;
}
.rf-checkbox-container span.text-info {
    color: red !important;
    display: block;
    margin-bottom: .3em;
}

@media screen and (max-width:500px){
    body .rf-overlay-new.rf-overlay-bottom.rf-overlay-centered.rf-tooltip,
    body .rf-overlay-new.rf-overlay-top.rf-overlay-centered.rf-tooltip {
           transform: none;
           left: 6% !important;
          max-width: 84% !important;
            min-width: auto !important;
    }
}
body .rf-overlay-new.rf-overlay-top.rf-overlay-centered.rf-tooltip {
       transform: translateX(0%) translateY(-100%);
       left: 6% !important;
       max-width: 84% !important;
        min-width: auto !important;
}

body .rf-overlay-new.rf-has-arrow.rf-overlay-bottom.rf-tooltip:after,
body .rf-overlay-new.rf-has-arrow.rf-overlay-top.rf-tooltip:after{
      left: 8%;
}

/**** Fix more info box on speaker pages ***/
div#wf-temp_a1750428628837 .rf-text-container div p,
div#wf-temp_a1750445300998 .rf-text-container div p,
div#wf-temp_a1750445883833 .rf-text-container div p,
div#wf-temp_a1750449226857 .rf-text-container div p {
    position: relative;
    top: -21px;
    left: 24px;
    margin-bottom: 0px;
}
div#wf-temp_a1750428628837 {
    margin-top: -15px;
}
.rf-tooltip ul {
    margin-top: 10px;
}
body .rf-tooltip ul li {
    margin-bottom: 10px;
}

 

.description li{
    margin-bottom: 5px;
    list-style-type: disc !important;
    margin-left: 35px;
}
.description ul {
    margin-bottom: 20px;
}
.wf-form-element-div li {
    list-style-position: outside !important;
    margin-left: 15px;
    margin-bottom: 10px;
}

#wf-1756846431971001fXyD .rfG-md-50 {
    clear: left;
}
/* Clean up speaker information */
/* main div */
div#wf-1748023947712001PX7R,
div#wf-1748024120344001d5V8,
div#wf-1748024194176001hUAJ,
div#wf-1748026528838001HKbD,
div#wf-1748026547938001llHE,
div#wf-1748026630617001uWZL,
div#wf-1748265644664001YlUS,
div#wf-1748265967418001DvV0,
div#wf-1748265994988001uyZt,
div#wf-1748268999281001YB81,
div#wf-1748269020128001KqQq,
div#wf-1748269040813001KTXU
{
   display: inline-block;
   padding-right: 5px;
}
/* label */
div#wf-1748023947712001PX7R label,
div#wf-1748024120344001d5V8 label,
div#wf-1748024194176001hUAJ label,
div#wf-1748026528838001HKbD label,
div#wf-1748026547938001llHE label,
div#wf-1748026630617001uWZL label,
div#wf-1748265644664001YlUS label,
div#wf-1748265967418001DvV0 label,
div#wf-1748265994988001uyZt label,
div#wf-1748268999281001YB81 label,
div#wf-1748269020128001KqQq label,
div#wf-1748269040813001KTXU label{
   display: none;
}
/* inner divs */
div#wf-1748023947712001PX7R div,
div#wf-1748024120344001d5V8 div,
div#wf-1748024194176001hUAJ div,
div#wf-1748026528838001HKbD div,
div#wf-1748026547938001llHE div,
div#wf-1748026630617001uWZL div,
div#wf-1748265644664001YlUS div,
div#wf-1748265967418001DvV0 div,
div#wf-1748265994988001uyZt div,
div#wf-1748268999281001YB81 div,
div#wf-1748269020128001KqQq div,
div#wf-1748269040813001KTXU div{
   display: inline-block;
   padding-top: 0px;
}
/* email */
div#wf-1748024194176001hUAJ:before,
div#wf-1748026630617001uWZL:before,
div#wf-1748265994988001uyZt:before,
div#wf-1748269040813001KTXU:before {
    content: " - ";
}

/* remove boxes around comments */
#wf-1756220313237001ylk0 .md-frame {
    background-color: #EEEEEE;
}
h3 {
    margin-bottom: 10px !important;
    margin-top: 20px !important;
}
/* Add border above comments section */
div#wf-temp_a1757099137052{
    border-top: 1px solid;
    border-color: var(--rf-brand-color-border);
    padding-top: 30px;
    margin-top: 30px;
}
/* Gray out read-only text areas and text boxes */
div#wf-formSession-Abstract textarea{
       background-color: #EEEEEE;
}

/* Reduce spacing between tasks */
.task-listing-content h3{
    margin-top: 2px !important;
    margin-bottom: 0px !important;
}

div.rf-flex-initial:has(label[aria-describedby="View as Single List"]) {
    display: none;
}
[class*="film-tv-portal-tasks"] div.task-listing-content:not(:has(+ div.task-listing-status)):after {
    content: "incomplete";
    position: absolute;
    right: 68px;
    top: 17px;
    background-color: #F2a6d1;
    color: black;
    border-radius: 50px;
    text-transform: uppercase;
    padding: 0px 9px;
    font-size: 11px;
    font-weight: bold;
}
[class*="film-tv-portal-tasks"] .rf-pill-green {
    padding: 3px 13px;
}
.rf-pill-green .rf-pill-text {
    background-color: #9BEAA8;
    color: black;
}
/* Task List count pills — two-digit counts stay on one line. RF fixes the
   .rf-card-list-item-icon column at 32px, so a wide count like "30" wraps
   one digit per line (seen on client-portal). Grow from a 32px floor.
   Same rule as client-portal. */
@layer base {
  body[class*="film-tv-portal-page-home"] .rf-card-list-item-icon {
    width: auto !important;
    min-width: 32px !important;
  }
  body[class*="film-tv-portal-page-home"] .rf-card-list-item-icon .rf-pill {
    white-space: nowrap !important;
  }
}
[class*="film-tv-portal-page-home"] .rf-card-list .rf-pill-red {
    background-color: #F2a6d1;
    color: black;
    border-color: #F2a6d1;
}
[class*="film-tv-portal-page-exhibition-delivery"] #special-div p{
   margin-bottom: 20px;
}
[class*="film-tv-portal-page-exhibition-delivery"] #special-div p strong,
[class*="film-tv-portal-page-exhibition-delivery"] #special-div p a{
  font-size: .9em;
}
[class*="film-tv-portal-page-exhibition-delivery"] #special-div ul{
   margin-bottom: 20px;
   margin-left: 20px;
}
/* Landing page. Dropped the 2026 key-art layout (black header, grey page,
   teal box, cinematographer/crew ::before/::after art, white pill CTA) so the
   landing inherits base's white header + logo and plain black button, the
   same as the rest of the portal and the artist-admin landing. */
body[class*="Film-tv-page-film-tv"] .main-welcome {
    max-width: 978px;
    margin: 3rem auto !important;
    padding: 0 1rem;
    text-align: center;
}
@media screen and (min-width: 1024px) {
    body[class*="Film-tv-page-film-tv"] .rfwf-body-content.rf-workflow-body-content {
        min-height: 550px;
    }
}
/* Relabel the task-list heading "Tasks" -> "Projects": blank the real text,
   draw the replacement in ::after.

   Must live in @layer base. Base sets [class*="portal-task"] h1 to
   font-size: 24px !important inside @layer base, and "film-tv-portal-tasks"
   contains "portal-task" as a substring, so it matches here. An unlayered
   !important LOSES to a layered one, which is why this rule silently did
   nothing while the ::after (uncontested) worked — the page showed both
   "Tasks" and "Projects". Inside the layer our selector
   (body[class*=…] h1 = 0,1,2) outranks base's (0,1,1). */
@layer base {
  body[class*="film-tv-portal-tasks"] h1 {
    font-size: 0 !important;
    line-height: 0 !important;
  }
  body[class*="film-tv-portal-tasks"] h1::after {
    content: "Projects";
    display: block;
    font-size: 40px;
    line-height: normal;
  }
}
/* Film title as an eyebrow above the task heading. RF renders the title field
   inside the form (below the h1), so it's lifted out with position:absolute
   and the panel's top padding is grown to make room — otherwise the title
   sits on top of the h1 (both start at the panel's 20px padding). :has()
   keeps the extra room to the one panel that directly holds the title.
   An out-of-flow box reserves no space, so a title that wrapped would run
   into the h1 again (Sessions Portal hit this, 172f677) — it's held to one
   line and truncated with an ellipsis instead, which only bites on narrow
   screens. */
div#wf-formSession-title {
    top: 20px;
    left: 20px;
    right: 20px;
    position: absolute;
    font-weight: bold;
    z-index: 4;
}

/* Hide the whole .rf-label wrapper, not just the <label>: the wrapper keeps
   its margin (and on some tasks more) when only the label is hidden, which
   pushed the title down a different amount on each task. */
#wf-formSession-title .rf-label {
    display: none;
}
#wf-formSession-title .rf-read-only {
    padding: 0;
}
#wf-formSession-title .readOnly-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rfwf-panel-interior {
    position: relative;
}
.rfwf-panel-interior:has(> #myDynamicForm > #wf-formSession-title) {
    padding-top: 56px;
}

/* ── Form Field Widths ────────────────────────────────────────────── */
/* Width lives on the .wf-form-element-div WRAPPER, not the input — target it
   with :has(). RF sizes each wrapper to its own content, so one task mixed
   107px selects, 187px inputs and 1089-1400px textareas/selects (Technical
   Specifications / ADA Information, measured live). Uniform 600px, capped at
   100% for narrow screens — copied from client-portal (artist-admin and
   sessions-portal carry only the textarea/select/input subset). .rf-input-select catches RF's multi-select dropdown, which
   renders no <select>. Checkboxes/radios are deliberately left alone.
   The long-form card layout (Cast and Crew etc., below) overrides these
   widths with its own grid.
   :not(...-tasks) because "-task" is a substring of the LIST page's class. */
body[class*="film-tv-portal-task"]:not([class*="film-tv-portal-tasks"]) .wf-form-element-div:has(textarea),
body[class*="film-tv-portal-task"]:not([class*="film-tv-portal-tasks"]) .wf-form-element-div:has(select),
body[class*="film-tv-portal-task"]:not([class*="film-tv-portal-tasks"]) .wf-form-element-div:has(.rf-input-select),
body[class*="film-tv-portal-task"]:not([class*="film-tv-portal-tasks"]) .wf-form-element-div:has(.rf-input input),
body[class*="film-tv-portal-task"]:not([class*="film-tv-portal-tasks"]) .wf-form-element-div:has(.rf-upload-file),
body[class*="film-tv-portal-task"]:not([class*="film-tv-portal-tasks"]) .wf-form-element-div:has(.uploader-container) {
    width: 600px !important;
    max-width: 100% !important;
}

/* Upload dropzone fills that 600px wrapper instead of hugging its
   instruction text, with the client-portal/artist-admin dropzone treatment
   (light fill, grey dashed border). */
body[class*="film-tv-portal-task"]:not([class*="film-tv-portal-tasks"]) .rf-upload-file.no-label .upload-file-area {
    box-sizing: border-box;
    width: 100% !important;
    background-color: #fafafa !important;
    border: 1px dashed #b3b3b3 !important;
    border-radius: 4px;
}


/* ── Task Detail: headings, footer, instructions, modals ─────────── */

/* Task detail heading hierarchy — same as client-portal / sessions-portal /
   artist-admin (full write-up in client-portal-branding.css). The base
   scale hands every task page h1 24px sentence case AND h2 24px UPPERCASE,
   so section headings out-shout the page title (measured live on Contact
   Information: "Contact Information" h1 24px, "PRIMARY CONTACT" and seven
   more h2s 24px uppercase). RF panel titles and config rich-text h2/h3 go
   to 20px, sentence case, 20px above / 10px below. The page h1 is unchanged.
   @layer base + !important + higher specificity beats the base's
   [class*="portal-task"] h2/h3 and its uppercase h2. The :not() keeps it
   off the task LIST. */
@layer base {
  body[class*="film-tv-portal-task"]:not([class*="film-tv-portal-tasks"]) .md-frame-header .md-headline h2 {
    font-size: 20px !important;
    text-transform: none !important;
  }
  body[class*="film-tv-portal-task"]:not([class*="film-tv-portal-tasks"]) .rf-text-container :is(h2, h3) {
    font-size: 20px !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
  }
}

/* Task footer buttons — black pills. sxds-rf.css forces .mdBtnR-text white
   on every portal but only paints the black pill inside
   .form-footer-actions. This portal's footer is .workflow-footer-buttons,
   so "Return to task list" and "Save" rendered as empty outlined boxes
   (white text on a transparent fill — measured live on Contact
   Information). Copied from client-portal; full write-up in
   sessions-portal-branding.css, "TASK FOOTER BUTTONS". Scoped to the footer
   container: .mdBtnR also appears elsewhere (grid dropdown arrows).
   Delete once the base is fixed. */
@layer base {
  body[class*="film-tv-portal"] .workflow-footer-buttons .mdBtnR {
    font-family: var(--font-button) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: var(--color-white) !important;
    background: var(--color-black) !important;
    border-color: var(--color-black) !important;
    border-radius: 5rem !important;
    padding: 0.65rem 1rem !important;
    width: fit-content !important;
    position: relative !important;
    transition: all 0.25s cubic-bezier(0.075, 0.82, 0.165, 1) !important;
  }
  body[class*="film-tv-portal"] .workflow-footer-buttons .mdBtnR .mdBtnR-text {
    color: var(--color-white) !important;
  }
  body[class*="film-tv-portal"] .workflow-footer-buttons .mdBtnR:hover {
    background: var(--color-faded-black) !important;
    border-color: var(--color-faded-black) !important;
    text-decoration: none !important;
  }
  body[class*="film-tv-portal"] .workflow-footer-buttons .mdBtnR:focus {
    outline: 4px solid var(--color-accent) !important;
  }
  body[class*="film-tv-portal"] .workflow-footer-buttons .mdBtnR:active {
    top: 1px !important;
    background: var(--color-black) !important;
    outline: none !important;
  }
}

/* Task footer bar — grey band (RF-650), same as client-portal and
   sessions-portal: no white card behind Save. RF draws a 1px border on
   .mark-complete-box by default; strip it so Save / Mark as complete sit
   straight on the band. Styling only — nothing here hides or gates the
   mark-complete checkbox. */
body[class*="film-tv-portal"] div.workflow-footer-buttons {
  width: 100%;
  background: #EEE;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 80px 0 0;
  flex-flow: row nowrap;
}
body[class*="film-tv-portal"] div.workflow-footer-buttons div.workflow-button-interior {
  width: 100%;
  justify-content: space-between;
}
body[class*="film-tv-portal"] div.workflow-footer-buttons .mark-complete-box {
  background: transparent;
  border: 0;
}
/* Form-less task pages put the buttons straight in the footer with no
   .workflow-button-interior, whose 20px padding the band relies on. */
body[class*="film-tv-portal"] div.workflow-footer-buttons:not(:has(> .workflow-button-interior)) {
  padding: 20px;
}

/* Bullets in task instruction copy — one look on every task, same values as
   client-portal and this file's own `.description li` (disc, 35px indent,
   5px between items). RF renders authored copy in .rfwf-header on
   participant tasks and .rf-text-container on form tasks, with different
   bullets in each. `ul > li` only, so numbered lists keep their numbers. */
body[class*="film-tv-portal-task"]:not([class*="film-tv-portal-tasks"]) :is(.rfwf-header .rfwf-panel-interior, .rf-text-container) ul {
    margin: 0 0 1em;
    padding-left: 0;
}
body[class*="film-tv-portal-task"]:not([class*="film-tv-portal-tasks"]) :is(.rfwf-header .rfwf-panel-interior, .rf-text-container) ul > li {
    list-style-type: disc;
    list-style-position: outside;
    margin-left: 35px;
    margin-bottom: 5px;
}

/* Links in bulleted task instructions. The base's content-link underline
   only covers `p a` (it skips list items on purpose), so links in an RF
   text-block list render as plain text. Same fix as client-portal. */
@layer base {
  body[class*="film-tv-portal"] .rf-text-container li a:not([class*="mdBtnR"]):not(.button) {
    text-decoration-line: underline !important;
  }
}

/* Links in modal help text (e.g. the filmtvprogramming@ mailto in the Talent
   Attending add/edit modal). RF renders the modal outside .special-div, so the
   base's `.special-div p a` underline never reaches it. .html-container is
   RF's authored-HTML block, so this only touches config prose, not controls. */
@layer base {
  body[class*="film-tv-portal"] .rf-default-modal .html-container a:not([class*="mdBtnR"]):not(.button) {
    text-decoration-line: underline !important;
  }
}

/* Read-only textareas: print the value, don't draw a box around it. RF
   renders a read-only long-text attribute as a real <textarea readonly> —
   a white bordered box with a scrollbar that reads as "type here". Copied
   from sessions-portal (full write-up there). None render on the
   Documentary Feature today; this covers any that RF adds later.
   The @supports gate is load-bearing: without field-sizing:content the box
   keeps its fixed height and scrollbar but loses the border that explained
   why the text stops — worse than doing nothing. Keep every declaration
   inside it. */
@supports (field-sizing: content) {
  @layer base {
    body[class*="film-tv-portal"] .wf-form-element-div textarea[readonly] {
      field-sizing: content !important;
      height: auto !important;
      overflow-y: hidden !important;
      background-color: transparent !important;
      border: 0 !important;
      border-radius: 0 !important;
      padding: 0 !important;
      width: 100% !important;
      resize: none !important;
      cursor: default !important;
    }
  }
}

/* Delete-participant confirmation: RF renders the question as an
   h4.modal-title at 32px. Copied as-is from artist-admin, whose note says
   the override has to live in @layer reset to win. That cuts against the
   usual portal-page rule (RF reorders layers, so reset can lose) — check it
   live on Film before trusting it. */
@layer reset {
  .rf-default-modal .modal-body h4.modal-title {
    font-size: 20px !important;
    line-height: 1.4 !important;
  }
}
/* ── Long task forms: two columns + section cards ───────────────────
   Cast and Crew, Contact Information and Social Media Information stack
   every field one per line. Two 640px columns (592px fields) inside tinted
   section cards cut them by about a third (measured live 2026-09-30):
   Cast and Crew 6967 → ~4450px, Contact Information 4898 → ~3060px,
   Social Media 2011 → 1330px. Still Images is short already; there the
   cards are for separation, so its three image sections stop reading as
   one wall of text (2658 → 2451px). To add a task, add its task-<slug>
   class to the one body:is(...) list below (everything else is nested
   under it). Its section titles must be real <h2>/<h3>s in RF config —
   Still Images' were bold <p>s with <hr>s between, which open no card.
   - Uploads span both columns, but the dropzone keeps one column's width.
   - Text inputs, dropdowns and read-only values take one column; textareas,
     instructions and headings span both. Pairs fill left to right in form
     order, so a conditional field that appears mid-run shifts the pairs
     after it.
   - RF leaves empty .wf-form-element-div placeholders for fields hidden on
     this film type; :empty drops them so they don't eat grid cells.
   - Cards are CSS only (RF gives sections no wrapper, and moving React's
     nodes into one would break it): the FORM carries the grey, everything
     before the first card is painted white and spans full width, and each
     card heading draws a 24px white gap + 3px black rule above itself.
   - Card heading (H in the selectors below) = a text block that STARTS with
     an <h2>/<h3>; its explanation paragraph rides along as the card header.
     Exception: when the very next block also starts with a heading, the
     first is an umbrella title and opens no card — before the first card
     it stays on white ("Director Information" above "Director 1"); later
     in a form it would sit at the foot of the previous card.
   - Zeroes the Task Detail heading margins above; the cards supply spacing.
   - The footer keeps its grey RF-650 band and 80px gap: a white box-shadow
     paints the gap white so the band doesn't sit on the card grey.
   Keys off structure, not wf- ids, so RF config edits don't break it.
   Replaces the old Additional Crew 28%-width rules and the Contact
   Information 3-column grid (both hard-coded wf- ids).
   Collapses to one column under 1300px. */
@layer base {
  body:is(.task-cast-and-crew, .task-contact-information, .task-social-media-information, .task-still-images) #myDynamicForm {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 640px)) !important;
    gap: 0 !important;
    align-items: stretch !important;
    width: fit-content !important;
    max-width: 100% !important;
    background: #f4f4f4 !important; /* card grey, a shade lighter than the footer band's #EEE */

    & > * {
      grid-column: 1 / -1 !important;
    }
    & > .wf-form-element-div {
      display: block !important;
      width: auto !important;
      max-width: 100% !important;
      margin: 0 !important;
      padding: 0 24px !important;
    }
    & > .wf-form-element-div:empty {
      display: none !important;
    }
    & > .wf-form-element-div .rf-upload-file {
      max-width: 592px !important;
    }
    & > .wf-form-element-div:has(.rf-input input, select, .rf-input-select, .rf-read-only):not(:has(textarea)) {
      grid-column: span 1 !important;
    }
    /* Lead-in: not H and not after H — white, flush left, full width */
    & > .wf-form-element-div:not(
        .wf-form-element-div:has(> .rf-text-container > div > :is(h2, h3):first-child):not(:has(+ .wf-form-element-div > .rf-text-container > div > :is(h2, h3):first-child)),
        .wf-form-element-div:has(> .rf-text-container > div > :is(h2, h3):first-child):not(:has(+ .wf-form-element-div > .rf-text-container > div > :is(h2, h3):first-child)) ~ *) {
      grid-column: 1 / -1 !important;
      background: var(--color-white) !important;
      padding: 0 !important;
    }
    /* H: card heading */
    & > .wf-form-element-div:has(> .rf-text-container > div > :is(h2, h3):first-child):not(:has(+ .wf-form-element-div > .rf-text-container > div > :is(h2, h3):first-child)) {
      border-top: 24px solid var(--color-white) !important;
      box-shadow: inset 0 3px 0 var(--color-black) !important;
      padding: 16px 24px 8px !important;
    }
    & > .wf-form-element-div :is(h2, h3) {
      margin: 0 !important;
    }
    & > .workflow-footer-buttons {
      box-shadow: 0 -40px 0 40px var(--color-white) !important;
    }

    @media (max-width: 1299px) {
      grid-template-columns: minmax(0, 1fr) !important;
      width: auto !important;

      & > .wf-form-element-div:has(.rf-input input, select, .rf-input-select, .rf-read-only):not(:has(textarea)) {
        grid-column: 1 / -1 !important;
      }
    }
  }

  /* Contact Information: each Additional Contact has a 3rd field (empty on
     the projects checked) after its Name | Email pair. If it renders it takes
     its own row, so it can't pair with the next contact's Name and push
     every row after it out of step. */
  body.task-contact-information #myDynamicForm > :is(#wf-1762982419050001nOef, #wf-1762460388823004bVPu, #wf-1762460388827004bUhO) {
    grid-column: 1 / -1 !important;
  }
}

/* Additional Contacts */

/* Default: show message after h2 */
#wf-temp_a1758133983662::after {
    content: "No additional contacts listed";
}

/* Hide message if Additional Contact 1 exists (checking from form level) */
form:has(#wf-1757168402594001wpMY label) #wf-temp_a1758133983662::after,
form:has(#wf-1757168557404001NO1Y label) #wf-temp_a1758133983662::after,
form:has(#wf-1757168712065001Zhnc label) #wf-temp_a1758133983662::after {
    content: none;
}
/* contact explainer */
div#wf-temp_a1757526262982 p {
    margin-top: 50px;
    font-weight: normal;
    font-style: italic;
    font-weight: bold;
}
/* Hide Filter dropdown */
.rf-flex-initial[aria-label="Sort By"] {
    display: none;
}
/* Media Report */
body[class*="filmmaker-media-page-filmmakermedia"]  table.rf-simple-table thead tr th:nth-child(4),
body[class*="filmmaker-media-page-filmmakermedia"]  table.rf-simple-table thead tr th:nth-child(8),
body[class*="filmmaker-media-page-filmmakermedia"]  table.rf-simple-table thead tr th:nth-child(9),
body[class*="filmmaker-media-page-filmmakermedia"]  table.rf-simple-table thead tr th:nth-child(10),
body[class*="filmmaker-media-page-filmmakermedia"]  table.rf-simple-table tbody tr td:nth-child(4),
body[class*="filmmaker-media-page-filmmakermedia"]  table.rf-simple-table tbody tr td:nth-child(8),
body[class*="filmmaker-media-page-filmmakermedia"]  table.rf-simple-table tbody tr td:nth-child(9),
body[class*="filmmaker-media-page-filmmakermedia"]  table.rf-simple-table tbody tr td:nth-child(10) {
    display: none;
}
body[class*="filmmaker-media-page-filmmakermedia"] table.rf-simple-table thead tr th:nth-child(2) .sql-report-table-header,
body[class*="filmmaker-media-page-filmmakermedia"] table.rf-simple-table thead tr th:nth-child(3) .sql-report-table-header{
   min-width: 200px;
}
body[class*="filmmaker-media-page-filmmakermedia"] table.rf-simple-table tbody tr td:nth-child(5) a {
    font-size: 14px; /* or whatever size you want */
}

/* Talent Attending screening options — hide "Screening N" options past the
   film's real number of screenings. film-portal.js reads the session times,
   sets show-screening-1..N on the body and tags each option
   data-screening-option="N" (the options' title attribute is empty, so
   there's nothing else to key on). Covers the screenings and
   Q&A dropdowns. Only armed while body[data-screening-count] is set, i.e. on
   the Talent Attending task once its times have loaded. */
body[data-screening-count]:not(.show-screening-1) li[data-screening-option="1"],
body[data-screening-count]:not(.show-screening-2) li[data-screening-option="2"],
body[data-screening-count]:not(.show-screening-3) li[data-screening-option="3"],
body[data-screening-count]:not(.show-screening-4) li[data-screening-option="4"],
body[data-screening-count]:not(.show-screening-5) li[data-screening-option="5"],
body[data-screening-count]:not(.show-screening-6) li[data-screening-option="6"],
body[data-screening-count]:not(.show-screening-7) li[data-screening-option="7"] {
    display: none !important;
}

/* Hide selected Screening N chips past the count — same arming as above,
   so they can't act on stale classes on other tasks. */
body[data-screening-count]:not(.show-screening-1) #myDynamicForm li[data-test="rf-selected-value"]:has(button[aria-label*="Screening 1"]),
body[data-screening-count]:not(.show-screening-2) #myDynamicForm li[data-test="rf-selected-value"]:has(button[aria-label*="Screening 2"]),
body[data-screening-count]:not(.show-screening-3) #myDynamicForm li[data-test="rf-selected-value"]:has(button[aria-label*="Screening 3"]),
body[data-screening-count]:not(.show-screening-4) #myDynamicForm li[data-test="rf-selected-value"]:has(button[aria-label*="Screening 4"]),
body[data-screening-count]:not(.show-screening-5) #myDynamicForm li[data-test="rf-selected-value"]:has(button[aria-label*="Screening 5"]),
body[data-screening-count]:not(.show-screening-6) #myDynamicForm li[data-test="rf-selected-value"]:has(button[aria-label*="Screening 6"]),
body[data-screening-count]:not(.show-screening-7) #myDynamicForm li[data-test="rf-selected-value"]:has(button[aria-label*="Screening 7"]) {
    display: none !important;
}
/* Talent Attending screening dates — film-portal.js puts each screening's
   date and time (plus room, on options) in data-screening-when on the
   dropdown option's label span and on the selected chip; CSS prints it after
   "Screening N". Display only — RF's label text and the saved value are
   untouched. The chip is text + remove button, so it becomes a (wrapping)
   flex row to seat the date between the two. Armed like the rules above. */
body[data-screening-count] .rf-select-result-item[data-screening-when]::after {
    content: "\00a0— " attr(data-screening-when);
    color: inherit;   /* the highlighted row is black — inherit, don't fix a grey */
    opacity: 0.75;
}
body[data-screening-count] #myDynamicForm li[data-test="rf-selected-value"][data-screening-when] {
    display: inline-flex !important;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
}
body[data-screening-count] #myDynamicForm li[data-test="rf-selected-value"][data-screening-when]::after {
    content: "\00a0— " attr(data-screening-when);
    order: 1;
}
body[data-screening-count] #myDynamicForm li[data-test="rf-selected-value"][data-screening-when] > button {
    order: 2;
}
/* Talent Attending screening times — the list film-portal.js injects above
   the screenings dropdown on the participant form. */
.talent-screening-times {
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;   /* match the 600px form fields */
    padding: 16px 20px;
    background-color: #BFDAE9;
    color: black;
    margin-bottom: 20px;
}
.talent-screening-times .talent-screening-times-title {
    font-weight: 700;
    margin: 0 0 6px;
}
.talent-screening-times ul {
    margin: 0;
    padding-left: 18px;
}
.talent-screening-times p:last-child {
    margin-bottom: 0;
}
/* Fix with 1/9 branding changes */
.rfComp-canvas div.rf-label label{
    font-family: var(--font-primary) !important;
}
/* Format performances on portal home page */

body[class*="film-tv-portal-page-home"] .card-body-row {
    padding-top: 9px !important;
    padding-bottom: 23px !important;
}

body[class*="film-tv-portal-page-home"] .card-body-row .schedule-details {
  display: block;
  padding-bottom: 5px !important;
}
body[class*="film-tv-portal-page-home"] .card-body-row h5{
   margin-bottom: 0px;
}

body[class*="film-tv-portal-page-home"] .card-body-row .address-details {
  display: block;
}

body[class*="film-tv-portal-page-home"] .card-body-row .attendee-stats {
  display: none;
}

body[class*="film-tv-portal-page-home"] .card-body-row .address-details .card-body-row-header {
  display: none;
}

body[class*="film-tv-portal-page-home"] .card-body-row .address-details .h4.text-primary {
  display: block;
  margin: 0;
  font-size: 13px;
}
body[class*="film-tv-portal-page-home"] .speaker-session-card .card-body{
   height: 1000px;
}

/* No-tasks state, ported from artist-admin-branding.css. When the Tasks card
   shows its no-results message ("You have no assigned tasks": usually someone
   whose project wasn't accepted, or who logged in with the wrong email):
   - hide the content-nav links (Exhibition Delivery, FAQ — the FAQ page
     carries the filmmaker login) but keep Logout (li.auth-button) so they
     can sign out and switch accounts, as the message tells them to;
   - swap the home page's .welcome block for .welcome-no-results (both live
     in the "Film and TV Portal" page's text block in RF Page Builder);
   - hide anything flagged .show-with-tasks.
   Anchored to .task-list-card .no-results-message on purpose, so an empty
   sub-list elsewhere (e.g. the Screenings card) never triggers it. Only the
   home page has a .task-list-card (the /tasks list doesn't), so a filtered
   task list can't trip it. Unlayered !important wins here (nothing in base
   fights these display values), so @layer base isn't needed. */
body[class*="film-tv-portal"]:has(.task-list-card .no-results-message) nav#content-nav ul li:not(.auth-button) {
    display: none !important;
}
body[class*="film-tv-portal"] .welcome-no-results {
    display: none;
}
body[class*="film-tv-portal"]:has(.task-list-card .no-results-message) .welcome {
    display: none !important;
}
body[class*="film-tv-portal"]:has(.task-list-card .no-results-message) .welcome-no-results {
    display: block !important;
}
body[class*="film-tv-portal"]:has(.task-list-card .no-results-message) .show-with-tasks {
    display: none !important;
}
/* Basic Information's schedule link: match the surrounding 16px copy
   (was pinned to 15px). */
#wf-1765404768898001sQOO a {
    text-decoration: underline;
    font-size: inherit;
}

/* Save gate (Cast and Crew headshot credits, Social Media Information
   links). .sxrfv-gated is applied by rf-validation-helper.js (wired in
   film-portal.js) while a headshot is uploaded with a blank credit or a
   link field holds something that isn't a URL or N/A. Save is an <a>, not
   a <button>, so the helper's .disabled write does nothing —
   pointer-events here is what actually blocks the click. Copied from client-portal-branding.css.
   BASE CANDIDATE (the gated look only): third a.save-action copy of it
   (artist-admin, client-portal), and cfp carries a button. variant. The ::after
   message is portal copy — keep local. */
a.save-action.sxrfv-gated,
a.save-action.sxrfv-gated:hover {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

.mark-complete-box:has(a.save-action.sxrfv-gated)::after {
  content: 'Please fix the highlighted fields before saving.';
  display: block;
  text-align: right;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #c0392b;
}

body.task-cast-and-crew .mark-complete-box:has(a.save-action.sxrfv-gated)::after {
  content: 'Please add a photo credit for each headshot before saving.';
}

body.task-social-media-information .mark-complete-box:has(a.save-action.sxrfv-gated)::after {
  content: 'Please enter a full link (or N/A) in each highlighted field before saving.';
}


/* ── Social Media Cards task ────────────────────────────────────── */
/* The card maker from js/artist-card-maker.js, loaded by film-portal.js. Copied
   from artist-admin-branding.css (portals don't share CSS); keep the two in step,
   except the thumbnail columns, which fit the number of frames per size.
   The form's only text block is the frame list admins edit in RF, so all text
   on this task's form stays hidden, including while the tool loads. Buttons carry !important where the base and
   RF style real button and label elements, and on spacing and type, which an
   RF reset beats otherwise (measured live: step margins computed to 0). */
@layer base {
  body.task-social-media-cards .wf-form-element-div > .rf-text-container {
    display: none !important;
  }

  body.task-social-media-cards .sxcard-intro {
    margin: 0 0 24px !important;
  }

  body.task-social-media-cards .sxcard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  body.task-social-media-cards .sxcard-preview {
    position: sticky;
    top: 90px;
  }

  body.task-social-media-cards .sxcard-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    background: #f2f0ea;
  }

  body.task-social-media-cards .sxcard-canvas {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    cursor: grab;
    touch-action: none;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
  }

  body.task-social-media-cards .sxcard-canvas:active {
    cursor: grabbing;
  }

  body.task-social-media-cards .sxcard-empty {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-button);
    pointer-events: none;
  }

  body.task-social-media-cards .sxcard-empty[hidden] {
    display: none;
  }

  body.task-social-media-cards .sxcard-hint {
    margin: 10px 0 0 !important;
    font-size: 14px !important;
    color: #555;
  }

  body.task-social-media-cards .sxcard-step {
    margin: 0 0 26px !important;
  }

  body.task-social-media-cards .sxcard-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px !important;
  }

  body.task-social-media-cards .sxcard-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #000;
    color: #fff;
    font-family: var(--font-button) !important;
  }

  body.task-social-media-cards .sxcard-step-title {
    font-family: var(--font-button) !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  body.task-social-media-cards .sxcard-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  body.task-social-media-cards .sxcard-btn {
    display: inline-block;
    margin: 0 !important;
    padding: 10px 18px !important;
    border: 2px solid #000 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #000 !important;
    font-family: var(--font-button) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    cursor: pointer;
  }

  body.task-social-media-cards .sxcard-btn-primary {
    background: #000 !important;
    color: #fff !important;
  }

  body.task-social-media-cards .sxcard-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
  }

  /* Visually hidden but still focusable, so the label opens it by keyboard */
  body.task-social-media-cards .sxcard-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  body.task-social-media-cards .sxcard-row:has(+ .sxcard-file:focus-visible) .sxcard-btn-primary,
  body.task-social-media-cards .sxcard-btn:focus-visible,
  body.task-social-media-cards .sxcard-size:focus-visible,
  body.task-social-media-cards .sxcard-thumb:focus-visible,
  body.task-social-media-cards .sxcard-canvas:focus-visible {
    outline: 3px solid #e24a2b;
    outline-offset: 2px;
  }

  body.task-social-media-cards .sxcard-zoom-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 0 !important;
    font-size: 15px !important;
  }

  body.task-social-media-cards .sxcard-zoom-row label {
    flex: 0 0 auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  /* min-width: 0, or the slider squeezes the label onto two lines */
  body.task-social-media-cards .sxcard-zoom {
    flex: 1 1 auto;
    min-width: 0 !important;
    margin: 0 !important;
  }

  /* The base paints the thumb but no visible track */
  body.task-social-media-cards .sxcard-zoom::-webkit-slider-runnable-track {
    height: 4px !important;
    border-radius: 2px !important;
    background: #c9c6bf !important;
  }

  body.task-social-media-cards .sxcard-zoom::-moz-range-track {
    height: 4px !important;
    border-radius: 2px !important;
    background: #c9c6bf !important;
  }

  body.task-social-media-cards .sxcard-zoom::-webkit-slider-thumb {
    margin-top: -8px !important;
    background: #000 !important;
  }

  body.task-social-media-cards .sxcard-zoom::-moz-range-thumb {
    background: #000 !important;
  }

  body.task-social-media-cards .sxcard-notice {
    margin: 10px 0 0 !important;
    font-size: 15px !important;
    color: #b3321a;
  }

  body.task-social-media-cards .sxcard-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.task-social-media-cards .sxcard-size {
    margin: 0 !important;
    padding: 9px 14px !important;
    border: 2px solid #000 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #000 !important;
    font-family: var(--font-button) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    cursor: pointer;
  }

  body.task-social-media-cards .sxcard-size[aria-pressed="true"] {
    background: #000 !important;
    color: #fff !important;
  }

  body.task-social-media-cards .sxcard-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 Film designs per size */
    gap: 8px;
    align-items: start;
  }

  body.task-social-media-cards .sxcard-thumb {
    margin: 0 !important;
    padding: 0 !important;
    border: 3px solid transparent !important;
    border-radius: 0 !important;
    background: none !important;
    line-height: 0;
    cursor: pointer;
  }

  body.task-social-media-cards .sxcard-thumb canvas {
    width: 100%;
    height: auto;
  }

  body.task-social-media-cards .sxcard-thumb[aria-pressed="true"] {
    border-color: #e24a2b !important;
  }

  body.task-social-media-cards .sxcard-download {
    width: 100%;
    padding: 14px !important;
    font-size: 18px !important;
  }

  @media (max-width: 820px) {
    body.task-social-media-cards .sxcard {
      grid-template-columns: minmax(0, 1fr);
      gap: 24px;
    }

    body.task-social-media-cards .sxcard-preview {
      position: static;
    }

    body.task-social-media-cards .sxcard-canvas {
      max-height: 60vh;
    }
  }
}
