/*
Theme Name: Tree Fluent Glass
Theme URI: https://treefluent.com
Description: Child theme for Tree Fluent as a painted-glass ideas publication. Parent is Smart Mag. Historical tree URLs stay published; this layer restyles public chrome.
Author: Tree Fluent
Template: smart-mag
Version: 0.8.0
License: GNU General Public License v2 or later
Text Domain: treefluent-glass
*/

/* -------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------- */
:root {
  --tf-paper: #F7F1E8;
  --tf-ink: #1F1A17;
  --tf-muted: #1F1A17;
  --tf-paint: #9A3F16;
  --tf-teal: #2F6F7A;
  --tf-card: #FFFCF7;
  --tf-rule: #E4D9CC;
  --tf-heading: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --tf-body: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tf-radius: 12px;
  --tf-radius-sm: 8px;
  --tf-measure: 65ch;
  --tf-wrap: 1120px;
  --c-main: #9A3F16;
  --c-main-rgb: 154, 63, 22;
}

/* -------------------------------------------------------------------------
   Base: paper ground, ink text, 18px / 17px min
   Never gray on beige. If it sits on #F7F1E8 it is ink or paint.
   ------------------------------------------------------------------------- */
html {
  background: var(--tf-paper);
  --nav-text: 17px;
}

body,
body.main,
.main-wrap,
.main-body,
#main-wrap,
.site-wrapper,
.main-wrap > .wrap,
.content-wrap {
  background: var(--tf-paper) !important;
  color: var(--tf-ink);
  font-family: var(--tf-body);
  font-size: 18px;
  line-height: 1.6;
}

body {
  min-width: 0;
}

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

