/* Precision AI Academy — Blog-Specific Styles
   Imports base.css for vars, nav, buttons, footer, info-box, comparison-table, cta-box, breadcrumb.
   This file only contains blog-specific components. */
@import url('/base.css');

/* Article Layout */
.article-hero { padding: 140px 0 60px; position: relative; overflow: hidden }
.article-hero-bg { position: absolute; inset: 0; background:
  radial-gradient(ellipse 80% 60% at 50% -10%, rgba(46,40,36,.06), transparent),
  radial-gradient(ellipse 60% 50% at 80% 100%, rgba(196,135,62,.04), transparent) }
.article-hero-pattern { position: absolute; inset: 0; opacity: .15;
  background-image: radial-gradient(circle at 1px 1px, var(--border) .8px, transparent 0);
  background-size: 32px 32px }
.article-hero .container { position: relative; z-index: 2; max-width: 780px }
.article-category { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px }
.article-category::before { content: ''; width: 28px; height: 2px; background: var(--gold); border-radius: 2px }
.article-hero h1 { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(32px, 4vw, 48px); font-weight: 400; line-height: 1.15; letter-spacing: -.5px; color: var(--text); margin-bottom: 20px }
.article-meta { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap }
.article-meta .author { font-weight: 600; color: var(--text) }
.article-meta .divider { width: 4px; height: 4px; border-radius: 50%; background: var(--border) }

/* Article Content */
.article-content { max-width: 780px; margin: 0 auto; padding: 60px 24px 100px }
/* H2 with decorative top border to break up sections */
.article-content h2 { font-family: 'DM Serif Display', Georgia, serif; font-size: 32px; line-height: 1.2; color: var(--text); margin: 64px 0 20px; letter-spacing: -.3px; padding-top: 40px; border-top: 1px solid var(--border-light) }
.article-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0 }

/* Make the first paragraph after H2 slightly larger for editorial feel */
.article-content h2 + p { font-size: 18px; color: var(--text); line-height: 1.75 }

/* Bold answer paragraphs get a subtle left accent */
.article-content h2 + p > strong:first-child { display: inline; background: linear-gradient(to bottom, transparent 60%, rgba(196,135,62,.12) 60%) }

/* Pull quotes - any blockquote in the article */
.article-content blockquote { margin: 40px -24px; padding: 32px 32px 32px 36px; background: var(--bg-warm); border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 19px; color: var(--text); font-style: italic; line-height: 1.7; position: relative }
.article-content blockquote::before { content: '\201C'; position: absolute; top: 12px; left: 12px; font-size: 48px; color: var(--gold); opacity: .3; font-family: 'DM Serif Display', serif; line-height: 1 }

/* Lists get more visual weight */
.article-content ul { list-style: none; padding-left: 0; margin: 20px 0 28px }
.article-content ul li { padding-left: 24px; position: relative; margin-bottom: 12px }
.article-content ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; opacity: .6 }
.article-content ol { margin: 20px 0 28px; padding-left: 24px }
.article-content ol li { margin-bottom: 12px; padding-left: 8px }

/* Images in articles - add spacing and subtle shadow */
.article-content img { border-radius: var(--radius-sm); margin: 32px 0; box-shadow: 0 4px 24px rgba(0,0,0,.06) }

/* Tables get better styling */
.article-content table { width: 100%; border-collapse: collapse; margin: 28px 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-light) }
.article-content table th { background: var(--blue); color: var(--white); padding: 12px 16px; font-size: 13px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .04em }
.article-content table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); font-size: 15px }
.article-content table tr:hover { background: var(--bg-warm) }
.article-content table tr:last-child td { border-bottom: none }

/* Horizontal rule as section divider */
.article-content hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 48px 0 }
.article-content h3 { font-size: 22px; font-weight: 700; color: var(--text); margin: 40px 0 16px; line-height: 1.3 }
.article-content p { font-size: 17px; color: var(--text-body); line-height: 1.8; margin-bottom: 20px }
.article-content ul, .article-content ol { margin: 16px 0 24px 24px }
.article-content li { font-size: 17px; color: var(--text-body); line-height: 1.8; margin-bottom: 8px }
.article-content strong { color: var(--text); font-weight: 600 }
.article-content blockquote { margin: 32px 0; padding: 24px 24px 24px 28px; background: var(--blue-wash); border-left: 3px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 18px; color: var(--text); font-style: italic; line-height: 1.7 }

