/* Tēmas un vietnes krāsas pārslēdz uz jauno shēmu. */
body.pj-site {
  --wp--preset--color--accent: var(--pj-accent);
  --wp--preset--color--secaccent: var(--pj-night);
  --wp--preset--color--primary: var(--pj-night);
  --wp--preset--color--tertiary: var(--pj-muted);
  --wp--preset--color--fourground: var(--pj-soft);
  --wp--preset--color--secbackground: var(--pj-soft);
  --pm-navy: var(--pj-night);
  --pm-navy-soft: var(--pj-panel);
  --pm-orange: var(--pj-accent);
  --pm-orange-dark: var(--pj-accent-hover);
  --pm-link: var(--pj-link);
  --pm-border: var(--pj-line);
  --pm-muted: var(--pj-muted);
  margin: 0;
  background: #FFFFFF;
  color: var(--pj-ink);
  font-family: var(--pj-font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

body.pj-site .wp-site-blocks {
  padding: 0;
}

body.pj-site .wp-site-blocks > * {
  margin-block: 0;
}

body.pj-site :is(h1, h2, h3, h4, h5, h6, p, li, a, button, input, select, textarea, label, summary, td, th),
body.pj-site [class*="-font-family"] {
  font-family: var(--pj-font) !important;
}

body.pj-site .pj-nav {
  margin: 0;
}

/* Lapas virsraksts */
body.pj-site .wp-block-cover.alignfull.pj-page-title-cover {
  min-height: 0 !important;
  margin: 0;
  padding: clamp(56px, 8vw, 104px) 16px clamp(48px, 7vw, 88px) !important;
  background: radial-gradient(60% 120% at 50% 110%, rgba(47, 91, 234, .32), transparent 70%), var(--pj-night);
}

body.pj-site .wp-block-cover.alignfull.pj-page-title-cover .wp-block-cover__background {
  display: none;
}

body.pj-site .wp-block-cover.alignfull.pj-page-title-cover .wp-block-cover__inner-container {
  max-width: 980px;
  margin: 0 auto;
}

body.pj-site .wp-block-cover.alignfull.pj-page-title-cover h1 {
  margin: 0;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 64px) !important;
  line-height: 1.07;
  letter-spacing: -0.032em;
  text-align: center;
  text-wrap: balance;
}

/* Saturs */
body.pj-site main:not(main main) {
  margin-top: 0 !important;
  padding: clamp(32px, 5vw, 64px) 16px clamp(48px, 7vw, 88px) !important;
}

/* Satura rindkopas un saraksti vienmēr abpusēji, neatkarīgi no redaktora noklusējuma.
   Komponentēm, formām un apzināti centrētam/labās malas tekstam saglabā to izkārtojumu. */
body.pj-site :is(.entry-content, .wp-block-post-content) :is(p, li):not(.has-text-align-center, .has-text-align-right):not(:where(form, .cta-section, .cta-form-card, .parmaju-card, .wp-block-post-template, .pm, .pm-cta-strip, .pm-sticky-cta, .has-text-align-center, .has-text-align-right) *) {
  text-align: justify !important;
  text-justify: inter-word;
}

body.pj-site :is(.entry-content, .wp-block-post-content) {
  max-width: 1120px;
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.6;
}

/* Viena satura mala tekstam un ievada attēlam; rakstos saglabā šaurāko tēmas ietvaru. */
body.pj-site :is(.entry-content, .wp-block-post-content) > :is(p, ul, ol, h2, h3, h4, h5, h6, details, .wp-block-details, .wp-block-columns:not(.parmaju-card-grid)) {
  max-width: 100%;
  margin-inline: auto;
}

body.pj-site .entry-content p,
body.pj-site .entry-content li {
  font-size: 17px !important;
  line-height: 1.6;
}

body.pj-site .entry-content :is(h2, h3, h4) {
  color: var(--pj-ink);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.18;
}

body.pj-site .entry-content h2 {
  margin-top: 1.8em;
  font-size: clamp(26px, 3vw, 34px) !important;
}

body.pj-site .entry-content h3 {
  margin-top: 1.5em;
  font-size: clamp(20px, 2.2vw, 24px) !important;
}

body.pj-site .entry-content a:where(:not(.pm-btn, .pm-button, .wp-block-button__link, .wp-element-button, .button, .pj-pill, .parmaju-card, .wp-block-social-link-anchor)) {
  color: var(--pj-link);
  text-decoration-color: rgba(36, 80, 212, .35);
  text-underline-offset: 2px;
}

body.pj-site .entry-content ul li::marker {
  color: var(--pj-accent);
}

body.pj-site .entry-content :is(.wp-block-image, .parmaju-intro-image-wrap) img {
  border-radius: 20px;
  height: auto;
}

/* Pakalpojumu kartītes */
body.pj-site .parmaju-card-grid {
  gap: 20px;
}

body.pj-site .parmaju-card {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--pj-soft);
  box-shadow: none;
}