h1, h2, h3, h4, h5, h6,
.heading,
.post-title,
.entry-title,
.main-heading,
.the-post-header .post-title,
.block-head,
.block-head-e .heading,
.block-head-b .heading {
  font-family: var(--tf-heading);
  color: var(--tf-ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: none;
}

a {
  color: var(--tf-paint);
  text-decoration: underline;
}

a:hover,
a:focus {
  color: var(--tf-ink);
}

/* Kill leftover mint / forest greens from Smart Mag (#7eae4a and kin) */
.cat-label,
.term-badge,
.post-cat,
.meta-item.cat,
.ts-label,
.s-label,
.main-color,
.has-main-color,
.color,
a.cat-link,
.block-head-e,
.block-head-e .heading,
.block-head-b .heading {
  background-image: none;
}

.cat-label,
.term-badge,
.post-cat a,
.meta-item.cat a,
a.cat-link {
  background: var(--tf-paint) !important;
  color: var(--tf-paper) !important;
  border-color: var(--tf-paint) !important;
  text-decoration: none;
}

/* Parent CSS variables that still carry the demo green */
:root,
.main-wrap,
.s-head,
body {
  --c-main: #9A3F16 !important;
  --main-color: #9A3F16 !important;
}

/* Kill Smart Mag muted gray on paper */
body,
.main-wrap,
.the-post-body,
.post-content,
.entry-content,
.single-content,
.page-content,
.excerpt,
.post-excerpt,
.listing .excerpt,
.post-meta,
.s-muted,
.text-muted,
.tf-lede,
.tf-section-lede,
.tf-card p,
.tf-card-blurb,
.tf-hub-card .tf-hub-blurb,
.tf-note,
.tf-descriptor,
.tf-hub-intro p {
  color: var(--tf-ink) !important;
}

.the-post-body a,
.post-content a,
.entry-content a,
.tf-note a,
.tf-hub-intro a,
.tf-hub-close a {
  color: #9A3F16 !important;
  text-decoration: underline !important;
}

/* -------------------------------------------------------------------------
   Header: paper bar on ALL breakpoints, including parent .s-dark mid-bar.
   Parent sets --c-bg to black on .smart-head-mid.s-dark; override the vars.
   mix-blend-mode:multiply on a paper PNG yields ~#EFE3D3; do not use it.
   ------------------------------------------------------------------------- */
html body .smart-head,
html body .smart-head-main,
html body .smart-head-mobile,
html body .smart-head-top,
html body .smart-head-mid,
html body .smart-head-bot,
html body .smart-head-row,
html body .smart-head-row.s-dark,
html body .smart-head-row.smart-head-mid,
html body .smart-head-mid.s-dark,
html body .smart-head-top.s-dark,
html body .s-dark.smart-head-row,
html body .s-dark .smart-head-mid,
html body .s-dark .smart-head-row,
html body .smart-head.s-dark,
html body #smart-head,
html body #smart-head-mobile,
html body #smart-head-mobile .smart-head-row,
html body #smart-head-mobile .smart-head-mid,
html body #smart-head-mobile .smart-head-mid.s-dark,
html body .main-head,
html body header.main-header,
html body .s-head,
html body .s-head-inner {
  --c-bg: #F7F1E8 !important;
  --c-contrast-0: #F7F1E8 !important;
  --c-contrast-10: #F7F1E8 !important;
  --c-contrast-50: #F7F1E8 !important;
  --c-contrast-75: #F7F1E8 !important;
  --c-contrast-100: #E4D9CC !important;
  --c-contrast-800: #1F1A17 !important;
  --c-contrast-850: #1F1A17 !important;
  --c-contrast-900: #1F1A17 !important;
  --c-contrast: #1F1A17 !important;
  --c-icons: #1F1A17 !important;
  --c-hamburger: #1F1A17 !important;
  --c-search-icon: #1F1A17 !important;
  --c-links: #1F1A17 !important;
  --c-headings: #1F1A17 !important;
  --c-nav: #1F1A17 !important;
  --nav-text: 17px;
  background: #F7F1E8 !important;
  background-color: #F7F1E8 !important;
  background-image: none !important;
  color: #1F1A17 !important;
  border-color: var(--tf-rule) !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.smart-head-bot,
.smart-head-row.smart-head-bot {
  border-bottom: 1px solid var(--tf-rule) !important;
}

.smart-head-mid,
.smart-head-row.smart-head-mid,
.smart-head-mobile .smart-head-mid,
.logo,
.logo-is-image,
.ts-logo {
  overflow: visible !important;
  height: auto !important;
  min-height: 0;
}

.smart-head-mid,
.smart-head-row.smart-head-mid {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Logo: wine-glass mark. Tagline is painted on the glass. No printed descriptor. */
.smart-head .logo-link,
.smart-head-mobile .logo-link,
#smart-head .logo-link,
#smart-head-mobile .logo-link,
.tf-logo.logo-link {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-decoration: none;
  color: var(--tf-ink) !important;
  height: auto;
  overflow: visible !important;
}

.tf-logo img,
.tf-logo-img,
.logo-link img.tf-logo-img,
.logo-link img.logo-image,
.logo-link img,
html body .smart-head .logo-link img,
html body .smart-head-mobile .logo-link img,
html body .s-dark .logo-link img,
html body #smart-head-mobile img.tf-logo-img {
  display: block !important;
  background: #F7F1E8 !important;
  background-color: #F7F1E8 !important;
  mix-blend-mode: normal;
  height: 168px;
  width: auto;
  max-height: 168px;
  max-width: none;
  object-fit: contain;
  box-shadow: none !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 0;
  outline: 0;
}

.tf-descriptor,
.smart-head .tf-descriptor,
.smart-head .logo-link > .tf-descriptor,
.smart-head-mobile .tf-descriptor,
.s-dark .tf-descriptor,
.logo-is-image .tf-descriptor {
  display: none !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
  margin: 0;
  font-family: var(--tf-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--tf-ink) !important;
  line-height: 1.3 !important;
  white-space: nowrap;
}

.smart-head .logo-link > h1,
.smart-head .logo-link > span:not(.tf-descriptor),
.smart-head-mobile .logo-link > h1,
.smart-head-mobile .logo-link > span:not(.tf-descriptor) {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 0;
  line-height: 0;
}

/* Hide the old tree PNG if anything still points at it */
img[src*="Tree-Fluent.png"],
img[src*="tree-fluent.png"],
img[src*="Tree-Fluent"],
.main-footer img[src*="Tree-Fluent"] {
  display: none !important;
}

/* Nav: Title Case is set in the menu. Do not leave sentence case via CSS. */
.navigation .menu > li > a,
.s-nav .menu > li > a,
.main-menu > li > a,
.navigation.sticky .menu a,
.smart-head-bot .navigation .menu > li > a,
.smart-head-bot .s-nav .menu > li > a,
.smart-head-bot .main-menu > li > a,
.off-canvas .menu a {
  color: var(--tf-ink) !important;
  font-family: var(--tf-body);
  font-size: 17px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.navigation .menu > li > a:hover,
.s-nav .menu > li > a:hover,
.main-menu > li > a:hover {
  color: var(--tf-paint) !important;
}

.navigation .menu .sub-menu,
.s-nav .sub-menu {
  background: var(--tf-card);
  border: 1px solid var(--tf-rule);
  border-radius: var(--tf-radius-sm);
  box-shadow: none;
}

.navigation .menu .sub-menu a,
.s-nav .sub-menu a {
  color: var(--tf-ink);
  font-size: 15px;
  text-transform: none !important;
  text-decoration: none;
}

/* Off-canvas / hamburger / search: ink on paper, not white on dark */
html body .off-canvas,
html body .off-canvas-content,
html body .mobile-menu,
html body .s-offcanvas,
html body .mobile-menu-container,
html body .mobile-menu-container.off-canvas,
html body .mobile-menu-container.off-canvas.s-dark,
html body #off-canvas {
  --c-bg: #F7F1E8 !important;
  --c-icons: #1F1A17 !important;
  --c-hamburger: #1F1A17 !important;
  --c-contrast-800: #1F1A17 !important;
  --c-contrast-900: #1F1A17 !important;
  background: #F7F1E8 !important;
  background-color: #F7F1E8 !important;
  color: #1F1A17 !important;
}

html body .smart-head .search-icon,
html body .smart-head-mobile .search-icon,
html body .smart-head-row .search-icon,
html body .s-dark .search-icon,
html body #smart-head-mobile .search-icon,
html body .offcanvas-toggle,
html body .smart-head .offcanvas-toggle,
html body .smart-head-mobile .offcanvas-toggle {
  color: #1F1A17 !important;
  background: transparent !important;
}

html body .hamburger-icon .inner,
html body .hamburger-icon .inner:before,
html body .hamburger-icon .inner:after,
html body .smart-head .hamburger-icon .inner,
html body .smart-head .hamburger-icon .inner:before,
html body .smart-head .hamburger-icon .inner:after,
html body .smart-head-mobile .hamburger-icon .inner,
html body .smart-head-mobile .hamburger-icon .inner:before,
html body .smart-head-mobile .hamburger-icon .inner:after,
html body .s-dark .hamburger-icon .inner,
html body .s-dark .hamburger-icon .inner:before,
html body .s-dark .hamburger-icon .inner:after {
  background-color: #1F1A17 !important;
  background: #1F1A17 !important;
}

html body .off-canvas .close,
html body .off-canvas .close i,
html body #off-canvas .close,
html body .mobile-menu a {
  color: #1F1A17 !important;
}

/* -------------------------------------------------------------------------
   Front page wrap
   ------------------------------------------------------------------------- */
.tf-home,
.tf-hub,
.main-full.tf-home,
.main-full.tf-hub {
  max-width: var(--tf-wrap);
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.tf-section-title {
  font-family: var(--tf-heading) !important;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 0 0 0.35em;
  color: var(--tf-ink);
}

.tf-section-lede {
  color: var(--tf-ink);
  margin: 0 0 1.5rem;
  max-width: var(--tf-measure);
  font-size: 1.05rem;
}

.tf-home-section {
  margin: 2.75rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--tf-rule);
}

.tf-home-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* -------------------------------------------------------------------------
   Hero: two columns on desktop, stacked on mobile
   ------------------------------------------------------------------------- */
.tf-hero {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.95fr);
  gap: 2.25rem 2.5rem;
  align-items: center;
  padding: 2.25rem 0 0.5rem;
  max-width: none;
}

.tf-hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 0 0 0.5em;
  max-width: 18ch;
}

