/* Semantic heading presentation: labels keep their original typography. */
.pfs-label{margin:0;max-width:none;font-weight:bold}
.pfs-label-h2{font-size:1.5em}
.pfs-label-h3{font-size:1.17em}
.pfs-label-h4{font-size:1em}
.pfs-faq-question{margin:0;min-width:0;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit}

/* Prague Film School — design tokens, resets and theme variables.
   Loaded once per route via <helmet><link>. All layout/component styling
   lives inline on the elements themselves. */

/* The demo labels this direction "Century Gothic". URW Gothic is the
   self-hosted, open-source alternative used by that preview. */
@font-face{
  font-family:"URW Gothic";
  src:url("../urw_gothic/URWGothic-Book.otf") format("opentype");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
@font-face{
  font-family:"URW Gothic";
  src:url("../urw_gothic/URWGothic-BookOblique.otf") format("opentype");
  font-style:italic;
  font-weight:400;
  font-display:swap;
}
@font-face{
  font-family:"URW Gothic";
  src:url("../urw_gothic/URWGothic-Demi.otf") format("opentype");
  font-style:normal;
  font-weight:600;
  font-display:swap;
}
@font-face{
  font-family:"URW Gothic";
  src:url("../urw_gothic/URWGothic-DemiOblique.otf") format("opentype");
  font-style:italic;
  font-weight:600;
  font-display:swap;
}

:root{
  --bg:#0b0b0c;
  --bg2:#141417;
  --bg3:#1d1d21;
  --fg:#f3f1ef;
  --dim:#a29e99;
  --line:#2c2c31;
  --acc:oklch(0.63 0.19 25);
  --accfg:#ffffff;
  --max:1280px;
  --mono:ui-monospace,SFMono-Regular,Menlo,monospace;
  --body-font:"URW Gothic","Century Gothic",CenturyGothic,AppleGothic,Arial,sans-serif;
  --display-font:"URW Gothic","Century Gothic",CenturyGothic,AppleGothic,Arial,sans-serif;
  --mobile-menu-peek:48px;
  --mobile-menu-motion:.46s cubic-bezier(.32,.72,0,1);
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#fbfaf8;
  --bg2:#f2f0ec;
  --bg3:#e7e4de;
  --fg:#141415;
  --dim:#5d5a55;
  --line:#dbd7d0;
  --acc:oklch(0.53 0.19 25);
  --accfg:#ffffff;
  color-scheme:light;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--body-font);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  transition:background .25s ease,color .25s ease;
}
.pfs-display-font,
.home-alumni-card .home-alumni-title{
  font-family:var(--display-font)!important;
  font-weight:400!important;
  letter-spacing:-.025em!important;
}
/* One hero scale for every route. Page headers previously declared six
   different clamp() ramps, so the banner resized on every navigation. */
main h1{
  max-width:none!important;
  font-size:clamp(38px,5.8vw,80px)!important;
  line-height:1.06!important;
  letter-spacing:-.025em!important;
  margin-inline:auto!important;
  text-align:center;
  white-space:normal!important;
}
/* Hero titles use the demi cut. The .pfs-display-font rule above
   pins everything else to 400 and outranks a bare `main h1`, so this
   selector has to carry the attribute too. */
main h1.pfs-display-font,main h1{font-weight:600!important}
/* In light mode, dark photo-backed titles can cross dark areas of the crop.
   A light edge and soft shadow preserve the letterforms without changing the
   already-readable dark-theme banners. */
