/* ============================================================
   Syntea Blog — Additional CSS (WordPress.com)
   Version-controlled at: syntea-blog/additional-css.css
   Applied via: Appearance > Editor > Styles > Additional CSS

   Scoped entirely under .syn-post — no impact on existing
   pages, nav, footer, or old posts using default template.

   WP SYNC STATUS: SYNCED (2026-04-15)
   Last synced: 2026-04-15
   Manual paste via Customizer > Additional CSS > Publish.
   ============================================================ */

/* --- Font Loading ---
   NOTE: @import is stripped by WP.com CSS sanitizer.
   Fonts (Sora, DM Serif Display, DM Mono) are declared via font-family
   in this CSS. WP.com appears to proxy/cache Google Fonts automatically.
--- */

/* --- Single Post Page — Dark Theme ---
   Per-post-ID rules for dark-themed posts:
   - postid-165: "Sprinting in the Era of AI"
   - postid-217: "AI Found It. AI Fixed It. Two Humans Approved It."
   - postid-248: "Do It Once. Share It as a Plugin."
   - postid-291: "From Chatbot to AI–Amplified Learning: How We Rebuilt Syntea"

   NOTE: :has() is stripped by WP.com — can't scope to posts containing
   .syn-post. Per-post-ID rules are the pragmatic short-term fix.

   FUTURE: When more dark-themed posts are added, switch to a shared
   category class (e.g. body.category-engineering) or an FSE template
   (Site Editor > Templates > Single Post variant) so we don't pile up
   per-ID rules. Avoid body.single-post — it affects ALL posts.
--- */
body.postid-165,
body.postid-217,
body.postid-248,
body.postid-291 {
  background: #111318;
}

/* Style the native WP post title to match Syntea design */
body.postid-165 .wp-block-post-title,
body.postid-217 .wp-block-post-title,
body.postid-248 .wp-block-post-title,
body.postid-291 .wp-block-post-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #e2e8f0;
  text-align: left;
  padding: 2rem 0 1.5rem;
  margin: 0;
}

/* Featured image — override theme's 4:3 aspect-ratio, show at natural 16:9 */
body.postid-165 .wp-block-post-featured-image,
body.postid-217 .wp-block-post-featured-image,
body.postid-248 .wp-block-post-featured-image,
body.postid-291 .wp-block-post-featured-image {
  overflow: hidden;
  border-radius: 14px;
  margin-top: 0.5rem;
  aspect-ratio: auto !important;
}
body.postid-165 .wp-block-post-featured-image img,
body.postid-217 .wp-block-post-featured-image img,
body.postid-248 .wp-block-post-featured-image img,
body.postid-291 .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto !important;
}

/* Header on dark-themed posts */
body.postid-165 .wp-block-template-part[data-slug="header"],
body.postid-217 .wp-block-template-part[data-slug="header"],
body.postid-248 .wp-block-template-part[data-slug="header"],
body.postid-291 .wp-block-template-part[data-slug="header"] {
  position: relative;
  z-index: 10;
}

.syn-post {
  --syn-bg: #111318;
  --syn-surface: #1c2028;
  --syn-surface2: #21262f;
  --syn-border: rgba(255,255,255,0.07);
  --syn-accent: #4f9cf9;
  --syn-accent2: #a78bfa;
  --syn-accent3: #34d399;
  --syn-warn: #f59e0b;
  --syn-text: #e2e8f0;
  --syn-muted: #8895a7;
  --syn-dim: #3d4455;
  font-family: 'Sora', sans-serif;
  background: var(--syn-bg);
  color: var(--syn-text);
  line-height: 1.8;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0;
}

.syn-post p { color: var(--syn-muted); font-size: 1rem; line-height: 1.85; }
.syn-post p strong { color: var(--syn-text); font-weight: 600; }
.syn-post h1, .syn-post h2, .syn-post h3 { color: var(--syn-text); }

.syn-post .hero { max-width: 820px; margin: 0 auto; padding: 2rem 2rem 2rem; }
.syn-post .hero-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