.tf-hero-copy .tf-lede,
.tf-hero p.tf-lede {
  font-size: 1.125rem;
  color: var(--tf-ink);
  margin: 0 0 1.25rem;
  max-width: 38ch;
  line-height: 1.5;
}

.tf-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
}

.tf-hero-links a {
  font-weight: 600;
  color: var(--tf-paint);
  text-decoration: none;
  border-bottom: 1px solid var(--tf-paint);
  padding-bottom: 1px;
}

.tf-hero-links a:hover,
.tf-hero-links a:focus {
  color: var(--tf-ink);
  border-bottom-color: var(--tf-ink);
}

.tf-hero-photo {
  margin: 0;
}

.tf-hero-img,
.tf-hero-photo img,
.tf-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: none;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* -------------------------------------------------------------------------
   Hub grid and project cards: even 3x2, never 3+3+2
   ------------------------------------------------------------------------- */
.tf-hub-grid,
.tf-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin: 0.5rem 0 0;
}

.tf-card,
.tf-hub-card {
  background: var(--tf-card);
  border: 1px solid var(--tf-rule);
  border-radius: var(--tf-radius);
  overflow: hidden;
  color: var(--tf-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  min-width: 0;
}

.tf-card:hover,
.tf-card:focus,
.tf-hub-card:hover,
.tf-hub-card:focus {
  border-color: var(--tf-paint);
  color: var(--tf-ink);
}

.tf-card-photo,
.tf-card img,
.tf-hub-card img,
.tf-project-grid img,
.tf-pin img,
.tf-pin .tf-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--tf-rule);
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