:root[data-theme="light"] .photo-hero-title{
  -webkit-text-stroke:.25px rgba(255,255,255,.32);
  paint-order:stroke fill;
  text-shadow:0 1px 2px rgba(255,255,255,.08);
}
h1,h2,h3,h4,h5,p,ul,ol,figure,blockquote,dl,dd{margin:0}
ul,ol{padding:0;list-style:none}
img,video,iframe{display:block;max-width:100%}
/* Intrinsic HTML dimensions reserve space; responsive CSS still controls size. */
img{height:auto}
.theme-light-only{display:none!important}
:root[data-theme="light"] .theme-dark-only{display:none!important}
:root[data-theme="light"] .theme-light-only{display:block!important}
a{color:var(--acc);text-decoration:none}
a:hover{color:var(--fg)}
button,input,select,textarea{font:inherit;color:inherit}
/* An auto grid track is floored by the control's min-content width; the
   select's 46px arrow gutter pushed that past the column and overflowed
   the viewport on narrow screens. */
input,select,textarea{min-width:0;max-width:100%}
select{
  -webkit-appearance:none;
  appearance:none;
  padding-right:46px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23f3f1ef' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 16px center!important;
  background-size:10px 6px!important;
  cursor:pointer;
}
:root[data-theme="light"] select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23141415' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}
summary{cursor:pointer;list-style:none}
summary::-webkit-details-marker{display:none}
:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
/* Accordion marker. The "+" used to rotate 45deg into a "\00d7", which reads
   as dismiss rather than collapse; it is now drawn as a plus/minus pair. */
[data-marker]{
  position:relative;
  display:inline-block;
  flex:none;
  width:16px;
  height:16px;
  font-size:0!important;
  color:transparent!important;
}
[data-marker]::before,[data-marker]::after{
  content:"";
  position:absolute;
  inset:50% 0 auto 0;
  height:2px;
  margin-top:-1px;
  background:var(--acc);
  transition:transform .18s ease,opacity .18s ease;
}
[data-marker]::after{transform:rotate(90deg)}
details[open] summary [data-marker]::after{transform:rotate(90deg) scaleX(0);opacity:0}
::selection{background:var(--acc);color:var(--accfg)}

/* Poster galleries keep uniform rows while full credits remain available
   in each poster's lightbox. */
.alumni-poster-grid>li{min-width:0}
.alumni-poster-grid figure{height:100%;display:flex;flex-direction:column}
.alumni-poster-caption{min-height:101px}
.alumni-poster-title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.alumni-poster-credit{
  height:4.5em;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.001ms!important;transition-duration:.001ms!important}
}

/* ===================================================================
   UX pass — shared components, spacing and responsive corrections.
   Inline styles still describe each block's own layout; the rules below
   are the parts that must not drift between pages, so they carry
   !important where they override an inline declaration.
   =================================================================== */

/* --- Skip link ---------------------------------------------------- */
.skip-link{
  position:absolute;
  left:8px;
  top:-64px;
  z-index:200;
  padding:12px 18px;
  background:var(--acc);
  color:var(--accfg);
  font-size:12px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  transition:top .18s ease;
}
.skip-link:focus{top:8px;color:var(--accfg)}

/* Sticky header is ~116px; in-page targets need matching clearance so
   an anchor jump does not park the heading underneath it. */
:where(main) [id],main{scroll-margin-top:132px}

