/*
 * The Theme Kit in Neon's look. The kit (themes/_shared/assets/css/kit.css) draws every block the theme has no
 * template for, and every module section; this file sets its tokens, linked after kit.css, so the values here win.
 * Change the look here first: the tokens reach every block at once, a rule for one kit class reaches one part.
 *
 * Neon is a sign on a wall at night: headings are lit lettering (the text colour with a halo of the tube's colour),
 * icons are little tube drawings that glow, small labels are lit in a tube outline, the one lit button is a pill of the
 * accent with its halo, and a card switches on under the pointer (its edge lit in the accent). Figures and the steps'
 * numbers are lit in the two tubes of the palette by turns. The halos and the second tube come from theme.css
 * (--neon-glow, --neon-tube2, --neon-halo...); outside a page of the theme (a module's preview) they are simply absent.
 *
 * Rules for this file: it loads nothing, no picture, font or address of any kind (the kit inlines it into module
 * previews; kit_components.test.php fails for one, and also for these words written in a comment);
 * colours only through the palette tokens the kit already reads (--text-primary, --surface, --primary, ...) or
 * color-mix() of them; weights only through the layout's --neon-heading-weight and --neon-body-strong.
 *
 * --kit-radius and --kit-button-radius are repeated in this theme's line of the shared button table
 * (themes/_shared/assets/css/resilience.css, --chrome-radius and --chrome-button-radius) so the cookie notice and the
 * phone action bar match the theme's own cards and buttons: theme-chrome.test.mjs compares the two. Change both.
 */

