/*
Theme Name: Manish Pushkar
Author: Manish
Author URI: https://manishpushkar.com/
Description: A lightweight classic-editor WordPress theme with a fixed header, polished footer, homepage content area, and filterable Projects custom post type, project archive, and demo request modal.
Version: 1.1.4
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manishpushkar-wp
Tags: custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

:root {
  --mp-bg: #fff;
  --mp-text: #151515;
  --mp-muted: #666;
  --mp-border: #e6e6e6;
  --mp-surface: #f7f7f5;
  --mp-accent: #c90000;
  --mp-accent-dark: #8f0000;
  --mp-container: 1280px;
  --mp-header-height: 76px;
  --mp-radius: 18px;
  --mp-shadow: 0 18px 50px rgba(0, 0, 0, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mp-header-height) + 20px); }
body {
  margin: 0;
  padding-top: var(--mp-header-height);
  overflow-wrap: break-word;
  background: var(--mp-bg);
  color: var(--mp-text);
  font-family: "Space Mono", monospace;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--mp-accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--mp-accent-dark); }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }
.mp-container { width: min(calc(100% - 32px), var(--mp-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; z-index: 99999; width: auto; height: auto; padding: 12px 16px; background: #fff; color: #000; clip: auto; }

.site-header { position: fixed; top: 0; right: 0; left: 0; z-index: 1000; height: var(--mp-header-height); background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(230,230,230,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
body.admin-bar .site-header { top: 32px; }
body.admin-bar { scroll-padding-top: calc(var(--mp-header-height) + 52px); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 46px; width: auto; }
.site-title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.site-title a { color: var(--mp-text); text-decoration: none; }
.primary-navigation ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-navigation a { display: block; padding: 10px 12px; border-radius: 9px; color: #222; font-size: .88rem; font-weight: 700; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--mp-accent); background: #fff0f0; }
.menu-toggle { display: none; width: 46px; height: 46px; margin-left: auto; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--mp-border); border-radius: 12px; background: #fff; color: var(--mp-text); cursor: pointer; }
.menu-toggle__bars { display: grid; gap: 5px; width: 21px; }
.menu-toggle__bars span { display: block; width: 100%; height: 2px; border-radius: 999px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-main { min-height: 55vh; }
.entry-header { width: min(calc(100% - 32px), var(--mp-container)); margin: 52px auto 0; }
.entry-title { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.04em; }
.entry-content { width: min(calc(100% - 32px), var(--mp-container)); margin-inline: auto; padding: 52px 0 72px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.homepage-content { max-width: var(--mp-container); }

.projects-section { padding: 88px 0 104px; background: var(--mp-surface); border-top: 1px solid var(--mp-border); }
.projects-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-kicker { margin: 0 0 8px; color: var(--mp-accent); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.projects-heading-row h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.06em; }
.projects-count { margin: 0; color: var(--mp-muted); font-size: .85rem; }
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 38px; padding: 0; border: 0; }
.filter-option { position: relative; cursor: pointer; }
.filter-option input { position: absolute; opacity: 0; pointer-events: none; }
.filter-option span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 15px; border: 1px solid var(--mp-border); border-radius: 999px; background: #fff; color: #333; font-size: .78rem; font-weight: 700; transition: .2s ease; }
.filter-option:hover span, .filter-option.is-active span, .filter-option input:focus-visible + span { border-color: #111; background: #111; color: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { overflow: hidden; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.04); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--mp-shadow); }
.project-card__image { display: grid; min-height: 230px; overflow: hidden; place-items: center; background: #ececea; text-decoration: none; }
.project-card__image img { width: 100%; height: 230px; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .project-card__image img { transform: scale(1.035); }
.project-card__placeholder { color: #aaa; font-size: 3rem; font-weight: 700; }
.project-card__body { padding: 25px; }
.project-card__category { margin: 0 0 10px; color: var(--mp-accent); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-card h3 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.35; }
.project-card h3 a { color: var(--mp-text); text-decoration: none; }
.project-card__excerpt { margin: 0 0 22px; color: var(--mp-muted); font-size: .84rem; }
.project-card__link { font-size: .78rem; font-weight: 700; text-decoration: none; }
.empty-projects, .no-filter-results { padding: 40px; border: 1px dashed #ccc; border-radius: var(--mp-radius); background: #fff; text-align: center; }
.empty-projects h3 { margin-top: 0; }

.site-footer { position: relative; overflow: hidden; margin-top: 0; background: #101010; color: #d5d5d5; }
.site-footer::before { content: ""; position: absolute; width: 480px; height: 480px; top: -300px; right: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,0,0,.32), transparent 68%); pointer-events: none; }
.footer-main { position: relative; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(220px,.6fr); gap: 48px; padding: 78px 0 56px; }
.footer-brand h2 { margin: 0 0 16px; color: #fff; font-size: clamp(1.8rem,4vw,3.5rem); line-height: 1.08; letter-spacing: -.05em; }
.footer-brand p { max-width: 680px; margin: 0; color: #9e9e9e; }
.footer-navigation ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-navigation a { color: #e7e7e7; text-decoration: none; }
.footer-navigation a:hover { color: #fff; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 24px; padding: 23px 0 29px; border-top: 1px solid #282828; color: #929292; font-size: .75rem; }
.footer-bottom a { color: #ddd; }


@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar { scroll-padding-top: calc(var(--mp-header-height) + 66px); }
}
@media screen and (max-width: 600px) {
  #wpadminbar { position: fixed; }
}

@media (max-width: 980px) { .projects-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 820px) {
  :root { --mp-header-height: 68px; }
  .menu-toggle { display: inline-flex; order: 3; flex: 0 0 auto; }
  .site-branding { order: 1; }
  .primary-navigation { position: absolute; top: calc(100% + 8px); right: 16px; left: auto; width: min(360px, calc(100% - 32px)); display: none; padding: 12px; border: 1px solid var(--mp-border); border-radius: 16px; background: #fff; box-shadow: var(--mp-shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: grid; gap: 4px; }
  .primary-navigation a { padding: 12px; }
  .footer-main { grid-template-columns: 1fr; padding-top: 58px; }
  .footer-bottom, .projects-heading-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .projects-section { padding: 64px 0 78px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card__image, .project-card__image img { min-height: 210px; height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v0.6 shared dark title hero for pages and blog posts */
