/* ==========================================================================
   Blog
   The list, a category, and one article. Built on the site's own tokens, so
   it follows the light and the dark theme the way every other page does.
   ========================================================================== */

/* ---- breadcrumbs --------------------------------------------------------- */

.rt-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-bottom: var(--rt-s4);
  font-size: var(--rt-t-xs);
  color: var(--rt-text-dim);
}
[data-rt] .rt-crumbs a { color: var(--rt-text-dim); text-decoration: none; }
[data-rt] .rt-crumbs a:hover { color: var(--rt-gold); }
.rt-crumbs [aria-current="page"] { color: var(--rt-text); font-weight: 500; }
.rt-crumbs span[aria-hidden="true"] { opacity: 0.45; }

/* ---- the head of the list ------------------------------------------------ */

.rt-bloghead { padding-block: var(--rt-s7) var(--rt-s6); }
.rt-bloghead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr);
  gap: var(--rt-s6);
  align-items: end;
}
.rt-bloghead .rt-pagehead__title { max-width: 18ch; }
@media (max-width: 62rem) {
  .rt-bloghead__grid { grid-template-columns: 1fr; gap: var(--rt-s4); align-items: start; }
}

.rt-blogsearch {
  position: relative;
  display: flex;
  gap: var(--rt-s2);
  padding: 0.35rem;
  background: var(--rt-surface);
  border: 1px solid var(--rt-rule);
  border-radius: 999px;
  box-shadow: var(--rt-lift-1);
}
.rt-blogsearch:focus-within {
  border-color: var(--rt-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rt-gold) 18%, transparent), var(--rt-lift-1);
}
.rt-blogsearch__icon {
  position: absolute;
  inset-inline-start: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rt-text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}
/* the site's own field style would box the input inside the pill and put
   its text under the magnifier, so the pill's input sets its own */
[data-rt] .rt-blogsearch input[type="search"] {
  flex: 1;
  min-width: 0;
  height: auto;
  padding: 0.6rem 0.75rem;
  padding-inline-start: 2.5rem;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  color: var(--rt-text);
  font-family: var(--rt-body);
  font-size: var(--rt-t-sm);
}
[data-rt] .rt-blogsearch input[type="search"]:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}
.rt-blogsearch input::placeholder { color: var(--rt-text-dim); }
.rt-blogsearch .rt-btn { border-radius: 999px; padding-inline: 1.25rem; }

/* ---- categories ---------------------------------------------------------- */

.rt-blogcats {
  display: flex;
  gap: var(--rt-s2);
  margin-bottom: var(--rt-s6);
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.rt-blogcats::-webkit-scrollbar { display: none; }
[data-rt] .rt-blogcats .rt-chip {
  flex: none;
  text-decoration: none;
  white-space: nowrap;
  color: var(--rt-text-dim);
  background: var(--rt-surface);
}
[data-rt] .rt-blogcats .rt-chip:hover { color: var(--rt-text); border-color: var(--rt-rule); }
[data-rt] .rt-blogcats .rt-chip[aria-current="page"] {
  background: var(--rt-emerald);
  border-color: var(--rt-emerald);
  color: #ffffff;
  font-weight: 600;
}
[data-rt][data-theme="dark"] .rt-blogcats .rt-chip[aria-current="page"] { color: #07130f; background: var(--rt-gold); border-color: var(--rt-gold); }

.rt-blog__found {
  margin: calc(var(--rt-s2) * -1) 0 var(--rt-s5);
  color: var(--rt-text-dim);
  font-size: var(--rt-t-sm);
}
.rt-blog__found strong { color: var(--rt-text); }
[data-rt] .rt-blog__found a { margin-inline-start: var(--rt-s3); color: var(--rt-gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---- small print under a title ------------------------------------------- */

.rt-postmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  font-size: 0.78rem;
  color: var(--rt-text-dim);
}
.rt-postmeta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

/* ---- the lead article ---------------------------------------------------- */

.rt-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  margin-bottom: var(--rt-s7);
  background: var(--rt-surface);
  border: 1px solid var(--rt-rule-soft);
  border-radius: calc(var(--rt-radius-lg) * 3);
  overflow: hidden;
  box-shadow: var(--rt-lift-2);
}
.rt-lead__art {
  position: relative;
  display: block;
  min-height: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #10392d, #071310);
  overflow: hidden;
}
[data-rt] .rt-lead__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--rt-ease);
}
.rt-lead:hover .rt-lead__art img { transform: scale(1.03); }
.rt-lead__body {
  display: flex;
  flex-direction: column;
  gap: var(--rt-s3);
  padding: var(--rt-s6) var(--rt-s6) var(--rt-s5);
}
.rt-lead__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rt-s3); }
.rt-lead__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rt-gold) 14%, transparent);
  color: var(--rt-gold);
  font-family: var(--rt-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rt-lead__title {
  margin: 0;
  font-family: var(--rt-display);
  font-size: clamp(1.6rem, 1.4vw + 1.15rem, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
[data-rt] .rt-lead__title a { color: var(--rt-text); text-decoration: none; }
[data-rt] .rt-lead__title a:hover { color: var(--rt-emerald); }
.rt-lead__summary { margin: 0; color: var(--rt-text-dim); font-size: var(--rt-t-md); line-height: 1.7; }
.rt-lead__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rt-s4);
  margin-top: auto;
  padding-top: var(--rt-s4);
  border-top: 1px solid var(--rt-rule-soft);
}
@media (max-width: 62rem) {
  .rt-lead { grid-template-columns: 1fr; }
  .rt-lead__art { aspect-ratio: 16 / 9; }
  .rt-lead__body { padding: var(--rt-s5); }
}

/* ---- the grid of posts --------------------------------------------------- */

.rt-postgrid {
  display: grid;
  gap: var(--rt-s6) var(--rt-s5);
  grid-template-columns: repeat(auto-fill, minmax(min(18.5rem, 100%), 1fr));
}
.rt-postgrid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 62rem) { .rt-postgrid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .rt-postgrid--three { grid-template-columns: 1fr; } }

