/*
 * Together We Grow Trades, modern design (October 2026). Loaded on every page by 60-twg-modern.php.
 * Ported from design/2026-modern/assets/twg.css (the reviewed mockup). Every class starts with twg- so nothing
 * clashes with Bosa, Bootstrap, Elementor or Paid Member Subscriptions.
 * Header and footer styles apply everywhere; page styles apply under body.twg-modern only.
 * Elementor: layout lives on containers through their CSS Classes field; words and buttons are normal widgets.
 */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }

:root {
  --twg-navy: #262161;
  --twg-ink: #1b1d29;
  --twg-lime: #dbff3f;
  --twg-green: #4cd05b;
  --twg-blue: #26a6ed;
  --twg-deep: #182251;
  --twg-navy-2: #2e2970;
  --twg-card: rgba(255, 255, 255, 0.05);
  --twg-card-hover: rgba(255, 255, 255, 0.08);
  --twg-line: rgba(255, 255, 255, 0.12);
  --twg-text: #ffffff;
  --twg-text-2: #c9c8dc;
  --twg-text-3: #a3a2bd;
  --twg-font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --twg-font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --twg-step--1: 0.875rem;
  --twg-step-0: 1.0625rem;
  --twg-step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --twg-step-2: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
  --twg-step-3: clamp(1.65rem, 1.35rem + 1.4vw, 2.5rem);
  --twg-step-4: clamp(2.1rem, 1.5rem + 2.9vw, 3.9rem);
  --twg-gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --twg-section: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --twg-radius: 14px;
  --twg-radius-lg: 22px;
  --twg-max: 1200px;
  --twg-read: 42rem;
  --twg-narrow: 46rem;
  --twg-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --twg-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ Whole site: page chrome */
body.twg-site { background: var(--twg-navy); }
body.twg-site #site-preloader { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { .twg-site *, .twg-site *::before, .twg-site *::after { transition: none !important; } }
.twg-site :focus-visible { outline: 3px solid var(--twg-lime); outline-offset: 3px; }
.twg-site .skip-link:focus { position: fixed; z-index: 100000; left: 1rem; top: 1rem; background: var(--twg-lime); color: var(--twg-ink); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; clip: auto; width: auto; height: auto; }

/* Shared building blocks (header, footer and the modern pages) */
.twg-wrap { width: 100%; max-width: var(--twg-max); margin-left: auto; margin-right: auto; padding-left: var(--twg-gutter); padding-right: var(--twg-gutter); box-sizing: border-box; }
.twg-wrap-read { max-width: calc(var(--twg-read) + 2 * var(--twg-gutter)); }
.twg-wrap-narrow { max-width: calc(var(--twg-narrow) + 2 * var(--twg-gutter)); }
.twg-site .twg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; box-sizing: border-box;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--twg-font-head); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.twg-site .twg-btn:hover { transform: translateY(-1px); }
.twg-site .twg-btn-primary { background: var(--twg-green); color: var(--twg-ink); }
.twg-site .twg-btn-primary:hover, .twg-site .twg-btn-primary:focus { background: var(--twg-lime); color: var(--twg-ink); }
.twg-site .twg-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--twg-text); }
.twg-site .twg-btn-ghost:hover, .twg-site .twg-btn-ghost:focus { border-color: var(--twg-lime); color: var(--twg-lime); background: transparent; }
.twg-site .twg-btn-small { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.twg-site .twg-btn svg { width: 1.1em; height: 1.1em; flex: none; }
.twg-btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.twg-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.twg-social li { margin: 0; padding: 0; }
.twg-site .twg-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--twg-line); color: var(--twg-text); text-decoration: none;
}
.twg-site .twg-social a:hover { border-color: var(--twg-lime); color: var(--twg-lime); }
.twg-social svg { width: 1.1rem; height: 1.1rem; }
.twg-site .twg-social-labeled a { width: auto; border-radius: 999px; padding: 0 1rem 0 0.8rem; gap: 0.5rem; font-weight: 500; }

/* ------------------------------------------------------------ Elementor wiring
 * Every container we build carries twg-c. Layout comes from our classes, not from Elementor's spacing defaults. */
.twg-site .e-con.twg-c { padding: 0; gap: 0; margin: 0; max-width: none; min-height: 0; border: 0; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.twg-site .e-con.twg-c > .elementor-widget, .twg-site .e-con.twg-c > .e-con { width: auto; max-width: 100%; }
:where(.twg-site .e-con.twg-c) > :where(.elementor-widget, .e-con) { margin: 0; } /* zero specificity, so the spacing classes below win */
.twg-site .twg-c .elementor-widget-container { margin: 0; padding: 0; }
.twg-site .e-con.twg-wrap { padding-left: var(--twg-gutter); padding-right: var(--twg-gutter); max-width: var(--twg-max); margin-left: auto; margin-right: auto; width: 100%; }
.twg-site .e-con.twg-wrap-read { max-width: calc(var(--twg-read) + 2 * var(--twg-gutter)); }
.twg-site .e-con.twg-stack { display: flex; flex-direction: column; gap: 0; }
.twg-site .e-con.twg-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

/* ------------------------------------------------------------ Header (ElementsKit header template holds [twg_site_header]) */
.twg-site .ekit-template-content-header { position: sticky; top: 0; z-index: 990; }
.admin-bar.twg-site .ekit-template-content-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar.twg-site .ekit-template-content-header { top: 0; } }
.twg-site .ekit-template-content-header .e-con,
.twg-site .ekit-template-content-header .elementor-widget-shortcode,
.twg-site .ekit-template-content-header .elementor-widget-container,
.twg-site .ekit-template-content-header .elementor-shortcode { padding: 0; margin: 0; gap: 0; max-width: none; width: 100%; }

