.smh-home {
  --smh-bg: #ffffff;
  --smh-soft: #f4f6fa;
  --smh-soft-2: #eef2ff;
  --smh-border: #dfe3ea;
  --smh-text: #172033;
  --smh-muted: #667085;
  --smh-focus: #2563eb;
  --smh-focus-dark: #1d4ed8;
  --smh-indigo: #4f46e5;
  --smh-teal: #0d9488;
  --smh-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
  --smh-shadow-hover: 0 18px 48px rgba(15, 23, 42, 0.11);
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
  color: var(--smh-text);
  font-family: inherit;
  line-height: 1.55;
}

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

.smh-section {
  margin: 0 0 2.75rem;
  padding: 0 0.25rem;
}

.smh-section-panel {
  padding: 1.5rem 1.15rem;
  background: linear-gradient(180deg, #fff 0%, var(--smh-soft) 100%);
  border: 1px solid var(--smh-border);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.03);
}

.smh-section-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.smh-section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.smh-section-desc {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--smh-muted);
  font-size: 0.98rem;
}

/* Hero */
.smh-hero {
  margin-bottom: 2.5rem;
}

.smh-hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem);
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 60%),
    linear-gradient(165deg, #ffffff 0%, #f8faff 45%, #f0f4ff 100%);
  border: 1px solid rgba(223, 227, 234, 0.9);
  box-shadow: var(--smh-shadow);
}

.smh-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.5) 100%);
  pointer-events: none;
}

