/* CirceoCamper blog enhancement layer
   Load globally on single blog posts. */

body.single-post {
  --cc-blue: #164b81;
  --cc-blue-soft: #126492;
  --cc-olive: #a6ae6b;
  --cc-olive-deep: #84895c;
  --cc-sand: #f9ecd9;
  --cc-sun: #ffce47;
  --cc-ink: #21232f;
  --cc-text: #484848;
  --cc-muted: #6d7485;
  --cc-line: rgba(22, 75, 129, 0.12);
  --cc-bg: #fcfbf8;
  --cc-card: rgba(255, 255, 255, 0.82);
  --cc-shadow: 0 20px 50px rgba(27, 42, 66, 0.1);
  background:
    radial-gradient(circle at top left, rgba(119, 201, 248, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 206, 71, 0.12), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, var(--cc-bg) 34%, #f7f3ea 100%);
}

body.single-post #content.site-main {
  max-width: none;
}

body.single-post #content .page-header,
body.single-post #content .page-content {
  width: min(calc(100% - 32px), 1180px);
  margin-inline: auto;
}

body.single-post #content .page-header {
  position: relative;
  margin-top: 34px;
  padding: 72px 24px 40px;
  border-radius: 30px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(22, 75, 129, 0.92), rgba(18, 100, 146, 0.8)),
    var(--cc-hero-image, none) center / cover;
  box-shadow: var(--cc-shadow);
}

body.single-post #content .page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

body.single-post #content .page-header .cc-hero-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 24px 24px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

body.single-post #content .page-header .cc-hero-eyebrow,
body.single-post #content .page-header .cc-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249, 236, 217, 0.18);
  color: #fff;
  font-family: "Prompt", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.single-post #content .page-header .cc-hero-meta {
  margin-top: 12px;
}

body.single-post #content .page-header .entry-title {
  position: relative;
  z-index: 1;
  margin: 14px 0 14px;
  color: #fff;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.1rem);
  line-height: 1.02;
  font-weight: 800;
  text-wrap: balance;
}

body.single-post #content .page-header .cc-hero-excerpt {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Prompt", sans-serif;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.8;
}

body.single-post #content .page-content {
  margin-top: 24px;
  margin-bottom: 68px;
}

body.single-post .cc-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

body.single-post .cc-article-wrap article {
  min-width: 0;
  padding: 38px;
  border-radius: 30px;
  background: var(--cc-card);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--cc-shadow);
  backdrop-filter: blur(14px);
}

body.single-post .cc-article-wrap article > p:first-of-type {
  font-size: 1.12rem;
  color: var(--cc-ink);
}

body.single-post .cc-article-wrap article p,
body.single-post .cc-article-wrap article li {
  color: var(--cc-text);
  font-family: "Prompt", sans-serif;
  font-size: 1.03rem;
  line-height: 1.9;
}

body.single-post .cc-article-wrap article p {
  margin: 0 0 1.2rem;
  max-width: 70ch;
}

body.single-post .cc-article-wrap article strong {
  color: var(--cc-ink);
}

body.single-post .cc-article-wrap article a {
  color: var(--cc-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body.single-post .cc-article-wrap article h2,
body.single-post .cc-related-title {
  margin: 54px 0 18px;
  color: var(--cc-blue);
  font-family: "Prompt", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  line-height: 1.12;
  font-weight: 700;
}

body.single-post .cc-article-wrap article h3 {
  margin: 28px 0 10px;
  color: var(--cc-ink);
  font-family: "Prompt", sans-serif;
  font-size: 1.26rem;
  font-weight: 600;
  line-height: 1.35;
}

body.single-post .cc-article-wrap article ul,
body.single-post .cc-article-wrap article ol {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
}

body.single-post .cc-article-wrap article li + li {
  margin-top: 0.55rem;
}

body.single-post .cc-article-wrap article hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid rgba(22, 75, 129, 0.14);
}

body.single-post .cc-article-wrap article blockquote {
  margin: 30px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--cc-sun);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(249, 236, 217, 0.95), rgba(255, 255, 255, 0.95));
  color: var(--cc-ink);
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.7;
}

body.single-post .cc-article-wrap article img {
  width: 100%;
  border-radius: 24px;
  margin: 28px 0;
  box-shadow: 0 16px 40px rgba(27, 42, 66, 0.1);
}

body.single-post .cc-article-wrap article figure,
body.single-post .cc-article-wrap article .wp-block-image,
body.single-post .cc-article-wrap article .wp-caption {
  margin: 28px 0;
}

body.single-post .cc-article-wrap article figcaption,
body.single-post .cc-article-wrap article .wp-element-caption,
body.single-post .cc-article-wrap article .wp-caption-text {
  margin-top: 12px;
  color: var(--cc-muted);
  font-family: "Prompt", sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: center;
}

body.single-post .cc-article-wrap article iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(27, 42, 66, 0.1);
}

body.single-post .cc-article-wrap article .alignleft,
body.single-post .cc-article-wrap article .alignright {
  max-width: min(100%, 320px);
}

body.single-post .cc-article-wrap article .aligncenter {
  margin-inline: auto;
}

