/* ==========================================================================
   Rootlab Blog
   Built on the Rootlab site's design tokens (--bg, --surface, --text, --accent, ...), loaded from the
   site's styles.css. Dark by default, light through the same theme switch as the rest of the site.
   Every token has a fallback so the blog still renders if that file is unavailable.
   ========================================================================== */

:root {
  --rl-brand: var(--accent, #fbbf24);
  --rl-btn: var(--btn-bg, #fbbf24);
  --rl-btn-text: var(--btn-text, #1a1204);
  --rl-btn-hover: var(--btn-hover, #fcd34d);
  --rl-ink: var(--text, #f6f1e9);
  --rl-text: var(--text-2, #cdc5b9);
  --rl-muted: var(--muted, #9c9388);
  --rl-line: var(--line, rgba(255,255,255,.09));
  --rl-line-strong: var(--line-2, rgba(255,255,255,.18));
  --rl-soft: var(--bg-2, #100e0c);
  --rl-surface: var(--surface, #15120f);
  --rl-surface-2: var(--surface-2, #1c1814);
  --rl-surface-3: var(--surface-3, #241f1a);
  --rl-radius: 14px;
  --rl-radius-lg: 18px;
  --rl-shadow: var(--shadow, 0 24px 60px rgba(0,0,0,.5));
  --rl-ease: cubic-bezier(.2, 0, 0, 1);
  --rl-a: 251,191,36;
  --rl-b: 249,115,22;
}
:root[data-theme=light] { --rl-a: 245,158,11; --rl-b: 194,65,12; }

/* ---------- base ---------- */
.rl-blog { color: var(--rl-ink); background: var(--bg, #0a0908); }
.rl-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
.rl-section { padding-block: 3rem 4.5rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rl-blog :focus-visible { outline: 3px solid var(--info, #7dd3fc); outline-offset: 3px; border-radius: 6px; }
.rl-blog :is(h1, h2, h3), .rl-card-title, .rl-postnav a, .rl-toc a, .rl-crumbs li { overflow-wrap: anywhere; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
body.admin-bar .progress { top: 32px; }
@media (max-width: 782px) { body.admin-bar .progress { top: 46px; } }

/* ---------- breadcrumbs ---------- */
.rl-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5rem; margin: 0 0 .5rem; padding: 0; list-style: none; font: 500 .8rem var(--mono, monospace); color: var(--rl-muted); }
.rl-crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.rl-crumbs li + li::before { content: "/"; opacity: .6; }
.rl-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.rl-crumbs a:hover { color: var(--rl-brand); }
.rl-crumbs [aria-current] { color: var(--rl-text); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- hero (listings) and article head ---------- */
.rl-hero, .rl-article-head {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--rl-line);
  background: radial-gradient(55% 90% at 90% 0, rgba(var(--rl-a), .16), transparent 62%), radial-gradient(40% 70% at 0 100%, rgba(var(--rl-b), .10), transparent 62%), var(--bg, #0a0908);
}
.rl-hero::before, .rl-article-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--rl-line) 1px, transparent 1px), linear-gradient(90deg, var(--rl-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 100% at 85% 0, #000, transparent 70%); mask-image: radial-gradient(60% 100% at 85% 0, #000, transparent 70%);
}
.rl-hero h1, .rl-article-head h1 { font: 600 clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem)/1.08 var(--display, inherit); letter-spacing: -.035em; max-width: 20ch; margin: 0 0 1rem; color: var(--rl-ink); text-wrap: balance; }
.rl-article-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); max-width: 26ch; margin-top: 1rem; }
.rl-eyebrow { margin: 0 0 .75rem; font: 600 .75rem var(--mono, monospace); letter-spacing: .16em; text-transform: uppercase; color: var(--rl-brand); }
.rl-lead { max-width: 62ch; margin: 0; font-size: 1.15rem; line-height: 1.65; color: var(--rl-text); text-wrap: pretty; }
.rl-hero .rl-search { margin-top: 1.75rem; }

/* topic glow colours */
.rl-topic-security { --rl-a: 251,191,36; --rl-b: 249,115,22; }
.rl-topic-backups { --rl-a: 234,179,8; --rl-b: 180,83,9; }
.rl-topic-migration { --rl-a: 251,113,133; --rl-b: 249,115,22; }
.rl-topic-monitoring { --rl-a: 163,230,53; --rl-b: 234,179,8; }
.rl-topic-wordpress { --rl-a: 249,115,22; --rl-b: 220,38,38; }
.rl-topic-windows { --rl-a: 125,211,252; --rl-b: 251,191,36; }
.rl-topic-email-dns { --rl-a: 232,121,249; --rl-b: 251,113,133; }
.rl-topic-apps { --rl-a: 45,212,191; --rl-b: 251,191,36; }
.rl-topic-hosting-platforms { --rl-a: 167,139,250; --rl-b: 251,191,36; }

/* ---------- search ---------- */
.rl-search { position: relative; display: flex; gap: .5rem; max-width: 34rem; }
.rl-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--rl-muted); pointer-events: none; }
.rl-search input { flex: 1; min-width: 0; height: 3rem; padding: 0 1rem 0 2.75rem; border: 1px solid var(--rl-line-strong); border-radius: 12px; background: var(--rl-surface); color: var(--rl-ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.rl-search input::placeholder { color: var(--rl-muted); }
.rl-search input:focus { outline: none; border-color: var(--info, #7dd3fc); box-shadow: 0 0 0 3px rgba(125,211,252,.25); }
.rl-search button { height: 3rem; padding: 0 1.4rem; border: 0; border-radius: 12px; background: var(--rl-btn); color: var(--rl-btn-text); font: 600 .95rem var(--font, inherit); cursor: pointer; transition: background-color .15s; }
.rl-search button:hover { background: var(--rl-btn-hover); }

/* ---------- topic pills ---------- */
.rl-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.rl-pills a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--rl-line-strong); border-radius: 999px; background: var(--rl-surface); color: var(--rl-text); font: 600 .9rem var(--font, inherit); text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s, background-color .15s; }
.rl-pills a:hover { border-color: var(--rl-brand); color: var(--rl-ink); }
.rl-pills a.is-active { background: var(--rl-btn); border-color: transparent; color: var(--rl-btn-text); }

/* ---------- section heads ---------- */
.rl-section-head { display: flex; flex-direction: column; gap: .25rem; margin: 0 0 1.5rem; }
.rl-section-head h2 { margin: 0; font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--display, inherit); letter-spacing: -.025em; color: var(--rl-ink); }
.rl-section-head p { margin: 0; color: var(--rl-muted); font-size: 1rem; }
.rl-start + .rl-section { padding-top: 0; }
.rl-count { margin: 0 0 1.25rem; color: var(--rl-muted); font: 500 .85rem var(--mono, monospace); }

/* ---------- cards ---------- */
.rl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
@media (min-width: 1100px) { .rl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rl-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, var(--rl-surface-2), var(--rl-surface)); border: 1px solid var(--rl-line); border-radius: var(--rl-radius-lg); transition: box-shadow .25s var(--rl-ease), transform .25s var(--rl-ease), border-color .25s; }
.rl-card:hover { box-shadow: var(--rl-shadow); transform: translateY(-3px); border-color: var(--rl-line-strong); }
.rl-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rl-soft); }
.rl-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--rl-ease); }
.rl-card:hover .rl-card-media img, .rl-card:hover .rl-cover svg { transform: scale(1.06); }
.rl-card-body { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: 1.15rem 1.35rem 1.35rem; }
.rl-cat { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-block: -.6rem -.3rem; font: 600 .72rem var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--rl-brand); text-decoration: none; }
.rl-cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.rl-card-title { margin: 0; font: 600 1.2rem/1.28 var(--display, inherit); letter-spacing: -.02em; color: var(--rl-ink); text-wrap: balance; }
.rl-card-link { color: inherit; text-decoration: none; }
.rl-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--rl-radius-lg); }
.rl-blog .rl-card-link:focus-visible { outline: none; }
.rl-card-link:focus-visible::after { outline: 3px solid var(--info, #7dd3fc); outline-offset: -3px; }
.rl-card:hover .rl-card-title { color: var(--rl-brand); }
.rl-card-excerpt { flex: 1; margin: 0; font-size: .97rem; line-height: 1.6; color: var(--rl-text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.rl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin-top: .25rem; font: 500 .78rem var(--mono, monospace); color: var(--rl-muted); }
.rl-dot { opacity: .6; }

.rl-card-featured .rl-card-title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.15; }
.rl-card-featured .rl-card-excerpt { -webkit-line-clamp: 4; font-size: 1.05rem; }
@media (min-width: 900px) {
  .rl-card-featured { flex-direction: row; }
  .rl-card-featured .rl-card-media { flex: 1.15; aspect-ratio: auto; min-height: 320px; }
  .rl-card-featured .rl-card-body { flex: 1; justify-content: center; gap: .75rem; padding: 2.5rem; }
  .rl-card-featured .rl-card-excerpt { flex: 0 1 auto; }
}

/* designed covers (posts without a featured image) */
.rl-cover { --c1: #1c1917; --c2: #7c2d12; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; overflow: hidden; color: var(--accent, #fbbf24); background: radial-gradient(80% 90% at 85% 0, rgba(var(--rl-a), .28), transparent 65%), linear-gradient(135deg, var(--c1), var(--c2)); }
.rl-cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at 75% 15%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 75% 15%, #000 10%, transparent 70%); }
.rl-cover svg { position: relative; width: 16%; min-width: 2.25rem; max-width: 3.5rem; height: auto; transition: transform .5s var(--rl-ease); }
.rl-cover-label { position: relative; font: 600 .7rem var(--mono, monospace); letter-spacing: .16em; text-transform: uppercase; color: #fde68a; opacity: .9; }
.rl-cover--security { --c1: #1c1410; --c2: #78350f; }
.rl-cover--backups { --c1: #1c1710; --c2: #713f12; }
.rl-cover--migration { --c1: #1c1015; --c2: #881337; }
.rl-cover--monitoring { --c1: #14180e; --c2: #3f6212; }
.rl-cover--wordpress { --c1: #1c1210; --c2: #9a3412; }
.rl-cover--windows { --c1: #0f1720; --c2: #1e3a5f; }
.rl-cover--email-dns { --c1: #1a1020; --c2: #701a75; }
.rl-cover--apps { --c1: #0e1a1a; --c2: #115e59; }
.rl-cover--hosting-platforms { --c1: #14122a; --c2: #3730a3; }

/* ---------- pagination ---------- */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .9rem; border: 1px solid var(--rl-line-strong); border-radius: 12px; background: var(--rl-surface); color: var(--rl-text); font: 600 .95rem var(--font, inherit); text-decoration: none; transition: border-color .15s, color .15s; }
.pagination a.page-numbers:hover { border-color: var(--rl-brand); color: var(--rl-ink); }
.pagination .page-numbers.current { background: var(--rl-btn); border-color: transparent; color: var(--rl-btn-text); }
.pagination .page-numbers.dots { border-color: transparent; background: none; }

.rl-empty { padding: 3rem 0; text-align: center; color: var(--rl-muted); }
.rl-empty p { margin: 0 0 1rem; }
.rl-empty a:not(.rl-btn) { color: var(--rl-brand); }
.rl-empty .rl-pills { justify-content: center; }

/* ---------- topics band (blog home) ---------- */
.rl-topics { padding: 4rem 0 4.5rem; background: var(--rl-soft); border-top: 1px solid var(--rl-line); }
.rl-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.rl-topic { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-radius); transition: border-color .2s, box-shadow .2s; }
.rl-topic:hover { border-color: var(--rl-line-strong); box-shadow: var(--rl-shadow); }
.rl-topic-icon { position: relative; flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 12px; border: 1px solid var(--rl-line-strong); background: var(--rl-surface-3); color: var(--rl-brand); }
.rl-topic-icon svg { width: 1.4rem; height: 1.4rem; }
.rl-topic h3 { margin: 0 0 .25rem; font: 600 1.05rem var(--display, inherit); }
.rl-topic h3 a { color: var(--rl-ink); text-decoration: none; }
.rl-topic h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rl-radius); }
.rl-topic:hover h3 a { color: var(--rl-brand); }
.rl-topic p { margin: 0 0 .5rem; font-size: .92rem; line-height: 1.55; color: var(--rl-muted); }
.rl-topic-count { font: 600 .75rem var(--mono, monospace); color: var(--rl-text); }

/* ---------- article header ---------- */
.rl-chip { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .85rem; border: 1px solid var(--rl-line-strong); border-radius: 999px; background: var(--rl-surface); color: var(--rl-brand); font: 600 .75rem var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.rl-chip:hover { border-color: var(--rl-brand); }
.rl-byline { display: flex; align-items: center; gap: .75rem; }
.rl-byline .rl-meta { margin: 0; }
.rl-avatar { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--rl-surface-3); border: 1px solid var(--rl-line-strong); color: var(--rl-brand); font: 700 .75rem var(--mono, monospace); letter-spacing: .02em; }
.rl-avatar--lg { width: 3rem; height: 3rem; font-size: .95rem; }
.rl-byline-link { color: var(--rl-ink); font-weight: 600; text-decoration: none; }
/* A 44px tap area that does not change the line's height: padding grows the target, the negative margin gives the space back. */
.rl-byline-link, .rl-author-name a { display: inline-block; padding-block: .9rem; margin-block: -.9rem; }
.rl-byline-link:hover { color: var(--rl-brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- article layout ---------- */
.rl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: start; padding-top: 2.5rem; padding-bottom: 3.5rem; }
.rl-main { min-width: 0; max-width: 46rem; }
@media (min-width: 1024px) { .rl-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; } }
.rl-article-img { margin: 0 0 2rem; }
.rl-article-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rl-radius-lg); }

/* table of contents: collapsible on small screens, sticky list on desktop */
.rl-toc { border: 1px solid var(--rl-line); border-radius: var(--rl-radius); background: var(--rl-surface); }
.rl-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.rl-toc li { counter-increment: toc; }
.rl-toc a { position: relative; display: block; padding: .5rem .75rem .5rem 2.4rem; border-radius: 8px; color: var(--rl-text); font-size: .9rem; line-height: 1.45; text-decoration: none; transition: background-color .15s, color .15s; }
.rl-toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: .75rem; top: .6rem; font: 600 .7rem var(--mono, monospace); font-variant-numeric: tabular-nums; color: var(--rl-muted); }
.rl-toc a:hover { background: var(--rl-surface-3); color: var(--rl-ink); }
.rl-toc a.is-active { background: var(--rl-surface-3); color: var(--rl-brand); font-weight: 600; }
.rl-toc a.is-active::before { color: var(--rl-brand); }
.rl-toc-title { margin: 0; font: 600 .72rem var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--rl-muted); }
.rl-toc-inline { margin: 0 0 2rem; }
.rl-toc-inline a { padding-block: .8rem; }
.rl-toc-inline summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding: .5rem 1rem; cursor: pointer; list-style: none; border-radius: var(--rl-radius); }
.rl-toc-inline summary::-webkit-details-marker { display: none; }
.rl-toc-inline summary::after { content: ""; width: .5rem; height: .5rem; margin: 0 .25rem .25rem 0; border-right: 2px solid var(--rl-muted); border-bottom: 2px solid var(--rl-muted); transform: rotate(45deg); transition: transform .2s var(--rl-ease); }
.rl-toc-inline[open] summary::after { margin-bottom: -.25rem; transform: rotate(-135deg); }
.rl-toc-count { margin-left: auto; font: 500 .8rem var(--mono, monospace); color: var(--rl-muted); }
.rl-toc-inline nav { padding: 0 .5rem .75rem; }
.rl-toc-side { padding: 1rem .5rem .75rem; }
.rl-toc-side .rl-toc-title { padding: 0 .75rem .625rem; }
.rl-sidebar { display: none; }
@media (min-width: 1024px) {
  .rl-toc-inline { display: none; }
  .rl-sidebar { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; align-self: stretch; }
  .rl-sidebar-sticky { position: sticky; top: calc(72px + 1.25rem); display: flex; flex-direction: column; gap: 1.25rem; max-height: calc(100vh - 72px - 2.5rem); }
  .rl-sidebar-sticky .rl-toc-side { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  body.admin-bar .rl-sidebar-sticky { top: calc(72px + 32px + 1.25rem); max-height: calc(100vh - 72px - 32px - 2.5rem); }
}

/* sidebar widgets */
.rl-widget { padding: 1.25rem; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); background: var(--rl-surface); }
.rl-widget-title { margin: 0 0 .5rem; font: 600 1rem var(--display, inherit); color: var(--rl-ink); }
.rl-widget ul { margin: 0; padding: 0; list-style: none; }
.rl-widget li + li { margin-top: .5rem; }
.rl-widget a { color: var(--rl-text); }
.rl-widget-cta { flex: none; border-color: var(--rl-line-strong); background: radial-gradient(90% 120% at 100% 0, rgba(var(--rl-a), .18), transparent 60%), var(--rl-surface-2); }
.rl-widget-cta .rl-widget-title { font-size: 1.1rem; line-height: 1.3; }
.rl-widget-cta p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--rl-text); }
.rl-widget-cta .rl-btn { margin-top: 1rem; }
.rl-widget .rl-btn, .rl-widget a.rl-btn:hover { color: var(--rl-btn-text); }
.rl-widget-alt { margin: .9rem 0 0; font-size: .85rem; line-height: 1.5; color: var(--rl-muted); }
.rl-widget-alt a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rl-brand); font-weight: 600; text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.rl-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.9rem; padding: 0 1.3rem; border-radius: 12px; background: var(--rl-btn); color: var(--rl-btn-text); font: 600 .95rem var(--font, inherit); text-decoration: none; white-space: nowrap; transition: transform .15s var(--rl-ease), background-color .15s; }
.rl-btn:hover { transform: translateY(-2px); background: var(--rl-btn-hover); }
.rl-btn--solid { background: var(--rl-btn); }

/* ---------- article body ---------- */
.rl-prose { font-size: 1.08rem; line-height: 1.75; color: var(--rl-text); overflow-wrap: break-word; }
.rl-prose > * { margin-top: 0; margin-bottom: 0; }
.rl-prose > * + * { margin-top: 1.25rem; }
.rl-prose :is(h2, h3, h4) { font-family: var(--display, inherit); color: var(--rl-ink); font-weight: 600; scroll-margin-top: 96px; text-wrap: balance; }
.rl-prose h2 { margin-top: 2.9rem; font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); line-height: 1.2; letter-spacing: -.025em; }
.rl-prose h3 { margin-top: 2rem; font-size: 1.3rem; line-height: 1.3; letter-spacing: -.015em; }
.rl-prose h4 { margin-top: 1.75rem; font-size: 1.1rem; }
.rl-prose > :is(h2, h3, h4) + * { margin-top: .75rem; }
.rl-anchor { margin-left: .5rem; color: var(--rl-brand); font-weight: 400; text-decoration: none; opacity: 0; transition: opacity .15s; }
.rl-prose :is(h2, h3):hover .rl-anchor { opacity: .6; }
.rl-prose a:not(.rl-anchor) { color: var(--rl-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--rl-brand) 45%, transparent); transition: text-decoration-color .15s; }
.rl-prose a:not(.rl-anchor):hover { text-decoration-color: currentColor; }
.rl-prose strong { color: var(--rl-ink); font-weight: 650; }
.rl-prose ul, .rl-prose ol { padding-left: 1.4rem; }
.rl-prose ul { list-style: disc; }
.rl-prose ol { list-style: decimal; }
.rl-prose li { padding-left: .25rem; }
.rl-prose li + li { margin-top: .5rem; }
.rl-prose li::marker { color: var(--rl-brand); }
.rl-prose li > :is(ul, ol) { margin-top: .5rem; }
.rl-prose blockquote { margin-inline: 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--rl-brand); color: var(--rl-ink); font-style: italic; }
.rl-prose hr { margin-block: 2.75rem; border: 0; border-top: 1px solid var(--rl-line); }
.rl-prose img { max-width: 100%; height: auto; border-radius: var(--rl-radius); }
.rl-prose figure { margin-inline: 0; }
.rl-prose figcaption { margin-top: .5rem; text-align: center; font-size: .875rem; color: var(--rl-muted); }
.rl-prose :not(pre) > code { padding: .125em .4em; border: 1px solid var(--rl-line-strong); border-radius: 6px; background: var(--rl-surface-3); color: var(--rl-ink); font: .88em var(--mono, monospace); overflow-wrap: anywhere; }

/* code blocks (header bar and copy button added by blog.js) */
.rl-prose pre { margin: 0; padding: 1.15rem 1.3rem; overflow-x: auto; background: var(--code-bg, #0d0b09); color: #f5f1ea; border-radius: var(--rl-radius); font: .88rem/1.75 var(--mono, monospace); tab-size: 4; scrollbar-width: thin; }
.rl-prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; white-space: pre; }
.rl-code { position: relative; overflow: hidden; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); background: var(--code-bg, #0d0b09); }
.rl-code-bar { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; padding: 0 .5rem 0 1rem; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
.rl-code-dots { display: flex; gap: .4rem; }
.rl-code-dots i { width: .6rem; height: .6rem; border-radius: 50%; background: #ef4444; }
.rl-code-dots i:nth-child(2) { background: #f59e0b; }
.rl-code-dots i:nth-child(3) { background: #22c55e; }
.rl-code pre { border-radius: 0; }
.rl-copy { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.25rem; padding: 0 .8rem; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.06); color: #e7e0d6; font: 600 .78rem var(--mono, monospace); cursor: pointer; transition: background-color .15s, border-color .15s; }
.rl-copy:hover { background: rgba(255,255,255,.14); }
.rl-copy.is-done { border-color: rgba(134,239,172,.6); color: #86efac; }

/* tables scroll inside their own box */
.rl-table { overflow-x: auto; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); scrollbar-width: thin; }
.rl-table table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: .95rem; line-height: 1.55; }
.rl-table th, .rl-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--rl-line); text-align: left; vertical-align: top; }
.rl-table th { background: var(--rl-surface-2); color: var(--rl-ink); font: 600 .75rem var(--mono, monospace); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.rl-table tbody tr:last-child td { border-bottom: 0; }
.rl-table tbody tr:hover { background: var(--rl-surface-2); }
.rl-table td code { white-space: nowrap; }
.rl-prose figure.wp-block-table { margin-inline: 0; }

/* callouts written as <div class="callout callout-tip"> in posts */
.callout { padding: 1rem 1.25rem; border: 1px solid var(--rl-line-strong); border-left-width: 3px; border-radius: var(--rl-radius); background: var(--rl-surface); }
.callout > * { margin: 0; }
.callout > * + * { margin-top: .5rem; }
.callout-note { border-left-color: var(--rl-brand); }
.callout-tip { border-left-color: var(--ok, #4ade80); }
.callout-warning { border-left-color: var(--bad, #f87171); }
.callout strong:first-child { color: var(--rl-ink); }

/* ---------- after the article ---------- */
.rl-share { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rl-line); }
.rl-share-label { margin: 0; font: 600 .9rem var(--font, inherit); color: var(--rl-ink); }
.rl-share ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.rl-share a, .rl-copy-link { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 2.75rem; height: 2.75rem; padding: 0 .85rem; border: 1px solid var(--rl-line-strong); border-radius: 12px; background: var(--rl-surface); color: var(--rl-text); font: 600 .88rem var(--font, inherit); text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }
.rl-share a { padding: 0; }
.rl-share a:hover, .rl-copy-link:hover { border-color: var(--rl-brand); color: var(--rl-ink); }
.rl-copy-link.is-done { border-color: var(--ok, #4ade80); color: var(--ok, #4ade80); }

.rl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin: 2rem 0 0; padding: 1.75rem 2rem; border: 1px solid var(--rl-line-strong); border-radius: var(--rl-radius-lg); background: radial-gradient(80% 140% at 100% 0, rgba(var(--rl-a), .18), transparent 60%), var(--rl-surface-2); }
.rl-cta > div { flex: 1 1 20rem; }
.rl-cta-eyebrow { margin: 0 0 .25rem; font: 600 .72rem var(--mono, monospace); letter-spacing: .16em; text-transform: uppercase; color: var(--rl-brand); }
.rl-cta h2 { margin: 0 0 .375rem; font: 600 1.4rem/1.25 var(--display, inherit); letter-spacing: -.02em; color: var(--rl-ink); }
.rl-cta p { margin: 0; line-height: 1.6; color: var(--rl-text); }
@media (min-width: 1024px) { .rl-cta { display: none; } } /* the sidebar shows the same suggestion */

.rl-hire { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin: 1.25rem 0 0; padding: 1.75rem 2rem; border: 1px solid var(--rl-line-strong); border-radius: var(--rl-radius-lg); background: var(--rl-surface); }
.rl-hire > div { flex: 1 1 22rem; }
.rl-hire h2 { margin: 0 0 .375rem; font: 600 1.25rem/1.3 var(--display, inherit); letter-spacing: -.02em; color: var(--rl-ink); }
.rl-hire p { margin: 0; line-height: 1.65; color: var(--rl-text); }
.rl-hire .rl-cta-eyebrow { margin-bottom: .25rem; }
.rl-btn--ghost { background: transparent; color: var(--rl-ink); border: 1px solid var(--rl-line-strong); }
.rl-btn--ghost:hover { background: var(--rl-surface-3); border-color: var(--rl-brand); color: var(--rl-ink); }
@media (max-width: 640px) { .rl-hire { padding: 1.5rem; } .rl-hire .rl-btn { width: 100%; } }

.rl-author { position: relative; display: flex; gap: 1.5rem; align-items: flex-start; margin-top: 2rem; padding: 1.75rem; border: 1px solid var(--rl-line); border-radius: var(--rl-radius-lg); background: var(--rl-surface); overflow: hidden; }
.rl-author::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad, linear-gradient(90deg, #fbbf24, #f97316)); }
.rl-author-body { min-width: 0; flex: 1; }
.rl-author-eyebrow { margin: 0 0 .375rem; font: 600 .7rem var(--mono, monospace); letter-spacing: .16em; text-transform: uppercase; color: var(--rl-brand); }
.rl-author-name { margin: 0; font: 600 1.15rem/1.3 var(--display, inherit); letter-spacing: -.01em; color: var(--rl-ink); }
.rl-author-bio { margin: .75rem 0 0; font-size: .95rem; line-height: 1.7; color: var(--rl-text); max-width: 62ch; }
.rl-avatar--author { width: 4.75rem; height: 4.75rem; font-size: 1.25rem; }
.rl-avatar-img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (max-width: 560px) { .rl-author { flex-direction: column; gap: 1rem; padding: 1.5rem 1.25rem; } }
.rl-author-name a { color: inherit; text-decoration: none; }
.rl-author-name a:hover { color: var(--rl-brand); }
.rl-author-role { display: block; margin: .125rem 0 0; font-size: .85rem; font-weight: 500; color: var(--rl-muted); }
.rl-author-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.rl-author-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .9rem; border: 1px solid var(--rl-line-strong); border-radius: 999px; background: var(--rl-surface); color: var(--rl-text); font: 600 .85rem var(--font, inherit); text-decoration: none; transition: border-color .15s, color .15s; }
.rl-author-links a:hover { border-color: var(--rl-brand); color: var(--rl-ink); }
.rl-author-more { margin: .75rem 0 0; font-size: .9rem; font-weight: 600; }
.rl-author-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rl-brand); text-decoration: none; }
.rl-author-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rl-author-head { display: flex; align-items: center; gap: 1.25rem; margin: 0 0 1.25rem; }
.rl-author-head h1 { margin: 0; }
.rl-author-head .rl-author-role { font-size: 1rem; margin-top: .375rem; }
.rl-avatar--xl { width: 4.5rem; height: 4.5rem; font-size: 1.375rem; }
.rl-author-hero .rl-author-links { margin-top: 1.25rem; }

.rl-postnav { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .rl-postnav { grid-template-columns: 1fr 1fr; } .rl-postnav .next:only-child { grid-column: 2; } }
.rl-postnav a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); background: var(--rl-surface); color: var(--rl-ink); font-weight: 600; line-height: 1.4; text-decoration: none; transition: border-color .15s, color .15s; }
.rl-postnav a:hover { border-color: var(--rl-brand); color: var(--rl-brand); }
.rl-postnav small { display: block; margin-bottom: .25rem; font: 500 .78rem var(--mono, monospace); color: var(--rl-muted); }
.rl-postnav .next { text-align: right; }

.rl-related { padding: 4rem 0; border-top: 1px solid var(--rl-line); background: var(--rl-soft); }
.rl-explore { padding: 3.5rem 0 4.5rem; }
.rl-explore h2 { margin: 0 0 1.25rem; font: 600 1.5rem var(--display, inherit); letter-spacing: -.02em; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .rl-wrap { padding-inline: 1rem; }
  .rl-section { padding-block: 2.25rem 3.5rem; }
  .rl-layout { padding-top: 1.75rem; }
  .rl-prose pre { padding: 1rem; font-size: .82rem; }
  .rl-search button { padding: 0 1rem; }
  .rl-cta { padding: 1.5rem; }
  .rl-cta .rl-btn { width: 100%; }
  .rl-pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent); }
  .rl-pills::-webkit-scrollbar { display: none; }
  .rl-pills li { flex: none; }
  .rl-empty .rl-pills { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; -webkit-mask-image: none; mask-image: none; }
  .rl-crumbs [aria-current] { max-width: 22ch; }
  .rl-article-head .rl-crumbs li:last-child { display: none; } /* the title is right below */
}

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  .rl-blog *, .rl-blog *::before, .rl-blog *::after { transition: none !important; animation: none !important; }
  .rl-card:hover, .rl-btn:hover { transform: none; }
  .rl-card:hover .rl-card-media img, .rl-card:hover .rl-cover svg { transform: none; }
}
@media print {
  .site-header, .site-footer, .progress, .skip, .rl-sidebar, .rl-toc-inline, .rl-share, .rl-cta, .rl-related, .rl-explore, .rl-postnav, .rl-copy, .rl-anchor { display: none !important; }
  .rl-blog, .rl-hero, .rl-article-head { background: none !important; color: #000; border: 0; }
  .rl-hero::before, .rl-article-head::before { display: none; }
  .rl-hero h1, .rl-article-head h1 { color: #000; }
  .rl-layout { display: block; }
  .rl-main { max-width: none; }
  .rl-prose { font-size: 11pt; color: #000; }
  .rl-prose a { color: inherit; }
  .rl-prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .rl-code, .rl-prose pre { background: #f6f8fa !important; color: #111 !important; }
  .rl-code-bar { display: none; }
  .rl-prose pre { white-space: pre-wrap; }
}
