/* ==========================================================================
   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;}
/* (the bottom group too – Search, Contact Us, Uniform Fitting: its own line is the separator, so no 50px above it.
   12 Nov 2026, the owner: "why is there a gap in the menu again" – it follows straight on from Useful links on every
   screen. The template's margin-top:auto pushed it to the foot of the rail whenever the menu was shorter than the
   screen, leaving an empty band on tall screens.) */
#jpicnavRail .jpicnav-rail-list-utility{margin-top:0;padding-top:4px;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);}
/* (13 Nov 2026) The footer's crest, as on the College's web banner (Template/JPC_Generic-Banner_Web_rev (1).jpg): the
   crest on its own, pale pink (white at 60% over the burgundy, the banner's own colour), turned 22 degrees anticlockwise
   and running off the top and left edges, cropped as the banner crops it. The picture is the College's vector crest
   (Template/M1/img/Logos/JPCShieldsilver.svg) with its paths unchanged and evenly scaled, so the crest is never
   distorted: the four quarters white, the wheat sheaf and the open book cut out (a mask). It is a data: address, so
   there is no extra file for IIS to serve (the Content-Security-Policy allows data: pictures). Before: the white PNG
   crest, upright, at 8%.
   Words must stay readable (WCAG 2.2 AA, 4.5:1): white words on the pale pink would be about 2.3:1, so no words ever
   sit on it. Where the footer has room (tablets 700-900px wide, and screens 1280px and wider) the crest is pale pink
   and the four columns and the Acknowledgement start after it: --cs-crest-room is the crest's width + 32px, and the
   padding keeps the centred 1180px layout on wide footers, pushing it right only as far as it must. Elsewhere (phones,
   and 901-1279px) the words have to sit over it, so it is a faint watermark at 12% (white words 7.7:1, the 88% small
   print 6.3:1). High-contrast modes leave it out. tools/editor/test/test-phase3-build.js checks all of this. */
