/* Calculators, business tools, downloads and webinars (no board; built from the PM-1/4/6/8/10 patterns).
   Every component comes from site.css; this file holds page spacing plus the local pieces, all prefixed .tl-:
   device extras (.tl-dash-*), the calculator card and navy result card, assumption notes and source links,
   PM-8 style tool cards, download library cards, invoice gallery, reminder pack, key dates, file previews,
   link cards and HMRC session cards. Desktop-only geometry sits inside min-width: 1100px. */

/* ---------------------------------------------------------------- hero */
.tl-hero .page-hero-intro { max-width: 30em; }
@media (min-width: 1100px) {
  .tl-hero .page-hero-inner { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); }
  .tl-hero--calc .page-hero-title { font-size: 42px; }
}

/* device extras (sized in em: 1em = 10px at the board size) */
.tl-dash-pill { padding: .35em .75em; border-radius: var(--r-pill); background: #dff6f1; color: #0b7a4e; font-size: .66em; font-weight: 800; letter-spacing: .02em; line-height: 1.2; }
.tl-dash-total { display: grid; align-content: center; justify-items: start; gap: .4em; padding: 1.2em 1.5em; }
.tl-dash-total small { color: #303a52; font-size: 1.15em; font-weight: 500; line-height: 1.2; }
.tl-dash-total b { color: var(--ink); font-size: 2.45em; font-weight: var(--fw-title); letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.tl-dash-total span { padding: .25em .65em; border-radius: var(--r-pill); background: #cdf6e6; color: #1b7c48; font-size: 1em; font-weight: 700; line-height: 1.2; }
.tl-dash-files { display: grid; gap: .55em; margin: 0; padding: 0; list-style: none; }
.tl-dash-files li { display: flex; align-items: center; gap: .8em; min-width: 0; padding: .6em .8em; border-radius: .55em; background: #f4f7fc; color: var(--ink); font-size: 1.1em; font-weight: 600; line-height: 1.2; }
.tl-dash-files .icon { width: 1.45em; height: 1.45em; color: #12a558; }
.tl-dash-files span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-dash-files em { padding: .2em .55em; border-radius: .35em; background: #e3f8f4; color: #0b7a4e; font-size: .78em; font-style: normal; font-weight: 800; }

/* ---------------------------------------------------------------- shared section rhythm
   Sections (.sec, .how, .faq-split, .cta-band-section) take padding-block: var(--sec-y) from site.css, so they sit
   2 x --sec-y apart and headings sit var(--sec-head-gap) above their content. A white section that follows a tinted
   full-width band (the feature strip, the calculator band) shows only its own top padding, so it gets more
   (56 px on phones, 86 px at 1536, 98 px at 1920). */
.tl-features + .sec, .tl-features + .how, .tl-calc-sec + .sec { padding-top: calc(var(--sec-y) * 1.5 + 8px); }
.tl-jobs .section-head { max-width: 860px; }
@media (min-width: 1100px) {
  .tl-how .how-panel { padding-block: calc(var(--sec-y) * .55); }
}
@media (min-width: 1100px) and (max-width: 1239px) {
  .tl-how .how-arrow { top: 8px; }
}
.tl-faq .faq-q { min-height: 44px; padding-block: 9px; }
.tl-faq .faq-a { padding-top: 0; }
.tl-row-grid { gap: 18px 24px; }

/* ---------------------------------------------------------------- mint band with photo (calculators hub) */
.tl-band { display: grid; grid-template-columns: minmax(0, 340fr) minmax(0, 236fr) minmax(0, 632fr); align-items: center; min-height: 165px; overflow: hidden; border-radius: 19px; background: linear-gradient(90deg, #e4f7f3 0%, #e9f8f5 60%, #e5f6f2 100%); }
.tl-band-photo { align-self: stretch; min-height: 165px; }
.tl-band-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.tl-band-title { padding: 0 20px 4px 34px; color: var(--ink); font-size: 28px; line-height: 1.2; }
.tl-band-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0 26px 0 0; list-style: none; }
.tl-band-list li { display: grid; align-content: start; justify-items: start; gap: 3px; min-height: 118px; padding: 0 16px 0 30px; border-left: 1px solid #bad2d9; }
.tl-band-icon { display: grid; height: 40px; margin-bottom: 6px; color: #12a058; }
.tl-band-icon .icon { width: 36px; height: 36px; stroke-width: 1.6; }
.tl-band-list b { color: var(--ink); font-size: 18px; font-weight: var(--fw-title); line-height: 1.25; }
.tl-band-list span:last-child { color: #2b3550; font-size: 14px; line-height: 1.45; }
@media (max-width: 1239px) {
  .tl-band { grid-template-columns: minmax(0, 250fr) minmax(0, 210fr) minmax(0, 632fr); }
  .tl-band-title { padding-left: 26px; }
  .tl-band-list li { padding: 0 12px 0 20px; }
}

/* ---------------------------------------------------------------- calculator: form card + navy result card */
.tl-calc-sec { background: var(--band); } /* tinted band joined to the hero; padding-block: var(--sec-y) from .sec */
.tl-calc-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tl-calc-card { min-width: 0; padding: 26px 30px 24px; border: 1px solid var(--line-card); border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow); }
.tl-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.tl-card-icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 12px; background: var(--mint-100); color: var(--green-ui); }
.tl-card-icon .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.tl-card-head h2 { font-size: 23px; line-height: 1.2; }
.tl-card-head p { margin-top: 3px; color: var(--body); font-size: 15px; }
.tl-calc-fields { display: grid; gap: 18px; }
.tl-calc-submit { margin-top: 24px; }
.tl-calc-submit:disabled { opacity: .6; cursor: not-allowed; }
.tl-calc-note { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.tl-calc-private { margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 500; text-align: center; text-wrap: balance; }
.tl-calc-private .icon { display: inline-block; width: 16px; height: 16px; margin-right: 6px; color: var(--green-ui); vertical-align: -3px; }

.tl-result {
  position: relative; overflow: hidden; isolation: isolate; min-width: 0;
  padding: 28px 30px 26px; border-radius: var(--r-xl);
  background: radial-gradient(120% 90% at 100% 100%, var(--hero-glow) 0%, rgba(14, 58, 110, 0) 60%), var(--hero);
  color: var(--white); box-shadow: var(--shadow-md);
}
.tl-result::before, .tl-result::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.tl-result::before { left: -86px; top: -96px; width: 200px; height: 200px; background: radial-gradient(circle at 60% 60%, #1a4c90 0%, #123a74 70%); opacity: .7; }
.tl-result::after { right: -64px; bottom: -86px; width: 150px; height: 150px; background: linear-gradient(200deg, #0e5575 0%, #149a9a 55%, #22c9bd 100%); }
.tl-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tl-result-head h2 { color: var(--white); font-size: 21px; line-height: 1.2; }
.tl-result-year { background: rgba(98, 237, 220, .16); color: var(--teal-hl); }
.tl-result-output { margin-top: 20px; }
.tl-result-wait { color: rgba(255, 255, 255, .82); font-size: 15px; }
.tl-result .result-total { color: var(--white); font-size: 46px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tl-result .result-caption { margin-top: 6px; color: var(--teal-hl); font-size: 15px; font-weight: 600; }
.tl-result .result-detail { margin-top: 20px; padding: 2px 16px; border-radius: 12px; background: rgba(9, 27, 60, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tl-result .result-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: #dfe7f4; font-size: 14.5px; }
.tl-result .result-line:last-child { border-bottom: 0; }
.tl-result .result-line strong { color: var(--white); font-weight: 700; text-align: right; white-space: normal; text-wrap: balance; } /* site.css sets nowrap; long rates must wrap */
.tl-result-note { position: relative; display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; padding-right: 64px; color: rgba(255, 255, 255, .8); font-size: 13.5px; line-height: 1.5; }
.tl-result-note .icon { width: 17px; height: 17px; margin-top: 1px; color: var(--teal-tick); }
@media (min-width: 768px) {
  .tl-result { position: sticky; top: 16px; }
}

/* ---------------------------------------------------------------- calculator notes and sources */
.tl-notes-inner { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 40px 56px; align-items: start; }
.tl-notes-copy h2 { font-size: var(--fs-h2); line-height: 1.15; }
.tl-notes-copy > p { max-width: 62em; margin-top: 12px; color: var(--body); font-size: 16px; }
.tl-note-list { display: grid; gap: 14px; margin-top: 24px; padding: 0; list-style: none; }
.tl-note-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 15.5px; font-weight: 500; line-height: 1.5; }
.tl-note-list .icon { flex: none; width: 24px; height: 24px; margin-top: 0; padding: 4px; border-radius: 50%; background: var(--mint-100); color: var(--green); stroke-width: 2.8; }
.tl-note-list .is-out .icon { background: #ffeaea; color: var(--red); }
.tl-sources { padding: 24px 24px 22px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: linear-gradient(180deg, #f8fafe 0%, #f3f6fc 100%); }
.tl-sources h3 { font-size: 17px; line-height: 1.25; }
.tl-sources h3 + .tl-link-list { margin-top: 12px; }
.tl-sources .tl-link-list + h3 { margin-top: 22px; }
.tl-link-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tl-link-list a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line-card); border-radius: 12px; background: var(--white); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tl-link-list a:hover { border-color: #c9d5ea; box-shadow: var(--shadow); }
.tl-link-list a > .icon:first-child { width: 22px; height: 22px; color: var(--icon-navy); }
.tl-link-list a > span { display: grid; flex: 1; min-width: 0; }
.tl-link-list b { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.tl-link-list small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.tl-link-go { width: 16px; height: 16px; color: var(--blue); stroke-width: 2.2; }

/* ---------------------------------------------------------------- PM-8 style tool cards */
.tl-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 24px; margin: 0; padding: 0; list-style: none; }
.tl-tool { display: flex; align-items: flex-start; gap: 24px; min-width: 0; min-height: 156px; padding: 22px 22px 20px; border: 1px solid #e6edf8; border-radius: 16px; background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%); }
.tl-tool-icon { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 16px; background: #dcf9f1; color: #0d8a57; }
.tl-tool-icon .icon { width: 44px; height: 44px; stroke-width: 1.7; }
.tl-tool-copy { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; min-width: 0; }
.tl-tool-copy h3 { font-size: 19px; line-height: 1.2; }
.tl-tool-copy p { margin: 7px 0 16px; color: #4b5266; font-size: 15px; font-weight: 500; line-height: 1.4; }
.tl-tool-btn { --btn-h: 38px; margin-top: auto; padding: 0 17px; border-color: #0e1d42; border-radius: 12px; font-size: 15px; font-weight: 700; }

/* ---------------------------------------------------------------- article cards */
.tl-guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.tl-guide-list > li { display: flex; min-width: 0; }
.tl-guide-list > li > * { flex: 1; }

/* ---------------------------------------------------------------- download library */
.tl-dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 24px; margin: 0; padding: 0; list-style: none; }
.tl-dl { display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 20px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: linear-gradient(180deg, #f8fafe 0%, #f3f6fc 100%); }
.tl-dl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tl-dl-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: var(--mint-100); color: var(--green-ui); }
.tl-dl-icon .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.tl-dl h3 { font-size: 18px; line-height: 1.25; }
.tl-dl p { flex: 1; margin-top: 8px; color: var(--body); font-size: 14.5px; line-height: 1.5; }
.tl-dl-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.tl-dl-actions .btn { --btn-h: 36px; border-color: #0e1d42; font-weight: 700; }
.tl-dl-file { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 14px; font-weight: 700; }
.tl-dl-file .icon { width: 18px; height: 18px; }
.tl-dl-file:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- invoice gallery */
.tl-invoice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 24px; margin: 0; padding: 0; list-style: none; }
.tl-invoice { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 22px 22px 20px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: linear-gradient(180deg, #f8fafe 0%, #f3f6fc 100%); text-align: center; }
.tl-paper { display: grid; gap: 9px; width: 196px; margin-bottom: 16px; padding: 15px 14px 13px; border: 1px solid #d5deea; border-radius: 6px; background: var(--white); box-shadow: 5px 6px 0 #e3ebf6; text-align: left; }
.tl-paper b { color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .1em; line-height: 1; }
.tl-paper i { display: block; height: 4px; border-radius: 2px; background: #dbe3ee; }
.tl-paper-meta { display: grid; gap: 4px; }
.tl-paper-meta i:first-child { width: 72%; }
.tl-paper-meta i:last-child { width: 46%; }
.tl-paper-head, .tl-paper-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; }
.tl-paper-head { padding: 4px 5px; border-radius: 3px; background: var(--ink); }
.tl-paper-head em { overflow: hidden; color: var(--white); font-size: 7px; font-style: normal; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.tl-paper-row { padding-inline: 5px; }
.tl-paper-total { display: flex; justify-content: flex-end; padding-top: 7px; border-top: 1px solid #e3e9f2; }
.tl-paper-total i { width: 42%; height: 6px; background: #77d6c8; }
.tl-invoice h3 { font-size: 18px; }
.tl-invoice h3 a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.tl-invoice h3 a:hover { color: var(--blue); text-decoration-color: currentColor; }
.tl-invoice p { flex: 1; margin-top: 8px; color: var(--body); font-size: 14.5px; line-height: 1.5; }
.tl-invoice-btn, .tl-reminder-btn { --btn-h: 38px; margin-top: 16px; border-color: #0e1d42; font-weight: 700; }

/* ---------------------------------------------------------------- reminder pack */
.tl-reminder-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin: 0; padding: 0; list-style: none; }
.tl-reminder { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: start; gap: 0 18px; min-width: 0; padding: 20px 22px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.tl-reminder-icon { position: relative; grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: var(--mint-100); color: var(--green-ui); }
.tl-reminder-icon .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.tl-reminder-icon em { position: absolute; top: -7px; right: -8px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--white); border-radius: 50%; background: var(--mint-300); color: var(--ink); font-size: 12px; font-style: normal; font-weight: 800; }
.tl-reminder-copy h3 { font-size: 17px; line-height: 1.3; }
.tl-reminder-copy > p { margin-top: 4px; color: var(--body); font-size: 14.5px; }
.tl-reminder-quote { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; background: var(--surface); }
.tl-reminder-quote p { color: var(--ink-2); font-size: 14px; font-style: italic; line-height: 1.5; }
.tl-reminder-btn { grid-column: 2; justify-self: start; }

/* ---------------------------------------------------------------- key dates */
.tl-date-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 24px; margin: 0; padding: 0; list-style: none; }
.tl-date { display: flex; align-items: flex-start; gap: 18px; min-width: 0; padding: 20px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: linear-gradient(180deg, #f8fafe 0%, #f3f6fc 100%); }
.tl-date-tile { display: grid; justify-items: center; flex: none; width: 76px; overflow: hidden; border-radius: 12px; background: var(--white); box-shadow: var(--shadow); text-align: center; }
.tl-date-tile small { width: 100%; padding: 5px 0 4px; background: var(--hero); color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
.tl-date-tile b { padding-top: 6px; color: var(--ink); font-size: 30px; font-weight: 800; line-height: 1; }
.tl-date-tile span { padding: 3px 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.tl-date h3 { font-size: 17px; line-height: 1.3; }
.tl-date p { margin-top: 8px; color: var(--body); font-size: 14.5px; line-height: 1.5; }

/* ---------------------------------------------------------------- "How to use your file" with a file preview */
.tl-get-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 48px 64px; align-items: center; }
.tl-get-copy { max-width: 680px; }
.tl-get-copy h2 { font-size: var(--fs-h2); line-height: 1.15; }
.tl-get-copy > p { margin-top: 14px; color: var(--body); font-size: 16px; line-height: 1.65; }
.tl-get-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.tl-get-btn { min-width: 200px; }
.tl-get-file { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.tl-get-file .icon { width: 18px; height: 18px; color: var(--icon-navy); }
.tl-preview { min-width: 0; overflow: hidden; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-md); }
.tl-preview-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.tl-preview-bar b { flex: 1; min-width: 0; overflow: hidden; color: var(--ink); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.tl-preview-dots { display: flex; gap: 5px; }
.tl-preview-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d5dce7; }
.tl-sheet { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); font-size: 12px; }
.tl-sheet-th { display: flex; align-items: center; min-width: 0; padding: 9px 10px; border-right: 1px solid #22355e; background: var(--ink); color: var(--white); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.tl-sheet .is-last { border-right: 0; }
.tl-sheet-th.is-more { background: #24365c; color: #cfe0f5; font-weight: 600; }
.tl-sheet-td { padding: 13px 10px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tl-sheet-td i { display: block; width: 72%; height: 6px; border-radius: 3px; background: #e3e8f0; }
.tl-preview-cap { padding: 12px 16px 14px; border-top: 1px solid var(--line-2); color: var(--body); font-size: 13.5px; line-height: 1.5; }
.tl-preview-cap b { color: var(--ink); }
.tl-message { padding: 16px 18px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.tl-message p + p { margin-top: 8px; }
.tl-message-subject { padding-bottom: 8px; border-bottom: 1px solid var(--line-2); font-weight: 700; }
.tl-preview-art { display: grid; place-items: center; padding: 14px; background: linear-gradient(180deg, #fbfcfe 0%, #f1f6fc 100%); }
.tl-calendar-img { width: 194px; }

/* ---------------------------------------------------------------- link cards ("Check before you use it") */
.tl-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; margin: 0; padding: 0; list-style: none; }
.tl-check-grid > li { display: flex; min-width: 0; }
.tl-check { display: flex; flex: 1; align-items: center; gap: 16px; min-width: 0; min-height: 76px; padding: 14px 16px 14px 18px; border: 1px solid var(--line-card); border-radius: 12px; background: linear-gradient(180deg, #f8fafe 0%, #f3f6fc 100%); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tl-check:hover { border-color: #c9d5ea; box-shadow: var(--shadow-md); }
.tl-check-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--mint-100); color: var(--green-ui); }
.tl-check-icon .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.tl-check-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.tl-check-copy b { font-size: 15.5px; font-weight: var(--fw-title); line-height: 1.3; }
.tl-check-copy small { color: var(--body); font-size: 13.5px; line-height: 1.35; }
.tl-check-go { display: grid; place-items: center; flex: none; width: 31px; height: 31px; border-radius: 50%; background: var(--white); color: #1d335c; box-shadow: 0 1px 4px rgba(16, 36, 77, .12); }
.tl-check-go .icon { width: 16px; height: 16px; stroke-width: 2.2; }

/* ---------------------------------------------------------------- HMRC sessions (webinars) */
.tl-session-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin: 0; padding: 0; list-style: none; }
.tl-session-grid > li { display: flex; min-width: 0; }
.tl-session { display: flex; flex: 1; align-items: flex-start; gap: 20px; min-width: 0; padding: 20px 22px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: linear-gradient(180deg, #f8fafe 0%, #f3f6fc 100%); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tl-session:hover { border-color: #c9d5ea; box-shadow: var(--shadow-md); }
.tl-session-icon { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 14px; background: #dcf9f1; color: #0d8a57; }
.tl-session-icon .icon { width: 32px; height: 32px; stroke-width: 1.7; }
.tl-session-copy { display: grid; gap: 6px; min-width: 0; }
.tl-session-copy b { font-size: 18px; font-weight: var(--fw-title); line-height: 1.25; }
.tl-session-copy > span { color: var(--body); font-size: 15px; line-height: 1.45; }
.tl-session-copy small { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--blue); font-size: 14px; font-weight: 700; }
.tl-session-copy small .icon { width: 16px; height: 16px; }
.tl-session:hover small { text-decoration: underline; text-underline-offset: 3px; }
.tl-prose-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin: 0; padding: 0; list-style: none; }
.tl-prose-card { display: flex; align-items: flex-start; gap: 20px; min-width: 0; padding: 22px 24px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: linear-gradient(180deg, #f8fafe 0%, #f3f6fc 100%); }
.tl-prose-icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 12px; background: var(--mint-100); color: var(--green-ui); }
.tl-prose-icon .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.tl-prose-card h3 { font-size: 18px; line-height: 1.25; }
.tl-prose-card p { margin-top: 8px; color: var(--body); font-size: 15px; line-height: 1.6; }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1099px) {
  .tl-how .how-arrow { display: none; }
  .tl-band { grid-template-columns: 250px minmax(0, 1fr); }
  .tl-band-photo { grid-row: span 2; }
  .tl-band-title { padding: 26px 28px 8px; }
  .tl-band-title br { display: none; }
  .tl-band-list { grid-template-columns: minmax(0, 1fr); padding: 0 28px 22px; }
  .tl-band-list li, .tl-band-list li:first-child { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; min-height: 0; padding: 12px 0; border-left: 0; border-top: 1px solid #bad2d9; }
  .tl-band-list li:first-child { border-top: 0; }
  .tl-band-icon { grid-row: span 2; height: auto; margin: 0; }
  .tl-band-icon .icon { width: 32px; height: 32px; }
  .tl-calc-layout { gap: 20px; }
  .tl-calc-card, .tl-result { padding: 22px 22px 20px; }
  .tl-result .result-total { font-size: 40px; }
  .tl-notes-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tl-tool-grid, .tl-dl-grid, .tl-invoice-grid, .tl-date-grid, .tl-guide-list, .tl-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .tl-reminder-list, .tl-prose-cols { grid-template-columns: minmax(0, 1fr); }
  .tl-get-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tl-preview { max-width: 560px; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .tl-reminder-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- mobile */
@media (max-width: 767px) {
  .tl-band { grid-template-columns: minmax(0, 1fr); }
  .tl-band-photo { grid-row: auto; min-height: 0; aspect-ratio: 16 / 9; max-height: 220px; }
  .tl-band-title { padding: 22px 20px 6px; }
  .tl-band-list { padding: 0 20px 18px; }
  .tl-calc-layout { grid-template-columns: minmax(0, 1fr); }
  .tl-calc-card, .tl-result { padding: 20px 18px 18px; }
  .tl-card-head { gap: 14px; }
  .tl-card-icon { width: 48px; height: 48px; }
  .tl-card-head h2 { font-size: 21px; }
  .tl-result .result-total { font-size: 38px; }
  .tl-tool-grid, .tl-dl-grid, .tl-invoice-grid, .tl-date-grid, .tl-guide-list, .tl-check-grid, .tl-session-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tl-tool { gap: 18px; min-height: 0; }
  .tl-tool-icon { width: 60px; height: 60px; }
  .tl-tool-icon .icon { width: 36px; height: 36px; }
  .tl-reminder { grid-template-columns: 48px minmax(0, 1fr); gap: 0 14px; padding: 18px 16px; }
  .tl-reminder-icon { width: 48px; height: 48px; }
  .tl-session { gap: 16px; padding: 18px; }
  .tl-session-icon { width: 50px; height: 50px; }
  .tl-invoice { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; justify-items: start; column-gap: 18px; padding: 16px; text-align: left; }
  .tl-paper { grid-row: span 3; gap: 6px; width: 112px; margin: 0; padding: 10px 9px 9px; box-shadow: 3px 4px 0 #e3ebf6; }
  .tl-paper b { font-size: 9px; }
  .tl-paper-head { gap: 4px; padding: 3px 4px; }
  .tl-paper-head em { height: 4px; font-size: 0; }
  .tl-paper-row { gap: 4px; padding-inline: 4px; }
  .tl-invoice h3 { font-size: 17px; }
  .tl-invoice p { margin-top: 3px; font-size: 14px; }
  .tl-invoice-btn { margin-top: 10px; }
  .tl-prose-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tl-prose-card { gap: 16px; padding: 18px; }
  .tl-prose-icon { width: 48px; height: 48px; }
}

/* calculator: a result is dimmed while its inputs have changed since the last calculation */
[data-result] { transition: opacity .2s ease; }
[data-result].is-stale { opacity: .5; }
@media (prefers-reduced-motion: reduce) { [data-result] { transition: none; } }
