/* ACTC — GOV.UK-style layout on Modernist base tokens. Brand blue from the ACTC logo. */
:root {
  --blue: #4e67a4; --blue-dark: #364b7e; --blue-darker: #243458; --blue-tint: #eef1f8;
  --ink: #0b0c0c; --ink-2: #505a5f; --grey: #f3f2f1; --line: #b1b4b6;
  --focus: #ffdd00; --edge: clamp(15px, 4vw, 30px);
  --color-bg: #ffffff; --color-text: #0b0c0c; --color-accent: #4e67a4;
}
body { background: #fff; color: var(--ink); font-size: 19px; line-height: 1.32; margin: 0; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 var(--edge); }
p { margin: 0 0 20px; }
a { color: var(--blue-dark); text-decoration: underline; text-decoration-thickness: max(1px, .0625rem); text-underline-offset: .15em; }
a:hover { color: var(--blue-darker); text-decoration-thickness: max(3px, .1875rem); }
a:visited { color: #4c2c92; }
:focus-visible, a:focus { outline: 3px solid transparent; }
a:focus-visible { color: var(--ink) !important; background: var(--focus); box-shadow: 0 -2px var(--focus), 0 4px var(--ink); text-decoration: none; }
button:focus-visible, .button:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 1px var(--focus); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.01em; color: inherit; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; margin: 0 0 30px; }
h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.1; margin: 0 0 20px; }
h3 { font-size: clamp(19px, 2vw, 24px); line-height: 1.2; margin: 0 0 15px; }
.lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.3; margin-bottom: 30px; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -9999px; }
.skip:focus-visible { position: static; display: block; padding: 10px var(--edge); }

