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

html {
  scroll-behavior: smooth;
}

body.mtd-system-page {
  --mtd-bg: #05070a;
  --mtd-bg-soft: #080b10;
  --mtd-panel: #081612;
  --mtd-panel-strong: #0c211c;
  --mtd-panel-soft: rgba(16, 23, 34, 0.74);
  --mtd-line: #163b36;
  --mtd-line-soft: rgba(22, 244, 198, 0.16);
  --mtd-text: #f6f8fb;
  --mtd-muted: #a8bdb8;
  --mtd-subtle: #748983;
  --mtd-blue: #16f4c6;
  --mtd-blue-strong: #66ffe0;
  --mtd-gold: #4fd6a6;
  --mtd-gold-soft: #16f4c6;
  --mtd-green: #7ee2a8;
  --mtd-red: #c97e7e;
  --mtd-radius: 8px;
  --mtd-radius-sm: 6px;
  --mtd-shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 17% 0%, rgba(22, 244, 198, 0.09), transparent 34rem),
    radial-gradient(circle at 82% 4%, rgba(126, 226, 168, 0.055), transparent 30rem),
    linear-gradient(180deg, #080a0e 0%, #05070a 48%, #05070a 100%);
  color: var(--mtd-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

.mtd-system-chrome {
  --mtd-bg: #05070a;
  --mtd-bg-soft: #080b10;
  --mtd-panel: #081612;
  --mtd-panel-strong: #0c211c;
  --mtd-panel-soft: rgba(16, 23, 34, 0.74);
  --mtd-line: #163b36;
  --mtd-line-soft: rgba(22, 244, 198, 0.16);
  --mtd-text: #f6f8fb;
  --mtd-muted: #a8bdb8;
  --mtd-subtle: #748983;
  --mtd-blue: #16f4c6;
  --mtd-blue-strong: #66ffe0;
  --mtd-gold: #4fd6a6;
  --mtd-gold-soft: #16f4c6;
  --mtd-green: #7ee2a8;
  --mtd-red: #c97e7e;
  --mtd-radius: 8px;
  --mtd-radius-sm: 6px;
  --mtd-shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
  color: var(--mtd-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

body.mtd-system-page a {
  color: inherit;
  text-decoration: none;
}

.mtd-system-chrome a {
  color: inherit;
  text-decoration: none;
}

body.mtd-system-page img,
body.mtd-system-page svg {
  max-width: 100%;
}

.mtd-system-chrome img,
.mtd-system-chrome svg {
  max-width: 100%;
}

body.mtd-system-page h1,
body.mtd-system-page h2,
body.mtd-system-page h3,
body.mtd-system-page p {
  margin-top: 0;
}

.mtd-system-chrome h1,
.mtd-system-chrome h2,
.mtd-system-chrome h3,
.mtd-system-chrome p {
  margin-top: 0;
}

.mtd-system-chrome p {
  margin-bottom: 0;
  padding-bottom: 0;
}

.mtd-site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.mtd-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.mtd-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 99999;
  padding: 10px 14px;
  border-radius: var(--mtd-radius-sm);
  background: var(--mtd-text);
  color: #07090d;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.mtd-skip-link:focus {
  transform: translateY(0);
}

.mtd-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(138, 166, 194, 0.16);
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(18px);
}

body.admin-bar .mtd-site-header {
  top: 32px;
}

.mtd-header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.mtd-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mtd-brand-logo {
  display: block;
  width: clamp(132px, 12vw, 176px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(22, 244, 198, 0.14));
}

.mtd-brand-copy {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  max-width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mtd-brand-copy strong {
  color: var(--mtd-text);
  font-size: 0.92rem;
  line-height: 1.15;
}

.mtd-brand-copy small {
  color: var(--mtd-muted);
  font-size: 0.73rem;
  line-height: 1.2;
}

.mtd-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mtd-nav::-webkit-scrollbar {
  display: none;
}

.mtd-nav a {
  position: relative;
  padding: 10px 11px;
  border-radius: var(--mtd-radius-sm);
  color: var(--mtd-muted);
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}

.mtd-nav a:hover,
.mtd-nav a:focus-visible,
.mtd-nav a.is-active {
  background: rgba(22, 244, 198, 0.1);
  color: var(--mtd-text);
}

.mtd-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mtd-blue), var(--mtd-green));
}

.mtd-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(22, 244, 198, 0.34);
  border-radius: var(--mtd-radius-sm);
  background: rgba(22, 244, 198, 0.08);
  color: var(--mtd-gold-soft);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.mtd-header-cta-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.mtd-header-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mtd-mobile-menu {
  display: none;
}

.mtd-mobile-menu summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(138, 166, 194, 0.24);
  border-radius: var(--mtd-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mtd-text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  list-style: none;
}

.mtd-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mtd-mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.mtd-mobile-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius-sm);
  background: rgba(16, 23, 34, 0.82);
  color: var(--mtd-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.mtd-mobile-nav a.is-active {
  border-color: rgba(22, 244, 198, 0.42);
  color: var(--mtd-text);
}

.mtd-main {
  position: relative;
}

.mtd-section {
  padding: 106px 0;
}

.mtd-section-band {
  border-top: 1px solid rgba(138, 166, 194, 0.12);
  border-bottom: 1px solid rgba(138, 166, 194, 0.12);
  background:
    linear-gradient(180deg, rgba(13, 18, 26, 0.56), rgba(7, 10, 14, 0.7)),
    linear-gradient(90deg, rgba(22, 244, 198, 0.035), transparent 38%, rgba(126, 226, 168, 0.025));
}

.mtd-hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 122px 0 108px;
}

.mtd-hero-grid,
.mtd-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: 74px;
  align-items: center;
}

.mtd-hero-copy {
  max-width: 680px;
}

.mtd-eyebrow {
  margin-bottom: 14px;
  color: var(--mtd-gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mtd-hero h1,
.mtd-page-hero h1 {
  margin-bottom: 18px;
  color: var(--mtd-text);
  font-size: clamp(3rem, 5.3vw, 5.25rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.mtd-page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.55rem);
}

.mtd-hero p:not(.mtd-eyebrow),
.mtd-page-hero p:not(.mtd-eyebrow) {
  max-width: 660px;
  color: var(--mtd-muted);
  font-size: 1.15rem;
}

.mtd-button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.mtd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 190px;
  padding: 0 18px;
  border-radius: var(--mtd-radius-sm);
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.93rem;
  line-height: 1;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.mtd-button:hover,
.mtd-button:focus-visible {
  transform: translateY(-1px);
}

.mtd-button-primary {
  background: linear-gradient(135deg, #16f4c6, #0aa88f);
  color: #04100d;
  box-shadow: 0 18px 44px rgba(22, 244, 198, 0.16);
}

.mtd-button-secondary {
  background: rgba(22, 244, 198, 0.06);
  border-color: rgba(22, 244, 198, 0.32);
  color: var(--mtd-gold-soft);
}

.mtd-button-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(138, 166, 194, 0.22);
  color: var(--mtd-text);
}

.mtd-dashboard {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius);
  background:
    linear-gradient(145deg, rgba(15, 21, 30, 0.96), rgba(6, 9, 13, 0.96)),
    radial-gradient(circle at 76% 12%, rgba(22, 244, 198, 0.085), transparent 20rem);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
}

.mtd-dashboard::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.mtd-dashboard-top,
.mtd-dashboard-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mtd-dashboard-top > div,
.mtd-dashboard-bottom > div {
  padding: 14px;
  border: 1px solid rgba(138, 166, 194, 0.13);
  border-radius: var(--mtd-radius-sm);
  background: rgba(255, 255, 255, 0.026);
}

.mtd-dashboard span,
.mtd-dashboard small {
  display: block;
  color: var(--mtd-subtle);
  font-size: 0.75rem;
}

.mtd-dashboard strong {
  display: block;
  margin-top: 2px;
  color: var(--mtd-text);
  font-size: 0.92rem;
}

.mtd-dashboard-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.78fr);
  gap: 16px;
  margin: 16px 0;
}

.mtd-chart-panel {
  min-height: 392px;
  padding: 18px;
  border: 1px solid rgba(138, 166, 194, 0.13);
  border-radius: var(--mtd-radius-sm);
  background: #080d14;
}

.mtd-chart-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.mtd-chart {
  position: relative;
  height: 310px;
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 22px 18px 18px;
  border-radius: var(--mtd-radius-sm);
  overflow: hidden;
  background:
    linear-gradient(rgba(138, 166, 194, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 166, 194, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 70% 35%, rgba(22, 244, 198, 0.09), transparent 18rem),
    #070b11;
  background-size: 100% 56px, 56px 100%, auto, auto;
}

.mtd-chart span {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 7px;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, rgba(167, 197, 237, 0.94), rgba(93, 124, 165, 0.8));
}

.mtd-chart span:nth-child(3n),
.mtd-chart span:nth-child(4n) {
  background: linear-gradient(180deg, rgba(126, 226, 168, 0.88), rgba(45, 166, 132, 0.78));
}

.mtd-chart-line {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 3;
  height: 2px;
  opacity: 0.72;
  transform: rotate(-7deg);
}

.mtd-chart-line-one {
  top: 39%;
  background: linear-gradient(90deg, transparent, var(--mtd-gold), transparent);
}

.mtd-chart-line-two {
  top: 57%;
  background: linear-gradient(90deg, transparent, var(--mtd-blue), transparent);
  transform: rotate(4deg);
}

.mtd-system-rail {
  display: grid;
  gap: 12px;
}

.mtd-system-rail > div {
  min-height: 114px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border: 1px solid rgba(138, 166, 194, 0.13);
  border-radius: var(--mtd-radius-sm);
  background:
    linear-gradient(135deg, rgba(22, 244, 198, 0.07), rgba(126, 226, 168, 0.035)),
    rgba(255, 255, 255, 0.024);
}

.mtd-system-rail strong {
  color: var(--mtd-gold-soft);
  font-size: 0.98rem;
  line-height: 1.25;
}

.mtd-section-header {
  max-width: 780px;
  margin: 0 0 46px;
  text-align: left;
}

.mtd-section-heading {
  max-width: 860px;
  margin: 0 0 34px;
  text-align: left;
}

.mtd-section-header h2,
.mtd-section-heading h2,
.mtd-feature-panel h2,
.mtd-form-panel h2 {
  margin-bottom: 14px;
  color: var(--mtd-text);
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  line-height: 1.08;
}

.mtd-section-header p:not(.mtd-eyebrow),
.mtd-section-heading p:not(.mtd-eyebrow),
.mtd-feature-panel p,
.mtd-form-panel p {
  color: var(--mtd-muted);
  font-size: 1rem;
}

.mtd-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mtd-card,
.mtd-triad article,
.mtd-product-card,
.mtd-post-card,
.mtd-mini-terminal,
.mtd-pdf-visual,
.mtd-journal-visual,
.mtd-profile-panel,
.mtd-contact-card {
  border: 1px solid rgba(138, 166, 194, 0.17);
  border-radius: var(--mtd-radius);
  background:
    linear-gradient(145deg, rgba(17, 24, 35, 0.78), rgba(8, 12, 18, 0.88)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.14);
}

.mtd-card {
  position: relative;
  min-height: 198px;
  padding: 26px;
  overflow: hidden;
}

.mtd-card::after {
  display: none;
}

.mtd-card-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: var(--mtd-radius-sm);
  border: 1px solid rgba(22, 244, 198, 0.24);
  background: rgba(22, 244, 198, 0.08);
  color: var(--mtd-blue-strong);
  font-weight: 800;
}

.mtd-card h3 {
  position: relative;
  margin-bottom: 12px;
  color: var(--mtd-text);
  font-size: 1.22rem;
}

.mtd-card p {
  position: relative;
  margin-bottom: 0;
  color: var(--mtd-muted);
  font-size: 0.96rem;
}

.mtd-problem-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mtd-service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mtd-problem-grid .mtd-card-number,
.mtd-service-grid .mtd-card-number {
  display: none;
}

.mtd-problem-grid .mtd-card,
.mtd-service-grid .mtd-card {
  min-height: 188px;
}

.mtd-triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mtd-triad article {
  min-height: 310px;
  padding: 32px;
}

.mtd-triad span {
  display: inline-flex;
  margin-bottom: 42px;
  padding: 7px 10px;
  border-radius: var(--mtd-radius-sm);
  background: rgba(22, 244, 198, 0.1);
  color: var(--mtd-gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mtd-triad h3 {
  margin-bottom: 10px;
  color: var(--mtd-text);
  font-size: 1.32rem;
}

.mtd-triad p {
  color: var(--mtd-muted);
}

.mtd-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 28px;
  border: 1px solid rgba(138, 166, 194, 0.14);
  border-radius: var(--mtd-radius);
  background:
    linear-gradient(135deg, rgba(22, 244, 198, 0.055), rgba(126, 226, 168, 0.03)),
    rgba(10, 14, 21, 0.78);
}

.mtd-flow::before {
  content: "";
  position: absolute;
  left: 58px;
  right: 58px;
  top: 78px;
  height: 1px;
  background: linear-gradient(90deg, rgba(22, 244, 198, 0.24), rgba(126, 226, 168, 0.2));
}

.mtd-flow-step {
  position: relative;
  min-height: 255px;
  padding: 0 14px;
  text-align: center;
}

.mtd-flow-index {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border: 1px solid rgba(22, 244, 198, 0.3);
  border-radius: 50%;
  background: #090e15;
  color: var(--mtd-gold-soft);
  font-weight: 900;
}

.mtd-flow-step > div {
  min-height: 150px;
  padding: 0;
  border: 0;
  border-radius: var(--mtd-radius);
  background: transparent;
}

.mtd-flow-step strong {
  display: block;
  color: var(--mtd-text);
  font-size: 1.04rem;
}

.mtd-flow-step small {
  display: block;
  margin: 4px 0 10px;
  color: var(--mtd-blue-strong);
}

.mtd-flow-step p {
  margin: 0;
  color: var(--mtd-muted);
  font-size: 0.87rem;
}

.mtd-center-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.mtd-feature-panel,
.mtd-form-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  align-items: center;
  gap: 30px;
  padding: 34px;
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius);
  background:
    linear-gradient(135deg, rgba(22, 244, 198, 0.1), rgba(126, 226, 168, 0.08)),
    #101722;
}

.mtd-feature-panel {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mtd-feature-panel .mtd-button {
  white-space: nowrap;
}

.mtd-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.mtd-disclaimer-section {
  padding-top: 0;
}

.mtd-disclaimer-section p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(22, 244, 198, 0.2);
  border-radius: var(--mtd-radius);
  background: rgba(22, 244, 198, 0.055);
  color: var(--mtd-muted);
}

.mtd-page-hero {
  padding-top: 92px;
  padding-bottom: 70px;
  border-bottom: 1px solid rgba(138, 166, 194, 0.12);
}

.mtd-mini-terminal {
  display: grid;
  gap: 10px;
  padding: 26px;
}

.mtd-mini-terminal span,
.mtd-pdf-visual span,
.mtd-profile-panel span,
.mtd-contact-card span {
  color: var(--mtd-gold-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mtd-mini-terminal code {
  display: block;
  padding: 13px 14px;
  border-radius: var(--mtd-radius-sm);
  background: #080d13;
  color: var(--mtd-blue-strong);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.9rem;
}

.mtd-rules-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mtd-rules-grid .mtd-card {
  min-height: 206px;
}

.mtd-diagram {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mtd-diagram div {
  position: relative;
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(138, 166, 194, 0.18);
  border-radius: var(--mtd-radius);
  background: rgba(16, 23, 34, 0.8);
  color: var(--mtd-text);
  font-weight: 800;
  text-align: center;
}

.mtd-diagram div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--mtd-gold);
}

.mtd-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.mtd-two-column .mtd-section-header {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.mtd-no-sell-list,
.mtd-process-list {
  display: grid;
  gap: 10px;
}

.mtd-no-sell-list span,
.mtd-process-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius-sm);
  background: rgba(16, 23, 34, 0.76);
  color: var(--mtd-muted);
}

.mtd-process-list {
  padding-left: 0;
  list-style: none;
}

.mtd-process-list span {
  color: var(--mtd-gold-soft);
  font-weight: 900;
}

.mtd-request-form {
  display: grid;
  gap: 14px;
}

.mtd-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mtd-field {
  display: grid;
  gap: 8px;
}

