/*
Theme Name: MP Modern Theme
Theme URI: https://example.com
Author: Marketing Platform
Description: Modern responsive starter theme for the marketing platform.
Version: 1.5.0
Text Domain: mp-modern
*/

:root {
  --mp-bg: #071522;
  --mp-surface: #10273b;
  --mp-surface-2: #143149;
  --mp-text: #edf5ff;
  --mp-muted: #bdd0e4;
  --mp-primary: #22c55e;
  --mp-primary-2: #f59e0b;
  --mp-border: #2a4860;
  --mp-link: #9ce8ff;
  --mp-accent-soft: rgba(34, 197, 94, 0.16);
  --mp-font-family: "Montserrat", sans-serif;
  --mp-page-gutter: clamp(16px, 2.6vw, 40px);
  --mp-content-max: 1540px;
}

* { box-sizing: border-box; }
html, body { width: 100%; }
body {
  margin: 0;
  font-family: var(--mp-font-family);
  color: var(--mp-text);
  background: linear-gradient(180deg, var(--mp-bg) 0%, color-mix(in srgb, var(--mp-bg) 88%, var(--mp-surface) 12%) 100%);
}

.wp-site-blocks,
#page,
.site {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

a { color: var(--mp-link); }
.container {
  width: min(var(--mp-content-max), calc(100% - (var(--mp-page-gutter) * 2)));
  margin-inline: auto;
  padding-inline: 0;
}

.site-header .container,
.site-footer .container,
main .container {
  width: min(var(--mp-content-max), calc(100% - (var(--mp-page-gutter) * 2)));
  margin-inline: auto;
}
h1, h2, h3, h4 { margin: 0 0 12px; letter-spacing: -0.02em; }
p { color: var(--mp-muted); line-height: 1.82; font-size: 17px; margin: 0 0 14px; }

.card {
  background: linear-gradient(180deg, var(--mp-surface) 0%, #0e2233 100%);
  border: 1px solid var(--mp-border);
  border-radius: 18px;
  padding: 26px;
}
.card-lite {
  background: #0d2335;
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  padding: 20px;
}

.site-header,
.site-footer {
  position: relative;
  width: 100%;
  margin: 0;
  background: rgba(7, 21, 34, 0.95);
  backdrop-filter: blur(8px);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--mp-border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.brand-wrap { min-width: 0; flex: 0 1 340px; }
.brand-wrap .custom-logo { max-height: 42px; width: auto; }
.brand {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-right { display: flex; align-items: center; gap: 12px; margin-left: 8px; }

.menu-toggle {
  display: none;
  border: 1px solid var(--mp-border);
  background: #0f2436;
  color: #eaf5ff;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 600;
}

.main-nav {
  min-width: 0;
  overflow: visible;
  flex: 1 1 560px;
}
.menu-primary,
.menu-primary ul { list-style: none; margin: 0; padding: 0; }
.menu-primary { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 2px; width: 100%; }
.menu-primary > li { position: relative; }
.menu-primary a {
  display: block;
  color: var(--mp-muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
}
.menu-primary a:hover,
.menu-primary .current-menu-item > a,
.menu-primary .current-menu-ancestor > a { color: #fff; background: var(--mp-accent-soft); }

.menu-primary li ul {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  display: none;
  background: #102737;
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  padding: 8px;
  z-index: 40;
}
.menu-primary li:hover > ul,
.menu-primary li:focus-within > ul { display: block; }
.menu-primary li ul li ul { left: calc(100% + 8px); top: 0; }

.lang-switcher ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.lang-switcher a {
  color: #d9e8f7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--mp-surface-2) 58%, transparent);
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.lang-switcher a:hover,
.lang-switcher a:focus-visible {
  color: #fff;
  border-color: var(--mp-border);
  background: color-mix(in srgb, var(--mp-surface-2) 82%, transparent);
}
.lang-switcher li.is-active a {
  color: #fff;
  border-color: color-mix(in srgb, var(--mp-primary) 65%, var(--mp-border));
  background: color-mix(in srgb, var(--mp-primary) 25%, var(--mp-surface-2));
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(90deg, var(--mp-primary), var(--mp-primary-2));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  border-radius: 10px;
  padding: 13px 18px;
  border: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.btn-small { padding: 9px 12px; font-size: 14px; }
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--mp-primary) 36%, transparent);
  filter: saturate(1.05);
}
.btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--mp-primary) 48%, #fff);
  outline-offset: 2px;
}
.btn-header-cta { padding: 12px 18px; font-size: 15px; border-radius: 12px; }
.btn-outline { background: transparent; color: #dafbe7; border: 1px solid #3d8567; }

main section { position: relative; }
.page-section { padding: 70px 0; }

.hero-cover {
  min-height: 650px;
  padding: 140px 0 100px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,17,27,0.90) 0%, rgba(6,17,27,0.56) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 1120px; }
.hero-content h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.04; margin-bottom: 18px; }
.hero-content p { font-size: 21px; max-width: 980px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  background: var(--mp-accent-soft);
  border: 1px solid var(--mp-border);
  color: #e6ffe9;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(25px, 4vw, 38px); }

.modules-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--mp-surface-2) 0%, #0f2538 62%);
}
.module-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid #a5721c;
  color: #ffe3b4;
  margin-bottom: 12px;
  font-weight: 700;
}
.module-card .btn { margin-top: auto; }

