/* travelgridmarble.com: blog index and single post (tokens, header and footer come from home.css) */

.head-sub a[aria-current="page"] { color: var(--plum); text-decoration: underline; text-underline-offset: 4px; }

/* Shared tag */
.tb-tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--plum); text-decoration: none; }

/* Index intro: split band */
.tb-intro { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); background: var(--paper); }
.tb-intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 5vw, 72px); align-items: end; }
.tb-intro h1 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 3.4rem); text-wrap: balance; }
.tb-intro p { margin: 0; max-width: 30em; color: var(--ink-soft); font-size: 1.06rem; }

/* Chips */
.tb-list { padding: clamp(36px, 5vw, 56px) 0 clamp(72px, 10vw, 112px); }
.tb-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.tb-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .94rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.tb-chips a:hover { border-color: var(--plum); color: var(--plum); }
.tb-chips a[aria-current="page"] { background: var(--plum); border-color: var(--plum); color: var(--white); }

/* Card grid */
.tb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 52px) clamp(20px, 3vw, 36px); }
.tb-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.tb-card-fig { display: block; overflow: hidden; border-radius: 6px; background: var(--stone); }
.tb-card-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.tb-card-link:hover .tb-card-fig img { transform: scale(1.03); }
.tb-card-body { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 0; }
.tb-card-title { font-family: var(--font-head); font-weight: 600; font-size: 1.32rem; line-height: 1.2; }
.tb-card-link:hover .tb-card-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tb-card-ex { color: var(--ink-soft); font-size: .96rem; }
.tb-card-meta { margin-top: auto; padding-top: 6px; font-size: .86rem; color: var(--ink-soft); }
.tb-card--lead { grid-column: 1 / -1; padding-bottom: clamp(36px, 4vw, 52px); border-bottom: 1px solid var(--hair); }
.tb-card--lead .tb-card-link { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.tb-card--lead .tb-card-fig img { aspect-ratio: 16 / 10; }
.tb-card--lead .tb-card-body { padding-top: 0; }
.tb-card--lead .tb-card-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.tb-card--lead .tb-card-ex { font-size: 1.04rem; }

/* Pagination and empty state */
.tb-pages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.tb-pages a, .tb-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; }
.tb-pages .current { background: var(--plum); border-color: var(--plum); color: var(--white); }
.tb-empty { padding: 28px; background: var(--paper); border-radius: 6px; }

/* Closing band on the index */
.tb-close { padding: clamp(64px, 9vw, 104px) 0; background: var(--plum-tint); text-align: center; }
.tb-close-inner { max-width: 640px; }
.tb-close p { margin: 0 auto 24px; color: var(--ink-soft); }
.tb-close .note { margin: 16px 0 0; font-size: .88rem; }

/* Single post */
.tb-head { max-width: 820px; padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(28px, 4vw, 40px); text-align: center; }
.tb-crumbs { margin: 0 0 18px; font-size: .9rem; color: var(--ink-soft); }
.tb-crumbs a { color: var(--ink-soft); }
.tb-crumbs .tb-tag { color: var(--plum); }
.tb-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); text-wrap: balance; margin-bottom: 16px; }
.tb-dek { margin: 0 auto; max-width: 36em; font-size: 1.1rem; color: var(--ink-soft); }
.tb-meta { display: flex; justify-content: center; gap: 10px; margin: 18px 0 0; font-size: .9rem; color: var(--ink-soft); }
.tb-hero { margin: 0 auto; max-width: 1160px; }
.tb-hero img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 6px; }
.tb-body { max-width: 720px; padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
.tb-body > p:first-child { font-size: 1.12rem; }
.tb-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 1.7em; }
.tb-body h3 { font-size: 1.2rem; margin-top: 1.4em; margin-bottom: 6px; }
.tb-body p, .tb-body li { color: var(--ink-soft); }
.tb-body ul, .tb-body ol { padding-left: 1.3rem; }
.tb-body li { margin-bottom: .45em; }
.tb-body li::marker { color: var(--plum); }
.tb-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .96rem; display: block; overflow-x: auto; }
.tb-body th, .tb-body td { padding: 11px 12px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.tb-body thead th { border-bottom: 1px solid var(--ink); font-weight: 600; }
.tb-body img { border-radius: 6px; }
.tb-offer { margin-top: 48px; padding: clamp(24px, 4vw, 36px); background: var(--plum-tint); border-radius: var(--radius); }
.tb-offer h2 { margin-top: 0; font-size: 1.5rem; }
.tb-offer p { margin: 0 0 20px; }
.tb-offer .tb-offer-note { margin: 14px 0 0; font-size: .88rem; }

.tb-more { padding: clamp(56px, 8vw, 96px) 0; background: var(--paper); }
.tb-more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.tb-more-head h2 { margin: 0; }
.tb-more-head a { font-weight: 600; }

@media (max-width: 960px) {
  .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-intro-grid, .tb-card--lead .tb-card-link { grid-template-columns: 1fr; }
  .tb-intro-grid { gap: 14px; }
  .tb-card--lead .tb-card-body { padding-top: 4px; }
}
@media (max-width: 640px) {
  .tb-grid { grid-template-columns: 1fr; gap: 36px; }
  .tb-head { text-align: left; }
  .tb-meta { justify-content: flex-start; }
  .tb-more-head { flex-wrap: wrap; }
}
