/*
Theme Name: Travel Blogger Indonesia — The Atlas Journal
Theme URI: https://travelbloggerindonesia.com/
Description: A destination-first editorial child theme for GeneratePress 3.6.1. Responsive travel guides, archives, search, and reading layouts.
Author: Bloggerpi Digital
Template: generatepress
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tbi-atlas
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --tbi-ink: #243543;
  --tbi-ink-deep: #182b37;
  --tbi-accent: #c75f42;
  --tbi-action: #a94329;
  --tbi-link: #98361f;
  --tbi-sage: #7e9b86;
  --tbi-sage-soft: #e4e9dd;
  --tbi-paper: #f7f3eb;
  --tbi-surface: #fffdf9;
  --tbi-muted: #56626a;
  --tbi-line: #ded6ca;
  --tbi-radius: 16px;
  --tbi-shadow: 0 8px 26px rgba(35, 44, 49, .065);
  --tbi-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --tbi-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--tbi-sans); font-size: 16px; line-height: 1.68; color: var(--tbi-ink); background: var(--tbi-paper); }
body, button, input, select, textarea { font-family: var(--tbi-sans); }
h1, h2, h3, h4, h5, h6 { color: var(--tbi-ink-deep); font-family: var(--tbi-serif); line-height: 1.26; letter-spacing: -.025em; }
button, input { font-size: 1rem; }
a { color: var(--tbi-link); }
a:hover { color: #782b19; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #d58f53; outline-offset: 3px; }
.tbi-icon { flex: none; width: 25px; height: 25px; }
.screen-reader-text:focus { z-index: 99999; }

/* Keep the parent GeneratePress header/menu behavior, but restyle it as one bar. */
.site-header, .main-navigation, .main-navigation .main-nav ul li a { background: var(--tbi-ink-deep); }
.site-header { position: relative; z-index: 30; box-shadow: 0 3px 15px rgba(18, 35, 45, .12); }
.site-header .inside-header { max-width: 1220px; padding: 12px 24px; min-height: 70px; }
.site-header .site-branding { display: flex; align-items: center; gap: 13px; }
.site-header .site-branding:before { content: ""; display: block; flex: 0 0 53px; width: 53px; height: 42px; background: url('assets/images/atlas-mark.svg') center / contain no-repeat; }
.site-header .main-title { margin: 0; font: 700 19px/1.18 var(--tbi-sans); text-transform: uppercase; letter-spacing: .045em; max-width: 320px; }
.site-header .main-title a { color: #fff; }
.site-header .main-title a:hover { color: #f3c6af; }
.site-header .site-description { color: #dde3e3; font-size: .76rem; }
.main-navigation { color: #fff; }
.main-navigation .inside-navigation { position: relative; }
.main-navigation .main-nav ul li a { color: #fff; font-weight: 600; padding: 0 15px; line-height: 50px; font-size: .91rem; transition: color .16s ease, background .16s ease; }
.main-navigation .main-nav ul li:hover > a, .main-navigation .main-nav ul li:focus-within > a, .main-navigation .main-nav ul li[class*="current-menu-"] > a { background: rgba(255,255,255,.09); color: #fff; }
.main-navigation .main-nav ul ul li a { background: var(--tbi-ink); }
.main-navigation .menu-toggle { color: #fff; }
.tbi-nav-search { position: relative; align-self: center; z-index: 3; }
.tbi-nav-search summary { list-style: none; width: 42px; height: 42px; display: grid; place-items: center; color: white; border-radius: 10px; cursor: pointer; }
.tbi-nav-search summary::-webkit-details-marker { display: none; }
.tbi-nav-search summary:hover, .tbi-nav-search[open] summary { background: rgba(255,255,255,.12); }
.tbi-nav-search-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(330px, 80vw); padding: 12px; background: var(--tbi-surface); box-shadow: var(--tbi-shadow); border: 1px solid var(--tbi-line); border-radius: 12px; }
.tbi-nav-search-panel .search-form { display: flex; margin: 0; }
.tbi-nav-search-panel .search-field { width: 100%; min-width: 0; border: 1px solid var(--tbi-line); border-radius: 8px 0 0 8px; padding: 9px 10px; }
.tbi-nav-search-panel .search-submit { background: var(--tbi-action); color: #fff; border-radius: 0 8px 8px 0; padding: 9px 10px; }

/* Parent wrapper: a clean full-width canvas, with local section gutters. */
body .site, body .site-content { background: transparent; }
body .site-content { display: block; width: auto; max-width: 1220px; margin: 0 auto; padding: 0 22px; }
body .site-content .content-area { width: 100%; float: none; margin: 0; }
body .site-content .site-main { margin: 0; }
body .site-content .inside-article { box-shadow: none; }
.tbi-page { width: 100%; padding-bottom: 74px; }
.tbi-overline { color: var(--tbi-link); font-size: .78rem; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .095em; margin: 0 0 9px; }
.tbi-section { margin-top: 58px; }
.tbi-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.tbi-section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0; }
.tbi-section-link { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.tbi-section-link:hover { text-decoration-thickness: 2px; }

/* Homepage hero – semantic text and WordPress-sourced photography. */
.tbi-home-hero { display: grid; grid-template-columns: 1.04fr .96fr; min-height: 404px; background: linear-gradient(145deg, #fdf8f0 5%, #eee7dc 95%); border-radius: 0 0 22px 22px; overflow: hidden; position: relative; }
.tbi-hero-copy { padding: clamp(28px, 5vw, 65px) clamp(23px, 4vw, 55px); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.tbi-hero-copy h1 { margin: 0 0 16px; font-size: clamp(2.45rem, 4.3vw, 4.3rem); line-height: 1.1; max-width: 650px; }
.tbi-hero-lead { font-size: 1.04rem; line-height: 1.65; color: #354651; max-width: 520px; margin: 0 0 24px; }
.tbi-search-form { display: flex; width: 100%; max-width: 520px; background: white; padding: 5px; border: 1px solid #b8b5af; border-radius: 13px; box-shadow: 0 4px 12px rgba(40,40,40,.07); }
.tbi-search-form input[type="search"] { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; color: var(--tbi-ink); padding: 10px 12px; font-size: .92rem; }
.tbi-search-form button, .tbi-button { border: 0; border-radius: 9px; background: var(--tbi-action); color: white; padding: 11px 20px; font: 700 .9rem/1.3 var(--tbi-sans); cursor: pointer; text-align: center; display: inline-block; }
.tbi-search-form button:hover, .tbi-button:hover { background: #862f1e; color: #fff; }
.tbi-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tbi-hero-tags a { text-decoration: none; border-radius: 99px; padding: 5px 12px; background: #e4e8df; color: #2d4937; font-size: .78rem; font-weight: 600; }
.tbi-hero-tags a:hover { background: #d1ddcf; }
.tbi-hero-photo { min-width: 0; position: relative; background: linear-gradient(140deg, #bc957c, #829d86 55%, #243543); }
.tbi-hero-photo:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,35,46,.05), transparent 40%, rgba(17,33,43,.26)); pointer-events: none; }
.tbi-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tbi-hero-photo-label { position: absolute; bottom: 22px; right: 20px; z-index: 1; color: white; font-size: .73rem; letter-spacing: .025em; font-weight: 700; text-shadow: 0 1px 5px #17232e; }

/* Discover country destinations. */
.tbi-destination-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.tbi-destination-card { position: relative; display: block; min-height: 210px; border-radius: var(--tbi-radius); overflow: hidden; color: #fff; background: linear-gradient(135deg, #527483, #273e4d); isolation: isolate; box-shadow: var(--tbi-shadow); }
.tbi-destination-card:hover, .tbi-pick:hover { transform: translateY(-2px); }
.tbi-destination-card, .tbi-pick { transition: transform .2s ease, box-shadow .2s ease; }
.tbi-destination-thailand { background: linear-gradient(135deg, #858d62, #334c4c); }
.tbi-destination-singapore { background: linear-gradient(135deg, #a57565, #314f63); }
.tbi-destination-card:after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,29,34,.83), transparent 75%); }
.tbi-destination-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tbi-destination-body { position: absolute; bottom: 20px; left: 22px; right: 50px; display: grid; gap: 4px; }
.tbi-destination-body strong { font: 700 clamp(1.5rem, 2.4vw, 1.95rem)/1.13 var(--tbi-serif); }
.tbi-destination-body small { color: #f3f4f1; font-size: .8rem; line-height: 1.35; }
.tbi-destination-arrow { position: absolute; right: 18px; bottom: 22px; width: 30px; height: 30px; border-radius: 50%; background: white; color: var(--tbi-link); display: grid; place-items: center; font-size: 1.2rem; }
.tbi-destination-card:hover, .tbi-destination-card:focus-visible { color: white; box-shadow: 0 12px 35px rgba(27, 39, 47, .22); }

/* Travel planning modules. */
.tbi-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.tbi-plan-card { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 8px; position: relative; background: rgba(255,255,255,.72); border: 1px solid var(--tbi-line); border-radius: 13px; padding: 22px 18px; text-decoration: none; color: var(--tbi-ink); min-height: 176px; }
.tbi-plan-card:hover { color: var(--tbi-ink); border-color: #cda38a; background: white; }
.tbi-plan-icon { display: block; color: var(--tbi-action); grid-column: 1 / -1; }
.tbi-plan-icon .tbi-icon { width: 33px; height: 33px; }
.tbi-plan-card strong { display: block; font: 700 1.09rem/1.25 var(--tbi-serif); color: var(--tbi-ink-deep); margin-bottom: 7px; }
.tbi-plan-card small { display: block; font: 400 .81rem/1.45 var(--tbi-sans); color: #4b5962; }
.tbi-plan-arrow { color: var(--tbi-action); align-self: center; font-size: 1.1rem; }

/* Featured editorial stories. */
.tbi-picks-grid { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: repeat(2, 132px); gap: 14px; }
.tbi-pick { display: block; position: relative; border-radius: 15px; background: linear-gradient(135deg, #526a60, #213741); overflow: hidden; color: white; isolation: isolate; }
.tbi-pick-0 { grid-row: 1 / span 2; }
.tbi-pick:after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(9,22,29,.88), rgba(9,22,29,.03) 80%); z-index: -1; }
.tbi-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tbi-pick-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; position: absolute; inset: 0; padding: 21px 23px; }
.tbi-pick-tag { display: inline-block; border-radius: 99px; padding: 3px 10px; background: var(--tbi-action); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; margin-bottom: 7px; }
.tbi-pick strong { font: 700 1.2rem/1.25 var(--tbi-serif); }
.tbi-pick-0 strong { font-size: clamp(1.45rem, 2.6vw, 2.2rem); }
.tbi-pick small { font-size: .8rem; line-height: 1.5; margin-top: 6px; color: #f1f4ee; }
.tbi-pick:not(.tbi-pick-0) small { display: none; }
.tbi-pick:hover { color: white; }

/* Consistent, crawlable article cards. */
.tbi-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tbi-travel-card { min-width: 0; background: var(--tbi-surface); border: 1px solid var(--tbi-line); overflow: hidden; border-radius: 13px; box-shadow: var(--tbi-shadow); }
.tbi-card-visual { display: block; aspect-ratio: 1.75; overflow: hidden; background: linear-gradient(145deg, #657f80, #213b4a); }
.tbi-card-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.tbi-travel-card:hover .tbi-card-visual img { transform: scale(1.025); }
.tbi-card-visual.tbi-card-no-image { display: grid; place-items: center; }
.tbi-visual-fallback { color: #f6eee1; opacity: .8; }
.tbi-visual-fallback .tbi-icon { width: 60px; height: 60px; }
.tbi-card-body { padding: 17px 19px 20px; }
.tbi-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--tbi-link); }
.tbi-card-title { font-size: 1.17rem; line-height: 1.36; margin: 8px 0; overflow-wrap: anywhere; }
.tbi-card-title a { color: var(--tbi-ink-deep); text-decoration: none; }
.tbi-card-title a:hover { color: var(--tbi-link); text-decoration: underline; }
.tbi-card-excerpt { color: #4b5960; font-size: .84rem; line-height: 1.56; margin: 0 0 13px; }
.tbi-travel-card time { display: block; color: var(--tbi-muted); font-size: .76rem; }
.tbi-page .navigation.pagination { margin-top: 32px; padding: 0; text-align: center; }
.tbi-page .nav-links { display: flex; gap: 7px; justify-content: center; align-items: center; flex-wrap: wrap; }
.tbi-page .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--tbi-line); background: white; border-radius: 7px; color: var(--tbi-ink); text-decoration: none; font-size: .9rem; }
.tbi-page .page-numbers.current { color: #fff; background: var(--tbi-action); border-color: var(--tbi-action); }
.tbi-page a.page-numbers:hover { border-color: var(--tbi-link); color: var(--tbi-link); }
.tbi-page .page-numbers.dots { border-color: transparent; background: transparent; }

/* Destination category archive / topic search. */
.tbi-category-hero { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 305px; background: linear-gradient(115deg, #fdfaf5 5%, #efded0 85%); border-radius: 0 0 20px 20px; overflow: hidden; }
.tbi-category-copy { padding: clamp(25px, 4vw, 52px); align-self: center; }
.tbi-breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: .78rem; color: #59656c; margin-bottom: 16px; }
.tbi-breadcrumbs a { color: var(--tbi-link); text-decoration: underline; text-underline-offset: 3px; }
.tbi-category-copy h1 { font-size: clamp(3rem, 5vw, 5.2rem); margin: 1px 0 13px; }
.tbi-category-copy > p:last-child { margin: 0; font-size: 1rem; max-width: 540px; color: #3b4e59; }
.tbi-category-photo { position: relative; overflow: hidden; background: linear-gradient(120deg, #b5b7a0, #576c7e); }
.tbi-category-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tbi-category-body { padding: 14px 0 0; }
.tbi-category-tools { margin: 19px 0 6px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tbi-category-shortcuts { display: flex; gap: 9px; flex-wrap: wrap; }
.tbi-category-shortcuts a { display: inline-flex; align-items: center; border: 1px solid var(--tbi-line); border-radius: 99px; padding: 8px 13px; background: #fff; text-decoration: none; font-weight: 600; color: var(--tbi-ink); font-size: .79rem; }
.tbi-category-shortcuts a:hover { border-color: var(--tbi-action); color: var(--tbi-action); }
.tbi-category-search { display: flex; flex: 0 0 240px; background: #fff; border: 1px solid var(--tbi-line); border-radius: 9px; overflow: hidden; }
.tbi-category-search input { width: 100%; min-width: 0; border: none; background: transparent; padding: 8px 11px; font-size: .82rem; }
.tbi-category-search button { border: 0; padding: 8px 13px; background: var(--tbi-action); color: #fff; cursor: pointer; }
.tbi-category-search .tbi-icon { width: 19px; height: 19px; }
.tbi-count { font-size: .82rem; color: var(--tbi-muted); white-space: nowrap; }
.tbi-search-header { background: var(--tbi-surface); border: 1px solid var(--tbi-line); padding: clamp(23px, 4vw, 45px); border-radius: 15px; margin: 0 0 29px; }
.tbi-search-results { padding-top: 25px; }
.tbi-search-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.tbi-search-header .tbi-search-form { margin-top: 20px; }
.tbi-no-results { padding: 30px 0 70px; }

/* Single travel guide: strong headline, comfortable body, contextual aside. */
body.single-post .site-content { max-width: 1160px; }
body.single-post .site-main, body.single-post .inside-article { margin: 0; background: transparent; }
body.single-post .tbi-single-article .inside-article { padding: 27px 0 65px; }
.tbi-single-article .entry-header { max-width: 970px; margin: 0 0 24px; }
.tbi-single-article .entry-title { font-size: clamp(2.25rem, 4.1vw, 3.8rem); letter-spacing: -.035em; line-height: 1.16; margin: 6px 0 12px; overflow-wrap: anywhere; }
.tbi-single-category { display: inline-block; text-decoration: none; }
.tbi-single-article .entry-meta { color: #52616a; font-size: .84rem; line-height: 1.5; }
.tbi-single-article .entry-meta a { color: var(--tbi-link); text-decoration: underline; text-underline-offset: 3px; }
.tbi-single-article .entry-meta .updated { margin-left: 5px; }
.tbi-single-article .featured-image { max-width: 970px; padding: 0; margin: 0 0 28px; border-radius: 17px; overflow: hidden; background: #d1d5d0; }
.tbi-single-article .featured-image img { width: 100%; height: auto; display: block; max-height: 520px; object-fit: cover; }
.tbi-article-grid { display: grid; grid-template-columns: minmax(0, 730px) minmax(235px, 320px); gap: clamp(25px, 4vw, 60px); align-items: start; }
.tbi-article-main { min-width: 0; }
.tbi-single-article .entry-content { margin-top: 0; max-width: 100%; font-size: 1.03rem; line-height: 1.86; color: #2b3942; overflow-wrap: break-word; }
.tbi-single-article .entry-content > :first-child { margin-top: 0; }
.tbi-single-article .entry-content p, .tbi-single-article .entry-content ul, .tbi-single-article .entry-content ol { margin-bottom: 1.35em; }
.tbi-single-article .entry-content h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); margin: 1.9em 0 .75em; }
.tbi-single-article .entry-content h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 1.55em 0 .65em; }
.tbi-single-article .entry-content h4 { font-size: 1.17rem; margin: 1.35em 0 .55em; }
.tbi-single-article .entry-content a { color: var(--tbi-link); text-decoration: underline; text-decoration-thickness: 1.4px; text-underline-offset: 3px; font-weight: 600; }
.tbi-single-article .entry-content a:hover { color: #722818; text-decoration-thickness: 2px; }
.tbi-single-article .entry-content img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.tbi-single-article .entry-content figure, .tbi-single-article .entry-content .wp-caption { max-width: 100%; margin-left: auto; margin-right: auto; }
.tbi-single-article .entry-content .alignleft { float: left; margin-right: 22px; }
.tbi-single-article .entry-content .alignright { float: right; margin-left: 22px; }
.tbi-single-article .entry-content figcaption, .tbi-single-article .entry-content .wp-caption-text { color: var(--tbi-muted); text-align: center; font-size: .8rem; line-height: 1.5; margin-top: 8px; }
.tbi-single-article .entry-content blockquote { border-left: 4px solid var(--tbi-accent); background: #eee8dc; padding: 17px 22px; margin: 24px 0; font-family: var(--tbi-serif); }
.tbi-single-article .entry-content ul, .tbi-single-article .entry-content ol { padding-left: 26px; }
.tbi-single-article .entry-content .wp-block-embed, .tbi-single-article .entry-content iframe { max-width: 100%; }
.tbi-single-article .entry-content .wp-block-embed iframe { width: 100%; }
.tbi-single-article .entry-content .google-maps, .tbi-single-article .entry-content .google-map { position: relative; width: 100%; height: 0; padding-bottom: 70%; margin: 22px auto; overflow: hidden; border-radius: 13px; }
.tbi-single-article .entry-content .google-maps iframe, .tbi-single-article .entry-content .google-map iframe { position: absolute; inset: 0; height: 100% !important; width: 100% !important; border: 0; }
.tbi-single-article .entry-content .wp-block-table { overflow-x: auto; overscroll-behavior-inline: contain; }
.tbi-single-article .entry-content .tbi-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; margin: 20px 0; overscroll-behavior-inline: contain; border: 1px solid var(--tbi-line); border-radius: 10px; }
.tbi-single-article .entry-content table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--tbi-line); border-radius: 10px; width: 100%; background: var(--tbi-surface); font-size: .9rem; line-height: 1.6; }
.tbi-single-article .entry-content .tbi-table-scroll table { border: 0; border-radius: 0; min-width: 530px; margin: 0; }
.tbi-single-article .entry-content th, .tbi-single-article .entry-content td { text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid #e9e0d4; vertical-align: top; }
.tbi-single-article .entry-content th { color: var(--tbi-ink-deep); font-weight: 700; background: var(--tbi-sage-soft); }
.tbi-single-article .entry-content tr:last-child td { border-bottom: none; }
.tbi-single-article .entry-content tr:nth-child(even) td { background: #faf6ef; }
.tbi-single-article .entry-content .ez-toc-container { width: 100% !important; max-width: 100%; padding: 18px 21px; margin: 25px 0; background: #f3ecdf; border: 1px solid #e1d6c8; border-radius: 13px; box-shadow: none; }
.tbi-single-article .entry-content .ez-toc-title { font: 700 1.22rem/1.35 var(--tbi-serif); }
.tbi-single-article .entry-content .ez-toc-list a { color: var(--tbi-ink) !important; text-decoration: none !important; font-weight: 500; line-height: 1.7; }
.tbi-single-article .entry-content .ez-toc-list a:hover { color: var(--tbi-link) !important; text-decoration: underline !important; }
.tbi-single-article .entry-content .crp_related, .tbi-single-article .entry-content .crp_related ul { max-width: 100%; }
.tbi-article-aside { display: grid; gap: 20px; }
.tbi-aside-card { border: 1px solid var(--tbi-line); background: #fffaf4; padding: 23px; border-radius: 14px; box-shadow: var(--tbi-shadow); }
.tbi-aside-card h2 { font-size: 1.28rem; margin: 0 0 12px; }
.tbi-aside-card p:not(.tbi-overline) { font-size: .87rem; line-height: 1.58; color: var(--tbi-muted); margin: 0 0 16px; }
.tbi-aside-card .tbi-button { font-size: .78rem; padding: 11px 14px; }
.tbi-aside-related { background: #fff; }
.tbi-aside-story { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; color: var(--tbi-ink); font-size: .84rem; line-height: 1.4; font-weight: 700; padding: 13px 0; border-top: 1px solid var(--tbi-line); }
.tbi-aside-story:hover { color: var(--tbi-link); text-decoration: underline; }
.tbi-aside-story img { display: block; width: 86px; height: 64px; flex: 0 0 86px; border-radius: 7px; object-fit: cover; }

/* GeneratePress footer widgets and credits retained for plugin/hook compatibility. */
.site-footer { background: var(--tbi-ink-deep); color: #e8edee; }
.tbi-footer-columns { max-width: 1220px; margin: 0 auto; padding: 48px 22px 30px; display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 35px; }
.tbi-footer-columns strong { display: block; color: #fff; font-weight: 700; margin-bottom: 13px; font-size: .94rem; }
.tbi-footer-intro strong { text-transform: uppercase; letter-spacing: .05em; }
.tbi-footer-intro p { font-size: .84rem; color: #d1d9db; max-width: 270px; margin: 0; line-height: 1.6; }
.tbi-footer-columns ul { list-style: none; padding: 0; margin: 0; }
.tbi-footer-columns li { margin-bottom: 7px; }
.tbi-footer-columns a { color: #d9e1e1; font-size: .84rem; text-decoration: none; }
.tbi-footer-columns a:hover { text-decoration: underline; color: #fff; }
.site-footer .site-info { background: #142632; color: #d9e1e1; }
.site-footer .inside-site-info { max-width: 1176px; font-size: .76rem; min-height: 50px; }

/* Legacy GeneratePress pages/other archives should remain readable. */
body:not(.single-post) .entry-content a { color: var(--tbi-link); text-decoration: underline; text-underline-offset: 3px; }
body.page .inside-article, body.error404 .inside-article { background: var(--tbi-surface); padding: 28px; border-radius: 14px; margin: 28px 0; }
body.page .entry-content img { max-width: 100%; height: auto; }

@media (max-width: 1020px) {
  .site-header .inside-header { padding: 10px 17px; }
  .site-header .main-title { font-size: 15px; }
  .site-header .site-branding:before { width: 43px; height: 36px; flex-basis: 43px; }
  .main-navigation .main-nav ul li a { padding-inline: 10px; }
  .tbi-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbi-plan-card { min-height: 124px; padding: 17px; }
  .tbi-post-grid { gap: 14px; }
  .tbi-article-grid { gap: 25px; grid-template-columns: minmax(0, 1fr) 245px; }
  .tbi-footer-columns { gap: 20px; }
}

@media (max-width: 768px) {
  .site-header .inside-header { min-height: 65px; padding: 11px 15px; }
  .site-header .main-title { font-size: 13px; max-width: 205px; }
  .main-navigation .main-nav ul li a { line-height: 44px; }
  .main-navigation .menu-toggle { padding: 0 10px; }
  .tbi-nav-search { margin-inline-start: auto; }
  .tbi-nav-search-panel { right: -12px; }
  body .site-content { padding-inline: 14px; }
  .tbi-page { padding-bottom: 48px; }
  .tbi-home-hero, .tbi-category-hero { grid-template-columns: 1fr; }
  .tbi-hero-copy { padding: 35px 24px 29px; }
  .tbi-hero-copy h1 { max-width: 630px; }
  .tbi-hero-photo { min-height: 260px; }
  .tbi-hero-photo-label { font-size: .68rem; }
  .tbi-category-hero { min-height: 0; }
  .tbi-category-photo { min-height: 235px; }
  .tbi-section { margin-top: 42px; }
  .tbi-section-heading { align-items: flex-start; }
  .tbi-destination-grid { gap: 10px; }
  .tbi-destination-card { min-height: 168px; }
  .tbi-destination-body { left: 13px; bottom: 15px; right: 25px; }
  .tbi-destination-body strong { font-size: 1.38rem; }
  .tbi-destination-body small { display: none; }
  .tbi-destination-arrow { right: 8px; bottom: 11px; transform: scale(.8); }
  .tbi-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbi-picks-grid { grid-template-rows: repeat(2, 155px); }
  .tbi-article-grid { grid-template-columns: 1fr; }
  .tbi-article-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  body.single-post .tbi-single-article .inside-article { padding: 20px 0 45px; }
  .tbi-single-article .entry-title { font-size: clamp(2rem, 6vw, 3rem); }
  .tbi-single-article .featured-image { margin-bottom: 21px; }
  .tbi-category-tools { flex-direction: column; align-items: stretch; }
  .tbi-category-search { flex: 0 0 auto; }
  .tbi-footer-columns { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 540px) {
  .site-header .site-branding:before { width: 37px; height: 32px; flex-basis: 37px; }
  .site-header .site-branding { gap: 7px; }
  .site-header .main-title { font-size: .74rem; }
  body .site-content { padding-inline: 10px; }
  .tbi-home-hero { border-radius: 0 0 14px 14px; }
  .tbi-hero-copy { padding: 28px 19px 24px; }
  .tbi-hero-copy h1 { font-size: clamp(2rem, 9vw, 2.9rem); }
  .tbi-hero-lead { font-size: .95rem; }
  .tbi-search-form { gap: 0; }
  .tbi-search-form button { padding: 11px 12px; font-size: .84rem; }
  .tbi-search-form input[type="search"] { padding: 9px 7px; font-size: .82rem; }
  .tbi-hero-photo { min-height: 215px; }
  .tbi-section { margin-top: 35px; }
  .tbi-section-heading { display: block; }
  .tbi-section-heading h2 { font-size: 1.72rem; }
  .tbi-section-link { margin-top: 10px; font-size: .8rem; }
  .tbi-destination-grid { grid-template-columns: 1fr; }
  .tbi-destination-card { min-height: 130px; }
  .tbi-destination-body { left: 18px; bottom: 16px; }
  .tbi-destination-body strong { font-size: 1.6rem; }
  .tbi-destination-body small { display: block; }
  .tbi-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tbi-plan-card { display: block; padding: 13px 11px; min-height: 165px; }
  .tbi-plan-icon .tbi-icon { height: 27px; width: 27px; }
  .tbi-plan-card strong { font-size: .91rem; margin: 7px 0; }
  .tbi-plan-card small { font-size: .73rem; }
  .tbi-plan-arrow { display: none; }
  .tbi-picks-grid { grid-template-columns: 1fr; grid-template-rows: 235px 170px 170px; gap: 11px; }
  .tbi-pick-0 { grid-row: auto; }
  .tbi-pick-content { padding: 15px; }
  .tbi-pick strong, .tbi-pick-0 strong { font-size: 1.27rem; }
  .tbi-post-grid { grid-template-columns: 1fr; gap: 15px; }
  .tbi-travel-card { display: grid; grid-template-columns: 120px minmax(0,1fr); min-height: 128px; }
  .tbi-card-visual { height: 100%; min-height: 132px; aspect-ratio: auto; }
  .tbi-card-body { padding: 12px 11px; }
  .tbi-card-title { font-size: .98rem; margin: 5px 0; }
  .tbi-card-excerpt { display: none; }
  .tbi-travel-card time { font-size: .7rem; }
  .tbi-eyebrow { font-size: .6rem; }
  .tbi-category-copy { padding: 23px 19px 26px; }
  .tbi-category-copy h1 { font-size: 2.7rem; }
  .tbi-category-photo { min-height: 180px; }
  .tbi-category-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tbi-category-shortcuts a { padding: 8px 9px; font-size: .75rem; }
  .tbi-count { display: block; margin-top: 5px; }
  .tbi-single-article .entry-title { font-size: clamp(1.86rem, 8vw, 2.4rem); }
  .tbi-single-article .entry-meta { font-size: .79rem; }
  .tbi-single-article .featured-image { border-radius: 11px; }
  .tbi-single-article .entry-content { font-size: 1rem; line-height: 1.82; }
  .tbi-single-article .entry-content h2 { font-size: 1.5rem; }
  .tbi-single-article .entry-content h3 { font-size: 1.28rem; }
  .tbi-single-article .entry-content .alignleft, .tbi-single-article .entry-content .alignright { float: none; margin: 16px auto; }
  .tbi-article-aside { grid-template-columns: 1fr; }
  .tbi-single-article .entry-content .ez-toc-container { padding: 13px; }
  .tbi-single-article .entry-content .google-maps, .tbi-single-article .entry-content .google-map { padding-bottom: 78%; }
  .tbi-footer-columns { padding: 33px 17px; gap: 24px; }
  .tbi-footer-intro { grid-column: 1 / -1; }
  .tbi-footer-columns strong { font-size: .87rem; }
  .tbi-footer-columns a { font-size: .8rem; }
}

/* Adapt only safe, fully labeled simple tables; preserve original tables for screen readers. */
.tbi-table-mobile-cards { display: none; }
@media (max-width: 680px) {
  .tbi-single-article .entry-content table.tbi-table-card-source { display: none; }
  .tbi-single-article .entry-content .tbi-table-scroll.tbi-cardified { border: none; overflow: visible; }
  .tbi-single-article .entry-content .tbi-table-scroll.tbi-cardified > .tbi-table-mobile-cards { display: grid; }
  .tbi-table-mobile-cards { display: grid; gap: 10px; margin: 15px 0; }
  .tbi-table-mobile-card { padding: 14px 15px; background: #fff; border: 1px solid var(--tbi-line); border-radius: 12px; box-shadow: var(--tbi-shadow); }
  .tbi-table-mobile-card dl { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr); gap: 9px 10px; margin: 0; font-size: .88rem; }
  .tbi-table-mobile-card dt { font-weight: 700; color: var(--tbi-ink-deep); overflow-wrap: anywhere; }
  .tbi-table-mobile-card dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
  .tbi-table-mobile-card dd a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tbi-destination-card, .tbi-pick, .tbi-card-visual img { transition: none; }
}
