/* ==========================================================================
   Mahatosoft Guides — styles ported from the React site (globals.css tokens
   + the inline styles of guides/page.js, guides/[slug]/page.js,
   spf-checker/page.js, SpfChecker.jsx, ServiceFaq.jsx, CtaBand).

   Everything is scoped under #ms-guides: the id outranks theme / Elementor
   kit rules, so the pages look the same whichever theme wraps them.
   ========================================================================== */

#ms-guides {
  --blue: #19639A; --blue-700: #124b76; --blue-900: #0d3554; --blue-50: #eef5fb; --blue-100: #d8e7f4;
  --orange: #ED804B; --orange-hover: #E0703A; --orange-600: #B8531F; --orange-50: #fdf2ec; --orange-100: #fbe1d4;
  --ink: #111827; --text: #1F2937; --muted: #4B5563; --soft: #6B7280;
  --line: #E5E7EB; --gray-50: #F9FAFB; --gray-100: #F3F4F6; --page: #ffffff; --card: #ffffff;
  --dark: #111827; --green: #2F8F5B;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --sh: 0 1px 2px rgba(17,24,39,.05);
  --sh-md: 0 12px 30px -14px rgba(17,24,39,.18);
  --h: 'Plus Jakarta Sans', system-ui, sans-serif;
  --b: 'DM Sans', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shell: 1240px;

  /* full viewport width even when the theme wraps content in a narrow or
     flex container — so page background and bands match the React site */
  display: block; flex: 0 0 auto; float: none; position: relative;
  width: 100vw; max-width: 100vw; margin: 0 calc(50% - 50vw); padding: 0;
  font-family: var(--b); font-size: 16px; line-height: normal; color: var(--text);
  background: var(--page); text-align: left;
  -webkit-font-smoothing: antialiased; text-wrap: pretty;
}
body.ms-guides-page { overflow-x: clip; }

/* ---- neutralise theme rules inside our wrapper ------------------------- */
#ms-guides *, #ms-guides *::before, #ms-guides *::after { box-sizing: border-box; }
#ms-guides h1, #ms-guides h2, #ms-guides h3, #ms-guides h4, #ms-guides p, #ms-guides ul, #ms-guides ol,
#ms-guides blockquote, #ms-guides pre, #ms-guides figure, #ms-guides table { margin: 0; padding: 0; }
#ms-guides p, #ms-guides h1, #ms-guides h2, #ms-guides h3, #ms-guides h4, #ms-guides li, #ms-guides td, #ms-guides th, #ms-guides span, #ms-guides a, #ms-guides label, #ms-guides blockquote { line-height: inherit; font-size: inherit; letter-spacing: inherit; font-weight: inherit; font-family: inherit; color: inherit; }
#ms-guides h1, #ms-guides h2, #ms-guides h3, #ms-guides h4 { text-transform: none; font-style: normal; background: none; border: 0; }
#ms-guides a { color: var(--blue); text-decoration: none; box-shadow: none; border: 0; background: none; text-underline-offset: 3px; transition: none; }
#ms-guides a:hover, #ms-guides a:focus { color: var(--blue-700); text-decoration: none; }
#ms-guides img { display: block; max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
#ms-guides button { font: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; margin: 0; line-height: 1.3; }
#ms-guides input { font-family: var(--b); box-shadow: none; margin: 0; height: auto; line-height: normal; max-width: none; }
#ms-guides table { border: 0; border-collapse: collapse; background: none; }
#ms-guides th, #ms-guides td { border: 0; }
#ms-guides blockquote { font-style: normal; quotes: none; border: 0; background: none; }
#ms-guides blockquote::before, #ms-guides blockquote::after { content: none; display: none; }
#ms-guides [hidden] { display: none !important; }
#ms-guides code, #ms-guides pre { font-family: var(--mono); }
#ms-guides .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* full-width bands break out of whatever container the theme wraps us in */
#ms-guides .bleed { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ---- shared ------------------------------------------------------------- */
#ms-guides .hero-bg { background: linear-gradient(180deg, var(--blue-50), var(--page)); border-bottom: 1px solid var(--line); }
#ms-guides .band-gray { background: var(--gray-50); border-top: 1px solid var(--line); }
#ms-guides .band-gray--both { border-bottom: 1px solid var(--line); }
#ms-guides .crumb { font-size: 13.5px; color: var(--soft); margin-bottom: 20px; }
#ms-guides .crumb .sep { padding: 0 8px; }
#ms-guides .kicker { font-family: var(--h); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); margin: 0 0 16px; }
#ms-guides .h2 { font-family: var(--h); font-weight: 800; font-size: clamp(24px, 3vw, 36px); line-height: 1.14; letter-spacing: -.02em; color: var(--ink); margin: 0 0 16px; }
#ms-guides .alabel { font-family: var(--h); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin: 0 0 12px; }
#ms-guides .icode { background: var(--gray-100); padding: 2px 6px; border-radius: 5px; font-size: 14px; color: var(--ink); }

