/*
Theme Name: ThaiMokykla
Theme URI: https://thaimokykla.lt
Author: Tailandietiško masažo mokykla
Description: Lengva, specialiai Tailandietiško masažo mokyklai sukurta WordPress tema.
Version: 2.0.25
Text Domain: thaimokykla
*/

:root {
  --tmm-ink: #171319;
  --tmm-text: #3f373b;
  --tmm-muted: #756a70;
  --tmm-line: #e6dcd8;
  --tmm-paper: #ffffff;
  --tmm-sand: #faf5e9;
  --tmm-lilac: #eee8f8;
  --tmm-purple: #7144ad;
  --tmm-purple-dark: #4f2b86;
  --tmm-blue: #315c8d;
  --tmm-blue-dark: #183b61;
  --tmm-yellow: #efca61;
  --tmm-gold: #c3953e;
  --tmm-burgundy: #70283f;
  --tmm-radius: 20px;
  --tmm-shadow: 0 18px 50px rgba(40, 42, 74, 0.1);
  --tmm-container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #f7f3ef;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(247, 244, 240, 0.3)),
    url("assets/images/site-background-soft-v1.webp");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--tmm-text);
  font-family: "Work Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body:not(.home) {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09), rgba(247, 244, 240, 0.22)),
    url("assets/images/site-background-soft-v1.webp");
}

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

a {
  color: var(--tmm-purple-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--tmm-purple);
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.65em;
  color: var(--tmm-burgundy);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.7rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }

p {
  margin: 0 0 1.25em;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 99999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: #fff;
  color: #111;
}

.tmm-container {
  width: min(calc(100% - 40px), var(--tmm-container));
  margin-inline: auto;
}

.tmm-topline {
  padding: 8px 20px;
  background: var(--tmm-purple);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(232, 227, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.site-header__brand-row {
  background: rgba(255, 255, 255, 0.96);
}

.site-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 30px;
}

.site-branding {
  flex: 0 0 auto;
}

.site-branding__lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tmm-ink);
  text-decoration: none;
}

.site-branding__mark {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
}

.custom-logo {
  max-width: 210px;
  max-height: 62px;
}

.site-branding__text {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.site-branding__primary {
  color: var(--tmm-burgundy);
  font-size: clamp(0.76rem, 1.2vw, 0.94rem);
  font-weight: 760;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.site-branding__secondary {
  color: var(--tmm-blue-dark);
  font-size: clamp(0.96rem, 1.45vw, 1.18rem);
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header__descriptor {
  margin-left: 8px;
  color: var(--tmm-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.site-header__nav-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--tmm-ink);
}

.primary-navigation {
  width: 100%;
}

.primary-navigation ul {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.85vw, 11px);
  margin: 0;
  padding-block: 10px;
  list-style: none;
}

.primary-navigation a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible {
  transform: translateY(-1px);
  border-color: #fff;
  background: #fff;
  color: var(--tmm-ink);
}

.primary-navigation .current-menu-item > a {
  border-color: var(--tmm-purple);
  background: var(--tmm-purple);
  color: #fff;
  box-shadow: 0 6px 18px rgba(143, 86, 217, 0.3);
}

.site-header__inner .tmm-account-link {
  margin-left: auto;
}

.tmm-account-link,
.tmm-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--tmm-ink);
  border-radius: 999px;
  background: var(--tmm-ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1;
  padding: 15px 24px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tmm-account-link:hover,
.tmm-button:hover {
  transform: translateY(-2px);
  border-color: var(--tmm-purple-dark);
  background: var(--tmm-purple-dark);
  color: #fff;
}

.tmm-button--light {
  border-color: #fff;
  background: #fff;
  color: var(--tmm-ink);
}

.tmm-button--outline {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}

.tmm-button--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
  display: none;
  width: auto;
  min-width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--tmm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tmm-ink);
  font-size: 0.78rem;
  font-weight: 760;
  cursor: pointer;
}

.menu-toggle__label {
  white-space: nowrap;
}

.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle__lines::before { transform: translateY(-6px); }
.menu-toggle__lines::after { transform: translateY(4px); }

.menu-toggle[aria-expanded="true"] .menu-toggle__lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after {
  transform: translateY(-2px) rotate(-45deg);
}

.tmm-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(760px, calc(100vh - 120px));
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(182, 126, 255, 0.5), transparent 32%),
    radial-gradient(circle at 18% 82%, rgba(194, 154, 86, 0.24), transparent 26%),
    linear-gradient(128deg, rgba(21, 17, 25, 0.94) 0%, rgba(41, 32, 50, 0.9) 50%, rgba(86, 52, 132, 0.82) 100%),
    url("assets/images/site-background-soft-v1.webp") center center / cover no-repeat;
  color: #fff;
}

.tmm-hero::before,
.tmm-hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.tmm-hero::before {
  top: -180px;
  right: -80px;
  width: 620px;
  height: 620px;
}

.tmm-hero::after {
  right: 250px;
  bottom: -240px;
  width: 520px;
  height: 520px;
}

.tmm-hero__inner {
  padding-block: clamp(90px, 14vw, 150px) clamp(75px, 10vw, 112px);
}

.tmm-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--tmm-purple-dark);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tmm-eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.tmm-hero .tmm-eyebrow {
  color: #d8bff9;
}

.tmm-hero h1 {
  max-width: 1000px;
  margin-bottom: 25px;
  color: #fff;
  font-size: clamp(3rem, 7.8vw, 6.8rem);
}

.tmm-hero__lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.07rem, 2vw, 1.35rem);
}

.tmm-hero--compact {
  min-height: min(520px, calc(100vh - 120px));
}

.tmm-hero--compact h1 {
  max-width: 820px;
  font-size: clamp(2.65rem, 5.4vw, 4.65rem);
}

.tmm-hero--compact .tmm-hero__inner {
  padding-block: clamp(62px, 8vw, 88px) clamp(58px, 7vw, 78px);
}

.tmm-hero--compact .tmm-hero__lead {
  max-width: 850px;
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
  line-height: 1.65;
}

.tmm-hero__copy {
  max-width: 880px;
}

.tmm-hero__copy .tmm-hero__lead {
  margin-bottom: 16px;
}

.tmm-hero__copy .tmm-hero__lead:last-child {
  margin-bottom: 0;
}

.tmm-home-overview {
  padding-block: clamp(78px, 10vw, 125px);
}

.tmm-home-overview__header {
  max-width: 820px;
  margin-bottom: clamp(42px, 6vw, 68px);
}

.tmm-home-overview__header p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--tmm-text);
  font-size: 1.08rem;
}

.tmm-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tmm-overview-card {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--tmm-shadow);
  color: var(--tmm-text);
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tmm-overview-card::after {
  position: absolute;
  right: -55px;
  bottom: -75px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(143, 86, 217, 0.16);
  border-radius: 50%;
  content: "";
}

.tmm-overview-card:hover,
.tmm-overview-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(143, 86, 217, 0.44);
  color: var(--tmm-text);
  box-shadow: 0 24px 60px rgba(37, 27, 47, 0.15);
}

.tmm-overview-card__number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--tmm-lilac);
  color: var(--tmm-purple-dark);
  font-size: 0.78rem;
  font-weight: 750;
}

.tmm-overview-card h3 {
  margin-bottom: 10px;
  font-size: 1.42rem;
}

.tmm-overview-card p {
  margin-bottom: 26px;
  font-size: 0.95rem;
  line-height: 1.58;
}

.tmm-overview-card__action {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--tmm-purple-dark);
  font-size: 0.9rem;
  font-weight: 720;
}

.tmm-home-shop {
  padding-block: clamp(48px, 7vw, 82px);
  background: rgba(23, 21, 26, 0.93);
  color: rgba(255, 255, 255, 0.72);
}

.tmm-home-shop__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
}

