/*
 Theme Name:   The Final Steps (Divi Child)
 Description:  Child theme for thefinalsteps.org. Shared design system for all pages (tfs-* classes). Generated by build/site/build.py; edit there.
 Author:       The Final Steps
 Template:     Divi
 Version:      2.0.1
 Text Domain:  tfs-divi-child
*/

/* ---------- Fonts (self-hosted, latin subset) ---------- */
/* Self-hosted Google Fonts (OFL), latin subset. Upload the .woff2 files and point src at their URLs. */
@font-face {
  font-family: 'Gilda Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/gilda-display-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pt-serif-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pt-serif-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/pt-serif-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---------- Tokens ---------- */
:root {
  --tfs-gold: #c8994e;
  --tfs-gold-dark: #a4742e;
  --tfs-gold-soft: #e9d6b0;
  --tfs-ink: #1f1f1f;
  --tfs-ink-2: #1c1a17;
  --tfs-text: #3f3a33;
  --tfs-muted: #5f5a52;
  --tfs-cream: #fff8ef;
  --tfs-sand: #f4e8d7;
  --tfs-line: #e7dccb;
  --tfs-white: #ffffff;
  --tfs-radius: 14px;
  --tfs-shadow: 0 10px 30px rgba(17, 17, 17, .08);
  --tfs-head: Georgia, 'Times New Roman', serif;
  --tfs-body: Arial, Helvetica, sans-serif;
  --tfs-ui: 'PT Serif', Georgia, 'Times New Roman', serif;
  --tfs-brown: #55422b;
  --tfs-eyebrow: #a66f50;
  --tfs-wrap: 1120px;
}

/* ---------- Base ---------- */
body { font-family: var(--tfs-body); color: var(--tfs-text); background: var(--tfs-white); font-size: 17px; line-height: 1.7; }
h1, h2, h3, h4, h5, h6 { font-family: var(--tfs-head); color: var(--tfs-ink); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; padding-bottom: .4em; }
a { color: var(--tfs-gold-dark); }
a:hover { color: var(--tfs-ink); }
:focus-visible { outline: 3px solid var(--tfs-gold); outline-offset: 2px; }

/* ---------- Divi header ---------- */
#main-header { background: #000 !important; box-shadow: none !important; border-bottom: 1px solid rgba(199, 154, 74, .35); }
#main-header .container { width: 92%; max-width: 1240px; }
#logo { max-height: 62% !important; }
#top-menu li a, .et_mobile_menu li a { color: #fff !important; font-family: var(--tfs-ui); font-size: 16px; font-weight: 400; letter-spacing: .01em; }
#top-menu li a:hover, #top-menu li.current-menu-item > a, #top-menu li.current-menu-ancestor > a { color: var(--tfs-gold) !important; opacity: 1 !important; }
#top-menu li li a { color: var(--tfs-text) !important; }
#top-menu li li a:hover { color: var(--tfs-gold-dark) !important; background: var(--tfs-cream); }
.nav li ul, .et_mobile_menu { border-top-color: var(--tfs-gold) !important; background: var(--tfs-white) !important; }
.et_mobile_menu li a { color: var(--tfs-text) !important; }
#top-menu li.tfs-nav-cta > a {
  background: var(--tfs-gold); color: #fff !important; padding: 10px 18px !important; border-radius: 6px; font-weight: 400;
}
#top-menu li.tfs-nav-cta > a:hover { background: #b5853d; }
#top-menu li.tfs-nav-cta { padding-right: 0; }
#top-menu-nav #top-menu li.tfs-nav-cta > a, .et-fixed-header #top-menu-nav #top-menu li.tfs-nav-cta > a { padding: 11px 20px !important; line-height: 1.2 !important; white-space: nowrap; display: inline-block; }
#top-menu li.tfs-nav-cta { margin-top: -11px; }
.mobile_menu_bar:before { color: var(--tfs-gold) !important; }
#et_search_icon:hover, #et_top_search .et-search-form { display: none; }