.mtd-field span {
  color: var(--mtd-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.mtd-field input,
.mtd-field textarea,
.mtd-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(138, 166, 194, 0.22);
  border-radius: var(--mtd-radius-sm);
  background: #090e15;
  color: var(--mtd-text);
  padding: 12px 13px;
  font: inherit;
  letter-spacing: 0;
}

.mtd-field textarea {
  min-height: 118px;
  resize: vertical;
}

.mtd-field input:focus,
.mtd-field textarea:focus,
.mtd-field select:focus {
  outline: 2px solid rgba(22, 244, 198, 0.28);
  border-color: rgba(22, 244, 198, 0.58);
}

.mtd-form-message {
  padding: 12px 14px;
  border-radius: var(--mtd-radius-sm);
  color: var(--mtd-text);
}

.mtd-form-message.is-success {
  border: 1px solid rgba(135, 191, 165, 0.34);
  background: rgba(135, 191, 165, 0.1);
}

.mtd-form-message.is-error {
  border: 1px solid rgba(201, 126, 126, 0.34);
  background: rgba(201, 126, 126, 0.1);
}

.mtd-product-grid,
.mtd-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mtd-product-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.mtd-product-card span {
  margin-bottom: 42px;
  color: var(--mtd-gold-soft);
  font-weight: 800;
}

.mtd-product-card h2 {
  margin-bottom: 10px;
  color: var(--mtd-text);
  font-size: 1.34rem;
  line-height: 1.18;
}

.mtd-product-card p {
  color: var(--mtd-muted);
}

.mtd-product-card .mtd-button {
  margin-top: auto;
}

.mtd-product-card-featured {
  border-color: rgba(22, 244, 198, 0.32);
  background:
    linear-gradient(145deg, rgba(22, 244, 198, 0.1), rgba(199, 164, 90, 0.07)),
    linear-gradient(145deg, rgba(17, 24, 35, 0.88), rgba(8, 12, 18, 0.95));
}

.mtd-pdf-visual,
.mtd-profile-panel,
.mtd-contact-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.mtd-pdf-visual strong,
.mtd-profile-panel strong,
.mtd-contact-card strong {
  max-width: 340px;
  margin: 26px 0 10px;
  color: var(--mtd-text);
  font-size: 2.2rem;
  line-height: 1;
}

.mtd-pdf-visual small,
.mtd-profile-panel p,
.mtd-contact-card p {
  color: var(--mtd-muted);
}

.mtd-journal-visual {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.mtd-journal-visual div {
  min-height: 94px;
  padding: 18px;
  border-radius: var(--mtd-radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.mtd-journal-visual span {
  display: block;
  color: var(--mtd-subtle);
}

.mtd-journal-visual strong {
  display: block;
  margin-top: 8px;
  color: var(--mtd-text);
  font-size: 1.3rem;
}

.mtd-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.mtd-category-row span {
  padding: 9px 12px;
  border: 1px solid rgba(138, 166, 194, 0.18);
  border-radius: var(--mtd-radius-sm);
  background: rgba(16, 23, 34, 0.78);
  color: var(--mtd-muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.mtd-post-card {
  overflow: hidden;
}

.mtd-post-media {
  min-height: 210px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(138, 166, 194, 0.16);
  background:
    linear-gradient(135deg, rgba(22, 244, 198, 0.13), rgba(126, 226, 168, 0.09)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 24px),
    #0a1018;
  background-size: cover;
  background-position: center;
}

.mtd-post-media.has-image {
  min-height: 230px;
}

.mtd-post-media span {
  padding: 8px 10px;
  border-radius: var(--mtd-radius-sm);
  background: rgba(7, 9, 13, 0.72);
  color: var(--mtd-gold-soft);
  font-weight: 800;
}

.mtd-post-body {
  padding: 20px;
}

.mtd-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--mtd-subtle);
  font-size: 0.82rem;
}

.mtd-post-meta span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(138, 166, 194, 0.38);
}

.mtd-post-card h3 {
  margin-bottom: 10px;
  color: var(--mtd-text);
  font-size: 1.18rem;
  line-height: 1.22;
}

.mtd-post-card p {
  color: var(--mtd-muted);
  font-size: 0.94rem;
}

.mtd-text-link {
  color: var(--mtd-blue-strong);
  font-weight: 800;
  font-size: 0.9rem;
}

.mtd-empty-state {
  color: var(--mtd-muted);
  text-align: center;
}

.mtd-about-grid .mtd-card-grid {
  width: 100%;
}

.mtd-site-footer {
  width: 100%;
  border-top: 1px solid rgba(138, 166, 194, 0.18);
  background: #07090d;
}

.mtd-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  padding: 44px 0;
}

.mtd-site-footer h2 {
  margin-bottom: 16px;
  color: var(--mtd-text);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.mtd-site-footer p,
.mtd-site-footer a {
  color: var(--mtd-muted);
}

.mtd-footer-brand {
  margin-bottom: 18px;
}

.mtd-footer-links {
  display: grid;
  gap: 9px;
}

.mtd-footer-disclaimer {
  padding: 18px 0;
  border-top: 1px solid rgba(138, 166, 194, 0.12);
  background: #05070a;
  color: var(--mtd-muted);
  font-size: 0.9rem;
}

.mtd-footer-disclaimer strong {
  color: var(--mtd-gold-soft);
}

@media (max-width: 1120px) {
  .mtd-header-inner {
    grid-template-columns: 1fr auto;
    padding: 12px 0;
  }

  .mtd-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .mtd-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mtd-flow::before {
    display: none;
  }

  .mtd-product-grid,
  .mtd-post-grid,
  .mtd-rules-grid,
  .mtd-problem-grid,
  .mtd-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.admin-bar .mtd-site-header {
    top: 46px;
  }

  .mtd-section,
  .mtd-hero,
  .mtd-page-hero {
    padding: 56px 0;
  }

  .mtd-hero-grid,
  .mtd-page-hero-grid,
  .mtd-feature-panel,
  .mtd-form-panel,
  .mtd-two-column {
    grid-template-columns: 1fr;
  }

  .mtd-hero {
    min-height: auto;
  }

  .mtd-card-grid,
  .mtd-triad,
  .mtd-footer-grid {
    grid-template-columns: 1fr;
  }

  .mtd-section-header {
    max-width: none;
  }

  .mtd-dashboard-body {
    grid-template-columns: 1fr;
  }

  .mtd-system-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mtd-flow {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .mtd-flow-step {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: stretch;
    min-height: auto;
    gap: 12px;
    padding: 0;
    text-align: left;
  }

  .mtd-flow-index {
    margin: 0;
  }

  .mtd-diagram {
    grid-template-columns: 1fr;
  }

  .mtd-diagram div:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -9px;
    width: 2px;
    height: 18px;
  }
}

@media (max-width: 640px) {
  .mtd-container {
    width: min(100% - 22px, 1160px);
  }

  .mtd-header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mtd-header-cta {
    width: 100%;
  }

  .mtd-nav {
    display: none;
  }

  .mtd-mobile-menu {
    display: block;
    width: 100%;
  }

  .mtd-hero h1,
  .mtd-page-hero h1 {
    font-size: 2.35rem;
  }

  .mtd-dashboard {
    padding: 12px;
  }

  .mtd-dashboard-top,
  .mtd-dashboard-bottom,
  .mtd-system-rail,
  .mtd-product-grid,
  .mtd-post-grid,
  .mtd-form-grid {
    grid-template-columns: 1fr;
  }

  .mtd-chart-panel {
    min-height: 300px;
  }

  .mtd-chart {
    height: 226px;
    gap: 5px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .mtd-button-row,
  .mtd-feature-panel,
  .mtd-feature-actions {
    align-items: stretch;
  }

  .mtd-button-row .mtd-button,
  .mtd-feature-panel .mtd-button {
    width: 100%;
  }

  .mtd-card,
  .mtd-triad article,
  .mtd-feature-panel,
  .mtd-form-panel,
  .mtd-product-card,
  .mtd-post-body {
    padding: 20px;
  }

  .mtd-flow-step {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .mtd-flow-index {
    width: 54px;
    height: 54px;
  }
}

/* Alignment and typography pass */
body.mtd-system-page {
  font-size: 16px;
  line-height: 1.65;
  text-rendering: geometricPrecision;
}

body.mtd-system-page h1,
body.mtd-system-page h2,
body.mtd-system-page h3,
body.mtd-system-page h4,
body.mtd-system-page p,
body.mtd-system-page ul,
body.mtd-system-page ol {
  letter-spacing: 0;
}

body.mtd-system-page p {
  margin-bottom: 0;
  line-height: 1.68;
}

.mtd-header-inner {
  gap: 28px;
}

.mtd-nav {
  gap: 6px;
}

.mtd-nav a,
.mtd-header-cta,
.mtd-mobile-menu summary,
.mtd-mobile-nav a,
.mtd-button {
  line-height: 1;
}

.mtd-hero-copy {
  max-width: 650px;
}

.mtd-hero h1,
.mtd-page-hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  hyphens: none;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.mtd-hero p:not(.mtd-eyebrow),
.mtd-page-hero p:not(.mtd-eyebrow) {
  max-width: 620px;
  line-height: 1.7;
}

.mtd-eyebrow {
  margin-bottom: 16px;
  line-height: 1.2;
}

.mtd-button-row {
  gap: 12px;
  margin-top: 36px;
  width: 100%;
}

body.mtd-system-page .mtd-button {
  min-height: 50px;
  min-width: 190px;
  padding: 0 22px;
}

body.mtd-system-page .mtd-button-primary,
body.mtd-system-page .mtd-button-secondary,
body.mtd-system-page .mtd-button-ghost,
body.mtd-system-page .mtd-header-cta {
  color: var(--mtd-text);
}

.mtd-system-chrome .mtd-button {
  min-height: 50px;
  min-width: 190px;
  padding: 0 22px;
}

.mtd-system-chrome .mtd-button-primary,
.mtd-system-chrome .mtd-button-secondary,
.mtd-system-chrome .mtd-button-ghost,
.mtd-system-chrome .mtd-header-cta {
  color: var(--mtd-text);
}

.mtd-section-header {
  max-width: 760px;
  margin-bottom: 52px;
}

.mtd-section-header h2,
.mtd-feature-panel h2,
.mtd-form-panel h2 {
  max-width: 760px;
  margin-bottom: 16px;
  text-wrap: balance;
}

.mtd-section-header p:not(.mtd-eyebrow),
.mtd-feature-panel p,
.mtd-form-panel p {
  max-width: 660px;
  line-height: 1.7;
}

.mtd-card-grid,
.mtd-triad,
.mtd-product-grid,
.mtd-post-grid {
  gap: 20px;
}

.mtd-card,
.mtd-product-card,
.mtd-post-card,
.mtd-triad article,
.mtd-mini-terminal,
.mtd-pdf-visual,
.mtd-journal-visual,
.mtd-profile-panel,
.mtd-contact-card {
  text-align: left;
}

.mtd-card {
  padding: 28px;
}

.mtd-card h3,
.mtd-triad h3,
.mtd-product-card h2,
.mtd-post-card h3 {
  line-height: 1.22;
  text-wrap: balance;
}

.mtd-card p,
.mtd-triad p,
.mtd-product-card p,
.mtd-post-card p,
.mtd-flow-step p,
.mtd-site-footer p,
.mtd-site-footer a {
  line-height: 1.65;
}

.mtd-problem-grid .mtd-card,
.mtd-service-grid .mtd-card {
  min-height: 202px;
}

.mtd-triad span {
  margin-bottom: 48px;
}

.mtd-flow {
  gap: 8px;
}

.mtd-flow-step {
  padding: 0 12px;
}

.mtd-flow-step strong {
  line-height: 1.22;
  text-wrap: balance;
}

.mtd-flow-step small {
  line-height: 1.25;
}

.mtd-feature-panel,
.mtd-form-panel {
  align-items: start;
  gap: 44px;
  padding: 42px;
}

.mtd-form-grid,
.mtd-request-form {
  gap: 16px;
}

.mtd-field {
  gap: 9px;
}

.mtd-field span {
  line-height: 1.25;
}

.mtd-field input,
.mtd-field textarea,
.mtd-field select {
  line-height: 1.35;
}

.mtd-post-body,
.mtd-product-card {
  padding: 24px;
}

.mtd-post-meta {
  align-items: center;
  line-height: 1.2;
}

.mtd-footer-grid {
  align-items: start;
  padding: 54px 0;
}

.mtd-footer-links {
  gap: 12px;
}

@media (max-width: 1120px) {
  .mtd-header-inner {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .mtd-section,
  .mtd-hero,
  .mtd-page-hero {
    padding: 76px 0;
  }

  .mtd-hero-grid,
  .mtd-page-hero-grid {
    gap: 42px;
  }

  .mtd-section-header {
    margin-bottom: 34px;
  }

  .mtd-flow-step {
    padding: 0;
  }

  .mtd-feature-panel,
  .mtd-form-panel {
    padding: 30px;
  }
}

@media (max-width: 640px) {
  body.mtd-system-page {
    font-size: 15.5px;
  }

  .mtd-header-inner {
    gap: 10px;
  }

  .mtd-brand-logo {
    width: 142px;
  }

  .mtd-section,
  .mtd-hero,
  .mtd-page-hero {
    padding: 66px 0;
  }

  .mtd-hero h1,
  .mtd-page-hero h1 {
    margin-bottom: 20px;
    font-size: 2.28rem;
    line-height: 1.08;
  }

  .mtd-hero p:not(.mtd-eyebrow),
  .mtd-page-hero p:not(.mtd-eyebrow) {
    font-size: 1.03rem;
    line-height: 1.68;
  }

  .mtd-button-row {
    margin-top: 30px;
  }

  .mtd-section-header h2,
  .mtd-feature-panel h2,
  .mtd-form-panel h2 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .mtd-card,
  .mtd-triad article,
  .mtd-feature-panel,
  .mtd-form-panel,
  .mtd-product-card,
  .mtd-post-body {
    padding: 22px;
  }

  .mtd-problem-grid .mtd-card,
  .mtd-service-grid .mtd-card,
  .mtd-card {
    min-height: auto;
  }

  .mtd-flow {
    padding: 20px;
  }
}

/* Density and space-usage pass */
.mtd-container {
  width: min(1280px, calc(100% - 40px));
}

.mtd-header-inner {
  min-height: 74px;
}

.mtd-section {
  padding: 78px 0;
}

.mtd-hero {
  min-height: auto;
  padding: 86px 0 76px;
}

.mtd-page-hero {
  padding-top: 78px;
  padding-bottom: 68px;
}

.mtd-hero-grid,
.mtd-page-hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: 52px;
}

.mtd-hero-copy {
  max-width: 760px;
}

.mtd-hero h1,
.mtd-page-hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.9rem, 4.15vw, 4.45rem);
  line-height: 1.04;
}

.mtd-page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 4vw, 4.2rem);
}

.mtd-hero p:not(.mtd-eyebrow),
.mtd-page-hero p:not(.mtd-eyebrow) {
  max-width: 720px;
}

.mtd-button-row {
  margin-top: 28px;
}

.mtd-dashboard {
  padding: 18px;
}

.mtd-dashboard-body {
  grid-template-columns: minmax(0, 1.48fr) minmax(210px, 0.82fr);
  gap: 14px;
  margin: 14px 0;
}

.mtd-dashboard-top,
.mtd-dashboard-bottom {
  gap: 10px;
}

.mtd-chart-panel {
  min-height: 330px;
  padding: 14px;
}

.mtd-chart {
  height: 248px;
}

.mtd-system-rail > div {
  min-height: 96px;
}

.mtd-section-header {
  max-width: 920px;
  margin-bottom: 34px;
}

.mtd-section-header h2,
.mtd-feature-panel h2,
.mtd-form-panel h2 {
  max-width: 900px;
  font-size: clamp(2rem, 3vw, 3.15rem);
}

.mtd-section-header p:not(.mtd-eyebrow) {
  max-width: 780px;
}

.mtd-card-grid,
.mtd-triad,
.mtd-product-grid,
.mtd-post-grid {
  gap: 16px;
}

.mtd-card,
.mtd-product-card,
.mtd-post-body {
  padding: 24px;
}

.mtd-triad article {
  min-height: 250px;
  padding: 28px;
}

.mtd-triad span {
  margin-bottom: 28px;
}

.mtd-problem-grid .mtd-card,
.mtd-service-grid .mtd-card {
  min-height: 168px;
}

.mtd-flow {
  padding: 22px;
}

.mtd-flow-step {
  min-height: 210px;
}

.mtd-flow-index {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
}

.mtd-flow::before {
  top: 53px;
}

.mtd-feature-panel,
.mtd-form-panel {
  gap: 34px;
  padding: 34px;
}

.mtd-product-card {
  min-height: 270px;
}

.mtd-product-card span {
  margin-bottom: 28px;
}

.mtd-post-media {
  min-height: 188px;
}

.mtd-post-media.has-image {
  min-height: 198px;
}

.mtd-footer-grid {
  padding: 42px 0;
}

@media (max-width: 1120px) {
  .mtd-container {
    width: min(100% - 32px, 1180px);
  }

  .mtd-hero-grid,
  .mtd-page-hero-grid {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .mtd-section,
  .mtd-hero,
  .mtd-page-hero {
    padding: 54px 0;
  }

  .mtd-hero-grid,
  .mtd-page-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mtd-dashboard {
    max-width: 680px;
  }

  .mtd-flow-step {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .mtd-container {
    width: min(100% - 22px, 1280px);
  }

  .mtd-section,
  .mtd-hero,
  .mtd-page-hero {
    padding: 44px 0;
  }

  .mtd-hero h1,
  .mtd-page-hero h1 {
    font-size: 1.95rem;
    line-height: 1.08;
  }

  .mtd-hero p:not(.mtd-eyebrow),
  .mtd-page-hero p:not(.mtd-eyebrow) {
    font-size: 1rem;
  }

  .mtd-button-row {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  body.mtd-system-page .mtd-button-row .mtd-button,
  body.mtd-system-page .mtd-feature-panel .mtd-button {
    width: 100%;
  }

  .mtd-chart-panel {
    min-height: 260px;
  }

  .mtd-chart {
    height: 198px;
  }

  .mtd-section-header {
    margin-bottom: 24px;
  }

  .mtd-section-header h2,
  .mtd-feature-panel h2,
  .mtd-form-panel h2 {
    font-size: 1.8rem;
  }

  .mtd-card,
  .mtd-triad article,
  .mtd-feature-panel,
  .mtd-form-panel,
  .mtd-product-card,
  .mtd-post-body {
    padding: 20px;
  }
}

/* Architecture and footer refinement */
.mtd-architecture {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 20px;
  align-items: stretch;
}

.mtd-architecture-visual,
.mtd-architecture-steps {
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius);
  background:
    linear-gradient(145deg, rgba(14, 20, 30, 0.94), rgba(5, 8, 12, 0.98)),
    #070b10;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.26);
}

.mtd-architecture-visual {
  position: relative;
  min-height: 100%;
  display: grid;
  gap: 20px;
  overflow: hidden;
  padding: 26px;
}

.mtd-architecture-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(138, 166, 194, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 166, 194, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(140deg, black, transparent 78%);
}

.mtd-architecture-visual > * {
  position: relative;
  z-index: 1;
}

.mtd-architecture-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(138, 166, 194, 0.13);
}

.mtd-architecture-header span,
.mtd-route-node small,
.mtd-architecture-layers span,
.mtd-architecture-console span,
.mtd-architecture-step small {
  display: block;
  color: var(--mtd-subtle);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.mtd-architecture-header strong {
  color: var(--mtd-text);
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  line-height: 1.2;
  text-align: right;
}

.mtd-architecture-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.mtd-route-node {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.mtd-route-node.is-active {
  border-color: rgba(22, 244, 198, 0.42);
  background: rgba(22, 244, 198, 0.075);
  box-shadow: inset 0 0 0 1px rgba(22, 244, 198, 0.08);
}

.mtd-route-node strong {
  margin-top: 8px;
  color: var(--mtd-text);
  font-size: 1.02rem;
  line-height: 1.25;
}

.mtd-architecture-route i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(22, 244, 198, 0.12), rgba(22, 244, 198, 0.78));
}

.mtd-architecture-layers {
  display: grid;
  gap: 10px;
}

.mtd-architecture-layers div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgba(138, 166, 194, 0.14);
  border-radius: var(--mtd-radius-sm);
  background: rgba(7, 12, 18, 0.7);
}

.mtd-architecture-layers p {
  margin: 0;
  color: var(--mtd-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.mtd-architecture-console {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mtd-architecture-console div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(22, 244, 198, 0.17);
  border-radius: var(--mtd-radius-sm);
  background: rgba(22, 244, 198, 0.055);
}

.mtd-architecture-console strong {
  display: block;
  margin-top: 8px;
  color: var(--mtd-blue-strong);
  font-size: 1rem;
  line-height: 1.2;
}

.mtd-architecture-steps {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.mtd-architecture-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 100px;
  padding: 16px;
  border: 1px solid rgba(138, 166, 194, 0.12);
  border-radius: var(--mtd-radius-sm);
  background: rgba(255, 255, 255, 0.026);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.mtd-architecture-step:hover {
  border-color: rgba(22, 244, 198, 0.3);
  background: rgba(22, 244, 198, 0.045);
  transform: translateY(-1px);
}

.mtd-architecture-step-index {
  width: 44px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(22, 244, 198, 0.24);
  border-radius: var(--mtd-radius-sm);
  background: rgba(22, 244, 198, 0.07);
  color: var(--mtd-blue-strong);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.mtd-architecture-step h3 {
  margin: 5px 0 5px;
  color: var(--mtd-text);
  font-size: 1.04rem;
  line-height: 1.2;
}

.mtd-architecture-step p {
  margin: 0;
  color: var(--mtd-muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.mtd-site-footer {
  position: relative;
  border-top: 1px solid rgba(138, 166, 194, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.98), #05070a),
    #05070a;
}

.mtd-site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 244, 198, 0.55), transparent);
}

.mtd-footer-shell {
  padding: 42px 0 30px;
}

.mtd-footer-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(138, 166, 194, 0.13);
}

.mtd-footer-brand-block {
  display: grid;
  gap: 16px;
}

.mtd-footer-brand {
  margin-bottom: 0;
}

.mtd-footer-brand .mtd-brand-logo {
  width: clamp(150px, 14vw, 210px);
}

.mtd-footer-brand-block p {
  max-width: 640px;
  color: var(--mtd-muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.mtd-footer-cta {
  min-width: 230px;
  white-space: nowrap;
}

.mtd-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.8fr) minmax(190px, 0.95fr) minmax(220px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 30px 0 24px;
}

.mtd-footer-column {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
}

.mtd-site-footer h2 {
  margin: 0;
  color: var(--mtd-text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.mtd-site-footer p,
.mtd-site-footer a,
.mtd-footer-links span {
  color: var(--mtd-muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.mtd-footer-links {
  display: grid;
  gap: 8px;
}

.mtd-footer-links a,
.mtd-footer-inline-link {
  transition: color 180ms ease, transform 180ms ease;
}

.mtd-footer-links a:hover,
.mtd-footer-links a:focus-visible,
.mtd-footer-inline-link:hover,
.mtd-footer-inline-link:focus-visible {
  color: var(--mtd-blue-strong);
}

.mtd-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.mtd-footer-badges span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(22, 244, 198, 0.18);
  border-radius: var(--mtd-radius-sm);
  background: rgba(22, 244, 198, 0.055);
  color: var(--mtd-blue-strong);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
}

.mtd-footer-inline-link {
  width: fit-content;
  color: var(--mtd-blue-strong);
  font-weight: 850;
}

.mtd-footer-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(138, 166, 194, 0.1);
}

.mtd-footer-status span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(138, 166, 194, 0.14);
  border-radius: var(--mtd-radius-sm);
  background: rgba(255, 255, 255, 0.024);
  color: var(--mtd-subtle);
  font-size: 0.8rem;
  font-weight: 800;
}

.mtd-footer-disclaimer {
  padding: 18px 0;
  border-top: 1px solid rgba(138, 166, 194, 0.14);
  background: #030507;
  color: var(--mtd-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.mtd-footer-disclaimer .mtd-container {
  max-width: 1280px;
}

.mtd-research-section {
  position: relative;
  border-top: 1px solid rgba(138, 166, 194, 0.1);
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0), rgba(9, 14, 20, 0.44) 46%, rgba(5, 7, 10, 0)),
    radial-gradient(circle at 16% 22%, rgba(22, 244, 198, 0.06), transparent 28rem);
}

.mtd-research-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.mtd-research-head h2 {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--mtd-text);
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.08;
}

.mtd-research-head p:not(.mtd-eyebrow) {
  max-width: 720px;
  color: var(--mtd-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.mtd-research-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.mtd-research-feature,
.mtd-research-list {
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius);
  background:
    linear-gradient(145deg, rgba(15, 22, 32, 0.92), rgba(6, 9, 14, 0.98)),
    #070b10;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.mtd-research-feature {
  display: grid;
  grid-template-rows: minmax(295px, 0.98fr) auto;
}

.mtd-research-feature-media {
  position: relative;
  min-height: 295px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(rgba(138, 166, 194, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 166, 194, 0.052) 1px, transparent 1px),
    radial-gradient(circle at 74% 24%, rgba(22, 244, 198, 0.15), transparent 18rem),
    #081018;
  background-position: center;
  background-size: 44px 44px, 44px 44px, auto, cover;
}

.mtd-research-feature-media.has-image {
  background-size: cover;
  background-position: center;
}

.mtd-research-feature-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.18), rgba(3, 5, 8, 0.84)),
    linear-gradient(90deg, rgba(3, 5, 8, 0.7), transparent 68%);
}

.mtd-research-feature-media::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 86px;
  height: 2px;
  opacity: 0.75;
  background: linear-gradient(90deg, transparent, rgba(22, 244, 198, 0.8), transparent);
  transform: rotate(-4deg);
}

.mtd-research-feature-media span,
.mtd-research-feature-media strong {
  position: relative;
  z-index: 1;
}

.mtd-research-feature-media span {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(22, 244, 198, 0.26);
  border-radius: var(--mtd-radius-sm);
  background: rgba(5, 9, 13, 0.72);
  color: var(--mtd-blue-strong);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.mtd-research-feature-media strong {
  max-width: 390px;
  color: var(--mtd-text);
  font-size: clamp(2.1rem, 3.1vw, 3.65rem);
  line-height: 0.98;
}

.mtd-research-feature-body {
  padding: 26px;
}

.mtd-research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--mtd-subtle);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.2;
}

