/* editorial-art v1.0 - Paper & Ink / Night Ink Design Tokens & Editorial Layer */
html[data-plugin-editorial-art="1"] {
  --ed-paper: #F2EFE9;
  --ed-surface: #FBFAF7;
  --ed-surface-sunken: #E9E5DD;
  --ed-ink: #16181B;
  --ed-ink-soft: #3A3F45;
  --ed-muted: #565D65;
  --ed-hairline: rgba(22, 24, 27, 0.12);
  --ed-rule-strong: rgba(22, 24, 27, 0.82);

  --bg-color: var(--ed-paper) !important;
  --bg-color-rgb: 242, 239, 233 !important;
  --card-bg: var(--ed-surface) !important;
  --card-bg-alt: var(--ed-surface) !important;
  --surface-band-bg: var(--ed-surface-sunken) !important;
  --translucent-card-bg: rgba(251, 250, 247, 0.94) !important;
  --text-color: var(--ed-ink) !important;
  --text-color-rgb: 22, 24, 27 !important;
  --heading-color: var(--ed-ink) !important;
  --text-muted-color: var(--ed-muted) !important;
  --border-color: var(--ed-hairline) !important;
  --header-footer-bg: rgba(242, 239, 233, 0.92) !important;
  --frosted-modal-bg: rgba(251, 250, 247, 0.97) !important;
  --frosted-border: 1px solid var(--ed-hairline) !important;
  --section-shadow: none !important;
  --bs-body-bg: var(--ed-paper);
  --bs-body-color: var(--ed-ink);
}

html[data-plugin-editorial-art="1"].dark,
html[data-plugin-editorial-art="1"][data-color-mode="dark"],
html[data-plugin-editorial-art="1"] body.dark {
  --ed-paper: #121417;
  --ed-surface: #1A1D21;
  --ed-surface-raised: #23272C;
  --ed-surface-sunken: #16191D;
  --ed-ink: #F1F3F5;
  --ed-ink-soft: #C9CED4;
  --ed-muted: #A1A8B3;
  --ed-hairline: rgba(241, 243, 245, 0.10);
  --ed-rule-strong: rgba(241, 243, 245, 0.72);

  --bg-color: var(--ed-paper) !important;
  --bg-color-rgb: 18, 20, 23 !important;
  --card-bg: var(--ed-surface) !important;
  --card-bg-alt: var(--ed-surface) !important;
  --surface-band-bg: var(--ed-surface-sunken) !important;
  --translucent-card-bg: rgba(26, 29, 33, 0.94) !important;
  --text-color: var(--ed-ink) !important;
  --text-color-rgb: 241, 243, 245 !important;
  --heading-color: var(--ed-ink) !important;
  --text-muted-color: var(--ed-muted) !important;
  --border-color: var(--ed-hairline) !important;
  --header-footer-bg: rgba(18, 20, 23, 0.92) !important;
  --frosted-modal-bg: rgba(26, 29, 33, 0.97) !important;
  --frosted-border: 1px solid var(--ed-hairline) !important;
  --section-shadow: none !important;
  --bs-body-bg: var(--ed-paper);
  --bs-body-color: var(--ed-ink);
}

html[data-plugin-editorial-art="1"] body {
  background-color: var(--ed-paper) !important;
  color: var(--ed-ink) !important;
}

/* Switchable Typography Presets (with explicit body.dark overrides beating core style.css) */
html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"],
html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"] body,
html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"].dark,
html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"][data-color-mode="dark"],
html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"] body.dark {
  --font-body: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  --font-heading: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  --font-display: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"],
html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"] body,
html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"].dark,
html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"][data-color-mode="dark"],
html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"] body.dark {
  --font-body: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  --font-heading: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  --font-display: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

html[data-plugin-editorial-art="1"][data-ed-font="editorial_serif"],
html[data-plugin-editorial-art="1"][data-ed-font="editorial_serif"] body,
html[data-plugin-editorial-art="1"][data-ed-font="editorial_serif"].dark,
html[data-plugin-editorial-art="1"][data-ed-font="editorial_serif"][data-color-mode="dark"],
html[data-plugin-editorial-art="1"][data-ed-font="editorial_serif"] body.dark {
  --font-body: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif !important;
  --font-heading: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif !important;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
}

