/* template 578 */
:root {
  --d-primary: #2563eb;        /* buttons, links, highlights */
  --d-primary-dark: #1d4ed8;   /* hover on primary */
  --d-info: #0284c7;
  --d-success: #16a34a;
  --d-warning: #d97706;
  --d-danger: #dc2626;
  --d-dark: #111827;           /* header, footer and dark blocks */
  --d-darker: #0b1220;         /* the bar above the header */
  --d-ink: #1f2937;            /* body text */
  --d-muted: #6b7280;          /* secondary text */
  --d-line: #e5e7eb;           /* borders */
  --d-soft: #f3f4f6;           /* pale backgrounds */
  --d-on-dark: #e5e7eb;        /* text on dark backgrounds */
  --d-button-margins: 4px;
  --d-border-radius: 8px;
  --d-radius: 12px;            /* cards and panels */
  --d-default-link: var(--d-primary);
  --s-primary: var(--d-primary);
  --d-font: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-width: 1140px;
}
/* ---------- Base ---------- */
body { color: var(--d-ink); background: #fff; font-size: 16px; line-height: 1.65; }
*, *:before, *:after { font-family: var(--d-font); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; color: inherit; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
a { color: var(--d-primary); }
html { background: var(--d-dark); }
/* ---------- Header ---------- */
header .featurebar { background: var(--d-darker); }
/* no divider lines between the basket, search and sign in: the search box's own background separates them */
.navbar-features .element { border-right: 0; margin-left: 8px; }
header .main-navigation { background: var(--d-dark); }
header .main-navigation .container { align-items: center; min-height: 64px; }
header .main-navigation .logo { flex: 1; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
header .main-navigation p.logo { margin: 0; }
/* the logo is the maintenance logo image plus editable text, inside one link */
header .main-navigation .logo a { display: flex; align-items: center; color: #fff; text-decoration: none; }
header .main-navigation .logo img { width: 36px; height: 36px; margin: 0 10px 0 0; flex: none; }
.mainmenu a { color: var(--d-on-dark); font-size: 15px; }
.mainmenu > ul > li > a:hover, .mainmenu > ul > li.active > a { color: #fff; }
.mainmenu li.active, .mainmenu li:hover { background: transparent; }
.mainmenu > ul > li.active > a { box-shadow: inset 3px 0 0 var(--d-primary); }
.breadcrumbbar { background: var(--d-soft); font-size: 13px; }

@media (min-width: 900px) {
  .mainmenu > ul > li > a { padding: 0 14px; }
  .mainmenu > ul > li.active > a { box-shadow: none; }
  .mainmenu > ul > li.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--d-primary); pointer-events: none; }
  .mainmenu ul li > ul { border-radius: var(--d-radius); overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
  .mainmenu .dropdown-menu li a { color: var(--d-ink); }
  .mainmenu > ul > li > .dropdown-arrow { align-self: stretch; height: auto; }
}
/* ---------- Footer ---------- */
footer { background: var(--d-dark); color: var(--d-on-dark); padding: 56px 0 28px; font-size: 14px; }
footer a { color: var(--d-on-dark); }
footer ul.footermap > li > a { color: #fff; font-weight: 700; }
footer ul.footermap > li { width: 22%; margin: 0 1% 28px; }
footer ul.footermap { overflow: hidden; }
footer .container.footer { row-gap: 0; }
footer .container.footer p { margin: 0; }
footer .container.footer .copyright,
footer .container.footer .cookieconsent,
footer .container.footer .credit { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
/* Style classes offered in the editor's style pickers. The base site.css defines the generic set
   (link-type-*, block-background-*, card-theme-*, alert-style-*, img-corner-*); this adds the
   brand's look and a few extra options. Names follow <component>-<category>-<value> */

/* ---------- Links and buttons ---------- */
[class*=link-type] { border-radius: var(--d-border-radius); padding: 0.7em 1.4em; font-weight: 600; box-shadow: none; }
.link-type-primary:hover { background-color: var(--d-primary-dark); }
.link-type-outline { background: transparent; color: var(--d-primary); box-shadow: inset 0 0 0 2px var(--d-primary); }
.link-type-outline:hover { background: var(--d-primary); color: #fff; }
.link-type-light { background: #fff; color: var(--d-dark); }
.link-type-light:hover { background: var(--d-soft); }

/* ---------- Blocks (page sections) ---------- */
.block-background-subtle { --blockbackground: var(--d-soft); }
.block-background-dark { --blockbackground: var(--d-dark); color: #fff; }
.block-background-accent { --blockbackground: var(--d-primary); color: #fff; }
.block-background-hero {
  --blockbackground: linear-gradient(120deg, var(--d-dark) 40%, color-mix(in srgb, var(--d-primary) 45%, var(--d-dark)));
  color: #fff;
}
/* the base CSS spreads a full width block's colour with box-shadow, which can't draw a gradient */
.block-background-hero.block-width-fullwidth { position: relative; isolation: isolate; box-shadow: none; }
.block-background-hero.block-width-fullwidth:before { content: ""; position: absolute; inset: 0 -50vw; z-index: -1; background: var(--blockbackground); }
.block-padding-small { padding: 24px 0; }
.block-padding-medium { padding: 48px 0; }
.block-padding-large { padding: 80px 0; }
.block-padding-hero { padding: clamp(64px, 9vw, 120px) 0; }
:is(.block-background-hero, .block-background-dark, .block-background-accent) a:not([class*=link-type]) { color: #fff; text-decoration: underline; }
/* a block that isn't full width is a rounded panel inside the content */
.duoblock:not(.block-width-fullwidth)[class*="block-background-"] { margin-block: 24px; border-radius: var(--d-radius); padding-inline: clamp(20px, 4vw, 48px); }
/* the editor wraps block content in .container, which is page width, so inside a column it fills the column */
.duocmscol .container { width: 100%; margin: 0; }

/* ---------- Text styles ---------- */
p.style-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--d-primary); margin-bottom: 0; }
p.style-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--d-muted); max-width: 44em; }
p.style-lead[style*="center"] { margin-inline: auto; }   /* its max-width needs centring too when the align buttons are used */
:is(.block-background-hero, .block-background-dark, .block-background-accent) p.style-eyebrow { color: #fff; opacity: 0.8; }
:is(.block-background-hero, .block-background-dark, .block-background-accent) p.style-lead { color: rgba(255,255,255,0.85); }
blockquote.style-quote { margin: 0; padding: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; font-weight: 600; }
strong.highlight { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--d-primary) 25%, transparent) 60%); }
.text-colour-muted { color: var(--d-muted); }

/* ---------- Columns ---------- */
.duocmsrow { gap: 24px; margin: 0; }
.duocmscol { padding: 0; }   /* spaced by the row's gap, so a column with a border or background doesn't touch its neighbour */
.duoblock > .container > .duocmsrow { margin-top: 32px; }
.columns-align-center { align-items: center; }
.column-align-center { text-align: center; }
.column-style-card { background: #fff; border: 1px solid var(--d-line); border-radius: var(--d-radius); padding: 28px; }
.column-style-outline { border: 2px solid var(--d-line); border-radius: var(--d-radius); padding: 28px; }
:is(.column-style-card, .column-style-outline) > :first-child { margin-top: 0; }

/* ---------- Cards ---------- */
duo-card::part(card) { background: #fff; border: 1px solid var(--d-line); border-radius: var(--d-radius); box-shadow: none; padding: 24px; min-height: 0; gap: 8px; }
duo-card [slot=heading] :is(h2, h3) { margin: 0; font-size: 1.25rem; }
duo-card [slot=subheading] p { margin: 0; color: var(--d-primary); font-weight: 600; font-size: 0.85rem; }
duo-card [slot=text] p { margin: 0; color: var(--d-muted); }
.card-theme-flat::part(card) { background: var(--d-soft); border-color: transparent; }
.duocmscol > duo-card { height: 100%; display: block; }

/* ---------- Images ---------- */
.img-shadow-soft { box-shadow: 0 20px 40px -20px rgba(0,0,0,0.35); border-radius: var(--d-radius); overflow: clip; }

/* ---------- Lists ---------- */
ul.list-style-ticks { list-style: none; padding: 0; }
.list-style-ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.list-style-ticks li:before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--d-primary) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center/12px no-repeat;
}

/* ---------- Details (FAQs) ---------- */
.duoEditArea details { --details-colour: var(--d-ink); box-shadow: none; border: 1px solid var(--d-line); border-radius: var(--d-radius); padding: 0 20px 4px; margin-top: 10px; }
.duoEditArea details summary { font-size: 1.1rem; font-weight: 600; background: transparent; margin: 0 -20px; padding: 16px 52px 16px 20px; }
.duoEditArea details[open] summary { background: transparent; color: var(--d-primary); margin-bottom: 0; }

/* ---------- Forms ---------- */
.duoform { padding: 0; }
.formrow label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.formrow :is(input, textarea, select) { width: 100%; border: 1px solid var(--d-line); border-radius: var(--d-border-radius); padding: 10px 12px; box-shadow: none; background-color: #fff; }
.formrow :is(input, textarea, select):focus { outline: 3px solid color-mix(in srgb, var(--d-primary) 25%, transparent); border-color: var(--d-primary); }

/* ---------- Tables and alerts ---------- */
.tablewrapper table { width: 100%; }
.tablewrapper :is(td, th) { padding: 10px 12px; }
.alert { border-radius: var(--d-radius); padding: 14px 20px; }

/* ---------- Post list: an each block, one .item repeated per page ---------- */
p + .post-list { margin-top: 28px; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-list .item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--d-line); border-radius: var(--d-radius); padding: 24px; }
.post-list .item h3 { margin: 0; font-size: 1.2rem; }
.post-list .item h3 a { color: var(--d-ink); }
.post-list .item > p { margin: 8px 0 0; color: var(--d-muted); flex: 1; }
.post-list .item > p:has(> small) { margin-top: 16px; flex: none; }
.post-list .item small { font-size: 0.8rem; }
/* Insides of components drawn in shadow roots (tabs, cookie banner, search box). The template CSS
   is linked inside their shadow roots too, so :host() rules reach them */

/* tabs */
:host(.tabs-style-pills) div.tabbuttons { display: flex; flex-wrap: wrap; gap: 8px; }
:host(.tabs-style-pills) div.tabbuttons button { margin: 0; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--d-soft); color: var(--d-ink); font: inherit; font-weight: 600; cursor: pointer; }
:host(.tabs-style-pills) div.tabbuttons button.active { background: var(--d-primary); color: #fff; }
:host(.tabs-style-pills) div.tabpanel { margin-top: 12px; padding: 20px 24px; border: 1px solid var(--d-line); border-radius: var(--d-radius); }

/* cookie banner */
:host(cookie-banner) .cookie-banner { background: var(--d-dark); color: var(--d-on-dark); font-size: 14px; }
:host(cookie-banner) .cookie-banner .options button { margin-left: 8px; padding: 8px 18px; border: 0; border-radius: var(--d-border-radius); background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5); font: inherit; font-weight: 600; cursor: pointer; }
:host(cookie-banner) .cookie-banner .options button:first-child { background: var(--d-primary); box-shadow: none; }
:host(cookie-banner) .smodal .heading { background: var(--d-dark); }
:host(cookie-banner) .smodal .heading h3, :host(cookie-banner) .smodal .close { color: #fff; }
:host(cookie-banner) .modaltoolbar .sbtn { border-radius: var(--d-border-radius); background: var(--d-primary); }

/* the search box in the header bar */
:host(duo-search) form { margin: 0; }
:host(duo-search) .form-row { margin: 0; align-items: center; }
:host(duo-search) .form-row input.form-input { flex: none; width: 180px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px 0 0 999px; background: rgba(255,255,255,0.1); color: #fff; font-size: 14px; transition: width .3s, background .3s; }
/* duo-kit rounds a field with a suffix button by 4px, with a selector that includes .hasSuffix and its svelte class */
:host(duo-search) .form-row.hasSuffix input.form-input { border-radius: 999px 0 0 999px; }
:host(duo-search) .form-row input.form-input::placeholder { color: rgba(255,255,255,0.7); }
:host(duo-search) .form-row input.form-input:focus { width: 240px; background: #fff; color: var(--d-ink); outline: none; }
/* the button is .primary while the field is empty and .warning once something is typed, so these rules
   cover both. [slot=suffix] outweighs duo-kit's own .form-row.svelte-… [slot=suffix] .sbtn */
:host(duo-search) .form-row [slot=suffix] .sbtn { height: 30px; padding: 0 12px; border: 0; border-radius: 0 999px 999px 0; background: rgba(255,255,255,0.1); color: #fff; box-shadow: none; }
:host(duo-search) .form-row [slot=suffix] .sbtn:is(:hover, :focus-visible, .warning) { background: var(--d-primary); }
@media (max-width: 600px) {
  :host(duo-search) .form-row input.form-input { width: 0; padding: 0; }
  :host(duo-search) .form-row input.form-input:focus { width: 140px; padding: 0 10px; }
  :host(duo-search) .form-row [slot=suffix] .sbtn { border-radius: 999px; }
  :host(duo-search) .form-row input.form-input:focus + [slot=suffix] .sbtn { border-radius: 0 999px 999px 0; }
}
