/*
 * TeachMe pages layer — listing archives, About, How it works, Contact.
 * Loaded after brand.css; uses brand tokens and the brand button classes (.tm-btn-dark / .tm-btn-light).
 * Mobile first: 1 column → 2 columns at 640px → full layout at 992px.
 */

/* ---------- Shared ---------- */
.tm-ico { width: 1.25em; height: 1.25em; flex: none; }
.tm-eyebrow {
  margin: 0 0 10px; font-size: var(--tm-fs-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tm-mint-text);
}
.tm-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.tm-breadcrumb li { display: inline-flex; align-items: center; font-size: var(--tm-fs-small); color: var(--tm-muted); }
.tm-breadcrumb li + li::before { content: "/"; margin-inline: 8px; color: #9aa3b2; }
.tm-breadcrumb a { color: var(--tm-muted); text-decoration: none; padding-block: 8px; }
.tm-breadcrumb a:hover { color: var(--tm-navy); text-decoration: underline; text-underline-offset: 3px; }
.tm-breadcrumb [aria-current] { color: var(--tm-navy); font-weight: 600; }
:is(.tm-archive-head, .tm-mk) .tm-breadcrumb { margin: 0 0 18px; font-size: var(--tm-fs-small); }

/* ---------- Listing archives ---------- */
.tm-listings.tm-section { padding-block: 24px 56px; }
.tm-archive-head { padding: 8px 0 8px; }
.tm-archive-head .tm-page-title { margin: 0 0 12px; }
.tm-archive-lede { max-width: 68ch; color: var(--tm-muted); font-size: var(--tm-fs-lead); line-height: 1.6; }
.tm-archive-lede > :first-child { margin-top: 0; }
.tm-archive-lede > :last-child { margin-bottom: 0; }
.tm-archive-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.tm-archive-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--tm-fs-small); color: var(--tm-text); }
.tm-archive-facts .tm-ico { color: var(--tm-mint-text); }
.tm-archive-facts strong { color: var(--tm-navy); }
.tm-archive-chips { margin-top: 26px; }
.tm-archive-chips-label { margin: 0 0 10px; font-size: var(--tm-fs-small); font-weight: 700; color: var(--tm-navy); }
.tm-archive-chips ul { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 2px 2px 8px; list-style: none; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.tm-archive-chips li { flex: none; }
.tm-archive-chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--tm-line); border-radius: 999px;
  background: var(--tm-white); color: var(--tm-navy); font-size: var(--tm-fs-small); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.tm-archive-chips a span { color: var(--tm-muted); font-weight: 500; }
.tm-archive-chips a:hover { border-color: var(--tm-mint); background: var(--tm-mint-soft); }
.tm-archive-chips a[aria-current] { background: var(--tm-navy); border-color: var(--tm-navy); color: var(--tm-white); }
.tm-archive-chips a[aria-current] span { color: #C3CCE4; }
@media (min-width: 992px) { .tm-archive-chips ul { flex-wrap: wrap; overflow: visible; } }

/* Filters: compact bar above the results */
.tm-listings .tme-directory-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 16px; margin: 30px 0 0; }
.tm-listings .tme-directory-heading h2 { margin: 0; font-size: var(--tm-fs-h3); }
.tm-listings .tme-directory-heading p { margin: 4px 0 0; color: var(--tm-muted); font-size: var(--tm-fs-small); }
.tm-listings .tme-result-count { color: var(--tm-navy); font-weight: 700; font-size: var(--tm-fs-small); border: 0; padding: 0; }
.tm-listings .tme-filter-panel { margin: 14px 0 26px; background: var(--tm-bg-alt); }
.tm-listings .tme-filter-panel > summary { padding: 12px 18px; min-height: 48px; }
.tm-listings .tme-filter-panel .tme-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; padding: 4px 18px 18px; }
.tm-listings .tme-filter-panel .tme-filters > * { margin: 0; min-width: 0; }
.tm-listings .tme-filter-panel .tme-filters > p:empty { display: none; }
.tm-listings .tme-filter-panel .tme-filters :is(input, select) { width: 100%; min-height: 44px; }
.tm-listings .tme-filter-panel .tme-price-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 0; border: 0; grid-column: 1 / -1; }
.tm-listings .tme-filter-panel .tme-price-fields > p { display: contents; }
.tm-listings .tme-filter-panel .tme-price-fields legend { grid-column: 1 / -1; padding: 0; margin-bottom: 6px; font-weight: 700; font-size: var(--tm-fs-small); }
.tm-listings .tme-filter-panel .tme-filter-actions { grid-column: 1 / -1; }
.tm-listings .tme-filter-panel .tme-note { grid-column: 1 / -1; margin: 0; font-size: var(--tm-fs-xs); color: var(--tm-muted); }
@media (min-width: 992px) {
  .tm-listings .tme-filter-panel .tme-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tm-listings .tme-filter-panel .tme-filters > .tme-field { order: 1; }
  .tm-listings .tme-filter-panel .tme-price-fields { order: 2; grid-column: span 2; }
  .tm-listings .tme-filter-panel .tme-filter-actions { order: 3; grid-column: span 2; justify-content: flex-start; }
  .tm-listings .tme-filter-panel .tme-note { order: 4; }
}