html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"] main section[data-cms-section-id] h2,
html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"] main section[data-cms-section-id] h3,
html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"] [data-module-type*="timeline"] dl.timeline-density--full dt,
html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"] [data-module-type*="timeline"] dt,
html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"] .editorial-statement-lead,
html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"] .editorial-pullquote-text,
html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"] #offcanvasLeft .offcanvas-body .navbar-nav > li > a.nav-link,
html[data-plugin-editorial-art="1"][data-ed-font="modern_sans"] .frosted-modal .modal-title,
html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"] main section[data-cms-section-id] h2,
html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"] main section[data-cms-section-id] h3,
html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"] [data-module-type*="timeline"] dl.timeline-density--full dt,
html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"] [data-module-type*="timeline"] dt,
html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"] .editorial-statement-lead,
html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"] .editorial-pullquote-text,
html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"] #offcanvasLeft .offcanvas-body .navbar-nav > li > a.nav-link,
html[data-plugin-editorial-art="1"][data-ed-font="clean_inter"] .frosted-modal .modal-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Hide small eyebrows and card kicker rows when show_eyebrows=false */
html[data-plugin-editorial-art="1"][data-ed-eyebrows="0"] main section[data-cms-section-id] .cms-eyebrow,
html[data-plugin-editorial-art="1"][data-ed-eyebrows="0"] .cms-hero-intro .cms-intro-eyebrow,
html[data-plugin-editorial-art="1"][data-ed-eyebrows="0"] .hero .hero-eyebrow,
html[data-plugin-editorial-art="1"][data-ed-eyebrows="0"] .project-kicker-row {
  display: none !important;
}

/* Season-adaptive accent heading color mode (keeping #intro h1 in editorial ink) */
html[data-plugin-editorial-art="1"] #intro h1,
html[data-plugin-editorial-art="1"] .cms-intro-title {
  color: var(--ed-ink) !important;
}

html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"] main section[data-cms-section-id] h2,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"] .project-card h3,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"] .service-card h3,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"] .editorial-contrib-title {
  color: var(--accent-text-color, var(--accent-color)) !important;
}

html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"].dark main section[data-cms-section-id] h2,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"].dark .project-card h3,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"].dark .service-card h3,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"].dark .editorial-contrib-title,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"][data-color-mode="dark"] main section[data-cms-section-id] h2,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"][data-color-mode="dark"] .project-card h3,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"][data-color-mode="dark"] .service-card h3,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"][data-color-mode="dark"] .editorial-contrib-title,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"] body.dark main section[data-cms-section-id] h2,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"] body.dark .project-card h3,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"] body.dark .service-card h3,
html[data-plugin-editorial-art="1"][data-ed-heading-color="accent"] body.dark .editorial-contrib-title {
  color: var(--accent-color) !important;
}

/* Writing quote contrast polish inside collapsed/expanded editorial cards */
html[data-plugin-editorial-art="1"] .writing-quote {
  color: var(--ed-ink);
  border-left-color: var(--accent-color);
}

html[data-plugin-editorial-art="1"] .writing-quote footer,
html[data-plugin-editorial-art="1"] .service-desc-body blockquote footer {
  color: var(--ed-ink-soft);
}

/* Editorial Typography Scale */
html[data-plugin-editorial-art="1"] main section[data-cms-section-id] h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-align: left !important;
  color: var(--ed-ink);
}

html[data-plugin-editorial-art="1"] main section[data-cms-section-id] h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--ed-ink);
}

html[data-plugin-editorial-art="1"] main section[data-cms-section-id] p {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 66ch;
}

html[data-plugin-editorial-art="1"] .cms-section-head,
html[data-plugin-editorial-art="1"] .cms-section-head--center {
  text-align: left !important;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

html[data-plugin-editorial-art="1"] .cms-section-head--center .section-subtitle {
  margin-inline: 0 !important;
}

html[data-plugin-editorial-art="1"] .section-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 60ch;
  color: var(--ed-ink-soft) !important;
}