.home-blog-preview { padding-top: 12px; padding-bottom: 80px; }
.home-blog-preview .blog-grid {
  grid-template-columns: repeat(2, minmax(220px, 340px));
  justify-content: start;
  gap: 20px;
}
.home-blog-preview .blog-card {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
}
.home-blog-preview .blog-card .blog-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-feature-band {
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid var(--mp-border);
  border-bottom: 1px solid var(--mp-border);
}
.home-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(7, 21, 34, 0.86), rgba(7, 21, 34, 0.58));
}
.feature-band-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  background: rgba(8, 20, 32, 0.78);
  backdrop-filter: blur(3px);
}
.feature-band-content h2 { font-size: clamp(28px, 4vw, 44px); }
.feature-band-content p { max-width: 72ch; }
.home-feature-band + .home-blog-preview {
  padding-top: 64px;
}

.blog-grid {
  display: grid;
  gap: 28px;
  margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  align-items: stretch;
}
.blog-card h2, .blog-card h3 { margin-bottom: 8px; }
.blog-card { display: flex; flex-direction: column; gap: 8px; }
.blog-thumb img,
.related-thumb img,
.single-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.filter-pill {
  padding: 8px 12px;
  border: 1px solid #39738a;
  border-radius: 999px;
  color: #d6f4ff;
  text-decoration: none;
  font-size: 14px;
}
.filter-pill.is-active { background: var(--mp-primary); color: #112817; border-color: var(--mp-primary); }
.meta { font-size: 13px; opacity: 0.85; }
.pagination-wrap ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 24px 0 0; }
.pagination-wrap a,
.pagination-wrap span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--mp-border);
  text-decoration: none;
}

.single-post { width: 100%; margin: 0; }
.single-header h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.14; margin-bottom: 16px; }
.single-content { margin-top: 24px; }
.single-content p,
.single-content li { font-size: 19px; line-height: 1.9; color: #d9eafb; }
.single-content h2,
.single-content h3 { margin-top: 30px; }
.related-posts { width: 100%; margin: 28px 0 0; }
.related-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.site-footer {
  margin-top: 84px;
  border-top: 1px solid var(--mp-border);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; padding: 34px 0 20px; width: 100%; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a { color: #d8f4ff; text-decoration: none; }
.footer-menu a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--mp-border); }
.footer-bottom p { margin: 0; padding: 16px 0 24px; }

form.auth-form { display: grid; gap: 12px; max-width: 550px; }
.auth-form input { padding: 11px; border-radius: 9px; border: 1px solid #3a4b81; background: #0f1730; color: #fff; }
.auth-form button { padding: 11px; border: none; border-radius: 9px; font-weight: 700; cursor: pointer; }

/* WooCommerce checkout readability */
.woocommerce-checkout form .form-row {
  margin-bottom: 14px;
}
.woocommerce-checkout form .form-row label,
.woocommerce-checkout form .form-row label .optional {
  display: block !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 7px;
  color: #4b5563 !important;
  font-size: 14px;
  line-height: 1.35;
}
.woocommerce-checkout form .form-row .woocommerce-input-wrapper + label,
.woocommerce-checkout form .form-row[class*='form-row-'] > label,
.woocommerce-checkout form .form-row .select2-container + label {
  color: #4b5563 !important;
}
.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row select,
.woocommerce-checkout form .form-row textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--mp-border);
  background: color-mix(in srgb, var(--mp-surface) 82%, #fff);
  color: #1f2937;
  padding: 11px 12px;
}
.woocommerce-checkout form .form-row input:-webkit-autofill,
.woocommerce-checkout form .form-row input:-webkit-autofill:hover,
.woocommerce-checkout form .form-row input:-webkit-autofill:focus,
.woocommerce-checkout form .form-row textarea:-webkit-autofill,
.woocommerce-checkout form .form-row textarea:-webkit-autofill:hover,
.woocommerce-checkout form .form-row textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #1f2937;
  transition: background-color 5000s ease-in-out 0s;
}

