/* 2026-10-16: FAQ hover (moved from inline style blocked by CSP) */
.faq-page summary{transition:color .15s ease}.faq-page summary:hover,.faq-page summary:focus-visible,.faq-page details[open]>summary{color:var(--blue)}
/* Disciplines page */
.disciplines-list h2{font-size:24px;line-height:1.25;margin-bottom:0}.discipline-en{display:block;font-size:15px;font-weight:400;letter-spacing:0;color:#555;margin-top:6px}.disciplines-list p+p{margin-top:12px}
/* Tables as stacked cards on phones */
@media(max-width:760px){
.artists-table-wrap{overflow:visible;border-top:0}
.artists-table{min-width:0;table-layout:auto}
.artists-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.artists-table,.artists-table tbody,.artists-table tr,.artists-table td,.artists-table tbody th{display:block;width:100%}
.artists-table tr{border-top:3px solid var(--orange);padding:14px 0 10px}
.artists-table td,.artists-table tbody th{border:0;padding:4px 0;overflow-wrap:normal;word-break:normal}
.artists-table tbody th{font-size:19px;font-weight:600;color:var(--blue);padding-bottom:6px}
.artists-table tbody tr>th,.artists-table tbody tr>td{width:auto!important;max-width:none}
.artists-table td[data-label]:before{content:attr(data-label) ": ";font-weight:600;font-size:14px;color:#555}
}
/* 2026-10-17: contact footer */
footer.site-contact{display:block;margin:65px 4% 0;padding:22px 0 36px;border:0;border-top:5px solid var(--orange);font-size:15px;line-height:1.5;max-width:none}
footer.site-contact p{margin:0}footer.site-contact p+p{margin-top:6px}footer.site-contact a{color:var(--blue)}
@media(min-width:1600px){footer.site-contact{max-width:1520px;margin-left:auto;margin-right:auto}}
@media(max-width:760px){footer.site-contact{margin:45px 5% 0;padding:18px 0 30px}}
/* 2026-10-17: single orange rule at page bottom (drop the footer rule where the next-page rule is present) */
main:has(.next-page)~footer.site-contact{border-top:0;padding-top:28px}
/* 2026-10-17: contact text level with the next-page button on desktop */
@media(min-width:1000px){main:has(.next-page)~footer.site-contact{margin-top:-53px;padding-top:1px;pointer-events:none}main:has(.next-page)~footer.site-contact a{pointer-events:auto}}
/* 2026-10-17: Venice table (7 columns incl. Χορηγός) fits the page; cards below 1100px so nothing is cut off */
@media(min-width:1101px){.biennale-table{min-width:0;width:100%;table-layout:fixed}.biennale-table th:nth-child(1){width:9%}.biennale-table th:nth-child(2){width:13%}.biennale-table th:nth-child(3){width:15%}.biennale-table th:nth-child(4){width:19%}.biennale-table th:nth-child(5){width:8%}.biennale-table th:nth-child(6){width:15%}.biennale-table th:nth-child(7){width:21%}}
@media(max-width:1100px){.artists-table-wrap:has(.biennale-table){overflow:visible;border-top:0}.biennale-table{min-width:0;table-layout:auto}.biennale-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.biennale-table,.biennale-table tbody,.biennale-table tr,.biennale-table td,.biennale-table tbody th{display:block;width:100%}.biennale-table tr{border-top:3px solid var(--orange);padding:14px 0 10px}.biennale-table td,.biennale-table tbody th{border:0;padding:4px 0;overflow-wrap:normal;word-break:normal}.biennale-table tbody th{font-size:19px;font-weight:600;color:var(--blue);padding-bottom:6px}.biennale-table tbody tr>th,.biennale-table tbody tr>td{width:auto!important;max-width:none}.biennale-table td[data-label]:before{content:attr(data-label) ": ";font-weight:600;font-size:14px;color:#555}}
/* 2026-10-17: second intro paragraph (no .lead class) wraps at the same width as the lead above it */
.page-intro>p:not(.lead){max-width:66ch}

/* 2026-10-21: early application actions and consistent FAQ questions. */
.hero-copy>p:has(.application-button){margin:24px 0 0}
.page-intro>.lead+p:has(.application-button){margin-top:20px}
.apply-cta{margin:56px 0 0;max-width:1050px}
.apply-cta .application-button{margin-top:0}
.apply-cta+.next-page{margin-top:28px}
.faq-page #application details>summary{font-size:20px;line-height:1.4;font-weight:500;letter-spacing:normal}
.faq-contents{display:flex;flex-wrap:wrap;gap:12px 24px;max-width:1000px;margin:28px 0 36px;font-size:16px;line-height:1.5}
.faq-contents a{color:var(--blue)}
.faq-page>section{scroll-margin-top:24px}
@media(max-width:760px){
 .faq-page #application details>summary{font-size:18px}
 .faq-contents{gap:10px 20px;margin:24px 0 28px}
}

/* 2026-10-21: one NYFA action directly below each main program page title. */
.page-intro>.top-application,.hero-copy>.top-application{margin:18px 0 0}
.top-application .application-button{margin-top:0}
.page-intro>.top-application+.lead{margin-top:24px}

/* Compact NYFA actions in the exact logo orange. */
.application-button{background:#f26a21;border-color:#f26a21;color:#fff;width:fit-content;max-width:100%;padding:9.2px 13.8px;min-height:50.6px;font-size:20.7px;font-weight:600;border-width:2.3px}
.application-button:hover,.application-button:focus-visible{background:#d9540e;border-color:#d9540e;color:#fff}

/* Align the application action with the title at the upper right on wide screens. */
@media(min-width:761px){
 .page-intro:has(>.top-application){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;align-items:center}
 .page-intro:has(>.top-application)>h1{grid-column:1;grid-row:1}
 .page-intro>.top-application{grid-column:2;grid-row:1;margin:0;justify-self:end}
 .page-intro:has(>.top-application)>p:not(.top-application){grid-column:1 / -1}
}

/* Readability refinements: prose, inline links, table width, and captions. */
.residency-page>section{max-width:74ch}
main p a:not(.application-button):not(.button),
main li:not(.page-contents li) a,
main dd a,main figcaption a{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
@media(min-width:1101px){.biennale-page>section:has(.biennale-table){max-width:none}}
figcaption{font-size:13px;line-height:1.5}
