/* The brands' public blog (served at each website's /blog). Every rule is scoped under .pb-* so it
   sits inside each site's own look; colours come from variables a site's look can set. */
:root {
  --pb-accent: #1F5AC8;
  --pb-ink: #0B1324;
  --pb-text: #2A3A56;
  --pb-muted: #5B6B86;
  --pb-line: #DCE3EE;
  --pb-soft: #F5F8FC;
  --pb-radius: 12px;
  --pb-font: system-ui, -apple-system, "Segoe UI", Tahoma, "IBM Plex Sans Arabic", Arial, sans-serif;
}

.pb-theme-generic { margin: 0; background: #FFFFFF; color: var(--pb-text); font-family: var(--pb-font); }
.pb-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pb-site-header { border-bottom: 1px solid var(--pb-line); padding: 16px 0; background: #FFFFFF; }
.pb-site-header nav { display: flex; gap: 20px; }
.pb-site-header a { color: var(--pb-ink); text-decoration: none; font-weight: 500; }
.pb-site-name { font-size: 1.25rem; font-weight: 700 !important; color: var(--pb-accent) !important; }
.pb-site-footer { border-top: 1px solid var(--pb-line); padding: 24px 0; margin-top: 56px; color: var(--pb-muted); font-size: 0.9rem; }
.pb-site-footer a { color: var(--pb-muted); }

.pb { max-width: 1160px; margin: 0 auto; padding: 24px 20px 40px; box-sizing: border-box; color: var(--pb-text); line-height: 1.7; }
.pb *, .pb *::before, .pb *::after { box-sizing: border-box; }
.pb a { color: var(--pb-accent); }
.pb img { max-width: 100%; height: auto; }
.pb-switch { margin: 0 0 8px; font-size: 0.9rem; text-align: end; }
.pb-crumbs { font-size: 0.85rem; color: var(--pb-muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pb-crumbs a { color: var(--pb-muted); text-decoration: none; }
.pb-crumbs a:hover { color: var(--pb-accent); }
.pb-title { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.25; color: var(--pb-ink); margin: 0 0 12px; }
.pb-lead { font-size: 1.1rem; color: var(--pb-muted); margin: 0 0 20px; max-width: 760px; }
.pb-meta { font-size: 0.85rem; color: var(--pb-muted); }
.pb-label { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--pb-accent); margin-bottom: 6px; }
.pb-empty { padding: 40px 0; color: var(--pb-muted); }

.pb-hero { padding: 16px 0 24px; }
.pb-search { display: flex; gap: 8px; max-width: 520px; margin-bottom: 16px; }
.pb-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--pb-line); border-radius: 999px; font: inherit; background: #FFFFFF; color: var(--pb-ink); }
.pb-search button, .pb-button { display: inline-block; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--pb-accent); color: #FFFFFF !important; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.pb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-chip { padding: 6px 14px; border: 1px solid var(--pb-line); border-radius: 999px; font-size: 0.9rem; text-decoration: none; color: var(--pb-text) !important; background: #FFFFFF; }
.pb-chip.is-on, .pb-chip:hover { border-color: var(--pb-accent); color: var(--pb-accent) !important; }

.pb-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 20px; margin: 8px 0 32px; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); background: var(--pb-soft); text-decoration: none; color: inherit !important; }
.pb-featured img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: calc(var(--pb-radius) - 4px); }
.pb-featured h2 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 10px; color: var(--pb-ink); }
.pb-featured p { margin: 0 0 12px; }
.pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.pb-card { border: 1px solid var(--pb-line); border-radius: var(--pb-radius); background: #FFFFFF; overflow: hidden; transition: box-shadow 0.15s ease; }
.pb-card:hover { box-shadow: 0 6px 24px rgba(11, 19, 36, 0.08); }
.pb-card-link { display: flex; flex-direction: column; height: 100%; padding: 0 0 16px; text-decoration: none; color: inherit !important; }
.pb-card img, .pb-card-blank { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--pb-soft); display: block; margin-bottom: 14px; }
.pb-card .pb-label, .pb-card h3, .pb-card p, .pb-card .pb-meta { padding: 0 16px; }
.pb-card h3 { font-size: 1.15rem; line-height: 1.4; color: var(--pb-ink); margin: 0 0 8px; }
.pb-card p { margin: 0 0 12px; font-size: 0.95rem; flex: 1; }
.pb-pages { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 36px 0 0; }