/* --- Sticky header ------------------------------------------------ */
/* Keep the school name on three lines beside the logo, including the drawer. */
header .site-brand-name{max-width:min-content!important}
header{transition:box-shadow .2s ease}
:root[data-scrolled="1"] header{box-shadow:0 8px 28px rgba(0,0,0,.28)}
:root[data-theme="light"][data-scrolled="1"] header{box-shadow:0 8px 24px rgba(0,0,0,.1)}
/* Show which trigger owns the open dropdown. */
header [aria-expanded="true"]{color:var(--acc)!important}
.btn.mobile-nav-toggle{width:44px!important;min-width:44px;min-height:44px;padding:0!important;flex:none}
.mobile-nav-icon{width:22px;height:16px;display:flex;flex:0 0 22px;flex-direction:column;justify-content:space-between}
.mobile-nav-icon>span{display:block;width:22px;height:2px;border-radius:999px;background:currentColor}
.mobile-menu-drawer{
  position:fixed;
  inset:0 0 0 auto;
  z-index:73;
  width:calc(100vw - var(--mobile-menu-peek));
  height:100dvh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--bg2);
  box-shadow:-24px 0 56px rgba(0,0,0,.38);
  transform:translate3d(100%,0,0);
  visibility:hidden;
  pointer-events:none;
  touch-action:pan-y;
  will-change:transform;
  transition:transform var(--mobile-menu-motion),visibility 0s linear .46s;
}
.mobile-menu-drawer.is-open{
  transform:translate3d(var(--mobile-menu-drag,0px),0,0);
  visibility:visible;
  pointer-events:auto;
  transition:transform var(--mobile-menu-motion),visibility 0s;
}
.mobile-menu-drawer.is-dragging{transition:none!important}
.mobile-menu-peek{
  position:fixed;
  inset:0 auto 0 0;
  z-index:72;
  width:var(--mobile-menu-peek);
  padding:0;
  border:0;
  background:linear-gradient(90deg,rgba(0,0,0,.06),rgba(0,0,0,.28));
  color:#fff;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.mobile-menu-peek-hint{
  position:absolute;
  top:50%;
  left:16px;
  width:10px;
  height:10px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  opacity:.72;
  transform:translateY(-50%) rotate(-45deg);
}

/* --- Button system ------------------------------------------------
   Was ten variants: five primary heights (40/44/46) and five outline
   heights (40/42/44/48) with font-weight and font-size drifting too.
   Both variants now carry a 1px border so their box heights match. */
.btn{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:48px;
  /* Optical centring. Flex centres the line box, but an all-caps label has
     no descender, so its ink sits ~0.12em high; the trailing letter-space
     also pulls it ~0.06em left. Offset the padding by half of each. */
  padding:calc(12px + .12em) calc(26px - .06em) calc(12px - .12em) calc(26px + .06em)!important;
  border:1px solid transparent!important;
  border-radius:0!important;
  font-family:inherit;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1.1;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  text-align:center;
  white-space:nowrap;
  cursor:pointer;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}
.btn--primary{background:var(--acc)!important;color:var(--accfg)!important;border-color:var(--acc)!important}
.btn--primary:hover{background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)!important}
.btn--secondary{background:transparent!important;color:var(--fg)!important;border-color:var(--line)!important}
.btn--secondary:hover{border-color:var(--acc)!important;color:var(--acc)!important}
.btn--sm{
  min-height:44px;
  padding:calc(10px + .12em) calc(18px - .06em) calc(10px - .12em) calc(18px + .06em)!important;
  font-size:11px!important;
}
.btn-row{display:flex!important;flex-wrap:wrap;gap:12px;align-items:center}
.btn-row>li{display:contents}

/* Eyebrow and inline-detail links were 10-16px tall hit areas. */
.link-tap{display:inline-block;padding-block:6px;min-height:24px}

/* --- Reading measure ----------------------------------------------
   Body copy ran to ~98 characters per line while the right third of the
   container stayed empty. */
/* em, not ch: URW Gothic's "0" is unusually narrow, so a ch-based measure
   collapsed body copy to roughly 45 characters. 38em lands near 70. */
main p{max-width:34em}
main p.pfs-wrap,
.balanced-copy>p:not(.pfs-label){
  text-align:justify;
  text-justify:inter-word;
  hyphens:none;
}
main li{max-width:36em}
/* ...but a list item used as a layout row or card is not body copy. */
main li:has(> div),main li:has(> img),main li:has(> figure),main li:has(> article),
main li:has(> section),main li:has(> ul),main li:has(> iframe),main li:has(> h2),
main li:has(> h3),main li:has(> .pfs-label),main li:has(> .btn),main li:has(> a > img){max-width:none}
main .media-list{max-width:940px}
main details{max-width:42em}
main .accordion-group{max-width:42em}
main p.u-measure-none,main li.u-measure-none{max-width:none}