.content-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(62px, 8vw, 104px) 0;
  background: linear-gradient(135deg, #111 0%, #191919 62%, #3a0808 100%);
  color: #fff;
}
.content-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,0,0,.08), transparent 52%);
  pointer-events: none;
}
.content-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -270px;
  right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,0,0,.42), transparent 68%);
  pointer-events: none;
}
.content-hero__inner { position: relative; z-index: 1; }
.content-hero .entry-title {
  max-width: 1050px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.07em;
}
.content-hero__meta { margin: 20px 0 0; color: #bbb; font-size: .82rem; }
.content-hero__meta a { color: #fff; }

/* v0.5 project archive, single project hero and demo request */
.projects-archive-cta { display:flex; justify-content:center; margin-top:42px; }
.projects-archive-cta a, .project-hero__cta, .demo-form__submit { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:50px; padding:12px 22px; border:0; border-radius:999px; background:var(--mp-accent); color:#fff; font-weight:700; text-decoration:none; cursor:pointer; transition:transform .2s ease, background .2s ease; }
.projects-archive-cta a:hover, .project-hero__cta:hover, .demo-form__submit:hover { background:var(--mp-accent-dark); color:#fff; transform:translateY(-2px); }
.project-archive-hero { position:relative; overflow:hidden; padding:92px 0 86px; background:#111; color:#fff; }
.project-archive-hero::after { content:""; position:absolute; width:520px; height:520px; right:-160px; top:-260px; border-radius:50%; background:radial-gradient(circle, rgba(255,0,0,.52), transparent 67%); }
.project-archive-hero .mp-container { position:relative; z-index:1; }
.project-archive-hero h1 { max-width:900px; margin:0 0 18px; font-size:clamp(3rem,8vw,6rem); line-height:.95; letter-spacing:-.07em; }
.project-archive-hero p:last-child { max-width:760px; margin:0; color:#bbb; }
.project-hero { position:relative; overflow:hidden; padding:82px 0; background:linear-gradient(135deg,#111 0%,#191919 58%,#3a0808 100%); color:#fff; }
.project-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(255,0,0,.08),transparent 48%); }
.project-hero__inner { position:relative; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr); align-items:center; gap:64px; }
.project-hero__category { margin:0 0 18px; color:#ff6b6b; font-size:.75rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.project-hero__category a { color:inherit; text-decoration:none; }
.project-hero h1 { margin:0; font-size:clamp(3rem,7vw,6.4rem); line-height:.96; letter-spacing:-.07em; }
.project-hero__excerpt { max-width:850px; margin:30px 0 0; color:#d3d3d3; font-size:clamp(1rem,1.5vw,1.18rem); }
.project-hero__cta { margin-top:32px; }
.project-hero__media { overflow:hidden; border:1px solid rgba(255,255,255,.16); border-radius:24px; box-shadow:0 30px 70px rgba(0,0,0,.35); }
.project-hero__media img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.project-content { padding-top:68px; }
.demo-floating-cta { position:fixed; z-index:950; right:22px; top:50%; transform:translateY(-50%); padding:15px 18px; border:0; border-radius:999px; background:var(--mp-accent); color:#fff; font-weight:700; box-shadow:0 18px 45px rgba(255,0,0,.3); cursor:pointer; writing-mode:vertical-rl; }
.demo-floating-cta:hover { background:var(--mp-accent-dark); }
.demo-modal { position:fixed; z-index:10000; inset:0; display:none; place-items:center; padding:20px; }
.demo-modal.is-open { display:grid; }
.demo-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.7); backdrop-filter:blur(6px); }
.demo-modal__dialog { position:relative; width:min(720px,100%); max-height:calc(100vh - 40px); overflow:auto; padding:38px; border-radius:24px; background:#fff; box-shadow:0 30px 90px rgba(0,0,0,.35); }
.demo-modal__dialog h2 { margin:0 0 12px; font-size:clamp(2rem,5vw,3.4rem); line-height:1; letter-spacing:-.06em; }
.demo-modal__dialog > p:not(.section-kicker) { color:var(--mp-muted); }
.demo-modal__close { position:absolute; top:15px; right:15px; width:42px; height:42px; border:1px solid var(--mp-border); border-radius:50%; background:#fff; font-size:1.6rem; cursor:pointer; }
.demo-form { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:28px; }
.demo-form label { display:grid; align-content:start; gap:8px; font-size:.78rem; font-weight:700; }
.demo-form input, .demo-form select, .demo-form textarea { width:100%; padding:13px 14px; border:1px solid #d7d7d7; border-radius:11px; background:#fff; color:#111; }
.demo-form input, .demo-form select { height:50px; min-height:50px; }
.demo-form input[type="tel"] { height:50px !important; min-height:50px !important; align-self:start; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline:2px solid rgba(255,0,0,.18); border-color:var(--mp-accent); }
.demo-form__wide, .demo-form__submit, .demo-form__status { grid-column:1 / -1; }
.demo-form__submit { justify-self:start; }
.demo-form__submit:disabled { opacity:.6; cursor:wait; }
.demo-form__status { min-height:1.5em; margin:0; color:#b00000; font-size:.8rem; }
.demo-form__status.is-success { color:#087a2f; }
body.demo-modal-open { overflow:hidden; }
@media (max-width:900px) { .project-hero__inner { grid-template-columns:1fr; gap:36px; } .project-hero__media { max-width:620px; } }
@media (max-width:620px) { .project-archive-hero,.project-hero { padding:64px 0; } .demo-floating-cta { right:12px; padding:13px 14px; font-size:.72rem; } .demo-modal__dialog { padding:30px 22px; } .demo-form { grid-template-columns:1fr; } .demo-form__wide,.demo-form__submit,.demo-form__status { grid-column:auto; } }
.mp-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.projects-grid.is-empty { min-height: 0; }

/* Accessibility and rendering optimizations */
.section-kicker { color: #b00000; }
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.primary-navigation a[aria-current="page"] { color: #a00000; background: #fff1f1; }
:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.project-card, .site-footer { content-visibility: auto; contain-intrinsic-size: 1px 500px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Project screenshots */
.project-screenshots {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--mp-surface);
  border-top: 1px solid var(--mp-border);
}

.project-screenshots h2 {
  margin: 6px 0 30px;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.08;
}

.project-screenshots__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.project-screenshot {
  margin: 0;
}

.project-screenshot a {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-screenshot a:hover,
.project-screenshot a:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .14);
}

.project-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-screenshot figcaption {
  padding: 12px 4px 0;
  color: var(--mp-muted);
  font-size: .86rem;
}

@media (max-width: 760px) {
  .project-screenshots__grid {
    grid-template-columns: 1fr;
  }
}


/* Project screenshot lightbox */
.project-lightbox[hidden] { display: none !important; }
.project-lightbox {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 36px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.project-lightbox.is-open { opacity: 1; visibility: visible; }
.project-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.project-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  width: min(1500px, 100%);
  height: min(900px, calc(100vh - 48px));
  color: #fff;
}
.project-lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.project-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: scale(.985);
  transition: opacity .2s ease, transform .2s ease;
}
.project-lightbox__image.is-visible { opacity: 1; transform: scale(1); }
.project-lightbox__loader {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, .22);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: project-lightbox-spin .75s linear infinite;
}
.project-lightbox__stage.is-loading .project-lightbox__loader { opacity: 1; }
@keyframes project-lightbox-spin { to { transform: rotate(360deg); } }
.project-lightbox__close,
.project-lightbox__nav {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.project-lightbox__close:hover,
.project-lightbox__nav:hover { background: rgba(255, 255, 255, .18); transform: scale(1.04); }
.project-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  font-size: 2rem;
  line-height: 1;
}
.project-lightbox__nav { font-size: 1.55rem; }
.project-lightbox__nav--previous { justify-self: start; }
.project-lightbox__nav--next { justify-self: end; }
.project-lightbox__details {
  grid-column: 1 / -1;
  padding-top: 16px;
  text-align: center;
}
.project-lightbox__counter { margin: 0; color: #fff; font-size: .78rem; font-weight: 700; }
.project-lightbox__caption { max-width: 900px; margin: 7px auto 0; color: #c8c8c8; font-size: .86rem; }
body.project-lightbox-open { overflow: hidden; }
@media (max-width: 700px) {
  .project-lightbox { padding: 10px; }
  .project-lightbox__dialog {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    height: calc(100vh - 20px);
  }
  .project-lightbox__close { top: 8px; right: 8px; }
  .project-lightbox__nav { width: 42px; height: 42px; }
  .project-lightbox__image { border-radius: 6px; }
}

.demo-form select:disabled { opacity:.65; cursor:not-allowed; background:#f5f5f5; }
.demo-form__hint { margin:0; color:var(--mp-muted); font-size:.72rem; font-weight:400; }

/* Blog archive and single articles */
.blog-card__meta { margin: -2px 0 14px; color: var(--mp-muted); font-size: .72rem; }
.blog-card__image img { aspect-ratio: 16 / 9; }
.single-post-featured { padding-top: 52px; }
.single-post-featured img { width: 100%; max-height: 680px; object-fit: cover; border-radius: var(--mp-radius); }

/* Rich article content */
.entry-content h2 { margin-top: 3.5rem; line-height: 1.25; }
.entry-content h3 { margin-top: 2.5rem; line-height: 1.3; }
.entry-content h4 { margin-top: 2rem; }
.entry-content ul,
.entry-content ol { margin: 1.5rem 0; padding-left: 1.8rem; }
.entry-content li { margin-bottom: .65rem; }
.entry-content blockquote { margin: 2.5rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 4px solid var(--mp-accent); font-style: italic; }
.entry-content pre { overflow-x: auto; margin: 2rem 0; padding: 1.5rem; border-radius: 12px; background: #111; color: #fff; }
.entry-content code { font-family: "Space Mono", monospace; }
.entry-content img { margin: 2rem auto; }

/* Responsive content tables */
.entry-content .mp-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  overflow: visible;
}

.entry-content .mp-table-scroll table {
  display: table;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
  font-size: .88rem;
  background: #fff;
}

/* Remove default Gutenberg table margins when it sits inside our wrapper. */
.entry-content .mp-table-scroll .wp-block-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: visible;
}

.entry-content th,
.entry-content td { padding: 14px 18px; border: 1px solid var(--mp-border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.entry-content th { background: #111; color: #fff; font-weight: 700; }
.entry-content tbody tr:nth-child(even) { background: var(--mp-surface); }
.entry-content tbody tr:hover { background: #fff4f4; }
.entry-content caption { padding: 0 0 12px; color: var(--mp-muted); font-weight: 700; text-align: left; caption-side: top; }
.entry-content .wp-block-table.is-style-stripes { border-bottom: 0; }

/* Tablet and mobile: only the table region scrolls horizontally. */
@media (max-width: 1024px) {
  .entry-content .mp-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: #777 #eee;
  }

  .entry-content .mp-table-scroll table,
  .entry-content .mp-table-scroll .wp-block-table {
    width: max-content;
    min-width: 720px;
    max-width: none;
  }

  .entry-content .mp-table-scroll::-webkit-scrollbar { height: 10px; }
  .entry-content .mp-table-scroll::-webkit-scrollbar-track { background: #eee; }
  .entry-content .mp-table-scroll::-webkit-scrollbar-thumb {
    background: #777;
    border: 2px solid #eee;
    border-radius: 999px;
  }
}

@media (max-width: 620px) {
  .entry-content .mp-table-scroll table {
    min-width: 720px;
    font-size: .8rem;
    white-space: normal;
  }
  .entry-content th, .entry-content td { padding: 11px 13px; }
  .single-post-featured { padding-top: 32px; }
}
