/*
 * GWA Modern base styles.
 */

:root {
  --gwa-header-bg: rgba(255, 255, 255, 0.82);
  --gwa-header-border: rgba(91, 104, 132, 0.16);
  --gwa-header-text: #0f172a;
  --gwa-header-muted: #64748b;
  --gwa-header-accent: #4f46e5;
  --gwa-header-accent-2: #7c3aed;
  --gwa-header-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --gwa-body-bg: #ffffff;
  --gwa-body-text: #111827;
  --gwa-body-muted: #475569;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--gwa-body-bg);
  color: var(--gwa-body-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.gwa-footer {
  padding: 32px 12px 28px;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
}

.gwa-footer__inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0;
}

.gwa-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.8fr) minmax(220px, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 38px rgba(49, 14, 113, 0.18);
}

.gwa-footer__column {
  display: grid;
  gap: 12px;
  color: #f5f3ff;
}

.gwa-footer__brand-top {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.gwa-footer__brand-logo {
  display: inline-flex;
  flex: 0 0 auto;
}

.gwa-footer__brand-logo .custom-logo-link {
  display: inline-flex;
}

.gwa-footer__brand-logo .custom-logo-link img {
  max-height: 56px;
  width: auto;
}

.gwa-footer__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.gwa-footer__brand-text {
  display: grid;
  gap: 6px;
}

.gwa-footer__brand-title {
  display: inline-block;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
}

.gwa-footer__brand-title:hover,
.gwa-footer__brand-title:focus-visible {
  text-decoration: underline;
}

.gwa-footer__brand-desc {
  color: rgba(245, 243, 255, 0.88);
  line-height: 1.7;
  max-width: 42ch;
}

.gwa-footer__copy {
  margin: 0;
  color: rgba(245, 243, 255, 0.8);
  font-size: 0.92rem;
}

.gwa-footer__credit {
  margin: 0;
  color: rgba(245, 243, 255, 0.72);
  font-size: 0.88rem;
}

.gwa-footer__credit a {
  color: #ffffff;
  text-decoration: none;
}

.gwa-footer__credit a:hover,
.gwa-footer__credit a:focus-visible {
  text-decoration: underline;
}

.gwa-footer__bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.gwa-footer__heading {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.gwa-footer__links,
.gwa-footer__contact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gwa-footer__links a,
.gwa-footer__contact-list a {
  color: rgba(245, 243, 255, 0.92);
  text-decoration: none;
}

.gwa-footer__links a:hover,
.gwa-footer__links a:focus-visible,
.gwa-footer__contact-list a:hover,
.gwa-footer__contact-list a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.gwa-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.gwa-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.gwa-footer__social-link:hover,
.gwa-footer__social-link:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.gwa-footer__social-link i {
  font-size: 0.95rem;
  line-height: 1;
}

.gwa-page-shell {
  padding: 34px 12px 52px;
}

.gwa-page-shell__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.gwa-breadcrumbs {
  margin: 0 0 18px;
}

.gwa-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.gwa-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gwa-breadcrumbs__item + .gwa-breadcrumbs__item::before {
  content: "/";
  color: #cbd5e1;
}

.gwa-breadcrumbs__item a {
  color: #6d28d9;
  text-decoration: none;
}

.gwa-breadcrumbs__item a:hover,
.gwa-breadcrumbs__item a:focus-visible {
  text-decoration: underline;
}

.gwa-page-content-card {
  border: 1px dashed rgba(109, 40, 217, 0.32);
  background: #fff;
}

.gwa-post-single__layout {
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 30px;
}

.gwa-post-single__article {
  display: grid;
  gap: 20px;
}

.gwa-post-single__header {
  display: grid;
  gap: 14px;
  padding: 6px 0 0;
}

.gwa-post-single__kicker {
  margin: 0;
  color: #6d28d9;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gwa-post-single__title {
  margin: 0;
  color: #111827;
  font-size: clamp(2.6rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.gwa-post-single__details-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.gwa-post-single__detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.gwa-post-single__detail-label {
  color: #6d28d9;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gwa-post-single__detail-label--inline {
  letter-spacing: 0.02em;
  text-transform: none;
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 700;
}

.gwa-post-single__detail-value {
  color: #111827;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.gwa-post-single__detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #6d28d9;
  font-size: 0.9rem;
  line-height: 1;
}

.gwa-post-single__detail-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.gwa-post-single__detail-value--author,
.gwa-post-single__detail-value--date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gwa-post-single__detail--share {
  gap: 10px;
}

.gwa-post-single__share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gwa-post-single__share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(109, 40, 217, 0.18);
  background: #fff;
  color: #6d28d9;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.gwa-post-single__share-link:hover,
.gwa-post-single__share-link:focus-visible {
  color: #5b21b6;
  background: #faf5ff;
}

.gwa-post-single__share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  font-size: 0.85rem;
  line-height: 1;
}

.gwa-post-single__share-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.gwa-post-single__featured {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #f8fafc;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.gwa-post-single__featured img {
  display: block;
  width: 100%;
  height: auto;
}

.gwa-post-single__content {
  margin-top: 0;
  padding: 22px 20px 14px;
  border: 1px solid rgba(109, 40, 217, 0.24);
  background: #fff;
  box-shadow: 0 12px 24px rgba(109, 40, 217, 0.08);
}

.gwa-post-single__latest {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(109, 40, 217, 0.16);
}

.gwa-post-single__latest-header {
  display: grid;
  gap: 8px;
}

.gwa-post-single__latest-eyebrow {
  margin: 0;
  color: #6d28d9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gwa-post-single__latest-title {
  margin: 0;
  color: #111827;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.gwa-post-single__latest-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gwa-blog-archive__header {
  display: grid;
  gap: 10px;
  margin: 8px 0 28px;
}

.gwa-blog-archive__eyebrow {
  margin: 0;
  color: #6d28d9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gwa-blog-archive__title {
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.gwa-blog-archive__description {
  max-width: 68ch;
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
}

.gwa-blog-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px 24px;
}

.gwa-post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  align-content: start;
  height: 100%;
  color: #111827;
  padding: 16px;
  border: 1px solid rgba(109, 40, 217, 0.18);
  background: #fff;
  box-shadow: 0 12px 24px rgba(109, 40, 217, 0.08);
}

.gwa-post-card__media {
  display: block;
  overflow: hidden;
  background: #f8fafc;
}

.gwa-post-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gwa-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.gwa-post-card__title {
  margin: 0;
  color: #6d28d9;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gwa-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.gwa-post-card__title a:hover,
.gwa-post-card__title a:focus-visible {
  color: #6d28d9;
}

.gwa-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
}

.gwa-post-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gwa-post-card__meta-item--author::before,
.gwa-post-card__meta-item--date::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  mask: var(--gwa-post-card-icon) center / contain no-repeat;
  -webkit-mask: var(--gwa-post-card-icon) center / contain no-repeat;
}

.gwa-post-card__meta-item--author::before {
  --gwa-post-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0-4-4a4 4 0 0 0 4 4Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E");
}

.gwa-post-card__meta-item--date::before {
  --gwa-post-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1V3a1 1 0 0 1 1-1Zm12 8H5v9h14v-9ZM7 6H5v2h14V6h-2v1a1 1 0 1 1-2 0V6H9v1a1 1 0 1 1-2 0V6Z'/%3E%3C/svg%3E");
}

.gwa-post-card__excerpt {
  margin: 0;
  color: #334155;
  font-size: 1rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gwa-post-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(109, 40, 217, 0.18);
}

.gwa-post-card__button:hover,
.gwa-post-card__button:focus-visible {
  color: #fff;
  box-shadow: 0 12px 24px rgba(109, 40, 217, 0.24);
}

.gwa-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.gwa-pagination__link > a,
.gwa-pagination__link > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 54px;
  padding: 0 18px;
  border: 2px solid #c2c8d5;
  background: #fff;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  box-sizing: border-box;
}

