/* Hercules Block Editor + Jetpack integration */
:root{
  --hercules-block-accent: var(--hercules-accent,#2563eb);
  --hercules-block-ink:#172033;
  --hercules-block-muted:#667085;
  --hercules-block-border:#e3e8ef;
  --hercules-block-soft:#f8fafc;
  --hercules-block-radius:16px;
}

.entry-content > .wp-block-group,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-cover,
.entry-content > .wp-block-media-text,
.entry-content > .wp-block-query,
.entry-content > .wp-block-table,
.entry-content > .wp-block-gallery{
  margin-top:1.5rem;
  margin-bottom:1.5rem;
}

.wp-block-group.is-style-hercules-card{
  padding:clamp(22px,3vw,36px);
  border:1px solid var(--hercules-block-border);
  border-radius:var(--hercules-block-radius);
  background:#fff;
  box-shadow:0 12px 32px rgba(15,23,42,.06);
}

.wp-block-image.is-style-hercules-rounded img{
  border-radius:var(--hercules-block-radius);
}

.wp-block-quote.is-style-hercules-accent{
  padding:18px 22px;
  border-left:4px solid var(--hercules-block-accent);
  border-radius:0 12px 12px 0;
  background:var(--hercules-block-soft);
}
.wp-block-quote.is-style-hercules-accent p{
  color:var(--hercules-block-ink);
}

.wp-block-button.is-style-hercules-pill .wp-block-button__link{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 22px;
  border-radius:999px;
  background:var(--hercules-block-accent);
  color:#fff;
  font-weight:800;
  text-decoration:none;
}

.wp-block-columns{
  gap:clamp(18px,2.5vw,32px);
}
.wp-block-cover{
  overflow:hidden;
  border-radius:var(--hercules-block-radius);
}
.wp-block-media-text{
  overflow:hidden;
  border-radius:var(--hercules-block-radius);
}
.wp-block-table table{
  width:100%;
  border-collapse:collapse;
}
.wp-block-table th,
.wp-block-table td{
  padding:12px 14px;
  border:1px solid var(--hercules-block-border);
}
.wp-block-table th{
  background:var(--hercules-block-soft);
  color:var(--hercules-block-ink);
}
.wp-block-details{
  padding:14px 16px;
  border:1px solid var(--hercules-block-border);
  border-radius:12px;
  background:#fff;
}
.wp-block-details summary{
  cursor:pointer;
  color:var(--hercules-block-ink);
  font-weight:800;
}

/* Wide/full alignment for classic Hercules theme content */
.entry-content .alignwide,
.editor-styles-wrapper .alignwide{
  width:min(1180px,calc(100vw - 48px));
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}
.entry-content .alignfull,
.editor-styles-wrapper .alignfull{
  width:100%;
  max-width:none;
}

/* Jetpack blocks */
[class*="wp-block-jetpack-"]{
  box-sizing:border-box;
}
.wp-block-jetpack-contact-form,
.wp-block-jetpack-subscriptions,
.wp-block-jetpack-mailchimp,
.wp-block-jetpack-newsletter{
  padding:22px;
  border:1px solid var(--hercules-block-border);
  border-radius:var(--hercules-block-radius);
  background:#fff;
}
.wp-block-jetpack-contact-form input,
.wp-block-jetpack-contact-form textarea,
.wp-block-jetpack-contact-form select,
.wp-block-jetpack-subscriptions input,
.wp-block-jetpack-mailchimp input,
.wp-block-jetpack-newsletter input{
  width:100%;
  max-width:100%;
  min-height:46px;
  padding:10px 12px;
  border:1px solid var(--hercules-block-border);
  border-radius:9px;
  background:#fff;
  color:var(--hercules-block-ink);
  box-sizing:border-box;
}
.wp-block-jetpack-contact-form textarea{
  min-height:140px;
}
.wp-block-jetpack-contact-form button,
.wp-block-jetpack-contact-form input[type="submit"],
.wp-block-jetpack-subscriptions button,
.wp-block-jetpack-mailchimp button,
.wp-block-jetpack-newsletter button{
  min-height:44px;
  padding:0 18px;
  border:0;
  border-radius:9px;
  background:var(--hercules-block-accent);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.wp-block-jetpack-slideshow,
.wp-block-jetpack-tiled-gallery,
.wp-block-jetpack-video,
.wp-block-jetpack-videopress{
  overflow:hidden;
  border-radius:var(--hercules-block-radius);
}
.wp-block-jetpack-social-icons,
.wp-block-social-links{
  gap:10px;
}

/* Editor parity */
.editor-styles-wrapper{
  color:var(--hercules-block-ink);
}
.editor-styles-wrapper .wp-block{
  max-width:900px;
}
.editor-styles-wrapper .wp-block[data-align="wide"]{
  max-width:1180px;
}
.editor-styles-wrapper .wp-block[data-align="full"]{
  max-width:none;
}

/* Do not interfere with non-block builder canvases */
.elementor .wp-block-group,
.vc_row .wp-block-group{
  box-shadow:none;
}

@media(max-width:782px){
  .entry-content .alignwide,
  .editor-styles-wrapper .alignwide{
    width:calc(100% - 24px);
  }
  .wp-block-group.is-style-hercules-card{
    padding:20px;
  }
}
@media(prefers-reduced-motion:reduce){
  .wp-block-button__link{
    transition:none!important;
  }
}
