/* Public guide library and CKEditor article renderer. */
.guides-page,
.guide-detail-page {
  --guide-ink: #111327;
  --guide-copy: #525b6f;
  --guide-line: #e7e9f2;
  --guide-soft: #f7f7fc;
  background: #fff;
  color: var(--guide-ink);
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 2rem;
  color: #7b8293;
  font-size: .82rem;
  font-weight: 600;
}

.guide-breadcrumb a {
  color: #5e6678;
  text-decoration: none;
  transition: color .2s ease;
}

.guide-breadcrumb a:hover { color: var(--brand); }
.guide-breadcrumb > i { font-size: .65rem; color: #b2b7c3; }

.guide-kicker,
.guide-section-label {
  color: var(--brand);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.25rem;
  padding: .58rem .85rem;
  border: 1px solid rgba(124, 58, 237, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 30px rgba(67, 31, 145, .06);
}

/* Guide index hero */
.guides-hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 0 6rem;
  background:
    linear-gradient(rgba(124, 58, 237, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, .035) 1px, transparent 1px),
    linear-gradient(145deg, #fbfaff 0%, #f5f7ff 54%, #f2fbfd 100%);
  background-size: 54px 54px, 54px 54px, auto;
}

.guides-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.guides-hero__glow--one {
  top: -180px;
  right: 5%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(124, 58, 237, .18), transparent 68%);
}

.guides-hero__glow--two {
  bottom: -240px;
  left: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(6, 182, 212, .13), transparent 68%);
}

.guides-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: 1.04;
}

.guides-hero .col-lg-7 > p {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: #687186;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.8;
}

.guides-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2rem;
}

.guides-hero__stats span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .8rem;
  border: 1px solid rgba(30, 41, 59, .08);
  border-radius: 11px;
  background: rgba(255, 255, 255, .78);
  color: #667085;
  font-size: .78rem;
  box-shadow: 0 8px 24px rgba(30, 41, 59, .04);
}

.guides-hero__stats strong,
.guides-hero__stats i { color: var(--brand); }

.guides-hero__visual {
  position: relative;
  width: min(100%, 390px);
  margin-left: auto;
  padding: 2.2rem;
  border: 1px solid rgba(124, 58, 237, .17);
  border-radius: 30px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 30px 80px rgba(68, 42, 130, .13);
  backdrop-filter: blur(18px);
  transform: rotate(2deg);
}

.guides-hero__visual::before {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px dashed rgba(124, 58, 237, .16);
  border-radius: 22px;
}

.guides-hero__visual-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 1.75rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), #5b21b6);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 14px 30px rgba(124, 58, 237, .3);
}

.guides-hero__visual-line {
  width: 72%;
  height: 11px;
  margin-top: .8rem;
  border-radius: 999px;
  background: #e8e7f2;
}

