/* Blog v3 (2026-12-04): the article page (v2 structure, classic finish) + the listing pages (.tpb).
   Owner: "simple, beautiful, classic, very well organised, easy to read — classic tennis style".
   Classic = the site's own editorial language: serif titles (Instrument Serif) with the italic
   part, small uppercase labels with the gold dot, gold only as hairlines and numerals, the
   site's violet for everything you can click. Nothing glows, nothing moves on hover.

   ---- ARTICLE (from assets/v2/article.css) ----
   Article page v2 (2026-12-03, second pass: "more professional, modular, airy").
   template-parts/single-v2.php + inc/article-v2.php. Scoped under .tpa; the classic template is untouched.

   SYSTEM
   - one spacing scale (4/8 multiples), one module (.tpa-mod: surface, hairline, 16px radius);
   - one accent for everything interactive: the site's violet (links, buttons, active states);
   - the match's surface colour is only a marker (a dot, a 2px line on top of the match module);
   - serif only for the title and section headings; every label in sentence case. */

.tpa {
  --t-surface: #0e1431;
  --t-surface-2: #121a3c;
  --t-line: rgba(255, 255, 255, .07);
  --t-line-2: rgba(255, 255, 255, .12);
  --t-text: #eef0fb;
  --t-text-2: #c7cbe4;
  --t-muted: #9aa0bd;
  --t-accent: var(--violet, #b9afff);
  --t-accent-strong: var(--purple, #6c5ce8);
  --t-surf: #8d93b2;
  --t-gold: var(--gold, #d8c690);
  --t-label: var(--purple-label, #a39de6);
  --t-r: 16px;
  --t-pad: 20px;
  --t-gap: 24px;
  --t-top: calc(var(--nav-h, 78px) + 24px);
  padding-top: 24px;
}
.tpa [data-surface="clay"], .tpa[data-surface="clay"] { --t-surf: #df7f56; }
.tpa [data-surface="hard"], .tpa[data-surface="hard"] { --t-surf: #5b93f0; }
.tpa [data-surface="indoor"], .tpa[data-surface="indoor"] { --t-surf: #a084f0; }
.tpa [data-surface="grass"], .tpa[data-surface="grass"] { --t-surf: #52bd80; }

.tpa-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tpa p { margin: 0; }
.tpa a { -webkit-tap-highlight-color: transparent; }
.tpa a:focus-visible, .tpa button:focus-visible, .tpa summary:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 3px; border-radius: 6px; }
.tpa-ico { flex: none; }

/* reading progress: a 2px line over the very top of the screen */
.tpa-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.tpa-progress span { display: block; height: 100%; background: var(--t-accent); transform-origin: 0 50%; transform: scaleX(0); }

.tpa-wrap { width: 100%; max-width: var(--maxw, 1140px); margin: 0 auto; padding: 0 var(--gutter, 20px); }
.tpa-article { max-width: 720px; margin: 0 auto; min-width: 0; }

/* ---- module ------------------------------------------------------------- */
.tpa-mod { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-r); padding: var(--t-pad); }
.tpa-mod__h { margin: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--t-label); letter-spacing: .16em; text-transform: uppercase; }

/* ---- links & buttons ------------------------------------------------------ */
.tpa-more { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--t-accent); font-size: 15px; font-weight: 600; text-decoration: none; }
.tpa-more:hover { color: var(--violet-light, #d7d1ff); }
.tpa-more:hover .tpa-ico { transform: translateX(2px); }
.tpa-more .tpa-ico { transition: transform .15s; }
.tpa-more--sm { font-size: 14px; margin-top: 6px; }
.tpa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; background: var(--t-accent-strong); color: #fff !important; font-size: 15px; font-weight: 600;
  text-decoration: none !important; transition: background .15s;
}
.tpa-btn:hover { background: color-mix(in srgb, var(--t-accent-strong) 86%, #fff); }

/* ---- breadcrumb ------------------------------------------------------------ */
.tpa-crumbs ol { display: flex; flex-wrap: wrap; margin: -6px auto 14px; padding: 0; list-style: none; max-width: 720px; font-size: 13px; line-height: 1.6; }
.tpa-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.tpa-crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--t-muted); opacity: .5; }
.tpa-crumbs a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 4px; margin: 0 -4px; color: var(--t-muted); text-decoration: none; }
.tpa-crumbs a:hover { color: var(--t-text); }

/* ---- header ---------------------------------------------------------------- */
.tpa-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.tpa-kicker__type { display: inline-flex; align-items: center; gap: 10px; color: var(--t-label); }
.tpa-kicker__type::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--t-gold); flex: none; }
.tpa-kicker__surf { display: inline-flex; align-items: center; gap: 8px; color: var(--t-muted); font-weight: 500; }
.tpa-kicker__surf i, .tpa-h2h__surf i { width: 8px; height: 8px; border-radius: 50%; background: var(--t-surf); flex: none; }
.tpa-title {
  margin: 12px 0 0; font-family: var(--font-serif); font-weight: 400; color: var(--t-text);
  font-size: clamp(32px, 7.4vw, 50px); line-height: 1.1; letter-spacing: -.005em; text-wrap: balance;
}
.tpa-title em { font-style: italic; color: var(--violet-light, #d7d1ff); }
.tpa-dek { margin-top: 16px !important; font-size: 18px; line-height: 1.6; color: var(--t-text-2); text-wrap: pretty; }
.tpa-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.tpa-av {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--t-surface-2); border: 1px solid var(--t-line-2);
}
.tpa-av img { display: block; width: 22px; height: 22px; }
.tpa-av--lg { width: 48px; height: 48px; }
.tpa-av--lg img { width: 26px; height: 26px; }
.tpa-byline__txt { display: grid; gap: 0; min-width: 0; font-size: 14px; }
.tpa-byline__by { display: inline-flex; align-items: center; min-height: 32px; justify-self: start; color: var(--t-text); font-weight: 600; text-decoration: none; }
.tpa-byline__by:hover { color: var(--t-accent); }
.tpa-byline__meta { display: flex; flex-wrap: wrap; gap: 0 6px; color: var(--t-muted); }

/* ---- cover ------------------------------------------------------------------- */
.tpa-cover { margin: 32px 0 0; line-height: 0; }
.tpa-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--t-r); background: var(--t-surface); }

/* ---- match facts ------------------------------------------------------------- */
.tpa-match { position: relative; margin-top: var(--t-gap); overflow: hidden; }
.tpa-match::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--t-surf); opacity: .9; }
.tpa-match__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; }
.tpa-match__event { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 32px; color: var(--t-text-2); text-decoration: none; font-weight: 500; }
a.tpa-match__event:hover .tpa-match__name { color: var(--t-text); text-decoration: underline; text-underline-offset: 3px; }
.tpa-tag { flex: none; padding: 3px 8px; border-radius: 6px; background: var(--t-surface-2); border: 1px solid var(--t-line); color: var(--t-text-2); font-size: 12px; font-weight: 600; }
.tpa-match__when { display: inline-flex; align-items: center; gap: 10px; color: var(--t-muted); font-variant-numeric: tabular-nums; }
.tpa-match__when time { white-space: nowrap; }
.tpa-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--t-surface-2); color: var(--t-text-2); border: 1px solid var(--t-line); }
.tpa-status--live { color: #ff8a8f; border-color: rgba(255, 99, 105, .35); }
.tpa-status--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: tpa-pulse 1.4s ease-in-out infinite; }
@keyframes tpa-pulse { 50% { opacity: .25; } }

