/* TransGood Blog & Android APK Guide stylesheet (1:1 structural parity with oyenza.com/blog/blog.css) */
:root {
  --well: var(--panel-2);
  --track: #ECECEF;
  --pill: var(--ink);
  --on-pill: var(--bg);
  --paper: #FFFFFF;
  --chart: var(--lavender);
  --chart-soft: rgba(108, 99, 240, 0.12);
  --income: var(--money-in);
  --expense: #E5484D;
  --warning: #A86508;
  --warning-soft: rgba(232, 163, 61, 0.18);
  --shadow: var(--shadow-float);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --column: 680px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --track: #303030;
    --paper: var(--panel-2);
    --chart: #8A81F8;
    --chart-soft: rgba(138, 129, 248, 0.18);
    --income: #5BC46A;
    --expense: #FF5C5C;
    --warning: #E8A33D;
    --warning-soft: rgba(232, 163, 61, 0.16);
  }
}

body { overflow-wrap: break-word; }
main#main { padding-top: calc(var(--header-h) + 8px); }
.site-footer { margin-top: clamp(80px, 10vw, 128px); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--panel); }
.cta-card .link-arrow svg { width: 16px; height: 16px; }

.kicker {
  display: inline-block;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}
.dek { margin: 14px 0 0; color: var(--muted); font-size: 19px; line-height: 1.5; }
.meta { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.article { padding-left: var(--gutter); padding-right: var(--gutter); }
.article-head, .prose, .cta-card, .related { max-width: var(--column); margin-left: auto; margin-right: auto; }
.article-head { padding-top: 24px; }
.back { display: inline-block; margin-bottom: 20px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.back::before { content: "← "; }
.back:hover { color: var(--ink); }
.article-head .kicker { display: table; }
.article h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 7.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}
.hero {
  max-width: 920px;
  margin: 36px auto 0;
  padding: clamp(18px, 4vw, 40px);
  border-radius: 32px;
  background: var(--panel);
  overflow: hidden;
}

.prose { margin-top: 40px; font-size: 17px; line-height: 1.65; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 52px; font-size: 28px; line-height: 1.18; letter-spacing: -0.03em; font-weight: 600; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { margin-top: 34px; font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 650; }
.prose code { font: 0.86em/1 var(--mono); background: var(--panel); padding: 3px 6px; border-radius: 6px; word-break: break-all; }
.prose pre { padding: 16px 18px; border-radius: 18px; background: var(--panel); overflow-x: auto; font: 13.5px/1.65 var(--mono); }
.prose pre code { background: none; padding: 0; font: inherit; border-radius: 0; word-break: normal; }
.prose blockquote { font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
.prose blockquote p { margin: 0; }

.summary, .note { padding: 20px 22px; border-radius: 22px; background: var(--panel); }
.summary .box-label, .note .box-label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.summary ul, .note ul { margin: 0; }
.summary > * + *, .note > * + * { margin-top: 10px; }
.summary p, .note p { margin: 0; }

.steps { list-style: none !important; padding: 0 !important; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 0 48px; min-height: 32px; }
.steps li + li { margin-top: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pill);
  color: var(--on-pill);
  font-size: 15px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.shot, .figure { margin-top: 32px !important; margin-bottom: 8px; }
.shot .shot-frame {
  width: min(300px, 78vw);
  margin: 0 auto;
  border-radius: 42px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.shot img { width: 100%; height: auto; }
.shot figcaption, .figure figcaption { margin: 14px auto 0; max-width: 520px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.figure > :first-child { border-radius: 26px; background: var(--panel); padding: clamp(16px, 4vw, 28px); overflow: hidden; }

.table { overflow-x: auto; border-radius: 20px; background: var(--panel); }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.table thead th { color: var(--muted); font-size: 13px; font-weight: 700; }
.table tbody tr { border-top: 1px solid var(--line); }
.table tbody th { font-weight: 650; }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--panel); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  font-weight: 650;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .answer { padding: 0 20px 18px; color: var(--ink); }
.faq .answer > * + * { margin-top: 10px; }
.faq .answer p { margin: 0; }

.cta-card {
  margin-top: 64px;
  padding: 28px;
  border-radius: 28px;
  background: var(--panel);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  align-items: center;
}
.cta-card .oyen { width: 112px; height: 112px; object-fit: contain; }
.cta-card h2 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; }
.cta-card p { margin: 8px 0 0; color: var(--muted); }
.cta-card .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; }

.related { margin-top: 64px; }
.related h2, .section-title { margin: 0 0 18px; font-size: 22px; letter-spacing: -0.02em; }
.related .cards { grid-template-columns: 1fr !important; gap: 10px; }
.related .card { display: grid; grid-template-columns: 128px 1fr; align-items: center; column-gap: 16px; padding: 8px; border-radius: 22px; }
.related .card .thumb { border-radius: 15px; }
.related .card .thumb .icon { width: 30px; height: 30px; }
.related .card-body { gap: 4px; padding: 4px 12px 4px 0; }
.related .card-dek, .related .card-meta { display: none; }
.related .card-title { font-size: 17px; }

.cards { display: grid; gap: 14px; }
.card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 24px;
  background: var(--panel);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-2px); }