/* Standalone copy should keep a readable measure without appearing pinned to
   one side of a full-width section. Text stays left-origin/justified inside
   the centered block; headings and labels are not center-aligned. */
.balanced-copy{max-width:44em;margin-inline:auto}
.balanced-copy>p:not(.pfs-label){max-width:none}

/* --- Two-column editorial split -------------------------------------
   Body copy is capped at the reading measure, so a full-width container
   left a ~690px void beside every text block. The heading takes the
   slack on the left and the copy sits at its measure on the right. */
/* The heading's own top margin moves to the wrapper so both columns
   start on the same line. */
.split{margin-top:72px}
.split:first-child{margin-top:0}
.split__head>h2{margin-top:0!important}
.split__body>*:first-child{margin-top:0!important}
@media (min-width:1000px){
  .split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,34em);gap:56px;align-items:start}
  .split__head:has(h2){position:sticky;top:148px}
  .split__body p,.split__body li{max-width:none}
  .split__body .accordion-group,.split__body details{max-width:none}
}
/* Keep the original mobile overview and accordions. Only desktop uses
   open curricula and headings that follow the adjacent copy. */
.program-desktop-heading,.semester-heading{display:none}
@media (min-width:1000px){
  .program-mobile-heading{display:none}
  .program-overview{margin-top:0!important;gap:56px!important}
  .program-overview__head,.semester-heading{position:sticky;top:148px}
  .program-desktop-heading{display:block;margin-bottom:36px}
  .semester-curriculum{margin-top:72px!important;border-top:0!important}
  .semester-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,34em);gap:56px;align-items:start}
  .semester-layout+.semester-layout{margin-top:72px}
  .semester-heading{display:block}
  .semester-layout>details{min-width:0;max-width:none;border-bottom:0!important}
  .semester-layout>details>summary{display:none!important}
  .semester-layout>details>div{max-width:none!important;padding:0!important}
  .semester-layout p,.semester-layout li{max-width:none}
  .semester-layout li{position:relative;padding-left:26px}
  .semester-layout li::before{content:"—";position:absolute;left:0;color:var(--acc)}
}
/* Intro leads are set larger, so 34em of their own size is already wide. */
main p.pfs-reading{max-width:32em}

/* Independent bios sit one per cell, so nothing breaks mid-paragraph. */
@media (min-width:1000px){
  .bio-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 56px!important;align-items:start}
  .bio-grid p{max-width:none}
  /* Short-bio people lists run two per row rather than one 940px column. */
  .media-list--2up{max-width:var(--max)!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 56px;align-items:start}
  .media-list--2up .media-row{grid-template-columns:150px minmax(0,1fr);gap:24px}
  .media-list--2up .media-row p,.media-list--2up .media-row h3{max-width:none}
  .media-list--2up>li:last-child:nth-child(odd){
    grid-column:1/-1;
    justify-self:center;
    width:calc((100% - 56px)/2);
  }
}

/* --- Tabs ---------------------------------------------------------- */
[role="tablist"]{scrollbar-width:thin}
[role="tab"]{font-size:12px!important;min-height:48px}

/* Intrinsic dimensions reserve space while Filmmaking photos load; their
   authored desktop aspect ratios still determine the automatic height. */
.filmmaking-content-photo{height:auto}

/* --- Cards / galleries --------------------------------------------- */
/* Posters range from 0.63 to 2.53 in source aspect; cover-cropping them
   into a 2:3 frame beheaded the landscape key art. */
.alumni-poster-grid img{object-fit:contain!important;background:var(--bg3)}
.portrait-media{aspect-ratio:3/4;object-fit:cover;width:100%;height:auto!important}

/* Faculty profiles retain their existing mobile photo and text flow.
   On desktop, the portrait and caption follow the full-width biography. */
