/* GreyBath dynamic blog surfaces */
.gb-blog-hero {
  padding: clamp(12rem, 16vw, 20rem) 0 clamp(6rem, 8vw, 10rem);
}

.gb-blog-hero__eyebrow,
.gb-blog-meta,
.gb-blog-results,
.gb-blog-card__meta {
  color: rgba(255, 255, 255, .62);
  font-size: 1.4rem;
  letter-spacing: .02em;
}

.gb-blog-hero h1 {
  max-width: 1100px;
  margin: 1.6rem 0 2.4rem;
  font-size: clamp(5rem, 9vw, 11rem);
  line-height: .92;
  letter-spacing: -.055em;
}

.gb-blog-hero__intro {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.8rem, 2.3vw, 2.6rem);
  line-height: 1.45;
}

.gb-blog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.6rem;
  align-items: center;
  margin-top: 4rem;
}

.gb-blog-search {
  display: flex;
  min-width: 0;
  max-width: 720px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}

.gb-blog-search input {
  width: 100%;
  min-width: 0;
  padding: 1.5rem 2rem;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 1.6rem;
}

.gb-blog-search input::placeholder { color: rgba(255, 255, 255, .45); }
.gb-blog-search button {
  flex: 0 0 auto;
  padding: 1.2rem 2rem;
  border: 0;
  color: #161616;
  background: #fff;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 650;
  cursor: pointer;
}

.gb-blog-clear {
  color: rgba(255, 255, 255, .72);
  font-size: 1.5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gb-blog-categories {
  display: flex;
  gap: .8rem;
  margin: 3rem 0 0;
  padding: 0 0 .6rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gb-blog-chip {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 4rem;
  padding: .8rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  font-size: 1.4rem;
  line-height: 1;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.gb-blog-chip:hover,
.gb-blog-chip.is-active {
  border-color: #fff;
  color: #161616;
  background: #fff;
}

.gb-blog-chip small { opacity: .65; font-size: 1.2rem; }

.gb-blog-section { padding: 0 0 clamp(8rem, 12vw, 16rem); }
.gb-blog-results { margin: 0 0 2rem; }

.gb-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.gb-blog-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, .028);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}

.gb-blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .045);
}

.gb-blog-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  background: #242424;
  overflow: hidden;
}

.gb-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.gb-blog-card:hover .gb-blog-card__image img { transform: scale(1.035); }

.gb-blog-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 2.2rem;
}

.gb-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.2rem;
  margin-bottom: 1.4rem;
}

