/* Tripbae Blog — small add-ons used by the Nov 2026 posts. Load after blog.css. */

/* Inline-SVG hero art sits inside .hero-card like the mascot images do */
svg.hero-mascot { display: block; height: auto; }
.hero-card svg.hero-mascot.is-wide { width: min(600px, 92%); margin-top: 30px; }

/* Figures with diagrams */
.fig { margin: 30px 0 34px; padding: 26px 22px 20px; border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--line-2); }
.fig-svg { display: block; width: 100%; height: auto; }
.fig figcaption { margin-top: 14px; text-align: center; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }

/* 4-up / 2-up variant of the bucket cards */
.buckets.is-2x2 { grid-template-columns: repeat(2, 1fr); }

/* Yes / partial / no marks inside comparison tables */
.mk { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.mk::before { content: ''; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; background-position: center; background-repeat: no-repeat; background-size: 10px; }
.mk-yes { color: var(--orange-ink); }
.mk-yes::before { background-color: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.mk-part { color: #7A4A00; }
.mk-part::before { background-color: #FFF1D6; border: 2px solid var(--orange-warm); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E85A00' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.mk-no { color: var(--ink-3); }
.mk-no::before { background-color: var(--cream-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a39a92' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); }
.table-wrap tr.is-us td { background: var(--tint); }

/* "Best for" verdict chips on app reviews */
.verdict { display: inline-flex; align-items: center; gap: 8px; margin: -2px 0 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255,106,0,0.08); color: var(--orange-ink); font-size: 13px; font-weight: 700; }
.app-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 18px; }
.app-facts div { padding: 10px 12px; border-radius: 12px; background: var(--cream-2); border: 1px solid var(--line-2); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.app-facts b { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }

/* Prompt box (copyable, reuses .pact look) */
.pact.is-light { background: var(--cream-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line-2); }
.pact.is-light .pact-head { border-bottom-color: var(--line-2); }
.pact.is-light .pact-head > span { color: var(--ink-3); }
.pact.is-light pre { color: var(--ink); }

@media (max-width: 640px) {
  .buckets.is-2x2 { grid-template-columns: 1fr; }
  .app-facts { grid-template-columns: 1fr; }
  .fig { padding: 18px 12px 14px; }
  .hero-card svg.hero-mascot.is-wide { width: 100%; }
}

/* Mobile: keep the two top chips, give the art room underneath */
@media (max-width: 640px) {
  .hero-card:has(svg.hero-mascot) .chip-bl,
  .hero-card:has(svg.hero-mascot) .chip-br { display: none; }
  .hero-card svg.hero-mascot.is-wide { margin-top: 96px; }
}

/* ───────── Presentation layer: orange & white ───────── */

/* Numbered section kickers that match the TOC numbers */
.prose { counter-reset: sec; }
.prose > h2:not(#faq) { counter-increment: sec; position: relative; }
.prose > h2:not(#faq)::before {
  content: counter(sec, decimal-leading-zero);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 26px; margin: 0 0 12px; border-radius: 999px;
  background: rgba(255,106,0,0.10); color: var(--link);
  font-family: var(--sans); font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em;
  float: none; vertical-align: middle;
}
.prose > h2:not(#faq)::before { display: flex; }
.prose > h2#faq::before {
  content: '?'; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-warm)); color: #fff;
  font-family: var(--sans); font-size: 15px; font-weight: 800;
}

/* Stat tiles under the short answer */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px;
  padding: 18px 18px 16px; border-radius: var(--radius); background: #fff;
  border: 1px solid rgba(255,106,0,0.18); box-shadow: var(--shadow-sm);
}
.stat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--orange), var(--orange-warm), var(--orange-glow)); }
.stat-num {
  font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 36px); line-height: 1.1; letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange)); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; padding-bottom: 2px;
}
.stat-label { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.stat-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

/* Takeaways: white card with an orange edge */
.box.box-tint { background: #fff; border-color: rgba(255,106,0,0.22); box-shadow: var(--shadow-sm); }
.box.box-tint .box-title, .toc .box-title { color: var(--link); }
.toc { background: var(--tint); border-color: rgba(255,106,0,0.16); }

/* Tables: warm header, our row highlighted */
.table-wrap { border-color: rgba(255,106,0,0.16); box-shadow: 0 10px 30px -22px rgba(255,106,0,0.45); }
.table-wrap th { background: var(--tint); color: var(--orange-ink); }
.table-wrap tbody tr:hover td { background: #FFFAF5; }
.table-wrap tr.is-us td { background: var(--tint); }
.table-wrap tr.is-us td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
.table-wrap tr.is-us td:first-child::after { content: 'Ours'; display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; vertical-align: 2px; }

/* App review headings get an orange rule */
.prose h3 + .verdict { margin-top: 2px; }
.prose > h3:not(.step-title) { padding-left: 14px; border-left: 3px solid var(--orange); }

/* Mid-article CTA band */
.inline-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap;
  margin: 40px 0; padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, #FF6A00 0%, #FF8A3C 62%, #FFB37A 100%); color: #fff;
  box-shadow: var(--shadow-md);
}
.inline-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 12% 20%, rgba(255,255,255,0.25), transparent 45%); }
.inline-cta::after { content: ''; position: absolute; right: -60px; top: -70px; width: 200px; height: 200px; z-index: -1; border-radius: 50%; background: rgba(255,255,255,0.10); }
.inline-cta-copy { flex: 1 1 300px; }
.prose .inline-cta p { color: rgba(255,255,255,0.94); font-size: 15.5px; line-height: 1.6; margin: 0; }
.prose .inline-cta .inline-cta-title { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.2; color: #fff; margin-bottom: 6px; }
.inline-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.prose .inline-cta .btn-white { text-decoration: none; color: var(--orange-ink); }
.prose .inline-cta .inline-cta-link { color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; opacity: 0.95; }
.prose .inline-cta .inline-cta-link:hover { text-decoration: underline; color: #fff; }

/* Lead answers get a soft orange marker */
.prose .lead-answer { position: relative; padding-left: 18px; }
.prose .lead-answer::before { content: ''; position: absolute; left: 0; top: 0.45em; bottom: 0.45em; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--orange), var(--orange-glow)); }

