/* ChatDuo site layer: navigation, footer, breadcrumbs, content pages, FAQ, CTA. Loaded after
   common.min.css on every page (private/includes/header.php). The chat applet is styled by its own
   files; nothing here targets .cd.

   Specificity note: common.min.css carries rules written for the legal pages (.inner-page a,
   .inner-page ul, .inner-page ul li, .inner-page ul li > a, a:hover) that would otherwise restyle the
   components below, because content pages are <section class="inner-page content-page">. Every component
   rule therefore carries a page-level prefix (:is(.content-page, .home-section) or main) so it outranks
   them; do not shorten the selectors. tools/visual-check.js flags the result (contrast, overflow). */

/* ---------- Loading: no preloader overlay, no scroll-triggered hiding (LCP and CLS) ---------- */
.preloader { display: none !important; }
.wow { visibility: visible !important; animation: none !important; }
main { flex: 1 0 auto; } /* body is a flex column: keeps the footer at the bottom on short pages */

/* ---------- Links and focus ---------- */
/* The legacy link colour #0bb2c1 is 2.6:1 on white; #067ca7 is 4.7:1. */
.inner-page a, .home-section a, .chat-host-links a { color: #067ca7; }
.inner-page a:hover, .inner-page a:focus, .home-section a:hover, .home-section a:focus, .chat-host-links a:hover { color: #05688c; text-decoration: underline; }
a:focus-visible, summary:focus-visible, .btn:focus-visible, .form-control:focus-visible { outline: 2px solid #067ca7; outline-offset: 2px; }

/* ---------- Header navigation ---------- */
#navigation .navbar { min-height: 64px; }
#navigation .container { gap: 16px; }
.main-logo { display: block; width: 200px; height: 57px; }
@media (max-width: 767px) { .main-logo { width: 160px; height: 46px; } }

.site-nav { display: flex; align-items: center; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav-list { display: flex; align-items: center; gap: 2px; }
.site-nav-list > li { position: relative; }
.site-nav-list a, .site-nav-more summary, .site-nav-mobile summary {
  display: block; padding: 10px 12px; font-size: 15px; font-weight: 600; color: #222; text-decoration: none;
  border-radius: 6px; line-height: 1.2; white-space: nowrap; cursor: pointer;
}
.site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"], .site-nav summary:hover { color: #067ca7; background: #eef7fb; text-decoration: none; }
.site-nav summary { list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav-more summary::after { content: " \25BE"; font-size: 12px; }
.site-nav-more ul, .site-nav-mobile ul {
  position: absolute; right: 0; top: calc(100% + 4px); min-width: 200px; background: #fff; border: 1px solid #e3e3e3;
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); padding: 6px; z-index: 10050;
}
.site-nav-more ul a, .site-nav-mobile ul a { display: block; padding: 10px 12px; font-size: 15px; font-weight: 600; color: #222; border-radius: 6px; white-space: nowrap; }
.site-nav-mobile { display: none; position: relative; }
.site-nav-burger { display: inline-block; width: 22px; height: 2px; background: #222; position: relative; vertical-align: middle; margin-right: 8px; }
.site-nav-burger::before, .site-nav-burger::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #222; }
.site-nav-burger::before { top: -7px; }
.site-nav-burger::after { top: 7px; }
@media (max-width: 991px) {
  .site-nav-list { display: none; }
  .site-nav-mobile { display: block; }
  .site-nav-mobile ul { min-width: 240px; }
  .site-nav-mobile ul a { padding: 12px 14px; font-size: 16px; }
}
/* While a chat is on (the applet sets cd-in-chat on <html>) the header is one slim row: logo only. */
html.cd-in-chat .site-nav { display: none; }
html.cd-in-chat main > :not(#chat) { visibility: hidden; }

/* ---------- Launcher section (homepage and landing pages) ---------- */
.chat-host-links { text-align: center; font-size: 14px; color: #555; margin: 14px 0 0; }
.chat-host-links a { font-weight: 600; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 14px; margin: 18px 0 0; }
.content-page .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.content-page .breadcrumbs li { margin: 0; padding: 0; font-size: 14px; line-height: 1.4; }
.content-page .breadcrumbs li + li::before { content: "\203A"; color: #999; margin-right: 8px; }
.content-page .breadcrumbs [aria-current="page"] { color: #555; }

/* ---------- Content pages: text ---------- */
.content-page { padding: 10px 0 80px; }
.content-page .container { max-width: 960px; }
.page-head { margin: 10px 0 30px; }
.page-head h1 { font-size: 40px; line-height: 1.15; font-weight: 700; margin: 0 0 12px; }
.page-head .lead { font-size: 19px; line-height: 1.6; color: #333; margin: 0; }
.last-reviewed, .byline { font-size: 14px; color: #666; margin: 8px 0 0; }
.content-page h2 { font-size: 28px; line-height: 1.25; font-weight: 700; margin: 2em 0 .6em; }
.content-page h3 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 1.5em 0 .5em; }
.content-page p, .content-page li { font-size: 17px; line-height: 1.65; color: #222; }
.content-page p { margin: 0 0 1em; }
.content-page a { font-weight: 500; }
.content-page strong { font-weight: 600; }
/* Plain lists: undo the legacy legal-page list rules (30px side padding, inline-block links). */
.content-page ul, .content-page ol, .home-section ul, .home-section ol { margin: 0 0 1.2em; padding: 0 0 0 26px; }
.content-page ul li, .content-page ol li { padding: 0; margin: 0 0 .35em; }
.content-page ul li > a { display: inline; margin-bottom: 0; }
.home-section li { font-size: 17px; line-height: 1.65; color: #222; margin: 0 0 .35em; }
@media (max-width: 767px) {
  .page-head h1 { font-size: 30px; }
  .content-page h2 { font-size: 24px; }
  .content-page p, .content-page li, .home-section li { font-size: 16px; }
}

/* Figures and notes */
:is(.content-page, .home-section) figure { margin: 24px 0; }
:is(.content-page, .home-section) figure img { max-width: 100%; height: auto; border: 1px solid #e3e3e3; border-radius: 12px; display: block; margin: 0 auto; }
:is(.content-page, .home-section) figure.phone-shot img { max-width: 320px; }
:is(.content-page, .home-section) figcaption { font-size: 14px; color: #666; margin-top: 8px; text-align: center; }
.content-page .note { background: #f4f9fc; border-left: 4px solid #067ca7; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.content-page .note p:last-child { margin-bottom: 0; }

/* Step list (how it works) */
:is(.content-page, .home-section) .steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
:is(.content-page, .home-section) .steps > li { counter-increment: step; position: relative; min-width: 0; margin: 0; padding: 16px 18px 16px 64px; background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; }
:is(.content-page, .home-section) .steps > li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: #067ca7; color: #fff; font-weight: 700; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; }
:is(.content-page, .home-section) .steps h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; font-weight: 700; }
:is(.content-page, .home-section) .steps p { margin: 0; }

:is(.content-page, .home-section) .steps figure { margin: 14px 0 0; }
@media (max-width: 767px) {
  :is(.content-page, .home-section) .steps > li { padding: 14px 14px 14px 54px; }
  :is(.content-page, .home-section) .steps > li::before { left: 12px; top: 14px; }
  :is(.content-page, .home-section) .steps figure { margin-left: -40px; }
}

/* Feature cards */
:is(.content-page, .home-section) .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0 0 1.5em; padding: 0; list-style: none; }
:is(.content-page, .home-section) .cards > li { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; min-width: 0; margin: 0; padding: 20px; }
:is(.content-page, .home-section) .cards h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; }
:is(.content-page, .home-section) .cards p { margin: 0; font-size: 16px; line-height: 1.6; }

/* Guide cards (hub pages) and source lists */
.content-page .guide-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.content-page .guide-list > li { border: 1px solid #e5e5e5; border-radius: 12px; margin: 0; padding: 18px 20px; }
.content-page .guide-list h3 { margin: 0 0 6px; font-size: 20px; }
.content-page .guide-list p { margin: 0; }
.content-page .guide-list .meta { font-size: 13px; color: #666; margin-top: 8px; }
.content-page .sources li { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }

/* Comparison tables */
.compare-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare caption { caption-side: top; text-align: left; font-size: 14px; color: #666; padding: 0 0 8px; }
.compare th, .compare td { border: 1px solid #e3e3e3; padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.45; }
.compare thead th { background: #f4f9fc; font-weight: 700; }
.compare tbody th { font-weight: 600; background: #fafafa; }
@media (max-width: 767px) { .compare { min-width: 640px; font-size: 14px; } }

/* FAQ */
:is(.content-page, .home-section) .faq { border-top: 1px solid #e5e5e5; margin: 0 0 1.5em; }
:is(.content-page, .home-section) .faq-item { border-bottom: 1px solid #e5e5e5; }
:is(.content-page, .home-section) .faq-item summary { cursor: pointer; padding: 16px 36px 16px 0; position: relative; list-style: none; }
:is(.content-page, .home-section) .faq-item summary::-webkit-details-marker { display: none; }
:is(.content-page, .home-section) .faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; line-height: 1.2; color: #067ca7; }
:is(.content-page, .home-section) .faq-item[open] summary::after { content: "\2212"; }
:is(.content-page, .home-section) .faq-item summary h3 { display: inline; margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; }
:is(.content-page, .home-section) .faq-answer { padding: 0 0 16px; }
:is(.content-page, .home-section) .faq-answer p { font-size: 17px; line-height: 1.65; color: #222; margin: 0 0 1em; }
:is(.content-page, .home-section) .faq-answer p:last-child { margin-bottom: 0; }

/* Calls to action. "main a.cta-button" outranks the page link rules above, in every state:
   the label must stay white on the blue button (resting, visited, hover, focus). */
.cta-row { margin: 28px 0; }
main a.cta-button, main a.cta-button:visited { display: inline-block; background: #067ca7; color: #fff; font-weight: 700; font-size: 17px; line-height: 1.2; padding: 14px 30px; border-radius: 6px; text-decoration: none; }
main a.cta-button:hover, main a.cta-button:focus, main a.cta-button:active { background: #05688c; color: #fff; text-decoration: none; }
main a.cta-secondary, main a.cta-secondary:visited { display: inline-block; margin-left: 10px; color: #067ca7; font-weight: 600; }

/* ---------- Homepage copy sections ---------- */
.home-section { padding: 40px 0; }
.home-section .container { max-width: 960px; }
.home-section h1 { font-size: 34px; line-height: 1.2; font-weight: 700; margin: 0 0 14px; }
.home-section h2 { font-size: 28px; line-height: 1.25; font-weight: 700; margin: 0 0 16px; }
.home-section p { font-size: 17px; line-height: 1.65; color: #222; }
.home-section .free-line { font-weight: 700; color: #555; font-size: 15px; }
/* On phones the applet prints the same "Free. No account..." line under its buttons (data-free="phone"). */
main:has(#chatduo-chat .cd-free) .home-section .free-line { display: none; }
.home-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.home-grid > * { min-width: 0; } /* grid items must be allowed to shrink below their images' intrinsic width */
.home-section .home-grid figure { margin: 0; }
.home-alt { background: #f7fafc; }
@media (max-width: 767px) {
  .home-section { padding: 28px 0; }
  .home-section h1 { font-size: 27px; }
  .home-section h2 { font-size: 23px; }
  .home-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: #0e0e0e; color: #ddd; padding: 36px 0 24px; font-size: 15px; }
.site-footer .container { max-width: 1100px; }
.footer-groups { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; text-align: left; }
.footer-heading { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #9a9a9a; margin: 0 0 10px; font-weight: 700; }
.footer-group ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.footer-group li { break-inside: avoid; padding: 3px 0; }
.site-footer .footer-group a { color: #fff; text-decoration: none; }
.site-footer .footer-group a:hover, .site-footer .footer-group a:focus { color: #7fd3f5; text-decoration: underline; }
.site-footer .footer-bottom { border-top: 1px solid #2a2a2a; margin: 24px 0 0; padding-top: 16px; text-align: center; color: #aaa; font-size: 14px; }
.site-footer .footer-bottom p { margin: 4px 0; }
@media (max-width: 767px) {
  .footer-groups { grid-template-columns: 1fr; }
}

/* ---------- Contact form ---------- */
#main-contact-form .btn-primary { background: #067ca7; border: 0; border-radius: 6px; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 14px 30px; margin: 20px 0 0; }
#main-contact-form .btn-primary:hover, #main-contact-form .btn-primary:focus { background: #05688c; color: #fff; }
#main-contact-form .btn-primary[disabled] { opacity: .6; cursor: default; }
#main-contact-form .form-group__lbl { font-size: 14px; font-weight: 600; }
#main-contact-form select.form-control { height: 46px; }
#main-contact-form .form-error { display: none; color: #b00020; font-size: 15px; margin: 12px 0 0; }
#main-contact-form .form-error.show { display: block; }
#main-contact-form .help-block { margin: 0; color: #b00020; font-size: 14px; line-height: 1.4; }
#main-contact-form select.form-control.valid, #main-contact-form select.form-control.invalid { background-image: none; } /* the state icon would sit on the dropdown arrow */
/* The legacy rules make these two absolute overlays; the success panel replaces the fields instead. */
#main-contact-form .succes_send { position: static; width: auto; height: auto; background: none; padding: 30px 0 10px; text-align: center; }
#main-contact-form .succes_send h2 { font-size: 24px; font-weight: 600; margin: 16px 0 8px; }
#main-contact-form .succes_send img { margin-top: 0; width: 75px; height: auto; }

/* ---------- Error pages ---------- */
.error-page { text-align: center; padding: 40px 0 80px; }
.error-page h1 { font-size: 36px; margin: 20px 0 10px; }
.error-page p { font-size: 17px; }
