/* =============================================================================
   My Gymnastics Scores: brand layer
   -----------------------------------------------------------------------------
   The design source of truth for the website. Mobile first: the base rules are
   for a 360px phone, and min-width queries add the wider layouts.
   To change the look, edit this file and re-run deploy/02-theme-plugins.sh.

   CONTRAST RULE (WCAG 2.2 AA, 4.5:1 for body text)
   --mgs-blue #1971F3 is 4.47:1 on white and 4.3:1 on --mgs-ground. That FAILS
   for normal text. So text, links, buttons and the CTA band use
   --mgs-blue-dark #0F55BD (6.88:1 with white). --mgs-blue is for borders, rules
   and other marks that carry no text.
   ========================================================================== */

:root {
  --mgs-blue:        #1971F3;
  --mgs-blue-dark:   #0F55BD;
  --mgs-light:       #E3ECFA;
  /* One standard background for every section, so the client can move blocks (LandingPage #2, comments 612 and
     620, 19 Nov 2026): the app's off-white for the page, the header, the light bands, the hero and the footer
     (dark text there now). The blue CTA band keeps its colour. */
  --mgs-ground:      #FEFAF6;
  --mgs-ink:         #1C1C1E;
  --mgs-body:        #3A3A3E;
  --mgs-muted:       #3F4A5C;
  --mgs-line:        #E7E1D7;
  --mgs-white:       #FFFFFF;
  --mgs-footer:      #FEFAF6;
  --mgs-footer-text: #3A3A3E;
  --mgs-note:        #FFFF99;

  /* Segoe UI first, and no bold text anywhere: the client's start point for his own changes (LandingPage #2,
     19 Nov 2026). Only Windows has Segoe UI and no font file is loaded, so other devices use their system font. */
  --mgs-font: "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;

  --mgs-radius-card: 18px;
  --mgs-radius-pill: 24px;
  --mgs-tap:         48px;   /* minimum height of anything you tap */
  --mgs-gap:         clamp(16px, 3vw, 28px);
  --mgs-section:     clamp(48px, 8vw, 96px);
  --mgs-shadow:      0 8px 24px rgba(28, 28, 30, .06);
}

/* ============================================================ BASE ========= */

/* Full-width blocks use 100vw, and 100vw includes the scrollbar. That gave a
   horizontal scroll on every page on nu-look. "clip" (not "hidden") keeps
   position: sticky working. */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

body {
  font-family: var(--mgs-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--mgs-body);
  background: var(--mgs-ground);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mgs-font);
  color: var(--mgs-ink);
  line-height: 1.2;
  font-weight: 400;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 400; }
/* Bold in the page content also (LandingPage #2). */
strong, b, th, dt { font-weight: 400; }
/* The theme's own content background (a GeneratePress setting, cream on the live site) follows the page ground. */
.one-container .container, .separate-containers .inside-article, .separate-containers .comments-area,
.separate-containers .page-header, .separate-containers .paging-navigation, .inside-page-header,
.site-header, .site-header .main-navigation, .site-info.mgs-footer { background-color: var(--mgs-ground); }
.main-navigation .main-nav ul li:not(.mgs-nav-cta) > a, .main-navigation .main-nav ul li:not(.mgs-nav-cta)[class*="current-menu-"] > a,
.main-navigation .main-nav ul li:not(.mgs-nav-cta):hover > a { background-color: transparent; }

p, li, td, th, dd { overflow-wrap: break-word; }

a { color: var(--mgs-blue-dark); text-underline-offset: 2px; }
a:hover { color: var(--mgs-ink); }

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

/* Visible focus ring on everything you can reach with the keyboard. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--mgs-blue-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ============================================================ HEADER ======= */

.site-header { border-bottom: 1px solid var(--mgs-line); }
.main-navigation .main-nav ul li a {
  font-weight: 400;
  min-height: var(--mgs-tap);
  display: flex;
  align-items: center;
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a { text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { min-height: var(--mgs-tap); }

/* ============================================================ BUTTONS ====== */

/* Two classes, so these beat the GeneratePress button rule on specificity,
   not only on load order. */
.wp-block-button .wp-block-button__link,
.mgs-section .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--mgs-tap);
  padding: 12px 24px;
  border-radius: var(--mgs-radius-pill);
  border: 2px solid var(--mgs-blue-dark);
  background: var(--mgs-blue-dark);
  color: var(--mgs-white);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}
.wp-block-button .wp-block-button__link:hover {
  background: var(--mgs-ink);
  border-color: var(--mgs-ink);
  color: var(--mgs-white);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--mgs-blue-dark);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--mgs-blue-dark);
  color: var(--mgs-white);
}
.wp-block-buttons { gap: 12px; }

/* ============================================================ SECTIONS ===== */

.mgs-section {
  padding-block: var(--mgs-section);
}
.mgs-section > * + * { margin-top: var(--mgs-gap); }

.mgs-eyebrow {
  margin: 0 0 8px;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mgs-blue-dark);
}

