/* ==========================================================================
   Eye Security — Research blog brand layer
   --------------------------------------------------------------------------
   Drop-in stylesheet for the Swyft child theme (swyft-lifestyle-child).
   Loads AFTER swyft/style.css, the child style.css and the customizer output,
   and re-skins the site to the Eye brand (brand guide 2025, eye.security).

   Design-only: no markup or content changes. Both colour schemes supported
   through the theme's existing [data-scheme] switcher.

   Tokens: see docs/BRAND.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts — Silka (licensed webfont pack). The site already registers Silka
      through Use Any Font; these declarations guarantee every weight we use.
   -------------------------------------------------------------------------- */
@font-face { font-family: "Silka"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/fonts/silka-light-webfont.woff") format("woff"), url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/fonts/silka-light-webfont.ttf") format("truetype"); }
@font-face { font-family: "Silka"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/fonts/silka-regular-webfont.woff2") format("woff2"), url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/fonts/silka-regular-webfont.woff") format("woff"), url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/fonts/silka-regular-webfont.ttf") format("truetype"); }
@font-face { font-family: "Silka"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/fonts/silka-medium-webfont.ttf") format("truetype"); }
@font-face { font-family: "Silka"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/fonts/silka-semibold-webfont.ttf") format("truetype"); }
@font-face { font-family: "Silka"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/fonts/silka-bold-webfont.woff") format("woff"); }
@font-face { font-family: "Silka"; font-weight: 900; font-style: normal; font-display: swap;
  src: url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/fonts/silka-black-webfont.woff") format("woff"); }

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --eye-indigo: #192440;
  --eye-indigo-700: #121b33;      /* deep indigo for dark-scheme page background */
  --eye-indigo-600: #1f2d52;      /* dark-scheme card surface */
  --eye-indigo-500: #2b3a64;      /* dark-scheme borders / dividers */
  --eye-grape: #472151;
  --eye-twilight: #624185;
  --eye-lavender: #b5a1e8;
  --eye-lavender-100: #f3f0fb;    /* light tint for panels */
  --eye-lavender-200: #e9e3f8;    /* tag backgrounds */
  --eye-orange: #f49719;
  --eye-orange-600: #d97f0a;
  --eye-lemon: #f7cf45;
  --eye-magenta: #b3135f;         /* gradient core */
  --eye-ember: #e8743b;           /* gradient warmth */

  /* Neutrals (indigo-tinted) */
  --eye-ink: #192440;
  --eye-ink-muted: #596283;
  --eye-ink-soft: #8a91ab;
  --eye-line: #e6e3f0;
  --eye-surface: #ffffff;
  --eye-surface-2: #f7f6fb;

  /* Shape */
  --eye-radius-pill: 50px;
  --eye-radius-xl: 28px;
  --eye-radius-lg: 20px;
  --eye-radius-md: 14px;
  --eye-radius-sm: 8px;
  --eye-shadow-sm: 0 2px 10px rgba(25, 36, 64, 0.06);
  --eye-shadow-md: 0 10px 30px rgba(25, 36, 64, 0.10);
  --eye-shadow-lg: 0 24px 60px rgba(25, 36, 64, 0.16);

  /* Signature gradient (brand guide p.7) */
  --eye-gradient:
    radial-gradient(120% 90% at 85% 10%, rgba(75, 45, 127, 0.9) 0%, rgba(75, 45, 127, 0) 60%),
    radial-gradient(80% 70% at 60% 110%, var(--eye-magenta) 0%, rgba(179, 19, 95, 0) 60%),
    radial-gradient(60% 60% at 0% 100%, var(--eye-ember) 0%, rgba(232, 116, 59, 0) 60%),
    radial-gradient(70% 60% at 100% 100%, var(--eye-lavender) 0%, rgba(181, 161, 232, 0) 55%),
    linear-gradient(135deg, #192440 0%, #2a1d4f 45%, #472151 100%);
  --eye-brand-bar: linear-gradient(90deg,
    var(--eye-indigo) 0 22%, var(--eye-grape) 22% 44%, var(--eye-twilight) 44% 66%,
    var(--eye-lemon) 66% 76%, var(--eye-orange) 76% 88%, var(--eye-lavender) 88% 100%);

  /* Type */
  --eye-font: "Silka", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --eye-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---- Map onto Swyft customizer inputs (light) ---- */
  --cs-light-site-background: var(--eye-surface);
  --cs-light-layout-background: var(--eye-lavender-100);
  --cs-light-primary-color: var(--eye-ink);
  --cs-light-secondary-color: var(--eye-twilight);
  --cs-light-accent-color: var(--eye-orange);
  --cs-light-input-background: var(--eye-surface-2);
  --cs-light-input-color: var(--eye-ink);
  --cs-light-button-background: var(--eye-orange);
  --cs-light-button-color: var(--eye-indigo);
  --cs-light-button-hover-background: var(--eye-indigo);
  --cs-light-button-hover-color: #ffffff;
  --cs-light-secondary-button-background: var(--eye-indigo);
  --cs-light-secondary-button-color: #ffffff;
  --cs-light-border-color: var(--eye-line);
  --cs-light-divider-color: var(--eye-line);

  /* ---- Map onto Swyft customizer inputs (dark) ---- */
  --cs-dark-site-background: var(--eye-indigo-700);
  --cs-dark-layout-background: var(--eye-indigo);
  --cs-dark-primary-color: #ffffff;
  --cs-dark-secondary-color: var(--eye-lavender);
  --cs-dark-accent-color: var(--eye-orange);
  --cs-dark-input-background: var(--eye-indigo-600);
  --cs-dark-input-color: #ffffff;
  --cs-dark-button-background: var(--eye-orange);
  --cs-dark-button-color: var(--eye-indigo);
  --cs-dark-button-hover-background: #ffffff;
  --cs-dark-button-hover-color: var(--eye-indigo);
  --cs-dark-secondary-button-background: #ffffff;
  --cs-dark-secondary-button-color: var(--eye-indigo);
  --cs-dark-border-color: var(--eye-indigo-500);
  --cs-dark-divider-color: var(--eye-indigo-500);

  /* Type scale (brand: headlines bold, 1.0–1.12 leading) */
  --cs-heading-1-font-size: 3rem;
  --cs-heading-2-font-size: 2.125rem;
  --cs-heading-3-font-size: 1.625rem;
  --cs-heading-4-font-size: 1.375rem;
  --cs-heading-5-font-size: 1.25rem;
  --cs-heading-6-font-size: 1.125rem;
  --cs-font-base-family: var(--eye-font);
  --cs-font-primary-family: var(--eye-font);
  --cs-font-secondary-family: var(--eye-font);
  --cs-font-headings-family: var(--eye-font);
  --cs-font-headings-weight: 700;
  --cs-font-headings-letter-spacing: -0.02em;
  --cs-font-headings-line-height: 1.1;
  --cs-font-post-title-family: var(--eye-font);
  --cs-font-post-title-weight: 700;
  --cs-font-entry-title-family: var(--eye-font);
  --cs-font-entry-title-weight: 500;
  --cs-font-post-content-family: var(--eye-font);
  --cs-font-post-content-size: 1.0625rem;
  --cs-font-post-content-line-height: 1.6;
  --cs-font-post-content-letter-spacing: -0.01em;
  --cs-font-base-letter-spacing: -0.01em;
  --cs-font-primary-letter-spacing: -0.01em;
  --cs-font-secondary-letter-spacing: -0.01em;
  --cs-font-menu-family: var(--eye-font);
  --cs-font-menu-weight: 500;

  --cs-layout-elements-border-radius: var(--eye-radius-md);
  --cs-thumbnail-border-radius: var(--eye-radius-lg);
  --cs-button-border-radius: var(--eye-radius-pill);
  --cs-input-border-radius: var(--eye-radius-md);
  --cs-badge-border-radius: var(--eye-radius-pill);
  --cs-tag-border-radius: var(--eye-radius-pill);
}

/* Scheme-dependent semantic aliases */
:root, [data-scheme="light"] {
  --eye-bg: var(--eye-surface);
  --eye-bg-2: var(--eye-surface-2);
  --eye-card: #ffffff;
  --eye-card-hover: #ffffff;
  --eye-text: var(--eye-ink);
  --eye-text-muted: var(--eye-ink-muted);
  --eye-text-soft: var(--eye-ink-soft);
  --eye-border: var(--eye-line);
  --eye-link: var(--eye-twilight);
  --eye-link-hover: var(--eye-orange-600);
  --eye-chip-bg: var(--eye-lavender-200);
  --eye-chip-text: var(--eye-indigo);
  --eye-header-bg: rgba(255, 255, 255, 0.92);
  --eye-header-border: rgba(25, 36, 64, 0.08);
  --eye-utility-bg: var(--eye-lavender-100);
  --eye-utility-text: var(--eye-indigo);
  --eye-panel-dark: var(--eye-indigo);
  --eye-code-bg: #141c33;
  --eye-logo: url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/assets/eye-logo-indigo.svg");
  color-scheme: light;
}
[data-scheme="dark"] {
  --eye-bg: var(--eye-indigo-700);
  --eye-bg-2: var(--eye-indigo);
  --eye-card: var(--eye-indigo);
  --eye-card-hover: var(--eye-indigo-600);
  --eye-text: #ffffff;
  --eye-text-muted: #b9c0d8;
  --eye-text-soft: #8d96b8;
  --eye-border: var(--eye-indigo-500);
  --eye-link: var(--eye-lavender);
  --eye-link-hover: var(--eye-orange);
  --eye-chip-bg: rgba(181, 161, 232, 0.18);
  --eye-chip-text: #ffffff;
  --eye-header-bg: rgba(25, 36, 64, 0.92);
  --eye-header-border: rgba(255, 255, 255, 0.10);
  --eye-utility-bg: #0d1428;
  --eye-utility-text: #c9cfe3;
  --eye-panel-dark: var(--eye-indigo-600);
  --eye-code-bg: #0d1428;
  --eye-logo: url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/assets/eye-logo-white.svg");
  color-scheme: dark;

  /* Swyft derives these in its own [data-scheme=dark] block with hard-coded greys */
  --cs-color-contrast-50: #0d1428;
  --cs-color-contrast-100: #1a2545;
  --cs-color-contrast-200: #2b3a64;
  --cs-color-contrast-300: #3a4a78;
  --cs-color-contrast-400: #56669a;
  --cs-color-contrast-500: #7a86b0;
  --cs-color-contrast-600: #98a2c4;
  --cs-color-contrast-700: #b9c0d8;
  --cs-color-contrast-800: #d5daea;
  --cs-color-contrast-900: #eceef7;
  --cs-color-entry-title-hover: var(--eye-lavender);
  --cs-color-tag-background: rgba(181, 161, 232, 0.18);
  --cs-color-tag-background-hover: rgba(181, 161, 232, 0.32);
  --cs-color-meta-separator: #56669a;
  --cs-color-excerpt: #b9c0d8;
  --cs-color-border: var(--eye-indigo-500);
  --cs-palette-color-layout: var(--eye-indigo);
  --cs-palette-color-border: var(--eye-indigo-500);
  --cs-palette-color-divider: var(--eye-indigo-500);
  --cs-palette-color-gray-50: #0d1428;
  --cs-palette-color-gray-100: #1a2545;
  --cs-palette-color-gray-200: #2b3a64;
}
:root, [data-scheme="light"] {
  --cs-color-contrast-50: #fbfafd;
  --cs-color-contrast-100: #f3f0fb;
  --cs-color-contrast-200: #e6e3f0;
  --cs-color-contrast-300: #d4d0e2;
  --cs-color-contrast-400: #b4b0c8;
  --cs-color-contrast-500: #8a91ab;
  --cs-color-contrast-600: #6b7391;
  --cs-color-contrast-700: #596283;
  --cs-color-contrast-800: #3b4466;
  --cs-color-contrast-900: #192440;
  --cs-color-entry-title-hover: var(--eye-twilight);
  --cs-color-tag-background: var(--eye-lavender-200);
  --cs-color-tag-background-hover: var(--eye-lavender);
  --cs-color-meta-separator: #b4b0c8;
  --cs-color-excerpt: var(--eye-ink-muted);
  --cs-palette-color-gray-100: #f3f0fb;
  --cs-palette-color-gray-200: #e6e3f0;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--eye-font) !important;
  background: var(--eye-bg) !important;
  color: var(--eye-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.cs-site, .cs-site-inner { background: transparent; }
h1, h2, h3, h4, h5, h6, .cs-entry__title, .cs-page__title, .title {
  font-family: var(--eye-font) !important;
  color: var(--eye-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}
a { color: var(--eye-link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: var(--eye-link-hover); }
::selection { background: var(--eye-lavender); color: var(--eye-indigo); }
:focus-visible { outline: 2px solid var(--eye-orange); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

/* Brand signature: orange dot helper (used on fixed-text UI labels only) */
.eye-dot::after, .share-text .dot { color: var(--eye-orange) !important; }

/* --------------------------------------------------------------------------
   3. Utility bar (top links)
   -------------------------------------------------------------------------- */
.top-header-wrapper { background: var(--eye-utility-bg) !important; border-bottom: 1px solid var(--eye-header-border); }
.top-header { padding: .55rem 1.5rem !important; gap: 1.75rem !important; max-width: 1648px; margin: 0 auto; }
.top-header a {
  color: var(--eye-utility-text) !important;
  font-family: var(--eye-font) !important;
  font-size: .8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  opacity: .85;
  transition: opacity .2s, color .2s;
}
.top-header a:hover { opacity: 1; color: var(--eye-orange) !important; text-decoration: none !important; }
.top-header a svg { width: 14px; height: 14px; opacity: .7; }

/* --------------------------------------------------------------------------
   4. Header — floating pill bar (eye.security pattern)
   -------------------------------------------------------------------------- */
.cs-header-before { display: none; }
.cs-header.cs-header-stretch {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: .875rem 0 !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: none; /* only the pill itself captures clicks */
}
.cs-header.cs-header-stretch > .cs-container {
  pointer-events: auto;
  max-width: 1648px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.cs-header__inner.cs-header__inner-desktop.eye-header,
.cs-header__inner.cs-header__inner-mobile {
  background: var(--eye-header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--eye-header-border);
  border-radius: var(--eye-radius-pill);
  box-shadow: var(--eye-shadow-md);
  padding: .5rem .5rem .5rem 1.5rem !important;
  min-height: 72px;
  align-items: center;
  justify-content: space-between !important;
}
.cs-header__inner-desktop .cs-logo { width: auto !important; margin: 0; flex: 0 0 auto; }

/* Logo: brand wordmark + "Research" label, rendered from the SVG asset
   (keeps the uploaded PNG in markup; we just swap what is painted). */
.cs-header__logo { display: inline-flex !important; align-items: center; gap: .85rem; text-decoration: none; }
.cs-header__logo img { display: none !important; }
.cs-header__logo::before {
  content: "";
  display: block;
  width: 96px;
  height: 46px;
  background: var(--eye-logo) no-repeat left center / contain;
}
/* "Research" tag: same size/weight as the Incident Response CTA */
.cs-header__logo::after {
  content: "Research";
  font-family: var(--eye-font);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--eye-chip-text);
  background: var(--eye-chip-bg);
  padding: .95rem 1.25rem;
  border-radius: var(--eye-radius-pill);
  white-space: nowrap;
}
.cs-header__logo.cs-logo-dark { display: none !important; }
[data-scheme="dark"] .cs-header__logo.cs-logo-default { display: inline-flex !important; }

.cs-header__col.cs-col-left { padding: 0 !important; flex: 1 1 auto; display: flex; justify-content: flex-end; }
.cs-header__col.cs-col-right { display: flex; align-items: center; gap: .5rem; padding: 0 !important; }

/* Scheme toggle */
.cs-site-scheme-toggle .cs-header__scheme-toggle-icons {
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--eye-text);
  background: transparent !important;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.cs-site-scheme-toggle .cs-header__scheme-toggle-icons:hover {
  background: var(--eye-chip-bg) !important;
  color: var(--eye-text);
}
.cs-header__scheme-toggle-icon { font-size: 1.125rem !important; }

/* Primary CTA: Orange pill, Indigo text (brand CTA spec) */
.cs-button, .wp-block-button__link, button.cmplz-btn, .cmplz-btn,
.cs-header__custom-button.outline-btn, .cta-btn {
  font-family: var(--eye-font) !important;
  font-weight: 700 !important;
  font-size: .9375rem !important;
  line-height: 1 !important;
  letter-spacing: -0.01em;
  padding: .95rem 1.5rem !important;
  border-radius: var(--eye-radius-pill) !important;
  background: var(--eye-orange) !important;
  color: var(--eye-indigo) !important;
  border: 1px solid var(--eye-orange) !important;
  box-shadow: none !important;
  margin: 0 !important;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.cs-button:hover, .wp-block-button__link:hover,
.cs-header__custom-button.outline-btn:hover, .cta-btn:hover {
  background: var(--eye-indigo) !important;
  color: #ffffff !important;
  border-color: var(--eye-indigo) !important;
}
[data-scheme="dark"] .cs-button:hover, [data-scheme="dark"] .cs-header__custom-button.outline-btn:hover {
  background: #ffffff !important;
  color: var(--eye-indigo) !important;
  border-color: #ffffff !important;
}
.cs-header__custom-button.outline-btn { white-space: nowrap; }

/* Mobile header: logo centred, hamburger pinned to the right */
.cs-header__inner.cs-header__inner-mobile { padding: .5rem 1rem !important; min-height: 64px; position: relative; justify-content: center !important; }
.cs-header__inner-mobile .cs-header__col.cs-col-left { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); flex: 0 0 auto; width: auto; padding: 0 !important; }
.cs-header__inner-mobile .cs-header__col.cs-col-center { flex: 0 0 auto; width: auto; display: flex; justify-content: center; padding: 0 !important; }
.cs-header__inner-mobile .cs-header__col.cs-col-right { display: none; }
.cs-header__inner-mobile .cs-logo { margin: 0; width: auto !important; justify-content: center; }
.cs-header__inner-mobile .cs-header__logo::before { width: 80px; height: 38px; }
.cs-header__inner-mobile .cs-header__logo::after { font-size: .875rem; padding: .75rem 1rem; }
.cs-header__offcanvas-toggle {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--eye-text); font-size: 1.375rem;
}
.cs-header__offcanvas-toggle:hover { background: var(--eye-chip-bg); }

/* Off-canvas menu */
.cs-offcanvas { background: var(--eye-bg) !important; color: var(--eye-text); }
.cs-offcanvas__header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--eye-border); }
.cs-offcanvas .cs-logo img { display: none !important; }
.cs-offcanvas__toggle { color: var(--eye-text); }
.cs-offcanvas__nav .menu > li > a, #menu-mobile > li > a {
  font-family: var(--eye-font) !important;
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--eye-text) !important;
  padding: 1rem 0 !important;
  border-bottom: 1px solid var(--eye-border);
}
#menu-mobile > li > a:hover, #menu-mobile > li.current-menu-item > a { color: var(--eye-orange) !important; }
.cs-offcanvas__bottombar { border-top: 1px solid var(--eye-border); }

/* --------------------------------------------------------------------------
   5. Home hero — brand gradient band, white headline
   -------------------------------------------------------------------------- */
.cs-custom-content-header-after { position: relative; }
.home .cs-custom-content-header-after::before,
.blog .cs-custom-content-header-after::before {
  content: "";
  position: absolute;
  inset: -110px 0 0 0;         /* extends up behind the floating header */
  background: var(--eye-gradient);
  z-index: -1;
}
.home .cs-custom-content-header-after,
.blog .cs-custom-content-header-after { margin-top: -110px; padding-top: 110px; }
.main-hero-text {
  /* symmetric around the headline: the block starts 24px under the header pill, so the bottom
     padding carries those 24px to keep the text centred between the menu and the cards */
  --hero-pad: clamp(3rem, 8vw, 7rem);
  padding: var(--hero-pad) 1.25rem calc(var(--hero-pad) + 14px) !important;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}
/* Circuit-trace accents (brand variant of the old left/right diagrams): white traces with
   Orange + Lavender nodes, flowing out from under the header pill at the hero's top corners.
   Selectors carry `body` because the Customizer injects the old rules inline, after this file.
   --trace-h scales both drawings per breakpoint; the headline padding keeps clear of them. */
.main-hero-text { --trace-h: 200px; }
body .main-hero-text::before, body .main-hero-text::after,
body[data-scheme="light"] .main-hero-text::before, body[data-scheme="light"] .main-hero-text::after {
  content: "";
  position: absolute;
  top: -24px !important;      /* = the bottom edge of the floating header pill; the lines flow out of it */
  z-index: 0;
  display: block !important;
  height: var(--trace-h) !important;
  background-repeat: no-repeat !important;
  background-position: top !important;
  background-size: contain !important;
  pointer-events: none;
  opacity: .9;
}
body .main-hero-text::before, body[data-scheme="light"] .main-hero-text::before {
  left: clamp(1rem, 3vw, 4rem) !important; width: calc(var(--trace-h) * 1.0333) !important;
  background-image: url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/assets/hero-lines-left.svg") !important;
}
body .main-hero-text::after, body[data-scheme="light"] .main-hero-text::after {
  right: clamp(1rem, 3vw, 4rem) !important; width: calc(var(--trace-h) * 1.285) !important;
  background-image: url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/assets/hero-lines-right.svg") !important;
}
@media (max-width: 1439.98px) { .main-hero-text { --trace-h: 140px; } }
@media (max-width: 1099.98px) { .main-hero-text { --trace-h: 100px; --hero-pad: max(5rem, 8vw); } }
@media (max-width: 767.98px) {
  .main-hero-text { --trace-h: 90px; }
  body .main-hero-text::before, body[data-scheme="light"] .main-hero-text::before { display: none !important; } /* phones: right trace only */
  body .main-hero-text::after, body[data-scheme="light"] .main-hero-text::after { top: -18px !important; }
}
.main-hero-text h1 { position: relative; z-index: 1; }
@media (min-width: 1100px) {
  .main-hero-text::before, .main-hero-text::after,
  [data-scheme="light"] .main-hero-text::before, [data-scheme="light"] .main-hero-text::after { display: block; }
}
.main-hero-text h1 {
  /* Two lines from 700px up (the markup's <br> is honoured and lines never wrap);
     below that the <br> is dropped and the headline wraps naturally (3–4 lines on phones). */
  --hero-fs: clamp(1.75rem, 3.2vw, 3.25rem);
  font-size: var(--hero-fs) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em;
  max-width: none !important;
  margin: 0 auto !important;
  color: #fff !important;
}
.main-hero-text h1 br { display: none; }
@media (min-width: 700px) {
  .main-hero-text h1 { white-space: nowrap; }
  .main-hero-text h1 br { display: inline; }
}
/* brand dot: the label "Eye Research." ends with the orange full stop */
.main-hero-text .highlight { font-size: 0; color: var(--eye-lavender) !important; }
.main-hero-text .highlight::before { content: "Eye Research"; font-size: var(--hero-fs); color: var(--eye-lavender); }
.main-hero-text .highlight::after { content: "."; font-size: var(--hero-fs); color: var(--eye-orange); }

/* --------------------------------------------------------------------------
   6. Layout containers
   -------------------------------------------------------------------------- */
.cs-container { max-width: 1648px; padding-left: 1.25rem; padding-right: 1.25rem; }
.cs-site-content { margin-top: 2.5rem !important; }
.home .cs-site-content, .blog .cs-site-content { margin-top: 2.5rem !important; position: relative; z-index: 2; }
.cs-posts-area__home.cs-posts-area__grid { --cs-posts-area-grid-column-gap: 24px; --cs-posts-area-grid-row-gap: 24px; }
.cs-posts-area__archive.cs-posts-area__grid { --cs-posts-area-grid-column-gap: 24px; --cs-posts-area-grid-row-gap: 24px; }

/* --------------------------------------------------------------------------
   7. Post cards
   -------------------------------------------------------------------------- */
.eye_archive_card {
  background: var(--eye-card);
  border: 1px solid var(--eye-border) !important;
  border-radius: var(--eye-radius-xl) !important;
  box-shadow: var(--eye-shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.eye_archive_card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eye-shadow-lg);
  border-color: var(--eye-lavender) !important;
  background: var(--eye-card-hover);
}
.eye_archive_card .cs-entry__outer { padding: .75rem .75rem 0; display: flex; flex-direction: column; height: 100%; }
.eye_archive_card .cs-entry__thumbnail.cs-entry__overlay {
  border-radius: var(--eye-radius-lg) !important;
  max-height: 200px;
  overflow: hidden;
}
.eye_archive_card .cs-overlay-background { max-height: 200px; }
.eye_archive_card .cs-overlay-background img { transition: transform .5s ease; }
.eye_archive_card:hover .cs-overlay-background img { transform: scale(1.04); }
.cs-entry__inner.cs-entry__overlay .cs-overlay-background:after,
.cs-entry__inner.cs-entry__overlay .cs-overlay-background:before {
  opacity: .55 !important;
  background: linear-gradient(180deg, rgba(25, 36, 64, 0) 40%, rgba(25, 36, 64, .9) 100%) !important;
}
/* Reading time chip */
.read-time {
  left: 1rem !important; bottom: 1rem !important;
  width: auto !important;
  padding: .45rem .8rem !important;
  border-radius: var(--eye-radius-pill) !important;
  background: rgba(255, 255, 255, .92) !important;
  color: var(--eye-indigo) !important;
  font-family: var(--eye-font) !important;
  font-size: .8125rem !important;
  font-weight: 500;
  column-gap: .45rem !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.read-time svg { width: 15px; height: 15px; }
/* Arrow button → turns into an orange pill on hover (brand CTA motion) */
.auth-container { bottom: 1.5rem !important; right: 1.5rem !important; }
.auth-butn {
  width: 2.5rem !important; height: 2.5rem !important; margin: 0 !important;
  background: var(--eye-indigo) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .25) !important;
  border-radius: var(--eye-radius-pill) !important;
  transition: width .25s ease, background .25s ease, color .25s ease !important;
}
[data-scheme="dark"] .auth-butn { background: #fff !important; color: var(--eye-indigo) !important; }
.eye_archive_card:hover .auth-butn {
  width: 4.5rem !important;
  background: var(--eye-orange) !important;
  color: var(--eye-indigo) !important;
  border-color: var(--eye-orange) !important;
}
.eye_archive_card .cs-entry__content { padding: 1.25rem 1rem 1.5rem !important; display: flex; flex-direction: column; gap: .6rem; }
.eye_archive_card .cs-entry__title { margin: 0; line-height: 1.3; }
.eye_archive_card .cs-entry__title a { color: var(--eye-text) !important; text-decoration: none; }
.eye_archive_card .cs-entry__title a span {
  font-family: var(--eye-font) !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  color: inherit !important;
  line-height: 1.3;
}
.eye_archive_card:hover .cs-entry__title a { color: var(--eye-twilight) !important; }
[data-scheme="dark"] .eye_archive_card:hover .cs-entry__title a { color: var(--eye-lavender) !important; }
.eye_archive_card .cs-entry__excerpt {
  font-size: .9375rem !important;
  line-height: 1.5;
  color: var(--eye-text-muted) !important;
  -webkit-line-clamp: 3;
}
.eye_archive_card .cs-entry__post-meta { margin-top: auto; padding-top: .5rem; }
.cs-entry__post-meta .cs-meta-category .post-categories a,
.post-categories a {
  background: var(--eye-chip-bg) !important;
  color: var(--eye-chip-text) !important;
  font-family: var(--eye-font);
  font-size: .8125rem;
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: var(--eye-radius-pill) !important;
  text-decoration: none;
}
.cs-entry__post-meta .cs-meta-category .post-categories a:hover { background: var(--eye-indigo) !important; color: #fff !important; }
[data-scheme="dark"] .cs-entry__post-meta .cs-meta-category .post-categories a:hover { background: var(--eye-lavender) !important; color: var(--eye-indigo) !important; }
.cs-meta-date { color: var(--eye-text-soft); font-size: .8125rem; }

/* --------------------------------------------------------------------------
   8. Sidebar
   -------------------------------------------------------------------------- */
.cs-sidebar__area .widget:not(:last-child) { border-bottom: 1px solid var(--eye-border) !important; }
.cs-sidebar__area .widget { padding-bottom: 2rem; margin-bottom: 2rem; }
/* Promo panel: purple-indigo card with a soft orange warmth (no hard gradient) */
.is-style-cs-promo, .wp-block-group.is-style-cs-promo.eye-border {
  background:
    radial-gradient(75% 65% at 100% 100%, rgba(232, 116, 59, .42) 0%, rgba(232, 116, 59, 0) 70%),
    radial-gradient(60% 50% at 0% 0%, rgba(181, 161, 232, .22) 0%, rgba(181, 161, 232, 0) 70%),
    linear-gradient(150deg, #2a2456 0%, #3b2459 55%, #4a2354 100%) !important;
  color: #fff;
  border-radius: var(--eye-radius-xl) !important;
  border: 1px solid rgba(181, 161, 232, .18);
  padding: 2.5rem !important;
  position: relative;
  overflow: hidden;
  box-shadow: var(--eye-shadow-sm);
}
[data-scheme="dark"] .is-style-cs-promo { border-color: rgba(181, 161, 232, .28); }
.is-style-cs-promo::after { content: none; }
.is-style-cs-promo > * { position: relative; z-index: 1; }
.is-style-cs-promo p, .is-style-cs-promo { color: #e7e9f2 !important; font-size: .9375rem; line-height: 1.55; }
.is-style-cs-promo strong { color: #fff; font-weight: 600; }
.is-style-cs-promo a { color: var(--eye-lavender) !important; text-decoration: underline; text-underline-offset: 3px; }
.is-style-cs-promo a:hover { color: var(--eye-orange) !important; }
.is-style-cs-promo figure { margin: 0 0 1.25rem; overflow: visible; }
/* the logo is a small bitmap; Swyft's thumbnail radius (20px) would clip the "e" and the dot */
.is-style-cs-promo figure, .is-style-cs-promo .wp-block-image { overflow: visible !important; border-radius: 0 !important; }
.is-style-cs-promo figure img, .is-style-cs-promo .wp-block-image img { width: 112px; height: auto; display: block; margin: 0; border-radius: 0 !important; }
.is-style-cs-promo .cs-display-only-light { display: none !important; }
.is-style-cs-promo .cs-display-only-dark { display: block !important; }
/* social icons: the circle lives on the anchor (the logos-only block style gives the <li> no padding) */
.is-style-cs-promo .wp-block-social-links { margin-top: .5rem; gap: .5rem; }
.is-style-cs-promo .wp-block-social-links .wp-social-link { background: transparent !important; transform: none !important; color: #fff !important; }
.is-style-cs-promo .wp-block-social-links .wp-social-link a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex !important; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12); color: #fff !important;
  transition: background .2s, color .2s;
}
.is-style-cs-promo .wp-block-social-links .wp-social-link a svg { width: 18px; height: 18px; fill: currentColor; }
.is-style-cs-promo .wp-block-social-links .wp-social-link a:hover { background: var(--eye-orange); color: var(--eye-indigo) !important; }
/* Link pills next to the social icons (a core Buttons block inside the promo group):
   same translucent chip as the icons, text + external-link glyph, orange on hover */
.is-style-cs-promo .wp-block-social-links { display: inline-flex !important; vertical-align: middle; margin: .5rem 0 0 !important; }
.is-style-cs-promo .wp-block-buttons { display: inline-flex !important; vertical-align: middle; gap: .5rem; margin: .5rem 0 0 .5rem !important; }
.is-style-cs-promo .wp-block-button { margin: 0 !important; }
.is-style-cs-promo .wp-block-button__link {
  display: inline-flex !important; align-items: center; gap: .45rem;
  height: 40px; padding: 0 1rem !important; margin: 0 !important;
  border-radius: var(--eye-radius-pill) !important; border: 0 !important;
  background: rgba(255, 255, 255, .12) !important; color: #fff !important;
  font-family: var(--eye-font) !important; font-size: .875rem !important; font-weight: 500 !important; line-height: 1 !important;
  text-decoration: none !important; transition: background .2s, color .2s;
}
.is-style-cs-promo .wp-block-button__link::after {
  content: ""; width: 14px; height: 14px; flex: 0 0 auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-cs-promo .wp-block-button__link:hover { background: var(--eye-orange) !important; color: var(--eye-indigo) !important; }

.cs-sidebar__area h2, .cs-sidebar__area h3, .cs-sidebar__area .widget-title {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem;
}
.is-style-cs-tiles > li > a {
  background: var(--eye-chip-bg) !important;
  color: var(--eye-chip-text) !important;
  border-radius: var(--eye-radius-pill) !important;
  padding: .55rem 1rem;
  font-size: .9375rem;
  font-weight: 500;
  border: 0;
  transition: background .2s, color .2s;
}
.is-style-cs-tiles > li > a:hover { background: var(--eye-indigo) !important; color: #fff !important; }
[data-scheme="dark"] .is-style-cs-tiles > li > a:hover { background: var(--eye-lavender) !important; color: var(--eye-indigo) !important; }

/* --------------------------------------------------------------------------
   9. Pagination
   -------------------------------------------------------------------------- */
.cs-posts-area__pagination { margin-top: 2.5rem; }
.cs-posts-area__pagination .nav-links { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 .9rem;
  border-radius: var(--eye-radius-pill) !important;
  border: 1px solid var(--eye-border) !important;
  background: var(--eye-card) !important;
  color: var(--eye-text) !important;
  font-family: var(--eye-font); font-weight: 500; font-size: .9375rem;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
a.page-numbers:hover { background: var(--eye-indigo) !important; color: #fff !important; border-color: var(--eye-indigo) !important; }
.page-numbers.current { background: var(--eye-orange) !important; color: var(--eye-indigo) !important; border-color: var(--eye-orange) !important; font-weight: 700; }
.page-numbers.dots { border-color: transparent !important; background: transparent !important; }
.page-numbers.next::after, .page-numbers.prev::before { font-size: .9rem; }

/* --------------------------------------------------------------------------
   10. Archive / author / 404 page headers
   -------------------------------------------------------------------------- */
.cs-breadcrumbs, .cs-breadcrumbs a, .cs-breadcrumbs span { font-size: .8125rem; color: var(--eye-text-soft) !important; }
.cs-breadcrumbs a:hover { color: var(--eye-orange) !important; }
.cs-breadcrumbs .breadcrumb_last { color: var(--eye-text-muted) !important; }
.cs-page__header { margin: 1.5rem 0 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--eye-border); }
.cs-page__title { font-size: clamp(2rem, 4vw, 3rem) !important; line-height: 1.05; margin: .5rem 0 .25rem; }
.cs-page__archive-count {
  display: inline-block; width: fit-content; margin-top: .75rem;
  background: var(--eye-chip-bg); color: var(--eye-chip-text);
  font-size: .8125rem; font-weight: 500; padding: .4rem .85rem; border-radius: var(--eye-radius-pill);
}
.cs-page__author-container { display: flex; align-items: center; gap: 1.25rem; }
.cs-page__author-thumbnail { width: 72px; height: 72px; border-radius: 50%; background: var(--eye-gradient); overflow: hidden; }
.cs-page__author-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.back-link-theme-mode, .back-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--eye-text-muted) !important;
  font-size: .9375rem; font-weight: 500; text-decoration: none !important;
  margin-bottom: 1rem;
}
.back-link-theme-mode:hover, .back-link:hover { color: var(--eye-orange) !important; }
.cs-content-not-found-content { font-size: 1.125rem; color: var(--eye-text-muted); max-width: 640px; margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   11. Single post — hero card on the brand gradient
   -------------------------------------------------------------------------- */
.cs-entry__header-standard { margin-top: 1rem !important; }
.cs-entry__header-standard .container {
  background: var(--eye-gradient) !important;
  border-radius: var(--eye-radius-xl) !important;
  padding: clamp(1.5rem, 4vw, 3rem) !important;
  color: #fff !important;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--eye-shadow-md);
  overflow: hidden;
}
.cs-entry__header-standard .text-content { width: 52%; }
.cs-entry__header-standard .image-content { width: 44%; }
.cs-entry__header-standard .back-link { color: rgba(255, 255, 255, .8) !important; margin-bottom: 1.5rem; }
.cs-entry__header-standard .back-link:hover { color: var(--eye-orange) !important; }
.cs-entry__header-standard .title {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em;
  color: #fff !important;
  margin: 0 0 1.5rem !important;
  text-wrap: balance;
}
.post-single-blue {
  background: rgba(25, 36, 64, .55) !important;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--eye-radius-lg) !important;
  padding: 1rem 1.25rem !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: inline-flex !important; flex-direction: column; gap: .75rem;
}
.post-single-blue .time { color: #fff; font-size: .875rem; margin: 0 !important; gap: 1.25rem; flex-wrap: wrap; }
.post-single-blue .time span { gap: .4rem; }
.post-single-blue .time svg { width: 16px; height: 16px; opacity: .85; }
.post-single-blue .time .date { position: relative; padding-left: 1.25rem; }
.post-single-blue .time .date::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--eye-orange); transform: translateY(-50%); }
.eye-author-box { color: #fff; font-size: .875rem; }
.eye-author-box .auth-icon { width: 36px; height: 36px; border-radius: 50% !important; border: 2px solid rgba(255, 255, 255, .5); object-fit: cover; }
.author-name { font-family: var(--eye-font) !important; font-weight: 500 !important; font-size: .875rem !important; color: #fff; }
.author-name span { font-weight: 600; }
.graphic-card { border-radius: var(--eye-radius-lg); overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); aspect-ratio: 16 / 10; }
.graphic-content { border-radius: var(--eye-radius-lg) !important; }

/* Reading-progress bar (Read Meter plugin) */
#bsf_rt_progress_bar_container { height: 3px !important; background: transparent !important; z-index: 130; }
#bsf_rt_progress_bar { background: var(--eye-orange) !important; height: 3px !important; }

/* Table of contents */
.single .cs-entry__container { gap: 3rem; align-items: flex-start; }
.eye-toc { width: 22% !important; top: 112px !important; padding-top: .25rem; }
.toc-list { margin: 0 0 1.5rem !important; }
.toc-list li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.toc-list a {
  display: block;
  padding: .7rem 0 .7rem 1rem !important;
  font-size: .9375rem !important;
  font-weight: 500 !important;
  line-height: 1.35;
  color: var(--eye-text-muted) !important;
  border-left: 2px solid var(--eye-border);
  transition: color .2s, border-color .2s, background .2s;
  text-decoration: none;
}
.toc-list a:hover { color: var(--eye-text) !important; border-left-color: var(--eye-lavender); }
.toc-list a.active { color: var(--eye-text) !important; border-left-color: var(--eye-orange); font-weight: 600 !important; }
.toc-share { gap: .6rem !important; padding-left: 1rem; }
.toc-share a, .share-icons a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--eye-chip-bg);
  color: var(--eye-chip-text);
  transition: background .2s, color .2s, transform .2s;
}
.toc-share a svg, .share-icons a svg { width: 18px; height: 18px; }
.toc-share a:hover, .share-icons a:hover { background: var(--eye-orange); color: var(--eye-indigo); transform: translateY(-2px); }
.toc-share svg, .share-icons svg, .share-icon { color: inherit !important; fill: currentColor; }

/* Article typography */
.cs-entry__content-wrap { max-width: 800px; }
.entry-content { font-size: 1.0625rem; line-height: 1.65; color: var(--eye-text); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content p { margin-bottom: 0; color: var(--eye-text); }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2.25em; margin-bottom: .6em; scroll-margin-top: 110px; }
.entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem) !important; line-height: 1.15; }
.entry-content h3 { font-size: 1.375rem !important; font-weight: 600; }
.entry-content h4 { font-size: 1.125rem !important; font-weight: 600; }
/* specificity must beat WP global-styles `.entry-content a:not([class], …)` */
.cs-entry__content-wrap .entry-content a:not(.wp-block-button__link),
.cs-content-area .entry-content a:not(.wp-block-button__link) {
  color: var(--eye-link); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--eye-link) 40%, transparent);
}
.cs-entry__content-wrap .entry-content a:not(.wp-block-button__link):hover,
.cs-content-area .entry-content a:not(.wp-block-button__link):hover { color: var(--eye-link-hover); text-decoration-color: currentColor; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li + li { margin-top: .4em; }
.entry-content ul:not(.wp-block-social-links) > li::marker { color: var(--eye-orange); }
.entry-content img, .entry-content figure img { border-radius: var(--eye-radius-md); }
.entry-content figcaption { font-size: .8125rem; color: var(--eye-text-soft); text-align: center; margin-top: .5rem; }
.entry-content blockquote, .wp-block-quote, .wp-block-pullquote {
  margin: 2rem 0;
  padding: 1.75rem 2rem 1.75rem 2.25rem !important;
  background: var(--eye-bg-2) !important;
  border: 1px solid var(--eye-border) !important;
  border-left: 4px solid var(--eye-twilight) !important;
  border-radius: var(--eye-radius-lg) !important;
  position: relative;
}
[data-scheme="dark"] .entry-content blockquote, [data-scheme="dark"] .wp-block-quote { border-left-color: var(--eye-lavender) !important; }
.wp-block-quote, .entry-content blockquote { text-align: left !important; }
.wp-block-quote p, .entry-content blockquote p { font-size: 1.125rem; font-weight: 500; line-height: 1.5; color: var(--eye-text) !important; font-style: normal; text-align: left; }
.wp-block-quote::after, .entry-content blockquote::after { content: none !important; }
.wp-block-quote cite, .entry-content blockquote cite { color: var(--eye-text-muted); font-size: .875rem; font-style: normal; }
.wp-block-quote::before, .entry-content blockquote::before { content: none; }
.wp-block-table table, .entry-content table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--eye-border); border-radius: var(--eye-radius-md); overflow: hidden; font-size: .9375rem; }
.entry-content th { background: var(--eye-bg-2); font-weight: 600; text-align: left; }
.entry-content th, .entry-content td { padding: .75rem 1rem; border-bottom: 1px solid var(--eye-border); }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content hr { border: 0; height: 1px; background: var(--eye-border); margin: 2.5rem 0; }
.entry-content code:not([class*="language-"]):not(.hljs) {
  font-family: var(--eye-font-mono);
  font-size: .875em;
  background: var(--eye-chip-bg);
  color: var(--eye-text);
  padding: .15em .45em;
  border-radius: 6px;
}
/* Code blocks — always Indigo-dark, in both schemes */
.entry-content pre, .wp-block-code, pre[class*="language-"], .wp-block-preformatted, .wp-block-preformatted pre, .enlighter {
  background: var(--eye-code-bg) !important;
  color: #e6e9f4 !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: var(--eye-radius-md) !important;
  padding: 1.25rem 1.5rem !important;
  font-family: var(--eye-font-mono) !important;
  font-size: .875rem !important;
  line-height: 1.6;
  overflow: auto;
  box-shadow: none !important;
}
.wp-block-preformatted, .wp-block-preformatted pre { color: #ffd59a !important; }
.hljs, .hljs-subst { color: #e6e9f4 !important; }
code[class*="language-"], pre[class*="language-"] { text-shadow: none !important; color: #e6e9f4 !important; }
.copy-code-button { border-color: rgba(255, 255, 255, .35) !important; border-radius: 6px !important; color: #fff !important; }
.copy-code-button:hover, .copy-code-button:focus { background: rgba(255, 255, 255, .14) !important; }

/* Share footer */
.share-footer { margin: 3rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--eye-border); justify-content: space-between !important; }
.share-text { font-family: var(--eye-font); font-size: 1.125rem !important; font-weight: 700 !important; color: var(--eye-text) !important; }
.share-icons { gap: .6rem !important; }

/* Read next */
.cs-read-next { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--eye-border); }
.cs-read-next__heading { margin-bottom: 2rem; }
.cs-read-next__heading h2 { font-size: clamp(1.5rem, 3vw, 2.125rem) !important; text-align: left !important; }

/* --------------------------------------------------------------------------
   12. Footer — Indigo with the brand bar
   -------------------------------------------------------------------------- */
.custom-footer {
  background: var(--eye-indigo) !important;
  color: #fff;
  border-top: 0 !important;
  margin-top: 4rem;
  position: relative;
  font-family: var(--eye-font) !important;
}
.custom-footer::before { content: ""; display: block; height: 5px; background: var(--eye-brand-bar); }
[data-scheme="dark"] .custom-footer { background: #0d1428 !important; }
.footer-bottom { padding: 2.5rem 1.25rem !important; align-items: center !important; gap: .5rem 1.5rem; font-size: .875rem !important; }
.footer-bottom p { color: rgba(255, 255, 255, .7) !important; margin: 0; padding: 0 !important; }
/* the markup has literal "|" text nodes between the items; collapse them and draw our own dots */
.footer-links { gap: 0 !important; font-size: 0 !important; align-items: center; }
.footer-links li { font-size: .875rem; display: inline-flex; align-items: center; }
.footer-links li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--eye-orange); margin: 0 .85rem; opacity: .8; }
.footer-links li a { color: rgba(255, 255, 255, .7) !important; font-weight: 500; }
.footer-links li a:hover { color: var(--eye-orange) !important; text-decoration: none !important; }
.social-icon { width: auto !important; margin-left: auto; }
/* The LinkedIn image is hosted on the retired HubSpot site (404); paint the icon from an inline mask instead */
.social-icon img { display: none !important; }
.social-icon::before {
  content: ""; display: block; width: 22px; height: 22px;
  background: rgba(255, 255, 255, .8);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background .2s;
}
.social-icon:hover::before { background: var(--eye-orange); }

/* --------------------------------------------------------------------------
   13. Cookie banner (Complianz) — brand it so the first impression matches
   -------------------------------------------------------------------------- */
.cmplz-cookiebanner { font-family: var(--eye-font) !important; border-radius: var(--eye-radius-xl) !important; border: 1px solid var(--eye-border) !important; box-shadow: var(--eye-shadow-lg) !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: var(--eye-orange) !important; color: var(--eye-indigo) !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-deny, .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences, .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
  background: transparent !important; color: var(--eye-text) !important; border-color: var(--eye-border) !important;
}
#cmplz-manage-consent .cmplz-manage-consent { background: var(--eye-indigo) !important; color: #fff !important; border-radius: var(--eye-radius-pill) !important; }

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .eye-toc { width: 26% !important; }
}
@media (max-width: 991.98px) {
  .cs-entry__header-standard .text-content, .cs-entry__header-standard .image-content { width: 100%; }
  .cs-entry__header-standard .image-content { order: -1; }
  .graphic-card { aspect-ratio: 16 / 9; }
  .cs-entry__content-wrap { max-width: 100%; }
}
@media (max-width: 768px) {
  .cs-header.cs-header-stretch { padding: .625rem 0 !important; }
  .cs-header.cs-header-stretch > .cs-container { padding: 0 .75rem; }
  .cs-header__inner.cs-header__inner-mobile { padding: .4rem 3.25rem !important; min-height: 60px; }
  .home .cs-custom-content-header-after::before, .blog .cs-custom-content-header-after::before { inset: -90px 0 0 0; }
  .home .cs-custom-content-header-after, .blog .cs-custom-content-header-after { margin-top: -90px; padding-top: 90px; }
  .main-hero-text { --hero-pad: 4.5rem; padding: var(--hero-pad) 1rem calc(var(--hero-pad) + 10px) !important; }
  .home .cs-site-content, .blog .cs-site-content { margin-top: 1.5rem !important; }
  .cs-container { padding-left: 1rem; padding-right: 1rem; }
  .eye_archive_card .cs-entry__content { padding: 1rem .75rem 1.25rem !important; }
  .eye_archive_card .cs-entry__title a span { font-size: 1.125rem !important; }
  .auth-container { bottom: 1.25rem !important; right: 1.25rem !important; }
  .cs-entry__header-standard .container { padding: 1rem !important; gap: 1.25rem; border-radius: var(--eye-radius-lg) !important; }
  .cs-entry__header-standard .title { font-size: 1.5rem !important; margin-bottom: 1rem !important; }
  .post-single-blue { width: 100%; padding: .85rem 1rem !important; }
  .entry-content { font-size: 1rem; }
  .entry-content pre, .wp-block-code, pre[class*="language-"] { padding: 1rem !important; font-size: .8125rem !important; border-radius: var(--eye-radius-sm) !important; }
  .share-footer { flex-direction: column; align-items: flex-start !important; gap: 1rem !important; }
  .footer-bottom { padding: 2rem 1rem !important; flex-direction: column; align-items: flex-start !important; gap: 1rem; flex-wrap: nowrap !important; }
  .footer-links { flex-wrap: wrap; gap: .5rem 1rem !important; }
  .social-icon { margin-left: 0; width: 100% !important; justify-content: flex-start !important; border: 0 !important; padding: 0 !important; }
  .is-style-cs-promo, .wp-block-group.is-style-cs-promo.eye-border { padding: 1.5rem !important; }
  .cs-page__title { font-size: 1.75rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== generated: system-preference (auto) scheme ===== */
/* Swyft sets data-scheme="auto" when the Customizer scheme is "System". Every dark rule above is
   mirrored here under prefers-color-scheme: dark; without that preference the light rules apply. */
@media (prefers-color-scheme: dark) {
  [data-scheme="auto"] { --eye-bg: var(--eye-indigo-700); --eye-bg-2: var(--eye-indigo); --eye-card: var(--eye-indigo); --eye-card-hover: var(--eye-indigo-600); --eye-text: #ffffff; --eye-text-muted: #b9c0d8; --eye-text-soft: #8d96b8; --eye-border: var(--eye-indigo-500); --eye-link: var(--eye-lavender); --eye-link-hover: var(--eye-orange); --eye-chip-bg: rgba(181, 161, 232, 0.18); --eye-chip-text: #ffffff; --eye-header-bg: rgba(25, 36, 64, 0.92); --eye-header-border: rgba(255, 255, 255, 0.10); --eye-utility-bg: #0d1428; --eye-utility-text: #c9cfe3; --eye-panel-dark: var(--eye-indigo-600); --eye-code-bg: #0d1428; --eye-logo: url("https://labs.eye.security/wp-content/themes/swyft-eye-rebrand/eye-brand/assets/eye-logo-white.svg"); color-scheme: dark; /* Swyft derives these in its own [data-scheme=dark] block with hard-coded greys */ --cs-color-contrast-50: #0d1428; --cs-color-contrast-100: #1a2545; --cs-color-contrast-200: #2b3a64; --cs-color-contrast-300: #3a4a78; --cs-color-contrast-400: #56669a; --cs-color-contrast-500: #7a86b0; --cs-color-contrast-600: #98a2c4; --cs-color-contrast-700: #b9c0d8; --cs-color-contrast-800: #d5daea; --cs-color-contrast-900: #eceef7; --cs-color-entry-title-hover: var(--eye-lavender); --cs-color-tag-background: rgba(181, 161, 232, 0.18); --cs-color-tag-background-hover: rgba(181, 161, 232, 0.32); --cs-color-meta-separator: #56669a; --cs-color-excerpt: #b9c0d8; --cs-color-border: var(--eye-indigo-500); --cs-palette-color-layout: var(--eye-indigo); --cs-palette-color-border: var(--eye-indigo-500); --cs-palette-color-divider: var(--eye-indigo-500); --cs-palette-color-gray-50: #0d1428; --cs-palette-color-gray-100: #1a2545; --cs-palette-color-gray-200: #2b3a64; }
  [data-scheme="auto"] .cs-header__logo.cs-logo-default { display: inline-flex !important; }
  [data-scheme="auto"] .cs-button:hover, [data-scheme="auto"] .cs-header__custom-button.outline-btn:hover { background: #ffffff !important; color: var(--eye-indigo) !important; border-color: #ffffff !important; }
  [data-scheme="auto"] .auth-butn { background: #fff !important; color: var(--eye-indigo) !important; }
  [data-scheme="auto"] .eye_archive_card:hover .cs-entry__title a { color: var(--eye-lavender) !important; }
  [data-scheme="auto"] .cs-entry__post-meta .cs-meta-category .post-categories a:hover { background: var(--eye-lavender) !important; color: var(--eye-indigo) !important; }
  [data-scheme="auto"] .is-style-cs-promo { border-color: rgba(181, 161, 232, .28); }
  [data-scheme="auto"] .is-style-cs-tiles > li > a:hover { background: var(--eye-lavender) !important; color: var(--eye-indigo) !important; }
  [data-scheme="auto"] .entry-content blockquote, [data-scheme="auto"] .wp-block-quote { border-left-color: var(--eye-lavender) !important; }
  [data-scheme="auto"] .custom-footer { background: #0d1428 !important; }
}
