/* ============================================================
   redesign-extras.css — additions on top of the design CSS:
   mobile nav drawer, hamburger, footer social, shared modal.
   Loaded site-wide via renderWithPartials (after the design CSS).
   ============================================================ */

/* ---- Hamburger (hidden on desktop, shown when the desktop nav collapses) ---- */
.nav-burger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-left: 8px;
  border: 1px solid var(--line-1); border-radius: 10px;
  background: var(--bg); color: var(--ink-1); cursor: pointer;
}
.nav-burger:hover { border-color: var(--ink-5); }
@media (max-width: 1040px) {
  .nav-burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav-cta .link-quiet { display: none; }
}

/* ---- Mobile drawer ---- */
.mnav-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(11,18,32,.45); opacity: 0; transition: opacity .25s ease;
}
.mnav-overlay.is-open { opacity: 1; }
.mnav {
  position: fixed; top: 0; right: 0; z-index: 1300;
  width: min(360px, 88vw); height: 100%;
  background: var(--bg); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.mnav.is-open { transform: translateX(0); }
.mnav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line-1);
}
.mnav-head .nav-logo-img { height: 34px; } /* mobile header logo +20% */
.mnav-close {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-1); border-radius: 10px; background: var(--bg); color: var(--ink-1); cursor: pointer;
}
.mnav-body { padding: 10px 14px 28px; }
.mnav-body details { border-bottom: 1px solid var(--line-2); }
.mnav-body summary {
  list-style: none; cursor: pointer;
  padding: 14px 6px; font-weight: 700; color: var(--ink-1); font-size: 15px;
  display: flex; align-items: center; justify-content: space-between;
}
.mnav-body summary::-webkit-details-marker { display: none; }
.mnav-body summary::after { content: "+"; color: var(--ink-4); font-weight: 600; font-size: 18px; }
.mnav-body details[open] summary::after { content: "–"; }
.mnav-body details a,
.mnav-body .mnav-link {
  display: block; padding: 10px 14px; color: var(--ink-3);
  text-decoration: none; font-size: 14.5px; border-radius: 8px;
}
.mnav-body .mnav-link { font-weight: 700; color: var(--ink-1); padding: 14px 6px; border-bottom: 1px solid var(--line-2); }
.mnav-body details a:hover { background: var(--bg-tint); color: var(--ink-1); }
.mnav-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.mnav-cta .btn { width: 100%; justify-content: center; }

/* ---- Footer social ---- */
.foot-social { display: flex; gap: 14px; margin-top: 16px; }
.foot-social a {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-4); border: 1px solid var(--line-1); transition: all .15s ease;
}
.foot-social a:hover { color: var(--brand-1); border-color: var(--brand-1); }

/* ---- Shared demo modal (design CSS has no modal) ---- */
.modal {
  display: none; position: fixed; inset: 0; z-index: 1400;
  background: rgba(11,18,32,.55); padding: 24px;
  align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--bg); border-radius: var(--radius-lg);
  width: min(520px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line-1);
}
.modal-header h2 { font-size: 20px; font-weight: 800; color: var(--ink-1); margin: 0; letter-spacing: -0.01em; }
.modal-eyebrow { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-1); margin-bottom: 5px; }
.modal-sub { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); margin: 0 0 18px; }
.modal-close { background: none; border: none; font-size: 26px; line-height: 1; color: var(--ink-4); cursor: pointer; }
.modal-body { padding: 24px; }
.modal-body .form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.modal-body label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.modal-body input, .modal-body select, .modal-body textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-1);
  border-radius: var(--radius); font: inherit; color: var(--ink-1); background: var(--bg);
}
.modal-body input:focus, .modal-body select:focus, .modal-body textarea:focus {
  outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn.full-width, .full-width { width: 100%; justify-content: center; }
.recaptcha-notice { font-size: 11px; color: var(--ink-4); margin-top: 12px; line-height: 1.5; }
.recaptcha-notice a { color: var(--ink-3); }

/* ============================================================
   Listing pages (blog / knowledge / case-studies) SSR extras
   ============================================================ */
/* chips rendered as <button> instead of <span> — inherit family only so the
   13.5px / 600 size from page-core's .pg-chip-f is preserved (the `font`
   shorthand would reset size+weight back to the inherited body value). */
.pg-chips .pg-chip-f { font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* Centered chip row with the search centered beneath it, matching the
   original design's centered .pg-chips layout. */
.pg-listing-toolbar {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; margin-bottom: 36px;
}
.pg-listing-toolbar .pg-chips { margin: 0; }
.pg-listing-search {
  width: 100%; max-width: 320px;
  padding: 9px 16px; border: 1px solid var(--line-1); border-radius: 999px;
  font-family: inherit; font-size: 14px; color: var(--ink-1); background: var(--bg);
}
.pg-listing-search:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 3px var(--accent-soft); }
.pg-listing-empty { color: var(--ink-3); text-align: center; padding: 40px 0; grid-column: 1 / -1; }

/* real images inside the otherwise-gradient card media */
.pg-post-top { position: relative; overflow: hidden; }
.pg-post-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Keep the category chip as the intended absolute pill (page-core: bottom-left of the
   thumbnail) — only lift it above the image. Do NOT override position here, or it falls
   into flow at the top of the media and gets clipped against the card edge. */
.pg-post-top .pg-post-cat { z-index: 2; }
.pg-blog-feature-media { position: relative; overflow: hidden; }
/* Banner art is a 2:1 graphic with title/logos baked in — contain it on the branded
   gradient so the feature panel's text-driven height never crops the logos. */
.pg-blog-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.pg-blog-feature-media .pg-blog-feature-badge { z-index: 2; }

/* pagination */
.pg-pagination {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 48px; flex-wrap: wrap;
}
.pg-pg-nums { display: flex; align-items: center; gap: 6px; }
.pg-pg-btn, .pg-pg-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line-1); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px;
}
.pg-pg-btn:hover, .pg-pg-num:hover { border-color: var(--brand-1); color: var(--brand-1); }
.pg-pg-num.current { background: var(--brand-1); border-color: var(--brand-1); color: #fff; }
.pg-pg-gap { color: var(--ink-4); padding: 0 4px; }