/* cookie banner (fixed to bottom) */
.cookie { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: var(--grey); padding: 20px 0 0; border-top: 5px solid var(--blue); box-shadow: 0 -4px 20px rgba(11,12,12,.15); max-height: 80vh; overflow-y: auto; }
.cookie.is-open { display: block; }
.cookie .wrap { position: relative; }
.cookie h2 { padding-right: 50px; }
.cookie__close { position: absolute; top: -6px; right: var(--edge); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; }
.cookie__close:hover { background: #dbdad9; }
.cookie h2 { font-size: 24px; margin-bottom: 15px; }
.cookie p { max-width: 42em; }

/* header */
.site-header { border-bottom: 10px solid var(--blue); }
.brand-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: inline-block; }
.brand img { display: block; width: 190px; height: auto; }
.header-contact { font-size: 16px; color: var(--ink-2); text-align: right; }
.header-contact a { font-weight: 600; }
.service-nav { background: var(--blue); }
.service-nav .wrap { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; color: #fff !important; font-size: 16px; font-weight: 600; text-decoration: none; padding: 14px 0 10px; border-bottom: 4px solid transparent; }
.nav-links a:hover { border-bottom-color: rgba(255,255,255,.7); }
.nav-links a[aria-current="page"] { border-bottom-color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: #fff; font: 600 16px var(--font-body); padding: 14px 0; cursor: pointer; }
.menu-btn::after { content: ""; display: inline-block; margin-left: 8px; border: 6px solid transparent; border-top-color: #fff; transform: translateY(3px); }
.menu-btn[aria-expanded="true"]::after { border-top-color: transparent; border-bottom-color: #fff; transform: translateY(-3px); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; padding-bottom: 10px; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 0; border-left: 4px solid transparent; padding-left: 10px; }
  .nav-links a[aria-current="page"] { border-left-color: #fff; }
  .header-contact { display: none; }
}

/* buttons */
.button { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1.2 var(--font-body); padding: 10px 14px 8px; border: 2px solid transparent; border-radius: 0; background: var(--blue); color: #fff !important; text-decoration: none; box-shadow: 0 2px 0 var(--blue-darker); cursor: pointer; margin: 0 0 22px; }
.button:hover { background: var(--blue-dark); text-decoration: none; }
.button:active { transform: translateY(2px); box-shadow: none; }
.button--start { font-size: 22px; font-weight: 800; padding: 12px 16px 10px; }
.button--start svg { flex: none; }
.button--inverse { background: #fff; color: var(--blue-darker) !important; box-shadow: 0 2px 0 var(--blue-darker); }
.button--inverse:hover { background: var(--blue-tint); }
.button--secondary { background: var(--grey); color: var(--ink) !important; box-shadow: 0 2px 0 #929191; }
.button--secondary:hover { background: #dbdad9; }
.button-group { display: flex; flex-wrap: wrap; gap: 0 15px; align-items: baseline; }

/* homepage hero */
.hero { position: relative; color: #fff; background: var(--blue-darker) url(hero-beach.jpg) 70% 50% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,52,88,.92) 0%, rgba(54,75,126,.82) 45%, rgba(78,103,164,.25) 100%); }
.hero .wrap { position: relative; padding-top: clamp(50px, 8vw, 100px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero .wrap > div { max-width: 36em; }
.hero p { max-width: 36em; }
@media (max-width: 760px) { .hero::before { background: rgba(36,52,88,.85); } }

/* sections */
.section { padding: 50px 0 30px; }
.section + .section { border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; list-style: none; margin: 0; padding: 0; }
.cards li { border-top: 3px solid var(--blue); padding-top: 15px; }
.cards h3 a { color: var(--blue-dark); }
.cards p { font-size: 16px; line-height: 1.4; margin: 0 0 10px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; gap: 20px; } }
.panel { background: var(--grey); padding: 30px; margin: 0 0 40px; }
.panel h2 { margin-bottom: 15px; }
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 30px; margin: 0; }
.contact-list dt { font-size: 16px; color: var(--ink-2); margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 22px; font-weight: 800; }

/* inner pages */
.breadcrumbs { padding: 15px 0 0; font-size: 16px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li + li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 0 8px; border: solid var(--ink-2); border-width: 1px 1px 0 0; transform: rotate(45deg); vertical-align: middle; }
.breadcrumbs a { color: var(--ink); }
.page { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 30px 60px; padding: 30px 0 60px; }
.page--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .page { grid-template-columns: 1fr; } }
.prose { max-width: 38em; }
.prose h2 { margin-top: 40px; }
.issues { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.issues li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.related { border-top: 3px solid var(--blue); padding-top: 12px; align-self: start; font-size: 16px; }
.related h2 { font-size: 22px; margin-bottom: 12px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin-bottom: 12px; }
.bio-photo { width: 200px; aspect-ratio: 1; background: var(--grey); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--ink-2); font-size: 14px; margin-bottom: 30px; }
.note-todo { background: #fff7bf; border-left: 0; padding: 15px 20px; font-size: 16px; }
.cta { background: var(--blue-tint); padding: 25px 30px; margin-top: 30px; }
.cta p:last-child { margin-bottom: 0; }

/* footer */
.site-footer { background: var(--grey); border-top: 10px solid var(--blue); padding: 60px 0 30px; font-size: 16px; color: var(--ink); margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 60px; padding-bottom: 50px; }
.footer-h { font-size: 19px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.footer-col p { margin: 0 0 16px; line-height: 1.5; }
.footer-col a, .footer-list a { color: var(--ink); }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px 40px; border-top: 1px solid var(--line); padding-top: 25px; }
.footer-bottom p { margin: 0; color: var(--ink-2); }
.footer-bottom .footer-links { flex-direction: row; gap: 10px 25px; margin: 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 60px; justify-content: space-between; }
.footer-links { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.footer-links a, .footer-links button { color: var(--ink); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
.footer-links a:hover, .footer-links button:hover { text-decoration-thickness: 3px; }
.site-footer p { margin: 0 0 8px; }

/* two-up cards */
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .cards--2 { grid-template-columns: 1fr; } }

/* service cards (whole card clickable) */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; list-style: none; margin: 0 0 20px; padding: 0; }
.service-cards li { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 5px solid var(--blue); padding: 25px; background: #fff; }
.service-cards li:hover { background: var(--blue-tint); }
.service-cards h2 { font-size: clamp(22px, 2.4vw, 27px); margin: 0 0 12px; }
.service-cards h2 a { color: var(--blue-dark); text-decoration: none; }
.service-cards h2 a::after { content: ""; position: absolute; inset: 0; }
.service-cards li:hover h2 a { text-decoration: underline; text-decoration-thickness: 3px; }
.service-cards h2 a:focus-visible { box-shadow: none; }
.service-cards li:has(a:focus-visible) { outline: 3px solid var(--focus); box-shadow: inset 0 0 0 2px var(--ink); }
.service-cards p { font-size: 17px; line-height: 1.4; flex: 1; }
.service-cards__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue-dark); font-size: 17px; }
.service-cards__more svg { width: 10px; height: 12px; }

/* accordion */
.accordion { border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.accordion__controls { margin: 0 0 10px; }
.accordion__controls button { font: 600 17px var(--font-body); color: var(--blue-dark); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
.accordion details { border-top: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 0; font-weight: 700; font-size: clamp(19px, 2vw, 22px); color: var(--blue-dark); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; flex: none; width: 10px; height: 10px; margin: 6px 6px 0 0; border: solid currentColor; border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform .15s; }
.accordion details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.accordion summary:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }
.accordion summary:focus-visible { outline: 3px solid var(--focus); background: var(--focus); color: var(--ink); }
.accordion__body { padding: 0 0 10px; }

/* contact form */
.form { margin: 0 0 40px; }
.form-field { margin: 0 0 25px; border: 0; padding: 0; }
.form-field > label, .form-field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.form-input { display: block; width: 100%; box-sizing: border-box; font: 19px/1.3 var(--font-body); padding: 7px 8px; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); }
.form-input--short { max-width: 14em; }
textarea.form-input { resize: vertical; }
.form-input:focus { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--ink); }
.form-input[aria-invalid="true"] { border-color: #d4351c; }
.form-radios { display: flex; flex-direction: column; gap: 10px; }
.form-radios label, .form-check label { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; cursor: pointer; }
.form-radios input, .form-check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--blue-dark); }
.form-check label { font-size: 17px; }
.form-error { display: block; color: #d4351c; font-weight: 700; margin: 0 0 6px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 20px; margin: 0 0 30px; border: 5px solid var(--blue); }
.form-status.is-error { border-color: #d4351c; }
.form-status h3 { margin: 0 0 8px; }
.form-status p { margin: 0; }
.button[disabled] { opacity: .6; cursor: wait; }

/* link list */
.link-list { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--line); }
.link-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.link-list h3 { font-size: clamp(19px, 2vw, 22px); margin: 0 0 6px; }
.link-list p { font-size: 17px; line-height: 1.4; margin: 0; color: var(--ink-2); }

.service-cards h3 { font-size: clamp(21px, 2.2vw, 24px); margin: 0 0 12px; }
.service-cards h3 a { color: var(--blue-dark); text-decoration: none; }
.service-cards h3 a::after { content: ""; position: absolute; inset: 0; }
.service-cards li:hover h3 a { text-decoration: underline; text-decoration-thickness: 3px; }
.service-cards h3 a:focus-visible { box-shadow: none; }
.service-cards p a { position: relative; z-index: 1; }
.service-cards--home { margin-top: 30px; }
.service-cards--home li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.service-cards--home h3 { align-self: start; }
.service-cards--people { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.service-cards--people li { grid-row: span 5; }
.service-cards--people h3 { margin-bottom: 4px; }
.service-cards p.service-cards__quals { flex: none; font-size: 16px; color: var(--ink-2); margin: 0 0 14px; }
.service-cards p.service-cards__tel { flex: none; margin: 0 0 14px; font-weight: 700; }
.cookie__msg { padding-right: 50px; }
.cookie__msg:focus { outline: none; }
.cookie__msg p { margin: 0 0 20px; }
[hidden] { display: none !important; }

/* masthead: logo + contact + nav (home overlays hero photo; inner pages on solid blue) */
.hero--merged { display: flex; flex-direction: column; min-height: min(80vh, 680px); }
.hero--merged .hero-top { position: relative; z-index: 3; }
.hero--merged .hero-body { position: relative; z-index: 1; flex: 1; display: flex; align-items: flex-start; width: 100%; box-sizing: border-box; padding-top: clamp(30px, 4vw, 50px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero--merged::before { background: linear-gradient(90deg, rgba(36,52,88,.92) 0%, rgba(54,75,126,.8) 45%, rgba(78,103,164,.3) 100%), linear-gradient(180deg, rgba(36,52,88,.7) 0%, rgba(36,52,88,0) 35%); }
.hero-brand { display: block; background: #fff; padding: 14px 18px; flex: none; }
.hero-brand img { display: block; width: 170px; height: auto; }
.hero-nav .nav-links { gap: 0; }
.hero-nav .nav-links a { color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none; padding: 15px 10px 11px; border-bottom: 4px solid transparent; white-space: nowrap; }
.hero-nav .nav-links a:hover { border-bottom-color: var(--blue); background: #fff; color: var(--blue-darker) !important; }
.hero-nav .nav-cta { margin-left: auto; }
.hero-nav .nav-cta a { background: #fff; color: var(--blue-darker) !important; border-bottom: 0; padding: 12px 16px; margin: 4px 0; box-shadow: 0 2px 0 var(--blue-darker); }
.hero-nav .nav-cta a:hover { background: var(--blue-tint); }
.hc { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; color: #fff; }
.hc li { display: flex; align-items: center; gap: 8px; }
.hc a { color: #fff !important; font-weight: 700; white-space: nowrap; text-decoration: none; }
.hc a:hover { text-decoration: underline; }
.hc .hc-name { font-weight: 400; opacity: .85; }
.hc svg { flex: none; }

.hero-top__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px 40px; }
.hero-top__contact { padding-top: 20px; }
.hero-top__contact .hc { justify-content: flex-end; font-size: 16px; }
.hero-nav { margin-top: 0; background: rgba(24,35,60,.72); backdrop-filter: blur(6px); border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.hero-nav .wrap { display: flex; align-items: stretch; }
.hero-nav .nav-links { display: flex; flex: 1; margin: 0; padding: 0; list-style: none; align-items: center; }
@media (max-width: 1000px) {
  .hero-top__row { align-items: center; }
  .hero-top__contact { padding-top: 0; }
  .hero-top__contact .hc li:last-child, .hero-top__contact .hc-name { display: none; }
  .hero-top__contact .hc { flex-direction: column; align-items: flex-end; font-size: 15px; gap: 4px; }
  .hero-nav { margin-top: 0; }
  .hero-nav .nav-links { margin: 0; }
}
@media (max-width: 480px) { .hero-top__contact { display: none; } }

.hero--merged .hero-top .wrap { padding-top: 0; padding-bottom: 0; }
.hero--merged .hero-top .hero-top__row { padding-top: 0; }
@media (max-width: 1000px) {
  .hero-nav .menu-btn { display: block; color: #fff; font-size: 17px; padding: 12px 0; }
  .hero-nav .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue-darker); padding: 10px var(--edge) 15px; flex-direction: column; align-items: flex-start; }
  .hero-nav .nav-links.is-open { display: flex; }
  .hero-nav .nav-links a { border-bottom: 0; border-left: 4px solid transparent; padding: 12px 0 12px 12px; }
  .hero-nav .nav-cta { margin: 8px 0 0; }
  .hero-nav .nav-cta a { display: inline-block; border-left: 0; padding: 12px 16px; }
  .hero--merged { min-height: 0; }
  .hero-brand img { width: 130px; }
}
.masthead { position: relative; z-index: 3; background: #fff; }
.masthead .hero-brand { padding-left: 0; }
.masthead .hc { color: var(--ink-2); }
.masthead .hc a { color: var(--blue-dark) !important; }
.masthead .hc svg { color: var(--blue); }
.masthead .hc .hc-name { opacity: 1; }
.masthead .hero-nav { background: var(--blue-darker); backdrop-filter: none; border: 0; }
.masthead .wrap { padding-top: 0; padding-bottom: 0; }
.hero-nav .nav-links a[aria-current="page"] { border-bottom-color: #fff; }
@media (max-width: 1000px) { .hero-nav .nav-links a[aria-current="page"] { border-left-color: #fff; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-nav .nav-home a { display: flex; align-items: center; padding-left: 12px; padding-right: 12px; }
.hero-nav .nav-home svg { display: block; }
@media (max-width: 1000px) { .hero-nav .nav-home a { padding-left: 12px; } }
.hero-nav .nav-cta a { display: flex; align-items: center; padding: 10px 14px; }
.hero-nav .nav-cta svg { display: block; }

/* GOV.UK-style page header band (inner pages) */
.page-head { background: #d2e2f1; padding: 20px 0 clamp(40px, 5vw, 60px); margin-bottom: clamp(30px, 4vw, 50px); }
.page-head .breadcrumbs { margin: 0 0 clamp(30px, 4vw, 50px); padding: 0; }
.page-head .breadcrumbs a { color: var(--ink) !important; }
.page-head .breadcrumbs .muted { color: var(--ink); }
.page-head h1 { margin: 0; max-width: 20em; text-wrap: balance; }
.page-head__lede { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.4; margin: clamp(20px, 3vw, 35px) 0 0; max-width: 36em; color: var(--ink); }
.footer-version { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); font-size: 14px; }
