/* ToDoing site kit, the generated pages: everything scripts/build-blog.mjs builds (the blog and
   its posts, the changelog, the /vs/ and /for/ pages, the free tools, the Kenya holidays page and
   /contact/), set on the kit. Loaded after kit.css, which supplies the nav, the menu, the footer,
   the buttons and the type. Every class here starts rd-, apart from .prose, which styles the
   elements markdown writes.

   Rules this file keeps (the kit's):
   - Nothing animates on entrance. Hover and press are the only motion.
   - Measures are in ems, never ch: a ch is measured in the Arial stand-in until DM Sans
     arrives, and the page moved when it swapped.
   - Bold text names the stand-in made for its size (kit.css): --sans-18 from 13 to 27px,
     --sans-30, --sans-34 and --sans-38 near those sizes, and the shared one from 47 to 66px.
   - A bold stand-in goes on bold text only, never on a block that holds regular text. Each is a
     bold face alone, so the browser would draw the regular text in Arial Bold until DM Sans came. */

/* ── The opening: an eyebrow, the heading, then a line under it ──────────────── */
.rd-hero{padding-top:clamp(32px,3.6vw,52px)}
.rd-hero .pg-eyebrow a{text-decoration:underline;text-decoration-color:var(--rule);text-decoration-thickness:1.5px;text-underline-offset:4px;transition:text-decoration-color .2s}
.rd-hero .pg-eyebrow a:hover{text-decoration-color:currentColor}
/* an article's heading: smaller than a page's, since it is often a long line */
.rd-hero h1{font-size:clamp(34px,3.5vw,52px);line-height:1.06;letter-spacing:-.04em;max-width:16.9em;font-family:var(--sans-38)}
@media (min-width: 1343px){ .rd-hero h1{font-family:var(--sans)} }      /* 47px and up */
@media (max-width: 1028px){ .rd-hero h1{font-family:var(--sans-34)} }   /* 36px and down */
/* a list page's heading is the kit's, at the kit's size */
.rd-hero.rd-index h1{font-size:clamp(38px,4.6vw,66px);line-height:1.02;letter-spacing:-.045em;max-width:13.76em;font-family:var(--sans)}
@media (max-width: 1021px){ .rd-hero.rd-index h1{font-family:var(--sans-38)} }
.rd-hero .pg-lede{margin-top:clamp(16px,1.6vw,24px)}
.rd-meta{margin:18px 0 0;font-size:14.5px;color:var(--muted)}
.rd-hero .pg-link{margin-top:20px}

/* ── The body: the text column, and beside it on wide screens what is on the page ── */
.rd-grid{display:grid;grid-template-columns:minmax(0,760px);gap:clamp(40px,5vw,96px);align-items:start;
  margin-top:clamp(32px,3.6vw,52px);padding-top:clamp(32px,3.6vw,52px);padding-bottom:clamp(72px,8vw,120px);border-top:1px solid var(--rule)}
.rd-grid.rd-has-side{grid-template-columns:minmax(0,760px) minmax(0,240px);justify-content:space-between}
.rd-col{min-width:0}
.rd-side{position:sticky;top:100px}
.rd-toc p{margin:0 0 12px;font-family:var(--sans-18);font-size:13px;font-weight:600;color:var(--muted)}
.rd-toc ol{margin:0;padding:0;list-style:none;border-left:1px solid var(--rule)}
.rd-toc li a{display:block;margin-left:-1px;padding:7px 0 7px 16px;border-left:1px solid transparent;font-size:14.5px;line-height:1.35;color:var(--ink-2);transition:color .2s, border-color .2s}
.rd-toc li a:hover{color:var(--ink);border-left-color:var(--ink)}
.rd-side .pg-link{margin-top:24px}
@media (max-width: 1099px){
  .rd-grid.rd-has-side{grid-template-columns:minmax(0,760px)}
  .rd-side{display:none}
}