.kit-root {
  --kit-radius: 1rem;
  --kit-radius-sm: 0.75rem;
  --kit-button-radius: 999px;
  --kit-input-radius: 0.75rem;
  --kit-media-radius: 1rem;
  --kit-heading-weight: var(--neon-heading-weight, 600);
  --kit-heading-tracking: 0.01em;
  --kit-button-weight: var(--neon-body-strong, 600);
  --kit-button-transform: none;
  --kit-eyebrow-tracking: 0.12em;
  --kit-focus: var(--accent-ink, #ff7ab5);
  --kit-star: var(--accent-ink, #ff7ab5);
  --kit-card-pad: clamp(1.25rem, 2.2vw, 1.75rem);
  --kit-gap-medium: clamp(1.25rem, 2vw, 1.75rem);
  --kit-gap-large: clamp(2rem, 4vw, 3rem);
  --kit-gutter: clamp(1rem, 4vw, 2rem);
  --kit-width-normal: 74rem;
  --kit-width-narrow: 46rem;
  --kit-pad-normal: clamp(3.75rem, 2.5rem + 4.5vw, 6.75rem);
  --kit-pad-compact: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  --kit-pad-spacious: clamp(4.75rem, 3rem + 6.5vw, 8.5rem);
  /* No drop shadows on a wall at night: a card that leads somewhere switches on, its edge lit in the accent. */
  --kit-shadow: none;
  --kit-shadow-hover: 0 0 0 1px var(--accent, #ff3d94), 0 0 0.4rem color-mix(in srgb, var(--accent, #ff3d94) 45%, transparent), 0 0 1.75rem color-mix(in srgb, var(--accent, #ff3d94) 22%, transparent);
}

/* Headings in the heading face, lit. Every face is brought to Comfortaa's width by --neon-scale (theme.css, "Faces").
   Sizes are set for ordinary words at 320 px; the shared script is only the net for a long word (THEME_DEVELOPMENT.md,
   rule 1). A line height under about 1.1 cuts marks in a box that clips. */
.kit-heading {
  font-family: var(--font-heading, sans-serif);
  line-height: 1.16;
  text-wrap: balance;
}

.kit-heading--1,
.kit-heading--2 {
  text-shadow: var(--neon-glow, none);
}

.kit-heading--1 {
  font-size: calc(clamp(2.1rem, 1.3rem + 3.2vw, 3.75rem) * var(--neon-scale, 1));
  line-height: 1.14;
}

.kit-heading--2 {
  font-size: calc(clamp(1.75rem, 1.25rem + 2vw, 2.85rem) * var(--neon-scale, 1));
}

.kit-heading--3 {
  font-size: calc(clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem) * var(--neon-scale, 1));
  line-height: 1.28;
}

.kit-text--lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

/* Buttons are tubes. The lit one is a pill of the accent with its halo (in a coloured band the kit turns the accent into
   the band's own text colour, so it stays readable there); the unlit one is the tube's outline and lights up under the
   pointer. */
.kit-button {
  border-width: 2px;
}

.kit-button--primary {
  border-color: var(--kit-accent);
  background: var(--kit-accent);
  color: var(--kit-on-accent);
  box-shadow: var(--neon-tube-glow, none);
}

.kit-button--primary:hover {
  border-color: var(--kit-accent);
  background: var(--kit-accent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--kit-on-accent) 45%, transparent), 0 0 0.4rem var(--neon-halo, transparent), 0 0 1.75rem var(--neon-halo, transparent);
}

/* Over a photograph and on a band of the primary glass the lit button stays the sign's own colour: the accent with its
   own words (a pair the colour contract keeps readable), not the band's text colour the kit would turn it into. */
:is(.kit-section--image, .kit-section--inverse, .kit-slide) .kit-button--primary,
:is(.kit-section--image, .kit-section--inverse, .kit-slide) .kit-button--primary:hover {
  border-color: var(--accent, #ff3d94);
  background: var(--accent, #ff3d94);
  color: var(--on-accent, #16000b);
}

:is(.kit-section--image, .kit-section--inverse, .kit-slide) .kit-button--secondary {
  border-color: var(--accent, #ff3d94);
}

.kit-button--secondary {
  border-color: var(--kit-accent);
  color: var(--kit-text);
  box-shadow: 0 0 0.6rem var(--neon-halo-soft, transparent), inset 0 0 0.6rem var(--neon-halo-soft, transparent);
}

.kit-button--secondary:hover {
  border-color: var(--kit-accent);
  background: transparent;
  color: var(--kit-text);
  box-shadow: var(--neon-tube-glow, none), inset 0 0 0.75rem var(--neon-halo-soft, transparent);
}

/* A small button (a row of review links, Next under a list of posts) is still 40 px tall: the kit's own 36 px is under
   what a thumb needs on a phone (verify-theme-stress.mjs, button-small). */
.kit-button--small {
  min-height: 2.5rem;
}

/* Small labels above headings: a little sign of their own, the words in the accent's readable shade inside a lit tube
   outline. Spaced, not in capitals (capitals make long Lithuanian words much wider). */
.kit-eyebrow {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0.3rem 0.85rem;
  border: 1.5px solid var(--kit-accent);
  border-radius: 999px;
  color: var(--kit-accent-text);
  font-size: 0.8125rem;
  font-weight: var(--neon-body-strong, 600);
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: none;
  box-shadow: 0 0 0.5rem var(--neon-halo-soft, transparent), inset 0 0 0.4rem var(--neon-halo-soft, transparent);
}

/* Icons are tube drawings, lit. */
.kit-icon.kit-tone--accent,
.kit-features .kit-icon {
  filter: drop-shadow(0 0 0.18rem var(--neon-halo, transparent));
}

.kit-root svg.lucide {
  stroke-width: 1.75;
}

/* Cards: panels on the wall with a hairline, no shadow; a card that leads somewhere switches on under the pointer. */
.kit-card__title {
  font-size: calc(clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem) * var(--neon-scale, 1));
  line-height: 1.28;
}

.kit-card--linked:hover .kit-card__link {
  color: var(--kit-text);
  text-shadow: var(--neon-glow, none);
}

.kit-card--linked:hover .kit-icon.kit-tone--accent {
  filter: drop-shadow(0 0 0.3rem var(--neon-halo, transparent)) drop-shadow(0 0 0.8rem var(--neon-halo, transparent));
}

/* Figures (stats_counter, a plan's price) in the heading face, lit, the first, third and fifth in the accent's tube and
   the others in the second tube. From 1200 px five statistics stand in a row of about 200 px each: "1500 m²" must stay on
   one line there, so the figures stop at about 44 px. */
.kit-stat__value {
  font-family: var(--font-heading, sans-serif);
  font-size: calc(clamp(2rem, 1.4rem + 1.6vw, 2.75rem) * var(--neon-scale, 1));
  line-height: 1.12;
  text-shadow: var(--neon-glow, none);
}

.kit-grid > :nth-child(even) .kit-stat__value {
  text-shadow: var(--neon-glow2, none);
}

.kit-stat__label {
  font-size: 0.9375rem;
}

/* The steps' numbers (process_steps without icons): a lit ring of tube with the number in it, in the two tubes by turns. */
.kit-steps .kit-card__eyebrow {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  min-height: 2.75rem;
  margin-bottom: 0.5rem;
  border: 2px solid var(--kit-accent);
  border-radius: 50%;
  color: var(--kit-text);
  font-family: var(--font-heading, sans-serif);
  font-size: 1.05rem;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: var(--neon-glow, none);
  box-shadow: var(--neon-tube-glow, none), inset 0 0 0.5rem var(--neon-halo-soft, transparent);
}

.kit-steps > :nth-child(even) .kit-card__eyebrow {
  border-color: var(--neon-tube2, var(--kit-accent));
  text-shadow: var(--neon-glow2, none);
  box-shadow: var(--neon-tube2-glow, none);
}

/* A quotation: a lit tube down its side, the words in the body face, upright. */
.kit-quote {
  border-inline-start-width: 2px;
  box-shadow: -0.5rem 0 0.9rem -0.55rem var(--neon-halo, transparent);
}

.kit-quote__text {
  font-family: var(--font-body, sans-serif);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-style: normal;
  line-height: 1.6;
}

.kit-quote__author {
  font-weight: var(--neon-body-strong, 600);
}

/* Questions: a row lights its tube when it opens. */
.kit-accordion__item[open] {
  border-bottom-color: var(--kit-accent);
  box-shadow: 0 1px 0 var(--kit-accent), 0 0.6rem 0.8rem -0.75rem var(--neon-halo, transparent);
}

.kit-accordion__item[open] .kit-accordion__title {
  text-shadow: var(--neon-glow, none);
}

/* Pictures in cards and beside words: rounded like the rest; one beside words wears a lit tube a little off its edge. */
.kit-split > .kit-picture {
  outline: 2px solid var(--neon-tube2, var(--kit-accent));
  outline-offset: 0.55rem;
  filter: drop-shadow(0 0 0.35rem var(--neon-halo2, transparent));
}

/* The recommended plan of a price table (the one card on the surface among outlined ones) is the lit one: its edge is a
   tube of the accent. */
.kit-grid:has(> .kit-card--outline) > .kit-card--surface {
  border-color: var(--kit-accent);
  box-shadow: 0 0 0 1px var(--kit-accent), var(--neon-tube-glow, none), inset 0 0 1.25rem var(--neon-halo-soft, transparent);
}

/* A carousel's progress is a tube filling up, its arrows small tube rings. */
.kit-carousel__progress-bar {
  background: var(--kit-accent);
  box-shadow: 0 0 0.4rem var(--neon-halo, transparent);
}

.kit-carousel__button:hover,
.kit-slideshow__button:hover {
  border-color: var(--kit-accent);
  box-shadow: var(--neon-tube-glow, none);
}

/* A plan's or a menu's price, lit in the accent's readable shade. */
.kit-price__amount {
  text-shadow: var(--neon-glow, none);
}

.kit-list--menu .kit-list-item__meta {
  color: var(--kit-accent-text);
  font-weight: var(--neon-body-strong, 600);
}

/* Fields: dark wells with a tube edge when they have the focus. */
.kit-input:focus,
.kit-select:focus,
.kit-textarea:focus {
  border-color: var(--kit-accent);
  box-shadow: 0 0 0 1px var(--kit-accent), 0 0 0.75rem var(--neon-halo-soft, transparent);
}

/* The audio player's play button is the lit one. */
.kit-audio__play {
  box-shadow: var(--neon-tube-glow, none);
}