.woocommerce-checkout form .form-row input::placeholder,
.woocommerce-checkout form .form-row textarea::placeholder,
.woocommerce-checkout form .form-row input::-webkit-input-placeholder,
.woocommerce-checkout form .form-row textarea::-webkit-input-placeholder,
.woocommerce-checkout form .select2-container--default .select2-selection--single .select2-selection__placeholder,
.woocommerce-checkout form .select2-container--default .select2-selection--single .select2-selection__rendered.select2-selection__placeholder {
  color: #4b5563 !important;
  opacity: 1 !important;
}
.woocommerce-checkout form .form-row .select2-container--default .select2-selection--single {
  border-radius: 10px;
  border: 1px solid var(--mp-border);
  background: color-mix(in srgb, var(--mp-surface) 82%, #fff);
  height: 46px;
}
.woocommerce-checkout form .form-row .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #1f2937;
  line-height: 44px;
  padding-left: 12px;
}
.woocommerce-checkout form .form-row .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
}



/* WooCommerce Blocks checkout readability */
.wc-block-checkout .wc-block-components-text-input,
.wc-block-checkout .wc-block-components-combobox,
.wc-block-checkout .wc-block-components-address-form__address_2-toggle,
.wc-block-checkout .wc-block-components-select-control {
  color: #1f2937;
}
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input textarea,
.wc-block-checkout .wc-block-components-combobox-control .components-combobox-control__input,
.wc-block-checkout .wc-block-components-select-control select {
  color: #1f2937 !important;
  background: #ffffff !important;
}
.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-block-components-text-input.is-active label,
.wc-block-checkout .wc-block-components-text-input.has-value label,
.wc-block-checkout .wc-block-components-combobox-control label,
.wc-block-checkout .wc-block-components-select-control label,
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input label,
.wc-block-checkout .wc-block-components-address-form .wc-block-components-combobox-control label {
  color: #4b5563 !important;
  opacity: 1 !important;
}
.wc-block-checkout .wc-block-components-text-input input::placeholder,
.wc-block-checkout .wc-block-components-text-input textarea::placeholder,
.wc-block-checkout .wc-block-components-combobox-control .components-combobox-control__input::placeholder {
  color: #4b5563 !important;
  opacity: 1 !important;
}
.wc-block-checkout .wc-block-components-text-input input::-webkit-input-placeholder,
.wc-block-checkout .wc-block-components-text-input textarea::-webkit-input-placeholder,
.wc-block-checkout .wc-block-components-combobox-control .components-combobox-control__input::-webkit-input-placeholder {
  color: #4b5563 !important;
}


