/* =========================================================
 * Designed site pages (About, legal, Work with us, Contact, Start here, Editorial standards)
 * Loaded by inc/pages.php. Modeled on the teachmama.com page templates.
 * ========================================================= */

/* Full-width layout, like the homepage */
.tmh-designed .site-content { padding: 0; }
.tmh-designed .site.grid-container { max-width: none; padding: 0; }
.tmh-designed .inside-article { background: transparent; border: 0; border-radius: 0; padding: 0; max-width: none; box-shadow: none; }
.tmh-designed .entry-content { margin: 0; }
.tmh-designed .entry-content > * { margin-top: 0; margin-bottom: 0; }
.tmh-designed .tmh-breadcrumb { display: none; }

.tmh-pwrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.tmh-pwrap-narrow { max-width: 820px; }

/* Section label with a stitched dash */
.tmh-peyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tmh-coral-dark); }
.tmh-peyebrow::before { content: ""; width: 22px; border-top: 2px dashed currentColor; opacity: .75; }

/* ---------- Page hero ---------- */
.tmh-phero { position: relative; background: var(--tmh-sand); padding: 72px 0 66px; }
.tmh-phero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 3px dashed rgba(239, 111, 120, .4); }
.tmh-phero h1 { margin: 0 0 16px; max-width: 840px; font-family: var(--tmh-serif); font-size: clamp(34px, 5vw, 52px); line-height: 1.1; color: #2F4858; }
.tmh-phero-lead { max-width: 680px; margin: 0 0 26px; font-size: 19px; line-height: 1.65; color: var(--tmh-text); }
.tmh-phero-date { margin: 0 0 22px; font-size: 16px; color: var(--tmh-text); }
.tmh-phero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tmh-phero-actions .tmh-btn, .tmh-phero-actions .tmh-btn-outline { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }
.tmh-phero.is-center { text-align: center; }
.tmh-phero.is-center h1, .tmh-phero.is-center .tmh-phero-lead { margin-left: auto; margin-right: auto; }
.tmh-phero.is-center .tmh-phero-actions, .tmh-phero.is-center .tmh-pills { justify-content: center; }

/* Legal page switcher */
.tmh-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tmh-pills a { padding: 9px 18px; border: 1px solid var(--tmh-line); border-radius: 999px; background: #fff; color: #2F4858; font-size: 15px; font-weight: 700; text-decoration: none; transition: border-color .15s; }
.tmh-pills a:hover { border-color: var(--tmh-coral); }
.tmh-pills a.is-current { background: #2F4858; border-color: #2F4858; color: #fff; }

/* ---------- Sections ---------- */
.tmh-psec { padding: 72px 0; }
.tmh-psec-tint { background: #EEF4F1; }
.tmh-psec-sand { background: var(--tmh-sand); }
.tmh-psec-head { margin-bottom: 32px; }
.tmh-psec-head h2 { margin: 0 0 10px; font-family: var(--tmh-serif); font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; color: #2F4858; }
.tmh-psec-head p { margin: 0; max-width: 640px; font-size: 17.5px; line-height: 1.65; color: var(--tmh-text); }
.tmh-psec-head.is-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.tmh-psec-head.is-center { text-align: center; }
.tmh-psec-head.is-center p { margin-left: auto; margin-right: auto; }

/* Cards */
.tmh-pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.tmh-pcards.is-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tmh-pcard { background: #fff; border: 1px solid var(--tmh-line); border-radius: 20px; padding: 26px; }
.tmh-pcard-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%; background: var(--tmh-coral-tint); color: var(--tmh-coral-dark); }
.tmh-pcard:nth-child(4n+2) .tmh-pcard-icon { background: var(--tmh-sage-tint); color: #3F6A62; }
.tmh-pcard:nth-child(4n+3) .tmh-pcard-icon { background: #E3EAF0; color: #2F4858; }
.tmh-pcard:nth-child(4n+4) .tmh-pcard-icon { background: #FBEFD6; color: #9A6A12; }
.tmh-pcard-icon svg { width: 22px; height: 22px; }
.tmh-pcard h3 { margin: 0 0 8px; font-family: var(--tmh-serif); font-size: 21px; line-height: 1.25; color: #2F4858; }
.tmh-pcard p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--tmh-text); }
.tmh-pcard ul { margin: 14px 0 18px; padding-left: 20px; }
.tmh-pcard li { margin-bottom: 6px; font-size: 16px; line-height: 1.5; color: var(--tmh-text); }
.tmh-pcard-link { font-weight: 800; color: var(--tmh-coral-dark); text-decoration: none; }
.tmh-pcard-link:hover { text-decoration: underline; }

/* Boxes */
.tmh-pbox { background: #fff; border: 1px solid var(--tmh-line); border-radius: 22px; padding: 30px; }
.tmh-pbox-peach { background: #FCEDE6; border-color: #FCEDE6; }
.tmh-pbox h3 { margin: 0 0 12px; font-family: var(--tmh-serif); font-size: 22px; color: #2F4858; }
.tmh-pbox p, .tmh-pbox li { font-size: 16px; line-height: 1.6; color: var(--tmh-text); }
.tmh-pbox p { margin: 0 0 12px; }
.tmh-pbox ul { margin: 0 0 4px; padding-left: 20px; }
.tmh-pbox li { margin-bottom: 6px; }
.tmh-pbox a:not(.tmh-btn) { color: var(--tmh-coral-dark); }
.tmh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tmh-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }

/* Chips */
.tmh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tmh-chips a, .tmh-chips span { padding: 6px 13px; border-radius: 999px; background: #F4EEE6; color: #2F4858; font-size: 14px; font-weight: 700; text-decoration: none; }
.tmh-chips a:hover { background: var(--tmh-coral-tint); }

/* Numbered steps */
.tmh-steps { list-style: none; margin: 0 0 24px; padding: 0; }
.tmh-steps li { display: flex; gap: 14px; margin-bottom: 18px; font-size: 16px; line-height: 1.55; color: var(--tmh-text); }
.tmh-step-num { flex: 0 0 32px; display: grid; place-items: center; height: 32px; border-radius: 50%; background: var(--tmh-coral); color: #fff; font-weight: 800; }
.tmh-steps strong { color: #2F4858; }

/* ---------- Writer cards (About) ---------- */
.tmh-wcards { display: grid; gap: 28px; }
.tmh-wcard { display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; background: #fff; border: 1px solid var(--tmh-line); border-radius: 24px; }
.tmh-wcard-photo { display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--tmh-coral-tint); }
.tmh-wcard:nth-child(3n+2) .tmh-wcard-photo { background: var(--tmh-sage-tint); }
.tmh-wcard:nth-child(3n+3) .tmh-wcard-photo { background: #E3EAF0; }
.tmh-wcard-photo img { width: 100%; max-width: 236px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 6px #fff; }
.tmh-wcard-initials { display: grid; place-items: center; width: 180px; height: 180px; border-radius: 50%; background: #fff; font-family: var(--tmh-serif); font-size: 56px; color: #2F4858; }
.tmh-wcard-body { padding: 34px 36px; }
.tmh-wcard-badge { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--tmh-coral-tint); color: var(--tmh-coral-dark); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tmh-wcard h3 { margin: 0; font-family: var(--tmh-serif); font-size: 28px; color: #2F4858; }
.tmh-wcard-role { margin: 4px 0 16px; font-weight: 700; color: var(--tmh-coral-dark); }
.tmh-wcard-body > p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: var(--tmh-text); }
.tmh-wcard-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 22px 0 24px; padding-top: 20px; border-top: 2px dashed var(--tmh-line); }
.tmh-wcard-label { margin: 0 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tmh-coral-dark); }
.tmh-wcard-cols ul { margin: 0; padding-left: 18px; }
.tmh-wcard-cols li { margin-bottom: 6px; font-size: 15.5px; line-height: 1.5; color: var(--tmh-text); }
.tmh-wcard .tmh-btn { display: inline-flex; align-items: center; min-height: 46px; text-decoration: none; }

/* Navy call-to-action band */
.tmh-pcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 44px; border-radius: 24px; background: #2F4858; color: #fff; }
.tmh-pcta h2 { margin: 0 0 6px; font-family: var(--tmh-serif); font-size: 28px; color: #fff; }
.tmh-pcta p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .85); font-size: 17px; line-height: 1.6; }
.tmh-pcta p a { color: #F6B8BD; }
.tmh-pcta .tmh-btn { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }

/* ---------- Legal pages ---------- */
.tmh-legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; max-width: 1120px; margin: 0 auto; padding: 64px 24px 84px; }
.tmh-legal-toc { position: sticky; top: 24px; align-self: start; }
.tmh-legal-toc p { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tmh-coral-dark); }
.tmh-legal-toc ul { margin: 0; padding: 0; list-style: none; }
.tmh-legal-toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--tmh-line); color: var(--tmh-text); font-size: 15px; line-height: 1.35; text-decoration: none; }
.tmh-legal-toc a:hover { border-left-color: var(--tmh-coral); color: #2F4858; }
.tmh-legal-body { max-width: 720px; font-size: 17px; line-height: 1.75; color: var(--tmh-text); }
.tmh-legal-body h2 { margin: 44px 0 12px; font-family: var(--tmh-serif); font-size: 28px; line-height: 1.2; color: #2F4858; scroll-margin-top: 24px; }
.tmh-legal-body h3 { margin: 26px 0 8px; font-size: 19px; color: #2F4858; }
.tmh-legal-body p { margin: 0 0 16px; }
.tmh-legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.tmh-legal-body li { margin-bottom: 6px; }
.tmh-legal-body a { color: var(--tmh-coral-dark); }
.tmh-short { margin: 0 0 32px; padding: 26px 30px; border-radius: 20px; background: #EAF2EF; }
.tmh-short-title { margin: 0 0 10px !important; font-family: var(--tmh-serif); font-size: 21px; font-weight: 600; color: #2F4858; }
.tmh-short ul { margin: 0; }
.tmh-legal-contact { margin-top: 44px; padding: 26px 30px; border-radius: 20px; background: #FCEDE6; }
.tmh-legal-contact h2 { margin: 0 0 8px; font-size: 24px; }
.tmh-legal-contact p { margin: 0; }

/* ---------- Simple prose pages (Editorial standards) ---------- */
.tmh-prose { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; font-size: 17.5px; line-height: 1.75; color: var(--tmh-text); }
.tmh-prose h2 { margin: 40px 0 12px; font-family: var(--tmh-serif); font-size: 28px; line-height: 1.2; color: #2F4858; }
.tmh-prose p { margin: 0 0 16px; }
.tmh-prose a { color: var(--tmh-coral-dark); }

/* ---------- Contact form (Contact Form 7) ---------- */
.tmh-formcard { padding: 32px; background: #fff; border: 1px solid var(--tmh-line); border-radius: 24px; }
.tmh-formcard .wpcf7 p { margin: 0 0 16px; }
.tmh-formcard .wpcf7 label { display: block; font-weight: 700; color: #2F4858; }
.tmh-formcard .wpcf7 input[type="text"], .tmh-formcard .wpcf7 input[type="email"], .tmh-formcard .wpcf7 input[type="tel"], .tmh-formcard .wpcf7 input[type="url"], .tmh-formcard .wpcf7 select, .tmh-formcard .wpcf7 textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--tmh-line); border-radius: 12px; background: #fff; font: inherit; color: var(--tmh-ink); }
.tmh-formcard .wpcf7 textarea { min-height: 160px; }
.tmh-formcard .wpcf7 input:focus, .tmh-formcard .wpcf7 textarea:focus, .tmh-formcard .wpcf7 select:focus { outline: 2px solid var(--tmh-coral); outline-offset: 1px; border-color: transparent; }
.tmh-formcard .wpcf7 input[type="submit"] { width: auto; min-height: 48px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer; }
.tmh-contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.tmh-contact-side { display: grid; gap: 18px; }

/* ---------- Fixes for shared class names ---------- */
.tmh-designed .comments-area { display: none; }
.tmh-psec-head .tmh-peyebrow, .tmh-split .tmh-peyebrow { margin: 0 0 12px; font-size: 13px; color: var(--tmh-coral-dark); }
.tmh-psec-head.is-center .tmh-peyebrow { justify-content: center; }
.tmh-wcard .tmh-chips, .tmh-pbox .tmh-chips, .tmh-psec .tmh-chips { justify-content: flex-start; margin: 0; padding: 0; }
.tmh-wcard-body > .tmh-wcard-role { margin: 4px 0 16px; font-size: 16px; font-weight: 700; color: var(--tmh-coral-dark); }
.tmh-legal-body .tmh-legal-contact h2 { margin-top: 0; }

/* ---------- Homepage "Hi, I'm Hannah": photo in a pinked gingham fabric circle ---------- */
.tmh-founder .tmh-founder-photo.tmh-pinked { position: relative; flex: 0 0 auto; width: 270px; max-width: 100%; aspect-ratio: 1; height: auto; margin: 0; transform: rotate(-6deg); background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.tmh-pinked::before { content: ""; position: absolute; inset: 0; background-color: #fff; background-image: linear-gradient(90deg, rgba(246, 184, 189, .55) 50%, transparent 50%), linear-gradient(rgba(246, 184, 189, .55) 50%, transparent 50%); background-size: 18px 18px; clip-path: polygon(50% 2%, 54.5% 6.5%, 60% 3%, 63.5% 8%, 69.5% 5.5%, 72% 11%, 78.5% 9.5%, 80% 15.5%, 86% 15%, 86.5% 21%, 92.5% 22%, 91.5% 28%, 97% 30%, 95% 36%, 99.5% 39%, 96.5% 44.5%, 100% 48%, 96.5% 52%, 99.5% 56.5%, 95.5% 61%, 98% 66.5%, 93% 70%, 94.5% 76%, 89% 78%, 89.5% 84.5%, 83.5% 85.5%, 82.5% 91.5%, 76.5% 91%, 74.5% 97%, 69% 95%, 65.5% 100%, 60.5% 96.5%, 56% 100%, 52% 96%, 48% 100%, 43.5% 96%, 39.5% 99.5%, 35% 95.5%, 31% 99%, 28% 94%, 22% 95.5%, 21% 89.5%, 15% 89%, 15.5% 83%, 9.5% 81.5%, 11% 75.5%, 5.5% 73%, 8% 67.5%, 3% 63.5%, 6.5% 59%, 2% 54.5%, 5.5% 50%, 2% 45.5%, 6.5% 41.5%, 3% 36.5%, 8% 33.5%, 5.5% 27.5%, 11% 25.5%, 9.5% 19.5%, 15.5% 18.5%, 15% 12.5%, 21% 12%, 22% 6%, 28% 7.5%, 30% 2%, 36% 5%, 39% 0.5%, 44.5% 4%); }
.tmh-pinked::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1.5px dashed #2F4858; pointer-events: none; }
.tmh-founder .tmh-founder-photo.tmh-pinked img { position: absolute; z-index: 1; top: 16%; left: 16%; width: 68%; height: 68%; max-width: none; object-fit: cover; border: 5px solid #fff; border-radius: 50%; box-shadow: none; transform: rotate(6deg); }
@media (max-width: 768px) {
	.tmh-founder .tmh-founder-photo.tmh-pinked { width: 220px; margin: 0 auto 8px; }
}

/* ---------- Post listings (categories, tags, authors, blog, search): always 3 per row on desktop ---------- */
@media (min-width: 901px) {
	.blog .site-main, .archive .site-main, .search-results .site-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 601px) and (max-width: 900px) {
	.blog .site-main, .archive .site-main, .search-results .site-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tmh-arch-odd-last { grid-column: 1 / -1; justify-self: center; width: calc(50% - 13px); }
}

/* ---------- Search results ---------- */
.search .site-main > .page-header:not(.tmh-arch-head) { display: none; }
.error404 .site-main { display: block; }
.error404 .site-main > .tmh-search-head,
.search .site-main > .tmh-search-head { grid-column: 1 / -1; position: relative; overflow: hidden; margin: 0 0 6px; padding: 44px 48px 40px; border: 0; border-radius: 26px; background: #E3EAF0; }
.tmh-search-head .tmh-search-inner { position: relative; z-index: 1; }
.tmh-search-head .tmh-eyebrow { margin: 0 0 8px; }
.tmh-search-head .page-title { color: #2F4858; overflow-wrap: anywhere; }
.tmh-search-head .tmh-bigsearch { margin: 22px 0 0; max-width: 620px; }
.tmh-search-head .tmh-arch-chips { align-items: center; margin-top: 18px; }
.tmh-search-label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #2F4858; }
.search-no-results .site-main { display: block; }
.tmh-noresults { padding: 40px 0 24px; }
.tmh-noresults h2 { margin: 36px 0 18px; font-family: var(--tmh-serif); font-size: clamp(24px, 3vw, 30px); color: #2F4858; }
.tmh-noresults h2:first-child { margin-top: 8px; }
@media (max-width: 768px) {
	.error404 .site-main > .tmh-search-head,
	.search .site-main > .tmh-search-head { padding: 30px 22px 26px; border-radius: 20px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.tmh-legal { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
	.tmh-legal-toc { position: static; padding: 18px 20px; background: #fff; border: 1px solid var(--tmh-line); border-radius: 16px; }
	.tmh-wcard { grid-template-columns: 1fr; }
	.tmh-wcard-photo { padding: 28px; }
	.tmh-wcard-photo img { max-width: 180px; }
}
@media (max-width: 768px) {
	.tmh-phero { padding: 48px 0 44px; }
	.tmh-phero-lead { font-size: 17.5px; }
	.tmh-psec { padding: 52px 0; }
	.tmh-psec-head.is-split, .tmh-split, .tmh-two, .tmh-contact, .tmh-wcard-cols { grid-template-columns: 1fr; }
	.tmh-wcard-body { padding: 26px 22px; }
	.tmh-pcta { padding: 30px 24px; }
	.tmh-formcard { padding: 22px; }
	.tmh-short, .tmh-legal-contact { padding: 22px; }
}