.faculty-card__identity{display:none}
@media (min-width:1000px){
  main .media-list.faculty-list{max-width:none}
  .faculty-card{grid-template-columns:220px minmax(0,1fr)!important;gap:56px!important}
  .faculty-card__identity{display:block;position:sticky;top:148px;align-self:start;min-width:0}
  .faculty-card__identity>.faculty-card__name{line-height:1.25}
  .faculty-card__mobile-photo,
  .faculty-card__body>.faculty-card__name,
  .faculty-card__body>.faculty-card__name+p{display:none}
  .faculty-card__body{grid-column:auto!important;min-width:0!important}
  .faculty-card__body>p:last-child{max-width:none;margin-top:0!important;font-size:17px!important}
}

/* Admissions tuition cards use semantic term/value pairs so primary fees are
   scannable without turning each card into another paragraph wall. */
.tuition-grid{margin-top:32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;align-items:stretch}
.tuition-card{padding:24px;border:1px solid var(--line);background:var(--bg2)}
.tuition-card .tuition-card__title{font-size:17px;font-weight:600}
.tuition-fees{margin:20px 0 0;display:grid;gap:16px}
.tuition-fees>div{padding-top:14px;border-top:1px solid var(--line)}
.tuition-fees dt{font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}
.tuition-fees dd{margin:6px 0 0;font-size:16px;line-height:1.55;color:var(--fg)}
.tuition-fees dd strong{font-size:clamp(20px,2.3vw,27px);font-weight:600}

/* Admissions uses one continuous desktop grid instead of alternating between
   full-width cards and narrow centered text, which left large dead zones. */
.admissions-contact-card{display:flex;min-height:182px;flex-direction:column}
.admissions-notes-grid,
.admissions-profile-details{
  margin-top:36px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:56px;
  align-items:start;
}
.admissions-note{padding-top:28px;border-top:1px solid var(--line)}
.admissions-note p,
.admissions-profile-details p{max-width:none}
.admissions-profile-details{
  margin-top:52px;
  padding-top:52px;
  border-top:1px solid var(--line);
}

/* --- Footer --------------------------------------------------------- */
footer a{display:inline-block;padding:4px 0;min-height:24px}
footer .footer-col{align-self:stretch}

/* --- Utility bar ---------------------------------------------------- */
/* Keep utility links readable against the pale header surface in light mode. */
:root[data-theme="light"] header .utility-social a,
:root[data-theme="light"] header .utility-login{
  color:var(--fg)!important;
}
/* The bar is justified to the right with overflow hidden, so below the
   breakpoint the first social links were clipped off the left edge. */
@media (max-width:820px){
  .utility-social{display:none!important}
  .site-brand-name,.utility-login{color:var(--fg)!important}
  header nav{gap:4px!important}
  header .mobile-apply-btn{width:auto!important}
}

/* The mobile drawer behaves like an iOS side sheet: it enters from the
   right while the current page moves with it and leaves a tappable preview. */
@media (max-width:999px){
  .site-header-layer,
  .site-page>main,
  .site-page>main~*{
    will-change:transform;
    transition:transform var(--mobile-menu-motion);
  }
  body.nav-open .site-header-layer,
  body.nav-open .site-page>main,
  body.nav-open .site-page>main~*{
    transform:translate3d(calc(-100vw + var(--mobile-menu-peek) + var(--mobile-menu-drag,0px)),0,0);
  }
  body.nav-dragging .site-header-layer,
  body.nav-dragging .site-page>main,
  body.nav-dragging .site-page>main~*{
    transition:none!important;
  }
}

