/*
Theme Name: Best VPN for Mac Kadence Child
Theme URI: https://bestvpnformac.com/
Template: kadence
Author: Best VPN for Mac
Description: Lightweight Kadence child theme for long-form VPN comparison and review content.
Version: 1.0.3
Text Domain: bvfm-kadence-child
*/

:root {
  --bvfm-ink: #142033;
  --bvfm-muted: #5d6878;
  --bvfm-line: #d9e1ec;
  --bvfm-panel: #f6f8fb;
  --bvfm-soft: #edf6f2;
  --bvfm-accent: #11795f;
  --bvfm-accent-dark: #075b45;
  --bvfm-warn: #8a4b10;
  --bvfm-warn-bg: #fff6e8;
}

.bvfm-page {
  color: var(--bvfm-ink);
  font-size: 18px;
  line-height: 1.7;
}

.home .entry-header {
  margin-bottom: 0;
}

.home .entry-content-wrap {
  padding-top: 0;
}

.home .entry-content > p:first-child:has(.bvfm-page:empty) {
  display: none;
}

#masthead,
#masthead .site-header-wrap,
#masthead .site-header-row-container-inner,
#masthead .site-main-header-wrap {
  background: #edf2f7;
}

#masthead {
  border-bottom: 1px solid var(--bvfm-line);
}

#masthead .site-main-header-wrap .site-container {
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
}

#masthead .site-main-header-inner-wrap {
  min-height: 84px;
}

#masthead .site-title,
#masthead .site-title a,
#masthead .brand {
  color: var(--bvfm-ink);
}

#masthead .main-navigation,
#masthead .mobile-toggle-open-container,
#mobile-drawer .mobile-navigation {
  display: none !important;
}

#masthead .site-header-main-section-right {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.bvfm-language-bar {
  display: none;
  flex: 0 0 auto;
}

.bvfm-language-bar.is-mounted {
  display: block;
}

.bvfm-language-dropdown {
  color: var(--bvfm-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  position: relative;
}

.bvfm-language-dropdown summary {
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--bvfm-ink);
  cursor: pointer;
  display: flex;
  gap: 4px;
  height: 48px;
  list-style: none;
  padding: 10px 0 8px;
  transition: color 160ms ease;
}

.bvfm-language-dropdown summary::-webkit-details-marker {
  display: none;
}

.bvfm-language-dropdown summary::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  content: "";
  height: 0;
  width: 0;
}

.bvfm-language-dropdown[open] summary,
.bvfm-language-dropdown summary:hover,
.bvfm-language-dropdown summary:focus-visible {
  color: var(--bvfm-accent-dark);
}

.bvfm-language-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.bvfm-language-dropdown ul {
  background: #fff;
  border: 1px solid #d8dee7;
  box-shadow: 0 14px 34px rgba(32, 37, 45, 0.12);
  list-style: none;
  margin: 0;
  max-height: min(70vh, 520px);
  min-width: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: min(260px, calc(100vw - 32px));
  z-index: 20;
}

.bvfm-language-dropdown:not([open]) ul {
  display: none;
}

.bvfm-language-dropdown__item {
  margin: 0;
}

.bvfm-language-dropdown__item a {
  color: #565d65;
  display: block;
  padding: 7px 9px;
  text-decoration: none;
  white-space: normal;
  width: 100%;
}

.bvfm-language-dropdown__item a:hover,
.bvfm-language-dropdown__item a:focus-visible,
.bvfm-language-dropdown__item.is-active a {
  background: #f6f7fb;
  color: #20252d;
}

.bvfm-rtl .bvfm-page {
  direction: rtl;
  text-align: start;
}

.bvfm-rtl .bvfm-page table {
  direction: rtl;
}

.bvfm-rtl .bvfm-hero-actions,
.bvfm-rtl .bvfm-card-actions,
.bvfm-rtl .bvfm-language-bar {
  direction: rtl;
}