.gwa-pagination__link.is-current > span,
.gwa-pagination__link > a:hover,
.gwa-pagination__link > a:focus-visible {
  border-color: #5b8fd1;
  background: #5b8fd1;
  color: #fff;
}

.gwa-pagination__link.is-prev > a,
.gwa-pagination__link.is-next > a {
  min-width: 122px;
}

.gwa-pagination__link.is-prev > span,
.gwa-pagination__link.is-next > span {
  min-width: 122px;
  color: #c2c8d5;
}

.gwa-pagination__link.is-dots > span {
  min-width: 28px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #6b7280;
}

.gwa-calculator-page-content__inner {
  color: var(--gwa-body-muted);
}

.gwa-calculator-page-content__layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  grid-template-areas: "sidebar content";
  gap: 24px;
  align-items: start;
}

.gwa-calculator-page-content__layout > * {
  min-width: 0;
}

.gwa-calculator-page-content__sidebar {
  grid-area: sidebar;
  display: grid;
  gap: 18px;
  align-content: start;
  position: sticky;
  top: 96px;
  padding-right: 4px;
}

.gwa-page-content__article {
  grid-area: content;
}

.gwa-newsletter-box {
  position: static;
}

.gwa-calculator-toc {
  position: static;
  top: auto;
}

.gwa-calculator-toc__inner {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(109, 40, 217, 0.18);
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.12);
  overflow: hidden;
}

