﻿/* Shared public frame corrections. Keep this file loaded after page-local styles. */
:root {
  --p2p-frame-black: #000000;
  --p2p-frame-dark: #404040;
  --p2p-frame-mid: #808080;
  --p2p-frame-light: #d9d9d9;
  --p2p-frame-white: #ffffff;
  --p2p-frame-red: #ff0000;
  --color-red: #ff0000;
  --color-red-dark: #ff0000;
  --red: #ff0000;
  --red-dark: #ff0000;
}

main {
  display: block;
}

/* Canonical public header frame. */
.site-header__inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.site-header__logo-img {
  display: block;
  width: auto;
  height: 32px;
  object-fit: contain;
}

.site-header__logo-text,
.brand-p2p {
  line-height: 1;
  white-space: nowrap;
}

.brand-p2p {
  color: var(--p2p-frame-black);
  font-weight: 700;
  text-transform: lowercase !important;
}

.brand-p2p > span {
  color: var(--p2p-frame-red);
}

.site-header .brand-itm {
  display: none !important;
}

body .btn--primary,
body .btn--primary:hover,
body .btn--primary:focus {
  background: var(--p2p-frame-red) !important;
  border-color: var(--p2p-frame-red) !important;
}

.site-header .site-nav__list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-header .site-nav__list li {
  margin: 0;
  padding: 0;
}

.site-header .site-nav__list a {
  display: block;
  padding: 8px 10px;
  color: var(--p2p-frame-dark);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.site-header .site-nav__list a:hover,
.site-header .site-nav__list a[aria-current="page"] {
  color: var(--p2p-frame-black);
  border-bottom-color: var(--p2p-frame-red);
}

.site-footer {
  box-sizing: border-box;
  margin: 0;
  padding: 56px 24px 32px;
  background: var(--p2p-frame-dark);
  color: var(--p2p-frame-light);
  font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer__inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #555555;
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand__logo-mark {
  display: flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  background: var(--p2p-frame-white);
}

.footer-brand__logo-mark svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--p2p-frame-black);
  stroke-width: 2;
}

.footer-brand__name {
  color: var(--p2p-frame-white);
  font-size: 1rem;
  font-weight: 700;
}

.footer-brand__desc {
  max-width: 280px;
  margin: 0;
  color: #c4c4c4;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-col__title {
  margin: 0 0 16px;
  color: var(--p2p-frame-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.footer-col ul li {
  margin: 0;
  padding: 0;
}

.footer-col ul li a,
.footer-contact-item a {
  color: #c4c4c4;
  text-decoration: none;
  transition: color 0.12s;
}

.footer-col ul li a {
  font-size: 0.82rem;
}

.footer-col ul li a:hover,
.footer-contact-item a:hover {
  color: var(--p2p-frame-white);
}

.footer-contact-item {
  display: flex;
  margin-bottom: 10px;
  align-items: flex-start;
  gap: 10px;
  color: #c4c4c4;
  font-size: 0.82rem;
  line-height: 1.4;
}

.footer-contact-item svg {
  display: block;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex: 0 0 14px;
  fill: none;
  stroke: var(--p2p-frame-mid);
  stroke-width: 2;
}

.site-footer__bottom {
  display: flex;
  margin: 0;
  padding-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #bdbdbd;
  font-size: 0.75rem;
}

.site-footer__bottom a {
  color: #bdbdbd;
  text-decoration: none;
  transition: color 0.12s;
}

.site-footer__bottom a:hover {
  color: var(--p2p-frame-light);
}

main .tech-note,
main .quality-reports h3,
main h3[style*="font-size: 0.8rem"],
main h3[style*="font-size:0.8rem"] {
  color: #606060 !important;
}

.hero .hero__eyebrow,
.final-cta .section-label {
  color: #ff0000 !important;
}

.seo-crosslinks .section-label,
.seo-crosslinks > div > span {
  color: #ff0000 !important;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-header__logo-text {
    display: none !important;
  }

  .site-header .lang-switcher {
    display: flex !important;
    min-width: 0;
    margin-left: auto;
    padding: 2px !important;
    gap: 1px !important;
  }

  .site-header .lang-switcher__item {
    min-width: 28px;
    min-height: 28px;
    padding: 4px !important;
    justify-content: center;
    gap: 0 !important;
  }

  .site-header .lang-switcher__item svg {
    display: block !important;
    width: 16px !important;
    height: 11px !important;
  }

  .site-header .lang-switcher__item .lang-code,
  .site-header .lang-switcher__sep {
    display: none !important;
  }

  .site-header .nav-toggle,
  .site-header .menu-toggle {
    margin-left: 0 !important;
  }
}

@media (max-width: 500px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* Shared mobile navigation for canonical blog headers. */
.site-header .nav-toggle {
  display: none;
  padding: 8px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--p2p-frame-light);
  background: var(--p2p-frame-white);
  color: var(--p2p-frame-black);
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header__inner {
    position: relative;
  }

  .site-header .nav-toggle {
    display: flex;
  }

  .site-header .site-nav {
    display: none;
  }

  .site-header .site-header__cta {
    display: none;
  }

  .site-header .site-nav.is-open,
  .site-header .site-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--p2p-frame-white);
    border-top: 1px solid var(--p2p-frame-light);
    border-bottom: 3px solid var(--p2p-frame-red);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  }

  .site-header .site-nav.is-open .site-nav__list,
  .site-header .site-nav.open .site-nav__list {
    display: block;
    padding: 8px 20px;
  }

  .site-header .site-nav.is-open .site-nav__list a,
  .site-header .site-nav.open .site-nav__list a {
    padding: 12px 4px;
  }
}

