/* DartPanel template kit — base: tokens, reset, type, buttons, forms, layout.
   Every value a template can change comes from snippets/css-variables.liquid
   (theme settings) or from the template's own theme.css, which loads last. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--header-height, 80px) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body-family);
  font-weight: var(--font-body-weight);
  font-style: var(--font-body-style);
  font-size: calc(var(--font-body-scale) * var(--body-size, 1rem));
  line-height: var(--body-leading, 1.65);
  letter-spacing: var(--body-tracking, 0);
  color: rgb(var(--color-foreground));
  background: rgb(var(--color-background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body > main { flex: 1 0 auto; }
img, svg, video, iframe { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
p a, .rte a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p a:hover, .rte a:hover { color: rgb(var(--color-accent)); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid rgb(var(--color-border)); margin: 2rem 0; }
:focus-visible { outline: 2px solid rgb(var(--color-accent)); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(var(--color-accent), .18); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 1000; width: auto; height: auto; clip: auto; margin: 0; padding: .8rem 1.2rem; background: rgb(var(--color-background)); border-radius: var(--radius-sm); }
[hidden] { display: none !important; }

/* ---------- Colour schemes ---------- */
.color-scheme { color: rgb(var(--color-foreground)); background-color: rgb(var(--color-background)); }
.color-scheme--transparent { background-color: transparent; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6, .h0, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading-family);
  font-weight: var(--font-heading-weight);
  font-style: var(--font-heading-style);
  line-height: var(--heading-leading, 1.1);
  letter-spacing: var(--heading-tracking, -.02em);
  text-transform: var(--heading-case, none);
  color: rgb(var(--color-heading));
  margin: 0 0 .45em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.h0 { font-size: calc(var(--font-heading-scale) * clamp(2.75rem, 1.6rem + 5.2vw, 6rem)); letter-spacing: var(--display-tracking, -.035em); line-height: var(--display-leading, 1); }
h1, .h1 { font-size: calc(var(--font-heading-scale) * clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem)); letter-spacing: var(--display-tracking, -.03em); line-height: var(--display-leading, 1.04); }
h2, .h2 { font-size: calc(var(--font-heading-scale) * clamp(1.85rem, 1.35rem + 2.2vw, 3.1rem)); }
h3, .h3 { font-size: calc(var(--font-heading-scale) * clamp(1.4rem, 1.15rem + 1.1vw, 2rem)); letter-spacing: -.012em; }
h4, .h4 { font-size: calc(var(--font-heading-scale) * clamp(1.15rem, 1.05rem + .5vw, 1.4rem)); letter-spacing: -.008em; line-height: 1.25; }
h5, .h5 { font-size: calc(var(--font-heading-scale) * 1.08rem); letter-spacing: 0; line-height: 1.3; }
h6, .h6 { font-size: .92rem; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: rgba(var(--color-foreground), .78); max-width: 46ch; }
.lead--wide { max-width: 64ch; }
.muted { color: rgba(var(--color-foreground), .66); }
.small { font-size: .875rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-accent-family, var(--font-body-family));
  font-size: var(--eyebrow-size, .78rem);
  font-weight: var(--eyebrow-weight, 600);
  letter-spacing: var(--eyebrow-tracking, .16em);
  text-transform: var(--eyebrow-case, uppercase);
  color: rgb(var(--eyebrow-color, var(--color-accent)));
  margin: 0 0 1rem;
}
.eyebrow--line::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.eyebrow--dot::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.eyebrow--pill { padding: .35rem .8rem; border-radius: 99px; background: rgba(var(--color-accent), .1); }
.text-accent { color: rgb(var(--color-accent)); }
.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* Long text written in the editor */
.rte { overflow-wrap: break-word; }
.rte > * + * { margin-top: 1em; }
.rte h2, .rte h3, .rte h4 { margin-top: 1.8em; }
.rte ul, .rte ol { padding-left: 1.3em; }
.rte li + li { margin-top: .35em; }
.rte img { border-radius: var(--radius); margin-block: 1.6em; }
.rte blockquote { margin: 1.8em 0; padding: .2em 0 .2em 1.4em; border-left: 3px solid rgb(var(--color-accent)); font-family: var(--font-heading-family); font-size: 1.3em; line-height: 1.45; color: rgb(var(--color-heading)); }
.rte table { width: 100%; border-collapse: collapse; font-size: .95em; }
.rte th, .rte td { padding: .7em .8em; border-bottom: 1px solid rgb(var(--color-border)); text-align: left; }
.rte code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; padding: .12em .35em; border-radius: 4px; background: rgba(var(--color-foreground), .06); }
.rte pre { overflow-x: auto; padding: 1.1em 1.3em; border-radius: var(--radius); background: rgba(var(--color-foreground), .05); }
.rte pre code { padding: 0; background: none; }
.rte iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }

