/* Light Tracer · patch v10 · site-wide unification
   Load on EVERY page (not only home + product), after lighttracer-patch-v9.css.
   Needs patch-v10/js/lighttracer-patch-v10.js (continuous spine + gallery de-dup) on every page. */
/* ==========================================================================
   v10 · site-wide unification
   1. one continuous spine per page (all pages, same x, same width, never breaks)
   2. contact page: dark quick-answer cards + dark form (prototype + live plugin markup)
   3. WooCommerce / plugin forms use the same field + button styles everywhere
   4. leftovers: no .streak lines, no light panels, one green (#3dff6e)
   ========================================================================== */

/* 1. continuous spine. lighttracer.js appends <span class="lt-spine"> to <body> and sets its top/height
      from the first to the last .rail .node. Per-section rails keep only their nodes. */
.lt-spine { position: absolute; z-index: 3; left: calc(var(--rail-x) - 1px); width: 2px; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, rgba(61,255,110,0) 0, var(--laser) var(--spine-fade, 64px), var(--laser) 100%);
  box-shadow: 0 0 6px rgba(61,255,110,.45); }
.lt-spine::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 160px; opacity: 0;
  background: linear-gradient(180deg, rgba(160,255,190,0), rgba(160,255,190,.95) 90%, #fff); }
body { position: relative; }
.has-spine .rail::before, .has-spine .rail::after { display: none; }
.has-spine .rail { overflow: visible; z-index: 4; }
/* every page, every template: the spine hugs the window edge (v7 A), never the content column */
.row { position: relative; }
.rail { left: calc(var(--rail-x) - 7px - var(--wrap-inset)); }
/* nested wraps (live templates: main.wrap > section.wrap) are corrected by lighttracer.js, which pins every rail to --rail-x */
@media (prefers-reduced-motion: no-preference) {
  .lt-spine { animation: lt-spine-breathe 4.8s ease-in-out infinite; }
  .lt-spine::after { animation: lt-spine-meteor 7s cubic-bezier(.45, 0, .7, 1) 1s infinite; }
}
@keyframes lt-spine-breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes lt-spine-meteor { 0% { transform: translateY(-160px); opacity: 0; } 4% { opacity: 1; } 70% { opacity: 1; } 80%, 100% { transform: translateY(var(--spine-run, 3000px)); opacity: 0; } }

/* 4. leftovers: the old diagonal .streak (about / blog / product on the live site) is retired */
.streak { display: none !important; }

/* 2. contact page */
.contact-head { padding: calc(var(--header-h) + var(--s7)) 0 var(--s5); }
.quick { margin-bottom: 0; }
@media (min-width: 640px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qcard { color: var(--text); font: inherit; cursor: pointer; min-height: 132px; align-content: start; transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out); }
@media (hover: hover) { .qcard:hover { background: var(--bg-3); } }
.qcard:focus-visible { outline: 2px solid var(--laser); outline-offset: 2px; }

/* live contact page: Elementor HTML widget .lt-support-tasks-v2 (light panel) + "dark contact" plugin form #dcf-anchor */
#main > .row > .prose:has(#dcf-anchor) { max-width: none; }
.lt-support-tasks-v2 { margin: 0 0 var(--s7) !important; padding: 0 !important; background: transparent !important; color: var(--text) !important; border-radius: 0 !important; }
.lt-support-tasks-v2 h2 { color: var(--text) !important; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: var(--fs-h2) !important; line-height: .98 !important; letter-spacing: -.03em; margin: 0 0 var(--s4) !important; }
.lt-support-tasks-v2 p { color: var(--muted) !important; font-size: 16px !important; max-width: 60ch; }
.lt-support-tasks-v2 ul { list-style: none !important; margin: var(--s5) 0 !important; padding: 0 !important; display: grid !important; gap: var(--s3) !important; }
@media (min-width: 640px) { .lt-support-tasks-v2 ul { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 1024px) { .lt-support-tasks-v2 ul { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.lt-support-tasks-v2 li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.lt-support-tasks-v2 li a { display: grid !important; gap: var(--s1); height: 100%; padding: var(--s5) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; background: var(--bg-2) !important; color: var(--text) !important; font-weight: 600; font-size: 17px; text-decoration: none !important; box-shadow: none !important; }
.lt-support-tasks-v2 li a::after { content: "Open →"; color: var(--laser); font-size: var(--fs-small); margin-top: var(--s2); }
.lt-support-tasks-v2 li a small { display: block; color: var(--muted) !important; font-weight: 400; font-size: var(--fs-small) !important; }
@media (hover: hover) { .lt-support-tasks-v2 li a:hover { border-color: var(--laser) !important; background: var(--bg-3) !important; } }
.dark-contact-wrapper { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s6); max-width: 760px; }
.dark-contact-wrapper::before { content: "Send a message"; display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); margin-bottom: var(--s5); }
#dcf-anchor { display: grid; gap: var(--s5); }
#dcf-anchor .dcf-row { display: grid; gap: var(--s5); }
@media (min-width: 768px) { #dcf-anchor .dcf-row { grid-template-columns: 1fr 1fr; } }
#dcf-anchor .dcf-col, #dcf-anchor .dcf-field { display: grid; gap: var(--s2); margin: 0; }
#dcf-anchor label { font-weight: 600; font-size: 15px; color: var(--text); }
#dcf-anchor label span { color: var(--laser); }

/* 3. one field + button style for every form on the site (contact plugin, WooCommerce login/register,
      cart, checkout, coupon, order tracking). Same as .input / .btn-primary in the prototype. */
#dcf-anchor input, #dcf-anchor textarea, #dcf-anchor select,
.lt-e-commerce input.input-text, .lt-e-commerce input[type="text"], .lt-e-commerce input[type="email"], .lt-e-commerce input[type="password"], .lt-e-commerce input[type="tel"], .lt-e-commerce input[type="number"], .lt-e-commerce select, .lt-e-commerce textarea {
  width: 100%; min-height: 52px; padding: var(--s3) var(--s4); border: 1px solid var(--line-2) !important; border-radius: var(--radius) !important; background: var(--bg-3) !important; color: var(--text) !important; font: inherit; font-size: 16px; box-shadow: none !important; }
#dcf-anchor textarea, .lt-e-commerce textarea { min-height: 140px; resize: vertical; }
#dcf-anchor input:focus, #dcf-anchor textarea:focus, .lt-e-commerce input:focus, .lt-e-commerce select:focus, .lt-e-commerce textarea:focus { border-color: var(--laser) !important; outline: none; box-shadow: 0 0 0 1px var(--laser) !important; }
#dcf-anchor button[type="submit"], .lt-e-commerce .button, .lt-e-commerce button[type="submit"], .lt-button, .wc-block-components-button {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--s6) !important; border: 1px solid var(--laser) !important; border-radius: var(--radius-pill) !important; background: var(--laser) !important; color: var(--laser-ink) !important; font: 600 16px/1 var(--font-ui) !important; text-decoration: none !important; cursor: pointer; justify-self: start; }
@media (hover: hover) { #dcf-anchor button[type="submit"]:hover, .lt-e-commerce .button:hover, .lt-button:hover { background: var(--laser-hi) !important; border-color: var(--laser-hi) !important; } }
.lt-e-commerce .form-row { display: grid; gap: var(--s2); margin: 0 0 var(--s4); }
.lt-e-commerce .form-row label { font-weight: 600; font-size: 15px; }
.lt-e-commerce .required { color: var(--laser); text-decoration: none; }
.lt-e-commerce input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--laser); }
.lt-e-commerce .woocommerce-form-login__rememberme, .lt-e-commerce .woocommerce-form__label-for-checkbox { display: inline-flex !important; align-items: center; gap: var(--s2); font-weight: 400 !important; }
/* My account: login + register become two dark panels */
.lt-e-commerce #customer_login { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .lt-e-commerce #customer_login { grid-template-columns: 1fr 1fr; } }
.lt-e-commerce #customer_login > div { float: none !important; width: auto !important; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s6); }
.lt-e-commerce #customer_login h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); margin: 0 0 var(--s5); }
/* Cart empty state: product in a panel, not a giant photo that runs into the spine */
.lt-empty-cart { display: grid; gap: var(--s4); justify-items: start; max-width: 560px; }
.lt-empty-cart img { width: min(320px, 70%) !important; height: auto; }
.lt-e-commerce .woocommerce-info, .lt-e-commerce .woocommerce-message, .lt-e-commerce .woocommerce-error { background: var(--bg-2) !important; border: 1px solid var(--line) !important; border-left: 3px solid var(--laser) !important; color: var(--text) !important; border-radius: var(--radius); padding: var(--s4) var(--s5) !important; }
.lt-e-commerce .woocommerce-error { border-left-color: var(--danger) !important; }
/* Elementor/plugin blocks inside .prose that bring their own light boxes */
.prose .elementor-widget-container > [style*="background"], .prose .has-background { background: var(--bg-2) !important; color: var(--text) !important; }

/* 4b. one green: plugin accents (WhatsApp/chat bubbles excepted) use the laser token */
.lt-e-commerce a:not(.button), .prose a { color: var(--laser); }

/* article / policy: the table of contents must not widen the page on phones */
.a-body { grid-template-columns: minmax(0, 1fr); }
.a-body > * { min-width: 0; }
@media (min-width: 1024px) { .a-body { grid-template-columns: 240px minmax(0, 1fr); } }
