/* Plego Site Components: theme bridge. Only rules that defend the layout inside the Plego theme.
   Each rule names the theme rule it answers (research/theme-shell-facts.md, section 7). Loads after components.css. */

/* The theme's own body font: its open_sansregular and open_sansbold faces, with the library's stack as fallback. */
.plc { --plc-font-body: open_sansregular, "Open Sans", Arial, sans-serif; --plc-font-bold: open_sansbold, "Open Sans", Arial, sans-serif; --plc-header-offset: 87px; }

/* Theme rule: html { font-family: open_sansregular } with b and strong on the regular face (custom.css, main.css). Bold text uses the theme's bold face; synthesis is off so a bold face is never thickened twice. */
.plc .plc-btn, .plc .plc-pill, .plc .plc-panel__label, .plc .plc-case__more, .plc .plc-reach__link, .plc strong, .plc b, .plc .plc-contact label, .plc .plc-contact legend { font-family: var(--plc-font-bold); font-weight: var(--plc-weight-bold); font-synthesis-weight: none; }

/* Theme rule: h3, h4, h5, h6 { color: white } outside .content-area (custom.css). Keep section titles dark. */
.plc :is(h3, h4, h5, h6) { color: var(--plc-ink); }

/* Theme rule: h1:first-letter ... p:first-letter, span:first-letter, i:first-letter, small:first-letter and their links get text-transform: uppercase (main.css). */
.plc h1:first-letter, .plc h2:first-letter, .plc h3:first-letter, .plc h4:first-letter, .plc h5:first-letter, .plc h6:first-letter, .plc p:first-letter, .plc span:first-letter, .plc i:first-letter, .plc small:first-letter, .plc a:first-letter, .plc dt:first-letter, .plc dd:first-letter, .plc li:first-letter, .plc blockquote:first-letter, .plc figcaption:first-letter { text-transform: none; }


/* Theme rule: em, i { font-style: normal } (main.css). Rich text from the editor keeps its italics. */
.plc em, .plc i { font-style: italic; }

/* Theme rule: label { display: inline-block; margin-bottom: 5px } (site.css). Labels sit above the field, as in the comp. */
.plc .plc-contact label { display: block; margin: 0 0 var(--plc-space-2); font-size: var(--plc-fs-17); line-height: var(--plc-lh-body); color: var(--plc-ink); }

/* Theme rule: input[type=text|email|tel|...], textarea { width: 100%; height: 2.7em; padding: .6em .875em; a pale grey border and square corners } (site.css). Fields look like the comp's fields. */
.plc .plc-contact input[type="text"], .plc .plc-contact input[type="email"], .plc .plc-contact input[type="tel"], .plc .plc-contact input[type="url"], .plc .plc-contact input[type="number"], .plc .plc-contact textarea, .plc .plc-contact select { display: block; width: 100%; max-width: 100%; height: auto; min-height: var(--plc-tap); padding: var(--plc-space-3) var(--plc-space-4); font-family: var(--plc-font-body); font-size: var(--plc-fs-17); line-height: var(--plc-lh-body); color: var(--plc-ink); background: var(--plc-white); border: var(--plc-border-hair) solid var(--plc-grey); border-radius: var(--plc-radius-control); box-shadow: none; }

/* Theme rule: a textarea gets the same height: 2.7em as one-line fields (site.css). Make it tall. */
.plc .plc-contact textarea { min-height: var(--plc-field-area); resize: vertical; }

/* Theme rule: select { fixed 50 px height, 18 px type, black text forced with !important, translucent white background } (my-custom.css). */
.plc .plc-contact select { color: var(--plc-ink) !important; background-color: var(--plc-white); }

/* Theme rule: the same input rule also reaches button-type inputs and the form plugin's own buttons; draw the submit as the library's button. */
.plc .plc-contact input[type="submit"], .plc .plc-contact input[type="button"], .plc .plc-contact button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: auto; min-height: var(--plc-tap-lg); margin-top: var(--plc-space-5); padding: var(--plc-space-3) var(--plc-space-5); font-family: var(--plc-font-bold); font-size: var(--plc-fs-19); font-weight: var(--plc-weight-bold); font-synthesis-weight: none; line-height: var(--plc-lh-title); color: var(--plc-white); background: var(--plc-orange); border: 0; border-radius: var(--plc-radius-control); cursor: pointer; }

/* Same input rule as above, for the hover state of the submit. */
.plc .plc-contact input[type="submit"]:hover, .plc .plc-contact input[type="button"]:hover, .plc .plc-contact button[type="submit"]:hover { background: var(--plc-orange-dark); }

/* Theme rule: form { margin: 0 0 1.17em } (site.css). The form sits inside the library's form shell, which carries the spacing. */
.plc .plc-form form { margin: 0; }

/* Ninja Forms wraps every field in its own container; match the comp's field spacing (the plugin's own css is display-structure.css). */
.plc .plc-contact .nf-field-container { margin: 0 0 var(--plc-space-4); }

/* Theme rule: the header is position: fixed at 992 px and up and body padding-top is 0 (main.css, layout-changes2024.css); below that it is absolute until 769 px. Leave room for it at the top of the first screen, and keep the layout anchors from landing under it. */
@media (min-width: 769px) {
  .plc-industry .plc .plc-hero, .plc-industry .plc > .plc-section:first-child { padding-top: calc(var(--plc-header-offset) + var(--plc-space-6)); }
  .plc-home .plc .plc-hero-photo, .plc-home .plc > .plc-section:first-child { padding-top: calc(var(--plc-header-offset) + var(--plc-space-6)); }
  .plc-home .plc section[id], .plc-industry .plc #book-a-call { scroll-margin-top: var(--plc-header-offset); }
}

/* answers Ninja Forms: its reCAPTCHA box is a fixed 304px wide, wider than the form panel on a narrow phone, so it is drawn smaller there */
@media (max-width: 419px) {
  .plc .plc-form .g-recaptcha { transform: scale(0.88); transform-origin: left top; }
}

/* answers Plego's Additional CSS: input#nf-field-263[type="text"] { font-size: 16px !important } and, at 499px and below, 14px !important. Form 18 prints its closing sentence in that one-line box, which cannot wrap. Inside this layout's form panel the box is narrower than the sentence on narrow phones and in the two-column range, so the type is set to a size at which the whole sentence shows. */
@media (max-width: 419px) {
  .plc .plc-form input#nf-field-263[type="text"] { font-size: 12px !important; }
}

/* answers the same Plego rule, in the two-column range: the form column there is only as wide as the reCAPTCHA box needs, so the box is narrower than the sentence at 16px. */
@media (min-width: 760px) and (max-width: 1023px) {
  .plc .plc-form input#nf-field-263[type="text"] { font-size: 13px !important; }
}

/* answers the theme (main.css, layout-changes2024.css): .contForm is the fixed panel the header prints on every page; it holds the orange "Contact us" side tab (.slideButton) and its slide-out form. On this layout at one-column widths the tab sits over the page's text, so the panel and its tab are not shown there; the page's own buttons and form stand in. Decision of 2026-11-23. The Home Page layout follows the same rule (Kurt, 2026-12-01). */
@media (max-width: 759px) {
  body.plc-industry .contForm, body.plc-home .contForm { display: none; }
}

/* The theme's header is absolute from 769 px and fixed at desktop widths. Clear it before the article breadcrumb or title. */
@media (min-width: 769px) {
  .plc .plc-section.plc-article-section { padding-top: calc(var(--plc-header-offset) + var(--plc-space-6)); }
}
