/* The frame every townplannermo page shares, the Council Tracker's included: colours, type, the header, the footer,
   buttons and the dark banner under the header. The tracker copies this file from the live site (see README). */
@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/lato-400.woff2') format('woff2');}
@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/lato-700.woff2') format('woff2');}
@font-face{font-family:'Lato';font-style:normal;font-weight:900;font-display:swap;src:url('fonts/lato-900.woff2') format('woff2');}

:root{
  color-scheme:light;
  --dark:#0F3D45; --teal:#0E7C86; --accent:#00A896;
  --ink:#1D2B2E; --muted:#5B6B6E; --line:#DFE7E7; --soft:#F4F8F8; --white:#fff; --card:#fff; --heading:#0F3D45;
  --teal-text:#0E7C86;   /* teal used as text or a border; lightened in dark mode, where --teal fails */
  --accent-on-dark:#7fd8d2; /* accent-coloured small labels on a dark ground */
  --accent-btn:#00806E;  /* accent darkened for any surface carrying white text: white on --accent is only 2.98:1, this is 4.87:1 */
  --wrap:1120px;
  --font:'Lato','Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
}
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#dce8e8; --muted:#90a6a8; --line:#294248; --soft:#0e272c; --white:#0a1f24; --card:#123036; --heading:#f0f7f7;
  --teal-text:#2FB9C0; /* #0E7C86 falls to 2.8-3.4:1 on the dark surfaces */
}
*{margin:0;padding:0;box-sizing:border-box;}
[hidden]{display:none !important;}
html{scroll-behavior:smooth;}
body{font-family:var(--font);color:var(--ink);background:var(--white);line-height:1.6;font-size:17px;-webkit-font-smoothing:antialiased;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px;}
.narrow{max-width:820px;}
h1,h2,h3,h4{line-height:1.15;font-weight:900;color:var(--heading);letter-spacing:-.01em;}
.skip{position:absolute;left:-9999px;}
.skip:focus{left:12px;top:12px;z-index:99;background:var(--accent-btn);color:#fff;padding:8px 14px;border-radius:7px;}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;}

/* Buttons */
.btn{display:inline-block;font-weight:700;font-size:16px;padding:13px 26px;border-radius:8px;transition:.15s;cursor:pointer;border:2px solid transparent;}
.btn-primary{background:var(--accent-btn);color:#fff;}
.btn-primary:hover{background:#006F60;}
.btn-dark{background:var(--teal);color:#fff;}
.btn-dark:hover{background:var(--dark);}

/* Header: the brand, the menu (a drop-down list on narrow screens), the theme switch, LinkedIn and the booking button */
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);}
html[data-theme="dark"] header{background:rgba(11,33,38,.96);}
.nav{display:flex;align-items:center;justify-content:space-between;height:66px;}
.brand{font-weight:900;font-size:20px;color:var(--heading);letter-spacing:-.02em;}
.brand span{color:var(--teal-text);}
.nav ul{list-style:none;display:flex;gap:26px;align-items:center;}
.nav ul a{font-size:15px;font-weight:700;color:var(--ink);transition:.15s;}
.nav ul a:hover,.nav ul a[aria-current]{color:var(--teal-text);}
.nav .navcta{background:var(--teal);color:#fff;padding:9px 18px;border-radius:7px;}
.nav .navcta:hover{background:var(--dark);color:#fff;}
#navtoggle,.hamburger{display:none;}
.themetoggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--heading);cursor:pointer;transition:.15s;}
.themetoggle:hover{border-color:var(--teal-text);color:var(--teal-text);}
.themetoggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.themetoggle .ic-sun{display:none;}
html[data-theme="dark"] .themetoggle .ic-sun{display:block;}
html[data-theme="dark"] .themetoggle .ic-moon{display:none;}
.themetoggle-h{display:none;}
.li-theme{display:flex;align-items:center;gap:10px;}
.nav a.navli{padding:0;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid var(--line);color:var(--heading);transition:.15s;}
.nav a.navli:hover{border-color:var(--teal-text);color:var(--teal-text);}
.navli svg{display:block;width:18px;height:18px;fill:currentColor;}
/* The Resources drop-down: opens on hover or focus on wide screens; listed in the menu on narrow ones */
.has-sub{position:relative;}
.subtoggle{font:inherit;font-size:15px;font-weight:700;color:var(--ink);background:none;border:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;gap:5px;transition:.15s;}
.subtoggle:hover,.has-sub:focus-within .subtoggle{color:var(--teal-text);}
.subtoggle svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s;}
.nav ul.sub{display:none;position:absolute;top:calc(100% + 14px);left:-14px;min-width:260px;flex-direction:column;align-items:stretch;gap:2px;background:var(--card);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px rgba(15,61,69,.14);padding:6px;z-index:60;}
.nav ul.sub::before{content:"";position:absolute;left:0;right:0;top:-16px;height:16px;}
.has-sub:hover > ul.sub,.has-sub:focus-within > ul.sub{display:flex;}
.has-sub:hover .subtoggle svg,.has-sub:focus-within .subtoggle svg{transform:rotate(180deg);}
.nav ul.sub a{display:block;padding:10px 12px;border-radius:7px;}
.nav ul.sub a:hover,.nav ul.sub a[aria-current]{background:var(--soft);color:var(--teal-text);}
.nav ul.sub small{display:block;font-size:12.5px;font-weight:400;color:var(--muted);white-space:nowrap;}
/* Below 1024px the full menu no longer fits on one line, so it folds behind the menu button */
@media(max-width:1024px){
  .hamburger{display:flex;flex-direction:column;gap:5px;cursor:pointer;padding:6px;}
  .hamburger span{width:26px;height:3px;background:var(--heading);border-radius:2px;}
  .nav ul{position:absolute;top:66px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;gap:0;align-items:stretch;max-height:0;overflow:hidden;transition:max-height .25s ease;}
  html[data-theme="dark"] .nav ul{background:var(--card);}
  #navtoggle:checked ~ ul{max-height:680px;}
  .nav ul li{border-top:1px solid var(--line);}
  .nav ul a{display:block;padding:15px 24px;}
  .nav ul li.li-theme{justify-content:flex-start;padding:14px 24px;}
  .nav ul li.li-theme .themetoggle{display:none;}
  .nav .navcta{border-radius:8px;margin:14px 24px;padding:16px 20px;text-align:center;font-size:16px;}
  .themetoggle-h{display:inline-flex;margin-left:auto;margin-right:10px;}
  .subtoggle{display:block;width:100%;text-align:left;padding:15px 24px 4px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);cursor:default;}
  .subtoggle:hover,.has-sub:focus-within .subtoggle{color:var(--muted);}
  .subtoggle svg{display:none;}
  .nav ul.sub{display:flex;position:static;max-height:none;overflow:visible;border:0;border-radius:0;box-shadow:none;background:transparent;padding:0 0 8px;min-width:0;gap:0;}
  .nav ul.sub::before{display:none;}
  .nav ul.sub li{border-top:0;}
  .nav ul.sub a{padding:10px 24px 10px 36px;border-radius:0;}
  .nav ul.sub a:hover,.nav ul.sub a[aria-current]{background:transparent;}
  .nav ul.sub small{white-space:normal;}
}

