/* Site design refresh. Loaded by layouts/wrapper.blade.php on every page.
   To undo: remove that <link>. Colours apply to the light theme only. */
html:not(.dark) body { color: #475569; }
html:not(.dark) h1, html:not(.dark) h2, html:not(.dark) h4,
html:not(.dark) .hr-hero .fw-bold, html:not(.dark) .hr-card .fw-bold { color: #0f172a; }
h1, h2 { letter-spacing: -.025em; }
html:not(.dark) .text-muted, html:not(.dark) .text-secondary { color: #475569 !important; }
html:not(.dark) .bg-base-1 { background-color: #f8fafc !important; }

/* Header */
html:not(.dark) #header { box-shadow: none !important; border-bottom: 1px solid #e2e8f0; }
html:not(.dark) #header .nav-link { color: #334155; font-weight: 500; }

/* Accent colour */
html:not(.dark) .text-primary { color: #1d4ed8 !important; }
html:not(.dark) .bg-primary { background-color: #1d4ed8 !important; }

/* Buttons */
.btn { font-weight: 600; transition: all .15s ease; }
/* Buttons joined to inputs or other buttons keep their original corners */
:not(.btn-group):not(.input-group-append):not(.input-group-prepend) > .btn { border-radius: .75rem; }
.btn-lg { padding: .8rem 1.75rem; }
html:not(.dark) .btn-primary { background-color: #1d4ed8; border-color: #1d4ed8; color: #fff; box-shadow: 0 8px 20px -8px rgba(29,78,216,.6); }
html:not(.dark) .btn-primary:hover, html:not(.dark) .btn-primary:focus, html:not(.dark) .btn-primary:active { background-color: #1e40af !important; border-color: #1e40af !important; color: #fff; transform: translateY(-1px); }
html:not(.dark) .btn-outline-primary { color: #0f172a; border-color: #cbd5e1; background: #fff; }
html:not(.dark) .btn-outline-primary:hover, html:not(.dark) .btn-outline-primary:focus, html:not(.dark) .btn-outline-primary:active { color: #1e40af !important; border-color: #1d4ed8 !important; background: #eff6ff !important; }

/* Hero */
html:not(.dark) .hr-hero { background: radial-gradient(60rem 32rem at 50% -6rem, #dbeafe 0%, rgba(219,234,254,0) 70%), #fff !important; }
.hr-title { font-size: clamp(2.5rem, 6.5vw, 4.5rem); line-height: 1.08; letter-spacing: -.035em; }
html:not(.dark) .hr-shot { border: 1px solid #e2e8f0; box-shadow: 0 30px 60px -20px rgba(15,23,42,.25) !important; }

/* Cards */
.hr-card { width: 100%; padding: 1.5rem; border-radius: 1rem; }
html:not(.dark) .hr-card { background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px -18px rgba(15,23,42,.25); }
.hr-icon { width: 2.75rem; height: 2.75rem; border-radius: .75rem; }
html:not(.dark) .hr-icon { background: #eff6ff; }

.card { border-radius: 1rem; }
.card > .card-header:first-child { border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0; }
.card > .card-footer:last-child { border-radius: 0 0 calc(1rem - 1px) calc(1rem - 1px); }
html:not(.dark) .card { border-color: #e2e8f0; }
html:not(.dark) .card.border-0 { border: 1px solid #e2e8f0 !important; }
h2.fs-3xl, h4.fs-3xl { font-size: clamp(1.75rem, 4vw, 2.5rem) !important; letter-spacing: -.025em; }

/* Space above and below the hero buttons (.m-n2 overrides .mt-8/.mb-12) */
.hr-actions { margin-top: 1.5rem !important; margin-bottom: 2.5rem !important; }

/* ---------- Shared page design (all pages) ---------- */
h1.fs-3xl { font-size: clamp(2.125rem, 5vw, 3rem) !important; font-weight: 700 !important; }
h4.fs-2xl { font-weight: 700 !important; }

/* Page background: soft blue glow at the top */
html:not(.dark) .bg-base-1.flex-fill { background: linear-gradient(180deg, #eaf1fe 0, #f8fafc 22rem) #f8fafc !important; }

/* Breadcrumbs */
.breadcrumb { font-size: .875rem; }
html:not(.dark) .breadcrumb-item a { color: #64748b !important; }
html:not(.dark) .breadcrumb-item.active { color: #0f172a !important; }

/* Cards */
html:not(.dark) .card.shadow-sm { box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 40px -24px rgba(15,23,42,.22) !important; }
html:not(.dark) .card-header { background: #fff; border-bottom-color: #e2e8f0; }
html:not(.dark) .card-footer.bg-base-2 { background-color: #f8fafc !important; border-top: 1px solid #e2e8f0 !important; }
html:not(.dark) .list-group-item { border-color: #eef2f7; }
html:not(.dark) hr { border-top-color: #e2e8f0; }

/* Forms */
label { font-weight: 600; font-size: .875rem; }
.custom-control-label { font-weight: 400; }
.form-control, .custom-select { min-height: 2.875rem; }
.form-control-sm, .custom-select-sm { min-height: 0; }
.form-group > .form-control, .form-group > .custom-select { border-radius: .625rem; }
html:not(.dark) .form-group label { color: #0f172a; }
html:not(.dark) .form-control, html:not(.dark) .custom-select { border-color: #cbd5e1; }
html:not(.dark) .form-control:focus, html:not(.dark) .custom-select:focus { border-color: #1d4ed8; box-shadow: 0 0 0 4px rgba(29,78,216,.14); }
html:not(.dark) .form-control.is-invalid { border-color: #dc3545; }
html:not(.dark) .input-group-text { background: #f8fafc; border-color: #cbd5e1; }

/* Tabs and filters */
.nav-pills .nav-link { border-radius: 10rem; font-weight: 600; }

/* Menus, pop-ups and messages */
.dropdown-menu { border-radius: .875rem; padding: .5rem; }
.dropdown-item { border-radius: .5rem; }
html:not(.dark) .dropdown-menu { border: 1px solid #e2e8f0 !important; box-shadow: 0 20px 40px -16px rgba(15,23,42,.25) !important; }
.modal-content { border-radius: 1rem; }
.alert { border-radius: .75rem; }

/* Tables */
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
html:not(.dark) .table td, html:not(.dark) .table th { border-color: #eef2f7; }

/* Signed-in side menu */
#slide-menu .sidebar .nav-link, #slide-menu .nav .nav-link { margin: .125rem .75rem; padding-left: .75rem !important; padding-right: .75rem !important; border-radius: .625rem; font-weight: 500; }
html:not(.dark) #slide-menu { box-shadow: none !important; border-right: 1px solid #e2e8f0; }
html:not(.dark)[dir=rtl] #slide-menu { border-right: 0; border-left: 1px solid #e2e8f0; }
html:not(.dark) #slide-menu .nav .nav-link:hover { background: #f1f5f9; }
html:not(.dark) #slide-menu .nav .nav-link.active { background: #eff6ff; color: #1d4ed8; font-weight: 600; }

/* Footer */
html:not(.dark) #footer { border-top: 1px solid #e2e8f0; }
html:not(.dark) #footer .nav-link { color: #475569; }
html:not(.dark) #footer .nav-link:hover { color: #1d4ed8; }

/* Text pages and contact */
.cms-prose { font-size: 1rem; line-height: 1.75; }
html:not(.dark) .cms-prose { color: #334155; }
html:not(.dark) .cms-prose h2 { color: #0f172a; }
html:not(.dark) .contact-page .contact-details dt { color: #64748b; }
html:not(.dark) .contact-page .contact-details dd { color: #1e293b; }

/* ---------- Type scale: one set of sizes and weights ----------
   Page title 40 / section title 36 / sub-title 22 / card title 16 / body 16 / small 14 */
body { line-height: 1.6; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5 { line-height: 1.2; }
h1.fs-3xl { font-size: clamp(1.875rem, 4vw, 2.5rem) !important; line-height: 1.15; }
h2.fs-3xl, h4.fs-3xl { font-size: clamp(1.625rem, 3.5vw, 2.25rem) !important; font-weight: 700 !important; }
h2.fs-xl { font-size: 1.1875rem !important; font-weight: 700 !important; }
h4.fs-2xl { font-size: 1.375rem !important; line-height: 1.3; }
.hr-title { line-height: 1.08; letter-spacing: -.035em; }
.fs-lg { line-height: 1.6; }
.fw-black { font-weight: 700 !important; }
.small, small { font-size: .875rem; }
.card-header .fw-medium { font-size: 1rem; font-weight: 700 !important; }
.btn { font-size: .9375rem; line-height: 1.5; }
.btn-sm { font-size: .875rem; }
.btn-lg, .btn.fs-lg { font-size: 1.0625rem !important; }
.table { font-size: .9375rem; }
.nav-pills.small .nav-link { font-size: .875rem; }
#slide-menu .nav-link { font-size: .9375rem; }
#footer { font-size: .875rem; }
html:not(.dark) .text-inverse { color: #0f172a !important; }

/* ---------- Spacing ---------- */
.btn:not(.btn-sm):not(.btn-lg):not(.btn-link):not(.navbar-toggler) { padding: .5625rem 1.125rem; }

/* Top of inner pages */
.container.py-12.py-md-16 { padding-top: 2.5rem !important; padding-bottom: 4rem !important; }
.breadcrumb { padding-top: 0 !important; padding-bottom: 0 !important; margin-bottom: 1rem !important; }
.contact-page .breadcrumb { justify-content: center; }
h1.fs-3xl + p.mt-4, h1.fs-3xl + div.mt-4, h1.fs-3xl + p.mt-3 { margin-top: .75rem !important; }

/* Cards */
.card-body { padding: 1.5rem; }
.card-header { padding: 1rem 1.5rem; }
.card-footer { padding: 1rem 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
label { margin-bottom: .4rem; }
.table td, .table th { padding: .875rem 1rem; }
#footer > .container { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }

@media (max-width: 575.98px) {
    .card-body { padding: 1.25rem; }
    .card-header, .card-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ---------- Spacing classes the contact, About and policy pages use but app.css never defined ---------- */
.mt-3 { margin-top: .75rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-auto { margin-top: auto !important; }
.mb-3 { margin-bottom: .75rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.gx-4 > [class*="col-"] { padding-left: .75rem; padding-right: .75rem; }
.gy-4 > [class*="col-"] { margin-bottom: 1.5rem; }
.h-100 { height: 100% !important; }
.fs-md { font-size: .9375rem !important; }
@media (min-width: 768px) {
    .mt-md-10 { margin-top: 2.5rem !important; }
    .mb-md-10 { margin-bottom: 2.5rem !important; }
    .p-md-5 { padding: 2.5rem !important; }
    .py-md-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
}
@media (min-width: 992px) { .p-lg-8 { padding: 2rem !important; } }

/* Text pages: readable size, spacing and link colour (beats the page's own inline style) */
.card .card-body.cms-prose { font-size: 1.0625rem; line-height: 1.75; padding: 1.5rem; }
@media (min-width: 768px) { .card .card-body.cms-prose { padding: 2.5rem; } }
.card-body.cms-prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.card-body.cms-prose li { margin-bottom: .5rem; }
html:not(.dark) .card-body.cms-prose a { color: #1d4ed8; }