.twg-site-header {
  position: relative;
  background: rgba(38, 33, 97, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--twg-line);
  font-family: var(--twg-font-head);
}
.twg-header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.twg-site .twg-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--twg-text); margin-right: auto; min-width: 0; }
.twg-brand img { display: block; width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
.twg-brand-name { font-weight: 600; font-size: 0.95rem; line-height: 1.2; color: var(--twg-text); }
.twg-brand-name span { display: block; font-weight: 400; color: var(--twg-text-3); font-size: 0.8rem; }
.twg-nav-desktop ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.twg-nav-desktop li { margin: 0; }
.twg-site .twg-nav-desktop a {
  display: block; padding: 0.55rem 0.8rem; border-radius: 8px;
  color: var(--twg-text); text-decoration: none; font-weight: 500; font-size: 0.97rem; line-height: 1.4;
}
.twg-site .twg-nav-desktop a:hover { background: var(--twg-card-hover); color: var(--twg-lime); }
.twg-site .twg-nav-desktop a[aria-current="page"] { color: var(--twg-lime); box-shadow: inset 0 -2px 0 var(--twg-lime); border-radius: 0; }
.twg-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.twg-site-header details > summary { list-style: none; cursor: pointer; }
.twg-site-header details > summary::-webkit-details-marker { display: none; }
.twg-account-menu { position: relative; }
.twg-account-menu > summary svg { width: 1rem; height: 1rem; transition: transform 0.15s; }
.twg-account-menu[open] > summary { border-color: var(--twg-lime); color: var(--twg-lime); }
.twg-account-menu[open] > summary svg { transform: rotate(180deg); }
.twg-account-panel {
  position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 14rem; margin: 0; padding: 0.4rem; list-style: none;
  background: var(--twg-ink); border: 1px solid var(--twg-line); border-radius: var(--twg-radius); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
}
.twg-site .twg-account-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 0.8rem; border-radius: 8px; color: var(--twg-text); text-decoration: none; font-weight: 500; }
.twg-site .twg-account-panel a:hover, .twg-site .twg-account-panel a[aria-current="page"] { background: var(--twg-card-hover); color: var(--twg-lime); }

.twg-nav-mobile { display: none; }
.twg-nav-mobile > summary {
  display: inline-flex; align-items: center; gap: 0.45rem; box-sizing: border-box;
  min-height: 44px; padding: 0.45rem 0.8rem; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; color: var(--twg-text);
}
.twg-nav-mobile > summary svg { width: 1.1rem; height: 1.1rem; }
.twg-nav-mobile[open] > summary { border-color: var(--twg-lime); color: var(--twg-lime); }
.twg-nav-mobile-panel {
  position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 72px); overflow-y: auto;
  background: var(--twg-ink); border-bottom: 1px solid var(--twg-line); padding: 0.75rem var(--twg-gutter) 1.25rem;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
}
.twg-nav-mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.twg-nav-mobile-panel li { margin: 0; }
.twg-nav-mobile-panel li + li { border-top: 1px solid var(--twg-line); }
.twg-site .twg-nav-mobile-panel a {
  display: flex; align-items: center; min-height: 52px; color: var(--twg-text); text-decoration: none; font-weight: 500; font-size: 1.1rem;
}
.twg-site .twg-nav-mobile-panel a[aria-current="page"] { color: var(--twg-lime); }
.twg-nav-mobile-label { margin: 1rem 0 0.25rem; color: var(--twg-lime); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.twg-nav-mobile-panel .twg-btn-row { margin-top: 1rem; }
.twg-nav-mobile-panel .twg-btn { flex: 1 1 10rem; min-width: 0; max-width: 100%; white-space: normal; }
.twg-nav-mobile:not([open]) > .twg-nav-mobile-panel { display: none; }
.twg-nav-mobile-panel { box-sizing: border-box; }

@media (max-width: 1199px) { .twg-brand-name { display: none; } }
@media (max-width: 1023px) {
  .twg-nav-desktop, .twg-header-actions .twg-hide-mobile { display: none; }
  .twg-nav-mobile { display: block; }
  .twg-brand img { width: 52px; height: 52px; }
}
@media (max-width: 359px) { .twg-header-actions .twg-btn-small { padding: 0.5rem 0.8rem; } .twg-nav-mobile > summary span { display: none; } }

/* ------------------------------------------------------------ Footer (ElementsKit footer template, normal Elementor widgets) */
.twg-site .e-con.twg-site-footer { background: var(--twg-ink); border-top: 1px solid var(--twg-line); padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 1.5rem; font-size: 0.95rem; color: var(--twg-text-2); font-family: var(--twg-font-body); line-height: 1.6; }
.twg-site .e-con.twg-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 2rem; }
.twg-footer-grid > * { min-width: 0; }
@media (max-width: 860px) { .twg-site .e-con.twg-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .twg-site .twg-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .twg-site .e-con.twg-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.twg-site .twg-footer-logo { text-align: left; margin-bottom: 1rem; }
.twg-site .twg-footer-logo img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.twg-site .twg-site-footer p { margin: 0 0 1rem; color: var(--twg-text-2); max-width: 26rem; }
.twg-site .twg-site-footer .twg-footer-disclaimer p { color: var(--twg-text-3); font-size: var(--twg-step--1); }
.twg-site .twg-site-footer a { color: var(--twg-green); }
.twg-site .twg-site-footer a:hover { color: var(--twg-lime); }
.twg-site .twg-site-footer .elementor-widget-heading .elementor-heading-title { font-family: var(--twg-font-head); font-size: 0.85rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--twg-lime); margin: 0 0 0.9rem; }
.twg-site .twg-footer-links ul { list-style: none; margin: 0; padding: 0; }
.twg-site .twg-footer-links li { margin: 0; color: inherit; }
.twg-site .twg-site-footer .twg-footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--twg-text-2); text-decoration: none; }
.twg-site .twg-site-footer .twg-footer-links a:hover { color: var(--twg-lime); }
.twg-site .e-con.twg-footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--twg-line); display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
.twg-site .twg-footer-bottom p { margin: 0; color: var(--twg-text-3); font-size: var(--twg-step--1); max-width: none; }
.twg-site .twg-site-footer .twg-social { margin-bottom: 1rem; }

