/* =========================================================
   TEF Blog — self-contained layout (does NOT need Tailwind)
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.tef-body {
  margin: 0;
  background: #f8fafc;
  color: #1e293b;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.tef-body a {
  color: inherit;
  text-decoration: none;
}

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

/* ----- Nav ----- */
.tef-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.tef-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tef-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.tef-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.tef-brand-name {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tef-brand-sub {
  font-size: 10px;
  color: #64748b;
  margin-top: -2px;
  letter-spacing: 0.02em;
}

.tef-nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

.tef-nav-links a:hover {
  color: #0f172a;
}

.tef-nav-links a.is-active {
  color: #059669;
  font-weight: 600;
}

.tef-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: #fff;
  flex-shrink: 0;
}

.tef-nav-cta:hover {
  background: #f1f5f9;
}

@media (min-width: 768px) {
  .tef-nav-links {
    display: flex;
  }
}

/* ----- Page header / hero ----- */
.tef-hero {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.tef-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.75rem;
}

.tef-hero-inner.wide {
  max-width: 1100px;
}

.tef-crumbs {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.tef-crumbs a:hover {
  color: #0f172a;
}

.tef-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.tef-h1 {
  margin: 0 0 0.85rem;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #0f172a;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.tef-lead {
  margin: 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 42rem;
}

.tef-meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: #64748b;
}

.tef-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tef-btn-primary {
  background: #0f172a;
  color: #fff;
}

.tef-btn-primary:hover {
  background: #1e293b;
}

.tef-btn-secondary {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
}

.tef-btn-secondary:hover {
  background: #f8fafc;
}

.tef-btn-green {
  background: #059669;
  color: #fff;
}

.tef-btn-green:hover {
  background: #047857;
}

/* ----- Stats ----- */
.tef-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 2.5rem;
}

@media (min-width: 640px) {
  .tef-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tef-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
}

.tef-stat strong {
  display: block;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.1;
}

.tef-stat span {
  font-size: 0.875rem;
  color: #64748b;
}

/* ----- Category chips ----- */
.tef-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tef-chip {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.8125rem;
  color: #334155;
}

.tef-chip:hover {
  border-color: #6ee7b7;
  color: #047857;
}

/* ----- Layout shells ----- */
.tef-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.tef-wrap-article {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .tef-wrap-article {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

.tef-toc {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
}

@media (min-width: 960px) {
  .tef-toc {
    position: sticky;
    top: 5.5rem;
  }
}

.tef-toc-title {
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
}

.tef-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tef-toc li {
  margin: 0.25rem 0;
}

.tef-toc a {
  color: #475569;
  display: block;
  padding: 0.2rem 0;
}

.tef-toc a:hover {
  color: #047857;
}

.tef-toc-related {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

.tef-toc-related a {
  font-size: 0.8125rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

/* ----- Article card ----- */
.tef-article {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.35rem 1.25rem 1.75rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  min-width: 0;
}

@media (min-width: 640px) {
  .tef-article {
    padding: 2rem 2.25rem 2.5rem;
  }
}

/* ----- Prose ----- */
.tef-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
}

.tef-prose > :first-child {
  margin-top: 0;
}

.tef-prose h2 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 2.1rem 0 0.75rem;
  scroll-margin-top: 5.5rem;
  line-height: 1.25;
}

.tef-prose h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 1.4rem 0 0.5rem;
  scroll-margin-top: 5.5rem;
}

.tef-prose p {
  margin: 0 0 1rem;
}

.tef-prose ul,
.tef-prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.tef-prose ul {
  list-style: disc;
}

.tef-prose ol {
  list-style: decimal;
}

.tef-prose li {
  margin: 0.4rem 0;
  padding-left: 0.15rem;
}

.tef-prose a {
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tef-prose a:hover {
  color: #065f46;
}

.tef-prose strong {
  color: #0f172a;
  font-weight: 600;
}

.tef-prose em {
  font-style: italic;
}

.tef-prose .lead {
  font-size: 1.12rem;
  color: #475569;
}

.tef-callout {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin: 0 0 1.5rem;
}

.tef-callout-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
  margin-bottom: 0.35rem;
}

.tef-callout p {
  margin: 0;
  color: #334155;
}

.tef-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
}