.gwa-calculator-toc__summary-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gwa-calculator-toc__eyebrow {
  margin: 0 0 8px;
  color: #6d28d9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gwa-page-toc .gwa-calculator-toc__eyebrow {
  color: #6d28d9;
}

.gwa-calculator-toc__details {
  padding: 20px 12px 12px 20px;
}

.gwa-calculator-toc__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}

.gwa-calculator-toc__summary::-webkit-details-marker {
  display: none;
}

.gwa-calculator-toc__summary-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 4px;
}

.gwa-calculator-toc__summary-icon--toggle::before,
.gwa-calculator-toc__summary-icon--toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: #6d28d9;
}

.gwa-calculator-toc__summary-icon--toggle::before {
  width: 16px;
  height: 2px;
}

.gwa-calculator-toc__summary-icon--toggle::after {
  width: 2px;
  height: 16px;
  transition: transform 0.18s ease;
}

.gwa-calculator-toc__details[open] .gwa-calculator-toc__summary-icon--toggle::after {
  transform: scaleY(0);
}

.gwa-calculator-toc__panel {
  margin-top: 12px;
  max-height: 56vh;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.28s ease,
    margin-top 0.28s ease;
  will-change: max-height, opacity, transform;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

.gwa-calculator-toc__details:not([open]) .gwa-calculator-toc__panel {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  pointer-events: none;
}

.gwa-calculator-toc__panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.gwa-calculator-toc__list {
  margin: 0;
  padding: 0;
  list-style: decimal;
  list-style-position: inside;
}

.gwa-calculator-toc__item {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #d5e7f6;
}

.gwa-calculator-toc__item:last-child {
  border-bottom: 0;
}

.gwa-calculator-toc__item a {
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.45;
}

.gwa-calculator-toc__item a:hover,
.gwa-calculator-toc__item a:focus-visible {
  color: #6d28d9;
}

.gwa-calculator-toc__item--level-3 {
  padding-left: 18px;
}

.gwa-calculator-toc__empty {
  margin: 0;
  color: var(--gwa-body-muted);
  line-height: 1.6;
}

.gwa-calculator-toc__progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  background: #eef2ff;
  pointer-events: none;
}

.gwa-calculator-toc__progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  min-height: 20px;
  background: #7c4dff;
  border-radius: 999px;
  transform: translateY(0);
  will-change: transform, height;
}

