:root {
  --tpp-ink: #0f1917;
  --tpp-pine: #173b34;
  --tpp-pine-2: #214c43;
  --tpp-forest: #2f5b50;
  --tpp-moss: #8ea69d;
  --tpp-ivory: #fbfaf6;
  --tpp-stone: #f1eee7;
  --tpp-sand: #ded8cb;
  --tpp-line: rgba(15, 25, 23, 0.13);
  --tpp-white: #ffffff;
  --tpp-brass: #b88a50;
  --tpp-muted: #65716d;
  --tpp-error: #9d3131;
  --tpp-success: #1e6a4f;
  --tpp-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --tpp-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tpp-shell: 1240px;
  --tpp-radius-lg: 28px;
  --tpp-radius-md: 18px;
  --tpp-shadow: 0 26px 80px rgba(10, 27, 23, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; font-family: var(--tpp-sans); color: var(--tpp-ink); background: var(--tpp-ivory); line-height: 1.65; overflow-x: hidden; }
body.tpp-nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(184, 138, 80, .24); }

.tpp-shell { width: min(calc(100% - 40px), var(--tpp-shell)); margin-inline: auto; }
.tpp-main { min-height: 60vh; }
.tpp-skip-link { position: fixed; left: 12px; top: -60px; z-index: 9999; background: var(--tpp-white); color: var(--tpp-ink); padding: 10px 14px; border-radius: 10px; }
.tpp-skip-link:focus { top: 12px; }

/* Header */
.tpp-site-header { position: sticky; top: 0; z-index: 1000; background: rgba(251, 250, 246, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.tpp-site-header.is-scrolled { border-color: var(--tpp-line); box-shadow: 0 10px 34px rgba(15,25,23,.05); background: rgba(251, 250, 246, .96); }
.tpp-header-inner { width: min(calc(100% - 40px), var(--tpp-shell)); margin-inline: auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.tpp-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--tpp-ink); font-weight: 800; letter-spacing: -.035em; }
.tpp-brand-mark { width: 34px; height: 34px; color: var(--tpp-pine); flex: 0 0 auto; }
.tpp-brand-text { font-size: 1.02rem; white-space: nowrap; }
.custom-logo-link img { max-height: 44px; width: auto; }
.tpp-primary-nav { display: flex; align-items: center; gap: 28px; }
.tpp-nav-list { display: flex; list-style: none; gap: 28px; margin: 0; padding: 0; align-items: center; }
.tpp-nav-list a { font-size: .86rem; font-weight: 650; color: #3d4a46; transition: color .15s ease; }
.tpp-nav-list a:hover, .tpp-nav-list .current-menu-item > a { color: var(--tpp-pine); }
.tpp-header-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--tpp-pine); color: var(--tpp-white); border-radius: 999px; font-size: .82rem; font-weight: 750; box-shadow: 0 8px 24px rgba(23,59,52,.16); }
.tpp-header-cta:hover { background: var(--tpp-pine-2); }
.tpp-nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--tpp-line); background: var(--tpp-white); border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.tpp-nav-toggle span { width: 18px; height: 1.5px; background: var(--tpp-ink); transition: transform .2s ease, opacity .2s ease; }
.tpp-nav-toggle.is-active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.tpp-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.tpp-nav-toggle.is-active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Shared typography */
.tpp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #c6d7d1; }
.tpp-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.tpp-eyebrow--dark { color: var(--tpp-pine); }
.tpp-card-kicker { font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tpp-pine); }
.tpp-section-intro h2, .tpp-final-cta h2, .tpp-referral-section h2, .tpp-page-hero h1, .tpp-article-hero h1, .tpp-error-page h1 { font-family: var(--tpp-serif); font-weight: 400; letter-spacing: -.035em; line-height: .98; margin: 16px 0 0; }
.tpp-section-intro h2 { font-size: clamp(2.5rem, 5vw, 4.9rem); max-width: 780px; }
.tpp-section-intro p { color: var(--tpp-muted); font-size: 1.02rem; max-width: 620px; margin: 18px 0 0; }
.tpp-section-intro--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr); align-items: end; gap: 70px; }
.tpp-section-intro--split > p { margin: 0 0 8px; }
.tpp-section-intro--center { text-align: center; max-width: 850px; margin-inline: auto; }
.tpp-section-intro--center h2, .tpp-section-intro--center p { margin-inline: auto; }
.tpp-section-intro--light h2 { color: var(--tpp-white); }
.tpp-section-intro--light p { color: rgba(255,255,255,.64); }