.tf-card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.tf-card h2,
.tf-card h3,
.tf-hub-title,
.tf-card-title {
  font-family: var(--tf-heading);
  font-size: 1.15rem;
  margin: 0 0 0.3em;
  color: var(--tf-ink);
  line-height: 1.2;
}

.tf-card p,
.tf-card-blurb,
.tf-hub-card .tf-hub-blurb {
  margin: 0;
  color: var(--tf-ink);
  font-size: 15px;
  line-height: 1.45;
}

/* -------------------------------------------------------------------------
   Hub page: teaching layout
   ------------------------------------------------------------------------- */
.tf-hub-hero {
  margin: 0 0 1.75rem;
}

.tf-hub-hero-img,
.tf-hub-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  aspect-ratio: 16 / 7;
}

.tf-hub-intro {
  max-width: var(--tf-measure);
  margin: 0 0 2rem;
}

.tf-hub,
.tf-hub-intro {
  --h-font: var(--tf-heading);
  --title-font: var(--tf-heading);
}

.tf-hub-intro h1,
.tf-hub h1,
.tf-section-title,
.tf-hub .tf-section-title,
.tf-hub h2.tf-section-title,
#tf-start-heading,
#tf-before-heading,
#tf-more-heading {
  font-family: var(--tf-heading) !important;
  font-weight: 700;
}

.tf-hub-intro h1 {
  font-family: var(--tf-heading) !important;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: 0 0 0.55em;
}

.tf-hub-intro a {
  color: #9A3F16 !important;
  text-decoration: underline !important;
}

.tf-hub-intro p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--tf-ink);
  margin: 0 0 1em;
}

.tf-hub-intro p:last-child {
  margin-bottom: 0;
}

.tf-start-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.15fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--tf-card);
  border: 1px solid var(--tf-rule);
  border-radius: var(--tf-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--tf-ink);
  padding: 0;
}

.tf-start-card:hover,
.tf-start-card:focus {
  border-color: var(--tf-paint);
  color: var(--tf-ink);
}

.tf-start-photo,
.tf-start-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: var(--tf-rule);
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

.tf-start-body {
  padding: 1.25rem 1.35rem 1.4rem 0.25rem;
}

.tf-start-body .tf-card-title {
  font-size: 1.45rem;
  margin-bottom: 0.5em;
}

.tf-start-body p {
  margin: 0 0 0.85em;
  color: var(--tf-ink);
  font-size: 17px;
  line-height: 1.55;
}

.tf-start-link {
  font-weight: 600;
  color: var(--tf-paint) !important;
  text-decoration: underline;
}

.tf-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tf-note-card {
  background: #FFFCF7;
  border: 1px solid #E4D9CC;
  border-radius: var(--tf-radius-sm);
  padding: 1rem 1.1rem 1.15rem;
  color: var(--tf-ink);
}

.tf-note-card h3 {
  font-family: var(--tf-heading);
  font-size: 1.05rem;
  margin: 0 0 0.4em;
  color: var(--tf-ink);
}

.tf-note-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tf-ink);
}

.tf-note {
  max-width: var(--tf-measure);
  color: var(--tf-ink);
  font-size: 17px;
  line-height: 1.6;
}

.tf-hub-close {
  margin-top: 2.5rem;
}

/* -------------------------------------------------------------------------
   Article readability
   ------------------------------------------------------------------------- */
.the-post-body,
.post-content,
.entry-content,
.single-content,
.page-content {
  font-size: 19px;
  line-height: 1.65;
  color: var(--tf-ink);
  max-width: var(--tf-measure);
}

.the-post-body p,
.post-content p,
.entry-content p {
  margin-bottom: 1.15em;
}

.the-post-header .post-title,
.single .post-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

/* Buttons */
.tf-btn,
.wp-block-button__link {
  background: var(--tf-paint);
  color: var(--tf-paper);
  border-radius: var(--tf-radius-sm);
  border: 0;
  box-shadow: none;
  font-family: var(--tf-body);
  font-weight: 600;
  padding: 0.65em 1.15em;
  text-decoration: none;
}

.tf-btn:hover {
  color: var(--tf-paper);
  filter: brightness(0.95);
}

/* -------------------------------------------------------------------------
   Footer: dark ink, paper text. Do not paint footer .ts-contain paper.
   ------------------------------------------------------------------------- */
.main-footer,
.main-footer.s-dark,
.s-footer,
footer.main-footer,
.upper-footer,
.lower-footer,
.classic-footer-upper,
.classic-footer-lower,
.main-footer .ts-contain,
.main-footer .wrap,
.main-footer .widgets,
.lower-foot,
.footer-info,
.copyright {
  background: #1F1A17 !important;
  background-color: #1F1A17 !important;
  color: #F7F1E8 !important;
  border-color: #3A322C !important;
}