#ms-guides .btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--h); font-weight: 700; font-size: 15.5px; line-height: 1.2; padding: 15px 26px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
#ms-guides .btn--primary { background: var(--orange); color: var(--ink); box-shadow: var(--sh-md); }
#ms-guides .btn--primary:hover { background: var(--orange-hover); color: var(--ink); transform: translateY(-2px); }
#ms-guides .btn--ghost { background: var(--card); color: var(--blue); border-color: var(--blue-100); font-weight: 600; }
#ms-guides .btn--ghost:hover { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }
#ms-guides .btn--blue { background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; padding: 14px 24px; }
#ms-guides .btn--blue:hover { background: var(--blue-700); color: #fff; }
#ms-guides .btn--onDark { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
#ms-guides .btn--onDark:hover { background: rgba(255,255,255,.1); color: #fff; }

#ms-guides .pill { font-family: var(--h); font-weight: 700; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
#ms-guides .pill--blue { background: var(--blue-50); color: var(--blue-700); }
#ms-guides .pill--orange { background: var(--orange-50); color: var(--orange-600); }
#ms-guides .tag-blue, #ms-guides .tag-orange { font-family: var(--h); font-weight: 700; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
#ms-guides .tag-blue { background: var(--blue-50); color: var(--blue-700); }
#ms-guides .tag-orange { background: var(--orange-50); color: var(--orange-600); }

/* ---- CTA band (SiteFooter → CtaBand) ------------------------------------ */
#ms-guides .msg-cta { background: linear-gradient(135deg, var(--blue-900), var(--blue)); color: #fff; padding: clamp(48px, 7vw, 88px) 20px; }
#ms-guides .msg-cta__in { max-width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 34px; align-items: center; }
#ms-guides .msg-cta__kicker { font-family: var(--h); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-100); margin: 0 0 14px; }
#ms-guides .msg-cta__h { font-family: var(--h); font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; color: #fff; }
#ms-guides .msg-cta__p { font-size: 16.5px; line-height: 1.7; margin: 0; max-width: 48ch; color: rgba(255,255,255,.82); }
#ms-guides .msg-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- FAQ accordion (ServiceFaq) ----------------------------------------- */
#ms-guides .msg-faq { border-top: 1px solid var(--line); }
#ms-guides .msg-faq__item { border-bottom: 1px solid var(--line); }
#ms-guides .msg-faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px; background: none; border: 0; border-radius: 0; padding: 19px 0; cursor: pointer; text-align: left; font-family: var(--h); font-weight: 700; font-size: 16.5px; line-height: 1.35; color: var(--ink); }
#ms-guides .msg-faq__q:hover, #ms-guides .msg-faq__q:focus { background: none; color: var(--ink); }
#ms-guides .msg-faq__sign { flex: none; color: var(--orange); font-size: 22px; line-height: 1; }
#ms-guides .msg-faq__a { font-size: 15.5px; line-height: 1.75; color: var(--muted); margin: 0 0 20px; max-width: 64ch; }

/* ==========================================================================
   Single guide
   ========================================================================== */