/* ------------------------------------------------------------ Modern pages: type and text */
body.twg-modern { font-family: var(--twg-font-body); font-size: var(--twg-step-0); line-height: 1.65; color: var(--twg-text); }
.twg-modern .elementor-widget-heading .elementor-heading-title, .twg-modern .twg-shell h1, .twg-modern .twg-shell h2, .twg-modern .twg-shell h3 {
  font-family: var(--twg-font-head); line-height: 1.15; letter-spacing: -0.01em; color: var(--twg-text); text-wrap: balance; margin: 0 0 0.6em; padding: 0;
}
.twg-modern .twg-h1 .elementor-heading-title, .twg-modern .twg-shell h1 { font-size: var(--twg-step-4); font-weight: 700; margin-bottom: 0.4em; }
.twg-modern .twg-h2 .elementor-heading-title, .twg-modern .twg-shell h2 { font-size: var(--twg-step-3); font-weight: 700; }
.twg-modern .twg-h3 .elementor-heading-title, .twg-modern .twg-shell h3 { font-size: var(--twg-step-2); font-weight: 600; }
.twg-modern .twg-h4 .elementor-heading-title { font-size: var(--twg-step-1); font-weight: 600; margin-bottom: 0.4em; }
.twg-modern .twg-h-flush .elementor-heading-title { margin-bottom: 0; }
.twg-modern .twg-line { display: block; }
.twg-modern .twg-hl { color: var(--twg-lime); }
.twg-modern .twg-eyebrow .elementor-heading-title, .twg-modern .twg-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--twg-font-head); font-weight: 600; font-size: var(--twg-step--1); line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--twg-lime); margin: 0 0 0.9rem;
}
.twg-modern .twg-eyebrow .elementor-heading-title::before, .twg-modern p.twg-eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; border-radius: 2px; }
.twg-modern .elementor-widget-text-editor { color: var(--twg-text); font-family: var(--twg-font-body); }
.twg-modern .elementor-widget-text-editor p { margin: 0 0 1em; }
.twg-modern .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.twg-modern .twg-lead, .twg-modern .twg-lead p { font-size: var(--twg-step-1); color: var(--twg-text-2); max-width: 38rem; }
.twg-modern .elementor-widget.twg-lead { margin-bottom: 1.75rem; }
@media (max-width: 600px) { .twg-modern .twg-hero .elementor-widget.twg-lead { margin-bottom: 2.25rem; } }
.twg-modern .twg-muted, .twg-modern .twg-muted p { color: var(--twg-text-3); }
.twg-modern .twg-small, .twg-modern .twg-small p { font-size: var(--twg-step--1); }
.twg-modern .twg-gap-sm { margin-bottom: 1rem; }
.twg-modern .twg-gap-md { margin-bottom: 1.5rem; }
.twg-modern a { color: var(--twg-green); text-underline-offset: 0.18em; }
.twg-modern a:hover { color: var(--twg-lime); }
.twg-modern .twg-center { text-align: center; }
.twg-modern .e-con.twg-center { align-items: center; }
.twg-modern .twg-center .twg-lead, .twg-modern .twg-center .twg-lead p { margin-left: auto; margin-right: auto; }

/* Elementor buttons dressed as ours. Button widgets carry twg-b plus twg-b-primary or twg-b-ghost. */
.twg-modern .twg-b .elementor-button, .twg-site .twg-site-footer .twg-b .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 999px; border: 2px solid transparent; box-shadow: none;
  font-family: var(--twg-font-head); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; fill: currentColor;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.twg-modern .twg-b .elementor-button:hover { transform: translateY(-1px); }
.twg-modern .twg-b-primary .elementor-button { background: var(--twg-green); color: var(--twg-ink); }
.twg-modern .twg-b-primary .elementor-button:hover, .twg-modern .twg-b-primary .elementor-button:focus { background: var(--twg-lime); color: var(--twg-ink); }
.twg-modern .twg-b-ghost .elementor-button { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--twg-text); }
.twg-modern .twg-b-ghost .elementor-button:hover, .twg-modern .twg-b-ghost .elementor-button:focus { background: transparent; border-color: var(--twg-lime); color: var(--twg-lime); }
.twg-modern .twg-b-small .elementor-button { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.twg-modern .twg-b-block, .twg-modern .twg-b-block .elementor-button-wrapper, .twg-modern .twg-b-block .elementor-button { width: 100%; }
.twg-modern .twg-b .elementor-button-text { color: inherit; }
.twg-modern .twg-b-link .elementor-button {
  background: none; border: 0; padding: 0; min-height: 44px; border-radius: 0; color: var(--twg-green);
  font-family: var(--twg-font-head); font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; gap: 0.4rem;
}
.twg-modern .twg-b-link .elementor-button::after {
  content: ""; width: 1.05em; height: 1.05em; background: currentColor;
  -webkit-mask: var(--twg-arrow) center / contain no-repeat; mask: var(--twg-arrow) center / contain no-repeat; transition: transform 0.15s;
}
.twg-modern .twg-b-link .elementor-button:hover { color: var(--twg-lime); transform: none; }
.twg-modern .twg-b-link .elementor-button:hover::after { transform: translateX(3px); }

/* Sections */
.twg-modern .e-con.twg-section { padding-top: var(--twg-section); padding-bottom: var(--twg-section); }
.twg-modern .e-con.twg-section-ink { background: var(--twg-ink); }
.twg-modern .e-con.twg-section-tight { padding-top: calc(var(--twg-section) * 0.6); padding-bottom: calc(var(--twg-section) * 0.6); }
.twg-modern .e-con.twg-pt0 { padding-top: 0; }
.twg-modern .e-con.twg-section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.twg-modern .e-con.twg-section-head-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.twg-modern .e-con.twg-section-head-row > * { min-width: 0; }
.twg-modern .e-con.twg-mt-lg { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }

/* Grids and cards */
.twg-modern .e-con.twg-grid, .twg-modern .twg-grid { display: grid; gap: clamp(1rem, 0.7rem + 1vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.twg-modern .twg-grid > * { min-width: 0; }
.twg-modern .e-con.twg-grid-2, .twg-modern .twg-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.twg-modern .e-con.twg-grid-3, .twg-modern .twg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .twg-modern .e-con.twg-grid-3, .twg-modern .twg-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .twg-modern .e-con.twg-grid-2, .twg-modern .e-con.twg-grid-3, .twg-modern .twg-grid-2, .twg-modern .twg-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.twg-modern .e-con.twg-card, .twg-modern .twg-card {
  background: var(--twg-card); border: 1px solid var(--twg-line); border-radius: var(--twg-radius-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); box-sizing: border-box;
}
.twg-modern .twg-card .twg-h4 .elementor-heading-title { font-size: var(--twg-step-1); }
.twg-modern .e-con.twg-card-row { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: start; }
.twg-modern .e-con.twg-card-row > .twg-icon { grid-row: 1 / span 2; }
.twg-modern .twg-icon-badge {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px;
  background: rgba(219, 255, 63, 0.12); color: var(--twg-lime);
}
.twg-modern .twg-icon-badge svg { width: 1.3rem; height: 1.3rem; }
.twg-modern .e-con.twg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .twg-modern .e-con.twg-split { grid-template-columns: minmax(0, 1fr); } }

/* Hero */
.twg-modern .e-con.twg-hero { position: relative; overflow: hidden; padding-top: clamp(3rem, 2rem + 5vw, 6.5rem); padding-bottom: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.twg-modern .e-con.twg-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(38, 166, 237, 0.22), transparent 70%); pointer-events: none;
}
.twg-modern .e-con.twg-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.twg-modern .e-con.twg-hero-grid > * { min-width: 0; }
.twg-modern .twg-hero-social { display: flex; align-items: center; gap: 0.75rem; margin-top: 2rem; color: var(--twg-text-3); font-size: var(--twg-step--1); }
.twg-modern .e-con.twg-collage { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 0.9rem; position: relative; }
.twg-modern .twg-collage .elementor-widget-image, .twg-modern .twg-collage .elementor-widget-image .elementor-widget-container { height: 100%; }
.twg-modern .twg-collage img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; border-radius: var(--twg-radius-lg); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); }
.twg-modern .twg-collage .twg-c1 { grid-row: 1 / span 2; }
.twg-modern .twg-collage .twg-c1 img { aspect-ratio: 4 / 5; }
.twg-modern .twg-collage .twg-c2 img, .twg-modern .twg-collage .twg-c3 img { aspect-ratio: 4 / 3; }
.twg-modern .twg-collage .elementor-widget.twg-spark { position: absolute; left: -1.25rem; bottom: 1.5rem; width: 92px; height: auto; z-index: 2; }
.twg-modern .twg-collage .twg-spark img { width: 92px; height: auto; aspect-ratio: auto; padding: 0.8rem 0.9rem; box-sizing: border-box; background: var(--twg-ink); border: 1px solid var(--twg-line); border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); object-fit: contain; }
@media (max-width: 860px) {
  .twg-modern .e-con.twg-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .twg-modern .twg-collage .elementor-widget.twg-spark { left: 0.75rem; bottom: 0.75rem; width: 72px; }
  .twg-modern .twg-collage .twg-spark img { width: 72px; }
}