/* Result grid */
.tm-listings .tm-builder-query-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .tm-listings .tm-builder-query-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 992px) { .tm-listings .tm-builder-query-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.tm-listings .tm-builder-query-list > li { display: flex; margin: 0; }
.tm-listings .tm-listing-card {
  display: flex; flex-direction: column; width: 100%; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-card); overflow: hidden;
  background: var(--tm-white); box-shadow: 0 1px 2px rgb(7 17 71 / 4%); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.tm-listings .tm-listing-card:hover, .tm-listings .tm-listing-card:focus-within { border-color: color-mix(in srgb, var(--tm-mint) 55%, var(--tm-line)); box-shadow: 0 10px 28px rgb(7 17 71 / 10%); }
html:not(.tm-motion-calm) .tm-listings .tm-listing-card:hover { transform: translateY(-2px); }
.tm-listings .tm-listing-media { grid-row: auto; position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--tm-mint-soft); overflow: hidden; }
.tm-listings .tm-listing-media figure, .tm-listings .tm-listing-media .wp-block-post-featured-image { margin: 0; height: 100%; }
.tm-listings .tm-listing-media a { display: block; height: 100%; min-height: 0; }
.tm-listings .tm-listing-media img { color: transparent; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.tm-listings .tm-listing-body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr auto; align-content: stretch; align-items: center; gap: 0 12px; flex: 1; padding: 18px 20px 16px;
}
.tm-listings .tm-listing-body > * { grid-column: 1 / -1; min-width: 0; }
.tm-listings .tm-listing-body h2, .tm-listings .tm-listing-body .wp-block-post-title {
  margin: 0 0 8px; font-size: var(--tm-fs-h3); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tm-listings .tm-listing-body h2 a::after { content: none; }
.tm-listings .wp-block-post-excerpt { margin: 0 0 12px; }
.tm-listings .wp-block-post-excerpt p {
  margin: 0; color: var(--tm-muted); font-size: var(--tm-fs-small); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tm-listings .tm-listing-body .tme-profile-meta { align-self: start; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tm-listings .tme-profile-meta li { display: inline-flex; align-items: center; margin: 0; font-size: var(--tm-fs-xs); line-height: 1.3; color: var(--tm-muted); }
.tm-listings .tme-profile-meta .tme-meta-subject { padding: 4px 10px; border-radius: 999px; background: var(--tm-mint-soft); color: var(--tm-mint-text); font-weight: 700; }
.tm-listings .tme-profile-meta .tme-meta-area::before {
  content: ""; width: 14px; height: 14px; margin-right: 4px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tm-listings .tme-profile-meta .tme-meta-price { margin-left: auto; color: var(--tm-navy); font-size: var(--tm-fs-small); font-weight: 700; }
.tm-listings .tm-listing-body > .tm-home-link {
  grid-column: 1; align-self: center; margin: auto 0 0; min-height: 44px; padding-top: 10px; border-top: 1px solid var(--tm-line); width: 100%; text-decoration: none;
}
.tm-listings .tm-listing-body > .tm-home-link::after { content: "›"; margin-left: 6px; font-size: 1.2em; line-height: 1; }
.tm-listings .tm-listing-body > .tm-home-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tm-listings .tm-listing-body > form.tme-form, .tm-listings .tm-listing-body > .tme-button { grid-column: 2; margin: auto 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--tm-line); background: none; width: auto; align-self: stretch; display: flex; align-items: center; }
.tm-listings .tm-listing-body > .tme-button { align-self: center; min-height: 36px !important; padding: 0 12px !important; font-size: var(--tm-fs-xs) !important; }
.tm-listings .tm-listing-body > form.tme-form button {
  min-height: 36px !important; padding: 0 12px !important; font-size: var(--tm-fs-xs) !important; white-space: nowrap;
}

/* Pagination */
.tm-listings .wp-block-query-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; }
.tm-listings .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tm-listings .wp-block-query-pagination .page-numbers.dots { border-color: transparent !important; background: none !important; color: var(--tm-muted) !important; }
.tm-listings .wp-block-query-no-results { padding: 28px; border: 1px dashed var(--tm-line); border-radius: var(--tm-radius-card); background: var(--tm-bg-alt); text-align: center; color: var(--tm-muted); }

/* Closing call-to-action (archives and marketing pages) */
.tm-archive-cta, .tm-mk-cta {
  display: grid; gap: 20px; align-items: center; margin-top: 48px; padding: clamp(24px, 4vw, 40px); border-radius: var(--tm-radius-panel);
  background: var(--tm-navy); color: var(--tm-white);
}
.tm-archive-cta h2, .tm-mk-cta h2 { margin: 0 0 8px; font-size: var(--tm-fs-h2); line-height: 1.25; color: var(--tm-white) !important; }
.tm-archive-cta p, .tm-mk-cta p { margin: 0; max-width: 56ch; color: #C3CCE4; line-height: 1.6; }
.tm-cta-actions, .tm-mk-cta .tm-mk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tm-cta-link { color: var(--tm-white); font-weight: 700; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.tm-cta-link:hover { color: var(--tm-mint-light); }
@media (min-width: 768px) { .tm-archive-cta, .tm-mk-cta { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; } }

/* ---------- Marketing pages: shared building blocks ---------- */
.tm-mk { --mk-gap: clamp(40px, 6vw, 72px); color: var(--tm-text); }
.tm-mk > * + * { margin-top: var(--mk-gap); }
.tm-mk > .tm-mk-cta { margin-top: var(--mk-gap); }
.tm-mk h1.tm-page-title { margin: 0 0 14px; }
.tm-mk-hero {
  display: grid; gap: 28px; padding: clamp(24px, 4vw, 48px); border: 1px solid color-mix(in srgb, var(--tm-mint) 22%, var(--tm-line)); border-radius: var(--tm-radius-panel);
  background: radial-gradient(120% 140% at 100% 0%, var(--tm-mint-soft) 0%, rgb(230 246 244 / 0%) 55%), linear-gradient(180deg, #fff 0%, #F6FBFA 100%);
}
.tm-mk-lead { margin: 0; max-width: 60ch; font-size: var(--tm-fs-lead); line-height: 1.6; color: var(--tm-text); }
.tm-mk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tm-mk-actions a svg { margin-left: 2px; }
@media (min-width: 992px) { .tm-mk-hero:not(.tm-mk-hero--compact) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 48px; } }
.tm-mk-hero--compact .tm-mk-lead { max-width: 70ch; }

.tm-mk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tm-mk-stats li { display: grid; align-content: start; gap: 4px; padding: 16px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-card); background: var(--tm-white); }
.tm-mk-stats strong { font-size: var(--tm-fs-h3); line-height: 1.25; color: var(--tm-navy); overflow-wrap: anywhere; }
.tm-mk-stats span { font-size: var(--tm-fs-small); color: var(--tm-muted); line-height: 1.45; }

.tm-mk-section h2, .tm-mk-faq h2 { margin: 0 0 12px; }
.tm-mk-sub { margin: 0 0 24px; max-width: 64ch; color: var(--tm-muted); font-size: var(--tm-fs-lead); line-height: 1.6; }
.tm-mk-section p { line-height: 1.7; }
.tm-mk-split { display: grid; gap: 28px; align-items: start; }
.tm-mk-split p { margin: 0 0 16px; max-width: 64ch; }
@media (min-width: 992px) { .tm-mk-split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; } }

.tm-mk-panel { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--tm-line); border-radius: var(--tm-radius-card); background: var(--tm-bg-alt); }
.tm-mk-panel h2, .tm-mk-panel h3 { margin: 0 0 14px; font-size: var(--tm-fs-h3); }

.tm-mk-checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tm-mk-checks li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.tm-mk-checks .tm-ico { margin-top: 2px; color: var(--tm-mint-text); }
.tm-mk-checks--plain .tm-ico { color: var(--tm-navy); }

.tm-mk-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tm-mint-soft); color: var(--tm-mint-text); }
.tm-mk-icon .tm-ico { width: 24px; height: 24px; }
.tm-mk-icon--sm { width: 40px; height: 40px; border-radius: 10px; }
.tm-mk-icon--sm .tm-ico { width: 20px; height: 20px; }

