/* =========================================================
   The IPTV Guide – static rebuild
   ========================================================= */

/* Roboto, self-hosted (variable font, weights 100-900) */
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/roboto-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/roboto-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --text: #101218;
  --heading: #040404;
  --muted: #545454;
  --link: #486ed7;
  --blue: #0670b8;
  --blue-soft: #2a6fa8;
  --grey-1: #f2f2f2;
  --grey-2: #f6f6f6;
  --grey-3: #fafafa;
  --grey-4: #f3f5f5;
  --footer: #323f44;
  --container: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.857;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--heading); line-height: 1.3; }
h2 { font-size: 30px; font-weight: 900; }
h3 { font-size: 25px; font-weight: 900; line-height: 1.4; }
h4 { font-size: 22px; font-weight: 300; line-height: 1.5; }
h5 { font-size: 18px; font-weight: 300; line-height: 1.6; }
h6 { font-size: 15px; font-weight: 300; line-height: 1.7; }

p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: #fff;
  padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 40px;
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  text-transform: capitalize;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: #055a94; color: #fff; text-decoration: none; }
.btn-block { width: 100%; }
.btn-soft { background: var(--blue-soft); }
.btn-soft:hover { background: var(--blue); }
.btn-icon { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 98px;
}
.logo img { width: 85px; height: auto; }

.nav-toggle-input { display: none; }
.nav-toggle { display: none; }

.site-nav { display: flex; align-items: center; }
.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* language switcher */
.lang-switch ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0 0 0 12px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 100px;
}
.lang-switch a {
  display: block;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
}
.lang-switch a:hover { color: #fff; text-decoration: none; }
.lang-switch a.current { background: #fff; color: #000; }
.lang-switch .lang-name { display: none; }
.menu > li { position: relative; }
.menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  line-height: 70px;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  transition: color .2s;
}
.menu > li > a:hover,
.menu > li.current > a { color: #fff; }
.caret { width: 10px; height: 10px; }

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-top: 2px solid var(--blue);
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.sub-menu li + li { border-top: 1px solid #eaeaea; }
.sub-menu a {
  display: block;
  padding: 16px 18px;
  color: #000;
  line-height: 1.45;
}
.sub-menu a:hover { color: var(--blue); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 152px 0 126px;
  background: url(../images/hero-tickets.webp) center / cover no-repeat;
  text-align: center;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#000 6%, rgba(48, 48, 48, .56) 100%);
}
.hero-inner { position: relative; max-width: 1080px; }
.hero h1 {
  margin: 20px 0 40px;
  font-size: 55px;
  font-weight: 100;
  line-height: 1.2;
  color: #fff;
}
.hero-arrow { width: 30px; height: 30px; fill: #fff; }

/* ---------- Provider cards ---------- */
.providers {
  background: var(--grey-1);
  padding-bottom: 100px;
}
.provider-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -100px;
  margin-bottom: 20px;
  position: relative;
}
.provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 288px;
  margin: 15px;
  padding: 30px 25px 25px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 50px 50px -10px rgba(0, 0, 0, .1);
  text-align: center;
}
.provider-card--featured {
  width: 300px;
  padding-top: 20px;
  background: #fff url(../images/sparkle.webp) center top / contain no-repeat;
}
.provider-tag { font-weight: 700; font-size: 15px; line-height: 1.7; color: #000; }
.provider-card h4, .provider-card .card-title { color: var(--heading); margin-bottom: 0; font-size: 22px; font-weight: 300; line-height: 1.5; }
.provider-card p { margin-bottom: 10px; }
.providers .center { margin-top: 30px; }

/* sponsor slots (home page and advertise page) */
.sponsor-card { justify-content: flex-start; }
.sponsor-card p { flex: 1; }
.sponsor-logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 90px;
  border: 2px dashed #c9d3dc;
  border-radius: 8px;
  background: #f7f9fb;
  color: #5c6873;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ---------- Most popular ---------- */
.popular {
  position: relative;
  padding: 50px 0;
  background: url(../images/team-standup.webp) center / cover no-repeat;
}
.popular::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(64, 64, 64, .62);
}
.popular .container { position: relative; }
.popular h2 {
  color: rgba(255, 255, 255, .84);
  text-align: center;
  margin-bottom: 30px;
}
.carousel { position: relative; padding: 0 40px; }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-arrow {
  position: absolute;
  top: 40%;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 30px;
  cursor: pointer;
}
.carousel-arrow[hidden] { display: none; }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.post-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--grey-2);
  padding: 0 0 30px;
}
.post-card > a img { width: 100%; aspect-ratio: 1024 / 634; object-fit: cover; }
.post-card h4, .post-card h3 { margin: 20px 20px 10px; font-size: 22px; font-weight: 300; line-height: 1.5; }
.post-card h4 a, .post-card h3 a { color: var(--heading); }
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 20px;
  padding-bottom: 15px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.excerpt { margin: 0 20px; padding-bottom: 25px; flex: 1; }