.cs-footer::before{content:'';position:absolute;top:0;right:0;bottom:0;left:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='10.2 -12.13 71.8 79.63'%3E%3Cmask id='m' maskUnits='userSpaceOnUse' x='-2' y='-2' width='82' height='92'%3E%3Crect x='-2' y='-2' width='82' height='92' fill='%23fff'/%3E%3Cg fill='%23000'%3E%3Cpath d='m19.42,28.86c.42,3.48.71,8.5.77,13.19-.45-.02-.86-.04-1.23-.08-.06-4.62-.34-9.54-.76-12.95l1.22-.15Z'/%3E%3Cpath d='m16.25,29.5c1.24,3.43,1.99,7.77,2.15,12.38-.58-.09-1.01-.2-1.24-.28-.18-4.36-.9-8.45-2.06-11.68l1.15-.42Z'/%3E%3Cpath d='m15.05,57.77c1.3-3.53,2.04-8.12,2.13-12.98.37.13.76.23,1.22.31-.12,4.9-.88,9.51-2.2,13.1l-1.15-.43Z'/%3E%3Cpath d='m19.37,58.57l-1.22-.15c.37-3,.76-7.95.82-13.25.38.04.79.07,1.22.08-.05,4.58-.35,9.46-.82,13.32Z'/%3E%3Cpath d='m20.46,44.18c-3.99,0-4.41-1.24-4.36-2.28.15.62,1.94,1.16,4.36,1.18,2.42-.02,4.21-.56,4.36-1.18.06,1.04-.38,2.28-4.36,2.28Z' fill-rule='evenodd'/%3E%3Cpath d='m21.52,28.86c-.42,3.48-.71,8.5-.77,13.19.45-.02.86-.04,1.23-.08.06-4.62.34-9.54.76-12.95l-1.22-.15Z'/%3E%3Cpath d='m24.7,29.5c-1.24,3.43-1.99,7.77-2.15,12.38.58-.09,1.01-.2,1.24-.28.18-4.36.9-8.45,2.06-11.68l-1.15-.42Z'/%3E%3Cpath d='m25.89,57.77c-1.3-3.53-2.04-8.12-2.13-12.98-.37.13-.76.23-1.22.31.12,4.9.88,9.51,2.2,13.1l1.15-.43Z'/%3E%3Cpath d='m21.58,58.57l1.22-.15c-.37-3-.76-7.95-.82-13.25-.38.04-.79.07-1.22.08.05,4.58.35,9.46.82,13.32Z'/%3E%3Cpath d='m49.2,41.74l-.98-.9-2.82,5.61,1.17.64.49-1.07,1.86,1.21.18,1.23,1.17.98-1.07-7.71Zm2.15,13.06c-1.93-2.63-4.63-4.81-7.41-5.96v-14.6c3.4,1.72,6.4,5.01,7.41,8.18v12.38Zm-3.88-9.69l.95-2.17.34,3.03-1.29-.86Z'/%3E%3Cpath d='m56.11,46.59l2.33.27.09-.99-.75-.09c.08-.32.13-.66.13-1.01,0-1.77-1.14-3.21-2.54-3.21s-2.54,1.44-2.54,3.21c0,1.06.41,2,1.04,2.58l-.82,1.07.87.7,1.55-2.28c-.71,0-1.35-.86-1.45-1.95-.1-1.14.42-2.12,1.16-2.19.74-.06,1.42.81,1.52,1.95.07.83-.18,1.58-.61,1.95Zm-4.12-4.16c1.01-3.18,4.01-6.47,7.41-8.18v14.6c-2.78,1.15-5.48,3.33-7.41,5.96v-12.38Z'/%3E%3Cpath d='m52.72,58.01c2.56-4.61,7.26-7.05,9.05-7.35v-14.78c.13-.11.6-.5,1.05-.87v16.42c-.26.17-8.67,5.65-10.1,6.58Z'/%3E%3Cpath d='m50.63,58.01c-2.56-4.61-7.26-7.05-9.05-7.35v-14.78c-.13-.11-.6-.5-1.05-.87v16.42c.26.17,8.67,5.65,10.1,6.58Z'/%3E%3C/g%3E%3C/mask%3E%3Cg transform='rotate(-22)'%3E%3Cg fill='%23fff' mask='url(%23m)'%3E%3Cpath d='m28.79,21.12s-17.08-1.35-27.12-2.14c4.34,28.57,16.35,53.1,34.04,67.57-1.6-12.62-6.92-65.43-6.92-65.43Z'/%3E%3Cpath d='m33.95,21.53s1.8,48.29,2.74,65.07c24.39-11.35,34.44-42.67,38.39-61.82-13.21-1.04-41.13-3.25-41.13-3.25Z'/%3E%3Cpath d='m33.84,17.93s27.88,3.35,41.61,5c1.6-8.21,2.02-13.76,2.02-13.76C58.95,3.74,45.02,1.3,33.39.42c.12,5.92.45,17.51.45,17.51Z'/%3E%3Cpath d='m28.42,17.28L26.77.07C16.87-.23,8.53.53,0,1.24c.17,4.31.5,8.57,1,12.75,10.29,1.24,27.42,3.29,27.42,3.29Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0/var(--cs-crest,240px) auto;opacity:.12;pointer-events:none;}
@media (min-width:521px){.cs-footer{--cs-crest:300px;}}
/* (13 Nov 2026) The pale crest, and the padding that keeps the words off it, only where clamp() works: a browser without
   it (Safari 12, iPadOS 13.0-13.3) would drop the padding and put the words on the pale pink (about 2.3:1). There it
   keeps the faint 12% watermark, as on phones and 901-1279px screens. */
@supports (padding-left:clamp(1px,1vw,2px)){
@media (min-width:700px) and (max-width:900px),(min-width:1280px){
  .cs-footer{--cs-crest:200px;--cs-crest-room:calc(var(--cs-crest) + 32px);}
  .cs-footer::before{opacity:.6;}
  .cs-footer>.cs-footer-inner,.cs-footer>.cs-footer-ack{padding-left:max(clamp(20px,4vw,48px),env(safe-area-inset-left,0px),min(var(--cs-crest-room),2 * var(--cs-crest-room) + 1180px + clamp(20px,4vw,48px) - 100%));}
}
@media (min-width:1280px){.cs-footer{--cs-crest:clamp(200px,20%,300px);}}
}
@media (forced-colors:active),(prefers-contrast:more){.cs-footer::before{display:none;}}
/* (13 Nov 2026) side gutters without clamp() first, for a browser that doesn't know it (it drops the clamp() padding
   below, and the words would touch the footer's left edge) */
.cs-footer-inner{padding:26px max(20px,min(4vw,48px));}
.cs-footer-ack{padding:0 max(20px,min(4vw,48px)) 24px;}
.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);}
/* An ABN's digits are drawn here, not written in the page (12 Nov 2026: Safari on iPhone made the College's ABN a phone
   link). Screen readers read generated content, so they still announce the whole ABN – never give it alt text ("/ ''")
   or aria-hidden. The markup: tools/abn.js (the build) and Chrome.SmallLine (the server). */
