/* =========================================================
   Witsee Blog — "What's new?" list, article, Similar articles
   Figma: Resources/Blog, Blogpost, Blog-Mobile, Blogpost-Mobile
   ========================================================= */

.wb-page,
.wb-similar {
  --wb-gutter: 48px;
  --wb-max: 1800px;
  --wb-black: #000;
  --wb-navy: #0a121b;
  --wb-navy-2: #101926;
  --wb-blue-dark: #163358;
  --wb-blue-mid: #284e7e;
  --wb-blue: #a3cafd;
  --wb-blue-hover: #92c0fc;
  --wb-ice: #d3e9ff;
  --wb-text-dim: rgba(255, 255, 255, .6);
  position: relative;
  width: 100%;
  margin: 0;
  color: #fff;
  font-family: "FH Dfaalt", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  box-sizing: border-box;
}

.wb-page *,
.wb-page *::before,
.wb-page *::after,
.wb-similar *,
.wb-similar *::before,
.wb-similar *::after {
  box-sizing: border-box;
}

.brxe-shortcode:has(> .wb-page),
.brxe-shortcode:has(> .wb-similar) {
  width: 100%;
  max-width: none;
}

.wb-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wb-max);
  margin: 0 auto;
  padding: 0 var(--wb-gutter);
}

.wb-page :is(h1, h2, h3, h4, p) {
  font-family: "FH Dfaalt", sans-serif !important;
  letter-spacing: 0;
}

/* ---------- Shared bits ---------- */

.wb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.wb-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px !important;
  line-height: 19.5px !important;
  white-space: nowrap;
  text-decoration: none !important;
}

.wb-chip--dark {
  background: var(--wb-navy-2);
  color: var(--wb-ice) !important;
}

.wb-chip--cat {
  background: var(--wb-blue);
  color: var(--wb-navy) !important;
}

a.wb-chip {
  transition: background-color .18s ease;
}

a.wb-chip--dark:hover { background: var(--wb-blue-dark); }
a.wb-chip--cat:hover { background: var(--wb-ice); }

.wb-date {
  color: #fff;
  opacity: .6;
  font-size: 13px;
  line-height: 19.5px;
  white-space: nowrap;
}

.wb-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 16px;
  border: 2px solid var(--wb-blue);
  border-radius: 999px;
  background: transparent;
  color: var(--wb-ice) !important;
  font: 400 14px/21px "FH Dfaalt", sans-serif;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, translate .18s ease;
}

.wb-btn-outline:hover {
  background: var(--wb-blue);
  color: var(--wb-navy) !important;
  translate: 0 -2px;
}

.wb-btn-outline[hidden] { display: none; }

.wb-page :is(a, button):focus-visible,
.wb-similar :is(a, button):focus-visible {
  outline: 2px solid var(--wb-blue);
  outline-offset: 4px;
}

/* ---------- Card ---------- */

.wb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--wb-navy);
  transition: translate .18s ease;
}

.wb-card:hover { translate: 0 -4px; }

.wb-card__media {
  position: relative;
  height: 238px;
  overflow: hidden;
  background: var(--wb-navy-2);
}

.wb-card__img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  transition: scale .18s ease;
}

.wb-card:hover .wb-card__img { scale: 1.025; }

.wb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wb-placeholder img {
  width: 96px !important;
  height: auto !important;
  opacity: .35;
}

.wb-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
}

.wb-card__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.wb-card .wb-card__title {
  margin: 0 !important;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 36px !important;
}

.wb-card__link {
  color: inherit !important;
  text-decoration: none !important;
}

/* Whole card is the link */
.wb-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.wb-card .wb-card__excerpt {
  margin: 0 !important;
  color: var(--wb-text-dim) !important;
  font-size: 18px !important;
  line-height: 27px !important;
}

.wb-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: auto;
  border-radius: 999px;
  color: var(--wb-ice);
  transition: background-color .18s ease;
}

.wb-card:hover .wb-card__arrow { background: var(--wb-blue-dark); }

/* =========================================================
   List page (/blog/)
   ========================================================= */

.wb-list {
  padding: 184px 0 120px;
  background: var(--wb-black);
  overflow: hidden;
}

.wb-list::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 846px;
  background: linear-gradient(to bottom, transparent 65%, #000 100%), url("/wp-content/uploads/2026/11/page-bg-sky-opt.webp") top right / cover no-repeat;
  opacity: .8;
  pointer-events: none;
}

.wb-list__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.wb-list .wb-list__title {
  margin: 0 !important;
  color: #fff !important;
  font-size: 96px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: -.0005em !important;
}