.rt-postcard {
  display: flex;
  flex-direction: column;
  background: var(--rt-surface);
  border: 1px solid var(--rt-rule-soft);
  border-radius: calc(var(--rt-radius-lg) * 2.5);
  overflow: hidden;
  box-shadow: var(--rt-lift-1);
  transition: transform 0.28s var(--rt-ease), box-shadow 0.28s var(--rt-ease), border-color 0.28s var(--rt-ease);
}
.rt-postcard:hover {
  transform: translateY(-4px);
  border-color: var(--rt-rule);
  box-shadow: var(--rt-lift-2);
}
.rt-postcard__art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #123d30, #081611);
  overflow: hidden;
}
[data-rt] .rt-postcard__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--rt-ease);
}
.rt-postcard:hover .rt-postcard__art img { transform: scale(1.04); }
.rt-postcard__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #cba658;
  opacity: 0.55;
}
.rt-postcard__mark svg { width: 46px; height: 46px; }

.rt-postcard__body {
  display: flex;
  flex-direction: column;
  gap: var(--rt-s2);
  flex: 1;
  padding: var(--rt-s4) var(--rt-s5) var(--rt-s5);
}
[data-rt] .rt-postcard__cat {
  align-self: flex-start;
  font-family: var(--rt-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rt-gold);
  text-decoration: none;
}
[data-rt] .rt-postcard__cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.rt-postcard__title {
  margin: 0;
  font-family: var(--rt-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
[data-rt] .rt-postcard__title a { color: var(--rt-text); text-decoration: none; }
[data-rt] .rt-postcard__title a::after { content: ""; position: absolute; inset: 0; }
.rt-postcard { position: relative; }
.rt-postcard__cat { position: relative; z-index: 1; }
[data-rt] .rt-postcard__title a:hover { color: var(--rt-emerald); }
[data-rt] .rt-postcard__title a:focus-visible { outline: none; }
.rt-postcard:has(.rt-postcard__title a:focus-visible) { outline: 2px solid var(--rt-gold); outline-offset: 3px; }
.rt-postcard__summary {
  margin: 0;
  color: var(--rt-text-dim);
  font-size: var(--rt-t-sm);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rt-postcard .rt-postmeta { margin-top: auto; padding-top: var(--rt-s3); }

/* ---- nothing to list ----------------------------------------------------- */

.rt-blogempty {
  display: grid;
  justify-items: center;
  gap: var(--rt-s3);
  padding: var(--rt-s8) var(--rt-s5);
  text-align: center;
  background: var(--rt-surface);
  border: 1px dashed var(--rt-rule);
  border-radius: calc(var(--rt-radius-lg) * 3);
}
.rt-blogempty__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rt-gold) 12%, transparent);
  color: var(--rt-gold);
  font-size: 1.4rem;
}
.rt-blogempty h2 { margin: var(--rt-s2) 0 0; font-family: var(--rt-display); font-size: var(--rt-t-lg); }
.rt-blogempty p { margin: 0 0 var(--rt-s3); color: var(--rt-text-dim); max-width: 46ch; }