.jpc-abn::after{content:attr(data-abn);}
/* (13 Nov 2026) The Acknowledgement of Country: a full-width row under the four columns, after a thin rule, with a small
   heading (an h2 inside the footer, so screen-reader users can jump to it). Left-aligned, about 80 characters a line,
   white on burgundy. The same side gutters as the columns (and, on phones, the same notch padding: see below). Hidden in
   print with the rest of the footer. Markup: tools/build-corp.js footer() and Chrome.Footer (42-Chrome.cs). */
.cs-footer-ack{position:relative;max-width:1180px;margin:0 auto;padding:0 clamp(20px,4vw,48px) 24px;}
.cs-footer-ack::before{content:'';display:block;border-top:1px solid rgba(255,255,255,.35);margin:0 0 16px;}
.cs-footer .cs-footer-ack-head{margin:0 0 6px;color:#fff;font-family:inherit;font-size:13px;font-weight:700;line-height:1.4;text-transform:uppercase;letter-spacing:.06em;}
.cs-footer .cs-footer-ack p{max-width:80ch;margin:0;font-size:14px;line-height:1.6;color:#fff;}
@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;}
  .cs-footer-ack{padding-bottom:max(22px,env(safe-area-inset-bottom,0px));}.cs-footer .cs-footer-ack p{font-size:13.5px;}}

/* ---------- 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 (and the ob-fx-/ob-fy- pair
   below). 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%;}
/* (12 Nov 2026) The exact spot (the photo box sets a point, not one of nine squares): two classes, across and down in
   steps of 10%, ob-fx-0 … ob-fx-100 and ob-fy-0 … ob-fy-100 (one alone: the other is the middle). They come after the
   older classes above, which still work on pages that have them; a save writes these and takes the older one off.
   Every page – onboarding, home and the handbooks – loads this stylesheet, so this is the only place they are needed. */
.ob-fx-0{--jpc-fx:0%;}.ob-fx-10{--jpc-fx:10%;}.ob-fx-20{--jpc-fx:20%;}.ob-fx-30{--jpc-fx:30%;}.ob-fx-40{--jpc-fx:40%;}.ob-fx-50{--jpc-fx:50%;}.ob-fx-60{--jpc-fx:60%;}.ob-fx-70{--jpc-fx:70%;}.ob-fx-80{--jpc-fx:80%;}.ob-fx-90{--jpc-fx:90%;}.ob-fx-100{--jpc-fx:100%;}
.ob-fy-0{--jpc-fy:0%;}.ob-fy-10{--jpc-fy:10%;}.ob-fy-20{--jpc-fy:20%;}.ob-fy-30{--jpc-fy:30%;}.ob-fy-40{--jpc-fy:40%;}.ob-fy-50{--jpc-fy:50%;}.ob-fy-60{--jpc-fy:60%;}.ob-fy-70{--jpc-fy:70%;}.ob-fy-80{--jpc-fy:80%;}.ob-fy-90{--jpc-fy:90%;}.ob-fy-100{--jpc-fy:100%;}
body img[class*="ob-fx-"],body img[class*="ob-fy-"]{object-position:var(--jpc-fx,50%) var(--jpc-fy,50%);}

/* ---------- 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,.cs-footer-ack{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));}
}