.pb-article-head { max-width: 820px; }
.pb-cover { display: block; width: 100%; aspect-ratio: 1200 / 630; max-height: 520px; object-fit: cover; border-radius: var(--pb-radius); margin: 8px 0 28px; background: var(--pb-soft); }
.pb-article-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.pb-article-grid > .pb-body:only-child { grid-column: 1 / -1; }
.pb-toc { position: sticky; top: 20px; font-size: 0.9rem; border-inline-start: 2px solid var(--pb-line); padding-inline-start: 14px; }
.pb-toc summary { font-weight: 600; color: var(--pb-ink); cursor: pointer; margin-bottom: 8px; }
.pb-toc ol { list-style: none; padding: 0; margin: 0; }
.pb-toc li { margin: 6px 0; }
.pb-toc .pb-toc-3 { padding-inline-start: 12px; }
.pb-toc a { color: var(--pb-text); text-decoration: none; }
.pb-toc a:hover { color: var(--pb-accent); }
.pb-body { max-width: 760px; font-size: 1.05rem; }
.pb-body h2 { font-size: 1.55rem; color: var(--pb-ink); margin: 1.8em 0 0.6em; line-height: 1.35; scroll-margin-top: 20px; }
.pb-body h3 { font-size: 1.2rem; color: var(--pb-ink); margin: 1.4em 0 0.5em; scroll-margin-top: 20px; }
.pb-body p, .pb-body ul, .pb-body ol { margin: 0 0 1em; }
.pb-body blockquote { margin: 1.2em 0; padding: 12px 18px; border-inline-start: 4px solid var(--pb-accent); background: var(--pb-soft); border-radius: 4px; }
.pb-body pre { background: var(--pb-soft); padding: 14px; border-radius: 8px; overflow-x: auto; direction: ltr; text-align: left; }
.pb-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; display: block; overflow-x: auto; }
.pb-body th, .pb-body td { border: 1px solid var(--pb-line); padding: 10px 12px; vertical-align: top; text-align: start; }
.pb-body th { background: var(--pb-soft); color: var(--pb-ink); }
.pb-body img { border-radius: 8px; margin: 0.6em 0; }
.pb-body .ql-align-center { text-align: center; }
.pb-body .ql-align-right { text-align: right; }
.pb-body .ql-align-justify { text-align: justify; }
.pb-faq { margin-top: 2.2em; }
.pb-faq details { border: 1px solid var(--pb-line); border-radius: 10px; padding: 12px 16px; margin: 0 0 10px; background: #FFFFFF; }
.pb-faq summary { font-weight: 600; color: var(--pb-ink); cursor: pointer; }
.pb-faq details p { margin: 10px 0 0; white-space: pre-line; }
.pb-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 2em 0; padding: 20px 24px; border-radius: var(--pb-radius); background: var(--pb-soft); border: 1px solid var(--pb-line); }
.pb-cta strong { color: var(--pb-ink); font-size: 1.1rem; }
.pb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 1.6em 0; font-size: 0.9rem; color: var(--pb-muted); }
.pb-share a { text-decoration: none; font-weight: 500; }
.pb-writer { display: flex; gap: 16px; align-items: flex-start; margin: 2em 0 0; padding-top: 20px; border-top: 1px solid var(--pb-line); }
.pb-writer img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.pb-writer strong { color: var(--pb-ink); }
.pb-writer p { margin: 4px 0 0; font-size: 0.95rem; color: var(--pb-muted); }
.pb-related { margin-top: 48px; }
.pb-related h2 { font-size: 1.4rem; color: var(--pb-ink); }
.pb-missing { text-align: center; padding: 64px 0; }
.pb-missing .pb-lead { margin-inline: auto; }

@media (max-width: 860px) {
  .pb-featured { grid-template-columns: 1fr; }
  .pb-article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pb-toc { position: static; border: 1px solid var(--pb-line); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
}
