/* Portal home (approved board wireframes/v13/portal.png) + inner-page shell.
   Desktop: one screen. Phone: about two. Sizes on the type tokens, spacing on the scale. */

/* ---------- header: solid sand, one row; the drawer is designed, not system chrome ---------- */
body .header { position: sticky !important; top: 0; background: rgba(247,246,242,.96) !important; border-bottom: 1px solid var(--rule) !important; }
body .header .nav > li > a, body .header .lockup b { color: var(--ink) !important; text-shadow: none !important; }
body .header .btn { color: var(--night) !important; text-shadow: none !important; }
.header-in { min-height: 72px; padding-block: 0 !important; }
.nav > li > a[aria-current="page"] { color: var(--blue); }
.nav > li > a[aria-current="page"]::after { transform: scaleX(1); }
.drawer { border-top: 1px solid var(--rule); padding: var(--s3) var(--margin) var(--s4); background: var(--sand); }
.drawer ul { list-style: none; display: grid; }
.drawer li a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--rule); font: 400 var(--t-lead)/1.3 var(--serif); color: var(--ink); }
.drawer .btn { margin-top: var(--s3); width: 100%; justify-content: center; }
.drawer-foot { margin-top: var(--s2); font: 400 var(--t-small)/1.5 var(--sans); color: var(--ink-2); }
.drawer-foot a { color: var(--blue); }
@media (min-width: 901px) { .drawer { display: none !important; } }

/* ---------- portal ---------- */
.portal { padding: var(--s3) var(--margin) var(--s3); display: grid; gap: var(--s3); }
.pt-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; min-height: clamp(380px, calc(100svh - 72px - 340px), 520px); }
.pt-id { grid-column: 1 / span 5; background: var(--night); color: var(--sand); padding: var(--s4); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); }
.pt-name { margin: 0; font: 200 var(--t-display)/.9 var(--serif); letter-spacing: -.05em; color: var(--sand); }
.pt-def { font: 400 var(--t-lead)/1.5 var(--serif); color: rgba(247,246,242,.9); }
.pt-def .ref { display: block; margin-top: var(--s1); font: 500 var(--t-cap)/1.5 var(--sans); letter-spacing: .04em; color: rgba(247,246,242,.72); }
.pt-week { position: relative; display: grid; gap: 2px; padding: var(--s2) 64px 0 0; border-top: 1px solid rgba(247,246,242,.3); color: var(--sand); text-decoration: none; }
.pt-week .k { font: 600 var(--t-cap)/1.5 var(--sans); letter-spacing: .04em; color: rgba(247,246,242,.72); }
.pt-week .t { font: 400 var(--t-h3)/1.3 var(--serif); }
.pt-week .m { font: 400 var(--t-small)/1.5 var(--sans); color: rgba(247,246,242,.8); }
.pt-week .play { position: absolute; right: 0; bottom: 4px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(247,246,242,.6); display: grid; place-items: center; transition: background-color .2s ease, border-color .2s ease; }
.pt-week .play svg { width: 22px; height: 22px; fill: var(--sand); transition: fill .2s ease; }
.pt-week:hover .play, .pt-week:focus-visible .play { background: var(--sand); border-color: var(--sand); }
.pt-week:hover .play svg, .pt-week:focus-visible .play svg { fill: var(--night); }
.pt-week:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.pt-week:focus-visible { outline-color: var(--sand); }