/* Band rhythm without harsh default borders when ink dividers are active */
html[data-plugin-editorial-art="1"]:not([data-ed-divider="none"]) main.cms-main-bands > section[data-cms-section-id] {
  border-top-color: transparent !important;
}

html[data-plugin-editorial-art="1"] main.cms-main-bands > section[data-cms-section-id] {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible;
}

html[data-plugin-editorial-art="1"] main.cms-main-bands > section[data-surface="band-alt"],
html[data-plugin-editorial-art="1"] body:not(.dark) main.cms-main-bands > section[data-surface="band-alt"],
html[data-plugin-editorial-art="1"] body.dark main.cms-main-bands > section[data-surface="band-alt"] {
  background-color: var(--ed-surface-sunken) !important;
}

/* Asymmetric 4/12 - 8/12 Ledger for Timeline & Skills + sticky Editorial Statement lead on >= 1100px */
@media (min-width: 1100px) {
  html[data-plugin-editorial-art="1"] section[data-module-type*="editorial_statement"] {
    overflow: visible;
  }

  html[data-plugin-editorial-art="1"] section[data-module-type*="editorial_statement"] .editorial-statement-lead-col,
  html[data-plugin-editorial-art="1"] section[data-module-type*="editorial_statement"] .editorial-statement-left {
    position: sticky;
    top: calc(var(--header-height, 64px) + 24px);
    align-self: start;
  }

  html[data-plugin-editorial-art="1"][data-ed-asym-head="1"] main.cms-main-bands > section[data-module-type*="timeline"]:not([data-pair-with-next="1"]):not([data-pair-with-next="1"] + section) > .container,
  html[data-plugin-editorial-art="1"][data-ed-asym-head="1"] main.cms-main-bands > section[data-module-type*="skills"] > .container,
  html[data-plugin-editorial-art="1"][data-ed-asym-head="1"] main:not(.cms-main-bands) > section[data-module-type*="timeline"]:not([data-pair-with-next="1"]):not([data-pair-with-next="1"] + section),
  html[data-plugin-editorial-art="1"][data-ed-asym-head="1"] main:not(.cms-main-bands) > section[data-module-type*="skills"] {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 1.5rem 2.75rem;
    align-items: start;
  }

  html[data-plugin-editorial-art="1"][data-ed-asym-head="1"] section[data-module-type*="timeline"]:not([data-pair-with-next="1"]):not([data-pair-with-next="1"] + section) .cms-section-head,
  html[data-plugin-editorial-art="1"][data-ed-asym-head="1"] section[data-module-type*="skills"] .cms-section-head {
    grid-column: 1;
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--header-height, 67px) + 24px);
  }

  html[data-plugin-editorial-art="1"][data-ed-asym-head="1"] section[data-module-type*="timeline"]:not([data-pair-with-next="1"]):not([data-pair-with-next="1"] + section) > .container > :not(.cms-section-head),
  html[data-plugin-editorial-art="1"][data-ed-asym-head="1"] section[data-module-type*="skills"] > .container > :not(.cms-section-head),
  html[data-plugin-editorial-art="1"][data-ed-asym-head="1"] main:not(.cms-main-bands) > section[data-module-type*="timeline"]:not([data-pair-with-next="1"]):not([data-pair-with-next="1"] + section) > :not(.cms-section-head),
  html[data-plugin-editorial-art="1"][data-ed-asym-head="1"] main:not(.cms-main-bands) > section[data-module-type*="skills"] > :not(.cms-section-head) {
    grid-column: 2;
  }
}

/* Ink Section Dividers (brush, etched, contour via CSS SVG mask) */
html[data-plugin-editorial-art="1"] .ed-ink-divider {
  grid-column: 1 / -1;
  width: 100%;
  max-width: min(1296px, calc(100vw - 2.5rem));
  margin: 0.35rem auto;
  padding: 0.25rem 0;
  opacity: 1;
}