.tpa-match__players { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; margin-top: 24px; }
.tpa-pl { display: grid; gap: 6px; min-width: 0; }
.tpa-pl--p2 { text-align: right; justify-items: end; }
.tpa-pl__name { padding: 3px 0; font-family: var(--font-serif); font-size: 24px; font-weight: 400; line-height: 1.15; color: var(--t-text); text-decoration: none; overflow-wrap: anywhere; }
a.tpa-pl__name:hover { color: var(--t-accent); }
.tpa-pl__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--t-muted); font-variant-numeric: tabular-nums; }
.tpa-pl--p2 .tpa-pl__meta { justify-content: flex-end; }
.tpa-pl.is-lose .tpa-pl__name { color: var(--t-muted); }
.tpa-flag { display: block; width: 18px; height: 13px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.tpa-vs { padding-top: 2px; font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--t-gold); }

.tpa-score { width: 100%; margin-top: 20px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tpa-score th, .tpa-score td { padding: 10px 0; border-top: 1px solid var(--t-line); font-size: 15px; }
.tpa-score th { text-align: left; font-weight: 500; color: var(--t-muted); }
.tpa-score td { width: 36px; text-align: center; color: var(--t-muted); }
.tpa-score td.is-set { color: var(--t-text); font-weight: 600; }
.tpa-score tr.is-win th { color: var(--t-text); font-weight: 600; }
.tpa-tick { margin-left: 6px; vertical-align: -2px; color: var(--t-accent); }
.tpa-match__note { margin-top: 12px !important; font-size: 14px; color: var(--t-muted); }

.tpa-stats { width: 100%; margin-top: 20px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.tpa-stats td, .tpa-stats th { padding: 12px 0; border-top: 1px solid var(--t-line); vertical-align: middle; }
.tpa-stats td { width: 34%; font-size: 16px; font-weight: 500; color: var(--t-text-2); }
.tpa-stats__a { text-align: left; }
.tpa-stats__b { text-align: right; }
.tpa-stats td.is-best { color: var(--t-text); font-weight: 650; }
.tpa-stats td small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--t-muted); }
.tpa-stats__k { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--t-muted); text-align: center; line-height: 1.4; }