.bvfm-page :where(h1, h2, h3, h4) {
  color: var(--bvfm-ink);
  line-height: 1.18;
  letter-spacing: 0;
}

.bvfm-hero {
  background-image: linear-gradient(90deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.92) 42%, rgba(248, 251, 255, 0.5) 100%), url("assets/hero-visual.png");
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: cover, auto 100%;
  border-bottom: 1px solid var(--bvfm-line);
  margin: -2rem calc(50% - 50vw) 2.5rem;
  padding: clamp(3rem, 7vw, 6rem) max(1.25rem, calc((100vw - 1120px) / 2));
}

.home .bvfm-hero {
  margin-top: 0;
  padding-top: clamp(0.85rem, 2vw, 1.25rem);
}

.bvfm-hero-inner {
  max-width: 1120px;
}

.bvfm-kicker {
  color: var(--bvfm-accent-dark);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.bvfm-hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  max-width: 980px;
  margin: 0 0 1.1rem;
}

.bvfm-hero .bvfm-lede {
  color: #334155;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 860px;
  margin: 0 0 1.6rem;
}

.bvfm-hero-actions,
.bvfm-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.bvfm-button {
  align-items: center;
  background: var(--bvfm-accent);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.bvfm-button:hover,
.bvfm-button:focus {
  background: var(--bvfm-accent-dark);
  color: #fff;
}

.bvfm-button-secondary {
  background: #fff;
  border: 1px solid var(--bvfm-line);
  color: var(--bvfm-ink);
}

.bvfm-section {
  margin: 0 auto 3rem;
  max-width: 1120px;
}

.bvfm-section-narrow {
  max-width: 880px;
}

.bvfm-note,
.bvfm-warning,
.bvfm-verdict {
  border: 1px solid var(--bvfm-line);
  border-left: 5px solid var(--bvfm-accent);
  background: var(--bvfm-panel);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.bvfm-warning {
  background: var(--bvfm-warn-bg);
  border-left-color: var(--bvfm-warn);
}

.bvfm-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.bvfm-pick,
.bvfm-review-card {
  background: #fff;
  border: 1px solid var(--bvfm-line);
  border-radius: 8px;
  padding: 1rem;
}

.bvfm-pick strong {
  display: block;
  font-size: 1.05rem;
}

.bvfm-pill {
  background: var(--bvfm-soft);
  border: 1px solid #cde7db;
  border-radius: 6px;
  color: var(--bvfm-accent-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.55rem;
}

.bvfm-table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
}

.bvfm-page table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.bvfm-page th,
.bvfm-page td {
  border: 1px solid var(--bvfm-line);
  padding: 0.68rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.bvfm-page th {
  background: #edf2f7;
  color: #1f2937;
  font-weight: 750;
}

.bvfm-page tbody tr:nth-child(even) td {
  background: #fafcff;
}

.bvfm-review-card {
  margin: 2rem 0;
  padding: clamp(1rem, 3vw, 1.7rem);
}

.bvfm-review-card h2 {
  border-bottom: 1px solid var(--bvfm-line);
  margin-top: 0;
  padding-bottom: 0.75rem;
}

.bvfm-review-card h3 {
  margin-top: 1.6rem;
}

.bvfm-review-card ul,
.bvfm-section ul {
  padding-left: 1.2rem;
}

.bvfm-toc {
  background: #fff;
  border: 1px solid var(--bvfm-line);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 1rem;
}

.bvfm-toc a {
  color: var(--bvfm-accent-dark);
  font-weight: 650;
}

.bvfm-meta-line {
  color: var(--bvfm-muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .bvfm-page {
    font-size: 16px;
  }

  .bvfm-hero {
    margin-top: -1rem;
    padding-top: 2.5rem;
  }

  .bvfm-button {
    width: 100%;
  }

  #masthead .site-main-header-wrap .site-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  #masthead .site-main-header-inner-wrap {
    min-height: 76px;
  }
}