.smh-hero-kicker {
  position: relative;
  margin: 0 0 0.85rem;
  color: var(--smh-focus);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.smh-hero-title {
  position: relative;
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.smh-hero-subtitle {
  position: relative;
  margin: 0 auto 1.35rem;
  max-width: 40rem;
  color: var(--smh-muted);
  font-size: clamp(1rem, 2.4vw, 1.14rem);
}

.smh-hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.smh-trust-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.smh-trust-chips li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--smh-border);
  color: var(--smh-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.smh-trust-note {
  margin: 1rem auto 0;
  max-width: 42rem;
  padding: 0 0.5rem;
  color: var(--smh-muted);
  font-size: 0.88rem;
  text-align: center;
}

/* Grids — symmetric 3-column layout on desktop */
.smh-grid-2,
.smh-grid-3 {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.smh-card-grid,
.smh-guide-grid,
.smh-tile-grid {
  display: grid;
  gap: 0.85rem;
}

.smh-decision-grid {
  display: grid;
  gap: 0.85rem;
}

.smh-link-grid {
  display: grid;
  gap: 0.85rem;
}

.smh-final-actions {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .smh-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .smh-grid-3,
  .smh-card-grid,
  .smh-guide-grid,
  .smh-tile-grid,
  .smh-decision-grid,
  .smh-final-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .smh-grid-3,
  .smh-card-grid,
  .smh-guide-grid,
  .smh-tile-grid,
  .smh-decision-grid,
  .smh-final-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tool cards */
.smh-tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 1.25rem 1.2rem 1.15rem;
  background: #fff;
  border: 1px solid var(--smh-border);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.smh-tool-card:hover {
  transform: translateY(-2px);
  border-color: #c8d4ea;
  box-shadow: var(--smh-shadow-hover);
}

.smh-tool-card-featured {
  background: linear-gradient(180deg, #fff 0%, #f5f8ff 100%);
  border-color: #c7d7fe;
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.1);
}

.smh-tool-icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.smh-tool-icon-blue {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: var(--smh-focus);
}

.smh-tool-icon-indigo {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: var(--smh-indigo);
}

.smh-tool-icon-teal {
  background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
  color: var(--smh-teal);
}

.smh-tool-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.smh-tool-text {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
}

.smh-tool-meta {
  margin: 0 0 0.35rem;
  color: var(--smh-muted);
  font-size: 0.86rem;
}

/* Buttons */
.smh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.smh-btn-lg {
  min-height: 48px;
  padding: 0.75rem 1.45rem;
  font-size: 1.02rem;
}

.smh-btn-primary {
  border: 0;
  background: linear-gradient(180deg, #3b82f6 0%, var(--smh-focus) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
}

.smh-btn-primary:hover,
.smh-btn-primary:active {
  background: linear-gradient(180deg, var(--smh-focus) 0%, var(--smh-focus-dark) 100%);
  color: #fff;
  transform: translateY(-1px);
}

.smh-btn-ghost {
  border: 1px solid var(--smh-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--smh-text);
}

.smh-btn-ghost:hover,
.smh-btn-ghost:active {
  border-color: #b8c4d9;
  background: #fff;
}

.smh-btn-block {
  width: 100%;
  margin-top: auto;
}

.smh-btn:focus,
.smh-btn:focus-visible,
.smh-link-arrow:focus,
.smh-link-arrow:focus-visible,
.smh-tile:focus,
.smh-tile:focus-visible,
.smh-link-card:focus,
.smh-link-card:focus-visible,
.smh-guide-title a:focus,
.smh-guide-title a:focus-visible {
  outline: 2px solid var(--smh-focus);
  outline-offset: 2px;
}

/* Decision cards */
.smh-decision-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 1.1rem 1.05rem;
  background: #fff;
  border: 1px solid var(--smh-border);
  border-radius: 16px;
}

.smh-decision-num {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--smh-soft-2);
  color: var(--smh-focus);
  font-size: 0.82rem;
  font-weight: 800;
}

.smh-decision-text {
  margin: 0;
  flex: 1;
  font-weight: 700;
  line-height: 1.45;
}

.smh-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--smh-focus);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.smh-link-arrow:hover,
.smh-link-arrow:active {
  text-decoration: underline;
}

/* Tile grid (amounts / income) */
.smh-tile-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.smh-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  min-height: 88px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--smh-border);
  border-radius: 14px;
  background: #fff;
  color: var(--smh-text);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.smh-tile:hover,
.smh-tile:active {
  border-color: #b8c8e8;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.smh-tile-kicker {
  color: var(--smh-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.smh-tile-label {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.smh-tile-meta {
  color: var(--smh-muted);
  font-size: 0.84rem;
}

/* Guide cards */
.smh-guide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.05rem 1.1rem;
  background: #fff;
  border: 1px solid var(--smh-border);
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.smh-guide-card:hover {
  border-color: #c8d4ea;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.smh-guide-title {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.smh-guide-title a {
  color: var(--smh-text);
  text-decoration: none;
}

.smh-guide-title a:hover,
.smh-guide-title a:active {
  color: var(--smh-focus);
}

.smh-guide-text {
  margin: 0;
  flex: 1;
  color: var(--smh-muted);
  font-size: 0.9rem;
}

/* Link cards (methodology) */
.smh-link-grid {
  list-style: none;
}

.smh-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--smh-border);
  border-radius: 14px;
  background: #fff;
  color: var(--smh-text);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.smh-link-card:hover,
.smh-link-card:active {
  border-color: #b8c8e8;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.smh-link-card-title {
  font-weight: 800;
}

.smh-link-card-desc {
  color: var(--smh-muted);
  font-size: 0.88rem;
}

/* Final CTA */
.smh-final-cta {
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 3vw, 1.75rem);
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(37, 99, 235, 0.1) 0%, transparent 65%),
    linear-gradient(180deg, #fff 0%, var(--smh-soft) 100%);
  border: 1px solid var(--smh-border);
  box-shadow: var(--smh-shadow);
}

.smh-final-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 800;
}

.smh-final-text {
  margin: 0 auto 1.15rem;
  max-width: 34rem;
  color: var(--smh-muted);
}

/* Disclaimer */
.smh-disclaimer-block {
  margin-top: 0.5rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--smh-soft);
  border: 1px solid var(--smh-border);
}

.smh-disclaimer-block p {
  margin: 0;
  color: var(--smh-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .smh-home * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .smh-tool-card:hover,
  .smh-tile:hover,
  .smh-amount-card:hover,
  .smh-btn-primary:hover {
    transform: none;
  }
}

/* Mortgage amount hub (/mortgage/) */
.smh-hero-panel-compact {
  padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1rem, 3vw, 1.75rem);
}