.wb-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.wb-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--wb-blue-dark);
  color: var(--wb-ice) !important;
  font-size: 14px;
  line-height: 21px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}

.wb-filter:hover { background: var(--wb-blue-mid); }

.wb-filter.is-active {
  background: var(--wb-blue);
  color: var(--wb-navy) !important;
}

/* 2 cards, 8 of 12 columns, centred (888px at 1440) */
.wb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: calc((100% + 24px) * 8 / 12 - 24px);
  margin: 120px auto 0;
  transition: opacity .2s ease;
}

.wb-grid.is-loading { opacity: .45; }

.wb-empty {
  margin: 48px 0 0 !important;
  color: var(--wb-text-dim) !important;
  font-size: 18px !important;
  line-height: 27px !important;
  text-align: center;
}

.wb-empty[hidden] { display: none; }

.wb-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.wb-more:not(:has(> :not([hidden]))) { display: none; }

/* =========================================================
   Article
   ========================================================= */

.wb-article {
  background: var(--wb-black);
  overflow: clip;
}

.wb-article::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 846px;
  background: linear-gradient(to bottom, transparent 65%, #000 100%), url("/wp-content/uploads/2026/11/page-bg-sky-opt.webp") top right / cover no-repeat;
  opacity: .8;
  pointer-events: none;
}

/* Hero: text on 5 columns, picture on the right half */
.wb-hero { padding: 128px 0 48px; }

.wb-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}

.wb-hero__text {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  min-width: 0;
}

.wb-article--no-image .wb-hero__text { grid-column: 1 / span 8; }

.wb-hero__media {
  grid-column: 7 / -1;
  margin-top: -24px; /* picture starts right under the header, text 24px lower */
  overflow: hidden;
  border-radius: 32px;
  background: var(--wb-navy);
  aspect-ratio: 672 / 552;
}

.wb-hero__img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}

.wb-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--wb-ice) !important;
  font-size: 13px;
  line-height: 19.5px;
  text-decoration: none !important;
  transition: background-color .18s ease;
}

.wb-back:hover { background: var(--wb-navy-2); }

.wb-article .wb-hero__title {
  margin: 0 !important;
  color: #fff !important;
  font-size: 48px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: -.0005em !important;
  overflow-wrap: break-word;
}

.wb-article .wb-hero__intro {
  margin: 0 !important;
  color: var(--wb-text-dim) !important;
  font-size: 18px !important;
  line-height: 27px !important;
}

/* Body: navy panel, "On this page" on 3 columns, text on 6 */
.wb-body {
  position: relative;
  z-index: 1;
  padding: 80px 0 120px;
  background: var(--wb-navy);
}

.wb-body__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}

/* "overflow-x: hidden" on html/body stops position: sticky; clip hides sideways overflow the same way */
html:has(.wb-toc),
html:has(.wb-toc) body {
  overflow-x: clip !important;
}

.wb-toc {
  grid-column: 1 / span 3;
  position: sticky;
  top: 128px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
  border-radius: 32px;
  background: var(--wb-navy-2);
}

.wb-article .wb-toc__title {
  margin: 0 !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 21px !important;
}

.wb-toc__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wb-toc__list li { margin: 0; padding: 0; }

.wb-toc__list a {
  position: relative;
  display: block;
  color: #fff !important;
  opacity: .4;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none !important;
  transition: opacity .18s ease, padding-left .18s ease;
}

.wb-toc__list a:hover { opacity: .8; }

.wb-toc__list a.is-active {
  padding-left: 12px;
  opacity: 1;
}

.wb-toc__list a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: var(--wb-blue);
  translate: 0 -50%;
}

.wb-main {
  grid-column: 5 / span 6;
  min-width: 0;
}

.wb-body__grid--no-toc .wb-main { grid-column: 4 / span 6; }

/* ---------- Article text (block editor content) ---------- */

.wb-content { color: var(--wb-text-dim); }

.wb-content > :first-child { margin-top: 0 !important; }
.wb-content > :last-child { margin-bottom: 0 !important; }

.wb-content :is(h2, h3, h4, h5) {
  color: #fff !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  scroll-margin-top: 128px;
}

.wb-content h2 { margin: 80px 0 48px !important; font-size: 30px !important; }
.wb-content h3 { margin: 48px 0 48px !important; font-size: 24px !important; }
.wb-content :is(h4, h5) { margin: 48px 0 48px !important; font-size: 20px !important; }