.post-card .btn { align-self: flex-start; margin: 0 20px; }

/* ---------- How it works ---------- */
.how {
  position: relative;
  padding: 50px 0 150px;
  background: url(../images/bg-pattern.png);
}
.how::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(239, 239, 239, .97), rgba(255, 255, 255, .97));
}
.how-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.how-intro {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 75px 100px 50px 0;
}
.how-intro h5, .how-sub { margin-bottom: 0; font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--heading); }
.separator {
  display: block;
  width: 44px;
  border-top: 2px solid rgba(10, 10, 10, .5);
}
.how-image {
  flex: 0 0 36%;
  min-height: 800px;
  border-radius: 30px;
  background: url(../images/kids-tv.webp) 60% 57% / cover no-repeat;
  box-shadow: 0 50px 100px rgba(0, 0, 0, .25);
}
.steps {
  flex: 0 0 36%;
  list-style: none;
  margin: 0 0 0 -60px;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.step {
  display: flex;
  align-items: flex-start;
  margin: 20px 0;
}
.step-num {
  flex: 0 0 auto;
  min-width: 104px;
  margin: 10px 20px 10px 10px;
  padding: 20px;
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
  font-size: 30px;
  font-weight: 900;
  line-height: 39px;
  color: #000;
  text-align: center;
}
.step h4, .step h3 { color: var(--muted); margin-bottom: 15px; font-size: 22px; line-height: 1.5; }
.step h4 a, .step h4 strong, .step h3 a, .step h3 strong { color: #4b4c4c; font-weight: 700; }

/* ---------- Why us / About ---------- */
.why {
  background: var(--grey-3);
  padding-bottom: 100px;
}
.why-inner {
  display: flex;
  padding-top: 75px;
  padding-bottom: 150px;
}
.why-col, .about-col { flex: 1 1 50%; }
.why-col { padding-right: 200px; }
.eyebrow { font-weight: 700; font-size: 15px; line-height: 1.7; color: var(--heading); }
.why-col h3 { margin-bottom: 20px; }
.why-col > p { margin-bottom: 24px; }
.feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}
.feature-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 2px 10px 0 0;
  fill: #000;
}
.feature h4 { margin-bottom: 5px; }
.feature p { margin-right: 25px; }
.about-col h2 { margin: 10px 0 20px; }
.about-lead { font-weight: 700; font-size: 15px; line-height: 1.7; color: var(--heading); margin-bottom: 30px; }

