/* ==========================================================================
   Blog article blocks (Secret of Art)

   Scope    .blog-prose sits on the article content wrapper. Blocks follow the
            width of the article column through container queries, so
            .blog-detail-article is the container.
   Blocks   A: text, quotes, photos and tables. B: brand blocks. Both are
            added in the block editor in the admin (blog/schema.py). C: parts
            the article page adds by itself. Each rule set is tagged with its
            ID from the design gallery in design/blog-blocks.
   ========================================================================== */

.blog-detail-article {
  container-type: inline-size;
}

/* Shared icons (masks, so CSS sets their color). */
:root {
  --blk-icon-marks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='17 17 16 15.5'%3E%3Cpath d='M23 21.5V24c0 2.98-1.61 6.77-6 8.45v-3.3c2.82-1.65 3-4.49 3-5.15h-3v-7h6zm10 0V24c0 2.98-1.61 6.77-6 8.45v-3.3c2.82-1.65 3-4.49 3-5.15h-3v-7h6z'/%3E%3C/svg%3E");
  --blk-icon-dropdown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.67C8.65 2.67 2.66 8.65 2.66 16S8.65 29.33 16 29.33 29.33 23.35 29.33 16 23.34 2.67 16 2.67zm5.41 12.36-4.71 4.7c-.2.2-.45.3-.7.3s-.51-.1-.71-.3l-4.71-4.7a1 1 0 0 1 0-1.42 1 1 0 0 1 1.42 0L16 17.61l4-4c.39-.39 1.03-.39 1.41 0 .39.39.39 1.02 0 1.42z'/%3E%3C/svg%3E");
  --blk-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --blk-icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3Cpath d='M12 7v5.2l3.2 2' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.blog-prose {
  --bp-ground: #1f1f1f;
  --bp-raised: #292929;
  --bp-line: rgba(255, 255, 255, 0.12);
  --bp-text: rgba(255, 255, 255, 0.84);
  --bp-muted: rgba(255, 255, 255, 0.6);
  --bp-white: #fff;
  --bp-yellow: #fee002;
  --bp-ink: #121212;
  --bp-gap: 2.25em;

  color: var(--bp-text);
  font-family: "Cairo", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.blog-prose:lang(ar) {
  line-height: 1.95;
}

/* Trim the outer margins of whatever block opens or closes the article. */
.blog-prose > :first-child {
  margin-top: 0 !important;
}

.blog-prose > :last-child {
  margin-bottom: 0 !important;
}

/* A1 Reading text -------------------------------------------------------- */

.blog-prose p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

.blog-prose > p:first-of-type:not([class]) {
  color: var(--bp-white);
  font-size: 1.18em;
  line-height: 1.65;
}

.blog-prose:lang(ar) > p:first-of-type:not([class]) {
  line-height: 1.85;
}

.blog-prose strong,
.blog-prose b {
  color: var(--bp-white);
  font-weight: 700;
}

.blog-prose code {
  padding: 0.1em 0.4em;
  border-radius: 4px;
  background: var(--bp-raised);
  color: var(--bp-white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.blog-prose .text-tiny { font-size: 0.7em; }
.blog-prose .text-small { font-size: 0.85em; }
.blog-prose .text-big { font-size: 1.4em; }
.blog-prose .text-huge { font-size: 1.8em; }

@container (max-width: 559px) {
  .blog-prose {
    font-size: 16px;
  }
}

/* A2 Headings ------------------------------------------------------------ */

.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
  color: var(--bp-white);
  text-wrap: balance;
}

.blog-prose h2 {
  clear: both;
  scroll-margin-top: 24px;
  margin: 2.2em 0 0.55em;
  font-size: 1.65em;
  font-weight: 700;
  line-height: 1.3;
}

.blog-prose h3 {
  margin: 1.8em 0 0.45em;
  font-size: 1.24em;
  font-weight: 600;
  line-height: 1.4;
}

.blog-prose h4 {
  margin: 1.6em 0 0.4em;
  font-size: 1.06em;
  font-weight: 700;
  line-height: 1.45;
}

.blog-prose:lang(ar) h2,
.blog-prose:lang(ar) h3,
.blog-prose:lang(ar) h4 {
  line-height: 1.55;
}

@container (max-width: 559px) {
  .blog-prose h2 {
    margin-top: 1.9em;
    font-size: 1.45em;
  }

  .blog-prose h3 {
    font-size: 1.18em;
  }
}

/* A3 Lists --------------------------------------------------------------- */

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1.15em;
  padding-inline-start: 1.4em;
}

.blog-prose ul {
  list-style-type: disc;
}

.blog-prose li ul {
  list-style-type: circle;
}

.blog-prose li {
  margin: 0.35em 0;
  padding-inline-start: 0.3em;
}

.blog-prose li::marker {
  color: var(--bp-yellow);
}

.blog-prose ol > li::marker {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.blog-prose li > ul,
.blog-prose li > ol {
  margin: 0.35em 0 0.2em;
}

.blog-prose li > p {
  margin: 0 0 0.5em;
}

/* A5 Quote: the marks from the brand quote icon hang beside the text,
   turned so they open the quote. */

.blog-prose blockquote {
  position: relative;
  margin: var(--bp-gap) 0;
  padding: 0;
  padding-inline-start: 62px;
  color: var(--bp-white);
  font-size: 1.2em;
  font-weight: 500;
  line-height: 1.6;
}

.blog-prose:lang(ar) blockquote {
  line-height: 1.85;
}

.blog-prose blockquote::before {
  content: "";
  position: absolute;
  top: calc((1lh - 1cap) / 2);
  inset-inline-start: 0;
  width: 38px;
  height: 37px;
  background: var(--bp-yellow);
  -webkit-mask: var(--blk-icon-marks) center / contain no-repeat;
  mask: var(--blk-icon-marks) center / contain no-repeat;
  transform: rotate(180deg);
}

.blog-prose blockquote:lang(ar)::before {
  transform: scaleY(-1);
}

.blog-prose blockquote > p {
  margin: 0;
}

.blog-prose blockquote > footer {
  margin-top: 10px;
  color: var(--bp-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.blog-prose blockquote > :last-child {
  margin-bottom: 0;
}

@container (max-width: 559px) {
  .blog-prose blockquote {
    padding-inline-start: 46px;
    font-size: 1.12em;
  }

  .blog-prose blockquote::before {
    width: 30px;
    height: 29px;
  }
}

/* A6 Images -------------------------------------------------------------- */

.blog-prose figure {
  margin: var(--bp-gap) 0;
}

.blog-prose figure.image {
  display: table;
  clear: both;
  margin-inline: auto;
}

.blog-prose figure.image img {
  display: block;
  max-width: 100%;
  min-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.blog-prose figure.image > figcaption {
  display: table-caption;
  caption-side: bottom;
  padding-top: 10px;
  color: var(--bp-muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: start;
}

.blog-prose figure.image.image_resized {
  max-width: 100%;
}

.blog-prose p img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  vertical-align: middle;
}

.blog-prose figure.image.image-style-align-left {
  float: left;
  clear: none;
  max-width: 50%;
  margin: 0.4em 1.75em 1em 0;
}

.blog-prose figure.image.image-style-align-right {
  float: right;
  clear: none;
  max-width: 50%;
  margin: 0.4em 0 1em 1.75em;
}

@container (max-width: 559px) {
  .blog-prose figure.image.image-style-align-left,
  .blog-prose figure.image.image-style-align-right {
    float: none;
    max-width: 100%;
    margin: var(--bp-gap) 0;
  }
}

/* YouTube video ---------------------------------------------------------- */

.blog-prose .blk-video {
  margin: var(--bp-gap) 0;
}

.blog-prose .blk-video__frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
}

.blog-prose .blk-video__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-prose .blk-video > figcaption {
  padding-top: 10px;
  color: var(--bp-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* A7 Table --------------------------------------------------------------- */

.blog-prose figure.table {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-prose figure.table > figcaption {
  order: -1;
  padding-bottom: 12px;
  color: var(--bp-white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94em;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

.blog-prose:lang(ar) table {
  line-height: 1.75;
}

.blog-prose th,
.blog-prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bp-line);
  text-align: start;
  vertical-align: top;
}

.blog-prose thead th {
  border-bottom: 2px solid var(--bp-yellow);
  color: var(--bp-white);
  font-weight: 700;
}

.blog-prose tbody th {
  color: var(--bp-white);
  font-weight: 600;
}

@container (max-width: 559px) {
  .blog-prose th,
  .blog-prose td {
    padding: 10px 10px;
  }
}

/* A9 Highlight: every editor highlight color shows as the dark marker. */

.blog-prose mark,
.blog-prose .marker-yellow,
.blog-prose .marker-green,
.blog-prose .marker-pink,
.blog-prose .marker-blue {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #000;
  color: var(--bp-yellow);
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.blog-prose .pen-red,
.blog-prose .pen-green {
  padding: 0;
  background: none;
  color: var(--bp-yellow);
}

/* A10 Links: yellow text, thin underline that thickens on hover. */

.blog-prose a {
  color: var(--bp-yellow);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(254, 224, 2, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: text-decoration-color 0.15s ease;
}

.blog-prose a:hover {
  text-decoration-color: var(--bp-yellow);
  text-decoration-thickness: 2px;
}

.blog-prose a:focus-visible {
  outline: 2px solid var(--bp-yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   B: brand blocks, added from the block editor in the admin.
   ========================================================================== */

/* B1 Key takeaways: viewfinder corners --------------------------------- */

.blog-prose .blk-takeaways {
  --vf: var(--bp-yellow);
  --vf-len: 22px;
  --vf-w: 2px;

  margin: var(--bp-gap) 0;
  padding: 30px 34px 28px;
  background:
    linear-gradient(var(--vf), var(--vf)) 0 0 / var(--vf-len) var(--vf-w),
    linear-gradient(var(--vf), var(--vf)) 0 0 / var(--vf-w) var(--vf-len),
    linear-gradient(var(--vf), var(--vf)) 100% 0 / var(--vf-len) var(--vf-w),
    linear-gradient(var(--vf), var(--vf)) 100% 0 / var(--vf-w) var(--vf-len),
    linear-gradient(var(--vf), var(--vf)) 0 100% / var(--vf-len) var(--vf-w),
    linear-gradient(var(--vf), var(--vf)) 0 100% / var(--vf-w) var(--vf-len),
    linear-gradient(var(--vf), var(--vf)) 100% 100% / var(--vf-len) var(--vf-w),
    linear-gradient(var(--vf), var(--vf)) 100% 100% / var(--vf-w) var(--vf-len);
  background-repeat: no-repeat;
}

.blog-prose .blk-takeaways__title {
  margin: 0 0 0.5em;
  color: var(--bp-white);
  font-size: 1.12em;
  font-weight: 700;
}

.blog-prose .blk-takeaways ul {
  margin: 0;
}

.blog-prose .blk-takeaways li {
  margin: 0.5em 0;
  color: var(--bp-white);
}

@container (max-width: 559px) {
  .blog-prose .blk-takeaways {
    padding: 24px 22px 22px;
  }
}

/* B2 Tip and note ------------------------------------------------------- */

.blog-prose p.blk-tip,
.blog-prose p.blk-note {
  position: relative;
  margin: var(--bp-gap) 0;
  padding: 18px 22px;
  padding-inline-start: 56px;
  border-radius: 12px;
  color: var(--bp-white);
  font-size: 0.97em;
  line-height: 1.7;
}

.blog-prose:lang(ar) p.blk-tip,
.blog-prose:lang(ar) p.blk-note {
  line-height: 1.9;
}

.blog-prose p.blk-tip::before,
.blog-prose p.blk-note::before {
  content: "";
  position: absolute;
  top: calc(18px + (1lh - 20px) / 2);
  inset-inline-start: 21px;
  width: 20px;
  height: 20px;
  -webkit-mask: var(--blk-icon) center / contain no-repeat;
  mask: var(--blk-icon) center / contain no-repeat;
}

/* B2a Tip */
.blog-prose p.blk-tip {
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(254, 224, 2, 0.5);
}

.blog-prose p.blk-tip::before {
  --blk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 2 4 13.5h6.5L9.5 22 20 9.5h-6.6L13.5 2z'/%3E%3C/svg%3E");
  background: var(--bp-yellow);
}

/* B2b Note */
.blog-prose p.blk-note {
  background: var(--bp-raised);
}

.blog-prose p.blk-note::before {
  --blk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm-1 8.5V17h2v-6.5h-2zM12 6.4a1.3 1.3 0 1 0 0 2.6 1.3 1.3 0 0 0 0-2.6z'/%3E%3C/svg%3E");
  background: rgba(255, 255, 255, 0.72);
}

/* B4a Number ------------------------------------------------------------ */

.blog-prose p.blk-stat {
  max-width: 30em;
  margin: var(--bp-gap) 0;
  padding-top: 18px;
  border-top: 1px solid var(--bp-line);
  color: var(--bp-text);
  font-size: 0.94em;
  line-height: 1.6;
}

.blog-prose p.blk-stat > strong:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--bp-yellow);
  font-size: 3.8em;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.blog-prose p.blk-stat:lang(ar) > strong:first-child {
  line-height: 1.2;
  letter-spacing: 0;
}

.blog-prose .blk-label {
  margin-inline-end: 0.15em;
}

/* B4b Numbers in a row ----------------------------------------------------- */

.blog-prose .blk-stats {
  margin: var(--bp-gap) 0;
}

.blog-prose .blk-stats__title {
  margin: 0 0 12px;
  color: var(--bp-white);
  font-size: 15px;
  font-weight: 600;
}

.blog-prose .blk-stats__list {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-prose .blk-stats__list > li {
  margin: 0;
  padding: 4px 22px;
  border-inline-start: 1px solid var(--bp-line);
  color: var(--bp-text);
  line-height: 1.5;
}

.blog-prose .blk-stats__list > li:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.blog-prose .blk-stats__list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bp-yellow);
  font-size: 2.6em;
  font-weight: 800;
  line-height: 1.1;
}

@container (max-width: 559px) {
  .blog-prose .blk-stats__list {
    grid-auto-flow: row;
  }

  .blog-prose .blk-stats__list > li,
  .blog-prose .blk-stats__list > li:first-child {
    padding: 14px 0;
    border-inline-start: 0;
    border-top: 1px solid var(--bp-line);
  }

  .blog-prose .blk-stats__list > li:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

/* B5 Steps: the site's split-circle numbers ----------------------------- */

.blog-prose ol.blk-steps {
  margin: var(--bp-gap) 0;
  padding: 0;
  list-style: none;
  counter-reset: blk-step;
}

.blog-prose ol.blk-steps > li {
  position: relative;
  min-height: 44px;
  margin: 0;
  padding: calc((44px - 1lh) / 2) 0 32px;
  padding-inline-start: 64px;
  counter-increment: blk-step;
}

.blog-prose ol.blk-steps > li:last-child {
  padding-bottom: 0;
}

.blog-prose ol.blk-steps > li::before {
  content: counter(blk-step);
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(254, 224, 2, 0.18) 50%, #141414 50%);
  color: var(--bp-yellow);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.blog-prose ol.blk-steps > li::after {
  content: "";
  position: absolute;
  top: 50px;
  bottom: 6px;
  inset-inline-start: 21px;
  width: 2px;
  border-radius: 1px;
  background: var(--bp-line);
}

.blog-prose ol.blk-steps > li:last-child::after {
  content: none;
}

.blog-prose .blk-steps__title {
  display: block;
  color: var(--bp-white);
  font-weight: 700;
}

.blog-prose .blk-steps__text {
  display: block;
  margin-top: 2px;
}

/* B6a Do and avoid lists ------------------------------------------------ */

.blog-prose .blk-do-avoid {
  margin: var(--bp-gap) 0;
}

.blog-prose .blk-do-avoid__title {
  margin: 0 0 6px;
  color: var(--bp-white);
  font-size: 1.06em;
  font-weight: 700;
}

.blog-prose ul.blk-pros,
.blog-prose ul.blk-cons {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-prose ul.blk-pros > li,
.blog-prose ul.blk-cons > li {
  position: relative;
  margin: 0;
  padding: 10px 0;
  padding-inline-start: 34px;
  border-top: 1px solid var(--bp-line);
}

.blog-prose ul.blk-pros > li::before,
.blog-prose ul.blk-cons > li::before {
  content: "";
  position: absolute;
  top: calc(10px + (1lh - 20px) / 2);
  inset-inline-start: 0;
  width: 20px;
  height: 20px;
  -webkit-mask: var(--blk-icon) center / contain no-repeat;
  mask: var(--blk-icon) center / contain no-repeat;
}

.blog-prose ul.blk-pros > li::before {
  --blk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5l5 5 10-11' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background: var(--bp-yellow);
}

.blog-prose ul.blk-cons > li::before {
  --blk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 6.5l11 11m0-11-11 11' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background: #8a8a8a;
}

.blog-prose .blk-do-avoid ul + .blk-do-avoid__title {
  margin-top: 1.6em;
}

/* B6b Comparison table: the last column is the recommended option ------ */

.blog-prose table.blk-compare {
  border-collapse: separate;
  border-spacing: 0;
}

.blog-prose table.blk-compare th,
.blog-prose table.blk-compare td {
  padding: 14px 18px;
}

.blog-prose table.blk-compare thead th {
  border-bottom: 1px solid var(--bp-line);
  color: var(--bp-muted);
  font-weight: 600;
}

.blog-prose table.blk-compare tbody th {
  width: 22%;
  color: var(--bp-white);
  font-weight: 700;
}

.blog-prose table.blk-compare tbody td {
  color: var(--bp-muted);
}

.blog-prose table.blk-compare tr > :last-child {
  background: rgba(254, 224, 2, 0.07);
  color: var(--bp-white);
}

.blog-prose table.blk-compare thead th:last-child {
  border-bottom: 2px solid var(--bp-yellow);
  border-radius: 10px 10px 0 0;
  color: var(--bp-yellow);
  font-weight: 700;
}

.blog-prose table.blk-compare tbody tr:last-child > :last-child {
  border-radius: 0 0 10px 10px;
}

@container (max-width: 559px) {
  .blog-prose table.blk-compare th,
  .blog-prose table.blk-compare td {
    padding: 12px 10px;
  }
}

/* B7 Photo grid: two or three photos side by side ------------------------ */

.blog-prose .blk-photos {
  margin: var(--bp-gap) 0;
}

.blog-prose .blk-photos__grid {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 12px;
}

.blog-prose .blk-photos__item {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.blog-prose .blk-photos__label {
  color: var(--bp-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.blog-prose .blk-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.blog-prose .blk-photos--3 img {
  aspect-ratio: 4 / 5;
}

.blog-prose .blk-photos > figcaption {
  padding-top: 12px;
  color: var(--bp-muted);
  font-size: 14px;
  line-height: 1.55;
}

@container (max-width: 559px) {
  .blog-prose .blk-photos--3 .blk-photos__grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
  }

  .blog-prose .blk-photos--3 .blk-photos__item:first-child {
    grid-column: 1 / -1;
  }

  .blog-prose .blk-photos--3 .blk-photos__item:first-child img {
    aspect-ratio: 4 / 3;
  }
}

/* B8 Service box -------------------------------------------------------- */

.blog-prose .blk-cta {
  position: relative;
  overflow: hidden;
  margin: var(--bp-gap) 0;
  padding: 32px 34px;
  border-radius: 16px;
  background: var(--bp-raised);
}

/* The lens ring from the logo, cropped into the corner. */
.blog-prose .blk-cta::after {
  content: "";
  position: absolute;
  bottom: -120px;
  inset-inline-end: -70px;
  width: 240px;
  height: 240px;
  border: 26px solid rgba(254, 224, 2, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.blog-prose .blk-cta > * {
  position: relative;
  z-index: 1;
}

.blog-prose .blk-cta__title {
  margin: 0 0 0.35em;
  color: var(--bp-white);
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1.35;
}

.blog-prose .blk-cta__text {
  max-width: 32em;
  margin: 0 0 1.2em;
}

.blog-prose .blk-cta__action {
  margin: 0;
}

.blog-prose a.blk-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--bp-yellow);
  color: var(--bp-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.blog-prose a.blk-cta__button:hover {
  background: #fff04d;
  color: var(--bp-ink);
}

.blog-prose a.blk-cta__button:focus-visible {
  outline: 2px solid var(--bp-white);
  outline-offset: 3px;
}

@container (max-width: 559px) {
  .blog-prose .blk-cta {
    padding: 26px 22px;
  }

  .blog-prose .blk-cta::after {
    content: none;
  }

  .blog-prose a.blk-cta__button {
    width: 100%;
  }
}

/* B9 FAQ: cards like the FAQ on the service pages -------------------------
   blog-blocks.js turns each question into a button that opens and closes
   its answer; without the script every answer simply stays open. */

.blog-prose .blk-faq {
  display: grid;
  gap: 10px;
  margin: var(--bp-gap) 0;
}

.blog-prose .blk-faq__item {
  border-radius: 12px;
  background: var(--bp-raised);
}

.blog-prose .blk-faq__heading {
  margin: 0;
  padding: 18px 20px 8px;
  font-size: 1.04em;
  font-weight: 600;
  line-height: 1.5;
}

.blog-prose .blk-faq.is-enhanced .blk-faq__heading {
  padding: 0;
}

.blog-prose .blk-faq__answer {
  padding: 0 20px 20px;
  color: var(--bp-muted);
}

.blog-prose .blk-faq.is-enhanced .blk-faq__answer {
  padding-inline-start: 64px;
}

.blog-prose .blk-faq__answer > p {
  margin: 0;
}

.blk-faq__question {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: none;
  color: var(--bp-white);
  font: inherit;
  line-height: inherit;
  text-align: start;
  cursor: pointer;
}

.blk-faq__question::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-mask: var(--blk-icon-dropdown) center / contain no-repeat;
  mask: var(--blk-icon-dropdown) center / contain no-repeat;
  transition: transform 0.2s ease;
}

.blk-faq__question[aria-expanded="true"]::before {
  transform: rotate(180deg);
}

.blk-faq__question:focus-visible {
  outline: 2px solid var(--bp-yellow);
  outline-offset: -2px;
  border-radius: 12px;
}

@container (max-width: 559px) {
  .blk-faq__question {
    gap: 12px;
    padding: 16px;
  }

  .blog-prose .blk-faq__answer {
    padding: 0 16px 18px;
  }

  .blog-prose .blk-faq.is-enhanced .blk-faq__answer {
    padding-inline-start: 56px;
  }
}

/* ==========================================================================
   C: around the article. Added by the page template, nothing to author.
   ========================================================================== */

/* C1 Reading time in the meta line -------------------------------------- */

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.5;
}

.blog-meta > * + * {
  margin-inline-start: 14px;
  padding-inline-start: 14px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.22);
}

.blog-meta__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-meta__read::before {
  content: "";
  width: 15px;
  height: 15px;
  background: #fee002;
  -webkit-mask: var(--blk-icon-clock) center / contain no-repeat;
  mask: var(--blk-icon-clock) center / contain no-repeat;
}

/* C2 Contents list ------------------------------------------------------ */

.blog-toc {
  font-size: 15px;
  line-height: 1.45;
}

.blog-toc__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.blog-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-inline-start: 2px solid rgba(255, 255, 255, 0.12);
}

.blog-toc a {
  display: block;
  margin-inline-start: -2px;
  padding: 7px 0;
  padding-inline-start: 16px;
  border-inline-start: 2px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.blog-toc a:hover {
  color: #fff;
}

.blog-toc a[aria-current="true"] {
  border-color: #fee002;
  color: #fff;
  font-weight: 600;
}

.blog-toc a:focus-visible {
  outline: 2px solid #fee002;
  outline-offset: 2px;
}

/* Folded version for narrow screens. */
details.blog-toc {
  padding: 0 18px;
  border-radius: 12px;
  background: #292929;
}

details.blog-toc > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  color: #fff;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

details.blog-toc > summary::-webkit-details-marker {
  display: none;
}

details.blog-toc > summary span {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

details.blog-toc > summary::after {
  content: "";
  width: 20px;
  height: 20px;
  margin-inline-start: auto;
  background: #fee002;
  -webkit-mask: var(--blk-icon-chevron) center / contain no-repeat;
  mask: var(--blk-icon-chevron) center / contain no-repeat;
  transition: transform 0.2s ease;
}

details.blog-toc[open] > summary::after {
  transform: rotate(180deg);
}

details.blog-toc > summary:focus-visible {
  outline: 2px solid #fee002;
  outline-offset: 2px;
  border-radius: 4px;
}

details.blog-toc ol {
  margin-bottom: 16px;
}

/* Phones get the folded list above the article text; wider screens get the
   full list in the sidebar, where it stays in view while reading. */
.blog-toc--folded {
  margin: 0 0 28px;
}

.blog-detail-sidebar .blog-toc {
  position: sticky;
  top: 24px;
}

.blog-detail-sidebar > * + .blog-toc {
  margin-top: 36px;
}

@media screen and (min-width: 768px) {
  .blog-toc--folded {
    display: none;
  }

  .blog-detail-sidebar {
    align-self: stretch;
  }
}

/* C4 Author box --------------------------------------------------------- */

.blog-author {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.blog-author__avatar {
  width: 64px;
  height: 64px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: #000;
  object-fit: contain;
}

.blog-author__label {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.blog-author__name {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.blog-author__bio {
  margin: 6px 0 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.6;
}

.blog-author__link {
  color: #fee002;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.blog-author__link:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* C5 Closing call to action -------------------------------------------- */

.blog-end-cta {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  overflow: hidden;
  margin-top: 56px;
  border-radius: 20px;
  background: #000;
}

.blog-end-cta__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.blog-end-cta__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 40px;
}

.blog-end-cta__title {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.blog-end-cta__title:lang(ar) {
  line-height: 1.5;
}

.blog-end-cta__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.7;
}

.blog-end-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.blog-end-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 1px solid #fee002;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.blog-end-cta__button--primary {
  background: #fee002;
  color: #121212;
}

.blog-end-cta__button--primary:hover {
  background: #fff04d;
}

.blog-end-cta__button--secondary {
  background: transparent;
  color: #fff;
}

.blog-end-cta__button--secondary:hover {
  background: rgba(254, 224, 2, 0.12);
}

.blog-end-cta__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@container (max-width: 559px) {
  .blog-end-cta {
    grid-template-columns: 1fr;
  }

  .blog-end-cta__media img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .blog-end-cta__body {
    padding: 24px 22px 26px;
  }

  .blog-end-cta__title {
    font-size: 23px;
  }

  .blog-end-cta__button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-prose *,
  .blog-prose *::before,
  .blog-prose *::after,
  .blog-toc *,
  .blog-toc *::after,
  .blk-faq__question::before,
  .blog-end-cta * {
    transition: none !important;
  }
}