.tef-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 420px;
}

.tef-table th {
  text-align: left;
  background: #0f172a;
  color: #fff;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
}

.tef-table td {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: top;
}

.tef-table tr:nth-child(even) td {
  background: #f8fafc;
}

.tef-task {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin: 0.75rem 0 1.25rem;
}

.tef-task p {
  margin: 0;
}

.tef-pair {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.tef-pair-bad,
.tef-pair-good {
  border-radius: 1rem;
  padding: 0.95rem 1.05rem;
}

.tef-pair-bad {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.tef-pair-good {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.tef-pair-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.tef-pair-bad .tef-pair-label {
  color: #b91c1c;
}

.tef-pair-good .tef-pair-label {
  color: #047857;
}

.tef-pair p {
  margin: 0;
  color: #1e293b;
}

.tef-checklist {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 0 1.25rem;
}

.tef-checklist li {
  padding: 0.55rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin: 0.45rem 0 !important;
  background: #f8fafc;
  list-style: none;
}

.tef-cta-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 1.15rem;
  padding: 1.35rem 1.25rem;
  margin: 2rem 0 1.25rem;
}

.tef-cta-box .tef-cta-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  margin-bottom: 0.4rem;
}

.tef-cta-box h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.2rem;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
}

.tef-cta-box p {
  margin: 0 0 1rem;
  color: #cbd5e1;
}

.tef-cta-box .tef-actions {
  margin-top: 0;
}

.tef-cta-box .tef-btn-green {
  background: #10b981;
  color: #022c22;
}

.tef-cta-box .tef-btn-secondary {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.15);
  color: #fff;
}

.tef-disclaimer {
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.1rem;
  margin-top: 1.5rem;
}

/* ----- Prev / next ----- */
.tef-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tef-pager a {
  display: inline-flex;
  padding: 0.6rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #fff;
  font-size: 0.875rem;
  color: #334155;
}

.tef-pager a:hover {
  background: #f8fafc;
}

/* ----- Hub sections / cards ----- */
.tef-section {
  margin-bottom: 2.75rem;
}

.tef-section-head {
  margin-bottom: 1rem;
}

.tef-section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
  color: #0f172a;
}

.tef-section-head p {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.tef-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .tef-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tef-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tef-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.15rem 1.2rem 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-height: 100%;
}

.tef-card:hover {
  border-color: #6ee7b7;
  box-shadow: 0 10px 24px rgb(15 23 42 / 0.06);
  transform: translateY(-2px);
}

.tef-card-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #047857;
  margin-bottom: 0.45rem;
}

.tef-card-title {
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.tef-card-desc {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- Start here box ----- */
.tef-start {
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.tef-start-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.tef-start h2 {
  margin: 0 0 0.85rem;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 1.4rem;
  color: #0f172a;
}

.tef-start ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #334155;
}

.tef-start li {
  margin: 0.45rem 0;
}

.tef-start a {
  color: #047857;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----- Footer ----- */
.tef-footer {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 2rem 0;
  margin-top: 1rem;
}

.tef-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .tef-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.tef-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.tef-footer-brand img {
  width: 24px;
  height: 24px;
}

.tef-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.8rem;
}

.tef-footer-links a:hover {
  color: #fff;
}

.tef-footer-copy {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.75rem;
  color: #64748b;
}

/* ----- Homepage CTA band on main site ----- */
.tef-home-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.5rem;
  border-radius: 1.5rem;
  border: 2px solid #a7f3d0;
  background: linear-gradient(90deg, #ecfdf5, #fff);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .tef-home-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