.mtd-research-meta span + time::before,
.mtd-research-meta time + span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(138, 166, 194, 0.38);
}

.mtd-research-feature h3 {
  max-width: 680px;
  margin-bottom: 12px;
  color: var(--mtd-text);
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.12;
}

.mtd-research-feature p {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--mtd-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.mtd-research-list {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 14px;
}

.mtd-research-list-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 8px 18px;
  border-bottom: 1px solid rgba(138, 166, 194, 0.12);
}

.mtd-research-list-head span {
  color: var(--mtd-subtle);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mtd-research-list-head strong {
  color: var(--mtd-text);
  font-size: 0.98rem;
  line-height: 1.2;
  text-align: right;
}

.mtd-research-note {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 8px;
  border-bottom: 1px solid rgba(138, 166, 194, 0.1);
}

.mtd-research-note:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}

.mtd-research-note-index {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(22, 244, 198, 0.2);
  border-radius: var(--mtd-radius-sm);
  background: rgba(22, 244, 198, 0.055);
  color: var(--mtd-blue-strong);
  font-size: 0.75rem;
  font-weight: 900;
}

.mtd-research-note h3 {
  margin-bottom: 8px;
  color: var(--mtd-text);
  font-size: 1.08rem;
  line-height: 1.24;
}

.mtd-research-note p {
  color: var(--mtd-muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.mtd-research-feature a:hover,
.mtd-research-feature a:focus-visible,
.mtd-research-note a:hover,
.mtd-research-note a:focus-visible {
  color: var(--mtd-blue-strong);
}

@media (max-width: 1120px) {
  .mtd-architecture {
    grid-template-columns: 1fr;
  }

  .mtd-research-board {
    grid-template-columns: 1fr;
  }

  .mtd-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mtd-architecture-visual {
    padding: 20px;
  }

  .mtd-architecture-header {
    display: grid;
  }

  .mtd-architecture-header strong {
    text-align: left;
  }

  .mtd-architecture-route,
  .mtd-architecture-console {
    grid-template-columns: 1fr;
  }

  .mtd-architecture-route i {
    width: 1px;
    height: 18px;
    margin: 0 0 0 16px;
    background: linear-gradient(180deg, rgba(22, 244, 198, 0.12), rgba(22, 244, 198, 0.78));
  }

  .mtd-route-node {
    min-height: 86px;
  }

  .mtd-architecture-layers div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mtd-architecture-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .mtd-research-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mtd-research-head .mtd-button {
    width: 100%;
  }

  .mtd-footer-command,
  .mtd-footer-grid {
    grid-template-columns: 1fr;
  }

  .mtd-footer-command {
    gap: 20px;
  }

  .mtd-footer-cta {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .mtd-architecture-visual,
  .mtd-architecture-steps {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-left: -11px;
    margin-right: -11px;
  }

  .mtd-architecture-step p {
    font-size: 0.88rem;
  }

  .mtd-research-feature,
  .mtd-research-list {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-left: -11px;
    margin-right: -11px;
  }

  .mtd-research-feature-media,
  .mtd-research-feature-body {
    padding: 20px;
  }

  .mtd-research-note {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .mtd-footer-shell {
    padding-top: 34px;
  }
}

/* Trading journal archive */
.mtd-journal-command {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius);
  background:
    linear-gradient(145deg, rgba(14, 20, 30, 0.94), rgba(5, 8, 12, 0.98)),
    #070b10;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.26);
}

.mtd-journal-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(138, 166, 194, 0.13);
}

.mtd-journal-command-head span,
.mtd-journal-command-grid span,
.mtd-journal-index-kicker,
.mtd-journal-index-stats span {
  color: var(--mtd-subtle);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.mtd-journal-command-head strong {
  color: var(--mtd-text);
  font-size: 1.08rem;
  line-height: 1.2;
}

.mtd-journal-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mtd-journal-command-grid div {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border: 1px solid rgba(138, 166, 194, 0.14);
  border-radius: var(--mtd-radius-sm);
  background:
    radial-gradient(circle at 80% 12%, rgba(22, 244, 198, 0.09), transparent 8rem),
    rgba(255, 255, 255, 0.03);
}

.mtd-journal-command-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--mtd-text);
  font-size: clamp(1.16rem, 2vw, 1.72rem);
  line-height: 1.08;
}

.mtd-journal-archive-section {
  background:
    linear-gradient(180deg, rgba(9, 14, 20, 0.42), rgba(5, 7, 10, 0)),
    radial-gradient(circle at 84% 12%, rgba(22, 244, 198, 0.045), transparent 26rem);
}

.mtd-journal-archive {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.mtd-journal-index,
.mtd-journal-stream {
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius);
  background:
    linear-gradient(145deg, rgba(15, 22, 32, 0.9), rgba(6, 9, 14, 0.98)),
    #070b10;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.mtd-journal-index {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.mtd-journal-index h2 {
  margin-bottom: 0;
  color: var(--mtd-text);
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  line-height: 1.08;
}

.mtd-journal-index p {
  color: var(--mtd-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.mtd-journal-index-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mtd-journal-index-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(138, 166, 194, 0.14);
  border-radius: var(--mtd-radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.mtd-journal-index-stats strong {
  color: var(--mtd-blue-strong);
  font-size: 1rem;
  line-height: 1.2;
  text-align: right;
}

.mtd-journal-category-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mtd-journal-category-stack span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(22, 244, 198, 0.18);
  border-radius: var(--mtd-radius-sm);
  background: rgba(22, 244, 198, 0.055);
  color: var(--mtd-blue-strong);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  text-transform: capitalize;
}

.mtd-journal-stream {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.mtd-journal-stream-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 24px;
  border-bottom: 1px solid rgba(138, 166, 194, 0.13);
  background:
    linear-gradient(90deg, rgba(22, 244, 198, 0.055), transparent 52%),
    rgba(255, 255, 255, 0.016);
}

.mtd-journal-stream-head h2 {
  margin-bottom: 0;
  color: var(--mtd-text);
  font-size: clamp(1.65rem, 2.3vw, 2.55rem);
  line-height: 1.08;
}

.mtd-journal-stream-head span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius-sm);
  background: rgba(255, 255, 255, 0.026);
  color: var(--mtd-muted);
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.mtd-journal-entry {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
  gap: 0;
  min-height: 210px;
  border-bottom: 1px solid rgba(138, 166, 194, 0.12);
}

.mtd-journal-entry:last-child {
  border-bottom: 0;
}

.mtd-journal-entry-media {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 18px;
  overflow: hidden;
  border-right: 1px solid rgba(138, 166, 194, 0.12);
  background:
    linear-gradient(rgba(138, 166, 194, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 166, 194, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 68% 28%, rgba(22, 244, 198, 0.14), transparent 12rem),
    #081018;
  background-position: center;
  background-size: 32px 32px, 32px 32px, auto, cover;
}

.mtd-journal-entry-media.has-image {
  background-size: cover;
  background-position: center;
}

.mtd-journal-entry-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.12), rgba(3, 5, 8, 0.78)),
    linear-gradient(90deg, rgba(3, 5, 8, 0.56), transparent 80%);
}

.mtd-journal-entry-media span {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 7px 9px;
  border: 1px solid rgba(22, 244, 198, 0.24);
  border-radius: var(--mtd-radius-sm);
  background: rgba(5, 9, 13, 0.75);
  color: var(--mtd-blue-strong);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.mtd-journal-entry-body {
  display: grid;
  align-content: center;
  padding: 24px 26px;
}

.mtd-journal-entry h3 {
  max-width: 760px;
  margin-bottom: 10px;
  color: var(--mtd-text);
  font-size: clamp(1.24rem, 1.85vw, 1.72rem);
  line-height: 1.16;
}

.mtd-journal-entry p {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--mtd-muted);
  font-size: 0.98rem;
  line-height: 1.64;
}

.mtd-journal-entry a:hover,
.mtd-journal-entry a:focus-visible {
  color: var(--mtd-blue-strong);
}

.mtd-journal-load-more {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 26px 24px;
  border-top: 1px solid rgba(138, 166, 194, 0.12);
  background:
    linear-gradient(90deg, transparent, rgba(22, 244, 198, 0.045), transparent),
    rgba(255, 255, 255, 0.012);
}

.mtd-journal-load-more .mtd-button {
  min-width: 210px;
}

.mtd-journal-load-more span {
  color: var(--mtd-subtle);
  font-size: 0.86rem;
  font-weight: 850;
}

@media (max-width: 980px) {
  .mtd-journal-archive {
    grid-template-columns: 1fr;
  }

  .mtd-journal-index {
    position: static;
  }

  .mtd-journal-index-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .mtd-journal-command-grid,
  .mtd-journal-index-stats,
  .mtd-journal-stream-head,
  .mtd-journal-entry {
    grid-template-columns: 1fr;
  }

  .mtd-journal-entry-media {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid rgba(138, 166, 194, 0.12);
  }

  .mtd-journal-stream-head {
    align-items: start;
  }

  .mtd-journal-load-more .mtd-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .mtd-journal-command,
  .mtd-journal-index,
  .mtd-journal-stream {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-left: -11px;
    margin-right: -11px;
  }

  .mtd-journal-command,
  .mtd-journal-index,
  .mtd-journal-stream-head,
  .mtd-journal-entry-body {
    padding-left: 20px;
    padding-right: 20px;
  }
}

body.mtd-page-trading-journal .mtd-journal-archive {
  grid-template-columns: 1fr;
}

body.mtd-page-trading-journal .mtd-journal-index {
  position: static;
  gap: 16px;
}

body.mtd-page-trading-journal .mtd-journal-index-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.mtd-page-trading-journal .mtd-journal-category-stack {
  max-width: 100%;
}

body.mtd-page-trading-journal .mtd-journal-entry {
  grid-template-columns: minmax(230px, 0.28fr) minmax(0, 1fr);
}

@media (max-width: 700px) {
  body.mtd-page-trading-journal .mtd-journal-index-stats,
  body.mtd-page-trading-journal .mtd-journal-entry {
    grid-template-columns: 1fr;
  }
}

/* Simple aligned footer */
.mtd-footer-simple {
  display: grid;
  gap: 18px;
  padding: 30px 0 24px;
}

.mtd-footer-simple-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(138, 166, 194, 0.13);
}

.mtd-footer-simple-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.mtd-footer-simple-brand .mtd-footer-brand {
  flex: 0 0 auto;
  margin: 0;
}

.mtd-footer-simple-brand .mtd-brand-logo {
  width: clamp(150px, 14vw, 205px);
}

.mtd-footer-simple-brand p {
  max-width: 620px;
  margin: 0;
  color: var(--mtd-muted);
  font-size: 0.96rem;
  line-height: 1.56;
}

.mtd-footer-simple-cta {
  flex: 0 0 auto;
  min-width: 188px;
  min-height: 44px;
  white-space: nowrap;
}

.mtd-footer-simple-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: space-between;
}

.mtd-footer-simple-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: var(--mtd-muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1;
  transition: color 180ms ease;
}

.mtd-footer-simple-nav a:hover,
.mtd-footer-simple-nav a:focus-visible {
  color: var(--mtd-blue-strong);
}

body.mtd-system-page .mtd-footer-disclaimer,
.mtd-system-chrome .mtd-footer-disclaimer {
  padding: 14px 0;
  font-size: 0.84rem;
}