.tmm-home-shop h2 {
  max-width: 760px;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.tmm-home-shop p {
  margin-bottom: 0;
}

.tmm-home-shop .tmm-eyebrow {
  color: #d8bff9;
}

.tmm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.tmm-section {
  padding-block: clamp(76px, 10vw, 130px);
}

.tmm-section--soft {
  background: rgba(247, 244, 240, 0.86);
}

.tmm-section--purple {
  background: rgba(241, 234, 251, 0.84);
}

.tmm-section--dark {
  background: rgba(23, 21, 26, 0.93);
  color: rgba(255, 255, 255, 0.72);
}

.tmm-section--dark h2,
.tmm-section--dark h3 {
  color: #fff;
}

.tmm-section--person {
  background: rgba(23, 21, 26, 0.93);
  color: rgba(255, 255, 255, 0.72);
}

.tmm-section--person h2,
.tmm-section--person .tmm-person__lead {
  color: #fff;
}

.tmm-section--person .tmm-eyebrow {
  color: #d8bff9;
}

.tmm-section__header {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 7vw, 100px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.tmm-section__header p {
  max-width: 650px;
  margin: 0;
  font-size: 1.08rem;
}

.tmm-grid {
  display: grid;
  gap: 24px;
}

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

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

.tmm-public-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
  padding: clamp(36px, 6vw, 68px);
  border: 1px solid var(--tmm-line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--tmm-shadow);
}

.tmm-public-band h2 {
  max-width: 760px;
}

.tmm-public-band p {
  max-width: 720px;
  margin-bottom: 0;
}

.tmm-pillars {
  margin-top: -46px;
  position: relative;
  z-index: 3;
}

.tmm-pillar,
.tmm-card {
  border: 1px solid var(--tmm-line);
  border-radius: var(--tmm-radius);
  background: #fff;
  box-shadow: var(--tmm-shadow);
}

.tmm-pillar {
  padding: clamp(28px, 4vw, 42px);
}

.tmm-pillar__number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--tmm-lilac);
  color: var(--tmm-purple-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.tmm-pillar p {
  margin-bottom: 0;
}

.tmm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: center;
}

.tmm-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.62), transparent 22%),
    radial-gradient(circle at 70% 70%, rgba(143, 86, 217, 0.48), transparent 34%),
    linear-gradient(145deg, #e4d8cf, #c6a8e9 60%, #563484);
}

.tmm-visual::before {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 48% 52% 44% 56%;
  content: "";
  transform: rotate(-18deg);
}

.tmm-visual__quote {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background: rgba(23, 21, 26, 0.72);
  color: #fff;
  font-size: 1.1rem;
  backdrop-filter: blur(12px);
}

.tmm-content-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tmm-content-list li {
  display: flex;
  gap: 13px;
  padding-block: 12px;
  border-bottom: 1px solid var(--tmm-line);
}

.tmm-content-list li::before {
  color: var(--tmm-purple);
  content: "●";
  font-size: 0.58rem;
  transform: translateY(7px);
}

.tmm-person {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: center;
}

.tmm-person__mark {
  position: relative;
  display: grid;
  min-height: 480px;
  place-items: center;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 68% 28%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(145deg, #2a2030, #6f40aa 62%, #b57ae5);
  color: #fff;
}

.tmm-person__mark::before,
.tmm-person__mark::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  content: "";
}

.tmm-person__mark::before {
  width: 330px;
  height: 330px;
}

.tmm-person__mark::after {
  width: 215px;
  height: 215px;
}

.tmm-person__initials {
  position: relative;
  z-index: 1;
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 720;
  letter-spacing: -0.08em;
}

.tmm-person__lead {
  color: var(--tmm-ink);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.tmm-section--lotus {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(194, 154, 86, 0.15), transparent 22%),
    linear-gradient(145deg, rgba(251, 248, 242, 0.88), rgba(241, 234, 251, 0.84));
}

.tmm-lotus {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: center;
}

.tmm-lotus__visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(143, 86, 217, 0.18);
  border-radius: 50% 50% 42% 42%;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--tmm-shadow);
}

.tmm-lotus__visual::before {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(194, 154, 86, 0.25);
  border-radius: 50%;
  content: "";
}

.tmm-lotus__visual svg {
  position: relative;
  z-index: 1;
  width: min(76%, 370px);
  height: auto;
}

.tmm-lotus__lead {
  color: var(--tmm-ink);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.tmm-section--videos {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(143, 86, 217, 0.42), transparent 30%),
    linear-gradient(145deg, rgba(23, 21, 26, 0.94), rgba(41, 32, 50, 0.91));
  color: rgba(255, 255, 255, 0.74);
}

.tmm-section--videos::before {
  position: absolute;
  top: -220px;
  left: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.tmm-section--videos .tmm-container {
  position: relative;
}

.tmm-section--videos h2 {
  color: #fff;
}

.tmm-section--videos .tmm-eyebrow {
  color: #d8bff9;
}

.tmm-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tmm-video-card {
  overflow: hidden;
  border: 1px solid var(--tmm-line);
  border-radius: var(--tmm-radius);
  background: #fff;
  box-shadow: var(--tmm-shadow);
}

.tmm-video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f0e11;
}

.tmm-video-card__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tmm-video-card__body {
  padding: 25px;
}

.tmm-video-card__body h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.tmm-video-card__body p {
  margin-bottom: 18px;
  color: var(--tmm-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tmm-video-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tmm-purple-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.tmm-video-card__link:hover {
  color: var(--tmm-purple);
}

.tmm-path-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
}

.tmm-path-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(143, 86, 217, 0.28);
  border-radius: 50%;
  content: "";
}

.tmm-path-card--featured {
  border-color: transparent;
  background: linear-gradient(145deg, #6d3cad, #9a61e2);
  color: rgba(255, 255, 255, 0.82);
}

.tmm-path-card--featured h3,
.tmm-path-card--featured .tmm-path-card__label {
  color: #fff;
}

.tmm-path-card__label {
  display: block;
  margin-bottom: 65px;
  color: var(--tmm-purple-dark);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tmm-path-card__link {
  position: absolute;
  z-index: 2;
  right: 38px;
  bottom: 34px;
  left: 38px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.tmm-event-card,
.tmm-post-card,
.tmm-specialist-card {
  overflow: hidden;
}

.tmm-card__body {
  padding: 28px;
}

.tmm-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
  color: var(--tmm-purple-dark);
  font-size: 0.8rem;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tmm-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tmm-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tmm-lilac);
}

.tmm-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.tmm-card:hover .tmm-card__image img {
  transform: scale(1.035);
}

.tmm-specialist-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(145deg, #ece5f4, #c4abd8);
  color: #fff;
  font-size: 3rem;
}

.tmm-contact-lines {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  font-size: 0.94rem;
}

.tmm-contact-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tmm-contact-panel {
  padding: 24px;
  border: 1px solid var(--tmm-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(250, 245, 233, 0.76));
}

.tmm-contact-panel--wide {
  grid-column: 1 / -1;
}

.tmm-contact-panel h3 {
  margin: 0 0 14px;
  color: var(--tmm-burgundy);
}

.tmm-contact-panel p:last-child {
  margin-bottom: 0;
}

.tmm-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.tmm-empty {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px dashed #cfc5d5;
  border-radius: var(--tmm-radius);
  text-align: center;
}

.tmm-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 40px;
  align-items: center;
  padding: clamp(38px, 6vw, 70px);
  border-radius: 30px;
  background: linear-gradient(130deg, #231a29, #563484);
  color: rgba(255, 255, 255, 0.78);
}

.tmm-cta h2 {
  margin-bottom: 16px;
  color: #fff;
}

.tmm-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(24px, 2.4vw, 36px);
  background: linear-gradient(145deg, rgba(247, 244, 240, 0.76), rgba(241, 234, 251, 0.78));
  backdrop-filter: blur(2px);
}

.tmm-page-hero::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: clamp(18px, 5vw, 76px);
  width: clamp(112px, 16vw, 210px);
  aspect-ratio: 1;
  background: url("assets/images/school-logo-v1.webp") center / contain no-repeat;
  content: "";
  opacity: 0.075;
  pointer-events: none;
  transform: translateY(-50%);
}

.tmm-page-hero--student::after {
  opacity: 0.1;
}

.tmm-page-hero > .tmm-container {
  position: relative;
  z-index: 1;
}

.tmm-page-hero .tmm-eyebrow {
  margin-bottom: 12px;
}

.tmm-page-hero h1 {
  max-width: 950px;
  margin-bottom: 0;
  font-size: clamp(1.9rem, 2.4vw, 2.5rem);
  line-height: 1.08;
  text-wrap: balance;
}

.tmm-content {
  width: min(calc(100% - 40px), 960px);
  margin-inline: auto;
  margin-block: clamp(20px, 2.5vw, 34px);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--tmm-shadow);
  backdrop-filter: blur(5px);
}

