/*
 * The Mindful Federal Employee — Southworth PC
 * 2026 public education redesign
 */

:root {
  --tmfe-navy: #2b3c5c;
  --tmfe-navy-deep: #17243d;
  --tmfe-green: #127059;
  --tmfe-green-deep: #0b5645;
  --tmfe-gold: #c79a3d;
  --tmfe-gold-soft: #ead9af;
  --tmfe-cream: #f7f2e8;
  --tmfe-paper: #fffdf8;
  --tmfe-sage: #e6eee8;
  --tmfe-ink: #161e2a;
  --tmfe-body: #4b5563;
  --tmfe-line: rgba(43, 60, 92, 0.15);
  --tmfe-shadow: 0 18px 50px rgba(23, 36, 61, 0.10);
  --tmfe-radius: 22px;
  --tmfe-radius-small: 12px;
  --tmfe-shell: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--tmfe-paper);
  color: var(--tmfe-body);
  overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
  font-family: "Quattrocento Sans", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo__text,
.tmfe-brand__name {
  color: var(--tmfe-ink);
  font-family: "PT Serif", Georgia, serif;
  letter-spacing: -0.025em;
}

a {
  color: var(--tmfe-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--tmfe-green-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--tmfe-gold);
  outline-offset: 3px;
}

.tmfe-skip-link {
  background: var(--tmfe-paper);
  border: 2px solid var(--tmfe-green);
  border-radius: 0 0 var(--tmfe-radius-small) 0;
  color: var(--tmfe-ink);
  font-weight: 800;
  left: 0;
  padding: 10px 16px;
  position: fixed;
  top: 0;
  transform: translateY(-125%);
  transition: transform 120ms ease;
  z-index: 100000;
}

.tmfe-skip-link:focus {
  color: var(--tmfe-ink);
  transform: translateY(0);
}

#main-content:focus {
  outline: none;
}

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

.tmfe-shell {
  margin-inline: auto;
  max-width: var(--tmfe-shell);
  padding-inline: 20px;
  width: 100%;
}

.tmfe-page {
  background: var(--tmfe-paper);
}