/* Facts strip */
.twg-modern .e-con.twg-facts { background: var(--twg-ink); border-top: 1px solid var(--twg-line); border-bottom: 1px solid var(--twg-line); }
.twg-modern .e-con.twg-facts-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
@media (max-width: 760px) { .twg-modern .e-con.twg-facts-list { grid-template-columns: minmax(0, 1fr); } }
.twg-modern .e-con.twg-fact { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.75rem; align-items: start; }
.twg-modern .e-con.twg-fact > .twg-icon { grid-row: 1 / span 2; }
.twg-modern .twg-fact .elementor-heading-title { font-family: var(--twg-font-head); font-weight: 600; font-size: var(--twg-step-0); line-height: 1.4; margin: 0; }
.twg-modern .twg-fact .elementor-widget-text-editor, .twg-modern .twg-fact .elementor-widget-text-editor p { color: var(--twg-text-2); font-size: var(--twg-step--1); margin: 0; }

/* Post and training cards ([twg_latest]) */
.twg-modern .twg-cards li { margin: 0; padding: 0; }
.twg-site .twg-post-card {
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
  background: var(--twg-card); border: 1px solid var(--twg-line); border-radius: var(--twg-radius-lg);
  text-decoration: none; color: var(--twg-text); transition: background-color 0.15s, transform 0.15s, border-color 0.15s;
}
.twg-site .twg-post-card:hover { background: var(--twg-card-hover); color: var(--twg-text); transform: translateY(-2px); border-color: rgba(219, 255, 63, 0.4); }
.twg-post-thumb { position: relative; display: block; background: var(--twg-deep); aspect-ratio: 16 / 10; }
.twg-post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.twg-post-card-body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.twg-post-card-title { font-family: var(--twg-font-head); font-weight: 600; font-size: 1.12rem; line-height: 1.35; color: var(--twg-text); }
.twg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; color: var(--twg-text-3); font-size: var(--twg-step--1); }
.twg-tag {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  font-family: var(--twg-font-head); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.03em; line-height: 1.5;
  background: rgba(38, 166, 237, 0.16); color: #9fd8f8;
}
.twg-tag-members { background: rgba(219, 255, 63, 0.14); color: var(--twg-lime); }
.twg-tag svg { width: 0.85em; height: 0.85em; }
.twg-play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(27, 29, 41, 0.78); color: var(--twg-lime); border: 2px solid var(--twg-lime);
}
.twg-play svg { width: 22px; height: 22px; margin-left: 3px; }

/* Testimonials */
.twg-modern .e-con.twg-quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: clamp(1rem, 0.7rem + 1vw, 1.5rem); align-items: stretch; }
.twg-modern .e-con.twg-quote {
  display: flex; flex-direction: column; margin: 0; height: 100%; box-sizing: border-box;
  background: var(--twg-card); border: 1px solid var(--twg-line); border-radius: var(--twg-radius-lg); padding: 1.5rem;
}
.twg-modern .twg-quote .elementor-widget-text-editor { color: var(--twg-text-2); margin-bottom: 1.1rem; flex: 1 0 auto; }
.twg-modern .twg-quote .elementor-widget-text-editor::before { content: "\201C"; display: block; color: var(--twg-lime); font-family: var(--twg-font-head); font-size: 2.5rem; line-height: 0.6; margin-bottom: 0.6rem; }
.twg-modern .twg-who { display: flex; align-items: center; gap: 0.75rem; font-family: var(--twg-font-head); font-weight: 600; }
.twg-modern .twg-avatar {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--twg-green), var(--twg-lime)); color: var(--twg-ink); font-family: var(--twg-font-head); font-weight: 700; font-size: 0.95rem;
}
.twg-modern .twg-avatar-brand { background: var(--twg-deep); color: var(--twg-lime); border: 1px solid var(--twg-line); font-size: 0.72rem; letter-spacing: 0.04em; }
.twg-modern .twg-results-note {
  display: flex; gap: 0.75rem; align-items: flex-start; max-width: 46rem; margin: 1rem auto 0; box-sizing: border-box;
  padding: 1rem 1.25rem; border-radius: var(--twg-radius); border: 1px solid var(--twg-line); color: var(--twg-text-2); font-size: 0.95rem;
}
.twg-modern .twg-results-note svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--twg-lime); margin-top: 0.15rem; }