@media (max-width: 860px) {
  .mtd-footer-simple-main,
  .mtd-footer-simple-brand {
    align-items: flex-start;
  }

  .mtd-footer-simple-main {
    display: grid;
    gap: 18px;
  }

  .mtd-footer-simple-brand {
    display: grid;
    gap: 14px;
  }

  .mtd-footer-simple-cta {
    width: 100%;
  }

  .mtd-footer-simple-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .mtd-footer-simple {
    padding-top: 26px;
  }

  .mtd-footer-simple-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .mtd-footer-simple-nav a {
    min-height: 30px;
  }
}

/* Editorial journal redesign */
body.mtd-page-trading-journal .mtd-journal-hero {
  padding: 86px 0 64px;
  border-bottom: 1px solid rgba(138, 166, 194, 0.12);
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.2), rgba(9, 14, 20, 0.42)),
    radial-gradient(circle at 18% 14%, rgba(22, 244, 198, 0.07), transparent 28rem);
}

body.mtd-page-trading-journal .mtd-journal-hero-inner {
  max-width: 980px;
}

body.mtd-page-trading-journal .mtd-journal-hero h1 {
  max-width: 880px;
  margin-bottom: 18px;
  color: var(--mtd-text);
  font-size: clamp(2.65rem, 4.6vw, 4.45rem);
  line-height: 1.02;
}

body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow) {
  max-width: 760px;
  color: var(--mtd-muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

body.mtd-page-trading-journal .mtd-journal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(138, 166, 194, 0.14);
}

body.mtd-page-trading-journal .mtd-journal-hero-meta span {
  color: var(--mtd-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

body.mtd-page-trading-journal .mtd-journal-archive-section {
  padding-top: 58px;
  background:
    linear-gradient(180deg, rgba(9, 14, 20, 0.32), rgba(5, 7, 10, 0)),
    #05070a;
}

body.mtd-page-trading-journal .mtd-journal-archive {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 0 auto;
}

body.mtd-page-trading-journal .mtd-journal-topics {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(138, 166, 194, 0.14);
  border-bottom: 1px solid rgba(138, 166, 194, 0.14);
}

body.mtd-page-trading-journal .mtd-journal-topics > span {
  color: var(--mtd-subtle);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 32px;
  text-transform: uppercase;
}

body.mtd-page-trading-journal .mtd-journal-topics > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.mtd-page-trading-journal .mtd-journal-topics div span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius-sm);
  background: rgba(255, 255, 255, 0.025);
  color: var(--mtd-muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  text-transform: capitalize;
}

body.mtd-page-trading-journal .mtd-journal-stream {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.mtd-page-trading-journal .mtd-journal-stream-head {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(138, 166, 194, 0.18);
  background: transparent;
}

body.mtd-page-trading-journal .mtd-journal-stream-head h2 {
  font-size: clamp(1.85rem, 3vw, 3rem);
}

body.mtd-page-trading-journal .mtd-journal-stream-head span {
  background: transparent;
}

body.mtd-page-trading-journal .mtd-journal-entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 176px;
  gap: 0;
  min-height: 0;
  padding: 24px 0;
  border-bottom: 1px solid rgba(138, 166, 194, 0.13);
  background: transparent;
}

body.mtd-page-trading-journal .mtd-journal-entry-date {
  padding-top: 2px;
  color: var(--mtd-subtle);
}

body.mtd-page-trading-journal .mtd-journal-entry-date span,
body.mtd-page-trading-journal .mtd-journal-entry-date small {
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

body.mtd-page-trading-journal .mtd-journal-entry-date strong {
  display: block;
  margin: 3px 0;
  color: var(--mtd-text);
  font-size: 2.2rem;
  line-height: 0.95;
}

body.mtd-page-trading-journal .mtd-journal-entry-body {
  align-content: start;
  padding: 0 28px 0 8px;
}

body.mtd-page-trading-journal .mtd-journal-entry .mtd-research-meta {
  margin-bottom: 9px;
}

body.mtd-page-trading-journal .mtd-journal-entry .mtd-research-meta span {
  color: var(--mtd-blue-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.mtd-page-trading-journal .mtd-journal-entry h3 {
  max-width: 780px;
  margin-bottom: 9px;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.18;
}

body.mtd-page-trading-journal .mtd-journal-entry p {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: 0.99rem;
  line-height: 1.68;
}

body.mtd-page-trading-journal .mtd-journal-entry-media {
  min-height: 124px;
  align-self: stretch;
  border: 1px solid rgba(138, 166, 194, 0.15);
  border-radius: var(--mtd-radius-sm);
  background-size: cover;
}

body.mtd-page-trading-journal .mtd-journal-entry-media span {
  display: none;
}

body.mtd-page-trading-journal .mtd-journal-load-more {
  padding: 30px 0 0;
  border-top: 0;
  background: transparent;
}

body.mtd-page-trading-journal .mtd-journal-pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-top: 30px;
}

body.mtd-page-trading-journal .mtd-journal-pagination > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

body.mtd-page-trading-journal .mtd-journal-pagination a {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(138, 166, 194, 0.18);
  border-radius: var(--mtd-radius-sm);
  background: rgba(255, 255, 255, 0.025);
  color: var(--mtd-muted);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

body.mtd-page-trading-journal .mtd-journal-pagination a:hover,
body.mtd-page-trading-journal .mtd-journal-pagination a:focus-visible,
body.mtd-page-trading-journal .mtd-journal-pagination a.is-current {
  border-color: rgba(22, 244, 198, 0.36);
  background: rgba(22, 244, 198, 0.07);
  color: var(--mtd-blue-strong);
}

body.mtd-page-trading-journal .mtd-journal-pagination a.is-disabled {
  pointer-events: none;
  opacity: 0.36;
}

@media (max-width: 820px) {
  body.mtd-page-trading-journal .mtd-journal-entry {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  body.mtd-page-trading-journal .mtd-journal-entry-media {
    display: none;
  }
}

@media (max-width: 620px) {
  body.mtd-page-trading-journal .mtd-journal-hero {
    padding: 58px 0 42px;
  }

  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    font-size: 2.28rem;
  }

  body.mtd-page-trading-journal .mtd-journal-topics,
  body.mtd-page-trading-journal .mtd-journal-stream-head,
  body.mtd-page-trading-journal .mtd-journal-entry {
    grid-template-columns: 1fr;
  }

  body.mtd-page-trading-journal .mtd-journal-entry {
    gap: 10px;
  }

  body.mtd-page-trading-journal .mtd-journal-entry-date {
    display: flex;
    gap: 6px;
    align-items: baseline;
  }

  body.mtd-page-trading-journal .mtd-journal-entry-date strong {
    font-size: 1.18rem;
  }

  body.mtd-page-trading-journal .mtd-journal-entry-body {
    padding: 0;
  }

  body.mtd-page-trading-journal .mtd-journal-pagination {
    grid-template-columns: 1fr;
  }

  body.mtd-page-trading-journal .mtd-journal-pagination > a {
    width: 100%;
  }
}

/* Single post detail */
.mtd-single-hero {
  padding: 78px 0 62px;
  border-bottom: 1px solid rgba(138, 166, 194, 0.12);
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.08), rgba(9, 14, 20, 0.44)),
    radial-gradient(circle at 82% 18%, rgba(22, 244, 198, 0.06), transparent 25rem);
}

.mtd-single-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
  gap: 52px;
  align-items: end;
}

.mtd-single-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--mtd-muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.mtd-single-back:hover,
.mtd-single-back:focus-visible {
  color: var(--mtd-blue-strong);
}

.mtd-single-hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
  color: var(--mtd-text);
  font-size: clamp(2.4rem, 4.6vw, 4.7rem);
  line-height: 1.04;
}

.mtd-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--mtd-muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.mtd-single-meta span::before {
  content: "/";
  margin-right: 18px;
  color: rgba(138, 166, 194, 0.36);
}

.mtd-single-visual {
  position: relative;
  min-height: 310px;
  display: flex;
  align-items: flex-start;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius);
  background:
    linear-gradient(rgba(138, 166, 194, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 166, 194, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 72% 28%, rgba(22, 244, 198, 0.12), transparent 14rem),
    #081018;
  background-position: center;
  background-size: 38px 38px, 38px 38px, auto, cover;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

.mtd-single-visual.has-image {
  background-size: cover;
  background-position: center;
}

.mtd-single-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.18), rgba(3, 5, 8, 0.74)),
    linear-gradient(90deg, rgba(3, 5, 8, 0.52), transparent 78%);
}

.mtd-single-visual span {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(22, 244, 198, 0.24);
  border-radius: var(--mtd-radius-sm);
  background: rgba(5, 9, 13, 0.76);
  color: var(--mtd-blue-strong);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.mtd-single-body-section {
  padding: 64px 0 32px;
}

.mtd-single-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.25fr) minmax(0, 760px) minmax(120px, 0.25fr);
  gap: 40px;
  align-items: start;
}

.mtd-single-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.mtd-single-aside span {
  color: var(--mtd-subtle);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mtd-single-aside strong {
  color: var(--mtd-text);
  font-size: 1rem;
}

.mtd-single-aside a {
  color: var(--mtd-blue-strong);
  font-size: 0.88rem;
  font-weight: 850;
}

.mtd-single-content {
  grid-column: 2;
  color: #d3dfdc;
  font-size: 1.05rem;
  line-height: 1.8;
}

.mtd-single-content > * {
  margin-bottom: 1.25em;
}

.mtd-single-content h2,
.mtd-single-content h3,
.mtd-single-content h4 {
  margin-top: 1.65em;
  margin-bottom: 0.55em;
  color: var(--mtd-text);
  line-height: 1.18;
}

.mtd-single-content h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

.mtd-single-content h3 {
  font-size: clamp(1.34rem, 2vw, 1.76rem);
}

.mtd-single-content p {
  margin-bottom: 1.12em;
}

.mtd-single-content a {
  color: var(--mtd-blue-strong);
  font-weight: 800;
}

.mtd-single-content img {
  height: auto;
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius-sm);
}

.mtd-single-content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid rgba(22, 244, 198, 0.58);
  background: rgba(22, 244, 198, 0.055);
  color: var(--mtd-text);
}

.mtd-single-content ul,
.mtd-single-content ol {
  padding-left: 1.3em;
}

.mtd-single-content li + li {
  margin-top: 0.35em;
}

.mtd-single-page-links {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.mtd-single-nav-section {
  padding-top: 28px;
}

.mtd-single-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(138, 166, 194, 0.14);
  padding-top: 24px;
}

.mtd-single-post-nav div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(138, 166, 194, 0.15);
  border-radius: var(--mtd-radius);
  background: rgba(255, 255, 255, 0.025);
}

.mtd-single-post-nav span {
  color: var(--mtd-subtle);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mtd-single-post-nav a {
  color: var(--mtd-text);
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.25;
}

.mtd-single-post-nav a:hover,
.mtd-single-post-nav a:focus-visible {
  color: var(--mtd-blue-strong);
}

@media (max-width: 980px) {
  .mtd-single-hero-grid,
  .mtd-single-layout {
    grid-template-columns: 1fr;
  }

  .mtd-single-visual {
    max-width: 680px;
  }

  .mtd-single-aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(138, 166, 194, 0.14);
  }

  .mtd-single-content {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .mtd-single-hero {
    padding: 52px 0 42px;
  }

  .mtd-single-hero h1 {
    font-size: 2.18rem;
  }

  .mtd-single-visual {
    min-height: 220px;
  }

  .mtd-single-body-section {
    padding-top: 42px;
  }

  .mtd-single-post-nav {
    grid-template-columns: 1fr;
  }
}

/* Polish pass: alignment, mobile containment, and page consistency */
body.mtd-system-page {
  overflow-wrap: break-word;
}

body.mtd-system-page .mtd-site-shell,
.mtd-system-chrome {
  width: 100%;
  max-width: 100vw;
}

.mtd-site-header {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}

.mtd-header-inner {
  column-gap: 18px;
}

.mtd-nav {
  gap: 6px;
}

.mtd-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.mtd-nav a.is-active {
  border: 1px solid rgba(22, 244, 198, 0.18);
  background: rgba(22, 244, 198, 0.075);
}

.mtd-header-cta {
  flex-shrink: 0;
  min-width: 0;
}

.mtd-header-cta-icon {
  flex: 0 0 20px;
}

.mtd-header-cta span:last-child {
  line-height: 1;
}

.mtd-hero-grid > *,
.mtd-page-hero-grid > *,
.mtd-two-column > *,
.mtd-feature-panel > *,
.mtd-form-panel > *,
.mtd-research-board > *,
.mtd-architecture > *,
.mtd-journal-entry > * {
  min-width: 0;
}

.mtd-dashboard {
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

.mtd-mini-terminal,
.mtd-pdf-visual,
.mtd-profile-panel,
.mtd-contact-card,
.mtd-feature-panel,
.mtd-form-panel,
.mtd-research-feature,
.mtd-research-list,
.mtd-architecture-visual,
.mtd-architecture-steps {
  max-width: 100%;
}

.mtd-hero p:not(.mtd-eyebrow),
.mtd-page-hero p:not(.mtd-eyebrow),
.mtd-section-header p:not(.mtd-eyebrow),
.mtd-research-head p:not(.mtd-eyebrow),
body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow),
body.mtd-page-trading-journal .mtd-journal-entry p {
  max-width: min(100%, 760px);
}

.mtd-card h3,
.mtd-product-card h2,
.mtd-post-card h3,
.mtd-research-feature h3,
.mtd-research-note h3,
body.mtd-page-trading-journal .mtd-journal-entry h3 {
  overflow-wrap: anywhere;
}

.mtd-request-form .mtd-button {
  justify-self: start;
}

.mtd-field input,
.mtd-field textarea,
.mtd-field select {
  min-width: 0;
}

.mtd-footer-simple {
  gap: 16px;
}

.mtd-footer-simple-main {
  gap: 22px;
}

.mtd-footer-simple-nav {
  justify-content: flex-start;
  gap: 8px 28px;
}

.mtd-footer-simple-nav a {
  flex: 0 0 auto;
}

.mtd-footer-simple-cta {
  min-width: 0;
}

.mtd-footer-disclaimer {
  line-height: 1.62;
}

@media (max-width: 900px) {
  .mtd-dashboard {
    justify-self: start;
  }

  .mtd-form-panel {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .mtd-container {
    width: 100%;
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }

  .mtd-header-inner {
    align-items: stretch;
  }

  .mtd-brand {
    justify-content: flex-start;
  }

  .mtd-header-cta,
  .mtd-mobile-menu summary {
    width: 100%;
    max-width: 100%;
  }

  .mtd-hero-grid,
  .mtd-page-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .mtd-hero-copy {
    width: 100%;
    max-width: 100% !important;
  }

  .mtd-header-cta {
    min-height: 44px;
  }

  .mtd-mobile-nav {
    grid-template-columns: 1fr;
  }

  .mtd-hero-grid,
  .mtd-page-hero-grid,
  .mtd-button-row,
  .mtd-dashboard,
  .mtd-dashboard-top,
  .mtd-dashboard-body,
  .mtd-dashboard-bottom,
  .mtd-system-rail,
  .mtd-card-grid,
  .mtd-triad,
  .mtd-product-grid,
  .mtd-post-grid,
  .mtd-form-grid,
  .mtd-research-board,
  .mtd-architecture {
    width: 100%;
    max-width: 100%;
  }

  .mtd-hero h1,
  .mtd-page-hero h1 {
    max-width: 100%;
  }

  .mtd-hero p:not(.mtd-eyebrow),
  .mtd-page-hero p:not(.mtd-eyebrow) {
    width: 100%;
    max-width: 100%;
    line-height: 1.62;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .mtd-card,
  .mtd-triad article,
  .mtd-feature-panel,
  .mtd-form-panel,
  .mtd-product-card,
  .mtd-post-body {
    width: 100%;
  }

  .mtd-request-form .mtd-button {
    width: 100%;
  }

  .mtd-footer-simple-main,
  .mtd-footer-simple-brand {
    width: 100%;
  }

  .mtd-footer-simple-brand p {
    max-width: 100%;
  }

  .mtd-footer-simple-nav {
    gap: 8px 14px;
  }

  .mtd-footer-disclaimer {
    font-size: 0.8rem;
  }
}

@media (max-width: 620px) {
  body.mtd-page-trading-journal .mtd-journal-hero-inner,
  body.mtd-page-trading-journal .mtd-journal-stream {
    width: 100%;
    max-width: 100%;
  }

  body.mtd-page-trading-journal .mtd-journal-hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  body.mtd-page-trading-journal .mtd-journal-hero-meta span {
    white-space: normal;
  }

  body.mtd-page-trading-journal .mtd-journal-stream-head > span {
    justify-self: start;
  }

  body.mtd-page-trading-journal .mtd-journal-entry {
    width: 100%;
    max-width: 100%;
  }

  body.mtd-page-trading-journal .mtd-journal-pagination > div {
    justify-content: flex-start;
  }

  body.mtd-page-trading-journal .mtd-journal-pagination a {
    min-width: 40px;
  }
}

@media (max-width: 520px) {
  .mtd-hero-copy,
  .mtd-page-hero-grid > div:first-child,
  .mtd-dashboard,
  .mtd-mini-terminal,
  .mtd-pdf-visual,
  .mtd-profile-panel,
  .mtd-contact-card,
  .mtd-feature-panel,
  .mtd-form-panel,
  body.mtd-page-trading-journal .mtd-journal-hero-inner,
  body.mtd-page-trading-journal .mtd-journal-stream {
    max-width: 360px !important;
  }

  .mtd-hero p:not(.mtd-eyebrow),
  .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow) {
    max-width: 360px;
  }
}

@media (max-width: 420px) {
  .mtd-hero h1,
  .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    font-size: 2rem;
  }

  .mtd-eyebrow {
    font-size: 0.72rem;
    line-height: 1.35;
  }
}

@media (max-width: 640px) {
  body.mtd-single-post-page {
    overflow-x: hidden;
  }

  body.mtd-single-post-page .mtd-divi-single-main,
  body.mtd-single-post-page #main-content,
  body.mtd-single-post-page .et-l--body,
  body.mtd-single-post-page .et_builder_inner_content {
    max-width: 100vw;
    overflow-x: hidden;
  }

  body.mtd-single-post-page #main-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.mtd-single-post-page #main-content .et_pb_section,
  body.mtd-single-post-page #main-content .et_pb_row,
  body.mtd-single-post-page #main-content .et_pb_column,
  body.mtd-single-post-page #main-content .et_pb_module,
  body.mtd-single-post-page #main-content .et_pb_text,
  body.mtd-single-post-page #main-content .et_pb_text_inner,
  body.mtd-single-post-page #main-content .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  body.mtd-single-post-page #main-content .et_pb_section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.mtd-single-post-page #main-content .et_pb_row {
    width: 100% !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.mtd-single-post-page #main-content img,
  body.mtd-single-post-page #main-content iframe {
    max-width: 100% !important;
  }

  body.mtd-single-post-page #main-content .et_pb_text_inner {
    overflow-wrap: break-word;
    word-break: normal;
  }
}

