/**
 * Inner pages — Journal, articles, services, contact, commercial pages.
 * Visual language aligned with The Practice.
 */

/* Shared Practice utilities (also used on homepage) */
.tp-wrap {
  width: min(100% - 2.5rem, 88rem);
  margin-inline: auto;
}
.tp-label {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bmd-muted);
}
.tp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--bmd-radius-pill);
  background: rgba(251, 246, 238, 0.72);
  border: 1px solid rgba(20, 23, 17, 0.08);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--bmd-ink-soft);
}
.tp-chip__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--bmd-green);
  flex: 0 0 auto;
}
.tp-display {
  margin: 0;
  font-family: var(--bmd-font-sans);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--bmd-ink);
}
.tp-display em {
  font-family: var(--bmd-font-serif);
  font-style: italic;
  font-weight: 400;
}
.tp-display--hero {
  font-size: clamp(2.75rem, 6.4vw, 4.75rem);
  margin-bottom: 1.5rem;
}
.tp-display--md {
  font-size: clamp(2.35rem, 5vw, 4rem);
  margin-bottom: 1.25rem;
}
.tp-display--sm {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.12;
  margin-bottom: 1.15rem;
}
.tp-lede {
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--bmd-ink-soft);
  max-width: 36rem;
}
.tp-body {
  margin: 0 0 1.15rem;
  color: var(--bmd-ink-soft);
  max-width: 38rem;
}
.tp-text-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  color: var(--bmd-ink);
}
.tp-text-link:hover { opacity: 0.7; }
.tp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  margin: 1.75rem 0 2rem;
}

/* Shared page shell */
.tp-page {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.tp-page-hero {
  width: min(100% - 1.5rem, 92rem);
  margin: 1rem auto 0;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 3rem) clamp(3rem, 6vw, 5rem);
  border-radius: 1.75rem;
  background:
    linear-gradient(180deg, rgba(251, 246, 238, 0.72) 0%, rgba(239, 224, 216, 0.55) 100%);
  border: 1px solid rgba(20, 23, 17, 0.06);
  position: relative;
  overflow: hidden;
}
.tp-page-hero__watermark {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 4%;
  font-family: var(--bmd-font-serif);
  font-style: italic;
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: rgba(20, 23, 17, 0.06);
  pointer-events: none;
}
.tp-page-hero__inner {
  position: relative;
  z-index: 1;
  width: 65%;
  max-width: 65%;
}
@media (max-width: 899px) {
  .tp-page-hero__inner {
    width: 100%;
    max-width: 100%;
  }
}
.tp-page-hero .tp-display--hero {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  margin-bottom: 1.25rem;
  max-width: none;
}
.tp-page-hero .tp-lede {
  max-width: none;
}
.tp-page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bmd-line);
}
.tp-page-hero__meta p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bmd-muted);
}

.tp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--bmd-ink-soft);
}
.tp-back:hover { color: var(--bmd-ink); }

.tp-cta-panel {
  width: min(100% - 1.5rem, 92rem);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 1.75rem;
  background: rgba(251, 246, 238, 0.72);
  border: 1px solid rgba(20, 23, 17, 0.08);
}
.tp-cta-panel__inner { max-width: 40rem; }

/* ---------- Journal / archive ---------- */
.tp-journal-page .tp-page-hero {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.tp-featured {
  width: min(100% - 1.5rem, 92rem);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.tp-featured__link {
  display: grid;
  gap: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 1.75rem;
  overflow: hidden;
  background: rgba(251, 246, 238, 0.55);
  border: 1px solid rgba(20, 23, 17, 0.08);
  transition: transform 0.35s var(--bmd-ease), background 0.35s var(--bmd-ease);
}
.tp-featured__link:hover {
  transform: translateY(-2px);
  background: rgba(251, 246, 238, 0.85);
}
@media (min-width: 900px) {
  .tp-featured__link {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 22rem;
  }
}
.tp-featured__media {
  margin: 0;
  min-height: 16rem;
  background: var(--bmd-bg-2);
  position: relative;
  overflow: hidden;
}
.tp-featured__media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  display: block;
}
@media (min-width: 900px) {
  .tp-featured__media {
    min-height: 100%;
    align-self: stretch;
  }
  .tp-featured__media img {
    position: absolute;
    inset: 0;
    min-height: 0;
  }
}
.tp-featured__body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tp-featured__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bmd-green);
}
.tp-featured__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.tp-featured__excerpt {
  margin: 0 0 1.25rem;
  color: var(--bmd-ink-soft);
  max-width: 36rem;
}
.tp-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--bmd-muted);
}