/* --- Narrow screens -------------------------------------------------- */
@media (max-width:820px){
  /* Section rhythm was authored for the desktop column and left very
     large empty bands on a phone. */
  main section>div,main>div>div{padding-top:clamp(40px,9vw,72px)!important;padding-bottom:clamp(40px,9vw,72px)!important}
  main section>div:empty{padding:0!important}
  /* Every page uses the same compact tab index on mobile, with all
     destinations visible and the existing keyboard/tab behavior retained. */
  [role="tablist"]{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px!important;
    overflow:visible;
    border-bottom:0!important;
  }
  [role="tablist"]>li{min-width:0}
  [role="tablist"]>li:last-child:nth-child(odd){grid-column:1/-1}
  [role="tab"]{
    display:flex;
    align-items:center;
    width:100%;
    min-height:58px;
    height:100%;
    padding:10px 12px!important;
    border:1px solid var(--line)!important;
    background:var(--bg2)!important;
    margin:0!important;
    white-space:normal;
    text-align:left;
    line-height:1.35;
  }
  [role="tab"][aria-selected="true"]{
    border-color:var(--fg)!important;
    background:var(--fg)!important;
    color:var(--bg)!important;
    box-shadow:inset 4px 0 0 var(--acc);
  }
  /* Editorial pairs authored as fixed desktop columns can collapse one track
     to zero on a phone, leaving a blank strip and hiding the image or dates.
     Opted-in pairs stack and release their desktop min-widths at this size. */
  .mobile-stack{
    grid-template-columns:minmax(0,1fr)!important;
    gap:32px!important;
  }
  .mobile-stack>*{min-width:0!important}
  .alumni-news-card{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .alumni-news-card>p{
    grid-column:auto!important;
    min-width:0!important;
  }
  .admissions-contact-card{min-height:0}
  .admissions-contact-grid,
  .admissions-notes-grid,
  .admissions-profile-intro,
  .admissions-profile-details{
    padding-top:0!important;
    padding-bottom:0!important;
  }
  .admissions-notes-grid,
  .admissions-profile-details{
    grid-template-columns:minmax(0,1fr);
    gap:32px;
  }
  .admissions-profile-details{
    margin-top:40px;
    padding-top:40px;
  }
  /* Program summaries use a two-column date/details composition on desktop.
     Stack those columns before the fixed-width copy can crush the dates and
     overlap the text on a phone. */
  .program-summary-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:32px!important;
  }
  .program-summary-grid>*{min-width:0!important}
  /* Preserve every Filmmaking photograph's native proportions on phones.
     Width remains fluid, while auto height removes the crop imposed by the
     desktop editorial frames. */
  .filmmaking-content-photo{
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
  }
  .filmmaking-hero{aspect-ratio:2560/1707}
  .filmmaking-hero__photo{object-fit:contain!important}
  .filmmaking-hero__content{
    position:absolute!important;
    inset:0;
    display:flex;
    align-items:flex-end;
    padding:40px 24px!important;
  }
  .faculty-profile{
    grid-template-columns:minmax(0,1fr)!important;
    gap:28px!important;
  }
  .filmmaking-faculty-profile>.filmmaking-content-photo{
    aspect-ratio:auto 3/4!important;
  }
  .faculty-profile>div{
    grid-column:auto!important;
    min-width:0!important;
  }
  .btn{width:100%}
  .btn-row{flex-direction:column;align-items:stretch}
}

/* Portrait + copy rows: single column on a phone, and the poster grid
   keeps at least two columns instead of one full-width tile per row. */