.tpa-h2h { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--t-line); }
.tpa-h2h__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.tpa-h2h__k { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--t-label); }
.tpa-h2h__sum { color: var(--t-text-2); }
.tpa-h2h__list { margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.tpa-h2h__list li { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; }
.tpa-h2h__list li + li { border-top: 1px dashed var(--t-line); }
.tpa-h2h__date { color: var(--t-muted); }
.tpa-h2h__surf { display: inline-flex; align-items: center; gap: 8px; color: var(--t-muted); }
.tpa-h2h__res { color: var(--t-muted); text-align: right; }
.tpa-h2h__res b { color: var(--t-text); font-weight: 600; }

.tpa-match__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--t-line); }
.tpa-match__facts { font-size: 13px; line-height: 1.5; color: var(--t-muted); flex: 1 1 240px; }

/* ---- table of contents ------------------------------------------------------ */
.tpa-toc ol { margin: 0; padding: 0; list-style: none; }
.tpa-toc a { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 10px 0; color: var(--t-text-2); text-decoration: none; font-size: 15px; line-height: 1.45; }
.tpa-toc a:hover, .tpa-toc a[aria-current="true"] { color: var(--t-text); }
.tpa-toc__i { color: var(--t-gold); font-family: var(--font-serif); font-size: 17px; line-height: 1.2; font-variant-numeric: lining-nums; opacity: .85; }
.tpa-toc a[aria-current="true"] .tpa-toc__i { color: var(--t-accent); }
.tpa-toc--m { margin-top: var(--t-gap); padding: 0; }
.tpa-toc--m summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 var(--t-pad); cursor: pointer; list-style: none; }
.tpa-toc--m summary .tpa-mod__h { color: var(--t-text); font-size: 13px; }
.tpa-toc--m summary::-webkit-details-marker { display: none; }
.tpa-toc__n { font-size: 13px; color: var(--t-muted); }
.tpa-toc__chev { margin-left: auto; color: var(--t-muted); transition: transform .2s; }
.tpa-toc--m[open] .tpa-toc__chev { transform: rotate(180deg); }
.tpa-toc--m ol { padding: 4px var(--t-pad) 12px; border-top: 1px solid var(--t-line); }
.tpa-toc--m li + li a { border-top: 1px solid var(--t-line); }