/* ---------- Layout ---------- */
.page-width { width: 100%; max-width: calc(var(--page-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.page-width--narrow { max-width: calc(860px + 2 * var(--gutter)); }
.page-width--text { max-width: calc(720px + 2 * var(--gutter)); }
.page-width--wide { max-width: calc(1680px + 2 * var(--gutter)); }
.page-width--full { max-width: none; }
.section { padding-block: calc(var(--section-spacing) * var(--pad-top, 1)) calc(var(--section-spacing) * var(--pad-bottom, 1)); position: relative; }
.section--flush { padding-block: 0; }
.section + .section.color-scheme--same { padding-top: 0; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster, .75rem); }
.grid {
  display: grid;
  gap: var(--grid-row-gap, var(--grid-gap)) var(--grid-gap);
  grid-template-columns: repeat(var(--cols-mobile, 1), minmax(0, 1fr));
}
@media (min-width: 750px) { .grid { grid-template-columns: repeat(var(--cols-tablet, 2), minmax(0, 1fr)); } }
@media (min-width: 990px) { .grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.split { display: grid; gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
@media (min-width: 990px) {
  .split { grid-template-columns: var(--split, 1fr 1fr); }
  .split--reverse > :first-child { order: 2; }
}
/* Hiding by screen size; nothing is forced back on, so elements keep their own display. */
@media (max-width: 749px) { .small-hide { display: none !important; } }
@media (min-width: 750px) { .medium-up-hide { display: none !important; } }
@media (max-width: 989px) { .medium-down-hide { display: none !important; } }
@media (min-width: 990px) { .large-up-hide { display: none !important; } }

/* Section heading row: eyebrow, title, text and a link aligned to the right */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; margin-bottom: clamp(1.8rem, 3.5vw, 3rem); }
.section-head__text { max-width: 720px; }
.section-head__text > :last-child { margin-bottom: 0; }
.section-head__title { margin-bottom: .3em; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-head__text { margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--media-radius, var(--radius)); background: rgba(var(--color-foreground), .05); aspect-ratio: var(--ratio, auto); }
.media > img, .media > video, .media > svg, .media > picture, .media > picture > img, .media > iframe { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, center); }
.media--contain > img { object-fit: contain; }
.media--zoom > img { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
a:hover .media--zoom > img, .media--zoom:hover > img { transform: scale(1.045); }
.placeholder { width: 100%; height: 100%; fill: rgba(var(--color-foreground), .32); background: rgba(var(--color-foreground), .06); }
.ratio-square { --ratio: 1 / 1; } .ratio-portrait { --ratio: 4 / 5; } .ratio-tall { --ratio: 3 / 4; } .ratio-landscape { --ratio: 4 / 3; } .ratio-wide { --ratio: 16 / 9; } .ratio-cinema { --ratio: 21 / 9; }

/* ---------- Buttons ---------- */
.btn, .button {
  --btn-bg: var(--color-accent); --btn-fg: var(--color-accent-foreground); --btn-border: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--button-height, 3.1rem);
  padding: 0 var(--button-pad, 1.6rem);
  border: var(--button-border-width, 1px) solid rgb(var(--btn-border));
  border-radius: var(--button-radius);
  background: rgb(var(--btn-bg));
  color: rgb(var(--btn-fg));
  font-family: var(--button-font, var(--font-body-family));
  font-size: var(--button-size, .95rem);
  font-weight: var(--button-weight, 600);
  letter-spacing: var(--button-tracking, .01em);
  text-transform: var(--button-case, none);
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.btn:hover, .button:hover { --btn-bg: var(--color-accent-hover, var(--color-heading)); --btn-border: var(--color-accent-hover, var(--color-heading)); color: rgb(var(--color-accent-foreground)); }
.btn--secondary, .button--secondary { --btn-bg: var(--color-background); --btn-fg: var(--color-heading); --btn-border: var(--color-heading); background: transparent; }
.btn--secondary:hover, .button--secondary:hover { --btn-bg: var(--color-heading); --btn-border: var(--color-heading); background: rgb(var(--color-heading)); color: rgb(var(--color-background)); }
.btn--soft { --btn-bg: var(--color-foreground); --btn-fg: var(--color-heading); --btn-border: var(--color-foreground); background: rgba(var(--color-foreground), .07); border-color: transparent; }
.btn--soft:hover { background: rgba(var(--color-foreground), .13); color: rgb(var(--color-heading)); border-color: transparent; }
.btn--light { --btn-bg: 255, 255, 255; --btn-fg: 17, 17, 17; --btn-border: 255, 255, 255; }
.btn--light:hover { --btn-bg: 17, 17, 17; --btn-border: 17, 17, 17; color: #fff; }
.btn--outline-light { background: transparent; --btn-fg: 255, 255, 255; --btn-border: 255, 255, 255; }
.btn--outline-light:hover { background: #fff; color: #111; }
.btn--small, .button--small { min-height: 2.5rem; padding: 0 1.1rem; font-size: .86rem; }
.btn--large { min-height: 3.6rem; padding: 0 2.1rem; font-size: 1.02rem; }
.btn--full, .button--full { width: 100%; }
.btn--icon { width: var(--button-height, 3.1rem); padding: 0; }
.btn svg, .button svg { width: 1.1em; height: 1.1em; flex: none; }
.btn[disabled], .button[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: rgb(var(--color-heading)); text-decoration: none; }
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .3s; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-underline { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .35s; }
.link-underline:hover { background-size: 0 1px; background-position: 100% 100%; }
.buttons { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.text-center .buttons { justify-content: center; }
.spinner { width: 1.15em; height: 1.15em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: grid; gap: .45rem; }
.field__label { font-size: .86rem; font-weight: 600; color: rgb(var(--color-heading)); }
.field__label .req { color: rgb(var(--color-accent)); }
.field__input, .select__select, textarea.field__input {
  width: 100%;
  min-height: var(--input-height, 3.1rem);
  padding: .75rem 1rem;
  border: 1px solid rgba(var(--color-foreground), .2);
  border-radius: var(--input-radius);
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
textarea.field__input { min-height: 8rem; resize: vertical; line-height: 1.55; border-radius: min(var(--input-radius), 1rem); }
.field__input::placeholder { color: rgba(var(--color-foreground), .5); }
.field__input:hover, .select__select:hover { border-color: rgba(var(--color-foreground), .38); }
.field__input:focus, .select__select:focus { outline: none; border-color: rgb(var(--color-accent)); box-shadow: 0 0 0 3px rgba(var(--color-accent), .15); }
.field--error .field__input { border-color: #c4332f; }
.select { position: relative; display: block; }
.select__select { padding-right: 2.6rem; cursor: pointer; }
.select > svg { position: absolute; right: 1rem; top: 50%; width: .7rem; height: .7rem; transform: translateY(-50%); pointer-events: none; opacity: .7; }
.form-grid { display: grid; gap: 1rem 1.2rem; }
@media (min-width: 750px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.form-message { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .95rem; }
.form-message--success { background: rgba(28, 138, 82, .1); color: #146b3f; }
.form-message--error { background: rgba(196, 51, 47, .09); color: #a82a26; }
/* Check boxes and radio buttons drawn by the theme */
.check { display: flex; align-items: center; gap: .7rem; cursor: pointer; padding: .3rem 0; font-size: .95rem; }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 1.15rem; height: 1.15rem; margin: 0; border: 1.5px solid rgba(var(--color-foreground), .35); border-radius: 5px; background: rgb(var(--color-background)); display: grid; place-content: center; transition: background-color .2s, border-color .2s; cursor: pointer; }
.check input::after { content: ""; width: .6rem; height: .35rem; border: solid rgb(var(--color-accent-foreground)); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s; }
.check input:checked { background: rgb(var(--color-accent)); border-color: rgb(var(--color-accent)); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:disabled { opacity: .4; cursor: not-allowed; }
.check input:disabled + span { opacity: .45; }
.check .count { margin-left: auto; font-size: .8rem; color: rgba(var(--color-foreground), .55); }

/* ---------- Small pieces ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: var(--badge-radius, 99px); background: rgb(var(--color-heading)); color: rgb(var(--color-background)); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.badge--sale { background: rgb(var(--color-sale, 196, 51, 47)); color: #fff; }
.badge--soft { background: rgba(var(--color-accent), .12); color: rgb(var(--color-accent)); }
.badge--light { background: rgba(255, 255, 255, .92); color: #111; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border: 1px solid rgb(var(--color-border)); border-radius: 99px; font-size: .88rem; background: rgb(var(--color-background)); transition: border-color .2s, background-color .2s, color .2s; cursor: pointer; }
.chip:hover { border-color: rgb(var(--color-heading)); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current="true"] { background: rgb(var(--color-heading)); border-color: rgb(var(--color-heading)); color: rgb(var(--color-background)); }
.chip svg { width: .8rem; height: .8rem; }
.stars { display: inline-flex; align-items: center; gap: .15rem; color: rgb(var(--color-star, 232, 168, 32)); }
.stars svg { width: .95rem; height: .95rem; }
.icon-box { display: inline-grid; place-items: center; width: var(--icon-box, 3.2rem); height: var(--icon-box, 3.2rem); border-radius: var(--icon-radius, var(--radius)); background: rgba(var(--color-accent), .1); color: rgb(var(--color-accent)); flex: none; }
.icon-box svg { width: 46%; height: 46%; }
.divider { height: 1px; background: rgb(var(--color-border)); border: 0; margin: 0; }
.toast { position: fixed; z-index: 400; left: 50%; bottom: 1.5rem; transform: translate(-50%, 140%); padding: .9rem 1.4rem; border-radius: var(--radius); background: rgb(var(--color-heading)); color: rgb(var(--color-background)); font-size: .95rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
/* Copyright line: "Powered by DartPanel" (snippets/powered-by.liquid). */
.powered-by a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-credit { margin: 0; font-size: .82rem; color: rgba(var(--color-foreground), .6); }
.site-credit .powered-by a { color: inherit; }