/* Buttons */
.tpp-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-size: .87rem; font-weight: 800; letter-spacing: -.01em; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.tpp-button:hover { transform: translateY(-1px); }
.tpp-button--primary { background: var(--tpp-white); color: var(--tpp-ink); box-shadow: 0 15px 40px rgba(0,0,0,.12); }
.tpp-button--primary:hover { background: #f5f1e9; }
.tpp-button--dark { background: var(--tpp-pine); color: var(--tpp-white); border-color: var(--tpp-pine); }
.tpp-button--dark:hover { background: var(--tpp-pine-2); box-shadow: 0 12px 30px rgba(23,59,52,.18); }
.tpp-button--full { width: 100%; }
.tpp-button:disabled { opacity: .55; cursor: wait; transform: none; }
.tpp-text-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.76); font-size: .88rem; font-weight: 700; }
.tpp-text-link:hover { color: var(--tpp-white); }
.tpp-text-link--dark { color: var(--tpp-pine); }

/* Hero */
.tpp-hero { position: relative; overflow: hidden; background: var(--tpp-ink); color: var(--tpp-white); padding: clamp(72px, 8vw, 118px) 0 76px; }
.tpp-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.025)); pointer-events: none; }
.tpp-hero-orb { position: absolute; border-radius: 999px; filter: blur(2px); opacity: .42; pointer-events: none; }
.tpp-hero-orb--one { width: 620px; height: 620px; right: -220px; top: -280px; background: radial-gradient(circle, rgba(74,125,111,.38), transparent 65%); }
.tpp-hero-orb--two { width: 480px; height: 480px; left: -220px; bottom: -320px; background: radial-gradient(circle, rgba(184,138,80,.18), transparent 68%); }
.tpp-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(410px, .75fr); gap: clamp(54px, 7vw, 100px); align-items: center; }
.tpp-hero-copy h1 { font-family: var(--tpp-serif); font-size: clamp(3.7rem, 7vw, 7rem); font-weight: 400; line-height: .88; letter-spacing: -.05em; max-width: 820px; margin: 22px 0 26px; text-wrap: balance; }
.tpp-hero-lede { max-width: 660px; margin: 0; color: rgba(255,255,255,.67); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.75; }
.tpp-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.tpp-confidence-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 42px; color: rgba(255,255,255,.5); font-size: .76rem; font-weight: 650; }
.tpp-confidence-row span { display: inline-flex; align-items: center; gap: 8px; }
.tpp-confidence-row span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tpp-brass); }

