/* The calendar sits directly under the edition cover. */
.edition-copy{min-height:clamp(235px,22vw,344px);padding-block:clamp(22px,2vw,35px)}
#front-title{font-size:clamp(60px,5.1vw,90px)}
.edition-kicker{margin-bottom:13px}
.edition-deck{font-size:clamp(14px,1.12vw,18px);margin-top:12px;max-width:45ch}
.edition-actions{margin-top:15px}
.cover-calendar-block,.cover-films,.territory-index{width:min(100%,calc(1540px + var(--atlas-gutter)*2));margin-inline:auto;padding:clamp(24px,2.5vw,44px) var(--atlas-gutter);min-width:0}
.cover-calendar-block>.edition-heading h2,.cover-films h2,.territory-index h2{font:400 clamp(30px,2.7vw,46px)/1.08 var(--atlas-family);letter-spacing:-.044em}
.cover-calendar-block>.edition-heading{margin:0 0 17px}
#home-agenda-title{scroll-margin-top:20px}
#front-films{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(10px,1.5vw,24px)}
#front-films button{display:flex;flex-direction:column;align-items:start;gap:10px;text-align:left;border:0;background:none;padding:0;font:500 16px/1.3 var(--atlas-family);color:var(--atlas-ink)}
#front-films button> :first-child{width:100%;height:auto;aspect-ratio:2/3}
#front-films button:hover strong{text-decoration:underline}
.territory-index{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--atlas-rule)}
.country-flag{font:18px/1 "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;flex:none}
.country-flag:empty{display:none}
.country-tag,.sheet-id,.film-ident,.sheet-film-name,.festival-cell,.sheet-nofilms{display:flex;align-items:center;gap:9px}
.country-tag{width:fit-content;line-height:1.25}
.institution-mark{width:46px;height:40px;display:inline-flex;align-items:center;justify-content:center;flex:none;overflow:hidden;border:1px solid var(--atlas-rule);background:var(--atlas-soft)}
.institution-mark img{width:100%;height:100%;object-fit:cover}
.institution-mark.is-logo,.sheet-art.is-logo{background:#f6f5f1}
.institution-mark.is-logo img{object-fit:contain;padding:3px}
.institution-mark.is-index{font:600 10px/1 var(--atlas-family);letter-spacing:.04em;color:var(--atlas-muted);text-align:center;overflow-wrap:anywhere}
.festival-cell{justify-content:flex-start;text-align:left;min-width:0}
#tracker-results .festival-cell{border:0;background:transparent;padding:0}
.film-ident-title{min-width:0;line-height:1.23}
.film-ident>:first-child{width:34px;min-width:34px;max-width:34px;height:50px;flex:none}
.film-status{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid var(--atlas-rule);color:var(--atlas-ink);font:550 11px/1.15 var(--atlas-family);border-radius:2px}
.film-status:before{content:'';width:6px;height:6px;border:1px solid currentColor;border-radius:100%;flex:none}
.film-status[data-status=Confirmado]:before{background:var(--st-ok);border-color:var(--st-ok)}
.film-status[data-status=Convidado]:before{border-color:var(--st-ok)}
.festival-sheet{min-width:0;color:var(--atlas-ink);text-align:left}
.sheet-lead{display:flex;align-items:center;gap:clamp(13px,2vw,30px)}
.sheet-art{margin:0;flex:0 0 clamp(100px,27%,230px);position:relative;border:1px solid var(--atlas-rule);overflow:hidden;align-self:stretch;max-height:210px}
.sheet-image{width:100%;height:100%;min-height:116px;max-height:210px;object-fit:cover;display:block}
.sheet-art.is-logo .sheet-image{object-fit:contain;padding:10px 10px 26px}
.sheet-art figcaption{position:absolute;inset:auto 0 0;background:#121212d9;color:#fff;padding:3px 6px;font-size:10px;line-height:1.2;overflow-wrap:anywhere}
.sheet-art figcaption a{color:#fff}
.sheet-heading{min-width:0}
.sheet-heading h2{font:550 clamp(23px,2.1vw,36px)/1.04 var(--atlas-family);letter-spacing:-.037em;margin:9px 0 7px;overflow-wrap:anywhere}
.sheet-id{flex-wrap:wrap;font-size:12px;gap:6px 9px}
.sheet-id .institution-mark{width:37px;height:30px}
.sheet-edition{color:var(--atlas-muted);border-left:1px solid var(--atlas-rule);padding-left:9px}
.sheet-place,.sheet-period,.sheet-note{font-size:14px;line-height:1.4;margin:5px 0}
.sheet-heading>a,.sheet-link{color:var(--atlas-ink);text-underline-offset:3px;font-size:13px}
.sheet-section{font:600 15px/1.2 var(--atlas-family);margin:18px 0 8px}
.sheet-film{display:grid;grid-template-columns:minmax(68px,88px) minmax(0,1fr);align-items:start;gap:17px;padding:15px 0;border-top:1px solid var(--atlas-rule)}
.sheet-film>:first-child{width:100%;height:auto;aspect-ratio:2/3}
.sheet-film-name{flex-wrap:wrap;gap:7px 10px;margin-bottom:7px}
.sheet-film-name h4{font:600 18px/1.15 var(--atlas-family);letter-spacing:-.02em;margin:0}
.sheet-details{display:grid;grid-template-columns:fit-content(33%) minmax(0,1fr);gap:4px 12px;margin:7px 0;font-size:13px;line-height:1.35}
.sheet-details dt{color:var(--atlas-muted)}
.sheet-details dd{margin:0;white-space:pre-line;overflow-wrap:anywhere}
.sheet-notes{font:400 13px/1.4 var(--atlas-family);white-space:pre-line;overflow-wrap:anywhere;margin:5px 0}
.sheet-link{background:none;border:0;padding:4px 0;text-decoration:underline;min-height:26px}
.sheet-nofilms,.sheet-contacts{font-size:13px;line-height:1.4;margin-top:14px;padding-top:10px;border-top:1px solid var(--atlas-rule)}
.sheet-contacts summary{cursor:pointer;font-weight:600}
#festival-dialog>.dialog-top{gap:10px;margin-bottom:16px}
.film-materials-heading{display:flex;align-items:center;gap:15px;margin:20px 0}
.film-materials-heading>:first-child{width:60px;height:auto;aspect-ratio:2/3}
.film-materials-heading h2{font:550 clamp(23px,2.2vw,35px)/1.08 var(--atlas-family);letter-spacing:-.04em;margin:0 0 7px}
.film-materials-heading p{margin:0;font-size:14px}
@media(max-width:700px){
  .edition-cover{grid-template-columns:minmax(0,1fr) minmax(0,.8fr)}
  .edition-copy{padding:18px 12px 18px var(--atlas-gutter);min-height:187px}
  #front-title{font-size:clamp(34px,8vw,56px)}
  .edition-kicker{font-size:8px;gap:4px;letter-spacing:.07em;margin-bottom:9px}.edition-kicker:before{display:none}
  .edition-deck{display:none}.edition-actions{margin-top:12px}.edition-actions button{min-height:30px;font-size:12px}
  .edition-actions button+button{display:none}
  .edition-plate{aspect-ratio:auto}
  .edition-plate figcaption{padding:9px;align-items:start;display:block}
  .edition-plate #plate-region{font-size:8px;letter-spacing:.045em}
  #plate-name{font-size:24px}
  .plate-tools{margin-top:4px}.plate-tools button{width:26px;height:26px;font-size:14px}
  #credit-text{inset:3px 3px auto;max-width:calc(100% - 6px);font-size:10px;padding:5px}
  .cover-calendar-block,.cover-films,.territory-index{padding-block:22px}
  .cover-calendar-block>.edition-heading{margin-bottom:12px}
  #front-films{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 10px}#front-films button{font-size:13px}
  .sheet-film{gap:10px;grid-template-columns:63px minmax(0,1fr)}
  .sheet-lead{align-items:start}.sheet-art{flex-basis:29%}
  .sheet-id{font-size:11px;gap:5px}.sheet-id .institution-mark{width:26px;height:24px}
  .sheet-details{font-size:12px;gap:3px 7px}.sheet-film-name h4{font-size:16px}
  .territory-index h2{font-size:24px}.territory-index button{font-size:12px}
}
.film-poster{position:relative;display:inline-block;overflow:hidden;background:#222;vertical-align:middle}
.film-poster img{display:block;width:100%;height:100%;object-fit:contain}
.film-poster--still img{object-fit:cover}
.film-poster--still small{position:absolute;bottom:0;left:0;right:0;padding:3px 1px;background:#151515de;color:#eee;font:500 9px/1.1 var(--atlas-family);text-align:center}
.film-ident .film-poster--still small,.fa-poster .film-poster--still small{font-size:7px}
.film-poster--missing{display:grid;align-items:center;justify-items:center;padding:2px;color:#ddd;font-size:10px}
#map-loading{position:absolute;inset:46% 8% auto;text-align:center;color:#ddd;z-index:1;pointer-events:none}
.edition-tag{display:inline-block;border:1px solid var(--atlas-rule);padding:3px 7px;font:550 11px/1.2 var(--atlas-family);border-radius:2px}
.sheet-logo-credit{margin-inline-start:10px;color:var(--atlas-muted)}
@media(min-width:570px) and (max-width:700px){.sheet-art{flex-basis:26%;max-height:140px}.sheet-lead{gap:9px}.sheet-image{min-height:92px}.sheet-heading h2{font-size:21px}}
.sheet-film-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));column-gap:clamp(16px,2vw,34px)}
@media(min-width:1100px){.sheet-film{grid-template-columns:clamp(80px,6.8vw,108px) minmax(0,1fr)}}
.sheet-art.is-logo .sheet-image{object-fit:scale-down}
.fa-art img{object-fit:contain}
.sheet-profile{max-width:65ch;line-height:1.4;font-size:14px;margin:9px 0 0}
.sheet-profile a{white-space:nowrap;font-size:12px;color:var(--atlas-muted)}
.sheet-art.is-poster{align-self:start;max-height:none;flex-basis:clamp(95px,19%,153px);background:#1c1718}
.sheet-art.is-poster .sheet-image{width:100%;height:auto;min-height:0;max-height:220px;object-fit:contain}
.sheet-art.is-poster figcaption{position:static}
@media(min-width:570px) and (max-width:700px){.sheet-art.is-poster{flex-basis:82px}.sheet-profile{font-size:12px}}

/* A festival opens as an edition, with its programme followed by the RT films. */
.festival-sheet {container-type:inline-size}
.festival-sheet .sheet-lead {display:grid;grid-template-columns:minmax(0,.29fr) minmax(0,.71fr);gap:clamp(16px,2.2vw,32px);align-items:start}
.sheet-lead>.sheet-heading:only-child {grid-column:1/-1}
.festival-sheet .sheet-art {align-self:start;max-height:none;margin:0;border:0;border-radius:2px;background:none}
.festival-sheet .sheet-image {width:100%;height:auto;aspect-ratio:4/5;min-height:0;max-height:none;object-fit:cover;border-radius:2px}
.festival-sheet .sheet-art.is-poster .sheet-image {height:auto;aspect-ratio:auto;max-height:340px;object-fit:contain;object-position:top left}
.festival-sheet .sheet-art.is-logo .sheet-image {padding:12%;background:#f4f3f0;object-fit:contain}
.festival-sheet .sheet-art figcaption {position:static;background:none;color:var(--atlas-muted);font:450 11px/1.32 var(--atlas-family);padding:6px 0 0}
.festival-sheet .sheet-art figcaption a {color:inherit;text-decoration-thickness:1px}
.festival-sheet .sheet-heading h2 {font:600 clamp(30px,3vw,48px)/1.01 var(--atlas-family);letter-spacing:-.05em;margin:14px 0 8px;text-wrap:balance}
.festival-sheet .sheet-id {font:600 14px/1.2 var(--atlas-family);gap:7px 10px}
.festival-sheet .sheet-id .institution-mark {width:47px;height:33px;border-radius:2px}
.festival-sheet .sheet-place {font:500 14px/1.4 var(--atlas-family);color:var(--atlas-muted);margin:0 0 11px}
.festival-sheet .sheet-period {font:500 16px/1.35 var(--atlas-family);margin:9px 0}
.festival-sheet .sheet-profile,.festival-sheet .sheet-note {font:400 15px/1.45 var(--atlas-family);max-width:54ch;margin:12px 0 0}
.sheet-links {display:flex;flex-wrap:wrap;gap:5px 16px;margin-top:13px;color:var(--atlas-muted);font:500 13px/1.4 var(--atlas-family)}
.sheet-links .sheet-logo-credit {margin-left:0}
.sheet-section {display:flex;align-items:baseline;gap:10px;font:600 23px/1.15 var(--atlas-family);letter-spacing:-.035em;margin:clamp(22px,2.5vw,36px) 0 13px}
.sheet-count {color:var(--atlas-muted);font:500 14px/1 var(--atlas-family);letter-spacing:0}
.festival-sheet .sheet-film-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,176px),1fr));gap:18px 22px}
.festival-sheet .sheet-film {display:flex;flex-direction:column;align-items:start;gap:11px;min-width:0;padding:14px 0 3px;border-top:1px solid var(--atlas-rule)}
.festival-sheet .sheet-film>.film-poster {width:clamp(100px,10vw,150px);height:auto;aspect-ratio:2/3;border-radius:2px}
.sheet-film-copy {min-width:0;width:100%}
.festival-sheet .sheet-film-name {display:flex;align-items:start;flex-direction:column;gap:7px;margin:0 0 10px}
.festival-sheet .sheet-film-name h4 {font:600 clamp(19px,1.55vw,24px)/1.1 var(--atlas-family);letter-spacing:-.035em}
.festival-sheet .film-status,.festival-sheet .edition-tag {padding:4px 7px;font:550 12px/1.2 var(--atlas-family);border-radius:3px}
.festival-sheet .sheet-details {font:450 14px/1.4 var(--atlas-family);gap:4px 8px;grid-template-columns:fit-content(35%) minmax(0,1fr);margin:7px 0}
.sheet-records {margin-top:8px}
.sheet-records>summary {color:var(--atlas-muted);cursor:pointer;width:fit-content;font:500 13px/1.4 var(--atlas-family);padding:5px 0}
.sheet-record+.sheet-record {border-top:1px solid var(--atlas-rule);margin-top:7px;padding-top:4px}
.sheet-records .sheet-notes {font-size:14px}
.festival-sheet .sheet-link {font:550 13px/1.3 var(--atlas-family);padding:6px 0;min-height:32px}
.film-poster--book {display:inline-grid;grid-template-rows:minmax(0,1fr) auto;background:var(--atlas-paper)}
.film-poster--book img {width:100%;height:100%;object-fit:contain}
.film-poster--book small {display:block;font:550 10px/1.12 var(--atlas-family);text-align:center;color:#f6f6f4;background:#262623;padding:3px 2px}
.film-ident .film-poster--book,.fa-poster .film-poster--book {display:inline-block;background:transparent}
.film-ident .film-poster--book small,.fa-poster .film-poster--book small {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0}
.fa-film-caption:has(.fa-art-kind) {gap:2px}
.fa-art-kind {color:var(--atlas-muted);font:450 11px/1.15 var(--atlas-family)}
@container(max-width:550px) {
 .festival-sheet .sheet-lead {grid-template-columns:minmax(0,.28fr) minmax(0,.72fr);gap:15px}
 .festival-sheet .sheet-heading h2 {font-size:clamp(25px,6cqw,32px);margin-top:10px}
 .festival-sheet .sheet-id {gap:6px;font-size:12px}
 .festival-sheet .sheet-id .institution-mark {width:32px;height:26px}
 .festival-sheet .sheet-edition {padding-left:6px}
 .festival-sheet .sheet-profile,.festival-sheet .sheet-note {font-size:14px}
 .festival-sheet .sheet-film-list {grid-template-columns:minmax(0,1fr);gap:0}
 .festival-sheet .sheet-film {display:grid;grid-template-columns:clamp(88px,24cqw,115px) minmax(0,1fr);gap:16px;padding:15px 0}
 .festival-sheet .sheet-film>.film-poster {width:100%}
 .festival-sheet .sheet-film-name {flex-direction:row;flex-wrap:wrap;align-items:baseline}
}

.festival-cell .festival-thumb {width:34px;height:29px;border:0;background:transparent}
.festival-cell .festival-thumb img {object-fit:contain}
.fa-art .institution-mark.festival-thumb img {object-fit:contain}
.festival-cell .festival-thumb.is-logo {background:#f7f7f4}
.festival-cell .festival-thumb.is-logo img {padding:2px}
.festival-sheet .sheet-art.is-cover .sheet-image,
.festival-sheet .sheet-art.is-logo .sheet-image {height:auto;aspect-ratio:auto;max-height:260px;object-fit:contain}
.festival-sheet .sheet-art.is-logo .sheet-image {max-height:140px;padding:7px}