/* ---- the admin's preview of a draft -------------------------------------- */

.rt-previewbar {
  background: #fff4d6;
  border-bottom: 1px solid #efd594;
  color: #5c4611;
  font-size: var(--rt-t-sm);
}
.rt-previewbar .rt-shell { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rt-s3); padding-block: 0.7rem; }
[data-rt] .rt-previewbar a { margin-inline-start: auto; color: #5c4611; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---- one article: its head ----------------------------------------------- */

.rt-posthead {
  padding-block: var(--rt-s7) var(--rt-s6);
  background:
    radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--rt-emerald) 8%, transparent), transparent 70%),
    var(--rt-ink-2);
  border-bottom: 1px solid var(--rt-rule-soft);
}
.rt-posthead__inner { max-width: 76rem; }
.rt-posthead__content { max-width: calc(100% - 20.5rem - var(--rt-s7)); }
@media (max-width: 64rem) { .rt-posthead__content { max-width: 46rem; margin-inline: auto; } }
[data-rt] .rt-posthead__cat { display: inline-block; text-decoration: none; }
[data-rt] .rt-posthead__cat:hover { text-decoration: underline; text-underline-offset: 4px; }
.rt-posthead__title {
  margin: var(--rt-s3) 0 var(--rt-s4);
  max-width: 30ch;
  font-family: var(--rt-display);
  font-size: clamp(2rem, 2.6vw + 1.2rem, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.rt-posthead__lede {
  margin: 0 0 var(--rt-s5);
  max-width: 68ch;
  color: var(--rt-text-dim);
  font-size: var(--rt-t-md);
  line-height: 1.7;
}
.rt-posthead__meta {
  padding-top: var(--rt-s4);
  border-top: 1px solid var(--rt-rule-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.4rem 0.7rem;
  font-size: var(--rt-t-sm);
  color: var(--rt-text-dim);
}
.rt-byline { display: inline-flex; align-items: center; gap: 0.55rem; }
.rt-byline strong { color: var(--rt-text); font-weight: 600; }
.rt-byline__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(150deg, #1a7457, #0e4633);
  color: #ffffff;
  font-family: var(--rt-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.rt-postcover { margin: 0 0 var(--rt-s6); }
[data-rt] .rt-postcover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 34rem;
  object-fit: cover;
  border-radius: calc(var(--rt-radius-lg) * 3);
  box-shadow: var(--rt-lift-2);
}

/* ---- one article: the text beside the side column ------------------------- */

.rt-postwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20.5rem;
  gap: var(--rt-s7);
  align-items: start;
}
.rt-postwrap { max-width: 76rem; padding-block: var(--rt-s6) var(--rt-s7); }
@media (max-width: 64rem) {
  .rt-postwrap { grid-template-columns: minmax(0, 1fr); gap: var(--rt-s6); }
  .rt-postmain { max-width: 46rem; width: 100%; margin-inline: auto; }
}

/* ---- the side column ------------------------------------------------------ */

.rt-sidebar { display: grid; gap: var(--rt-s5); align-content: start; min-width: 0; }
/* on a wide screen the side column runs the length of the article, and the
   academy card follows the reader down */
@media (min-width: 64.01rem) {
  .rt-postwrap > .rt-sidebar { align-self: stretch; }
  .rt-postwrap .rt-widget--academy { position: sticky; top: 96px; }
}
.rt-widget {
  padding: var(--rt-s5);
  background: var(--rt-surface);
  border: 1px solid var(--rt-rule-soft);
  border-radius: calc(var(--rt-radius-lg) * 3);
  box-shadow: var(--rt-lift-1);
}
[data-rt] .rt-widget__title {
  margin: 0 0 var(--rt-s4);
  font-family: var(--rt-display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rt-text);
}
.rt-widget__title::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #cba658, #a8843a);
}
.rt-widget__note { margin: calc(var(--rt-s2) * -1) 0 var(--rt-s4); color: var(--rt-text-dim); font-size: var(--rt-t-sm); line-height: 1.6; }

.rt-widget--search { padding: var(--rt-s3); }
.rt-sidesearch { display: flex; align-items: center; gap: var(--rt-s2); }
[data-rt] .rt-sidesearch input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rt-rule);
  border-radius: calc(var(--rt-radius-lg) * 2);
  background: transparent;
  color: var(--rt-text);
  font: inherit;
  font-size: var(--rt-t-sm);
}
[data-rt] .rt-sidesearch input:focus { outline: none; border-color: var(--rt-gold); }
[data-rt] form.rt-sidesearch button[type="submit"] {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: calc(var(--rt-radius-lg) * 2);
  background: var(--rt-emerald);
  color: #ffffff;
  cursor: pointer;
}
.rt-sidesearch button:hover { filter: brightness(1.1); }