/* Brand audit refinement: quieter infrastructure tone */
body.mtd-system-page .mtd-hero h1,
body.mtd-system-page .mtd-page-hero h1,
body.mtd-page-trading-journal .mtd-journal-hero h1 {
  font-weight: 820;
  max-width: 900px;
}

body.mtd-system-page .mtd-hero h1 {
  font-size: clamp(2.85rem, 4.65vw, 4.75rem);
}

body.mtd-system-page .mtd-page-hero h1,
body.mtd-page-trading-journal .mtd-journal-hero h1 {
  font-size: clamp(2.35rem, 4.15vw, 4rem);
}

body.mtd-system-page .mtd-eyebrow,
.mtd-system-chrome .mtd-eyebrow {
  color: var(--mtd-blue-strong);
}

body.mtd-system-page .mtd-button,
.mtd-system-chrome .mtd-button {
  font-weight: 760;
}

body.mtd-system-page .mtd-button-primary,
.mtd-system-chrome .mtd-button-primary {
  box-shadow: 0 16px 32px rgba(22, 244, 198, 0.12);
}

.mtd-dashboard {
  background:
    linear-gradient(145deg, rgba(13, 18, 27, 0.98), rgba(5, 8, 12, 0.98)),
    #070a0f;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
}

.mtd-dashboard-top > div,
.mtd-dashboard-bottom > div,
.mtd-system-rail > div {
  background: rgba(255, 255, 255, 0.021);
}

.mtd-chart-panel {
  min-height: 0;
}

.mtd-control-map {
  min-height: 310px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border-radius: var(--mtd-radius-sm);
  overflow: hidden;
  background:
    linear-gradient(rgba(138, 166, 194, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 166, 194, 0.04) 1px, transparent 1px),
    #060b11;
  background-size: 42px 42px;
}

.mtd-control-map div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(104px, 0.78fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(138, 166, 194, 0.14);
  border-radius: var(--mtd-radius-sm);
  background: rgba(9, 14, 21, 0.84);
}

.mtd-control-map span {
  color: var(--mtd-subtle);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.mtd-control-map i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(138, 166, 194, 0.18), rgba(22, 244, 198, 0.68));
}

.mtd-control-map strong {
  margin: 0;
  color: var(--mtd-text);
  font-size: 0.88rem;
  line-height: 1.22;
  white-space: nowrap;
}

.mtd-feature-panel,
.mtd-form-panel {
  background:
    linear-gradient(145deg, rgba(13, 20, 29, 0.96), rgba(6, 10, 15, 0.98)),
    #080d13;
}

.mtd-triad article {
  min-height: 260px;
}

.mtd-triad span {
  margin-bottom: 30px;
}

.mtd-rules-grid .mtd-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 6px 18px;
  align-content: start;
  padding: 22px;
}

.mtd-rules-grid .mtd-card-number {
  grid-row: 1 / span 2;
  margin: 0;
}

.mtd-rules-grid .mtd-card h3,
.mtd-rules-grid .mtd-card p {
  grid-column: 2;
}

.mtd-service-grid .mtd-card,
.mtd-problem-grid .mtd-card {
  min-height: 160px;
  padding: 22px;
}

.mtd-product-card {
  min-height: 286px;
}

.mtd-product-card span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 24px;
  padding: 0 9px;
  border: 1px solid rgba(22, 244, 198, 0.18);
  border-radius: var(--mtd-radius-sm);
  background: rgba(22, 244, 198, 0.045);
  color: var(--mtd-blue-strong);
  font-size: 0.78rem;
  font-weight: 850;
}

.mtd-research-board {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
}

.mtd-research-feature {
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1fr);
  grid-template-rows: none;
}

.mtd-research-feature-media {
  min-height: 100%;
}

.mtd-research-feature-media::before {
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.18), rgba(3, 5, 8, 0.78)),
    linear-gradient(90deg, rgba(3, 5, 8, 0.72), transparent 72%);
}

.mtd-research-feature-media::after {
  opacity: 0.36;
}

.mtd-research-feature h3 {
  font-size: clamp(1.32rem, 2vw, 1.9rem);
}

.mtd-research-list {
  background:
    linear-gradient(145deg, rgba(13, 20, 29, 0.9), rgba(5, 8, 12, 0.98)),
    #070b10;
}

body.mtd-page-trading-journal .mtd-journal-entry-media {
  opacity: 0.88;
}

.mtd-contact-card p,
.mtd-profile-panel p,
.mtd-pdf-visual small {
  max-width: 520px;
  line-height: 1.62;
}

.mtd-legal-hero {
  min-height: 0;
}

.mtd-legal-hero-inner {
  max-width: 820px;
}

.mtd-legal-hero h1 {
  margin-bottom: 18px;
  color: var(--mtd-text);
  font-size: clamp(2.35rem, 4.15vw, 4rem);
  line-height: 1.08;
}

