/* ==========================================================================
   site-corp – onboarding + handbooks as one site (loads after brand.css)
   ========================================================================== */

/* Rail: the Onboarding and Handbooks groups are separated by a thin line with a small label, not a big gap.
   (The template gives every rail list 50px of top padding on tall screens – fine for one list, too much for three.) */
.jpicnav-rail-scroll > .jpicnav-rail-list:not(.jpicnav-rail-list-utility){padding-top:4px;padding-bottom:4px;}
.jpicnav-rail-scroll > .jpicnav-rail-list:first-of-type{padding-top:12px;}
.cs-rail-head{flex:none;margin:3px 16px 0;padding:7px 6px 1px;border-top:1px solid rgba(255,255,255,.2);font-family:var(--km-body);font-size:10.5px;line-height:1.2;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.78);white-space:nowrap;overflow:hidden;}
/* 16 items: the compact 42px item size the template uses on shorter screens, so the whole menu fits a 1080px screen */
#jpicnavRail .jpicnav-rail-item{min-height:42px;padding-top:9px;padding-bottom:9px;}
#jpicnavRail .jpicnav-rail-list-utility{padding-bottom:10px;}
@media (max-height:944px){#jpicnavRail .jpicnav-rail-item{min-height:40px;padding-top:8px;padding-bottom:8px;}}
/* Collapsed rail: just the line */
.jpicnav-rail:not(.is-expanded) .cs-rail-head{font-size:0;line-height:0;padding:0;margin:8px 14px;}

/* Landing page */
.cs-hero .km-hero-title{max-width:14ch;}
.cs-doors{grid-template-columns:repeat(2,minmax(0,1fr));}
@media (max-width:760px){.cs-doors{grid-template-columns:1fr;}}
.cs-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
@media (max-width:860px){.cs-split{grid-template-columns:1fr;}}
.cs-card{background:#fff;border:1px solid var(--grey-200);border-radius:18px;padding:28px 28px 20px;}
.cs-list{list-style:none;margin:18px 0 0;padding:0;}
.cs-list li + li{border-top:1px solid var(--grey-200);}
.cs-list a{display:flex;align-items:center;gap:14px;padding:13px 4px;color:var(--grey-900);font-weight:600;text-decoration:none;}
.cs-list a i{font-size:20px;width:24px;text-align:center;color:var(--jpc-burgundy);}
.cs-list a::after{content:'\2192';content:'\2192' / '';margin-left:auto;color:var(--jpc-blue);transition:transform .2s;}
.cs-list a:hover,.cs-list a:focus-visible{color:var(--jpc-burgundy);}
.cs-list a:hover::after,.cs-list a:focus-visible::after{transform:translateX(4px);}

/* Footer: one slim burgundy band (like www.jpc.qld.edu.au) – address, useful links, social media, College details */
.cs-footer{position:relative;overflow:hidden;background:var(--jpc-burgundy,#880D27);color:#fff;font:400 14px/1.6 var(--km-body,Roboto,system-ui,sans-serif);border-top:4px solid var(--jpc-blue,#4980C1);}
.cs-footer::before{content:'';position:absolute;left:-30px;top:50%;width:200px;height:240px;transform:translateY(-50%);background:url('../img/logos/JPCShieldWhite.png') no-repeat center/contain;opacity:.08;pointer-events:none;}
.cs-footer-inner{position:relative;max-width:1180px;margin:0 auto;padding:26px clamp(20px,4vw,48px);display:grid;grid-template-columns:1.2fr 1fr 1fr 1.3fr;gap:18px 32px;align-items:start;}
.cs-footer p{margin:0 0 3px;color:#fff;}
.cs-footer-name{font-weight:700;text-transform:uppercase;letter-spacing:.06em;}
.cs-footer ul{list-style:none;margin:0;padding:0;}
.cs-footer li{margin:0 0 3px;}
.cs-footer a{color:#fff;text-decoration:none;}
.cs-footer a:hover,.cs-footer a:focus-visible{text-decoration:underline;text-underline-offset:3px;}
.cs-footer a:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:2px;}
.cs-footer li a i{display:inline-block;width:18px;margin-right:8px;text-align:center;}
.cs-footer-small p{font-size:13px;color:rgba(255,255,255,.88);}
@media (max-width:900px){.cs-footer-inner{grid-template-columns:1fr 1fr;}}
@media (max-width:520px){.cs-footer-inner{gap:14px 20px;padding-top:22px;padding-bottom:22px;}.cs-footer-col:first-child,.cs-footer-small{grid-column:1 / -1;}}

/* ---------- Keyboard focus in the phone/tablet menu (its list is light grey, so the white outline vanished) ---------- */
.jpicnav .ob-mobile-list :focus-visible{outline:2px solid var(--jpc-burgundy,#880d27);outline-offset:-2px;background:#fff;}

/* ---------- Keep the focused element clear of the fixed top bar and the sticky section bar ---------- */
html:has(.km-qnav){scroll-padding-top:calc(var(--qn-h,64px) + 16px);}
html:has(.km-qnav) .km-qnav-target{scroll-margin-top:0;}
@media (max-width:1023px){
  html{scroll-padding-top:76px;}
  html:has(.km-qnav){scroll-padding-top:calc(60px + var(--qn-h,58px) + 14px);}
  .hb-article h2,.hb-article h3{scroll-margin-top:14px;}
}

/* ---------- Print: keep the page title and intro, drop the photo, menus and footer ---------- */
@media print{
  .km-hero{min-height:0 !important;height:auto !important;background:none !important;color:#000 !important;}
  .km-hero-media,.km-hero-overlay,.km-hero-buttons,.cs-footer,.skip-link{display:none !important;}
  .km-hero-inner{padding:0 0 12px !important;}
  .km-hero :is(h1,h2,p,span,li,a){color:#000 !important;text-shadow:none !important;}
  .km-hero-tagline{color:#333 !important;}
}

/* ---------- Phone header: menu (a link to the menu until js/onboarding.js makes it a button) and search ---------- */
a.jpicnav-mobile-burger{text-decoration:none;}
.jpicnav-mobile-search{color:#fff;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:8px;text-decoration:none;
  transition:background .2s ease,transform .2s ease;}
.jpicnav-mobile-search:hover{background:rgba(255,255,255,.14);transform:scale(1.08);color:#fff;}
.jpicnav-mobile-burger:focus-visible,.jpicnav-mobile-search:focus-visible{outline:2px solid #fff;outline-offset:2px;}

/* ---------- Breadcrumbs on the year-level pages ("Home › Onboarding › Prep"), as on the handbook pages ---------- */
.hb-crumbs ol{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-wrap:wrap;gap:6px;font:600 .9rem/1.4 var(--km-body);color:rgba(255,255,255,.85);}
.hb-crumbs li{display:flex;align-items:center;gap:6px;}
.hb-crumbs li + li::before{content:'\203A';content:'\203A' / '';opacity:.7;}
.hb-crumbs a{color:#fff;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.5);}
.hb-crumbs a:hover{text-decoration-color:#fff;}
@media print{.hb-crumbs{display:none !important;}}

/* ---------- Sub-headings inside a text column (e.g. the car park's "Parking" and "Drop-off and pick-up") ---------- */
.ob-subhead{font-family:var(--km-display);font-weight:800;color:var(--jpic-burgundy);margin:0 0 12px;}
* + .ob-subhead{margin-top:22px;}

/* ---------- Main landmark: focused by the skip link (tabindex="-1"), so no outline around the whole page ---------- */
main.km-page:focus{outline:none;}

/* ---------- Page not found (404.html) ---------- */
.cs-notfound #notfound .hb-search{margin:28px auto 0;max-width:720px;}
.cs-notfound-actions{justify-content:center;margin-top:22px;}
.cs-notfound h1.km-h2{margin-top:8px;}

/* ---------- Photos: the part an editor chose to keep in view ("Keep this part in view" in the photo dialog) ---------- */
/* One class at most on the <img> (none = the middle); the sanitiser allows exactly these. Banners, cards and photos all
   fill their box with object-fit:cover, so this says which part of the photo stays when the box crops it. */
body img.ob-focus-tl{object-position:0% 0%;}
body img.ob-focus-tc{object-position:50% 0%;}
body img.ob-focus-tr{object-position:100% 0%;}
body img.ob-focus-ml{object-position:0% 50%;}
body img.ob-focus-mr{object-position:100% 50%;}
body img.ob-focus-bl{object-position:0% 100%;}
body img.ob-focus-bc{object-position:50% 100%;}
body img.ob-focus-br{object-position:100% 100%;}

/* ---------- Phones on their side: keep text and buttons clear of the notch and the rounded corners ---------- */
/* Every page sets viewport-fit=cover (the editor relies on it), so the page runs under the notch: pad by the
   safe-area insets where they are bigger than the usual padding (they are 0 everywhere else). */
@media (max-width:1023px){
  .jpicnav-mobile-bar{padding-left:max(14px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px));}
  .km-inner,.km-hero-inner{padding-left:max(32px,env(safe-area-inset-left,0px));padding-right:max(32px,env(safe-area-inset-right,0px));}
  .hb-hero .km-hero-inner,.hb-secbar:not([hidden]){padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px));}
  .km-qnav-inner{padding-left:max(14px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px));}
  .cs-footer-inner{padding-left:max(clamp(20px,4vw,48px),env(safe-area-inset-left,0px));padding-right:max(clamp(20px,4vw,48px),env(safe-area-inset-right,0px));}
  .ob-mobile-list{padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px));padding-bottom:max(40px,env(safe-area-inset-bottom,0px));}
}
@media (max-width:600px){
  .km-inner{padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px));}
}