/* a short list of posts, each with its picture */
.rt-sideposts { display: grid; gap: var(--rt-s4); margin: 0; padding: 0; list-style: none; }
.rt-sideposts li + li { padding-top: var(--rt-s4); border-top: 1px solid var(--rt-rule-soft); }
[data-rt] .rt-sidepost {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: var(--rt-s3);
  align-items: center;
  color: var(--rt-text);
  text-decoration: none;
}
.rt-sidepost__art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--rt-radius-lg) * 2);
  overflow: hidden;
  background: linear-gradient(160deg, #123d30, #081611);
}
[data-rt] .rt-sidepost__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--rt-ease); }
.rt-sidepost:hover .rt-sidepost__art img { transform: scale(1.07); }
.rt-sidepost__mark { position: absolute; inset: 0; display: grid; place-items: center; color: #cba658; opacity: 0.55; }
.rt-sidepost__mark svg { width: 24px; height: 24px; }
.rt-sidepost__text { display: grid; gap: 0.3rem; }
.rt-sidepost__title {
  font-family: var(--rt-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s var(--rt-ease);
}
.rt-sidepost:hover .rt-sidepost__title { color: var(--rt-emerald); }
.rt-sidepost__date { font-size: var(--rt-t-xs); color: var(--rt-text-dim); }
.rt-sidepost__date i { color: var(--rt-gold); margin-inline-end: 0.2rem; }

/* the categories, with how many posts each */
.rt-catlist { margin: 0; padding: 0; list-style: none; }
.rt-catlist li + li { border-top: 1px dashed var(--rt-rule); }
[data-rt] .rt-catlist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rt-s3);
  padding: 0.7rem 0.2rem;
  color: var(--rt-text);
  font-size: var(--rt-t-base);
  text-decoration: none;
  transition: color 0.2s var(--rt-ease), padding 0.2s var(--rt-ease);
}
.rt-catlist a i { color: var(--rt-gold); font-size: 0.8em; margin-inline-end: 0.35rem; }
[data-rt] .rt-catlist a:hover { color: var(--rt-emerald); padding-inline-start: 0.5rem; }
[data-rt] .rt-catlist a[aria-current="page"] { color: var(--rt-emerald); font-weight: 600; }
.rt-catlist__n {
  min-width: 1.9rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rt-gold) 14%, transparent);
  color: var(--rt-gold);
  font-family: var(--rt-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

/* how to reach us */
.rt-contactlist { display: grid; gap: var(--rt-s3); margin: 0 0 var(--rt-s4); padding: 0; list-style: none; }
.rt-contactlist li { display: flex; align-items: flex-start; gap: var(--rt-s3); font-size: var(--rt-t-sm); line-height: 1.5; color: var(--rt-text); overflow-wrap: anywhere; }
.rt-contactlist small {
  display: block;
  font-family: var(--rt-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rt-text-dim);
}
[data-rt] .rt-contactlist a { color: var(--rt-text); font-weight: 600; text-decoration: none; }
[data-rt] .rt-contactlist a:hover { color: var(--rt-emerald); }
.rt-contactlist__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rt-gold) 13%, transparent);
  color: var(--rt-gold);
  font-size: 0.85rem;
}
.rt-sidesocial { display: flex; flex-wrap: wrap; gap: var(--rt-s2); margin-top: var(--rt-s4); }
[data-rt] .rt-sidesocial a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rt-rule);
  border-radius: 50%;
  color: var(--rt-text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s var(--rt-ease), color 0.2s var(--rt-ease), border-color 0.2s var(--rt-ease);
}
[data-rt] .rt-sidesocial a:hover { background: var(--rt-emerald); border-color: var(--rt-emerald); color: #ffffff; }
.rt-sidesocial svg { width: 0.9rem; height: 0.9rem; fill: currentColor; }

[data-rt] .rt-sidebtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--rt-radius-lg) * 2);
  font-size: var(--rt-t-sm);
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.2s var(--rt-ease), transform 0.2s var(--rt-ease), background 0.2s var(--rt-ease);
}
[data-rt] .rt-sidebtn:hover { transform: translateY(-1px); }
[data-rt] .rt-sidebtn + .rt-sidebtn { margin-top: var(--rt-s2); }
[data-rt] .rt-sidebtn--whatsapp { background: #1f9d55; color: #ffffff; }
[data-rt] .rt-sidebtn--whatsapp:hover { filter: brightness(1.08); color: #ffffff; }
[data-rt] .rt-sidebtn--gold { background: linear-gradient(135deg, #e3c77f, #cba658 55%, #a8843a); color: #1a1407; }
[data-rt] .rt-sidebtn--gold:hover { filter: brightness(1.06); color: #1a1407; }
[data-rt] .rt-sidebtn--line { border: 1px solid rgba(255, 255, 255, 0.45); color: #ffffff; }
[data-rt] .rt-sidebtn--line:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }

/* the academy, a dark card in either theme */
.rt-widget--academy {
  position: relative;
  overflow: hidden;
  color: #e9f1ec;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(203, 166, 88, 0.28), transparent 60%),
    linear-gradient(155deg, #17694f 0%, #0d4232 55%, #082a20 100%);
  border-color: rgba(203, 166, 88, 0.35);
}
[data-rt] .rt-widget--academy p { margin: 0 0 var(--rt-s4); font-size: var(--rt-t-sm); line-height: 1.65; color: rgba(233, 241, 236, 0.85); }
[data-rt] .rt-widget__eyebrow {
  font-family: var(--rt-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e9d3a0;
}
[data-rt] .rt-widget--academy .rt-widget__headline {
  margin: var(--rt-s2) 0 var(--rt-s3);
  font-family: var(--rt-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

/* ---- the blog list ------------------------------------------------------- */

.rt-bloglist__head {
  display: flex;
  align-items: center;
  gap: var(--rt-s4);
  margin-bottom: var(--rt-s5);
}
.rt-bloglist__title {
  margin: 0;
  font-family: var(--rt-display);
  font-size: var(--rt-t-lg);
  font-weight: 700;
  color: var(--rt-text);
  white-space: nowrap;
}
.rt-bloglist__rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--rt-rule), transparent); }

/* ---- the box about who wrote the post --------------------------------------- */

.rt-authorbox {
  display: flex;
  gap: var(--rt-s5);
  align-items: flex-start;
  margin-top: var(--rt-s6);
  padding: var(--rt-s5) var(--rt-s6);
  background: var(--rt-surface);
  border: 1px solid var(--rt-rule-soft);
  border-radius: calc(var(--rt-radius-lg) * 3);
  box-shadow: var(--rt-lift-1);
}
.rt-authorbox__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(150deg, #1a7457, #0e4633);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rt-gold) 25%, transparent);
  color: #ffffff;
  font-family: var(--rt-display);
  font-size: 1.7rem;
  font-weight: 700;
}
.rt-authorbox__eyebrow {
  font-family: var(--rt-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rt-gold);
}
[data-rt] .rt-authorbox__name { margin: 0.2rem 0 0.4rem; font-family: var(--rt-display); font-size: 1.35rem; font-weight: 700; color: var(--rt-text); }
.rt-authorbox p { margin: 0 0 var(--rt-s3); color: var(--rt-text-dim); font-size: var(--rt-t-sm); line-height: 1.65; }
.rt-authorbox__links { display: flex; flex-wrap: wrap; gap: var(--rt-s2) var(--rt-s5); }
[data-rt] .rt-authorbox__links a { color: var(--rt-emerald); font-size: var(--rt-t-sm); font-weight: 600; text-decoration: none; }
[data-rt] .rt-authorbox__links a i { font-size: 0.75em; margin-inline-start: 0.2rem; transition: transform 0.2s var(--rt-ease); }
[data-rt] .rt-authorbox__links a:hover i { transform: translateX(3px); }
@media (max-width: 40rem) {
  .rt-authorbox { flex-direction: column; padding: var(--rt-s5); }
}

.rt-article {
  color: var(--rt-text);
  font-size: 1.0925rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}
.rt-article > :first-child { margin-top: 0; }
.rt-article p { margin: 0 0 1.3em; }
.rt-article h2,
.rt-article h3,
.rt-article h4 {
  font-family: var(--rt-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--rt-text);
  scroll-margin-top: 96px;
}
.rt-article h2 { margin: 2em 0 0.7em; font-size: 1.85rem; }
.rt-article h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 0.7rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #cba658, #a8843a);
}
.rt-article h3 { margin: 1.7em 0 0.55em; font-size: 1.45rem; }
.rt-article h4 { margin: 1.5em 0 0.5em; font-size: 1.2rem; }
[data-rt] .rt-article a {
  color: var(--rt-emerald);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
[data-rt] .rt-article a:hover { text-decoration-thickness: 2px; }
.rt-article strong, .rt-article b { font-weight: 700; }
.rt-article ul,
.rt-article ol { margin: 0 0 1.3em; padding-inline-start: 1.4em; }
.rt-article li { margin: 0.35em 0; padding-inline-start: 0.2em; }
.rt-article li::marker { color: var(--rt-gold); }
.rt-article blockquote {
  margin: 1.8em 0;
  padding: 1.1em 1.4em;
  border-inline-start: 3px solid #cba658;
  border-radius: 0 var(--rt-radius-lg) var(--rt-radius-lg) 0;
  background: color-mix(in srgb, var(--rt-gold) 7%, var(--rt-surface));
  font-family: var(--rt-display);
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--rt-text);
}
.rt-article blockquote > :last-child { margin-bottom: 0; }
[data-rt] .rt-article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.4em auto;
  border-radius: calc(var(--rt-radius-lg) * 2);
}
.rt-article .rt-figure { margin: 1.8em 0; }
.rt-article hr {
  margin: 2.4em auto;
  width: 6rem;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--rt-gold), transparent);
  opacity: 0.8;
}
.rt-article pre {
  margin: 1.5em 0;
  padding: 1em 1.2em;
  overflow-x: auto;
  background: #0c1c17;
  color: #e8efe9;
  border-radius: calc(var(--rt-radius-lg) * 2);
  font-family: var(--rt-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.rt-article code { font-family: var(--rt-mono); font-size: 0.9em; }
.rt-article :not(pre) > code { padding: 0.1em 0.35em; border-radius: 4px; background: var(--rt-ink-3); }
.rt-embed {
  position: relative;
  margin: 1.8em 0;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--rt-radius-lg) * 2);
  overflow: hidden;
  background: #05100c;
  box-shadow: var(--rt-lift-2);
}
.rt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* what the editor's alignment and direction buttons write */
.rt-article .ql-align-center { text-align: center; }
.rt-article .ql-align-right { text-align: right; }
.rt-article .ql-align-justify { text-align: justify; }
/* Arabic in a post is mostly a verse or a hadith: set larger, with room
   between the lines for the vowel marks */
.rt-article .ql-direction-rtl {
  direction: rtl;
  text-align: right;
  font-family: var(--rt-display);
  font-size: 1.55em;
  line-height: 2.1;
}
.rt-article .ql-direction-rtl.ql-align-center { text-align: center; }
.rt-article .ql-indent-1 { padding-inline-start: 2em; }
.rt-article .ql-indent-2 { padding-inline-start: 4em; }
.rt-article .ql-indent-3 { padding-inline-start: 6em; }
.rt-article .ql-indent-4,
.rt-article .ql-indent-5,
.rt-article .ql-indent-6,
.rt-article .ql-indent-7,
.rt-article .ql-indent-8 { padding-inline-start: 8em; }
.rt-article--empty { color: var(--rt-text-dim); font-style: italic; }

/* ---- under the article ---------------------------------------------------- */

.rt-postfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rt-s4);
  margin-top: var(--rt-s6);
  padding-top: var(--rt-s5);
  border-top: 1px solid var(--rt-rule);
}
.rt-postfoot__filed { display: flex; align-items: center; gap: var(--rt-s2); color: var(--rt-text-dim); font-size: var(--rt-t-sm); }
[data-rt] .rt-postfoot__filed .rt-chip { text-decoration: none; color: var(--rt-text); background: var(--rt-surface); }