.tmm-content > *:first-child {
  margin-top: 0;
}

.tmm-content h2,
.tmm-content h3 {
  margin-top: 1.7em;
}

.tmm-content h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  line-height: 1.18;
}

.tmm-content h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  line-height: 1.22;
}

.tmm-content ul,
.tmm-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.35em;
}

.tmm-content li + li {
  margin-top: 0.45em;
}

/* About page */
.tmm-about-page {
  width: min(calc(100% - 40px), 1180px);
  margin: clamp(24px, 3.6vw, 52px) auto clamp(52px, 7vw, 92px);
}

.tmm-about-page h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.13;
  text-wrap: balance;
}

.tmm-about-page h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
  line-height: 1.25;
}

.tmm-about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
  padding: clamp(24px, 4vw, 50px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--tmm-shadow);
  backdrop-filter: blur(6px);
}

.tmm-about-split--reverse .tmm-about-media {
  order: 2;
}

.tmm-about-media {
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 320px;
  margin: 0;
  padding: 8px;
  border-radius: 22px;
  background: rgba(250, 245, 233, 0.92);
  box-shadow: 0 18px 42px rgba(35, 26, 41, 0.14);
}

.tmm-about-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.tmm-about-media--landscape {
  aspect-ratio: 4 / 3;
}

.tmm-about-copy > *:last-child {
  margin-bottom: 0;
}

.tmm-about-copy .tmm-eyebrow,
.tmm-about-heading .tmm-eyebrow,
.tmm-about-together .tmm-eyebrow {
  margin-bottom: 10px;
}

.tmm-about-copy h2 {
  margin-bottom: 22px;
}

.tmm-about-copy p {
  margin-bottom: 1em;
}

.tmm-about-lead {
  color: var(--tmm-blue-dark);
  font-size: 1.08rem;
  line-height: 1.7;
}

.tmm-about-foundation {
  margin-block: clamp(42px, 6vw, 74px);
  text-align: center;
}

.tmm-about-heading {
  width: min(100%, 850px);
  margin: 0 auto 28px;
}

.tmm-about-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
  text-align: left;
}

.tmm-about-value {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(92, 67, 119, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(35, 26, 41, 0.08);
}

.tmm-about-value > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tmm-purple), var(--tmm-burgundy));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tmm-about-value h3 {
  margin-bottom: 12px;
}

.tmm-about-value p {
  margin-bottom: 0;
}

.tmm-about-mission {
  margin-top: clamp(42px, 6vw, 74px);
}

.tmm-about-together {
  width: min(100%, 900px);
  margin: clamp(42px, 6vw, 72px) auto 32px;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(195, 149, 62, 0.3);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(250, 245, 233, 0.92), rgba(238, 232, 248, 0.88));
  text-align: center;
}

.tmm-about-together h2 {
  margin-bottom: 18px;
}

.tmm-about-together p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.tmm-about-together > *:last-child {
  margin-bottom: 0;
}

.tmm-about-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 14px;
}

.tmm-about-gallery figure {
  overflow: hidden;
  display: grid;
  place-items: center;
  height: clamp(400px, 45vw, 520px);
  min-height: 0;
  margin: 0;
  padding: 10px;
  border-radius: 20px;
  background: rgba(250, 245, 233, 0.92);
  box-shadow: 0 12px 30px rgba(35, 26, 41, 0.12);
}

.tmm-about-gallery__wide {
  grid-column: auto;
}

.tmm-about-gallery__portrait {
  grid-column: auto;
}

.tmm-about-gallery img {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 14px;
  transition: filter 0.25s ease;
}

.tmm-about-gallery figure:hover img {
  filter: brightness(1.025);
}

/* Lotus system page */
.tmm-page-hero--lotus::after {
  opacity: 0.1;
}

.tmm-lotus-page {
  width: min(calc(100% - 40px), 1180px);
  margin: clamp(24px, 3.6vw, 52px) auto clamp(56px, 7vw, 96px);
}

.tmm-lotus-page h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.12;
  text-wrap: balance;
}

.tmm-lotus-page h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.24;
}

.tmm-lotus-page p,
.tmm-lotus-page li {
  line-height: 1.72;
}

.tmm-lotus-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
  padding: clamp(32px, 5vw, 66px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 14%, rgba(195, 149, 62, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 234, 251, 0.9));
  box-shadow: var(--tmm-shadow);
}

.tmm-lotus-intro::before {
  position: absolute;
  z-index: -1;
  right: -110px;
  bottom: -150px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(92, 67, 119, 0.1);
  border-radius: 50%;
  content: "";
}

.tmm-lotus-intro h2 {
  margin-bottom: 24px;
}

.tmm-lotus-lead {
  color: var(--tmm-blue-dark);
  font-size: 1.08rem;
  font-weight: 650;
}

.tmm-lotus-intro blockquote,
.tmm-lotus-essence blockquote {
  margin: 28px 0 0;
  padding: 20px 22px;
  border: 0;
  border-left: 4px solid var(--tmm-gold);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--tmm-burgundy);
  font-size: clamp(1.04rem, 1.55vw, 1.24rem);
  font-weight: 750;
  line-height: 1.55;
}

.tmm-lotus-emblem {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.tmm-lotus-intro-visual {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 9px;
  border: 1px solid rgba(195, 149, 62, 0.4);
  border-radius: 24px;
  background: rgba(255, 251, 242, 0.76);
  box-shadow: 0 22px 48px rgba(53, 40, 61, 0.16);
}

.tmm-lotus-intro-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 17px;
}

.tmm-lotus-emblem__petals,
.tmm-lotus-emblem__petals::before,
.tmm-lotus-emblem__petals::after {
  position: absolute;
  inset: 16%;
}

.tmm-lotus-emblem__petals::before,
.tmm-lotus-emblem__petals::after {
  inset: 0;
  border: 2px solid rgba(195, 149, 62, 0.72);
  border-radius: 52% 52% 18% 52%;
  background: linear-gradient(145deg, rgba(136, 69, 122, 0.18), rgba(92, 67, 119, 0.08));
  content: "";
  transform: rotate(45deg);
}

.tmm-lotus-emblem__petals::after {
  transform: rotate(135deg);
}

.tmm-lotus-emblem__petals span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  height: 58%;
  margin: -29%;
  border: 1px solid rgba(92, 67, 119, 0.28);
  border-radius: 60% 60% 20% 60%;
  background: rgba(255, 255, 255, 0.36);
}

.tmm-lotus-emblem__petals span:nth-child(1) { transform: translateY(-47%) rotate(45deg); }
.tmm-lotus-emblem__petals span:nth-child(2) { transform: translateX(47%) rotate(135deg); }
.tmm-lotus-emblem__petals span:nth-child(3) { transform: translateY(47%) rotate(225deg); }
.tmm-lotus-emblem__petals span:nth-child(4) { transform: translateX(-47%) rotate(315deg); }

.tmm-lotus-emblem__core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border: 6px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--tmm-burgundy), var(--tmm-purple));
  color: #fff;
  box-shadow: 0 18px 40px rgba(70, 31, 68, 0.22);
  font-size: clamp(0.74rem, 1.3vw, 0.96rem);
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-align: center;
  transform: translate(-50%, -50%);
}

.tmm-lotus-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-block: 24px clamp(48px, 6vw, 78px);
  padding: 16px;
  border: 1px solid rgba(92, 67, 119, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 30px rgba(35, 26, 41, 0.07);
  backdrop-filter: blur(6px);
}

.tmm-lotus-toc a {
  padding: 10px 16px;
  border: 1px solid rgba(92, 67, 119, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--tmm-blue-dark);
  font-size: 0.84rem;
  font-weight: 760;
  text-decoration: none;
}

.tmm-lotus-toc a:hover,
.tmm-lotus-toc a:focus-visible {
  border-color: var(--tmm-gold);
  background: var(--tmm-yellow);
}

.tmm-lotus-overview {
  text-align: center;
}

.tmm-lotus-section-heading {
  width: min(100%, 870px);
  margin: 0 auto 30px;
  text-align: center;
}

.tmm-lotus-section-heading .tmm-eyebrow {
  margin-bottom: 10px;
}

.tmm-lotus-section-heading h2 {
  margin-bottom: 18px;
}

.tmm-lotus-overview__copy {
  width: min(100%, 880px);
  margin-inline: auto;
}

