/* Tender Secure: shared styles. The homepage carries most of its styling inline; this file adds
   base rules, hover and focus states, and the layout for the smaller pages. */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #F4F6F1;
  color: #0F1F17;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a { color: #17402B; }
a:hover { color: #0F1F17; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #0F1F17;
  outline-offset: 3px;
}
#review a:focus-visible, footer a:focus-visible { outline-color: #D4F05C; }

[id] { scroll-margin-top: 1.5rem; }

.btn { transition: filter 0.15s ease; }
.btn:hover { filter: brightness(0.9); }
.navlink:hover { text-decoration: underline !important; text-underline-offset: 0.3em; }
input:focus, textarea:focus, select:focus { border-color: #0F1F17 !important; }
select:focus-visible { outline: 3px solid #0F1F17; outline-offset: 3px; }

/* ---------- Smaller pages: privacy notice, thank you, not found ---------- */

.site-header { border-bottom: 1px solid #D5DDD0; background: #F4F6F1; }
.site-header .inner {
  max-width: 1200px; margin: 0 auto; padding: 1rem clamp(1.25rem, 4vw, 2rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
}
.wordmark {
  display: flex; align-items: center; gap: 0.3rem; min-height: 44px; text-decoration: none; color: #0F1F17;
  font-family: Archivo, Arial, sans-serif; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1;
}
.wordmark .hl { background: #D4F05C; color: #0F1F17; padding: 0.2rem 0.4rem 0.25rem; }
.wordmark.on-dark { color: #FFFFFF; font-size: 1.3rem; min-height: 0; }
.back-link { font-weight: 600; color: #0F1F17; padding: 0.7rem 0; text-underline-offset: 0.25em; }

.doc { background: #FFFFFF; border-bottom: 1px solid #D5DDD0; }
.doc .inner { max-width: 46rem; margin: 0 auto; padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 2rem); }
.doc h1 {
  margin: 0 0 1rem; font-family: Archivo, Arial, sans-serif; font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance;
}
.doc h2 {
  margin: 2.5rem 0 0.6rem; padding-top: 1.5rem; border-top: 1px solid #B7C2B1;
  font-family: Archivo, Arial, sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em;
}
.doc h3 { margin: 1.5rem 0 0.4rem; font-family: Archivo, Arial, sans-serif; font-weight: 700; font-size: 1.05rem; }
.doc p, .doc li { color: #2E3D34; }
.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4rem; }
.doc .lead { font-size: 1.15rem; color: #2E3D34; }
.doc .meta {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: #17402B; margin-bottom: 1rem;
}
.doc address { font-style: normal; color: #2E3D34; margin: 0 0 1rem; }

.message { min-height: 50vh; display: flex; align-items: center; }
.button {
  display: inline-block; background: #17402B; color: #FFFFFF; text-decoration: none; font-weight: 600;
  font-size: 1.05rem; padding: 1rem 1.6rem; border-radius: 4px; transition: filter 0.15s ease;
}
.button:hover { color: #FFFFFF; filter: brightness(0.9); }

.site-footer { background: #0F1F17; color: #B9CCB6; }
.site-footer .inner {
  max-width: 1200px; margin: 0 auto; padding: 3rem clamp(1.25rem, 4vw, 2rem);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.75rem 3rem;
}
.site-footer p { margin: 0; font-size: 0.9rem; }
.site-footer .small { font-size: 0.85rem; }
.site-footer .col { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer .links { display: flex; flex-direction: column; align-items: flex-start; font-size: 0.9rem; }
.site-footer .links a { padding: 0.65rem 0; }
.site-footer .links span { padding-top: 0.65rem; }
.site-footer a { color: #FFFFFF; }
.site-footer a.quiet { color: #B9CCB6; }

/* ---------- Homepage: phone header and tap-to-open questions ---------- */

@media (max-width: 640px) { .navlink { display: none; } }

#faq summary { list-style: none; }
#faq summary::-webkit-details-marker { display: none; }
@media (min-width: 701px) { #faq summary { pointer-events: none; } }
@media (max-width: 700px) {
  #faq summary { cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
  #faq summary::after { content: "+"; flex: none; font-family: Archivo, Arial, sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1; color: #17402B; }
  #faq details[open] summary::after { content: "\2212"; }
  #faq details { padding: 1.1rem 0 !important; }
}
