/* Tahiti Constructions: blog pages (uses the tokens from tahiti.css) */
.tb-hero.t-page-hero-short { padding: 190px 0 90px; }
.tb-hero h1 { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.035em; max-width: 980px; }
.tb-hero .t-page-hero-inner > p { margin-top: 28px; max-width: 620px; }
.tb-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.tb-meta b { color: var(--yellow); font-weight: 600; }
.tb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 26px; }
.tb-crumbs a:hover { color: var(--yellow); }
.tb-crumbs > * + *::before { content: '/'; margin-right: 8px; opacity: .5; }

.tb-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px; gap: clamp(28px, 3.4vw, 56px); max-width: 1380px; margin: 0 auto; align-items: start; }
.tb-wrap.tb-wrap-article { grid-template-columns: minmax(0, 1fr) 300px; max-width: 1180px; }
.tb-wrap > * { min-width: 0; }
.tb-side { position: sticky; top: 96px; align-self: start; }
.tb-side h4, .tb-box h4 { font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* category accordion (native <details>, no JS) */
.tb-cat { border-bottom: 1px solid var(--line); }
.tb-cat summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-size: 14px; font-weight: 600; }
.tb-cat summary::-webkit-details-marker { display: none; }
.tb-cat summary::after { content: '+'; font-weight: 400; font-size: 18px; color: var(--muted); transition: transform .2s; }
.tb-cat[open] summary::after { content: '\2212'; color: var(--ink); }
.tb-cat ul { list-style: none; margin: 0 0 14px; padding: 0; }
.tb-cat li a { display: block; padding: 7px 0 7px 14px; font-size: 13px; color: var(--muted); border-left: 1px solid var(--line); transition: color .2s, border-color .2s; }
.tb-cat li a:hover, .tb-cat li a.is-active { color: var(--ink); border-left-color: var(--gold); }

/* cards */
.tb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.tb-card { display: flex; flex-direction: column; background: #fff; transition: transform .3s, box-shadow .3s; }
.tb-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17,17,17,.12); }
.tb-card[hidden] { display: none; }
.tb-thumb { aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--gold); font-family: var(--head); font-size: 40px; font-weight: 300; }
.tb-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tb-card:hover .tb-thumb img { transform: scale(1.04); }
.tb-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tb-date { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tb-card h3 { font-family: var(--head); font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.tb-card p { font-size: 14px; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tb-more { margin-top: auto; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--yellow); align-self: flex-start; padding-bottom: 4px; }
.tb-loadmore { display: block; margin: 40px auto 0; cursor: pointer; border: 0; font-family: inherit; }
.tb-empty { padding: 60px 0; color: var(--muted); }

/* sidebar list */
.tb-box { background: #fff; padding: 26px 24px; }
.tb-pop a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tb-pop a:last-child { border-bottom: 0; padding-bottom: 0; }
.tb-pop a:hover strong { color: #8a6a1f; }
.tb-pop strong { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; margin-bottom: 4px; transition: color .2s; }
.tb-pop small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tb-stack { display: grid; gap: 28px; }

/* article */
.tb-article { background: #fff; padding: clamp(24px, 4vw, 56px); min-width: 0; }
.tb-cover { margin: -6px 0 36px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.tb-cover img { width: 100%; height: 100%; object-fit: cover; }
.tb-content { font-size: 16.5px; line-height: 1.85; color: #2a2a28; overflow-wrap: anywhere; word-break: normal; }
.tb-content > :first-child { margin-top: 0; }
.tb-content > :last-child { margin-bottom: 0; }
.tb-content h1, .tb-content h2, .tb-content h3, .tb-content h4 { font-family: var(--head); letter-spacing: -.02em; line-height: 1.2; margin: 1.8em 0 .6em; color: var(--ink); }
.tb-content h2 { font-size: 28px; } .tb-content h3 { font-size: 22px; } .tb-content h4 { font-size: 18px; }
.tb-content p { margin: 0 0 1.2em; }
.tb-content strong, .tb-content b { font-weight: 700; color: var(--ink); }
/* links: always above any stray positioned/overlay element pasted into the body, always clickable */
.tb-content a { position: relative; z-index: 1; pointer-events: auto; cursor: pointer; color: #8a6a1f; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
.tb-content a:hover, .tb-content a:focus-visible { color: var(--ink); }
.tb-content ul, .tb-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.tb-content ul { list-style: disc; } .tb-content ol { list-style: decimal; }
.tb-content li { margin-bottom: .4em; padding-left: .2em; }
.tb-content li::marker { color: var(--gold); }
.tb-content img { max-width: 100%; height: auto; margin: 1.4em 0; }
.tb-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.tb-content pre { overflow-x: auto; background: var(--ink); color: #eee; padding: 16px 18px; font-size: 14px; line-height: 1.6; margin: 1.4em 0; }
.tb-content figure { margin: 1.4em 0; }
.tb-table { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
.tb-content table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
.tb-content th, .tb-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.tb-content th { background: var(--cream); font-weight: 600; }
.tb-video { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; background: var(--ink); }
.tb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tb-content blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
.tb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.tb-tags span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); color: var(--muted); }
.tb-back { display: inline-block; margin-top: 30px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--yellow); padding-bottom: 4px; }
.tb-back:hover { color: #8a6a1f; }
.tb-notfound { max-width: 640px; }
.tb-notfound h2 { font-family: var(--head); font-size: clamp(28px, 4vw, 44px); font-weight: 400; letter-spacing: -.03em; margin-bottom: 18px; }

@media (max-width: 1100px) {
  .tb-wrap { grid-template-columns: 220px minmax(0, 1fr); }
  .tb-wrap > .tb-right { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .tb-wrap.tb-wrap-article { grid-template-columns: minmax(0, 1fr); }
  .tb-wrap-article .tb-side { position: static; }
}
@media (max-width: 800px) {
  .tb-wrap, .tb-wrap.tb-wrap-article { grid-template-columns: 1fr; }
  .tb-side { position: static; }
  .tb-grid { grid-template-columns: 1fr; }
  .tb-hero.t-page-hero-short { padding: 150px 0 60px; }
  .tb-hero .t-page-hero-inner { padding-left: var(--pad); }
}