/*
  AffordableProxyHub — "Power" template skin
  Faithful reskin of templatemo_299_power applied to the generated SEO pages.
  Design language: navy body + top band, glossy menu pill, green-orb header band,
  cool gray-green parchment content panel (sidebar left / content right),
  orange/gold headings, gold glossy buttons, dark 3-column footer + copyright bar.
*/

:root {
  --navy: #273545;
  --navy-2: #2f3f52;
  --navy-dark: #1d252f;
  --panel: #e3e8e2;         /* parchment content */
  --panel-side: #ccd4cd;    /* darker sidebar column */
  --card: #f4f7f2;
  --card-line: #bcc6bd;
  --line: #b9c3ba;
  --ink: #333333;
  --ink-soft: #55605a;
  --ink-mute: #6d786f;
  --orange: #d06802;        /* primary headings / links */
  --orange-dk: #a34f00;
  --gold: #edae05;          /* footer headings */
  --gold-2: #996600;
  --em: #e55822;
  --green: #4a8a2f;
  --green-2: #3c7a26;
  --tmo-font: Tahoma, Geneva, Verdana, sans-serif;
  --shell: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--tmo-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--navy) url(templatemo/templatemo_body.jpg) repeat-x top;
}

a { color: var(--orange); }
a:hover { color: var(--orange-dk); }

img { max-width: 100%; }

em { color: var(--em); font-style: italic; }

/* ============================================================
   SITE HEADER  (menu pill + header band + mega-menu tabs)
   ============================================================ */