.tmfe-eyebrow {
  color: var(--tmfe-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.35;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.tmfe-lead {
  color: var(--tmfe-ink);
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  line-height: 1.55;
}

.tmfe-source-line {
  border-left: 3px solid var(--tmfe-gold);
  font-size: 0.98rem;
  margin: 24px 0 0;
  padding-left: 15px;
}

.tmfe-source-line a,
.tmfe-article-context a {
  font-weight: 700;
}

.tmfe-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.tmfe-button,
.btn {
  align-items: center;
  background: var(--tmfe-green);
  border: 2px solid var(--tmfe-green);
  border-radius: 999px;
  color: #fff !important;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.015em;
  line-height: 1.2;
  min-height: 50px;
  padding: 14px 22px;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tmfe-button:hover,
.btn:hover {
  background: var(--tmfe-green-deep);
  border-color: var(--tmfe-green-deep);
  color: #fff !important;
  transform: translateY(-1px);
}

.tmfe-button--secondary {
  background: transparent;
  border-color: var(--tmfe-navy);
  color: var(--tmfe-navy) !important;
}

.tmfe-button--secondary:hover {
  background: var(--tmfe-navy);
  border-color: var(--tmfe-navy);
  color: #fff !important;
}

.tmfe-button--gold {
  background: var(--tmfe-gold);
  border-color: var(--tmfe-gold);
  color: var(--tmfe-navy-deep) !important;
}

.tmfe-button--gold:hover {
  background: var(--tmfe-gold-soft);
  border-color: var(--tmfe-gold-soft);
  color: var(--tmfe-navy-deep) !important;
}

.tmfe-button--legal {
  background: var(--tmfe-gold);
  border-color: var(--tmfe-gold);
  color: var(--tmfe-navy-deep) !important;
}

.tmfe-button--legal:hover {
  background: var(--tmfe-gold-soft);
  border-color: var(--tmfe-gold-soft);
  color: var(--tmfe-navy-deep) !important;
}

.tmfe-text-link {
  display: inline-block;
  font-weight: 800;
  margin-top: 24px;
}

.tmfe-text-link::after {
  content: "  →";
}

.tmfe-text-link--light {
  color: #fff;
}

.tmfe-text-link--light:hover {
  color: var(--tmfe-gold-soft);
}

/* Header and brand lockup */
.header {
  border-bottom: 1px solid var(--tmfe-line);
  box-shadow: 0 5px 22px rgba(23, 36, 61, 0.06);
  position: relative;
  z-index: 100;
}

.header.header--overlay {
  position: relative;
}

.header__content--desktop,
.header__content--mobile,
.header__wrap {
  background: rgba(255, 253, 248, 0.98) !important;
}

.header__container {
  max-width: var(--tmfe-shell);
  min-height: 78px;
}

.header__block--logo {
  flex: 0 0 auto;
  margin-right: 22px;
}

.logo.tmfe-brand {
  align-items: flex-start;
  color: var(--tmfe-navy) !important;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  max-width: 275px;
  text-decoration: none;
}

.tmfe-brand__name {
  color: var(--tmfe-navy);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.08;
}

.tmfe-brand__source {
  color: var(--tmfe-green);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  margin-top: 6px;
  text-transform: uppercase;
}

.header .link-list {
  align-items: center;
  gap: 4px;
}

.header a.link-list__link {
  border-radius: 999px;
  color: var(--tmfe-navy) !important;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  padding: 10px 12px;
  text-decoration: none;
}

.header a.link-list__link:hover {
  background: var(--tmfe-sage);
  color: var(--tmfe-green-deep) !important;
}

.header .header__block--menu:last-of-type a.link-list__link:last-child,
.header .header__block--menu a.link-list__link[href*="attorneysforfederalemployees"] {
  background: var(--tmfe-green);
  color: #fff !important;
  margin-left: 6px;
  padding-inline: 17px;
}

.header .header__block--menu:last-of-type a.link-list__link:last-child:hover,
.header .header__block--menu a.link-list__link[href*="attorneysforfederalemployees"]:hover {
  background: var(--tmfe-green-deep);
}

.header .user__login a {
  color: var(--tmfe-navy) !important;
  font-size: 0.8rem;
  font-weight: 800;
}

/* The public navigation is defined in one accessible, mobile-first component.
   Hide the superseded Kajabi menu blocks but preserve its account/user block. */
.header .header__block--menu,
.header .header__block--dropdown,
.header .header__block--cta {
  display: none !important;
}

.header__block--logo {
  order: 0;
}

.tmfe-primary-nav {
  min-width: 0;
  order: 1;
}

.header__block--user {
  margin-left: 6px;
  order: 2;
}

.tmfe-nav-dropdown summary,
.tmfe-primary-nav__link {
  color: var(--tmfe-navy) !important;
  font-family: "Quattrocento Sans", Arial, sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.tmfe-nav-dropdown summary {
  cursor: pointer;
  list-style: none;
}

.tmfe-nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.tmfe-nav-dropdown summary span {
  display: inline-block;
  font-size: 0.65em;
  margin-left: 3px;
  transition: transform 160ms ease;
}

.tmfe-nav-dropdown[open] summary span {
  transform: rotate(180deg);
}

.tmfe-nav-dropdown summary:focus-visible,
.tmfe-primary-nav__link:focus-visible,
.tmfe-nav-dropdown__menu a:focus-visible {
  outline: 3px solid var(--tmfe-gold);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .tmfe-primary-nav {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 2px;
    justify-content: flex-end;
  }

  .tmfe-nav-dropdown {
    position: relative;
  }

  .tmfe-nav-dropdown summary,
  .tmfe-primary-nav__link {
    border-radius: 999px;
    display: block;
    font-size: 0.78rem;
    line-height: 1.1;
    padding: 10px 8px;
    white-space: nowrap;
  }

  .tmfe-nav-dropdown summary:hover,
  .tmfe-nav-dropdown[open] summary,
  .tmfe-primary-nav__link:hover {
    background: var(--tmfe-sage);
    color: var(--tmfe-green-deep) !important;
  }

  .tmfe-nav-dropdown__menu {
    background: var(--tmfe-paper);
    border: 1px solid var(--tmfe-line);
    border-radius: var(--tmfe-radius-small);
    box-shadow: 0 18px 40px rgba(23, 36, 61, 0.18);
    left: 0;
    min-width: 250px;
    padding: 9px;
    position: absolute;
    top: calc(100% + 9px);
    z-index: 140;
  }

  .tmfe-nav-dropdown__menu--wide {
    min-width: 300px;
  }

  .tmfe-nav-dropdown__menu::before {
    content: "";
    height: 10px;
    left: 0;
    position: absolute;
    right: 0;
    top: -10px;
  }

  .tmfe-nav-dropdown__menu a {
    border-radius: 8px;
    color: var(--tmfe-navy-deep) !important;
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 10px 11px;
    text-decoration: none;
  }

  .tmfe-nav-dropdown__menu a:hover {
    background: var(--tmfe-sage);
    color: var(--tmfe-green-deep) !important;
  }
}

@media (min-width: 768px) and (max-width: 1080px) {
  .logo.tmfe-brand {
    max-width: 210px;
  }

  .tmfe-brand__name {
    font-size: 0.98rem;
  }

  .tmfe-brand__source {
    font-size: 0.54rem;
  }

  .header__block--logo {
    margin-right: 10px;
  }

  .tmfe-nav-dropdown summary,
  .tmfe-primary-nav__link {
    font-size: 0.7rem;
    padding-inline: 6px;
  }

  .header .user__login a {
    font-size: 0.7rem;
  }
}

.hamburger__slice {
  background-color: var(--tmfe-navy) !important;
}

button.hamburger {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
}

/* Persistent, plain-language paths on every public page */
.tmfe-quick-actions {
  background: var(--tmfe-navy-deep);
  border-bottom: 2px solid var(--tmfe-gold);
  color: #fff;
  position: sticky;
  top: 78px;
  z-index: 90;
}

.tmfe-quick-actions__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 56px;
}

.tmfe-quick-actions__label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tmfe-quick-actions__links {
  align-items: center;
  display: flex;
  gap: 10px;
}

.tmfe-quick-actions__links a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1.15;
  min-height: 40px;
  padding: 9px 15px;
  text-align: center;
  text-decoration: none;
}

.tmfe-quick-actions__briefing {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #fff !important;
}

.tmfe-quick-actions__briefing:hover {
  background: #fff;
  color: var(--tmfe-navy-deep) !important;
}

.tmfe-quick-actions__legal {
  background: var(--tmfe-gold);
  border: 1px solid var(--tmfe-gold);
  color: var(--tmfe-navy-deep) !important;
}

.tmfe-quick-actions__legal:hover {
  background: var(--tmfe-gold-soft);
  border-color: var(--tmfe-gold-soft);
  color: var(--tmfe-navy-deep) !important;
}

/* Primary page structures */
.tmfe-hero {
  background:
    radial-gradient(circle at 8% 0%, rgba(199, 154, 61, 0.17), transparent 34%),
    linear-gradient(135deg, var(--tmfe-cream) 0%, var(--tmfe-paper) 60%);
  overflow: hidden;
  padding: 66px 0 58px;
}

.tmfe-hero__grid,
.tmfe-resource-hero__grid,
.tmfe-split {
  display: grid;
  gap: 34px;
}

.tmfe-hero__copy {
  align-self: center;
}

.tmfe-hero h1,
.tmfe-resource-hero h1,
.tmfe-legal h1 {
  color: var(--tmfe-navy-deep);
  font-size: clamp(2.35rem, 8vw, 4.8rem);
  line-height: 1.02;
  margin: 0 0 24px;
  max-width: 13ch;
}

.tmfe-hero__media,
.tmfe-split__media,
.tmfe-resource-hero figure {
  align-self: center;
  margin: 0;
  min-width: 0;
  position: relative;
}

.tmfe-hero__media::before,
.tmfe-split__media::before,
.tmfe-resource-hero figure::before {
  border: 1px solid rgba(199, 154, 61, 0.55);
  border-radius: var(--tmfe-radius);
  content: "";
  inset: 12px -10px -12px 10px;
  position: absolute;
}

.tmfe-hero__media img,
.tmfe-split__media img,
.tmfe-resource-hero figure img {
  aspect-ratio: 3 / 2;
  background: var(--tmfe-cream);
  border-radius: var(--tmfe-radius);
  box-shadow: var(--tmfe-shadow);
  display: block;
  object-fit: contain;
  object-position: center;
  position: relative;
  width: 100%;
  z-index: 1;
}

.tmfe-hero__media--portrait img,
.tmfe-split__media--portrait img {
  aspect-ratio: 4 / 5;
}

.tmfe-proof {
  background: var(--tmfe-navy);
  color: #fff;
  padding: 28px 0 20px;
}

.tmfe-proof__grid {
  display: grid;
  gap: 18px;
}

.tmfe-proof__grid p {
  border-left: 2px solid var(--tmfe-gold);
  margin: 0;
  padding-left: 14px;
}

.tmfe-proof__grid strong,
.tmfe-proof__grid span {
  display: block;
}

.tmfe-proof__grid strong {
  color: #fff;
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.45rem;
}

.tmfe-proof__grid span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  margin-top: 3px;
}

.tmfe-proof__note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  margin: 17px auto 0;
  max-width: var(--tmfe-shell);
  padding-inline: 20px;
}

