/* Features, guides, use cases and compare. Header and footer come from
   public-header.css and marketing.css; everything here is scoped to .tsm. */
.tsm {
  --tsm-blue: #3157d5;
  --tsm-blue-dark: #2445b5;
  --tsm-blue-soft: #eef2fd;
  --tsm-ink: #10182a;
  --tsm-text: #334155;
  --tsm-muted: #5f6b7f;
  --tsm-line: #dce4ef;
  --tsm-soft: #f5f7fb;
  --tsm-mark: #ffbf1f;
  background: #fff;
  color: var(--tsm-ink);
}
.tsm .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.tsm-main { padding: 104px 0 72px; line-height: 1.6; font-size: 16px; }
.tsm-main a { color: var(--tsm-blue); text-underline-offset: 3px; }
.tsm-main :is(a, button, summary, input, select):focus-visible { outline: 3px solid var(--tsm-blue); outline-offset: 3px; border-radius: 6px; }
.tsm-main code { padding: 1px 6px; border-radius: 6px; background: var(--tsm-soft); border: 1px solid var(--tsm-line); font-size: .9em; overflow-wrap: anywhere; }
.tsm-wrap { width: min(100% - 48px, 1120px); margin-inline: auto; }

/* Shared */
.tsm-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--tsm-muted); }
.tsm-crumbs a { color: var(--tsm-muted); text-decoration: none; }
.tsm-crumbs a:hover { color: var(--tsm-ink); text-decoration: underline; }
.tsm h1 { margin: 0; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--tsm-ink); }
.tsm-lede { margin: 12px 0 0; font-size: 18px; line-height: 1.5; color: var(--tsm-text); max-width: 620px; }
.tsm-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tsm-facts li { padding: 4px 12px; border-radius: 999px; background: var(--tsm-soft); border: 1px solid var(--tsm-line); font-size: 14px; color: var(--tsm-text); }
.tsm-note { margin: 10px 0 0; font-size: 14px; color: var(--tsm-muted); }
.tsm-updated { margin: 40px 0 0; font-size: 14px; color: var(--tsm-muted); }

/* Detail layout: section navigation and article */
.tsm-doc { display: grid; grid-template-columns: 210px minmax(0, 720px); gap: 56px; align-items: start; }
.tsm-sidenav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.tsm-sidenav__all { margin-bottom: 8px; font-weight: 600; color: var(--tsm-ink) !important; text-decoration: none; }
.tsm-sidenav__label { margin: 14px 0 4px; color: var(--tsm-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tsm-sidenav a:not(.tsm-sidenav__all) { padding: 5px 10px; border-radius: 8px; color: var(--tsm-text); text-decoration: none; line-height: 1.35; }
.tsm-sidenav a:not(.tsm-sidenav__all):hover { background: var(--tsm-soft); color: var(--tsm-ink); }
.tsm-sidenav a[aria-current="page"] { background: var(--tsm-blue-soft); color: var(--tsm-blue-dark); font-weight: 600; }
.tsm-article { min-width: 0; }
.tsm-head { margin-top: 16px; }
.tsm-head--hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: center; }
.tsm-head--hero .tsm-shot { width: 100%; }
.tsm-hero-wide { margin-top: 24px; }
.tsm-before { margin-top: 24px; padding: 14px 18px; border-radius: 12px; background: var(--tsm-soft); border: 1px solid var(--tsm-line); }
.tsm-before strong { display: block; font-size: 14px; margin-bottom: 4px; }
.tsm-before ul { margin: 0; padding-left: 18px; color: var(--tsm-text); }
.tsm-section { margin-top: 40px; scroll-margin-top: 24px; }
.tsm-section > h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }
.tsm-section > p { margin: 0 0 12px; color: var(--tsm-text); }

