/* common-chrome.css — self-contained header/nav/sidebar/footer for pages that
   had no chrome of their own. All selectors are "prc-" prefixed (PrepResults
   Common) specifically so this never collides with whatever CSS a given
   legacy page already defines for generic names like .btn or .sidebar. */
.prc-root {
  --prc-blue: #1a56db; --prc-blue-dark: #1040b0; --prc-blue-light: #e8f0fe;
  --prc-orange: #f97316; --prc-orange-dk: #ea6c0a;
  --prc-text: #111827; --prc-muted: #6b7280; --prc-border: #e5e7eb;
  --prc-bg: #f9fafb; --prc-white: #ffffff; --prc-radius: 8px;
  --prc-shadow: 0 1px 4px rgba(0,0,0,.08); --prc-shadow-md: 0 4px 16px rgba(0,0,0,.12);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.prc-header { position: sticky; top: 0; z-index: 100; background: var(--prc-white); border-bottom: 1px solid var(--prc-border); box-shadow: var(--prc-shadow); }
.prc-nav-top { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 60px; gap: 16px; }
.prc-logo { font-size: 22px; font-weight: 800; color: var(--prc-blue); text-decoration: none; white-space: nowrap; }
.prc-logo img { height: 36px; display: block; }
.prc-nav-search { position: relative; flex: 1; max-width: 360px; }
.prc-nav-search input { width: 100%; padding: 8px 16px; border: 1px solid var(--prc-border); border-radius: 20px; font-size: 14px; background: var(--prc-bg); outline: none; }
.prc-nav-search input:focus { border-color: var(--prc-blue); }
.prc-nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.prc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: var(--prc-radius); font-size: 14px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; }
.prc-btn-outline { border: 1.5px solid var(--prc-blue); color: var(--prc-blue); background: #fff; }
.prc-btn-outline:hover { background: var(--prc-blue-light); }
.prc-btn-primary { background: var(--prc-orange); color: #fff; }
.prc-btn-primary:hover { background: var(--prc-orange-dk); }
.prc-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.prc-hamburger span { width: 22px; height: 2px; background: var(--prc-text); border-radius: 2px; display: block; }

.prc-nav-cats { background: var(--prc-white); border-top: 1px solid var(--prc-border); overflow-x: auto; white-space: nowrap; }
.prc-nav-cats ul { display: flex; list-style: none; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.prc-nav-cats li a { display: block; padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--prc-muted); text-decoration: none; border-bottom: 2px solid transparent; }
.prc-nav-cats li a:hover, .prc-nav-cats li.active a { color: var(--prc-blue); border-bottom-color: var(--prc-blue); }

.prc-mobile-drawer { display: none; position: fixed; inset: 0; z-index: 200; }
.prc-mobile-drawer.open { display: block; }
.prc-drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.prc-drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: 280px; background: var(--prc-white); overflow-y: auto; padding: 20px; box-shadow: var(--prc-shadow-md); }
.prc-drawer-close { float: right; font-size: 22px; cursor: pointer; color: var(--prc-muted); background: none; border: none; }
.prc-drawer-panel ul { list-style: none; margin-top: 20px; }
.prc-drawer-panel ul li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--prc-border); font-size: 15px; color: var(--prc-text); text-decoration: none; }

