/* Talk Finance — native theme styles (Elementor/Wundermag free) */

:root {
  --tf-container: 1140px;
  --tf-gutter: 20px;
  --tf-sidebar: 300px;
  --tf-gap: 40px;
  --tf-black: #000;
  --tf-hover: #3a3c3c;
  --tf-body: #696969;
  --tf-meta: rgba(72, 72, 72, 0.5);
  --tf-tagline: #999;
  --tf-line: #e8e8e8;
  --tf-input-bg: #f3f3f3;
  --tf-footer-bg: #040404;
  --tf-footer-muted: rgba(118, 118, 118, 0.75);
  --tf-font-heading: "Outfit", system-ui, -apple-system, sans-serif;
  --tf-font-body: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--tf-font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--tf-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tf-black); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--tf-hover); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tf-font-heading);
  color: var(--tf-black);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: 42px; letter-spacing: -2px; }
h2 { font-size: 36px; letter-spacing: -1.4px; }
h3 { font-size: 26px; letter-spacing: -1px; }
h4 { font-size: 19px; letter-spacing: -1px; }
h5 { font-size: 14px; }
p { margin: 0 0 1.1em; line-height: 26px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.tf-container {
  width: 100%;
  max-width: var(--tf-container);
  margin: 0 auto;
  padding: 0 var(--tf-gutter);
}

/* ========== Header ========== */
.tf-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 48px;
  padding: 8px var(--tf-gutter);
}

.tf-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.tf-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--tf-black);
  transition: background .2s;
}
.tf-menu-toggle:hover span { background: #444; }

.tf-brand {
  text-align: center;
  padding: 14px var(--tf-gutter) 8px;
}
.tf-brand__title {
  font-family: var(--tf-font-heading);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.15;
  margin: 0;
  color: var(--tf-black);
}
.tf-brand__title a { color: inherit; }
.tf-brand__tagline {
  display: block;
  margin-top: 5px;
  font-family: var(--tf-font-heading);
  font-size: 12.1px;
  font-weight: 400;
  color: var(--tf-tagline);
  letter-spacing: .02em;
}

.tf-nav {
  border-bottom: 1px solid transparent;
  margin-bottom: 28px;
}
.tf-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 36px;
  list-style: none;
  margin: 0;
  padding: 10px var(--tf-gutter) 18px;
}
.tf-nav__list a {
  font-family: var(--tf-font-heading);
  font-size: 12.6px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 46px;
  color: var(--tf-black);
}
.tf-nav__list a:hover,
.tf-nav__list .current-menu-item > a { color: #444; }

/* Mobile drawer */
.tf-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(300px, 86vw);
  background: #fff;
  z-index: 1000;
  transform: translateX(-105%);
  transition: transform .28s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,.08);
  padding: 72px 28px 40px;
  overflow-y: auto;
}
.tf-drawer.is-open { transform: translateX(0); }
.tf-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s;
}
.tf-drawer__overlay.is-open { opacity: 1; visibility: visible; }
.tf-drawer__list { list-style: none; margin: 0; padding: 0; }
.tf-drawer__list a {
  display: block;
  font-family: var(--tf-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 2.2;
  text-transform: uppercase;
  letter-spacing: .04em;
}
body.tf-nav-open { overflow: hidden; }

/* ========== Layout ========== */
.tf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--tf-sidebar);
  gap: var(--tf-gap);
  align-items: start;
  padding-bottom: 60px;
}
.tf-main { min-width: 0; }
.tf-sidebar { min-width: 0; }

/* ========== Cards ========== */
.tf-card { margin-bottom: 36px; }