/* the post's keywords, each a link to the posts that share it */
.rt-posttags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rt-s2) var(--rt-s3);
  margin-top: var(--rt-s6);
}
.rt-posttags__label {
  font-family: var(--rt-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rt-text-dim);
}
.rt-posttags__list { display: flex; flex-wrap: wrap; gap: var(--rt-s2); margin: 0; padding: 0; list-style: none; }
[data-rt] .rt-posttags .rt-chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--rt-text);
  background: var(--rt-surface);
}
[data-rt] .rt-posttags .rt-chip::before { content: "#"; margin-inline-end: 0.2em; color: var(--rt-gold); opacity: 0.85; }
.rt-posttags + .rt-postfoot { margin-top: var(--rt-s4); }

.rt-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rt-s2); }
.rt-share__label {
  margin-inline-end: var(--rt-s1);
  font-family: var(--rt-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rt-text-dim);
}
[data-rt] .rt-share__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--rt-rule);
  border-radius: 50%;
  background: var(--rt-surface);
  color: var(--rt-text);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--rt-ease), color 0.2s var(--rt-ease), border-color 0.2s var(--rt-ease), transform 0.2s var(--rt-ease);
}
[data-rt] .rt-share__btn:hover {
  background: var(--rt-emerald);
  border-color: var(--rt-emerald);
  color: #ffffff;
  transform: translateY(-2px);
}
.rt-share__btn:focus-visible { outline: 2px solid var(--rt-gold); outline-offset: 2px; }
.rt-share__done {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #0c1c17;
  color: #ffffff;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--rt-ease), transform 0.2s var(--rt-ease);
}
.rt-share__copy.is-done .rt-share__done { opacity: 1; transform: translate(-50%, 0); }