/* The dark banner that opens every page but the homepage: a small label, the title and a line under it */
.subhero{background:var(--dark);color:#fff;padding:70px 0 60px;position:relative;overflow:hidden;}
.subhero .c1{position:absolute;right:-110px;top:-110px;width:320px;height:320px;background:var(--teal);opacity:.32;border-radius:50%;}
.subhero .inner{position:relative;z-index:2;max-width:780px;}
.subhero .kind{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.1em;color:var(--accent-on-dark);margin-bottom:14px;}
.subhero h1{color:#fff;font-size:40px;margin-bottom:14px;}
.subhero p{color:#d5ebeb;font-size:19px;max-width:640px;}
@media(max-width:860px){.subhero h1{font-size:30px;}}

/* Footer: the brand and links, then the tagline and copyright */
footer{background:#0a2c32;color:#cfe0e0;padding:44px 0 30px;}
.foot-top{display:flex;justify-content:space-between;flex-wrap:wrap;gap:24px;align-items:center;padding-bottom:24px;border-bottom:1px solid rgba(255,255,255,.1);}
.foot-top .brand{color:#fff;}
.foot-top .brand span{color:var(--accent);}
.foot-nav{display:flex;gap:24px;flex-wrap:wrap;font-size:15px;font-weight:700;}
.foot-nav a:hover,.foot-nav a[aria-current]{color:#fff;}
.foot-nav a.fli{display:inline-flex;align-items:center;}
.foot-nav a.fli svg{width:19px;height:19px;fill:currentColor;}
.foot-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:22px;font-size:14px;color:#8fb0b4;}
.foot-bottom .tag{color:#cfe0e0;font-weight:700;}