.gb-blog-card__category { color: #fff; }
.gb-blog-card h2,
.gb-blog-card h3 {
  margin: 0 0 1.4rem;
  color: #fff;
  font-size: clamp(2.3rem, 2.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.gb-blog-card__excerpt {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, .68);
  font-size: 1.6rem;
  line-height: 1.55;
}

.gb-blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: auto;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.gb-blog-empty {
  padding: clamp(4rem, 7vw, 8rem);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.2rem;
  text-align: center;
  background: rgba(255, 255, 255, .025);
}

.gb-blog-empty h2 { margin-bottom: 1rem; font-size: clamp(3rem, 5vw, 5rem); }
.gb-blog-empty p { margin: 0 auto 2rem; max-width: 620px; color: rgba(255, 255, 255, .65); font-size: 1.7rem; }

.gb-blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 4rem;
}

.gb-blog-pagination a,
.gb-blog-pagination span {
  display: inline-flex;
  min-width: 4.4rem;
  min-height: 4.4rem;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  font-size: 1.4rem;
}

.gb-blog-pagination span.is-current {
  border-color: #fff;
  color: #161616;
  background: #fff;
}

.gb-blog-pagination span.is-disabled { opacity: .35; }

/* Article */
.gb-article-hero { padding-bottom: clamp(4rem, 7vw, 8rem); }
.gb-article-hero h1 {
  max-width: 1100px;
  font-size: clamp(3.8rem, 5.6vw, 7.4rem);
  line-height: .98;
}
.gb-article-hero__summary { max-width: 880px; }
.gb-blog-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; }
.gb-blog-meta a { color: #fff; }

.gb-article-layout {
  padding-bottom: clamp(8rem, 12vw, 16rem);
}

.gb-article-cover {
  width: 90%;
  margin: 0 auto clamp(3rem, 6vw, 7rem);
  border-radius: 1.4rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #242424;
}

.gb-article-cover img { width: 100%; height: 100%; object-fit: cover; }

.gb-article-content {
  min-width: 0;
  max-width: 1200px;
  margin-inline: auto;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.75rem, 1.7vw, 2rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.gb-article-content > *:first-child { margin-top: 0; }
.gb-article-content p,
.gb-article-content ul,
.gb-article-content ol,
.gb-article-content blockquote,
.gb-article-content table,
.gb-article-content figure,
.gb-article-content pre { margin: 0 0 2.2rem; }
.gb-article-content h2,
.gb-article-content h3,
.gb-article-content h4,
.gb-article-content h5,
.gb-article-content h6 {
  margin: clamp(3.5rem, 6vw, 6rem) 0 1.7rem;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.gb-article-content h2 { font-size: clamp(3.2rem, 5vw, 5.6rem); }
.gb-article-content h3 { font-size: clamp(2.7rem, 4vw, 4.2rem); }
.gb-article-content h4 { font-size: clamp(2.2rem, 3vw, 3.2rem); }
.gb-article-content ul,
.gb-article-content ol { padding-left: 2.5rem; }
.gb-article-content ul {
  list-style: none;
  padding-left: 2.8rem;
}
.gb-article-content ol { list-style: decimal outside; }
.gb-article-content li {
  margin: 0 0 .45rem;
  padding-left: .3rem;
  line-height: 1.48;
}
.gb-article-content li:last-child { margin-bottom: 0; }
.gb-article-content li > p { margin: 0; }
.gb-article-content ul > li { position: relative; }
.gb-article-content ul > li::before {
  content: "";
  position: absolute;
  top: .68em;
  left: -1.9rem;
  width: .72rem;
  height: .72rem;
  border-radius: .15rem;
  background: linear-gradient(135deg, #38d9f2, #956bff);
  box-shadow: 0 0 1rem rgba(72, 207, 240, .42);
  transform: translateY(-50%) rotate(45deg);
}
.gb-article-content a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.gb-article-content img { display: block; max-width: 100%; height: auto; margin: 2.8rem auto; border-radius: 1rem; }
.gb-article-content blockquote { padding: 2rem 0 2rem 2.4rem; border-left: 3px solid #fff; color: #fff; font-size: 1.15em; }
.gb-article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.gb-article-content th,
.gb-article-content td { padding: 1.2rem; border: 1px solid rgba(255, 255, 255, .15); }
.gb-article-content pre { max-width: 100%; padding: 1.8rem; border-radius: .8rem; overflow-x: auto; background: #0f0f0f; }

.gb-article-content section { scroll-margin-top: 3rem; }
.gb-article-content .toc,
.gb-article-content .key-box,
.gb-article-content .cta,
.gb-article-content .faq-item {
  margin: 2.8rem 0;
  padding: clamp(2rem, 4vw, 3.4rem);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, .035);
}
.gb-article-content .toc h2,
.gb-article-content .key-box h2,
.gb-article-content .cta h2,
.gb-article-content .faq-item h3 { margin-top: 0; }
.gb-article-content .toc ol { columns: 2; column-gap: 4rem; }
.gb-article-content .toc li { break-inside: avoid; }
.gb-article-content .article-visual {
  width: 88%;
  margin: clamp(3.2rem, 6vw, 6rem) auto;
  padding: clamp(1rem, 2vw, 1.6rem);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.4rem;
  background: #07101d;
}
.gb-article-content .article-visual img { width: 100%; margin: 0; border-radius: .8rem; }
.gb-article-content .article-visual figcaption {
  margin: 1.4rem .6rem .2rem;
  color: rgba(255, 255, 255, .7);
  font-size: 1.5rem;
  line-height: 1.55;
}
.gb-article-content .article-source {
  margin: .7rem .6rem .2rem;
  color: rgba(255, 255, 255, .5);
  font-size: 1.3rem;
}
.gb-article-content .article-source a { color: rgba(255, 255, 255, .72); }
.gb-article-content .citation { white-space: nowrap; }
.gb-article-content .table-wrap {
  width: 88%;
  max-width: 100%;
  margin: 0 auto 2.6rem;
  overflow-x: auto;
}
.gb-article-content .table-wrap table { display: table; width: 100%; min-width: 640px; margin: 0; }
.gb-article-content .article-kicker {
  display: inline-flex;
  margin: 3rem 0 .8rem;
  color: rgba(255, 255, 255, .58);
  font-size: 1.35rem;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
.gb-article-content .two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 6rem);
  margin: 0 0 2.8rem;
}
.gb-article-content .two-column h3 { margin-top: 0; }
.gb-article-content .two-column ul { margin-bottom: 0; }
.gb-article-content .key-box > ol:has(> li:nth-child(7)) {
  columns: 2;
  column-gap: clamp(3rem, 6vw, 7rem);
}
.gb-article-content .key-box > ol:has(> li:nth-child(7)) > li {
  break-inside: avoid;
  margin-bottom: .9rem;
}
.gb-article-content .cta { border-color: rgba(133, 93, 255, .45); background: linear-gradient(135deg, rgba(42, 205, 235, .09), rgba(133, 93, 255, .13)); }
.gb-article-content .cta a { display: inline-flex; margin-top: .6rem; padding: 1.1rem 1.7rem; border-radius: 999px; color: #101010; text-decoration: none; font-weight: 700; background: #fff; }

.gb-article-aside {
  min-width: 0;
  max-width: 1200px;
  margin: 0 auto clamp(3rem, 5vw, 5rem);
  padding: 1.6rem 2rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .025);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem 2.4rem;
  align-items: center;
}

.gb-article-aside h2 { margin: 0; font-size: 1.7rem; white-space: nowrap; }
.gb-share-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; list-style: none; margin: 0; padding: 0; }
.gb-share-list a {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: rgba(255, 255, 255, .76);
  font-size: 1.45rem;
}
.gb-article-aside > .gb-blog-clear { justify-self: end; white-space: nowrap; }

.gb-blog-home { padding: clamp(7rem, 10vw, 13rem) 0; }
.gb-blog-home__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}
.gb-blog-home__head h2 { margin: 0; font-size: clamp(4.5rem, 7vw, 8rem); line-height: .95; }
.gb-blog-home__head p { margin: 0; color: rgba(255, 255, 255, .66); font-size: 1.7rem; line-height: 1.5; }

@media (max-width: 1199px) {
  .gb-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gb-blog-home__head { grid-template-columns: 1fr auto; }
  .gb-blog-home__head p { grid-column: 1 / -1; grid-row: 2; max-width: 700px; }
  .gb-article-aside { grid-template-columns: 1fr auto; }
  .gb-article-aside .gb-share-list { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}

@media (min-width: 768px) {
  .gb-article-content section:not(.references) > ul:has(> li:nth-child(6)) {
    columns: 2;
    column-gap: clamp(3rem, 6vw, 7rem);
  }
  .gb-article-content section:not(.references) > ul:has(> li:nth-child(6)) > li {
    break-inside: avoid;
    margin-bottom: .7rem;
  }
}

@media (max-width: 767px) {
  .gb-blog-toolbar { grid-template-columns: 1fr; }
  .gb-blog-grid { grid-template-columns: 1fr; }
  .gb-blog-card__body { padding: 1.8rem; }
  .gb-article-aside { grid-template-columns: 1fr; padding: 1.8rem; }
  .gb-article-aside .gb-share-list { grid-column: auto; grid-row: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gb-share-list a { justify-content: space-between; }
  .gb-article-aside > .gb-blog-clear { justify-self: start; }
  .gb-blog-home__head { grid-template-columns: 1fr; align-items: start; }
  .gb-blog-home__head p { grid-column: auto; grid-row: auto; }
  .gb-blog-search button { padding-inline: 1.5rem; }
  .gb-article-content .toc ol { columns: 1; }
  .gb-article-content section > ul { columns: 1; }
  .gb-article-content .two-column { grid-template-columns: 1fr; gap: 0; }
  .gb-article-content .key-box > ol:has(> li:nth-child(7)) { columns: 1; }
  .gb-article-cover,
  .gb-article-content .article-visual,
  .gb-article-content .table-wrap { width: 100%; }
  .gb-article-content .article-visual { margin-inline: 0; }
}

@media (max-width: 479px) {
  .gb-article-aside .gb-share-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .gb-blog-card,
  .gb-blog-card__image img { transition: none; }
}