.rt-postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rt-s4);
  margin-top: var(--rt-s6);
}
[data-rt] .rt-postnav__link {
  display: grid;
  gap: 0.3rem;
  padding: var(--rt-s4) var(--rt-s5);
  background: var(--rt-surface);
  border: 1px solid var(--rt-rule-soft);
  border-radius: calc(var(--rt-radius-lg) * 2);
  color: var(--rt-text);
  text-decoration: none;
  transition: border-color 0.2s var(--rt-ease), box-shadow 0.2s var(--rt-ease);
}
[data-rt] .rt-postnav__link:hover { border-color: var(--rt-gold); box-shadow: var(--rt-lift-1); }
.rt-postnav__link--next { grid-column: 2; text-align: end; }
.rt-postnav__dir {
  font-family: var(--rt-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rt-gold);
}
.rt-postnav__title { font-family: var(--rt-display); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
@media (max-width: 40rem) {
  .rt-postnav { grid-template-columns: 1fr; }
  .rt-postnav__link--next { grid-column: auto; }
}

.rt-related {
  background: color-mix(in srgb, var(--rt-emerald) 4%, var(--rt-ink));
  border-top: 1px solid var(--rt-rule-soft);
}

/* ---- small screens ------------------------------------------------------- */

@media (max-width: 40rem) {
  .rt-posthead { padding-block: var(--rt-s6) var(--rt-s5); }
  .rt-posthead__inner { text-align: start; }
  .rt-posthead .rt-crumbs,
  .rt-posthead__meta { justify-content: flex-start; }
  .rt-posthead__title { margin-inline: 0; }
  .rt-postcover { margin-bottom: var(--rt-s5); }
  [data-rt] .rt-postcover img { border-radius: var(--rt-radius-lg); }
  .rt-article { font-size: 1.04rem; line-height: 1.8; }
  .rt-article h2 { font-size: 1.55rem; }
  .rt-article h3 { font-size: 1.28rem; }
  .rt-lead { border-radius: calc(var(--rt-radius-lg) * 2); }
  .rt-postfoot { flex-direction: column; align-items: flex-start; }
  .rt-blogsearch .rt-btn { padding-inline: 1rem; }
}