html[data-plugin-editorial-art="1"] .ed-ink-divider-rule {
  display: block;
  width: min(560px, 70%);
  height: 28px;
  background-color: var(--ed-rule-strong);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

html[data-plugin-editorial-art="1"] .ed-ink-divider[data-ed-align="left"] .ed-ink-divider-rule {
  margin-left: 0;
  margin-right: auto;
}

html[data-plugin-editorial-art="1"] .ed-ink-divider[data-ed-align="right"] .ed-ink-divider-rule {
  margin-left: auto;
  margin-right: 0;
}

html[data-plugin-editorial-art="1"] .ed-ink-divider[data-ed-divider-style="brush"] .ed-ink-divider-rule {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 28' preserveAspectRatio='none'%3E%3Cpath d='M4 15C98 11 196 18 286 13c86-4 176 2 270-1-88 6-182 3-270 5-96 2-190-2-282-2Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 28' preserveAspectRatio='none'%3E%3Cpath d='M4 15C98 11 196 18 286 13c86-4 176 2 270-1-88 6-182 3-270 5-96 2-190-2-282-2Z' fill='%23000'/%3E%3C/svg%3E");
}

html[data-plugin-editorial-art="1"] .ed-ink-divider[data-ed-divider-style="etched"] .ed-ink-divider-rule {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 28' preserveAspectRatio='none'%3E%3Cline x1='0' y1='11' x2='252' y2='11' stroke='%23000' stroke-width='1.1'/%3E%3Cline x1='308' y1='11' x2='560' y2='11' stroke='%23000' stroke-width='1.1'/%3E%3Cline x1='20' y1='17' x2='258' y2='17' stroke='%23000' stroke-width='0.9'/%3E%3Cline x1='302' y1='17' x2='540' y2='17' stroke='%23000' stroke-width='0.9'/%3E%3Cpath d='M262 14l18-7 18 7-18 7-18-7Z' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cline x1='272' y1='8' x2='288' y2='20' stroke='%23000' stroke-width='1'/%3E%3Cline x1='272' y1='20' x2='288' y2='8' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 28' preserveAspectRatio='none'%3E%3Cline x1='0' y1='11' x2='252' y2='11' stroke='%23000' stroke-width='1.1'/%3E%3Cline x1='308' y1='11' x2='560' y2='11' stroke='%23000' stroke-width='1.1'/%3E%3Cline x1='20' y1='17' x2='258' y2='17' stroke='%23000' stroke-width='0.9'/%3E%3Cline x1='302' y1='17' x2='540' y2='17' stroke='%23000' stroke-width='0.9'/%3E%3Cpath d='M262 14l18-7 18 7-18 7-18-7Z' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cline x1='272' y1='8' x2='288' y2='20' stroke='%23000' stroke-width='1'/%3E%3Cline x1='272' y1='20' x2='288' y2='8' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
}

html[data-plugin-editorial-art="1"] .ed-ink-divider[data-ed-divider-style="contour"] .ed-ink-divider-rule {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 28' preserveAspectRatio='none'%3E%3Cpath d='M0 17C84 17 132 7 216 9c76 2 114 14 190 12 62-2 102-8 154-7' fill='none' stroke='%23000' stroke-width='1.25'/%3E%3Cpath d='M24 22c72-1 124-11 198-9 70 2 118 11 188 9 56-1 98-6 134-5' fill='none' stroke='%23000' stroke-width='0.9' stroke-dasharray='4 3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 28' preserveAspectRatio='none'%3E%3Cpath d='M0 17C84 17 132 7 216 9c76 2 114 14 190 12 62-2 102-8 154-7' fill='none' stroke='%23000' stroke-width='1.25'/%3E%3Cpath d='M24 22c72-1 124-11 198-9 70 2 118 11 188 9 56-1 98-6 134-5' fill='none' stroke='%23000' stroke-width='0.9' stroke-dasharray='4 3'/%3E%3C/svg%3E");
}

/* Cards & Photographic Plate Framing */
html[data-plugin-editorial-art="1"] .project-card {
  background: var(--ed-surface) !important;
  border: 1px solid var(--ed-hairline) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html[data-plugin-editorial-art="1"] .project-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10) !important;
  }
}

