/* MultiTools Tools — branded site chrome (all classes prefixed mtt-) */
html { scroll-behavior: smooth; }

body.mtt-chrome {
  --mtt-bg: #f1f5f9;
  --mtt-surface: #fff;
  --mtt-surface2: #eef5ff;
  --mtt-ink: #101b3d;
  --mtt-muted: #5e6b8b;
  --mtt-line: #dce7f5;
  --mtt-blue: #1378ff;
  background: #f1f5f9;
  color: var(--mtt-ink);
}
@media (prefers-color-scheme: dark) {
  body.mtt-chrome {
    --mtt-bg: #071226;
    --mtt-surface: #0e1b34;
    --mtt-surface2: #152541;
    --mtt-ink: #f4f7ff;
    --mtt-muted: #aebbd3;
    --mtt-line: #233658;
    --mtt-blue: #4f8dff;
  }
}

/* hide theme chrome */
body.mtt-chrome header.wp-block-template-part,
body.mtt-chrome footer.wp-block-template-part { display: none !important; }

/* unconstrain layout, then re-constrain inner content */
body.mtt-chrome main.wp-block-group,
body.mtt-chrome main.wp-block-group > .wp-block-group,
body.mtt-chrome .entry-content,
body.mtt-chrome .wp-block-post-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}
body.mtt-chrome .wp-block-post-content > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}
/* header + footer span full width (their inner wrappers stay 1180px) */
body.mtt-chrome .wp-block-post-content > .mtt-topbar,
body.mtt-chrome .wp-block-post-content > .mtt-footer {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* H1 in a pale-blue pill box */
body.mtt-chrome .wp-block-post-title {
  display: block;
  width: fit-content;
  margin: 22px auto 6px;
  background: #e8f0fe;
  color: #0f172a;
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -.5px;
  padding: 12px 34px;
  border-radius: 14px;
  text-align: center;
  max-width: calc(100% - 44px);
}

/* tool-page lede paragraph */
body.mtt-chrome .mtt-toolpage > p:first-of-type {
  text-align: center;
  color: var(--mtt-muted);
  max-width: 720px;
  margin: 0 auto 26px;
  font-size: 16px;
}

/* tool card */
body.mtt-chrome .mtt-wrap[data-mtt-tool] {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
  padding: 22px;
}

/* ---- header: mirrors the homepage topbar ---- */
.mtt-topbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 60;
}
.mtt-nav {
  width: min(1180px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
}
.mtt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.mtt-logo-text {
  font-weight: 800;
  font-size: 19px;
  color: #101b3d;
  letter-spacing: -.3px;
  white-space: nowrap;
}
.mtt-logo-text span { color: #2563eb; }
.mtt-navlinks {
  display: flex;
  gap: 28px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.mtt-navlinks a {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
}
.mtt-navlinks a:first-child { color: #2563eb; }
.mtt-navlinks a:hover { color: #2563eb; }
.mtt-nav-actions { display: flex; align-items: center; }
.mtt-primary {
  border-radius: 999px;
  background: linear-gradient(110deg, #147cff, #b932f3);
  color: #fff;
  padding: 11px 23px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(75, 65, 235, .26);
  text-decoration: none;
  white-space: nowrap;
}

/* amber trust badge under the header */
body.mtt-chrome .mtt-trust { text-align: center; padding: 18px 16px 0; }
.mtt-trust-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
}

/* ---- rich SEO content: narrow centered article column ---- */
.mtt-seo { max-width: 780px; margin: 30px auto 0; padding: 0 22px; }
.mtt-seo p { color: #4b5563; line-height: 1.8; }
.mtt-seo-intro { font-size: 17px; }
.mtt-seo h2 {
  font-size: 24px;
  color: #0f172a;
  font-weight: 800;
  text-align: left;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}
.mtt-seo h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 3px;
  background: #2563eb;
}

/* table of contents */
.mtt-toc { background: #fff; border: 1px solid var(--mtt-line); border-radius: 12px; padding: 16px 20px; margin: 0 0 8px; }
.mtt-toc strong { display: block; margin-bottom: 8px; color: #0f172a; }
.mtt-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mtt-toc li::before { content: "\2713  "; color: #2563eb; font-weight: 800; }
.mtt-toc a { color: #374151; font-weight: 600; font-size: 14px; }
.mtt-toc a:hover { color: #2563eb; }

/* how-to steps with blue numbered badges */
.mtt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: mttstep; }
.mtt-steps li { counter-increment: mttstep; position: relative; padding-left: 46px; }
.mtt-steps li::before {
  content: counter(mttstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mtt-steps li strong { color: #111827; }
.mtt-steps li p { margin: 4px 0 0; }

/* features + tips: plain lists */
.mtt-feats, .mtt-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mtt-feats li, .mtt-tips li { padding-left: 0; }
.mtt-feats li strong, .mtt-tips li strong { color: #111827; }

/* FAQ: plain visible Q&A */
.mtt-qa { margin: 0 0 18px; }
.mtt-q { font-weight: 700; color: #111827; margin: 0 0 4px; }
.mtt-a { margin: 0; }

.mtt-more { margin: 30px 0 10px; text-align: center; }
.mtt-more a { font-weight: 800; color: var(--mtt-blue); }

/* ---- footer: dark-navy single band ---- */
.mtt-footer { background: #0b1a3a; margin-top: 48px; padding: 26px 0 20px; }
.mtt-fwrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 22px; }
.mtt-fnav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mtt-fnav a { color: #cbd5e1; font-size: 13.5px; }
.mtt-fnav a:hover { color: #fff; }
.mtt-fcopy {
  border-top: 1px solid #1e2f5a;
  margin-top: 18px;
  padding-top: 14px;
  text-align: center;
  color: #7d8aa5;
  font-size: 12px;
}

/* back-to-top */
.mtt-topbtn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  z-index: 50;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .4);
}
.mtt-topbtn:hover { color: #fff; }

/* responsive */
@media (max-width: 900px) {
  .mtt-navlinks a:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  .mtt-topbar { height: 56px; padding: 0 16px; }
  .mtt-nav { gap: 12px; }
  .mtt-navlinks { gap: 18px; position: static; transform: none; margin: 0 auto; }
  .mtt-navlinks a:nth-child(n+3) { display: none; }
  .mtt-primary { padding: 9px 14px; }
  body.mtt-chrome .wp-block-post-title { font-size: 23px; padding: 10px 22px; }
  .mtt-fnav { gap: 6px 16px; }
  .mtt-seo { padding: 0 18px; }
  .mtt-seo h2 { font-size: 21px; }
}

/* mobile hamburger menu (v1.8.2) */
.mtt-menu-btn{display:none;width:38px;height:38px;border-radius:50%;border:1px solid #e5e7eb;background:#fff;color:#101b3d;font-size:18px;align-items:center;justify-content:center;cursor:pointer;flex:none;margin-right:8px}
@media (max-width:640px){
  .mtt-nav{position:static}
  .mtt-menu-btn{display:inline-flex}
  .mtt-navlinks{display:none}
  .mtt-navlinks.open{display:flex;position:absolute;top:56px;left:0;right:0;background:#fff;border-bottom:1px solid #e5e7eb;flex-direction:column;align-items:stretch;gap:0;padding:6px 16px 12px;margin:0;transform:none;z-index:70}
  .mtt-navlinks.open a{display:block;padding:11px 4px;font-size:14px;border-top:1px solid #eef2f7;white-space:normal}
  .mtt-navlinks.open a:first-child{border-top:0}
}

/* ---- v2.1.1: long-form article typography (was inheriting oversized theme fonts) ---- */
.mtt-seo p { font-size: 16px; }
.mtt-article { max-width: 780px; margin: 30px auto 0; padding: 0 22px; }
.mtt-article p { color: #4b5563; font-size: 16px; line-height: 1.8; margin: 0 0 16px; }
.mtt-article h2 {
  font-size: 22px; color: #0f172a; font-weight: 800; text-align: left;
  margin: 34px 0 14px; padding-bottom: 10px; border-bottom: 1px solid #e5e7eb; position: relative;
}
.mtt-article h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 64px; height: 3px; background: #2563eb;
}
.mtt-article h3 { font-size: 17px; color: #0f172a; font-weight: 700; margin: 22px 0 8px; }
.mtt-article ul, .mtt-article ol { color: #4b5563; font-size: 16px; line-height: 1.8; margin: 0 0 16px; padding-left: 22px; }
.mtt-article li { margin-bottom: 8px; }
.mtt-article a { color: #2563eb; }
.mtt-article a:hover { text-decoration: underline; }
.mtt-article figure { margin: 24px 0; }
.mtt-article img { max-width: 100%; height: auto; border-radius: 12px; display: block; }

/* ---- v2.2.2: unify body-copy size on every chrome page (info pages,
   directory, blog index) to match tool-page articles like /json-formatter/ ---- */
body.mtt-chrome .wp-block-post-content > p,
body.mtt-chrome .wp-block-post-content > ul,
body.mtt-chrome .wp-block-post-content > ol {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
}
body.mtt-chrome .wp-block-post-content > p { margin: 0 0 16px; }
body.mtt-chrome .wp-block-post-content > ul,
body.mtt-chrome .wp-block-post-content > ol { margin: 0 0 16px; padding-left: 22px; }
body.mtt-chrome .wp-block-post-content > p a { color: #2563eb; }
body.mtt-chrome .wp-block-post-content > p a:hover { text-decoration: underline; }
body.mtt-chrome .wp-block-post-content > h2 {
  font-size: 22px; color: #0f172a; font-weight: 800; text-align: left;
  margin: 34px 0 14px; padding-bottom: 10px; border-bottom: 1px solid #e5e7eb; position: relative;
}
body.mtt-chrome .wp-block-post-content > h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 64px; height: 3px; background: #2563eb;
}
body.mtt-chrome .wp-block-post-content > h3 {
  font-size: 17px; color: #0f172a; font-weight: 700; margin: 22px 0 8px;
}