.tmm-lotus-map-image {
  overflow: hidden;
  width: min(100%, 980px);
  margin: 34px auto 0;
  padding: clamp(8px, 1.5vw, 16px);
  border: 1px solid rgba(195, 149, 62, 0.34);
  border-radius: 30px;
  background: rgba(255, 250, 238, 0.92);
  box-shadow: 0 24px 55px rgba(35, 26, 41, 0.16);
}

.tmm-lotus-map-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.tmm-lotus-map-image figcaption {
  padding: 12px 10px 4px;
  color: var(--tmm-purple);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.tmm-lotus-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "one core two"
    "three core four";
  gap: 16px;
  align-items: stretch;
  margin-top: 34px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(195, 149, 62, 0.26);
  border-radius: 30px;
  background:
    radial-gradient(circle at center, rgba(195, 149, 62, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(45, 64, 110, 0.97), rgba(78, 51, 110, 0.96));
  box-shadow: 0 24px 55px rgba(35, 26, 41, 0.16);
}

.tmm-lotus-petal,
.tmm-lotus-map__core {
  display: flex;
  min-height: 170px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  padding: 24px;
  text-align: center;
}

.tmm-lotus-petal {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 52% 22% 52% 22%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.tmm-lotus-petal--one { grid-area: one; }
.tmm-lotus-petal--two { grid-area: two; border-radius: 22% 52% 22% 52%; }
.tmm-lotus-petal--three { grid-area: three; border-radius: 22% 52% 22% 52%; }
.tmm-lotus-petal--four { grid-area: four; }

.tmm-lotus-petal > span {
  margin-bottom: 8px;
  color: var(--tmm-yellow);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.tmm-lotus-petal h3 {
  margin-bottom: 6px;
  color: #fff;
}

.tmm-lotus-petal p {
  margin: 0;
  line-height: 1.45;
}

.tmm-lotus-map__core {
  grid-area: core;
  align-self: center;
  min-height: 250px;
  border: 2px solid rgba(255, 216, 100, 0.68);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #a05a8f, var(--tmm-burgundy) 68%);
  color: #fff;
  box-shadow: 0 18px 48px rgba(26, 20, 36, 0.34);
}

.tmm-lotus-map__core small {
  margin-bottom: 10px;
  color: var(--tmm-yellow);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tmm-lotus-map__core strong {
  max-width: 180px;
  font-family: var(--tmm-heading-font);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}

.tmm-lotus-chapter {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  margin-top: clamp(46px, 6vw, 76px);
  padding: clamp(28px, 4.5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--tmm-shadow);
  backdrop-filter: blur(6px);
}

.tmm-lotus-chapter__label {
  align-self: start;
  padding: 15px 18px;
  border: 1px solid rgba(195, 149, 62, 0.35);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(250, 245, 233, 0.98), rgba(241, 234, 251, 0.9));
  color: var(--tmm-purple);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tmm-lotus-chapter__label span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--tmm-purple), var(--tmm-burgundy));
  color: #fff;
}

.tmm-lotus-chapter--core .tmm-lotus-chapter__label {
  background: linear-gradient(145deg, var(--tmm-blue-dark), var(--tmm-purple));
  color: #fff;
}

.tmm-lotus-chapter__body h2 {
  margin-bottom: 24px;
}

.tmm-lotus-chapter__body > *:last-child {
  margin-bottom: 0;
}

.tmm-lotus-note {
  margin-block: 26px;
  padding: 20px 24px;
  border-left: 4px solid var(--tmm-gold);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(135deg, rgba(250, 245, 233, 0.94), rgba(238, 232, 248, 0.76));
  color: var(--tmm-blue-dark);
  font-weight: 740;
  line-height: 1.65;
}

.tmm-lotus-subsection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.tmm-lotus-subsection-grid > article {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(92, 67, 119, 0.14);
  border-radius: 20px;
  background: rgba(247, 244, 240, 0.74);
}

.tmm-lotus-subsection-grid h3 {
  margin-bottom: 16px;
}

.tmm-lotus-formula {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
  margin-block: 24px;
  padding: 19px 22px;
  border: 1px solid rgba(195, 149, 62, 0.36);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, rgba(248, 239, 216, 0.8));
}

.tmm-lotus-formula small {
  color: var(--tmm-purple);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tmm-lotus-formula strong {
  color: var(--tmm-burgundy);
  font-size: 1rem;
  line-height: 1.55;
}

.tmm-lotus-formula b {
  padding-inline: 4px;
  color: var(--tmm-gold);
}

.tmm-lotus-connectors {
  margin-top: clamp(58px, 7vw, 92px);
}

.tmm-lotus-connectors__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tmm-lotus-connectors__grid > article {
  padding: clamp(25px, 3.5vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(35, 26, 41, 0.08);
}

.tmm-lotus-connectors__grid h3 {
  margin-bottom: 16px;
}

.tmm-lotus-connectors__grid ul {
  margin: 0 0 1.4em;
  padding-left: 1.25em;
}

.tmm-lotus-connectors__grid li + li {
  margin-top: 0.5em;
}

.tmm-lotus-connectors__number {
  margin-bottom: 15px;
  color: var(--tmm-gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.tmm-lotus-workflow {
  margin-top: clamp(58px, 7vw, 92px);
  padding: clamp(30px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(38, 58, 104, 0.98), rgba(78, 44, 91, 0.98));
  color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 58px rgba(35, 26, 41, 0.2);
}

.tmm-lotus-workflow .tmm-eyebrow {
  color: var(--tmm-yellow);
}

.tmm-lotus-workflow h2 {
  color: #fff;
}

.tmm-lotus-workflow__intro {
  width: min(100%, 880px);
  margin-inline: auto;
}

.tmm-lotus-direction-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.tmm-lotus-direction-list li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 19px 21px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.tmm-lotus-direction-list strong {
  color: var(--tmm-yellow);
}

.tmm-lotus-sequence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 216, 100, 0.26);
  border-radius: 20px;
  background: rgba(16, 24, 50, 0.24);
}

.tmm-lotus-sequence span {
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--tmm-blue-dark);
  font-size: 0.8rem;
  font-weight: 780;
}

.tmm-lotus-sequence b {
  color: var(--tmm-yellow);
}

.tmm-lotus-workflow__closing {
  margin: 26px 0 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 780;
  text-align: center;
}

.tmm-lotus-essence {
  position: relative;
  overflow: hidden;
  width: min(100%, 990px);
  margin: clamp(58px, 7vw, 92px) auto 0;
  padding: clamp(34px, 5.5vw, 68px);
  border: 1px solid rgba(195, 149, 62, 0.35);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(195, 149, 62, 0.19), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 234, 251, 0.92));
  box-shadow: var(--tmm-shadow);
}

.tmm-lotus-essence::after {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 240px;
  aspect-ratio: 1;
  border: 1px solid rgba(92, 67, 119, 0.1);
  border-radius: 50%;
  content: "";
}

.tmm-lotus-essence h2 {
  max-width: 780px;
  margin-bottom: 24px;
}

.tmm-lotus-essence > *:last-child {
  margin-bottom: 0;
}

.tmm-legal-intro,
.tmm-legal-note {
  padding: 20px 22px;
  border: 1px solid rgba(195, 149, 62, 0.42);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(250, 245, 233, 0.94), rgba(238, 232, 248, 0.76));
}

.tmm-legal-intro {
  margin-bottom: 28px;
  color: var(--tmm-ink);
  font-size: 1.02rem;
}

.tmm-legal-note {
  margin-top: 30px;
  background: rgba(250, 245, 233, 0.9);
}

.tmm-faq-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 34px;
}

.tmm-faq-item {
  overflow: hidden;
  border: 1px solid rgba(49, 92, 141, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(40, 42, 74, 0.05);
}

.tmm-faq-item summary {
  position: relative;
  padding: 17px 52px 17px 20px;
  color: var(--tmm-burgundy);
  font-weight: 760;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.tmm-faq-item summary::-webkit-details-marker {
  display: none;
}

.tmm-faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--tmm-lilac);
  color: var(--tmm-purple-dark);
  content: "+";
  font-size: 1.15rem;
  line-height: 23px;
  text-align: center;
  transform: translateY(-50%);
}

.tmm-faq-item[open] summary {
  border-bottom: 1px solid rgba(49, 92, 141, 0.14);
  background: rgba(238, 232, 248, 0.55);
}

