/* Blog archive and single post. Uses the live design tokens from feed.css (light and dark). */
.v2t-blog {
  --blog-link: var(--blue-600);
  --blog-measure: 68ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .v2t-blog { --blog-link: #8db3ff; }
}
[data-theme="dark"] .v2t-blog { --blog-link: #8db3ff; }

/* Full-width reading layout: collapse the app-shell sidebars on desktop. The mobile drawer is left alone. */
.v2t-blog .v2t-toolbar { display: none; }
@media (min-width: 901px) {
  .v2t-blog .v2t-app__body,
  .v2t-blog .v2t-app__body.has-right-rail { grid-template-columns: minmax(0, 1fr); }
  .v2t-blog .v2t-sidebar,
  .v2t-blog .v2t-sidebar-right { display: none; }
}

.v2t-bwrap { max-width: 1160px; margin: 0 auto; padding: 28px 0 72px; }
.v2t-bwrap--post { max-width: 1040px; }

/* breadcrumb */
.v2t-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0 0 18px; padding: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--text-muted); }
.v2t-crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--text-faint); }
.v2t-crumbs a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.v2t-crumbs a:hover { color: var(--text); }

/* archive header */
.v2t-bhead { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.v2t-bhead__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 14px; color: var(--text); }
.v2t-bhead__intro { max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.v2t-bhead__intro p { margin: 0; }

/* category filter */
.v2t-bfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.v2t-bfilter__chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 999px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--text-muted); background: var(--surface); }
.v2t-bfilter__chip:hover { color: var(--text); border-color: var(--text-muted); }
.v2t-bfilter__chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #f2f6fc; }
[data-theme="dark"] .v2t-bfilter__chip.is-active { background: var(--blue-600); border-color: var(--blue-600); }

/* grid */
.v2t-bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.v2t-bcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.v2t-bcard:hover, .v2t-bcard:focus-within { border-color: var(--border-strong); }
.v2t-bcard__media { display: block; aspect-ratio: 16 / 9; background: var(--surface-sunken); overflow: hidden; }
.v2t-bcard__img { width: 100%; height: 100%; object-fit: cover; }
.v2t-bcard__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: rgba(231, 237, 246, 0.6); background: radial-gradient(90% 130% at 100% 0%, rgba(14, 165, 233, 0.32), transparent 60%), linear-gradient(135deg, var(--ink-900), var(--ink-700)); }
.v2t-bcard__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.v2t-bcard__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2t-bcard__title a { color: var(--text); }
.v2t-bcard__title a:hover { color: var(--blog-link); }
.v2t-bcard__title a:focus-visible, .v2t-bfilter__chip:focus-visible, .v2t-bpager a:focus-visible, .v2t-bcta__btn:focus-visible, .v2t-post__toc a:focus-visible, .v2t-crumbs a:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 3px; }
.v2t-bcard__excerpt { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v2t-bcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.v2t-bcard__author { color: var(--text); }

.v2t-bcard--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.v2t-bcard--featured .v2t-bcard__media { aspect-ratio: auto; min-height: 320px; }
.v2t-bcard--featured .v2t-bcard__body { justify-content: center; gap: 14px; padding: 32px 36px; }
.v2t-bcard--featured .v2t-bcard__title { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; -webkit-line-clamp: 3; }
.v2t-bcard--featured .v2t-bcard__excerpt { font-size: 16px; -webkit-line-clamp: 4; }
.v2t-bcard--featured .v2t-bcard__meta { margin-top: 6px; }

/* category chips (reuse the topic palette) */
.v2t-bchip { align-self: flex-start; display: inline-block; padding: 4px 10px; border-radius: 4px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; background: var(--surface-sunken); color: var(--text-muted); border: 1px solid var(--border); }
.v2t-bchip--visa-guides { background: var(--topic-visa-bg); color: var(--topic-visa-text); border-color: transparent; }
.v2t-bchip--travelnews { background: var(--topic-news-bg); color: var(--topic-news-text); border-color: transparent; }

/* avatar */
.v2t-bavatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-sunken); }
.v2t-bavatar--initial { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--text); border: 1px solid var(--border-strong); }

