/* Header redesign v2: quiet utility bar (no gold pills) + rounded, floating sticky menu */

/* ---------- utility bar: white/translucent controls, no gold ---------- */
.util a.util-btn,
.tooldrop summary{
  background:rgba(255,255,255,.07)!important;color:#fff!important;
  border:1px solid rgba(255,255,255,.2);box-shadow:none;
  font-weight:600;letter-spacing:.01em;transition:background .15s,border-color .15s
}
.util a.util-btn{padding:4px 13px;font-size:12px}
.tooldrop summary{padding:3px 12px 3px 10px}
.util a.util-btn:hover,
.tooldrop summary:hover,
.tooldrop[open] summary{background:rgba(255,255,255,.16)!important;border-color:rgba(255,255,255,.38)}
.tooldrop summary:after{opacity:.75}
.ub-item svg{stroke:#cfd7e6}
.toollist{border-top:1px solid var(--line)}
.toollist .tl-all b{color:var(--navy)}

/* ---------- main menu: rounded bar, separate from the top, sticky ---------- */
.top{
  position:sticky;top:calc(10px + env(safe-area-inset-top,0px));z-index:30;
  width:calc(100% - 32px);max-width:1260px;margin:14px auto 0;
  background:rgba(255,255,255,.94)!important;
  -webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);
  border:1px solid rgba(11,29,58,.09)!important;border-radius:22px;
  box-shadow:0 1px 2px rgba(11,29,58,.05),0 14px 34px -22px rgba(11,29,58,.55)!important;
  transition:box-shadow .3s,background .3s,border-color .3s
}
html.scrolled .top{
  background:rgba(255,255,255,.97)!important;border-color:rgba(11,29,58,.12)!important;
  box-shadow:0 2px 4px rgba(11,29,58,.06),0 22px 44px -24px rgba(11,29,58,.7)!important
}
.top .wrap{max-width:none;padding-left:22px;padding-right:12px;min-height:82px}
html.scrolled .top .wrap{min-height:64px}
.top .brand img{width:80px;height:72px}
html.scrolled .top .brand img{width:58px;height:52px}

/* reading progress stays inside the rounded corners */
.top-progress{left:22px;max-width:calc(100% - 44px);bottom:-1px;border-radius:2px}