body.single-post .cc-table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(22, 75, 129, 0.08);
}

body.single-post .cc-article-wrap table {
  width: 100%;
  border-collapse: collapse;
}

body.single-post .cc-article-wrap th,
body.single-post .cc-article-wrap td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(22, 75, 129, 0.08);
}

body.single-post .cc-article-wrap th {
  background: rgba(22, 75, 129, 0.92);
  color: #fff;
  font-family: "Prompt", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.single-post .cc-article-wrap tr:last-child td {
  border-bottom: 0;
}

body.single-post .cc-toc {
  position: sticky;
  top: 104px;
  padding: 22px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(27, 42, 66, 0.08);
  backdrop-filter: blur(14px);
}

body.single-post .cc-toc-title {
  margin: 0 0 14px;
  color: var(--cc-ink);
  font-family: "Prompt", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.single-post .cc-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.single-post .cc-toc-item + .cc-toc-item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(22, 75, 129, 0.08);
}

body.single-post .cc-toc-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--cc-muted);
  text-decoration: none;
  font-family: "Prompt", sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.single-post .cc-toc-link::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 0.42rem;
  border-radius: 50%;
  flex: none;
  background: rgba(22, 75, 129, 0.16);
}

body.single-post .cc-toc-item.is-active .cc-toc-link,
body.single-post .cc-toc-link:hover {
  color: var(--cc-blue);
}

body.single-post .cc-toc-item.is-active .cc-toc-link::before {
  background: var(--cc-sun);
  box-shadow: 0 0 0 6px rgba(255, 206, 71, 0.15);
}

body.single-post .cc-cta,
body.single-post .cc-related,
body.single-post .cc-callout,
body.single-post .cc-checklist,
body.single-post .cc-procon {
  margin-top: 26px;
}

body.single-post .cc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 206, 71, 0.95), rgba(249, 236, 217, 0.98));
  border: 1px solid rgba(255, 206, 71, 0.35);
}

body.single-post .cc-cta-title {
  margin: 0 0 8px;
  color: var(--cc-ink);
  font-family: "Prompt", sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
}

body.single-post .cc-cta-text {
  margin: 0;
  max-width: 42ch;
  color: rgba(33, 35, 47, 0.84);
}

body.single-post .cc-button,
body.single-post .cc-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 8px;
  font-family: "Lato", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

body.single-post .cc-button {
  background: var(--cc-blue);
  border: 2px solid var(--cc-sand);
  color: var(--cc-sand);
}

body.single-post .cc-button-secondary {
  border: 1.5px solid rgba(33, 35, 47, 0.2);
  color: var(--cc-ink);
}

body.single-post .cc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.single-post .cc-related-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 40px rgba(27, 42, 66, 0.08);
  text-decoration: none;
  color: inherit;
}

body.single-post .cc-related-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(22, 75, 129, 0.16), rgba(22, 75, 129, 0.35)),
    center / cover;
}

body.single-post .cc-related-body {
  padding: 18px 18px 20px;
}

body.single-post .cc-related-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(166, 174, 107, 0.14);
  color: var(--cc-olive-deep);
  font-family: "Prompt", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.single-post .cc-related-card h3 {
  margin: 0 0 8px;
  color: var(--cc-blue);
  font-family: "Prompt", sans-serif;
  font-size: 1.05rem;
  line-height: 1.4;
}

body.single-post .cc-related-card p {
  margin: 0;
  color: var(--cc-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

body.single-post .cc-callout {
  padding: 20px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(166, 174, 107, 0.16), rgba(255, 255, 255, 0.72));
  border-left: 4px solid var(--cc-olive);
}

body.single-post .cc-callout strong {
  display: block;
  margin-bottom: 6px;
}

body.single-post .cc-checklist {
  display: grid;
  gap: 14px;
}

body.single-post .cc-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 75, 129, 0.08);
}

body.single-post .cc-checklist-mark {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(166, 174, 107, 0.18);
  color: var(--cc-olive-deep);
  font-weight: 700;
}

body.single-post .cc-procon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.single-post .cc-procon-box {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 75, 129, 0.08);
}

body.single-post .cc-procon-box h3 {
  margin-top: 0;
}

body.single-post .cc-procon-box ul {
  margin: 0;
  padding-left: 1.15rem;
}

@media (max-width: 1080px) {
  body.single-post .cc-blog-layout {
    grid-template-columns: 1fr;
  }

  body.single-post .cc-toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 780px) {
  body.single-post #content .page-header {
    padding: 54px 18px 28px;
  }

  body.single-post #content .page-header .cc-hero-card,
  body.single-post .cc-article-wrap article {
    padding: 24px;
  }

  body.single-post .cc-cta,
  body.single-post .cc-procon {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  body.single-post .cc-related-grid {
    grid-template-columns: 1fr;
  }

  body.single-post .cc-article-wrap article iframe {
    min-height: 240px;
  }

  body.single-post .cc-article-wrap article .alignleft,
  body.single-post .cc-article-wrap article .alignright {
    float: none;
    display: block;
    max-width: 100%;
    margin-inline: auto;
  }
}