.mgs-lead {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--mgs-muted);
  max-width: 62ch;
}

/* Hero. For text beside a picture, put a Columns block inside it: Columns
   stack on a phone and sit side by side on a wide screen by themselves. */
.mgs-hero {
  padding-block: clamp(32px, 7vw, 88px);
}
.mgs-hero .wp-block-columns { align-items: center; gap: var(--mgs-gap); }
.mgs-hero h1 { margin-bottom: 12px; }
.mgs-hero img { border-radius: var(--mgs-radius-card); }

/* ============================================================ CARDS ======== */

/* min(100%, 260px) stops a card forcing a horizontal scroll at 360px. */
.mgs-cards {
  display: grid;
  gap: var(--mgs-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.mgs-cards > * { margin: 0; }

.mgs-card {
  background: var(--mgs-white);
  border: 1px solid var(--mgs-line);
  border-radius: var(--mgs-radius-card);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--mgs-shadow);
}
.mgs-card > :first-child { margin-top: 0; }
.mgs-card > :last-child { margin-bottom: 0; }
.mgs-card h3 { margin-bottom: 8px; }
.mgs-card img { border-radius: 12px; }

/* ============================================================ STEPS ======== */

.mgs-steps {
  display: grid;
  gap: var(--mgs-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  padding: 0;
  list-style: none;
}
.mgs-steps > * { margin: 0; }

/* 20px 800 text counts as large text; dark blue on light blue is 5.78:1. */
.mgs-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 12px;
  border-radius: 50%;
  background: var(--mgs-light);
  color: var(--mgs-blue-dark);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

/* ============================================================ PLANS ======== */

.mgs-plan {
  position: relative;
  background: var(--mgs-white);
  border: 1px solid var(--mgs-line);
  border-radius: var(--mgs-radius-card);
  padding: clamp(24px, 4vw, 32px);
}
.mgs-plan ul { padding-left: 1.2em; }
.mgs-plan li { margin-bottom: 6px; }
.mgs-plan-best {
  border: 2px solid var(--mgs-blue);
  box-shadow: 0 12px 32px rgba(15, 85, 189, .14);
}

.mgs-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--mgs-radius-pill);
  background: var(--mgs-blue-dark);
  color: var(--mgs-white);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.5;
}

/* ============================================================ STORE BADGES = */

.mgs-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.mgs-store-badges > * { margin: 0; }
.mgs-store-badges a { display: inline-flex; min-height: var(--mgs-tap); align-items: center; }
.mgs-store-badges img { height: 52px; width: auto; }

/* ============================================================ COMPARE ====== */

/* The table scrolls inside its own box on a phone; the page never does. */
.mgs-compare {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.mgs-compare table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--mgs-white);
  border-radius: var(--mgs-radius-card);
}
.mgs-compare th,
.mgs-compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--mgs-line);
  text-align: left;
  vertical-align: top;
}
.mgs-compare thead th {
  background: var(--mgs-light);
  color: var(--mgs-ink);
  font-weight: 400;
}
.mgs-compare td:not(:first-child),
.mgs-compare th:not(:first-child) { text-align: center; }

/* ============================================================ FAQ ========== */

.mgs-faq details,
details.mgs-faq {
  border-bottom: 1px solid var(--mgs-line);
  padding: 0;
}
.mgs-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--mgs-tap);
  padding: 12px 0;
  cursor: pointer;
  font-weight: 400;
  color: var(--mgs-ink);
  list-style: none;
}
.mgs-faq summary::-webkit-details-marker { display: none; }
.mgs-faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--mgs-blue-dark);
}
.mgs-faq details[open] > summary::after,
details.mgs-faq[open] > summary::after { content: "\2212"; }
.mgs-faq details > :not(summary),
details.mgs-faq > :not(summary) { margin: 0 0 16px; }

/* ============================================================ CTA BAND ===== */

.mgs-cta {
  background: var(--mgs-blue-dark);
  color: var(--mgs-white);
  border-radius: var(--mgs-radius-card);
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px);
  text-align: center;
}
.mgs-cta.alignfull { border-radius: 0; }
.mgs-cta h2, .mgs-cta h3, .mgs-cta p, .mgs-cta li { color: var(--mgs-white); }
.mgs-cta a:not(.wp-block-button__link) { color: var(--mgs-white); }
.mgs-cta .mgs-store-badges,
.mgs-cta .wp-block-buttons { justify-content: center; }
.mgs-cta .wp-block-button .wp-block-button__link {
  background: var(--mgs-white);
  border-color: var(--mgs-white);
  color: var(--mgs-blue-dark);
}
.mgs-cta .wp-block-button .wp-block-button__link:hover {
  background: var(--mgs-light);
  border-color: var(--mgs-light);
  color: var(--mgs-ink);
}
.mgs-cta a:focus-visible { outline-color: var(--mgs-white); }

/* ============================================================ NOTE ========= */

.mgs-note {
  background: var(--mgs-note);
  color: var(--mgs-ink);
  border-radius: 12px;
  padding: 14px 18px;
}
.mgs-note a { color: var(--mgs-ink); }

