/* Kalpasar Department website: visitor colour themes (data-scheme on <html>: sea | maroon; no attribute = the template's own
   colours). A colour theme recolours the brand tokens of the current template in the light and dark displays; the high-contrast
   display keeps its fixed palette. Every text and background pair was computed against WCAG 2.1 AA (4.5:1) before use and the
   rendered pages were measured (BUILD-LOG, 13-10-2026). Separate from the three theme templates, which the Department sets in
   the content management system. */

[data-design="khambhat"][data-theme="light"][data-scheme="sea"] {
  --color-surface-alt: #eff6f5; --color-primary: #0b4a4f; --color-primary-text: #0b4a4f; --color-secondary: #0d6f6b; --color-secondary-text: #0b6763; --color-link: #0a625e; --color-link-hover: #0b4a4f; --color-header-bg: #0b4a4f; --color-header-muted: #cfe7e6; --color-nav-bg: #0d6f6b;
}
[data-design="khambhat"][data-theme="dark"][data-scheme="sea"] {
  --color-primary: #2fb3a6; --color-on-primary: #04110f; --color-primary-text: #6fd6cb; --color-secondary: #3cc6b8; --color-on-secondary: #04110f; --color-secondary-text: #84e0d6; --color-link: #86e3d8; --color-link-hover: #c2f1ec; --color-header-bg: #061a19; --color-nav-bg: #0d2b2a; --color-header-muted: #b6d6d2;
}
[data-design="saurashtra"][data-theme="light"][data-scheme="sea"] {
  --color-primary: #0d5257; --color-primary-text: #0d5257; --color-secondary: #8a3b12; --color-secondary-text: #8a3b12; --color-link: #0d5c61; --color-link-hover: #083b3e; --color-nav-bg: #0d5257;
}
[data-design="saurashtra"][data-theme="dark"][data-scheme="sea"] {
  --color-primary: #2fb3a6; --color-on-primary: #04110f; --color-primary-text: #6fd6cb; --color-secondary: #d9764a; --color-on-secondary: #1b1410; --color-secondary-text: #f0a070; --color-link: #86e3d8; --color-link-hover: #c2f1ec; --color-nav-bg: #10302f;
}
[data-design="bhadbhut"][data-theme="light"][data-scheme="sea"] {
  --color-primary: #0c3438; --color-primary-text: #0c3438; --color-secondary: #0b6f6d; --color-secondary-text: #08696a; --color-link: #0a6460; --color-link-hover: #0c3438; --color-header-bg: #0c3438; --color-header-muted: #b6d3d1; --color-nav-bg: #072528;
}
[data-design="bhadbhut"][data-theme="dark"][data-scheme="sea"] {
  --color-primary: #2fb3a6; --color-on-primary: #04110f; --color-primary-text: #6fd6cb; --color-secondary: #3cc6b8; --color-on-secondary: #04110f; --color-secondary-text: #84e0d6; --color-link: #86e3d8; --color-link-hover: #c2f1ec; --color-header-bg: #041312; --color-nav-bg: #0a1f1e;
}
[data-design="khambhat"][data-theme="light"][data-scheme="maroon"] {
  --color-surface-alt: #f8f1f2; --color-primary: #5e1a26; --color-primary-text: #5e1a26; --color-secondary: #8e2a3a; --color-secondary-text: #842736; --color-link: #842433; --color-link-hover: #5e1a26; --color-header-bg: #5e1a26; --color-header-muted: #f0d3d8; --color-nav-bg: #8e2a3a;
}
[data-design="khambhat"][data-theme="dark"][data-scheme="maroon"] {
  --color-primary: #e07b8c; --color-on-primary: #1a0609; --color-primary-text: #f2a7b3; --color-secondary: #ec8fa0; --color-on-secondary: #1a0609; --color-secondary-text: #f5b6c1; --color-link: #f5b3be; --color-link-hover: #fbd9df; --color-header-bg: #1c0a0e; --color-nav-bg: #2e0f15; --color-header-muted: #e2bcc3;
}
[data-design="saurashtra"][data-theme="light"][data-scheme="maroon"] {
  --color-primary: #7a1f2e; --color-primary-text: #7a1f2e; --color-nav-bg: #7a1f2e;
}
[data-design="saurashtra"][data-theme="dark"][data-scheme="maroon"] {
  --color-primary: #e07b8c; --color-on-primary: #1a0609; --color-primary-text: #f2a7b3; --color-nav-bg: #2e0f15;
}
[data-design="bhadbhut"][data-theme="light"][data-scheme="maroon"] {
  --color-primary: #4a1520; --color-primary-text: #4a1520; --color-secondary: #8e2a3a; --color-secondary-text: #842736; --color-link: #842433; --color-link-hover: #4a1520; --color-header-bg: #4a1520; --color-header-muted: #e3c3c9; --color-nav-bg: #330e16;
}
[data-design="bhadbhut"][data-theme="dark"][data-scheme="maroon"] {
  --color-primary: #e07b8c; --color-on-primary: #1a0609; --color-primary-text: #f2a7b3; --color-secondary: #ec8fa0; --color-on-secondary: #1a0609; --color-secondary-text: #f5b6c1; --color-link: #f5b3be; --color-link-hover: #fbd9df; --color-header-bg: #14070a; --color-nav-bg: #22090e;
}

/* Option 1 banner duotone follows the colour theme (the standard blue gradient is in design-khambhat.css). */
[data-design="khambhat"][data-scheme="sea"]:not([data-theme="hc"]) .k-banner .carousel .car-items figure { background: linear-gradient(115deg, #06302f 0%, #0b4a4f 45%, #0e7a75 100%); }
[data-design="khambhat"][data-scheme="maroon"]:not([data-theme="hc"]) .k-banner .carousel .car-items figure { background: linear-gradient(115deg, #3a0f17 0%, #5e1a26 45%, #8e2a3a 100%); }

/* The control: three round swatches beside the display buttons. The ring shows the colour theme in use. */
.colour-switch { display: inline-flex; gap: 2px; align-items: center; }
.colour-switch button { min-height: 32px; min-width: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: inherit; border: 2px solid transparent; border-radius: 50%; cursor: pointer; }
.colour-switch button[aria-pressed="true"] { border-color: currentColor; }
.colour-switch .sw { display: block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; }
.colour-switch .sw-sea { background: #0d6f6b; } .colour-switch .sw-maroon { background: #8e2a3a; }
[data-design="khambhat"] .colour-switch .sw-std { background: #067dbb; } [data-design="saurashtra"] .colour-switch .sw-std { background: #8a3b12; } [data-design="bhadbhut"] .colour-switch .sw-std { background: #0b5f6b; }
[data-design="khambhat"] .site-header .utility .colour-switch :focus-visible { outline-color: var(--color-focus-header); }
/* Option 3 styles every toolbar button square; the swatches keep their round ring so the colour theme in use stays visible. */
[data-design="bhadbhut"] .toolbar .colour-switch button:not(.go):not(.voice) { border-radius: 50%; border: 2px solid transparent; padding: 0; min-width: 34px; min-height: 34px; }
[data-design="bhadbhut"] .toolbar .colour-switch button[aria-pressed="true"]:not(.go):not(.voice) { border-color: var(--color-header-text); }
@media print { .colour-switch { display: none !important; } }