/* ---------- Call to action ---------- */
.cta {
  background: var(--grey-4);
  padding-bottom: 200px;
}
.cta-box {
  position: relative;
  margin-top: -47px;
  padding: 200px;
  border-radius: 20px;
  background: url(../images/football-tv.webp) center / cover no-repeat;
  box-shadow: 0 50px 100px rgba(0, 0, 0, .5);
  text-align: center;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .22), #000);
}
.cta-box > * { position: relative; }
.cta-box h3 {
  margin-bottom: 50px;
  font-size: 68px;
  font-weight: 900;
  line-height: 1.4;
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, .69);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 50px;
  padding-top: 45px;
  padding-bottom: 45px;
}
.footer-title { color: rgba(255, 255, 255, .7); margin-bottom: 20px; }
.footer-title--spaced { margin-top: 30px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-posts li { margin-bottom: 12px; line-height: 1.6; }
.footer-posts a, .footer-plain a { color: rgba(255, 255, 255, .69); }
.footer-plain a { color: #fff; font-weight: 500; }
.footer-plain li { line-height: 1.6; }
.footer-col .footer-plain li { margin-bottom: 4px; }
.footer-menu li { line-height: 1.5; }
.footer-menu a { color: #9cb8ff; }
.footer-col:nth-child(3) .footer-plain a { color: rgba(255, 255, 255, .69); font-weight: 400; }

.footer-below {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
}
.copyright { color: rgba(255, 255, 255, .7); margin-bottom: 10px; }
.disclaimer { color: #fff; max-width: 700px; }

/* ---------- Promo bar ---------- */
.promo-close-input { display: none; }
.promo {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 0;
  z-index: 200;
  max-width: 800px;
  margin: 0 auto;
  padding: 18px 40px 18px 18px;
  background: #e0e0e0;
  box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}
.promo p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  line-height: 1.5;
  text-align: center;
}
.promo-btn {
  display: inline-block;
  padding: 5px 20px;
  border-radius: 4px;
  background: #0a0000;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}
.promo-btn:hover { color: #fff; text-decoration: none; background: #333; }
.promo-x {
  position: absolute;
  top: -12px;
  right: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 13px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
}
.promo-close-input:checked + .promo { display: none; }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed;
  right: 30px;
  bottom: 110px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--link);
  color: #fff;
}
.to-top svg { width: 14px; height: 14px; }

/* =========================================================
   Inner pages
   ========================================================= */

/* dark header bar with breadcrumbs */
.site-header--solid {
  position: relative;
  padding-bottom: 14px;
  background: linear-gradient(#000, #2e2e2e);
}
.breadcrumbs {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .65);
}
.breadcrumbs a { color: #fff; }
.breadcrumbs span { color: rgba(255, 255, 255, .65); }

/* full-width "page builder" pages (about, contact, articles) */
.builder-content > .wp-block-uagb-container,
.builder-content > * { position: relative; }
.builder-content .uagb-is-root-container.alignfull { width: 100%; max-width: 100%; }

/* article layout */
.page-layout {
  display: grid;
  gap: 60px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.page-layout.with-sidebar { grid-template-columns: 300px minmax(0, 1fr); }
.page-layout.no-sidebar { max-width: 900px; }
.sidebar { min-width: 0; }
.toc-box {
  position: sticky;
  top: 30px;
  padding: 30px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
  font-size: 15px;
  line-height: 1.6;
}
.toc-title { font-weight: 700; color: var(--heading); margin-bottom: 12px; }
.toc-box ol { margin: 0; padding-left: 18px; }
.toc-box ul { padding-left: 16px; }
.toc-box li { margin: 6px 0; }
.toc-box a { color: var(--text); text-decoration: underline; }
.toc-box a:hover { color: var(--blue); }

.entry { min-width: 0; }
.entry-title {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
}
.entry-meta { color: #555; margin-bottom: 40px; }
.entry-meta a { color: #616161; }

.entry-content { overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 0; }
.entry-content h1 { font-size: 40px; font-weight: 900; margin-bottom: 20px; }
.entry-content h2 { margin: 40px 0 20px; }
.entry-content h3 { margin: 32px 0 20px; }
.entry-content h4 { margin: 24px 0 12px; font-weight: 700; }
.entry-content p { margin-bottom: 28.8px; }
.entry-content ul, .entry-content ol { margin: 0 0 28.8px; padding-left: 24px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { text-decoration: underline; }
.entry-content a.wp-block-button__link,
.entry-content a.uagb-buttons-repeater,
.entry-content .uagb-post__inner-wrap a,
.entry-content .post-card a { text-decoration: none; }
.entry-content figure { margin: 0 0 28.8px; }
.entry-content img { border-radius: 4px; }
.entry-content figcaption { font-size: 15px; color: #616161; text-align: center; margin-top: 8px; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content blockquote {
  margin: 0 0 28.8px;
  padding: 10px 24px;
  border-left: 4px solid var(--blue);
  background: var(--grey-2);
}
.entry-content pre, .entry-content code {
  font-family: Consolas, Menlo, monospace;
  font-size: 15px;
  background: #f1f3f4;
  border-radius: 4px;
}
.entry-content code { padding: 2px 6px; }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content pre code { padding: 0; background: none; }
.entry-content hr { border: 0; border-top: 1px solid #e3e3e3; margin: 40px 0; }

/* tables */
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}
.entry-content th, .entry-content td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: top;
}
.entry-content th, .entry-content thead td { background: var(--grey-4); font-weight: 700; }
.entry-content tbody tr:nth-child(even) td { background: #fafafa; }

/* in-content table of contents (shown on tablets/phones) */
.entry-content .uagb-toc__wrap {
  padding: 24px 30px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  background: #fff;
}
.entry-content .uagb-toc__title { font-weight: 700; margin-bottom: 8px; }
.entry-content .uagb-toc__title svg { display: none; }
.entry-content .uagb-toc__list-wrap { display: block !important; }
.entry-content .uagb-toc__list { margin-bottom: 0; }

/* FAQ */
.faq { margin: 0 0 28.8px; }
.faq-item {
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #fff;
}
.faq-item summary {
  position: relative;
  padding: 14px 48px 14px 18px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--blue);
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 18px 4px; }

/* article grids */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 40px 0;
}
.post-grid .post-card { padding-bottom: 30px; }
.post-grid .post-card > a img { aspect-ratio: 16 / 10; }

/* Spectra star ratings: readable label colour */
.entry-content .uag-star-rating__title { color: #333 !important; }

/* author box at the end of articles */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 40px 0 0;
  padding: 24px;
  background: var(--grey-2);
  border-radius: 8px;
}
.entry-content .author-box img { flex: 0 0 72px; border-radius: 14px; }
.author-box .author-name { margin: 0 0 4px; font-weight: 700; font-size: 20px; }
.author-box .author-name a { color: var(--heading); text-decoration: none; }
.author-box .author-bio { margin: 0; font-size: 16px; line-height: 1.7; }

/* previous / next */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid #e3e3e3;
}
.post-nav a[rel="next"] { margin-left: auto; }

/* contact form */
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin: 20px auto 0;
  text-align: left;
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd4d8;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }

/* advertise page */
.ad-intro { padding: 72px 0 40px; text-align: center; }
.ad-intro-inner { max-width: 760px; }
.ad-intro h1 { font-size: 44px; font-weight: 900; margin: 6px 0 16px; }
.ad-intro p { margin-bottom: 28px; }
.ad-options { background: var(--grey-1); padding: 60px 0 80px; }
.ad-options h2 { text-align: center; margin-bottom: 20px; }
.ad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.ad-grid .provider-card { width: auto; margin: 0; }
.ad-how { padding: 60px 0 100px; }
.ad-how-inner { max-width: 760px; }
.ad-how h2 { margin-bottom: 20px; }
.ad-steps { padding-left: 24px; margin: 0 0 20px; }
.ad-steps li { margin-bottom: 12px; }
.ad-note { color: #616161; }

/* 404 page */
.not-found { padding: 70px 0 100px; }
.not-found-inner { max-width: 760px; }
.not-found-code { font-size: 90px; font-weight: 900; line-height: 1; color: var(--blue); margin-bottom: 10px; }
.not-found h1 { font-size: 40px; font-weight: 900; margin-bottom: 14px; }
.not-found p { margin-bottom: 22px; }
.not-found .btn { margin: 0 10px 10px 0; }
.not-found h2 { font-size: 24px; margin: 20px 0 10px; }
.not-found ul { padding-left: 22px; margin-bottom: 26px; }
.not-found-langs a { color: var(--link); }

/* visually hidden text for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Spectra visibility helpers */
@media (min-width: 1025px) { .uag-hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .uag-hide-tab { display: none !important; } }
@media (max-width: 767px) { .uag-hide-mob { display: none !important; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .why-col { padding-right: 60px; }
  .cta-box { padding: 140px 60px; }
  .how-intro { padding-right: 40px; }
}

@media (max-width: 921px) {
  /* mobile header */
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform .2s, background-color .2s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle-input:checked + .nav-toggle .nav-toggle-bar { background: transparent; }
  .nav-toggle-input:checked + .nav-toggle .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-input:checked + .nav-toggle .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .header-inner { flex-wrap: wrap; min-height: 0; }
  .site-nav { display: none; width: 100%; }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .menu {
    flex-direction: column;
    margin-top: 10px;
    background: #fff;
  }
  .menu > li > a {
    color: #000;
    line-height: 1.5;
    padding: 14px 20px;
    border-bottom: 1px solid #eaeaea;
    justify-content: space-between;
  }
  .menu > li.current > a, .menu > li > a:hover { color: var(--blue); }
  .sub-menu {
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    background: #f7f7f7;
  }
  .sub-menu a { padding-left: 36px; }
  .nav-toggle-input:checked ~ .site-nav { display: flex; flex-direction: column; align-items: stretch; }
  .lang-switch { order: -1; background: #fff; margin-top: 10px; padding: 14px 20px; border-bottom: 1px solid #eaeaea; }
  .lang-switch + .menu, .menu { margin-top: 0; }
  .lang-switch ul { margin: 0; border-color: #e3e3e3; flex-wrap: wrap; justify-content: space-between; border-radius: 10px; }
  .lang-switch a { color: #333; padding: 6px 10px; border-radius: 8px; }
  .lang-switch a:hover { color: var(--blue); }
  .lang-switch a.current { background: var(--blue); color: #fff; }
  .lang-switch .lang-code { display: none; }
  .lang-switch .lang-name { display: inline; }

  .hero { padding: 140px 0 140px; }
  .hero h1 { font-size: 40px; }

  .provider-cards { flex-direction: column; }
  .provider-card--featured { order: -1; }
  .provider-card, .provider-card--featured { width: 100%; max-width: 380px; margin: 10px 0; }

  .carousel-track { grid-auto-columns: calc((100% - 20px) / 2); }

  .how-inner { flex-direction: column; }
  .how-intro { padding: 0 0 30px; align-items: flex-start; }
  .how-image { min-height: 420px; }
  .steps { margin: 0; padding: 30px 0 0; }

  .why-inner { flex-direction: column; gap: 60px; padding-bottom: 60px; }
  .why-col { padding-right: 0; }

  .cta { padding-bottom: 100px; }
  .cta-box { padding: 100px 30px; }
  .cta-box h3 { font-size: 46px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 40px; }

  .page-layout, .page-layout.with-sidebar { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .sidebar { display: none; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin: 0 auto; }
  .ad-intro h1 { font-size: 34px; }
}

@media (max-width: 544px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 32px; }
  .carousel { padding: 0; }
  .carousel-track { grid-auto-columns: 88%; }
  .carousel-arrow { display: none; }
  .post-card .btn { padding: 16px 32px; }
  .how-image { min-height: 320px; }
  .step-num { min-width: 70px; padding: 12px; font-size: 24px; }
  .cta-box { padding: 70px 20px; }
  .cta-box h3 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .entry-title { font-size: 26px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .promo { padding: 14px 30px 14px 14px; font-size: 15px; }
  .to-top { bottom: 150px; right: 16px; }
}

/* long-form text on hand-written pages (how we test, about) */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 36px 0 14px; }
.prose p, .prose ul { margin-bottom: 22px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; }
.about-extra { padding: 20px 0 80px; }