/* ============================================================ LEGAL + TOC == */

.mgs-legal {
  max-width: 760px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.7;
}
.mgs-legal h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-top: 2em; }
.mgs-legal h3 { font-size: 1.15rem; margin-top: 1.5em; }
.mgs-legal li { margin-bottom: 6px; }

.mgs-toc {
  background: var(--mgs-light);
  border-radius: var(--mgs-radius-card);
  padding: 20px 24px;
}
.mgs-toc ol, .mgs-toc ul { margin: 0; padding-left: 1.2em; }
.mgs-toc li { margin: 6px 0; }
.mgs-toc a { color: var(--mgs-blue-dark); }

/* ============================================================ POSTS ======== */

/* Article body. Also on every single post, so a post written in wp-admin
   without the class still reads well. */
.mgs-post,
.single-post .entry-content {
  max-width: 760px;
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.7;
}
.mgs-post h2,
.single-post .entry-content h2 { margin-top: 1.8em; }
.mgs-post img,
.single-post .entry-content img { border-radius: 12px; }
.single-post .entry-header { max-width: 760px; margin-inline: auto; }
.single-post .entry-meta { color: var(--mgs-muted); }
.single-post .post-image img { border-radius: var(--mgs-radius-card); }

/* Blog list cards. */
.blog .inside-article,
.archive .inside-article {
  background: var(--mgs-white);
  border: 1px solid var(--mgs-line);
  border-radius: var(--mgs-radius-card);
}

/* ============================================================ FOOTER ======= */

.site-info {
  background: var(--mgs-footer);
  color: var(--mgs-footer-text);
}
.site-info .inside-site-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-block: 28px;
  text-align: center;
}
.mgs-footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mgs-footer-menu a {
  display: inline-flex;
  align-items: center;
  min-height: var(--mgs-tap);
  color: var(--mgs-ink);
  font-weight: 400;
}
.mgs-footer-menu a:hover { color: var(--mgs-blue-dark); }
.site-info a:focus-visible { outline-color: var(--mgs-ink); }
.site-info .copyright { color: var(--mgs-footer-text); font-size: .9rem; }

/* ============================================================ DESIGN ======= */
/* The Claude Design canvas (Main, Features, FAQ, Blog), section by section.
   These rules come last, so they win over the generic parts above.
   One deliberate change: the canvas puts white text on #1971F3 (4.47:1), which
   fails WCAG AA, so buttons and the CTA band use --mgs-blue-dark (6.88:1). */

/* A classic theme wraps the children of a group block in
   .wp-block-group__inner-container. "display: contents" lets the children of
   these layout groups take part in their grid or flex row. */
:is(.mgs-cards, .mgs-plans, .mgs-blog-layout, .mgs-legal-layout, .mgs-sports-row, .mgs-phones, .mgs-head-row,
    .mgs-plan-head, .mgs-ask, .mgs-icon-card, .mgs-plan, .mgs-post-meta)
  > .wp-block-group__inner-container { display: contents; }
/* GeneratePress pads every group's inner wrapper by 40px. Nested groups get none. */
.wp-block-group .wp-block-group > .wp-block-group__inner-container { padding: 0; }
.mgs-card > .wp-block-group__inner-container > * { margin-inline: 0; max-width: none; }

/* Type and spacing of the canvas. */
h1 { font-size: clamp(2.2rem, 5.5vw, 3.375rem); line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.375rem); line-height: 1.15; }
.mgs-section { padding-block: clamp(56px, 8vw, 88px); }
.mgs-page-head { padding-block: clamp(40px, 6vw, 56px); }
.mgs-page-head h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
.mgs-lead { color: #55555A; font-size: clamp(1.05rem, 2vw, 1.125rem); }
.mgs-hero .mgs-lead { font-size: clamp(1.1rem, 2.2vw, 1.25rem); }
.mgs-light { background: var(--mgs-ground); }
.mgs-white { background: var(--mgs-ground); border-top: 1px solid var(--mgs-line); }
.mgs-muted, .mgs-note-small { color: #55555A; font-size: 15px; }
.mgs-note-small strong { color: var(--mgs-ink); }

/* Header: "Get the app" button at the end of the menu. */
.main-navigation .mgs-nav-cta > a {
  background: var(--mgs-blue-dark); color: var(--mgs-white) !important; border-radius: var(--mgs-radius-pill);
  line-height: 44px !important; padding: 0 20px !important; margin-left: 12px; font-weight: 400;
}
.main-navigation .mgs-nav-cta > a:hover { background: var(--mgs-ink); }
.main-navigation .main-nav ul li a { font-weight: 400; color: var(--mgs-ink); }
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--mgs-blue-dark); }
.site-header { border-bottom: 1px solid var(--mgs-line); }
.site-logo img, .custom-logo { max-height: 44px; width: auto; border-radius: 10px; }
.main-title { font-size: 20px; font-weight: 400; }
.main-title a { color: var(--mgs-ink); text-decoration: none; }

