/* Oriibrands Neon — shared Gutenberg/front-end component rules.
 * All colours derive from the Design System. Native block inline styles win.
 */
:root {
  --neon-radius: 16px;
  --neon-ring: var(--primary);
  --neon-surface: var(--card);
  --neon-muted: var(--secondary);
  --neon-space: clamp(2rem, 5vw, 5rem);
}
.neon-component { min-width: 0; position: relative; }
:where(.neon-component) { border-color: var(--border); color: var(--foreground); }
:where(.neon-component) > :first-child { margin-block-start: 0; }
:where(.neon-component) > :last-child { margin-block-end: 0; }
:where(.neon-hero, .neon-section, .neon-cta) { padding: var(--neon-space); }
:where(.neon-hero, .neon-section, .neon-cta) > * + * { margin-block-start: 1.5rem; }
:where(.neon-size-compact) { --neon-space: clamp(1.25rem, 3vw, 2.5rem); }
:where(.neon-size-large) { --neon-space: clamp(3rem, 7vw, 7rem); }
:where(.neon-tone-muted) { background: var(--secondary); }
:where(.neon-tone-glow, .is-style-neon-glow) {
  background: radial-gradient(ellipse at 8% 10%, rgba(var(--primary-rgb), .14), transparent 55%), radial-gradient(ellipse at 95% 95%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%), var(--background);
}
:where(.neon-hero) { min-height: 560px; display: flex; flex-direction: column; justify-content: center; border-block-end: 1px solid var(--border); }
:where(.neon-hero) > :where(h1, h2) { max-width: 16ch; font-size: clamp(2.5rem, 5.5vw, 5rem); line-height: 1.05; letter-spacing: -.045em; }
:where(.neon-hero) > p { max-width: 58ch; }
:where(.neon-hero) .wp-block-buttons { margin-block-start: 2rem; }
:where(.neon-elementor-buttons) { margin-block-start: 2rem; }
:where(.neon-grid, .neon-steps, .neon-logos) { display: grid; grid-template-columns: repeat(var(--neon-columns, 3), minmax(0, 1fr)); gap: 1.5rem; }
:where(.neon-grid, .neon-steps, .neon-logos) { padding-block: var(--neon-space); }
:where(.neon-card, .is-style-neon-card) { border: 1px solid var(--border); border-radius: var(--neon-radius); background: var(--card); padding: 1.75rem; transition: border-color .2s ease, background-color .2s ease; }
:where(.neon-card.neon-size-compact) { padding: 1.25rem; }
:where(.neon-card.neon-size-large) { padding: 2.5rem; }
:where(.neon-card:hover, .is-style-neon-card:hover) { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
:where(.neon-card) { display: flex; flex-direction: column; gap: 1rem; }
:where(.neon-card) > * { margin: 0; }
:where(.neon-card) > .wp-block-buttons { margin-block-start: auto; padding-block-start: 1rem; }
:where(.neon-card) h3 { font-size: 1.25rem; line-height: 1.35; letter-spacing: -.02em; }
:where(.neon-card) p { font-size: .9375rem; }
:where(.neon-steps) { counter-reset: neon-step; }
:where(.neon-step) { counter-increment: neon-step; border-block-start: 1px solid var(--border-strong); padding-block-start: 1.5rem; }
:where(.neon-step.neon-size-compact) { padding-block-start: 1rem; }
:where(.neon-step.neon-size-large) { padding-block-start: 2.25rem; }
:where(.neon-step)::before { content: counter(neon-step, decimal-leading-zero); display: block; color: var(--primary-text); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; margin-block-end: 1.75rem; }
:where(.neon-cta) { text-align: center; border: 1px solid var(--border); border-radius: var(--neon-radius); }
:where(.neon-cta) > :where(h2, p) { max-width: 46ch; margin-inline: auto; }
:where(.neon-cta) .wp-block-buttons { justify-content: center; }
:where(.neon-logos) { align-items: center; padding: 2rem; border-block: 1px solid var(--border); }
:where(.neon-logos.neon-size-compact) { padding: 1rem; }
:where(.neon-logos.neon-size-large) { padding: 3.5rem; }
:where(.neon-logos) .wp-block-image { margin: 0; }
:where(.neon-logos) img { max-height: 64px; width: auto; margin: auto; object-fit: contain; }
:where(.is-style-neon-eyebrow) { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--primary-text); }
:where(.is-style-neon-badge) { display: inline-block; width: fit-content; border: 1px solid var(--border-strong); border-radius: 999px; padding: .35rem .8rem; font-size: .75rem; color: var(--foreground); }
.is-style-neon-gradient { background: var(--gradient-brand); background-clip: text; -webkit-background-clip: text; color: transparent; }
:where(.is-style-neon-primary, .is-style-neon-outline) .wp-block-button__link { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.6rem; border-radius: var(--button-radius, 999px); font-weight: 600; font-size: .875rem; line-height: 1.4; border: 1px solid var(--border-strong); transition: background-color .2s, color .2s; }
:where(.is-style-neon-primary) .wp-block-button__link { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
:where(.is-style-neon-outline) .wp-block-button__link { background: transparent; color: var(--foreground); }
:where(.is-style-neon-primary, .is-style-neon-outline) .wp-block-button__link:is(:hover, :focus-visible) { background: var(--gradient-brand); color: #06181d; border-color: transparent; }
:where(.is-style-neon-accordion) { border-block-end: 1px solid var(--border); padding: 1.3rem 0; }
:where(.is-style-neon-accordion) summary { cursor: pointer; font-weight: 600; min-height: 44px; padding: .5rem 2rem .5rem 0; }
:where(.is-style-neon-accordion) summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
:where(.is-style-neon-accordion) > :not(summary) { margin-block-start: 1rem; }
.wp-block-gallery.is-style-neon-carousel { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.5rem; padding-block-end: 1rem; }
.wp-block-gallery.is-style-neon-carousel > figure.wp-block-image { flex: 0 0 min(75vw, 480px); width: min(75vw, 480px); scroll-snap-align: start; }
.wp-block-gallery.is-style-neon-carousel > figure.wp-block-image img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--neon-radius); }
/* Low specificity: Gutenberg's font/colour/spacing controls keep precedence. */
body.ui-system-energy :where(.neon-hero) > :where(h1,h2) { font-size: clamp(2.5rem, 5.5vw, 5rem); }
body.ui-system-energy :where(.neon-card) h3 { font-size: 1.25rem; }
body.ui-system-energy .is-style-neon-gradient { color: transparent; }
@media (max-width: 900px) {
  :where(.neon-grid, .neon-steps, .neon-logos) { grid-template-columns: repeat(min(2, var(--neon-columns, 3)), minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :where(.neon-grid, .neon-steps) { grid-template-columns: minmax(0,1fr); }
  :where(.neon-hero) { min-height: 480px; }
  :where(.neon-component) .wp-block-buttons { gap: .75rem; }
  :where(.neon-logos) { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .neon-component, .neon-component *, .is-style-neon-carousel { animation: none; transition: none; scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .is-style-neon-gradient { background: none; color: CanvasText !important; }
}