/* pagination */
.v2t-bpager { margin-top: 36px; }
.v2t-bpager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; margin: 0 6px 8px 0; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); background: var(--surface); }
.v2t-bpager a.page-numbers:hover { color: var(--text); border-color: var(--text-muted); }
.v2t-bpager .page-numbers.current { background: var(--ink-900); border-color: var(--ink-900); color: #f2f6fc; }
[data-theme="dark"] .v2t-bpager .page-numbers.current { background: var(--blue-600); border-color: var(--blue-600); }
.v2t-bempty { padding: 40px 0; color: var(--text-muted); }

/* call to action band */
.v2t-bcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 56px; padding: 24px 28px; border: 1px solid var(--border); border-left: 3px solid var(--blue-600); border-radius: var(--radius-md); background: var(--surface); }
.v2t-bcta__text { margin: 0; font-size: 16px; line-height: 1.5; max-width: 52ch; color: var(--text); }
.v2t-bcta__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm); background: var(--blue-600); color: #fff; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; }
.v2t-bcta__btn:hover { background: var(--blue-500); }

/* single post */
.v2t-post__head { max-width: 860px; margin: 0 auto 28px; }
.v2t-post__title { margin: 14px 0 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -0.01em; color: var(--text); }
.v2t-post__deck { margin: 0 0 22px; font-size: 19px; line-height: 1.5; color: var(--text-muted); max-width: 60ch; }
.v2t-post__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.v2t-post__byline .v2t-bavatar { width: 44px; height: 44px; }
.v2t-post__who { display: flex; flex-direction: column; gap: 2px; }
.v2t-post__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }
.v2t-post__name a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.v2t-post__name a:hover { color: var(--blog-link); }
.v2t-post__role { font-size: 13px; color: var(--text-muted); }
.v2t-post__when { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.v2t-post__hero { max-width: 1040px; margin: 0 auto 36px; border-radius: var(--radius-md); overflow: hidden; }
.v2t-post__hero img { width: 100%; height: auto; }

.v2t-post__layout { display: block; max-width: 860px; margin: 0 auto; }
.v2t-post__layout.has-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; max-width: 1040px; align-items: start; }
.v2t-post__toc { position: sticky; top: calc(var(--header-h) + 20px); font-size: 14px; }
.v2t-post__toc summary { cursor: pointer; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); padding: 6px 0; }
.v2t-post__toc ol { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 1px solid var(--border-strong); display: flex; flex-direction: column; gap: 2px; }
.v2t-post__toc a { display: block; padding: 6px 0; line-height: 1.35; color: var(--text-muted); }
.v2t-post__toc a:hover { color: var(--blog-link); }

.v2t-post__content { max-width: var(--blog-measure); font-size: 17px; line-height: 1.7; color: var(--text); }
.v2t-post__layout:not(.has-toc) .v2t-post__content { margin: 0 auto; }
.v2t-post__content > :first-child { margin-top: 0; }
.v2t-post__content p { margin: 0 0 1.15em; }
.v2t-post__content h2 { font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.2; margin: 2.1em 0 0.6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.v2t-post__content h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.3; margin: 1.8em 0 0.5em; }
.v2t-post__content ul, .v2t-post__content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.v2t-post__content li { margin: 0.35em 0; }
.v2t-post__content a { color: var(--blog-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.v2t-post__content a:hover { text-decoration-thickness: 2px; }
.v2t-post__content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--border-strong); color: var(--text-muted); }
.v2t-post__content table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.v2t-post__content th, .v2t-post__content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.v2t-post__content th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); }
.v2t-post__content img { height: auto; border-radius: var(--radius-sm); }
.v2t-post__note { margin-top: 2.2em; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--amber-600); border-radius: var(--radius-sm); background: var(--amber-100); font-size: 14.5px; line-height: 1.55; }