.tp-archive-section {
  width: min(100% - 1.5rem, 92rem);
  margin: 0 auto;
}
.tp-archive-section__head {
  margin-bottom: 1.75rem;
}
.tp-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
@media (max-width: 960px) {
  .tp-archive-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tp-archive-grid { grid-template-columns: 1fr; }
}

.tp-post-card {
  margin: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  background: rgba(251, 246, 238, 0.5);
  border: 1px solid rgba(20, 23, 17, 0.08);
  height: 100%;
}
.tp-post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.tp-post-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bmd-bg-2);
}
.tp-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--bmd-ease);
}
.tp-post-card__link:hover .tp-post-card__media img {
  transform: scale(1.04);
}
.tp-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(226, 230, 166, 0.45), transparent 55%),
    linear-gradient(145deg, #ebe6dc 0%, #d9d3c6 100%);
}
.tp-post-card__body {
  padding: 1.2rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.tp-post-card__meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bmd-green);
}
.tp-post-card__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.tp-post-card__excerpt {
  margin: 0;
  color: var(--bmd-ink-soft);
  font-size: 0.95rem;
  flex: 1;
}
.tp-post-card__footer {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  color: var(--bmd-muted);
}

.bmd-pagination {
  width: min(100% - 1.5rem, 92rem);
  margin: 2.5rem auto 0;
}
.bmd-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.bmd-pagination a,
.bmd-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--bmd-radius-pill);
  text-decoration: none;
  border: 1px solid var(--bmd-line);
  font-size: 0.9rem;
}
.bmd-pagination .current {
  background: var(--bmd-ink);
  color: var(--bmd-cream);
  border-color: var(--bmd-ink);
}

/* ---------- Single article ---------- */
.tp-article {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.tp-article__hero {
  width: min(100% - 1.5rem, 92rem);
  margin: 1rem auto 0;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  border-radius: 1.75rem;
  background: rgba(251, 246, 238, 0.65);
  border: 1px solid rgba(20, 23, 17, 0.06);
}
.tp-article__hero-inner {
  width: 65%;
  max-width: 65%;
}
@media (max-width: 899px) {
  .tp-article__hero-inner {
    width: 100%;
    max-width: 100%;
  }
}
.tp-article__kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bmd-green);
}
.tp-article__title {
  margin: 0 0 1rem;
  font-family: var(--bmd-font-sans);
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.tp-article__excerpt {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--bmd-ink-soft);
  max-width: 40rem;
}
.tp-article__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: var(--bmd-muted);
}
.tp-article__media {
  width: min(100% - 1.5rem, 92rem);
  margin: 1.25rem auto;
  border-radius: 1.75rem;
  overflow: hidden;
}
.tp-article__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.tp-article__body {
  width: min(100% - 2rem, 42rem);
  margin: 2.5rem auto 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--bmd-ink-soft);
}
.tp-article__body > *:first-child { margin-top: 0; }
.tp-article__body h2,
.tp-article__body h3 {
  color: var(--bmd-ink);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 2.5rem 0 0.85rem;
}
.tp-article__body h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.tp-article__body h3 { font-size: 1.25rem; font-weight: 500; }
.tp-article__body p { margin: 0 0 1.15rem; }
.tp-article__body a {
  color: var(--bmd-ink);
  text-underline-offset: 0.18em;
}
.tp-article__body em,
.tp-article__body i {
  font-family: var(--bmd-font-serif);
  font-style: italic;
}
.tp-article__body ul,
.tp-article__body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}
.tp-article__body img {
  border-radius: 1.15rem;
  margin: 1.5rem 0;
}
.tp-article__next {
  width: min(100% - 1.5rem, 42rem);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bmd-line);
}
.tp-article__next a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.tp-article__next-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bmd-green);
}
.tp-article__next-title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-weight: 500;
}

