/* ==========================================================================
   OmneTools — Blog design system (v2, 2026)
   --------------------------------------------------------------------------
   A dedicated, self-contained stylesheet for the blog. Everything is namespaced
   with `.otb-` so it can never collide with the tool pages in style.css.

   WHY THIS FILE EXISTS
   The old blog reused `.ot-card` (the tool-card component) and relied on
   `aspect-ratio` + `object-fit` directly on the <img> inside a flex column.
   Combined with text baked into SVG covers, that produced the stretched,
   clipped thumbnails and overflowing category pills you reported.

   The fix here is structural:
     * every thumbnail lives in a `.otb-card-media` box with its OWN fixed
       aspect-ratio, and the <img> inside is 100% x 100% + object-fit:cover.
       This cannot stretch, at any width, in any browser.
     * covers no longer contain text, so nothing can be clipped. The title is
       real HTML text under the image.
     * the meta row uses nowrap + a compact format so the date can never wrap
       onto two lines.
     * the category chip is sized by its content with generous padding.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens --- */
.otb-wrap,
.otb-article,
.otb-catpage {
  --otb-ink:      var(--text, #0f172a);
  --otb-ink-2:    var(--text-2, #475569);
  --otb-ink-3:    var(--text-3, #64748b);
  --otb-line:     var(--border-sub, #e2e8f0);
  --otb-line-2:   var(--border, #e5e7eb);
  --otb-surface:  var(--bg-elev-1, #ffffff);
  --otb-soft:     var(--bg-soft, #f8fafc);
  --otb-brand:    var(--brand, #4f46e5);
  --otb-brand-2:  var(--brand-2, #7c3aed);
  --otb-accent:   #0d9488;
  --otb-radius:   18px;
  --otb-shadow-1: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .14);
  --otb-shadow-2: 0 18px 44px -20px rgba(15, 23, 42, .26);
}

/* ==========================================================================
   1. BREADCRUMB
   ========================================================================== */
.otb-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 4px 0 22px;
  font-size: 12.5px; font-weight: 600; color: var(--otb-ink-3);
  list-style: none; padding: 0;
}
.otb-crumbs li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.otb-crumbs a { color: var(--otb-ink-3); text-decoration: none; transition: color .15s ease; }
.otb-crumbs a:hover { color: var(--otb-brand); }
.otb-crumbs .otb-crumb-sep { color: var(--otb-line); }
.otb-crumbs .otb-crumb-here {
  color: var(--otb-ink); font-weight: 700;
  max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ==========================================================================
   2. BLOG HERO (index)
   ========================================================================== */
.otb-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  align-items: center; gap: 30px;
  margin: 0 0 30px; padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 90% at 88% 8%, rgba(94, 234, 212, .26), transparent 60%),
    radial-gradient(ellipse 70% 80% at 4% 100%, rgba(139, 92, 246, .32), transparent 62%),
    linear-gradient(128deg, #0b1220 0%, #161f3d 48%, #241c4a 100%);
  box-shadow: 0 24px 60px -28px rgba(20, 27, 60, .55);
}
.otb-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 20%, transparent 75%);
}
.otb-hero-copy { position: relative; z-index: 2; min-width: 0; }
.otb-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07);
  color: #c7d2fe; font-size: 10.5px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
}
.otb-kicker-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #5eead4;
  box-shadow: 0 0 0 4px rgba(94,234,212,.16);
}
.otb-hero h1 {
  margin: 20px 0 14px; color: #fff;
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06;
  letter-spacing: -.04em; font-weight: 850; text-wrap: balance;
}
.otb-hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #a5b4fc 0%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.otb-hero-lede {
  max-width: 58ch; margin: 0; color: #cdd7f0;
  font-size: clamp(14.5px, 1.5vw, 16.5px); line-height: 1.8;
}
.otb-hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 22px; padding: 0; list-style: none;
  color: #dbe3fb; font-size: 12.5px; font-weight: 650;
}
.otb-hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.otb-hero-points li::before {
  content: ''; width: 15px; height: 15px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(94,234,212,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}
/* Right-hand stat stack — replaces the old decorative "card" art that clipped. */
.otb-hero-stats {
  position: relative; z-index: 2;
  display: grid; gap: 11px; min-width: 0;
}
.otb-hero-stat {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 17px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(140deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  backdrop-filter: blur(10px);
}
.otb-hero-stat-n {
  font-size: 22px; font-weight: 850; line-height: 1; letter-spacing: -.03em;
  color: #fff; flex: 0 0 auto;
}
.otb-hero-stat-l {
  font-size: 11.5px; font-weight: 650; line-height: 1.35; color: #b9c6e8;
}

/* ==========================================================================
   3. CATEGORY EXPLORER  ("Explore by category")
   ========================================================================== */
.otb-explorer {
  margin: 0 0 32px; padding: 20px;
  border: 1px solid var(--otb-line); border-radius: 22px;
  background: var(--otb-surface);
  box-shadow: var(--otb-shadow-1);
}
.otb-explorer-head {
  display: flex; align-items: center; gap: 13px;
  margin: 0 0 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--otb-line);
}
.otb-explorer-icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(135deg, var(--otb-brand), var(--otb-brand-2));
  color: #fff; font-size: 19px; line-height: 1;
  box-shadow: 0 8px 18px -8px rgba(99, 82, 237, .7);
}
.otb-explorer-title { min-width: 0; }
.otb-explorer-title strong {
  display: block; color: var(--otb-ink);
  font-size: 15.5px; font-weight: 850; letter-spacing: -.02em;
}
.otb-explorer-title small {
  display: block; margin-top: 3px;
  color: var(--otb-ink-3); font-size: 12.5px; line-height: 1.5;
}
.otb-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.otb-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--otb-line); background: var(--otb-surface);
  color: var(--otb-ink-2); text-decoration: none;
  font-size: 12.5px; font-weight: 700; line-height: 1.25;
  white-space: nowrap;
  transition: transform .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.otb-chip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--otb-brand) 45%, var(--otb-line));
  color: var(--otb-brand);
  box-shadow: 0 8px 18px -12px rgba(70, 77, 160, .55);
}
.otb-chip-n {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--otb-soft); color: var(--otb-ink-3);
  font-size: 10.5px; font-weight: 800;
}
.otb-chip.is-active {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, var(--otb-brand), var(--otb-brand-2));
  box-shadow: 0 10px 22px -12px rgba(99, 82, 237, .85);
}
.otb-chip.is-active .otb-chip-n { background: rgba(255,255,255,.22); color: #fff; }

/* ==========================================================================
   4. POST GRID + CARD
   ========================================================================== */
.otb-section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 12px;
  margin: 0 0 18px;
}
.otb-section-head h2 {
  margin: 0; color: var(--otb-ink);
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 830; letter-spacing: -.025em;
}
.otb-section-head p {
  margin: 5px 0 0; color: var(--otb-ink-3); font-size: 13.5px;
}

