/* Oxford Talks — site-wide stylesheet (was ot-phone), 12 Sep 2026: phone pass + events tabs + stacked event cards on phones + newsletter row. Loaded site-wide from Site settings → Custom code → Head,
   so it applies to every page without touching the page embeds. Every selector is prefixed with
   `html` so it outranks the same rule in ot-7.css, which each page loads later in the body.
   Mirrors prototype/v135.html. */
:root{--gx:0px}
@media(max-width:1384px){:root{--gx:var(--gut)}}
/* margins: the section rules in ot-7 zero the side padding; give it back below 1,384px */
html section.wrap{padding-left:var(--gx);padding-right:var(--gx)}
html #home .rooms,html #home .proof,html #home .partners,html #home .latest-sec{padding-left:var(--gx);padding-right:var(--gx)}
/* menu sheet scrolls on short phones */
html .sheet{overflow-y:auto;overscroll-behavior:contain}
/* home map: page scrolls over it at 1:1, the map takes the touch once zoomed */
html .wmap{touch-action:pan-y}
html .map-wrap.zoomed .wmap{touch-action:none}
@media(max-width:600px){
  html .hero:not(.cine){min-height:0!important;align-items:start;padding-top:40px;padding-bottom:64px}
  html .hero:not(.cine) .top{padding-top:0}
  html .hero:not(.cine) .top:not(.lockup){flex-wrap:wrap;gap:20px 24px}
  html .hero:not(.cine) .hero-mark{width:96px;height:96px}
  html .hero .top.lockup,html .lockup{gap:8px}
  html .lk-big{font-size:36px}
  html .hero:not(.cine) .h1{margin-top:28px;font-size:44px}
  html .hero .lead{margin-top:16px;font-size:18px}
  html .hero .cta{margin-top:28px;gap:10px}
  html .hero .cta .btn{padding:13px 20px}
  html .hero.cine{min-height:100svh;padding-bottom:30svh}
  html .hero.cine .h1{margin-top:0}
  html .hero.cine .cta{margin-top:24px}
  html .arc-bar-wrap{padding-top:0}
  html .map-zoom{display:none}
}

  /* events rail: Upcoming / Past tabs (Luma-fed) */
  .ev-tabs{display:flex;gap:22px}
  .ev-tab{font-size:var(--s11);letter-spacing:.22em;text-transform:uppercase;font-weight:400;color:var(--fg-60);padding:0 0 6px;border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
  .ev-tab:hover{color:var(--fg)}
  .ev-tab.on{color:var(--fg);border-bottom-color:var(--fg)}
  .lu-empty{font-size:15px;color:var(--fg-60);padding:8px 4px;list-style:none}

/* events rail on phones: the card stacks — cover on top, full-width text — instead of squeezing the words beside a 112px cover */
@media(max-width:600px){
  html .lu{flex:0 0 min(340px,84vw)}
  html .lu-card{grid-template-columns:1fr;gap:16px;padding:16px}
  html .lu-cover{order:-1;aspect-ratio:16/10}
  html .lu-meta{flex-wrap:wrap;gap:8px 10px}
  html .lu-flag{white-space:nowrap}
  html .lu-title{font-size:21px}
  /* the rail is swiped on touch: no arrows, and the link keeps to one line */
  html .ev-arrow{display:none}
  html .ev-nav .cap{white-space:nowrap;margin-left:0!important}
}

/* newsletter row above the footer's Next row, injected by ot-news.js from the site footer code */
html .fnw{display:grid;grid-template-columns:1fr minmax(320px,440px);gap:40px;align-items:center;border-top:1px solid var(--line);padding:44px 0 40px}
html .fnw-line{font-family:var(--sans);font-weight:200;font-size:clamp(26px,3vw,40px);line-height:1.08;letter-spacing:-.02em;margin-top:14px;max-width:16ch}
html .fnw .cap{margin-top:14px}
html .fnw-form{display:flex;align-items:center;gap:8px;border:1px solid var(--fg-30);border-radius:999px;padding:6px 6px 6px 22px;transition:border-color .2s}
html .fnw-form:focus-within{border-color:var(--fg)}
html .fnw-form input{flex:1;min-width:0;background:none;border:0;font:inherit;font-size:16px;color:var(--fg);outline:none;margin:0}
html .fnw-form input::placeholder{color:var(--fg-60)}
html .fnw-form .btn{padding:12px 20px;white-space:nowrap}
@media(max-width:860px){html .fnw{grid-template-columns:1fr;gap:24px}}
@media(max-width:600px){html .fnw{padding:36px 0 32px}html .fnw-form{padding:5px 5px 5px 18px}html .fnw-form .btn{padding:11px 16px}}

/* consent bar, minimal (12 Sep evening): one pill on desktop, two lines on phones; overrides the styles ot-consent.js injects (html prefix outranks them). Yes keeps white-on-black in every state: the hover rule in ot-consent turned it black-on-black on iPhone. */
html .otck{left:16px;right:auto;bottom:16px;max-width:calc(100vw - 32px);padding:8px 8px 8px 18px;border-radius:999px;display:flex;align-items:center;gap:16px;box-shadow:0 20px 40px -24px rgba(0,0,0,.4)}
html .otck-q{font-size:14px;line-height:1.35;max-width:none;white-space:nowrap}
html .otck-row{margin-top:0;gap:6px;flex-wrap:nowrap}
html .otck .btn{padding:8px 14px;font-size:13px}
html .otck .btn.fill,html .otck .btn.fill:hover,html .otck .btn.fill:active,html .otck .btn.fill span,html .otck .btn.fill:hover span{background:#000;border-color:#000;color:#F8F6F4;transform:none}
html .otck .btn.fill::before{display:none}
html .otck-link{margin-left:6px;margin-right:6px;font-size:12px;white-space:nowrap;border-bottom:1px solid rgba(0,0,0,.2)}
@media(max-width:640px){
  html .otck{left:10px;right:10px;bottom:10px;max-width:none;display:block;padding:12px 14px 12px;border-radius:20px}
  html .otck-q{white-space:normal;font-size:14px}
  html .otck-row{margin-top:10px;flex-wrap:nowrap;align-items:center}
  html .otck-link{margin-left:auto;margin-right:2px;width:auto;margin-top:0}
}

/* About team: four cards since Matt left (12 Sep 2026), so the grid is four across, two on tablets */
html .team{grid-template-columns:repeat(4,1fr)}
@media(max-width:1100px){html .team{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){html .team{grid-template-columns:repeat(2,1fr)}html .tc.many{grid-column:span 1;aspect-ratio:3/4}}

/* team cards (Waleed, 12 Sep): no tilt, no lift, no moving highlight; corners 14px like the other tiles. The click-to-flip stays. */
html .tc{transform:rotateY(var(--flip,0deg))}
html .tc.live{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
html .tc .front::before{display:none}
html .tc .face,html .tc.many .sh{border-radius:14px}
html .tc.flip .front,html .tc:not(.flip) .back{pointer-events:none}

/* latest talk without a scrub strip (the daily job could not fetch the video): no frame swap, no scrub line */
html .talk.nosprite .talk-frame,html .talk.nosprite .talk-scrub{display:none}

/* more talks under the latest talk (12 Sep): the clips row's slot in the grid, filled from OT_LATEST.more */
html .latest{grid-template-areas:"talk card" "more card"}
@media(max-width:860px){html .latest{grid-template-areas:"talk" "card" "more"}}
/* more talks under the latest talk */
html .latest .more{grid-area:more;min-width:0}
html .more-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:0}html .more-head .meta{margin:0}
html .more-head a{color:var(--fg-60);text-decoration:none;transition:color .2s}.more-head a:hover{color:var(--tangerine)}
html .more-list{list-style:none;margin:0;padding:0}
html .more-list li{border-top:1px solid var(--line)}
html .more-list a{display:grid;grid-template-columns:136px 1fr;gap:16px;align-items:center;padding:14px 0;color:inherit;text-decoration:none}
html .more-list img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px;display:block;filter:saturate(.9);background:#0E0D0B}
html .more-t{display:block;font-size:var(--s16);font-weight:400;line-height:1.3;letter-spacing:-.005em;transition:color .2s}
html .more-list a:hover .more-t{color:var(--tangerine)}
html .more-list .cap{display:block;margin-top:4px}
@media(max-width:600px){html .more-list a{grid-template-columns:112px 1fr;gap:12px}}
html .latest{align-items:stretch}
html .latest .orator-card{height:auto}
html .latest .oc-chapters-wrap{flex:1 1 auto;max-height:none;min-height:160px}
@media(max-width:860px){html .latest .oc-chapters-wrap{max-height:260px;flex:0 0 auto}}