/* Pill above the hero title. */
.mgs-pill {
  display: inline-block; background: var(--mgs-light); color: var(--mgs-blue-dark);
  border-radius: 16px; padding: 6px 14px; font-size: 14px; font-weight: 400; margin: 0 0 6px;
}

/* Phones: a screenshot in a dark frame, as on the canvas. */
.mgs-phone img {
  border-radius: 36px; display: block;
  box-shadow: 0 0 0 8px var(--mgs-ink), 0 24px 50px rgba(28, 28, 30, .22);
}
.mgs-phone { margin: 8px auto; max-width: 250px; }
.mgs-phones { display: flex; justify-content: center; align-items: flex-end; gap: 28px; padding: 12px 0 20px; }
.mgs-phones .mgs-phone { margin: 0; }
.mgs-phone-front { max-width: 230px; }
.mgs-phone-back { max-width: 200px; margin-bottom: 40px !important; }
@media (max-width: 600px) { .mgs-phone-back { display: none; } .mgs-phone-front { max-width: 240px; } }

/* Hero, How it works and feature rows: columns with a wide gap. */
.mgs-hero-cols, .mgs-how-cols, .mgs-feature, .mgs-latest-cols { gap: clamp(28px, 5vw, 56px) !important; }
.mgs-hero { padding-block: clamp(48px, 7vw, 80px); }
.mgs-hero-cols h1 { margin: 10px 0 18px; }
@media (max-width: 781px) {
  .mgs-feature-phone-left .wp-block-column:first-child { order: 2; }   /* text first on a phone */
}

/* "Made for three sports" row between two lines. */
.mgs-sports-band { background: var(--mgs-white); border-block: 1px solid var(--mgs-line); padding-block: 36px !important; }
.mgs-sports-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.mgs-sports-row > * { margin: 0 !important; }
.mgs-sports-label { font-size: 18px; font-weight: 400; color: var(--mgs-ink); }
.mgs-sports { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: 17px; color: #55555A; }
.mgs-sports li { margin: 0; }
.mgs-apparatus-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mgs-apparatus-row img { width: 40px; height: 40px; }
.mgs-feature .mgs-apparatus-row img { width: 44px; height: 44px; }

/* Cards with a line icon. */
.mgs-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.mgs-card { background: var(--mgs-white); border: 1px solid var(--mgs-line); border-radius: var(--mgs-radius-card);
  padding: 28px; box-shadow: none; }
.mgs-icon-card { display: flex; flex-direction: column; gap: 12px; }
.mgs-icon-card > *, .mgs-icon-card h3, .mgs-icon-card p { margin: 0 !important; }
.mgs-icon-card h3 { font-size: 20px; font-weight: 400; }
.mgs-icon-card p { color: #55555A; }
.mgs-icon { color: var(--mgs-blue); display: block; }

/* How it works: numbered steps in blue circles. */
.mgs-steps-list { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: mgs-step; display: grid; gap: 18px; }
/* The text stays one flow (bold lead words, then the rest); the number sits in the left gutter. */
.mgs-steps-list li { counter-increment: mgs-step; position: relative; padding: 6px 0 0 52px; min-height: 36px;
  font-size: 17px; line-height: 1.5; margin: 0; }
.mgs-steps-list li::before {
  position: absolute; left: 0; top: 0;
  content: counter(mgs-step); width: 36px; height: 36px; border-radius: 18px;
  background: var(--mgs-blue-dark); color: var(--mgs-white); font-weight: 400;
  display: flex; align-items: center; justify-content: center;
}
.mgs-steps-list strong { color: var(--mgs-ink); }

/* Plans. */
.has-text-align-center { text-align: center; margin-inline: auto; }
.mgs-plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  max-width: 860px; margin: 40px auto 24px !important; }
.mgs-plan { background: var(--mgs-white); border: 1px solid var(--mgs-line); border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px; }
.mgs-plan > *, .mgs-plan h3, .mgs-plan p, .mgs-plan ul { margin: 0 !important; }
.mgs-plan-best { border: 2px solid var(--mgs-blue); }
.mgs-plan-head { display: flex; justify-content: space-between; align-items: center; }
.mgs-plan h3 { font-size: 22px; font-weight: 400; }
.mgs-badge { background: var(--mgs-blue-dark); color: var(--mgs-white); border-radius: 10px; padding: 4px 10px;
  font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; display: inline-block; }
.mgs-price { font-size: 40px; font-weight: 400; color: var(--mgs-ink); line-height: 1.1; }
.mgs-price span { font-size: 18px; font-weight: 400; color: #55555A; }
.mgs-plan ul { padding-left: 20px; line-height: 1.9; color: #55555A; }
.mgs-plan .wp-block-buttons { margin-top: auto !important; }
.mgs-btn-full, .mgs-btn-full .wp-block-button__link { width: 100%; }

/* Buttons: outline style of the canvas. */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--mgs-white); color: var(--mgs-blue-dark); border: 0; box-shadow: inset 0 0 0 1.5px var(--mgs-blue-dark);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--mgs-light); }