.tm-mk-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tm-mk-tags li > :is(a, span) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--tm-line); border-radius: 999px; background: var(--tm-white);
  color: var(--tm-navy); font-weight: 700; text-decoration: none;
}
.tm-mk-tags a:hover { border-color: var(--tm-mint); background: var(--tm-mint-soft); }

.tm-mk-cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
.tm-mk-card { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 24px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-card); background: var(--tm-white); box-shadow: 0 1px 2px rgb(7 17 71 / 4%); }
.tm-mk-card .tm-mk-icon { margin-bottom: 10px; }
.tm-mk-card h3 { margin: 0; font-size: var(--tm-fs-h3); line-height: 1.3; }
.tm-mk-card p { margin: 0; color: var(--tm-muted); font-size: var(--tm-fs-body); line-height: 1.65; }
@media (min-width: 640px) { .tm-mk-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .tm-mk-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .tm-mk-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tm-mk-cards { gap: 20px; } }

.tm-mk-philosophy { display: grid; gap: 28px; align-items: center; }
.tm-mk-philosophy p { margin: 0 0 16px; max-width: 64ch; }
@media (min-width: 992px) { .tm-mk-philosophy { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; } }
.tm-mk-pillars { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.tm-mk-pillars li { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 1px solid var(--tm-line); border-radius: 999px; background: var(--tm-white); font-weight: 700; color: var(--tm-navy); }
.tm-mk-quote {
  position: relative; margin: 0; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px); border-radius: var(--tm-radius-panel);
  background: linear-gradient(160deg, var(--tm-mint-soft), #fff); border: 1px solid color-mix(in srgb, var(--tm-mint) 25%, var(--tm-line));
}
.tm-mk-quote::before { content: "“"; position: absolute; top: 4px; left: 20px; font-size: 80px; line-height: 1; font-weight: 800; color: color-mix(in srgb, var(--tm-mint) 45%, transparent); }
.tm-mk-quote blockquote { margin: 0; padding: 18px 0 0; border: 0; }
.tm-mk-quote blockquote p { margin: 0; max-width: none; font-size: var(--tm-fs-h3); line-height: 1.5; font-weight: 600; color: var(--tm-navy); }
.tm-mk-quote figcaption { margin-top: 16px; font-size: var(--tm-fs-small); font-weight: 700; color: var(--tm-mint-text); }

.tm-mk-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--tm-mint-text); text-decoration: none; }
.tm-mk-link:hover { color: var(--tm-navy); text-decoration: underline; text-underline-offset: 4px; }

