/* techpulsekey.com: blog index + single post (uses tokens from home.css) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mainnav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--mint-dk);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--ink-soft);
  text-underline-offset: 3px;
}

/* ---------- Index head ---------- */
.bhead {
  padding: clamp(44px, 6vw, 80px) var(--gutter) clamp(36px, 5vw, 56px);
  background: var(--paper);
}

.bhead-in {
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin: 0 auto;
}

.bhead h1 {
  max-width: 22ch;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
}

.bhead h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 18px;
  background: var(--mint);
}

.bhead p {
  max-width: 58ch;
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* ---------- Chips ---------- */
.blist {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) var(--gutter) clamp(64px, 8vw, 96px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--stone-2);
  border-radius: 999px;
}

.chips a:hover {
  border-color: var(--mint-dk);
  color: var(--ink);
}

.chips a[aria-current="page"] {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- Cards (luggage-tag label) ---------- */
.tgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}

.tcard {
  min-width: 0;
}

.tcard-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.tcard-fig {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
}

.tcard-fig img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tcard-link:hover .tcard-fig img {
  transform: scale(1.03);
}

.tcard-tag {
  position: relative;
  align-self: flex-start;
  margin-top: 18px;
  padding: 3px 12px 3px 22px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mint-dk);
  background: var(--mint-tint);
  border-radius: 2px 999px 999px 2px;
}

.tcard-tag::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border: 1.5px solid var(--mint-dk);
  border-radius: 50%;
}

.tcard-title {
  display: block;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.22;
  color: var(--ink);
}

.tcard-link:hover .tcard-title {
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-underline-offset: 4px;
}

.tcard-ex {
  display: block;
  margin-top: 10px;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.tcard-meta {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px dotted var(--stone-2);
}

.tcard-ex + .tcard-meta {
  margin-top: 16px;
}

/* ---------- Pagination + empty ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}

.pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pager .current {
  color: var(--white);
  background: var(--mint-dk);
  border-color: var(--mint-dk);
}

.bempty {
  padding: 32px;
  background: var(--paper);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

/* ---------- Single post ---------- */
.post {
  padding: clamp(40px, 6vw, 72px) var(--gutter) 0;
}

.post-head {
  max-width: 760px;
  margin: 0 auto;
}

.post-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mint-dk);
  background: var(--mint-tint);
  border-radius: 2px;
}

.post-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
}

.post-dek {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.post-hero {
  max-width: 1100px;
  margin: 36px auto 0;
}

.post-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding-top: clamp(32px, 5vw, 52px);
}

.post-body > * + * {
  margin-top: 18px;
}

.post-body p,
.post-body li {
  color: var(--ink-soft);
}

.post-body h2 {
  margin-top: 44px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.post-body h3 {
  margin-top: 28px;
  font-size: 1.25rem;
  font-weight: 700;
}

.post-body h2 + *,
.post-body h3 + * {
  margin-top: 12px;
}

.post-body ul,
.post-body ol {
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.post-body ul li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--line);
}

.post-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--mint-dk);
  border-bottom: 2px solid var(--mint-dk);
  transform: rotate(-45deg);
}

.post-body ol {
  counter-reset: step;
}

.post-body ol li {
  position: relative;
  padding: 10px 0 10px 44px;
  counter-increment: step;
}

.post-body ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 30px;
  height: 30px;
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 30px;
  text-align: center;
  color: var(--mint-dk);
  border: 1px solid var(--mint);
  border-radius: 50%;
}

.post-body strong {
  color: var(--ink);
}

.post-offer {
  max-width: 720px;
  margin: 52px auto 0;
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
  background: var(--stone);
  border-radius: var(--radius);
}

.post-offer h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.post-offer > p {
  max-width: 50ch;
  margin: 14px auto 24px;
  color: var(--ink-soft);
}

.post-offer .closing-note {
  margin: 18px auto 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- More articles ---------- */
.more {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(56px, 7vw, 88px) var(--gutter);
  background: var(--paper);
}

.more-in {
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin: 0 auto;
}

.more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 36px;
}

.more-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tgrid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .chips {
    gap: 8px;
    margin-bottom: 32px;
  }

  .chips a {
    padding: 0 14px;
  }

  .post-offer .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tcard-fig img {
    transition: none;
  }
}