/* Steps: one line each */
.tsm-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tsm-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.tsm-step__num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tsm-blue); color: #fff; font-weight: 700; font-size: 14px; line-height: 1; transform: translateY(-1px); }
.tsm-step__text { color: var(--tsm-ink); font-size: 17px; }
.tsm-tip { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: #fffbea; border: 1px solid #f4e3a3; color: #4a3f16; }
.tsm-tip > span { display: inline-block; margin-right: 8px; font-weight: 700; }

/* Screenshots with numbered markers */
.tsm-shots { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin-top: 20px; }
.tsm-shot { margin: 0; }
.tsm-shot--wide { width: 100%; }
.tsm-shot--narrow { width: min(100%, 340px); }
.tsm-shot--phone { width: 210px; }
.tsm-shot__frame { position: relative; display: block; line-height: 0; border-radius: 12px; border: 1px solid var(--tsm-line); background: #0b1f4d; box-shadow: 0 12px 32px rgba(17, 40, 86, .12); overflow: hidden; }
.tsm-shot__frame img { display: block; width: 100%; height: auto; }
.tsm-shot--phone .tsm-shot__frame { border-radius: 26px; border: 6px solid #0f172a; }
.tsm-shot figcaption { margin-top: 8px; font-size: 14px; color: var(--tsm-muted); line-height: 1.45; }
.tsm-box { position: absolute; border: 3px solid var(--tsm-mark); border-radius: 10px; box-shadow: 0 0 0 4px rgba(255, 191, 31, .25); }
.tsm-marker { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--tsm-blue); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(10, 20, 60, .35); color: #fff; font: 700 13px/1 Inter, sans-serif; }

/* Points, lists, tabs, tables */
.tsm-points { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--tsm-line); }
.tsm-points > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--tsm-line); }
.tsm-points dt { font-weight: 600; }
.tsm-points dd { margin: 0; color: var(--tsm-text); }
.tsm-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--tsm-text); }
.tsm-variants { margin-top: 4px; }
.tsm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tsm-tab { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--tsm-line); background: #fff; color: var(--tsm-text); font: 600 14px/1.4 Inter, sans-serif; cursor: pointer; }
.tsm-tab[aria-selected="true"] { background: var(--tsm-ink); border-color: var(--tsm-ink); color: #fff; }
.tsm-variant + .tsm-variant { margin-top: 14px; }
.tsm-variant__title { margin: 0 0 2px; font-size: 15px; }
.tsm-variant p { margin: 0; color: var(--tsm-text); }
.tsm-variants.is-tabbed .tsm-variant__title { display: none; }
.tsm-variants.is-tabbed .tsm-variant + .tsm-variant { margin-top: 0; }
.tsm-table-wrap { overflow-x: auto; border: 1px solid var(--tsm-line); border-radius: 12px; }
.tsm-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tsm-table :is(th, td) { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--tsm-line); border-bottom: 0; }
.tsm-table thead :is(th, td) { border-top: 0; background: var(--tsm-soft); color: var(--tsm-ink); font-size: 14px; font-weight: 700; }
.tsm-table tbody th { background: none; font-weight: 600; color: var(--tsm-ink); width: 30%; }
.tsm-table td { color: var(--tsm-text); }
.tsm-table--plans { min-width: 540px; }
.tsm-table--plans tbody th { width: auto; }
.tsm-table--plans th small { display: block; font-weight: 500; color: var(--tsm-muted); font-size: 13px; }
.tsm-table--compare .tsm-us { background: var(--tsm-blue-soft); color: var(--tsm-ink); }
.tsm-table--compare thead .tsm-us { background: var(--tsm-blue); color: #fff; }
.tsm-table sup a { font-size: 11px; text-decoration: none; }

/* Calculator */
.tsm-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; padding: 18px 20px; border-radius: 14px; background: var(--tsm-blue-soft); border: 1px solid #d4defb; }
.tsm-calc label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.tsm-calc__row { display: flex; gap: 8px; align-items: center; }
.tsm-calc input, .tsm-calc select { min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--tsm-line); background: #fff; font: 500 16px Inter, sans-serif; color: var(--tsm-ink); }
.tsm-calc input { width: 100%; min-width: 0; }
.tsm-calc__unit { color: var(--tsm-muted); font-weight: 500; }
.tsm-calc__result { grid-column: 1 / -1; font-size: 24px; font-weight: 700; color: var(--tsm-ink); }

/* Use cases and comparisons */
.tsm-flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tsm-flow__item { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; border: 1px solid var(--tsm-line); }
.tsm-flow__item h3 { margin: 4px 0 0; font-size: 16px; }
.tsm-flow__item p { margin: 0; color: var(--tsm-text); font-size: 15px; }
.tsm-flow__item .tsm-shot--thumb { width: 100%; margin-top: 4px; }
.tsm-flow__item .tsm-shot--thumb.tsm-shot--phone { width: 60%; }
.tsm-flow__item .tsm-shot__frame { box-shadow: none; }
.tsm-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.tsm-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.tsm-numbers > div { padding: 16px; border-radius: 14px; background: var(--tsm-soft); border: 1px solid var(--tsm-line); }
.tsm-numbers strong { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.tsm-numbers span { display: block; margin-top: 6px; font-size: 14px; color: var(--tsm-muted); line-height: 1.4; }
.tsm-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tsm-verdict__item { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--tsm-line); background: var(--tsm-soft); }
.tsm-verdict__item--us { background: var(--tsm-blue-soft); border-color: #cbd7fa; }
.tsm-verdict h3 { margin: 0 0 8px; font-size: 16px; }
.tsm-verdict ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--tsm-text); }
.tsm-sources { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.tsm-section--sources > h2 { font-size: 18px; }

/* FAQ and related */
.tsm-faq { border-bottom: 1px solid var(--tsm-line); }
.tsm-faq:first-of-type { border-top: 1px solid var(--tsm-line); }
.tsm-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; font-weight: 600; list-style: none; }
.tsm-faq summary::-webkit-details-marker { display: none; }
.tsm-faq summary::after { content: "+"; color: var(--tsm-muted); font-size: 20px; line-height: 1; }
.tsm-faq[open] summary::after { content: "–"; }
.tsm-faq p { margin: 0 0 12px; color: var(--tsm-text); }
.tsm-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tsm-link-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--tsm-line); text-decoration: none; color: var(--tsm-ink) !important; }
.tsm-link-card:hover { border-color: var(--tsm-blue); }
.tsm-link-card strong { font-size: 15px; line-height: 1.35; }
.tsm-link-card span { color: var(--tsm-muted); font-size: 14px; }