.smh-hero-note {
  position: relative;
  margin: 0.85rem auto 0;
  max-width: 38rem;
  color: var(--smh-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.smh-hero-note strong {
  color: var(--smh-text);
  font-weight: 700;
}

.smh-amount-grid {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .smh-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .smh-amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.smh-amount-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
  padding: 1.15rem 1.1rem;
  background: #fff;
  border: 1px solid var(--smh-border);
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.smh-amount-card:hover {
  border-color: #c8d4ea;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.smh-amount-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.smh-amount-desc {
  margin: 0;
  flex: 1;
  color: var(--smh-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.smh-prose {
  margin: 0 0 0.75rem;
  max-width: 42rem;
  color: var(--smh-text);
  line-height: 1.65;
}

.smh-prose-tight {
  margin-bottom: 0;
}

.smh-prose-action {
  margin: 0;
}

.smh-section-panel .smh-section-title,
.smh-cross-panel .smh-section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.smh-cross-panel {
  padding: 1.35rem 1.15rem;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--smh-soft-2) 100%);
  border: 1px solid #c7d7fe;
}

.smh-cross-panel .smh-prose {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.smh-check-list {
  margin: 0 0 1rem;
  padding: 0 1.25rem 0 0;
  max-width: 36rem;
  margin-inline: auto;
}

.smh-check-list li {
  margin-bottom: 0.45rem;
  line-height: 1.55;
}

.smh-check-list li:last-child {
  margin-bottom: 0;
}

.smh-disclaimer-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.smh-grid-4-on-lg {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .smh-grid-4-on-lg {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .smh-grid-4-on-lg {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Content pages (amount landings, guides) */
.smh-content-page {
  padding-top: 0.25rem;
}

.smh-content-header {
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1rem, 3vw, 1.75rem);
  text-align: center;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
    linear-gradient(165deg, #ffffff 0%, #f8faff 45%, #f0f4ff 100%);
  border: 1px solid rgba(223, 227, 234, 0.9);
  box-shadow: var(--smh-shadow);
}

.smh-content-header-hero {
  margin-bottom: 2.5rem;
}

.smh-content-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.smh-content-intro {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--smh-muted);
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  line-height: 1.65;
}

.smh-section-title-centered {
  text-align: center;
  margin-bottom: 1rem;
}

.smh-prose-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.smh-calc-wrap {
  margin: 0 0 2.5rem;
}

.smh-example-box {
  margin: 1rem auto 0;
  max-width: 36rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--smh-border);
  color: var(--smh-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.smh-link-list {
  margin: 0;
  padding: 0 1.25rem 0 0;
  max-width: 28rem;
  margin-inline: auto;
  list-style: none;
}

.smh-link-list li {
  margin-bottom: 0.55rem;
}

.smh-link-list li:last-child {
  margin-bottom: 0;
}

.smh-link-list a {
  color: var(--smh-focus);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.smh-link-list a:hover,
.smh-link-list a:active,
.smh-link-list a:focus-visible {
  color: var(--smh-focus-dark);
}

.smh-link-arrow {
  color: var(--smh-focus);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.smh-link-arrow:hover,
.smh-link-arrow:active,
.smh-link-arrow:focus-visible {
  color: var(--smh-focus-dark);
}

.smh-btn:focus-visible,
.smh-guide-title a:focus-visible,
.smh-link-list a:focus-visible,
.smh-link-arrow:focus-visible,
.smh-toc-list a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

/* Articles */
.smh-article .smh-article-section + .smh-article-section {
  margin-top: 0;
}

.smh-toc {
  margin: 0 0 2rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--smh-border);
  border-radius: 16px;
  background: var(--smh-soft);
}

.smh-toc-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.smh-toc-list {
  margin: 0;
  padding: 0 1.25rem 0 0;
  line-height: 1.65;
}

.smh-toc-list a {
  color: var(--smh-focus);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.smh-faq-list {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
}

.smh-faq-q {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

/* v1.4.4 content refresh */
.smh-page-kicker {
  margin: 0 0 0.75rem;
  color: var(--smh-focus);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.smh-info-split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .smh-info-split {
    grid-template-columns: repeat(2, 1fr);
  }
}

.smh-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 1.35rem 1.15rem;
  text-align: center;
  border: 1px solid var(--smh-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.04);
}

.smh-info-card .smh-section-title {
  margin-bottom: 0.55rem;
  font-size: clamp(1.16rem, 2.5vw, 1.35rem);
}

.smh-info-card .smh-prose {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.smh-pill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.smh-pill-list li {
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--smh-border);
  border-radius: 999px;
  background: #fff;
  color: var(--smh-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.smh-note-box {
  max-width: 42rem;
  margin: 1rem auto 0;
  padding: 1rem 1.05rem;
  border: 1px solid #c7d7fe;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, var(--smh-soft-2) 100%);
}

.smh-note-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--smh-text);
  font-weight: 800;
}

.smh-note-box p {
  margin: 0;
  color: var(--smh-muted);
  line-height: 1.65;
}

.smh-source-list {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
  margin: 1rem auto 0;
  padding: 0;
  list-style: none;
}

.smh-source-list a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--smh-border);
  border-radius: 14px;
  background: #fff;
  color: var(--smh-text);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.smh-source-list a:hover,
.smh-source-list a:active,
.smh-source-list a:focus-visible {
  border-color: #b8c8e8;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
}

.smh-source-title {
  font-weight: 800;
}

.smh-source-desc {
  color: var(--smh-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.smh-section-panel .smh-source-list,
.smh-section-panel .smh-pill-list {
  text-align: right;
}

.smh-content-page .smh-check-list {
  text-align: right;
}

.smh-content-page .smh-section-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,255,0.96) 100%);
}

@media (max-width: 520px) {
  .smh-content-header,
  .smh-hero-panel,
  .smh-section-panel,
  .smh-cross-panel,
  .smh-final-cta {
    border-radius: 16px;
  }

  .smh-link-list {
    max-width: none;
  }
}

/* v1.4.6 reviewed - cleaner link grids and guide/category cards */
.smh-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 46rem;
  padding: 0;
  margin: 1rem auto 0;
  list-style: none;
}
.smh-link-list li { margin: 0; }
.smh-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 54px;
  padding: 0.78rem 0.95rem;
  border-radius: 16px;
  color: var(--smh-text);
  background: #fff;
  border: 1px solid var(--smh-border);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.smh-link-list a::after {
  content: "←";
  color: var(--smh-focus);
  font-weight: 900;
}
.smh-link-list a:hover,
.smh-link-list a:active,
.smh-link-list a:focus-visible {
  color: var(--smh-focus-dark);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.smh-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}
.smh-category-card {
  min-height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--smh-border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.smh-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37,99,235,.24);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}
.smh-category-card h3 {
  margin: 0 0 .45rem;
  font-size: 1.08rem;
  line-height: 1.35;
}
.smh-category-card h3 a {
  color: var(--smh-text);
  text-decoration: none;
}
.smh-category-card h3 a:hover { color: var(--smh-focus-dark); }
.smh-category-card p {
  margin: 0 0 .8rem;
  color: var(--smh-muted);
  line-height: 1.6;
}
.smh-category-card span {
  display: inline-flex;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: var(--smh-soft-2);
  color: var(--smh-focus-dark);
  font-size: .86rem;
  font-weight: 800;
}
.smh-guide-card {
  background: #fff;
  border: 1px solid var(--smh-border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}
.smh-guide-title a {
  text-decoration: none;
  color: var(--smh-text);
}
.smh-guide-title a:hover { color: var(--smh-focus-dark); }

@media (min-width: 980px) {
  .smh-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .smh-link-list,
  .smh-category-grid { grid-template-columns: 1fr; }
}

/* v1.4.6 - stronger internal link button grid */
.smh-section-panel .smh-link-list,
.smh-cross-panel .smh-link-list,
.smh-link-list {
  justify-items: stretch;
}
.smh-section-panel .smh-link-list a,
.smh-cross-panel .smh-link-list a,
.smh-link-list a {
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
  border: 1px solid #e6ded0;
  color: #143c3a;
}
.smh-section-panel .smh-link-list a:hover,
.smh-cross-panel .smh-link-list a:hover,
.smh-link-list a:hover {
  border-color: rgba(20, 60, 58, .30);
  box-shadow: 0 16px 36px rgba(20, 60, 58, .10);
}

/* === Maslul Barur v1.4.7: contact form and clean category links === */
.smh-contact-form-section { max-width: 920px; margin-inline: auto; }
.smh-contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}
.smh-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.smh-contact-field {
  display: grid;
  gap: .45rem;
  font-weight: 800;
  color: #172033;
}
.smh-contact-field input,
.smh-contact-field textarea {
  width: 100%;
  border: 1px solid #d7ccba;
  border-radius: 16px;
  padding: .9rem 1rem;
  background: #fffefa;
  color: #172033;
  font: inherit;
  font-weight: 600;
  box-sizing: border-box;
}
.smh-contact-field input:focus,
.smh-contact-field textarea:focus {
  outline: none;
  border-color: #b88431;
  box-shadow: 0 0 0 3px rgba(184,132,49,.16);
}
.smh-contact-field textarea { resize: vertical; min-height: 150px; }
.smh-contact-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid #e6ded0;
  background: #fffdf8;
  color: #475569;
  line-height: 1.7;
}
.smh-contact-consent input { margin-top: .3rem; }
.smh-contact-consent a { font-weight: 800; color: #143c3a; }
.smh-contact-submit { justify-self: start; }
.smh-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.smh-contact-alert {
  margin: 1rem 0;
  padding: .9rem 1rem;
  border-radius: 16px;
  font-weight: 800;
  line-height: 1.6;
}
.smh-contact-success { background: #ecfdf5; color: #065f46; border: 1px solid rgba(6,95,70,.18); }
.smh-contact-error { background: #fff1f2; color: #9f1239; border: 1px solid rgba(159,18,57,.18); }
@media (min-width: 760px) {
  .smh-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smh-contact-field-full { grid-column: 1 / -1; }
}
/* === Selective CTA continuous soft halo (homepage + article) === */
@property --mb-aura-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.smh-hero-panel {
  overflow: visible;
}
.smh-tool-card,
.smh-hero-actions,
.smh-final-actions,
.smh-final-cta,
.side-box {
  overflow: visible;
}

.mb-aura-cta,
a.button-link.mb-aura-cta {
  --mb-aura-text: #153f38;
  --mb-aura-bg: #ffffff;
  --mb-aura-angle: 0deg;
  position: relative;
  isolation: isolate;
  z-index: 0;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  color: var(--mb-aura-text) !important;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transform: translateZ(0);
  transition: transform 180ms ease, color 180ms ease;
  filter: none;
}

/*
  Halo stays locked to the button outline:
  - colors orbit via conic angle (@property), NOT transform:rotate on the layer
  - white ::after covers the button interior so glow never enters inside
*/
.mb-aura-cta::before,
a.button-link.mb-aura-cta::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -2;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--mb-aura-angle),
    #4285f4 0deg,
    #9b72cb 70deg,
    #d96570 140deg,
    #f2a60c 200deg,
    #34a853 270deg,
    #2f8f7a 320deg,
    #4285f4 360deg
  );
  filter: blur(6px);
  opacity: 0.62;
  animation: mb-aura-angle-spin 6.05s linear infinite;
  will-change: --mb-aura-angle;
  transform: none !important;
}

.mb-aura-cta::after,
a.button-link.mb-aura-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: var(--mb-aura-bg);
  border: 1px solid rgba(21, 63, 56, 0.12);
  box-shadow: 0 8px 22px rgba(15, 47, 42, 0.10);
  transform: none !important;
  animation: none !important;
  filter: none !important;
  opacity: 1 !important;
}

@keyframes mb-aura-angle-spin {
  to {
    --mb-aura-angle: 360deg;
  }
}

.mb-aura-cta:hover,
a.button-link.mb-aura-cta:hover {
  transform: translateY(-1px);
  color: var(--mb-aura-text) !important;
  background: transparent !important;
  filter: none;
}

.mb-aura-cta:hover::before,
a.button-link.mb-aura-cta:hover::before {
  opacity: 0.78;
}

.mb-aura-cta:hover::after,
a.button-link.mb-aura-cta:hover::after {
  border-color: rgba(21, 63, 56, 0.20);
  box-shadow: 0 12px 30px rgba(15, 47, 42, 0.14);
}

.mb-aura-cta:focus-visible,
a.button-link.mb-aura-cta:focus-visible {
  outline: 3px solid rgba(66, 133, 244, 0.22);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .mb-aura-cta::before,
  a.button-link.mb-aura-cta::before {
    animation: none;
  }
  .mb-aura-cta:hover,
  a.button-link.mb-aura-cta:hover {
    transform: none;
  }
}
