/*! Unnati PostBase — public blog styles · https://postbase.top
 * SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-PostBase-Commercial
 * Every colour/size reads a GeoRank theme token first (--accent, --surface,
 * --border, --radius, --max-w, --font-heading …) so the blog follows the
 * site's Design tab; the fallbacks are the standalone PostBase look. */
.pb-page {
  --pb-accent: var(--accent, #1d5cff);
  --pb-text: var(--text, #0f1b3d);
  --pb-muted: var(--muted, #5d6b8a);
  --pb-surface: var(--surface, #f4f7fc);
  --pb-border: var(--border, #e2e8f3);
  --pb-radius: var(--radius, 12px);
  --pb-max: var(--max-w, 1100px);
  --pb-bg: var(--bg, #ffffff);
}
.pb-standalone { margin: 0; background: var(--pb-bg); color: var(--pb-text); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.pb-standalone a { color: var(--pb-accent); }
.pb-wrap { max-width: var(--pb-max); margin: 0 auto; padding: 0 20px; }
.pb-main { padding: 32px 0 56px; }
.pb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* standalone chrome */
.pb-topbar { border-bottom: 1px solid var(--pb-border); background: #fff; }
.pb-topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.pb-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; color: var(--pb-text) !important; }
.pb-topnav, .pb-subnav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pb-topnav a, .pb-subnav a { text-decoration: none; color: var(--pb-muted); font-weight: 550; padding: 4px 0; border-bottom: 2px solid transparent; }
.pb-topnav a:hover, .pb-subnav a:hover, .pb-topnav a[aria-current="page"], .pb-subnav a[aria-current="page"] { color: var(--pb-accent); border-bottom-color: var(--pb-accent); }
.pb-subnav-bar { border-bottom: 1px solid var(--pb-border); margin: -32px 0 28px; padding: 8px 0; font-size: 15px; }
.pb-footer { border-top: 1px solid var(--pb-border); padding: 22px 0; color: var(--pb-muted); font-size: 14px; }

/* list page */
.pb-list-head { margin-bottom: 26px; }
.pb-list-head h1 { margin: 0 0 6px; }
.pb-lead { color: var(--pb-muted); font-size: 1.1em; margin: 0 0 18px; max-width: 70ch; }
.pb-search { display: flex; gap: 8px; max-width: 460px; margin-bottom: 16px; }
.pb-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--pb-border); border-radius: var(--pb-radius); font: inherit; font-size: 15px; background: #fff; color: #111; }
.pb-search button, .pb-btn { padding: 10px 18px; border: 0; border-radius: var(--pb-radius); background: var(--pb-accent); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.pb-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-cats a, .pb-chip { display: inline-block; padding: 5px 13px; border-radius: 99px; background: var(--pb-surface); border: 1px solid var(--pb-border); color: var(--pb-text); text-decoration: none; font-size: 14px; font-weight: 550; line-height: 1.4; }
.pb-cats a[aria-current="page"] { background: var(--pb-accent); border-color: var(--pb-accent); color: #fff; }
.pb-chip { font-size: 12px; padding: 3px 10px; margin-bottom: 8px; }

.pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.pb-card { display: flex; flex-direction: column; background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: var(--pb-radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.pb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .08); }
.pb-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pb-border); }
.pb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pb-card-title { font-size: 1.2em; line-height: 1.3; margin: 0 0 8px; }
.pb-card-title a { color: inherit; text-decoration: none; }
.pb-card-title a:hover { color: var(--pb-accent); }
.pb-card-excerpt { color: var(--pb-muted); margin: 0 0 12px; font-size: .95em; flex: 1; }
.pb-meta { color: var(--pb-muted); font-size: 14px; margin: 0; }
.pb-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: var(--pb-radius); overflow: hidden; margin-bottom: 28px; }
.pb-featured-noimg { grid-template-columns: 1fr; }
.pb-featured-img { display: block; min-height: 100%; background: var(--pb-border); }
.pb-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 10; }
.pb-featured-body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pb-featured-label { font-size: 13px; font-weight: 700; color: var(--pb-accent); text-transform: uppercase; letter-spacing: .05em; }
.pb-featured-title { font-size: 1.6em; line-height: 1.2; margin: 4px 0 8px; }
.pb-featured-title a { color: inherit; text-decoration: none; }
.pb-featured-title a:hover { color: var(--pb-accent); }
.pb-featured-cta { align-self: flex-start; margin-top: 14px; }
/* Button links keep white text: the themes' "a { accent colour }" rules must not paint them blue on blue */
.pb-page a.pb-btn, .pb-page a.pb-btn:hover, .pb-page a.pb-btn:visited { color: #fff; }
@media (max-width: 760px) {
  .pb-featured { grid-template-columns: 1fr; }
  .pb-featured-body { padding: 20px; }
  .pb-featured-title { font-size: 1.3em; }
}
.pb-pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 36px; }
.pb-pager a { font-weight: 600; text-decoration: none; color: var(--pb-accent); }
.pb-empty { text-align: center; padding: 48px 0; color: var(--pb-muted); }

/* article */
.pb-article-wrap { max-width: 860px; }
.pb-crumbs { font-size: 14px; color: var(--pb-muted); margin-bottom: 14px; }
.pb-crumbs a { color: var(--pb-muted); text-decoration: none; }
.pb-crumbs a:hover { color: var(--pb-accent); }
.pb-article-head h1 { margin: 0 0 10px; line-height: 1.2; }
.pb-article-head { margin-bottom: 22px; }
.pb-cover { margin: 0 0 28px; }
.pb-cover img { width: 100%; height: auto; border-radius: var(--pb-radius); display: block; }
.pb-content { font-size: 1.08em; line-height: 1.75; overflow-wrap: break-word; }
.pb-content::after { content: ""; display: table; clear: both; }
.pb-content h2 { margin: 1.6em 0 .5em; clear: both; }
.pb-content h3 { margin: 1.4em 0 .4em; }
.pb-content img { max-width: 100%; height: auto; border-radius: var(--pb-radius); }
.pb-content iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--pb-radius); }

/* Images: size (S 300 / M 500 / L 760 / full) + wrap (left / right / center).
   Wrapped images float on desktop; on phones they stack full-width (up to their
   size), height always auto so nothing distorts. */
.pb-content figure { margin: 1.4em 0; }
.pb-content .pb-figure img { display: block; width: 100%; height: auto; }
.pb-content figcaption { font-size: .85em; color: var(--pb-muted); text-align: center; margin-top: 6px; line-height: 1.4; }
.pb-content .pb-w-s { width: 300px; max-width: 100%; }
.pb-content .pb-w-m { width: 500px; max-width: 100%; }
.pb-content .pb-w-l { width: 760px; max-width: 100%; }
.pb-content .pb-w-full { width: 100%; }
.pb-content .pb-align-center { margin-left: auto; margin-right: auto; }
@media (min-width: 768px) {
  .pb-content .pb-align-left { float: left; margin: .35em 1.75em 1em 0; }
  .pb-content .pb-align-right { float: right; margin: .35em 0 1em 1.75em; }
  .pb-content .pb-align-left.pb-w-l, .pb-content .pb-align-right.pb-w-l,
  .pb-content .pb-align-left.pb-w-full, .pb-content .pb-align-right.pb-w-full { width: 60%; }
}
@media (max-width: 767px) {
  .pb-content .pb-align-left, .pb-content .pb-align-right { float: none; margin: 1.4em auto; }
}
.pb-content .pb-embed { max-width: 100%; }
.pb-content blockquote { margin: 1.4em 0; padding: 6px 20px; border-left: 4px solid var(--pb-accent); color: var(--pb-muted); font-style: italic; }
.pb-content pre { background: var(--pb-surface); padding: 14px; border-radius: var(--pb-radius); overflow: auto; font-size: .9em; }
.pb-content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.pb-content th, .pb-content td { border: 1px solid var(--pb-border); padding: 8px 12px; text-align: left; }
.pb-content a { color: var(--pb-accent); }
.pb-content code { font-size: .88em; background: var(--pb-surface); border: 1px solid var(--pb-border); padding: 1px 6px; border-radius: 6px; }
.pb-content pre code { background: none; border: 0; padding: 0; }
.pb-content mark { background: #fff2a8; color: inherit; padding: 0 2px; border-radius: 3px; }
.pb-content hr { border: 0; border-top: 2px solid var(--pb-border); margin: 2em 0; }
.pb-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 44px 0 20px; }
.pb-prevnext a { display: block; padding: 14px 18px; border: 1px solid var(--pb-border); border-radius: var(--pb-radius); text-decoration: none; color: var(--pb-text); font-weight: 600; background: var(--pb-surface); }
.pb-prevnext a:hover { border-color: var(--pb-accent); }
.pb-prevnext small { display: block; color: var(--pb-muted); font-weight: 400; font-size: 13px; }
.pb-prev { text-align: right; }
.pb-back a { color: var(--pb-accent); font-weight: 600; text-decoration: none; }
.pb-preview-bar { background: #fff3dc; color: #6b3d00; border-radius: var(--pb-radius); padding: 10px 14px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.pb-preview-bar a { color: inherit; }

@media (max-width: 600px) {
  .pb-main { padding-top: 22px; }
  .pb-grid { grid-template-columns: 1fr; gap: 18px; }
  .pb-prevnext { grid-template-columns: 1fr; }
  .pb-prev { text-align: left; }
}