body.pj-site .parmaju-card :is(h2, h3, h4) {
  margin-top: 0;
}

body.pj-site .entry-content .parmaju-card .wp-block-image img {
  border-radius: 0;
}

/* Pogas */
body.pj-site :is(.pm-btn, .pm-button, .wp-block-button__link, .wp-element-button, .button, input[type="submit"]) {
  border-radius: 14px !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

body.pj-site .pm-btn--primary,
body.pj-site .pm-button.pm-primary,
body.pj-site .wp-block-button__link:where(:not(.is-style-link *, .is-style-outline *, .parmaju-card-grid .parmaju-card *)),
body.pj-site .wp-element-button:where(:not(.is-style-link *, .is-style-outline *, .parmaju-card-grid .parmaju-card *)),
body.pj-site .woocommerce .button,
body.pj-site input[type="submit"] {
  background: var(--pj-accent) !important;
  border-color: var(--pj-accent) !important;
  box-shadow: 0 8px 20px rgba(47, 91, 234, .28);
  color: #FFFFFF !important;
}


body.pj-site .is-style-link .wp-block-button__link {
  padding: 0;
  background: none !important;
  border: 0;
  box-shadow: none;
  color: var(--pj-link) !important;
  font-weight: 600;
}

/* Kontūru un teksta varianti saglabā caurspīdīgu fonu un redzamu tekstu. */
html body.pj-site :is(
  .is-style-outline .wp-block-button__link,
  .is-style-link .wp-block-button__link,
  .parmaju-card-grid .parmaju-card .wp-block-button .wp-block-button__link
) {
  background: transparent !important;
  color: var(--pj-link) !important;
  -webkit-text-fill-color: currentColor !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
html body.pj-site .is-style-outline .wp-block-button__link {
  border: 1px solid currentColor !important;
}
html body.pj-site :is(.cta-section, .pm-cta-strip--navy) .is-style-outline .wp-block-button__link {
  color: #FFFFFF !important;
}
html body.pj-site :is(.is-style-outline, .is-style-link, .parmaju-card-grid) .wp-block-button__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Aicinājumu joslas un kontaktu sadaļa */
body.pj-site .pm-cta-strip {
  max-width: 1120px;
  margin-inline: auto;
  border: 0;
  border-radius: 24px;
}

body.pj-site .pm-cta-strip--navy,
body.pj-site .cta-section {
  background: radial-gradient(70% 140% at 85% 120%, rgba(47, 91, 234, .34), transparent 70%), var(--pj-night) !important;
  border: 0;
  border-radius: 24px;
}

body.pj-site .pm-cta-strip--navy .pm-cta-strip__text,
body.pj-site .pm-cta-strip--navy .pm-cta-strip__text span,
body.pj-site .cta-section .cta-text,
body.pj-site .cta-section .cta-text :is(p, li, div, div strong) {
  color: #C8D0DC !important;
}

body.pj-site .cta-section .cta-text :is(h1, h2, h3) {
  color: #FFFFFF !important;
}

/* Pārspēj vēlāk ielādēto vecās oranžās paletes MU kontrasta noteikumu. */
html body.pj-site .cta-section .cta-text .cta-badge,
html body.pj-site .cta-section .cta-text .cta-steps--num li::before {
  color: var(--pj-glow) !important;
}

html body.pj-site .cta-section .cta-text a:is(:hover, :focus),
html body.pj-site .pm-cta-strip--navy .pm-cta-strip__text a:is(:hover, :focus) {
  color: var(--pj-link-dark) !important;
}

body.pj-site .cta-form-card {
  border: 0;
  border-radius: 20px;
}

body.pj-site .cta-form-card :is(input[type="text"], input[type="tel"], input[type="email"], select, textarea) {
  border-color: #B9C1CC;
  border-radius: 12px;
}

body.pj-site .cta-form-card :is(input, select, textarea):focus {
  border-color: var(--pj-accent);
  outline: 2px solid rgba(47, 91, 234, .25);
  outline-offset: 0;
}

/* Monohromas, lokālas SVG zīmolu ikonas uz tumšā kontaktu paneļa. */
html body.pj-site .cta-section .wp-block-social-links {
  gap: 12px;
  padding: 0;
  margin-block: 16px 0;
}
html body.pj-site .cta-section .wp-block-social-links .wp-social-link {
  background: transparent !important;
  color: #FFFFFF !important;
}
html body.pj-site .cta-section .wp-block-social-links .wp-social-link a {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(143, 176, 255, .4);
  border-radius: 50%;
  background: rgba(143, 176, 255, .14) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-decoration: none !important;
}
html body.pj-site .cta-section .wp-block-social-links .wp-social-link a:is(:hover, :focus, :focus-visible, :active) {
  background: var(--pj-accent-hover) !important;
  border-color: var(--pj-link-dark);
  color: #FFFFFF !important;
}
html body.pj-site .cta-section .wp-block-social-links .wp-social-link a:focus-visible {
  outline: 2px solid var(--pj-link-dark);
  outline-offset: 4px;
}
html body.pj-site .cta-section .wp-block-social-links .wp-social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor !important;
  color: inherit !important;
}
/* BUJ */
body.pj-site .wp-block-details {
  padding: 18px 20px;
  border: 0;
  border-radius: 16px;
  background: var(--pj-soft);
}

body.pj-site .wp-block-details + .wp-block-details {
  margin-top: 10px;
}

body.pj-site .wp-block-details summary {
  color: var(--pj-ink);
  font-weight: 600;
  cursor: pointer;
}

/* Raksti */
body.pj-site .wp-block-query-pagination .wp-block-query-pagination-next.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
}