#ms-guides .msg-guide__head { max-width: 840px; margin: 0 auto; padding: clamp(24px, 4vw, 44px) 20px clamp(30px, 4vw, 48px); }
#ms-guides .msg-guide__pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
#ms-guides .msg-guide__time { font-size: 12.5px; color: var(--soft); align-self: center; }
#ms-guides .msg-guide__h1 { font-family: var(--h); font-weight: 800; font-size: clamp(28px, 3.9vw, 48px); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); margin: 0 0 18px; }
#ms-guides .msg-guide__intro { font-size: 18px; line-height: 1.7; color: var(--muted); margin: 0 0 24px; }
#ms-guides .msg-byline { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
#ms-guides .msg-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--gray-100); }
#ms-guides .msg-byline__who { margin-right: auto; }
#ms-guides .msg-byline__name { margin: 0 0 2px; font-family: var(--h); font-weight: 700; font-size: 14.5px; color: var(--ink); }
#ms-guides .msg-byline__role { margin: 0; font-size: 12.5px; color: var(--soft); }
#ms-guides .msg-byline__check { border: 1px solid var(--blue-100); background: var(--card); color: var(--blue); font-family: var(--h); font-weight: 600; font-size: 13.5px; padding: 10px 16px; border-radius: var(--r-sm); }

#ms-guides .msg-guide__layout { max-width: 1180px; margin: 0 auto; padding: clamp(26px, 4vw, 48px) 20px clamp(44px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 52px); align-items: flex-start; }
#ms-guides .msg-guide__aside { order: 2; flex: 1 1 260px; position: sticky; top: 130px; display: grid; gap: 18px; }
#ms-guides .acard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--card); }
#ms-guides .acard--gray { background: var(--gray-50); }
#ms-guides .acard--gray .alabel { margin-bottom: 14px; }
#ms-guides .msg-toc { display: grid; gap: 10px; }
#ms-guides .msg-toc a { font-size: 14px; line-height: 1.5; color: var(--muted); border-left: 2px solid var(--line); padding-left: 12px; }
#ms-guides .msg-toc a:hover { color: var(--blue); border-left-color: var(--blue); }
#ms-guides .msg-fix { border: 1px solid var(--orange); border-radius: var(--r-lg); padding: 22px; background: var(--card); }
#ms-guides .msg-fix__price { font-family: var(--h); font-weight: 800; font-size: 26px; color: var(--ink); margin: 0 0 6px; }
#ms-guides .msg-fix__price span, #ms-guides .msg-hub__price span { font-family: var(--b); font-weight: 400; font-size: 14px; color: var(--soft); }
#ms-guides .msg-fix__title { font-family: var(--h); font-weight: 700; font-size: 15.5px; color: var(--ink); margin: 0 0 8px; }
#ms-guides .msg-fix__body { font-size: 14px; line-height: 1.62; color: var(--muted); margin: 0 0 14px; }
#ms-guides .msg-fix__btn { display: block; text-align: center; background: var(--orange); color: var(--ink); font-family: var(--h); font-weight: 700; font-size: 14.5px; padding: 12px; border-radius: var(--r-sm); }
#ms-guides .msg-fix__btn:hover { background: var(--orange-hover); color: var(--ink); }
#ms-guides .msg-sibs { display: grid; gap: 9px; }
#ms-guides .msg-sibs a { font-size: 14px; }