.otb-grid {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
  align-items: start;                 /* cards keep their own height — no stretch */
}
@media (min-width: 620px)  { .otb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .otb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.otb-card {
  display: flex; flex-direction: column;
  min-width: 0; overflow: hidden;
  border: 1px solid var(--otb-line); border-radius: var(--otb-radius);
  background: var(--otb-surface);
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, border-color .18s ease;
}
.otb-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--otb-brand) 30%, var(--otb-line));
  box-shadow: var(--otb-shadow-2);
}

/* ---- THUMBNAIL: bulletproof fixed-ratio box (never stretches, never clips) --- */
.otb-card-media {
  position: relative; display: block;
  width: 100%; aspect-ratio: 16 / 9;   /* the box owns the ratio, not the image */
  overflow: hidden; text-decoration: none;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
}
.otb-card-media img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border: 0;
}
.otb-card:hover .otb-card-media img { transform: scale(1.035); }
.otb-card-media img { transition: transform .5s cubic-bezier(.16,1,.3,1); }

.otb-card-chip {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: calc(100% - 24px);
  padding: 6px 11px; border-radius: 999px;
  background: rgba(9, 14, 30, .72);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: .045em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.otb-card-body {
  display: flex; flex-direction: column; flex: 1 1 auto;
  gap: 9px; padding: 17px 18px 18px;
  min-width: 0;
}
.otb-card-title {
  margin: 0; font-size: 16.5px; line-height: 1.38;
  font-weight: 780; letter-spacing: -.015em;
  color: var(--otb-ink);
  overflow-wrap: anywhere;
}
.otb-card-title a { color: inherit; text-decoration: none; }
.otb-card-title a:hover { color: var(--otb-brand); }

.otb-card-excerpt {
  margin: 0; color: var(--otb-ink-3);
  font-size: 13.5px; line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.otb-card-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 13px;
  border-top: 1px solid var(--otb-line);
  font-size: 12px; color: var(--otb-ink-3); font-weight: 600;
}
.otb-card-foot time,
.otb-card-foot .otb-read {
  white-space: nowrap;                 /* date can never break onto two lines */
  display: inline-flex; align-items: center; gap: 5px;
}
.otb-card-foot .otb-dot { color: var(--otb-line); }
.otb-card-foot svg { width: 12px; height: 12px; flex: 0 0 auto; opacity: .8; }
.otb-card-more {
  margin-left: auto; color: var(--otb-brand);
  font-weight: 800; font-size: 12.5px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.otb-card-more:hover { color: var(--otb-brand-2); }

/* ==========================================================================
   5. EMPTY STATE (a category with very few posts)
   ========================================================================== */
.otb-empty {
  display: grid; place-items: center; text-align: center;
  gap: 10px; padding: 46px 24px;
  border: 1px dashed var(--otb-line); border-radius: var(--otb-radius);
  background: var(--otb-soft);
}
.otb-empty-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--otb-surface); border: 1px solid var(--otb-line);
  color: var(--otb-brand); font-size: 22px;
}
.otb-empty h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--otb-ink); }
.otb-empty p { margin: 0; max-width: 46ch; color: var(--otb-ink-3); font-size: 13.5px; line-height: 1.65; }