/* How it works: summary card + vertical steps */
.tm-mk-steps-nav { padding: 22px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-card); background: var(--tm-white); }
.tm-mk-steps-nav-title { margin: 0 0 12px; font-size: var(--tm-fs-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tm-muted); }
.tm-mk-steps-nav ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tm-mk-steps-nav a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: 10px; color: var(--tm-navy); font-weight: 700; text-decoration: none; }
.tm-mk-steps-nav a:hover { background: var(--tm-mint-soft); }
.tm-mk-steps-nav a span { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tm-navy); color: var(--tm-white); font-size: var(--tm-fs-small); }

.tm-mk-steps { position: relative; display: grid; gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.tm-mk-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; margin: 0; scroll-margin-top: 90px; }
.tm-mk-step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tm-navy); color: var(--tm-white); font-weight: 800; position: relative; z-index: 1; }
.tm-mk-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: -20px; width: 2px; background: color-mix(in srgb, var(--tm-mint) 40%, var(--tm-line)); }
.tm-mk-step-body { display: grid; gap: 8px; justify-items: start; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--tm-line); border-radius: var(--tm-radius-card); background: var(--tm-white); box-shadow: 0 1px 2px rgb(7 17 71 / 4%); }
.tm-mk-step-body h3 { margin: 6px 0 0; font-size: var(--tm-fs-h3); }
.tm-mk-step-body p { margin: 0; max-width: 62ch; color: var(--tm-muted); line-height: 1.65; }
.tm-mk-step-body .tm-mk-checks { margin-top: 6px; }
@media (min-width: 768px) {
  .tm-mk-step { grid-template-columns: 56px minmax(0, 1fr); gap: 24px; }
  .tm-mk-step-num { width: 56px; height: 56px; font-size: var(--tm-fs-h3); }
  .tm-mk-step:not(:last-child)::before { left: 27px; top: 60px; }
  .tm-mk-step-body { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: start; justify-items: start; }
  .tm-mk-step-body > .tm-mk-icon { grid-row: 1 / span 4; }
  .tm-mk-step-body > :not(.tm-mk-icon) { grid-column: 2; }
}