.mtd-legal-hero p:not(.mtd-eyebrow) {
  max-width: 690px;
  color: var(--mtd-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.mtd-legal-document {
  max-width: 900px;
  padding: 34px;
  border: 1px solid rgba(138, 166, 194, 0.16);
  border-radius: var(--mtd-radius);
  background:
    linear-gradient(145deg, rgba(13, 20, 29, 0.94), rgba(6, 10, 15, 0.98)),
    #080d13;
}

.mtd-legal-document p {
  margin: 0;
  color: var(--mtd-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.mtd-legal-document p + p {
  margin-top: 18px;
}

.mtd-legal-document .mtd-legal-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(138, 166, 194, 0.14);
  color: var(--mtd-subtle);
  font-size: 0.9rem;
}

.mtd-legacy-post-note {
  margin-top: 32px;
  padding: 22px;
  border: 1px solid rgba(138, 166, 194, 0.18);
  border-radius: var(--mtd-radius-sm);
  background: #f7fafc;
  color: #12202b;
}

.mtd-legacy-post-note p {
  margin: 0;
  color: inherit;
}

.mtd-legacy-post-note p + p {
  margin-top: 10px;
}

.mtd-legacy-post-note a {
  display: inline-block;
  margin: 8px 14px 0 0;
  color: #007f72;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .mtd-research-feature {
    grid-template-columns: 1fr;
  }

  .mtd-research-feature-media {
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .mtd-control-map {
    min-height: 0;
    padding: 14px;
  }

  .mtd-control-map div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mtd-control-map i {
    width: 1px;
    height: 14px;
  }

  .mtd-rules-grid .mtd-card {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 18px;
  }
}

@media (max-width: 640px) {
  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    font-size: 2.08rem;
    line-height: 1.08;
  }

  .mtd-service-grid .mtd-card,
  .mtd-problem-grid .mtd-card {
    min-height: 0;
  }

  .mtd-legal-document {
    padding: 22px;
  }
}

/* Final responsive stabilization: keep every system page inside the device viewport. */
html,
body.mtd-system-page,
body.mtd-single-post-page {
  max-width: 100%;
  overflow-x: hidden;
}

body.mtd-system-page .mtd-site-shell,
body.mtd-single-post-page #page-container,
.mtd-system-chrome {
  width: 100%;
  max-width: 100vw;
}

.mtd-hero-grid > *,
.mtd-page-hero-grid > *,
.mtd-card-grid > *,
.mtd-product-grid > *,
.mtd-post-grid > *,
.mtd-form-grid > *,
.mtd-research-board > *,
.mtd-architecture > *,
.mtd-two-column > *,
.mtd-footer-simple-main > *,
.mtd-footer-grid > *,
.mtd-dashboard > *,
.mtd-dashboard-body > *,
.mtd-journal-entry > * {
  min-width: 0;
}

.mtd-card,
.mtd-product-card,
.mtd-post-card,
.mtd-triad article,
.mtd-mini-terminal,
.mtd-pdf-visual,
.mtd-profile-panel,
.mtd-contact-card,
.mtd-feature-panel,
.mtd-form-panel,
.mtd-dashboard,
.mtd-architecture-visual,
.mtd-architecture-steps,
.mtd-research-feature,
.mtd-research-list,
.mtd-journal-index,
.mtd-journal-stream {
  max-width: 100%;
}

.mtd-control-map strong,
.mtd-card h3,
.mtd-product-card h2,
.mtd-research-feature h3,
.mtd-research-note h3,
.mtd-journal-entry h3,
.mtd-footer-simple-brand p {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .mtd-container,
  .mtd-system-chrome .mtd-container {
    width: calc(100% - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .mtd-header-inner {
    min-height: 0;
    align-items: stretch;
  }

  .mtd-brand {
    justify-content: flex-start;
  }

  .mtd-brand-logo {
    width: 144px;
    max-width: 56vw;
  }

  .mtd-header-cta,
  .mtd-mobile-menu summary,
  body.mtd-system-page .mtd-button,
  .mtd-system-chrome .mtd-button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .mtd-hero,
  .mtd-page-hero,
  .mtd-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .mtd-hero-grid,
  .mtd-page-hero-grid,
  .mtd-card-grid,
  .mtd-problem-grid,
  .mtd-service-grid,
  .mtd-rules-grid,
  .mtd-product-grid,
  .mtd-post-grid,
  .mtd-form-grid,
  .mtd-triad,
  .mtd-two-column,
  .mtd-architecture,
  .mtd-research-board,
  .mtd-journal-archive,
  body.mtd-page-trading-journal .mtd-journal-archive {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
  }

  .mtd-hero-grid,
  .mtd-page-hero-grid {
    gap: 28px;
  }

  .mtd-hero-copy,
  .mtd-page-hero-grid > div,
  .mtd-hero-grid > div,
  .mtd-dashboard,
  .mtd-mini-terminal,
  .mtd-pdf-visual,
  .mtd-profile-panel,
  .mtd-contact-card,
  .mtd-feature-panel,
  .mtd-form-panel,
  .mtd-section-heading,
  .mtd-architecture-visual,
  .mtd-architecture-steps,
  .mtd-research-feature,
  .mtd-research-list,
  body.mtd-page-trading-journal .mtd-journal-hero-inner,
  body.mtd-page-trading-journal .mtd-journal-stream {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    max-width: 100%;
    font-size: clamp(1.88rem, 8.8vw, 2.18rem);
    line-height: 1.1;
    text-wrap: balance;
  }

  .mtd-hero p:not(.mtd-eyebrow),
  .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow) {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .mtd-dashboard,
  .mtd-card,
  .mtd-triad article,
  .mtd-feature-panel,
  .mtd-form-panel,
  .mtd-product-card,
  .mtd-post-body,
  .mtd-architecture-visual,
  .mtd-architecture-steps,
  .mtd-journal-index,
  .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-entry {
    padding: 20px !important;
  }

  .mtd-feature-panel,
  .mtd-form-panel {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px;
  }

  .mtd-feature-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    width: 100%;
  }

  .mtd-pdf-visual,
  .mtd-profile-panel,
  .mtd-contact-card {
    min-height: 0;
    padding: 24px !important;
  }

  .mtd-pdf-visual strong,
  .mtd-profile-panel strong,
  .mtd-contact-card strong {
    max-width: 100%;
    font-size: clamp(1.68rem, 8vw, 2rem);
    line-height: 1.04;
  }

  .mtd-dashboard-top,
  .mtd-dashboard-body,
  .mtd-dashboard-bottom,
  .mtd-system-rail {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .mtd-chart-panel {
    min-height: 240px;
  }

  .mtd-chart {
    height: 180px;
  }

  .mtd-control-map {
    min-height: 0;
    padding: 14px;
  }

  .mtd-control-map div {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .mtd-control-map i {
    width: 1px;
    height: 14px;
  }

  .mtd-control-map strong {
    white-space: normal;
  }

  .mtd-rules-grid .mtd-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }

  .mtd-rules-grid .mtd-card-number,
  .mtd-rules-grid .mtd-card h3,
  .mtd-rules-grid .mtd-card p {
    grid-column: auto;
    grid-row: auto;
  }

  .mtd-product-card {
    min-height: 0;
  }

  .mtd-product-card span {
    margin-bottom: 20px;
  }

  .mtd-research-feature {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .mtd-research-feature-media {
    min-height: 190px;
  }

  body.mtd-page-trading-journal .mtd-journal-entry {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  body.mtd-page-trading-journal .mtd-journal-entry-date {
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body.mtd-page-trading-journal .mtd-journal-entry-date strong {
    font-size: 1.25rem;
  }

  body.mtd-page-trading-journal .mtd-journal-pagination,
  body.mtd-page-trading-journal .mtd-journal-pagination > div {
    width: 100%;
    justify-content: flex-start;
  }

  .mtd-footer-simple-main,
  .mtd-footer-command,
  .mtd-footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .mtd-footer-simple-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    width: 100%;
  }

  .mtd-footer-simple-nav a {
    width: 100%;
  }

  body.mtd-single-post-page .mtd-divi-single-main,
  body.mtd-single-post-page #main-content,
  body.mtd-single-post-page #main-content .container,
  body.mtd-single-post-page #main-content .et_pb_section,
  body.mtd-single-post-page #main-content .et_pb_row,
  body.mtd-single-post-page #main-content .et_pb_column,
  body.mtd-single-post-page #main-content .et_pb_module,
  body.mtd-single-post-page #main-content .et_pb_text,
  body.mtd-single-post-page #main-content .et_pb_text_inner,
  body.mtd-single-post-page #main-content .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  body.mtd-single-post-page #main-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.mtd-single-post-page #main-content img,
  body.mtd-single-post-page #main-content iframe,
  body.mtd-single-post-page #main-content table {
    max-width: 100% !important;
  }
}

@media (max-width: 380px) {
  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    font-size: clamp(1.76rem, 8.4vw, 1.95rem);
  }

  .mtd-dashboard,
  .mtd-card,
  .mtd-triad article,
  .mtd-feature-panel,
  .mtd-form-panel,
  .mtd-product-card,
  .mtd-post-body,
  .mtd-architecture-visual,
  .mtd-architecture-steps,
  .mtd-journal-index,
  .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-entry {
    padding: 18px !important;
  }
}

/* Final mobile canvas correction: full-width page, centered inner content. */
@media (max-width: 700px) {
  html,
  body.mtd-system-page,
  body.mtd-system-page .mtd-site-shell,
  body.mtd-system-page .mtd-main,
  body.mtd-system-page .mtd-site-header,
  body.mtd-system-page .mtd-section,
  body.mtd-system-page .mtd-hero,
  body.mtd-system-page .mtd-page-hero,
  body.mtd-system-page .mtd-section-band,
  body.mtd-system-page .mtd-site-footer,
  body.mtd-single-post-page,
  body.mtd-single-post-page #page-container,
  .mtd-system-chrome {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }

  body.mtd-system-page .mtd-container,
  .mtd-system-chrome .mtd-container,
  body.mtd-system-page .mtd-container.mtd-form-panel,
  body.mtd-system-page .mtd-container.mtd-feature-panel,
  body.mtd-page-trading-journal .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-index,
  body.mtd-system-page .mtd-dashboard,
  body.mtd-system-page .mtd-mini-terminal,
  body.mtd-system-page .mtd-pdf-visual,
  body.mtd-system-page .mtd-profile-panel,
  body.mtd-system-page .mtd-contact-card,
  body.mtd-system-page .mtd-card,
  body.mtd-system-page .mtd-triad article,
  body.mtd-system-page .mtd-feature-panel,
  body.mtd-system-page .mtd-form-panel,
  body.mtd-system-page .mtd-product-card,
  body.mtd-system-page .mtd-post-body,
  body.mtd-system-page .mtd-architecture-visual,
  body.mtd-system-page .mtd-architecture-steps,
  body.mtd-system-page .mtd-research-feature,
  body.mtd-system-page .mtd-research-list,
  body.mtd-page-trading-journal .mtd-journal-entry,
  body.mtd-system-page .mtd-header-cta,
  body.mtd-system-page .mtd-mobile-menu,
  body.mtd-system-page .mtd-mobile-menu summary,
  body.mtd-system-page .mtd-button,
  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1,
  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow),
  .mtd-section-header,
  .mtd-section-heading,
  .mtd-section-header h2,
  .mtd-section-heading h2,
  .mtd-section-header p,
  .mtd-section-heading p {
    width: calc(100% - 32px) !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    font-size: clamp(1.88rem, 8vw, 2.12rem) !important;
  }
}

/* Mobile viewport lock: override legacy container math that can create clipped text. */
@media (max-width: 700px) {
  body.mtd-system-page .mtd-main,
  body.mtd-system-page .mtd-section,
  body.mtd-system-page .mtd-hero,
  body.mtd-system-page .mtd-page-hero,
  body.mtd-system-page .mtd-section-band,
  body.mtd-system-page .mtd-site-header,
  .mtd-system-chrome {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden;
  }

  body.mtd-system-page .mtd-container,
  .mtd-system-chrome .mtd-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.mtd-system-page .mtd-container.mtd-form-panel,
  body.mtd-system-page .mtd-container.mtd-feature-panel,
  body.mtd-page-trading-journal .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-index {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body.mtd-system-page .mtd-container > *,
  .mtd-system-chrome .mtd-container > *,
  body.mtd-system-page .mtd-card,
  body.mtd-system-page .mtd-product-card,
  body.mtd-system-page .mtd-post-card,
  body.mtd-system-page .mtd-contact-card,
  body.mtd-system-page .mtd-profile-panel,
  body.mtd-system-page .mtd-pdf-visual,
  body.mtd-system-page .mtd-dashboard,
  body.mtd-system-page .mtd-architecture-visual,
  body.mtd-system-page .mtd-architecture-steps {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1,
  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-contact-card p,
  body.mtd-system-page .mtd-profile-panel p,
  body.mtd-system-page .mtd-form-panel p {
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: break-word;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    font-size: clamp(1.74rem, 8.1vw, 2rem);
  }
}

/* Hard mobile text/card width cap for browser engines that keep legacy grid width. */
@media (max-width: 700px) {
  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1,
  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-dashboard,
  body.mtd-system-page .mtd-mini-terminal,
  body.mtd-system-page .mtd-pdf-visual,
  body.mtd-system-page .mtd-profile-panel,
  body.mtd-system-page .mtd-contact-card,
  body.mtd-system-page .mtd-card,
  body.mtd-system-page .mtd-triad article,
  body.mtd-system-page .mtd-feature-panel,
  body.mtd-system-page .mtd-form-panel,
  body.mtd-system-page .mtd-product-card,
  body.mtd-system-page .mtd-post-body,
  body.mtd-system-page .mtd-architecture-visual,
  body.mtd-system-page .mtd-architecture-steps,
  body.mtd-system-page .mtd-research-feature,
  body.mtd-system-page .mtd-research-list,
  body.mtd-page-trading-journal .mtd-journal-index,
  body.mtd-page-trading-journal .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-entry {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    display: block;
    white-space: normal !important;
    overflow-wrap: break-word;
    text-wrap: wrap;
  }

  body.mtd-system-page .mtd-contact-card p,
  body.mtd-system-page .mtd-profile-panel p,
  body.mtd-system-page .mtd-form-panel p,
  body.mtd-system-page .mtd-card p,
  body.mtd-system-page .mtd-product-card p,
  body.mtd-system-page .mtd-research-feature p,
  body.mtd-page-trading-journal .mtd-journal-entry p {
    width: auto !important;
    max-width: 100% !important;
  }
}

/* Phone typography guard: prefer clean wrapping over edge-to-edge hero lines. */
@media (max-width: 700px) {
  body.mtd-system-page .mtd-hero-copy,
  body.mtd-system-page .mtd-page-hero-grid > div:first-child,
  body.mtd-page-trading-journal .mtd-journal-hero-inner {
    width: calc(100vw - 48px) !important;
    max-width: 340px !important;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1.55rem, 7.2vw, 1.78rem) !important;
  }

  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow) {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.mtd-system-page .mtd-chart-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  body.mtd-system-page .mtd-chart-panel,
  body.mtd-system-page .mtd-control-map,
  body.mtd-system-page .mtd-system-rail {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  body.mtd-system-page .mtd-contact-card p,
  body.mtd-system-page .mtd-profile-panel p,
  body.mtd-system-page .mtd-form-panel p,
  body.mtd-system-page .mtd-feature-panel p {
    width: 250px !important;
    max-width: 250px !important;
    min-width: 0 !important;
  }

  body.mtd-page-trading-journal .mtd-journal-entry-body,
  body.mtd-page-trading-journal .mtd-journal-entry h3,
  body.mtd-page-trading-journal .mtd-journal-entry p,
  body.mtd-page-trading-journal .mtd-journal-entry .mtd-research-meta {
    width: 250px !important;
    max-width: 250px !important;
    min-width: 0 !important;
  }

  body.mtd-page-trading-journal .mtd-journal-entry h3 a {
    overflow-wrap: break-word;
  }
}

/* Single post mobile containment: preserve Divi body content but stop horizontal clipping. */
@media (max-width: 700px) {
  body.mtd-single-post-page .mtd-divi-single-main,
  body.mtd-single-post-page #main-content,
  body.mtd-single-post-page #main-content .container,
  body.mtd-single-post-page #main-content #content-area,
  body.mtd-single-post-page #main-content #left-area,
  body.mtd-single-post-page #main-content article,
  body.mtd-single-post-page #main-content .entry-content,
  body.mtd-single-post-page #main-content .et_pb_section,
  body.mtd-single-post-page #main-content .et_pb_row,
  body.mtd-single-post-page #main-content .et_pb_column,
  body.mtd-single-post-page #main-content .et_pb_module,
  body.mtd-single-post-page #main-content .et_pb_text,
  body.mtd-single-post-page #main-content .et_pb_text_inner {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  body.mtd-single-post-page #main-content .entry-title,
  body.mtd-single-post-page #main-content .post-meta,
  body.mtd-single-post-page #main-content .et_pb_text_inner > *,
  body.mtd-single-post-page #main-content .entry-content > *,
  body.mtd-single-post-page #main-content p,
  body.mtd-single-post-page #main-content h1,
  body.mtd-single-post-page #main-content h2,
  body.mtd-single-post-page #main-content h3,
  body.mtd-single-post-page #main-content h4,
  body.mtd-single-post-page #main-content ul,
  body.mtd-single-post-page #main-content ol {
    width: calc(100vw - 84px) !important;
    max-width: calc(100vw - 84px) !important;
    min-width: 0 !important;
    overflow-wrap: break-word;
  }

  body.mtd-single-post-page #main-content img,
  body.mtd-single-post-page #main-content figure,
  body.mtd-single-post-page #main-content iframe,
  body.mtd-single-post-page #main-content table {
    width: calc(100vw - 84px) !important;
    max-width: calc(100vw - 84px) !important;
    height: auto !important;
  }
}

/* High-specificity single-post guard for late Divi body styles. */
@media (max-width: 700px) {
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content div.container,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content div#content-area,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content div#left-area,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content article,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content div.entry-content {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
  }

  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content .entry-title,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content .post-meta,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content p,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content h1,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content h2,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content h3,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content h4,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content ul,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content ol {
    display: block !important;
    width: calc(100vw - 96px) !important;
    max-width: calc(100vw - 96px) !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content img,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content figure,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content iframe,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main div#main-content table {
    width: calc(100vw - 96px) !important;
    max-width: calc(100vw - 96px) !important;
    min-width: 0 !important;
    height: auto !important;
  }
}

/* Divi theme-builder post bodies may render without #main-content. */
@media (max-width: 700px) {
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main .et-l,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main .et-l--body,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main .et_builder_inner_content,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main .et_pb_section,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main .et_pb_row,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main .et_pb_column,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main .et_pb_module,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main .et_pb_text,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main .et_pb_text_inner,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main article,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main .entry-content {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main p,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main h1,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main h2,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main h3,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main h4,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main ul,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main ol,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main .entry-title,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main .post-meta {
    width: calc(100vw - 96px) !important;
    max-width: calc(100vw - 96px) !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main img,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main figure,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main iframe,
  html body.mtd-single-post-page div#page-container main#mtd-main.mtd-divi-single-main table {
    width: calc(100vw - 96px) !important;
    max-width: calc(100vw - 96px) !important;
    min-width: 0 !important;
    height: auto !important;
  }
}

/* Mobile quality pass: centered composition, consistent gutters, natural reading widths. */
@media (max-width: 700px) {
  body.mtd-system-page .mtd-main,
  body.mtd-system-page .mtd-site-shell,
  body.mtd-system-page .mtd-section,
  body.mtd-system-page .mtd-hero,
  body.mtd-system-page .mtd-page-hero,
  body.mtd-system-page .mtd-section-band,
  body.mtd-system-page .mtd-site-header,
  .mtd-system-chrome {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  body.mtd-system-page .mtd-container,
  .mtd-system-chrome .mtd-container {
    width: min(390px, calc(100vw - 28px)) !important;
    max-width: min(390px, calc(100vw - 28px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.mtd-system-page .mtd-container.mtd-form-panel,
  body.mtd-system-page .mtd-container.mtd-feature-panel,
  body.mtd-page-trading-journal .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-index {
    width: min(390px, calc(100vw - 28px)) !important;
    max-width: min(390px, calc(100vw - 28px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .mtd-header-inner {
    align-items: stretch;
    justify-items: center;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .mtd-brand {
    justify-content: center;
  }

  .mtd-brand-logo {
    width: 148px;
    max-width: 58vw;
  }

  .mtd-header-cta,
  .mtd-mobile-menu,
  .mtd-mobile-menu summary {
    width: 100%;
    max-width: 100%;
  }

  .mtd-hero-grid,
  .mtd-page-hero-grid,
  .mtd-card-grid,
  .mtd-problem-grid,
  .mtd-service-grid,
  .mtd-rules-grid,
  .mtd-product-grid,
  .mtd-post-grid,
  .mtd-form-grid,
  .mtd-triad,
  .mtd-two-column,
  .mtd-architecture,
  .mtd-research-board,
  .mtd-journal-archive,
  body.mtd-page-trading-journal .mtd-journal-archive {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center;
  }

  .mtd-hero-copy,
  .mtd-page-hero-grid > div:first-child,
  .mtd-section-heading,
  body.mtd-page-trading-journal .mtd-journal-hero-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2rem, 8.4vw, 2.28rem) !important;
    line-height: 1.08;
    text-align: center;
  }

  .mtd-eyebrow,
  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .mtd-button-row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

  body.mtd-system-page .mtd-dashboard,
  body.mtd-system-page .mtd-mini-terminal,
  body.mtd-system-page .mtd-pdf-visual,
  body.mtd-system-page .mtd-profile-panel,
  body.mtd-system-page .mtd-contact-card,
  body.mtd-system-page .mtd-card,
  body.mtd-system-page .mtd-triad article,
  body.mtd-system-page .mtd-feature-panel,
  body.mtd-system-page .mtd-form-panel,
  body.mtd-system-page .mtd-product-card,
  body.mtd-system-page .mtd-post-body,
  body.mtd-system-page .mtd-architecture-visual,
  body.mtd-system-page .mtd-architecture-steps,
  body.mtd-system-page .mtd-research-feature,
  body.mtd-system-page .mtd-research-list,
  body.mtd-page-trading-journal .mtd-journal-index,
  body.mtd-page-trading-journal .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-entry {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  .mtd-contact-card,
  .mtd-profile-panel,
  .mtd-pdf-visual,
  .mtd-feature-panel > div:first-child,
  .mtd-form-panel > div:first-child,
  .mtd-footer-simple-brand,
  .mtd-footer-simple-cta {
    align-items: center;
    text-align: center;
  }

  body.mtd-system-page .mtd-contact-card p,
  body.mtd-system-page .mtd-profile-panel p,
  body.mtd-system-page .mtd-form-panel p,
  body.mtd-system-page .mtd-feature-panel p,
  body.mtd-page-trading-journal .mtd-journal-entry-body,
  body.mtd-page-trading-journal .mtd-journal-entry h3,
  body.mtd-page-trading-journal .mtd-journal-entry p,
  body.mtd-page-trading-journal .mtd-journal-entry .mtd-research-meta {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .mtd-request-form,
  .mtd-field,
  .mtd-form-grid {
    width: 100%;
  }

  .mtd-card,
  .mtd-product-card,
  .mtd-research-feature-body,
  body.mtd-page-trading-journal .mtd-journal-entry-body {
    text-align: left;
  }

  body.mtd-page-trading-journal .mtd-journal-entry {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  body.mtd-page-trading-journal .mtd-journal-entry-date {
    width: 100% !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 0;
  }

  .mtd-footer-simple,
  .mtd-footer-simple-main {
    justify-items: center;
    text-align: center;
  }

  .mtd-footer-simple-nav {
    justify-content: center;
  }
}

/* Mobile centered-accessibility pass: make designed blocks feel intentional, not dumped. */
@media (max-width: 700px) {
  body.mtd-system-page,
  .mtd-system-chrome {
    text-align: center;
  }

  body.mtd-system-page .mtd-container,
  .mtd-system-chrome .mtd-container {
    width: min(420px, calc(100vw - 30px)) !important;
    max-width: min(420px, calc(100vw - 30px)) !important;
  }

  .mtd-section-header,
  .mtd-section-header h2,
  .mtd-section-header p,
  .mtd-hero-copy,
  .mtd-page-hero-grid > div:first-child,
  .mtd-journal-hero-inner,
  .mtd-feature-panel > div:first-child,
  .mtd-form-panel > div:first-child {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1,
  .mtd-section-header h2,
  .mtd-feature-panel h2,
  .mtd-form-panel h2 {
    text-align: center !important;
    text-wrap: balance;
  }

  .mtd-eyebrow,
  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow),
  .mtd-section-header p:not(.mtd-eyebrow),
  .mtd-feature-panel p,
  .mtd-form-panel p {
    text-align: center !important;
  }

  .mtd-button-row,
  .mtd-center-cta,
  .mtd-journal-load-more,
  body.mtd-page-trading-journal .mtd-journal-pagination,
  body.mtd-page-trading-journal .mtd-journal-pagination > div {
    justify-content: center !important;
    justify-items: center !important;
    text-align: center;
  }

  .mtd-card,
  .mtd-product-card,
  .mtd-triad article,
  .mtd-mini-terminal,
  .mtd-pdf-visual,
  .mtd-profile-panel,
  .mtd-contact-card,
  .mtd-architecture-step,
  .mtd-architecture-visual,
  .mtd-dashboard-top > div,
  .mtd-dashboard-bottom > div,
  .mtd-system-rail > div,
  .mtd-control-map div,
  .mtd-research-feature-body,
  .mtd-research-note,
  .mtd-post-card,
  .mtd-journal-index,
  body.mtd-page-trading-journal .mtd-journal-entry,
  body.mtd-page-trading-journal .mtd-journal-entry-body {
    text-align: center !important;
    align-items: center !important;
    justify-items: center !important;
  }

  .mtd-card p,
  .mtd-product-card p,
  .mtd-triad p,
  .mtd-architecture-step p,
  .mtd-research-feature p,
  .mtd-research-note p,
  .mtd-post-card p,
  body.mtd-page-trading-journal .mtd-journal-entry p,
  body.mtd-page-trading-journal .mtd-journal-entry h3,
  body.mtd-page-trading-journal .mtd-journal-entry .mtd-research-meta {
    text-align: center !important;
  }

  .mtd-card-number,
  .mtd-flow-index,
  .mtd-product-card span,
  .mtd-research-meta,
  body.mtd-page-trading-journal .mtd-journal-entry-date,
  body.mtd-page-trading-journal .mtd-journal-hero-meta,
  .mtd-journal-index-stats,
  .mtd-journal-category-stack {
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .mtd-rules-grid .mtd-card {
    place-items: center !important;
  }

  .mtd-request-form {
    text-align: left;
  }

  .mtd-request-form .mtd-button {
    margin-left: auto;
    margin-right: auto;
  }

  .mtd-field span {
    text-align: left;
  }

  body.mtd-single-post-page .mtd-system-chrome {
    text-align: center;
  }
}

/* Phone-safe centered width cap: prevents centered mobile blocks from clipping. */
@media (max-width: 700px) {
  body.mtd-system-page .mtd-container,
  .mtd-system-chrome .mtd-container,
  body.mtd-system-page .mtd-container.mtd-form-panel,
  body.mtd-system-page .mtd-container.mtd-feature-panel,
  body.mtd-page-trading-journal .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-index,
  body.mtd-system-page .mtd-dashboard,
  body.mtd-system-page .mtd-mini-terminal,
  body.mtd-system-page .mtd-pdf-visual,
  body.mtd-system-page .mtd-profile-panel,
  body.mtd-system-page .mtd-contact-card,
  body.mtd-system-page .mtd-card,
  body.mtd-system-page .mtd-triad article,
  body.mtd-system-page .mtd-feature-panel,
  body.mtd-system-page .mtd-form-panel,
  body.mtd-system-page .mtd-product-card,
  body.mtd-system-page .mtd-post-body,
  body.mtd-system-page .mtd-architecture-visual,
  body.mtd-system-page .mtd-architecture-steps,
  body.mtd-system-page .mtd-research-feature,
  body.mtd-system-page .mtd-research-list,
  body.mtd-page-trading-journal .mtd-journal-entry {
    width: 100% !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1,
  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow),
  .mtd-section-header,
  .mtd-section-header h2,
  .mtd-section-header p {
    width: 100% !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 390px) and (max-width: 700px) {
  body.mtd-system-page .mtd-container,
  .mtd-system-chrome .mtd-container,
  body.mtd-system-page .mtd-container.mtd-form-panel,
  body.mtd-system-page .mtd-container.mtd-feature-panel,
  body.mtd-page-trading-journal .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-index,
  body.mtd-system-page .mtd-dashboard,
  body.mtd-system-page .mtd-mini-terminal,
  body.mtd-system-page .mtd-pdf-visual,
  body.mtd-system-page .mtd-profile-panel,
  body.mtd-system-page .mtd-contact-card,
  body.mtd-system-page .mtd-card,
  body.mtd-system-page .mtd-triad article,
  body.mtd-system-page .mtd-feature-panel,
  body.mtd-system-page .mtd-form-panel,
  body.mtd-system-page .mtd-product-card,
  body.mtd-system-page .mtd-post-body,
  body.mtd-system-page .mtd-architecture-visual,
  body.mtd-system-page .mtd-architecture-steps,
  body.mtd-system-page .mtd-research-feature,
  body.mtd-system-page .mtd-research-list,
  body.mtd-page-trading-journal .mtd-journal-entry,
  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1,
  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow),
  .mtd-section-header,
  .mtd-section-header h2,
  .mtd-section-header p {
    max-width: 430px !important;
  }
}

@media (max-width: 380px) {
  body.mtd-system-page .mtd-container,
  .mtd-system-chrome .mtd-container,
  body.mtd-system-page .mtd-container.mtd-form-panel,
  body.mtd-system-page .mtd-container.mtd-feature-panel,
  body.mtd-page-trading-journal .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-index,
  body.mtd-system-page .mtd-dashboard,
  body.mtd-system-page .mtd-mini-terminal,
  body.mtd-system-page .mtd-pdf-visual,
  body.mtd-system-page .mtd-profile-panel,
  body.mtd-system-page .mtd-contact-card,
  body.mtd-system-page .mtd-card,
  body.mtd-system-page .mtd-triad article,
  body.mtd-system-page .mtd-feature-panel,
  body.mtd-system-page .mtd-form-panel,
  body.mtd-system-page .mtd-product-card,
  body.mtd-system-page .mtd-post-body,
  body.mtd-system-page .mtd-architecture-visual,
  body.mtd-system-page .mtd-architecture-steps,
  body.mtd-system-page .mtd-research-feature,
  body.mtd-system-page .mtd-research-list,
  body.mtd-page-trading-journal .mtd-journal-entry,
  body.mtd-system-page .mtd-header-cta,
  body.mtd-system-page .mtd-mobile-menu,
  body.mtd-system-page .mtd-mobile-menu summary,
  body.mtd-system-page .mtd-button,
  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1,
  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow),
  .mtd-section-header,
  .mtd-section-header h2,
  .mtd-section-header p {
    width: 100% !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    font-size: clamp(1.72rem, 7.6vw, 1.95rem) !important;
  }

  .mtd-card,
  .mtd-product-card,
  .mtd-triad article,
  .mtd-feature-panel,
  .mtd-form-panel,
  .mtd-product-card,
  .mtd-post-body,
  .mtd-architecture-visual,
  .mtd-architecture-steps,
  body.mtd-page-trading-journal .mtd-journal-entry {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* Live mobile shell fix: keep the canvas full-width, center only the readable content. */
@media (max-width: 700px) {
  html,
  body,
  body.mtd-system-page,
  body.mtd-system-page .mtd-site-shell,
  body.mtd-system-page .mtd-main,
  body.mtd-system-page .mtd-site-header,
  body.mtd-system-page .mtd-section,
  body.mtd-system-page .mtd-hero,
  body.mtd-system-page .mtd-page-hero,
  body.mtd-system-page .mtd-section-band,
  body.mtd-system-page .mtd-site-footer,
  body.mtd-single-post-page,
  body.mtd-single-post-page #page-container,
  .mtd-system-chrome {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
  }

  body.mtd-system-page .mtd-container,
  .mtd-system-chrome .mtd-container,
  body.mtd-system-page .mtd-container.mtd-form-panel,
  body.mtd-system-page .mtd-container.mtd-feature-panel,
  body.mtd-system-page .mtd-hero-copy,
  body.mtd-system-page .mtd-page-hero-grid > div:first-child,
  body.mtd-page-trading-journal .mtd-journal-hero-inner,
  body.mtd-page-trading-journal .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-index,
  body.mtd-system-page .mtd-dashboard,
  body.mtd-system-page .mtd-mini-terminal,
  body.mtd-system-page .mtd-pdf-visual,
  body.mtd-system-page .mtd-profile-panel,
  body.mtd-system-page .mtd-contact-card,
  body.mtd-system-page .mtd-card,
  body.mtd-system-page .mtd-triad article,
  body.mtd-system-page .mtd-feature-panel,
  body.mtd-system-page .mtd-form-panel,
  body.mtd-system-page .mtd-product-card,
  body.mtd-system-page .mtd-post-body,
  body.mtd-system-page .mtd-architecture-visual,
  body.mtd-system-page .mtd-architecture-steps,
  body.mtd-system-page .mtd-research-feature,
  body.mtd-system-page .mtd-research-list,
  body.mtd-page-trading-journal .mtd-journal-entry,
  body.mtd-system-page .mtd-header-cta,
  body.mtd-system-page .mtd-mobile-menu,
  body.mtd-system-page .mtd-mobile-menu summary,
  body.mtd-system-page .mtd-button,
  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1,
  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow),
  .mtd-section-header,
  .mtd-section-header h2,
  .mtd-section-header p {
    box-sizing: border-box !important;
    width: calc(100vw - 32px) !important;
    max-width: 430px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.mtd-system-page .mtd-hero,
  body.mtd-system-page .mtd-page-hero,
  body.mtd-system-page .mtd-section,
  body.mtd-system-page .mtd-section-band {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .mtd-header-inner,
  .mtd-hero-copy,
  .mtd-page-hero-grid > div:first-child,
  .mtd-section-header,
  .mtd-card,
  .mtd-triad article,
  .mtd-feature-panel,
  .mtd-product-card,
  .mtd-contact-card,
  .mtd-profile-panel,
  .mtd-post-body,
  body.mtd-page-trading-journal .mtd-journal-hero-inner {
    text-align: center !important;
  }

  .mtd-hero-grid,
  .mtd-page-hero-grid,
  .mtd-card-grid,
  .mtd-problem-grid,
  .mtd-service-grid,
  .mtd-rules-grid,
  .mtd-product-grid,
  .mtd-post-grid,
  .mtd-form-grid,
  .mtd-triad,
  .mtd-two-column,
  .mtd-architecture,
  .mtd-research-board,
  .mtd-journal-archive,
  body.mtd-page-trading-journal .mtd-journal-archive {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
  }

  .mtd-button-row,
  .mtd-form-actions,
  .mtd-journal-actions,
  .mtd-footer-links,
  body.mtd-page-trading-journal .mtd-journal-pagination > div {
    justify-content: center !important;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    font-size: clamp(2.02rem, 9vw, 2.48rem) !important;
    line-height: 1.05 !important;
    overflow-wrap: anywhere;
  }
}

/* Phone polish: avoid clipped hero copy while keeping the mobile layout premium and centered. */
@media (max-width: 700px) {
  body.mtd-system-page .mtd-container,
  .mtd-system-chrome .mtd-container,
  body.mtd-system-page .mtd-container.mtd-form-panel,
  body.mtd-system-page .mtd-container.mtd-feature-panel,
  body.mtd-system-page .mtd-hero-copy,
  body.mtd-system-page .mtd-page-hero-grid > div:first-child,
  body.mtd-page-trading-journal .mtd-journal-hero-inner,
  body.mtd-page-trading-journal .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-index,
  body.mtd-system-page .mtd-dashboard,
  body.mtd-system-page .mtd-mini-terminal,
  body.mtd-system-page .mtd-pdf-visual,
  body.mtd-system-page .mtd-profile-panel,
  body.mtd-system-page .mtd-contact-card,
  body.mtd-system-page .mtd-card,
  body.mtd-system-page .mtd-triad article,
  body.mtd-system-page .mtd-feature-panel,
  body.mtd-system-page .mtd-form-panel,
  body.mtd-system-page .mtd-product-card,
  body.mtd-system-page .mtd-post-body,
  body.mtd-system-page .mtd-architecture-visual,
  body.mtd-system-page .mtd-architecture-steps,
  body.mtd-system-page .mtd-research-feature,
  body.mtd-system-page .mtd-research-list,
  body.mtd-page-trading-journal .mtd-journal-entry,
  body.mtd-system-page .mtd-header-cta,
  body.mtd-system-page .mtd-mobile-menu,
  body.mtd-system-page .mtd-mobile-menu summary,
  body.mtd-system-page .mtd-button,
  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1,
  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow),
  .mtd-section-header,
  .mtd-section-header h2,
  .mtd-section-header p {
    width: min(390px, calc(100vw - 40px)) !important;
    max-width: min(390px, calc(100vw - 40px)) !important;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1.82rem, 7.4vw, 2.08rem) !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  body.mtd-system-page .mtd-eyebrow,
  body.mtd-page-trading-journal .mtd-eyebrow {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    font-size: 0.72rem !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }

  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow) {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
    text-align: center !important;
  }
}

/* Phone edge guard: prevent any hero/card content from clipping into the browser edge. */
@media (max-width: 700px) {
  body.mtd-system-page .mtd-container,
  .mtd-system-chrome .mtd-container,
  body.mtd-system-page .mtd-container.mtd-form-panel,
  body.mtd-system-page .mtd-container.mtd-feature-panel,
  body.mtd-page-trading-journal .mtd-journal-stream,
  body.mtd-page-trading-journal .mtd-journal-index,
  body.mtd-system-page .mtd-dashboard,
  body.mtd-system-page .mtd-mini-terminal,
  body.mtd-system-page .mtd-pdf-visual,
  body.mtd-system-page .mtd-profile-panel,
  body.mtd-system-page .mtd-contact-card,
  body.mtd-system-page .mtd-card,
  body.mtd-system-page .mtd-triad article,
  body.mtd-system-page .mtd-feature-panel,
  body.mtd-system-page .mtd-form-panel,
  body.mtd-system-page .mtd-product-card,
  body.mtd-system-page .mtd-post-body,
  body.mtd-system-page .mtd-architecture-visual,
  body.mtd-system-page .mtd-architecture-steps,
  body.mtd-system-page .mtd-research-feature,
  body.mtd-system-page .mtd-research-list,
  body.mtd-page-trading-journal .mtd-journal-entry,
  body.mtd-system-page .mtd-header-cta,
  body.mtd-system-page .mtd-mobile-menu,
  body.mtd-system-page .mtd-mobile-menu summary,
  body.mtd-system-page .mtd-button {
    width: min(370px, calc(100vw - 56px)) !important;
    max-width: min(370px, calc(100vw - 56px)) !important;
  }

  body.mtd-system-page .mtd-hero-copy,
  body.mtd-system-page .mtd-page-hero-grid > div:first-child,
  body.mtd-page-trading-journal .mtd-journal-hero-inner,
  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1,
  body.mtd-system-page .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-system-page .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-trading-journal .mtd-journal-hero p:not(.mtd-eyebrow),
  .mtd-section-header,
  .mtd-section-header h2,
  .mtd-section-header p {
    width: min(340px, calc(100vw - 64px)) !important;
    max-width: min(340px, calc(100vw - 64px)) !important;
  }

  body.mtd-system-page .mtd-hero h1,
  body.mtd-system-page .mtd-page-hero h1,
  body.mtd-page-trading-journal .mtd-journal-hero h1 {
    font-size: clamp(1.72rem, 6.9vw, 2rem) !important;
    line-height: 1.14 !important;
  }

  body.mtd-system-page img,
  body.mtd-system-page svg,
  body.mtd-system-page canvas,
  body.mtd-system-page video {
    max-width: 100% !important;
    height: auto;
  }
}

/* Mobile form containment: fields should fit inside the card, not inherit page-width caps. */
@media (max-width: 700px) {
  body.mtd-system-page .mtd-form-panel {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  body.mtd-system-page .mtd-form-panel form,
  body.mtd-system-page .mtd-form-panel p,
  body.mtd-system-page .mtd-form-panel label,
  body.mtd-system-page .mtd-form-panel .wpcf7,
  body.mtd-system-page .mtd-form-panel .wpcf7-form,
  body.mtd-system-page .mtd-form-panel .wpcf7-form-control-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.mtd-system-page .mtd-form-panel .mtd-request-form,
  body.mtd-system-page .mtd-form-panel .mtd-form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible;
  }

  body.mtd-system-page .mtd-form-panel .mtd-request-form > *,
  body.mtd-system-page .mtd-form-panel .mtd-form-grid > *,
  body.mtd-system-page .mtd-form-panel .mtd-field {
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.mtd-system-page .mtd-form-panel input,
  body.mtd-system-page .mtd-form-panel select,
  body.mtd-system-page .mtd-form-panel textarea,
  body.mtd-system-page .mtd-form-panel .wpcf7-submit {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Mobile button containment: CTAs should stay inside their hero/card/form boxes. */
@media (max-width: 700px) {
  body.mtd-system-page .mtd-button-row,
  body.mtd-system-page .mtd-form-actions,
  body.mtd-system-page .mtd-center-cta,
  body.mtd-system-page .mtd-journal-load-more,
  body.mtd-page-trading-journal .mtd-journal-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
    width: min(340px, calc(100vw - 64px)) !important;
    max-width: min(340px, calc(100vw - 64px)) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body.mtd-system-page .mtd-button-row .mtd-button,
  body.mtd-system-page .mtd-form-actions .mtd-button,
  body.mtd-system-page .mtd-center-cta .mtd-button,
  body.mtd-system-page .mtd-journal-load-more .mtd-button,
  body.mtd-page-trading-journal .mtd-journal-actions .mtd-button,
  body.mtd-system-page .mtd-card .mtd-button,
  body.mtd-system-page .mtd-triad article .mtd-button,
  body.mtd-system-page .mtd-feature-panel .mtd-button,
  body.mtd-system-page .mtd-product-card .mtd-button,
  body.mtd-system-page .mtd-post-body .mtd-button,
  body.mtd-system-page .mtd-research-feature .mtd-button,
  body.mtd-system-page .mtd-contact-card .mtd-button,
  body.mtd-system-page .mtd-profile-panel .mtd-button,
  body.mtd-system-page .mtd-form-panel .mtd-button {
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Single post mobile repair: Divi row padding was pushing 360px columns off-screen. */
@media (max-width: 700px) {
  body.mtd-single-post-page .mtd-divi-single-main,
  body.mtd-single-post-page .mtd-divi-single-main .et-l,
  body.mtd-single-post-page .mtd-divi-single-main .et-l--body,
  body.mtd-single-post-page .mtd-divi-single-main .et_builder_inner_content,
  body.mtd-single-post-page .mtd-divi-single-main .et_pb_section,
  body.mtd-single-post-page .mtd-divi-single-main .et_pb_row,
  body.mtd-single-post-page .mtd-divi-single-main .et_pb_column,
  body.mtd-single-post-page .mtd-divi-single-main .et_pb_module,
  body.mtd-single-post-page .mtd-divi-single-main .et_pb_post_content,
  body.mtd-single-post-page .mtd-divi-single-main .custpmpostcontent {
    box-sizing: border-box !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  body.mtd-single-post-page .mtd-divi-single-main .et_builder_inner_content,
  body.mtd-single-post-page .mtd-divi-single-main .et_pb_section,
  body.mtd-single-post-page .mtd-divi-single-main .et_pb_row {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.mtd-single-post-page .mtd-divi-single-main .et_pb_section {
    padding-top: 20px !important;
    padding-bottom: 28px !important;
  }

  body.mtd-single-post-page .mtd-divi-single-main .et_pb_row {
    padding-top: 24px !important;
    padding-bottom: 28px !important;
  }

  body.mtd-single-post-page .mtd-divi-single-main .et_pb_column,
  body.mtd-single-post-page .mtd-divi-single-main .et_pb_module,
  body.mtd-single-post-page .mtd-divi-single-main .et_pb_post_content,
  body.mtd-single-post-page .mtd-divi-single-main .custpmpostcontent {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.mtd-single-post-page .mtd-divi-single-main .entry-title,
  body.mtd-single-post-page .mtd-divi-single-main .et_pb_title_meta_container,
  body.mtd-single-post-page .mtd-divi-single-main .custpmpostcontent > *,
  body.mtd-single-post-page .mtd-divi-single-main p,
  body.mtd-single-post-page .mtd-divi-single-main h1,
  body.mtd-single-post-page .mtd-divi-single-main h2,
  body.mtd-single-post-page .mtd-divi-single-main h3,
  body.mtd-single-post-page .mtd-divi-single-main h4,
  body.mtd-single-post-page .mtd-divi-single-main ul,
  body.mtd-single-post-page .mtd-divi-single-main ol,
  body.mtd-single-post-page .mtd-divi-single-main figure,
  body.mtd-single-post-page .mtd-divi-single-main img,
  body.mtd-single-post-page .mtd-divi-single-main iframe,
  body.mtd-single-post-page .mtd-divi-single-main table {
    width: min(326px, calc(100vw - 64px)) !important;
    max-width: min(326px, calc(100vw - 64px)) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body.mtd-single-post-page .mtd-divi-single-main img,
  body.mtd-single-post-page .mtd-divi-single-main iframe {
    height: auto !important;
  }
}

/* Home architecture console only: enlarge the Risk/Protection/Journal status boxes. */
@media (max-width: 700px) {
  body.mtd-page-home .mtd-architecture-console {
    justify-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.mtd-page-home .mtd-architecture-console > div {
    width: min(310px, calc(100vw - 80px)) !important;
    max-width: min(310px, calc(100vw - 80px)) !important;
    min-height: 108px !important;
    padding: 18px !important;
    display: grid !important;
    align-content: center !important;
    justify-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* Trading Journal mobile cards only: keep each archive item in its own readable box. */
@media (max-width: 700px) {
  body.mtd-page-trading-journal .mtd-journal-stream {
    gap: 16px !important;
  }

  body.mtd-page-trading-journal .mtd-journal-entry {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 18px !important;
    padding: 20px !important;
    border: 1px solid rgba(138, 166, 194, 0.16) !important;
    border-radius: var(--mtd-radius) !important;
    background:
      linear-gradient(145deg, rgba(15, 22, 32, 0.9), rgba(6, 9, 14, 0.98)),
      #080c12 !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22) !important;
    box-sizing: border-box !important;
  }

  body.mtd-page-trading-journal .mtd-journal-entry-date {
    width: auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    justify-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(22, 244, 198, 0.2) !important;
    border-radius: var(--mtd-radius-sm) !important;
    background: rgba(22, 244, 198, 0.055) !important;
    color: var(--mtd-muted) !important;
    box-sizing: border-box !important;
  }

  body.mtd-page-trading-journal .mtd-journal-entry-date span,
  body.mtd-page-trading-journal .mtd-journal-entry-date small {
    display: inline !important;
    font-size: 0.76rem !important;
    line-height: 1 !important;
  }

  body.mtd-page-trading-journal .mtd-journal-entry-date strong {
    display: inline !important;
    margin: 0 !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
  }

  body.mtd-page-trading-journal .mtd-journal-entry-body {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    justify-items: center !important;
    align-content: start !important;
    gap: 10px !important;
    padding: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  body.mtd-page-trading-journal .mtd-journal-entry .mtd-research-meta,
  body.mtd-page-trading-journal .mtd-journal-entry h3,
  body.mtd-page-trading-journal .mtd-journal-entry p {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body.mtd-page-trading-journal .mtd-journal-entry h3 {
    margin-bottom: 2px !important;
    font-size: clamp(1.38rem, 7vw, 1.72rem) !important;
    line-height: 1.16 !important;
  }

  body.mtd-page-trading-journal .mtd-journal-entry p {
    margin-bottom: 4px !important;
    color: var(--mtd-muted) !important;
    font-size: 1rem !important;
    line-height: 1.62 !important;
  }

  body.mtd-page-trading-journal .mtd-journal-entry .mtd-text-link {
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 18px !important;
    border: 1px solid rgba(22, 244, 198, 0.24) !important;
    border-radius: var(--mtd-radius-sm) !important;
    background: rgba(22, 244, 198, 0.055) !important;
    color: var(--mtd-text) !important;
    line-height: 1 !important;
  }

  body.mtd-page-trading-journal .mtd-journal-entry-media {
    display: none !important;
  }
}

/* Single post frame polish: improve the top/bottom Divi wrappers without changing article content. */
body.mtd-single-post-page {
  --mtd-bg: #05070a;
  --mtd-panel-soft: rgba(16, 23, 34, 0.78);
  --mtd-line-soft: rgba(22, 244, 198, 0.16);
  --mtd-text: #f6f8fb;
  --mtd-muted: #a8bdb8;
  --mtd-blue: #16f4c6;
  --mtd-radius: 8px;
  background:
    radial-gradient(circle at 16% 0%, rgba(22, 244, 198, 0.08), transparent 30rem),
    linear-gradient(180deg, #080a0e 0%, #05070a 100%) !important;
}

body.mtd-single-post-page #page-container,
body.mtd-single-post-page .mtd-divi-single-main,
body.mtd-single-post-page .mtd-divi-single-main #main-content {
  background: transparent !important;
}

body.mtd-single-post-page .mtd-divi-single-main .et_pb_section {
  background:
    radial-gradient(circle at 20% 0%, rgba(22, 244, 198, 0.08), transparent 26rem),
    linear-gradient(180deg, #071014 0%, #05070a 100%) !important;
}

body.mtd-single-post-page .mtd-divi-single-main .et_pb_row_0_tb_body {
  overflow: hidden !important;
  border: 1px solid rgba(138, 166, 194, 0.18) !important;
  border-radius: 14px !important;
  background: #f7f9f8 !important;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42) !important;
}

body.mtd-single-post-page .mtd-divi-single-main .et_pb_image_0_tb_body img {
  border-radius: 6px !important;
}

body.mtd-single-post-page .mtd-divi-single-main .et_pb_row_1_tb_body {
  overflow: hidden !important;
  border: 1px solid rgba(138, 166, 194, 0.18) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(145deg, rgba(15, 22, 32, 0.92), rgba(6, 9, 14, 0.98)),
    #080c12 !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26) !important;
}

body.mtd-single-post-page .mtd-divi-single-main .et_pb_posts_nav {
  width: 100% !important;
  max-width: 100% !important;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
}

body.mtd-single-post-page .mtd-divi-single-main .et_pb_posts_nav a {
  display: block !important;
  min-height: 56px !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(22, 244, 198, 0.18) !important;
  border-radius: 8px !important;
  background: rgba(22, 244, 198, 0.055) !important;
  color: #f6f8fb !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

body.mtd-single-post-page .mtd-divi-single-main .et_pb_posts_nav a::before {
  content: "Previous research note";
  display: block;
  margin-bottom: 4px;
  color: #16f4c6;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.mtd-single-post-page .mtd-divi-single-main .nav-next a::before {
  content: "Next research note";
}

body.mtd-single-post-page .mtd-divi-single-main .et_pb_posts_nav .meta-nav {
  color: #16f4c6 !important;
}

@media (min-width: 701px) {
  body.mtd-single-post-page .mtd-divi-single-main .et_pb_row_1_tb_body {
    margin-top: 24px !important;
    padding: 16px !important;
  }
}

@media (max-width: 700px) {
  body.mtd-single-post-page .mtd-divi-single-main #main-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.mtd-single-post-page .mtd-divi-single-main .et_pb_section {
    padding-top: 20px !important;
    padding-bottom: 30px !important;
  }

  body.mtd-single-post-page .mtd-divi-single-main .et_pb_row_0_tb_body {
    border-radius: 12px !important;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.34) !important;
  }

  body.mtd-single-post-page .mtd-divi-single-main .et_pb_row_1_tb_body {
    margin-top: 18px !important;
    padding: 12px !important;
  }

  body.mtd-single-post-page .mtd-divi-single-main .et_pb_posts_nav a {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 54px !important;
    padding: 13px 14px !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }
}

.mtd-book-feature,
.mtd-download-card,
.mtd-product-detail-panel,
.mtd-checklist-strip,
.mtd-faq-card,
.mtd-resource-capture,
.mtd-article-product-cta {
  border: 1px solid rgba(22, 244, 198, 0.18);
  border-radius: var(--mtd-radius);
  background:
    linear-gradient(145deg, rgba(12, 22, 31, 0.92), rgba(5, 8, 12, 0.98)),
    #070b10;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
}

.mtd-book-feature,
.mtd-download-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 32px;
}

.mtd-book-feature span,
.mtd-download-card span {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(22, 244, 198, 0.2);
  border-radius: var(--mtd-radius-sm);
  background: rgba(22, 244, 198, 0.06);
  color: var(--mtd-blue-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mtd-book-feature strong,
.mtd-download-card strong {
  max-width: 520px;
  color: var(--mtd-text);
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 0.98;
}

.mtd-book-feature p,
.mtd-download-card p {
  max-width: 500px;
  color: var(--mtd-muted);
}

.mtd-product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: stretch;
}

.mtd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.mtd-product-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mtd-product-detail-panel {
  min-height: 320px;
  padding: 28px;
}

.mtd-product-detail-panel h2 {
  margin-bottom: 14px;
  color: var(--mtd-text);
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  line-height: 1.08;
}

.mtd-product-detail-panel p,
.mtd-product-detail-panel li {
  color: var(--mtd-muted);
}

.mtd-product-detail-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.mtd-product-detail-panel .mtd-button {
  margin-top: 20px;
}

.mtd-checklist-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
}

.mtd-checklist-strip h2 {
  color: var(--mtd-text);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.05;
}

.mtd-checklist-strip p {
  max-width: 760px;
  color: var(--mtd-muted);
}

.mtd-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mtd-faq-card {
  padding: 26px;
}

.mtd-faq-card h2 {
  margin: 0 0 12px;
  color: var(--mtd-text);
  font-size: clamp(1.12rem, 1.5vw, 1.35rem);
  line-height: 1.16;
}

.mtd-faq-card p {
  color: var(--mtd-muted);
}

.mtd-resource-capture {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
}

.mtd-resource-capture h2 {
  color: var(--mtd-text);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.mtd-resource-capture p,
.mtd-resource-capture-form span {
  color: var(--mtd-muted);
}

.mtd-resource-capture-form {
  display: grid;
  gap: 14px;
}

.mtd-resource-capture-form label {
  display: grid;
  gap: 7px;
}

.mtd-resource-capture-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(181, 199, 214, 0.16);
  border-radius: var(--mtd-radius-sm);
  background: rgba(7, 12, 18, 0.72);
  color: var(--mtd-text);
  padding: 0 14px;
  box-sizing: border-box;
}

.mtd-resource-capture-form .mtd-button {
  width: 100%;
}

.mtd-resource-capture-message {
  border: 1px solid rgba(22, 244, 198, 0.24);
  border-radius: var(--mtd-radius-sm);
  background: rgba(22, 244, 198, 0.08);
  color: var(--mtd-text);
  padding: 12px 14px;
}

.mtd-resource-capture-message.is-error {
  border-color: rgba(215, 181, 109, 0.32);
  background: rgba(215, 181, 109, 0.08);
}

.mtd-single-product-cta-chrome {
  padding: 28px 0 0;
  background: #05070a;
}

.mtd-article-product-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
}

.mtd-article-product-cta h2 {
  margin: 0 0 8px;
  color: var(--mtd-text);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.08;
}

.mtd-article-product-cta .mtd-eyebrow {
  display: block;
  margin-bottom: 12px;
}

.mtd-article-product-cta p {
  max-width: 720px;
  color: var(--mtd-muted);
}

.mtd-article-product-cta-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .mtd-product-hero-grid,
  .mtd-product-detail-grid,
  .mtd-faq-grid,
  .mtd-resource-capture {
    grid-template-columns: 1fr;
  }

  .mtd-checklist-strip,
  .mtd-resource-capture,
  .mtd-article-product-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mtd-book-feature,
  .mtd-download-card,
  .mtd-product-detail-panel {
    min-height: 0;
  }

  .mtd-book-feature span,
  .mtd-download-card span {
    margin-inline: auto;
  }

  .mtd-book-feature strong,
  .mtd-download-card strong,
  .mtd-book-feature p,
  .mtd-download-card p,
  .mtd-article-product-cta p,
  .mtd-checklist-strip p,
  .mtd-resource-capture p {
    margin-left: auto;
    margin-right: auto;
  }

  .mtd-article-product-cta-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .mtd-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(340px, 100%);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-items: stretch;
  }

  .mtd-book-feature,
  .mtd-download-card,
  .mtd-product-detail-panel,
  .mtd-checklist-strip,
  .mtd-faq-card,
  .mtd-resource-capture,
  .mtd-article-product-cta {
    padding: 24px;
  }

  .mtd-product-detail-panel ul {
    padding-left: 0;
    list-style-position: inside;
  }

  .mtd-article-product-cta-actions,
  body.mtd-system-page .mtd-hero-actions .mtd-button,
  .mtd-system-chrome .mtd-article-product-cta-actions .mtd-button,
  body.mtd-system-page .mtd-article-product-cta-actions .mtd-button,
  body.mtd-system-page .mtd-checklist-strip .mtd-button,
  body.mtd-system-page .mtd-book-feature .mtd-button,
  body.mtd-system-page .mtd-download-card .mtd-button,
  body.mtd-system-page .mtd-resource-capture .mtd-button,
  body.mtd-system-page .mtd-product-detail-panel .mtd-button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}

.mtd-ebook-hero-grid {
  align-items: center;
}

.mtd-product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mtd-product-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(22, 244, 198, 0.18);
  border-radius: var(--mtd-radius-sm);
  background: rgba(22, 244, 198, 0.055);
  color: var(--mtd-blue-strong);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.mtd-ebook-cover-card {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: center;
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(22, 244, 198, 0.18);
  border-radius: var(--mtd-radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 244, 198, 0.12), transparent 58%),
    linear-gradient(145deg, rgba(12, 22, 31, 0.92), rgba(5, 8, 12, 0.98));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.mtd-ebook-cover-card img {
  width: min(100%, 360px);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.mtd-ebook-cover-card figcaption {
  display: grid;
  gap: 4px;
  width: min(100%, 360px);
  text-align: left;
}

.mtd-ebook-cover-card figcaption span {
  color: var(--mtd-blue-strong);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.mtd-ebook-cover-card figcaption strong {
  color: var(--mtd-text);
  font-size: 1.1rem;
}

@media (max-width: 980px) {
  .mtd-ebook-hero-grid {
    text-align: center;
  }

  .mtd-product-meta-row {
    justify-content: center;
  }

  .mtd-ebook-cover-card {
    width: min(520px, 100%);
    margin-inline: auto;
  }

  .mtd-ebook-cover-card figcaption {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .mtd-product-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    width: min(340px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .mtd-product-meta-row span {
    justify-content: center;
    width: 100%;
  }

  .mtd-ebook-cover-card {
    padding: 16px;
  }

  .mtd-ebook-cover-card img,
  .mtd-ebook-cover-card figcaption {
    width: 100%;
  }
}

/* Homepage final proportion pass: stronger CTAs, tighter hero rhythm, no mobile edge drift. */
body.mtd-page-home .mtd-hero {
  min-height: 0;
  padding-top: clamp(92px, 8vw, 116px);
  padding-bottom: clamp(76px, 6vw, 92px);
}

body.mtd-page-home .mtd-hero .mtd-button-row {
  gap: 14px;
  margin-top: 34px;
}

body.mtd-page-home .mtd-hero .mtd-button-row .mtd-button {
  min-height: 56px;
  min-width: 218px;
  padding: 0 28px;
  font-size: 1rem;
}

body.mtd-page-home .mtd-dashboard-top > div,
body.mtd-page-home .mtd-dashboard-bottom > div {
  min-height: 86px;
  padding: 18px;
}

@media (max-width: 700px) {
  body.mtd-page-home .mtd-hero {
    padding-top: 44px !important;
    padding-bottom: 48px !important;
  }

  body.mtd-page-home .mtd-hero-grid {
    width: min(calc(100% - 28px), 390px) !important;
    max-width: min(calc(100% - 28px), 390px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 34px !important;
    overflow: hidden;
  }

  body.mtd-page-home .mtd-hero-copy,
  body.mtd-page-home .mtd-dashboard {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.mtd-page-home .mtd-hero h1,
  body.mtd-page-home .mtd-hero p:not(.mtd-eyebrow),
  body.mtd-page-home .mtd-hero .mtd-eyebrow {
    width: 100% !important;
    max-width: 342px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body.mtd-page-home .mtd-hero h1 {
    font-size: clamp(2rem, 8vw, 2.36rem) !important;
    line-height: 1.1 !important;
    overflow-wrap: normal !important;
    text-wrap: balance;
  }

  body.mtd-page-home .mtd-hero p:not(.mtd-eyebrow) {
    font-size: 1.02rem !important;
    line-height: 1.72 !important;
  }

  body.mtd-page-home .mtd-hero .mtd-button-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
    margin-top: 30px !important;
    justify-items: stretch !important;
  }

  body.mtd-page-home .mtd-hero .mtd-button-row .mtd-button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 60px !important;
    padding: 0 18px !important;
    font-size: 1rem !important;
  }

  body.mtd-page-home .mtd-dashboard {
    padding: 18px !important;
  }

  body.mtd-page-home .mtd-dashboard-top,
  body.mtd-page-home .mtd-dashboard-bottom {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  body.mtd-page-home .mtd-dashboard-top > div,
  body.mtd-page-home .mtd-dashboard-bottom > div {
    min-height: 94px;
    display: grid;
    place-items: center;
    text-align: center;
  }

  body.mtd-page-home .mtd-dashboard-body {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    margin: 14px 0 !important;
  }

  body.mtd-page-home .mtd-chart-panel {
    min-height: 0;
    padding: 16px;
  }
}

/* Homepage product panel: larger CTAs and balanced right-side spacing. */
body.mtd-page-home .mtd-feature-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
  padding: clamp(36px, 4vw, 48px);
}

body.mtd-page-home .mtd-feature-panel > div:first-child {
  max-width: 700px;
}

body.mtd-page-home .mtd-feature-actions {
  align-self: center;
  justify-self: end;
  gap: 14px;
}

body.mtd-page-home .mtd-feature-panel .mtd-button {
  min-width: 220px;
  min-height: 58px;
  padding: 0 28px;
  font-size: 1rem;
}

@media (max-width: 900px) {
  body.mtd-page-home .mtd-feature-panel {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  body.mtd-page-home .mtd-feature-panel > div:first-child,
  body.mtd-page-home .mtd-feature-panel p {
    margin-left: auto;
    margin-right: auto;
  }

  body.mtd-page-home .mtd-feature-actions {
    width: min(420px, 100%);
    justify-self: center;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  body.mtd-page-home .mtd-container.mtd-feature-panel {
    width: min(calc(100% - 28px), 390px) !important;
    max-width: min(calc(100% - 28px), 390px) !important;
    padding: 24px !important;
    gap: 24px !important;
  }

  body.mtd-page-home .mtd-feature-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
  }

  body.mtd-page-home .mtd-feature-panel .mtd-button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 58px !important;
  }
}

/* Ebook sales page mobile containment: keep the new product launch page centered and away from browser edges. */
@media (max-width: 700px) {
  body.mtd-page-the-rule-is-the-edge .mtd-header-inner,
  body.mtd-page-the-rule-is-the-edge .mtd-product-hero-grid,
  body.mtd-page-the-rule-is-the-edge .mtd-product-hero-grid > *,
  body.mtd-page-the-rule-is-the-edge .mtd-product-meta-row,
  body.mtd-page-the-rule-is-the-edge .mtd-hero-actions,
  body.mtd-page-the-rule-is-the-edge .mtd-ebook-cover-card,
  body.mtd-page-the-rule-is-the-edge .mtd-product-detail-panel,
  body.mtd-page-the-rule-is-the-edge .mtd-delivery-strip {
    box-sizing: border-box !important;
    width: min(342px, calc(100vw - 48px)) !important;
    max-width: min(342px, calc(100vw - 48px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.mtd-page-the-rule-is-the-edge .mtd-product-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    justify-items: center !important;
    overflow: visible !important;
  }

  body.mtd-page-the-rule-is-the-edge .mtd-page-hero h1,
  body.mtd-page-the-rule-is-the-edge .mtd-page-hero p:not(.mtd-eyebrow),
  body.mtd-page-the-rule-is-the-edge .mtd-eyebrow {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  body.mtd-page-the-rule-is-the-edge .mtd-page-hero h1 {
    font-size: clamp(1.76rem, 7vw, 2rem) !important;
    line-height: 1.13 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body.mtd-page-the-rule-is-the-edge .mtd-hero-actions,
  body.mtd-page-the-rule-is-the-edge .mtd-product-meta-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
  }

  body.mtd-page-the-rule-is-the-edge .mtd-hero-actions .mtd-button,
  body.mtd-page-the-rule-is-the-edge .mtd-product-meta-row span,
  body.mtd-page-the-rule-is-the-edge .mtd-header-cta,
  body.mtd-page-the-rule-is-the-edge .mtd-mobile-menu,
  body.mtd-page-the-rule-is-the-edge .mtd-mobile-menu summary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.mtd-page-the-rule-is-the-edge .mtd-ebook-cover-card {
    padding: 16px !important;
  }

  body.mtd-page-the-rule-is-the-edge .mtd-ebook-cover-card img,
  body.mtd-page-the-rule-is-the-edge .mtd-ebook-cover-card figcaption {
    width: 100% !important;
    max-width: 100% !important;
  }
}
