/* Blog posts and author pages. Loaded on single posts and author archives only. */

/* ---- Single post: under the title ---- */
.single-post .entry-title {
  font-family: var(--sn-font-head, "Archivo", "Helvetica Neue", Arial, sans-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 22ch;
  text-wrap: balance;
}
.sn-postmeta { max-width: 820px; margin: 0 0 28px; }
.sn-postmeta__cat {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sn-teal, #00697c);
  text-decoration: none;
}
.sn-postmeta__lede {
  margin: 0 0 18px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--sn-ink-2, #3b4f53);
}
.sn-postmeta__by {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sn-muted, #5f7378);
}
.sn-postmeta__by a { color: inherit; font-weight: 600; text-decoration-thickness: 1px; }

/* ---- Body copy ---- */
.single-post .entry-content { font-size: 1.0625rem; line-height: 1.75; }
.single-post .entry-content h2 {
  font-family: var(--sn-font-head, "Archivo", "Helvetica Neue", Arial, sans-serif);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 2.4em 0 0.6em;
  scroll-margin-top: 110px;
}
.single-post .entry-content h3 { margin: 1.8em 0 0.5em; }
.single-post .entry-content p { margin-bottom: 1.25em; }
.single-post .entry-content ul,
.single-post .entry-content ol { margin: 0 0 1.4em 1.2em; }
.single-post .entry-content li { margin-bottom: 0.45em; }
.single-post .entry-content a { text-underline-offset: 3px; }
.single-post .entry-content figure.wp-block-image img { border-radius: 10px; height: auto; }

/* ---- In this article ---- */
.sn-toc {
  margin: 1.6em 0 2em;
  padding: 16px 20px;
  background: var(--sn-mist, #f2f5f5);
  border-left: 3px solid var(--sn-teal, #00697c);
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
}
.sn-toc summary {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  list-style-position: inside;
}
.sn-toc ol { margin: 0.8em 0 0 1.2em; padding: 0; }
.sn-toc li { margin: 0 0 0.35em; }
.sn-toc a { text-decoration: none; }
.sn-toc a:hover { text-decoration: underline; }

/* ---- End of post ---- */
.sn-postcta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 3rem 0 2rem;
  padding: clamp(22px, 3vw, 34px);
  background: #12333a;
  color: #fff;
  border-radius: 14px;
}
.sn-postcta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; }
.sn-postcta p { margin: 0; color: rgba(255, 255, 255, 0.82); }
.sn-postcta .sn-kicker { color: var(--sn-gold, #c69a48); margin-bottom: 8px; }
.sn-postcta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sn-postcta .sn-btn--inkline { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 720px) { .sn-postcta { grid-template-columns: 1fr; } }

.sn-authorbox {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 2.5rem;
  padding: 20px 0;
  border-top: 1px solid var(--sn-line-soft, #e4eaea);
  border-bottom: 1px solid var(--sn-line-soft, #e4eaea);
  font-size: 0.95rem;
}
.sn-authorbox p { margin: 0 0 0.5em; }
.sn-authorbox__name { font-weight: 700; }
.sn-authorbox__mark,
.sn-authorhead__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sn-brand-ink, #00434f);
  color: #fff;
  font-family: var(--sn-font-head, "Archivo", sans-serif);
  font-weight: 800;
  font-size: 1.2rem;
}

.sn-related h2 { font-size: 1.3rem; margin: 0 0 16px; }
.sn-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 2rem; }
.sn-related__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--sn-line-soft, #e4eaea);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.sn-related__card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.sn-related__card p { margin: 0; font-size: 0.9rem; color: var(--sn-muted, #5f7378); }
.sn-related__card .sn-view { margin-top: auto; font-weight: 700; font-size: 0.85rem; color: var(--sn-teal, #00697c); }
@media (hover: hover) {
  .sn-related__card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(12, 30, 34, 0.1); }
}
@media (max-width: 860px) { .sn-related__grid { grid-template-columns: 1fr; } }

/* ---- Author page ---- */
.sn-authorhead {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 0 3rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--sn-line-soft, #e4eaea);
}
.sn-authorhead__mark { width: 72px; height: 72px; font-size: 1.8rem; }
.sn-authorhead h1 {
  margin: 0 0 12px;
  font-family: var(--sn-font-head, "Archivo", sans-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.sn-authorhead__bio { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.6; color: var(--sn-ink-2, #3b4f53); }
.sn-authorhead__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 0.9rem; }
.sn-authorhead__facts span { font-weight: 700; }
.sn-authorhead__facts a { color: var(--sn-teal, #00697c); }
@media (max-width: 600px) { .sn-authorhead { flex-direction: column; gap: 14px; } }

.author article.type-post .entry-title { font-family: var(--sn-font-head, "Archivo", sans-serif); font-weight: 800; letter-spacing: -0.015em; }

/* ---- Blog list, categories, tags ---- */
.sn-listhead { max-width: 820px; margin: 0 auto 2.5rem; padding: 0 20px; }
.sn-listhead h1 {
  margin: 0 0 12px;
  font-family: var(--sn-font-head, "Archivo", sans-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-wrap: balance;
}
.sn-listhead p:not(.sn-kicker) { margin: 0; font-size: 1.1rem; line-height: 1.55; color: var(--sn-ink-2, #3b4f53); }
.sn-listcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sn-listcats a {
  padding: 6px 14px;
  border: 1px solid var(--sn-line-soft, #d5dede);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.sn-listcats a[aria-current="page"] { background: var(--sn-brand-ink, #00434f); border-color: var(--sn-brand-ink, #00434f); color: #fff; }
.sn-listcats a:hover:not([aria-current]) { border-color: var(--sn-teal, #00697c); color: var(--sn-teal, #00697c); }

.sn-bloglist .site-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.sn-bloglist .site-main > .page-header,
.sn-bloglist .site-main > .paging-navigation,
.sn-bloglist .site-main > nav,
.sn-bloglist .site-main > .sn-authorhead { grid-column: 1 / -1; }
.sn-bloglist .site-main > article { margin: 0; }
.sn-bloglist article .inside-article {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--sn-line-soft, #e4eaea);
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) {
  .sn-bloglist article .inside-article:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(12, 30, 34, 0.1); }
}
.sn-bloglist article .post-image { margin: -22px -22px 16px; }
.sn-bloglist article .post-image img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px 14px 0 0; }
.sn-bloglist article .entry-header { order: 1; }
.sn-bloglist article .entry-title { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.28; font-family: var(--sn-font-head, "Archivo", sans-serif); font-weight: 800; letter-spacing: -0.01em; }
.sn-bloglist article .entry-title a { text-decoration: none; color: inherit; }
.sn-bloglist article .entry-title a:hover { color: var(--sn-teal, #00697c); }
.sn-bloglist article .entry-summary { order: 2; font-size: 0.93rem; line-height: 1.6; color: var(--sn-muted, #5f7378); }
.sn-bloglist article .entry-summary p { margin: 0; }
.sn-bloglist article footer.entry-meta { display: none; }
.sn-bloglist article .read-more-container { margin-top: auto; padding-top: 14px; order: 3; }
.sn-bloglist article .read-more { font-weight: 700; font-size: 0.85rem; color: var(--sn-teal, #00697c); text-decoration: none; }
.sn-cardmeta { margin: 0 0 8px; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--sn-muted, #5f7378); }
.sn-cardmeta__cat { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sn-teal, #00697c); }
.sn-bloglist .paging-navigation, .sn-bloglist #nav-below { margin-top: 1rem; }
@media (max-width: 960px) { .sn-bloglist .site-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sn-bloglist .site-main { grid-template-columns: 1fr; } }

/* Load more */
.sn-loadmore-wrap { grid-column: 1 / -1; display: flex; justify-content: center; margin: 1.25rem 0 0; }
.sn-loadmore {
  min-height: 48px;
  padding: 0 2rem;
  border: 1px solid var(--sn-brand-ink, #00434f);
  border-radius: 6px;
  background: transparent;
  color: var(--sn-brand-ink, #00434f);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.sn-loadmore:hover:not(:disabled) { background: var(--sn-brand-ink, #00434f); color: #fff; }
.sn-loadmore:disabled { opacity: 0.6; cursor: default; }