html[data-plugin-editorial-art="1"] .project-card img {
  width: calc(100% - 20px);
  margin: 10px 10px 0;
  border-radius: 8px;
  border-color: var(--ed-hairline);
  box-shadow: none;
}

html[data-plugin-editorial-art="1"] .service-card .service-desc-fade,
html[data-plugin-editorial-art="1"] body.dark .service-card .service-desc-fade {
  background: linear-gradient(180deg, transparent 0%, var(--ed-surface) 92%) !important;
}

/* Timeline Full-Spine Fine-Ink Refinement */
html[data-plugin-editorial-art="1"] [data-module-type*="timeline"] dl.timeline-density--full {
  border-left: 1px solid var(--ed-hairline);
}

html[data-plugin-editorial-art="1"] [data-module-type*="timeline"] dl.timeline-density--full .timeline-entry {
  border-radius: 10px;
}

html[data-plugin-editorial-art="1"] [data-module-type*="timeline"] dl.timeline-density--full .timeline-entry--current {
  background: transparent;
  border-color: var(--ed-hairline);
}

html[data-plugin-editorial-art="1"] [data-module-type*="timeline"] dl.timeline-density--full dt {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

html[data-plugin-editorial-art="1"] [data-module-type*="timeline"] dl.timeline-density--full dt::before {
  width: 9px;
  height: 9px;
  left: calc(-1.6rem - 1rem - 5px);
  background-color: var(--ed-surface);
  border: 1.5px solid var(--ed-muted);
  box-shadow: none;
}

html[data-plugin-editorial-art="1"] [data-module-type*="timeline"] dl.timeline-density--full .timeline-entry--current dt::before {
  width: 9px;
  height: 9px;
  left: calc(-1.6rem - 1rem - 5px);
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-tint-soft);
}

html[data-plugin-editorial-art="1"] [data-module-type*="timeline"] .timeline-meta .employer-name {
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ed-muted);
}

/* Offcanvas Drawer Skin (Paper Sheet, Mono Index Nav, 2-col Feature Tiles, Footer Utility + Vignette) */
html[data-plugin-editorial-art="1"] #offcanvasLeft {
  width: min(420px, 92vw);
  background: var(--ed-surface) !important;
  color: var(--ed-ink) !important;
  border-right: 1px solid var(--ed-hairline) !important;
  border-left: 1px solid var(--ed-hairline) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-plugin-editorial-art="1"][data-ed-grain="1"] #offcanvasLeft::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

html[data-plugin-editorial-art="1"] #offcanvasLeft > * {
  position: relative;
  z-index: 1;
}

html[data-plugin-editorial-art="1"] #offcanvasLeft.offcanvas {
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1) !important;
}

html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-header {
  border-bottom: 1px solid var(--ed-hairline);
}

html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-header .offcanvas-signature-img {
  display: none;
}

html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body .navbar-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.65rem;
}

html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body .navbar-nav > li {
  grid-column: 1 / -1;
}

html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body .navbar-nav > li.nav-item:not(:has(> a[data-plugin-menu-action])):not(:has(> a[data-modal-target])):not(:has(> a[data-bs-toggle="modal"])) > a.nav-link {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.48rem;
  line-height: 1.25;
  padding: 0.42rem 0.25rem;
  color: var(--ed-ink);
  transition: transform 0.22s ease, color 0.22s ease;
}

html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body a.nav-link .nav-status-dot {
  display: none;
}

html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body .navbar-nav > li.nav-item:not(:has(> a[data-plugin-menu-action])):not(:has(> a[data-modal-target])):not(:has(> a[data-bs-toggle="modal"])) > a.nav-link .nav-link-text {
  position: relative;
}

html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body .navbar-nav > li.nav-item:not(:has(> a[data-plugin-menu-action])):not(:has(> a[data-modal-target])):not(:has(> a[data-bs-toggle="modal"])) > a.nav-link .nav-link-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background-color: var(--ed-ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body a.nav-link.active .nav-link-text::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body .navbar-nav > li.nav-item:not(:has(> a[data-plugin-menu-action])):not(:has(> a[data-modal-target])):not(:has(> a[data-bs-toggle="modal"])) > a.nav-link:hover {
    transform: translateX(4px);
    color: var(--accent-text-color, var(--accent-color));
  }
}