/* Key Stat Box */
.key-stat { background: var(--bg-warm); border: 2px solid var(--border); border-radius: var(--radius); padding: 32px; margin: 32px 0; text-align: center }
.key-stat .stat-number { font-family: 'DM Serif Display', serif; font-size: 56px; color: var(--blue); line-height: 1 }
.key-stat .stat-number span { color: var(--gold) }
.key-stat .stat-desc { font-size: 17px; color: var(--text-muted); margin-top: 8px }
.key-stat .stat-note { font-size: 14px; color: var(--text-dim); margin-top: 12px; font-style: italic }

/* Email Template */
.email-template { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); margin: 32px 0; overflow: hidden }
.email-template-header { background: var(--bg-warm); border-bottom: 1px solid var(--border-light); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between }
.email-template-header h4 { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px }
.email-template-header h4 svg { width: 18px; height: 18px; color: var(--gold) }
.copy-btn { background: var(--blue); color: var(--white); border: none; padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit }
.copy-btn:hover { background: var(--blue-light) }
.email-template-body { padding: 24px; font-family: 'DM Sans', sans-serif }
.email-template-body .email-field { font-size: 13px; color: var(--text-dim); margin-bottom: 4px }
.email-template-body .email-field strong { color: var(--text-muted) }
.email-template-body .email-body { font-size: 15px; color: var(--text-body); line-height: 1.75; margin-top: 16px; white-space: pre-wrap }

/* Steps */
.steps { margin: 32px 0; counter-reset: step }
.step { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start }
.step-number { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0 }
.step-number.gold { background: var(--gold) }
.step-content h4 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px }
.step-content p { font-size: 15px; color: var(--text-body); line-height: 1.7 }

/* TOC */
.toc { background: var(--bg-warm); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 28px 32px; margin: 0 0 48px }
.toc h4 { font-size: 14px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px }
.toc ol { margin: 0; padding-left: 20px }
.toc li { font-size: 15px; color: var(--text-muted); padding: 4px 0; line-height: 1.5 }
.toc li a { color: var(--text-body); font-weight: 500 }
.toc li a:hover { color: var(--gold) }

/* Related Posts */
.related-posts { margin-top: 64px; padding-top: 48px; border-top: 2px solid var(--border) }
.related-posts h2 { font-family: 'DM Serif Display', serif; font-size: 28px; margin-bottom: 24px; color: var(--text) }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px }
.related-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--bg-warm); border: 1px solid var(--border-light); border-radius: var(--radius-sm); text-decoration: none; transition: all .25s }
.related-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06) }
.related-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold) }
.related-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4 }
.related-read { font-size: 13px; color: var(--text-muted); margin-top: 4px }

/* Explore More */
.explore-more { background: var(--blue-wash); border: 1px solid rgba(46,40,36,.08); border-radius: var(--radius); padding: 28px 32px; margin: 40px 0 }
.explore-more h3 { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 12px }
.explore-more ul { margin: 0; padding-left: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px }
.explore-more li { font-size: 14px; line-height: 1.6 }
.explore-more a { color: var(--gold); font-weight: 500 }
.explore-more a:hover { color: var(--gold-dark) }

/* Key Takeaways */
.key-takeaways { background: linear-gradient(135deg, var(--gold-wash), rgba(196,135,62,.03)); border: 1px solid rgba(196,135,62,.2); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 24px 28px; margin: 0 0 40px }
.key-takeaways h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px }
.key-takeaways h4::before { content: '\2728'; font-size: 14px }
.key-takeaways ul { margin: 0; padding-left: 20px }
.key-takeaways li { font-size: 15px; color: var(--text-body); padding: 4px 0; line-height: 1.55; font-weight: 500 }

/* Author Bio */
.author-bio { display: flex; gap: 20px; align-items: flex-start; background: var(--bg-warm); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 28px; margin: 48px 0 0 }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 24px; font-weight: 700; color: var(--white); font-family: 'DM Serif Display', serif }
.author-info h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 2px }
.author-info .author-title { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 8px }
.author-info p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0 }

/* Source Notes */
.source-note { font-size: 13px; color: var(--text-dim); margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border-light); line-height: 1.7 }
.source-note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px }
.source-note a:hover { color: var(--gold) }

