/* Arkadia site on phones (≤640px). Loaded with media="(max-width:640px)" after each
   page's own styles, so the desktop layout never reads a line of this file.
   Approved mobile design: mockup/sito-mobile (16/11/2026). */

/* ---------- shared ---------- */
html body .btn{height:52px;padding:0 22px;font-size:15px;justify-content:center}
.pill{background:none;border:0;padding:0;min-height:0;font-size:11px;letter-spacing:.14em;color:var(--mute)}
.dark .pill,.pill.d{background:none;border:0;color:#C9D0DE}
section h2{letter-spacing:-.02em}
.shead{margin-bottom:28px}
.shead p{font-size:16px}
.shead.row{display:block}
.shead.row > .btn,.shead.row > a.btn{margin-top:20px}

/* ---------- home: first screen (eyebrow, title, text, two buttons) ---------- */
.hero{display:block;min-height:0}
.hero .bg::after{background:linear-gradient(180deg,rgba(8,32,58,.55) 0%,rgba(8,32,58,.78) 45%,var(--ink) 92%)}
html body .hero .wrap{padding:0}
.hero-main{min-height:calc(100svh - 60px);display:flex;flex-direction:column;justify-content:center;padding:40px clamp(16px,5vw,80px) 36px}
html body .hero h1{font-size:40px;line-height:1.08;margin:18px 0 0;letter-spacing:-.03em}
.hero h1 span{display:block;font-size:.8em;margin-top:10px;letter-spacing:-.02em;line-height:1.15}
.hero p{font-size:16px;margin-top:26px;color:#C9D0DE}
html body .hero .ctas{display:grid;gap:10px;margin-top:40px}
html body .hero .ctas .btn{width:100%;height:52px;font-size:15px;padding:0 22px}
html body .hero .ctas .btn.w{background:var(--orange);color:#fff}
.hero .ctas .btn.o{border-color:rgba(255,255,255,.3)}
.hero .ctas .btn svg{width:16px;height:16px}
html body .hero .meta{display:block;margin:0 clamp(16px,5vw,80px);padding:8px 0 30px;border-top:1px solid var(--dline);font-size:14px;counter-reset:lv}
.hero .meta div{display:grid;grid-template-columns:28px 1fr;column-gap:12px;padding:14px 0;border-bottom:1px solid var(--dline);color:var(--dmute);line-height:1.45}
.hero .meta div:last-child{border-bottom:0}
.hero .meta div::before{counter-increment:lv;content:"0" counter(lv);grid-row:span 2;font-size:12px;font-weight:600;color:var(--orange);padding-top:3px}
.hero .meta b{font-size:16px;margin:0}
.marq{display:none}

/* home: section order on a phone. Who it is for comes right after Why Arkadia,
   the contact block comes last before the footer. */
body:has(> .hero){display:flex;flex-direction:column}
body:has(> .hero) > *{order:3}
body:has(> .hero) > .nav,body:has(> .hero) > .mnav,body:has(> .hero) > .mnav-bg,body:has(> .hero) > .hero,body:has(> .hero) > .stmt{order:1}
body:has(> .hero) > .who{order:2}
body:has(> .hero) > .cta{order:4}
body:has(> .hero) > footer{order:5}

.stmt{text-align:left}
.stmt p{font-size:23px!important;line-height:1.35;margin:18px 0 26px}

/* For institutions: four photos in a 2 by 2 grid */
html body .who .grid{grid-template-columns:1fr 1fr;gap:12px}
html body .wc{aspect-ratio:3/4;border-radius:14px}
.wc div{padding:14px}
.wc h4{font-size:16px;line-height:1.2}
.wc p{font-size:12.5px;line-height:1.4;margin-top:6px}

/* Programmes: every heading opens its own panel in place */
.svc .top{margin-bottom:28px;gap:16px}
.svc .body{display:flex;flex-direction:column;gap:0}
.svc .tabs,.svc .body > div:last-child{display:contents}
.svc .tab{order:var(--o);display:grid;grid-template-columns:40px 1fr 20px;align-items:center;min-height:64px;padding:16px 0;text-align:left;border-bottom:1px solid var(--dline);font-size:17px}
.svc .tab::after{content:"+";font-size:22px;font-weight:400;color:#fff;justify-self:end;line-height:1}
.svc .tab.on::after{content:"–"}
.svc .tab small{color:var(--orange)}
html body .svc .tab{color:#fff}
.svc .panel ul{margin-top:16px}
.svc .tabs .tab:nth-child(1){--o:1}.svc .tabs .tab:nth-child(2){--o:3}.svc .tabs .tab:nth-child(3){--o:5}.svc .tabs .tab:nth-child(4){--o:7}
.svc .panel:nth-child(1){order:2}.svc .panel:nth-child(2){order:4}.svc .panel:nth-child(3){order:6}.svc .panel:nth-child(4){order:8}
.svc .panel{padding:4px 0 26px 40px;border-bottom:1px solid var(--dline)}
.svc .panel .ph{display:none}
.svc .panel h3{display:none}
.svc .panel p{font-size:15px}

/* Areas of expertise: swipeable cards, each with its own photo. The strip scrolls
   on its own (counter, bar, arrows and a hint say so); the page never does. */
.areas .grid4{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain;border:0;margin-inline:calc(-1 * clamp(16px,5vw,80px));padding-inline:clamp(16px,5vw,80px);scroll-padding-inline:clamp(16px,5vw,80px)}
.areas .grid4::-webkit-scrollbar{display:none}
.areas .cell{flex:0 0 82%;scroll-snap-align:start;height:300px;min-height:0;border:0;border-radius:16px;padding:22px 20px;color:#fff;background:var(--ink) var(--bg) center/cover no-repeat;position:relative;isolation:isolate;display:grid;grid-template-rows:auto 1fr auto;counter-increment:ar;justify-content:stretch}
.areas .grid4{counter-reset:ar}
.areas .cell::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(180deg,rgba(8,32,58,.12) 0%,rgba(8,32,58,.55) 45%,rgba(8,32,58,.94) 100%)}
.areas .cell::after{content:"0" counter(ar);grid-row:1;font-size:13px;font-weight:600;color:var(--orange)}
.areas .cell:hover{background-color:var(--ink)}
.areas .cell svg{display:none}
.areas .cell > div{grid-row:3}
.areas .cell h4{color:#fff;font-size:22px;line-height:1.2;margin:0;min-height:2.4em;display:flex;align-items:flex-end}
.areas .cell p{color:#C9D0DE;font-size:14px;line-height:1.5;margin-top:10px;min-height:4.5em}
.areas .cell:nth-child(1){--bg:url("img/1444653614773-995cb1ef9efa-900.jpg")}
.areas .cell:nth-child(2){--bg:url("img/1639762681485-074b7f938ba0-900.jpg")}
.areas .cell:nth-child(3){--bg:url("img/1642790106117-e829e14a795f-900.jpg")}
.areas .cell:nth-child(4){--bg:url("img/1573164713988-8665fc963095-1400.jpg")}
.areas .cell:nth-child(5){--bg:url("img/1454165804606-c3d57bc86b40-900.jpg")}
.areas .cell:nth-child(6){--bg:url("img/1611974789855-9c2a0a7236a3-900.jpg")}
.areas .cell:nth-child(7){--bg:url("img/1449157291145-7efd050a4d0e-1400.jpg")}
.areas .cell:nth-child(8){--bg:url("img/1521791136064-7986c2920216-900.jpg")}
.ac-ctl{display:flex;align-items:center;gap:12px;margin-top:18px}
.ac-count{font-size:13px;color:var(--mute);font-variant-numeric:tabular-nums;min-width:52px}
.ac-count b{color:var(--ink);font-weight:600}
.ac-prog{flex:1;height:2px;background:var(--line);border-radius:1px;overflow:hidden}
.ac-prog i{display:block;height:100%;width:12.5%;background:var(--orange);transition:width .25s}
.ac-btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ac-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.ac-hint{font-size:12px;color:var(--mute);margin-top:10px}

/* Faculty: one row per person, no cut-off cards */
html body .team .grid{display:grid;grid-template-columns:1fr;gap:10px;overflow:visible;margin:0;padding:0}
html body .team .tm{flex:none;display:grid;grid-template-columns:64px 1fr;column-gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px}
.team .tm .ph{grid-row:span 2;width:64px;height:64px;aspect-ratio:auto;border-radius:10px}
html body .team .tm h4{margin:0;font-size:16px;color:var(--ink);align-self:end}
html body .team .tm p{margin:2px 0 0;font-size:13px;color:var(--mute);font-weight:400;align-self:start}
.ttabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;border:1px solid var(--line);border-radius:12px;padding:4px;margin-bottom:16px;background:#fff}
.ttab{min-height:44px;border-radius:9px;font-size:14px;font-weight:600;color:var(--mute);border:0!important;margin:0!important}
.ttab.on{background:var(--ink);color:#fff}
.tnote{font-size:14px;margin-bottom:12px}

/* Recommended reading: thumbnails next to the titles */
html body .rgrid{grid-template-columns:1fr;gap:0;border-top:1px solid var(--line)}
.research .rc,html body .rc{display:grid;grid-template-columns:88px 1fr;column-gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}
.rc .ph{grid-row:span 3;width:88px;height:88px;aspect-ratio:auto;border-radius:10px;margin:0}
.rc .src{margin:0}
.rc h4{font-size:16px;line-height:1.3;margin:2px 0}
.rc .dt{margin:0}

/* Contact block */
.cta{text-align:left}
.cta h2{margin:18px 0 16px}
.cta p{margin:0 0 28px;font-size:16px}
.cta .btn{width:100%}

/* ---------- footer: page links, then contacts, then legal links, then small print ---------- */
footer{padding-block:56px 36px}
footer .wrap{display:flex;flex-direction:column}
footer .top,footer .top > div,footer .c,footer .bot{display:contents}
footer .logo{order:1;width:128px}
footer nav{order:2;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,auto);grid-auto-flow:column;gap:0 18px;margin:32px 0 0;font-size:15px}
footer nav a{display:flex;align-items:center;min-height:40px}
footer h3,footer .top > div:first-child > .btn,footer h5{display:none}
footer .c > *{order:4;display:flex!important;align-items:center;gap:10px;min-height:40px;width:auto!important;height:auto!important;margin:0!important;font-size:14px;color:#C9D0DE!important;line-height:1.4}
footer .c > :first-child{order:3;margin-top:26px!important;padding-top:22px;border-top:1px solid var(--dline)}
footer .c > :nth-child(3){order:8;min-height:0;font-size:12px;color:var(--dmute)!important;margin-top:22px!important;padding-top:18px;border-top:1px solid var(--dline)}
footer .c > :nth-child(4),footer .c > :nth-child(5){order:5}
footer .c > :nth-child(1)::before,footer .c > :nth-child(2)::before{content:"";width:16px;height:16px;flex-shrink:0;background:var(--orange);-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
footer .c > :nth-child(1){--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E")}
footer .c > :nth-child(2){--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E")}
footer .c > :nth-child(4) svg,footer .c > :nth-child(5) svg{width:16px!important;height:16px!important;color:var(--orange)}
footer .c > :nth-child(4)::after{content:"LinkedIn"}
footer .c > :nth-child(5)::after{content:"Instagram"}
footer .bot > div{order:6;display:flex;flex-wrap:wrap;gap:0 18px;margin-top:14px}
footer .bot > div a{display:flex;align-items:center;min-height:36px;font-size:12.5px;color:#9AA4B8}
footer .bot > span{order:9;font-size:12px;color:var(--dmute);margin-top:6px}
footer .by{order:10;margin-top:6px}
footer .by a{display:inline-flex;align-items:center;min-height:32px}

/* ---------- programme pages ---------- */
.phero .wrap{padding-block:110px 40px}
.phero .crumb{font-size:12px}
.pg-who,.pg-status{max-width:none}
.pg-who{margin-top:26px;padding:16px 16px 14px;border:1px solid var(--dline);border-bottom:0;border-radius:14px 14px 0 0;background:rgba(255,255,255,.04);font-size:14px}
.pg-who b{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--dmute);margin-bottom:4px}
.pg-status{margin-top:0;padding:14px 16px 16px;border:1px solid var(--dline);border-radius:0 0 14px 14px;background:rgba(255,255,255,.04);font-size:14px}
.pg-status a{text-decoration:none;display:block}
.pg-status a::after{content:" →";color:var(--orange)}
.pg-mods{border-top:1px solid var(--line)}
html body .pg-mod{display:grid;grid-template-columns:44px minmax(0,1fr) 20px;gap:0 12px;padding:0;border-bottom:1px solid var(--line)}
.pg-mod > .pg-n{font-size:22px;padding-top:20px;cursor:pointer}
.pg-mod > div{padding:20px 0 18px;cursor:pointer}
.pg-mod::after{content:"+";grid-column:3;grid-row:1;padding-top:20px;font-size:22px;line-height:1;color:var(--ink);cursor:pointer}
.pg-mod.open::after{content:"–"}
.pg-mod h3{font-size:19px}
.pg-mod > div > p{font-size:14px;margin-top:6px}
.pg-mod .pg-ls{grid-column:1 / -1;display:none;padding:0 0 18px}
.pg-mod.open .pg-ls{display:block}
.pg-ls li{font-size:14px;padding:10px 0;border-top:1px solid var(--line)}
.pg-more{display:grid;gap:0}
.pg-more a{display:flex;align-items:center;min-height:48px;border-bottom:1px solid var(--line)}
.m-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(8,32,58,.96);transform:translateY(110%);transition:transform .25s}
.m-bar.on{transform:none}
.m-bar a{display:flex;align-items:center;justify-content:center;height:48px;border-radius:99px;background:var(--orange);color:#fff;font-weight:600;font-size:15px}

/* ---------- inner pages: same rhythm as the home ---------- */
.phero h1{font-size:34px!important;line-height:1.1}
.phero p{font-size:16px}

/* tap targets of at least 44px */
.nav .logo,footer .logo{display:inline-flex;align-items:center;min-height:44px}
.svc .panel .more{display:inline-flex;align-items:center;min-height:44px}
.pg-go{display:inline-flex;align-items:center;min-height:44px}
.crumb a{display:inline-flex;align-items:center;min-height:44px}
.ct a{display:inline-flex;align-items:center;min-height:44px}
footer .c > :first-child{min-height:63px}
/* legal pages: the "On this page" index is for wide screens only */
.ltoc{display:none}
