/* Typran blog (2026-11-10). Uses the colour tokens from style.css, so light and dark themes both work. */
.blog main { max-width: 1120px; }
.blog .top .nav { margin-left: auto; }
.blog-try { padding: 8px 14px; }
.blog a { color: var(--accent); }
.blog .logo, .blog .nav a, .blog .btn { text-decoration: none; }
.blog .btn.primary { color: #fff; }
.blog .btn:not(.primary) { color: var(--text); background: var(--card); }

.blog-hero { text-align: center; max-width: 760px; margin: 18px auto 22px; }
.blog-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 10px; }
.blog-hero p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.blog-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.blog-filters button { font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); cursor: pointer; }
.blog-filters button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: var(--radius, 14px); background: var(--card);
  border: 1px solid var(--line); color: var(--text) !important; text-decoration: none; transition: transform .15s, border-color .15s; }
.post-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.post-card[hidden] { display: none; }
.post-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.post-card p { margin: 0; color: var(--muted); flex: 1; }
.post-meta { color: var(--muted); font-size: .85rem; font-weight: 600; }

.post-cat { align-self: flex-start; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800;
  letter-spacing: .03em; background: var(--accent-soft); color: var(--accent); }
.post-cat.cat-benefits { background: #dcfce7; color: #15803d; }
.post-cat.cat-industry { background: #fef3c7; color: #b45309; }
:root[data-theme="dark"] .post-cat.cat-benefits { background: #14361f; color: #6ee7a0; }
:root[data-theme="dark"] .post-cat.cat-industry { background: #3d2c0b; color: #fbbf5a; }

/* one article */
.post { max-width: 740px; margin: 10px auto 0; }
.post .back { display: inline-block; margin-bottom: 18px; font-weight: 700; text-decoration: none; }
.post h1 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); line-height: 1.15; margin: 10px 0 6px; }
.post > .post-meta { margin: 0 0 26px; }
.post-body { font-size: 1.12rem; line-height: 1.75; }
.post-body h2 { font-size: 1.45rem; line-height: 1.25; margin: 34px 0 10px; }
.post-body h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.post-body p { margin: 0 0 16px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 1.4em; }
.post-body li { margin: 4px 0; }
.post-body blockquote { margin: 18px 0; padding: 10px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.post-body blockquote p { margin: 0; }
.post-body code { font: 500 .9em 'JetBrains Mono', monospace; background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }
.post-body pre { margin: 0 0 18px; padding: 14px 16px; overflow-x: auto; border-radius: 12px; background: #1e2235; color: #e6e9f5; }
.post-body pre code { background: none; padding: 0; font-size: .92rem; line-height: 1.6; color: inherit; }

.blog-cta { margin: 40px auto 10px; max-width: 740px; padding: 22px 24px; border-radius: 16px; text-align: center;
  background: var(--accent-soft); border: 1px solid var(--line); }
.blog-cta h2 { margin: 0 0 6px; font-size: 1.35rem; }
.blog-cta p { margin: 0 auto 14px; max-width: 560px; color: var(--text); }
.blog-cta .btn { margin: 4px; }
.related { margin-top: 44px; }
.related h2 { font-size: 1.3rem; margin: 0 0 14px; }
.blog .foot a { color: var(--muted); }

@media (max-width: 640px) {
  .blog .top .blog-try { padding: 6px 12px; font-size: .85rem; }
  .post-body { font-size: 1.05rem; }
}

/* blog search (2026-11-11) */
.blog-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto 14px; padding: 6px 8px 6px 16px;
  background: var(--card); border: 2px solid var(--line); border-radius: 999px; transition: border-color .15s, box-shadow .15s; }
.blog-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.blog-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem; padding: 8px 4px; }
.blog-count { text-align: center; color: var(--muted); font-weight: 700; margin: -8px 0 14px; min-height: 1.2em; }
.blog-none { text-align: center; color: var(--muted); font-weight: 600; padding: 24px; }
.post-cat.cat-earn { background: #dcfce7; color: #047857; border: 1px solid #6ee7b7; }
:root[data-theme="dark"] .post-cat.cat-earn { background: #0f3a2c; color: #6ee7b7; }

/* short search-style titles get a plain subtitle (2026-11-14) */
.post .post-sub { font-size: 1.15rem; color: var(--muted); font-weight: 600; margin: -6px 0 10px; }

/* same menu look as the main site (2026-11-15) */
.blog .top .nav a { color: var(--muted); }
.blog .top .nav a:hover { color: var(--text); }
.blog .top .nav a.on { color: var(--accent); }
.blog .top .nav a.nav-promo { color: #b45309; }

/* Article page layout (2026-11-24): article on the left, a sticky column on the right with an ad slot, more articles and a Typran card. */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; max-width: 1120px; }
.post-layout .post { max-width: none; margin: 10px 0 0; min-width: 0; }
.post-layout .blog-cta { max-width: none; margin-left: 0; margin-right: 0; }
.post-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.side-box { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius, 14px); background: var(--card); }
.side-box h2 { margin: 0 0 10px; font-size: 1.05rem; }
.side-ad { min-height: 250px; padding: 10px; text-align: center; }
.ad-label { display: block; margin-bottom: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.side-list a { display: flex; flex-direction: column; gap: 4px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text); }
.side-list a:hover { background: var(--accent-soft); }
.side-list b { font-size: .95rem; line-height: 1.3; }
.side-list .post-cat { font-size: .68rem; padding: 2px 8px; }
.side-all { display: inline-block; font-weight: 700; text-decoration: none; }
.side-try { background: var(--accent-soft); }
.side-try p { margin: 0 0 12px; font-size: .95rem; }
.side-try .btn { display: flex; justify-content: center; margin-bottom: 10px; }
.side-link { display: block; padding: 4px 0; font-weight: 700; text-decoration: none; }
@media (max-width: 960px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .post-side { position: static; margin-top: 24px; }
}

/* Keep reading: topic sections with icons (2026-11-24) */
.post-side { max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.side-read h2 { font-size: 1.15rem; margin-bottom: 4px; }
.side-seg { margin-top: 14px; }
.side-seg h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.side-seg h3 em { margin-left: auto; font-style: normal; font-size: .66rem; letter-spacing: .03em; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.seg-ic { font-size: 1.05rem; }
.side-seg .side-list { margin: 0; }
.side-list a { flex-direction: row; align-items: flex-start; gap: 10px; }
.art-ic { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; font-size: 1.05rem; background: var(--accent-soft); }
.art-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.art-tx small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.side-read .side-all { margin-top: 12px; }
@media (max-width: 960px) { .post-side { max-height: none; overflow: visible; } }
