/* Selectors start with ":root:root body" so they outrank the site's ":root.v3 body label/input" form rules.
   Free-guide pop-up (js/leads.js, 2026-10-29) and the "Free guides" cards (resources.html). Uses the v3 tokens. */

:root:root body .ttl-wrap { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
:root:root body .ttl-back { position: absolute; inset: 0; background: rgba(7, 24, 39, .55); opacity: 0; transition: opacity .25s; }
:root:root body .ttl-dlg {
    position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: #fff; color: var(--ink, #0B1B2B); border-top: 3px solid var(--navy, #071827);
    padding: 30px 30px 22px; box-shadow: 0 30px 60px -20px rgba(7, 24, 39, .55);
    font-family: var(--sans, Arial, sans-serif); font-size: 15px; line-height: 1.5;
    transform: translateY(12px); opacity: 0; transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
:root:root body .ttl-wrap.in .ttl-back { opacity: 1; }
:root:root body .ttl-wrap.in .ttl-dlg { transform: none; opacity: 1; }
:root:root body .ttl-dlg:focus { outline: none; }
:root:root body .ttl-x {
    position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none;
    font-size: 28px; line-height: 1; color: var(--ink-3, #5B6673); cursor: pointer; border-radius: 50%;
}
:root:root body .ttl-x:hover, :root:root body .ttl-x:focus-visible { color: var(--navy, #071827); background: var(--cloud, #F5F8FB); }
:root:root body .ttl-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-text, #1766C3); }
:root:root body .ttl-dlg h2 { margin: 0 40px 8px 0; font-family: var(--serif, Georgia, serif); font-size: 26px; line-height: 1.15; color: var(--navy, #071827); }
:root:root body .ttl-dlg h2:focus { outline: none; }
:root:root body .ttl-lede { margin: 0 0 16px; color: var(--ink-2, #3D4B5C); }
:root:root body .ttl-form { margin: 0; }
:root:root body .ttl-choice { border: 0; margin: 0 0 12px; padding: 0; }
:root:root body .ttl-choice legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
:root:root body .ttl-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--rule, #E3E7EC); margin-bottom: 6px; cursor: pointer; }
:root:root body .ttl-opt:has(input:checked) { border-color: var(--navy, #071827); background: var(--cloud, #F5F8FB); }
:root:root body .ttl-opt input { margin: 4px 0 0; accent-color: var(--navy, #071827); flex: none; }
:root:root body .ttl-opt b { display: block; font-size: 15px; color: var(--navy, #071827); }
:root:root body .ttl-opt em { font-style: normal; font-weight: 500; color: var(--ink-3, #5B6673); }
:root:root body .ttl-opt small { display: block; font-size: 13px; color: var(--ink-2, #3D4B5C); }
:root:root body .ttl-change { margin: -6px 0 10px; }
:root:root body .ttl-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--blue-text, #1766C3); text-decoration: underline; cursor: pointer; }
:root:root body .ttl-row { margin-bottom: 12px; }
:root:root body .ttl-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
:root:root body .ttl-row input {
    width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #C9D1DA; border-radius: 0; background: #fff;
    font: inherit; font-size: 16px; color: var(--ink, #0B1B2B);
}
:root:root body .ttl-row input:focus { outline: 2px solid var(--blue, #2F80ED); outline-offset: 0; border-color: var(--blue, #2F80ED); }
:root:root body .ttl-row input[aria-invalid="true"], :root:root body .ttl-check input[aria-invalid="true"] { outline: 2px solid #B42318; }
:root:root body .ttl-row small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3, #5B6673); }
:root:root body .ttl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:root:root body .ttl-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink-2, #3D4B5C); margin: 4px 0 10px; cursor: pointer; }
:root:root body .ttl-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--navy, #071827); }
:root:root body .ttl-msg { min-height: 1.2em; margin: 4px 0 8px; font-size: 14px; color: #B42318; }
:root:root body .ttl-msg:empty { min-height: 0; margin: 0; }
:root:root body .ttl-go { width: 100%; min-height: 50px; justify-content: center; }
:root:root body .ttl-go[disabled] { opacity: .7; cursor: wait; }
:root:root body .ttl-small { margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-3, #5B6673); }
:root:root body .ttl-small a { color: inherit; text-decoration: underline; }
html.ttl-open { overflow: hidden; }

/* phones: the form is a sheet from the bottom, only after the visitor taps the bar */
:root:root body .ttl-wrap.ttl-sheet { align-items: flex-end; padding: 0; }
:root:root body .ttl-sheet .ttl-dlg { max-width: none; max-height: 88vh; padding: 24px 16px 18px; transform: translateY(40px); }
:root:root body .ttl-sheet .ttl-dlg h2 { font-size: 22px; }

/* phones: the small bar (no full-screen interstitial) */
:root:root body .ttl-bar {
    position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 999; display: flex; align-items: stretch;
    background: var(--navy, #071827); color: #fff; box-shadow: 0 12px 30px -10px rgba(7, 24, 39, .6);
    transform: translateY(120%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
    font-family: var(--sans, Arial, sans-serif);
}
:root:root body .ttl-bar.in { transform: none; }
:root:root body .ttl-bar-go { flex: 1; text-align: left; border: 0; background: none; color: #fff; padding: 10px 12px; font: inherit; cursor: pointer; }
:root:root body .ttl-bar-go b { display: block; font-size: 14px; color: #fff; }
:root:root body .ttl-bar-go span { font-size: 12px; color: var(--blue-light, #6DA9FF); text-decoration: underline; }
:root:root body .ttl-bar-x { width: 44px; border: 0; background: none; color: #fff; font-size: 24px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
    :root:root body .ttl-back, :root:root body .ttl-dlg, :root:root body .ttl-bar { transition: none; }
}

/* resources.html: the "Free guides" cards */
:root:root body .tt-guides { padding: 72px 0; background: #fff; border-bottom: 1px solid var(--rule, #E3E7EC); scroll-margin-top: 70px; }
:root:root body .tt-guides .tt-guides-head { max-width: 40em; margin-bottom: 28px; }
:root:root body .tt-guides .tt-guides-head h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 12px 0 10px; }
:root:root body .tt-guides .tt-guides-head h2 em { font-style: italic; color: var(--blue, #2F80ED); }
:root:root body .tt-guides .tt-guides-head p { margin: 0; font-size: 17px; color: var(--ink-2, #3D4B5C); }
:root:root body .tt-guides-num { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-text, #1766C3); }
:root:root body .tt-guides-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
:root:root body .tt-guide { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; background: var(--paper, #FBFAF7); border: 1px solid var(--rule, #E3E7EC); border-top: 3px solid var(--navy, #071827); }
:root:root body .tt-guide.soon { border-top-color: var(--ink-3, #6B7785); }
:root:root body .tt-guide h3 { margin: 0; font-family: var(--serif, Georgia, serif); font-size: 22px; color: var(--navy, #071827); }
:root:root body .tt-guide p { margin: 0 0 6px; font-size: 15.5px; color: var(--ink-2, #3D4B5C); flex: 1; }
:root:root body .tt-guide .tt-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--level-2-text, #11704F); }
:root:root body .tt-guide.soon .tt-tag { color: var(--ink-3, #5B6673); }
:root:root body .tt-guide .btn { align-self: flex-start; }
:root:root body .tt-guides-note { margin: 18px 0 0; font-size: 13px; color: var(--ink-3, #5B6673); }
@media (max-width: 860px) { .tt-guides-cards { grid-template-columns: 1fr; } .tt-guides { padding: 56px 0; } }