/* ---- article body ----------------------------------------------------------- */
.tpa-body { margin-top: 40px; font-size: 17px; line-height: 1.75; color: var(--t-text-2); overflow-wrap: break-word; }
.tpa-body > :first-child { margin-top: 0 !important; }
.tpa-body p { margin: 0 0 24px; }
.tpa-body p:empty, .tpa-body div:empty { display: none; }
.tpa-body h2, .tpa-body h3, .tpa-body h4 { color: var(--t-text); scroll-margin-top: var(--t-top); text-wrap: balance; }
.tpa-body h2 { margin: 56px 0 16px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(27px, 5.6vw, 34px); line-height: 1.18; }
.tpa-body h2::before { content: ""; display: block; width: 32px; height: 1px; margin-bottom: 18px; background: var(--t-gold); opacity: .7; }
.tpa-body h3 { margin: 40px 0 12px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.tpa-body h4 { margin: 32px 0 8px; font-size: 17px; font-weight: 600; }
.tpa-body strong, .tpa-body b { color: var(--t-text); font-weight: 600; }
.tpa-body a { color: var(--t-accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.tpa-body a:hover { text-decoration-color: currentColor; }
.tpa-body ul, .tpa-body ol { margin: 0 0 24px; padding-left: 22px; }
.tpa-body li { margin-bottom: 8px; padding-left: 4px; }
.tpa-body li::marker { color: var(--t-muted); }
.tpa-body blockquote { margin: 36px 0; padding: 2px 0 2px 22px; border-left: 1px solid var(--t-gold); color: var(--t-text); font-family: var(--font-serif); font-style: italic; font-size: 1.25em; line-height: 1.5; }
.tpa-body blockquote p:last-child { margin-bottom: 0; }
.tpa-body img, .tpa-body video { max-width: 100%; height: auto; border-radius: 12px; }
.tpa-body iframe { max-width: 100%; border: 0; border-radius: 12px; }
.tpa-body figure { margin: 32px 0; }
.tpa-body figcaption { margin-top: 8px; font-size: 14px; color: var(--t-muted); }
.tpa-body hr { margin: 40px 0; border: 0; border-top: 1px solid var(--t-line-2); }
.tpa-body pre { max-width: 100%; overflow-x: auto; padding: 16px; border-radius: 12px; background: var(--t-surface); border: 1px solid var(--t-line); font-size: 14px; line-height: 1.6; white-space: pre; }
.tpa-table { margin: 32px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--t-line); border-radius: 12px; }
.tpa-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tpa-table th, .tpa-table td { padding: 12px 14px; border-bottom: 1px solid var(--t-line); text-align: left; vertical-align: top; }
.tpa-table th { color: var(--t-label); background: var(--t-surface); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tpa-table tr:last-child td { border-bottom: 0; }

/* ---- after the article ------------------------------------------------------- */
.tpa-cta { margin-top: 48px; padding: 24px; }
.tpa-cta__h { font-family: var(--font-serif); font-size: 26px; font-weight: 400; line-height: 1.2; color: var(--t-text); }
.tpa-cta__t { margin-top: 8px !important; font-size: 15px; line-height: 1.6; color: var(--t-text-2); }
.tpa-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 20px; }

.tpa-foot { display: grid; gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--t-line); }
.tpa-foot__about { display: flex; gap: 16px; }
.tpa-foot__name { font-family: var(--font-serif); font-size: 20px; font-weight: 400; line-height: 1.2; color: var(--t-text); }
.tpa-foot__txt { margin-top: 6px !important; font-size: 14px; line-height: 1.65; color: var(--t-muted); }
.tpa-foot__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 6px !important; font-size: 14px; }
.tpa-foot__links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--t-accent); text-decoration: none; font-weight: 500; }
.tpa-foot__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tpa-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tpa-share__k { margin-right: 8px; font-size: 14px; color: var(--t-muted); }
.tpa-share__b {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--t-line-2); background: transparent; color: var(--t-text-2); transition: color .15s, border-color .15s, background .15s;
}
.tpa-share__b:hover { color: var(--t-text); background: var(--t-surface-2); }
.tpa-copy__ok { display: none; }
.tpa-share__b.is-done { color: var(--t-accent); border-color: color-mix(in srgb, var(--t-accent) 45%, transparent); }
.tpa-share__b.is-done .tpa-copy__i { display: none; }
.tpa-share__b.is-done .tpa-copy__ok { display: block; }

