/* ── Topic hub cards ─────────────────────────────────────────────────────
   Lives here rather than in the theme stylesheet because these elements are
   generated by this plugin — the CSS ships with the markup it styles, so the
   two can never arrive out of step. Every colour falls back to a literal so
   the cards are correct even without the theme's custom properties. */
.sal-cluster{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:16px;margin:20px 0 34px;}
/* Cards are columns so the meta line sits at the bottom and cards in a row line up (2.253.0). */
.sal-cluster__card{display:flex!important;flex-direction:column;min-width:0;background:var(--bg,#fff);border:1px solid var(--border,#e2e8f0);border-radius:12px;overflow:hidden;text-decoration:none!important;color:inherit;transition:border-color .15s,box-shadow .15s,transform .15s;}
.sal-cluster__card:hover{border-color:var(--primary,#0b6bcb);box-shadow:0 10px 26px rgba(15,23,42,.10);transform:translateY(-2px);}
.sal-cluster__card--lead{border-color:var(--primary,#0b6bcb);box-shadow:0 0 0 3px var(--primary-light,#e3f0fd);}
.sal-cluster__thumb{display:block;flex:none;aspect-ratio:16/9;background:var(--bg-muted,#f1f5f9);overflow:hidden;}
.sal-cluster__thumb img{width:100%;height:100%;object-fit:cover;display:block;margin:0;border-radius:0;}
/* Pages cached before 2.253.0 have the thumbnail inside a captioned figure: fill the frame, no caption. */
.sal-cluster__thumb figure{margin:0!important;height:100%;}
.sal-cluster__thumb figcaption{display:none!important;}
.sal-cluster__thumb--ph{display:flex;align-items:center;justify-content:center;font-size:40px;}
.sal-cluster__body{display:flex!important;flex-direction:column;flex:1 1 auto;padding:14px 16px 16px;min-width:0;}
/* Numbers retired (2.253.0): they restarted in every section and ordered nothing. */
.sal-cluster__num{display:none!important;}
.sal-cluster__title{display:block!important;font-size:1rem;font-weight:700;line-height:1.35;color:var(--text,#0f172a);margin:0 0 6px;overflow-wrap:break-word;}
.sal-cluster__card:hover .sal-cluster__title{color:var(--primary-dark,#08529c);}
/* Three lines at most, so a long summary does not stretch its row. */
.sal-cluster__exc{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;font-size:13px;line-height:1.55;color:var(--text-muted,#64748b);margin:0 0 10px;overflow-wrap:break-word;}
.sal-cluster__meta{display:block!important;margin-top:auto;padding-top:8px;border-top:1px solid var(--border,#e2e8f0);font-size:11.5px;line-height:1.5;color:var(--text-light,#64748b);}
.sal-cluster__meta>span{display:inline-block;margin-right:12px;}
.sal-cluster__meta>span:last-child{margin-right:0;}
.sal-cluster__fresh{color:var(--primary-dark,#08529c);font-weight:600;}
.sal-cluster__dot{display:none!important;}
/* One guide in a section: a wide card, image beside the text, not half a row beside an empty half. */
.sal-cluster--one{grid-template-columns:1fr;}
@media (min-width:601px){
.sal-cluster--one .sal-cluster__card{flex-direction:row;}
.sal-cluster--one .sal-cluster__thumb{flex:0 0 38%;aspect-ratio:auto;min-height:150px;}
.sal-cluster--one .sal-cluster__body{padding:18px 20px;justify-content:center;}
.sal-cluster--one .sal-cluster__meta{margin-top:4px;}
.sal-cluster--one .sal-cluster__title{font-size:1.0625rem;}
}
/* Phones: a hub lists a dozen guides or more, and full-width cards with large images made it screens of pictures.
   Compact rows instead: a small image beside the title and two lines of summary. */
@media (max-width:600px){
.sal-cluster{gap:10px;margin:14px 0 26px;}
.sal-cluster__card{flex-direction:row;border-radius:10px;}
.sal-cluster__card:hover{transform:none;}
.sal-cluster__thumb{flex:0 0 96px;aspect-ratio:auto;min-height:96px;}
.sal-cluster__thumb--ph{font-size:28px;}
.sal-cluster__body{padding:10px 12px;}
.sal-cluster__title{font-size:.9375rem;line-height:1.3;margin:0 0 4px;}
.sal-cluster__exc{font-size:12.5px;line-height:1.45;margin:0 0 6px;-webkit-line-clamp:2;line-clamp:2;}
.sal-cluster__meta{padding-top:0;border-top:0;font-size:11px;}
}
[data-theme="dark"] .sal-cluster__card{background:var(--bg-soft,#1e293b);}
[data-theme="dark"] .sal-cluster__card:hover{box-shadow:0 10px 26px rgba(0,0,0,.35);}
[data-theme="dark"] .sal-cluster__fresh{color:var(--primary,#5aaaf2);}

/* ── Guide → hub back-link ───────────────────────────────────────────────── */
.sal-hub-link{display:block;background:var(--bg-soft,#f8fafc);border:1px solid var(--border,#e2e8f0);border-left:4px solid var(--primary,#0b6bcb);border-radius:10px;padding:16px 20px;margin:32px 0 8px;}
.sal-hub-link__label{display:block;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--primary-dark,#08529c);margin-bottom:6px;}
.sal-hub-link__title{display:block;font-size:1.0625rem;font-weight:700;line-height:1.35;color:var(--text,#0f172a);text-decoration:none;margin-bottom:4px;}
.sal-hub-link__title:hover{color:var(--primary-dark,#08529c);text-decoration:underline;}
.sal-hub-link__meta{display:block;font-size:13px;color:var(--text-muted,#64748b);}
[data-theme="dark"] .sal-hub-link{background:rgba(90,170,242,.08);border-color:rgba(90,170,242,.24);}

/* ── Start here ──────────────────────────────────────────────────────────── */
.sal-hub-start{display:block;background:var(--primary-light,#e3f0fd);border:1px solid rgba(11,107,203,.22);border-left:4px solid var(--primary,#0b6bcb);border-radius:10px;padding:16px 20px;margin:22px 0 30px;}
.sal-hub-start__label{display:block;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--primary-dark,#08529c);margin-bottom:5px;}
.sal-hub-start__link{display:block;font-size:1.0625rem;font-weight:700;color:var(--text,#0f172a);text-decoration:none;margin-bottom:4px;}
.sal-hub-start__link:hover{color:var(--primary-dark,#08529c);text-decoration:underline;}
.sal-hub-start__why{display:block;font-size:13px;color:var(--text-muted,#64748b);}
[data-theme="dark"] .sal-hub-start{background:rgba(90,170,242,.10);border-color:rgba(90,170,242,.28);}