.guides-hero__visual-line--wide { width: 96%; background: #d8d5eb; }
.guides-hero__visual-line--short { width: 48%; }

.guides-hero__visual-tags {
  display: flex;
  gap: .5rem;
  margin-top: 1.8rem;
}

.guides-hero__visual-tags span {
  padding: .45rem .65rem;
  border-radius: 8px;
  background: #f0ebff;
  color: #7040ce;
  font-size: .68rem;
  font-weight: 800;
}

/* Guide index cards */
.guide-library { padding: 6rem 0 7rem; }

.guide-library__heading,
.guide-related__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.guide-library__heading h2,
.guide-related__heading h2 {
  margin: .45rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -.045em;
}

.guide-library__heading > p {
  max-width: 480px;
  margin: 0;
  color: #747c8d;
  line-height: 1.75;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.guide-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(26, 32, 56, .07);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.guide-card:hover {
  transform: translateY(-7px);
  border-color: rgba(124, 58, 237, .28);
  box-shadow: 0 24px 55px rgba(67, 42, 121, .14);
}

.guide-card__visual {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(140deg, #eee9ff, #f9f8ff);
}

.guide-card--tone-2 .guide-card__visual { background: linear-gradient(140deg, #e4f8fb, #f6fdff); }
.guide-card--tone-3 .guide-card__visual { background: linear-gradient(140deg, #fff1e7, #fffaf6); }

.guide-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.guide-card:hover .guide-card__visual img { transform: scale(1.04); }

.guide-card__pattern {
  position: absolute;
  inset: 0;
  opacity: .6;
  background-image: radial-gradient(rgba(124, 58, 237, .18) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(100deg, #000, transparent 84%);
}

.guide-card--tone-2 .guide-card__pattern { background-image: radial-gradient(rgba(8, 145, 178, .2) 1px, transparent 1px); }
.guide-card--tone-3 .guide-card__pattern { background-image: radial-gradient(rgba(234, 88, 12, .17) 1px, transparent 1px); }

.guide-card__number {
  position: absolute;
  top: 1.25rem;
  left: 1.35rem;
  color: rgba(55, 36, 107, .38);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.guide-card__icon {
  position: absolute;
  right: 1.5rem;
  bottom: 1.15rem;
  color: rgba(124, 58, 237, .72);
  font-size: 4.25rem;
  transform: rotate(-6deg);
}

.guide-card--tone-2 .guide-card__icon { color: rgba(8, 145, 178, .65); }
.guide-card--tone-3 .guide-card__icon { color: rgba(234, 88, 12, .6); }

.guide-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.guide-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: #8a91a0;
  font-size: .72rem;
  font-weight: 600;
}

.guide-category {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
  padding: .43rem .65rem;
  border: 1px solid rgba(124, 58, 237, .15);
  border-radius: 999px;
  background: #f5f1ff;
  color: #7541d4;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.guide-card h3 {
  margin: 1.15rem 0 .75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.38;
}

.guide-card h3 a { color: var(--guide-ink); text-decoration: none; }
.guide-card h3 a::after { content: ''; position: absolute; inset: 0; }
.guide-card { position: relative; }

.guide-card__body > p {
  display: -webkit-box;
  flex: 1;
  margin: 0 0 1.25rem;
  overflow: hidden;
  color: #71798a;
  font-size: .9rem;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.guide-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid #eff0f5;
  color: #9298a5;
  font-size: .72rem;
}

.guide-card__footer a {
  position: relative;
  z-index: 1;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.guide-empty-state {
  padding: 5rem 1.5rem;
  border: 1px dashed #d8dbe6;
  border-radius: 26px;
  background: var(--guide-soft);
  text-align: center;
}

.guide-empty-state i { color: var(--brand); font-size: 2.5rem; }
.guide-empty-state h3 { margin: 1rem 0 .4rem; font-weight: 800; }
.guide-empty-state p { margin: 0; color: #737b8e; }

/* Guide detail header */
.guide-detail-hero {
  position: relative;
  padding: 8.5rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(124, 58, 237, .08);
  background:
    radial-gradient(circle at 82% 12%, rgba(124, 58, 237, .12), transparent 26%),
    linear-gradient(145deg, #fbfaff, #f7f9ff 60%, #f4fcfd);
}

.guide-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image: radial-gradient(rgba(124, 58, 237, .14) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, #000 55%, transparent);
}

.guide-detail-hero .container { position: relative; }
.guide-detail-hero__content { max-width: 900px; margin-inline: auto; text-align: center; }
.guide-detail-hero__content > .guide-category { margin-inline: auto; }

.guide-detail-hero h1 {
  margin: 1.3rem 0 1.15rem;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: 1.06;
  text-wrap: balance;
}

.guide-detail-hero__summary {
  max-width: 760px;
  margin: 0 auto;
  color: #687186;
  font-size: clamp(1rem, 1.6vw, 1.17rem);
  line-height: 1.8;
}

.guide-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.guide-byline__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #5b21b6);
  color: #fff;
  font-size: .85rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(124, 58, 237, .24);
}

.guide-byline > span:not(.guide-byline__avatar):not(.guide-byline__divider) {
  display: grid;
  text-align: left;
}

.guide-byline strong { color: #33384a; font-size: .79rem; }
.guide-byline small { color: #949aa8; font-size: .67rem; }
.guide-byline__divider { width: 1px; height: 34px; background: #dfe1ea; }

.guide-featured-wrap { position: relative; z-index: 2; }
.guide-featured-image {
  max-width: 1060px;
  margin: -2.25rem auto 0;
  overflow: hidden;
  border: 7px solid #fff;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(27, 31, 52, .16);
}

.guide-featured-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 20px;
}

/* Article shell and table of contents */
.guide-article-section { padding: 5rem 0 7rem; background: #fff; }
.guide-article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  justify-content: center;
  align-items: start;
  gap: 2.5rem;
}

.guide-article-layout--centered { display: block; max-width: 820px; margin-inline: auto; }
.guide-toc__inner { position: sticky; top: 105px; }

.guide-toc__inner > span,
.guide-toc-mobile summary {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .9rem;
  color: #22273a;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.guide-toc nav,
.guide-toc-mobile nav {
  display: grid;
  gap: .12rem;
  padding-left: .8rem;
  border-left: 1px solid #e1e3ec;
}

.guide-toc a,
.guide-toc-mobile a {
  padding: .42rem .65rem;
  border-radius: 8px;
  color: #747b8c;
  font-size: .76rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.guide-toc a:hover,
.guide-toc-mobile a:hover { background: #f4f0ff; color: var(--brand); }
.guide-toc .toc-level-3,
.guide-toc-mobile .toc-level-3 { padding-left: 1.15rem; }
.guide-toc .toc-level-4,
.guide-toc-mobile .toc-level-4 { padding-left: 1.65rem; font-size: .72rem; }
.guide-toc-mobile { display: none; }

.guide-content-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9eaf0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 45px rgba(27, 32, 52, .06);
}

/* CKEditor & Markdown Output Styling */
.guide-content {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  color: #334155;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.98rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.guide-content > :first-child { margin-top: 0 !important; }
.guide-content > :last-child { margin-bottom: 0 !important; }

.guide-content h1,
.guide-content h2,
.guide-content h3,
.guide-content h4,
.guide-content h5,
.guide-content h6 {
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.3;
  scroll-margin-top: 110px;
}

.guide-content h1 { margin: 1.65rem 0 0.75rem; font-size: 1.95rem; }
.guide-content h2 { margin: 1.75rem 0 0.65rem; padding-bottom: 0.35rem; font-size: 1.48rem; border-bottom: 1px solid #f1f5f9; }
.guide-content h3 { margin: 1.35rem 0 0.55rem; font-size: 1.22rem; }
.guide-content h4 { margin: 1.1rem 0 0.45rem; font-size: 1.05rem; }
.guide-content h5,
.guide-content h6 { margin: 1rem 0 0.4rem; font-size: 0.95rem; }

.guide-content p { margin: 0 0 0.85rem; line-height: 1.68; }
.guide-content strong,
.guide-content b { color: #0f172a; font-weight: 700; }
.guide-content mark { padding: .12em .28em; border-radius: .3em; background: #fef3c7; color: inherit; }
.guide-content u { text-decoration-color: rgba(124, 58, 237, .55); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.guide-content s { color: #94a3b8; }
.guide-content sub,
.guide-content sup { font-size: .72em; }

.guide-content a {
  color: #6366f1;
  font-weight: 650;
  text-decoration-color: rgba(99, 102, 241, .3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.guide-content a:hover { color: #4338ca; text-decoration-color: currentColor; }

.guide-content ul,
.guide-content ol {
  margin: 0.65rem 0 1rem;
  padding-left: 1.4rem;
}

.guide-content li {
  margin: 0.25rem 0;
  padding-left: 0.15rem;
  line-height: 1.6;
}

.guide-content li > p {
  margin: 0;
  display: inline;
}

.guide-content li::marker { color: var(--brand); font-weight: 800; }
.guide-content li > ul,
.guide-content li > ol { margin: 0.35rem 0; }

.guide-content blockquote {
  position: relative;
  margin: 1.35rem 0;
  padding: 1.1rem 1.25rem 1.1rem 3.2rem;
  border: 1px solid #e0e7ff;
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.96rem;
}

.guide-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: .4rem;
  left: 1rem;
  color: rgba(99, 102, 241, .35);
  font-family: Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
}

.guide-content blockquote p:last-child { margin-bottom: 0; }

.guide-content hr {
  height: 1px;
  margin: 2rem 0;
  border: 0;
  background: #e2e8f0;
  opacity: 1;
}

.guide-content code:not(pre code) {
  padding: .15rem .38rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f1f5f9;
  color: #6366f1;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .86em;
  font-weight: 600;
}

.guide-content pre {
  max-width: 100%;
  margin: 0.9rem 0 1.15rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 1px solid #1e293b;
  border-radius: 10px;
  background: #0f172a;
  color: #f8fafc;
  line-height: 1.35;
  tab-size: 2;
  white-space: pre-wrap;
}

.guide-content pre code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .86rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.guide-content figure { max-width: 100%; }
.guide-content figure.image {
  margin: 2rem auto;
  text-align: center;
}

.guide-content figure.image img,
.guide-content > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(20, 24, 43, .11);
}

.guide-content figure.image-style-align-left,
.guide-content figure.image-style-block-align-left { margin-right: auto; margin-left: 0; }
.guide-content figure.image-style-align-right,
.guide-content figure.image-style-block-align-right { margin-right: 0; margin-left: auto; }
.guide-content figure.image-style-side { float: right; max-width: 50%; margin: .5rem 0 1.5rem 2rem; }

.guide-content figcaption {
  padding: .65rem 1rem 0;
  color: #7e8595;
  font-size: .78rem;
  line-height: 1.55;
  text-align: center;
}

.guide-content figure.table {
  width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  border: 1px solid #e2e4ec;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(30, 35, 55, .05);
}

.guide-content table {
  width: 100%;
  min-width: 520px;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
  font-size: .88rem;
  line-height: 1.6;
}

.guide-content th,
.guide-content td {
  padding: .85rem 1rem;
  border: 1px solid #e5e7ef;
  text-align: left;
  vertical-align: top;
}

.guide-content th { background: #f5f3fb; color: #292d41; font-weight: 800; }
.guide-content tbody tr:nth-child(even) { background: #fafafd; }

.guide-content figure.media,
.guide-content .media {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 16px;
  background: #0f1020;
  aspect-ratio: 16 / 9;
}

.guide-content iframe,
.guide-content figure.media iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.guide-content .todo-list { padding-left: 0; list-style: none; }
.guide-content .todo-list__label { display: flex; align-items: flex-start; gap: .7rem; }
.guide-content .todo-list input[type='checkbox'] { width: 1rem; height: 1rem; margin-top: .4rem; accent-color: var(--brand); }

.guide-content::after { content: ''; display: table; clear: both; }

.guide-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.3rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid #eaebf0;
  background: #fafafd;
}

.guide-article-footer > div { display: flex; align-items: center; gap: .7rem; color: #71798a; font-size: .76rem; }
.guide-article-footer > div i { color: #10b981; font-size: 1.1rem; }
.guide-article-footer > div strong { display: block; color: #303548; }
.guide-article-footer > a { flex-shrink: 0; color: var(--brand); font-size: .78rem; font-weight: 800; text-decoration: none; }

/* Related articles and help CTA */
.guide-related { max-width: 1080px; margin: 6rem auto 0; }
.guide-related__heading > a { color: var(--brand); font-size: .82rem; font-weight: 800; text-decoration: none; }
.guide-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.guide-related-card {
  display: flex;
  min-width: 0;
  min-height: 180px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem;
  border: 1px solid #e6e7ed;
  border-radius: 18px;
  background: #fff;
  color: var(--guide-ink);
  text-decoration: none;
  box-shadow: 0 9px 28px rgba(28, 33, 52, .05);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.guide-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, .28);
  color: var(--guide-ink);
  box-shadow: 0 16px 36px rgba(59, 39, 102, .1);
}

.guide-related-card strong { margin: 1rem 0; font-size: .96rem; line-height: 1.55; }
.guide-related-card small { margin-top: auto; color: #888f9e; font-size: .7rem; }
.guide-related-card small i { margin-left: .25rem; color: var(--brand); }

.guide-help-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  max-width: 1080px;
  margin: 5rem auto 0;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(6, 182, 212, .3), transparent 35%),
    linear-gradient(135deg, #17112e, #2c1761);
  color: #fff;
  box-shadow: 0 24px 55px rgba(42, 26, 77, .22);
}

.guide-help-cta__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  color: #c4b5fd;
  font-size: 1.45rem;
}

.guide-help-cta span { color: #bfb6d8; font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guide-help-cta h2 { margin: .35rem 0 .3rem; font-size: 1.35rem; font-weight: 850; letter-spacing: -.035em; }
.guide-help-cta p { margin: 0; color: rgba(255, 255, 255, .63); font-size: .82rem; }
.guide-help-cta .btn { white-space: nowrap; }

@media (max-width: 991.98px) {
  .guides-hero { padding: 8rem 0 4.5rem; }
  .guide-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-article-layout { display: block; max-width: 820px; margin-inline: auto; }
  .guide-toc { display: none; }
  .guide-toc-mobile {
    display: block;
    max-width: 820px;
    margin: 0 auto 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e4e5ed;
    border-radius: 14px;
    background: #fafafd;
  }
  .guide-toc-mobile summary { margin: 0; cursor: pointer; list-style: none; }
  .guide-toc-mobile summary::-webkit-details-marker { display: none; }
  .guide-toc-mobile[open] summary { margin-bottom: .9rem; }
  .guide-help-cta { grid-template-columns: auto 1fr; }
  .guide-help-cta .btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 767.98px) {
  .guide-breadcrumb { margin-bottom: 1.4rem; }
  .guides-hero h1,
  .guide-detail-hero h1 { letter-spacing: -.05em; }
  .guides-hero__stats span { width: calc(50% - .35rem); justify-content: center; }
  .guides-hero__stats span:last-child { width: 100%; }
  .guide-library { padding: 4rem 0 5rem; }
  .guide-library__heading,
  .guide-related__heading { display: block; }
  .guide-library__heading > p { margin-top: .8rem; }
  .guide-related__heading > a { display: inline-block; margin-top: .8rem; }
  .guide-card-grid,
  .guide-related__grid { grid-template-columns: 1fr; }
  .guide-card__visual { height: 170px; }
  .guide-detail-hero { padding: 7.5rem 0 4rem; }
  .guide-byline__divider { display: none; }
  .guide-featured-image { margin-top: -1.5rem; border-width: 4px; border-radius: 20px; }
  .guide-featured-image img { border-radius: 15px; }
  .guide-article-section { padding: 3rem 0 5rem; }
  .guide-content-card { border-radius: 18px; }
  .guide-content { font-size: .96rem; line-height: 1.8; }
  .guide-content h1 { font-size: 1.8rem; }
  .guide-content h2 { font-size: 1.5rem; }
  .guide-content h3 { font-size: 1.25rem; }
  .guide-content figure.image-style-side { float: none; max-width: 100%; margin: 1.5rem auto; }
  .guide-content iframe,
  .guide-content figure.media iframe { min-height: 240px; }
  .guide-article-footer { align-items: flex-start; flex-direction: column; }
  .guide-related { margin-top: 4rem; }
  .guide-help-cta { grid-template-columns: 1fr; padding: 1.5rem; }
  .guide-help-cta__icon { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
  .guide-byline { justify-content: flex-start; }
  .guide-byline > span:not(.guide-byline__avatar):not(.guide-byline__divider) { min-width: calc(50% - 2rem); }
  .guide-detail-hero__content { text-align: left; }
  .guide-detail-hero__content > .guide-category { margin-left: 0; }
  .guide-content blockquote { padding-left: 2.8rem; }
  .guide-content blockquote::before { left: .75rem; }
}

@media print {
  .guide-detail-page .guide-breadcrumb,
  .guide-toc,
  .guide-toc-mobile,
  .guide-related,
  .guide-help-cta,
  .guide-article-footer { display: none !important; }
  .guide-detail-hero { padding: 2rem 0; background: #fff; }
  .guide-article-section { padding: 1rem 0; }
  .guide-content-card { border: 0; box-shadow: none; }
  .guide-content { padding: 0; }
}

/* Sidebar Filter Kategori Frontend */
.guide-sidebar-sticky {
  position: sticky;
  top: 100px;
}

.guide-sidebar-card {
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(27, 32, 52, .05);
}

.guide-sidebar-header {
  font-size: .85rem;
  font-weight: 800;
  color: var(--guide-ink);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-bottom: .85rem;
  margin-bottom: .75rem;
  border-bottom: 1px solid var(--guide-line);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.guide-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.guide-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .85rem;
  border-radius: 10px;
  color: #555d70;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}

.guide-sidebar-item:hover {
  background: #f4f0ff;
  color: var(--brand);
}

.guide-sidebar-item.active {
  background: var(--brand);
  color: #ffffff !important;
  font-weight: 700;
}

.guide-sidebar-count {
  font-size: .75rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: #eef0f6;
  color: #667085;
}

.guide-sidebar-item.active .guide-sidebar-count {
  background: rgba(255, 255, 255, .25);
  color: #ffffff;
}

/* Mobile Category Filter Pills */
.guide-mobile-categories {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .4rem;
}

.guide-category-pills {
  display: flex;
  gap: .5rem;
  white-space: nowrap;
}

.guide-pill {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--guide-line);
  background: #fff;
  color: #555d70;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}

.guide-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.guide-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