/* article body (post_content) */
#ms-guides .msg-body { order: 1; flex: 2.5 1 560px; min-width: 0; max-width: 74ch; }
#ms-guides .msg-body p { font-size: 17px; line-height: 1.85; color: var(--muted); margin: 0 0 20px; }
#ms-guides .msg-body p.ms-lede { font-size: 18.5px; color: var(--text); font-weight: 500; }
#ms-guides .msg-body h2 { font-family: var(--h); font-weight: 800; font-size: clamp(23px, 2.5vw, 31px); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); margin: 44px 0 16px; scroll-margin-top: 130px; }
#ms-guides .msg-body h3 { font-family: var(--h); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--ink); margin: 30px 0 12px; }
#ms-guides .msg-body ul, #ms-guides .msg-body ol { margin: 0 0 22px; padding-left: 24px; }
#ms-guides .msg-body ul { list-style: disc; }
#ms-guides .msg-body ol { list-style: decimal; }
#ms-guides .msg-body li { font-size: 16.5px; line-height: 1.8; color: var(--muted); margin-bottom: 9px; }
#ms-guides .msg-body strong { color: var(--ink); font-weight: 600; }
#ms-guides .msg-body a { color: var(--blue); }
#ms-guides .msg-body code { background: var(--gray-100); border: 1px solid var(--line); padding: 2px 7px; border-radius: 5px; font-size: 14.5px; color: var(--ink); word-break: break-all; }
#ms-guides .msg-body pre { background: var(--dark); color: #E5E7EB; border: 0; border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 0 0 22px; font-size: 13.5px; line-height: 1.75; white-space: pre; }
#ms-guides .msg-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0 0 24px; }
#ms-guides .msg-body th { background: var(--dark); color: #fff; font-family: var(--h); font-weight: 600; font-size: 13px; text-align: left; padding: 12px 14px; }
#ms-guides .msg-body td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); color: var(--muted); vertical-align: top; background: transparent; }
#ms-guides .msg-body tr:nth-child(even) td { background: var(--gray-50); }
#ms-guides .msg-body .ms-callout { border: 1px solid; border-radius: 12px; padding: 18px 20px; margin: 0 0 26px; }
#ms-guides .msg-body .ms-callout-blue { border-color: var(--blue-100); background: var(--blue-50); }
#ms-guides .msg-body .ms-callout-orange { border-color: var(--orange-100); background: var(--orange-50); }
#ms-guides .msg-body .ms-callout p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }
#ms-guides .msg-body .ms-callout p.ms-callout-title { font-family: var(--h); font-weight: 700; font-size: 15px; color: var(--ink); margin: 0 0 8px; }

#ms-guides .msg-body .ms-figure { margin: 0 0 28px; }
#ms-guides .msg-body .ms-figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
#ms-guides .msg-body .ms-figure figcaption { font-size: 13.5px; line-height: 1.6; color: var(--soft); margin-top: 10px; }
#ms-guides .msg-endcta { border: 1px solid var(--line); background: var(--gray-50); border-radius: 12px; padding: 22px; margin: 30px 0 0; }
#ms-guides .msg-body .msg-endcta__h { font-family: var(--h); font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--ink); margin: 0 0 8px; }
#ms-guides .msg-body .msg-endcta__p { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 0 0 16px; }
#ms-guides .msg-endcta__btn { display: inline-block; background: var(--orange); color: var(--ink) !important; font-family: var(--h); font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: var(--r-sm); }
#ms-guides .msg-endcta__btn:hover { background: var(--orange-hover); }

/* other guides from the same registrar */
#ms-guides .msg-related { max-width: 1180px; margin: 0 auto; padding: clamp(38px, 5vw, 68px) 20px; }
#ms-guides .msg-related__h { font-family: var(--h); font-weight: 800; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.16; letter-spacing: -.02em; color: var(--ink); margin: 0 0 8px; }
#ms-guides .msg-related__p { font-size: 15.5px; color: var(--muted); margin: 0 0 26px; }
#ms-guides .msg-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
#ms-guides .rcard { display: block; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--card); box-shadow: var(--sh); transition: transform 200ms ease; }
#ms-guides .rcard:hover { transform: translateY(-3px); }
#ms-guides .rcard--blue { border-color: var(--blue-100); background: var(--blue-50); }
#ms-guides .rcard__tag { display: inline-block; background: var(--orange-50); color: var(--orange-600); font-family: var(--h); font-weight: 700; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
#ms-guides .rcard__t { font-family: var(--h); font-weight: 700; font-size: 16px; line-height: 1.34; color: var(--ink); margin: 0 0 7px; }
#ms-guides .rcard__p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 10px; }
#ms-guides .rcard__link { font-family: var(--h); font-weight: 600; font-size: 13.5px; color: var(--blue); }

/* ==========================================================================
   Guides hub
   ========================================================================== */
