/* PRO 1 STAGE - stage.lv theme v0.2: one-page, light + dark (system default, user override), mobile-first, fluid to 4K.
   Brand: blue #38b7ea / #0066ff, yellow #e9c81d (from the Subrion template). */

/* ---------- tokens ---------- */
:root {
  --brand: #38b7ea; --brand-deep: #0066ff; --accent: #e9c81d; --accent-ink: #14110a;
  --bg: #f6f8fa; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #eef2f5;
  --text: #16202a; --muted: #5b6875; --line: rgba(16, 32, 48, .12);
  --link: #0a6fd6; --header-bg: rgba(255, 255, 255, .82); --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(16,32,48,.07);
  --radius: .9rem; --gutter: clamp(1rem, 4vw, 3rem); --wrap: 92rem; --header-h: 4.25rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e12; --bg-2: #10151b; --surface: #141a21; --surface-2: #1b232c;
    --text: #e8edf2; --muted: #9aa7b3; --line: rgba(255, 255, 255, .09);
    --link: #5cc6f2; --header-bg: rgba(11, 14, 18, .78); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0e12; --bg-2: #10151b; --surface: #141a21; --surface-2: #1b232c;
  --text: #e8edf2; --muted: #9aa7b3; --line: rgba(255, 255, 255, .09);
  --link: #5cc6f2; --header-bg: rgba(11, 14, 18, .78); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}
/* logo per theme */
.logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-on-dark { display: block; } :root:not([data-theme="light"]) .logo-on-light { display: none; } }
:root[data-theme="dark"] .logo-on-dark { display: block; }
:root[data-theme="dark"] .logo-on-light { display: none; }

/* ---------- base: fluid type, 16px phone -> ~24px on 4K ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(16px, .3vw + 12.5px, 24px); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; overflow-x: hidden; text-rendering: optimizeLegibility; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 3.2vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; border-radius: .5rem; }
.skip:focus { left: .5rem; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: .3rem; }

/* ---------- header (sticky) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s; }
.is-home .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home .site-header:not(.is-scrolled) .mainnav a, .is-home .site-header:not(.is-scrolled) .theme-toggle { color: #fff; }
.is-home .site-header:not(.is-scrolled) .logo-on-light { display: none; }
.is-home .site-header:not(.is-scrolled) .logo-on-dark { display: block; }
.is-home .site-header { margin-bottom: calc(-1 * var(--header-h) - 1px); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand img { display: block; height: calc(var(--header-h) - 1.4rem); width: auto; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.mainnav a { display: block; padding: .5rem .75rem; border-radius: .5rem; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: .01em; }
.mainnav a:hover { background: var(--surface-2); }
.mainnav a.is-active { color: var(--brand); }
.is-home .site-header:not(.is-scrolled) .mainnav a:hover { background: rgba(255,255,255,.12); }
.mainnav .lang a { font-weight: 700; color: var(--muted); }
.theme-toggle { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 2rem; padding: .35rem .7rem; font: inherit; font-size: .8rem; cursor: pointer; }
.theme-toggle:hover { border-color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 1.4rem; height: 2px; margin: .3rem 0; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle { color: var(--text); }
.is-home .site-header:not(.is-scrolled) .nav-toggle { color: #fff; }

/* ---------- hero (always dark, photo) ---------- */
.hero { position: relative; min-height: clamp(30rem, 86svh, 52rem); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; background: #07090c; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 30% center; }
@media (max-width: 48rem) { .hero__bg { background-image: var(--hero-m) !important; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,8,12,.55) 0%, rgba(5,8,12,.15) 35%, rgba(5,8,12,.85) 100%), linear-gradient(90deg, rgba(5,8,12,.6), transparent 60%); }
.hero__inner { padding: calc(var(--header-h) + 3rem) 0 4.5rem; }
.hero__title h1, .hero__title strong { font-size: clamp(2.4rem, 7vw, 6.5rem); line-height: .95; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 2rem; max-width: 14ch; display: block; color: #fff; }
.hero__title h1::before { content: ""; display: block; width: 3.2rem; height: .35rem; background: var(--accent); border-radius: 1rem; margin-bottom: 1.4rem; }
.hero .teaser-wrp, .hero .teaser, .hero .container { padding: 0; margin: 0; max-width: none; }
/* old landing1 cards -> glass quick-links */
.hero__cards .container { display: contents; }
.hero__cards .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 0; }
.hero__cards .row > [class*="col-"] { width: auto; padding: 0; }
.hero__cards .b-entity { height: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius); padding: 1.2rem 1.3rem; text-align: left; transition: background .2s, transform .2s; color: #fff; }
.hero__cards [onclick] { cursor: pointer; }
.hero__cards [onclick]:hover .b-entity { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.hero__cards .fa { color: var(--accent); font-size: 1.6rem !important; margin-bottom: .5rem; }
.hero__cards .b-entity__title { font-size: 1.25rem; margin: 0 0 .3rem; color: #fff; }
.hero__cards p { font-size: .9rem; color: rgba(255,255,255,.78); margin: 0; }
.hero__cards .b-entity__icon, .hero__cards p:empty { display: none; }
.hero__down { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 2rem; text-decoration: none; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, .4rem); } }