/* Call to action band */
.twg-modern .e-con.twg-cta-band {
  position: relative; overflow: hidden; border-radius: var(--twg-radius-lg); align-items: center; text-align: center;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  background: linear-gradient(135deg, var(--twg-deep) 0%, var(--twg-navy-2) 55%, #2539a4 100%); border: 1px solid var(--twg-line);
}
.twg-modern .e-con.twg-cta-band::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(219, 255, 63, 0.25), transparent); pointer-events: none;
}
.twg-modern .twg-cta-band .elementor-heading-title { max-width: 34rem; margin-left: auto; margin-right: auto; }
.twg-modern .twg-cta-band .twg-lead, .twg-modern .twg-cta-band .twg-lead p { margin-left: auto; margin-right: auto; }
.twg-modern .e-con.twg-cta-band .twg-row { justify-content: center; position: relative; z-index: 1; }

/* Inner page heading */
.twg-modern .e-con.twg-page-hero, .twg-modern .twg-page-hero { position: relative; overflow: hidden; padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding-bottom: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.twg-modern .e-con.twg-page-hero::before, .twg-modern .twg-page-hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 160%;
  background: radial-gradient(closest-side, rgba(38, 166, 237, 0.18), transparent 70%); pointer-events: none;
}
.twg-modern .twg-page-hero > * { position: relative; }

/* Growth Paths */
.twg-modern .e-con.twg-plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(1rem, 0.7rem + 1vw, 1.5rem); align-items: stretch; }
@media (max-width: 960px) { .twg-modern .e-con.twg-plans { grid-template-columns: minmax(0, 1fr); } }
.twg-modern .e-con.twg-plan { display: flex; flex-direction: column; }
.twg-modern .twg-plan-name .elementor-heading-title { font-size: var(--twg-step-2); font-weight: 700; margin: 0 0 0.15rem; }
.twg-modern .twg-plan-sub, .twg-modern .twg-plan-sub p { color: var(--twg-text-2); }
.twg-modern .elementor-widget.twg-plan-sub { margin-bottom: 1.25rem; }
.twg-modern .twg-plan-price .elementor-heading-title { font-size: var(--twg-step-3); font-weight: 700; line-height: 1; margin: 0.25rem 0 1.25rem; }
.twg-modern .twg-plan-price small, .twg-modern .twg-pay-amount small { font-size: 1rem; font-weight: 500; color: var(--twg-text-3); }
.twg-modern .e-con.twg-plan-featured { border: 2px solid var(--twg-green); background: linear-gradient(180deg, rgba(76, 208, 91, 0.10), rgba(255, 255, 255, 0.04)); position: relative; overflow: visible; }
.twg-modern .elementor-widget.twg-plan-flag { position: absolute; top: -0.85rem; left: 1.5rem; width: auto; }
.twg-modern .twg-plan-flag .elementor-heading-title { display: inline-block; background: var(--twg-lime); color: var(--twg-ink); font-family: var(--twg-font-head); font-weight: 700; font-size: 0.8rem; line-height: 1.5; padding: 0.25rem 0.75rem; border-radius: 999px; margin: 0; letter-spacing: 0; }
.twg-modern .twg-checks ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; }
.twg-modern .twg-checks li { position: relative; padding-left: 1.9rem; margin: 0; color: var(--twg-text) !important; }
.twg-modern .twg-checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.25rem; height: 1.25rem; background: var(--twg-green);
  -webkit-mask: var(--twg-check) center / contain no-repeat; mask: var(--twg-check) center / contain no-repeat;
}
.twg-modern .twg-plan > .twg-b { margin-top: auto; }
.twg-modern .twg-pay-label .elementor-heading-title { font-family: var(--twg-font-head); font-weight: 600; font-size: var(--twg-step-0); line-height: 1.4; margin: 0.25rem 0 0.75rem; }
.twg-modern .e-con.twg-pay-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: auto; }
@media (max-width: 760px) { .twg-modern .e-con.twg-pay-options { grid-template-columns: minmax(0, 1fr); } }
.twg-modern .e-con.twg-pay { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem; border-radius: var(--twg-radius); background: rgba(27, 29, 41, 0.6); border: 1px solid var(--twg-line); }
.twg-modern .twg-pay-term .elementor-heading-title { font-family: var(--twg-font-head); font-weight: 600; color: var(--twg-text-2); font-size: 0.95rem; line-height: 1.4; margin: 0; }
.twg-modern .twg-pay-amount .elementor-heading-title { font-family: var(--twg-font-head); font-weight: 700; font-size: 1.6rem; line-height: 1.1; margin: 0; }
.twg-modern .twg-pay-amount small { font-size: 0.9rem; }
.twg-modern .twg-pay-note, .twg-modern .twg-pay-note p { color: var(--twg-lime); font-size: 0.9rem; }
.twg-modern .elementor-widget.twg-pay-note { margin-bottom: 0.6rem; }
.twg-modern .twg-pay > .twg-b { margin-top: auto; }
.twg-modern .twg-terms-line, .twg-modern .twg-terms-line p { text-align: center; color: var(--twg-text-3); font-size: var(--twg-step--1); }
.twg-modern .elementor-widget.twg-terms-line { margin-top: 1.5rem; }
.twg-modern .twg-table-scroll { overflow-x: auto; border-radius: var(--twg-radius-lg); border: 1px solid var(--twg-line); }
.twg-modern .twg-compare { width: 100%; border-collapse: collapse; margin: 0; border: 0; color: var(--twg-text); }
.twg-modern .twg-compare th, .twg-modern .twg-compare td { padding: 0.9rem 1rem; text-align: left; border: 0; border-bottom: 1px solid var(--twg-line); vertical-align: top; background: transparent; }
.twg-modern .twg-compare thead th { font-family: var(--twg-font-head); background: var(--twg-ink); font-size: 0.95rem; }
.twg-modern .twg-compare tbody tr:last-child td, .twg-modern .twg-compare tbody tr:last-child th { border-bottom: 0; }
.twg-modern .twg-compare td { text-align: center; width: 24%; }
.twg-modern .twg-compare tbody th { font-weight: 400; color: var(--twg-text-2); }
.twg-modern .twg-compare svg { width: 1.25rem; height: 1.25rem; color: var(--twg-green); display: inline-block; vertical-align: middle; }
.twg-modern .twg-compare .twg-no { color: var(--twg-text-3); }
@media (max-width: 480px) { .twg-modern .twg-compare th, .twg-modern .twg-compare td { padding: 0.75rem 0.6rem; font-size: 0.92rem; } .twg-modern .twg-compare td { width: 26%; } }
.twg-modern .twg-faq { display: grid; gap: 0.75rem; }
.twg-modern .twg-faq details { background: var(--twg-card); border: 1px solid var(--twg-line); border-radius: var(--twg-radius); }
.twg-modern .twg-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; min-height: 56px; box-sizing: border-box; font-family: var(--twg-font-head); font-weight: 600; color: var(--twg-text);
}
.twg-modern .twg-faq summary::-webkit-details-marker { display: none; }
.twg-modern .twg-faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--twg-lime); transition: transform 0.15s; }
.twg-modern .twg-faq details[open] summary::after { transform: rotate(45deg); }
.twg-modern .twg-faq details > div { padding: 0 1.25rem 1.1rem; color: var(--twg-text-2); }
.twg-modern .twg-faq details > div p { margin: 0; }
.twg-modern .twg-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------ Account pages (Register, Log in, Account, Password Reset, Manage Membership) */
.twg-shell { color: var(--twg-text); font-family: var(--twg-font-body); }
.twg-shell .twg-page-hero .twg-lead { margin: 0; }
.twg-shell-body { padding-bottom: var(--twg-section); }
.twg-modern .twg-shell-card { padding: clamp(1.25rem, 0.9rem + 1.5vw, 2.25rem); }
.twg-shell-help { margin: 1.25rem 0 0; color: var(--twg-text-3); font-size: var(--twg-step--1); text-align: center; }

