/* TaxShield effective life lookup (draft 1.1.0). Loaded only on pages with [taxshield_effective_life]. Mobile first. */
.tsel, .tsel * { box-sizing:border-box; }
.tsel { --cream:#f6f3ee; --ink:#1f2d2a; --btn:#c23b2c; --deep:#a32e21; --line:#e6e0d6; --muted:#5c6b66; --soft:#f4b3aa; --pale:#fbe7e4;
  font-family:Inter,"Helvetica Neue",Arial,sans-serif; color:var(--ink); background:var(--cream); line-height:1.6; font-size:16px; -webkit-font-smoothing:antialiased; }
.tsel [hidden] { display:none !important; }
.tsel h1, .tsel h2, .tsel h3 { font-family:Manrope,Inter,sans-serif; letter-spacing:-0.025em; line-height:1.15; margin:0 0 .5em; color:var(--ink); padding:0; }
.tsel p { margin:0 0 1em; padding:0; }
.tsel a { color:var(--btn); }
.tsel__sr { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.tsel__wrap { width:min(1120px, calc(100% - 32px)); margin:0 auto; }

/* Hero */
.tsel__hero { position:relative; display:flex; align-items:center; overflow:hidden; background:var(--ink); }
.tsel__hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:60% 50%; max-width:none; }
.tsel__shade { position:absolute; inset:0; background:linear-gradient(180deg, rgba(31,45,42,.9), rgba(31,45,42,.78)); }
.tsel__heroin { position:relative; z-index:2; width:min(1120px, calc(100% - 32px)); margin:0 auto; padding:40px 0 96px; }
.tsel .tsel__kicker { font-family:Manrope,Inter,sans-serif; font-size:.75rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--soft); margin:0 0 12px; }
.tsel .tsel__hero h1 { color:#fff; font-size:clamp(1.9rem,6.4vw,3.1rem); font-weight:800; max-width:34rem; margin:0 0 14px; }
.tsel .tsel__hero h1 em { font-style:normal; color:var(--soft); }
.tsel .tsel__lead { color:rgba(255,255,255,.92); font-size:1.05rem; max-width:34rem; margin:0 0 20px; }
.tsel__chips { display:flex; flex-wrap:wrap; gap:8px; }
.tsel .tsel__chip { display:inline-flex; align-items:center; gap:8px; color:#fff; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); border-radius:999px; padding:7px 13px; font-size:.84rem; font-weight:600; }
.tsel__chip svg { width:18px; height:18px; }

/* Lookup */
.tsel__toolwrap { position:relative; z-index:3; margin-top:-64px; }
.tsel__tool { background:#fff; border:1px solid var(--line); border-radius:24px; box-shadow:0 18px 40px rgba(31,45,42,.12); padding:20px 16px 18px; }
.tsel__toolhead h2 { font-size:1.35rem; margin:0 0 4px; }
.tsel__toolhead p { color:var(--muted); font-size:.9rem; margin:0 0 14px; }
.tsel__search { position:relative; margin:0 0 12px; }
.tsel__search svg { position:absolute; left:14px; top:50%; transform:translateY(-50%); width:20px; height:20px; pointer-events:none; }
.tsel .tsel__search input { width:100%; min-height:50px; padding:12px 14px 12px 44px; border:1.5px solid var(--line); border-radius:999px; font:inherit; font-size:1rem; color:var(--ink); background:#fff; -webkit-appearance:none; appearance:none; }
.tsel .tsel__search input:focus { outline:none; border-color:var(--btn); box-shadow:0 0 0 3px rgba(194,59,44,.15); }
.tsel__cats { display:flex; gap:8px; overflow-x:auto; padding:2px 2px 8px; margin:0 -2px; scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
.tsel .tsel__cat { flex:0 0 auto; border:1.5px solid var(--line); background:#fff; color:var(--ink); border-radius:999px; padding:8px 14px; min-height:40px; font:inherit; font-size:.84rem; font-weight:600; cursor:pointer; white-space:nowrap; }
.tsel .tsel__cat:hover { border-color:var(--ink); }
.tsel .tsel__cat.is-on { background:var(--ink); border-color:var(--ink); color:#fff; }
.tsel .tsel__cat--cw { border-style:dashed; }
.tsel .tsel__cat:focus-visible { outline:none; box-shadow:0 0 0 3px rgba(194,59,44,.3); }
.tsel .tsel__count { font-size:.82rem; font-weight:600; color:var(--muted); margin:6px 0 10px; }

/* Table: cards on mobile, table from 760px */
.tsel__table { width:100%; border-collapse:separate; border-spacing:0; margin:0; border:0; }
.tsel__table thead { display:none; }
.tsel__table tbody { display:grid; grid-template-columns:1fr; gap:8px; }
.tsel__table tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; background:var(--cream); border:1px solid var(--line); border-radius:14px; padding:10px 10px 8px; }
.tsel__table th[scope=row] { grid-column:1 / -1; text-align:left; font-weight:400; padding:0 2px; border:0; background:none; }
.tsel__table td { padding:5px 6px; border:0; background:#fff; border-radius:10px; text-align:center; font-size:.9rem; line-height:1.3; color:var(--ink); }
.tsel__table td:before { content:attr(data-l); display:block; font-size:.6rem; letter-spacing:.05em; text-transform:uppercase; font-weight:700; color:var(--muted); line-height:1.2; margin:0 0 1px; }
.tsel__table td b { font-family:Manrope,Inter,sans-serif; font-size:1rem; }
.tsel__name { display:inline; font-family:Manrope,Inter,sans-serif; font-weight:700; font-size:.98rem; line-height:1.3; color:var(--ink); margin-right:6px; }
.tsel .tsel__tag { display:inline-block; vertical-align:2px; margin:0 6px 0 0; font-size:.7rem; font-weight:700; letter-spacing:.04em; color:var(--deep); background:var(--pale); border-radius:999px; padding:2px 9px; }
.tsel .tsel__tag--cw { color:#fff; background:var(--ink); }
.tsel .tsel__note { display:block; font-size:.74rem; line-height:1.35; color:var(--muted); margin-top:3px; }
.tsel__cw td.tsel__cwcell { grid-column:1 / -1; text-align:left; font-size:.88rem; }
.tsel__cw td.tsel__cwcell:before { display:none; }
.tsel__cw td.tsel__cwcell b { font-size:.9rem; }
.tsel__table tr[hidden] { display:none !important; }
.tsel__more { display:block; width:100%; margin:10px 0 0; min-height:46px; border:1.5px solid var(--ink); background:#fff; color:var(--ink); border-radius:999px; font:inherit; font-family:Manrope,Inter,sans-serif; font-weight:700; font-size:.92rem; cursor:pointer; }
.tsel__empty { text-align:center; background:var(--cream); border:1px dashed var(--line); border-radius:16px; padding:20px; margin:6px 0 0; }
.tsel .tsel__fine { font-size:.78rem; color:var(--muted); margin:14px 0 0; }

/* Sections and cards */
.tsel__sec { padding:44px 0 4px; }
.tsel__sec > .tsel__wrap > h2 { font-size:clamp(1.45rem,4.6vw,2rem); text-align:center; }
.tsel .tsel__intro { text-align:center; color:var(--muted); max-width:38rem; margin:0 auto 22px; }
.tsel__cards { display:grid; grid-template-columns:1fr; gap:14px; }
.tsel__card { background:#fff; border:1px solid var(--line); border-radius:20px; padding:20px; box-shadow:0 10px 24px rgba(31,45,42,.06); }
.tsel__ico { width:48px; height:48px; border-radius:14px; background:var(--pale); display:flex; align-items:center; justify-content:center; margin:0 0 12px; }
.tsel__ico svg { width:26px; height:26px; }
.tsel__card h3 { font-size:1.08rem; margin:0 0 6px; }
.tsel .tsel__card p { margin:0; color:var(--muted); font-size:.94rem; }
.tsel__answer { margin:18px 0 0; background:#fff; border-left:5px solid var(--btn); border-radius:16px; padding:18px 20px; box-shadow:0 10px 24px rgba(31,45,42,.07); }
.tsel__answer h2 { font-size:1.12rem; margin:0 0 6px; }
.tsel .tsel__answer p { margin:0; color:#33413d; }

/* CTA band */
.tsel__band { margin:48px 0 0; background:var(--ink); }
.tsel__bandin { display:flex; flex-direction:column; gap:18px; padding:32px 0; }
.tsel .tsel__band h2 { color:#fff; font-size:1.5rem; margin:0 0 6px; }
.tsel .tsel__band p { margin:0; color:rgba(255,255,255,.86); max-width:40rem; }
.tsel__btns { display:flex; flex-wrap:wrap; gap:10px; }
.tsel .tsel__btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:13px 22px; border-radius:999px; font-family:Manrope,Inter,sans-serif; font-weight:700; font-size:.95rem; text-decoration:none; border:1.5px solid transparent; flex:1 1 auto; text-align:center; }
.tsel .tsel__btn svg { width:18px; height:18px; }
.tsel a.tsel__btn--p { background:var(--btn); color:#fff; } .tsel a.tsel__btn--p:hover { background:var(--deep); color:#fff; }
.tsel a.tsel__btn--g { border-color:rgba(255,255,255,.7); color:#fff; } .tsel a.tsel__btn--g:hover { background:rgba(255,255,255,.1); color:#fff; }
.tsel__empty .tsel__btn { flex:0 0 auto; }

/* FAQ */
.tsel__faq { max-width:780px; margin:0 auto; }
.tsel__faq details { background:#fff; border:1px solid var(--line); border-radius:16px; padding:15px 18px; margin:0 0 10px; }
.tsel__faq summary { cursor:pointer; font-family:Manrope,Inter,sans-serif; font-weight:700; font-size:1rem; list-style:none; position:relative; padding-right:28px; color:var(--ink); }
.tsel__faq summary::-webkit-details-marker { display:none; }
.tsel__faq summary:after { content:"+"; position:absolute; right:0; top:-3px; font-size:1.4rem; color:var(--btn); }
.tsel__faq details[open] summary:after { content:"\2212"; }
.tsel .tsel__faq details p { margin:10px 0 0; color:#33413d; font-size:.95rem; }

/* Source, author, credit */
.tsel__src { margin-top:36px; background:#fff; border:1px solid var(--line); border-radius:20px; padding:20px; font-size:.86rem; color:#33413d; }
.tsel__by { display:flex; align-items:center; gap:12px; margin:0 0 12px; }
.tsel .tsel__by p { margin:0; line-height:1.4; }
.tsel__avatar { width:52px; height:52px; border-radius:50%; object-fit:cover; flex:0 0 52px; }
.tsel .tsel__disc { color:var(--muted); margin:0; }
.tsel .tsel__credit { font-size:.74rem; color:var(--muted); text-align:center; padding:22px 16px 32px; margin:0; }
.tsel .tsel__credit a { color:var(--muted); }

@media (min-width:760px) {
  .tsel__heroin { width:min(1120px, calc(100% - 56px)); padding:64px 0 120px; }
  .tsel__hero { min-height:460px; }
  .tsel__shade { background:linear-gradient(90deg, rgba(31,45,42,.95) 0%, rgba(31,45,42,.84) 40%, rgba(31,45,42,.35) 72%, rgba(31,45,42,.1) 100%); }
  .tsel__wrap { width:min(1120px, calc(100% - 56px)); }
  .tsel__toolwrap { margin-top:-90px; }
  .tsel__tool { padding:28px 28px 24px; }
  .tsel__cats { flex-wrap:wrap; overflow:visible; }
  .tsel__tablewrap { max-height:640px; overflow:auto; border:1px solid var(--line); border-radius:16px; }
  .tsel__table thead { display:table-header-group; }
  .tsel__table tbody { display:table-row-group; }
  .tsel__table tr { display:table-row; background:none; border:0; border-radius:0; padding:0; }
  .tsel__table th, .tsel__table td, .tsel__table th[scope=row] { display:table-cell; border-bottom:1px solid var(--line); padding:12px 16px; background:#fff; border-radius:0; vertical-align:middle; }
  .tsel__table thead th { position:sticky; top:0; z-index:1; background:var(--ink); color:#fff; font-family:Manrope,Inter,sans-serif; font-size:.78rem; letter-spacing:.05em; text-transform:uppercase; text-align:center; font-weight:700; }
  .tsel__table thead th:first-child { text-align:left; }
  .tsel__table td { text-align:center; white-space:nowrap; }
  .tsel__table td:before { display:none; }
  .tsel__table tbody tr:hover th, .tsel__table tbody tr:hover td { background:#fdf8f6; }
  .tsel__cw th, .tsel__cw td { background:#faf8f4 !important; }
  .tsel__more { display:none !important; }
  .tsel__cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
  .tsel__cards--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tsel__bandin { flex-direction:row; align-items:center; justify-content:space-between; padding:36px 0; }
  .tsel .tsel__btn { flex:0 0 auto; }
  .tsel__src { padding:24px 28px; }
}

/* Keep light text light on dark areas, against theme and mobile p/heading colours (same fix as the calculator 1.0.2) */
#tsel .tsel__hero h1, #tsel .tsel__band h2, #tsel .tsel__chip { color:#fff !important; }
#tsel .tsel__lead { color:rgba(255,255,255,.92) !important; }
#tsel .tsel__band p { color:rgba(255,255,255,.86) !important; }
#tsel .tsel__hero h1 em, #tsel .tsel__kicker { color:var(--soft) !important; }
#tsel a.tsel__btn--p, #tsel a.tsel__btn--g { color:#fff !important; }
#tsel .tsel__table thead th { color:#fff !important; }
#tsel .tsel__tag--cw { color:#fff !important; }
#tsel .tsel__hero, #tsel .tsel__band { color:#fff !important; }