/* Audit panel */
.tpp-audit-panel { background: var(--tpp-ivory); color: var(--tpp-ink); border-radius: var(--tpp-radius-lg); padding: clamp(24px, 3vw, 34px); box-shadow: var(--tpp-shadow); border: 1px solid rgba(255,255,255,.5); }
.tpp-audit-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.tpp-audit-panel-head h2 { font-family: var(--tpp-serif); font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1; font-weight: 400; letter-spacing: -.035em; margin: 7px 0 0; }
.tpp-step-counter { width: 52px; height: 44px; display: flex; align-items: center; justify-content: center; gap: 2px; border-radius: 50%; border: 1px solid var(--tpp-line); color: var(--tpp-muted); font-size: .74rem; }
.tpp-step-counter b { color: var(--tpp-pine); }
.tpp-step-counter span { color: #98a09d; }
.tpp-progress { width: 100%; height: 3px; background: #e3dfd5; margin: 24px 0 28px; border-radius: 3px; overflow: hidden; }
.tpp-progress span { display: block; height: 100%; width: 50%; background: var(--tpp-brass); transition: width .3s ease; }
.tpp-native-audit-form label:not(.tpp-consent) { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 800; color: #34423e; }
.tpp-native-audit-form input[type="text"], .tpp-native-audit-form input[type="email"], .tpp-native-audit-form input[type="tel"], .tpp-native-audit-form select { width: 100%; min-height: 54px; border: 1px solid #d8d5cc; background: var(--tpp-white); color: var(--tpp-ink); border-radius: 12px; padding: 0 15px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.tpp-native-audit-form input:focus, .tpp-native-audit-form select:focus { border-color: var(--tpp-pine); box-shadow: 0 0 0 4px rgba(23,59,52,.08); }
.tpp-native-audit-form input::placeholder { color: #a1aaa6; }
.tpp-field-help { font-size: .78rem; color: var(--tpp-muted); line-height: 1.55; margin: 10px 0 20px; }
.tpp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tpp-field--full { grid-column: 1 / -1; }
.tpp-field label span { color: #98a09d; font-weight: 600; }
.tpp-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; cursor: pointer; }
.tpp-consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--tpp-pine); flex: 0 0 auto; }
.tpp-consent span { font-size: .72rem; line-height: 1.55; color: var(--tpp-muted); }
.tpp-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tpp-back-button { border: 0; background: transparent; color: var(--tpp-muted); font-size: .78rem; font-weight: 700; padding: 10px 0; }
.tpp-audit-privacy { font-size: .65rem; line-height: 1.55; color: #8a938f; margin: 18px 0 0; }
.tpp-audit-privacy a { text-decoration: underline; text-underline-offset: 2px; }
.tpp-form-message { margin-top: 14px; border-radius: 12px; padding: 13px 14px; font-size: .78rem; line-height: 1.5; }
.tpp-form-message--error { background: #f9eded; color: var(--tpp-error); border: 1px solid #efcece; }
.tpp-form-message--success { background: #eaf4ef; color: #245a47; border: 1px solid #cde2d7; display: flex; gap: 12px; align-items: flex-start; }
.tpp-success-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--tpp-success); color: var(--tpp-white); display: grid; place-items: center; flex: 0 0 auto; }

/* Jurisdictions */
.tpp-jurisdiction-band { background: var(--tpp-ivory); padding: clamp(88px, 9vw, 140px) 0; }
.tpp-jurisdiction-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--tpp-line); border-bottom: 1px solid var(--tpp-line); margin-top: 64px; }
.tpp-jurisdiction-card { padding: 34px 30px 38px; border-right: 1px solid var(--tpp-line); }
.tpp-jurisdiction-card:last-child { border-right: 0; }
.tpp-jurisdiction-card > span { font-family: var(--tpp-serif); font-size: 1.05rem; color: var(--tpp-brass); }
.tpp-jurisdiction-card h3 { font-family: var(--tpp-serif); font-weight: 400; font-size: 1.55rem; line-height: 1.1; margin: 38px 0 12px; }
.tpp-jurisdiction-card p { margin: 0; color: var(--tpp-muted); font-size: .85rem; line-height: 1.65; }

/* Sections */
.tpp-section { padding: clamp(92px, 10vw, 150px) 0; }
.tpp-section--light { background: var(--tpp-white); }
.tpp-section--stone { background: var(--tpp-stone); }
.tpp-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.tpp-process-card { min-height: 310px; padding: 30px; border: 1px solid var(--tpp-line); border-radius: var(--tpp-radius-md); background: var(--tpp-ivory); display: flex; flex-direction: column; }
.tpp-process-number { font-family: var(--tpp-serif); font-size: 1.2rem; color: var(--tpp-brass); }
.tpp-process-card h3 { font-family: var(--tpp-serif); font-weight: 400; font-size: 2rem; line-height: 1.05; margin: auto 0 14px; }
.tpp-process-card p { color: var(--tpp-muted); font-size: .88rem; margin: 0; }

/* Guides */
.tpp-guides-section { background: var(--tpp-pine); color: var(--tpp-white); }
.tpp-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 58px; }
.tpp-guide-card { min-height: 330px; padding: 28px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--tpp-radius-md); background: rgba(255,255,255,.045); display: flex; flex-direction: column; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.tpp-guide-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.25); }
.tpp-guide-card-meta { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.46); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tpp-guide-card h3, .tpp-guide-card h2 { font-family: var(--tpp-serif); font-weight: 400; font-size: clamp(1.7rem, 2.5vw, 2.2rem); line-height: 1.03; margin: 42px 0 16px; }
.tpp-guide-card p { color: rgba(255,255,255,.62); font-size: .86rem; margin: 0 0 24px; }
.tpp-guide-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: #dce8e4; font-size: .78rem; font-weight: 800; }
.tpp-guide-card--light { background: var(--tpp-white); border-color: var(--tpp-line); color: var(--tpp-ink); }
.tpp-guide-card--light p { color: var(--tpp-muted); }
.tpp-guide-card--light .tpp-guide-card-meta { color: var(--tpp-muted); }
.tpp-guide-card--light .tpp-guide-link { color: var(--tpp-pine); }
.tpp-guide-card--empty { grid-column: 1 / -1; min-height: 240px; }