/* Paid Member Subscriptions forms inside the card */
.twg-shell .pms-form { margin: 0; color: var(--twg-text); font-size: 1rem; }
.twg-shell .pms-form ul.pms-form-fields-wrapper, .twg-shell .pms-form ul { list-style: none; margin: 0; padding: 0; }
.twg-shell .pms-form .pms-field, .twg-shell .pms-form p { margin: 0 0 1rem; padding: 0; list-style: none; }
.twg-shell .pms-form label { display: block; font-family: var(--twg-font-head); font-weight: 500; margin: 0 0 0.4rem; color: var(--twg-text); }
.twg-shell .pms-form input[type="text"], .twg-shell .pms-form input[type="email"], .twg-shell .pms-form input[type="password"],
.twg-shell .pms-form input[type="tel"], .twg-shell .pms-form input[type="number"], .twg-shell .pms-form select, .twg-shell .pms-form textarea {
  width: 100%; max-width: none; min-height: 50px; padding: 0.75rem 0.9rem; border-radius: 10px; box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(27, 29, 41, 0.6); color: var(--twg-text);
  font: inherit; font-size: 1rem; box-shadow: none;
}
.twg-shell .pms-form input:focus, .twg-shell .pms-form select:focus, .twg-shell .pms-form textarea:focus { outline: none; border-color: var(--twg-lime); box-shadow: 0 0 0 3px rgba(219, 255, 63, 0.25); }
.twg-shell .pms-form input[type="checkbox"], .twg-shell .pms-form input[type="radio"] { width: 1.2rem; height: 1.2rem; margin: 0 0.5rem 0 0; accent-color: var(--twg-green); vertical-align: middle; }
.twg-shell .pms-form .login-remember label, .twg-shell .pms-form .pms-subscription-plan label { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; font-weight: 500; }
.twg-shell .pms-account-section-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.twg-shell .pms-account-section-wrapper > li { min-width: 0; }
.twg-shell .pms-account-section-wrapper .pms-user-login-field, .twg-shell .pms-account-section-wrapper .pms-user-email-field { grid-column: 1 / -1; }
@media (max-width: 520px) { .twg-shell .pms-account-section-wrapper { grid-template-columns: minmax(0, 1fr); } }
.twg-shell .pms-field-subscriptions { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.twg-shell .pms-subscription-plan { padding: 1rem 1.1rem; border: 1px solid var(--twg-line); border-radius: var(--twg-radius); background: rgba(27, 29, 41, 0.45); }
.twg-shell .pms-subscription-plan:has(input:checked) { border-color: var(--twg-green); background: rgba(76, 208, 91, 0.08); }
.twg-shell .pms-subscription-plan label { margin: 0; cursor: pointer; }
.twg-shell .pms-subscription-plan-name { font-family: var(--twg-font-head); font-weight: 600; }
.twg-shell .pms-subscription-plan-price { color: var(--twg-text-2); }
.twg-shell .pms-subscription-plan-trial { color: var(--twg-lime); font-size: 0.92rem; }
.twg-shell .pms-subscription-plan-description { color: var(--twg-text-3); font-size: 0.92rem; margin: 0.35rem 0 0 1.7rem; }
.twg-shell .pms-form input[type="submit"], .twg-shell .pms-form button[type="submit"], .twg-shell .pms-form .button,
.twg-shell .pms-form input[type="button"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7rem 1.6rem; width: auto;
  border-radius: 999px; border: 2px solid transparent; background: var(--twg-green); color: var(--twg-ink);
  font-family: var(--twg-font-head); font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0;
}
.twg-shell .pms-form input[type="submit"]:hover, .twg-shell .pms-form button[type="submit"]:hover { background: var(--twg-lime); color: var(--twg-ink); }
.twg-shell .pms-form .login-submit { margin-top: 1.25rem; }
.twg-shell #pms_register-form { margin-bottom: 2rem; }
.twg-shell .pms-form ~ p { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--twg-line); color: var(--twg-text-3); font-size: var(--twg-step--1); }
.twg-shell .pms-form .login-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin: 1rem 0 0; }
.twg-shell .pms-form .login-extra .separator { color: var(--twg-text-3); }
.twg-shell .pms-form .login-extra a { display: inline-flex; align-items: center; min-height: 44px; }
.twg-shell .pms_success, .twg-shell .pms_field-errors-wrapper, .twg-shell .pms-warning-message-wrapper, .twg-shell .pms_errors, .twg-shell .pms-error {
  border-radius: 10px; padding: 0.75rem 1rem; margin: 0 0 1rem; color: var(--twg-text); background: rgba(219, 255, 63, 0.08); border: 1px solid rgba(219, 255, 63, 0.35);
}
.twg-shell .pms-field-error, .twg-shell .pms_field-errors-wrapper p { color: #ffb4a8; }
.twg-shell .twg-card > p:first-child:last-child:empty { display: none; }
/* Account page: PMS tabs, tables and payment history */
.twg-shell .pms-account-navigation ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.twg-shell .pms-account-navigation li { margin: 0; }
.twg-shell .pms-account-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--twg-line); border-radius: 999px; color: var(--twg-text); text-decoration: none; }
.twg-shell .pms-account-navigation .pms-account-navigation-link--active a, .twg-shell .pms-account-navigation a:hover { border-color: var(--twg-lime); color: var(--twg-lime); }
.twg-shell table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; color: var(--twg-text); background: transparent; border: 0; }
.twg-shell table th, .twg-shell table td { text-align: left; padding: 0.7rem 0.5rem; border: 0; border-bottom: 1px solid var(--twg-line); vertical-align: top; background: transparent; color: inherit; }
.twg-shell table th { font-family: var(--twg-font-head); font-weight: 600; }
@media (max-width: 560px) { .twg-shell .pms-account-subscription-details-table th { display: block; border: 0; padding-bottom: 0; } .twg-shell .pms-account-subscription-details-table td { display: block; } }

