/* ==========================================================================
   domains-b — free tools page (tools.html): WHOIS/RDAP, DNS, IP, GST
   Every class is prefixed tl-.
   ========================================================================== */

/* ---------- hero ---------- */
.tl-hero { padding-bottom: 64px; }
.tl-hero .eyebrow { margin-top: 22px; }
.tl-jumps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; max-width: 600px; }
.tl-jump { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color 0.2s, transform 0.3s var(--ease), box-shadow 0.3s; }
.tl-jump:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.tl-jump__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tl-jump__icon svg { width: 19px; height: 19px; }
.tl-jump strong { display: block; font-size: 0.97rem; letter-spacing: -0.015em; }
.tl-jump small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; margin-top: 2px; }
.tl-jump__go { width: 16px; height: 16px; color: var(--faint); transition: transform 0.3s var(--ease), color 0.2s; }
.tl-jump:hover .tl-jump__go { color: var(--accent); transform: translateX(3px); }
.tl-hero .hero__trust { margin-top: 24px; }

/* the dark console that cycles through the four tools */
.tl-console { position: relative; border-radius: 22px; overflow: hidden; color: #d8def5; font-family: var(--mono); background: radial-gradient(120% 90% at 85% -10%, #15265e 0%, #0a1230 42%, var(--space) 100%); border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 50px 100px -40px rgba(20, 40, 120, 0.55), var(--shadow-lg); }
.tl-console::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask: radial-gradient(90% 70% at 70% 20%, #000 20%, transparent 80%); mask: radial-gradient(90% 70% at 70% 20%, #000 20%, transparent 80%); }
.tl-console > * { position: relative; }
.tl-console__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.tl-console__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.tl-console__bar span { margin-left: 10px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); }
.tl-console__tabs { display: flex; gap: 6px; padding: 16px 20px 0; }
.tl-console__tabs span { position: relative; overflow: hidden; padding: 6px 12px 7px; border-radius: 8px; font-size: 0.68rem; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.08); transition: color 0.3s, background 0.3s, border-color 0.3s; }
.tl-console__tabs span.is-active { color: #fff; background: rgba(123, 140, 255, 0.16); border-color: rgba(143, 160, 255, 0.4); }
.tl-console__tabs b { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #8fa0ff; transform: scaleX(0); transform-origin: 0 50%; }
.tl-console__tabs span.is-active b { animation: tl-progress var(--tl-cycle, 4.2s) linear forwards; }
@keyframes tl-progress { to { transform: scaleX(1); } }
.tl-console__screens { display: grid; padding: 18px 20px 20px; min-height: 300px; }
.tl-screen { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.tl-screen.is-active { opacity: 1; transform: none; }
.tl-screen__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.tl-screen__title span { font-family: var(--font); font-size: 1.12rem; font-weight: 560; letter-spacing: -0.02em; color: #fff; }
.tl-screen__title em { font-style: normal; font-size: 0.7rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.tl-crow { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); font-size: 0.78rem; }
.tl-crow span { color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.tl-crow b { font-weight: 500; color: #eef1ff; text-align: right; }
.tl-crow b small { margin-left: 8px; font-size: 0.68rem; color: rgba(255, 255, 255, 0.4); }
.tl-crow--res span i { display: inline-block; font-style: normal; padding: 1px 6px; margin-right: 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); color: #c9d1ff; }
.tl-crow--total { border-bottom: 0; padding-top: 14px; }
.tl-crow--total b { font-family: var(--font); font-size: 1.5rem; font-weight: 560; letter-spacing: -0.04em; color: #fff; }
.tl-agree { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 10px; width: max-content; font-size: 0.76rem; color: #3ccf8a; background: rgba(60, 207, 138, 0.1); border: 1px solid rgba(60, 207, 138, 0.25); }
.tl-agree svg { width: 14px; height: 14px; }
.tl-bigip { font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; letter-spacing: -0.02em; padding: 14px 0 10px; }
.tl-screen__foot { margin-top: auto; padding-top: 16px; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); }
.tl-c-ok { color: #3ccf8a !important; }
.tl-c-hl { color: #f2c46d !important; }
.tl-c-acc { color: #9fb0ff !important; }

/* ---------- tools section + tabs ---------- */
.tl-tools { padding-top: 16px; padding-bottom: 72px; }
.tl-tabs__bar { display: flex; justify-content: center; margin-bottom: 28px; }
.tl-tabs .tabs__list { padding: 6px; }
.tl-tabs .tab { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 20px; font-size: 0.95rem; }
.tl-tabs .tab svg { width: 17px; height: 17px; }
.tl-tabs .tab[aria-selected="true"] svg { color: var(--accent); }
.tl-panel { scroll-margin-top: calc(var(--anchor-offset, 96px) + 90px); }
.tl-panel__grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.tl-tool { padding: 32px; }
.tl-tool__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.tl-tool__icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tl-tool__icon svg { width: 23px; height: 23px; }
.tl-tool__head h2 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); letter-spacing: -0.035em; line-height: 1.12; }
.tl-tool__head p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; max-width: 560px; }

/* input row */
.tl-input { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.tl-input:focus-within { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.tl-input > svg { width: 18px; height: 18px; color: var(--faint); }
.tl-input input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; outline: none; font-family: var(--mono); font-size: 0.98rem; color: var(--ink); }
.tl-input input::placeholder { color: var(--faint); }
.tl-input .btn { height: 44px; }
.tl-input .btn.is-loading svg { animation: tl-spin 0.9s linear infinite; }
@keyframes tl-spin { to { transform: rotate(360deg); } }
.tl-hint { margin: 10px 0 0 18px; font-size: 0.86rem; color: var(--red); }
.tl-hint:empty { display: none; }
.tl-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.tl-try > span { margin-right: 4px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tl-try button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); transition: border-color 0.2s, color 0.2s; }
.tl-try button:hover { border-color: var(--ink); color: var(--ink); }
.tl-try button b { font-weight: 500; color: var(--accent); }

/* record-type and rate chips (radios) */
.tl-types, .tl-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.tl-types { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.tl-types legend, .tl-field legend, .tl-field > label { display: block; width: 100%; margin-bottom: 8px; padding: 0; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tl-types legend, .tl-field legend { float: left; }
.tl-type { position: relative; }
.tl-type input, .tl-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tl-type span { display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 56px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-family: var(--mono); font-size: 0.82rem; color: var(--ink-2); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.tl-type span:hover { border-color: var(--line-2); color: var(--ink); }
.tl-type input:checked + span { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-ink); }
.tl-type input:focus-visible + span, .tl-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* results */
.tl-out { margin-top: 26px; }
.tl-out--flush { margin-top: 0; }
.tl-ghost { padding: 22px; border-radius: 18px; border: 1px dashed var(--line-2); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.tl-ghost__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 0.92rem; font-weight: 560; color: var(--ink); }
.tl-ghost__head em { font-style: normal; font-family: var(--mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.tl-ghost__rows { display: grid; gap: 0; margin: 0; }
.tl-ghost__rows div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.tl-ghost__rows dt { font-size: 0.84rem; color: var(--muted); }
.tl-ghost__rows dd { margin: 0; }
.tl-ghost i, .tl-skel { display: block; height: 9px; width: var(--w, 60%); border-radius: 6px; background: linear-gradient(90deg, var(--bg-2), var(--line), var(--bg-2)); background-size: 200% 100%; animation: tl-shimmer 1.8s ease-in-out infinite; }
@keyframes tl-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.tl-ghost > p { margin-top: 16px; font-size: 0.86rem; color: var(--muted); }
.tl-ghost__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tl-ghost__cols > div { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }
.tl-ghost__cols b { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; font-family: var(--mono); font-size: 0.74rem; font-weight: 500; background: var(--bg-2); color: var(--ink-2); }

.tl-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 560; white-space: nowrap; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.tl-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tl-pill--ok { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tl-pill--warn { background: color-mix(in srgb, var(--amber) 14%, transparent); color: color-mix(in srgb, var(--amber) 75%, var(--ink)); border-color: transparent; }
.tl-pill--bad { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); border-color: transparent; }
.tl-pill--info { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.tl-res { border-radius: 18px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.tl-res__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 18px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.tl-res__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.tl-res__id { display: grid; gap: 6px; min-width: 0; }
.tl-res__name strong { font-size: 1.28rem; letter-spacing: -0.03em; word-break: break-all; }
.tl-res__src { font-family: var(--mono); font-size: 0.7rem; color: var(--faint); }
.tl-res__note { padding: 12px 20px; font-size: 0.86rem; color: var(--muted); background: var(--card); border-bottom: 1px solid var(--line); }
.tl-dates { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: var(--card); }
.tl-date { padding: 16px 20px; border-right: 1px solid var(--line); min-width: 0; }
.tl-date:last-child { border-right: 0; }
.tl-date small { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tl-date strong { display: block; margin-top: 5px; font-size: 1.06rem; letter-spacing: -0.02em; }
.tl-date span { display: block; font-size: 0.8rem; color: var(--muted); }
.tl-date--exp.is-ok span { color: var(--green); }
.tl-date--exp.is-warn span { color: color-mix(in srgb, var(--amber) 80%, var(--ink)); }
.tl-date--exp.is-bad span { color: var(--red); }

.tl-kv { margin: 0; display: grid; }
.tl-kv > div { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 4px 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tl-kv dt { font-size: 0.86rem; color: var(--muted); }
.tl-kv dd { margin: 0; font-size: 0.93rem; color: var(--ink); overflow-wrap: anywhere; }
.tl-kv dd small { color: var(--muted); font-size: 0.82rem; }
.tl-kv dd code { font-size: 0.82em; }
.tl-kv a { color: var(--accent); }
.tl-out .tl-kv > div:last-child { border-bottom: 0; }

.tl-block { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.tl-block h4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tl-status { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 16px; align-items: baseline; font-size: 0.88rem; color: var(--muted); }
.tl-status li { display: contents; }
.tl-status li > span:only-child { grid-column: 1 / -1; }
.tl-status code { justify-self: start; white-space: nowrap; }
.tl-status li.is-warn code { color: color-mix(in srgb, var(--amber) 80%, var(--ink)); border-color: color-mix(in srgb, var(--amber) 40%, var(--line)); }
.tl-status li.is-bad code { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.tl-ns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tl-ns li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.82rem; color: var(--ink); }
.tl-ns li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-res__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px; background: var(--card); }
.tl-raw { border-top: 1px solid var(--line); background: var(--card); }
.tl-raw summary { display: flex; align-items: center; gap: 8px; padding: 14px 20px; cursor: pointer; list-style: none; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tl-raw summary::-webkit-details-marker { display: none; }
.tl-raw summary svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.tl-raw[open] summary svg { transform: rotate(180deg); }
.tl-raw summary:hover { color: var(--ink); }
.tl-raw pre.code { margin: 0 20px 20px; max-height: 360px; overflow: auto; font-size: 0.76rem; }

[data-tl-tools] .btn:hover svg { transform: none; }
[data-tl-tools] .btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.tl-copy { width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; border-radius: 8px; color: var(--faint); transition: background 0.2s, color 0.2s; }
.tl-copy:hover { background: var(--bg-2); color: var(--ink); }
.tl-copy svg { width: 15px; height: 15px; }

.tl-state { display: grid; justify-items: start; gap: 12px; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); }
.tl-state h3 { font-size: 1.3rem; letter-spacing: -0.03em; line-height: 1.2; word-break: break-word; }
.tl-state p { color: var(--muted); font-size: 0.94rem; max-width: 560px; }
.tl-state .hero__ctas { margin-top: 4px; }
.tl-state small { font-size: 0.8rem; color: var(--faint); }
.tl-state--free { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); background: linear-gradient(160deg, var(--green-soft), var(--bg) 60%); }
.tl-state--warn { border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--amber) 9%, transparent), var(--bg) 60%); }
.tl-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--mono); font-size: 0.84rem; color: var(--muted); }
.tl-price b { font-family: var(--font); font-size: 1.7rem; font-weight: 560; letter-spacing: -0.04em; color: var(--ink); }

.tl-loading { display: grid; gap: 12px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); }
.tl-loading__top { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-2); }
.tl-loading__top code { font-size: 0.8rem; }
.tl-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: tl-spin 0.8s linear infinite; }

/* DNS results */
.tl-verdict { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 0.92rem; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); }
.tl-verdict svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.tl-verdict strong { display: block; }
.tl-verdict span { color: var(--muted); font-size: 0.88rem; }
.tl-verdict--ok { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 28%, transparent); }
.tl-verdict--ok svg { color: var(--green); }
.tl-verdict--warn { background: color-mix(in srgb, var(--amber) 11%, var(--card)); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.tl-verdict--warn svg { color: var(--amber); }
.tl-verdict--bad { background: color-mix(in srgb, var(--red) 8%, var(--card)); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.tl-verdict--bad svg { color: var(--red); }
.tl-verdict__actions { margin-left: auto; display: flex; gap: 6px; flex: none; }
.tl-resolvers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tl-resolver { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.tl-resolver__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.tl-resolver__ip { padding: 2px 8px; border-radius: 7px; font-family: var(--mono); font-size: 0.76rem; background: var(--inv-bg); color: var(--inv-ink); }
.tl-resolver__head strong { font-size: 0.95rem; }
.tl-resolver__ms { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }
.tl-resolver__status { padding: 10px 16px 0; }
.tl-records { display: grid; padding: 6px 0; }
.tl-records li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: start; padding: 10px 8px 10px 16px; border-bottom: 1px dashed var(--line); }
.tl-records li:last-child { border-bottom: 0; }
.tl-records code { display: block; padding: 0; border: 0; background: none; font-size: 0.8rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; word-break: break-word; }
.tl-records code em { font-style: normal; color: var(--accent); margin-right: 6px; }
.tl-rtype { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 5px; font-family: var(--mono); font-size: 0.68rem; font-style: normal; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); vertical-align: 1px; }
.tl-ttl { display: block; margin-top: 3px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.02em; color: var(--faint); white-space: nowrap; }
.tl-records__empty { padding: 16px; font-size: 0.88rem; color: var(--muted); }
.tl-resolver__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.7rem; color: var(--faint); background: var(--card); }
.tl-resolver__foot .is-on { color: var(--green); }
.tl-dns-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* IP readout */
.tl-ipbox { position: relative; overflow: hidden; padding: 24px; border-radius: 18px; color: #d8def5; background: radial-gradient(110% 120% at 100% 0%, #16296a 0%, #0a1230 45%, var(--space) 100%); border: 1px solid rgba(255, 255, 255, 0.06); }
.tl-ipbox::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(159, 176, 255, 0.18); box-shadow: 0 0 0 30px rgba(159, 176, 255, 0.04), 0 0 0 60px rgba(159, 176, 255, 0.03); pointer-events: none; }
.tl-ipbox__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.tl-ipbox__ver { font-style: normal; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.06em; color: #c9d1ff; background: rgba(123, 140, 255, 0.16); border: 1px solid rgba(143, 160, 255, 0.3); }
.tl-ipbox__ip { position: relative; z-index: 1; margin: 14px 0 18px; min-height: 1.2em; font-family: var(--mono); font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.15; letter-spacing: -0.02em; color: #fff; overflow-wrap: anywhere; }
.tl-ipbox__ip.is-v6 { font-size: clamp(1.1rem, 2.3vw, 1.55rem); }
.tl-ipbox__ip i { display: block; width: 62%; height: 0.8em; margin-top: 0.2em; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)); background-size: 200% 100%; animation: tl-shimmer 1.6s ease-in-out infinite; }
.tl-ipbox__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; min-height: 38px; }
.tl-ipbox .btn--ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.tl-ipbox .btn--ghost:hover { border-color: #fff; }
.tl-ipbox__msg { position: relative; z-index: 1; max-width: 520px; margin: 12px 0 18px; font-family: var(--font); font-size: 0.94rem; color: rgba(255, 255, 255, 0.72); }
.tl-ipbox__msg strong { display: block; margin-bottom: 4px; font-size: 1.35rem; letter-spacing: -0.03em; color: #fff; }
.tl-out--flush .tl-kv { margin-top: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.tl-kv code.tl-ua { display: block; padding: 0; border: 0; background: none; font-size: 0.78rem; line-height: 1.55; color: var(--ink-2); }

/* GST */
.tl-gst { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 24px; align-items: start; }
.tl-gst > .tl-presets { margin-top: 2px; }
.tl-gst__inputs { display: grid; gap: 20px; }
.tl-money { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.tl-money:focus-within { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.tl-money span { font-size: 1.4rem; color: var(--muted); }
.tl-money input { flex: 1; min-width: 0; height: 60px; border: 0; outline: none; background: none; font-size: 1.75rem; font-weight: 540; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); clear: left; }
.tl-seg label { position: relative; display: block; }
.tl-seg span { display: flex; align-items: center; justify-content: center; height: 38px; padding: 0 8px; border-radius: 10px; font-size: 0.86rem; font-weight: 540; color: var(--muted); text-align: center; line-height: 1.15; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.tl-seg span:hover { color: var(--ink); }
.tl-seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.tl-rates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; clear: left; }
.tl-rates .tl-type span { min-width: 58px; }
.tl-rate-custom { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--accent); background: var(--card); }
.tl-rate-custom[hidden] { display: none; }
.tl-rate-custom input { width: 54px; border: 0; outline: none; background: none; font-family: var(--mono); font-size: 0.9rem; color: var(--ink); text-align: right; }
.tl-rate-custom b { font-family: var(--mono); font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.tl-field__note { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.tl-presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.tl-presets > span { margin-right: 6px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tl-presets button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 0.8rem; color: var(--ink-2); transition: border-color 0.2s, color 0.2s; }
.tl-presets button:hover { border-color: var(--ink); color: var(--ink); }
.tl-presets button b { font-family: var(--mono); font-weight: 500; color: var(--accent); }

.tl-slip { --z: 9px; position: relative; padding: 22px 22px calc(26px + var(--z)); border-radius: 16px 16px 0 0; background: var(--bg); border: 1px solid var(--line); border-bottom: 0; font-family: var(--mono); -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%; }
.tl-slip__head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tl-slip__head em { font-style: normal; color: var(--accent); letter-spacing: 0.06em; }
.tl-slip__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 0.86rem; color: var(--ink-2); }
.tl-slip__row b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-slip__row[hidden] { display: none; }
.tl-slip__row--sum span { color: var(--ink); }
.tl-slip__total { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 16px 0 6px; }
.tl-slip__total span { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tl-slip__total strong { font-family: var(--font); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 560; letter-spacing: -0.05em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tl-slip__words { font-family: var(--font); font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
.tl-slip__copy { margin-top: 16px; width: 100%; font-family: var(--font); }
.tl-slip__copy:hover svg { transform: none; }

/* asides */
.tl-aside { display: grid; gap: 14px; position: sticky; top: calc(var(--anchor-offset, 96px) + 12px); }
.tl-note { padding: 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.tl-note--tint { background: var(--bg-2); }
.tl-note h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 1.04rem; letter-spacing: -0.02em; line-height: 1.25; }
.tl-note h3 svg { width: 18px; height: 18px; color: var(--accent); }
.tl-note p { font-size: 0.9rem; color: var(--muted); }
.tl-note p a, .tl-uses a { color: var(--accent); font-weight: 560; }
.tl-note p code { font-size: 0.82em; }
.tl-codes { margin: 0; display: grid; }
.tl-codes > div { padding: 11px 0; border-top: 1px solid var(--line); }
.tl-codes > div:first-child { border-top: 0; padding-top: 2px; }
.tl-codes dt code { font-size: 0.78rem; }
.tl-codes dd { margin: 6px 0 0; font-size: 0.87rem; color: var(--muted); line-height: 1.5; }
.tl-ref { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.tl-ref th, .tl-ref td { padding: 8px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.tl-ref tr:first-child th, .tl-ref tr:first-child td { border-top: 0; }
.tl-ref th { width: 64px; font-family: var(--mono); font-size: 0.78rem; font-weight: 500; color: var(--accent); }
.tl-ref td { color: var(--muted); }
.tl-uses { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: tl-use; }
.tl-uses > li { position: relative; padding-left: 34px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; counter-increment: tl-use; }
.tl-uses > li::before { content: counter(tl-use); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 0.7rem; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); }
.tl-uses strong { display: block; font-size: 0.92rem; color: var(--ink); margin-bottom: 2px; }
.tl-snippet { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; padding: 9px 6px 9px 12px; border-radius: 10px; background: var(--space); border: 1px solid rgba(255, 255, 255, 0.06); }
.tl-snippet code { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font-size: 0.76rem; line-height: 1.55; color: #d8def5; overflow-wrap: anywhere; }
.tl-snippet .tl-copy { width: 26px; height: 26px; color: rgba(255, 255, 255, 0.5); }
.tl-snippet .tl-copy:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.tl-rules { display: grid; gap: 12px; }
.tl-rules li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line-2); }
.tl-rules li:first-child { border-left-color: var(--accent); }
.tl-rules b { font-size: 0.92rem; color: var(--ink); font-weight: 580; }
.tl-rules span { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

/* ---------- where lookups go ---------- */
.tl-flow { padding-top: 64px; padding-bottom: 72px; }
.tl-flow__head { max-width: 680px; margin-bottom: 40px; }
.tl-routes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tl-route { display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; align-items: center; gap: 24px; padding: 18px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.tl-route__tool { display: flex; align-items: center; gap: 12px; }
.tl-route__tool strong { font-size: 1rem; letter-spacing: -0.02em; }
.tl-route__icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tl-route__icon svg { width: 19px; height: 19px; }
.tl-route__path { display: grid; grid-template-columns: auto minmax(48px, 1fr) minmax(0, 290px); align-items: center; gap: 12px; min-width: 0; }
.tl-node { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 0.86rem; font-weight: 540; color: var(--ink); white-space: nowrap; }
.tl-node svg { width: 16px; height: 16px; color: var(--muted); }
.tl-node--far { display: grid; gap: 1px; white-space: normal; min-width: 0; }
.tl-node--far small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-node small { font-family: var(--mono); font-size: 0.68rem; font-weight: 400; color: var(--faint); }
.tl-wire { position: relative; height: 2px; background-image: linear-gradient(90deg, var(--line-2) 50%, transparent 50%); background-size: 8px 2px; }
.tl-wire::after { content: ""; position: absolute; right: -2px; top: 50%; width: 7px; height: 7px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }
.tl-wire i { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); animation: tl-packet 2.6s var(--ease) infinite; }
.tl-route:nth-child(2) .tl-wire i { animation-delay: 0.5s; }
.tl-route:nth-child(3) .tl-wire i { animation-delay: 1s; }
@keyframes tl-packet { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.tl-wire--none { opacity: 0.7; }
.tl-wire--none::after { display: none; }
.tl-wire--none b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 2px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.tl-route__seen { text-align: right; }
.tl-route__seen small { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tl-route__seen strong { font-size: 0.95rem; color: var(--green); }

/* ---------- section head row (title left, text right) ---------- */
.tl-head-row { max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; }
.tl-head-row h2 { margin-bottom: 0; }
.tl-head-row > p { margin: 0 0 6px; max-width: 460px; justify-self: end; }

/* ---------- troubleshooting ---------- */
.tl-fixes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tl-fix { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.2s; }
.tl-fix:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tl-fix__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.tl-fix__top code { font-size: 0.8rem; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-fix__top span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tl-fix h3 { font-size: 1.12rem; letter-spacing: -0.025em; font-weight: 580; line-height: 1.25; margin-bottom: 8px; }
.tl-fix p { color: var(--muted); font-size: 0.92rem; }
.tl-fix__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-size: 0.9rem; font-weight: 560; color: var(--accent); }
.tl-fix__link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.tl-fix__link:hover svg { transform: translateX(3px); }

.tl-related { padding-top: 0; }
.tl-related:has([data-kb-related]:empty), .tl-related:has([data-kb-related][hidden]), .tl-related:has([data-kb-related][style*="none"]) { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  /* the tool gets the full width (its GST form and slip are two columns of their own); the notes sit
     underneath, two up */
  .tl-panel__grid { grid-template-columns: 1fr; }
  .tl-aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  /* keep "Reaches us" in its own right-hand column instead of a lonely second line under the path */
  .tl-route { grid-template-columns: 172px minmax(0, 1fr) max-content; gap: 20px; }
  .tl-route__path { grid-template-columns: auto minmax(32px, 1fr) minmax(0, 290px); }
}
@media (max-width: 980px) {
  .tl-head-row { grid-template-columns: 1fr; gap: 16px; }
  .tl-head-row > p { justify-self: start; }
  .tl-fixes { grid-template-columns: 1fr 1fr; }
  .tl-jumps { max-width: none; }
  /* the hero column is narrow here: keep each jump card to icon + title */
  .tl-jump { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .tl-jump small, .tl-jump__go { display: none; }
}
@media (max-width: 820px) {
  .tl-hero .page-hero__grid { gap: 40px; }
  .tl-gst { grid-template-columns: 1fr; }
  .tl-route { grid-template-columns: 1fr; gap: 14px; }
  .tl-route__seen { text-align: left; display: flex; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
}
@media (max-width: 640px) {
  .tl-hero { padding-top: 48px; padding-bottom: 48px; }
  .tl-ghost__head em { display: none; }
  /* the console in the hero only illustrates the tools below: drop it so the tools start near the top */
  .tl-hero .page-hero__grid > :last-child { display: none; }
  /* the tool tabs sit right below the hero on phones, so the jump cards would only repeat them */
  .tl-jumps { display: none; }
  .tl-tabs .tabs__list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .tl-tabs .tab { justify-content: center; border-radius: 13px; padding: 0 10px; font-size: 0.88rem; }
  .tl-tool { padding: 22px 18px; }
  .tl-tool__head { gap: 12px; }
  .tl-tool__icon { width: 42px; height: 42px; }
  .tl-input { padding-left: 14px; }
  .tl-input > svg { display: none; }
  .tl-input .btn { padding: 0 16px; }
  .tl-input .btn span { display: none; }
  .tl-hint { margin-left: 4px; }
  .tl-ghost { padding: 16px; }
  .tl-ghost__rows div { grid-template-columns: 100px 1fr; }
  .tl-ghost__cols { grid-template-columns: 1fr; }
  .tl-res__head, .tl-block, .tl-res__foot, .tl-res__note { padding-left: 16px; padding-right: 16px; }
  .tl-date { padding: 12px 10px 12px 16px; }
  .tl-date + .tl-date { padding-left: 12px; }
  .tl-date small { font-size: 0.6rem; letter-spacing: 0.08em; }
  .tl-date strong { font-size: 0.9rem; }
  .tl-date span { font-size: 0.74rem; line-height: 1.35; }
  .tl-kv > div { grid-template-columns: 1fr; padding: 11px 16px; }
  .tl-ns { grid-template-columns: 1fr; }
  .tl-status { grid-template-columns: 1fr; gap: 4px; }
  .tl-status code { margin-top: 8px; }
  .tl-resolvers { grid-template-columns: 1fr; }
  .tl-verdict { flex-wrap: wrap; }
  .tl-verdict__actions { margin-left: 31px; }
  .tl-ipbox { padding: 20px; }
  .tl-seg span { font-size: 0.8rem; padding: 0 4px; }
  .tl-slip { padding: 18px 16px calc(22px + var(--z)); }
  .tl-aside { grid-template-columns: 1fr; }
  .tl-presets > span { width: 100%; margin: 0 0 2px; }
  .tl-note { padding: 20px; }
  .tl-route { padding: 16px; }
  .tl-route__path { grid-template-columns: 1fr; gap: 8px; justify-items: start; }
  .tl-wire { width: 2px; height: 22px; margin-left: 22px; background-image: linear-gradient(180deg, var(--line-2) 50%, transparent 50%); background-size: 2px 8px; }
  .tl-wire::after { right: auto; left: 50%; top: auto; bottom: -2px; transform: translateX(-50%) rotate(135deg); }
  .tl-wire i { left: 50%; top: 0; margin: 0 0 0 -4px; animation-name: tl-packet-v; }
  @keyframes tl-packet-v { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
  .tl-wire--none b { left: 14px; transform: translateY(-50%); }
  .tl-fixes { grid-template-columns: 1fr; }
  .tl-fix { padding: 22px; }
}