.gwa-page-content__body {
  padding: 18px 18px 8px;
  color: var(--gwa-body-text);
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gwa-page-content__body > *:first-child {
  margin-top: 0;
}

.gwa-page-content__body > *:last-child {
  margin-bottom: 0;
}

.gwa-page-content-card .gwa-page-content__body h1,
.gwa-page-content-card .gwa-page-content__body h2,
.gwa-page-content__body h3,
.gwa-page-content__body h4,
.gwa-page-content__body h5,
.gwa-page-content__body h6 {
  margin: 1.6em 0 0.7em;
  color: #6d28d9;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.gwa-page-content__body h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.gwa-page-content__body h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
}

.gwa-page-content__body h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

.gwa-page-content__body h4 {
  font-size: 1.15rem;
}

.gwa-page-content__body h5,
.gwa-page-content__body h6 {
  font-size: 1rem;
}

.gwa-page-content__body p,
.gwa-page-content__body ul,
.gwa-page-content__body ol,
.gwa-page-content__body blockquote,
.gwa-page-content__body pre {
  margin: 0 0 1rem;
}

.gwa-page-content-card .gwa-page-content__body > p:first-of-type {
  font-size: 1.06rem;
  font-weight: 700;
  color: #6d28d9;
}

.gwa-page-content-card .gwa-page-content__body > p:first-of-type::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  color: #6d28d9;
  font-size: 2.5em;
  line-height: 0.9;
  font-weight: 800;
}

.gwa-page-content__body a {
  color: #6d28d9;
  text-decoration-color: rgba(109, 40, 217, 0.45);
  font-weight: 600;
}

.gwa-page-content__body a:hover,
.gwa-page-content__body a:focus-visible {
  color: #5b21b6;
}

.gwa-page-content__body table {
  display: table;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
  background: #fff;
}

.gwa-page-content__body .wp-block-table {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid rgba(109, 40, 217, 0.16);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.gwa-page-content__body .wp-block-table table {
  display: table;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
  margin: 0;
}

.gwa-page-content__body th,
.gwa-page-content__body td {
  padding: 12px 14px;
  border: 1px solid rgba(109, 40, 217, 0.14);
  vertical-align: top;
}

.gwa-page-content__body th {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  color: #ffffff;
  font-weight: 700;
}

.gwa-page-content__body tr:nth-child(even) td {
  background: #faf5ff;
}

.gwa-page-content__body img {
  display: block;
  height: auto;
}

.gwa-newsletter-box {
  position: static;
}

.gwa-newsletter-box__inner {
  padding: 20px 18px;
  border: 1px solid rgba(109, 40, 217, 0.18);
  background: linear-gradient(180deg, #ffffff, #faf5ff);
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.12);
}

.gwa-newsletter-box__eyebrow {
  margin: 0 0 8px;
  color: #6d28d9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gwa-newsletter-box__title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.18rem;
  line-height: 1.2;
}

.gwa-newsletter-box__lead {
  margin: 0 0 14px;
  color: var(--gwa-body-muted);
  line-height: 1.6;
}

.gwa-newsletter-box__notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(109, 40, 217, 0.16);
  background: #faf5ff;
  color: #4c1d95;
  font-size: 0.94rem;
  line-height: 1.5;
}

.gwa-newsletter-box__notice--success {
  border-color: rgba(22, 163, 74, 0.18);
  background: #f0fdf4;
  color: #166534;
}

.gwa-newsletter-box__notice--error {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fef2f2;
  color: #991b1b;
}

.gwa-newsletter-box__form {
  display: grid;
  gap: 10px;
}

.gwa-newsletter-box__input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(109, 40, 217, 0.18);
  background: #fff;
  color: var(--gwa-body-text);
  font: inherit;
  box-sizing: border-box;
}

.gwa-newsletter-box__input:focus {
  outline: none;
  border-color: #6d28d9;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

.gwa-page-shell .gwa-newsletter-box__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(109, 40, 217, 0.18);
}

.gwa-contact-page {
  background: #fff;
}