.prc-related { max-width: 1200px; margin: 32px auto; padding: 0 20px; }
.prc-related-card { background: var(--prc-white); border: 1px solid var(--prc-border); border-radius: var(--prc-radius); padding: 18px 20px; }
.prc-related-card h3 { font-size: 14px; font-weight: 700; color: var(--prc-text); margin-bottom: 12px; }
.prc-related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.prc-related-links a { font-size: 13px; color: var(--prc-blue); text-decoration: none; background: var(--prc-blue-light); padding: 6px 12px; border-radius: 20px; }
.prc-related-links a:hover { background: var(--prc-blue); color: #fff; }

.prc-footer { background: #111827; color: #9ca3af; padding: 48px 20px 24px; }
.prc-footer-inner { max-width: 1200px; margin: 0 auto; }
.prc-footer-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 28px 20px; margin-bottom: 32px; }
.prc-footer-brand { margin-bottom: 32px; max-width: 420px; }
.prc-footer-brand img { height: 30px; margin-bottom: 12px; }
.prc-footer-brand p { font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.prc-footer-social { display: flex; gap: 10px; }
.prc-footer-social a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: #fff; text-decoration: none; }
.prc-footer-social a:hover { opacity: .9; }
.prc-footer-social .wa { background: #25d366; }
.prc-footer-social .tg { background: #0088cc; }
.prc-footer-col summary { color: #f9fafb; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.prc-footer-col summary::-webkit-details-marker { display: none; }
.prc-footer-col summary::after { content: "+"; font-weight: 400; font-size: 16px; }
.prc-footer-col[open] summary::after { content: "\2212"; }
.prc-footer-col ul { list-style: none; margin-top: 10px; }
.prc-footer-col ul li { margin-bottom: 8px; }
.prc-footer-col ul li a { font-size: 13px; color: #9ca3af; text-decoration: none; }
.prc-footer-col ul li a:hover { color: #f9fafb; }
@media (min-width: 769px) {
  .prc-footer-col summary { pointer-events: none; margin-bottom: 12px; }
  .prc-footer-col summary::after { display: none; }
  .prc-footer-col ul { display: block !important; margin-top: 0; }
}
.prc-footer-bottom { border-top: 1px solid #1f2937; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.prc-footer-bottom p { font-size: 12px; margin: 0; }
.prc-footer-bottom-links { display: flex; gap: 20px; }
.prc-footer-bottom-links a { font-size: 12px; color: #9ca3af; text-decoration: none; }

@media (max-width: 768px) {
  .prc-hamburger { display: flex; }
  .prc-nav-search { display: none; }
  .prc-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .prc-footer-top { grid-template-columns: 1fr; }
}

/* ── Static sidebar — same widgets on every page, pinned while scrolling.
   Fixed-position rather than a grid column deliberately: these pages'
   original content (kept as-is from the source site) doesn't reliably have
   balanced/predictable tag nesting, so wrapping it in a new grid container
   was fragile — a fixed sidebar works regardless of what's underneath it. */
.prc-sidebar {
  position: fixed; top: 90px; right: 20px;
  width: 290px; max-height: calc(100vh - 110px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px; z-index: 60;
}
/* Below this width, existing page content likely uses the full viewport —
   hide the floating sidebar rather than risk overlapping it. */
@media (max-width: 1450px) {
  .prc-sidebar { display: none; }
}
.prc-sidebar-card { background: var(--prc-white); border: 1px solid var(--prc-border); border-radius: var(--prc-radius); overflow: hidden; }
.prc-sidebar-card-head { background: var(--prc-blue); color: #fff; padding: 12px 16px; font-size: 14px; font-weight: 700; }
.prc-sidebar-card-body { padding: 14px 16px; }
.prc-sidebar-card-body.prc-cta-block { display: flex; flex-direction: column; gap: 8px; }
.prc-sidebar-card-body.prc-cta-block p { font-size: 13px; color: var(--prc-muted); margin-bottom: 2px; }
.prc-sidebar-card-body .prc-cta-note { font-size: 11px; color: var(--prc-muted); text-align: center; margin-top: 2px; }
.prc-sidebar-links { list-style: none; }
.prc-sidebar-links li { border-bottom: 1px solid var(--prc-border); }
.prc-sidebar-links li:last-child { border-bottom: none; }
.prc-sidebar-links li a { display: block; padding: 8px 0; font-size: 13px; color: var(--prc-blue); text-decoration: none; }
.prc-sidebar-links li a:hover { text-decoration: underline; }
.prc-btn-whatsapp { background: #25d366; color: #fff; }
.prc-btn-whatsapp:hover { background: #1fb958; }
.prc-btn-telegram { background: #0088cc; color: #fff; }
.prc-btn-telegram:hover { background: #0077b3; }
@media (max-width: 900px) {
  .prc-content-grid { grid-template-columns: 1fr; }
  .prc-sidebar { position: static; }
}
