/* Patient PC Help â€” shared banner + theme toggle (amzigo-style) */

/* Sticky header layout â€” !important to survive per-page inline `header` rules */
header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  /* Solid background so the banner is opaque and identical on every page,
     regardless of the page's body color showing through. */
  background: #ffe600 !important;
  /* blue rope border around the banner box */
  border: 12px solid transparent !important;
  border-image: repeating-linear-gradient(
    45deg,
    #1e3a8a 0, #1e3a8a 6px,
    #3b82f6 6px, #3b82f6 12px,
    #60a5fa 12px, #60a5fa 18px,
    #3b82f6 18px, #3b82f6 24px
  ) 12 !important;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Shared nav link coloring â€” lives here (not in per-page inline styles) so
   every page's banner matches. Without this, pages fall back to their own
   `a { color }` and the banners look inconsistent. */
nav a { color: #374151 !important; text-decoration: none !important; }
nav a:hover { color: #166534 !important; text-decoration: underline !important; }
nav a[aria-current="page"] { color: #166534 !important; font-weight: 700; }
.brand { color: #111827 !important; text-decoration: none !important; }
.brand-text h1 { color: #111827 !important; }
.brand-text p { color: #6b7280 !important; }

/* ---- Fortune widget (far left of nav banner) ---- */
.fortune-widget {
  order: -1;
  flex: 0 1 auto;
  align-self: center;
  min-width: 280px;
  max-width: 640px;
  margin: 0 1.5rem 0 0;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  color: #fff;
  text-align: left;
}
.fortune-text {
  margin: 0;
  font-size: 24px !important;
  line-height: 1.4;
  font-style: italic;
  font-weight: 500;
  color: #fff;
}
.fortune-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.fortune-author {
  font-size: 18px !important;
  opacity: 0.92;
  color: #e8f5e9;
}
.fortune-new {
  flex: 0 0 auto;
  background: #166534;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 18px !important;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.fortune-new:hover { background: #14532d; }

/* Dark theme tweaks so the box stays readable */
[data-theme="dark"] .fortune-widget {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .fortune-new { background: #16a34a; }

@media (max-width: 900px) {
  .fortune-widget { flex-basis: 100%; max-width: none; margin: 0; order: 5; }
}

/* ---- Home page: fortune box to the LEFT of the intro video ---- */
.fortune-video-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 2.5rem;
  flex-wrap: nowrap;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.fortune-video-row .fortune-widget.fortune-home {
  order: 0;
  flex: 0 0 420px;
  max-width: 420px;
  margin: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* match the video card surface */
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  color: #fff;
}
.fortune-video-row .fortune-widget.fortune-home .fortune-text { color: #fff; }
.fortune-video-row .fortune-widget.fortune-home .fortune-author { color: #cbd5e1; }
.fortune-video-row video {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  align-self: center;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  background: #000;
}
@media (max-width: 760px) {
  .fortune-video-row { flex-direction: column; flex-wrap: wrap; }
  .fortune-video-row .fortune-widget.fortune-home { max-width: none; flex: 1 1 auto; }
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Primary pill CTA (right side of banner) */
.cta-pill {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: #166534;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.cta-pill:hover { background: #14532d; }

@media (max-width: 640px) {
  .nav-actions { gap: 0.5rem; }
  .cta-pill { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
}

/* Freeze the nav banner â€” the zoom (A-/A/A+) buttons must NOT resize it.
   BOTH text and spacing are pinned to px. rem-based spacing scales with the
   root font-size that the zoom controls change, so every rem gap/padding in
   the banner is converted to px here with !important. */
.brand-text h1 { font-size: 22px !important; }
.brand-text p  { font-size: 15px !important; }
.visitor-counter { font-size: 15px !important; margin-right: 16px !important; padding: 5.6px 16px !important; }
.visitor-number  { font-size: 30px !important; line-height: 1 !important; }
nav a { font-size: 16px !important; margin-left: 16px !important; padding: 6px 2px !important; }
.cta-pill { font-size: 15px !important; padding: 8.8px 16px !important; }
header .container { gap: 16px !important; padding: 24px 16px !important; }
.nav-actions { gap: 12px !important; }
header { padding: 20px 0 !important; font-size: 16px !important; }
.brand { gap: 12px !important; }
.visitor-counter { gap: 8px !important; }

/* Freeze the accessibility widget (zoom buttons) â€” they must NOT resize
   when the page text-size scale changes. Pinned to px so the root font-size
   set by the A-/A/A+ controls has no effect here. */
.a11y-bar { font-size: 16px !important; }
.a11y-bar #a11y-textsize-label { font-size: 16px !important; }
.a11y-btn { font-size: 16px !important; }

/* ===== Accessibility controls â€” floating widget, bottom-left ===== */
.a11y-bar {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 55;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: max-content;
  max-width: calc(100vw - 2.5rem);
  padding: 0.6rem 0.75rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.a11y-bar #a11y-textsize-label { font-weight: 700; color: #374151; }
.a11y-btn {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.6rem;
  border: 1px solid #166534;
  background: #fff;
  color: #166534;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.a11y-btn[aria-pressed="true"] { background: #166534; color: #fff; }
.a11y-btn:hover { background: #f0fdf4; }
.a11y-btn[aria-pressed="true"]:hover { background: #14532d; color: #fff; }
.a11y-btn:disabled { opacity: 0.4; cursor: not-allowed; background: #fff; color: #94a3b8; border-color: #e5e7eb; }
[data-theme="dark"] .a11y-btn:disabled { background: #1e293b; color: #475569; border-color: #334155; }
[data-theme="dark"] .a11y-bar { background: #0f172a; border-color: #1e293b; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
[data-theme="dark"] .a11y-bar #a11y-textsize-label { color: #cbd5e1; }
[data-theme="dark"] .a11y-btn { background: #1e293b; color: #bbf7d0; border-color: #166534; }
[data-theme="dark"] .a11y-btn:hover { background: #273449; }

/* ===== Dark mode ===== */
[data-theme="dark"] { color-scheme: dark; }

[data-theme="dark"] body { background: #0f172a !important; color: #e2e8f0; }

/* Default (light) body background: lighter blue (passes WCAG AA with black text).
   User request: all body text black. */
body { background: #93c5fd !important; color: #000000; }
h2, h3 { color: #000000 !important; }
.muted { color: #000000 !important; }
.lead { color: #000000 !important; }
footer { color: #000000 !important; }
.hero h2 { color: #000000 !important; }
.hero p.lead { color: #000000 !important; }
.hero a, .hero .phone-link { color: #000000 !important; text-decoration: underline !important; }
/* Page title hero (used by tutorial/guide pages that previously had the
   title inside a custom header) */
.page-hero { background: linear-gradient(160deg,#f0fdf4,#ffffff); border-bottom: 1px solid #e5e7eb; padding: 2rem 0; }
.page-hero h1 { font-size: 2rem; margin: 0 0 0.4rem; color: #111827; }
.page-hero p.lead { font-size: 1.15rem; color: #374151; margin: 0; }
[data-theme="dark"] .page-hero { background: linear-gradient(160deg,#0b3d2e,#134e2e); color: #e7f5ec; border-bottom-color: #14532d; }
[data-theme="dark"] .page-hero h1 { color: #ffffff; }
[data-theme="dark"] .page-hero p.lead { color: #d1fae5; }
[data-theme="dark"] header { background: #111827; }

/* ===== Shared content-area styling (index look, applied to every page) =====
   Tutorial/guide pages wrapped their content in .wrap/.card with their own
   inline (green-tinted) CSS. These rules make all content areas match the
   index exactly. They use !important to override per-page inline duplicates. */
.wrap { max-width: 960px !important; margin: 0 auto !important; padding: 1.5rem 1rem !important; }
main { display: block; }
section { margin: 2.5rem 0; }
h2 { font-size: 1.5rem !important; margin: 0 0 1rem !important; color: #111827; }
h3 { font-size: 1.15rem !important; margin: 0 0 0.5rem !important; color: #111827; }
p { margin: 0 0 1rem; line-height: 1.6; }
li { margin-bottom: 0.5rem; }
.card { background: #ffffff !important; border: 1px solid #e5e7eb !important; border-radius: 14px !important; padding: 1.1rem !important; margin: 1rem 0 !important; box-shadow: 0 2px 8px rgba(0,0,0,.04) !important; }
.card h2,
.card h3 { color: #111827 !important; margin-top: 0; }
.lead { font-size: 1.15rem !important; color: #374151 !important; margin: 0 0 1rem !important; }
.muted { color: #4b5563 !important; font-size: 0.92rem !important; }
.small { font-size: 0.92rem !important; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
th, td { padding: 0.75rem 0.9rem; text-align: left; }
th { background: #f9fafb !important; font-weight: 700; font-size: 0.92rem; color: #111827 !important; }
tr + tr td { border-top: 1px solid #e5e7eb; }
blockquote, .testimonial { margin: 1rem 0; padding: 0.9rem 1rem; background: #ffffff; border-left: 4px solid #166534; border-radius: 0 10px 10px 0; color: #1f2937; }
.testimonial-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.testimonial-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.testimonial-card blockquote.testimonial { margin: 0; padding: 0; background: transparent; border: none; border-left: 4px solid #166534; color: #1f2937; }
.testimonial .attr { font-size: 0.85rem; color: #4b5563; margin-top: 0.75rem; font-style: italic; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 0.35rem 0; }
.checklist li::before { content: "\2713"; color: #166534; font-weight: 700; margin-right: 0.5rem; }
.cta { display: inline-block; padding: 0.8rem 1.2rem; background: #166534; color: #fff; text-decoration: none; border-radius: 10px; font-weight: 700; }
.cta.secondary { background: #ffffff; color: #166534; border: 2px solid #166534; margin-left: 0.5rem; }
.field { width: 100%; padding: 10px; border: 1px solid #767676; border-radius: 6px; font-size: 1rem; font-family: inherit; }
.field-label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.form-row { margin-bottom: 0.9rem; }
.lead-form { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 1.2rem; margin-top: 0.5rem; }
footer { margin-top: 2.5rem; padding: 1.25rem 0; text-align: center; color: #4b5563; border-top: 1px solid #e5e7eb; font-size: 0.95rem; }
:focus { outline: 3px solid #166534; outline-offset: 2px; }
[data-theme="dark"] .brand { color: #f1f5f9; }
[data-theme="dark"] .brand-text h1 { color: #f1f5f9; }
[data-theme="dark"] .brand-text p { color: #94a3b8; }
[data-theme="dark"] nav a { color: #cbd5e1; }
[data-theme="dark"] nav a:hover { color: #4ade80; }

[data-theme="dark"] .hero {
  background: linear-gradient(160deg, #0b3d2e, #134e2e);
  color: #e7f5ec;
  border-bottom-color: #14532d;
}
[data-theme="dark"] .hero h2 { color: #ffffff; }
[data-theme="dark"] .hero p.lead { color: #d1fae5; }

[data-theme="dark"] .card,
[data-theme="dark"] .contact-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .card h3,
[data-theme="dark"] h2,
[data-theme="dark"] h3 { color: #f1f5f9; }
[data-theme="dark"] .card p,
[data-theme="dark"] .card li,
[data-theme="dark"] section p { color: #cbd5e1; }
[data-theme="dark"] .muted { color: #94a3b8; }

[data-theme="dark"] table { background: #1e293b; border-color: #334155; }
[data-theme="dark"] th { background: #273449; color: #e2e8f0; }
[data-theme="dark"] td { color: #cbd5e1; }
[data-theme="dark"] tr + tr td { border-top-color: #334155; }

[data-theme="dark"] blockquote,
[data-theme="dark"] .testimonial { background: #1e293b; color: #e2e8f0; }
[data-theme="dark"] .testimonial-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .testimonial-card .attr { color: #94a3b8; }
[data-theme="dark"] .testimonial-card blockquote.testimonial { color: #cbd5e1; }

[data-theme="dark"] footer { background: #0f172a; color: #94a3b8; border-top-color: #334155; }

[data-theme="dark"] .phone-link { color: #6ee7b7; }
[data-theme="dark"] .pill { background: #14532d; color: #bbf7d0; border-color: #166534; }
[data-theme="dark"] [data-theme="dark"] .cta.secondary { background: #1e293b; color: #4ade80; border-color: #166534; }

/* windows-privacy specific boxes */
[data-theme="dark"] .warning { background: #422006; border-left-color: #f59e0b; color: #e2e8f0; }
[data-theme="dark"] .tip { background: #052e16; border-left-color: #16a34a; color: #e2e8f0; }
[data-theme="dark"] code { background: #0f172a; }

/* Text size accessibility â€” root font-size is set inline by theme.js (double/halve per click) */
html { font-size: 16px; }

/* ===== Back-to-top floating button ===== */
#to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 96px;
  height: 96px;
  display: none; /* shown via JS once user scrolls down */
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: #166534;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: background .15s ease, transform .15s ease;
}
#to-top:hover { background: #14532d; transform: translateY(-2px); }
#to-top:focus-visible { outline: 3px solid #3b82f6; outline-offset: 2px; }
[data-theme="dark"] #to-top { background: #4ade80; color: #06283d; }
[data-theme="dark"] #to-top:hover { background: #22c55e; }
@media (max-width: 640px) {
  #to-top { right: 0.85rem; bottom: 0.85rem; width: 88px; height: 88px; }
  .a11y-bar {
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.5rem 0.6rem;
    max-width: calc(100vw - 1.5rem);
    gap: 0.35rem;
  }
  .a11y-bar #a11y-textsize-label { display: none; }
}

/* ===== Most Popular badge ===== */
.badge-popular {
  display: inline-block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  animation: badge-color 1s ease-in-out infinite;
}

@keyframes badge-color {
  0%, 100% { background-color: #1e40af; }
  16.67% { background-color: #1e40af; }
  33.33% { background-color: #dc2626; }
  50% { background-color: #dc2626; }
  66.67% { background-color: #166534; }
  83.33% { background-color: #166534; }
}
[data-theme="dark"] .badge-popular { color: #06283d; }

/* ===== Slide the sticky header up/down with scroll direction ===== */
header {
  transition: transform 0.35s ease !important;
  will-change: transform;
}
header.header-hidden {
  transform: translateY(-100%) !important;
}
</style>