.wc-block-checkout .wc-block-components-combobox-control,
.wc-block-checkout .wc-block-components-select-control {
  position: relative;
}
.wc-block-checkout .wc-block-components-combobox-control label.components-base-control__label,
.wc-block-checkout .wc-block-components-select-control .wc-block-components-select-control__label,
.wc-block-checkout .wc-block-components-combobox-control .components-input-control__label,
.wc-block-checkout .wc-block-components-address-form .wc-block-components-combobox-control label.components-base-control__label {
  color: #4b5563 !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
}
.wc-block-checkout .wc-block-components-combobox-control .components-input-control__container,
.wc-block-checkout .wc-block-components-select-control .wc-block-components-select-control__container {
  background: #ffffff !important;
  color: #1f2937 !important;
}
.wc-block-checkout .wc-block-components-combobox-control .components-input-control__input,
.wc-block-checkout .wc-block-components-combobox-control .components-form-token-field__input,
.wc-block-checkout .wc-block-components-combobox-control .components-combobox-control__input,
.wc-block-checkout .wc-block-components-select-control select {
  color: #1f2937 !important;
}
.wc-block-checkout .wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-components-button,
.wc-block-checkout .wc-block-checkout__actions_row .components-button {
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(90deg, var(--mp-primary), var(--mp-primary-2)) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--mp-primary) 30%, transparent);
}
.wc-block-checkout .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout .wc-block-components-button:hover,
.wc-block-checkout .wc-block-checkout__actions_row .components-button:hover {
  filter: saturate(1.05);
}

@media (max-width: 980px) {
  :root { --mp-page-gutter: 14px; }
  .modules-grid,
  .blog-grid,
  .related-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .hero-cover { min-height: 560px; padding: 120px 0 80px; }
  .hero-content p { font-size: 18px; }

  .home-blog-preview .blog-grid { grid-template-columns: 1fr; }
  .home-blog-preview .blog-card { aspect-ratio: auto; }

  .menu-toggle { display: inline-flex; }
  .header-right { width: 100%; justify-content: space-between; margin-left: 0; }
  .main-nav { width: 100%; display: none; flex: 1 1 100%; }
  .main-nav.is-open { display: block; }
  .menu-primary { flex-direction: column; align-items: stretch; }
  .menu-primary a { padding: 10px 12px; }
  .menu-primary li ul { position: static; display: block; border: none; padding: 0 0 0 12px; background: transparent; }
  .section-head { flex-direction: column; align-items: flex-start; }

  .single-content p,
  .single-content li { font-size: 17px; }
}


.mp-llmstxt-generator {
  display: grid;
  gap: 12px;
}

.mp-tool-notice {
  margin-bottom: 14px;
}
.mp-tool-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Tool pages: premium full-width UX */
.tools-page-template {
  width: 100%;
  padding: clamp(22px, 3vw, 40px);
}
.tools-page-header {
  margin-bottom: 22px;
}
.tools-page-header h1 {
  margin-bottom: 8px;
  line-height: 1.15;
}
.tool-page-description {
  max-width: 80ch;
  color: var(--mp-muted);
  font-size: 17px;
}
.tools-page-body {
  display: grid;
  gap: 20px;
}
.mp-tools-hub {
  display: grid;
  gap: 20px;
  font-family: var(--mp-font-family);
}
.mp-tools-hub-intro {
  margin: 0;
  max-width: 90ch;
  color: var(--mp-muted);
}
.mp-tools-category {
  display: grid;
  gap: 12px;
}
.mp-tools-category h3 {
  margin: 0 0 2px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
}
.mp-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.mp-tool-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mp-tool-card h4 {
  margin: 0 0 2px;
  font-size: 19px;
  line-height: 1.3;
}
.mp-tool-card p {
  margin: 0;
}
.mp-tool-description {
  line-height: 1.55;
  color: var(--mp-text);
  opacity: 0.92;
  flex: 1;
}
.mp-tool-open-btn {
  align-self: flex-start;
  margin-top: 8px;
}
.tools-page-template .mip-llmstxt-generator,
.tools-page-template .mip-social-caption-generator,
.tools-page-template .mip-email-writer,
.tools-page-template .mip-landing-page-copy-builder,
.tools-page-template .mip-content-calendar,
.tools-page-template .mip-audience-persona-builder,
.tools-page-template .mip-blog-post-ideas-generator,
.tools-page-template .mip-blog-post-generator,
.tools-page-template .mip-keyword-clustering {
  width: 100%;
}
.tools-page-template .mip-tool-form {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.tools-page-template .mip-tool-form label {
  font-weight: 600;
  font-size: 15px;
  color: var(--mp-text);
}
.tools-page-template .mip-tool-form input,
.tools-page-template .mip-tool-form select,
.tools-page-template .mip-tool-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--mp-border);
  background: color-mix(in srgb, var(--mp-surface) 82%, #fff);
  color: var(--mp-text);
  font-size: 16px;
}
.tools-page-template .mip-tool-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mp-muted) 50%), linear-gradient(135deg, var(--mp-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.tools-page-template .mip-tool-form fieldset {
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  padding: 12px 12px 8px;
  margin: 0;
}
.tools-page-template .mip-tool-form legend {
  font-weight: 600;
  color: var(--mp-text);
  padding: 0 6px;
}
.tools-page-template .mip-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 12px;
}
.tools-page-template .mip-checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--mp-muted);
}
.tools-page-template .mip-checkbox-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.tools-page-template .mip-tool-form button.btn {
  justify-self: end;
  margin-top: 10px;
  min-width: 230px;
  font-size: 17px;
  padding: 14px 22px;
}
.tools-page-template .mip-caption-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.tools-page-template .mip-result-card {
  background: color-mix(in srgb, var(--mp-surface-2) 30%, var(--mp-surface));
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  padding: 16px;
}
.tools-page-template .mip-result-card h4 {
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  .tools-page-template .mip-caption-results {
    grid-template-columns: 1fr;
  }
}