/* Code Block */
.code-block { background: #111827; border-radius: var(--radius-sm); margin: 28px 0; overflow: hidden }
.code-block-header { background: #1f2937; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between }
.code-block-header span { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,.4) }
.code-block code, .code-block pre { display: block; padding: 20px; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 14px; color: rgba(255,255,255,.88); line-height: 1.7; overflow-x: auto; margin: 0 }
.code-block .keyword, .code-block .kw { color: #93c5fd }
.code-block .string, .code-block .st, .code-block .str { color: #fbbf24 }
.code-block .comment, .code-block .cm { color: rgba(255,255,255,.35); font-style: italic }
.code-block .fn { color: #6ee7b7 }
.code-block .nu { color: #f9a8d4 }
.code-block code .attr { color: #ffcb6b }
.code-block code .tag { color: #f07178 }

/* Stat Grid / Stat Row / Stat Card */
.stat-grid, .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 }
.stat-card { background: var(--bg-warm); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 24px; text-align: center }
.stat-card .num, .stat-card .s-num, .stat-card .sc-number { font-family: 'DM Serif Display', serif; font-size: 36px; color: var(--blue); line-height: 1 }
.stat-card .num span, .stat-card .s-num span, .stat-card .sc-number span { color: var(--gold) }
.stat-card .label, .stat-card .lbl, .stat-card .s-label, .stat-card .sc-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.4 }

/* Path Grid */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0 }
.path-card { background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px }
.path-card h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px }
.path-card p { font-size: 14px; color: var(--text-body); line-height: 1.65; margin-bottom: 8px }
.path-card .path-libs { font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: .04em }

/* Tool / Model Cards */
.tool-grid, .model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0 }
.tool-card, .model-card { background: var(--bg-warm); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 20px }
.tool-card h4, .model-card h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px }
.tool-card p, .model-card p { font-size: 14px; color: var(--text-body); line-height: 1.6; margin: 0 }

/* Price Tiers */
.price-tiers { display: flex; flex-direction: column; gap: 16px; margin: 32px 0 }
.price-tier { background: var(--bg-warm); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 24px 28px; display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start }
.price-tier.featured { border-color: var(--gold); border-width: 2px; background: rgba(196,135,62,.04) }

/* Milestone / Stage Cards */
.milestone, .stage-card { background: var(--bg-warm); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 24px; margin: 16px 0 }

/* Loop Diagram */
.loop-diagram { margin: 32px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden }
.loop-step { position: relative; padding: 24px 20px; background: var(--bg-warm); border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px }
.loop-step:last-child { border-right: none }
/* Icon container inside loop steps */
.loop-step .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.loop-step .icon svg { width: 22px; height: 22px; color: #fff; flex-shrink: 0 }
/* Arrow between loop steps */
.loop-arrow { position: absolute; right: -14px; top: 50%; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px; background: var(--white); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center }
.loop-arrow svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0 }
.loop-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold) }
.loop-title { font-size: 15px; font-weight: 700; color: var(--text) }
.loop-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5 }

/* City Chips */
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px }
.city-chip { background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 20px; font-size: 13px; color: rgba(255,255,255,.8) }

/* Blog Responsive */
@media (max-width: 768px) {
  .article-hero { padding: 110px 0 48px }
  .article-hero h1 { font-size: clamp(28px, 6vw, 36px) }
  .article-content { padding: 40px 20px 80px }
  .article-content h2 { font-size: 26px; margin-top: 40px }
  .key-stat .stat-number { font-size: 42px }
  .email-template-header { flex-direction: column; gap: 12px; align-items: flex-start }
  .related-grid { grid-template-columns: 1fr }
  .explore-more ul { grid-template-columns: 1fr }
  .author-bio { flex-direction: column; align-items: center; text-align: center }
  .stat-grid, .stat-row { grid-template-columns: 1fr }
  .path-grid, .tool-grid, .model-grid { grid-template-columns: 1fr }
  .loop-diagram { grid-template-columns: 1fr 1fr }
  .loop-step { border-right: none; border-bottom: 1px solid var(--border) }
  .loop-step:last-child { border-bottom: none }
  .loop-arrow { display: none }
  .price-tier { grid-template-columns: 1fr }
}

/* Overflow prevention */
html, body { overflow-x: hidden; max-width: 100% }
.article-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch }
.article-content pre { overflow-x: auto; -webkit-overflow-scrolling: touch }
img { max-width: 100%; height: auto }
/* Constrain all SVG icons (except decorative ones) inside links/buttons */
.btn svg, a.btn svg, .nav-cta svg, .mobile-toggle svg { width: 18px; height: 18px; flex-shrink: 0 }