.syn-post .tag {
  font-size: 0.67rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 999px; border: 1px solid;
}
.syn-post .tag-blue   { color: var(--syn-accent);  border-color: rgba(79,156,249,0.35);  background: rgba(79,156,249,0.07); }
.syn-post .tag-purple { color: var(--syn-accent2); border-color: rgba(167,139,250,0.35); background: rgba(167,139,250,0.07); }
.syn-post .tag-green  { color: var(--syn-accent3); border-color: rgba(52,211,153,0.35);  background: rgba(52,211,153,0.07); }

.syn-post .hero-date { font-size: 0.78rem; color: var(--syn-dim); margin-left: auto; font-family: 'DM Mono', monospace; }

.syn-post h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5.5vw, 3.25rem);
  line-height: 1.1; font-weight: 400; letter-spacing: -0.025em;
  margin-bottom: 1.75rem; margin-top: 0;
}
.syn-post h1 em { font-style: italic; color: var(--syn-accent); }

.syn-post .hero-lead {
  font-size: 1.08rem; color: var(--syn-muted); line-height: 1.82; max-width: 700px;
  padding-left: 1.25rem; border-left: 2px solid var(--syn-accent); margin: 0;
}

.syn-post .cover { max-width: 820px; margin: 2.5rem auto 0; padding: 0 2rem; }
.syn-post .cover-img {
  width: 100%; border-radius: 16px; aspect-ratio: 16/6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden; border: 1px solid var(--syn-border); background: #0a0d14;
}
.syn-post .cover-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.syn-post .cover-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 25% 50%, rgba(79,156,249,0.13), transparent),
    radial-gradient(ellipse 55% 60% at 78% 40%, rgba(167,139,250,0.11), transparent),
    radial-gradient(ellipse 40% 50% at 55% 80%, rgba(52,211,153,0.08), transparent);
}
.syn-post .cover-inner { position: relative; z-index: 2; text-align: center; }
.syn-post .cover-text {
  font-family: 'DM Serif Display', serif; font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  color: rgba(255,255,255,0.9); letter-spacing: -0.01em;
}
.syn-post .cover-text span { color: var(--syn-accent); }
.syn-post .cover-sub { font-size: 0.72rem; color: var(--syn-dim); font-family: 'DM Mono', monospace; margin-top: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

.syn-post .content { max-width: 820px; margin: 0 auto; padding: 3rem 2rem 2rem; }
.syn-post .content > * + * { margin-top: 1.5rem; }

.syn-post h2 {
  font-family: 'DM Serif Display', serif; font-size: clamp(1.65rem, 3vw, 1.95rem);
  font-weight: 400; line-height: 1.22; letter-spacing: -0.015em;
  margin-top: 4.5rem; margin-bottom: 0;
}
.syn-post h2.lead-h2 { margin-top: 2.5rem; }

.syn-post .five-day {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--syn-border); border-radius: 14px; overflow: hidden;
  margin: 2.5rem -115px;
}
.syn-post .day-cell {
  background: var(--syn-surface); padding: 1.4rem 1.2rem;
  border-right: 1px solid var(--syn-border);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.syn-post .day-cell:last-child { border-right: none; }
.syn-post .day-label { font-family: 'DM Mono', monospace; font-size: 0.65rem; font-weight: 500; color: var(--syn-accent); letter-spacing: 0.08em; text-transform: uppercase; }
.syn-post .day-title { font-size: 0.85rem; font-weight: 600; color: var(--syn-text); line-height: 1.4; }
.syn-post .day-desc { font-size: 0.76rem; color: var(--syn-muted); line-height: 1.55; margin-top: 0.2rem; }

.syn-post .step-section { border: 1px solid var(--syn-border); border-radius: 16px; overflow: hidden; margin: 3rem 0; }
.syn-post .step-header {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.75rem;
  background: var(--syn-surface2); border-bottom: 1px solid var(--syn-border);
}
.syn-post .step-number {
  min-width: 44px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace; font-size: 0.68rem; font-weight: 600;
  background: rgba(79,156,249,0.1); border: 1px solid rgba(79,156,249,0.25); color: var(--syn-accent);
  letter-spacing: 0.03em; padding: 0 0.5rem;
}
.syn-post .step-eyebrow { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--syn-accent); margin-bottom: 0.12rem; }
.syn-post .step-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--syn-text); margin: 0; }
.syn-post .step-body { padding: 1.75rem; }
.syn-post .step-body > * + * { margin-top: 1.1rem; }
.syn-post .step-body p { font-size: 0.96rem; }

