/* Lagoon palette + original artwork recoloured into Lagoon hues (layout B front page). Loaded after theme.css.
   Art: the -lagoon- SVGs. Quieter options: replace "-lagoon-" with "-soft-" or "-softer-" below. */
:root {
  --brand-rgb: 13, 148, 136;
  --bg: #f3f6f6; --surface-muted: #f6f8f8; --border: #e1e7e7; --border-strong: #cfd8d8;
  --text-muted: #56656a; --text-subtle: #8d9a9e;
  --primary: #0f766e; --primary-hover: #115e59; --primary-soft: #e3f2ef; --primary-text: #0b5c55; --accent: #0284c7;
  --grad-brand: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #38a3c9 100%);
  --grad-button: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  --grad-button-hover: linear-gradient(135deg, #115e59 0%, #0f766e 100%);
  --grad-cta: linear-gradient(120deg, #0b5c55 0%, #0f766e 60%, #14838e 100%);
  --glow: 0 10px 30px -12px rgba(13, 148, 136, 0.45);
  --sidebar-bg: #0b1416; --sidebar-active: rgba(13, 148, 136, 0.18);
  --row-hover: #f2f8f7; --focus-ring: 0 0 0 4px rgba(13, 148, 136, 0.16);
  --sidebar-icon: color-mix(in srgb, #2dd4bf 75%, white);
  --art-veil: rgba(15, 23, 30, 0.16);
}
html[data-theme="dark"] {
  --brand-rgb: 45, 212, 191;
  --bg: #080d0e; --surface: #0e1517; --surface-muted: #131c1e; --surface-raised: #152022;
  --border: #1f2b2e; --border-strong: #2b3a3d;
  --primary: #2dd4bf; --primary-hover: #5eead4; --primary-soft: rgba(45, 212, 191, 0.14); --primary-text: #99f6e4;
  --sidebar-bg: #060a0b; --sidebar-active: rgba(45, 212, 191, 0.16);
  --row-hover: rgba(45, 212, 191, 0.06); --focus-ring: 0 0 0 4px rgba(45, 212, 191, 0.22);
  --glow: 0 10px 34px -12px rgba(45, 212, 191, 0.5);
  --art-veil: rgba(4, 8, 10, 0.32);
}

/* formerly hard-coded purple */
body { background: radial-gradient(1200px 500px at 100% -10%, rgba(var(--brand-rgb), 0.05), transparent 60%), var(--bg); background-attachment: fixed; }
html[data-theme="dark"] body { background: radial-gradient(1200px 520px at 100% -10%, rgba(var(--brand-rgb), 0.08), transparent 60%), var(--bg); background-attachment: fixed; }
::selection { background: rgba(var(--brand-rgb), 0.22); }
:focus-visible { outline-color: var(--primary); }
.app-sidebar { background: radial-gradient(420px 260px at 0% 0%, rgba(var(--brand-rgb), 0.14), transparent 70%), var(--sidebar-bg); }
.brand-mark { box-shadow: 0 8px 22px -10px rgba(var(--brand-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.nav-link.active { background: linear-gradient(90deg, rgba(var(--brand-rgb), 0.24), rgba(var(--brand-rgb), 0.05)); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), 0.18); }
.nav-link.active::before { box-shadow: 0 0 10px rgba(var(--brand-rgb), 0.7); }
.nav-link.active i, .nav-link:hover i { color: var(--sidebar-icon); }
.nav-search input:focus { border-color: rgba(var(--brand-rgb), 0.8); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.22); }
.avatar { box-shadow: 0 4px 12px -4px rgba(var(--brand-rgb), 0.6); }
.dash-stat::after { background: radial-gradient(240px 120px at var(--mx, 80%) var(--my, 0%), rgba(var(--brand-rgb), 0.12), transparent 70%); }
a.dash-stat:hover { border-color: rgba(var(--brand-rgb), 0.4); }
.dash-stat .icon-tile { box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), 0.12); }
.role-chip { border-color: rgba(var(--brand-rgb), 0.18); }
.hx-cta-band, .hx-next-primary { background: var(--grad-cta); }
.hx-cta-band .btn { color: var(--primary-text); }
.hx-cta-band .btn:hover { background: var(--primary-soft); color: var(--primary-hover); }
.btn-primary, button[type="submit"]:not(.btn), input[type="submit"] { box-shadow: 0 1px 2px rgba(var(--brand-rgb), 0.3); }
.user-chip-remove:hover, .user-chip-remove:focus-visible { background: rgba(var(--brand-rgb), 0.15); }

/* softer artwork: less saturation, lower opacity, a light veil over the image blocks */
.hx-visual::before, .hp-hero::after, .auth-page::before { filter: saturate(0.5) brightness(1.03); opacity: 0.6; }
html[data-theme="dark"] .hx-visual::before, html[data-theme="dark"] .hp-hero::after, html[data-theme="dark"] .auth-page::before { filter: saturate(0.5) brightness(0.9); opacity: 0.5; }
.hx-news-art, .hp-lead-art { position: relative; isolation: isolate; }
.hx-news-art::after, .hp-lead-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--art-veil);
  -webkit-backdrop-filter: saturate(0.5); backdrop-filter: saturate(0.5); }