.tmm-faq-item[open] summary::after {
  content: "\2212";
}

.tmm-faq-item > p {
  margin: 0;
  padding: 17px 20px 20px;
}

.tmm-content .tmm-grid {
  width: min(calc(100vw - 40px), var(--tmm-container));
  margin-left: 50%;
  transform: translateX(-50%);
}

.tmm-account-intro {
  max-width: 720px;
  margin: 0 auto 34px;
  color: var(--tmm-text);
  font-size: 1.08rem;
  text-align: center;
}

.tmm-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tmm-account-grid--inside {
  margin-top: 26px;
}

.tmm-account-card,
.tmm-account-destination {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--tmm-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.tmm-account-card--activation {
  border-color: #ddcdf2;
  background: linear-gradient(145deg, rgba(250, 247, 253, 0.96), rgba(240, 231, 251, 0.92));
}

.tmm-account-card--shop {
  background: var(--tmm-sand);
}

.tmm-account-card h2,
.tmm-account-card h3,
.tmm-account-destination h3 {
  margin: 7px 0 12px;
}

.tmm-account-kicker {
  color: var(--tmm-purple-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tmm-account-form {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.tmm-account-form label:not(.tmm-account-check) {
  display: grid;
  gap: 8px;
  color: var(--tmm-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.tmm-account-form input[type="text"],
.tmm-account-form input[type="email"],
.tmm-account-form input[type="password"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d9d2dd;
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--tmm-ink);
  font: inherit;
  font-weight: 500;
}

.tmm-account-form input:focus {
  border-color: var(--tmm-purple);
  box-shadow: 0 0 0 3px rgba(143, 86, 217, 0.14);
}

.tmm-account-form small {
  color: var(--tmm-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.tmm-account-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--tmm-text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.tmm-account-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--tmm-purple);
}

.tmm-account-form .tmm-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.tmm-text-link {
  color: var(--tmm-purple-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.tmm-account-notice {
  margin-bottom: 26px;
  padding: 15px 18px;
  border-radius: 12px;
  font-weight: 700;
}

.tmm-account-notice--success {
  border: 1px solid #a9d6b9;
  background: #edf8f0;
  color: #176437;
}

.tmm-account-notice--error {
  border: 1px solid #edb8b8;
  background: #fff1f1;
  color: #8c2727;
}

.tmm-account-shop-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 20px;
  background: linear-gradient(130deg, #211b25, #513677);
  color: rgba(255, 255, 255, 0.75);
}

.tmm-account-shop-band h3 {
  margin: 6px 0 8px;
  color: #fff;
}

.tmm-account-shop-band p {
  margin: 0;
}

.tmm-account-shop-band .tmm-account-kicker {
  color: #d8bff7;
}

.tmm-account-card--shop .tmm-button--outline {
  border-color: var(--tmm-ink);
  color: var(--tmm-ink);
}

.tmm-account-card--shop .tmm-button--outline:hover {
  border-color: var(--tmm-purple-dark);
  background: var(--tmm-purple-dark);
  color: #fff;
}

.tmm-account-welcome {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--tmm-line);
}

.tmm-account-welcome h2 {
  margin: 7px 0 5px;
}

.tmm-account-welcome p {
  margin: 0;
}

.tmm-access-status {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 26px 0;
  padding: 16px 18px;
  border-radius: 13px;
}

.tmm-access-status--active {
  border: 1px solid #abd7bb;
  background: #eef8f1;
  color: #176437;
}

.tmm-access-status--expired {
  border: 1px solid #e3c9a6;
  background: #fff8ed;
  color: #86591d;
}

.tmm-button--disabled {
  border-color: #d9d3dc;
  background: #e9e5ea;
  color: #77717f;
  cursor: default;
  pointer-events: none;
}

.tmm-account-renew {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--tmm-line);
  border-radius: 14px;
  background: var(--tmm-sand);
}

.tmm-account-renew summary {
  color: var(--tmm-ink);
  font-weight: 750;
  cursor: pointer;
}

/* Refined Thai/Lanna-inspired colour and component system. */
.tmm-topline {
  background: linear-gradient(90deg, var(--tmm-blue-dark), var(--tmm-purple-dark));
}

.site-header__nav-row {
  background: linear-gradient(105deg, var(--tmm-blue-dark), #294d78 55%, var(--tmm-purple-dark));
}

.primary-navigation .current-menu-item > a {
  border-color: var(--tmm-yellow);
  background: var(--tmm-yellow);
  color: #342533;
  box-shadow: 0 7px 20px rgba(239, 202, 97, 0.24);
}

.site-header__inner .tmm-account-link {
  margin-left: 0;
}

.tmm-header-search {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 10px 15px;
  border: 1px solid #d7c9dd;
  border-radius: 999px;
  color: var(--tmm-blue-dark);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.tmm-header-search:hover,
.tmm-header-search:focus-visible {
  border-color: var(--tmm-gold);
  background: var(--tmm-sand);
  color: var(--tmm-burgundy);
}

.tmm-header-search > span:first-child {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--tmm-blue-dark);
  font-size: 0;
}

.tmm-header-search > span:first-child::after {
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.tmm-account-link,
.tmm-button {
  border-color: var(--tmm-blue-dark);
  background: var(--tmm-blue-dark);
}

.tmm-hero .tmm-button--light {
  border-color: #fff;
  background: #fff;
  color: var(--tmm-blue-dark);
}

.tmm-hero .tmm-button--outline {
  border-color: rgba(255, 255, 255, 0.68);
  background: transparent;
  color: #fff;
}

.tmm-hero .tmm-button--light:hover,
.tmm-hero .tmm-button--outline:hover {
  border-color: var(--tmm-yellow);
  background: var(--tmm-yellow);
  color: var(--tmm-blue-dark);
}

.tmm-button--soft {
  border-color: #d9c7e8;
  background: var(--tmm-lilac);
  color: var(--tmm-purple-dark);
}

.tmm-button--soft:hover {
  border-color: var(--tmm-purple);
  background: var(--tmm-purple);
  color: #fff;
}

.tmm-button--danger {
  border-color: #9b4050;
  background: transparent;
  color: #8a3345;
}

.tmm-button--danger:hover {
  border-color: #8a3345;
  background: #8a3345;
  color: #fff;
}

.tmm-hero {
  background:
    radial-gradient(circle at 78% 22%, rgba(125, 83, 184, 0.55), transparent 32%),
    radial-gradient(circle at 18% 82%, rgba(239, 202, 97, 0.24), transparent 28%),
    linear-gradient(128deg, rgba(24, 59, 97, 0.89) 0%, rgba(42, 70, 112, 0.82) 48%, rgba(79, 43, 134, 0.74) 100%),
    url("assets/images/site-background-soft-v1.webp") center 46% / cover no-repeat;
}

.tmm-hero h1,
.tmm-hero__lead {
  text-shadow: 0 2px 18px rgba(12, 25, 48, 0.2);
}

.tmm-hero .tmm-eyebrow,
.tmm-home-shop .tmm-eyebrow,
.tmm-section--videos .tmm-eyebrow {
  color: var(--tmm-yellow);
}

.tmm-home-shop,
.tmm-section--dark,
.tmm-section--person,
.tmm-section--videos,
.tmm-cta,
.tmm-account-shop-band {
  background: linear-gradient(130deg, rgba(24, 59, 97, 0.97), rgba(79, 43, 134, 0.95));
}

.tmm-overview-card::before,
.tmm-section-heading::after,
.tmm-directory-tools::after {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(195, 149, 62, 0.48);
  content: "";
  transform: rotate(45deg);
}

.tmm-overview-card::before {
  top: 23px;
  right: 23px;
  border-width: 1px 0 0 1px;
}

.tmm-section-heading,
.tmm-directory-tools {
  position: relative;
}

.tmm-section-heading {
  max-width: 780px;
  margin-bottom: 42px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(195, 149, 62, 0.38);
}

.tmm-section-heading::after {
  right: 4px;
  bottom: -15px;
  background: rgba(250, 245, 233, 0.82);
}

.tmm-section-heading p {
  max-width: 660px;
}

.tmm-section-more {
  margin: 30px 0 0;
  text-align: right;
}

.tmm-home-search {
  padding-block: 34px;
  border-block: 1px solid rgba(195, 149, 62, 0.35);
  background: rgba(250, 245, 233, 0.9);
  backdrop-filter: blur(7px);
}

.tmm-home-search__inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(380px, 1.35fr);
  gap: 40px;
  align-items: center;
}

.tmm-home-search h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.tmm-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  margin-bottom: 34px;
}

.tmm-search-form--home {
  margin: 0;
}

.tmm-search-form input {
  min-width: 0;
  min-height: 54px;
  padding: 13px 18px;
  border: 1px solid #d5c9ce;
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.96);
  color: var(--tmm-ink);
}

.tmm-search-form input:focus {
  border-color: var(--tmm-purple);
  box-shadow: 0 0 0 4px rgba(113, 68, 173, 0.12);
}

.tmm-library-search {
  max-width: 760px;
  margin: 0 auto 48px;
}

.tmm-search-intro {
  max-width: 720px;
  margin-bottom: 24px;
}

.tmm-search-help,
.tmm-search-summary {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--tmm-gold);
  background: rgba(250, 245, 233, 0.85);
}

.tmm-search-results {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.tmm-search-result {
  padding: 26px 30px;
  border: 1px solid rgba(230, 220, 216, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(40, 42, 74, 0.07);
}

.tmm-search-result h2 {
  margin: 5px 0 9px;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.tmm-search-result h2 a {
  color: inherit;
  text-decoration: none;
}

.tmm-search-result__type,
.tmm-search-result__category,
.tmm-library-card__type {
  color: var(--tmm-purple-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tmm-search-result__category {
  margin-bottom: 8px;
  color: var(--tmm-blue);
}

.tmm-card-link,
.tmm-back-link {
  color: var(--tmm-purple-dark);
  font-weight: 750;
  text-decoration: none;
}

.tmm-back-link {
  display: inline-flex;
  margin-bottom: 28px;
}

.tmm-article-share {
  display: flex;
  gap: 14px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--tmm-line);
}

.tmm-video-card__media > a,
.tmm-library-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.tmm-video-card__media img,
.tmm-library-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tmm-play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(112, 40, 63, 0.88);
  color: #fff;
  transform: translate(-50%, -50%);
}

.tmm-video-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 30px;
  margin-bottom: 48px;
  padding: 22px;
  border: 1px solid rgba(195, 149, 62, 0.32);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--tmm-shadow);
}

.tmm-video-viewer__player {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--tmm-blue-dark);
}

.tmm-video-viewer__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.tmm-video-viewer__body {
  align-self: center;
  padding: 18px;
}

.tmm-section--videos-light {
  background: linear-gradient(145deg, rgba(238, 232, 248, 0.9), rgba(255, 251, 239, 0.88));
}

.tmm-cities-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}

.tmm-city-cloud,
.tmm-city-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tmm-city-cloud a,
.tmm-city-filters a {
  padding: 9px 14px;
  border: 1px solid rgba(49, 92, 141, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--tmm-blue-dark);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.tmm-city-cloud a:hover,
.tmm-city-filters a:hover,
.tmm-city-filters a.is-active {
  border-color: var(--tmm-gold);
  background: var(--tmm-yellow);
  color: #442c38;
}

.tmm-directory-tools {
  margin-bottom: 38px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(195, 149, 62, 0.4);
}

.tmm-directory-tools::after {
  right: 5px;
  bottom: -15px;
  background: #fffaf0;
}

.tmm-city-filters {
  margin-top: 24px;
}

.tmm-specialist-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tmm-city-filters--directory {
  margin: 28px 0 34px;
}

.tmm-content > .tmm-directory-tools,
.tmm-content > .tmm-specialist-directory,
.tmm-content > .tmm-library-grid,
.tmm-content > .tmm-student-dashboard,
.tmm-content > .tmm-student-nav {
  width: min(calc(100vw - 40px), var(--tmm-container));
  margin-left: 50%;
  transform: translateX(-50%);
}

.tmm-content > .tmm-specialist-directory--empty {
  width: 100%;
  margin-left: 0;
  transform: none;
  grid-template-columns: 1fr;
}

.tmm-specialist-directory--empty .tmm-empty {
  min-height: 150px;
  align-content: center;
  margin-top: 24px;
}

.tmm-specialist-profile-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--tmm-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--tmm-shadow);
}

.tmm-specialist-profile-card__photo {
  min-height: 100%;
  background: linear-gradient(145deg, var(--tmm-lilac), #d7c2e5);
}

.tmm-specialist-profile-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tmm-specialist-profile-card__photo span {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--tmm-purple-dark);
  font-size: 2rem;
  font-weight: 800;
}

.tmm-specialist-profile-card__body {
  align-self: center;
  padding: 25px;
}

.tmm-specialist-profile-card h3 {
  margin-bottom: 7px;
}

.tmm-specialist-cities {
  margin-bottom: 13px;
  color: var(--tmm-blue);
  font-size: 0.86rem;
  font-weight: 750;
}

.tmm-specialist-contacts {
  display: grid;
  gap: 4px;
  margin-bottom: 13px;
  font-size: 0.88rem;
}

.tmm-specialist-detail__intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 42px;
}