/* Hubs */
.tsm-hub__head { margin: 16px 0 4px; }
.tsm-search { margin-top: 20px; max-width: 480px; }
.tsm-search input { width: 100%; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--tsm-line); font: 400 16px Inter, sans-serif; }
.tsm-search input:focus { outline: 3px solid var(--tsm-blue-soft); border-color: var(--tsm-blue); }
.tsm-hub__group { margin-top: 32px; }
.tsm-group-label { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tsm-muted); }
.tsm-group-label::after { content: ""; flex: 1; height: 1px; background: var(--tsm-line); }
.tsm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tsm-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 44px 16px 18px; border-radius: 14px; border: 1px solid var(--tsm-line); text-decoration: none; color: var(--tsm-ink) !important; transition: border-color .15s; }
.tsm-card:hover { border-color: var(--tsm-blue); }
.tsm-card[hidden] { display: none; }
.tsm-card strong { font-size: 16px; line-height: 1.3; }
.tsm-card span { color: var(--tsm-muted); font-size: 14px; }
.tsm-card .tsm-card__arrow { position: absolute; right: 18px; top: 16px; color: var(--tsm-blue); }
.tsm-hub__group--popular .tsm-card { background: var(--tsm-blue-soft); border-color: #d4defb; }
.tsm-card--thumb { padding: 0; gap: 0; overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .2s; }
.tsm-card--thumb:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(17, 40, 86, .14); }
.tsm-card .tsm-card__thumb { display: block; line-height: 0; background: #0b1e57; }
.tsm-thumb { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.tsm-card .tsm-card__body { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 44px 16px 18px; color: var(--tsm-ink); font-size: inherit; }
.tsm-card .tsm-card__body > span:not(.tsm-card__arrow) { color: var(--tsm-muted); font-size: 14px; }
.tsm-card--thumb .tsm-card__arrow { top: 14px; }
@media (prefers-reduced-motion: reduce) { .tsm-card--thumb { transition: none; } .tsm-card--thumb:hover { transform: none; } }
.tsm-empty { margin-top: 24px; color: var(--tsm-muted); }

@media (max-width: 960px) {
  .tsm-doc { grid-template-columns: 180px minmax(0, 1fr); gap: 36px; }
  .tsm-head--hero { grid-template-columns: 1fr; }
  .tsm-head--hero .tsm-shot { max-width: 420px; }
  .tsm-flow { grid-template-columns: 1fr; }
  .tsm-flow__item .tsm-shot--thumb { max-width: 420px; }
  .tsm-grid, .tsm-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tsm-main { padding-top: 88px; }
  .tsm-doc { grid-template-columns: 1fr; gap: 0; }
  .tsm-sidenav { position: static; flex-direction: row; gap: 8px; overflow-x: auto; margin-bottom: 8px; padding-bottom: 8px; scrollbar-width: none; }
  .tsm-sidenav__label { display: none; }
  .tsm-sidenav a:not(.tsm-sidenav__all), .tsm-sidenav__all { flex: none; margin: 0 !important; padding: 6px 12px !important; border: 1px solid var(--tsm-line); border-radius: 999px; white-space: nowrap; }
}
@media (max-width: 600px) {
  .tsm-wrap { width: min(100% - 32px, 1120px); }
  .tsm-lede { font-size: 17px; }
  .tsm-step__text { font-size: 16px; }
  .tsm-points > div { grid-template-columns: 1fr; gap: 2px; }
  .tsm-calc { grid-template-columns: 1fr; }
  .tsm-verdict, .tsm-links, .tsm-grid { grid-template-columns: 1fr; }
  .tsm-shot--narrow { width: 100%; }
  .tsm-marker { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 12px; }
  .tsm-table--compare thead { display: none; }
  .tsm-table--compare :is(tr, th, td) { display: block; width: auto; }
  .tsm-table--compare tr { border-top: 1px solid var(--tsm-line); }
  .tsm-table--compare tr:first-child { border-top: 0; }
  .tsm-table--compare tbody th { width: auto; padding-bottom: 4px; border-top: 0; }
  .tsm-table--compare td { border-top: 0; padding-top: 8px; }
  .tsm-table--compare td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--tsm-muted); }
  .tsm-table--compare td.tsm-us::before { color: var(--tsm-blue); }
}
@media print {
  .tsm-sidenav, .ts-site-header, .ts-footer { display: none !important; }
  .tsm-doc { display: block; }
}