/* Standout / featured with bg image */
.tf-card--standout {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111 center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.tf-card--standout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%);
}
.tf-card--standout .tf-card__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 32px;
  max-width: 720px;
}
.tf-card--standout .tf-card__cat,
.tf-card--standout .tf-card__cat a,
.tf-card--standout .tf-card__meta,
.tf-card--standout .tf-card__meta a { color: rgba(255,255,255,.78); }
.tf-card--standout .tf-card__title,
.tf-card--standout .tf-card__title a {
  color: #fff;
  font-size: 32px;
  letter-spacing: -1.6px;
  line-height: 1.15;
}
.tf-card--standout .tf-card__title a:hover { color: #eee; }

/* List card: media + content */
.tf-card--list {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.tf-card__media {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 4 / 3;
}
.tf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tf-card__cat {
  font-family: var(--tf-font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--tf-meta);
  margin: 0 0 8px;
  letter-spacing: -.2px;
}
.tf-card__cat .in-cat { margin-right: .25em; }
.tf-card__title {
  font-family: var(--tf-font-heading);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 0 0 10px;
}
.tf-card__title a { color: var(--tf-black); }
.tf-card__meta {
  font-family: var(--tf-font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--tf-meta);
  margin: 0 0 12px;
  letter-spacing: -.2px;
}
.tf-card__meta span + span::before {
  content: "";
  display: inline-block;
  width: .75em;
}
.tf-card__excerpt {
  color: var(--tf-body);
  font-size: 15px;
  line-height: 26px;
  margin: 0 0 14px;
}
.tf-card__more {
  display: inline-block;
  font-family: var(--tf-font-heading);
  font-size: 12.1px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--tf-black);
  border-bottom: 1px solid var(--tf-black);
  padding-bottom: 2px;
}
.tf-card__more:hover { color: var(--tf-hover); border-color: var(--tf-hover); }

/* ========== Sidebar widgets ========== */
.tf-widget { margin-bottom: 40px; }
.tf-widget__title {
  font-family: var(--tf-font-heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tf-line);
  color: var(--tf-black);
}

.tf-newsletter input[type="email"] {
  width: 100%;
  border: 0;
  background: var(--tf-input-bg);
  padding: 14px 16px;
  font-family: var(--tf-font-body);
  font-size: 15px;
  font-style: italic;
  color: #888;
  margin-bottom: 10px;
}
.tf-newsletter button,
.tf-btn {
  display: block;
  width: 100%;
  border: 0;
  background: var(--tf-black);
  color: #fff;
  font-family: var(--tf-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 16px;
  cursor: pointer;
  transition: background .2s;
}
.tf-newsletter button:hover,
.tf-btn:hover { background: var(--tf-hover); }

.tf-latest { list-style: none; margin: 0; padding: 0; }
.tf-latest__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  margin-bottom: 18px;
  align-items: start;
}
.tf-latest__thumb img,
.tf-latest__placeholder {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #eee;
  display: block;
}
.tf-latest__title {
  display: block;
  font-family: var(--tf-font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.3;
  color: var(--tf-black);
  margin-bottom: 4px;
}
.tf-latest__date {
  font-family: var(--tf-font-body);
  font-size: 12px;
  font-style: italic;
  color: var(--tf-meta);
}

/* ========== Pagination ========== */
.tf-pagination { margin: 48px 0 20px; }
.tf-pagination__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-family: var(--tf-font-heading);
  font-weight: 700;
}
.tf-pagination__links a,
.tf-pagination__links span {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--tf-black);
}
.tf-pagination__links .current { color: var(--tf-meta); }
.tf-pagination__links .prev,
.tf-pagination__links .next {
  font-size: 13.1px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* ========== Single article ========== */
.tf-single__header { text-align: center; margin-bottom: 28px; }
.tf-single__title {
  font-size: 42px;
  letter-spacing: -2px;
  margin: 10px 0 14px;
}
.tf-single__hero {
  margin: 0 0 32px;
  background: #f4f4f4;
}
.tf-single__hero img { width: 100%; height: auto; }
.tf-article {
  font-size: 15px;
  line-height: 26px;
  color: var(--tf-body);
  max-width: 720px;
  margin: 0 auto 48px;
}
.tf-article > *:first-child { margin-top: 0; }
.tf-article h2,
.tf-article h3,
.tf-article h4 { color: var(--tf-black); margin-top: 1.4em; }
.tf-article a { text-decoration: underline; text-underline-offset: 2px; }
.tf-article figure { margin: 1.6em 0; }
.tf-article figcaption {
  font-size: 13px;
  font-style: italic;
  color: var(--tf-meta);
  margin-top: 8px;
}
.tf-article blockquote {
  margin: 1.6em 0;
  padding: 0;
  border: 0;
}
.tf-article blockquote p {
  font-family: var(--tf-font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 34px;
  color: var(--tf-black);
}
.tf-article ul,
.tf-article ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.tf-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 14px;
}
.tf-article th,
.tf-article td {
  border: 1px solid var(--tf-line);
  padding: 8px 10px;
  text-align: left;
}
.tf-article .wp-block-embed,
.tf-article iframe { max-width: 100%; }

.tf-related { margin: 48px 0; }
.tf-related__title {
  font-size: 19px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tf-line);
}
.tf-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tf-related__item .tf-card__title { font-size: 18px; letter-spacing: -.8px; }

