/* Guides hub + detail — matches Cephastope tokens */
.guides-main { padding-top: 5rem; }
.guides-hero { padding: 3rem 0 2.5rem; }
.guides-hero-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.guides-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1rem;
}
.guides-lede {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 36rem;
}
.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.35rem;
}
.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  cursor: pointer;
}
.share-icon:hover { background: var(--bg-alt); }
.share-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.share-main:hover { background: var(--accent-hover); }

.guides-tools { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.search-wrap { position: relative; max-width: 36rem; }
.search-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 16px;
  outline: none;
}
.search-wrap input:focus { border-color: var(--accent); }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.featured-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-alt) 60%, transparent);
  padding: 2.5rem 0 3.5rem;
}
.featured-head, .all-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.guide-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.guide-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}
.guide-cover-sm { aspect-ratio: 3 / 2; }
.guide-img {
  width: 100%;
  height: 100%;
  filter: grayscale(1);
  transition: filter 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.guide-card:hover .guide-img { filter: grayscale(0); transform: scale(1.03); }
.feat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.guide-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.guide-meta .cat { color: var(--accent); }
.guide-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.guide-card h3 a:hover { color: var(--accent); }
.guide-card .excerpt { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.guide-actions { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.nav-item.is-on { color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }

.guides-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem 0 4rem;
}
.all-head { border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; }
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.side-box { border: 1px solid var(--line); padding: 1.5rem; background: var(--bg); }
.side-box.sand { background: var(--bg-alt); }
.side-box.ink-edge { border: 2px solid var(--ink); }
.side-box h3, .side-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.popular-list { list-style: none; }
.popular-list li {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.popular-list li:last-child { border: 0; margin: 0; padding: 0; }
.popular-list .n { font-size: 10px; font-weight: 900; color: var(--muted); padding-top: 0.2rem; }
.popular-list a { font-family: "Fraunces", Georgia, serif; font-weight: 700; line-height: 1.3; }
.popular-list a:hover { color: var(--accent); }
.sub-input {
  width: 100%;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 16px;
  margin-bottom: 0.75rem;
}
.flash { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.75rem; }

.crumb-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0 0;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumb:hover { color: var(--accent); }
.article-head { max-width: 48rem; margin: 0 auto; padding: 0 0 2rem; }
.article-head h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}
.article-dek { color: var(--muted); font-size: 1.2rem; line-height: 1.55; margin-bottom: 2rem; }
.byline, .author-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.author-card {
  margin: 2rem auto 0;
  max-width: 48rem;
  padding: 1.25rem 0 1.5rem;
}
.author-card .avatar { width: 3.5rem; height: 3.5rem; flex-shrink: 0; }
.author-card h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 0.35rem; }
.author-card h3 a:hover { color: var(--accent); }
.author-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin: 0 0 0.5rem; }
.author-card .live-work { font-size: 0.8rem; }
.author-card .live-work a { color: var(--accent); font-weight: 700; }
.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.cover-wide {
  max-width: 64rem;
  margin: 0 auto 2.5rem;
}
.cover-wide .guide-cover { aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.prose-guide h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-size: 1.75rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.prose-guide h3 {
  font-family: "League Spartan", sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 2rem 0 0.5rem;
}
.prose-guide p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
  color: rgba(38,38,38,0.88);
}
.prose-guide ul { margin: 0 0 1.25rem 1.1rem; list-style: disc; }
.prose-guide li { margin-bottom: 0.5rem; line-height: 1.6; color: rgba(38,38,38,0.88); }
.prose-guide blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.4;
}
.next-step {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.sticky-col { display: flex; flex-direction: column; gap: 1.5rem; }
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 0.75rem; }
.toc-list a:hover { color: var(--accent); }
.related { border-top: 1px solid var(--line); padding: 3.5rem 0 5rem; margin-top: 3.5rem; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.related-card {
  display: block;
  border: 1px solid var(--line);
  padding: 1.25rem;
}
.related-card:hover { border-color: var(--accent); }
.related-card p.title { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.mobile-share {
  display: flex;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 50;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(12px);
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
}
.mobile-share .share-main { flex: 1; justify-content: center; min-height: 3rem; }
.detail-page { padding-bottom: 5.5rem; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: inherit;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.empty { color: var(--muted); padding: 2rem 0; }

@media (min-width: 640px) {
  .guides-hero-row, .crumb-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr 1fr; }
  .prose-guide h2 { font-size: 2rem; }
  .prose-guide p { font-size: 1.125rem; }
  .cover-wide .guide-cover { aspect-ratio: 21 / 9; }
  .mobile-share { display: none; }
  .detail-page { padding-bottom: 0; }
}
@media (min-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .guides-split { grid-template-columns: 2fr 1fr; gap: 3rem; }
  .detail-grid { grid-template-columns: 2fr 1fr; gap: 3.5rem; }
  .sticky-col { position: sticky; top: 6.5rem; }
}
@media (max-width: 639px) {
  .guides-hero { padding: 2rem 0 1.75rem; }
  .share-pill { flex-wrap: wrap; max-width: 100%; }
  .guide-body { padding: 1.15rem; }
  .article-dek { font-size: 1.05rem; }
}