/* menu links: soft rounded hover */
.desk>a,.desk summary{border-radius:999px;padding:9px 13px}
.desk>a:hover,.desk summary:hover,.desk details[open] summary{background:#f1f4f9}
.desk a[aria-current=page]{background:#eef2f8;color:var(--navy);font-weight:700}

/* search + booking button as round pills */
.top .search-open.hb-search{border-radius:999px}
.top .callbtn{border-radius:999px!important}

/* desktop dropdowns and the mobile menu open as rounded cards under the bar */
.top .mob .panel{
  top:calc(100% + 10px);left:0;right:0;border:1px solid rgba(11,29,58,.1);border-top:1px solid rgba(11,29,58,.1);
  border-radius:20px;box-shadow:0 28px 50px -24px rgba(11,29,58,.6);max-height:calc(100vh - 150px)
}
.top .mob summary{border-radius:999px}

/* the page starts a little lower so the floating bar never covers it */
.top + *{scroll-margin-top:110px}
main{scroll-margin-top:110px}

@media (max-width:760px){
  .top{width:calc(100% - 20px);margin-top:10px;top:calc(8px + env(safe-area-inset-top,0px));border-radius:18px}
  .top .wrap{padding-left:14px;padding-right:8px;min-height:70px}
  html.scrolled .top .wrap{min-height:58px}
  .top .brand img{width:66px;height:59px}
  html.scrolled .top .brand img{width:52px;height:46px}
  .top .mob .panel{border-radius:16px}
  .top-progress{left:14px;max-width:calc(100% - 28px)}
}
@media (prefers-reduced-motion:reduce){.top{transition:none}}
@media print{.top{position:static;box-shadow:none!important;border:0!important;margin:0;width:auto}}

/* ---------- v2 refinements ---------- */
.top:after{display:none!important}               /* no gold line under the bar */
/* the navy top band continues behind the bar, so the bar floats half over it */
.util .wrap.ub{padding-bottom:52px;position:relative;z-index:35;pointer-events:none}
.util .wrap.ub>*{pointer-events:auto}
.top{margin-top:-42px;margin-bottom:14px}
.top .mob summary,.top .mob summary:hover,.top .mob[open] summary{border-color:#d9dfe9}
.top .mob summary:hover,.top .mob[open] summary{background:#f1f4f9}
.top .search-open.hb-search:hover{box-shadow:none;background:#f1f4f9}
@media (max-width:760px){
  .util .wrap.ub{padding-bottom:44px}
  .top{margin-top:-36px;margin-bottom:10px}
}

/* ---------- v2.1: slimmer bar ---------- */
.top{border-radius:18px}
.top .wrap{min-height:62px;padding-left:18px;padding-right:8px}
html.scrolled .top .wrap{min-height:52px}
.top .brand img{width:56px;height:50px}
html.scrolled .top .brand img{width:46px;height:41px}
.desk>a,.desk summary{padding:7px 12px}
.top .callbtn{padding:9px 18px!important;font-size:14px}
.top .search-open.hb-search{width:38px;height:38px}
.util .wrap.ub{padding-bottom:40px}
.top{margin-top:-31px}
.top-progress{left:18px;max-width:calc(100% - 36px)}
@media (max-width:760px){
  .top{border-radius:16px;margin-top:-28px}
  .util .wrap.ub{padding-bottom:36px}
  .top .wrap{min-height:56px;padding-left:12px;padding-right:6px}
  html.scrolled .top .wrap{min-height:50px}
  .top .brand img{width:50px;height:45px}
  html.scrolled .top .brand img{width:42px;height:38px}
  .top .mob summary{padding:7px 14px}
  .top .search-open.hb-search{width:38px;height:38px}
}

/* ---------- v2.2: menu links sit next to the logo ---------- */
.top .wrap{justify-content:flex-start}
.top nav.desk{margin-left:22px!important;margin-right:0!important;justify-content:flex-start;flex:0 1 auto}
.top .wrap>.search-open.hb-search{margin-left:auto!important}

/* ---------- v2.3: Language and Login live in the sticky bar ---------- */
.top .wrap>.search-open.hb-search{margin-left:0!important}
.top-tools{display:flex;align-items:center;gap:6px;margin-left:auto;flex:none}
.top .tooldrop summary{
  background:#fff!important;color:var(--navy)!important;border:1px solid #d9dfe9;
  height:38px;padding:0 12px 0 11px;font-size:14px;font-weight:600;gap:7px
}
.top .tooldrop summary:hover,.top .tooldrop[open] summary{background:#f1f4f9!important;border-color:#c5cedc}
.top .tooldrop svg{width:17px;height:17px}
.top .toollist{top:calc(100% + 12px)}
/* keep the bar on one line: icons only on smaller desktops */
@media (max-width:1400px){
  .top .tooldrop summary span{display:none}
  .top .tooldrop summary{padding:0 10px 0 11px}
}
/* phones and tablets: the lists open as a full-width card under the bar */
@media (max-width:1100px){
  .top .tooldrop{position:static}
  .top .toollist,.top .langtop .toollist.langlist,.top .toollist.loginlist{
    position:absolute!important;top:calc(100% + 10px)!important;left:0!important;right:0!important;
    width:auto!important;max-width:none!important;border-radius:16px
  }
  .top .langtop .toollist.langlist{max-height:min(65vh,520px)}
}
@media (max-width:420px){.top-tools{gap:4px}.top .tooldrop summary{padding:0 8px}}
/* v2.3 fit: Login as an icon, language name capped, tighter link spacing */
.top .logindrop summary span{display:none}
.top .logindrop summary{padding:0 10px 0 11px}
.top .lang-label{max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top .desk>a,.top .desk summary{padding:7px 10px}
.top .wrap{gap:10px}
.top .lang-label{display:inline-block;max-width:84px;vertical-align:middle}
.top nav.desk{margin-left:12px!important}
.top .lang-label{display:inline-block!important;max-width:70px!important}
@media (max-width:1400px){.top .lang-label{display:none!important}}
@media (max-width:420px){.top .wrap{gap:6px;padding-left:10px;padding-right:6px}.top .mob summary{padding:7px 12px;gap:8px}}
@media (max-width:350px){.top .mob summary>span:not(.hb-lines){display:none}.top .brand img{width:44px;height:40px}}

/* ---------- v2.4: Language button shows a short code (EN) ---------- */
.lang-code{display:none}
.top .lang-label{display:none!important}
.top .lang-code{display:inline;font-size:13px;font-weight:700;letter-spacing:.04em;min-width:18px;text-align:center}
.top .langtop summary{padding:0 10px 0 11px}
.top .langtop summary .lang-code{display:inline!important}
@media (max-width:420px){.top .tooldrop summary:after{display:none}.top .tooldrop summary{padding:0 9px}}

/* v2.5: phone and email icons in gold */
.util .ub-item svg{stroke:var(--gold)!important}

/* ---------- Home hero: Sydney skyline artwork ---------- */
.hero-visual{height:auto!important;overflow:visible}
.hero-visual .skyline-art{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:max(1600px,100%);height:auto;max-width:none;pointer-events:none;user-select:none;opacity:.95}
.hero .hs{position:relative;z-index:1}
@media (max-width:900px){.hero-visual .skyline-art{width:1100px}}
@media (max-width:560px){.hero-visual .skyline-art{width:820px;opacity:.9}}
.hero-visual .skyline-art{width:1280px}
.hero .hs{padding-bottom:250px!important}
@media (max-width:900px){.hero-visual .skyline-art{width:1000px}.hero .hs{padding-bottom:200px!important}}
@media (max-width:560px){.hero-visual .skyline-art{width:760px}.hero .hs{padding-bottom:160px!important}}
.hero .hs{padding-bottom:275px!important}
@media (max-width:900px){.hero .hs{padding-bottom:215px!important}}
@media (max-width:560px){.hero .hs{padding-bottom:185px!important}}
/* deeper harbour for the ferries */
.hero .hs{padding-bottom:300px!important}
@media (max-width:900px){.hero .hs{padding-bottom:235px!important}}
@media (max-width:560px){.hero .hs{padding-bottom:200px!important}}

/* ---------- Sydney skyline along the bottom of every page hero ---------- */
.phero.on-navy{
  background:url("/sydney-skyline.svg?v=4") center bottom 12px / 1180px auto no-repeat,
             radial-gradient(900px 380px at 85% -10%,rgba(201,162,75,.22),transparent 60%),
             linear-gradient(180deg,#0b1d3a,#0a1a34)!important
}
.phero.on-navy .wrap{padding-bottom:225px!important}
.phero.on-navy:after{bottom:22px}
@media (max-width:900px){.phero.on-navy{background-size:900px auto,auto,auto!important}.phero.on-navy .wrap{padding-bottom:180px!important}}
@media (max-width:560px){.phero.on-navy{background-size:700px auto,auto,auto!important}.phero.on-navy .wrap{padding-bottom:140px!important}}
@media print{.phero.on-navy{background:#fff!important}.phero.on-navy .wrap{padding-bottom:20px!important}}
/* old drawn skyline in page heroes replaced by the new artwork */
.phero canvas.ph-sky,.phero canvas.skyline{display:none!important}
/* the navy top band runs fully behind the floating menu, so no white strip shows before the hero */
.util .wrap.ub{padding-bottom:81px!important}
.top{margin-top:-72px!important;margin-bottom:0!important}
@media (max-width:760px){.util .wrap.ub{padding-bottom:72px!important}.top{margin-top:-64px!important}}
/* promo banners sit below the hero instead of overlapping the skyline */
.phero + .pb-sec:not(.pb-tight),.hero + .pb-sec:not(.pb-tight),.pb-sec:not(.pb-tight){margin-top:40px!important}
@media (max-width:560px){.pb-sec:not(.pb-tight){margin-top:28px!important}}
/* sticky bar matches the page content width and sits centred */
.top{max-width:1200px!important;width:calc(100% - 56px)!important;margin-left:auto!important;margin-right:auto!important}
@media (max-width:760px){.top{width:calc(100% - 20px)!important}}
.top .desk>a,.top .desk summary{padding:7px 9px!important}.top .wrap{gap:8px!important}
.top{max-width:1144px!important;width:calc(100% - 56px)!important}@media (max-width:760px){.top{width:calc(100% - 32px)!important}}
.top .desk>a,.top .desk summary{padding:7px 7px!important;font-size:14px!important}.top nav.desk{margin-left:8px!important}.top .wrap{padding-left:14px!important;padding-right:7px!important}
/* phones and tablets: the logo sits on a clean white tile */
@media (max-width:1100px){
  .top .brand{background:#fff;border-radius:12px;padding:3px 8px;box-shadow:0 1px 3px rgba(11,29,58,.12);display:inline-flex;align-items:center}
}
@media (max-width:420px){.top .brand{padding:3px 5px}.top .brand img{width:46px!important;height:41px!important}}

/* ---------- WhatsApp chat window ---------- */
.wachat{position:fixed;z-index:60;max-height:min(520px,calc(100vh - 140px));display:flex;flex-direction:column;background:#fff;border-radius:18px;overflow:hidden;
  box-shadow:0 24px 60px -18px rgba(11,29,58,.55),0 2px 6px rgba(11,29,58,.12);font-family:inherit;animation:wachatIn .18s ease-out}
.wachat[hidden]{display:none}
@keyframes wachatIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.wachat{animation:none}}
.wachat-head{display:flex;align-items:center;gap:11px;padding:14px 12px 14px 14px;background:#0b1d3a;color:#fff;border-bottom:2px solid #c9a24b}
.wachat-av{position:relative;flex:none}
.wachat-av img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid #c9a24b;display:block}
.wachat-av i{position:absolute;right:0;bottom:1px;width:11px;height:11px;border-radius:50%;background:#25d366;border:2px solid #0b1d3a}
.wachat-who{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.wachat-who b{font-size:15px}
.wachat-who small{font-size:11.5px;color:#cfd7e6}
.wachat-who .wachat-st{color:#e3c172}
.wachat-x{margin-left:auto;align-self:flex-start;background:none;border:0;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0 4px;opacity:.8}
.wachat-x:hover{opacity:1}
.wachat-body{padding:16px 14px;background:#efeae2 radial-gradient(#e3dcd1 1px,transparent 1px) 0 0/14px 14px;overflow:auto;flex:1}
.wachat-msg{position:relative;max-width:88%;background:#fff;color:#1f2937;font-size:14px;line-height:1.45;padding:9px 12px 18px;border-radius:0 10px 10px 10px;box-shadow:0 1px 1px rgba(0,0,0,.08)}
.wachat-msg:before{content:"";position:absolute;left:-7px;top:0;border-top:8px solid #fff;border-left:8px solid transparent}
.wachat-t{position:absolute;right:9px;bottom:4px;font-size:10.5px;color:#8a94a6}
.wachat-form{display:flex;flex-direction:column;gap:8px;padding:12px 12px 10px;background:#f7f8fa;border-top:1px solid #e5e8ee}
.wachat-form textarea{width:100%;resize:none;border:1px solid #d5dbe5;border-radius:12px;padding:10px 12px;font:inherit;font-size:14.5px;color:#0b1d3a;background:#fff;box-sizing:border-box}
.wachat-form textarea:focus{outline:2px solid #25d366;outline-offset:0;border-color:#25d366}
.wachat-send{display:flex;align-items:center;justify-content:center;gap:8px;background:#25d366;color:#0b3d1f;border:0;border-radius:999px;padding:11px 16px;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.wachat-send:hover{background:#20bd5a}
.wachat-send svg{width:20px;height:20px;fill:currentColor}
.wachat-note{font-size:11.5px;color:#6b7280;text-align:center}
.wachat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.wa-float.is-open{box-shadow:0 0 0 3px #fff,0 0 0 5px #25d366,0 14px 30px -10px #00000073}
@media print{.wachat{display:none!important}}
.wachat.wachat-sheet{border-radius:16px;max-height:calc(100vh - 150px)}
/* Phones and tablets: tinted bar so the white logo tile stands out clearly */
@media (max-width:1100px){
  .top,html.scrolled .top{background:#e8edf5!important}
  .top .brand{background:#fff!important;border:1px solid #d3dbe8;border-radius:12px!important;padding:4px 9px!important;box-shadow:0 2px 6px rgba(11,29,58,.14)!important}
}

/* Always show the site in its own light design (stops browser night modes darkening it) */
:root{color-scheme:only light}
/* Citizenship page: promo for the Citizenship test */
.ct-promo{display:flex;gap:16px;align-items:flex-start;margin-top:22px;padding:20px 22px;border-radius:16px;background:var(--navy,#0b1d3a);color:#fff;text-decoration:none;border:1px solid rgba(201,162,75,.45);box-shadow:0 18px 40px -24px rgba(11,29,58,.6);transition:transform .15s,box-shadow .15s}
.ct-promo:hover{transform:translateY(-2px);box-shadow:0 24px 44px -22px rgba(11,29,58,.7)}
.ct-ic{flex:none;width:46px;height:46px;border-radius:12px;background:rgba(201,162,75,.16);display:grid;place-items:center}
.ct-ic svg{width:24px;height:24px;fill:none;stroke:#c9a24b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ct-body{display:grid;gap:4px}
.ct-k{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#c9a24b}
.ct-body b{font-family:var(--serif,Georgia,serif);font-weight:400;font-size:24px;line-height:1.2;color:#fff}
.ct-d{font-size:14.5px;line-height:1.55;color:#cdd7ea}
.ct-go{margin-top:6px;font-weight:700;color:#c9a24b}
@media (prefers-reduced-motion:reduce){.ct-promo{transition:none}.ct-promo:hover{transform:none}}
/* Home: Citizenship test strip under the free tools */
.ft-new{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:13px 16px;border-radius:14px;background:rgba(201,162,75,.10);border:1px solid rgba(201,162,75,.55);color:#fff;text-decoration:none;transition:background .2s}
.ft-new:hover{background:rgba(201,162,75,.18)}
.ft-new:hover .ft-go{transform:translate(3px)}
.ft-new-k{flex:none;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#0b1d3a;background:#c9a24b;padding:4px 9px;border-radius:999px}
.ft-new-t{flex:1;font-weight:600;font-size:15px;line-height:1.4}
/* New tools: question groups with radio answers */
.calc-form fieldset.qs{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center}
.calc-form fieldset.qs[hidden]{display:none}
.calc-form fieldset.qs legend{width:100%;margin-bottom:4px;line-height:1.4}
.calc-form fieldset.qs br{display:none}
.calc-form fieldset.qs label{display:inline-flex!important;align-items:center;gap:8px;margin:0;padding:8px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-weight:500;font-size:15px;line-height:1.35;cursor:pointer}
.calc-form fieldset.qs label:has(input:checked){border-color:var(--navy);background:#f1f4fa}
.calc-form fieldset.qs label[hidden]{display:none!important}
.calc-form fieldset.qs input[type=radio],.calc-form fieldset.qs input[type=checkbox]{width:18px!important;height:18px;min-width:18px;margin:0;padding:0;flex:none;accent-color:var(--navy,#0b1d3a)}