.tf-breadcrumbs {
  font-size: 13px;
  color: var(--tf-meta);
  margin-bottom: 16px;
}
.tf-breadcrumbs a { color: var(--tf-meta); }

/* Archive headers */
.tf-archive-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tf-line);
}
.tf-archive-header h1 {
  font-size: 36px;
  letter-spacing: -1.4px;
}

/* Search */
.tf-search-form { display: flex; gap: 8px; margin-bottom: 28px; }
.tf-search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--tf-line);
  padding: 12px 14px;
  font-family: var(--tf-font-body);
  font-size: 15px;
}
.tf-search-form button {
  border: 0;
  background: var(--tf-black);
  color: #fff;
  padding: 0 18px;
  font-family: var(--tf-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
}

/* 404 */
.tf-404 { text-align: center; padding: 60px 0 80px; }
.tf-404 h1 { font-size: 48px; }

/* ========== Footer ========== */
.tf-footer {
  background: var(--tf-footer-bg);
  color: #fff;
  padding: 72px 0 40px;
  margin-top: 40px;
}
.tf-footer a { color: #fff; }
.tf-footer a:hover { color: #aaa; }
.tf-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.tf-footer-widget__title {
  font-family: var(--tf-font-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
}
.tf-footer-widget p,
.tf-footer-widget li {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.78);
}
.tf-footer-widget ul { list-style: none; margin: 0; padding: 0; }
.tf-footer__copy {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  font-size: 13px;
  color: var(--tf-footer-muted);
  text-align: center;
}
.tf-footer__copy a { color: var(--tf-footer-muted); }

/* Gutenberg align helpers */
.alignwide { max-width: 960px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .tf-brand__title { font-size: 44px; }
  .tf-layout { grid-template-columns: 1fr; }
  .tf-sidebar { order: 2; max-width: 480px; }
  .tf-card--list { grid-template-columns: 200px 1fr; gap: 20px; }
  .tf-card--standout .tf-card__title,
  .tf-card--standout .tf-card__title a { font-size: 28px; }
  .tf-related__grid { grid-template-columns: 1fr 1fr; }
  .tf-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .tf-nav__list { display: none; }
  .tf-brand__title { font-size: 36px; letter-spacing: -1.5px; }
  .tf-card--list { grid-template-columns: 1fr; }
  .tf-card__media { aspect-ratio: 16 / 10; }
  .tf-card__title { font-size: 24px; letter-spacing: -1px; }
  .tf-card--standout { min-height: 300px; }
  .tf-card--standout .tf-card__title,
  .tf-card--standout .tf-card__title a { font-size: 24px; }
  .tf-single__title { font-size: 30px; letter-spacing: -1.2px; }
  .tf-article blockquote p { font-size: 22px; line-height: 28px; }
  .tf-related__grid { grid-template-columns: 1fr; }
  .tf-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .tf-footer { padding-top: 56px; }
}

@media (max-width: 390px) {
  .tf-brand__title { font-size: 30px; }
  .tf-brand__tagline { font-size: 10.5px; }
  .tf-card--standout { min-height: 260px; }
}