.main-footer,
.main-footer.s-dark {
  --c-contrast-600: #F7F1E8;
  --c-contrast-650: #F7F1E8;
  --c-contrast-700: #F7F1E8;
  --c-contrast-800: #F7F1E8;
  --c-contrast-850: #F7F1E8;
  --c-contrast-900: #F7F1E8;
  --c-contrast: #F7F1E8;
  --c-headings: #F7F1E8;
  --c-links: #F7F1E8;
  --c-excerpts: #F7F1E8;
  --c-nav: #F7F1E8;
  --c-block: #F7F1E8;
  --footer-bg: #1F1A17;
  --footer-lower-bg: #1F1A17;
  --c-rgba: 247, 241, 232;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  border-top: 0;
  font-size: 16px;
}

.main-footer a,
.s-footer a,
.main-footer .menu a,
.lower-footer a,
.copyright a,
.tf-hub-list a {
  color: #F7F1E8 !important;
  text-decoration: underline;
}

.main-footer a:hover,
.s-footer a:hover,
.main-footer .menu a:hover {
  color: #F4B183 !important;
}

.main-footer .widget-title,
.main-footer .widget-title .heading,
.s-footer .widget-title,
.main-footer .block-head .heading,
.main-footer h5.heading,
.main-footer .post-title,
.main-footer .post-title a {
  font-family: var(--tf-heading);
  color: #F7F1E8 !important;
  font-size: 1.15rem;
  text-transform: none;
}

.main-footer .bunyad-widget-about,
.main-footer .widget_text,
.main-footer .textwidget,
.main-footer .about-text,
.main-footer .base-text,
.main-footer p {
  color: #F7F1E8 !important;
  line-height: 1.55;
}

.main-footer .tf-hub-list,
.tf-hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-hub-list li {
  margin: 0 0 0.4em;
}

.tf-hub-list a {
  text-decoration: none;
}

.lower-footer,
.classic-footer-lower,
.footer-info,
.copyright {
  color: #F7F1E8 !important;
  border-top: 1px solid #3A322C;
  font-size: 14px;
}

.main-footer .image-logo,
.s-footer .image-logo,
.bunyad-widget-about .image-logo {
  display: none;
}

/* -------------------------------------------------------------------------
   Homepage Elementor leftovers (front-page.php replaces the canvas)
   ------------------------------------------------------------------------- */
