/* travelgridcobalt.com: blog index, single guide and the shared Layla panel (WordPress only).
   Uses the tokens from home.css: white page, Alike headings, teal ink, rose links, coral rules. */

.tg-side a[aria-current="page"] {
  color: var(--rose);
  text-decoration-line: underline;
}

/* ---------- Shared bits ---------- */

.tb-dek {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.tb-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.tb-label {
  margin: 0 0 6px;
  color: var(--rose);
  font-size: 14.5px;
  font-weight: 600;
}

/* ---------- Blog index ---------- */

.tb-intro {
  padding: clamp(44px, 6vw, 72px) 0 0;
}

.tb-intro h1 {
  max-width: 20ch;
  margin-bottom: 14px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.1;
}

.tb-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}

.tb-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}

.tb-filter a:hover {
  color: var(--rose);
}

.tb-filter a[aria-current="page"] {
  border-bottom-color: var(--coral);
  color: var(--ink);
  font-weight: 600;
}

.tb-list {
  padding: 40px 0 clamp(64px, 8vw, 104px);
}

.tb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}

.tb-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tb-card-fig {
  display: block;
  margin-bottom: 16px;
  background: var(--mist);
}

.tb-card-fig img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.tb-card-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.tb-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.tb-card-title a:hover {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.tb-card-ex {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

/* First guide on page one: photo beside the text, across the full width */
.tb-card--lead {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.tb-card--lead .tb-card-fig {
  margin: 0;
}

.tb-card--lead .tb-card-fig img {
  aspect-ratio: 16 / 10;
}

.tb-card--lead .tb-card-title {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
}

.tb-card--lead .tb-card-ex {
  font-size: 17px;
}

.tb-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

.tb-pages .page-numbers {
  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: 4px;
  color: var(--ink);
  text-decoration: none;
}

.tb-pages a.page-numbers:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.tb-pages .current {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.tb-empty {
  padding: 28px 0;
  color: var(--ink-soft);
}

/* ---------- Single guide ---------- */

.tb-head {
  max-width: 820px;
  padding-top: clamp(40px, 6vw, 68px);
  padding-bottom: 32px;
}

.tb-crumb {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
}

.tb-crumb a {
  color: var(--ink-soft);
}

.tb-crumb a:hover {
  color: var(--rose);
}

.tb-head h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.12;
}

.tb-head .tb-dek {
  margin-bottom: 14px;
}

.tb-hero {
  margin: 0 auto;
}

.tb-hero img {
  width: 100%;
  max-height: 560px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.tb-body {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) 0 8px;
  font-size: 18px;
  line-height: 1.7;
}

.tb-body > p:first-child {
  font-size: 19.5px;
  line-height: 1.6;
  color: var(--ink);
}

.tb-body h2 {
  margin: 1.9em 0 0.5em;
  font-size: clamp(25px, 2.8vw, 31px);
  scroll-margin-top: 16px;
}

.tb-body h3 {
  margin: 1.6em 0 0.4em;
  font-size: 22px;
}

.tb-body ul,
.tb-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.tb-body li {
  margin-bottom: 0.4em;
  padding-left: 0.2em;
}

.tb-body ul li::marker {
  color: var(--coral);
}

.tb-body ol li::marker {
  color: var(--rose);
  font-weight: 600;
}

.tb-body img {
  margin: 1.5em 0;
}

/* Example request typed into an assistant: the hero's white request bar, laid flat */
.tgc-prompt {
  position: relative;
  margin: 1.4em 0 1.6em;
  padding: 34px 20px 16px 20px;
  border: 1px solid #B9CBC7;
  border-left: 4px solid var(--ink);
  border-radius: 4px;
  background: var(--mist);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.tgc-prompt::before {
  content: "Example request";
  position: absolute;
  top: 10px;
  left: 20px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
}

/* Layla panel: teal like the hero panel, text left-aligned */
.tb-offer {
  max-width: 680px;
  margin: 48px auto 0;
  padding: 28px 28px 24px;
  background: var(--ink);
  color: #E4ECEA;
}

.tb-offer h2 {
  margin-bottom: 10px;
  color: #FFFFFF;
  font-size: clamp(24px, 2.6vw, 29px);
}

.tb-offer > p {
  max-width: 58ch;
  font-size: 16.5px;
}

.tb-offer .button {
  background: var(--coral);
  color: var(--ink);
}

.tb-offer .button:hover {
  background: #F0919E;
  color: var(--ink);
}

.tb-offer .button:focus-visible {
  outline-color: #FFFFFF;
}

.tb-offer > .tb-offer-note {
  margin: 0;
  color: #C9D6D3;
  font-size: 14.5px;
}

.tb-index .tb-offer {
  max-width: none;
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(28px, 4vw, 44px);
}

.tb-single .tb-article {
  padding-bottom: clamp(56px, 7vw, 88px);
}

.tb-more {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--mist);
}

.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;
  font-size: clamp(26px, 3vw, 34px);
}

.tb-more-head a {
  font-weight: 500;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 999px) {
  .tb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tb-card--lead {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .tb-card--lead .tb-card-fig img {
    aspect-ratio: 3 / 2;
  }
}

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

  .tb-card--lead {
    padding-bottom: 40px;
  }

  .tb-filter {
    flex-wrap: nowrap;
    gap: 0 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .tb-filter a {
    flex: 0 0 auto;
  }

  .tb-filter a:focus-visible {
    outline-offset: -3px;
  }

  .tb-dek {
    font-size: 17px;
  }

  .tb-hero {
    padding: 0;
  }

  .tb-hero img {
    aspect-ratio: 3 / 2;
  }

  .tb-body {
    font-size: 17px;
  }

  .tb-body > p:first-child {
    font-size: 18px;
  }

  .tgc-prompt {
    padding: 32px 16px 14px;
    font-size: 16px;
  }

  .tgc-prompt::before {
    left: 16px;
  }

  .tb-offer {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 26px var(--gutter) 22px;
  }

  .tb-index .tb-offer {
    padding: 26px var(--gutter) 22px;
  }
}
