/* AI Beginner Park blog shell v01 */
:root {
  --aibp-purple: #6c4cf1;
  --aibp-deep: #4326b8;
  --aibp-cyan: #43d7e8;
  --aibp-yellow: #ffd45a;
  --aibp-navy: #17213c;
  --aibp-pale: #f7f5ff;
  --aibp-line: #cec5ff;
}

body.single-post.aibp-blog-shell {
  background:
    radial-gradient(circle at 12% 8%, rgba(67, 215, 232, .14), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #faf9ff 38%, #fff 100%);
}

body.single-post #header.aibp-blog-header {
  position: sticky;
  z-index: 1000;
  top: 0 !important;
  width: 100%;
  border-bottom: 1px solid #e9e5ff;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(67, 38, 184, .06);
}

body.admin-bar.single-post #header.aibp-blog-header {
  top: 32px !important;
}

.aibp-blog-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.aibp-blog-brand {
  display: grid;
  grid-template-columns: 42px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  color: var(--aibp-deep);
  text-decoration: none;
  line-height: 1.12;
  white-space: nowrap;
}

.aibp-blog-brand img {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.aibp-blog-brand strong {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
}

.aibp-blog-brand small {
  color: #5f6478;
  font-size: 10px;
  font-weight: 700;
}

.aibp-blog-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 850;
}

.aibp-blog-nav a {
  color: var(--aibp-navy);
  text-decoration: none;
  white-space: nowrap;
}

.aibp-blog-nav .aibp-blog-gift {
  padding: 10px 18px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #7458f4, var(--aibp-deep));
  box-shadow: 0 5px 0 #191d4b;
}

body.single-post #sidebar.aibp-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 14px;
}

.aibp-side-card {
  overflow: hidden;
  border: 2px solid var(--aibp-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 0 rgba(108, 76, 241, .12);
}

.aibp-side-card__body {
  padding: 18px;
}

.aibp-side-eyebrow {
  margin: 0 0 6px;
  color: var(--aibp-purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.aibp-side-card h2,
.aibp-side-card h3 {
  margin: 0 0 10px;
  color: var(--aibp-navy);
  font-size: 18px;
  line-height: 1.45;
}

.aibp-side-card p {
  margin: 0 0 12px;
  color: #424a62;
  font-size: 13px;
  line-height: 1.8;
}

.aibp-side-card ul,
.aibp-side-card ol {
  margin: 0;
  padding-left: 1.2em;
}

.aibp-side-card li {
  margin: 0 0 8px;
  line-height: 1.7;
}

.aibp-side-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 11px 16px;
  color: #fff !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #7458f4, var(--aibp-deep));
  box-shadow: 0 5px 0 #191d4b;
  font-weight: 900;
  text-decoration: none;
}

.aibp-side-link-list {
  display: grid;
  gap: 8px;
}

.aibp-side-link-list a {
  display: block;
  padding: 10px 12px;
  color: var(--aibp-navy);
  border: 1px solid #e4dfff;
  border-radius: 12px;
  background: #fbfaff;
  font-weight: 800;
  text-decoration: none;
}

.aibp-side-safety li::marker {
  color: var(--aibp-purple);
  font-weight: 900;
}

.aibp-side-profile {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.aibp-side-profile img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--aibp-purple);
}

.aibp-side-news a {
  color: var(--aibp-navy);
  text-decoration: none;
  font-weight: 800;
}

body.single-post #footer.aibp-blog-footer {
  margin-top: 64px;
  color: #fff;
  background: #24156f;
}

body.single-post.aibp-blog-shell pre,
body.single-post.aibp-blog-shell code {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.single-post.aibp-blog-shell .pb,
body.single-post.aibp-blog-shell .pb-contents,
body.single-post.aibp-blog-shell .pb__body {
  max-width: 100%;
}

.aibp-blog-footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: 42px 0 34px;
  display: grid;
  gap: 22px;
  text-align: center;
}

.aibp-blog-footer b {
  display: block;
  font-size: 24px;
  letter-spacing: 0;
}

.aibp-blog-footer small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .78);
}

.aibp-blog-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-weight: 850;
}

.aibp-blog-footer a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .aibp-blog-header__inner {
    min-height: 68px;
  }

  .aibp-blog-brand small {
    display: none;
  }

  .aibp-blog-nav {
    gap: 12px;
    font-size: 12px;
  }
}

@media (max-width: 820px) {
  body.single-post.aibp-blog-shell {
    overflow-x: hidden;
  }

  body.admin-bar.single-post #header.aibp-blog-header {
    top: 46px !important;
  }

  .aibp-blog-header__inner {
    width: min(100% - 28px, 1180px);
  }

  .aibp-blog-brand {
    grid-template-columns: 34px auto;
  }

  .aibp-blog-brand img {
    width: 34px;
    height: 34px;
  }

  .aibp-blog-brand strong {
    font-size: 19px;
  }

  .aibp-blog-nav a:not(.aibp-blog-gift) {
    display: none;
  }

  .aibp-blog-nav .aibp-blog-gift {
    padding: 9px 13px;
    box-shadow: 0 4px 0 #191d4b;
  }

  .aibp-blog-footer__inner {
    width: min(100% - 28px, 1180px);
  }

  body.single-post.aibp-blog-shell .pb,
  body.single-post.aibp-blog-shell .pb-contents,
  body.single-post.aibp-blog-shell .pb__body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.single-post.aibp-blog-shell img {
    max-width: 100%;
    height: auto;
  }
}