#ms-guides .msg-hub__hero { max-width: 1240px; margin: 0 auto; padding: clamp(26px, 4vw, 46px) 20px clamp(34px, 5vw, 60px); }
#ms-guides .msg-hub__hero .crumb { margin-bottom: 22px; }
#ms-guides .guides-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
#ms-guides .guides-tool { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 52px); align-items: center; }
#ms-guides .guides-faq  { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
#ms-guides .msg-hub__h1 { font-family: var(--h); font-weight: 800; font-size: clamp(30px, 4.1vw, 52px); line-height: 1.08; letter-spacing: -.03em; color: var(--ink); margin: 0 0 18px; }
#ms-guides .msg-hub__lead { font-size: 17.5px; line-height: 1.74; color: var(--muted); max-width: 58ch; margin: 0 0 26px; }
#ms-guides .msg-hub__btns { display: flex; gap: 12px; flex-wrap: wrap; }
#ms-guides .msg-hub__offer { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); box-shadow: var(--sh-md); }
#ms-guides .msg-hub__offer .alabel { margin-bottom: 14px; }
#ms-guides .msg-hub__price { font-family: var(--h); font-weight: 800; font-size: 34px; color: var(--ink); margin: 0 0 8px; }
#ms-guides .msg-hub__price span { font-size: 15px; }
#ms-guides .msg-hub__offerp { font-size: 14.5px; line-height: 1.68; color: var(--muted); margin: 0 0 16px; }
#ms-guides .msg-hub__ticks { display: grid; gap: 9px; margin-bottom: 18px; }
#ms-guides .msg-hub__ticks span { display: flex; gap: 9px; font-size: 14px; color: var(--muted); }
#ms-guides .msg-hub__ticks b { color: var(--orange-600); font-weight: 700; }
#ms-guides .msg-hub__offerbtn { display: block; text-align: center; background: var(--blue); color: #fff; font-family: var(--h); font-weight: 600; font-size: 15px; padding: 13px; border-radius: var(--r-sm); }
#ms-guides .msg-hub__offerbtn:hover { background: var(--blue-700); color: #fff; }

#ms-guides .msg-hub__sec { max-width: 1240px; margin: 0 auto; }
#ms-guides .msg-hub__sec--most { padding: clamp(38px, 5vw, 68px) 20px clamp(20px, 3vw, 36px); }
#ms-guides .msg-hub__sec--matrix { padding: clamp(30px, 4vw, 56px) 20px clamp(40px, 5vw, 72px); }
#ms-guides .msg-hub__sec--faq { padding: clamp(40px, 5vw, 72px) 20px; }
#ms-guides .msg-hub__matrixhead { max-width: 62ch; margin-bottom: 28px; }
#ms-guides .msg-hub__p { font-size: 16.5px; line-height: 1.72; color: var(--muted); margin: 0; }
#ms-guides .msg-hub__note { margin: 16px 0 0; font-size: 13.5px; color: var(--soft); }

#ms-guides .msg-hub__cards.is-single { grid-template-columns: minmax(0, 540px); }
#ms-guides .msg-hub__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
#ms-guides .post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: var(--sh); transition: transform 200ms ease, box-shadow 200ms ease; }
#ms-guides .post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
#ms-guides .post-card__img { display: block; aspect-ratio: 1200 / 630; height: auto; overflow: hidden; background: var(--gray-100); }
#ms-guides .post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
#ms-guides .post-card:hover .post-card__img img { transform: scale(1.04); }
#ms-guides .post-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
#ms-guides .post-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
#ms-guides .post-card__t { font-family: var(--h); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 0; }
#ms-guides .post-card__t a { color: var(--ink); }
#ms-guides .post-card__x { font-size: 14.8px; line-height: 1.68; color: var(--muted); margin: 0; }
#ms-guides .post-card__foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--gray-100); font-size: 13px; color: var(--soft); }
#ms-guides .post-card__foot a { font-family: var(--h); font-weight: 600; color: var(--orange-600); }

#ms-guides .msg-matrix { border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; background: var(--card); box-shadow: var(--sh); }
#ms-guides .msg-matrix table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 14px; }
#ms-guides .msg-matrix thead tr { background: var(--dark); color: #fff; text-align: left; }
#ms-guides .msg-matrix th { padding: 13px 16px; font-family: var(--h); font-weight: 600; font-size: 12.5px; letter-spacing: .06em; color: #fff; background: var(--dark); text-align: left; }
#ms-guides .msg-matrix tbody tr { border-bottom: 1px solid var(--gray-100); background: transparent; }
#ms-guides .msg-matrix tbody tr.alt { background: var(--gray-50); }
#ms-guides .msg-matrix td { padding: 13px 16px; background: transparent; }
#ms-guides .msg-matrix .rname { font-family: var(--h); font-weight: 600; color: var(--ink); white-space: nowrap; }
#ms-guides .msg-matrix a { font-family: var(--h); font-weight: 600; font-size: 13.5px; color: var(--blue); white-space: nowrap; }
#ms-guides .msg-matrix .soon { font-size: 13.5px; color: var(--soft); white-space: nowrap; }