/* FAQ — markup also feeds the FAQPage schema (details.tm-faq-item > summary + .tm-faq-answer) */
.tm-faq-list { display: grid; gap: 10px; max-width: 860px; }
.tm-faq-item { border: 1px solid var(--tm-line); border-radius: var(--tm-radius-card); background: var(--tm-white); }
.tm-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 20px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--tm-navy); line-height: 1.4;
}
.tm-faq-item summary::-webkit-details-marker { display: none; }
.tm-faq-item summary::after { content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tm-mint-soft); color: var(--tm-mint-text); font-size: 20px; line-height: 1; font-weight: 700; }
.tm-faq-item[open] summary::after { content: "–"; }
.tm-faq-item[open] { border-color: color-mix(in srgb, var(--tm-mint) 40%, var(--tm-line)); }
.tm-faq-item summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--tm-mint) 55%, transparent); outline-offset: 2px; border-radius: var(--tm-radius-card); }
.tm-faq-answer { padding: 0 20px 18px; color: var(--tm-muted); line-height: 1.65; }
.tm-faq-answer p { margin: 0; }
.tm-mk-more { margin: 16px 0 0; }

/* Contact */
.tm-contact-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 28px; }
.tm-mk--contact > .tm-contact-grid { margin-top: 28px; }
.tm-contact-form { order: 2; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--tm-line); border-radius: var(--tm-radius-panel); background: var(--tm-white); box-shadow: 0 8px 28px rgb(7 17 71 / 8%); }
.tm-contact-form h2 { margin: 0 0 6px; font-size: var(--tm-fs-h3); }
.tm-contact-form .tm-mk-sub { margin-bottom: 18px; font-size: var(--tm-fs-small); }
.tm-contact-form .tme-form, .tm-contact-form .tme-panel { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; max-width: none; }
.tm-contact-direct { order: 1; }
.tm-contact-next { order: 3; }
.tm-mk-contact-list { display: grid; gap: 10px; margin: 0 0 4px; padding: 0; list-style: none; }
.tm-mk-contact-list a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius-card); background: var(--tm-white); color: var(--tm-navy); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.tm-mk-contact-list a:hover { border-color: var(--tm-mint); box-shadow: 0 6px 18px rgb(7 17 71 / 8%); }
.tm-mk-contact-text { display: grid; min-width: 0; }
.tm-mk-contact-text strong { font-size: var(--tm-fs-body); }
.tm-mk-contact-text span { font-size: var(--tm-fs-small); color: var(--tm-muted); overflow-wrap: anywhere; }
.tm-mk-checks--plain { margin-top: 14px; }
.tm-contact-next h2 { margin: 0 0 16px; font-size: var(--tm-fs-h3); }
.tm-mk-timeline { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tm-mk-timeline li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.tm-mk-timeline .tm-mk-step-num { width: 36px; height: 36px; font-size: var(--tm-fs-small); background: var(--tm-mint-text); }
.tm-mk-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: -16px; width: 2px; background: color-mix(in srgb, var(--tm-mint) 40%, var(--tm-line)); }
.tm-mk-timeline h3 { margin: 6px 0 2px; font-size: var(--tm-fs-body); }
.tm-mk-timeline p { margin: 0; color: var(--tm-muted); font-size: var(--tm-fs-small); line-height: 1.6; }
.tm-contact-note { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding: 14px 16px; border-radius: var(--tm-radius-card); background: var(--tm-mint-soft); color: var(--tm-navy); font-size: var(--tm-fs-small); line-height: 1.55; }
.tm-contact-note .tm-ico { margin-top: 2px; color: var(--tm-mint-text); }
.tm-contact-note a { color: var(--tm-mint-text); font-weight: 700; text-underline-offset: 3px; }
@media (min-width: 992px) {
  .tm-contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "direct form" "next form"; gap: 32px 40px; }
  .tm-contact-direct { grid-area: direct; order: 0; }
  .tm-contact-next { grid-area: next; order: 0; }
  .tm-contact-form { grid-area: form; order: 0; position: sticky; top: 96px; }
}
.tm-mk--contact .tm-mk-hero { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) { .tm-listings .tm-listing-card, .tm-mk-contact-list a { transition: none; } }

