/* travelbrowsequartz.com: blog index and articles (WordPress). Tokens come from home.css. */

/* ---------- Shared bits ---------- */
.tb-dek { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.tb-meta {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  margin: 0; font-size: .92rem; color: var(--muted);
}
.tb-label { margin: 0 0 4px; font-size: .9rem; }
.tb-label a { color: var(--amber-deep); text-decoration: none; }
.tb-label a:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.tb-grid {
  display: grid; gap: 40px 32px;
  grid-template-columns: minmax(0, 1fr);
}
.tb-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tb-card-fig {
  display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--band);
}
.tb-card-fig img { width: 100%; height: 100%; object-fit: cover; }
.tb-card-body { min-width: 0; }
.tb-card-title { font-size: 1.28rem; line-height: 1.25; margin: 0 0 8px; }
.tb-card-title a { color: var(--ink); text-decoration: none; }
.tb-card-title a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.tb-card-ex { color: var(--muted); font-size: .98rem; margin: 0 0 10px; }
.tb-card--plain { padding-top: 14px; border-top: 2px solid var(--teal); }

.tb-card--lead {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.tb-card--lead .tb-card-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.tb-card--lead .tb-card-ex { font-size: 1.06rem; max-width: 34em; }

@media (min-width: 640px) {
  .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .tb-card--lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
  .tb-card--lead .tb-card-fig { aspect-ratio: 3 / 2; }
}
@media (min-width: 1040px) {
  .tb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
}

/* ---------- Blog index ---------- */
.tb-intro { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.tb-intro h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 15em; }
.tb-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tb-filter a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-family: var(--f-head); font-size: .95rem; text-decoration: none;
  background: var(--white);
}
.tb-filter a:hover { border-color: var(--teal); }
.tb-filter a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.tb-list { padding: 0 0 clamp(56px, 8vw, 96px); }
.tb-list > .wrap {
  background: linear-gradient(var(--ink), var(--ink)) center top / calc(100% - 2 * var(--gutter)) 2px no-repeat;
  padding-top: clamp(28px, 4vw, 44px);
}
.tb-empty { color: var(--muted); }
.tb-pages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.tb-pages a,
.tb-pages span {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center;
  padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); text-decoration: none; font-family: var(--f-head);
}
.tb-pages .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tb-close {
  background: var(--white); border-radius: 14px;
  padding: clamp(24px, 5vw, 56px);
  display: grid; gap: 0; justify-items: start;
}
.tb-close h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.tb-close > p:first-of-type { color: var(--muted); max-width: 34em; }
.tb-close .btn { margin: 4px 0 16px; }

/* ---------- Single article ---------- */
.tb-head {
  display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr);
  padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(32px, 5vw, 56px);
}
.tb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: .92rem; color: var(--muted); }
.tb-crumbs a { color: var(--teal-deep); }
.tb-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 16em; }
.tb-head .tb-dek { margin-bottom: 18px; }
.tb-hero { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--band); }
.tb-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .tb-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; }
  .tb-head--solo { grid-template-columns: minmax(0, 1fr); }
}

.tb-read { max-width: calc(720px + 2 * var(--gutter)); padding-bottom: clamp(56px, 8vw, 96px); }
.tb-toc {
  margin: 0 0 40px; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--amber);
}
.tb-toc h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0 0 6px; }
.tb-toc ul { list-style: none; margin: 0; padding: 0; }
.tb-toc li { padding: 3px 0; line-height: 1.4; }
.tb-toc a { color: var(--teal-deep); }

.tb-body { font-size: 1.06rem; }
.tb-body > *:first-child { margin-top: 0; }
.tb-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 1.7em 0 .5em; scroll-margin-top: 20px; }
.tb-body h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; }
.tb-body p { margin: 0 0 1.1em; }
.tb-body ul,
.tb-body ol { margin: 0 0 1.4em; padding: 0; }
.tb-body ul { list-style: none; border-top: 1px solid var(--line); }
.tb-body ul li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.tb-body ul li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 15px; height: 15px;
  border: 1.5px solid var(--teal); border-radius: 3px;
}
.tb-body ol { padding-left: 1.4em; }
.tb-body ol li { margin-bottom: .4em; }
.tb-body img { border-radius: 10px; }
.tb-body a { color: var(--teal-deep); }

.tb-offer {
  margin-top: 48px; padding: clamp(22px, 4vw, 36px);
  background: var(--white); border-radius: 14px; border-top: 4px solid var(--teal);
}
.tb-offer h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.tb-offer p { color: var(--muted); }
.tb-offer .btn { margin: 4px 0 14px; }
.tb-offer-note { font-size: .92rem; margin: 0; }

.tb-more { background: var(--band); padding: clamp(48px, 7vw, 88px) 0; }
.tb-more-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  margin-bottom: 28px;
}
.tb-more-head h2 { margin: 0; }
.tb-more .tb-card-fig { background: var(--white); }
.tb-single .site-footer { border-top: 0; }

@media (max-width: 380px) {
  .tb-head h1 { font-size: 1.9rem; }
  .tb-filter a { padding: 0 12px; }
}