.wb-content :is(p, li) {
  color: var(--wb-text-dim) !important;
  font-size: 18px !important;
  line-height: 27px !important;
}

.wb-content p { margin: 0 0 16px !important; }

.wb-content :is(ul, ol) {
  margin: 0 0 16px !important;
  padding-left: 24px !important;
}

.wb-content li { margin: 0 0 8px !important; }
.wb-content li::marker { color: var(--wb-blue); }

.wb-content strong { color: #fff; font-weight: 500; }

.wb-content a:not(.wp-block-button__link) {
  color: var(--wb-blue) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wb-content a:not(.wp-block-button__link):hover { color: var(--wb-ice) !important; }

/* Pictures: 32px corners, caption under it on the right */
.wb-content :is(figure.wp-block-image, .wp-block-image, figure.wp-block-video, figure.wp-block-embed) {
  margin: 80px 0 !important;
}

.wb-content :is(.wp-block-image, .wp-block-video) :is(img, video) {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  border-radius: 32px;
}

.wb-content figcaption,
.wb-content .wp-element-caption {
  margin: 4px 0 0 !important;
  color: var(--wb-text-dim) !important;
  font-size: 14px !important;
  line-height: 21px !important;
  text-align: right !important;
}

.wb-content .wp-block-embed iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border-radius: 32px;
}

/* Buttons block: blue pill like the rest of the site */
.wb-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 48px 0 !important;
}

.wb-content .wp-block-button { margin: 0 !important; }

.wb-content .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 56px;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--wb-blue) !important;
  color: var(--wb-navy) !important;
  font: 400 14px/21px "FH Dfaalt", sans-serif !important;
  text-decoration: none !important;
  transition: background-color .18s ease, translate .18s ease;
}

.wb-content .wp-block-button__link:hover {
  background: var(--wb-blue-hover) !important;
  translate: 0 -2px;
}

.wb-content .is-style-outline .wp-block-button__link {
  border: 2px solid var(--wb-blue) !important;
  background: transparent !important;
  color: var(--wb-ice) !important;
}

.wb-content blockquote,
.wb-content .wp-block-quote {
  margin: 48px 0 !important;
  padding: 0 0 0 24px !important;
  border-left: 4px solid var(--wb-blue) !important;
}

.wb-content blockquote p {
  color: #fff !important;
  font-size: 24px !important;
  line-height: 36px !important;
}

.wb-content blockquote cite {
  color: var(--wb-text-dim);
  font-size: 14px;
  font-style: normal;
}

.wb-content hr {
  margin: 80px 0 !important;
  border: 0;
  border-top: 1px solid var(--wb-blue-dark);
}

/* Tables: same look as the Quick Start Guide status table */
.wb-content .wp-block-table {
  margin: 32px 0 !important;
  overflow-x: auto;
}

.wb-content table {
  width: 100%;
  border: 0 !important;
  border-collapse: collapse;
  font-size: 18px;
  line-height: 27px;
}

.wb-content table :is(thead, tbody, tfoot, tr) {
  border: 0 !important;
}

.wb-content table :is(th, td) {
  padding: 24px 24px 24px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #163358 !important;
  background: none !important;
  text-align: left;
  vertical-align: top;
}

.wb-content table :is(th, td):last-child {
  padding-right: 0 !important;
}

.wb-content table th,
.wb-content table thead td {
  padding-top: 0 !important;
  color: #a3cafd !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}

.wb-content table tbody td {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.wb-content table tbody td:first-child {
  color: #fff;
  font-weight: 500;
}

.wb-content table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.wb-content .wp-block-table figcaption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

@media (max-width: 767px) {
  .wb-content table {
    font-size: 16px;
    line-height: 24px;
  }

  .wb-content table :is(th, td) {
    padding: 16px 16px 16px 0 !important;
  }
}

/* ---------- Share ---------- */

.wb-share { margin-top: 80px; }

.wb-article .wb-share__title {
  margin: 0 0 48px !important;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
}

/* Icons look 20px with 24px between them (Figma); each one is a 44px tap area */
.wb-share__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: -12px 0 -12px -12px;
}

.wb-share__links :is(a, button) {
  display: inline-flex;
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 12px;
  border: 0;
  background: none;
  color: #fff !important;
  cursor: pointer;
  transition: color .18s ease, translate .18s ease;
}

.wb-share__links :is(a, button):hover {
  color: var(--wb-blue) !important;
  translate: 0 -2px;
}

.wb-share__note {
  color: var(--wb-blue);
  font-size: 13px;
  line-height: 19.5px;
}

/* =========================================================
   Similar articles
   ========================================================= */

.wb-similar {
  padding: 120px 0;
  background: var(--wb-black);
}

.wb-similar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wb-similar .wb-similar__title {
  margin: 0 !important;
  color: #fff !important;
  font-family: "FH Dfaalt", sans-serif !important;
  font-size: 48px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: -.0005em !important;
}

.wb-similar__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 80px;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1100px) {
  .wb-page,
  .wb-similar { --wb-gutter: 32px; }

  .wb-list { padding-top: 160px; }
  .wb-list .wb-list__title { font-size: 72px !important; }
  .wb-grid { width: 100%; }

  .wb-hero__text { grid-column: 1 / span 6; }
  .wb-hero__media { grid-column: 7 / -1; margin-top: 0; }

  .wb-toc { display: none; }
  .wb-main,
  .wb-body__grid--no-toc .wb-main { grid-column: 2 / span 10; }

  .wb-similar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-similar__grid > :nth-child(3) { display: none; }
}