.site-header {
  width: min(var(--shell), calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0 0;
}

/* --- glossy menu pill --- */
.tmo-menu {
  position: relative;
  border-radius: 24px;
  padding: 6px;
  margin-bottom: 18px;
  background:
    linear-gradient(90deg, #6aa2a6 0%, #86ad5c 18%, #d99a3f 50%, #86ad5c 82%, #6aa2a6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -8px 14px rgba(0, 0, 0, 0.28),
    0 2px 5px rgba(0, 0, 0, 0.45);
}
.tmo-menu::before {
  content: "";
  position: absolute;
  left: 6px; right: 6px; top: 3px;
  height: 45%;
  border-radius: 22px 22px 40px 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.nav-wrap {
  position: relative;
  z-index: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  color: #1a2b12;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.brand:hover { color: #000; }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: radial-gradient(circle at 38% 30%, #eafce0 0%, #8ede63 30%, #2f9b3f 70%, #1e7e34 100%);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}
.nav-links a {
  color: #12240a;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}
.nav-links a:hover { color: #993300; }
.nav-links a.btn { padding: 8px 14px; }

/* --- header band: green orb + yellow-green panel --- */
.tmo-header-band {
  display: flex;
  align-items: stretch;
  gap: 22px;
  padding: 6px 10px 8px;
  margin-bottom: 16px;
}
.tmo-orb {
  flex: 0 0 auto;
  width: 128px;
  height: 128px;
  align-self: center;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 38% 28%, #eafce0 0%, #93e468 24%, #33ab45 62%, #14682b 100%);
  box-shadow:
    0 0 0 9px var(--navy-2),
    inset 0 -10px 22px rgba(0, 0, 0, 0.45),
    0 6px 14px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
}
.tmo-orb::before {
  content: "";
  position: absolute;
  left: 20%; top: 11%;
  width: 60%; height: 34%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}
.tmo-orb span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.tmo-band-panel {
  flex: 1 1 auto;
  border-radius: 16px;
  padding: 22px 30px;
  background: linear-gradient(135deg, #cdd96b 0%, #b8cb4f 46%, #9cb63d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -10px 22px rgba(0, 0, 0, 0.14),
    0 3px 8px rgba(0, 0, 0, 0.4);
}
.tmo-band-title {
  margin: 0 0 10px;
  color: #6a4d08;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.tmo-band-panel p {
  margin: 0 0 12px;
  color: #fbffe9;
  font-size: 15px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   MEGA-MENU TABS (kept for navigation, restyled)
   ============================================================ */
.nav-tabs-wrap { margin-bottom: 4px; }
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}
.nav-tab { position: relative; flex: 0 0 auto; }
.nav-tab summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid #46586c;
  border-radius: 6px;
  background: linear-gradient(180deg, #384a5f, #263443);
  color: #e7edf4;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-tab summary::-webkit-details-marker { display: none; }
.nav-tab summary span { color: var(--gold); margin-left: 5px; }
.nav-tab[open] summary,
.nav-tab summary:hover {
  color: #fff;
  border-color: var(--gold);
}
.nav-panel {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 118px;
  z-index: 60;
  width: min(1100px, calc(100vw - 24px));
  max-height: min(70vh, 620px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid #9aa79b;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 16px;
}
.nav-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dotted #97a398;
}
.nav-panel-heading strong { color: var(--orange); font-size: 15px; }
.nav-panel-heading a { color: var(--green-2); font-size: 13px; text-decoration: none; }
.nav-panel-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.nav-panel-links a {
  border: 1px solid var(--card-line);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
}
.nav-panel-links a:hover { color: var(--orange); border-color: var(--orange); }

/* ============================================================
   BUTTONS (gold glossy pill + olive secondary)
   ============================================================ */
.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 20px;
  padding: 9px 20px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn {
  color: #5c460e;
  background: linear-gradient(180deg, #f4d774 0%, #e7bd45 48%, #cc9a2c 100%);
  border-color: #a9781b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn:hover {
  color: #3d2f06;
  background: linear-gradient(180deg, #ffe68a 0%, #f0c957 48%, #d8a636 100%);
}
.btn-secondary {
  color: #fff;
  background: linear-gradient(180deg, #8a978c 0%, #6f7d72 100%);
  border-color: #5a695e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-secondary:hover { background: linear-gradient(180deg, #97a49a 0%, #7a877d 100%); }

/* ============================================================
   MAIN — parchment content panel
   ============================================================ */
main {
  display: block;
  width: min(var(--shell), calc(100% - 24px));
  margin: 0 auto 40px;
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid #93a094;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 8px 30px 34px;
  overflow: hidden;
}

.container { width: 100%; margin: 0 auto; }

/* --- page hero = post header inside the panel --- */
.hero {
  padding: 26px 4px 20px;
  border-bottom: 4px solid transparent;
  background: url(templatemo/templatemo_hr_divider.jpg) repeat-x bottom;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-mute);
  font-size: 13px;
  margin-bottom: 16px;
}
.crumbs a { color: var(--green-2); text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs span { color: var(--ink-mute); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  border: 1px solid #c7a94a;
  background: #f6ecc6;
  color: #6a4d08;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
}
.badge.green {
  background: #dbeccb;
  border-color: #93b877;
  color: #33641c;
}

.hero h1 {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
}
.hero p {
  max-width: 820px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* --- grid: sidebar (toc) left, content right --- */
.page-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
  padding: 28px 0 0;
}
.content { min-width: 0; order: 2; }

.toc {
  order: 1;
  position: sticky;
  top: 16px;
  background: var(--panel-side);
  border: 1px solid #a9b4aa;
  border-radius: 8px;
  padding: 16px 18px;
}
.toc strong {
  display: block;
  margin-bottom: 10px;
  padding-bottom: 8px;
  color: var(--orange);
  font-size: 16px;
  background: url(templatemo/templatemo_hr_divider.jpg) repeat-x bottom;
}
.toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px dotted #a2ada3;
}
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--orange); }

/* ============================================================
   HEADINGS + SECTIONS
   ============================================================ */
h1, h2, h3, h4, h5, h6 { color: var(--orange); font-weight: 700; }

.section { margin-bottom: 30px; }
.section h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px;
  padding-bottom: 8px;
  background: url(templatemo/templatemo_hr_divider.jpg) repeat-x bottom;
}
.section h3 { font-size: 18px; margin: 0 0 8px; }
.section p { color: var(--ink); margin: 0 0 14px; }
.content > .section:first-child { padding-top: 6px; }

/* ============================================================
   CARDS / BOXES
   ============================================================ */
.card,
.featured-box,
.stat,
.feature,
.provider-card,
.related-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 8px;
  padding: 18px;
}
.featured-box {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #c7a94a;
  background: linear-gradient(135deg, #f6ecc6 0%, #f4f7f2 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.featured-box h2 { margin-top: 0; background: none; padding-bottom: 0; }

.stats-grid,
.feature-grid,
.provider-grid,
.related-grid {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid,
.provider-grid,
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat { text-align: center; }
.stat-value {
  display: block;
  font-weight: 800;
  font-size: 20px;
  color: var(--orange);
}
.stat-label { color: var(--ink-mute); font-size: 12px; }

.provider-card { position: relative; }
.provider-card.featured {
  border-color: #93b877;
  background: linear-gradient(135deg, #dbeccb 0%, #f4f7f2 65%);
}
.provider-card h3 { margin: 0 0 8px; }
.provider-rank {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #e7bd45, #cc9a2c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.provider-card.featured .provider-rank {
  background: radial-gradient(circle at 40% 30%, #9be46a, #2f9b3f);
}
.provider-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-mute);
  font-size: 13px;
  margin: 10px 0;
}
.provider-card p { color: var(--ink); }

.related-card { text-decoration: none; display: block; }
.related-card strong { display: block; color: var(--orange); margin-bottom: 6px; }
.related-card span { color: var(--ink-soft); font-size: 13px; }
.related-card:hover { border-color: var(--orange); }

.feature h3 { font-size: 16px; }
.feature p { color: var(--ink); margin: 0; }

/* ============================================================
   LISTS
   ============================================================ */
.plain-list,
.check-list,
.step-list {
  padding: 0;
  margin: 14px 0;
  list-style: none;
}
.check-list li {
  color: var(--ink);
  padding: 6px 0 6px 28px;
  background: url(templatemo/templatemo_list.png) no-repeat 0 8px;
}
.plain-list li {
  color: var(--ink);
  padding: 6px 0 6px 20px;
  position: relative;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--orange);
}

.step-list { counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  background: var(--card);
  margin-bottom: 10px;
}
.step-list li::before {
  content: counter(steps);
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, #e7bd45, #cc9a2c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.step-list li h3 { margin: 0 0 4px; font-size: 16px; }
.step-list li p { margin: 0; color: var(--ink); }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 6px;
}
.pros-cons .card h3 { margin-top: 0; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  margin-top: 6px;
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--card-line);
  color: var(--ink);
  font-size: 13px;
}
th {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, #5f6f63, #4b584e);
}
tbody tr:first-child td {
  background: #dbeccb;
  color: #234015;
  font-weight: 700;
}
tbody tr:nth-child(even) td { background: rgba(0, 0, 0, 0.03); }
td a { color: var(--green-2); font-weight: 700; }
td a:hover { color: var(--orange); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  padding: 16px 0;
  background: url(templatemo/templatemo_hr_divider.jpg) repeat-x bottom;
}
.faq-item:last-child { background: none; }
.faq-item h3 { font-size: 17px; margin: 0 0 6px; }
.faq-item p { color: var(--ink); margin: 0; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  text-align: center;
  border: 1px solid #c7a94a;
  border-radius: 10px;
  padding: 30px 22px;
  margin-top: 8px;
  background: linear-gradient(135deg, #f6ecc6 0%, #dbeccb 100%);
}
.cta h2 { margin: 0 0 10px; background: none; padding: 0; }
.cta p { color: var(--ink-soft); max-width: 720px; margin: 0 auto 18px; }
.cta .btn,
.cta .btn-secondary { margin: 4px; }

/* ============================================================
   FOOTER + COPYRIGHT
   ============================================================ */
.site-footer {
  width: min(var(--shell), calc(100% - 24px));
  margin: 0 auto;
  color: #fff;
}
.footer-wrap { padding: 10px 10px 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  margin-bottom: 22px;
}
.footer-grid h4 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 16px;
}
.footer-grid a {
  display: block;
  color: #dfe6ee;
  font-size: 13px;
  padding: 4px 0;
  text-decoration: none;
  border-bottom: 1px dotted #4a5a6b;
}
.footer-grid a:hover { color: var(--gold); }
.fine-print {
  border-top: 1px solid #3f5063;
  color: #8ea0b3;
  padding-top: 16px;
  font-size: 12px;
}

.tmo-copyright {
  background: var(--navy-dark);
  border-top: 1px solid #3f5063;
  color: #7d8ea1;
  text-align: center;
  padding: 14px 20px;
  font-size: 12px;
}
.tmo-copyright a { color: #c8d4e1; text-decoration: none; }
.tmo-copyright a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* base the shells on the viewport (not the possibly-inflated body width) */
  .site-header,
  main,
  .site-footer { width: calc(100vw - 20px); max-width: calc(100vw - 20px); }
  .nav-links { gap: 12px; font-size: 13px; }
  .nav-links a:not(.btn) { display: none; }
  .tmo-header-band { display: block; text-align: center; }
  .tmo-band-panel { display: block; width: auto; min-width: 0; }
  .tmo-orb { width: 96px; height: 96px; display: block; margin: 0 auto 14px; }
  .tmo-band-title,
  .tmo-band-panel p { overflow-wrap: anywhere; }
  main { padding: 8px 16px 26px; }
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .content,
  .hero,
  .badge-row,
  .toc { min-width: 0; max-width: 100%; }
  .toc { position: static; order: 0; }
  .nav-panel { top: 108px; width: calc(100vw - 18px); }
  .nav-panel-links { grid-template-columns: 1fr; }
  /* let comparison tables shrink to fit instead of forcing a 680px min-width */
  table { min-width: 0; }
  .table-wrap { max-width: 100%; }
  .stats-grid,
  .feature-grid,
  .provider-grid,
  .related-grid,
  .footer-grid,
  .pros-cons { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tmo-band-panel { padding: 16px 18px; }
  .hero h1 { font-size: 24px; }
}