/* ── Prose: what markdown writes ───────────────────────────────────────────── */
.prose{font-size:17px;line-height:1.65;color:var(--ink-2)}
.prose > :first-child{margin-top:0}
.prose p{margin:0 0 1em}
.prose h2{margin:2.1em 0 .55em;font-family:var(--sans-18);font-size:clamp(23px,2vw,27px);line-height:1.18;letter-spacing:-.03em;font-weight:620;color:var(--ink)}
.prose h3{margin:1.7em 0 .45em;font-family:var(--sans-18);font-size:19.5px;line-height:1.3;letter-spacing:-.02em;font-weight:620;color:var(--ink)}
.prose h2[id], .prose h3[id]{scroll-margin-top:96px}
.prose h2 + h3{margin-top:1em}
.prose :is(strong,b){font-family:var(--sans-18);font-weight:600;color:var(--ink)}
.prose a:not(.btn){color:var(--ink);text-decoration:underline;text-decoration-color:#C4C8CF;text-decoration-thickness:1.5px;text-underline-offset:4px;transition:text-decoration-color .2s}
.prose a:not(.btn):hover{text-decoration-color:currentColor}
/* lists: the kit's small diamond, the way a kicker carries one */
.prose ul,.prose ol{margin:0 0 1.1em;padding:0;list-style:none}
.prose li{position:relative;margin:.45em 0;padding-left:1.4em}
.prose li > p{margin:0}
.prose ul > li::before{content:"";position:absolute;left:.3em;top:calc(.825em - 3px);width:6px;height:6px;border-radius:1px;background:var(--ink);transform:rotate(45deg)}
.prose ol{counter-reset:rd-n}
.prose ol > li{counter-increment:rd-n;padding-left:1.7em}
.prose ol > li::before{content:counter(rd-n) ".";position:absolute;left:0;font-family:var(--sans-18);font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.prose blockquote{margin:1.4em 0;padding:2px 0 2px 20px;border-left:2px solid var(--rule);color:var(--muted)}
.prose code{font-size:.88em;background:var(--wash);border-radius:6px;padding:2px 6px}
.prose hr{margin:2.4em 0;border:0;border-top:1px solid var(--rule)}
.prose .note,.rd-note{font-size:14.5px;line-height:1.55;color:var(--muted)}

/* ── Tables: a ruled card that scrolls sideways on a phone rather than squeezing ─────── */
.rd-table{margin:1.6em 0;border:1px solid var(--rule);border-radius:16px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.rd-table table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5}
.rd-table th,.rd-table td{padding:12px 16px;text-align:left;vertical-align:top;min-width:120px;border-bottom:1px solid var(--rule-2)}
.rd-table tr:last-child > *{border-bottom:0}
.rd-table thead th{background:var(--wash);border-bottom-color:var(--rule);font-family:var(--sans-18);font-size:14px;font-weight:600;color:var(--ink)}
.rd-table td{color:var(--ink-2)}
.rd-table tbody th,.rd-table tbody td:first-child{font-family:var(--sans-18);font-weight:600;color:var(--ink);min-width:140px}

/* ── The way on: links to the pages beside this one, as the kit's chips ──────────── */
.rd-more{margin-top:clamp(40px,4vw,56px)}

/* ── The close: a panel with one line and the two buttons ───────────────────────── */
.rd-cta{margin-top:clamp(40px,4vw,56px);padding:clamp(24px,3vw,36px);border-radius:24px;background:var(--panel)}
.rd-cta p{margin:0 0 22px;max-width:30em;font-size:clamp(17px,1.4vw,19px);line-height:1.5;color:var(--ink)}

/* ── A list page: cards in a grid ───────────────────────────────────────────── */
.rd-list{padding-top:clamp(36px,4vw,56px);padding-bottom:clamp(72px,8vw,120px)}
.rd-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.4vw,20px);margin:0;padding:0;list-style:none}
.rd-cards.rd-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.rd-card{display:flex;flex-direction:column;height:100%;min-width:0;padding:clamp(20px,2vw,28px);border-radius:20px;background:var(--panel);transition:background-color .25s}
.rd-card:hover{background:var(--panel-2)}
.rd-card-date{margin:0 0 10px;font-size:13.5px;font-weight:500;color:var(--muted)}
.rd-card :is(h2,h3){font-family:var(--sans-18);font-size:clamp(19px,1.6vw,22px);line-height:1.25;letter-spacing:-.02em}
.rd-card .arr{font-weight:400;display:inline-block;transition:transform .3s var(--ease-out)}
.rd-card:hover .arr{transform:translateX(3px)}
.rd-card p{margin:10px 0 0;font-size:15.5px;line-height:1.5;color:var(--ink-2)}
.rd-list .rd-cta{max-width:760px}
/* a hub's groups: a heading over each set of cards */
.rd-group{margin:clamp(44px,4.6vw,64px) 0 18px;font-family:var(--sans-30);font-size:clamp(23px,2vw,28px);line-height:1.18;letter-spacing:-.03em}
.rd-group:first-child{margin-top:0}
.rd-after{margin:28px 0 0}
.rd-after a{color:var(--ink);text-decoration:underline;text-decoration-color:#C4C8CF;text-decoration-thickness:1.5px;text-underline-offset:4px}
.rd-after a:hover{text-decoration-color:currentColor}

/* ── Keep reading: other posts on the subject, as a ruled list ───────────────── */
.rd-read{margin-top:clamp(40px,4vw,56px)}
.rd-read-h{margin:0 0 12px;font-family:var(--sans-18);font-size:14px;font-weight:600;color:var(--muted)}
.rd-read ul{margin:0;padding:0;list-style:none;border-top:1px solid var(--rule)}
.rd-read li{padding:16px 0 17px;border-bottom:1px solid var(--rule)}
.rd-read li a{font-family:var(--sans-18);font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-.015em;color:var(--ink)}
.rd-read li a:hover{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
.rd-read li a .arr{font-weight:400;display:inline-block;transition:transform .3s var(--ease-out)}
.rd-read li a:hover .arr{transform:translateX(3px)}
.rd-read li p{margin:6px 0 0;font-size:15px;line-height:1.5;color:var(--ink-2)}
.rd-read + .rd-more{margin-top:32px}

/* ── The changelog: each entry's date beside it, on wide screens ─────────────── */
.rd-log{border-top:1px solid var(--rule)}
.rd-entry{display:grid;grid-template-columns:minmax(0,200px) minmax(0,760px);gap:clamp(20px,4vw,64px);padding:clamp(32px,3.6vw,52px) 0;border-bottom:1px solid var(--rule-2)}
.rd-entry-date{margin:0;padding-top:6px;font-size:14.5px;font-weight:500;color:var(--muted)}
.rd-entry h2{margin:0 0 14px;font-family:var(--sans-18);font-size:clamp(23px,2vw,27px);line-height:1.18;letter-spacing:-.03em}
.rd-entry h2 a:hover{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:5px}
.rd-entry .prose > :last-child{margin-bottom:0}

/* ── A tool: a ruled card holding the form, the answers in the wash ──────────────── */
.rd-tool{padding:clamp(22px,2.4vw,32px);border-radius:24px;background:#fff;box-shadow:inset 0 0 0 1px var(--rule)}
.rd-tool h2{margin:32px 0 14px;font-family:var(--sans-18);font-size:19px;line-height:1.25;letter-spacing:-.02em}
.rd-tool h2:first-child{margin-top:0}
.rd-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px 16px}
.rd-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-family:var(--sans-18);font-size:14px;font-weight:600;color:var(--ink-2)}
.rd-wide{margin-top:14px}
.rd-tool :is(input:not([type="checkbox"]),select,textarea){width:100%;min-width:0;height:46px;margin:0;padding:0 14px;border:1px solid var(--rule);border-radius:12px;background:#fff;color:var(--ink);
  font-family:var(--sans);font-size:16px;font-weight:400;line-height:1.3;transition:border-color .2s}
.rd-tool :is(input:not([type="checkbox"]),select,textarea):hover{border-color:#CFD2D8}
.rd-tool :is(input,select,textarea):focus-visible{outline:2px solid var(--ink);outline-offset:1px;border-radius:12px}
.rd-tool select{-webkit-appearance:none;appearance:none;padding-right:40px;cursor:pointer;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2362656D' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center}
.rd-tool textarea{height:auto;min-height:168px;padding:12px 14px;resize:vertical;line-height:1.55}
.rd-tool input[type="date"]{-webkit-appearance:none;appearance:none}
.rd-tool input[aria-invalid="true"],.rd-tool textarea[aria-invalid="true"]{border-color:#B42318}
/* the days you work: each a chip that turns ink when it is on */
.rd-days{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0 0;padding:0;border:0;min-width:0}
.rd-days legend{float:left;width:100%;margin:0 0 10px;padding:0;font-family:var(--sans-18);font-size:14px;font-weight:600;color:var(--ink-2)}
.rd-days label{position:relative;display:inline-flex;align-items:center;height:38px;padding:0 15px;border-radius:99px;background:var(--panel);font-size:14.5px;font-weight:550;color:var(--ink-2);cursor:pointer;user-select:none;transition:background-color .2s, color .2s}
.rd-days label:hover{background:var(--panel-2);color:var(--ink)}
.rd-days input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.rd-days label:has(input:checked){background:var(--ink);color:#fff}
.rd-days label:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
.rd-result{margin-top:16px;padding:16px 18px;border-radius:14px;background:var(--wash);font-size:15.5px;line-height:1.5;color:var(--ink-2)}
.rd-result b{display:block;margin-bottom:4px;font-family:var(--sans-30);font-size:28px;line-height:1.15;letter-spacing:-.03em;font-weight:620;color:var(--ink)}
.rd-result small{display:block;margin-top:8px;font-size:14px;color:var(--muted)}
.rd-tool ~ .prose{margin-top:clamp(36px,4vw,52px)}

/* ── The contact form's own parts ───────────────────────────────────────────── */
.rd-hint{font-family:var(--sans);font-weight:400;color:var(--muted)}
.rd-error{font-family:var(--sans);font-size:13.5px;font-weight:500;color:#B42318}
.rd-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.rd-send{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:20px}
.rd-send .rd-hint{font-size:14px}
button.btn[aria-busy="true"]{opacity:.55;cursor:progress}
.rd-form-error{margin:16px 0 0;font-size:15px;color:#B42318}
.rd-sent{padding:clamp(22px,2.4vw,32px);border-radius:24px;background:var(--panel)}
.rd-sent h2{margin:0 0 8px;font-family:var(--sans-18);font-size:21px;letter-spacing:-.02em}
.rd-sent p{margin:0;font-size:16px;color:var(--ink-2)}
.rd-sent:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.rd-tool .cf-turnstile{min-height:65px}

/* ── Below desktop ──────────────────────────────────────────────────────────── */
@media (max-width: 1023px){
  .rd-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 899px){
  .rd-entry{grid-template-columns:minmax(0,1fr);gap:8px}
  .rd-entry-date{padding-top:0}
}
@media (max-width: 767px){
  .rd-hero{padding-top:16px}
  .rd-hero .pg-eyebrow{margin-bottom:12px}
  .rd-hero h1{max-width:none}
  .prose{font-size:16.5px}
  /* a three-column comparison fits a phone without scrolling; wider tables still scroll */
  .rd-table table{font-size:14.5px}
  .rd-table th,.rd-table td{min-width:7.2em;padding:10px 12px}
  .rd-table tbody th,.rd-table tbody td:first-child{min-width:7.2em}
  .rd-cta .pg-ctas .btn{flex:1 1 auto}
}
@media (max-width: 599px){
  .rd-cards,.rd-cards.rd-two{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion: reduce){
  .rd-card,.rd-card .arr,.rd-toc li a,.rd-days label,.rd-read li a .arr{transition:none}
  .rd-card:hover .arr,.rd-read li a:hover .arr{transform:none}
}