/* =========================================================
   Phone (Figma: 402 wide)
   ========================================================= */

@media (max-width: 767px) {
  .wb-page,
  .wb-similar { --wb-gutter: 24px; }

  /* List */
  .wb-list { padding: 136px 0 80px; }

  .wb-list::before,
  .wb-article::before {
    height: 580px;
    background-position: 72% top;
    background-size: auto 580px;
    opacity: .85;
  }

  .wb-list__header {
    align-items: flex-start;
    text-align: left;
  }

  .wb-list .wb-list__title { font-size: 48px !important; }
  .wb-filters { justify-content: flex-start; }

  .wb-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 80px;
  }

  .wb-card__media { height: 190px; }

  .wb-card .wb-card__title {
    font-size: 20px !important;
    line-height: 30px !important;
  }

  .wb-card .wb-card__excerpt {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  /* Article hero: text, then the picture full width */
  .wb-hero { padding: 136px 0 0; }

  .wb-hero__grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0;
  }

  .wb-hero__text {
    width: 100%;
    padding: 0 var(--wb-gutter);
  }

  .wb-hero__media {
    width: 100%;
    margin: 0;
    border-radius: 0;
    aspect-ratio: 402 / 376;
  }

  .wb-article--no-image .wb-hero { padding-bottom: 40px; }

  .wb-article .wb-hero__intro {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  .wb-body { padding: 96px 0 120px; }

  .wb-body__grid { display: block; }

  .wb-content h2 { margin: 80px 0 48px !important; font-size: 24px !important; }
  .wb-content h3 { font-size: 20px !important; }
  .wb-content :is(h4, h5) { font-size: 16px !important; }

  .wb-content :is(p, li) {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  .wb-content p { margin-bottom: 12px !important; }

  .wb-content :is(.wp-block-image, .wp-block-video) :is(img, video) { border-radius: 24px; }
  .wb-content figcaption,
  .wb-content .wp-element-caption { text-align: left !important; }

  .wb-content blockquote p {
    font-size: 20px !important;
    line-height: 30px !important;
  }

  .wb-article .wb-share__title { font-size: 20px !important; }

  /* Similar: cards slide sideways, button under them */
  .wb-similar__head { display: block; }
  .wb-similar .wb-similar__title { font-size: 36px !important; }
  .wb-similar__head .wb-btn-outline { display: none; }

  .wb-similar__grid {
    display: flex;
    gap: 8px;
    margin: 80px calc(-1 * var(--wb-gutter)) 0;
    padding: 0 var(--wb-gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--wb-gutter);
    scrollbar-width: none;
  }

  .wb-similar__grid::-webkit-scrollbar { display: none; }

  .wb-similar__grid > .wb-card {
    display: flex !important;
    flex: 0 0 306px;
    scroll-snap-align: start;
  }

  .wb-similar__grid > .wb-card:hover { translate: none; }

  .wb-similar .wb-similar__more { display: inline-flex; margin-top: 40px; }
}

.wb-similar .wb-similar__more { display: none; }

@media (max-width: 767px) {
  .wb-similar .wb-similar__more { display: inline-flex; }
}

/* Phone landscape */
@media (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
  .wb-list { padding-top: 112px; }
  .wb-list .wb-list__title { font-size: 54px !important; }
  .wb-hero { padding-top: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-card,
  .wb-card__img,
  .wb-btn-outline,
  .wb-share__links :is(a, button),
  .wb-grid { transition: none; }
  .wb-card:hover,
  .wb-btn-outline:hover { translate: none; }
  .wb-card:hover .wb-card__img { scale: none; }
}