body.tf-front .elementor-4893,
body.home .elementor {
  display: none;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tf-hub-grid,
  .tf-project-grid,
  .tf-notes {
    grid-template-columns: repeat(2, 1fr);
  }

  .tf-hero,
  .tf-start-card {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 782px) {
  body {
    font-size: 18px;
  }
  .navigation .menu > li > a,
  .s-nav .menu > li > a,
  .main-menu > li > a,
  .off-canvas .menu a {
    font-size: 16px !important;
    font-weight: 600 !important;
  }

  .tf-hero,
  .tf-start-card {
    grid-template-columns: 1fr;
    padding: 1.25rem 0 0.25rem;
    gap: 1.25rem;
  }

  .tf-start-body {
    padding: 0 1rem 1.15rem;
  }

  .tf-hero-copy h1 {
    max-width: none;
  }

  .tf-hero-copy .tf-lede {
    max-width: none;
  }

  .tf-hub-grid,
  .tf-project-grid,
  .tf-notes {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tf-logo img,
  .tf-logo-img,
  .logo-link img.tf-logo-img,
  .logo-link img.logo-image,
  .logo-link img {
    height: 112px;
    max-height: 112px;
    width: auto;
  }

  .tf-descriptor,
  .smart-head .tf-descriptor,
  .smart-head-mobile .tf-descriptor {
    font-size: 13px !important;
    white-space: normal;
  }

  .tf-home,
  .tf-hub {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tf-hub-hero-img,
  .tf-hub-hero img {
    max-height: 240px;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 783px) and (max-width: 1024px) {
  .tf-hub-grid,
  .tf-project-grid,
  .tf-notes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------------------------
   Header paper lock: last in file so it beats parent .s-dark --c-bg
   ------------------------------------------------------------------------- */
@media (max-width: 940px) {
  html body .smart-head-mobile,
  html body .smart-head-mobile .smart-head-row,
  html body .smart-head-mobile .smart-head-mid,
  html body .smart-head-mobile .smart-head-row.s-dark,
  html body .smart-head-mobile .smart-head-mid.s-dark,
  html body #smart-head-mobile,
  html body #smart-head-mobile .smart-head-row,
  html body #smart-head-mobile .inner {
    --c-bg: #F7F1E8 !important;
    --c-icons: #1F1A17 !important;
    --c-hamburger: #1F1A17 !important;
    --c-search-icon: #1F1A17 !important;
    --c-contrast-0: #F7F1E8 !important;
    --c-contrast-800: #1F1A17 !important;
    --c-contrast-900: #1F1A17 !important;
    background: #F7F1E8 !important;
    background-color: #F7F1E8 !important;
    color: #1F1A17 !important;
    overflow: visible !important;
  }
}

/* -------------------------------------------------------------------------
   Card photos: full contrast. Parent .lazyload { opacity: 0.1 } plus any
   overlay/::after/mix-blend/linear-gradient used to fade photos for overlaid
   titles. Title sits on the paper bar below the photo (.tf-card-body).
   ------------------------------------------------------------------------ */
html body .tf-card,
html body .tf-hub-card,
html body .tf-start-card,
html body .tf-pin {
  position: relative;
}
html body .tf-card > img,
html body .tf-card .tf-card-photo,
html body .tf-card img.wp-post-image,
html body .tf-card img.lazyload,
html body .tf-card img.lazyloading,
html body .tf-card img.lazyloaded,
html body .tf-hub-card img,
html body .tf-project-grid img,
html body .tf-start-card > img,
html body .tf-start-card img,
html body .tf-start-photo,
html body .tf-pin img,
html body .tf-home .tf-card img,
html body .tf-hub .tf-card img,
html body .tf-hub .tf-start-card img {
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  -webkit-filter: none !important;
}
html body .tf-card::before,
html body .tf-card::after,
html body .tf-hub-card::before,
html body .tf-hub-card::after,
html body .tf-start-card::before,
html body .tf-start-card::after,
html body .tf-pin::before,
html body .tf-pin::after {
  content: none !important;
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
  display: none !important;
}
/* -------------------------------------------------------------------------
   Homepage: What You'll Find strip (not a card grid) and checker band
   ------------------------------------------------------------------------ */
.tf-find {
  margin: 1.75rem 0 0;
  padding: 1.35rem 0 0.15rem;
  border-top: 2px solid #E4D9CC;
  border-bottom: 1px solid #E4D9CC;
  background: transparent;
}
.tf-find-title {
  font-family: var(--tf-heading);
  font-size: 1.15rem;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: var(--tf-ink);
}
.tf-find {
  width: 100%;
  max-width: 100%;
}
.tf-find-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}
.tf-find-list a {
  color: #9A3F16;
  text-decoration: none;
}
.tf-find-list a:hover,
.tf-find-list a:focus {
  color: #1F1A17;
  text-decoration: underline;
}
.tf-find-list li {
  margin: 0;
  padding: 0 1.25rem 0 0;
  border-right: 1px solid #E4D9CC;
  color: var(--tf-ink);
  font-size: 17px;
  line-height: 1.5;
}
.tf-find-list li:last-child {
  border-right: 0;
  padding-right: 0;
  padding-left: 1.25rem;
}
.tf-find-list li:first-child {
  padding-left: 0;
}
.tf-find-list li:nth-child(2) {
  padding-left: 1.25rem;
}
.tf-find-list strong {
  display: block;
  font-family: var(--tf-heading);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 0.25em;
  color: var(--tf-ink);
}
.tf-checker-band {
  margin: 2.75rem 0 0;
  padding: 1.75rem 1.5rem;
  background: #2F6F7A;
  color: #F7F1E8;
  border-radius: 12px;
}
.tf-checker-inner {
  max-width: var(--tf-wrap);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
html body.tf-front .tf-checker-band .tf-checker-inner,
html body .tf-checker-band .tf-checker-inner.tf-checker-inner--two,
html body .tf-checker-band .tf-checker-inner:has(.tf-checker-preview) {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.75rem 2.5rem;
  align-items: center;
  width: 100% !important;
  max-width: var(--tf-wrap);
}
.tf-checker-copy p:last-child {
  margin-bottom: 0;
}
.tf-checker-preview {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(247, 241, 232, 0.4);
  border-radius: 10px;
  padding: 0.35rem 1.1rem;
  background: rgba(31, 26, 23, 0.16);
}
.tf-checker-preview-row {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(247, 241, 232, 0.32);
  color: #F7F1E8;
}
.tf-checker-preview-row:last-child {
  border-bottom: 0;
}
.tf-checker-k {
  font-weight: 700;
  color: #FFFCF7;
  font-size: 0.95rem;
}
.tf-checker-v {
  color: #F7F1E8;
  font-size: 1rem;
}
@media (max-width: 700px) {
  html body.tf-front .tf-checker-band .tf-checker-inner,
  html body .tf-checker-band .tf-checker-inner.tf-checker-inner--two,
  html body .tf-checker-band .tf-checker-inner:has(.tf-checker-preview) {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
}
.tf-checker-band h2,
.tf-checker-band .tf-section-title,
#tf-checker-heading,
#tf-tool-heading {
  font-family: var(--tf-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  margin: 0 0 0.45em;
  color: #F7F1E8;
}
.tf-checker-band p {
  margin: 0 0 1rem;
  font-size: 17px;
  line-height: 1.5;
  color: #F7F1E8;
}
.tf-checker-cta {
  margin: 0;
}
.tf-checker-cta a {
  display: inline-block;
  background: #F7F1E8;
  color: #1F1A17;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.65em 1.15em;
  border: 0;
}
.tf-checker-cta a:hover,
.tf-checker-cta a:focus {
  background: #FFFCF7;
  color: #1F1A17;
}
.tf-checker-band--hub {
  margin: 0 0 0.25rem;
}
@media (max-width: 782px) {
  .tf-find-list {
    grid-template-columns: 1fr;
  }
  .tf-find-list li,
  .tf-find-list li:first-child,
  .tf-find-list li:nth-child(2),
  .tf-find-list li:last-child {
    border-right: 0;
    border-bottom: 1px solid #E4D9CC;
    padding: 0.85rem 0;
  }
  .tf-find-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .tf-checker-band {
    padding: 1.4rem 1.15rem;
    border-radius: 10px;
  }
}
/* BEGIN extra-tools: hub tool cards. Do not merge into hub-intro. */
.tf-tool-cards {
  margin: 2.25rem 0 0;
}

.tf-tool-cards .tf-section-title,
#tf-tools-heading {
  font-family: var(--tf-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  color: var(--tf-ink);
}

.tf-tool-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

a.tf-tool-card {
  display: block;
  background: #FFFCF7;
  border: 1px solid #E4D9CC;
  border-radius: 12px;
  padding: 1.05rem 1.1rem 1.15rem;
  text-decoration: none;
  color: var(--tf-ink);
  box-shadow: none;
}

a.tf-tool-card:hover,
a.tf-tool-card:focus {
  border-color: #9A3F16;
  color: var(--tf-ink);
}

a.tf-tool-card h3 {
  font-family: var(--tf-heading);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.4em;
  color: var(--tf-ink);
  text-decoration: none;
}

a.tf-tool-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tf-ink);
}

@media (max-width: 782px) {
  .tf-tool-card-grid {
    grid-template-columns: 1fr;
  }
}
/* END extra-tools: hub tool cards */
/* Hub nits: beat Smart Mag inline --h-font Fira Sans Condensed; underline intro links */
html body .tf-hub-intro h1,
html body .tf-hub h1,
html body .tf-section-title,
html body #tf-start-heading,
html body #tf-before-heading,
html body #tf-more-heading {
  font-family: var(--tf-heading) !important;
}
html body .tf-hub-intro a {
  color: #9A3F16 !important;
  text-decoration: underline !important;
}

/* -------------------------------------------------------------------------
   Homepage: Grow newsletter (manual placement, below the fold)
   ------------------------------------------------------------------------- */
.tf-newsletter {
  background: #F7F1E8;
  padding: 1.1rem 1.25rem 1.25rem;
  border-top: 1px solid #E4D9CC;
}
.tf-newsletter-inner {
  max-width: 720px;
  margin: 0 auto;
  background: #FFFCF7;
  border: 1px solid #E4D9CC;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  min-height: 48px;
}
[class^="grow-inline-subscribe-widget-"] {
  min-height: 0;
}

/* -------------------------------------------------------------------------
   v0.7.7: nav+search in one wrap, Pinterest, find-list span
   ------------------------------------------------------------------------- */
html body .smart-head-main .smart-head-bot > .inner,
html body .smart-head-main .smart-head-bot.has-center-nav > .inner,
html body #smart-head .smart-head-bot > .inner {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  max-width: var(--tf-wrap);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: none !important;
}
html body .smart-head-main .smart-head-bot .items-left.empty {
  display: none !important;
}
html body .smart-head-main .smart-head-bot .items-center,
html body .smart-head-main .smart-head-bot .items-right,
html body #smart-head .smart-head-bot .items-center,
html body #smart-head .smart-head-bot .items-right {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  flex-shrink: 1 !important;
  justify-self: auto;
  display: flex !important;
  align-items: center;
}
html body .smart-head-main .smart-head-bot .nav-wrap,
html body .smart-head-main .smart-head-bot .navigation,
html body .smart-head-main .smart-head-bot .navigation .menu {
  width: auto !important;
  max-width: none !important;
}
html body .smart-head-main .smart-head-bot .items-right {
  gap: 0.55rem;
  margin-left: 0.1rem;
  justify-content: flex-start;
}
html body .smart-head .tf-pinterest-link--header,
html body .smart-head-mobile .tf-pinterest-link--header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  line-height: 0;
  color: #E60023;
  text-decoration: none;
}
html body .smart-head-mobile .items-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
html body .tf-pinterest-icon {
  display: block;
  width: 26px;
  height: 26px;
}
html body .tf-pinterest-link--header .tf-pinterest-icon {
  width: 26px;
  height: 26px;
}
.main-footer .tf-footer-social {
  margin: 0.85rem 0 0;
  color: #F7F1E8;
}
.main-footer .tf-pinterest-link--footer {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #F7F1E8 !important;
  font-weight: 600;
  text-decoration: none;
}
.main-footer .tf-pinterest-link--footer:hover,
.main-footer .tf-pinterest-link--footer:focus {
  color: #FFFCF7 !important;
}
.main-footer .tf-pinterest-icon {
  width: 24px;
  height: 24px;
}
.navigation .menu > li > a,
.s-nav .menu > li > a,
.main-menu > li > a,
.smart-head-bot .navigation .menu > li > a {
  font-size: 17px !important;
  font-weight: 600 !important;
}
@media (max-width: 782px) {
  .navigation .menu > li > a,
  .s-nav .menu > li > a,
  .main-menu > li > a,
  .off-canvas .menu a {
    font-size: 16px !important;
    font-weight: 600 !important;
  }
}
html body .smart-head-main .smart-head-bot .navigation .menu,
html body #smart-head .smart-head-bot .navigation .menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  white-space: nowrap;
}
html body .smart-head-main .smart-head-bot .navigation .menu > li > a,
html body #smart-head .smart-head-bot .navigation .menu > li > a {
  white-space: nowrap !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}