/* ---------- sections ---------- */
.sec { padding: clamp(3.5rem, 8vw, 8rem) 0; background: var(--bg); }
.sec--alt { background: var(--bg-2); }
.sec__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.sec__kicker { margin: 0; color: var(--brand); font-weight: 700; font-size: .9rem; letter-spacing: .1em; }
.sec__head h2 { margin: 0; }
.sec__lead { max-width: 70ch; color: var(--muted); font-size: 1.08rem; }
.sec__lead p:last-child { margin-bottom: 0; }
.sec--par-mums .sec__lead { max-width: 80ch; color: var(--text); }
.sec__grid { margin-top: 2rem; }
/* Subrion HTML nests every card in a new unclosed .container > .row: flatten them, grid lives on the block */
.sec__grid .blk { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.sec__grid .container, .sec__grid .row { display: contents; }
.sec__grid .row > [class*="col-"] { width: auto; padding: 0; }
.sec__grid .b-entity { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.sec__grid [onclick] { cursor: pointer; }
.sec__grid [onclick]:hover .b-entity { transform: translateY(-3px); border-color: var(--brand); }
.sec__grid .fa { color: var(--brand); font-size: 1.8rem !important; margin-bottom: .6rem; }
.sec__grid .b-entity__title, .sec__grid .b-entity__title * { font-size: 1.15rem !important; font-weight: 600; margin: 0 0 .3rem; color: var(--text) !important; }
.sec__grid p { margin: 0; color: var(--muted); font-size: .92rem; }

/* cards */
.cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); color: var(--text); }
.card--link, .card--brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-decoration: none; transition: transform .2s, border-color .2s; }
.card--link:hover, .card--brand:hover { transform: translateY(-3px); border-color: var(--brand); }
.card--brand { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.card__img { display: block; aspect-ratio: 16 / 9; background: #fff; }
.card__img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: .8rem; }
.card--brand .card__title { padding: 1rem 1.3rem 0; font-size: 1.2rem; font-weight: 600; }
.card--brand .fa { padding: 0 1.3rem 1.1rem; color: var(--brand); }
.card .fa-arrow-right { color: var(--brand); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: .7rem 1.2rem; border-radius: 2rem; border: 2px solid var(--accent); }
.btn:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

/* contacts */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin-top: 2rem; }
.contact-grid .blk__title { margin-top: 0; }
.contact-grid p { margin: 0 0 .35rem; }
.card--note { border-style: dashed; }