/* Feature Launcher Hairline 2-Column Tiles */
html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body .navbar-nav > li.nav-item:has(> a[data-plugin-menu-action]),
html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body .navbar-nav > li.nav-item:has(> a[data-modal-target]),
html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body .navbar-nav > li.nav-item:has(> a[data-bs-toggle="modal"]) {
  grid-column: span 1;
}

html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body a.nav-link[data-plugin-menu-action],
html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body a.nav-link[data-modal-target],
html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body a.nav-link[data-bs-toggle="modal"] {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.48rem 0.65rem;
  border: 1px solid var(--ed-hairline);
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ed-ink-soft);
  background: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body a.nav-link[data-plugin-menu-action]:hover,
  html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body a.nav-link[data-modal-target]:hover,
  html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body a.nav-link[data-bs-toggle="modal"]:hover {
    border-color: var(--accent-color);
    background: var(--accent-tint-soft);
    color: var(--ed-ink);
  }
}

html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body .navbar-nav > li.nav-item {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

html[data-plugin-editorial-art="1"] #offcanvasLeft .ed-drawer-footer {
  position: relative;
  padding: 0.85rem 1.25rem 1rem;
  border-top: 1px solid var(--ed-hairline);
  background: var(--ed-surface);
}

html[data-plugin-editorial-art="1"] .ed-drawer-utility-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

html[data-plugin-editorial-art="1"] .ed-drawer-lang-seg {
  display: inline-flex;
  border: 1px solid var(--ed-hairline);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

html[data-plugin-editorial-art="1"] .ed-seg-btn {
  min-width: 34px;
  min-height: 28px;
  padding: 0 0.5rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ed-muted);
  cursor: pointer;
}

html[data-plugin-editorial-art="1"] .ed-seg-btn.is-active {
  background: var(--ed-ink);
  color: var(--ed-surface);
}

html[data-plugin-editorial-art="1"] .ed-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--ed-hairline);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ed-ink-soft);
  cursor: pointer;
}

html[data-plugin-editorial-art="1"] .ed-seg-btn:focus-visible,
html[data-plugin-editorial-art="1"] .ed-mode-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

html[data-plugin-editorial-art="1"] .ed-drawer-vignette {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

html[data-plugin-editorial-art="1"] .ed-drawer-vignette img {
  display: block;
  width: min(290px, 76%);
  height: auto;
  opacity: 0.12;
  mix-blend-mode: multiply;
}

html[data-plugin-editorial-art="1"].dark .ed-drawer-vignette img,
html[data-plugin-editorial-art="1"][data-color-mode="dark"] .ed-drawer-vignette img,
html[data-plugin-editorial-art="1"] body.dark .ed-drawer-vignette img {
  opacity: 0.14;
  filter: invert(1);
  mix-blend-mode: screen;
}

/* Shared Plate Modal Skin */
html[data-plugin-editorial-art="1"] .frosted-modal .modal-content {
  background: var(--ed-surface) !important;
  color: var(--ed-ink) !important;
  border: 1px solid var(--ed-hairline) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-plugin-editorial-art="1"] .frosted-modal .modal-dialog {
  transform: none !important;
  transition: none !important;
}

html[data-plugin-editorial-art="1"] .modal-backdrop {
  background-color: rgba(18, 20, 23, 0.30);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

html[data-plugin-editorial-art="1"] .modal-backdrop.show {
  opacity: 1;
}

html[data-plugin-editorial-art="1"] .frosted-modal .modal-header {
  border-bottom: 1px solid var(--ed-hairline);
}

html[data-plugin-editorial-art="1"] .frosted-modal .modal-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ed-ink);
}

html[data-plugin-editorial-art="1"] .frosted-modal .modal-footer {
  border-top: 1px solid var(--ed-hairline);
}

