/* Boxed (bento) layout: hero tiles and cards are boxes; the page flows as colour bands separated by lines. */
body.boxed { background: var(--paper); }
:root { --box: min(1240px, 100% - 32px); --r-xl: 36px; --r-lg: 28px; }

/* Floating boxed header */
body.boxed .nav { width: var(--box); margin: 12px auto 0; top: 12px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .94); box-shadow: 0 14px 40px -28px rgba(14, 26, 61, .45); }
body.boxed .nav .wrap { width: 100%; padding-inline: 22px; }
body.boxed .nav-in { height: 64px; }
@media (max-width: 960px) { body.boxed .nav-links { top: 72px; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 50px -30px rgba(14, 26, 61, .5); } }
body.boxed .strip { display: none; }

/* Hero bento */
.bento { width: var(--box); margin: 16px auto 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: clamp(22px, 3vw, 40px); }
.t-brand { grid-column: 1 / 9; grid-row: 1 / 3; background: #fff; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(30px, 4vw, 56px); }
.t-brand::before { content: 'Q'; position: absolute; right: -4%; bottom: -34%; font-family: var(--display); font-weight: 800; font-size: min(48vw, 560px); line-height: 1; color: var(--sky); z-index: -1; }
.t-brand .tagline { margin-top: 20px; }
.t-brand::before { content: none; }
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { display: block; width: min(100%, 520px); height: auto; margin-left: clamp(-34px, -4vw, -12px); margin-bottom: 8px; }
.t-brand .tagline { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.t-date { grid-column: 9 / 13; background: var(--grad); color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; }
.t-date::after { content: ''; position: absolute; inset: auto -30px -50px auto; width: 190px; height: 190px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .08); z-index: -1; }
.t-date .kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.t-date .when { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.025em; margin-top: 14px; }
.t-date .where { margin-top: 8px; font-weight: 700; opacity: .92; }
.t-count { grid-column: 9 / 13; background: #fff; display: flex; flex-direction: column; justify-content: center; }
.banner { background: var(--navy); color: #fff; text-align: center; padding: 10px 18px; font-weight: 700; font-size: 14.5px; }
.banner a { color: var(--lime); font-weight: 800; margin-left: 8px; }
.faq { display: grid; gap: 10px; margin-top: 22px; max-width: 860px; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.qa summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--navy); }
.qa[open] summary::after { content: '\2212'; }
.qa p { padding: 0 0 16px; color: var(--muted); font-weight: 600; }
.enq { display: grid; gap: 14px; margin-top: 22px; max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative; }
.enq label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.enq input, .enq textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15.5px; background: #fff; }
.enq input:focus, .enq textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(40, 66, 135, .14); }
.enq-g { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.enq-f { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#enqMsg.ok { color: var(--green-600); font-weight: 800; }
#enqMsg.bad { color: var(--red); font-weight: 800; }
.social { display: flex; flex-wrap: wrap; gap: 14px; grid-column: 1 / -1; }
.social a { font-weight: 800; text-decoration: none; border-bottom: 2px solid currentColor; }
.logo-img { display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #d3daea; border-radius: 10px; padding: 8px 12px; }
.logo-img img { display: block; height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.logo-img.kims img { height: 52px; max-width: 240px; }
.assoc .logos .logo-img { width: 172px; height: 66px; padding: 6px 12px; box-sizing: border-box; }
.assoc .logos .logo-img img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
@media (max-width: 520px) { .assoc .logos .logo-img { width: 140px; height: 56px; } }
.partners-in .lbl { flex-basis: 100%; margin-top: 6px; }
.t-count .lbl { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.t-count .count { margin-top: 14px; }
.t-count .btn { width: 100%; margin-top: 16px; }
.t-info { grid-column: span 4; display: flex; align-items: center; gap: 18px; padding-block: 24px; }
.t-info .ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.t-info .ic svg { width: 26px; height: 26px; }
.t-info small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.t-info b { display: block; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.25; font-weight: 800; margin-top: 2px; }
.t-red { background: var(--red); color: #fff; }
.t-sky { background: var(--sky); color: var(--navy-900); }
.t-sky .ic { background: #fff; color: var(--navy); }
.t-lime { background: var(--lime); color: var(--navy-900); justify-content: space-between; }
.t-lime .ic { background: rgba(14, 26, 61, .1); }
@media (max-width: 1000px) {
  .t-brand { grid-column: 1 / -1; grid-row: auto; }
  .t-date { grid-column: 1 / 7; } .t-count { grid-column: 7 / 13; }
  .t-info { grid-column: span 12; }
}
@media (max-width: 680px) { .t-date, .t-count { grid-column: 1 / -1; } .t-lime { flex-wrap: wrap; } }

/* Sections: continuous colour bands */
body.boxed .section { width: var(--box); margin: 16px auto; border-radius: var(--r-xl); padding: clamp(34px, 5vw, 76px) 0; overflow: hidden; background: #fff; }
body.boxed .section.alt { background: var(--sky); }
body.boxed .section.dark { background: radial-gradient(900px 420px at 90% -10%, rgba(52, 167, 123, .38), transparent 60%), var(--navy-900); }
body.boxed .section .wrap, body.boxed .partners .wrap { width: 100%; padding-inline: clamp(20px, 4.4vw, 68px); }
body.boxed .partners { width: var(--box); margin: 16px auto; padding: 30px 0; border: 0; border-radius: var(--r-xl); background: #fff; }
body.boxed .footer { width: var(--box); margin: 16px auto 24px; border-radius: var(--r-xl); padding: clamp(30px, 4vw, 52px) 0 28px; }
body.boxed .footer .wrap { width: 100%; padding-inline: clamp(20px, 4.4vw, 68px); }

/* About */
body.boxed .about-grid p.big { background: var(--sky); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
body.boxed .pillar { background: var(--sky); border: 0; border-radius: 24px; }
body.boxed .pillar:hover { background: #fff; box-shadow: 0 0 0 2px var(--navy); transform: translateY(-4px); }

/* Programme: one box per session */
body.boxed .prog { display: grid; gap: 12px; }
body.boxed .row { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px 26px; }
body.boxed .row:last-child { border-bottom: 1px solid var(--line); }
body.boxed .row .time { background: var(--sky); border-radius: 16px; padding: 12px 14px; align-self: start; text-align: center; }
body.boxed .row.panel .body { background: var(--sky); margin: -6px 0; border-radius: 20px; }
body.boxed .row.break { padding: 12px 22px; background: transparent; border: 2px dashed #b7c2db; }
body.boxed .row.break .time { background: transparent; padding: 0; text-align: left; }
body.boxed .row.break .body::before { display: none; }
@media (max-width: 640px) { body.boxed .row { padding: 16px; } body.boxed .row .time { text-align: left; } }

/* Faculty / leadership boxes */
body.boxed .person { border-radius: 26px; border: 1px solid var(--line); background: var(--sky); }
body.boxed .person:hover { background: #fff; box-shadow: 0 0 0 2px var(--navy); transform: translateY(-4px); }
body.boxed .rl span { background: #fff; }
body.boxed .rl span.mod { background: var(--lime); }
body.boxed .tabs button { border-radius: 14px; }
body.boxed .leader { border-radius: 28px; }

/* Fees / venue boxes */
body.boxed .panel-card { border-radius: var(--r-lg); }
body.boxed .reg-bar { border-radius: var(--r-lg); background: var(--sky); border: 0; }
body.boxed .info-card { border-radius: var(--r-lg); border: 0; background: #fff; }
body.boxed .section.alt .info-card { background: #fff; }
body.boxed .logo-chip { background: var(--sky); padding: 10px 18px; border-radius: 16px; }
body.boxed .assoc .logo-chip { background: transparent; padding: 0; }

/* Registration page */
body.boxed.reg-page .reg { width: var(--box); }
body.boxed .form-card { border-radius: var(--r-xl); border: 0; box-shadow: none; }
body.boxed .reg-head { background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); margin-top: 0; }
body.boxed .reg-head .h2 { max-width: none; }
body.boxed .cat .c { border-radius: 18px; }
body.boxed .group-box { border-radius: 20px; }
body.boxed .sum { border-radius: var(--r-xl); }
body.boxed .done-card { border-radius: var(--r-xl); border: 0; box-shadow: none; }
body.boxed .done-grid div { border-radius: 16px; }

/* ===== Whole-site frame: everything lives inside one box ===== */
body.boxed {
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(52, 167, 123, .32), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(40, 66, 135, .7), transparent 60%),
    var(--navy-900);
  background-attachment: fixed;
  padding: clamp(10px, 2.4vw, 32px) 0;
}
.frame {
  --box: 100%;
  width: min(1320px, 100% - clamp(16px, 4vw, 64px));
  margin: 0 auto;
  background: var(--paper);
  border-radius: 44px;
  padding: 16px;
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 50px 120px -30px rgba(0, 0, 0, .65);
  overflow: clip;
  position: relative;
}
.frame::before { content: ''; display: block; height: 8px; border-radius: 8px; background: var(--spectrum); margin: 0 4px 14px; }
.frame .nav { margin-top: 0; }
.frame .footer { margin-bottom: 0; }
@media (max-width: 640px) {
  .frame { border-radius: 28px; padding: 10px; border-width: 2px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); }
  body.boxed .section, .tile, body.boxed .footer, body.boxed .partners { border-radius: 24px; }
}

/* ===== Passport-size portraits (7:9, white background) ===== */
.av { border-radius: 8px; background-color: #fff; border: 1px solid #d3daea; box-shadow: 0 6px 16px -10px rgba(14, 26, 61, .45); }
.av img { background: #fff; object-fit: cover; object-position: center top; }
.person .av { width: 105px; height: 135px; font-size: 30px; margin-bottom: 14px; }
.leader .av { width: 132px; height: 170px; font-size: 38px; border: 4px solid #fff; border-radius: 10px; }
.pchip .av { width: 40px; height: 51px; font-size: 13px; border-radius: 5px; border-width: 1px; box-shadow: none; }
.av.v1, .av.v2, .av.v3, .av.v4 { color: #fff; }

/* Footer logos: Organiser + In association with, a line, then the hospital network row */
.partners-in { align-items: flex-start; gap: 26px clamp(36px, 7vw, 96px); }
.partners-in .pgrp { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.partners-in .pgrp .lbl { width: auto; flex-basis: auto; margin-top: 0; }
.partners-in .pitems { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.partners-in .pitems .logo-img { padding: 8px 14px; }
.partners-in .pdiv { flex-basis: 100%; height: 2px; background: var(--line); margin: 8px 0 2px; }
.partners-in .prow2 { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px clamp(28px, 6vw, 80px); }
.partners-in .prow2 img { height: 64px; width: auto; max-width: 44vw; object-fit: contain; }

/* Patrons / Organising Committee: names only, two columns */
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 5vw, 72px); margin-top: 36px; }
.lead-col h3 { font-size: 15px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--lime); padding-bottom: 14px; border-bottom: 3px solid var(--green); }
.lead-col ul { list-style: none; margin: 0; padding: 0; }
.lead-col li { padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: #fff; letter-spacing: -.005em; }

/* ===== One continuous page: sections are colour bands separated by lines, not separate boxes ===== */
body.boxed .section, body.boxed .partners, body.boxed .footer { margin: 0; border-radius: 0; width: 100%; }
body.boxed .section, body.boxed .partners { border-top: 1px solid var(--line); }
body.boxed .section.dark, body.boxed .footer { border-top: 0; }
body.boxed .bento + .section { margin-top: 16px; }
.t-count, .t-brand { border: 1.5px solid var(--line); }
@media (max-width: 640px) { body.boxed .section, body.boxed .footer, body.boxed .partners { border-radius: 0; } }

.lead-col li b { display:block; font-weight:800; }
.lead-col li span { display:block; margin-top:4px; font-size:clamp(13px,1.3vw,15px); font-weight:500; line-height:1.4; color:rgba(255,255,255,.78); letter-spacing:0; }

/* Home hero: full-bleed artwork at the top of the brand tile */
.t-brand { --tp: clamp(22px, 3vw, 40px); padding-top: 0; }
.t-brand .hero-logo { margin: 0 calc(var(--tp) * -1) 18px; }
.t-brand .hero-logo img { width: 100%; max-width: none; margin: 0; height: auto; }