@media (max-width:820px){
  .cta-grid{grid-template-columns:minmax(0,1fr)!important;justify-items:start}
  .media-row{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
  /* Stacked media fills the column; a capped width left a gap beside it. */
  .media-row>img{max-width:none;width:100%}
  .alumni-poster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
}

/* Body scroll lock while the mobile menu overlay is open. */
body.nav-open{overflow:hidden}

/* Restored policy links remain inline within the reference article typography. */
[data-pfs-policy] a.link-tap{display:inline;padding:0;min-height:0}
[data-pfs-policy] p+p{margin-top:14px}
.pfs-policy-date strong{color:var(--fg)}
[data-pfs-policy] h2{margin-top:48px}
[data-pfs-policy] .pfs-policy-date+h2{margin-top:44px}

/* Client small fixes — 4 November 2026. */
:where(main,header,footer),:where(main,header,footer) *{hyphens:none!important;-webkit-hyphens:none!important;word-break:normal!important;overflow-wrap:normal!important}
:where(main,header,footer) wbr{display:none!important}
body[data-pfs-route="faculty"] #intro-heading,
body[data-pfs-route="notable-guests"] #intro-heading{margin-inline:auto;text-align:center}
body[data-pfs-route="notable-guests"] section[aria-labelledby="intro-heading"] p{margin-inline:auto;text-align:center}
body[data-pfs-route="notable-guests"] .media-list--2up>li>div>p{max-width:none;text-align:left}
body[data-pfs-route="alumni"] .alumni-news-card>p{grid-column:auto!important;min-width:0!important;max-width:none;margin:0}
@media(min-width:1000px){
  body[data-pfs-route="notable-guests"] .media-list--2up{align-items:stretch!important}
  body[data-pfs-route="notable-guests"] .media-list--2up>.media-row{grid-template-columns:160px minmax(0,1fr)!important;gap:28px!important;align-content:start}
}
@media(min-width:821px){
  body[data-pfs-route="alumni"] .alumni-news-card{grid-template-columns:minmax(180px,1fr) minmax(0,2fr)!important;gap:40px!important}
}
/* End client small fixes. */

/* Facilities photographs keep their original thumbnail layout and open a modal. */
.pfs-facility-thumbnail{display:block;width:100%;padding:0;border:0;border-radius:0;background:none;color:inherit;cursor:zoom-in}
.pfs-facility-thumbnail:focus-visible{outline:3px solid var(--acc);outline-offset:4px}
.pfs-facilities-lightbox .pfs-s-db7ef3f328{max-width:1100px!important;max-height:calc(100dvh - 64px);overflow:auto}
.pfs-facilities-lightbox .pfs-s-b061c7f0cd{max-width:100%;max-height:65dvh!important;object-fit:contain}
.pfs-facilities-lightbox .pfs-s-bab6b5cf3a{flex-wrap:wrap}

/* Student planning links revealed after password verification. */
.pfs-planning-links{list-style:none;padding:0;margin:24px 0;display:grid;gap:12px}
.pfs-planning-links a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:16px;border:1px solid var(--line);background:var(--bg);color:var(--fg);font-size:16px;text-decoration:none}
.pfs-planning-links a:hover{border-color:var(--acc)}
.pfs-planning-links a:focus-visible{outline:2px solid var(--acc);outline-offset:3px}

/* Brand icons supplement the existing social link text. */
.pfs-social-icon{display:block;width:16px;height:16px;flex:none;fill:currentColor}
.pfs-social-link{gap:7px}
footer .pfs-social-link{display:inline-flex;align-items:center;min-height:32px}
header .pfs-social-icon{width:14px;height:14px}
@media(max-width:820px){footer .pfs-social-link{min-height:44px}}

/* Steve's final review: consistent program columns and mobile reading order. */
@media(min-width:1000px){
  .student-careers{grid-template-columns:minmax(0,1fr) minmax(0,34em)!important;gap:56px!important}
  .student-careers>div>p{max-width:none}
  .semester-layout>details>div{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:999px){
  .pfs-image-copy{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
  .pfs-image-copy>figure,.pfs-image-copy>img{order:-1!important}
  .pfs-image-copy>div{min-width:0}
  .split__body{margin-top:24px}
  main :is(h2,h3)+:is(p,ul,ol){margin-top:24px!important}
  .faculty-profile>.faculty-card__mobile-photo{width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:3/4!important;object-fit:cover!important}
  body[data-pfs-route="studying-in-prague"] .split__body{margin-top:28px}
  .pfs-facility-thumbnail{cursor:default;pointer-events:none}
}
body[data-pfs-route="notable-guests"] .media-list--2up>li>div>p{text-align:justify;text-justify:inter-word}