/* the film: real dawn photographs, slow push-in and dissolve, paused on request or reduced motion */
.pt-film { grid-column: 6 / span 7; position: relative; margin: 0; overflow: hidden; background: var(--night); }
.pt-film .frames { list-style: none; position: absolute; inset: 0; }
.pt-film .frames li { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.pt-film .frames li.on { opacity: 1; }
.pt-film .frames img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.0); transition: transform 7s linear; }
.pt-film .frames li.on img { transform: scale(1.06); }
.pt-film.paused .frames li.on img { transform: scale(1.0); transition: none; }
.pt-film .frames .cap { display: none; }
.pt-film::after { content: ""; position: absolute; inset: auto 0 0; height: 96px; background: linear-gradient(0deg, rgba(8,18,36,.62), rgba(8,18,36,0)); pointer-events: none; }
.film-ui { position: absolute; z-index: 1; left: var(--s3); right: var(--s2); bottom: var(--s2); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.film-cap { font: 500 var(--t-cap)/1.5 var(--sans); color: #fff; text-shadow: 0 1px 2px rgba(8,18,36,.6); }
.film-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(8,18,36,.25); display: grid; place-items: center; cursor: pointer; transition: background-color .2s ease; }
.film-btn:hover { background: rgba(8,18,36,.55); }
.film-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.film-btn .i-play { display: none; fill: #fff; stroke: none; }
.film-btn[aria-pressed="true"] .i-pause { display: none; }
.film-btn[aria-pressed="true"] .i-play { display: block; }
.film-btn:focus-visible { outline-color: #fff; }

/* times: one ribbon */
.pt-times { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); padding: var(--s2) 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
  font: 400 var(--t-lead)/1.4 var(--sans); color: var(--ink); }
.pt-times b { font: 400 var(--t-lead)/1.4 var(--serif); margin-right: 4px; }
.pt-times .num { font-weight: 600; }

/* doors: eight equal cells, keyline icons on a 32 grid at 1.5 stroke */
.pt-doors { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.pt-doors a { display: grid; justify-items: center; align-content: center; gap: var(--s1); min-height: 128px; padding: var(--s2) var(--s1); color: var(--ink); text-decoration: none;
  border-left: 1px solid var(--rule); transition: background-color .2s ease, color .2s ease; }
.pt-doors a:first-child { border-left: 0; }
.pt-doors .ic { height: 56px; display: grid; place-items: center; }
.pt-doors .ic.n { font: 300 var(--t-h1)/1 var(--serif); letter-spacing: -.04em; color: var(--blue); }
.pt-doors a:nth-child(2) .ic.n { color: var(--orange-ink); }
.pt-doors a:nth-child(3) .ic.n { color: var(--ink); }
.pt-doors svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease; }
.pt-doors .lb { font: 500 var(--t-small)/1.3 var(--sans); text-align: center; }
.pt-doors a:hover, .pt-doors a:focus-visible { background: var(--night); color: var(--sand); }
.pt-doors a:hover .ic.n, .pt-doors a:focus-visible .ic.n { color: var(--sand); }
.pt-doors a:hover svg, .pt-doors a:focus-visible svg { stroke: var(--sand); }
.pt-doors a:active { background: #06182F; }
.pt-doors a:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* news + address */
.pt-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.pt-news { grid-column: 1 / span 8; display: grid; grid-template-columns: 120px 1fr; column-gap: 24px; }
.pt-news .k { font: 600 var(--t-small)/1.5 var(--sans); color: var(--ink); margin: 0; }
.pt-news ul { list-style: none; display: grid; gap: 4px; }
.pt-news li { display: grid; grid-template-columns: 96px 1fr; gap: var(--s2); font: 400 var(--t-small)/1.6 var(--sans); }
.pt-news li .num { color: var(--ink-2); }
.pt-news a { color: var(--ink); text-decoration: none; }
.pt-news a:hover { text-decoration: underline; text-underline-offset: .2em; }
.pt-addr { grid-column: 9 / span 4; display: grid; gap: 4px; justify-items: end; font-style: normal; font: 400 var(--t-small)/1.6 var(--sans); }
.pt-addr a { color: var(--ink); }
.pt-addr a.num { font-weight: 600; color: var(--blue); }

/* the home is the portal: the long footer belongs to inner pages */
body:has(main.is-home) .footer { display: none; }

/* ---------- inner-page shell ---------- */
.page-head { padding: var(--s5) var(--margin) 0; }
.crumb { font: 400 var(--t-cap)/1.5 var(--sans); color: var(--ink-2); display: flex; gap: var(--s1); }
.crumb a { color: var(--ink-2); }
.page-title { margin-top: var(--s2); font: 300 var(--t-h1)/1.1 var(--serif); letter-spacing: -.03em; }
.page-line { margin-top: var(--s1); font: 400 var(--t-body)/1.6 var(--sans); color: var(--ink-2); }
.is-inner > .sec:first-of-type, .is-inner > .spread:first-of-type { padding-top: var(--s5) !important; }
.pending { max-width: 40em; font: 400 var(--t-body)/1.7 var(--sans); color: var(--ink); }
.cover-index, .imprint { display: none; }

@media (max-width: 900px) {
  .portal { padding: var(--s2) var(--margin) var(--s4); gap: var(--s2); }
  .pt-hero { grid-template-columns: 1fr; min-height: 0; }
  .pt-film { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 10; }
  .pt-id { grid-column: 1; padding: var(--s3); gap: var(--s2); }
  .pt-name { font-size: var(--t-display); }
  .pt-def { font-size: var(--t-body); }
  .pt-week { padding-right: 56px; }
  .pt-week .t { font-size: var(--t-lead); }
  .pt-times { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s2); padding: var(--s1) 0; font-size: var(--t-body); }
  .pt-times > span { padding: var(--s1) 0; border-bottom: 1px solid var(--rule); }
  .pt-times b { font-size: var(--t-body); }
  .pt-doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pt-doors a { min-height: 96px; border-top: 1px solid var(--rule); }
  .pt-doors a:nth-child(4n+1) { border-left: 0; }
  .pt-doors .ic { height: 44px; }
  .pt-doors .ic.n { font-size: var(--t-h2); }
  .pt-doors svg { width: 32px; height: 32px; }
  .pt-doors .lb { font-size: var(--t-cap); }
  .pt-foot { grid-template-columns: 1fr; row-gap: var(--s3); }
  .pt-news, .pt-addr { grid-column: 1; }
  .pt-news { grid-template-columns: 1fr; row-gap: var(--s1); }
  .pt-news li { grid-template-columns: 1fr; gap: 0; }
  .pt-addr { justify-items: start; }
  .page-head { padding-top: var(--s4); }
  .page-title { font-size: var(--t-h2); }
}
/* fit the desktop portal to one screen: the hero takes what the ribbon, doors and news leave */
@media (min-width: 901px) {
  .pt-hero { min-height: 0; height: clamp(360px, calc(100svh - 72px - 420px), 560px); }
  .pt-doors a { min-height: 112px; }
  .pt-id { padding: var(--s4) var(--s4) var(--s3); }
}
