/* ===================================================
   InnerSprings — blog views only (listing, archives, search, single post).
   Loaded conditionally; builds on the tokens in main.css.
   =================================================== */

/* ---------- category chips ---------- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.blog-filters a {
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-filters a:hover {
  border-color: var(--gold);
  color: var(--forest-deeper);
}

.blog-filters a.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

/* ---------- featured post ---------- */
.post-featured {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--forest);
  color: var(--cream);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: 0 20px 48px rgba(5, 86, 1, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(5, 86, 1, 0.28);
}

.post-featured .post-card-media {
  aspect-ratio: auto;
  min-height: 360px;
  background: var(--forest-deeper);
}

.post-featured .post-card-media img {
  transition: transform 0.5s ease;
}

.post-featured:hover .post-card-media img {
  transform: scale(1.03);
}

.post-featured-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  padding: 48px;
}

.post-featured .tag-featured {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-deeper);
  background: var(--gold);
  padding: 6px 14px;
  border-radius: 100px;
}

.post-featured .post-card-cat {
  color: var(--gold);
}

.post-featured h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  color: #fff;
}

.post-featured h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-featured p {
  font-size: 16px;
  color: rgba(250, 246, 234, 0.85);
}

.post-featured .post-card-meta {
  border-top-color: var(--line-on-dark);
  color: rgba(250, 246, 234, 0.75);
}

.post-featured .sol-link {
  margin-top: 4px;
  color: var(--gold);
}

@media (max-width:860px) {
  .post-featured {
    grid-template-columns: 1fr;
  }

  .post-featured .post-card-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .post-featured-body {
    padding: 32px 26px;
  }
}

/* ---------- pagination ---------- */
.pagination {
  margin-top: 56px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pagination a.page-numbers:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.pagination .page-numbers.current {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.pagination .page-numbers.dots {
  border: 0;
  background: none;
}

/* ---------- empty state ---------- */
.no-results {
  max-width: 560px;
}

.no-results h2 {
  font-size: clamp(26px, 3vw, 32px);
  color: var(--forest-deeper);
}

.no-results p {
  margin: 14px 0 26px;
  color: var(--ink-soft);
}

/* ---------- single post ---------- */
.post-hero .hero-inner {
  max-width: 820px;
}

.post-hero-cat {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.post-hero-cat:hover {
  color: #fff;
}

.page-hero .post-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 15px;
  color: rgba(250, 246, 234, 0.86);
}

.post-meta .avatar {
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.post-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #fff;
}

.post-meta .sep {
  opacity: 0.5;
}

.post-body {
  padding: 64px 0 88px;
}

.post-featured-image {
  max-width: 980px;
  margin: 0 auto 56px;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(2, 43, 0, 0.16);
}

.post-featured-image figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
}

.post-content .alignwide {
  max-width: 980px;
  margin-left: calc(50% - min(490px, 50vw - 32px));
  margin-right: calc(50% - min(490px, 50vw - 32px));
}

.post-content .alignfull {
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.post-content .alignfull img {
  border-radius: 0;
}

.post-footer {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-tags a {
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.post-tags a:hover {
  border-color: var(--gold);
  color: var(--forest-deeper);
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.share-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 6px;
}

.share-links a,
.share-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--forest);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.share-links a:hover,
.share-links button:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--gold);
}

.share-links svg {
  width: 17px;
  height: 17px;
}

.share-copied {
  font-size: 13.5px;
  color: var(--forest);
}

.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.author-box .avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.author-box h2 {
  font-size: 19px;
  color: var(--forest-deeper);
}

.author-box p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-navigation a:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
}

.post-navigation .nav-next {
  grid-column: 2;
  text-align: right;
}

.post-navigation .nav-dir {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
}

.post-navigation .nav-title {
  font-family: 'Lora', serif;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
}

@media (max-width:600px) {
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    grid-column: auto;
  }
}

/* ---------- comments ---------- */
.comments-area {
  max-width: 720px;
  margin: 64px auto 0;
}

.comments-title,
.comment-reply-title {
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--forest-deeper);
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.comment-list .children {
  list-style: none;
  padding-left: 28px;
}

.comment-body {
  padding: 22px 24px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.comment-author .avatar {
  border-radius: 50%;
}

.comment-author .says {
  display: none;
}

.comment-content p + p {
  margin-top: 0.8em;
}

.comment-content {
  font-size: 15.5px;
  color: var(--ink-soft);
}

.reply {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest);
}

.comment-form {
  display: grid;
  gap: 16px;
}

.comment-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fdfdfc;
}

.comment-form :is(input, textarea):focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(5, 86, 1, 0.08);
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
}

.comment-form .comment-form-cookies-consent label {
  font-weight: 400;
}

.comment-form .submit {
  justify-self: start;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 28px;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--forest);
  color: var(--cream);
  cursor: pointer;
}

.comment-form .submit:hover {
  background: var(--forest-dark);
}