.card .thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel-2);
}
.card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, .28), rgba(0, 0, 0, .12));
  pointer-events: none;
}
.card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb .icon {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  color: #FFFFFF;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 14px 14px; }
.card .kicker { padding: 0; background: none; }
.card-title { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.card-dek { color: var(--muted); font-size: 15px; line-height: 1.5; }
.card-meta { margin-top: auto; padding-top: 4px; color: var(--faint); font-size: 13px; font-weight: 600; }

.index { padding-bottom: 0; }
.index-head { padding: 32px 0 36px; max-width: 680px; }
.index h1 { margin: 0; font-size: clamp(44px, 7.2vw, 88px); line-height: 1; letter-spacing: -0.044em; font-weight: 600; }
.featured {
  display: grid;
  gap: 0;
  border-radius: 32px;
  background: var(--panel);
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 56px;
}
.featured-art { padding: clamp(18px, 4vw, 36px) clamp(18px, 4vw, 36px) 0; }
.featured-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px clamp(20px, 4vw, 36px) 30px; }
.featured .kicker { padding: 0; background: none; }
.featured .card-title { font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.025em; }

@media (min-width: 720px) {
  .prose { font-size: 18px; line-height: 1.7; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .related .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .featured-text { padding: 28px 40px 36px; }
  .featured .card-dek { max-width: 640px; }
}
@media (max-width: 520px) {
  .cta-card { grid-template-columns: 1fr; }
  .cta-card .oyen { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card .thumb img, .faq summary::after { transition: none; }
  .card:hover .thumb img { transform: none; }
}

.vg { container-type: inline-size; font-size: 14px; line-height: 1.35; color: var(--ink); text-align: left; }
.vg-flow { display: grid; gap: 14px; align-items: center; justify-items: center; }
.vg-source, .vg-result { width: 100%; max-width: 360px; display: grid; gap: 12px; }
.vg-arrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.vg-arrow svg { transform: rotate(90deg); }
@container (min-width: 640px) {
  .vg-flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; }
  .vg-arrow { flex-direction: column; gap: 6px; }
  .vg-arrow svg { transform: none; }
}
.vg-title { display: block; font-weight: 650; }
.vg-sub { display: block; color: var(--muted); font-size: 12.5px; }

.vg-url { justify-self: center; display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--bg); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; }
.vg-url svg { color: var(--muted); }
.vg-add { background: var(--bg); border-radius: 24px; padding: 14px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.vg-add-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 2px 2px 0; font-size: 13px; }
.vg-add-bar b { text-align: center; font-weight: 650; line-height: 1.25; text-wrap: balance; }
.vg-add-bar span { color: var(--muted); }
.vg-add-bar span.on { padding: 5px 12px; border-radius: 999px; background: var(--pill); color: var(--on-pill); font-weight: 650; }
.vg-add-app { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--panel); }
.vg-appicon { width: 34px; height: 34px; border-radius: 9px; flex: none; background: url("../icons/app-icon-t-192.png") center / cover no-repeat; }
.vg-add-app .vg-appicon { width: 48px; height: 48px; border-radius: 12px; }
.vg-text { min-width: 0; }
.vg-text .vg-title, .vg-text .vg-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-list { border-radius: 16px; background: var(--panel); padding: 0 14px; }
.vg-li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.vg-li .vg-text { flex: 1; }
.vg-toggle { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--track); }
.vg-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.vg-toggle.on { background: var(--income); }
.vg-toggle.on::after { left: 21px; }

.vg-home { border-radius: 28px; padding: 16px; display: grid; gap: 16px; background: linear-gradient(160deg, #2A2F3A, #14161B); }
.vg-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
.vg-app-tile { display: grid; justify-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #FFFFFF; }
.vg-app-icon { width: 100%; max-width: 58px; aspect-ratio: 1; border-radius: 23%; background: url("../icons/app-icon-t-192.png") center / cover no-repeat; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.vg-app-icon.blank { background: rgba(255, 255, 255, 0.14); box-shadow: none; }

.install { margin: 28px 0; padding: 20px; border-radius: 24px; background: var(--panel); display: grid; gap: 18px; align-items: center; }
.install-main { display: grid; justify-items: start; gap: 12px; }
.install-icon { width: 64px; height: 64px; border-radius: 15px; background: url("../icons/app-icon-t-192.png") center / cover no-repeat; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16); }
.install-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.install-title span { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.install-note { margin: 0; color: var(--muted); font-size: 14px; }
.install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.install-expo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.install-qr { display: none; margin: 0; justify-items: center; gap: 8px; text-align: center; }
.install-qr img { width: 148px; height: 148px; padding: 10px; border-radius: 16px; background: #FFFFFF; }
.install-qr figcaption { max-width: 170px; color: var(--muted); font-size: 13px; }
@media (min-width: 720px) and (hover: hover) and (pointer: fine) {
  .install { grid-template-columns: minmax(0, 1fr) auto; padding: 24px 28px; }
  .install-qr { display: grid; }
}
.prose .install-btn { text-decoration: none; }

.shot--frame-card .shot-frame {
  width: min(320px, 82vw);
  border-radius: 36px;
}