/* "From the blog" heading row and the post cards. */
.mgs-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.mgs-head-row > * { margin: 0 !important; }
.mgs-more-link a { font-weight: 400; }
.mgs-post-cards .wp-block-post-template { gap: 24px; padding: 0; margin: 32px 0 0; }
.mgs-post-cards-plain .wp-block-post { background: none; border: 0; padding: 0; list-style: none; }
.mgs-post-cards-plain .wp-block-post > * { margin: 0 0 10px !important; }
.mgs-post-cards-plain .wp-block-post-featured-image img { border-radius: 16px; }
.mgs-post-meta { display: flex; gap: 6px; font-size: 13px; color: #55555A; }
.mgs-post-meta > * { margin: 0 !important; }
.mgs-post-meta .wp-block-post-terms a { color: #55555A; text-decoration: none; }
.mgs-post-meta .wp-block-post-date::before { content: "\00B7"; margin-right: 6px; }
.mgs-post-cards .wp-block-post-title { font-size: 20px; font-weight: 400; line-height: 1.3; }
.mgs-post-cards .wp-block-post-title a { color: var(--mgs-ink); text-decoration: none; }
.mgs-post-cards .wp-block-post-title a:hover { color: var(--mgs-blue-dark); }
.mgs-post-cards .wp-block-post-excerpt { color: #55555A; font-size: 15px; }
@media (max-width: 781px) { .mgs-post-cards .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }

/* Blog page: latest post large, cards, then the side column. */
.mgs-blog-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .mgs-blog-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
.mgs-latest .wp-block-post-template { padding: 0; margin: 0; list-style: none; }
.mgs-latest .wp-block-post-featured-image img { border-radius: 16px; }
.mgs-latest .wp-block-post-title { font-size: 28px; margin: 10px 0; }
.mgs-latest .wp-block-post-title a { color: var(--mgs-ink); text-decoration: none; }
.mgs-blog-main .mgs-post-cards .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.mgs-blog-main .mgs-post-cards .wp-block-post-title { font-size: 18px; }
.wp-block-query-pagination { margin-top: 32px; gap: 8px; }
.wp-block-query-pagination .page-numbers, .wp-block-query-pagination-next {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--mgs-line); border-radius: 20px; background: var(--mgs-white); color: var(--mgs-ink);
  text-decoration: none; font-weight: 400;
}
.wp-block-query-pagination .page-numbers.current { background: var(--mgs-blue-dark); border-color: var(--mgs-blue-dark); color: var(--mgs-white); }
.mgs-blog-side > .wp-block-group__inner-container { display: flex; flex-direction: column; gap: 20px; }
.mgs-blog-side > .wp-block-group__inner-container > * { margin: 0 !important; }
.mgs-search .wp-block-search__label { font-weight: 400; font-size: 14px; color: var(--mgs-ink); }
.mgs-search .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.mgs-search .wp-block-search__input { flex: 1; min-width: 0; border: 1px solid var(--mgs-blue); border-radius: 22px; padding: 10px 16px; }
.mgs-search .wp-block-search__button { border-radius: 50%; width: 44px; height: 44px; padding: 0; margin: 0;
  background: var(--mgs-blue-dark); color: var(--mgs-white); border: 0; display: flex; align-items: center; justify-content: center; }
.mgs-search .wp-block-search__button svg { fill: currentColor; width: 20px; height: 20px; }
.mgs-side-card { padding: 20px; }
.mgs-side-card h2 { font-size: 17px; margin: 0 0 10px; }
.mgs-side-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mgs-side-card a { color: var(--mgs-ink); text-decoration: none; }
.mgs-side-card a:hover { color: var(--mgs-blue-dark); }
.mgs-side-cta { background: var(--mgs-blue-dark); border: 0; padding: 22px; }
.mgs-side-cta h3, .mgs-side-cta p { color: var(--mgs-white); margin: 0 0 10px; }
.mgs-side-cta h3 { font-size: 18px; }
.mgs-side-cta .wp-block-button__link { background: var(--mgs-white) !important; color: var(--mgs-blue-dark) !important; }

/* Features: the comparison table. */
.mgs-compare { border: 1px solid var(--mgs-line); border-radius: 16px; background: var(--mgs-white); overflow-x: auto; margin: 32px 0; }
.mgs-compare table { border-collapse: collapse; width: 100%; border: 0; }
.mgs-compare th, .mgs-compare td { border: 0; border-bottom: 1px solid var(--mgs-line); padding: 14px 18px; text-align: left; }
@media (max-width: 480px) { .mgs-compare table { min-width: 0; } .mgs-compare th, .mgs-compare td { padding: 12px 8px; font-size: 0.9375rem; } }
.mgs-compare tr:last-child td { border-bottom: 0; }
.mgs-compare th:not(:first-child), .mgs-compare td:not(:first-child) { text-align: center; width: 18%; }
.mgs-compare .mgs-premium-col { color: var(--mgs-blue-dark); }

/* FAQ: each question in a card; open card has a blue border. */
.mgs-faq-group { font-size: 22px; margin: 32px 0 14px !important; }
.mgs-faq > .wp-block-group__inner-container { display: grid; gap: 12px; }
.mgs-faq details { background: var(--mgs-white); border: 1px solid var(--mgs-line); border-radius: 16px; margin: 0; }
.mgs-faq details[open] { border-color: var(--mgs-blue); }
.mgs-faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-size: 18px; font-weight: 400; color: var(--mgs-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.mgs-faq summary::-webkit-details-marker { display: none; }
.mgs-faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--mgs-blue-dark); flex: none; }
.mgs-faq details[open] summary::after { content: "\2212"; }
.mgs-faq details > p { padding: 0 24px 20px; margin: 0; color: #55555A; }
.mgs-ask { background: var(--mgs-light); border-radius: 20px; padding: 32px; margin-top: 32px !important;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.mgs-ask h2 { font-size: 24px; margin: 0 0 6px; }
.mgs-ask p { margin: 0; color: var(--mgs-muted); }
.mgs-ask .wp-block-buttons { margin: 0 !important; }

/* CTA band: text on the left, store buttons on the right. */
.mgs-cta { text-align: left; border-radius: 0; padding-block: clamp(48px, 7vw, 72px); }
.mgs-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); margin: 0 0 10px; }
.mgs-cta p { color: var(--mgs-light); font-size: 18px; margin: 0; }
.mgs-cta-row { gap: 28px !important; }
.mgs-cta-row .wp-block-column:last-child .mgs-store-badges { justify-content: flex-end; }
@media (max-width: 781px) { .mgs-cta-row .wp-block-column:last-child .mgs-store-badges { justify-content: flex-start; } }

/* Store buttons: dark pills. GeneratePress prints its button colours after this
   file, so the rule needs the extra classes to win. */
.wp-block-button.mgs-store-badge .wp-block-button__link.wp-element-button {
  background: var(--mgs-ink); color: var(--mgs-white); border-radius: 12px; border: 0; box-shadow: none;
  min-height: 52px; padding: 6px 22px; line-height: 1.15; font-size: 19px; font-weight: 400; text-align: left;
}
.wp-block-button.mgs-store-badge .wp-block-button__link small { display: block; font-size: 12px; font-weight: 400; }
.wp-block-button.mgs-store-badge .wp-block-button__link.wp-element-button:hover { background: #000; }
.mgs-store-badges { gap: 14px; margin: 6px 0 !important; }

/* Call to action at the end of a blog post. */
.mgs-post-cta { margin-top: 2em; background: var(--mgs-light); border: 0; }

/* Legal pages: contents box, then the text. */
.mgs-legal-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .mgs-legal-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.mgs-legal-layout .mgs-toc p { margin: 0 0 8px; }

/* Footer from the design (content/parts/footer.html). */
.mgs-footer { background: var(--mgs-footer); color: var(--mgs-footer-text); padding: 0; text-align: left; }
.mgs-foot-inner { max-width: 1160px; margin: 0 auto; padding: 56px 24px 28px; display: flex; flex-direction: column; gap: 36px; }
.mgs-foot-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; font-size: 15px; }
.mgs-foot-cols > * { display: flex; flex-direction: column; gap: 10px; }
.mgs-foot-brand { max-width: 340px; gap: 12px !important; line-height: 1.5; }
.mgs-foot-name { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 400; color: var(--mgs-ink); }
.mgs-foot-name img { width: 40px; height: 40px; border-radius: 9px; }
.mgs-foot-head { font-weight: 400; color: var(--mgs-ink); }
.mgs-footer a { color: var(--mgs-footer-text); text-decoration: none; }
.mgs-footer a:hover { color: var(--mgs-ink); text-decoration: underline; }
.mgs-foot-bottom { border-top: 1px solid var(--mgs-line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 12px; font-size: 13px; color: var(--mgs-muted); }

/* Store buttons: small line above the store name, as on the canvas. */
.wp-block-button.mgs-store-badge .wp-block-button__link.wp-element-button {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
/* Sports row: no list indent; tight on a phone. */
.mgs-sports-row ul.mgs-sports { padding-left: 0 !important; margin: 0 !important; }
.mgs-sports-row ul.mgs-sports > li + li { margin-top: 0 !important; }
@media (max-width: 600px) { .mgs-sports-row { gap: 14px; } .mgs-sports { flex-direction: column; gap: 6px !important; } }

/* ============================================================ WAITLIST ===== */
/* Store badges before the release: "Coming soon", not links. */
.mgs-soon { display: flex; flex-wrap: wrap; gap: 14px; }
.mgs-store-soon { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 22px;
  border-radius: 12px; background: var(--mgs-ink); color: var(--mgs-white); font-size: 19px; font-weight: 400; line-height: 1.15; }
.mgs-store-soon small { font-size: 12px; font-weight: 400; color: #D6DCE6; }
/* The form. */
.mgs-waitlist { margin: 18px 0 6px; max-width: 640px; }
.mgs-waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mgs-waitlist input[type=email], .mgs-waitlist select {
  min-height: 48px; border: 1px solid #B8C3D6; border-radius: 24px; padding: 0 18px; font: inherit; font-size: 16px;
  background: var(--mgs-white); color: var(--mgs-ink); }
.mgs-waitlist input[type=email] { flex: 1 1 200px; min-width: 0; }
.mgs-waitlist select { flex: 0 1 170px; }
.mgs-waitlist button { min-height: 48px; padding: 0 24px; border: 0; border-radius: 24px; background: var(--mgs-blue-dark);
  color: var(--mgs-white); font: inherit; font-weight: 400; cursor: pointer; }
.mgs-waitlist button:hover { background: var(--mgs-ink); }
.mgs-waitlist button:disabled { opacity: .6; cursor: wait; }
.mgs-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; color: #55555A; line-height: 1.45; }
.mgs-consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--mgs-blue-dark); }
.mgs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mgs-waitlist-msg { margin: 10px 0 0; font-size: 15px; font-weight: 400; color: #1D6B33; min-height: 1.4em; }
.mgs-waitlist-msg.is-error { color: #B42318; }
/* On the blue CTA band. */
.mgs-cta .mgs-waitlist { margin-left: auto; }
.mgs-cta .mgs-consent, .mgs-cta .mgs-consent a { color: var(--mgs-light); }
.mgs-cta .mgs-waitlist button { background: var(--mgs-white); color: var(--mgs-blue-dark); }
.mgs-cta .mgs-waitlist button:hover { background: var(--mgs-light); }
.mgs-cta .mgs-waitlist-msg { color: var(--mgs-white); }
.mgs-cta .mgs-waitlist-msg.is-error { color: #FFE0DD; }

/* ============================================================ PREMIUM HOME (spec 006) */
/* Layout groups whose children join a grid (see the inner-container note above). */
:is(.mgs-sport-cards, .mgs-trust-grid, .mgs-section-head, .mgs-sport-card, .mgs-trust-item)
  > .wp-block-group__inner-container { display: contents; }

/* Editorial type: the client's system fonts, tight and heavy headings. */
h1, h2, h3 { letter-spacing: -0.02em; }
.mgs-hero-premium h1 { font-size: clamp(2.5rem, 6.4vw, 4.25rem); line-height: 1.02; font-weight: 400; letter-spacing: -0.035em; }
.mgs-eyebrow { font-size: 13px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--mgs-blue-dark); }
.mgs-section-head { display: flex; flex-direction: column; gap: 8px; max-width: 680px; margin-bottom: 36px !important; }
.mgs-section-head > * { margin: 0 !important; }
.mgs-center { text-align: center; margin-inline: auto; align-items: center; }

/* Hero: light ground, phones on a blue panel. */
.mgs-hero-premium { background: var(--mgs-ground); }
.mgs-phones-panel { position: relative; padding: 36px 20px 24px; border-radius: 32px;
  background: radial-gradient(120% 90% at 70% 10%, #2A86FF 0%, var(--mgs-blue) 45%, #0F55BD 100%); }
.mgs-phones-panel .mgs-phone img { box-shadow: 0 0 0 8px #0B1220, 0 30px 60px rgba(11, 18, 32, .35); }
.mgs-availability { font-size: 16px; color: var(--mgs-ink); margin: 6px 0 0; }
.mgs-store-badges-quiet { margin-top: 14px !important; }
.mgs-store-badges-quiet .mgs-store-soon { min-height: 44px; padding: 4px 16px; font-size: 16px; background: #2B2B30; }

/* Store badges: live link and coming soon share one look. */
.mgs-store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.mgs-store-live { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 22px;
  border-radius: 12px; background: var(--mgs-ink); color: var(--mgs-white) !important; font-size: 19px; font-weight: 400;
  line-height: 1.15; text-decoration: none; }
.mgs-store-live small { font-size: 12px; font-weight: 400; }
.mgs-store-live:hover { background: #000; }

/* Sports: three cards with the apparatus icons. */
.mgs-sport-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.mgs-sport-card { background: var(--mgs-ground); border: 1px solid var(--mgs-line); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px; }
.mgs-sport-card > * { margin: 0 !important; }
.mgs-sport-card h3 { font-size: 20px; font-weight: 400; }
.mgs-sport-card .mgs-apparatus-row img { width: 40px; height: 40px; }

/* Product stories. */
.mgs-story { gap: clamp(32px, 6vw, 72px) !important; }
.mgs-story h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); margin: 6px 0 14px; }
.mgs-story-num { display: inline-block; min-width: 2.2em; color: #6B7A99; }
.mgs-badge-soft { background: var(--mgs-light); color: var(--mgs-blue-dark); margin: 4px 0 0 !important; }
.mgs-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.mgs-ticks li { position: relative; padding-left: 30px; color: var(--mgs-body); }
.mgs-ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mgs-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F55BD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.mgs-pb-legend { margin-top: 18px; color: var(--mgs-muted); font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mgs-pb-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border-radius: 8px; background: #FDECEE;
  color: #B42318; font-weight: 400; font-variant-numeric: tabular-nums; }
.mgs-pb-chip abbr { text-decoration: none; font-size: 12px; letter-spacing: .06em; }

/* How it works: four steps in a row of cards. */
.mgs-how-section .mgs-steps-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; margin: 0; }
.mgs-how-section .mgs-steps-list li { background: var(--mgs-white); border: 1px solid var(--mgs-line); border-radius: 18px;
  padding: 72px 22px 22px; }
.mgs-how-section .mgs-steps-list li::before { left: 22px; top: 22px; }

/* Trust facts. */
.mgs-trust-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-bottom: 24px !important; }
.mgs-trust-item { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--mgs-ground);
  border: 1px solid var(--mgs-line); }
.mgs-trust-item > * { margin: 0 !important; }
.mgs-trust-item h3 { font-size: 18px; font-weight: 400; }
.mgs-trust-item p { color: var(--mgs-body); font-size: 15.5px; }

/* Pricing: same plans, more air. */
.mgs-pricing-section .mgs-plans { margin-top: 8px !important; }

/* Accessibility (FR-611 to FR-613): 44 px targets for footer links, and no motion when the visitor asks. */
.mgs-footer nav a, .mgs-foot-cols a { display: inline-flex; align-items: center; min-height: 44px; }
.mgs-foot-cols > * { gap: 0 !important; }
.mgs-foot-head { min-height: 32px; display: flex; align-items: center; }
/* Social media icons under the email (menu location "Social media links"): 44 px targets, no underline. */
.mgs-foot-social { display: flex; flex-wrap: wrap; gap: 12px; margin-left: -6px; } /* icon edge in line with the text */
.mgs-foot-social a { min-width: 44px; justify-content: center; }
.mgs-foot-social a:hover { text-decoration: none; }
.mgs-foot-social img { display: block; width: 32px; height: 32px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* 44 px targets: the logo link and the keyboard-only skip link. */
.site-logo a, .main-title a { display: inline-flex; align-items: center; min-height: 44px; }
.skip-link:focus { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; }
/* Headline spacing: tight but with clear word gaps on the system fonts. */
.mgs-hero-premium h1 { letter-spacing: -0.025em; word-spacing: 0.06em; }
/* No theme padding between the header and the first full-width section of a page. */
.page .site-main .inside-article { padding-top: 0; padding-bottom: 0; }
.page .entry-content > .alignfull:first-child { margin-top: 0; }
.page .site-main { margin-top: 0; margin-bottom: 0; }
/* The band under the header was .site-content's 40px top padding (GeneratePress one-container). */
.page .site-content { padding-top: 0; padding-bottom: 0; }

/* ============================================================ PHONE HEADER == */
/* Owner, 30 Oct 2026: the menu button at the top right, on the logo's row, with no "Menu" word.
   The word stays as the button's name for screen readers. The open menu drops down under the header. */
@media (max-width: 768px) {
  .site-header { position: relative; }
  .site-header .inside-header { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
    gap: 12px; padding: 10px 16px; }
  .site-header .site-branding-container { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
  .site-header .site-logo { margin: 0; }
  .site-header .site-logo img { max-height: 40px; }
  .site-header .main-title { font-size: 18px; line-height: 1.2; }
  .site-header .main-navigation { width: auto; flex: none; background: transparent; position: static; margin: 0; }
  .site-header .main-navigation .inside-navigation { justify-content: flex-end; padding: 0; position: static; }
  .site-header .inside-header { position: static; }  /* so the open menu takes the header's full width */
  .main-navigation .menu-toggle { width: 44px; height: 44px; min-width: 44px; padding: 0; margin: 0;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
    background: transparent; color: var(--mgs-ink); font-size: 20px; line-height: 1; }
  .main-navigation .menu-toggle:hover, .main-navigation .menu-toggle:focus { background: var(--mgs-light); color: var(--mgs-ink); }
  .main-navigation .menu-toggle .mobile-menu { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .main-navigation .menu-toggle::before { margin: 0 !important; }
  .main-navigation.toggled .main-nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 100;
    background: var(--mgs-white); border-top: 1px solid var(--mgs-line); border-bottom: 1px solid var(--mgs-line);
    box-shadow: 0 16px 30px rgba(28, 28, 30, .12); }
  .main-navigation.toggled .main-nav > ul { padding: 8px 0 14px; }
  .main-navigation.toggled .main-nav ul li a { padding: 0 20px; line-height: 48px; }
  .main-navigation.toggled .mgs-nav-cta { padding: 8px 20px 0; }
  .main-navigation.toggled .mgs-nav-cta > a { margin: 0; display: flex; justify-content: center; width: auto; box-sizing: border-box; }
}