.tmm-specialist-detail__intro img {
  border-radius: 20px;
}

.tmm-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tmm-student-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -18px 0 38px;
  padding: 12px;
  border: 1px solid rgba(49, 92, 141, 0.22);
  border-radius: 16px;
  background: rgba(238, 232, 248, 0.72);
}

.tmm-student-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--tmm-blue-dark);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.tmm-student-nav a:hover,
.tmm-student-nav a:focus-visible {
  background: var(--tmm-yellow);
  color: var(--tmm-burgundy);
}

.tmm-page-hero--student {
  background: linear-gradient(135deg, rgba(49, 92, 141, 0.88), rgba(113, 68, 173, 0.82));
}

.tmm-page-hero--student h1,
.tmm-page-hero--student .tmm-eyebrow {
  color: #fff;
}

.tmm-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tmm-library-card {
  overflow: hidden;
  border: 1px solid var(--tmm-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: var(--tmm-shadow);
}

.tmm-library-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tmm-lilac);
}

.tmm-library-card__body {
  padding: 25px;
}

.tmm-library-card h3 {
  margin: 7px 0 10px;
}

.tmm-library-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tmm-student-welcome {
  margin-bottom: 34px;
  padding: 34px;
  border-left: 4px solid var(--tmm-gold);
  border-radius: 0 20px 20px 0;
  background: rgba(250, 245, 233, 0.88);
}

.tmm-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tmm-dashboard-panel {
  padding: 28px;
  border: 1px solid var(--tmm-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.tmm-dashboard-panel .tmm-library-card {
  box-shadow: none;
}

.tmm-announcement-list {
  display: grid;
  gap: 13px;
}

.tmm-announcement-list article {
  padding: 17px;
  border-left: 3px solid var(--tmm-purple);
  background: var(--tmm-lilac);
}

.tmm-announcement-list article span {
  color: var(--tmm-muted);
  font-size: 0.75rem;
}

.tmm-announcement-list article h3 {
  margin: 3px 0 7px;
  font-size: 1.12rem;
}

.tmm-profile-panel {
  margin-top: 34px;
  padding: clamp(25px, 5vw, 46px);
  border: 1px solid rgba(195, 149, 62, 0.4);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.tmm-profile-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.tmm-profile-state {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eee8f8;
  color: var(--tmm-purple-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.tmm-profile-state--published {
  background: #e8f5eb;
  color: #176437;
}

.tmm-profile-form {
  display: grid;
  gap: 22px;
}

.tmm-profile-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tmm-profile-form label:not(.tmm-profile-consent) {
  display: grid;
  gap: 7px;
  color: var(--tmm-ink);
  font-size: 0.88rem;
  font-weight: 750;
}

.tmm-profile-form input[type="text"],
.tmm-profile-form input[type="email"],
.tmm-profile-form input[type="tel"],
.tmm-profile-form input[type="url"],
.tmm-profile-form input[type="file"],
.tmm-profile-form textarea,
.tmm-profile-form select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d7ccd1;
  border-radius: 10px;
  background: #fff;
}

.tmm-profile-form select[multiple] {
  border-radius: 13px;
}

.tmm-profile-form small {
  color: var(--tmm-muted);
  font-size: 0.77rem;
  font-weight: 500;
}

.tmm-profile-visibility,
.tmm-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.tmm-profile-visibility label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.tmm-profile-extended {
  padding: 18px;
  border: 1px solid var(--tmm-line);
  border-radius: 15px;
  background: var(--tmm-sand);
}

.tmm-profile-extended summary {
  color: var(--tmm-burgundy);
  font-weight: 800;
  cursor: pointer;
}

.tmm-profile-extended[open] summary {
  margin-bottom: 20px;
}

.tmm-profile-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 17px;
  border: 1px solid #ddcfab;
  border-radius: 13px;
  background: #fff9e8;
  font-size: 0.82rem;
}

.tmm-profile-consent input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--tmm-purple);
}

.tmm-profile-photo-preview img {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
}

.tmm-account-grid--single {
  grid-template-columns: minmax(0, 620px);
}

.tmm-event-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}