/* partners */
.sec--partners { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.partners p { display: flex; justify-content: center; align-items: center; gap: 2rem; margin: 0; }
.partners img { width: auto !important; max-height: 2.6rem; background: #fff; border-radius: .4rem; padding: .3rem .6rem; }

/* ---------- inner pages ---------- */
.page-head { padding: 2.2rem 0 1rem; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.article { padding: 2rem 0 4rem; }
.content__body { max-width: 78rem; }
.band { padding: 1.5rem 0 0; }
.content__body img { border-radius: .5rem; }
img.img-missing, img[data-missing-src] { opacity: .55; }

/* ---------- legacy HTML from Subrion: neutralise inline colours/fonts, Bootstrap-3 grid compat ---------- */
.legacy *:not(.fa) { font-family: inherit !important; }
.legacy *:not(a):not(.btn):not(.fa) { color: inherit !important; background-color: transparent !important; }
.legacy a:not(.btn):not(.card) { color: var(--link) !important; }
.hero .legacy a:not(.btn) { color: #fff !important; }
.legacy table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; margin: 1rem 0; }
.legacy td, .legacy th { border: 1px solid var(--line); padding: .45rem .7rem; vertical-align: top; }
.legacy .row { display: flex; flex-wrap: wrap; margin: 0 -.75rem; }
.legacy .row > [class*="col-"] { padding: 0 .75rem; width: 100%; }
@media (min-width: 48rem) { .legacy .row > .col-sm-3 { width: 25%; } .legacy .row > .col-sm-4 { width: 33.333%; } .legacy .row > .col-sm-6 { width: 50%; } }
@media (min-width: 62rem) { .legacy .row > .col-md-2 { width: 16.666%; } .legacy .row > .col-md-3 { width: 25%; } .legacy .row > .col-md-4 { width: 33.333%; } .legacy .row > .col-md-6 { width: 50%; } .legacy .row > .col-md-8 { width: 66.666%; } }
.legacy .img-responsive { display: block; max-width: 100%; height: auto; }
.legacy .container { width: auto; max-width: none; padding: 0; }
.legacy .b-call__action a { font-size: 1.1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 2rem; padding: 3rem 0 2rem; }
.site-footer .blk__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text) !important; margin-bottom: .9rem; }
.site-footer p { margin: 0 0 .35rem; }
.site-footer p:empty, .site-footer p:has(> br:only-child) { display: none; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.footer-bottom .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-bottom .social { margin-left: auto; }
.footer-bottom .social a { color: var(--muted); font-size: 1.1rem; }
.footer-logo { height: 1.8rem; width: auto; }
.to-top { position: fixed; right: 1rem; bottom: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- mobile ---------- */
@media (max-width: 56rem) {
  .nav-toggle { display: block; }
  .mainnav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100svh - var(--header-h)); overflow: auto; transform: translateY(-120%); transition: transform .25s; }
  .mainnav.open { transform: none; }
  .mainnav ul { flex-direction: column; align-items: stretch; padding: .75rem var(--gutter) 1.25rem; gap: 0; }
  .mainnav a { padding: .85rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text) !important; }
  .mainnav .theme-li { padding-top: .8rem; }
  .theme-toggle { color: var(--text) !important; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(.45rem) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.45rem) rotate(-45deg); }
  .hero__inner { padding-bottom: 3.5rem; }
  .sec__head { flex-direction: column; gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Grids built from legacy blocks: must win over the Bootstrap-3 compat rules above */
.sec__grid.legacy .container, .sec__grid.legacy .row, .hero__cards.legacy .container { display: contents; }
.hero__cards.legacy .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 0; }
.sec__grid.legacy [class*="col-"], .hero__cards.legacy [class*="col-"] { width: auto !important; padding: 0 !important; }