/* ---------- Contact ---------- */
.tp-contact-page .tp-contact-hero {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.tp-contact-page .tp-contact-hero .tp-page-hero__inner {
  width: 65%;
  max-width: 65%;
}
@media (max-width: 899px) {
  .tp-contact-page .tp-contact-hero .tp-page-hero__inner {
    width: 100%;
    max-width: 100%;
  }
}

.tp-consult {
  width: min(100% - 1.5rem, 92rem);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: 1.75rem;
  background: rgba(251, 246, 238, 0.72);
  border: 1px solid rgba(20, 23, 17, 0.08);
}
@media (min-width: 960px) {
  .tp-consult {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.15fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: start;
  }
}
.tp-consult__aside .tp-display--md {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.tp-consult__aside .tp-display--md em {
  font-family: var(--bmd-font-serif);
  font-style: italic;
}
.tp-lede--sm {
  font-size: 1.02rem;
  max-width: 34rem;
}
.tp-consult__points {
  list-style: none;
  margin: 1.35rem 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.tp-consult__points li {
  position: relative;
  padding-left: 1.55rem;
  font-size: 0.98rem;
  color: var(--bmd-ink);
}
.tp-consult__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--bmd-green);
}
.tp-consult__aside-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--bmd-muted);
  max-width: 34rem;
}
.tp-consult__form {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 23, 17, 0.08);
}

/* Legacy two-column (kept for any residual markup) */
.tp-contact {
  width: min(100% - 1.5rem, 92rem);
  margin: 1rem auto 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .tp-contact {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }
}
.tp-contact__intro {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 1.75rem;
  background: rgba(251, 246, 238, 0.65);
  border: 1px solid rgba(20, 23, 17, 0.06);
}
.tp-contact__form {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 1.75rem;
  background: rgba(251, 246, 238, 0.85);
  border: 1px solid rgba(20, 23, 17, 0.08);
}
.tp-contact__form h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* Forms — Practice soft fields */
.bmd-form-wrap,
.bmd-form-section,
.tp-contact__form .bmd-form,
.tp-consult__form .bmd-form {
  max-width: none;
}
.bmd-form label,
.bmd-form-section label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bmd-ink);
}
.bmd-form input[type="text"],
.bmd-form input[type="email"],
.bmd-form input[type="url"],
.bmd-form input[type="tel"],
.bmd-form textarea,
.bmd-form select,
.bmd-form-section input,
.bmd-form-section textarea,
.bmd-form-section select {
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(20, 23, 17, 0.12);
  background: rgba(255, 255, 255, 0.55);
  font: inherit;
  color: var(--bmd-ink);
}
.bmd-form textarea,
.bmd-form-section textarea {
  min-height: 8rem;
  resize: vertical;
}
.bmd-form button,
.bmd-form input[type="submit"],
.bmd-form-section button,
.bmd-form-submit {
  appearance: none;
  border: 0;
  border-radius: var(--bmd-radius-pill);
  min-height: 3rem;
  padding: 0.85rem 1.45rem;
  background: var(--bmd-ink);
  color: var(--bmd-cream);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.bmd-form button:hover,
.bmd-form-submit:hover {
  background: #000;
}

/* Generic classic pages (no bmd-page) */
.tp-classic .bmd-entry__content {
  width: min(100% - 2rem, 42rem);
  margin: 0 auto;
  padding: 1.5rem 0 0;
}
.tp-classic .bmd-entry__content > h2:first-child a[href*="betterminddaily.com"] {
  display: none;
}
.tp-classic .bmd-entry__content > h2:first-child {
  margin-top: 0;
}
.tp-classic .bmd-entry__content h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0 0 1rem;
}
.tp-classic .bmd-entry__content h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 2rem 0 0.85rem;
}
.tp-classic .bmd-entry__content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.65rem;
}
.tp-classic .tp-page-hero {
  margin-bottom: 0.75rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
