/* WordPress-only additions must not restyle the approved HTML design. */

/* Calculator: four entities, separate employment lines and split pricing. */
.calc-options-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-choice:has(input[value="przemysl"]) {
  grid-column: auto;
  background: var(--theme-page, #f6f1e8);
}
.calc-other-sector,
.amp-industry-other { display: grid; gap: 8px; margin-top: 16px; font-weight: 700; }
.calc-other-sector[hidden],
.amp-industry-other[hidden] { display: none; }
.calc-team-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--theme-border, #d7d0c4);
}
.calc-price-split,
.amp-price-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calc-price-split > div,
.amp-price-split > p {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(18, 63, 67, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}
.amp-price-split strong,
.amp-price-split span { display: block; }
.amp-price-split span { margin-top: 8px; font-size: 18px; font-weight: 750; }

/* Price cards: dark petrol copy on an opaque warm surface for WCAG contrast. */
.calc-result .calc-price-split > div {
  background: #fffdf8;
  border-color: #d7d0c4;
}

.calc-result .calc-price-split :is(small, h3, p, strong, span) {
  color: #123f43 !important;
}

/* Final typography floor: hierarchy comes from scale, weight and spacing—not tiny copy. */
html { font-size: 16px; }

:where(
  .card-copy,
  .section-lead,
  .quick-contact p,
  .amp-field,
  .calc-choice,
  .calc-team-line,
  .contact-next-grid p,
  .article-body p,
  .article-body li,
  input,
  select,
  textarea
) {
  font-size: 16px !important;
  line-height: 1.55;
}

:where(
  label,
  legend,
  .main-nav a,
  .main-nav button,
  .footer a,
  .footer-column,
  .footer-bottom,
  .eyebrow,
  .hero-kicker,
  .breadcrumb,
  .breadcrumbs,
  .article-breadcrumb,
  .article-meta-author strong,
  .article-meta-author small,
  .article-meta-detail small,
  .article-meta-detail time,
  .article-meta-detail > span,
  .article-toc > p,
  .article-toc li a,
  .article-toc-service,
  .article-toc-service strong,
  .article-summary::before,
  .card small,
  .team-card span,
  .steps-grid p,
  .calc-hint,
  .calc-footnote,
  .amp-note,
  .amp-progress,
  .faq-answer,
  .lead-qualifier-panel p,
  .lead-qualifier-panel b,
  .problem-focus-us,
  .micro-win-copy,
  .problem-focus-person small,
  .faq-contact,
  .team-focus-tabs strong,
  .team-focus-tabs small,
  .team-focus-profile figcaption > span,
  .team-focus-profile figcaption small,
  .knowledge-editorial .articles-grid > a > span,
  .knowledge-editorial .article-featured > span,
  .knowledge-editorial .article-featured b,
  .hero-ksef-pill strong,
  .contact-facts span,
  .contact-next-grid span,
  .proof-review-card small,
  .roles-switch-action small,
  .roles-switch-photo figcaption strong,
  .roles-switch-photo figcaption span,
  .roles-saldeo-status,
  .hero-human p,
  .hero-note,
  .roles-switch-copy > p:not(.eyebrow),
  .roles-perspective-panel li,
  .closing-team-actions p
) {
  font-size: 14px !important;
  line-height: 1.45;
}

:where(
  button,
  input[type="button"],
  input[type="submit"],
  .button,
  .header-cta,
  .start-cta,
  .team-focus-cta,
  .amp-primary,
  .calc-next,
  .calc-back,
  .closing-team-primary,
  .human-app-contact,
  .contact-hero-cta,
  .contact-submit,
  .article-service-primary,
  .article-service-secondary,
  .faq-heading > a,
  .roles-switch-cta,
  .problem-section-cta a,
  .hero-note a
) {
  font-size: 15px !important;
  line-height: 1.35;
}

/* Keep the approved homepage composition while retaining readable UI copy. */
.roles-switch-cta {
  flex: 0 0 auto;
  min-width: 192px;
  white-space: nowrap;
}

.roles-switch-action small {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 861px) {
  .closing-section.closing-compact.closing-team-strip {
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) 500px;
  }

  .closing-team-actions {
    width: 500px;
  }
}

/* Keep the approved editorial scale of homepage testimonials. The general
   WordPress readability floor above must not flatten display quotations. */
.proof-review-card > p {
  font-family: var(--font-accent);
  font-size: clamp(22px, 1.65vw, 27px) !important;
  line-height: 1.13;
  margin: 28px 0 32px;
}

/* Preserve the approved lead scale in service-page heroes. */
.subpage-hero .hero-lead {
  font-size: clamp(17px, 1.5vw, 21px) !important;
  line-height: 1.55;
}

/* The company-setup explainer needs a clear title-to-intro rhythm. */
.section-shell > .section-intro {
  margin-top: 18px;
}

/* Keep the approved long-form testimonial scale on the payroll page. */
.service-context-review blockquote p {
  font-size: clamp(24px, 2.2vw, 34px) !important;
  line-height: 1.27;
}

/* Client review: quotation forms need stronger separation from pale sections. */
.quick-contact {
  background: #123f43 !important;
  border-color: #315f62 !important;
  color: #fff !important;
}

.quick-contact :is(
  h2,
  p,
  label,
  legend,
  a,
  .amp-progress,
  .amp-field,
  .amp-details,
  .amp-review h3,
  .amp-estimate,
  .amp-note
) {
  color: #fff !important;
}

.quick-contact .amp-progress span {
  color: #e7c66a !important;
}

.quick-contact :is(input, select, textarea) {
  background: #fff;
  border-color: #789496;
  color: #123f43;
  font-size: 16px;
}

.quick-contact :is(input, select, textarea)::placeholder {
  color: #587577;
  opacity: 1;
}

.quick-contact .amp-primary {
  background: #e7c66a !important;
  border-color: #e7c66a !important;
  color: #123f43 !important;
  font-size: 15px !important;
}

.quick-contact .amp-primary:hover {
  background: #f0d681 !important;
  border-color: #f0d681 !important;
}

/* Keep supporting copy visually separate from large section headings. */
.contact-faq-copy > h2 + p,
.faq-heading > h2 + p,
.quick-contact-copy > h2 + p {
  margin-top: 20px !important;
}

@media (max-width: 720px) {
  .contact-faq-copy > h2 + p,
  .faq-heading > h2 + p,
  .quick-contact-copy > h2 + p {
    margin-top: 18px !important;
  }
}

@media (max-width: 720px) {
  .calc-options-four,
  .calc-price-split,
  .amp-price-split { grid-template-columns: 1fr; }
  .calc-team-line { align-items: flex-start; flex-direction: column; gap: 10px; }
}