.gwa-contact-hero {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.gwa-contact-hero__eyebrow {
  margin: 0;
  color: #6d28d9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gwa-contact-hero__title {
  margin: 0;
  color: #111827;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.gwa-contact-hero__lead {
  margin: 0;
  max-width: 760px;
  color: var(--gwa-body-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.gwa-contact-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(109, 40, 217, 0.18);
  background: #faf5ff;
  color: #4c1d95;
  font-weight: 600;
}

.gwa-contact-notice--success {
  border-color: rgba(22, 163, 74, 0.18);
  background: #f0fdf4;
  color: #166534;
}

.gwa-contact-notice--error {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fef2f2;
  color: #991b1b;
}

.gwa-contact-page__grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.gwa-contact-card {
  border: 1px dashed rgba(109, 40, 217, 0.28);
  background: #fff;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.08);
}

.gwa-contact-card--details {
  padding: 20px;
}

.gwa-contact-card--form {
  padding: 20px;
}

.gwa-contact-card__eyebrow {
  margin: 0 0 8px;
  color: #6d28d9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gwa-contact-card__title {
  margin: 0 0 18px;
  color: #111827;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.gwa-contact-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.gwa-contact-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid rgba(109, 40, 217, 0.16);
  background: #faf5ff;
  color: #4c1d95;
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.gwa-contact-list__item:hover,
.gwa-contact-list__item:focus-visible {
  border-color: rgba(109, 40, 217, 0.34);
  background: #f3e8ff;
}

.gwa-contact-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: #6d28d9;
  color: #fff;
}

.gwa-contact-list__text {
  min-width: 0;
}

.gwa-contact-guest-post {
  margin: 0 0 18px;
  padding: 16px;
  border-left: 4px solid #6d28d9;
  background: #faf5ff;
}

.gwa-contact-guest-post__eyebrow,
.gwa-contact-social__eyebrow {
  margin: 0 0 8px;
  color: #6d28d9;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gwa-contact-guest-post__text {
  margin: 0;
  color: var(--gwa-body-muted);
  line-height: 1.75;
}

.gwa-contact-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gwa-contact-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(109, 40, 217, 0.18);
  background: #fff;
  color: #6d28d9;
  text-decoration: none;
}

.gwa-contact-social__link:hover,
.gwa-contact-social__link:focus-visible {
  background: #faf5ff;
}

.gwa-contact-social__link i {
  font-size: 0.95rem;
  line-height: 1;
}

.gwa-contact-form {
  display: grid;
  gap: 14px;
}

.gwa-contact-form__field {
  display: grid;
  gap: 8px;
}

.gwa-contact-form__label {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 700;
}

.gwa-contact-form__input,
.gwa-contact-form__textarea {
  width: 100%;
  border: 1px solid rgba(109, 40, 217, 0.18);
  background: #fff;
  color: var(--gwa-body-text);
  font: inherit;
  box-sizing: border-box;
}

.gwa-contact-form__input {
  min-height: 48px;
  padding: 0 14px;
}

.gwa-contact-form__textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
}

.gwa-contact-form__input:focus,
.gwa-contact-form__textarea:focus {
  outline: none;
  border-color: #6d28d9;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

.gwa-contact-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(109, 40, 217, 0.18);
}

.gwa-contact-page__content {
  margin-top: 26px;
  border: 1px solid rgba(109, 40, 217, 0.16);
  background: #fff;
  box-shadow: 0 12px 24px rgba(109, 40, 217, 0.08);
}