/* Manage Membership (40-twg-manage-membership.php prints its own small styles; these win on the modern pages) */
.twg-modern .twg-shell .twg-mm { max-width: none; font-size: 1rem; color: var(--twg-text); }
.twg-modern .twg-shell .twg-mm h2 { font-size: var(--twg-step-2); margin: 1.75em 0 0.5em; }
.twg-modern .twg-shell .twg-mm h3 { font-size: var(--twg-step-1); margin: 0 0 0.75rem; }
.twg-modern .twg-shell .twg-mm p { color: var(--twg-text-2); }
.twg-modern .twg-shell .twg-mm-card, .twg-modern .twg-shell .twg-mm-callout { border: 1px solid var(--twg-line); border-radius: var(--twg-radius); background: rgba(27, 29, 41, 0.45); padding: 1.25rem 1.35rem; }
.twg-modern .twg-shell .twg-mm-rows th, .twg-modern .twg-shell .twg-mm-rows td { border-bottom: 1px solid var(--twg-line); padding: 0.6rem 0; }
.twg-modern .twg-shell .twg-mm-status { color: var(--twg-lime); }
.twg-modern .twg-shell .twg-mm-actions { gap: 0.6rem; }
.twg-modern .twg-shell .twg-mm-btn, .twg-modern .twg-shell .twg-mm button, .twg-modern .twg-shell .twg-mm input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.5rem 1.1rem; box-sizing: border-box;
  border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.35); background: transparent; color: var(--twg-text);
  font-family: var(--twg-font-head); font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none;
}
.twg-modern .twg-shell .twg-mm-btn:hover, .twg-modern .twg-shell .twg-mm button:hover { border-color: var(--twg-lime); color: var(--twg-lime); }
.twg-modern .twg-shell .twg-mm-btn--main, .twg-modern .twg-shell .twg-mm button.twg-mm-btn--main, .twg-modern .twg-shell .twg-mm input[name="pms_confirm_cancel_subscription"] { background: var(--twg-green); border-color: var(--twg-green); color: var(--twg-ink); }
.twg-modern .twg-shell .twg-mm-btn--main:hover, .twg-modern .twg-shell .twg-mm button.twg-mm-btn--main:hover { background: var(--twg-lime); border-color: var(--twg-lime); color: var(--twg-ink); }
.twg-modern .twg-shell .twg-mm-btn--quiet { border-color: transparent; padding-left: 0; padding-right: 0; color: var(--twg-green); text-decoration: underline; }
.twg-modern .twg-shell .twg-mm-note { background: rgba(76, 208, 91, 0.12); border: 1px solid rgba(76, 208, 91, 0.4); color: var(--twg-text); border-radius: 10px; }
.twg-modern .twg-shell .twg-mm-note--warn { background: rgba(219, 255, 63, 0.08); border-color: rgba(219, 255, 63, 0.4); }
.twg-modern .twg-shell .twg-mm-list li { color: var(--twg-text-2); }
@media (max-width: 560px) { .twg-modern .twg-shell .twg-mm-btn, .twg-modern .twg-shell .twg-mm button { width: 100%; } }

/* ------------------------------------------------------------ Older pages in the new frame (second pass, 2026-10-21)
 * Their content is Ariel's (Elementor, PostX, Bosa) and stays as it is; only the look changes here.
 * Scoped by body classes from 60-twg-modern.php. */