.syn-post .support-block { background: var(--syn-surface); border: 1px solid var(--syn-border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-top: 1.25rem; }
.syn-post .support-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--syn-muted); margin-bottom: 1rem; }
.syn-post .support-items { display: flex; flex-direction: column; gap: 0.9rem; }
.syn-post .support-item {
  display: flex; align-items: flex-start; gap: 0.85rem;
  font-size: 0.85rem; line-height: 1.55;
}
.syn-post .support-item .bullet {
  flex-shrink: 0; margin-top: 0.45rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--syn-accent); display: inline-block;
}
.syn-post .support-item-text { display: flex; flex-direction: column; gap: 0.15rem; }
.syn-post .support-item-text strong { color: var(--syn-text); font-size: 0.88rem; display: block; }
.syn-post .support-item-text span { color: var(--syn-muted); font-size: 0.83rem; line-height: 1.55; }

.syn-post .callout { border-radius: 12px; padding: 1.1rem 1.4rem; display: flex; gap: 0.9rem; align-items: flex-start; margin: 1.5rem 0; }
.syn-post .callout-blue   { background: rgba(79,156,249,0.07);  border: 1px solid rgba(79,156,249,0.2); }
.syn-post .callout-purple { background: rgba(167,139,250,0.07); border: 1px solid rgba(167,139,250,0.2); }
.syn-post .callout-green  { background: rgba(52,211,153,0.07);  border: 1px solid rgba(52,211,153,0.2); }
.syn-post .callout-warn   { background: rgba(245,158,11,0.07);  border: 1px solid rgba(245,158,11,0.2); }
.syn-post .callout-icon { font-size: 1.1rem; flex-shrink: 0; }
.syn-post .callout p { margin: 0; color: var(--syn-muted); font-size: 0.9rem; line-height: 1.65; }
.syn-post .callout p strong { color: var(--syn-text); }

.syn-post .code-inline {
  font-family: 'DM Mono', monospace; font-size: 0.83em;
  background: var(--syn-surface2); border: 1px solid var(--syn-border);
  border-radius: 5px; padding: 0.08em 0.42em; color: var(--syn-accent3);
}

.syn-post blockquote { border-left: 2px solid var(--syn-accent2); padding: 0.25rem 0 0.25rem 1.5rem; margin: 2.5rem 0; }
.syn-post blockquote p { font-family: 'DM Serif Display', serif; font-size: 1.25rem; font-style: italic; color: rgba(226,232,240,0.82); line-height: 1.6; }
.syn-post blockquote cite { display: block; font-size: 0.78rem; color: var(--syn-muted); margin-top: 0.6rem; font-style: normal; font-family: 'Sora', sans-serif; }

.syn-post .sep { display: flex; align-items: center; gap: 1rem; margin: 3.5rem 0; }
.syn-post .sep-line { flex: 1; height: 1px; background: var(--syn-border); }
.syn-post .sep span { font-family: 'DM Mono', monospace; font-size: 0.72rem; white-space: nowrap; color: var(--syn-dim); }

.syn-post .authors { display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 1.5rem; background: var(--syn-surface); border: 1px solid var(--syn-border); border-radius: 14px; margin-top: 4rem; align-items: center; }
.syn-post .author { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 180px; }
.syn-post .author-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; color: #fff; }
.syn-post .author-name { font-size: 0.88rem; font-weight: 600; }
.syn-post .author-role { font-size: 0.72rem; color: var(--syn-muted); line-height: 1.4; }
.syn-post .authors-div { width: 1px; background: var(--syn-border); align-self: stretch; }