.gwa-page-content__body figure {
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 640px) {
  .gwa-page-shell {
    padding: 22px 10px 42px;
  }

  .gwa-contact-page__grid {
    grid-template-columns: 1fr;
  }

  .gwa-contact-card--details,
  .gwa-contact-card--form {
    padding: 16px;
  }

  .gwa-contact-hero__title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .gwa-contact-list__item {
    align-items: flex-start;
  }

  .gwa-contact-list__icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .gwa-post-single__layout {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-areas:
      "breadcrumbs"
      "toc"
      "content"
      "newsletter"
      "latest";
    gap: 18px;
  }

  .gwa-post-single__sidebar,
  .gwa-post-single__article,
  .gwa-post-single__content,
  .gwa-post-single__featured,
  .gwa-post-single__latest {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .gwa-post-single__sidebar {
    display: contents;
  }

  .gwa-breadcrumbs {
    grid-area: breadcrumbs;
    margin-bottom: 0;
  }

  .gwa-calculator-toc {
    grid-area: toc;
  }

  .gwa-post-single__article {
    grid-area: content;
  }

  .gwa-newsletter-box {
    grid-area: newsletter;
  }

  .gwa-post-single__latest {
    grid-area: latest;
    margin-top: 0;
  }

  .gwa-post-single__title {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .gwa-post-single__details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 10px;
  }

  .gwa-post-single__detail {
    justify-content: flex-start;
    min-width: 0;
  }

  .gwa-post-single__share {
    justify-content: flex-start;
    gap: 6px;
  }

  .gwa-post-single__share-link {
    width: 28px;
    height: 28px;
    min-height: 28px;
  }

  .gwa-post-single__share-icon {
    width: 14px;
    height: 14px;
  }

  .gwa-post-single__content {
    padding: 16px 12px 12px;
  }

  .gwa-post-single__title {
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: 0.96;
  }

  .gwa-post-single__featured {
    border-radius: 8px;
  }

  .gwa-post-single__latest-grid {
    grid-template-columns: 1fr;
  }

  .gwa-blog-archive__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gwa-pagination {
    gap: 8px;
    margin-top: 26px;
  }

  .gwa-pagination__link > a,
  .gwa-pagination__link > span {
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 1rem;
  }

  .gwa-pagination__link.is-prev > a,
  .gwa-pagination__link.is-next > a,
  .gwa-pagination__link.is-prev > span,
  .gwa-pagination__link.is-next > span {
    min-width: 92px;
  }

  .gwa-post-card__image {
    aspect-ratio: 16 / 10;
  }

  .gwa-calculator-toc__details {
    padding: 14px 10px 8px 14px;
  }

  .gwa-newsletter-box__inner {
    padding: 16px 14px;
  }

  .gwa-calculator-toc__panel {
    max-height: 56vh;
    overflow-y: auto;
    padding-right: 8px;
  }

  .gwa-page-content__body {
    padding: 14px 14px 6px;
    font-size: 0.98rem;
  }

  .gwa-post-single__content .gwa-page-content__body {
    padding-left: 0;
    padding-right: 0;
  }

  .gwa-page-content__body h1 {
    font-size: 1.75rem;
  }

  .gwa-page-content__body h2 {
    font-size: 1.4rem;
  }

  .gwa-page-content__body h3 {
    font-size: 1.2rem;
  }

  .gwa-page-content__body table,
  .gwa-page-content__body .wp-block-table table {
    display: block;
    width: 100%;
    min-width: 720px;
    max-width: none;
    table-layout: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gwa-page-content__body .wp-block-table {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 959px) {
  .gwa-calculator-page-content__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "content";
  }

  .gwa-post-single__layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "breadcrumbs"
      "toc"
      "content"
      "newsletter"
      "latest";
    gap: 18px;
  }

  .gwa-post-single__sidebar,
  .gwa-post-single__article,
  .gwa-post-single__content,
  .gwa-post-single__featured,
  .gwa-post-single__latest {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .gwa-post-single__sidebar {
    display: contents;
  }

  .gwa-calculator-toc {
    order: 1;
  }

  .gwa-post-single__article {
    order: 2;
  }

  .gwa-newsletter-box {
    order: 3;
  }

  .gwa-post-single__latest {
    order: 4;
  }

  .gwa-contact-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 959px) {
  .gwa-footer {
    padding: 22px 10px 24px;
  }

  .gwa-footer__inner {
    text-align: left;
  }

  .gwa-footer__grid {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .gwa-footer__brand {
    align-items: center;
  }

  .gwa-footer__bottom {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .gwa-footer__grid {
    gap: 18px;
  }

  .gwa-footer__brand {
    align-items: flex-start;
  }

  .gwa-footer__social {
    justify-content: flex-start;
  }
}