/* ==========================================================================
   6. PAGINATION
   ========================================================================== */
.otb-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin: 34px 0 0;
}
.otb-pager a, .otb-pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--otb-line); border-radius: 12px;
  background: var(--otb-surface); color: var(--otb-ink-2);
  font-size: 13px; font-weight: 750; text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, color .16s ease;
}
.otb-pager a:hover { transform: translateY(-2px); border-color: var(--otb-brand); color: var(--otb-brand); }
.otb-pager .is-current {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, var(--otb-brand), var(--otb-brand-2));
}
.otb-pager .is-disabled { opacity: .45; pointer-events: none; }

/* ==========================================================================
   7. SINGLE ARTICLE
   ========================================================================== */
.otb-article-container { max-width: 1040px; margin-inline: auto; }

.otb-article-head {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 0 26px; padding: clamp(24px, 4vw, 46px);
  border-radius: 26px; color: #fff;
  background:
    radial-gradient(ellipse 55% 85% at 96% 4%, rgba(94, 234, 212, .22), transparent 58%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(139, 92, 246, .3), transparent 60%),
    linear-gradient(130deg, #0c1327 0%, #1a2445 55%, #271f4e 100%);
  box-shadow: 0 22px 54px -30px rgba(20, 27, 60, .6);
}
.otb-article-head::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 80% 0%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 80% 0%, #000 15%, transparent 72%);
}
.otb-article-cat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.08);
  color: #dbeafe; text-decoration: none;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.otb-article-cat:hover { background: rgba(255,255,255,.16); }
.otb-article-head h1 {
  margin: 18px 0 14px; color: #fff;
  font-size: clamp(28px, 4.2vw, 46px); line-height: 1.1;
  letter-spacing: -.042em; font-weight: 880; text-wrap: balance;
}
.otb-article-deck {
  max-width: 70ch; margin: 0; color: #cfd9f2;
  font-size: clamp(14.5px, 1.55vw, 17.5px); line-height: 1.78;
}
.otb-article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px;
  margin-top: 22px; padding: 0; list-style: none;
  color: #b9c6e8; font-size: 12.5px; font-weight: 650;
}
.otb-article-meta li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.otb-article-meta svg { width: 13px; height: 13px; flex: 0 0 auto; opacity: .85; }

/* Cover sits BELOW the header — one hero only, never two stacked blocks. */
.otb-article-cover {
  margin: 0 0 30px; border-radius: 20px; overflow: hidden;
  aspect-ratio: 16 / 9; position: relative;
  border: 1px solid var(--otb-line);
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  box-shadow: var(--otb-shadow-1);
}
.otb-article-cover img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}