#ms-guides .msg-hub__tool { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) 20px; }
#ms-guides .msg-term { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--dark); color: #fff; font-family: var(--mono); font-size: 13px; line-height: 1.8; overflow-x: auto; }
#ms-guides .msg-term p { margin: 0 0 4px; font-family: var(--mono); font-size: 13px; line-height: 1.8; }
#ms-guides .msg-term .dim { color: rgba(255,255,255,.5); margin-bottom: 10px; }
#ms-guides .msg-term .rec { color: #7FBCE8; }
#ms-guides .msg-term .rec--gap { margin-bottom: 10px; }
#ms-guides .msg-term .ok { color: var(--orange); margin: 0; }

/* ==========================================================================
   SPF checker
   ========================================================================== */
#ms-guides .msg-spf__hero { max-width: 900px; margin: 0 auto; padding: clamp(26px, 4vw, 46px) 20px clamp(32px, 4vw, 54px); }
#ms-guides .msg-spf__h1 { font-family: var(--h); font-weight: 800; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); margin: 0 0 16px; }
#ms-guides .msg-spf__lead { font-size: 17px; line-height: 1.72; color: var(--muted); max-width: 58ch; margin: 0 0 26px; }
#ms-guides .msg-spf__form { display: flex; gap: 10px; flex-wrap: wrap; }
#ms-guides .msg-spf__form input { flex: 1; min-width: 200px; width: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 15px 16px; font-size: 16.5px; background: var(--card); color: var(--ink); }
#ms-guides .msg-spf__form button { border: 0; background: var(--orange); color: var(--ink); border-radius: var(--r-sm); padding: 15px 28px; font-family: var(--h); font-weight: 700; font-size: 15.5px; cursor: pointer; white-space: nowrap; }
#ms-guides .msg-spf__form button:hover { background: var(--orange-hover); color: var(--ink); }
#ms-guides .msg-spf__form button:disabled { cursor: progress; opacity: .85; }
#ms-guides .msg-spf__hint { margin: 12px 0 0; font-size: 13.5px; color: var(--soft); }
#ms-guides .msg-spf__hint.is-error { color: var(--orange-600); }

#ms-guides .msg-spf__results { max-width: 900px; margin: 0 auto; padding: clamp(28px, 4vw, 52px) 20px clamp(40px, 5vw, 76px); }
#ms-guides #msg-spf-idle { display: grid; gap: 20px; }
#ms-guides .msg-spf__what { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--card); }
#ms-guides .msg-spf__whath { font-family: var(--h); font-weight: 700; font-size: 17px; color: var(--ink); margin: 0 0 14px; }
#ms-guides .msg-spf__whatgrid { display: grid; gap: 14px; }
#ms-guides .msg-spf__k { font-family: var(--h); font-weight: 600; font-size: 15px; color: var(--ink); margin: 0 0 4px; }
#ms-guides .msg-spf__v { font-size: 14.5px; line-height: 1.68; color: var(--muted); margin: 0; }
#ms-guides .msg-spf__samples { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
#ms-guides .msg-spf__samples span { font-size: 13.5px; color: var(--soft); }
#ms-guides .msg-spf__samples button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
#ms-guides .msg-spf__samples button:hover { border-color: var(--blue-100); color: var(--blue); background: var(--card); }