/* ---- rail (under the article on phones and tablets) ------------------------- */
.tpa-rail { max-width: 720px; margin: 48px auto 0; }
.tpa-rail__in { display: grid; gap: 16px; }
.tpa-toc--d { display: none; }
.tpa-rail .tpa-mod__h { margin-bottom: 6px; }
.tpa-list { margin: 0; padding: 0; list-style: none; counter-reset: tpa-l; }
.tpa-list li + li { border-top: 1px solid var(--t-line); }
.tpa-list a { display: grid; gap: 4px; padding: 12px 0; color: var(--t-text-2); text-decoration: none; font-size: 15px; line-height: 1.45; }
.tpa-list a:hover span { color: var(--t-text); }
.tpa-list small { font-size: 13px; color: var(--t-muted); }
.tpa-list--num li { counter-increment: tpa-l; }
.tpa-list--num a { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
.tpa-list--num a::before { content: counter(tpa-l); color: var(--t-muted); font-size: 13px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.tpa-links { margin: 0; padding: 0; list-style: none; }
.tpa-links li + li { border-top: 1px solid var(--t-line); }
.tpa-links a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; }
.tpa-links a > span:last-child { display: grid; gap: 2px; min-width: 0; }
.tpa-links b { color: var(--t-text); font-size: 15px; font-weight: 600; }
.tpa-links small { color: var(--t-muted); font-size: 13px; }
.tpa-links a:hover b { color: var(--t-accent); }
.tpa-links__svg { flex: none; color: var(--t-muted); }

/* ---- keep reading ------------------------------------------------------------ */
.tpa-rel { max-width: 720px; margin: 64px auto 0; padding-top: 40px; border-top: 1px solid var(--t-line); }
.tpa-rel__h { margin: 0 0 24px; font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 1.15; color: var(--t-text); }
.tpa-rel__h em, .tpb-sec__h em { font-style: italic; color: var(--violet, #b9afff); }
.tpa-rel__grid { display: grid; gap: 16px; }
.tpa-rel__card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; text-decoration: none; }
.tpa-rel__img { display: block; aspect-ratio: 1200 / 630; overflow: hidden; border-radius: 10px; background: var(--t-surface); border: 1px solid var(--t-line); }
.tpa-rel__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.tpa-rel__card:hover .tpa-rel__img img { opacity: .9; }
.tpa-rel__b { display: grid; gap: 4px; min-width: 0; }
.tpa-rel__c { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--t-gold); }
.tpa-rel__t { color: var(--t-text); font-family: var(--font-serif); font-size: 20px; font-weight: 400; line-height: 1.22; }
.tpa-rel__t em { font-style: italic; color: var(--t-text-2); }
.tpa-rel__card:hover .tpa-rel__t { color: var(--violet-light, #d7d1ff); }
.tpa-rel__d { font-size: 13px; color: var(--t-muted); }

/* ---- tablet --------------------------------------------------------------------- */
@media (min-width: 640px) {
  .tpa { --t-pad: 24px; --t-gap: 32px; padding-top: 32px; }
  .tpa-dek { font-size: 20px; }
  .tpa-pl__name { font-size: 26px; }
  .tpa-body { font-size: 18px; }
  .tpa-cta { padding: 32px; }
  .tpa-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 32px; }
  .tpa-rel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .tpa-rel__card { grid-template-columns: 1fr; align-items: start; gap: 14px; }
}

/* ---- desktop: article + rail ------------------------------------------------- */
@media (min-width: 1024px) {
  .tpa-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 300px); gap: 0 clamp(40px, 5vw, 72px); }
  .tpa-crumbs ol { max-width: none; }
  .tpa-article { max-width: 720px; margin: 0; }
  .tpa-toc--m { display: none; }
  /* The rail runs the full height of the article; its boxes scroll away normally and the table of
     contents, last, then stays in view while reading. Only the contents is sticky: a sticky rail
     taller than the screen would hide its own bottom. */
  .tpa-rail { margin: 0; max-width: none; padding-top: 4px; }
  .tpa-rail__in { display: flex; flex-direction: column; gap: 16px; height: 100%; }
  .tpa-toc--d { display: block; }
  .tpa-toc--d { position: sticky; top: var(--t-top); max-height: calc(100vh - var(--t-top) - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .tpa-toc--d .tpa-mod__h { margin-bottom: 4px; }
  .tpa-toc--d a { font-size: 14px; padding: 8px 0; }
  .tpa-toc--d a[aria-current="true"]::before { content: ""; position: absolute; left: calc(-1 * var(--t-pad) - 1px); top: 8px; bottom: 8px; width: 2px; background: var(--t-accent); }
  .tpa-rel { max-width: none; }
  .tpa-rel__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .tpa *, .tpa *::before { animation: none !important; transition: none !important; }
}

/* =============================================================================
   ---- LISTING PAGES (.tpb): blog home and its pages, categories, search ----
   One page head in the site's style (as on Tip of the day), the sections under it, a lead
   story on the first page, a grid of quiet cards (rows on a phone), page numbers, the most
   read guides. Every card is one link (its title, stretched over the card).
   ============================================================================= */
.tpb {
  --b-surface: #0e1431;
  --b-line: rgba(255, 255, 255, .07);
  --b-line-2: rgba(255, 255, 255, .12);
  --b-text: #eef0fb;
  --b-text-2: #c7cbe4;
  --b-muted: #9aa0bd;
  --b-gold: var(--gold, #d8c690);
  --b-label: var(--purple-label, #a39de6);
  --b-accent: var(--violet, #b9afff);
  padding: 24px 0 72px;
}
.tpb p { margin: 0; }
.tpb a { -webkit-tap-highlight-color: transparent; }
.tpb a:focus-visible, .tpb button:focus-visible, .tpb input:focus-visible { outline: 2px solid var(--b-accent); outline-offset: 3px; border-radius: 6px; }
.tpb-wrap { width: 100%; max-width: var(--maxw, 1140px); margin: 0 auto; padding: 0 var(--gutter, 20px); }
.tpb-ico { flex: none; }

/* ---- page head ------------------------------------------------------------------ */
.tpb-head {
  border: 1px solid var(--border-soft, #232a47); border-radius: var(--r-card, 22px);
  background: linear-gradient(180deg, rgba(124, 111, 224, .07), rgba(124, 111, 224, .02) 70%), var(--bg, #090d26);
  padding: 24px 20px;
}
.tpb-head__main { display: grid; gap: 20px; min-width: 0; }
.tpb-head__copy { min-width: 0; }
.tpb .tpb-kicker { margin: 0 0 18px; font-size: 11.5px; letter-spacing: .24em; }
.tpb-title { font-size: clamp(36px, 9vw, 50px); line-height: 1.04; overflow-wrap: anywhere; }
.tpb-title em { font-style: italic; color: var(--violet, #b9afff); }
.tpb-lead { margin-top: 14px !important; max-width: 62ch; font-size: 16px; line-height: 1.65; color: var(--text-muted, #b2b6cc); text-wrap: pretty; }

.tpb-search { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0; height: 48px;
  border: 1px solid var(--b-line-2); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.tpb-search:focus-within { border-color: color-mix(in srgb, var(--b-accent) 60%, transparent); }
.tpb-search__i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--b-muted); pointer-events: none; }
.tpb-search input { width: 0; min-width: 100%; height: 46px; padding: 0 8px 0 42px; border: 0; background: transparent; color: var(--b-text); font: inherit; font-size: 16px; outline: none; }
.tpb-search input::placeholder { color: var(--b-muted); opacity: 1; }
.tpb-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.tpb-search input:focus-visible { outline: none; }
.tpb-search button { display: inline-flex; align-items: center; justify-content: center; height: 38px; margin-right: 4px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--purple, #6c5ce8); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tpb-search button svg { display: none; }
.tpb-search button:hover { filter: brightness(1.1); }

/* sections: the site's day pills; a phone gets them at the end of the page instead */
.tpb-sections { display: none; }
.tpb-sections ul, .tpb-browse ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tpb-sections a, .tpb-browse a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .08); color: var(--b-text-2); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.tpb-sections a:hover, .tpb-browse a:hover { color: var(--b-text); border-color: rgba(255, 255, 255, .18); }
.tpb-sections a.is-active, .tpb-browse a.is-active { background: var(--purple, #6c5ce8); border-color: var(--purple, #6c5ce8); color: #fff; }

/* ---- cards ------------------------------------------------------------------------ */
.tpb-latest { margin-top: 32px; }
.tpb-card { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0; }
.tpb-card__img { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--b-surface); border: 1px solid var(--b-line); line-height: 0; }
.tpb-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.tpb-card__b { display: grid; gap: 6px; min-width: 0; }
.tpb-card__k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 11px; line-height: 1.4; }
.tpb-tour { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--b-label); }
.tpb-tour[data-tour="atp"] { color: var(--violet, #b9afff); }
.tpb-tour[data-tour="wta"] { color: var(--wta, #e5a9d6); }
.tpb-tour[data-tour="challenger"] { color: var(--challenger, #8fd3e8); }
.tpb-tour[data-tour="itf"] { color: var(--itf, #8fe3b0); }
.tpb-tour[data-tour="guide"] { color: var(--b-gold); }
.tpb-card__place { color: var(--b-muted); font-size: 12.5px; letter-spacing: 0; }
.tpb-card__t { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 18px; line-height: 1.22; color: var(--b-text); text-wrap: pretty; overflow-wrap: anywhere; }
.tpb-card__t a { color: inherit; text-decoration: none; }
.tpb-card__t a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.tpb-card__t em { font-style: italic; color: var(--b-text-2); }
.tpb-card:hover .tpb-card__t, .tpb-card:hover .tpb-card__t em { color: var(--violet-light, #d7d1ff); }
.tpb-card:hover .tpb-card__img img { opacity: .9; }
.tpb .tpb-card__t a:focus-visible { outline: none; }
.tpb .tpb-card__t a:focus-visible::after { outline: 2px solid var(--b-accent); outline-offset: 4px; }
.tpb-card__x { font-size: 15.5px; line-height: 1.6; color: var(--b-text-2); }
.tpb-card__m { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 12.5px; color: var(--b-muted); font-variant-numeric: tabular-nums; }

/* the lead story (first page of the blog): image over text on phones and tablets */
.tpb-card--lead { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--b-line); }
.tpb-card--lead .tpb-card__img { border-radius: 14px; }
.tpb-card--lead .tpb-card__b { gap: 10px; }
.tpb-card--lead .tpb-card__k { font-size: 11.5px; }
.tpb-card--lead .tpb-card__t { font-size: clamp(27px, 6.6vw, 38px); line-height: 1.12; }

/* phones: rows with a hairline between them */
.tpb-grid { display: grid; }
.tpb-grid > .tpb-card { padding: 18px 0; }
.tpb-grid > .tpb-card + .tpb-card { border-top: 1px solid var(--b-line); }

/* ---- pages ------------------------------------------------------------------------ */
.tpb-pages { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--b-line); }
.tpb-pages ol { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tpb-pages ol a, .tpb-pages ol span {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08);
  color: var(--b-text-2); font-size: 14px; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums;
}
.tpb-pages ol a:hover { color: var(--b-text); border-color: rgba(255, 255, 255, .18); }
.tpb-pages ol span[aria-current] { background: var(--purple, #6c5ce8); border-color: var(--purple, #6c5ce8); color: #fff; }
.tpb-pages__gap { min-width: 16px; text-align: center; color: var(--b-muted); }
.tpb-pages__step { display: inline-flex; align-items: center; gap: 8px; min-width: 40px; height: 40px; color: var(--b-accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.tpb-pages__step:hover { color: var(--violet-light, #d7d1ff); }
.tpb-pages__step--next { justify-content: flex-end; }
.tpb-pages ol { display: none; }
.tpb-pages__now { font-size: 14px; color: var(--b-muted); font-variant-numeric: tabular-nums; }
.tpb-pages__step { padding: 0 4px; }

/* ---- this week's tournaments --------------------------------------------------------- */
.tpb-events { margin-top: 48px; }
.tpb .tpb-events__k, .tpb .tpb-browse__k { margin: 0 0 14px; font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--b-label); }
.tpb-events ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tpb-events a {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08); color: var(--b-text-2); font-size: 14px; text-decoration: none; transition: border-color .15s, color .15s;
}
.tpb-events a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--b-gold); opacity: .8; }
.tpb-events a:hover { color: var(--b-text); border-color: rgba(255, 255, 255, .18); }
.tpb-events a.is-active { color: #fff; border-color: var(--purple, #6c5ce8); background: rgba(108, 92, 232, .18); }

/* ---- most read guides ------------------------------------------------------------- */
.tpb-guides { margin-top: 56px; }
.tpb-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 12px; }
.tpb-sec__h { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 1.15; color: var(--b-text); }
.tpb-more { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--b-accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.tpb-more:hover { color: var(--violet-light, #d7d1ff); }
.tpb-guides__list { margin: 0; padding: 0; list-style: none; }
.tpb-guides__list li { border-top: 1px solid var(--b-line); }
.tpb-guides__list a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; text-decoration: none; }
.tpb-guides__n { grid-row: span 2; font-family: var(--font-serif); font-size: 26px; line-height: 1; color: var(--b-gold); opacity: .85; }
.tpb-guides__t { font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--b-text); }
.tpb-guides__m { font-size: 12.5px; color: var(--b-muted); }
.tpb-guides__list a:hover .tpb-guides__t { color: var(--violet-light, #d7d1ff); }

/* ---- browse (phones) ---------------------------------------------------------------- */
.tpb-browse { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--b-line); }


/* the smallest phones (320–374px): the search keeps its whole placeholder */
@media (max-width: 374px) {
  .tpb-head { padding: 22px 16px; }
  .tpb-search input { padding-left: 38px; }
  .tpb-search button { width: 40px; padding: 0; }
  .tpb-search button span { display: none; }
  .tpb-search button svg { display: block; }
}

/* ---- tablet --------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .tpb { padding-top: 32px; }
  .tpb-head { padding: 32px 32px; }
  .tpb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; margin-top: 8px; }
  .tpb-grid > .tpb-card { padding: 0; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tpb-grid > .tpb-card + .tpb-card { border-top: 0; }
  .tpb-card__img { border-radius: 12px; }
  .tpb-card__t { font-size: 22px; }
  .tpb-card--lead { padding-bottom: 36px; margin-bottom: 32px; }
  .tpb-pages ol { display: flex; }
  .tpb-pages__now { display: none; }
  .tpb-guides__list { columns: 2; column-gap: 40px; }
  .tpb-guides__list li { break-inside: avoid; }
}

@media (min-width: 768px) {
  .tpb-card--lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
  .tpb-card--lead .tpb-card__t { font-size: clamp(28px, 3.4vw, 40px); }
  .tpb-sections { display: block; margin: 24px -32px 0; padding: 16px 32px 0; border-top: 1px solid var(--b-line); }
  .tpb-browse { display: none; }
}

/* ---- desktop ---------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .tpb-head__main { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: end; gap: 40px; }
}
@media (min-width: 1024px) {
  .tpb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .tpb *, .tpb *::before, .tpb *::after { transition: none !important; }
}