/* ---- Prose ---------------------------------------------------------------- */
.otb-prose {
  max-width: 760px; margin-inline: auto;
  color: var(--otb-ink); font-size: 17px; line-height: 1.85;
}
.otb-prose > *:first-child { margin-top: 0; }
.otb-prose p { margin: 0 0 1.15rem; }
.otb-prose h2 {
  margin: 2.4rem 0 .75rem; padding-bottom: .5rem;
  font-size: clamp(20px, 2.3vw, 26px); font-weight: 800;
  line-height: 1.28; letter-spacing: -.025em; color: var(--otb-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--otb-brand) 18%, transparent);
}
.otb-prose h3 {
  margin: 1.7rem 0 .55rem; font-size: 18.5px; font-weight: 770; line-height: 1.4;
  color: var(--otb-ink);
}
.otb-prose ul, .otb-prose ol { margin: 0 0 1.2rem; padding-left: 1.35rem; }
.otb-prose li { margin: .4rem 0; padding-left: .15rem; }
.otb-prose a { color: var(--otb-brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.otb-prose a:hover { color: var(--otb-brand-2); }
.otb-prose strong { font-weight: 780; }
.otb-prose code {
  padding: 2px 6px; border-radius: 6px; font-size: .9em;
  background: var(--otb-soft); border: 1px solid var(--otb-line);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.otb-prose blockquote {
  margin: 1.6rem 0; padding: 1rem 1.3rem;
  border-left: 4px solid var(--otb-brand); border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--otb-brand) 7%, transparent);
  color: var(--otb-ink-2);
}
.otb-prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 15px; }
.otb-prose th, .otb-prose td { border: 1px solid var(--otb-line); padding: 9px 11px; text-align: left; }
.otb-prose th { background: var(--otb-soft); font-weight: 750; }

.otb-updated {
  max-width: 760px; margin: 26px auto 0;
  color: var(--otb-ink-3); font-size: 12.5px;
  display: flex; align-items: center; gap: 7px;
}

/* ---- Tool CTA ------------------------------------------------------------- */
.otb-cta {
  max-width: 760px; margin: 30px auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 22px; border-radius: var(--otb-radius);
  border: 1px solid color-mix(in srgb, var(--otb-brand) 24%, var(--otb-line));
  background: linear-gradient(120deg, color-mix(in srgb, var(--otb-brand) 7%, transparent), color-mix(in srgb, var(--otb-accent) 7%, transparent));
}
.otb-cta-icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--otb-brand), var(--otb-brand-2));
  color: #fff; font-size: 20px;
}
.otb-cta-text { flex: 1 1 240px; min-width: 0; }
.otb-cta-text h2 { margin: 0 0 5px; font-size: 17px; font-weight: 820; color: var(--otb-ink); letter-spacing: -.02em; }
.otb-cta-text p { margin: 0; color: var(--otb-ink-3); font-size: 13.5px; line-height: 1.65; }
.otb-cta-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: linear-gradient(135deg, var(--otb-brand), var(--otb-brand-2));
  color: #fff; font-size: 13.5px; font-weight: 800; text-decoration: none;
  box-shadow: 0 12px 26px -14px rgba(99, 82, 237, .9);
  transition: transform .16s ease, box-shadow .16s ease;
}
.otb-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(99, 82, 237, 1); color: #fff; }

/* ---- FAQ ----------------------------------------------------------------- */
.otb-faq { max-width: 760px; margin: 34px auto 0; }
.otb-faq h2 { margin: 0 0 14px; font-size: 22px; font-weight: 830; letter-spacing: -.025em; color: var(--otb-ink); }
.otb-faq details {
  border: 1px solid var(--otb-line); border-radius: 14px;
  background: var(--otb-surface); margin: 0 0 10px; overflow: hidden;
}
.otb-faq details[open] { border-color: color-mix(in srgb, var(--otb-brand) 34%, var(--otb-line)); }
.otb-faq summary {
  cursor: pointer; padding: 15px 18px; list-style: none;
  font-size: 15px; font-weight: 760; color: var(--otb-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.otb-faq summary::-webkit-details-marker { display: none; }
.otb-faq summary::after {
  content: '+'; flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--otb-soft); color: var(--otb-brand);
  font-size: 16px; font-weight: 800; line-height: 1;
}
.otb-faq details[open] summary::after { content: '−'; }
.otb-faq .otb-faq-a { padding: 0 18px 16px; color: var(--otb-ink-2); font-size: 14.5px; line-height: 1.75; }

/* ---- Prev / next --------------------------------------------------------- */
.otb-adjacent {
  display: grid; gap: 12px; margin: 36px auto 0;
  max-width: 760px; grid-template-columns: 1fr;
}
@media (min-width: 620px) { .otb-adjacent { grid-template-columns: 1fr 1fr; } }
.otb-adj {
  display: flex; flex-direction: column; gap: 5px;
  padding: 15px 17px; border-radius: 14px;
  border: 1px solid var(--otb-line); background: var(--otb-surface);
  text-decoration: none; min-width: 0;
  transition: transform .16s ease, border-color .16s ease;
}
.otb-adj:hover { transform: translateY(-2px); border-color: var(--otb-brand); }
.otb-adj small { color: var(--otb-ink-3); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.otb-adj strong {
  color: var(--otb-ink); font-size: 14px; font-weight: 750; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.otb-adj.is-next { text-align: right; align-items: flex-end; }

.otb-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 26px auto 0; max-width: 760px; width: 100%;
  color: var(--otb-brand); font-size: 13.5px; font-weight: 750; text-decoration: none;
}
.otb-back:hover { color: var(--otb-brand-2); }

/* ---- Translation notice -------------------------------------------------- */
.otb-note {
  max-width: 760px; margin: 0 auto 24px;
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--otb-accent) 30%, var(--otb-line));
  background: color-mix(in srgb, var(--otb-accent) 7%, transparent);
  color: var(--otb-ink-2); font-size: 13.5px; line-height: 1.65;
}
.otb-note b { color: var(--otb-ink); }