.tmm-event-facts div {
  padding: 15px;
  border-radius: 12px;
  background: var(--tmm-sand);
}

.tmm-event-facts span,
.tmm-event-facts strong {
  display: block;
}

.tmm-event-facts span {
  color: var(--tmm-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.site-footer {
  padding-top: 75px;
  background: linear-gradient(130deg, var(--tmm-blue-dark), #243f6f 58%, var(--tmm-purple-dark));
  color: rgba(255, 255, 255, 0.62);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.65fr 0.9fr 0.75fr;
  gap: clamp(30px, 4vw, 54px);
  padding-bottom: 60px;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer__brand {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.12;
}

.site-footer__brand span {
  display: block;
  margin-top: 4px;
  color: var(--tmm-yellow);
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.site-footer__logo {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  object-fit: contain;
  opacity: 0.88;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer__bottom {
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .site-header__descriptor { display: none; }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .tmm-specialist-directory,
  .tmm-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tmm-home-search__inner,
  .tmm-video-viewer,
  .tmm-cities-intro,
  .tmm-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .primary-navigation ul {
    min-height: auto;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding-block: 9px;
  }

  .primary-navigation a {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 0.78rem;
  }

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

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

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

  .tmm-account-grid {
    grid-template-columns: 1fr;
  }

  .tmm-grid--3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .tmm-section__header,
  .tmm-split,
  .tmm-person,
  .tmm-lotus {
    grid-template-columns: 1fr;
  }

  .tmm-visual {
    min-height: 420px;
  }

  .tmm-person__mark {
    min-height: 390px;
  }

  .tmm-lotus__visual {
    min-height: 410px;
  }

  .tmm-about-split {
    grid-template-columns: 1fr;
  }

  .tmm-about-media {
    min-height: 0;
  }

  .tmm-lotus-intro {
    grid-template-columns: 1fr;
  }

  .tmm-lotus-emblem {
    width: min(74%, 320px);
  }

  .tmm-lotus-chapter {
    grid-template-columns: 1fr;
  }

  .tmm-lotus-chapter__label {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  body {
    background-attachment: scroll;
    font-size: 16px;
  }

  .tmm-container { width: min(calc(100% - 28px), var(--tmm-container)); }

  .tmm-about-page {
    width: min(calc(100% - 28px), 1180px);
  }

  .tmm-about-split {
    gap: 26px;
    padding: 20px;
    border-radius: 22px;
  }

  .tmm-about-split--reverse .tmm-about-media {
    order: 2;
  }

  .tmm-about-values {
    grid-template-columns: 1fr;
  }

  .tmm-about-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .tmm-about-gallery figure {
    height: 430px;
  }

  .tmm-about-gallery__wide,
  .tmm-about-gallery__portrait {
    grid-column: auto;
  }

  .tmm-lotus-page {
    width: min(calc(100% - 28px), 1180px);
  }

  .tmm-lotus-intro,
  .tmm-lotus-chapter,
  .tmm-lotus-workflow,
  .tmm-lotus-essence {
    border-radius: 22px;
  }

  .tmm-lotus-toc {
    justify-content: flex-start;
  }

  .tmm-lotus-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "core core"
      "one two"
      "three four";
  }

  .tmm-lotus-map__core {
    width: min(100%, 280px);
    min-height: 260px;
    justify-self: center;
  }

  .tmm-lotus-subsection-grid,
  .tmm-lotus-connectors__grid,
  .tmm-lotus-direction-list {
    grid-template-columns: 1fr;
  }

  .tmm-topline {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .site-header__inner { min-height: 72px; gap: 12px; }
  .site-branding__mark { width: 44px; height: 44px; flex-basis: 44px; }

  .tmm-header-search {
    width: 42px;
    min-height: 42px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    color: transparent;
    font-size: 0;
    white-space: nowrap;
  }

  .tmm-header-search > span:first-child {
    flex: 0 0 13px;
    color: var(--tmm-blue-dark);
  }

  .menu-toggle {
    display: inline-flex;
    border-color: #e0b94c;
    background: var(--tmm-yellow);
    color: var(--tmm-blue-dark);
    box-shadow: 0 7px 18px rgba(195, 149, 62, 0.2);
  }

  .site-header__nav-row {
    border: 0;
    background: transparent;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 22px;
    border-bottom: 1px solid var(--tmm-line);
    background: #fff;
    box-shadow: var(--tmm-shadow);
  }

  .primary-navigation.is-open { display: block; }

  .primary-navigation ul {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .primary-navigation a {
    display: block;
    min-height: 0;
    margin-bottom: 8px;
    padding: 12px 14px;
    border: 1px solid var(--tmm-line);
    border-radius: 12px;
    background: var(--tmm-sand);
    color: var(--tmm-ink);
    font-size: 0.92rem;
  }

  .primary-navigation a:hover,
  .primary-navigation a:focus-visible,
  .primary-navigation .current-menu-item > a {
    transform: none;
    border-color: var(--tmm-purple);
    background: var(--tmm-purple);
    color: #fff;
  }

  .tmm-account-link {
    min-height: 42px;
    padding: 12px 16px;
    font-size: 0.78rem;
  }

  .menu-toggle { width: auto; min-width: 42px; height: 42px; }

  .tmm-hero {
    min-height: 650px;
  }

  .tmm-hero__inner {
    padding-block: 85px 90px;
  }

  .tmm-hero h1 { font-size: clamp(2.65rem, 13vw, 4.6rem); }

  .tmm-hero--compact {
    min-height: 520px;
  }

  .tmm-hero--compact .tmm-hero__inner {
    padding-block: 58px 62px;
  }

  .tmm-hero--compact h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.35rem);
  }

  .tmm-pillars { margin-top: -32px; }

  .tmm-grid--3,
  .tmm-grid--2,
  .tmm-video-grid,
  .tmm-overview-grid,
  .site-footer__grid,
  .tmm-cta,
  .tmm-public-band,
  .tmm-home-shop__inner {
    grid-template-columns: 1fr;
  }

  .tmm-specialist-directory,
  .tmm-library-grid,
  .tmm-profile-form__grid,
  .tmm-event-facts,
  .tmm-specialist-detail__intro {
    grid-template-columns: 1fr;
  }

  .tmm-specialist-profile-card {
    grid-template-columns: 1fr;
  }

  .tmm-specialist-profile-card__photo {
    aspect-ratio: 4 / 3;
  }

  .tmm-search-form {
    grid-template-columns: 1fr;
  }

  .tmm-profile-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tmm-account-shop-band {
    grid-template-columns: 1fr;
  }

  .tmm-account-welcome,
  .tmm-access-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .tmm-overview-card {
    min-height: 230px;
  }

  .tmm-grid--3 > :last-child:nth-child(odd) { grid-column: auto; }

  .tmm-path-card { min-height: 340px; }

  .tmm-cta { gap: 20px; }

  .site-footer__grid { gap: 35px; }

  .tmm-contact-directory { grid-template-columns: 1fr; }
  .tmm-contact-panel--wide { grid-column: auto; }
}

@media (max-width: 520px) {
  .tmm-about-gallery figure {
    height: 410px;
  }
  .tmm-about-gallery__wide,
  .tmm-about-gallery__portrait {
    grid-column: auto;
  }
  .site-branding__lockup { gap: 0; }
  .site-branding__text { display: none; }
  .tmm-page-hero::after {
    right: -18px;
    width: 128px;
    opacity: 0.06;
  }
  .site-footer__logo { width: 82px; height: 82px; flex-basis: 82px; }
}

@media (max-width: 380px) {
  .site-header__inner { gap: 6px; }
  .site-branding__mark { width: 40px; height: 40px; flex-basis: 40px; }
  .tmm-header-search { width: 38px; min-height: 38px; }
  .tmm-account-link { min-height: 38px; padding: 10px; font-size: 0.72rem; }
  .menu-toggle { min-width: 38px; height: 38px; gap: 6px; padding-inline: 9px; font-size: 0.69rem; }
  .menu-toggle__lines,
  .menu-toggle__lines::before,
  .menu-toggle__lines::after { width: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Deivis Petrušis profile page. */
.tmm-profile-page {
  display: grid;
  width: min(calc(100% - 40px), var(--tmm-container));
  margin: 28px auto 96px;
  gap: 30px;
}

.tmm-profile-page section,
.tmm-profile-page nav {
  scroll-margin-top: 125px;
}

.tmm-profile-hero {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(30px, 5vw, 68px);
  border: 1px solid rgba(239, 202, 97, 0.34);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 18%, rgba(239, 202, 97, 0.2), transparent 36%),
    linear-gradient(135deg, #183b61 0%, #4f2b86 56%, #70283f 100%);
  box-shadow: 0 24px 65px rgba(31, 28, 58, 0.19);
}

.tmm-profile-hero .tmm-eyebrow {
  color: var(--tmm-yellow);
}

.tmm-profile-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.25rem);
}

.tmm-profile-hero__copy,
.tmm-profile-hero__copy p {
  color: rgba(255, 255, 255, 0.92);
}

.tmm-profile-lead {
  max-width: 720px;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1.6;
}

.tmm-profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.tmm-profile-facts div {
  display: flex;
  min-height: 112px;
  padding: 17px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  flex-direction: column;
  justify-content: center;
}

.tmm-profile-facts strong {
  color: var(--tmm-yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1;
}

.tmm-profile-facts span {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tmm-profile-hero__photo {
  display: flex;
  min-height: 440px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  align-items: center;
  justify-content: center;
}

.tmm-profile-hero__photo img {
  width: 100%;
  max-height: 610px;
  border-radius: 16px;
  object-fit: contain;
}

.tmm-profile-nav {
  display: flex;
  padding: 14px;
  border: 1px solid rgba(195, 149, 62, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--tmm-shadow);
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.tmm-profile-nav a {
  display: inline-flex;
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid #ded2e8;
  border-radius: 999px;
  background: #f8f4fb;
  color: var(--tmm-purple-dark);
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.tmm-profile-nav a:hover,
.tmm-profile-nav a:focus-visible {
  border-color: var(--tmm-purple);
  background: var(--tmm-purple);
  color: #fff;
}

.tmm-profile-section {
  padding: clamp(30px, 5vw, 66px);
  border-radius: 26px;
}

.tmm-profile-section--paper {
  border: 1px solid rgba(230, 220, 216, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--tmm-shadow);
}

.tmm-profile-section__heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.tmm-profile-section__heading h2,
.tmm-profile-story h2,
.tmm-profile-practice h2 {
  font-size: clamp(2.15rem, 4.2vw, 3.65rem);
}

.tmm-profile-section__heading--center {
  margin-inline: auto;
  text-align: center;
}

.tmm-profile-section__heading--center p {
  max-width: 690px;
  margin-inline: auto;
}

.tmm-profile-prose {
  max-width: 1000px;
  font-size: 1.02rem;
}

.tmm-profile-prose--columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.tmm-profile-prose blockquote {
  margin: 12px 0 0;
  padding: 22px 24px;
  border-left: 4px solid var(--tmm-gold);
  border-radius: 0 16px 16px 0;
  background: var(--tmm-sand);
  color: var(--tmm-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.tmm-profile-story,
.tmm-profile-practice {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(195, 149, 62, 0.26);
  background: rgba(250, 245, 233, 0.94);
}

.tmm-profile-practice {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  background: rgba(238, 232, 248, 0.93);
}

.tmm-profile-story__copy p,
.tmm-profile-practice__copy p {
  max-width: 720px;
}

.tmm-profile-action-photo {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(112, 40, 63, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.tmm-profile-action-photo img {
  width: 100%;
  max-height: 560px;
  border-radius: 14px;
  object-fit: contain;
}

.tmm-profile-action-photo figcaption {
  padding: 11px 4px 1px;
  color: var(--tmm-muted);
  font-size: 0.84rem;
  font-style: italic;
  text-align: center;
}

.tmm-profile-teacher-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tmm-profile-teacher-notes article {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #e7dce8;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #fbf7fd 100%);
}

.tmm-profile-teacher-notes h3 {
  margin-bottom: 10px;
  font-size: clamp(1.22rem, 2vw, 1.52rem);
}

.tmm-profile-teacher-notes p {
  margin: 0;
}

.tmm-profile-teachers-summary {
  max-width: 760px;
  margin: 30px auto;
  color: var(--tmm-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  text-align: center;
}

.tmm-profile-teacher-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tmm-profile-teacher-gallery figure {
  display: flex;
  min-height: 300px;
  margin: 0;
  padding: 10px;
  border: 1px solid #e8ded6;
  border-radius: 18px;
  background: #f8f3eb;
  align-items: center;
  justify-content: center;
}

.tmm-profile-teacher-gallery img {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  object-fit: contain;
}

.tmm-profile-learning {
  border: 1px solid rgba(49, 92, 141, 0.18);
  background: rgba(248, 250, 253, 0.95);
}

.tmm-profile-learning__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tmm-profile-learning__grid article {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #dfe5ec;
  border-radius: 20px;
  background: #fff;
}

.tmm-profile-learning__grid h3 {
  min-height: 3.3em;
  margin-bottom: 18px;
  color: var(--tmm-blue-dark);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.tmm-profile-learning__grid ul {
  margin: 0;
  padding-left: 1.2em;
}

.tmm-profile-learning__grid li + li {
  margin-top: 8px;
}

.tmm-profile-closing {
  padding: clamp(34px, 6vw, 72px);
  border-radius: 26px;
  background: linear-gradient(135deg, #4f2b86, #70283f);
  color: #fff;
  text-align: center;
}

.tmm-profile-closing p {
  max-width: 850px;
  margin: 0 auto 28px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.45;
}

.tmm-profile-closing .tmm-button {
  border-color: var(--tmm-yellow);
  background: var(--tmm-yellow);
  color: var(--tmm-burgundy);
}

@media (max-width: 1024px) {
  .tmm-profile-hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.72fr);
  }

  .tmm-profile-facts {
    grid-template-columns: 1fr;
  }

  .tmm-profile-facts div {
    min-height: 82px;
  }

  .tmm-profile-teacher-gallery,
  .tmm-profile-learning__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tmm-profile-learning__grid article:last-child {
    grid-column: 1 / -1;
  }

  .tmm-profile-learning__grid h3 {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .tmm-profile-page {
    width: min(calc(100% - 26px), var(--tmm-container));
    margin-top: 14px;
    gap: 18px;
  }

  .tmm-profile-hero,
  .tmm-profile-story,
  .tmm-profile-practice,
  .tmm-profile-prose--columns {
    grid-template-columns: 1fr;
  }

  .tmm-profile-hero__photo {
    min-height: 0;
  }

  .tmm-profile-hero__photo img {
    max-height: 560px;
  }

  .tmm-profile-practice__copy {
    grid-row: 1;
  }

  .tmm-profile-nav {
    justify-content: flex-start;
  }

  .tmm-profile-teacher-notes,
  .tmm-profile-teacher-gallery,
  .tmm-profile-learning__grid {
    grid-template-columns: 1fr;
  }

  .tmm-profile-learning__grid article:last-child {
    grid-column: auto;
  }

  .tmm-profile-teacher-gallery figure {
    min-height: 0;
  }

  .tmm-profile-teacher-gallery img {
    height: auto;
    max-height: 520px;
  }
}

@media (max-width: 520px) {
  .tmm-profile-hero,
  .tmm-profile-section,
  .tmm-profile-closing {
    padding: 25px 20px;
    border-radius: 21px;
  }

  .tmm-profile-hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.6rem);
  }

  .tmm-profile-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tmm-profile-nav a {
    justify-content: center;
    text-align: center;
  }

  .tmm-profile-nav a:last-child {
    grid-column: 1 / -1;
  }
}
