/* ============================================================
   TAXPAYER RELIEF LANDING PAGE
   (core/templates/core/service_pages/taxpayer-relief.html)

   Loaded with service-pages.css, which supplies the shared pieces (.cs-grid,
   sticky .cs-rail, cards, chips, quote factors, FAQ grid, reviews, offices,
   related). Everything here is prefixed .tr- and is this page's own look: a
   deep blue and sun-yellow hero whose signature is the "could you get relief?"
   check (six reason cards and a year picker), a rolling 10-year window strip,
   three tall "ground" cards, a four-tile row of what the CRA weighs, a
   two-column numbered process, an evidence table, and after-you-apply /
   if-denied cards.

   Palette: blue #1e40af (white text on it is 8.7:1), deep #172554 and
   #0f1d4d, tints #eff6ff / #dbeafe, border #bfdbfe, bright #60a5fa for
   decoration only (never small text). Sun: #fef3c7 / #fde68a, ink #78350f,
   amber #b45309 on #fffbeb for cautions. No red anywhere, and nothing loops:
   the only motion is a short hover lift.
   ============================================================ */

.tr-hero {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
    background:
        radial-gradient(720px 360px at 96% -10%, rgba(96, 165, 250, 0.28) 0%, rgba(96, 165, 250, 0) 70%),
        radial-gradient(620px 340px at 0% 108%, rgba(253, 230, 138, 0.5) 0%, rgba(253, 230, 138, 0) 70%),
        linear-gradient(135deg, #fffdf5 0%, #f1f6ff 52%, #dde9ff 100%) !important;
    border-bottom: 1px solid #bfdbfe;
    padding: clamp(1.25rem, 2.5vw, 2rem) 0 0 !important;
}
.tr-hero > .container {
    max-width: none;
    width: 100%;
    padding-left: clamp(1.5rem, 6vw, 7rem);
    padding-right: clamp(1.5rem, 6vw, 7rem);
}
@media (min-width: 1280px) {
    .tr-hero > .container { padding-right: max(clamp(1.5rem, 6vw, 7rem), 108px); }
}

.tr-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: clamp(0.75rem, 2.5vw, 2rem);
}
.tr-crumbs a { display: inline-flex; align-items: center; min-height: 36px; color: #334155; text-decoration: none; }
.tr-crumbs a:hover { color: #1e40af; }
.tr-crumbs span[aria-current] { color: #0f172a; }
.tr-crumbs span[aria-hidden] { color: #94a3b8; }

.tr-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
    gap: clamp(2rem, 4vw, 4rem);
    /* start, not center: the result grows under the cards as choices are made. */
    align-items: start;
}
.tr-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #172554;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1rem;
}
.tr-hero h1 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 1rem;
}
.tr-hero-intro { font-size: 1.06rem; line-height: 1.7; color: #1e293b; margin: 0 0 1.25rem; max-width: 680px; }
.tr-hero-points { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.55rem; }
.tr-hero-points li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; font-weight: 600; line-height: 1.45; color: #1e293b; }
.tr-hero-points .cs-ico { flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #ffffff; background: #1e40af; stroke-width: 3; }
.tr-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tr-hero-actions .svc-rd-btn { font-size: 0.92rem; padding: 0.8rem 1.4rem; gap: 0.5rem; }
.tr-hero-actions .cs-ico { width: 16px; height: 16px; }

/* ---------- Signature tool ---------- */
.tr-tool {
    width: 100%;
    max-width: 540px;
    justify-self: end;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px -28px rgba(15, 29, 77, 0.55), 0 2px 8px rgba(15, 23, 42, 0.05);
}
.tr-tool-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.05rem 1.4rem;
    background: linear-gradient(135deg, #0f1d4d 0%, #172554 50%, #1e40af 100%);
}
.tr-tool-ico { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; color: #78350f; background: linear-gradient(140deg, #fef3c7, #fcd34d); border-radius: 12px; }
.tr-tool-ico .cs-ico { width: 22px; height: 22px; }
.tr-tool-title { margin: 0; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.2rem; font-weight: 700; line-height: 1.2; color: #ffffff; }
.tr-tool-sub { display: block; font-size: 0.8rem; font-weight: 600; color: #dbeafe; margin-top: 0.15rem; }
.tr-tool-body { padding: 1.1rem 1.4rem 1.3rem; }
.tr-tool-intro { margin: 0 0 0.85rem; font-size: 0.88rem; line-height: 1.5; color: #334155; }

.tr-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.tr-reason {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 56px;
    padding: 0.5rem 0.7rem;
    font: inherit;
    text-align: left;
    color: #172554;
    background: #f1f6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.tr-reason-ico { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; color: #1e40af; background: #dbeafe; border-radius: 9px; }
.tr-reason-ico .cs-ico { width: 17px; height: 17px; }
.tr-reason-label { font-size: 0.82rem; font-weight: 700; line-height: 1.3; }
.tr-reason[aria-checked="true"] { background: #1e40af; border-color: #172554; color: #ffffff; }
.tr-reason[aria-checked="true"] .tr-reason-ico { color: #78350f; background: #fde68a; }
.tr-reason:focus-visible, .tr-send:focus-visible, .tr-year:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }

.tr-year-label { display: block; margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #475569; }
.tr-year {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 0.5rem 0.8rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    border-radius: 12px;
}
.tr-year-hint { display: block; margin-top: 0.3rem; font-size: 0.78rem; color: #475569; }

.tr-result { margin-top: 1rem; padding: 0.95rem 1rem; background: #f8fbff; border: 1px dashed #60a5fa; border-radius: 14px; }
.tr-result[hidden] { display: none; }
.tr-res-ground { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 0.7rem; }
.tr-res-tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #475569; }
.tr-res-ground strong { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; color: #0f172a; }
.tr-res-ev strong { display: block; margin-bottom: 0.3rem; font-size: 0.82rem; color: #172554; }
.tr-res-ev ul { margin: 0 0 0.8rem; padding-left: 1.1rem; display: grid; gap: 0.25rem; }
.tr-res-ev li { font-size: 0.85rem; line-height: 1.5; color: #1e293b; }
.tr-res-ev li::marker { color: #1e40af; }
.tr-res-window { padding: 0.8rem 0.9rem; border-radius: 12px; border: 1.5px solid; margin-bottom: 0.8rem; }
.tr-res-good { background: #eff6ff; border-color: #60a5fa; }
.tr-res-mid { background: #fffbeb; border-color: #f0cf7f; }
.tr-res-warn { background: #fff7ed; border-color: #fdba74; }
.tr-res-window strong { display: block; margin-bottom: 0.25rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 0.98rem; line-height: 1.3; color: #0f172a; }
.tr-res-window p { margin: 0 0 0.4rem; font-size: 0.85rem; line-height: 1.55; color: #1e293b; }
.tr-res-note { display: block; font-size: 0.78rem; font-weight: 700; color: #172554; }
.tr-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 1rem;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #172554, #1e40af);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 0 #0f1d4d;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tr-send:active { transform: translateY(2px); box-shadow: 0 2px 0 #0f1d4d; }
.tr-disclaimer { margin: 0.7rem 0 0; font-size: 0.78rem; line-height: 1.45; color: #475569; text-align: center; }
.tr-noscript { margin: 0.75rem 0 0; font-size: 0.85rem; color: #334155; }

.tr-stats { list-style: none; margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #bfdbfe; }
.tr-stats li { padding: 1.15rem 1rem 1.3rem; text-align: center; }
.tr-stats li + li { border-left: 1px solid #bfdbfe; }
.tr-stats strong { display: block; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 700; color: #1e40af; line-height: 1.15; }
.tr-stats span { display: block; font-size: 0.82rem; font-weight: 600; color: #475569; margin-top: 0.2rem; }

/* ---------- Shared pieces ---------- */
.tr-note { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1rem 0 0; padding: 0.95rem 1.1rem; background: #eff6ff; border: 1px dashed #60a5fa; border-radius: 14px; }
.tr-note .cs-ico { flex-shrink: 0; width: 22px; height: 22px; margin-top: 0.1rem; color: #1e40af; }
.tr-note span { font-size: 0.9rem; line-height: 1.6; color: #1e293b; }
.tr-note-gold { background: #fffbeb; border-color: #d9a441; }
.tr-note-gold .cs-ico { color: #b45309; }

.tr-incl .cs-tile, .tr-decides .cs-tile { color: #1e40af; background: linear-gradient(140deg, #eff6ff, #dbeafe); border-color: #bfdbfe; transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.25s, color 0.25s; }

/* ---------- Grounds ---------- */
.tr-grounds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tr-ground { position: relative; padding: 1.2rem 1.1rem 1.2rem; background: #ffffff; border: 1.5px solid #cfe0fb; border-radius: 16px; box-shadow: 0 3px 0 #cfe0fb; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease; }
.tr-ground:nth-child(2) { border-top-color: #f59e0b; background: linear-gradient(175deg, #fffbeb 0%, #ffffff 55%); border-color: #f0dca8; border-top-color: #d97706; }
.tr-ground:nth-child(3) { border-top-color: #0891b2; }
.tr-ground-tag { display: inline-block; padding: 0.2rem 0.65rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #172554; background: #dbeafe; border-radius: 999px; }
.tr-ground:nth-child(2) .tr-ground-tag { color: #78350f; background: #fde68a; }
.tr-ground-ico { display: grid; place-items: center; width: 46px; height: 46px; margin: 0.8rem 0 0.6rem; color: #ffffff; background: linear-gradient(140deg, #172554, #1e40af); border-radius: 13px; }
.tr-ground:nth-child(2) .tr-ground-ico { background: linear-gradient(140deg, #92400e, #d97706); }
.tr-ground:nth-child(3) .tr-ground-ico { background: linear-gradient(140deg, #155e75, #0891b2); }
.tr-ground-ico .cs-ico { width: 24px; height: 24px; }
.tr-ground h3 { margin: 0 0 0.35rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; font-weight: 700; color: #0f172a; }
.tr-ground-text { margin: 0 0 0.7rem; font-size: 0.88rem; line-height: 1.55; color: #334155; }
.tr-ground ul { margin: 0; padding-left: 1.05rem; display: grid; gap: 0.35rem; }
.tr-ground li { font-size: 0.84rem; line-height: 1.5; color: #1e293b; }
.tr-ground li::marker { color: #1e40af; }

/* ---------- 10-year window ---------- */
.tr-window { padding: 1.1rem 1.2rem 1.2rem; background: linear-gradient(170deg, #f1f6ff 0%, #ffffff 80%); border: 1px solid #bfdbfe; border-radius: 16px; margin-bottom: 1rem; }
.tr-window-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; margin-bottom: 0.8rem; }
.tr-window-head strong { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; color: #0f172a; }
.tr-window-head span { font-size: 0.84rem; color: #475569; }
.tr-window-years { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tr-window-years li { padding: 0.5rem 0.75rem; min-width: 58px; text-align: center; font-size: 0.9rem; font-weight: 800; border-radius: 10px; border: 1.5px solid transparent; }
.tr-window-years .is-in { color: #ffffff; background: #1e40af; border-color: #172554; }
.tr-window-years .is-out { color: #475569; background: #eef2f7; border-color: #dbe3ee; text-decoration: line-through; }
.tr-window-years .is-now { color: #78350f; background: #fde68a; border-color: #f5c969; }
.tr-window-line { margin: 0.8rem 0 0; font-size: 0.9rem; font-weight: 700; line-height: 1.5; color: #172554; }
.tr-wcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.tr-wcard { padding: 1rem 1.05rem; background: #ffffff; border: 1px solid #cfe0fb; border-radius: 14px; }
.tr-wcard-ico { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 0.5rem; color: #1e40af; background: #dbeafe; border-radius: 11px; }
.tr-wcard-ico .cs-ico { width: 20px; height: 20px; }
.tr-wcard h3 { margin: 0 0 0.25rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0f172a; }
.tr-wcard p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #334155; }

/* ---------- What the CRA weighs ---------- */
.tr-factors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
.tr-factor { padding: 1rem 0.95rem 1.1rem; background: linear-gradient(175deg, #fef9e7 0%, #ffffff 80%); border: 1px solid #f0dca8; border-radius: 16px; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease; }
.tr-factor-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 0.65rem; color: #78350f; background: #fde68a; border-radius: 13px; }
.tr-factor-ico .cs-ico { width: 23px; height: 23px; }
.tr-factor h3 { margin: 0 0 0.25rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0f172a; }
.tr-factor p { margin: 0; font-size: 0.85rem; line-height: 1.55; color: #334155; }

/* ---------- Process: two-column numbered ---------- */
.tr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.tr-step { position: relative; display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem 1rem 1rem 1.05rem; background: #ffffff; border: 1px solid #cfe0fb; border-radius: 14px; box-shadow: 0 2px 0 #cfe0fb; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease; }
.tr-step:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tr-step-num { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; font-weight: 700; color: #ffffff; background: linear-gradient(140deg, #0f1d4d, #1e40af); border-radius: 50%; }
.tr-step-ico { display: none; }
.tr-step h3 { margin: 0 0 0.2rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.02rem; color: #0f172a; }
.tr-step p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #334155; }

/* ---------- Evidence table ---------- */
.tr-table-wrap { overflow-x: auto; border: 1px solid #cfe0fb; border-radius: 16px; background: #ffffff; }
.tr-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tr-table thead th { padding: 0.8rem 1rem; text-align: left; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #ffffff; background: linear-gradient(135deg, #0f1d4d, #1e40af); }
.tr-table tbody th, .tr-table tbody td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; line-height: 1.55; color: #1e293b; border-top: 1px solid #e3ecfb; }
.tr-table tbody th { width: 28%; font-weight: 700; color: #0f172a; }
.tr-table tbody tr:nth-child(even) { background: #f7faff; }

/* ---------- After / denied ---------- */
.tr-after { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
.tr-after-step { padding: 1.05rem 0.95rem; background: linear-gradient(170deg, #eff6ff 0%, #ffffff 80%); border: 1px solid #cfe0fb; border-radius: 16px; }
.tr-after-ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 0.65rem; color: #ffffff; background: linear-gradient(140deg, #172554, #1e40af); border-radius: 12px; }
.tr-after-ico .cs-ico { width: 22px; height: 22px; }
.tr-after-step h3 { margin: 0 0 0.3rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0f172a; }
.tr-after-step p { margin: 0; font-size: 0.85rem; line-height: 1.55; color: #334155; }
.tr-denied { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.tr-den { padding: 1.05rem 1rem; background: #fffbeb; border: 1px solid #f0cf7f; border-radius: 16px; }
.tr-den-ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 0.65rem; color: #78350f; background: #fde68a; border-radius: 12px; }
.tr-den-ico .cs-ico { width: 22px; height: 22px; }
.tr-den h3 { margin: 0 0 0.3rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0f172a; }
.tr-den p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #1e293b; }

/* ---------- Mistakes ---------- */
.tr-mistakes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.tr-mistake { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem 1.05rem; background: #ffffff; border: 1.5px solid #fcd34d; border-radius: 18px; box-shadow: 0 10px 20px -16px rgba(30, 64, 175, 0.6); }
.tr-mistake-num { flex: 0 0 30px; display: grid; place-items: center; width: 30px; height: 30px; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 0.95rem; font-weight: 700; color: #ffffff; background: #b45309; border-radius: 50%; }
.tr-mistake h3 { margin: 0 0 0.2rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0f172a; }
.tr-mistake p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #1e293b; }

/* ---------- Options: two link cards ---------- */
.tr-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tr-opt { display: block; padding: 1.2rem 1.2rem 1.1rem; color: inherit; text-decoration: none; background: #ffffff; border: 1px solid #cfe0fb; border-radius: 16px; box-shadow: 0 2px 0 #dbe7fb; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.tr-opt-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 0.7rem; color: #ffffff; background: linear-gradient(140deg, #172554, #1e40af); border-radius: 13px; }
.tr-opt-ico .cs-ico { width: 23px; height: 23px; }
.tr-opt h3 { margin: 0 0 0.3rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.1rem; color: #0f172a; }
.tr-opt p { margin: 0 0 0.7rem; font-size: 0.88rem; line-height: 1.55; color: #334155; }
.tr-opt-more { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; font-weight: 800; color: #1e40af; }
.tr-opt-more .cs-ico { width: 16px; height: 16px; }
.tr-opt:focus-visible, .tr-source:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }

/* ---------- Included + decides ---------- */
.tr-incl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1.25rem; }
.tr-incl li { display: flex; gap: 0.8rem; align-items: flex-start; }
.tr-incl h3 { margin: 0 0 0.15rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0f172a; }
.tr-incl p { margin: 0; font-size: 0.87rem; line-height: 1.55; color: #334155; }
.tr-decides { display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 1.2rem; padding: 1.05rem 1.2rem; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 16px; }
.tr-decides strong { display: block; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; color: #0f172a; margin-bottom: 0.2rem; }
.tr-decides p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #1e293b; }

/* ---------- Official sources ---------- */
.tr-sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.tr-source { display: flex; align-items: center; gap: 0.8rem; min-height: 62px; padding: 0.75rem 0.9rem; color: inherit; text-decoration: none; background: #ffffff; border: 1px solid #cfe0fb; border-radius: 14px; box-shadow: 0 2px 0 #dbe7fb; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.tr-source-ico { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: #1e40af; background: #dbeafe; border-radius: 11px; }
.tr-source-ico .cs-ico { width: 20px; height: 20px; }
.tr-source-text { flex: 1 1 auto; min-width: 0; }
.tr-source-text strong { display: block; font-size: 0.92rem; line-height: 1.3; color: #0f172a; }
.tr-source-text em { display: block; font-style: normal; font-size: 0.78rem; font-weight: 600; color: #475569; }
.tr-source-go { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #ffffff; background: #1e40af; border-radius: 50%; transition: transform 0.2s ease, background 0.2s ease; }
.tr-source-go .cs-ico { width: 16px; height: 16px; }

/* ---------- Hover (mouse only) ---------- */
@media (hover: hover) and (pointer: fine) {
    .tr-ground:hover, .tr-factor:hover, .tr-step:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -18px rgba(15, 29, 77, 0.5); }
    .tr-reason:hover { border-color: #1e40af; background: #dbeafe; transform: translateY(-1px); }
    .tr-reason[aria-checked="true"]:hover { background: #172554; }
    .tr-send:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #0f1d4d, 0 16px 26px -14px rgba(15, 29, 77, 0.8); }
    .tr-opt:hover { border-color: #1e40af; transform: translateY(-3px); box-shadow: 0 2px 0 #dbe7fb, 0 16px 26px -16px rgba(15, 29, 77, 0.6); }
    .tr-incl li:hover .cs-tile { transform: rotate(-8deg) scale(1.1); color: #ffffff; background: linear-gradient(135deg, #0f1d4d, #1e40af); border-color: transparent; }
    .tr-source:hover { border-color: #1e40af; background: #f1f6ff; transform: translateY(-3px); box-shadow: 0 2px 0 #dbe7fb, 0 16px 26px -16px rgba(15, 29, 77, 0.6); }
    .tr-source:hover .tr-source-go { background: #0f1d4d; transform: translate(2px, -2px); }
}
@media (prefers-reduced-motion: reduce) {
    .tr-ground, .tr-factor, .tr-step, .tr-reason, .tr-send, .tr-opt, .tr-incl .cs-tile, .tr-source, .tr-source-go { transition: none !important; }
    .tr-ground:hover, .tr-factor:hover, .tr-step:hover, .tr-reason:hover, .tr-send:hover, .tr-opt:hover, .tr-incl li:hover .cs-tile, .tr-source:hover, .tr-source:hover .tr-source-go { transform: none !important; }
}

/* ============ Responsive ============ */
@media (max-width: 1200px) {
    .tr-factors, .tr-after { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tr-grounds { grid-template-columns: minmax(0, 1fr); }
    .tr-ground { padding-bottom: 1.1rem; }
}
@media (max-width: 991px) {
    .tr-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .tr-tool { justify-self: start; max-width: 600px; }
    .tr-denied { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .tr-incl, .tr-sources, .tr-mistakes, .tr-steps, .tr-opts, .tr-wcards { grid-template-columns: minmax(0, 1fr); }
    .tr-table-wrap { border: 0; background: transparent; overflow: visible; }
    .tr-table, .tr-table thead, .tr-table tbody, .tr-table tr, .tr-table th, .tr-table td { display: block; }
    .tr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .tr-table tbody tr { margin-bottom: 0.75rem; background: #ffffff; border: 1px solid #cfe0fb; border-radius: 14px; overflow: hidden; }
    .tr-table tbody tr:nth-child(even) { background: #ffffff; }
    .tr-table tbody th, .tr-table tbody td { width: auto; border-top: 0; padding: 0.55rem 0.95rem; }
    .tr-table tbody th { background: #eff6ff; padding-top: 0.75rem; }
    .tr-table tbody td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 0.1rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #475569; }
}
@media (max-width: 640px) {
    .tr-hero-actions .svc-rd-btn { width: 100%; justify-content: center; }
    .tr-stats { grid-template-columns: minmax(0, 1fr); }
    .tr-stats li + li { border-left: 0; border-top: 1px solid #bfdbfe; }
    .tr-factors, .tr-after { grid-template-columns: minmax(0, 1fr); }
    .tr-reasons { grid-template-columns: minmax(0, 1fr); }
    .tr-tool-body { padding: 1rem 1rem 1.2rem; }
    .tr-tool-head { padding: 1rem; }
    .tr-window-years li { min-width: 52px; padding: 0.45rem 0.55rem; font-size: 0.85rem; }
}

/* Link inside a ground card. */
.tr-more-link { margin: 0.7rem 0 0; }
.tr-more-link a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; font-size: 0.88rem; font-weight: 800; color: #1e40af; text-decoration: underline; text-underline-offset: 3px; }
.tr-more-link a:hover { color: #172554; }