body.postid-165 .sd-content ul li a.sd-button,
body.postid-217 .sd-content ul li a.sd-button,
body.postid-248 .sd-content ul li a.sd-button,
body.postid-291 .sd-content ul li a.sd-button {
  background-color: #1c2028 !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: none !important;
  border-radius: 6px !important;
}
body.postid-165 .sd-content ul li a.sd-button:hover,
body.postid-217 .sd-content ul li a.sd-button:hover,
body.postid-248 .sd-content ul li a.sd-button:hover,
body.postid-291 .sd-content ul li a.sd-button:hover {
  background-color: #4f9cf9 !important;
  color: #fff !important;
  border-color: #4f9cf9 !important;
}
body.postid-165 .sd-content ul li a.sd-button span,
body.postid-165 .sd-content ul li a.sd-button svg,
body.postid-217 .sd-content ul li a.sd-button span,
body.postid-217 .sd-content ul li a.sd-button svg,
body.postid-248 .sd-content ul li a.sd-button span,
body.postid-248 .sd-content ul li a.sd-button svg,
body.postid-291 .sd-content ul li a.sd-button span,
body.postid-291 .sd-content ul li a.sd-button svg {
  color: inherit !important;
  fill: currentColor !important;
}
body.postid-165 .sd-title,
body.postid-217 .sd-title,
body.postid-248 .sd-title,
body.postid-291 .sd-title {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}
body.postid-165 .sharedaddy,
body.postid-217 .sharedaddy,
body.postid-248 .sharedaddy,
body.postid-291 .sharedaddy {
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  padding-top: 1.5rem !important;
}
body.postid-165 .comment-reply-title,
body.postid-217 .comment-reply-title,
body.postid-248 .comment-reply-title,
body.postid-291 .comment-reply-title {
  color: #e2e8f0 !important;
  font-family: 'DM Serif Display', serif !important;
  font-weight: 400 !important;
  font-size: 1.4rem !important;
}
body.postid-165 #respond,
body.postid-217 #respond,
body.postid-248 #respond,
body.postid-291 #respond {
  background: #111318 !important;
  padding: 0 !important;
  margin-top: 1rem !important;
}
body.postid-165 #respond .comment-form,
body.postid-217 #respond .comment-form,
body.postid-248 #respond .comment-form,
body.postid-291 #respond .comment-form {
  background-color: #1c2028 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 10px !important;
  padding: 1.25rem !important;
  overflow: hidden !important;
}
body.postid-165 #jetpack_remote_comment,
body.postid-217 #jetpack_remote_comment,
body.postid-248 #jetpack_remote_comment,
body.postid-291 #jetpack_remote_comment {
  border-radius: 6px !important;
  overflow: hidden !important;
}
body.postid-165 .likes-widget-placeholder,
body.postid-165 .wpl-likebox,
body.postid-217 .likes-widget-placeholder,
body.postid-217 .wpl-likebox,
body.postid-248 .likes-widget-placeholder,
body.postid-248 .wpl-likebox,
body.postid-291 .likes-widget-placeholder,
body.postid-291 .wpl-likebox {
  background: transparent !important;
}
body.postid-165 .entry-content,
body.postid-217 .entry-content,
body.postid-248 .entry-content,
body.postid-291 .entry-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body.postid-165 .post-content,
body.postid-217 .post-content,
body.postid-248 .post-content,
body.postid-291 .post-content {
  margin-bottom: 0 !important;
}

@media (max-width: 700px) {
  .syn-post .hero, .syn-post .cover, .syn-post .content { padding-left: 1.25rem; padding-right: 1.25rem; }
  .syn-post .five-day { grid-template-columns: 1fr 1fr; margin-left: 0; margin-right: 0; }
  .syn-post .step-section .step-header { flex-wrap: wrap; }
}