/* ---------- Kontakti v0.3: buttons, form, map ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
@media (min-width: 62rem) { .contact-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.contact-info { display: grid; gap: 1rem; align-content: start; }
.contact-card p { margin: 0; color: var(--muted) !important; font-size: .85rem; letter-spacing: .02em; }
.contact-card p:has(a) { margin: .3rem 0 .9rem; }
.contact-card a[href^="tel:"], .contact-card a[href^="mailto:"] {
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.1rem; border-radius: 2rem;
  border: 2px solid var(--line); color: var(--text) !important; text-decoration: none !important; font-weight: 600; font-size: 1rem; }
.contact-card a[href^="tel:"]::before { content: "\f095"; font-family: FontAwesome; color: var(--brand); }
.contact-card a[href^="mailto:"]::before { content: "\f0e0"; font-family: FontAwesome; color: var(--brand); }
.contact-card a[href^="tel:"]:hover, .contact-card a[href^="mailto:"]:hover { border-color: var(--brand); }
.contact-card p:first-of-type:not(:has(a)) { margin-top: 0; }
.contact-form h3 { margin-top: 0; }
.contact-form .muted { color: var(--muted); }
.map { padding: 0; overflow: hidden; margin-top: 1rem; }
.map iframe { display: block; width: 100%; height: clamp(16rem, 32vw, 30rem); border: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); } }
:root[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }
.map__bar { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding: .9rem 1.2rem; font-size: .9rem; }
.map__bar .fa { color: var(--brand); }
.navlinks { display: inline-flex; flex-wrap: wrap; gap: .4rem .9rem; }
.navlinks a { color: var(--link); text-decoration: none; font-weight: 500; }
.navlinks a:hover { text-decoration: underline; }
.site-footer .navlinks { display: flex; flex-direction: column; gap: .35rem; }
.social-links { display: flex; gap: .6rem; }
.social-links a { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--text); font-size: 1.1rem; text-decoration: none; }
.social-links a:hover { border-color: var(--brand); color: var(--brand); }
/* Grav form plugin markup */
.contact-form form { display: grid; gap: .9rem; }
.contact-form .form-field { display: grid; gap: .35rem; }
.contact-form label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.contact-form input:not([type=checkbox]):not([type=hidden]), .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: .6rem; padding: .7rem .85rem; }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.contact-form .buttons button, .contact-form button[type=submit] { justify-self: start; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 2rem; padding: .75rem 1.5rem; font: inherit; font-weight: 700; cursor: pointer; }
.contact-form .form-errors, .contact-form .notices.error { color: #e5484d; }
.contact-form .notices.green, .contact-form .notices.success { color: #2fb36b; }
.contact-form .form-required { color: var(--accent); }

/* ---------- v0.3 fixes ---------- */
/* logo per theme - must beat `.brand img { display:block }` */
img.logo-on-dark { display: none !important; }
img.logo-on-light { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.logo-on-dark { display: block !important; }
  :root:not([data-theme="light"]) img.logo-on-light { display: none !important; }
}
:root[data-theme="dark"] img.logo-on-dark { display: block !important; }
:root[data-theme="dark"] img.logo-on-light { display: none !important; }
.is-home .site-header:not(.is-scrolled) img.logo-on-dark { display: block !important; }
.is-home .site-header:not(.is-scrolled) img.logo-on-light { display: none !important; }
/* contact buttons: same look as the buttons in the form card (beats legacy link colour) */
.contact-card.legacy a[href^="tel:"], .contact-card.legacy a[href^="mailto:"] { color: var(--text) !important; }
.contact-card.legacy a[href^="tel:"]:hover, .contact-card.legacy a[href^="mailto:"]:hover { color: var(--brand) !important; }
.contact-info .legacy p { margin: 0 0 .3rem; line-height: 1.5; }
.contact-info .legacy em { color: var(--muted) !important; font-style: normal; }
/* e-mail buttons = primary (yellow, filled) like the form card; phones stay outlined */
.contact-card.legacy a[href^="mailto:"] { background: var(--accent) !important; border-color: var(--accent); color: var(--accent-ink) !important; }
.contact-card.legacy a[href^="mailto:"]::before { color: var(--accent-ink); }
.contact-card.legacy a[href^="mailto:"]:hover { filter: brightness(1.06); color: var(--accent-ink) !important; }
/* Rekvizīti: copy buttons */
.rekviziti .copy-line { display: block; }
.rekviziti .copy-btn { display: inline-grid; vertical-align: middle; margin-left: .45rem; }
.copy-btn { flex: none; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .45rem; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: .85rem; opacity: .55; transition: opacity .15s, color .15s, border-color .15s; }
.copy-line:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
@media (hover: none) { .copy-btn { opacity: 1; } }
.copy-btn:hover { color: var(--brand); border-color: var(--brand); }
.copy-btn.is-copied { color: #2fb36b; border-color: #2fb36b; opacity: 1; }
.copy-btn.is-copied .fa::before { content: "\f00c"; }
.copy-all { margin-top: .9rem; font-size: .9rem; padding: .5rem 1rem; cursor: pointer; font-family: inherit; }
.copy-all.is-copied { border-color: #2fb36b; color: #2fb36b; }
/* partners strip before the footer */
.partners-strip { border-top: 1px solid var(--line); background: var(--bg); padding: 2rem 0; }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem; }
.partners-row a { display: block; opacity: .85; transition: opacity .2s; }
.partners-row a:hover { opacity: 1; }
.partners-row img { height: clamp(2.2rem, 3vw, 3.2rem); width: auto; }
.is-home .site-header:not(.is-scrolled) img.logo-on-dark, .footer-logo { height: auto; }
.brand img { height: calc(var(--header-h) - 1.3rem) !important; width: auto !important; }
.footer-logo { height: 1.8rem !important; width: auto !important; }
.site-footer .legacy a { text-decoration: none !important; }
.site-footer .legacy a:hover { text-decoration: underline !important; }

/* ---------- v0.4.2 ---------- */
/* form: fields full width; Turnstile left + Send right on one row */
.contact-form form { grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; }
.contact-form form > * { grid-column: 1 / -1; }
.contact-form form > .form-field:has([data-grav-field="turnstile"]) { grid-column: 1; }
.contact-form form > .buttons { grid-column: 2; justify-self: end; align-self: center; margin: 0; }
.contact-form form > .buttons button { padding: .85rem 2rem; font-size: 1.05rem; }
@media (max-width: 30rem) { .contact-form form > .form-field:has([data-grav-field="turnstile"]), .contact-form form > .buttons { grid-column: 1 / -1; justify-self: start; } }

/* category pages (legacy product tiles .b-entity): flatten the nested Subrion containers into one card grid */
.content__body.legacy:has(.b-entity) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; align-items: stretch; }
.content__body.legacy:has(.b-entity) :is(.container, .row) { display: contents; }
.content__body.legacy:has(.b-entity) :is(.container, .row) > :not([class*="col-"]):not(.container):not(.row),
.content__body.legacy:has(.b-entity) > :not(.container):not(.row):not([class*="col-"]) { grid-column: 1 / -1; }
.content__body.legacy:has(.b-entity) [class*="col-"] { width: auto !important; padding: 0 !important; display: flex; }
.content__body .b-entity { flex: 1; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.content__body [onclick]:hover .b-entity { transform: translateY(-3px); border-color: var(--brand); }
.content__body .b-entity > .fa:empty, .content__body .b-entity > .fa:not([class*="fa-"]) { display: none; }
.content__body .b-entity img { display: block; width: 100% !important; height: 12rem !important; object-fit: contain; background: #fff; border-radius: .6rem; padding: .8rem; margin: 0 0 .8rem; }
.content__body .b-entity .b-entity__title { font-size: 1.1rem; font-weight: 600; margin: auto 0 .2rem; }
.content__body .b-entity p { margin: 0; color: var(--muted); font-size: .9rem; }
/* product tile: one white plate per card (beats the legacy background reset) */
.content__body.legacy .b-entity img { background-color: #fff !important; }
.contact-form button.is-busy { opacity: .6; cursor: progress; }

/* ---------- brand pages: product cards linking to SoundStore.lv ---------- */
.content__body .lead { font-size: 1.12rem; color: var(--muted) !important; max-width: 70ch; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.legacy a.product-card { display: flex; flex-direction: column; text-decoration: none !important; color: var(--text) !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.legacy a.product-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.legacy .product-card__img { display: block; background-color: #fff !important; aspect-ratio: 4 / 3; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; display: block; }
.product-card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.product-card__title { font-size: 1.05rem; font-weight: 600; }
.legacy .product-card__desc { color: var(--muted) !important; font-size: .9rem; line-height: 1.5; }
.legacy .product-card__cta { margin-top: auto; padding-top: .4rem; color: var(--brand) !important; font-weight: 600; font-size: .9rem; }
/* product cards: beat the legacy link colour (title = text, desc = muted, CTA = brand) */
.content__body.legacy a.product-card, .content__body.legacy a.product-card .product-card__title { color: var(--text) !important; }
.content__body.legacy a.product-card .product-card__desc { color: var(--muted) !important; }
.content__body.legacy a.product-card .product-card__cta { color: var(--brand) !important; }
.content__body.legacy a.product-card:hover .product-card__title { color: var(--brand) !important; }
/* home brand cards: fixed 16:9 plate, image cannot stretch it */
.card__img { position: relative; overflow: hidden; min-height: 0; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .8rem; }

/* category tiles: icon cards share the brand look, titles always left-aligned (legacy inline centring ignored) */
.content__body .b-entity > .fa[class*="fa-"] { color: var(--brand); font-size: 1.8rem !important; margin-bottom: .6rem; }
.content__body .b-entity .b-entity__title, .content__body .b-entity .b-entity__title * { text-align: left !important; }