/* author box and related */
.v2t-abox { display: flex; gap: 20px; max-width: 860px; margin: 56px auto 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.v2t-abox .v2t-bavatar { width: 72px; height: 72px; }
.v2t-abox__name { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.v2t-abox__text p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.v2t-abox__links { display: flex; gap: 18px; margin: 4px 0 0 !important; }
.v2t-abox__links a { color: var(--blog-link); text-decoration: underline; text-underline-offset: 3px; font-family: var(--font-mono); font-size: 12.5px; }
.v2t-related { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); }
.v2t-related__title { margin: 0 0 20px; font-family: var(--font-display); font-weight: 700; font-size: 24px; }

/* responsive */
@media (max-width: 1100px) {
  .v2t-bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .v2t-bcard--featured { grid-template-columns: minmax(0, 1fr); }
  .v2t-bcard--featured .v2t-bcard__media { min-height: 0; aspect-ratio: 16 / 9; }
  .v2t-bcard--featured .v2t-bcard__body { padding: 20px; }
  .v2t-post__layout.has-toc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .v2t-post__toc { position: static; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 14px 10px; background: var(--surface); }
  .v2t-post__when { margin-left: 0; }
}
@media (max-width: 700px) {
  .v2t-bwrap { padding: 20px 0 56px; }
  .v2t-bgrid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .v2t-post__content { font-size: 16.5px; }
  .v2t-abox { flex-direction: column; }
  .v2t-bcta { padding: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .v2t-bcard, .v2t-bfilter__chip, .v2t-bcta__btn { transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
}
/* ---- Country flags on visa guides ---- */
.v2t-bcard__media.has-flag { position: relative; background: var(--ink-900); }
.v2t-bcard__flagimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.v2t-bcard__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 28, 51, 0.9) 0%, rgba(10, 28, 51, 0.4) 45%, rgba(10, 28, 51, 0) 72%); }
.v2t-bcard__country { position: absolute; left: 18px; right: 18px; bottom: 14px; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; color: #fff; }
.v2t-bcard--featured .v2t-bcard__country { left: 28px; bottom: 24px; font-size: clamp(28px, 3.4vw, 40px); }
.v2t-stamp { position: absolute; top: 12px; right: 12px; transform: rotate(-4deg); padding: 3px 9px; border: 1.5px dashed rgba(255, 255, 255, 0.92); border-radius: 4px; background: rgba(10, 28, 51, 0.62); color: #fff; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; }
@media (prefers-reduced-motion: no-preference) {
  .v2t-bcard__flagimg { transition: transform 0.35s ease; }
  .v2t-bcard:hover .v2t-bcard__flagimg { transform: scale(1.04); }
}

.v2t-flagrail { margin: 0 0 26px; }
.v2t-flagrail__label { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }
.v2t-flagrail ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.v2t-flagrail a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 14px 6px 8px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.v2t-flagrail a:hover { border-color: var(--blog-link); color: var(--blog-link); }
.v2t-flagrail a:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }
.v2t-flagico { width: 28px; height: 21px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(16, 26, 44, 0.2); flex: none; vertical-align: middle; }

.v2t-post__flagband { position: relative; max-width: 860px; height: 150px; margin: 0 auto 28px; border-radius: var(--radius-md); overflow: hidden; background: var(--ink-900); }
.v2t-post__flagband img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2t-post__verified { position: absolute; left: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 6px; background: rgba(10, 28, 51, 0.84); color: #fff; font-size: 12px; line-height: 1.3; }
.v2t-post__verified time { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
@media (max-width: 640px) {
  .v2t-post__flagband { height: 110px; }
  .v2t-bcard__country { font-size: 20px; }
}
/* flag banner: show the whole flag as a tile, not a crop */
.v2t-post__flagband { display: flex; align-items: center; gap: 20px; height: auto; padding: 14px; background: var(--surface-sunken); border: 1px solid var(--border); }
.v2t-post__flagband img { width: 160px; height: 120px; flex: none; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(16, 26, 44, 0.22), 0 6px 18px rgba(10, 28, 51, 0.25); }
.v2t-post__verified { position: static; background: transparent; color: var(--text); padding: 0; gap: 4px; font-size: 14px; }
.v2t-post__verified span { color: var(--text-muted); }
.v2t-post__verified time { font-size: 20px; font-family: var(--font-display); font-weight: 700; }
@media (max-width: 640px) {
  .v2t-post__flagband { height: auto; gap: 14px; padding: 12px; }
  .v2t-post__flagband img { width: 112px; height: 84px; }
  .v2t-post__verified time { font-size: 17px; }
}