.wp-site-blocks > header, .wp-site-blocks > footer { margin-block-start: 0; }
.wp-site-blocks > footer.wp-block-template-part {
  display: block;
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
}
.wp-site-blocks .site-footer-v2 {
  display: block;
  width: 100%;
  padding: 0;
}
.gal-wp-footer .footer-main {
  padding-block: 42px 32px;
  gap: clamp(18px, 3vw, 42px);
}
.gal-wp-footer .footer-main > section {
  min-width: 0;
  gap: 6px;
}
.gal-wp-footer .footer-nav {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gal-wp-footer .footer-nav a { font-size: 14px; }
.gal-wp-footer .footer-social { flex-wrap: wrap; }
.gal-wp-footer .footer-social .footer-community {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding-inline: 12px;
  border-radius: 24px;
  font-size: 13px;
  white-space: nowrap;
}
.gal-wp-footer .footer-bottom { gap: 8px 24px; }
.gal-wp-footer .footer-legal { display: flex; gap: 16px; }
.wp-site-blocks .site-header { width: min(1500px, calc(100% - 40px)); }
.wp-site-blocks main { margin-block-start: 0; }
.gal-content-page { width: min(960px, calc(100% - 40px)); margin: 72px auto; padding: 48px; background: #fff; border: 1px solid #d9e4dc; border-radius: 28px; box-shadow: 0 18px 55px rgba(9,43,36,.08); }
.gal-content-page h1 { font-size: clamp(38px,5vw,64px); }
.gal-wp-header .brand-mark img { width: 26px; height: 26px; }
.gal-tool { width: min(1180px, calc(100% - 40px)); margin: 64px auto 100px; }
.gal-tool .tool-layout { display: grid; grid-template-columns: 320px 1fr; gap: 28px; }
.gal-tool .tool-controls, .gal-tool .tool-output { min-height: 250px; padding: 28px; background: #fff; border: 1px solid #d9e4dc; border-radius: 24px; }
.gal-tool .tool-controls { display: grid; align-content: start; gap: 12px; }
.gal-tool select, .gal-tool input { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid #cbd9d0; border-radius: 12px; font: inherit; }
.gal-content-page:has(.gal-tool) { width: min(1180px, calc(100% - 32px)); padding: clamp(16px, 3.5vw, 40px); }
.gal-content-page .gal-tool { width: 100%; max-width: none; margin: 0; }
.gal-tool .tool-heading { margin-bottom: 24px; }
.gal-tool .tool-heading h1 { margin: 0; font-size: clamp(28px, 4.5vw, 44px); }
.gal-tool .tool-heading p { margin: 12px 0 0; color: #526a87; }
.gal-tool .tool-controls, .gal-tool .tool-output { min-width: 0; border-color: #d8e5ef; }
.gal-tool .tool-controls { min-height: 0; }
.gal-tool .tool-controls label { display: block; margin-bottom: 6px; font-weight: 700; }
.gal-tool .tool-output { background: #f5faff; }
.gal-tool .tool-output:empty { display: none; }
.gal-tool .tool-output h2 { margin-top: 0; font-size: clamp(20px, 3vw, 25px); }
.gal-tool .tool-output-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); gap: 10px; }
.gal-tool .tool-output-grid > div { min-width: 0; padding: 12px; border: 1px solid #d8e5ef; border-radius: 10px; }
.gal-tool .tool-output-grid b { display: block; overflow-wrap: anywhere; }
.gal-tool[data-tool="batch"] .tool-output .profile-card + .profile-card { margin-top: 16px; }
.gal-share-dialog {
  box-sizing: border-box;
  width: min(540px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid #d8e5ef;
  border-radius: 18px;
  background: #fff;
  color: #172b43;
}
.gal-share-dialog::backdrop { background: rgba(19, 32, 52, .55); }
.gal-share-dialog form, .gal-share-actions { display: flex; align-items: center; gap: 8px; }
.gal-share-dialog form { justify-content: space-between; }
.gal-share-dialog h2 { margin: 0; font-size: 24px; }
.gal-share-dialog label { display: grid; gap: 4px; margin-block: 14px; }
.gal-share-dialog :is(input, textarea, button) {
  padding: 8px 12px;
  border: 1px solid #ccddeb;
  border-radius: 8px;
  background: #f5faff;
  color: inherit;
  font: inherit;
}
.gal-share-dialog :is(input, textarea) { width: 100%; min-width: 0; }
.gal-share-dialog button { cursor: pointer; min-height: 40px; }
.gal-share-actions { flex-wrap: wrap; }
.answer-card { margin-top: 28px; padding: 22px; background: #edf6ff; border: 1px solid #d8e5ef; border-radius: 18px; }
.gal-tool[data-tool="saved"] .tool-layout { display: block; }
.gal-tool[data-tool="saved"] .saved-manager-controls { padding: 20px 0; }
.guide-main .mini-generator { margin-top: 24px; min-width: 0; }
.guide-main .guide-hero { display: block; }
.feature-icon { font-size: 26px; }
.wp-site-blocks .quick-start-bar, .wp-site-blocks .hero, .wp-site-blocks .icon-features { display: none !important; }
@media (max-width: 900px) { .wp-site-blocks .site-header { width: calc(100% - 20px); } .gal-tool .tool-layout { grid-template-columns: 1fr; } .gal-content-page { width: calc(100% - 20px); padding: 26px; } }

.site-header.gal-wp-header {
  height: auto;
  margin-inline: auto;
}
.gal-wp-header .simple-nav :is(.header-primary, .header-actions) {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}
.gal-wp-header .simple-nav :is(.header-primary, .header-actions) > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 40px;
  height: auto;
  padding: 7px 9px !important;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.25;
  white-space: nowrap;
}
.gal-wp-header .header-primary > a,
.gal-wp-header .header-saved {
  color: #40566d;
  font-weight: 800;
}
.gal-wp-header .simple-nav .nav-more {
  position: static;
}
.gal-wp-header .simple-nav .nav-mega {
  position: absolute;
  inset: calc(100% + 6px) 0 auto auto;
  max-width: 100%;
  max-height: 60vh;
  overflow: auto;
}
.gal-wp-header .simple-nav .nav-mega::before,
.gal-wp-header .nav-mega > .header-mobile-links {
  display: none;
}
@media (max-width: 560px) {
  .gal-wp-header .simple-nav .header-primary > a:not([data-blog-nav]) {
    display: none;
  }
  .gal-wp-header .simple-nav .header-actions > a {
    padding-inline: 6px !important;
  }
  .gal-wp-header .nav-mega > .header-mobile-links {
    display: block;
  }
  .gal-wp-header .header-mobile-links > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