/* Value */
.tpp-value-grid-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.tpp-value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tpp-value-grid article { padding: 26px; background: rgba(255,255,255,.55); border: 1px solid rgba(15,25,23,.1); border-radius: var(--tpp-radius-md); }
.tpp-value-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tpp-pine); color: var(--tpp-white); font-family: var(--tpp-serif); font-size: 1.05rem; }
.tpp-value-grid h3 { font-family: var(--tpp-serif); font-weight: 400; font-size: 1.5rem; margin: 28px 0 10px; }
.tpp-value-grid p { color: var(--tpp-muted); font-size: .82rem; margin: 0; }

/* Referral */
.tpp-referral-section { padding: clamp(90px, 10vw, 150px) 0; background: var(--tpp-ink); color: var(--tpp-white); }
.tpp-referral-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.tpp-referral-section h2 { font-size: clamp(2.7rem, 5vw, 5rem); max-width: 620px; }
.tpp-referral-copy { border-left: 1px solid rgba(255,255,255,.14); padding-left: 48px; align-self: end; }
.tpp-referral-copy p { color: rgba(255,255,255,.61); margin: 0 0 18px; font-size: .93rem; }

/* Final CTA */
.tpp-final-cta { padding: clamp(100px, 11vw, 165px) 0; background: var(--tpp-ivory); text-align: center; }
.tpp-final-cta-inner { max-width: 860px; }
.tpp-final-cta h2 { font-size: clamp(3rem, 6vw, 6.3rem); }
.tpp-final-cta p { max-width: 620px; margin: 24px auto 30px; color: var(--tpp-muted); font-size: 1rem; }