/* ---------- Full-width pages: our sections handle their own width ---------- */
body.page #main-content, body.page #main-content .container { background: transparent; }
body.page #main-content .container { width: 100%; max-width: none; padding-top: 0; }
body.page #main-content .container:before { display: none; }
body.page #left-area { width: 100%; padding: 0 !important; float: none; }
body.page #sidebar { display: none; }
body.page .entry-title.main_title, body.page .et_post_meta_wrapper { display: none; }
body.page article.page { margin-bottom: 0; padding-bottom: 0; }
body.page .entry-content > *:last-child { margin-bottom: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content p:empty { display: none; }

/* ---------- Layout ---------- */
.tfs-wrap { width: 92%; max-width: var(--tfs-wrap); margin: 0 auto; }
.tfs-narrow { max-width: 760px; }
.tfs-section { padding: 84px 0; }
.tfs-section--cream { background: #faf6f0; }
.tfs-section--sand { background: var(--tfs-sand); }
.tfs-section--ink { background: var(--tfs-brown); color: #f3ece2; }
.tfs-section--ink h1, .tfs-section--ink h2, .tfs-section--ink h3 { color: var(--tfs-gold); }
.tfs-section--ink a:not(.tfs-btn) { color: var(--tfs-gold-soft); }
.tfs-center { text-align: center; }
.tfs-center .tfs-lead { margin-left: auto; margin-right: auto; }
.tfs-eyebrow { display: inline-block; font-family: var(--tfs-body); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--tfs-eyebrow); font-weight: 600; margin-bottom: 12px; }
.tfs-section--ink .tfs-eyebrow, .tfs-hero .tfs-eyebrow { color: var(--tfs-gold); }
.tfs-h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0 0 14px; }
.tfs-lead { font-size: 19px; color: var(--tfs-muted); max-width: 720px; }
.tfs-section--ink .tfs-lead { color: #cfc6b8; }

/* ---------- Hero ---------- */
.tfs-hero { background: #000; color: #e9e2d6; padding: 96px 0 88px; }
.tfs-hero h1 { color: #fbf4e8; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.08; margin: 0 0 18px; }
.tfs-hero h1 em { color: var(--tfs-gold); font-style: italic; }
.tfs-hero .tfs-lead { color: #d6cdbf; font-size: 20px; }
.tfs-hero--page { padding: 72px 0 64px; }
.tfs-hero--page h1 { font-size: clamp(34px, 4.6vw, 52px); }
.tfs-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.tfs-hero__card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(199, 154, 74, .35); border-radius: var(--tfs-radius); padding: 28px 30px; }
.tfs-hero__card h2 { color: var(--tfs-gold); font-size: 24px; margin: 0 0 12px; }
.tfs-hero__card ol { margin: 0; padding-left: 1.2em; }
.tfs-hero__card li { margin: 0 0 8px; color: #e9e2d6; }
.tfs-hero__card a { color: #fbf4e8; text-decoration: underline; text-decoration-color: rgba(199, 154, 74, .6); }
.tfs-trustline { margin-top: 22px; font-size: 15px; color: #bdb3a4; }
.tfs-trustline span { margin-right: 18px; white-space: nowrap; }
.tfs-trustline span:before { content: "\2713"; color: var(--tfs-gold); margin-right: 7px; }

/* ---------- Buttons ---------- */
.tfs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tfs-center .tfs-actions { justify-content: center; }
.tfs-btn, .entry-content a.tfs-btn { display: inline-block; font-family: var(--tfs-body); font-weight: 700; font-size: 16px; padding: 14px 26px; border-radius: 999px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; border: 2px solid var(--tfs-gold); background: var(--tfs-gold); color: var(--tfs-ink); }
.tfs-btn:hover { background: var(--tfs-gold-soft); border-color: var(--tfs-gold-soft); color: var(--tfs-ink); }
.tfs-btn--ghost { background: transparent; color: var(--tfs-ink); border-color: var(--tfs-ink); }
.tfs-btn--ghost:hover { background: var(--tfs-ink); color: var(--tfs-white); border-color: var(--tfs-ink); }
.tfs-hero .tfs-btn--ghost, .tfs-section--ink .tfs-btn--ghost { color: #fbf4e8; border-color: rgba(251, 244, 232, .5); }
.tfs-hero .tfs-btn--ghost:hover, .tfs-section--ink .tfs-btn--ghost:hover { background: #fbf4e8; color: var(--tfs-ink); }

/* Divi's .entry-content rules are more specific; restate component styles inside content */
.entry-content a.tfs-btn--ghost { background: transparent; color: var(--tfs-ink); border-color: var(--tfs-ink); }
.entry-content a.tfs-btn--ghost:hover { background: var(--tfs-ink); color: var(--tfs-white); }
.entry-content .tfs-hero a.tfs-btn--ghost, .entry-content .tfs-section--ink a.tfs-btn--ghost { background: transparent; color: #fbf4e8; border-color: rgba(251, 244, 232, .5); }
.entry-content .tfs-hero a.tfs-btn--ghost:hover, .entry-content .tfs-section--ink a.tfs-btn--ghost:hover { background: #fbf4e8; color: var(--tfs-ink); }
.entry-content ul.tfs-checks, .entry-content ol.tfs-steps, .entry-content .tfs-steps ul { list-style: none !important; padding-left: 0 !important; }
.entry-content ul.tfs-checks li, .entry-content ol.tfs-steps > li, .entry-content .tfs-steps ul li { list-style: none !important; }
.entry-content .tfs-hero__card ol, .entry-content .tfs-card ol { list-style: decimal !important; padding-left: 1.3em !important; }

/* ---------- Cards & grids ---------- */
.tfs-grid { display: grid; gap: 24px; margin-top: 40px; }
.tfs-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tfs-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tfs-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tfs-card { background: var(--tfs-white); border: 1px solid var(--tfs-line); border-radius: var(--tfs-radius); padding: 30px 28px; box-shadow: var(--tfs-shadow); display: flex; flex-direction: column; }
.tfs-section--cream .tfs-card, .tfs-section--sand .tfs-card { border-color: transparent; }
.tfs-card h3 { font-size: 24px; margin: 0 0 10px; }
.tfs-card p { margin: 0 0 14px; color: var(--tfs-muted); }
.tfs-card p:last-child { margin-bottom: 0; }
.tfs-card .tfs-actions { margin-top: auto; padding-top: 18px; }
.tfs-card .tfs-more { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--tfs-gold-dark); }
.tfs-card .tfs-more:after { content: " \2192"; }
.tfs-card--link { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.tfs-card--link:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(17, 17, 17, .12); color: inherit; }
.tfs-card__num { font-family: var(--tfs-head); font-size: 15px; color: var(--tfs-gold-dark); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.tfs-card__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--tfs-cream); color: var(--tfs-gold-dark); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.tfs-section--ink .tfs-card { background: var(--tfs-ink-2); border-color: rgba(199, 154, 74, .25); box-shadow: none; }
.tfs-section--ink .tfs-card p { color: #cfc6b8; }
.tfs-section--ink .tfs-card h3 { color: #fbf4e8; }

/* ---------- Lists ---------- */
.tfs-checks { list-style: none; padding: 0 !important; margin: 18px 0 0; }
.tfs-checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.tfs-checks li:before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--tfs-gold-dark); font-weight: 700; }
.tfs-section--ink .tfs-checks li:before { color: var(--tfs-gold); }
.tfs-steps { counter-reset: tfs; list-style: none; padding: 0 !important; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tfs-steps > li { counter-increment: tfs; background: var(--tfs-white); border-radius: var(--tfs-radius); padding: 24px 24px 22px; border: 1px solid var(--tfs-line); }
.tfs-steps > li:before { content: "Step " counter(tfs); display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--tfs-gold-dark); font-weight: 700; margin-bottom: 6px; }
.tfs-steps h3 { font-size: 21px; margin: 0 0 8px; }
.tfs-steps ul { list-style: none; padding: 0 !important; margin: 0; font-size: 15px; }
.tfs-steps ul li { margin: 0 0 4px; }
.tfs-steps ul a { text-decoration: none; }
.tfs-steps ul a:hover { text-decoration: underline; }

/* ---------- Two-column feature ---------- */
.tfs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tfs-panel { background: var(--tfs-white); border-radius: var(--tfs-radius); padding: 34px; box-shadow: var(--tfs-shadow); border: 1px solid var(--tfs-line); }
.tfs-panel h3 { margin-top: 0; font-size: 24px; }

/* ---------- Pricing ---------- */
.tfs-price { font-family: var(--tfs-head); font-size: 42px; color: var(--tfs-ink); line-height: 1; margin: 6px 0 4px; }
.tfs-price small { font-family: var(--tfs-body); font-size: 15px; color: var(--tfs-muted); }
.tfs-badge { display: inline-block; align-self: flex-start; background: var(--tfs-ink); color: var(--tfs-gold); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.tfs-card--featured { border: 2px solid var(--tfs-gold); }

/* ---------- Notes & callouts ---------- */
.tfs-note { background: var(--tfs-cream); border-left: 4px solid var(--tfs-gold); padding: 18px 22px; border-radius: 0 var(--tfs-radius) var(--tfs-radius) 0; margin: 28px 0; }
.tfs-note p:last-child { margin-bottom: 0; }
.tfs-disclaimer { font-size: 14px; color: var(--tfs-muted); font-style: italic; margin-top: 36px; }
.tfs-draft-flag { background: #fff3cd; border: 1px solid #e6c766; color: #5c4400; padding: 12px 16px; border-radius: 10px; font-size: 15px; margin-bottom: 28px; }

/* ---------- Articles (guides, policies) ---------- */
.tfs-article { padding: 56px 0 80px; }
.tfs-article .tfs-wrap { max-width: 780px; }
.tfs-article h1 { font-size: clamp(34px, 4.4vw, 48px); margin: 8px 0 18px; }
.tfs-article h2 { font-size: 30px; margin: 42px 0 12px; }
.tfs-article h3 { font-size: 23px; margin: 30px 0 8px; }
.tfs-article p, .tfs-article li { font-size: 18px; }
.tfs-article li { margin-bottom: 8px; }
.tfs-article blockquote { border-left: 4px solid var(--tfs-gold); background: var(--tfs-cream); padding: 18px 22px; margin: 22px 0; font-style: italic; border-radius: 0 var(--tfs-radius) var(--tfs-radius) 0; }
.tfs-article blockquote p { padding-bottom: 0; margin: 0 0 .9em; }
.tfs-article blockquote p:last-child { margin-bottom: 0; }
.tfs-article [id], .tfs-section [id] { scroll-margin-top: 120px; }
.tfs-crumbs { font-size: 14px; color: var(--tfs-muted); }
.tfs-crumbs a { text-decoration: none; }
.tfs-crumbs span { margin: 0 6px; color: var(--tfs-gold-dark); }
.tfs-stepmeta { display: inline-block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--tfs-gold-dark); margin-top: 18px; }
.tfs-nextlink { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--tfs-line); flex-wrap: wrap; }
.tfs-nextlink a { text-decoration: none; font-weight: 700; }
.tfs-guide-toc { background: var(--tfs-cream); border-radius: var(--tfs-radius); padding: 26px 30px; margin-top: 40px; }
.tfs-guide-toc h2 { font-size: 22px; margin: 0 0 10px; }
.tfs-guide-toc ol { margin: 0; }

/* ---------- FAQ ---------- */
.tfs-faq details { background: var(--tfs-white); border: 1px solid var(--tfs-line); border-radius: var(--tfs-radius); margin: 0 0 12px; padding: 0 22px; }
.tfs-faq summary { cursor: pointer; font-family: var(--tfs-head); font-size: 21px; color: var(--tfs-ink); padding: 18px 28px 18px 0; position: relative; list-style: none; }
.tfs-faq summary::-webkit-details-marker { display: none; }
.tfs-faq summary:after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 26px; color: var(--tfs-gold-dark); }
.tfs-faq details[open] summary:after { content: "\2212"; }
.tfs-faq details > div { padding: 0 0 18px; color: var(--tfs-muted); }

/* ---------- Forms (Gravity Forms, Orbital theme restyled to the brand) ---------- */
.tfs-form { background: var(--tfs-white); border: 1px solid var(--tfs-line); border-radius: var(--tfs-radius); padding: 30px; box-shadow: var(--tfs-shadow); }
.tfs-form h2, .tfs-form h3 { margin-top: 0; }
.tfs-form .gform_wrapper.gform-theme {
  --gf-color-primary: #c79a4a !important; --gf-color-primary-rgb: 199, 154, 74 !important; --gf-color-primary-contrast: #111111 !important;
  --gf-color-primary-darker: #a4742e !important; --gf-color-primary-lighter: #e9d6b0 !important;
  --gf-color-in-ctrl-primary: #a4742e !important; --gf-color-in-ctrl-primary-rgb: 164, 116, 46 !important; --gf-color-in-ctrl-primary-contrast: #fff !important;
  --gf-color-in-ctrl: #fffdf9 !important; --gf-color-in-ctrl-contrast: #3f3a33 !important;
  --gf-ctrl-border-color: #8f8170 !important; --gf-radius: 10px !important;
  --gf-ctrl-label-color-primary: #111111 !important; --gf-ctrl-label-color-secondary: #3f3a33 !important;
  --gf-color-out-ctrl-dark: #5f5a52 !important; --gf-color-out-ctrl-dark-lighter: #5f5a52 !important;
  --gf-font-size-secondary: 14px !important;
  font-family: var(--tfs-body);
}
.tfs-form .gform-theme .gfield_label, .tfs-form .gform-theme .gform-field-label:not(.gform-field-label--type-inline) { font-family: var(--tfs-body); font-weight: 700; font-size: 16px; }
.tfs-form .gform-theme .gfield_description { font-size: 14px; color: var(--tfs-muted); }
.tfs-form .gform-theme .gfield_required { color: #a3331f; font-weight: 400; }
.tfs-form .gform-theme input[type=text], .tfs-form .gform-theme input[type=email], .tfs-form .gform-theme input[type=tel],
.tfs-form .gform-theme textarea, .tfs-form .gform-theme select { font-family: var(--tfs-body); font-size: 16px; }
.tfs-form .gform-theme input:focus, .tfs-form .gform-theme textarea:focus, .tfs-form .gform-theme select:focus { border-color: var(--tfs-gold-dark); box-shadow: 0 0 0 3px rgba(199, 154, 74, .3); outline: none; }
.tfs-form .gform-theme .gform_drop_area { background: var(--tfs-cream); border: 1px dashed #b49a6e; border-radius: 12px; padding: 22px 16px; }
.tfs-form .gform-theme .gform_drop_instructions { font-size: 15px; color: var(--tfs-muted); }
.tfs-form .gform-theme .gfield_consent_label { font-weight: 400; font-size: 15px; }
.tfs-form .gform-theme .gform_footer input[type=submit], .tfs-form .gform-theme .gform_button {
  background: var(--tfs-gold) !important; color: var(--tfs-ink) !important; border: 0 !important; border-radius: 999px !important;
  padding: 14px 30px !important; height: auto !important; font-family: var(--tfs-body) !important; font-weight: 700 !important; font-size: 16px !important; cursor: pointer;
}
.tfs-form .gform-theme .gform_footer input[type=submit]:hover, .tfs-form .gform-theme .gform_button:hover { background: var(--tfs-gold-soft) !important; }
.tfs-form .gform-theme .gfield_html .tfs-hint { margin: 0; font-size: 14px; color: var(--tfs-muted); }
.tfs-form .gform_confirmation_message .tfs-sent { margin: 0; padding: 18px 20px; background: var(--tfs-cream); border-left: 4px solid var(--tfs-gold); border-radius: 10px; color: var(--tfs-ink); }
.tfs-form .gform-theme .gform_validation_errors { border-radius: 10px; }
.tfs-form .gform_wrapper.gform-theme { margin-top: 22px; }
.tfs-form .gform-theme textarea.large, .tfs-form .gform-theme textarea { min-block-size: 0; height: 140px; }
.tfs-form .gform-theme .gform_button_select_files { background: var(--tfs-ink) !important; color: #f3eadb !important; border-radius: 999px !important; }
.tfs-form .gform-theme .gform_button_select_files:hover { background: var(--tfs-ink-2) !important; color: var(--tfs-gold-soft) !important; }
.tfs-form .gform-theme .gfield_consent_label a { color: var(--tfs-gold-dark); text-decoration: underline; }

/* ---------- Footer (matches thefinalsteps.org: black, gold headings, gold copyright bar) ---------- */
#main-footer { background: #000 !important; border-top: 0; }
#main-footer .container { width: 92%; max-width: 1240px; }
#footer-widgets { padding: 64px 0 24px; }
#footer-widgets .footer-widget, #footer-widgets .footer-widget p, #footer-widgets .footer-widget li { color: #fff; font-family: var(--tfs-ui); font-size: 15px; line-height: 1.6; }
#footer-widgets .footer-widget a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-family: var(--tfs-ui); font-size: 17px; }
#footer-widgets .footer-widget a:hover { color: var(--tfs-gold); }
#footer-widgets .footer-widget h4, #footer-widgets .tfs-foot-title { color: var(--tfs-gold); font-family: var(--tfs-ui); font-weight: 700; font-size: 19px; margin: 0 0 14px; }
#footer-widgets .footer-widget li:before { display: none; }
#footer-widgets .footer-widget li { padding-left: 0; margin-bottom: 10px; }
#footer-widgets .footer-widget ul { padding: 0; }
.tfs-foot-logo { width: 200px; height: auto; margin-bottom: 16px; }
.tfs-foot-tag { max-width: 300px; }
#footer-bottom { background: var(--tfs-gold) !important; padding: 22px 0; }
#footer-info, #footer-info a { color: #3b2f20 !important; font-family: var(--tfs-ui); font-style: italic; font-size: 14px; }
#footer-info a { font-style: normal; text-decoration: underline; }
#et-footer-nav { display: none; }
.tfs-footer-line { display: block; }
.tfs-footer-line a { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .tfs-hero__grid, .tfs-split { grid-template-columns: 1fr; gap: 36px; }
  .tfs-grid--3, .tfs-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .tfs-section { padding: 64px 0; }
  #main-header { border-bottom: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .tfs-grid--2, .tfs-grid--3, .tfs-grid--4 { grid-template-columns: 1fr; }
  .tfs-hero { padding: 64px 0 56px; }
  .tfs-section { padding: 52px 0; }
  .tfs-article { padding: 36px 0 56px; }
  .tfs-article p, .tfs-article li { font-size: 17px; }
  .tfs-btn { width: 100%; text-align: center; }
  .tfs-card, .tfs-panel, .tfs-form { padding: 24px 20px; }
  .tfs-trustline span { display: block; margin: 0 0 6px; }
}
@media (prefers-reduced-motion: reduce) { .tfs-card--link, .tfs-btn { transition: none; } .tfs-card--link:hover { transform: none; } }

/* ---------- Ported thefinalsteps.org sections (build/port/port.py) ----------
   Each .o-sec holds one of the original Squarespace code blocks (their own <style> is kept with them).
   These rules only recreate Squarespace's section frame and undo Divi defaults inside it. */
.o-sec { padding: 45px 55px; position: relative; }
.o-sec, .o-sec *, .o-sec *::before, .o-sec *::after { box-sizing: border-box; }
.o-sec { overflow-x: clip; }
.o-sec--white { background: #fff; color: #1f1f1f; }
.o-sec--black { background: #000; color: #fff; }
.o-sec--brown { background: #55422b; color: #fff; }
.o-sec--soft { background: #faf6f0; }
.o-in { max-width: 1257px; margin: 0 auto; }
.o-hero { padding-top: 90px; padding-bottom: 70px; }
.o-split { display: grid; grid-template-columns: 517fr 412fr; gap: 64px; align-items: center; max-width: 1046px; }
.o-sec :where(p, h1, h2, h3, h4) { padding-bottom: 0; }
.entry-content .o-sec ul, .entry-content .o-sec ol { padding: 0; list-style: none; line-height: inherit; }
#left-area .o-sec ul, #left-area .o-sec ol { padding: 0; list-style: none; line-height: inherit; }
#left-area .o-sec ol.o-ex-steps { list-style: decimal; padding-left: 1.3em; }
.o-sec img { max-width: 100%; }
.o-sec :where(a) { text-decoration: none; }
/* Squarespace dark sections default headings to white; zero-weight :where() so each block's own classes still win */
.o-sec--black :where(h1, h2, h3, h4), .o-sec--brown :where(h1, h2, h3, h4) { color: #fff; }
.o-sec--white :where(h1, h2, h3, h4) { color: #1f1f1f; }

/* Small additions used by the ported pages (links/buttons the originals didn't need) */
.o-sec a.o-x-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 14px 24px; border-radius: 999px; background: #c8994e; color: #fff; font: 600 14px/1 Arial, sans-serif; }
.o-sec a.o-x-btn:hover { background: #b5853d; color: #fff; }
.o-sec a.o-x-btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.o-sec--white a.o-x-btn--ghost { border-color: rgba(31, 31, 31, .2); color: #1f1f1f; }
.o-sec a.o-x-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.o-sec a.o-x-link, .o-sec .o-x-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font: 600 14px/1.2 Arial, sans-serif; color: #a4742e; }
.o-sec--black .o-x-link, .o-sec--brown .o-x-link { color: #e0b874; }
.o-sec a.o-x-link:hover { color: #1f1f1f; }

/* Immediate care: "three things to do first" */
.o-first { max-width: 860px; margin: 0 auto; text-align: center; padding: 20px 0; }
.o-first-label, .o-ex-label { margin: 0; font: 600 12px/1.2 Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #e0b874; }
.o-first-title, .o-ex-title { margin: 12px 0 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.15; color: inherit; }
.entry-content .o-first-steps { counter-reset: f; margin: 28px auto 0; text-align: left; display: grid; gap: 14px; max-width: 760px; }
.o-first-steps li { counter-increment: f; position: relative; padding: 18px 20px 18px 64px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; background: rgba(255, 255, 255, .06); font: 400 16px/1.6 Arial, sans-serif; color: rgba(255, 255, 255, .86); }
.o-first-steps li:before { content: counter(f); position: absolute; left: 20px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: #c8994e; color: #fff; font: 700 14px/30px Arial, sans-serif; text-align: center; }
.o-first-steps strong { color: #fff; }
.o-first-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* After care: working exercises */
.o-ex { padding: 30px 0; }
.o-ex--center { text-align: center; max-width: 760px; margin: 0 auto; }
.o-sec--white .o-ex-label { color: #a66f50; }
.o-ex-intro { margin: 14px 0 0; font: 400 16px/1.7 Arial, sans-serif; color: #6f6a64; max-width: 640px; }
.o-ex--center .o-ex-intro { margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, .8); }
.o-ex-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.o-ex-card { position: relative; display: block; border-radius: 22px; border: 1px solid rgba(0, 0, 0, .08); background: #fff; padding: 28px 26px; box-shadow: 0 14px 34px rgba(0, 0, 0, .05); font: 400 15px/1.65 Arial, sans-serif; color: #5f5a52; }
.o-ex-card h3 { margin: 6px 0 10px; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-size: 22px; color: #1f1f1f; }
.o-ex-card p { margin: 0 0 10px; }
.o-ex-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #f6efe4; color: #a4742e; font: 700 18px/1 Georgia, serif; }
.entry-content .o-ex-steps { list-style: decimal; padding-left: 1.3em; margin: 0 0 10px; }
.o-ex-steps li { margin-bottom: 4px; }
.o-ex-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; color: #3f3a33; }
.o-ex-list svg { flex-shrink: 0; margin-top: 4px; color: #c8994e; }
.o-ex-note { font-size: 14px; color: #6f6a64; font-style: italic; }
.o-sec a.o-ex-card--link { transition: transform .2s, border-color .2s; }
.o-sec a.o-ex-card--link:hover { transform: translateY(-3px); border-color: #c8994e; }
.o-ex-crisis { margin: 26px auto 0; padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(224, 184, 116, .5); font: 400 16px/1.6 Arial, sans-serif; color: #fff; }
.o-ex-small { margin-top: 18px; font: 400 13px/1.5 Arial, sans-serif; color: rgba(255, 255, 255, .65); }

/* Assistance fund: intro beside the request form */
.o-fund-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.o-fund-split .tfs-form { margin-top: 0; }

/* Product pages (store) */
.tfs-product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.tfs-gallery__main { border-radius: 18px; overflow: hidden; background: #f6f1ea; aspect-ratio: 1748 / 1240; }
.tfs-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tfs-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.tfs-gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #f6f1ea; cursor: pointer; aspect-ratio: 1748 / 1240; }
.tfs-gallery__thumbs button[aria-current="true"] { border-color: var(--tfs-gold); }
.tfs-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tfs-product__price { font-family: var(--tfs-head); font-size: 30px; color: var(--tfs-ink); margin: 4px 0 18px; }
.tfs-product h1 { font-size: clamp(34px, 4vw, 48px); margin: 6px 0 4px; }

@media (max-width: 900px) {
  .o-sec { padding: 40px 6vw; }
  .o-hero { padding-top: 48px; }
  .o-split, .o-fund-split, .tfs-product { grid-template-columns: 1fr; gap: 32px; }
  .o-ex-grid { grid-template-columns: 1fr; }
}

/* Resources page */
.entry-content .tfs-res-list { list-style: none; padding: 0; margin: 8px 0 0; }
.tfs-res-list li { padding: 7px 0; border-top: 1px solid var(--tfs-line); font-size: 15px; }
.tfs-res-list li:first-child { border-top: 0; }
.tfs-res-list a { text-decoration: none; }
.entry-content .tfs-res-links { list-style: none; padding: 0; margin: 24px 0 0; }
.tfs-res-links li { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--tfs-line); }
.tfs-res-links strong { color: var(--tfs-ink); }
@media (max-width: 640px) { .tfs-res-links li { grid-template-columns: 1fr; gap: 4px; } }
.tfs-card__media { display: block; margin: -30px -28px 22px; border-radius: var(--tfs-radius) var(--tfs-radius) 0 0; overflow: hidden; background: #f6f1ea; aspect-ratio: 1748 / 1240; }
.tfs-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tfs-card__media:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .tfs-card__media { margin: -24px -20px 18px; } }