/* -------------------------------------------------------------------------
   v0.8.0 Author page (Samantha) + byline link
   ------------------------------------------------------------------------ */
body.author,
body.author .main-wrap,
body.author .main,
body.tf-author-page,
body.tf-author-quiet,
.tf-author-page,
.tf-author-quiet {
  background: #F7F1E8;
  color: #1F1A17;
}
body.author .sidebar,
body.author .the-sidebar,
body.author aside.widget-aside,
body.author .main-sidebar,
body.author .author-box,
body.author .archive-head,
body.author .loop-head,
body.author .listing,
body.author .main-pagination {
  display: none !important;
}
.tf-author-page,
.tf-author-quiet,
.main-full.tf-author-page,
.main-full.tf-author-quiet {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
  background: #F7F1E8;
  color: #1F1A17;
}
.tf-author-mast {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 0 0 2rem;
  max-width: 65ch;
}
.tf-author-mast-photo {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 120px;
  background: #E4D9CC;
}
.tf-author-mast-copy h1,
.tf-author-page h1,
.tf-author-quiet h1 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.45em;
  color: #1F1A17;
}
.tf-author-mast-copy p,
.tf-author-block p,
.tf-author-quiet p {
  font-size: 19px;
  line-height: 1.65;
  color: #1F1A17;
  margin: 0 0 1em;
}
.tf-author-block {
  max-width: 65ch;
  margin: 0 0 1.75rem;
  color: #1F1A17;
}
.tf-author-block h2,
.tf-author-page .tf-section-title {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1F1A17;
  margin: 0 0 0.55em;
}
.tf-author-block ul,
.tf-author-guides {
  list-style: disc outside !important;
  padding-left: 1.4em !important;
  margin: 0 0 0.25em !important;
  color: #1F1A17;
  font-size: 19px;
  line-height: 1.65;
}
.tf-author-block li,
.tf-author-guides li {
  margin: 0.25em 0;
  color: #1F1A17;
}
.tf-author-guides a,
.tf-author-block a {
  color: #9A3F16;
  text-decoration: underline;
}
.tf-author-guides a:hover,
.tf-author-guides a:focus,
.tf-author-block a:hover,
.tf-author-block a:focus {
  color: #1F1A17;
}
.tf-byline-name a {
  color: #1F1A17 !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tf-byline-name a:hover,
.tf-byline-name a:focus {
  color: #9A3F16 !important;
}
.tf-author-name a {
  color: #1F1A17 !important;
  text-decoration: none;
}
.tf-author-name a:hover,
.tf-author-name a:focus {
  color: #9A3F16 !important;
  text-decoration: underline;
}
@media (max-width: 782px) {
  .tf-author-mast { flex-direction: column; }
  .tf-author-mast-photo { width: 96px; height: 96px; flex-basis: 96px; }
  .tf-author-mast-copy p,
  .tf-author-block p,
  .tf-author-block ul { font-size: 18px; }
}