/* Contact Us: the form panel becomes the same card as the account pages */
body.twg-page-contact .e-con-boxed > .e-con-inner { padding-left: var(--twg-gutter); padding-right: var(--twg-gutter); }
body.twg-page-contact .e-con.e-child:has(> .elementor-widget-wpforms) {
  width: 100%; max-width: var(--twg-narrow); margin-left: auto; margin-right: auto; align-self: center; box-sizing: border-box;
  background: var(--twg-card); border: 1px solid var(--twg-line); border-radius: var(--twg-radius-lg); box-shadow: none;
  padding: clamp(1.25rem, 0.9rem + 1.5vw, 2.25rem); gap: 1.25rem; --width: 100%;
}
body.twg-page-contact .e-con.e-child:has(> .elementor-widget-wpforms)::before { display: none; }
body.twg-page-contact .e-con.e-child:has(> .e-con.e-child > .elementor-widget-wpforms) { align-items: center; background: transparent; border: 0; padding-left: 0; padding-right: 0; }
body.twg-page-contact .elementor-widget-text-editor p { color: var(--twg-text-2); margin: 0; }
body.twg-page-contact .e-con.e-child .elementor-widget-heading .elementor-heading-title { font-family: var(--twg-font-head); font-size: var(--twg-step-0); font-weight: 600; color: var(--twg-text); }
body.twg-page-contact .wpforms-container {
  --wpforms-field-background-color: rgba(27, 29, 41, 0.6); --wpforms-field-border-color: rgba(255, 255, 255, 0.25);
  --wpforms-field-border-color-spare: rgba(255, 255, 255, 0.25); --wpforms-field-text-color: #ffffff; --wpforms-field-menu-color: #1b1d29;
  --wpforms-label-color: #ffffff; --wpforms-label-sublabel-color: #a3a2bd; --wpforms-label-error-color: #ffb4a8;
  --wpforms-button-background-color: #4cd05b; --wpforms-button-text-color: #1b1d29; --wpforms-button-border-radius: 999px;
  --wpforms-field-border-radius: 10px; --wpforms-field-size-input-height: 50px; --wpforms-button-size-height: 48px;
  margin: 0; max-width: none;
}
body.twg-page-contact .wpforms-container .wpforms-form input[type="text"], body.twg-page-contact .wpforms-container .wpforms-form input[type="email"], body.twg-page-contact .wpforms-container .wpforms-form textarea {
  width: 100%; max-width: none; background: rgba(27, 29, 41, 0.6); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 10px; font-size: 1rem; box-sizing: border-box;
}
body.twg-page-contact .wpforms-container .wpforms-form input:focus, body.twg-page-contact .wpforms-container .wpforms-form textarea:focus { border-color: var(--twg-lime); box-shadow: 0 0 0 3px rgba(219, 255, 63, 0.25); outline: none; }
body.twg-page-contact .wpforms-container .wpforms-field-label { color: #ffffff; font-family: var(--twg-font-head); font-weight: 500; }
body.twg-page-contact .wpforms-container .wpforms-field-sublabel { color: var(--twg-text-3); }
body.twg-page-contact .wpforms-container .wpforms-form button[type="submit"].wpforms-submit {
  background: var(--twg-green); color: var(--twg-ink); border: 0; border-radius: 999px; min-height: 48px; height: auto; padding: 0.7rem 1.6rem;
  font-family: var(--twg-font-head); font-weight: 600; font-size: 1rem;
}
body.twg-page-contact .wpforms-container .wpforms-form button[type="submit"].wpforms-submit:hover { background: var(--twg-lime); color: var(--twg-ink); }
@media (max-width: 520px) { body.twg-page-contact .wpforms-container .wpforms-field-row-block.wpforms-one-half { width: 100%; margin-left: 0; float: none; } }
/* Fields use the full card width like Register (WPForms "medium" caps them at 60%) */
body.twg-page-contact .wpforms-container .wpforms-form .wpforms-field-medium, body.twg-page-contact .wpforms-container .wpforms-form .wpforms-field-row.wpforms-field-medium { max-width: 100%; width: 100%; }
body.twg-page-contact .wpforms-container .wpforms-form .wpforms-field { padding-left: 0; padding-right: 0; }
/* The old hero's pale diagonal shapes no longer cross behind the card */
body.twg-page-contact .e-con.e-parent::before { display: none; }

/* Trainings: an even, centred grid of cards with a dark band under each title, images kept inside the screen */
body.twg-page-trainings #content > .container { max-width: calc(var(--twg-max) + 2 * var(--twg-gutter)); width: 100%; padding-left: var(--twg-gutter); padding-right: var(--twg-gutter); margin-left: auto; margin-right: auto; box-sizing: border-box; }
body.twg-page-trainings #content .row { margin-left: 0; margin-right: 0; }
body.twg-page-trainings #content .content-area { padding-left: 0; padding-right: 0; max-width: 100%; }
body.twg-page-trainings .ultp-post-grid-block, body.twg-page-trainings .ultp-post-grid-block .ultp-block-wrapper { width: 100%; max-width: 100%; margin-left: auto; margin-right: auto; }
/* Top strip: same card size as the Latest Trainings grid below (364 px wide, square) and centred on the same 1140 px row */
body.twg-page-trainings .ultp-post-grid-block .ultp-block-items-wrap.ultp-block-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: clamp(1rem, 0.7rem + 1vw, 1.5rem); width: 100%; max-width: 100%;
}
body.twg-page-trainings .wp-block-ultimate-post-post-grid-4.ultp-post-grid-block { max-width: 1140px; }
body.twg-page-trainings .wp-block-ultimate-post-post-grid-4.ultp-post-grid-block .ultp-block-items-wrap.ultp-block-row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 22.75rem)); justify-content: center; gap: 24px;
}
body.twg-page-trainings .ultp-post-grid-block .ultp-block-row .ultp-block-item {
  grid-row: auto; grid-column: auto; max-height: none; max-width: 100%; min-width: 0; margin: 0; overflow: hidden; border-radius: var(--twg-radius-lg);
}
body.twg-page-trainings .ultp-post-grid-block .ultp-block-row .ultp-block-item .ultp-block-content-overlay {
  position: relative; height: auto; aspect-ratio: 1 / 1; max-width: 100%; overflow: hidden; border-radius: var(--twg-radius-lg); box-shadow: none; border: 1px solid var(--twg-line); box-sizing: border-box;
}
body.twg-page-trainings .ultp-post-grid-block .ultp-block-item .ultp-block-content-overlay .ultp-block-image,
body.twg-page-trainings .ultp-post-grid-block .ultp-block-item .ultp-block-content-overlay .ultp-block-image a { display: block; width: 100%; height: 100%; max-width: 100%; }
body.twg-page-trainings .ultp-post-grid-block .ultp-block-item .ultp-block-content-overlay .ultp-block-image img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; transform: none; }
body.twg-page-trainings .ultp-post-grid-block .ultp-block-item .ultp-block-content-overlay .ultp-block-content {
  position: absolute; left: 0; right: 0; bottom: 0; top: auto; height: auto; padding: 0; margin: 0; width: 100%; box-sizing: border-box;
}
body.twg-page-trainings .ultp-post-grid-block .ultp-block-item .ultp-block-content-overlay .ultp-block-content-inner {
  background: rgba(27, 29, 41, 0.9); padding: 0.85rem 1.1rem 1rem; width: 100%; box-sizing: border-box; border-top: 1px solid var(--twg-line);
}
body.twg-page-trainings .ultp-post-grid-block .ultp-block-item .ultp-block-title, body.twg-page-trainings .ultp-post-grid-block .ultp-block-item .ultp-block-title a {
  font-family: var(--twg-font-head); font-size: 1.08rem; font-weight: 600; line-height: 1.35; margin: 0; color: #ffffff;
}
body.twg-page-trainings .ultp-post-grid-block .ultp-block-item .ultp-category-grid { margin: 0 0 0.35rem; }

/* Blog: slider titles on a dark band so they read over bright images */
body.twg-page-blog .section-banner .banner-content .entry-content {
  display: inline-block; max-width: min(46rem, 100%); box-sizing: border-box; background: rgba(27, 29, 41, 0.85);
  padding: clamp(1rem, 0.8rem + 1vw, 1.75rem) clamp(1rem, 0.8rem + 1.5vw, 2rem); border-radius: var(--twg-radius-lg); border: 1px solid var(--twg-line);
}
body.twg-page-blog .section-banner .banner-content .entry-title, body.twg-page-blog .section-banner .banner-content .entry-title a { color: #ffffff; }
body.twg-page-blog .section-banner .banner-content .entry-title a:hover { color: var(--twg-lime); }
body.twg-page-blog .section-banner .banner-content .entry-title { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3rem); }