/* ==========================================================================
   8. LANGUAGE PROMPT  (Google-Translate style bar, never auto-redirects)
   ========================================================================== */
.otb-langprompt {
  position: fixed; z-index: 9000;
  left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  width: min(640px, calc(100vw - 28px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--otb-line, #e2e8f0); border-radius: 16px;
  background: var(--bg-elev-1, #fff);
  box-shadow: 0 22px 50px -18px rgba(15, 23, 42, .38);
  opacity: 0; pointer-events: none;
  transition: transform .32s cubic-bezier(.16,1,.3,1), opacity .32s ease;
}
.otb-langprompt.is-open { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.otb-langprompt-icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--otb-brand, #4f46e5), var(--otb-brand-2, #7c3aed));
  color: #fff; font-size: 17px;
}
.otb-langprompt-text { flex: 1 1 200px; min-width: 0; font-size: 13px; line-height: 1.55; color: var(--text-2, #475569); }
.otb-langprompt-text b { display: block; color: var(--text, #0f172a); font-size: 13.5px; font-weight: 780; margin-bottom: 2px; }
.otb-langprompt-act { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.otb-langprompt-act a,
.otb-langprompt-act button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; line-height: 1;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
  white-space: nowrap;
}
.otb-langprompt-go {
  background: linear-gradient(135deg, var(--otb-brand, #4f46e5), var(--otb-brand-2, #7c3aed));
  color: #fff;
}
.otb-langprompt-no {
  background: transparent; color: var(--text-3, #64748b);
  border-color: var(--otb-line, #e2e8f0);
}
.otb-langprompt-no:hover { color: var(--text, #0f172a); }
@media (max-width: 560px) {
  .otb-langprompt { bottom: 10px; padding: 12px; }
  .otb-langprompt-act { width: 100%; }
  .otb-langprompt-act a, .otb-langprompt-act button { flex: 1 1 auto; justify-content: center; }
}

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .otb-hero { grid-template-columns: 1fr; gap: 24px; }
  .otb-hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .otb-hero { padding: 26px 20px; border-radius: 22px; }
  .otb-hero h1 { font-size: clamp(28px, 8.5vw, 38px); }
  .otb-hero-stats { grid-template-columns: 1fr; }
  .otb-hero-points { display: grid; gap: 9px; }
  .otb-explorer { padding: 15px; border-radius: 18px; }
  .otb-explorer-head { gap: 11px; }
  .otb-chip { padding: 8px 12px; font-size: 12px; }
  .otb-card-body { padding: 15px; }
  .otb-card-title { font-size: 15.5px; }
  .otb-article-head { padding: 24px 20px; border-radius: 20px; }
  .otb-article-head h1 { font-size: clamp(25px, 7.5vw, 34px); }
  .otb-prose { font-size: 16px; line-height: 1.8; }
  .otb-cta { padding: 18px; }
  .otb-cta-btn { width: 100%; justify-content: center; }
  .otb-adj.is-next { text-align: left; align-items: flex-start; }
}

/* ==========================================================================
   10. DARK MODE  (only touches what the host tokens don't already cover)
   ========================================================================== */
[data-theme="dark"] .otb-card-media,
[data-theme="dark"] .otb-article-cover { background: linear-gradient(135deg, #1e293b, #0f172a); }
[data-theme="dark"] .otb-card-chip { background: rgba(2, 6, 23, .82); }
[data-theme="dark"] .otb-empty { background: rgba(148, 163, 184, .06); }

/* ==========================================================================
   11. PRINT
   ========================================================================== */
@media print {
  .otb-hero-stats, .otb-explorer, .otb-pager, .otb-langprompt,
  .otb-adjacent, .otb-cta { display: none !important; }
  .otb-article-head { color: #000; background: none; box-shadow: none; border: 0; padding: 0; }
  .otb-article-head h1, .otb-article-deck, .otb-article-meta { color: #000; }
  .otb-prose { max-width: none; font-size: 11.5pt; }
}