html[data-plugin-editorial-art="1"] .frosted-modal .custom-close-button,
html[data-plugin-editorial-art="1"] #offcanvasLeft .custom-close-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ed-hairline);
  background: transparent;
  color: var(--ed-ink);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-plugin-editorial-art="1"] .frosted-modal .custom-close-button:focus-visible,
html[data-plugin-editorial-art="1"] #offcanvasLeft .custom-close-button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Keep Python Playground terminal surfaces dark inside editorial plate frame */
html[data-plugin-editorial-art="1"] #pythonModal .python-terminal-card,
html[data-plugin-editorial-art="1"] #pythonModal .python-terminal-pane,
html[data-plugin-editorial-art="1"] #pythonModal .python-terminal-body {
  background-color: #12151a;
  color: #e6ebf1;
}

html[data-plugin-editorial-art="1"] #pythonModal .python-terminal-card .python-pane-header {
  background-color: #161a21 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  color: #e6ebf1;
}

html[data-plugin-editorial-art="1"] #pythonModal .python-terminal-card .text-muted,
html[data-plugin-editorial-art="1"] #pythonModal .python-terminal-card .python-term-active-name,
html[data-plugin-editorial-art="1"] #pythonModal .python-terminal-card .python-term-powered {
  color: #b8c2d1 !important;
  opacity: 0.92 !important;
}

/* CV modal grayscale-to-color thumbnail preview */
html[data-plugin-editorial-art="1"] #cvDownloadModal .cv-preview-img {
  filter: grayscale(100%) contrast(1.06);
  transition: filter 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  html[data-plugin-editorial-art="1"] #cvDownloadModal .cv-preview-frame:hover .cv-preview-img {
    filter: grayscale(0%) contrast(1);
  }
}

html[data-plugin-editorial-art="1"] #cvDownloadModal .cv-preview-frame:focus-within .cv-preview-img,
html[data-plugin-editorial-art="1"] #cvDownloadModal .cv-preview-frame:focus-visible .cv-preview-img {
  filter: grayscale(0%) contrast(1);
}

/* Accessibility Preferences: Reduced Motion, Reduced Transparency, More Contrast & Print */
@media (prefers-reduced-motion: reduce) {
  html[data-plugin-editorial-art="1"] #offcanvasLeft.offcanvas,
  html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body a.nav-link,
  html[data-plugin-editorial-art="1"] #offcanvasLeft .offcanvas-body .nav-link-text::after,
  html[data-plugin-editorial-art="1"] .frosted-modal .modal-dialog,
  html[data-plugin-editorial-art="1"] #cvDownloadModal .cv-preview-img {
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  html[data-plugin-editorial-art="1"][data-ed-grain="1"] #offcanvasLeft::before {
    display: none;
  }
  html[data-plugin-editorial-art="1"] .modal-backdrop,
  html[data-plugin-editorial-art="1"] .hero.cms-hero-showcase .hero-btn-secondary {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html[data-plugin-editorial-art="1"] .hero.cms-hero-showcase .hero-btn-secondary {
    background: #121418 !important;
  }
}

@media (prefers-contrast: more) {
  html[data-plugin-editorial-art="1"] {
    --ed-hairline: rgba(22, 24, 27, 0.62);
  }
  html[data-plugin-editorial-art="1"].dark,
  html[data-plugin-editorial-art="1"][data-color-mode="dark"],
  html[data-plugin-editorial-art="1"] body.dark {
    --ed-hairline: rgba(241, 243, 245, 0.62);
  }
  html[data-plugin-editorial-art="1"][data-ed-grain="1"] #offcanvasLeft::before {
    display: none;
  }
}

@media print {
  html[data-plugin-editorial-art="1"] img,
  html[data-plugin-editorial-art="1"] .hero-image,
  html[data-plugin-editorial-art="1"] .project-card img {
    filter: grayscale(100%) !important;
    transition: none !important;
    animation: none !important;
  }
  html[data-plugin-editorial-art="1"] .ed-drawer-vignette,
  html[data-plugin-editorial-art="1"] #offcanvasLeft::before {
    display: none !important;
  }
}