/* Sticky "On this page" rail on wide screens */
.side-rail { display: none; }
@media (min-width: 1300px) {
  /* Rail is a sticky left column next to the full-width article */
  .blog-main.has-rail { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 8px; padding-left: var(--gutter); }
  .blog-main.has-rail > article { grid-column: 2; grid-row: 1; min-width: 0; }
  .side-rail {
    display: block; grid-column: 1; grid-row: 1; align-self: start;
    position: sticky; top: 128px; z-index: 5;
    max-height: calc(100vh - 150px); overflow-y: auto; padding: 4px 4px 12px;
  }
  .side-rail-title { font-size: 11.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px 12px; }
  .side-rail ol { list-style: none; counter-reset: rail; border-left: 2px solid rgba(255,106,0,0.14); }
  .side-rail li { counter-increment: rail; }
  .side-rail ol a {
    display: flex; gap: 8px; padding: 6px 10px 6px 12px; margin-left: -2px; border-left: 2px solid transparent;
    color: var(--ink-3); text-decoration: none; font-size: 13.5px; line-height: 1.4; transition: color .2s, border-color .2s, background .2s;
  }
  .side-rail ol a::before { content: counter(rail, decimal-leading-zero); font-size: 11px; font-weight: 800; color: var(--orange-glow); padding-top: 1px; }
  .side-rail li:last-child a::before { content: '?'; }
  .side-rail ol a:hover { color: var(--link); }
  .side-rail ol a.active { color: var(--orange-ink); font-weight: 700; border-left-color: var(--orange); background: linear-gradient(90deg, rgba(255,106,0,0.08), transparent); }
  .side-rail ol a.active::before { color: var(--orange); }
  .side-rail-cta {
    display: block; margin-top: 18px; padding: 16px; border-radius: 18px; text-decoration: none; color: #fff;
    background: linear-gradient(135deg, #FF6A00, #FF8A3C 60%, #FFB37A); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease-spring);
  }
  .side-rail-cta:hover { transform: translateY(-2px); }
  .side-rail-cta-kick { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
  .side-rail-cta b { display: block; font-family: var(--serif); font-weight: 600; font-size: 16.5px; line-height: 1.25; margin: 6px 0 10px; }
  .side-rail-cta-btn { display: inline-block; background: #fff; color: var(--orange-ink); font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
  .wrap-narrow > .toc { display: none; }
}

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; padding: 14px 16px; }
  .stat-num { font-size: 28px; }
  .stat-sub { flex-basis: 100%; }
  .inline-cta { padding: 22px 20px; }
  .prose .inline-cta .inline-cta-title { font-size: 21px; }
}
@media print { .side-rail, .inline-cta { display: none !important; } }

/* Comparison tables: tighter on desktop so 5 columns fit without scrolling */
@media (min-width: 761px) {
  .table-wrap table { font-size: 15px; }
  .table-wrap th { padding: 12px 14px; }
  .table-wrap td { padding: 12px 14px; }
  .table-wrap .mk { white-space: normal; }
}

/* ───────── Nov 12 posts ───────── */

/* Small print under tables and lists */
.prose p.note { font-size: 15px; line-height: 1.65; color: var(--ink-3); margin-top: -6px; }

/* In-article photos: tall ones float beside the text, wide ones sit centred */
.post-figure { margin: 26px 0 30px; }
.post-figure img { width: 100%; max-width: 520px; height: auto; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.post-figure.is-wide img { max-width: 900px; }
.post-figure.float-right, .post-figure.float-left { width: min(40%, 360px); margin-top: 6px; margin-bottom: 22px; }
.post-figure.float-right { float: right; margin-left: 36px; }
.post-figure.float-left { float: left; margin-right: 36px; }
.post-figure.float-right img, .post-figure.float-left img { max-width: none; }
.prose > h2, .prose > .inline-cta, .prose > .table-wrap, .prose > .photo-pair, .prose > .post-figure.is-wide { clear: both; }
.prose > ul, .prose > ol { display: flow-root; }
/* Side-by-side photos at equal height: each flexes by its aspect ratio (--ar) */
.photo-pair { display: flex; gap: 16px; max-width: 760px; margin: 26px auto 30px; }
.photo-pair img { flex: var(--ar, 1) 1 0; min-width: 0; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* Good / not-so-good pairs on app reviews */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 24px; }
.pc { padding: 16px 18px 6px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #fff; }
.pc-good { background: var(--tint); border-color: rgba(255,106,0,0.22); }
.prose .pc-title { font-size: 12.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--link); margin: 0 0 8px; }
.prose .pc-bad .pc-title { color: var(--ink-3); }
.prose .pc ul { margin: 0 0 10px; }
.prose .pc li { font-size: 15.5px; line-height: 1.55; margin-bottom: 6px; }

/* Copyable prompts keep inline emphasis */
.pact pre em { font-style: italic; color: var(--link); }

@media (max-width: 760px) {
  .post-figure.float-right, .post-figure.float-left { float: none; width: auto; margin: 22px 0 26px; }
  .post-figure.float-right img, .post-figure.float-left img { width: auto; max-width: 100%; max-height: 70vh; }
  .photo-pair { gap: 10px; }
}

@media (max-width: 640px) {
  .pros-cons { grid-template-columns: 1fr; }
}