body.pj-site .wp-block-query {
  max-width: 1120px !important;
  width: 100%;
  margin-inline: auto !important;
}

body.pj-site .wp-block-post-template {
  max-width: 1120px !important;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

body.pj-site .wp-block-post-template > .wp-block-post {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--pj-soft);
}

body.pj-site .wp-block-post-template .wp-block-post-featured-image {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

body.pj-site .wp-block-post-template .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.pj-site .wp-block-post-template :is(h2, h3, .wp-block-post-title) {
  font-size: 19px !important;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

body.pj-site .wp-block-post-template a {
  color: var(--pj-ink);
  text-decoration: none;
}

body.pj-site .wp-block-post-date {
  color: var(--pj-muted);
  font-size: 14px !important;
}

/* Apkures kalkulators */
body.pj-site .pm {
  --navy: var(--pj-night);
  --ink: var(--pj-ink);
  --muted: var(--pj-muted);
  --orange: var(--pj-accent);
  --line: var(--pj-line);
  --pale: var(--pj-soft);
}
body.pj-site .pm .pm-eyebrow {
  color: var(--pj-accent);
}

body.pj-site .pm .pm-dark .pm-eyebrow {
  color: var(--pj-glow);
}

body.pj-site .pm .pm-card.is-selected {
  border-color: var(--pj-accent);
  background: #F3F6FF;
  box-shadow: inset 4px 0 0 var(--pj-accent), 0 4px 16px rgba(47, 91, 234, .12);
}

body.pj-site .pm .pm-card.is-selected .pm-card-pricing {
  background: #E8EEFF;
}

body.pj-site .pm .pm-card.is-selected .pm-button,
body.pj-site .pm .pm-card.is-selected button {
  background: var(--pj-accent);
  border-color: var(--pj-accent);
  color: #FFFFFF !important;
}

body.pj-site .pm .pm-card-note .pm-card-tag,
body.pj-site .pm .pm-card-tag {
  background: #E8EEFF;
  color: var(--pj-link);
}

body.pj-site .pm .pm-alert {
  border-left-color: var(--pj-accent);
  background: #F3F6FF !important;
  color: var(--pj-ink) !important;
}
body.pj-site .pm select {
  min-width: 0;
  max-width: 100%;
}

body.pj-site .pm-steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

body.pj-site .pm-step-card {
  min-width: 0;
}
/* Vietnes CSS cietā kodā ierakstītie oranžie toņi */
body.pj-site .cta-section {
  --pm-orange: var(--pj-accent);
  --pm-orange-dark: var(--pj-accent-hover);
}

body.pj-site .cta-section .cta-text h2 {
  font-size: clamp(24px, 2.6vw, 32px) !important;
  letter-spacing: -0.024em;
}

body.pj-site .cta-section .cta-badge {
  background: rgba(143, 176, 255, .12);
  border-color: rgba(143, 176, 255, .35);
  color: var(--pj-glow) !important;
}

body.pj-site .cta-steps--num li::before {
  background: rgba(143, 176, 255, .14);
  border-color: rgba(143, 176, 255, .4);
}

body.pj-site .cta-form-card input[type="submit"],
body.pj-site .cta-form-card .wpcf7-submit,
body.pj-site .pm-btn--primary {
  box-shadow: 0 8px 20px rgba(47, 91, 234, .28);
}

body.pj-site .cta-form-card .wpcf7-radio .wpcf7-list-item:has(input:checked) {
  background: rgba(47, 91, 234, .08);
}

body.pj-site .pm-btn:focus-visible {
  outline-color: rgba(47, 91, 234, .55);
}

body.pj-site :is(.entry-content, .wp-block-post-content) a:where(:not(.wp-element-button, .wp-block-button__link, .pm-btn, .pm-button, .pj-pill, .button, .wp-block-social-link-anchor)):hover {
  color: var(--pj-accent) !important;
}

body.pj-site :is(.entry-content, .wp-block-post-content) ul.wp-block-list li::before,
body.pj-site .pm-thanks__steps li::before {
  background: var(--pj-accent) !important;
}

body.pj-site .wp-block-details summary {
  color: var(--pj-ink);
}

body.pj-site .wp-block-details summary::after {
  border-color: var(--pj-accent);
  color: var(--pj-accent);
}

body.pj-site .wp-block-details:hover {
  border-color: var(--pj-line);
}

body.pj-site .pm-lead-form :is(input, select, textarea):focus,
body.pj-site .cta-form-card :is(input, select, textarea):focus {
  border-color: var(--pj-accent);
  box-shadow: 0 0 0 3px rgba(47, 91, 234, .18);
}

body.pj-site .pm-steps-summary {
  border-left-color: var(--pj-accent);
}

html body.pj-site .rekviziti-toggle button:is(:hover, :focus-visible, :active, .active):where(:not(:disabled, [aria-disabled="true"])) {
  background: var(--pj-accent-hover) !important;
  border-color: var(--pj-accent-hover) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
html body.pj-site .rekviziti-toggle button:focus-visible {
  outline: 2px solid var(--pj-link-dark);
  outline-offset: 3px;
}

html body.pj-site .pm-cta-strip--navy .pm-cta-strip__text a:is(:hover, :focus),
html body.pj-site .cta-section .cta-text a:is(:hover, :focus) {
  color: var(--pj-link-dark) !important;
}
/* Pārējie vecās zīmola paletes dekoratīvie akcenti. */
body.pj-site .cta-form-card select,
body.pj-site .pm-lead-form select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232F5BEA' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
}

body.pj-site .pm-thanks__icon {
  background: #E8EEFF;
}

body.pj-site .pm-thanks__icon :is(svg, [stroke]) {
  stroke: var(--pj-accent);
}

html body.pj-site a:is(.wp-block-read-more, .wp-block-post-excerpt__more-link),
html body.pj-site span.page-numbers.current {
  background: var(--pj-accent);
  color: #FFFFFF !important;
}

html body.pj-site a.page-numbers {
  color: var(--pj-link) !important;
  border-color: var(--pj-link);
}

html body.pj-site a:is(.wp-block-read-more, .wp-block-post-excerpt__more-link, .page-numbers):is(:hover, :focus) {
  background: var(--pj-accent-hover);
  color: #FFFFFF !important;
  border-color: var(--pj-accent-hover);
}

/* Veikals un konts */
body.pj-site .woocommerce :is(input.input-text, select, textarea) {
  border: 1px solid #B9C1CC;
  border-radius: 12px;
  background: #FFFFFF;
}

@media (max-width: 782px) {
  body.pj-site .entry-content,
  body.pj-site .entry-content p,
  body.pj-site .entry-content li {
    font-size: 16px !important;
  }

  body.pj-site .pm-cta-strip,
  body.pj-site .cta-section {
    border-radius: 20px;
  }
}