/* Content links inside the page layer: brand.css underlines .entry-content links; these components style themselves. */
.tm-mk :is(.tm-mk-tags a, .tm-mk-link, .tm-mk-contact-list a, .tm-mk-steps-nav a, .tm-archive-chips a, .tm-btn-dark, .tm-btn-light) { text-decoration: none; }
.tm-mk .tm-mk-link:hover { text-decoration: underline; }
.tm-mk .tm-eyebrow, .tm-archive-head .tm-eyebrow { color: var(--tm-mint-text); }
.tm-mk .tm-mk-lead { color: var(--tm-text); }

/* Contact: the lead form ships with its own card; inside our card it sits flat. */
.tm-contact-form .tm-lead-form-wrapper { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.tm-contact-form > div[class^="tm-page-"] { margin: 0; }
.tm-mk-contact-list a strong { color: var(--tm-navy); }

@media (max-width: 639px) {
  .tm-mk-contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tm-mk-contact-list a { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 12px; height: 100%; }
  .tm-mk-contact-text strong { font-size: var(--tm-fs-small); }
  .tm-mk-contact-text span { font-size: var(--tm-fs-xs); }
}

/* 44px tap targets for breadcrumb links inside the page layer */
:is(.tm-archive-head, .tm-mk) .tm-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
:is(.tm-archive-head, .tm-mk) .tm-breadcrumb { margin-top: -8px; }
