
/* Scoped styles under one main class */
.tfa-page { --blue:#0a63b2; --blue-dark:#0a4e8a; --gold:#cca647; --text:#222; --muted:#6b7280; --bg:#ffffff; --footer-bg:#111; --footer-card:#181818; }

/* Reset-ish inside scope */
.tfa-page * { box-sizing: border-box; }
.tfa-page img { max-width: 100%; display: block; }

/* Top welcome bar */
.tfa-page .topbar {
  background: #f2f2f2;
  color: #555;
  text-align: center;
  font: 600 16px/44px system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Header */
.tfa-page header {
  background: var(--bg);
  border-bottom: 1px solid #e5e7eb;
}
.tfa-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.tfa-page .header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}
.tfa-page .logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tfa-page .site-title {
  display: none; /* purely decorative, logo already has text */
}
/* Nav */
.tfa-page nav {
  margin-left: auto;
}
.tfa-page .menu {
  list-style: none;
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
}
.tfa-page .menu a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 8px 10px;
  border-radius: 3px;
  transition: background .2s ease, color .2s ease;
}
.tfa-page .menu a:hover { color: var(--blue-dark); background: rgba(10,99,178,.08); }
.tfa-page .menu .current a { background: var(--blue); color: #fff; }

/* Divider */
.tfa-page .divider { height: 1px; background: #e5e7eb; }

/* Demo content area */
.tfa-page .content {
  padding: 28px 0 60px;
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.tfa-page .content .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}
.tfa-page .content .col-8 { grid-column: span 8; }
.tfa-page .content .col-4 { grid-column: span 4; }

/* Typography */
.tfa-page h1, .tfa-page h2, .tfa-page h3, .tfa-page h4, .tfa-page h5, .tfa-page h6 {
  color: #0f172a;
  margin: 1.4em 0 .6em;
  line-height: 1.25;
  font-weight: 800;
}
.tfa-page h1 { font-size: 42px; }
.tfa-page h2 { font-size: 32px; }
.tfa-page h3 { font-size: 24px; }
.tfa-page p { margin: 1em 0; color: #1f2937; }

/* Lists */
.tfa-page ul, .tfa-page ol { margin: .8em 0 1.2em 1.1em; }
.tfa-page ul { list-style: disc; }
.tfa-page ol { list-style: decimal; }
.tfa-page li { margin: .3em 0; }
.tfa-page li::marker { color: var(--blue); }

/* Tables */
.tfa-page table { width: 100%; border-collapse: collapse; margin: 1rem 0; background: #fff; }
.tfa-page th, .tfa-page td { border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; }
.tfa-page thead th { background: #f3f4f6; font-weight: 800; }
.tfa-page tbody tr:nth-child(even) { background: #fafafa; }

/* Footer */
.tfa-page footer {
  background: var(--footer-bg);
  color: #e5e7eb;
  margin-top: 30px;
}
.tfa-page .footer-inner {
  padding: 34px 0 22px;
}
.tfa-page .footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
}
.tfa-page .footer-card {
  grid-column: span 3;
  background: var(--footer-card);
  padding: 22px;
  border-radius: 8px;
}
.tfa-page footer h3 {
  color: #fff;
  margin: 0 0 .6em;
  font-size: 22px;
}
.tfa-page .footer small { color: #9ca3af; }
.tfa-page .subscribe input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #374151;
  background: #0f1113;
  color: #e5e7eb;
  border-radius: 4px;
  margin: 10px 0;
}
.tfa-page .subscribe button {
  padding: 10px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.tfa-page .copyright {
  background: #0b0b0b;
  color: #c7c7c7;
  padding: 12px 0;
  font-size: 14px;
  text-align: left;
}
@media (max-width: 900px) {
  .tfa-page .content .grid, .tfa-page .footer-grid { grid-template-columns: repeat(6, 1fr); }
  .tfa-page .content .col-8 { grid-column: span 6; }
  .tfa-page .content .col-4 { grid-column: span 6; }
  .tfa-page .footer-card { grid-column: span 6; }
}