.tools-page-template .mip-brand-voice-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.tools-page-template .mip-email-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.tools-page-template .mip-lpcb-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.tools-page-template .mip-cc-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.tools-page-template .mip-apb-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.tools-page-template .mip-bpig-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.tools-page-template .mip-bpg-results,
  .tools-page-template .mip-kc-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.tools-page-template .mip-brand-voice-results > p {
  grid-column: 1 / -1;
  margin: 0;
}
.tools-page-template .mip-email-results > p,
.tools-page-template .mip-lpcb-results > p,
.tools-page-template .mip-cc-results > p,
.tools-page-template .mip-apb-results > p,
.tools-page-template .mip-bpig-results > p,
.tools-page-template .mip-bpg-results > p,
.tools-page-template .mip-kc-results > p,
.tools-page-template .mip-email-body-card,
.tools-page-template .mip-cc-table-card {
  grid-column: 1 / -1;
}
@media (max-width: 980px) {
  .tools-page-template .mip-brand-voice-results,
  .tools-page-template .mip-email-results,
  .tools-page-template .mip-lpcb-results,
  .tools-page-template .mip-cc-results,
  .tools-page-template .mip-apb-results,
  .tools-page-template .mip-bpig-results,
  .tools-page-template .mip-bpg-results,
  .tools-page-template .mip-kc-results {
    grid-template-columns: 1fr;
  }
}

.tools-page-template .mip-calendar-table-wrap { overflow-x: auto; }
.tools-page-template .mip-calendar-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.tools-page-template .mip-calendar-table th,
.tools-page-template .mip-calendar-table td { border: 1px solid var(--mp-border); padding: 10px; vertical-align: top; text-align: left; }
.tools-page-template .mip-calendar-table th { background: var(--mp-surface-2); }


.tools-page-template .mip-bpg-results {
  margin-top: 14px;
}
.tools-page-template .mip-bpg-results ul {
  margin: 8px 0 0 20px;
  display: grid;
  gap: 8px;
}
.tools-page-template .mip-bpg-results .mip-result-card p,
.tools-page-template .mip-bpg-results .mip-result-card li {
  line-height: 1.55;
}


.mip-blog-post-generator .mip-tool-form {
  display: grid;
  gap: 14px;
}
.mip-blog-post-generator .mip-tool-form label {
  display: block;
  margin: 0 0 6px;
  line-height: 1.25;
}
.mip-blog-post-generator .mip-tool-form input,
.mip-blog-post-generator .mip-tool-form select,
.mip-blog-post-generator .mip-tool-form textarea {
  display: block;
  width: 100%;
  margin: 0 0 10px;
}
.mip-blog-post-generator .mip-tool-form textarea {
  min-height: 120px;
}
.mip-blog-post-generator .mip-tool-form button.btn {
  margin-top: 8px;
}