.hx-news-art > *, .hp-lead-art > * { position: relative; }
.hx-infra.hx-infra-v4 { isolation: isolate; }
.hx-infra.hx-infra-v4::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(8, 14, 22, 0.28); -webkit-backdrop-filter: saturate(0.45); backdrop-filter: saturate(0.45); }
.hx-infra-v4 .hx-wrap { z-index: 1; }
.hx-infra-chips i { color: color-mix(in srgb, #2dd4bf 70%, white); }
.hx-infra-big strong { background: linear-gradient(120deg, #ffffff 30%, color-mix(in srgb, #2dd4bf 45%, white) 100%); -webkit-background-clip: text; background-clip: text; }


/* ---------- Original artwork, recoloured softer (softer) ---------- */
.hx-visual::before { background-image: url("../art/geo-hero-lagoon-light.svg"); filter: none; opacity: 1; }
html[data-theme="dark"] .hx-visual::before { background-image: url("../art/geo-hero-lagoon-dark.svg"); filter: none; opacity: 1; }
.hx-window { box-shadow: 0 30px 60px -30px rgba(var(--brand-rgb), 0.30), 0 2px 6px rgba(15, 23, 30, 0.06); }

.hx-news-art { background-image: url("../art/geo-card-1-lagoon-light.svg"); color: var(--primary); }
.hx-news-card:nth-child(3n+2) .hx-news-art { background-image: url("../art/geo-card-2-lagoon-light.svg"); }
.hx-news-card:nth-child(3n) .hx-news-art { background-image: url("../art/geo-card-3-lagoon-light.svg"); }
html[data-theme="dark"] .hx-news-art { background-image: url("../art/geo-card-1-lagoon-dark.svg"); }
html[data-theme="dark"] .hx-news-card:nth-child(3n+2) .hx-news-art { background-image: url("../art/geo-card-2-lagoon-dark.svg"); }
html[data-theme="dark"] .hx-news-card:nth-child(3n) .hx-news-art { background-image: url("../art/geo-card-3-lagoon-dark.svg"); }
.hx-news-art::after { display: none; }
.hx-news-art i { background: rgba(255, 255, 255, 0.82); border-color: rgba(255, 255, 255, 0.9); color: var(--primary); box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .hx-news-art i { background: rgba(14, 21, 23, 0.75); border-color: rgba(255, 255, 255, 0.12); }

.hp-lead-art { background-image: url("../art/geo-card-1-lagoon-light.svg"); color: var(--primary); }
html[data-theme="dark"] .hp-lead-art { background-image: url("../art/geo-card-1-lagoon-dark.svg"); }
.hp-lead-art::after { display: none; }
.hp-lead-art i { background: rgba(255, 255, 255, 0.82); color: var(--primary); }
.hp-hero::after { background-image: url("../art/geo-banner-lagoon-light.svg"); filter: none; opacity: 1; }
html[data-theme="dark"] .hp-hero::after { background-image: url("../art/geo-banner-lagoon-dark.svg"); filter: none; opacity: 1; }
.auth-page::before { background-image: url("../art/geo-hero-lagoon-light.svg"); filter: none; opacity: 0.9; }
html[data-theme="dark"] .auth-page::before { background-image: url("../art/geo-hero-lagoon-dark.svg"); filter: none; opacity: 0.9; }

/* closing strip (layout B) */
.hx-close { padding: 56px 24px 64px; }
.hx-close-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 28px 32px;
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface); position: relative; overflow: hidden; isolation: isolate; }
.hx-close-inner::after { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 240px; height: 200px;
  background: url("../art/geo-banner-lagoon-light.svg") center / contain no-repeat; opacity: 0.4; }
html[data-theme="dark"] .hx-close-inner::after { background-image: url("../art/geo-banner-lagoon-dark.svg"); }
.hx-close h2 { margin: 0 0 4px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.hx-close p { margin: 0; color: var(--text-muted); }
.hx-close-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hx-close-links a:not(.btn) { color: var(--primary-text); font-weight: 600; }
@media (max-width: 760px) { .hx-close-inner::after { display: none; } }
