/* Blog and devlog pages. Tokens, header, footer and buttons come from site.css;
   these rules cover the article layouts, listings and editorial components. */

.section-kicker-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.section-kicker {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.section-lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 40em;
}

.accent-text {
  color: var(--accent);
}

/* ---------- 09: Devlog & Technical Notes ---------- */
.breadcrumbs-nav {
  margin-bottom: 24px;
  font-size: 12px;
}

.breadcrumbs-nav ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumbs-nav a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.breadcrumbs-nav a:hover {
  color: var(--accent);
}

.breadcrumbs-nav .sep {
  color: var(--line-strong);
}

.devlog-search-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0 40px 0;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.devlog-search-field {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.devlog-search-field:focus {
  outline: none;
  border-color: var(--accent);
}

.tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-btn {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.tag-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}

.notes-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.note-row:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.note-row[hidden] {
  display: none !important;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.note-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.note-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.note-arrow {
  color: var(--muted);
  font-size: 20px;
  margin-left: 16px;
  shrink: 0;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.note-row:hover .note-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.empty-search-state[hidden] {
  display: none !important;
}

.empty-search-state {
  text-align: center;
  padding: 48px 24px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

/* Article Page Layout */
.article-header {
  padding-block: 40px 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.article-title {
  font-size: clamp(32px, 5.5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 760px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 48px 0 16px 0;
  color: var(--ink);
}

.article-body p {
  margin-bottom: 24px;
  color: var(--ink-secondary);
}

.article-body code {
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- Editorial & Article Detail Components ---------- */
.article-wrap {
  padding-top: 40px;
  padding-bottom: 80px;
  max-width: 820px;
}

.breadcrumbs {
  font-size: 13px;
  margin-bottom: 24px;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumb-separator {
  color: var(--line-strong);
}

.article-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article-category {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.meta-dot {
  color: var(--line-strong);
}

.article-title {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.article-lede {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-byline-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.article-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-badge {
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--muted);
}

/* Key Takeaways Box (from wordcounter4u model) */
.key-takeaways {
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 36px;
}

.takeaways-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.takeaways-icon {
  color: var(--accent);
  font-size: 18px;
}

.takeaways-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.takeaways-tldr {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.takeaways-list li {
  font-size: 14px;
  color: var(--ink-secondary);
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.takeaways-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* Table of Contents */
.table-of-contents {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.toc-bullet {
  color: var(--accent);
  font-weight: 800;
}

.toc-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.toc-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.toc-list a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.toc-list a:hover {
  color: var(--accent);
}

.toc-depth-3 {
  margin-left: 16px;
  font-size: 13px;
}

/* Author Card E-E-A-T */
.author-card {
  margin-top: 56px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.author-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  shrink: 0;
}

.author-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}

.author-role {
  font-size: 12px;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.author-bio {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* Pagination Links */
.project-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pagination-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease;
}

.pagination-link:hover {
  color: var(--accent);
}

.pagination-link.highlight {
  color: var(--accent);
}