/* Footer */
.tpp-site-footer { background: #0b1211; color: var(--tpp-white); padding: 70px 0 28px; }
.tpp-footer-main { width: min(calc(100% - 40px), var(--tpp-shell)); margin-inline: auto; display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 60px; padding-bottom: 50px; }
.tpp-site-footer .tpp-brand { color: var(--tpp-white); }
.tpp-site-footer .tpp-brand-mark { color: #9eb9b0; }
.tpp-footer-brand-block p { max-width: 430px; color: rgba(255,255,255,.5); font-size: .83rem; margin: 18px 0 0; }
.tpp-footer-column { display: flex; flex-direction: column; gap: 11px; }
.tpp-footer-label { color: rgba(255,255,255,.34); text-transform: uppercase; letter-spacing: .13em; font-size: .64rem; font-weight: 800; margin-bottom: 6px; }
.tpp-footer-column a { color: rgba(255,255,255,.72); font-size: .8rem; }
.tpp-footer-column a:hover { color: var(--tpp-white); }
.tpp-footer-bottom { width: min(calc(100% - 40px), var(--tpp-shell)); margin-inline: auto; display: grid; grid-template-columns: .5fr 1.5fr; gap: 50px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 25px; }
.tpp-footer-bottom p { margin: 0; font-size: .65rem; color: rgba(255,255,255,.32); }
.tpp-footer-disclaimer { line-height: 1.65; }

/* Standard pages */
.tpp-page-hero, .tpp-article-hero { background: var(--tpp-ink); color: var(--tpp-white); padding: 90px 0 74px; }
.tpp-page-hero-inner { max-width: 900px; }
.tpp-page-hero h1 { font-size: clamp(3.2rem, 7vw, 6.5rem); }
.tpp-page-hero p, .tpp-archive-description { color: rgba(255,255,255,.6); max-width: 700px; margin-top: 22px; }
.tpp-page-content { max-width: 840px; padding-block: 70px 110px; }
.tpp-page-content h2, .tpp-page-content h3 { font-family: var(--tpp-serif); font-weight: 400; letter-spacing: -.02em; }
.tpp-page-content h2 { font-size: 2.3rem; margin-top: 50px; }
.tpp-page-content h3 { font-size: 1.7rem; margin-top: 36px; }
.tpp-page-content p, .tpp-page-content li { color: #4f5e59; }
.tpp-page-content a { color: var(--tpp-pine); text-decoration: underline; text-underline-offset: 3px; }

/* Articles */
.tpp-article-hero-inner { max-width: 980px; }
.tpp-article-breadcrumb { display: flex; gap: 9px; align-items: center; color: rgba(255,255,255,.48); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tpp-article-hero h1 { font-size: clamp(3.3rem, 7vw, 6.8rem); max-width: 1050px; margin-top: 22px; }
.tpp-article-deck { max-width: 760px; color: rgba(255,255,255,.63); font-size: 1.06rem; line-height: 1.7; margin: 28px 0 0; }
.tpp-article-meta { display: flex; gap: 22px; margin-top: 34px; color: rgba(255,255,255,.4); font-size: .71rem; font-weight: 700; }
.tpp-article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(250px, 330px); justify-content: space-between; gap: 70px; padding-block: 80px 120px; }
.tpp-article-content { min-width: 0; }
.tpp-article-content > .tpp-article { max-width: none !important; margin: 0 !important; padding: 0 !important; font-family: var(--tpp-sans) !important; color: #34433e !important; line-height: 1.8 !important; }
.tpp-article-content .tpp-article > style, .tpp-article-content > style { display: none !important; }
.tpp-article-content .tpp-article h1 { display: none; }
.tpp-article-content h2 { font-family: var(--tpp-serif) !important; font-size: clamp(2rem, 3.7vw, 3rem) !important; font-weight: 400 !important; color: var(--tpp-ink) !important; line-height: 1.05 !important; letter-spacing: -.03em !important; margin: 58px 0 18px !important; }
.tpp-article-content h3 { font-family: var(--tpp-serif) !important; font-size: 1.75rem !important; font-weight: 400 !important; color: var(--tpp-ink) !important; margin: 38px 0 14px !important; }
.tpp-article-content p, .tpp-article-content li { color: #44534e !important; font-size: 1rem !important; line-height: 1.82 !important; }
.tpp-article-content a { color: var(--tpp-pine) !important; text-decoration: underline; text-underline-offset: 3px; }
.tpp-article-content .tpp-callout { border: 0 !important; border-left: 3px solid var(--tpp-brass) !important; background: var(--tpp-stone) !important; border-radius: 0 14px 14px 0 !important; padding: 22px 24px !important; margin: 32px 0 !important; }
.tpp-article-content .tpp-audit-card { display: none !important; }
.tpp-article-featured { margin: 0 0 46px; border-radius: var(--tpp-radius-md); overflow: hidden; }
.tpp-article-source-note { margin-top: 70px; background: var(--tpp-stone); border-radius: var(--tpp-radius-md); padding: 30px; }
.tpp-article-source-note h2 { margin: 8px 0 12px !important; font-size: 2rem !important; }
.tpp-article-source-note p { margin: 0; }
.tpp-article-aside { position: relative; }
.tpp-aside-card { position: sticky; top: 110px; background: var(--tpp-stone); border: 1px solid var(--tpp-line); border-radius: var(--tpp-radius-md); padding: 26px; }
.tpp-aside-card h2 { font-family: var(--tpp-serif); font-weight: 400; font-size: 2rem; line-height: 1.05; margin: 10px 0 14px; }
.tpp-aside-card p { color: var(--tpp-muted); font-size: .82rem; margin: 0 0 22px; }

/* Archive */
.tpp-archive-page .tpp-guide-grid { margin-top: 0; }

/* 404 */
.tpp-error-page { min-height: 64vh; display: grid; place-items: center; padding: 100px 0; }
.tpp-error-inner { text-align: center; max-width: 800px; }
.tpp-error-page h1 { font-size: clamp(3.5rem, 7vw, 6.5rem); }
.tpp-error-page p { color: var(--tpp-muted); max-width: 600px; margin: 24px auto 0; }
.tpp-error-page .tpp-hero-actions { justify-content: center; }

/* Legacy generated markup compatibility. The new theme takes visual control. */
body .tpp-home > style, body .tpp-article > style { display: none !important; }
body .tpp-home { font-family: var(--tpp-sans) !important; color: var(--tpp-ink) !important; }
body .tpp-cta-button { background: var(--tpp-pine) !important; border-radius: 999px !important; border: 0 !important; color: #fff !important; font-weight: 800 !important; }

@media (max-width: 1080px) {
  .tpp-hero-grid { grid-template-columns: 1fr .86fr; gap: 48px; }
  .tpp-hero-copy h1 { font-size: clamp(3.4rem, 7vw, 5.6rem); }
  .tpp-jurisdiction-grid { grid-template-columns: 1fr 1fr; }
  .tpp-jurisdiction-card:nth-child(2) { border-right: 0; }
  .tpp-jurisdiction-card:nth-child(-n+2) { border-bottom: 1px solid var(--tpp-line); }
  .tpp-guide-grid { grid-template-columns: 1fr 1fr; }
  .tpp-value-grid-wrap { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 900px) {
  .tpp-header-inner { min-height: 70px; }
  .tpp-nav-toggle { display: flex; }
  .tpp-primary-nav { position: fixed; inset: 70px 0 auto 0; background: var(--tpp-ivory); border-top: 1px solid var(--tpp-line); border-bottom: 1px solid var(--tpp-line); padding: 28px 20px 34px; display: none; flex-direction: column; align-items: stretch; gap: 24px; box-shadow: 0 30px 50px rgba(15,25,23,.12); }
  .tpp-primary-nav.is-open { display: flex; }
  .tpp-nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .tpp-nav-list li { width: 100%; }
  .tpp-nav-list a { display: block; padding: 13px 0; font-size: 1rem; }
  .tpp-header-cta { width: 100%; justify-content: center; }
  .tpp-hero { padding-top: 70px; }
  .tpp-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .tpp-hero-copy { max-width: 760px; }
  .tpp-audit-panel { max-width: 650px; }
  .tpp-section-intro--split { grid-template-columns: 1fr; gap: 22px; }
  .tpp-process-grid { grid-template-columns: 1fr; }
  .tpp-process-card { min-height: 220px; }
  .tpp-referral-grid { grid-template-columns: 1fr; gap: 44px; }
  .tpp-referral-copy { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 32px 0 0; }
  .tpp-article-layout { grid-template-columns: 1fr; }
  .tpp-aside-card { position: static; }
}

@media (max-width: 680px) {
  .tpp-shell, .tpp-header-inner, .tpp-footer-main, .tpp-footer-bottom { width: min(calc(100% - 28px), var(--tpp-shell)); }
  .tpp-brand-text { font-size: .91rem; }
  .tpp-brand-mark { width: 30px; height: 30px; }
  .tpp-hero { padding: 52px 0 56px; }
  .tpp-hero-copy h1 { font-size: clamp(3.15rem, 16vw, 4.6rem); }
  .tpp-hero-lede { font-size: .99rem; }
  .tpp-hero-actions { align-items: flex-start; flex-direction: column; }
  .tpp-confidence-row { gap: 10px 18px; }
  .tpp-audit-panel { border-radius: 22px; padding: 22px; }
  .tpp-form-grid { grid-template-columns: 1fr; }
  .tpp-field--full { grid-column: auto; }
  .tpp-form-actions { align-items: stretch; flex-direction: column-reverse; }
  .tpp-jurisdiction-band { padding: 76px 0; }
  .tpp-jurisdiction-grid { grid-template-columns: 1fr; margin-top: 42px; }
  .tpp-jurisdiction-card { border-right: 0; border-bottom: 1px solid var(--tpp-line) !important; padding: 26px 4px; }
  .tpp-jurisdiction-card:last-child { border-bottom: 0 !important; }
  .tpp-jurisdiction-card h3 { margin-top: 20px; }
  .tpp-section { padding: 78px 0; }
  .tpp-section-intro h2 { font-size: clamp(2.7rem, 13vw, 4.1rem); }
  .tpp-guide-grid { grid-template-columns: 1fr; }
  .tpp-guide-card { min-height: 285px; }
  .tpp-value-grid { grid-template-columns: 1fr; }
  .tpp-referral-section { padding: 80px 0; }
  .tpp-final-cta { padding: 86px 0; }
  .tpp-footer-main { grid-template-columns: 1fr; gap: 34px; }
  .tpp-footer-bottom { grid-template-columns: 1fr; gap: 16px; }
  .tpp-page-hero, .tpp-article-hero { padding: 70px 0 58px; }
  .tpp-article-hero h1 { font-size: clamp(3.1rem, 14vw, 4.7rem); }
  .tpp-article-layout { padding-block: 56px 80px; }
}

/* v1.1 conversion and navigation refinements */
[hidden] { display: none !important; }

#tpp-intelligence,
#tpp-how-it-works,
#tpp-audit-grid-section,
#tpp-audit-form-homepage-wrap {
  scroll-margin-top: 96px;
}

/* Avoid decorative long dashes that can read as templated/AI styling. */
.tpp-eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--tpp-brass);
  opacity: 1;
}

.tpp-text-link,
.tpp-guide-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.tpp-text-link:hover,
.tpp-guide-link:hover {
  text-decoration: underline;
}

@media (max-width: 680px) {
  #tpp-intelligence,
  #tpp-how-it-works,
  #tpp-audit-grid-section,
  #tpp-audit-form-homepage-wrap {
    scroll-margin-top: 82px;
  }

  .tpp-hero {
    padding-top: 44px;
  }

  .tpp-hero-grid {
    gap: 38px;
  }

  .tpp-hero-copy h1 {
    font-size: clamp(3rem, 13.4vw, 4.05rem);
    line-height: .92;
    margin-top: 18px;
    margin-bottom: 22px;
  }

  .tpp-hero-lede {
    line-height: 1.68;
  }

  .tpp-hero-actions {
    gap: 16px;
    margin-top: 28px;
  }

  .tpp-confidence-row {
    margin-top: 30px;
  }
}


/* v1.2 bot trap: intentionally off-screen, not part of the visual form. */
.tpp-honeypot { position:absolute !important; left:-10000px !important; top:auto !important; width:1px !important; height:1px !important; overflow:hidden !important; }


/* ==========================================================
   Legacy article compatibility — v1.4.1
   ----------------------------------------------------------
   Old Agent v1 posts can retain a tpp-audit-form-* wrapper
   around valid replacement article content. Keep the wrapper
   visible on single articles while preventing obsolete form UI
   from resurfacing. The homepage review form is unaffected.
   ========================================================== */

.tpp-article-content [id^="tpp-audit-form-"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
}

.tpp-article-content [id^="tpp-audit-form-"] form,
.tpp-article-content [id^="tpp-audit-form-"] .tpp-form-message,
.tpp-article-content [id^="tpp-audit-form-"] .tpp-form-success,
.tpp-article-content [id^="tpp-audit-form-"] .tpp-form-error {
    display: none !important;
}