.tmfe-section {
  padding: 72px 0;
}

.tmfe-section h2,
.tmfe-resource-hero h2 {
  color: var(--tmfe-navy-deep);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.1;
  margin: 0 0 24px;
  max-width: 20ch;
}

.tmfe-section h3 {
  color: var(--tmfe-navy);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.2;
}

.tmfe-section--ink {
  background: var(--tmfe-navy-deep);
  color: rgba(255, 255, 255, 0.82);
}

.tmfe-section--ink h2,
.tmfe-section--ink h3,
.tmfe-section--ink .tmfe-eyebrow {
  color: #fff;
}

.tmfe-section--ink .tmfe-eyebrow {
  color: var(--tmfe-gold-soft);
}

.tmfe-section--sage {
  background: var(--tmfe-sage);
}

.tmfe-section-heading--split {
  align-items: end;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.tmfe-card-grid,
.tmfe-post-grid,
.tmfe-profile-grid,
.tmfe-f-grid {
  display: grid;
  gap: 18px;
}

.tmfe-card,
.tmfe-profile,
.tmfe-f-grid article {
  background: #fff;
  border: 1px solid var(--tmfe-line);
  border-radius: var(--tmfe-radius);
  box-shadow: 0 12px 35px rgba(23, 36, 61, 0.06);
  padding: 28px;
}

.tmfe-card {
  border-top: 5px solid var(--tmfe-green);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tmfe-card--rights {
  border-top-color: var(--tmfe-gold);
}

.tmfe-card--next {
  border-top-color: var(--tmfe-navy);
}

.tmfe-card__number {
  color: var(--tmfe-gold);
  display: block;
  font-family: "PT Serif", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.tmfe-card h3,
.tmfe-profile h3,
.tmfe-f-grid h3 {
  margin: 0 0 14px;
}

.tmfe-card a,
.tmfe-profile a {
  font-weight: 800;
}

.tmfe-card > a {
  margin-top: auto;
  padding-top: 24px;
}

.tmfe-post-card {
  background: #fff;
  border-radius: var(--tmfe-radius);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.14);
  min-width: 0;
  overflow: hidden;
}

.tmfe-post-card__media {
  background: var(--tmfe-navy);
  display: grid;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  place-items: center;
}

.tmfe-post-card__media img {
  aspect-ratio: auto;
  background: var(--tmfe-cream);
  height: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.tmfe-post-card__media span {
  color: rgba(255, 255, 255, 0.8);
  font-family: "PT Serif", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}

.tmfe-post-card__body {
  padding: 24px;
}

.tmfe-post-card__date {
  color: var(--tmfe-green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.tmfe-post-card h3 {
  font-size: 1.35rem;
  margin: 0 0 18px;
}

.tmfe-post-card h3 a {
  color: var(--tmfe-navy-deep);
  text-decoration: none;
}

.tmfe-post-card__link {
  font-weight: 800;
}

.tmfe-split {
  align-items: center;
}

.tmfe-split__copy > :last-child {
  margin-bottom: 0;
}

.tmfe-section--briefing {
  background:
    linear-gradient(135deg, rgba(43, 60, 92, 0.97), rgba(23, 36, 61, 0.99)),
    var(--tmfe-navy-deep);
  color: rgba(255, 255, 255, 0.82);
}

.tmfe-section--briefing h2 {
  color: #fff;
}

.tmfe-section--briefing .tmfe-eyebrow {
  color: var(--tmfe-gold-soft);
}

.tmfe-briefing {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tmfe-legal-help {
  background: var(--tmfe-cream);
  padding-bottom: 48px;
}

.tmfe-legal-help__inner {
  display: grid;
  gap: 24px;
}

.tmfe-disclaimer {
  color: #687080;
  font-size: 0.77rem;
  margin: 34px auto 0;
  max-width: 900px;
  padding-inline: 20px;
  text-align: center;
}

/* Homepage ecosystem */
.tmfe-ecosystem {
  background:
    radial-gradient(circle at 100% 0%, rgba(18, 112, 89, 0.11), transparent 35%),
    var(--tmfe-cream);
}

.tmfe-ecosystem__intro {
  color: var(--tmfe-body) !important;
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 34px;
  max-width: 850px;
}

.tmfe-ecosystem__grid {
  display: grid;
  gap: 20px;
}

.tmfe-ecosystem__podcast,
.tmfe-ecosystem__paths article {
  background: #fff;
  border: 1px solid var(--tmfe-line);
  border-radius: var(--tmfe-radius);
  box-shadow: 0 12px 35px rgba(23, 36, 61, 0.07);
  overflow: hidden;
}

.tmfe-ecosystem__podcast figure {
  background: var(--tmfe-navy);
  margin: 0;
}

.tmfe-ecosystem__podcast figure img {
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: contain;
  width: 100%;
}

.tmfe-ecosystem__podcast-copy {
  padding: 26px;
}

.tmfe-ecosystem__podcast-copy h3,
.tmfe-ecosystem__paths h3 {
  color: var(--tmfe-navy-deep);
  margin: 0 0 10px;
}

.tmfe-ecosystem__podcast-copy > p:not(.tmfe-eyebrow),
.tmfe-ecosystem__paths article > p:not(.tmfe-path-label) {
  color: var(--tmfe-body) !important;
  line-height: 1.6;
}

.tmfe-ecosystem__paths {
  display: grid;
  gap: 14px;
}

.tmfe-ecosystem__paths article {
  border-left: 5px solid var(--tmfe-green);
  padding: 22px 24px;
}

.tmfe-ecosystem__paths article:nth-child(2) {
  border-left-color: var(--tmfe-gold);
}

.tmfe-ecosystem__paths article:nth-child(3) {
  border-left-color: var(--tmfe-navy);
}

.tmfe-ecosystem__paths article.tmfe-ecosystem__legal-path {
  background: var(--tmfe-navy-deep);
  border-color: var(--tmfe-gold);
}

.tmfe-ecosystem__legal-path h3,
.tmfe-ecosystem__legal-path p {
  color: #fff !important;
}

.tmfe-ecosystem__legal-path a {
  color: var(--tmfe-gold-soft) !important;
}

.tmfe-path-label {
  color: var(--tmfe-green) !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.tmfe-ecosystem__legal-path .tmfe-path-label {
  color: var(--tmfe-gold-soft) !important;
}

.tmfe-ecosystem__paths a {
  font-weight: 800;
}

/* About and mindfulness */
.tmfe-prose {
  max-width: 790px;
}

.tmfe-prose--center {
  margin-inline: auto;
}

.tmfe-prose p {
  font-size: 1.08rem;
  line-height: 1.75;
}

.tmfe-prose h2,
.tmfe-prose h3 {
  max-width: 26ch;
}

/* Long-form explainers and FAQ accordions */
.tmfe-page details {
  background: #fff;
  border: 1px solid var(--tmfe-line);
  border-radius: var(--tmfe-radius-small);
  box-shadow: 0 8px 24px rgba(23, 36, 61, 0.05);
  color: var(--tmfe-body);
  margin: 12px 0;
  overflow: hidden;
}

.tmfe-page details summary {
  align-items: center;
  color: var(--tmfe-navy-deep);
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  gap: 18px;
  justify-content: space-between;
  line-height: 1.4;
  list-style: none;
  padding: 18px 20px;
}

.tmfe-page details summary::-webkit-details-marker {
  display: none;
}

.tmfe-page details summary::after {
  color: var(--tmfe-green);
  content: "+";
  flex: 0 0 auto;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.tmfe-page details[open] summary {
  background: var(--tmfe-sage);
  border-bottom: 1px solid var(--tmfe-line);
}

.tmfe-page details[open] summary::after {
  content: "−";
}

.tmfe-page details summary strong {
  color: inherit;
}

.tmfe-page details > :not(summary) {
  margin-inline: 20px;
}

.tmfe-page details > :last-child {
  margin-bottom: 20px;
}

.tmfe-page details p,
.tmfe-section--ink details p {
  color: var(--tmfe-body) !important;
  line-height: 1.7;
}

.tmfe-profile__role {
  color: var(--tmfe-green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tmfe-principles {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.tmfe-principles li {
  background: rgba(255, 255, 255, 0.78);
  border-left: 4px solid var(--tmfe-gold);
  border-radius: 0 var(--tmfe-radius-small) var(--tmfe-radius-small) 0;
  color: var(--tmfe-ink);
  font-weight: 700;
  padding: 15px 18px;
}

.tmfe-five-fs {
  color: var(--tmfe-green);
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.tmfe-f-grid article {
  padding-top: 24px;
}

.tmfe-f-grid article > span {
  align-items: center;
  background: var(--tmfe-navy);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  margin-bottom: 18px;
  width: 42px;
}

.tmfe-boundary-note {
  background: var(--tmfe-cream);
  border-top: 1px solid var(--tmfe-line);
  padding: 38px 0;
}

.tmfe-boundary-note h2 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.tmfe-boundary-note p {
  font-size: 0.9rem;
  margin: 0;
  max-width: 920px;
}

/* Resource Center */
.tmfe-resource-hero {
  background:
    radial-gradient(circle at 95% 5%, rgba(18, 112, 89, 0.14), transparent 34%),
    var(--tmfe-cream);
  padding: 62px 0 48px;
}

.tmfe-resource-hero__grid {
  align-items: center;
}

.tmfe-resource-hero h1 {
  max-width: 14ch;
}

.tmfe-search {
  margin-top: 30px;
}

.tmfe-search label {
  color: var(--tmfe-navy);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tmfe-search__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tmfe-search input,
.tmfe-search button {
  border-radius: 999px;
  min-height: 52px;
}

.tmfe-search input {
  background: #fff;
  border: 1px solid rgba(43, 60, 92, 0.24);
  color: var(--tmfe-ink);
  font-size: 1rem;
  padding: 12px 20px;
  width: 100%;
}

.tmfe-search button {
  background: var(--tmfe-green);
  border: 0;
  color: #fff;
  font-weight: 800;
  padding: 12px 24px;
}

.tmfe-topics {
  margin-top: 48px;
}

.tmfe-topics > p {
  color: var(--tmfe-navy);
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.tmfe-topics__grid {
  display: grid;
  gap: 10px;
}

.tmfe-topics__grid a {
  background: rgba(255, 255, 255, 0.83);
  border: 1px solid var(--tmfe-line);
  border-radius: var(--tmfe-radius-small);
  color: var(--tmfe-body);
  display: block;
  padding: 18px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tmfe-topics__grid a:hover {
  border-color: var(--tmfe-gold);
  box-shadow: 0 10px 25px rgba(23, 36, 61, 0.08);
  transform: translateY(-1px);
}

.tmfe-topics__grid strong,
.tmfe-topics__grid span {
  display: block;
}

.tmfe-topics__grid strong {
  color: var(--tmfe-navy);
  font-size: 0.98rem;
  margin-bottom: 5px;
}

.tmfe-topics__grid span {
  font-size: 0.82rem;
  line-height: 1.45;
}

.tmfe-resource-list .blog-listings {
  background: var(--tmfe-paper) !important;
}

.tmfe-resource-list .blog-listings .sizer {
  padding-block: 64px !important;
}

.tmfe-resource-list .blog-listings__content--grid-2,
.tmfe-resource-list .blog-listings__content--grid-3 {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
}

/* Kajabi's legacy grid assigns percentage widths to each card. Those widths
   must be reset when the listing container uses CSS Grid, or every card is
   reduced to one-third of its own grid track. */
.tmfe-resource-list .blog-listing--grid-2,
.tmfe-resource-list .blog-listing--grid-3 {
  align-self: stretch;
  justify-self: stretch;
  margin-bottom: 0;
  min-width: 0;
  width: 100% !important;
}

.tmfe-resource-list .blog-listing__panel {
  border: 1px solid var(--tmfe-line) !important;
  border-radius: var(--tmfe-radius) !important;
  box-shadow: 0 12px 35px rgba(23, 36, 61, 0.06) !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  width: 100%;
}

.tmfe-resource-list .blog-listing__data,
.tmfe-resource-list .blog-listing__content {
  min-width: 0;
  width: 100%;
}

.tmfe-resource-list .pag {
  grid-column: 1 / -1;
}

.tmfe-resource-list .blog-listing__media {
  background: var(--tmfe-cream);
  overflow: hidden;
}

.tmfe-resource-list .blog-listing__media img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.tmfe-resource-list .blog-listing__title {
  color: var(--tmfe-navy-deep) !important;
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.22;
}

.tmfe-resource-list .blog-listing__heading {
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 10px;
}

.tmfe-resource-list .blog-listing__date {
  color: var(--tmfe-green) !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tmfe-resource-list .blog-listing__author {
  color: var(--tmfe-body) !important;
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 5px;
}

.tmfe-resource-list .blog-listing__author a {
  color: var(--tmfe-green-deep) !important;
  font-weight: 800;
}

.tmfe-resource-list .blog-listing__more {
  color: var(--tmfe-green) !important;
  font-weight: 800;
}

.tmfe-resource-list .tag,
.blog-post-body .tag {
  background: var(--tmfe-sage) !important;
  border-radius: 999px;
  color: var(--tmfe-green-deep) !important;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  margin: 3px;
  padding: 6px 10px;
}

.tmfe-resource-list .sidebar-categories,
.blog-post-body .sidebar-categories {
  display: none !important;
}

/* Article presentation */
.tmfe-article-context {
  background: var(--tmfe-cream);
  border-bottom: 1px solid var(--tmfe-line);
  padding: 18px 0;
}

.tmfe-article-context__inner {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tmfe-article-context p {
  color: var(--tmfe-ink) !important;
  font-size: 0.82rem;
  margin: 0;
}

.blog-post-body {
  background: var(--tmfe-paper) !important;
}

.blog-post-body .sizer {
  padding-block: 56px !important;
}

.blog-post-body__content,
.blog-post-body__panel {
  background: #fff !important;
  border: 0 !important;
  border-radius: var(--tmfe-radius) !important;
  box-shadow: var(--tmfe-shadow) !important;
}

.blog-post-body h1,
.blog-post-body__title {
  color: var(--tmfe-navy-deep) !important;
  font-size: clamp(2.2rem, 6vw, 4rem) !important;
  line-height: 1.06 !important;
}

.blog-post-body__content,
.blog-post-body__content p,
.blog-post-body__content li {
  color: var(--tmfe-body);
  font-size: 1.05rem;
  line-height: 1.78;
}

.blog-post-body__content h2,
.blog-post-body__content h3 {
  color: var(--tmfe-navy-deep);
  margin-top: 1.6em;
}

.blog-post-body__content a {
  font-weight: 700;
}

/* Context labels from the retired legacy blog heroes are no longer page H1s. */
.tmfe-legacy-context-title {
  color: #fff !important;
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
}

.tmfe-legacy-context-title * {
  color: inherit !important;
}

/* Legal and advertising disclaimer */
.tmfe-legal {
  background: var(--tmfe-paper);
}

.tmfe-legal__hero {
  background: var(--tmfe-cream);
  padding: 64px 0 48px;
}

.tmfe-legal__intro {
  color: var(--tmfe-ink);
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 760px;
}

.tmfe-legal__content {
  display: grid;
  gap: 18px;
  padding-block: 54px 76px;
}

.tmfe-legal__section {
  border-bottom: 1px solid var(--tmfe-line);
  padding: 0 0 28px;
}

.tmfe-legal__section h2 {
  color: var(--tmfe-navy);
  font-size: 1.45rem;
  margin: 0 0 10px;
}

.tmfe-legal__section p,
.tmfe-legal__section li {
  font-size: 0.98rem;
  line-height: 1.7;
}

.tmfe-legal__summary {
  background: var(--tmfe-sage);
  border-left: 5px solid var(--tmfe-green);
  border-radius: 0 var(--tmfe-radius-small) var(--tmfe-radius-small) 0;
  color: var(--tmfe-ink);
  font-weight: 700;
  padding: 18px 20px;
}

/* Footer */
.footer {
  background: var(--tmfe-navy-deep) !important;
  border-top: 4px solid var(--tmfe-gold);
  color: rgba(255, 255, 255, 0.72) !important;
}

.footer__content {
  padding-block: 28px;
}

.footer__container {
  align-items: center;
  gap: 18px;
  max-width: var(--tmfe-shell);
}

.footer a,
.footer a.link-list__link,
.footer .copyright {
  color: rgba(255, 255, 255, 0.78) !important;
}

.footer a:hover,
.footer a.link-list__link:hover {
  color: #fff !important;
}

.tmfe-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  margin-top: 22px;
  padding-top: 18px;
  text-align: center;
}

.tmfe-footer-legal p {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  margin: 8px auto 0;
  max-width: 840px;
}

.tmfe-footer-legal a {
  font-size: 0.78rem;
  font-weight: 800;
}

/* Kajabi controls */
.form-control,
.input,
input[type="email"],
input[type="text"],
input[type="search"],
textarea,
select {
  border-radius: var(--tmfe-radius-small) !important;
}

/* The legacy theme forces every form label white for the login screen.
   Restore readable labels inside the redesigned public pages. */
#encore-theme .tmfe-page .form-group label,
.tmfe-public-form-scope .form-group label {
  color: var(--tmfe-ink) !important;
}

.filter__field,
.alert,
.parsley-errors-list {
  border-radius: var(--tmfe-radius-small) !important;
}

.pag__link--current {
  color: var(--tmfe-green) !important;
  font-weight: 800;
}

/* Contrast hardening: Kajabi's saved theme colors must not override light sections. */
.tmfe-hero p,
.tmfe-resource-hero p,
.tmfe-legal-help p,
.tmfe-section--sage p,
.tmfe-card p,
.tmfe-profile p,
.tmfe-f-grid article p,
.tmfe-split__copy p,
.tmfe-prose p,
.tmfe-source-line,
.tmfe-boundary-note p,
.tmfe-legal p {
  color: var(--tmfe-body) !important;
}

.tmfe-hero .tmfe-lead,
.tmfe-resource-hero .tmfe-lead,
.tmfe-five-fs {
  color: var(--tmfe-ink) !important;
}

.tmfe-hero .tmfe-eyebrow,
.tmfe-resource-hero .tmfe-eyebrow,
.tmfe-section--sage .tmfe-eyebrow,
.tmfe-legal .tmfe-eyebrow {
  color: var(--tmfe-green) !important;
}

.tmfe-section--ink p,
.tmfe-section--briefing p,
.tmfe-proof p {
  color: rgba(255, 255, 255, 0.84) !important;
}

.tmfe-section--ink .tmfe-eyebrow,
.tmfe-section--briefing .tmfe-eyebrow {
  color: var(--tmfe-gold-soft) !important;
}

/* White cards remain readable when placed inside a dark section. */
.tmfe-section--ink .tmfe-card h3,
.tmfe-section--ink .tmfe-profile h3,
.tmfe-section--ink .tmfe-f-grid article h3 {
  color: var(--tmfe-navy) !important;
}

.tmfe-section--ink .tmfe-card p,
.tmfe-section--ink .tmfe-profile p,
.tmfe-section--ink .tmfe-f-grid article p {
  color: var(--tmfe-body) !important;
}

@media (min-width: 640px) {
  .tmfe-actions,
  .tmfe-search__row {
    align-items: center;
    flex-direction: row;
  }

  .tmfe-actions {
    flex-wrap: wrap;
  }

  .tmfe-resource-list .blog-listings__content--grid-2,
  .tmfe-resource-list .blog-listings__content--grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tmfe-search button {
    flex: 0 0 auto;
  }

  .tmfe-card-grid--three,
  .tmfe-profile-grid,
  .tmfe-topics__grid,
  .tmfe-f-grid,
  .tmfe-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .tmfe-briefing {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .tmfe-briefing > :first-child {
    max-width: 760px;
  }

  .tmfe-legal-help__inner {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 768px) {
  .tmfe-shell {
    padding-inline: 34px;
  }

  .tmfe-hero,
  .tmfe-resource-hero {
    padding-block: 86px 76px;
  }

  .tmfe-section {
    padding-block: 96px;
  }

  .tmfe-section-heading--split {
    align-items: end;
    flex-direction: row;
  }

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

  .tmfe-proof__note {
    padding-inline: 34px;
  }
}

@media (min-width: 900px) {
  .tmfe-hero__grid,
  .tmfe-resource-hero__grid,
  .tmfe-split {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 70px;
  }

  .tmfe-split--reverse > :first-child {
    order: 2;
  }

  .tmfe-ecosystem__grid {
    align-items: start;
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
  }

  .tmfe-card-grid--three,
  .tmfe-post-grid,
  .tmfe-topics__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tmfe-card-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tmfe-f-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tmfe-f-grid article {
    padding: 22px 19px;
  }

  .tmfe-f-grid p {
    font-size: 0.9rem;
  }

  .tmfe-resource-list .blog-listings__content--grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tmfe-article-context__inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .header__container {
    min-height: 68px;
  }

  .header__block--logo {
    margin-right: 0;
  }

  .logo.tmfe-brand {
    max-width: 225px;
  }

  .tmfe-brand__name {
    font-size: 1rem;
  }

  .tmfe-brand__source {
    font-size: 0.54rem;
  }

  .header__block--user {
    margin-left: 0;
  }

  .tmfe-primary-nav {
    align-items: stretch;
    background: var(--tmfe-paper);
    display: flex;
    flex-direction: column;
    padding: 8px 20px 20px;
    width: 100%;
  }

  .tmfe-nav-dropdown,
  .tmfe-primary-nav__link {
    border-bottom: 1px solid var(--tmfe-line);
  }

  .tmfe-nav-dropdown summary,
  .tmfe-primary-nav__link {
    display: block;
    font-size: 1rem;
    line-height: 1.25;
    padding: 14px 0;
    text-align: left;
  }

  .tmfe-nav-dropdown summary {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .tmfe-nav-dropdown__menu {
    background: var(--tmfe-sage);
    border-left: 3px solid var(--tmfe-green);
    margin: 0 0 10px;
    padding: 5px 10px;
  }

  .tmfe-nav-dropdown__menu a {
    border-bottom: 1px solid rgba(43, 60, 92, 0.12);
    color: var(--tmfe-navy-deep) !important;
    display: block;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 11px 8px;
    text-decoration: none;
  }

  .tmfe-nav-dropdown__menu a:last-child {
    border-bottom: 0;
  }

  .tmfe-quick-actions__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding-block: 9px;
  }

  .tmfe-quick-actions {
    top: 68px;
  }

  .tmfe-quick-actions__label {
    text-align: center;
  }

  .tmfe-quick-actions__links {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  }

  .tmfe-quick-actions__links a {
    min-height: 44px;
    padding-inline: 10px;
  }

  .header__content--mobile .header__switch-content {
    background: var(--tmfe-paper);
  }

  .header__content--mobile .link-list {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    padding: 12px 20px 22px;
  }

  .header__content--mobile a.link-list__link {
    border-bottom: 1px solid var(--tmfe-line);
    border-radius: 0;
    font-size: 1rem;
    padding: 14px 0;
    text-align: left;
  }

  .header__content--mobile a.link-list__link[href*="attorneysforfederalemployees"] {
    border: 0;
    border-radius: 999px;
    margin: 14px 0 0;
    padding: 14px 20px;
    text-align: center;
  }

  .tmfe-hero h1,
  .tmfe-resource-hero h1,
  .tmfe-legal h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .tmfe-card,
  .tmfe-profile,
  .tmfe-f-grid article {
    padding: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