/* results (built by assets/guides.js) */
#ms-guides #msg-spf-out { display: grid; gap: 18px; }
#ms-guides .spf-verdict { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border: 1px solid var(--orange-100); background: var(--orange-50); border-radius: var(--r-lg); padding: 20px 22px; }
#ms-guides .spf-verdict.is-pass { border-color: var(--line); background: var(--gray-50); }
#ms-guides .spf-verdict__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 21px; font-weight: 700; }
#ms-guides .spf-verdict__txt { flex: 1; min-width: 0; }
#ms-guides .spf-verdict__h { display: block; font-family: var(--h); font-weight: 800; font-size: 19px; color: var(--ink); margin-bottom: 4px; }
#ms-guides .spf-verdict__p { display: block; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
#ms-guides .spf-verdict__score { flex: none; font-family: var(--h); font-weight: 800; font-size: 27px; color: var(--ink); }
#ms-guides .spf-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: var(--sh); }
#ms-guides .spf-card__head { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--gray-50); flex-wrap: wrap; }
#ms-guides .spf-dot { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--orange-600); color: #fff; font-size: 14px; font-weight: 700; }
#ms-guides .spf-dot.ok { background: var(--green); }
#ms-guides .spf-card__name { flex: 1; min-width: 0; font-family: var(--h); font-weight: 700; font-size: 17px; color: var(--ink); }
#ms-guides .spf-pill { flex: none; font-size: 11.5px; font-family: var(--h); font-weight: 600; color: var(--soft); background: var(--gray-100); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
#ms-guides .spf-state { flex: none; font-family: var(--h); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-600); }
#ms-guides .spf-state.ok { color: var(--green); }
#ms-guides .spf-card__body { padding: 18px 20px; }
#ms-guides .spf-note { font-size: 14.8px; line-height: 1.7; color: var(--muted); margin: 0; }
#ms-guides .spf-note.has-recs { margin-bottom: 14px; }
#ms-guides .spf-recs { display: grid; gap: 8px; }
#ms-guides .spf-code { display: block; font-family: var(--mono); font-size: 13px; line-height: 1.7; word-break: break-all; background: var(--gray-50); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; color: var(--ink); }
#ms-guides .spf-fixes { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gray-100); display: grid; gap: 9px; }
#ms-guides .spf-fix { display: flex; gap: 10px; font-size: 14.2px; line-height: 1.6; color: var(--muted); margin: 0; }
#ms-guides .spf-fix b { flex: none; color: var(--orange-600); font-weight: 700; }
#ms-guides .spf-cta { border: 1px solid var(--blue-100); background: var(--blue-50); border-radius: var(--r-lg); padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
#ms-guides .spf-cta__h { font-family: var(--h); font-weight: 800; font-size: 19px; color: var(--ink); margin: 0 0 8px; }
#ms-guides .spf-cta__p { font-size: 14.8px; line-height: 1.68; color: var(--muted); margin: 0; }
#ms-guides .spf-cta__btn { text-align: center; background: var(--orange); color: var(--ink); font-family: var(--h); font-weight: 700; font-size: 15px; padding: 14px 22px; border-radius: var(--r-sm); white-space: nowrap; }
#ms-guides .spf-cta__btn:hover { background: var(--orange-hover); color: var(--ink); }

#ms-guides .msg-spf__article { max-width: 900px; margin: 0 auto; padding: 0 20px clamp(40px, 5vw, 72px); }
#ms-guides .msg-spf__article .msg-body { max-width: none; }
#ms-guides .msg-spf__article .msg-body > h2:first-child, #ms-guides .msg-spf__article .msg-body > p:first-child { margin-top: 0; }
#ms-guides .msg-spf__next { max-width: 900px; margin: 0 auto; padding: clamp(34px, 4vw, 60px) 20px; }
#ms-guides .msg-spf__nexth { font-family: var(--h); font-weight: 800; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.16; letter-spacing: -.02em; color: var(--ink); margin: 0 0 22px; }
#ms-guides .msg-spf__nextgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
#ms-guides .ncard { display: block; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--card); box-shadow: var(--sh); transition: transform 200ms ease; }
#ms-guides .ncard:hover { transform: translateY(-3px); }
#ms-guides .ncard--orange { border-color: var(--orange); }
#ms-guides .ncard__t { font-family: var(--h); font-weight: 700; font-size: 16.5px; color: var(--ink); margin: 0 0 8px; }
#ms-guides .ncard__p { font-size: 14.2px; line-height: 1.65; color: var(--muted); margin: 0 0 12px; }
#ms-guides .ncard__l { font-family: var(--h); font-weight: 600; font-size: 13.5px; color: var(--orange-600); }

/* ---- responsive (same break points as the React site) ------------------- */
@media (max-width: 899px) {
  #ms-guides .guides-hero, #ms-guides .guides-tool, #ms-guides .guides-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699px) {
  #ms-guides .spf-cta { grid-template-columns: minmax(0, 1fr); }
}
