﻿#bmteTool{
      --bg:#ffffff;
      --card:#ffffff;
      --text:#111827;
      --muted:#6b7280;
      --border:#e5e7eb;
      --blue:#2563eb;
      --blue-700:#1d4ed8;
      --green:#16a34a;
      --green-700:#15803d;
      --red:#ef4444;
      --shadow: 0 10px 30px rgba(17,24,39,.08);
      --radius: 14px;
      --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      /* Match SERP preview tool font stack */
      --sans: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans";

      font:16px/1.45 var(--sans);
      color:black;
      background:transparent;
    }

    /* Respect the [hidden] attribute inside the tool.
       Global `[hidden]{display:none}` is overridden by some BMTE selectors (e.g. `.progress{display:flex}`),
       so we enforce it here to prevent progress/results showing by default. */
    #bmteTool [hidden]{
      display:none !important;
    }

    #bmteTool *,
    #bmteTool *::before,
    #bmteTool *::after{ box-sizing:border-box; }
#bmteTool .wrap{
      /* Keep article width consistent with SERP Preview page */
      max-width: 1360px;
      margin: 48px auto 60px;
      padding: 0;
    }

    #bmteTool header{
      text-align:center;
      margin-bottom: 26px;
    }
    #bmteTool header h1{
      margin: 0 0 8px;
      font-size: 42px;
      letter-spacing: .2px;
    }
    #bmteTool header p{
      margin: 0 auto;
      color: var(--muted);
      max-width: 760px;
      font-size: 18px;
      line-height: 1.35;
    }

    #bmteTool .card{
      background:var(--card);
      border:1px solid var(--border);
      border-radius:var(--radius);
      box-shadow: var(--shadow);
      padding: 18px;
    }

    /* Make the tool area a bit smaller (content section remains full width) */
    #bmteTool .wrap > .card{
      max-width: 1120px;
      margin-left: auto;
      margin-right: auto;
    }

    #bmteTool .tabs{
      display:flex;
      gap:0;
      background:#f3f4f6;
      border:1px solid var(--border);
      border-radius: 12px;
      overflow:hidden;
      margin-bottom: 16px;
    }
    #bmteTool .tab{
      flex:1;
      border:0;
      background:transparent;
      padding: 12px 14px;
      font-weight:600;
      color:#6b7280;
      cursor:pointer;
      transition: background .15s ease, color .15s ease;
    }
    #bmteTool .tab.active{
      background: #fff;
      color: #111827;
    }

    #bmteTool .grid{
      display:grid;
      grid-template-columns: 1fr;
      gap: 14px;
    }

    #bmteTool .section-title{
      font-weight:700;
      color:#374151;
      margin: 0 0 8px;
      font-size: 18px;
    }

    #bmteTool textarea,
    #bmteTool input[type="url"]{
      width:100%;
      border:1px solid #d1d5db;
      border-radius: 10px;
      padding: 8px 12px;
      font-size: 16px;
      outline:none;
      background:#fff;
      transition: border-color .15s ease, box-shadow .15s ease;
    }
    #bmteTool input[type="url"]{ height:44px; }
    #bmteTool textarea{
      min-height: 165px;
      resize: vertical;
      line-height: 1.45;
    }
    #bmteTool textarea:focus,
    #bmteTool input[type="url"]:focus{
      border-color: rgba(37,99,235,.6);
      box-shadow: 0 0 0 4px rgba(37,99,235,.12);
    }

    #bmteTool .row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    #bmteTool .subtle{
      color: var(--muted);
      font-size: 12px;
    }

    #bmteTool .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      margin-top: 10px;
      gap: 10px;
      border: 1px solid transparent;
      border-radius: 10px;
      padding: 12px 14px;
      font-weight:700;
      cursor:pointer;
      user-select:none;
      transition: transform .05s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, filter .15s ease;
      white-space: nowrap;
    }
    #bmteTool .btn:active{ transform: translateY(1px); }

    /* Use the site's default button style (.btn_more.primary) for the main action buttons,
       but keep BMTE sizing/spacing so it doesn't become full-width. */
    #bmteTool .bmte-btn{
      width: auto;
      height: 44px;
      padding: 0 18px;
      border-radius: 12px;
      font-weight: 700;
      gap: 10px;
      white-space: nowrap;
      margin-top: 10px;

    }

    #bmteTool .bmte-btn .icon{
      width: 18px;
      height: 18px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
    }

    /* Ensure primary actions align right when rows wrap */
    #bmteTool .bmte-actions{ margin-left:auto; display:flex; justify-content:flex-end; }

    #bmteTool .btn-success{
      background: var(--green);
      color:#fff;
    }
    #bmteTool .btn-success:hover{ background: var(--green-700); }

    #bmteTool .btn-ghost{
      background: #fff;
      border-color: var(--border);
      color:#111827;
    }
    #bmteTool .btn-ghost:hover{
      background: #f9fafb;
    }

    #bmteTool .btn[disabled]{
      opacity:.6;
      cursor:not-allowed;
    }

    #bmteTool .icon{
      width: 18px;
      height: 18px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
    }
    #bmteTool .icon svg{ display:block; }

    #bmteTool .results-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    #bmteTool .results-head .results-title{
      margin:0;
      font-size: 18px;
      font-weight: 700;
    }
    #bmteTool .results-head p{
      margin: 6px 0 0;
      color:var(--muted);
      font-size: 13px;
    }

    #bmteTool .link{
      color: var(--blue);
      text-decoration: none;
    }
    #bmteTool .link:hover{ text-decoration: underline; }

    #bmteTool .statbar{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin: 14px 0 12px;
    }
    #bmteTool .stat{
      border:1px solid var(--border);
      border-radius: 12px;
      padding: 12px 14px;
      display:flex;
      align-items:center;
      gap: 10px;
      background:#fff;
    }
    #bmteTool .stat.ok{
      border-color: rgba(22,163,74,.25);
      background: rgba(22,163,74,.08);
    }
    #bmteTool .stat.fail{
      border-color: rgba(239,68,68,.25);
      background: rgba(239,68,68,.08);
    }
    #bmteTool .stat .label{
      font-weight: 700;
    }

    /* Override Bootstrap's .progress (flex + fixed height) for our custom markup */
    #bmteTool .progress{
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      height: auto;
      overflow: visible;
      margin: 10px 0 2px;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #f9fafb;
      box-shadow: none;
    }
    #bmteTool .progress-top{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.2;
      margin: 0;
    }
    #bmteTool #progressText{
      flex: 1 1 auto;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    #bmteTool #progressPct{ flex: 0 0 auto; }
    #bmteTool .bar{
      width:100%;
      height: 12px;
      border-radius: 99px;
      background: #e6eaf0;
      overflow:hidden;
    }
    #bmteTool .bar > div{
      height:100%;
      width:0%;
      background: linear-gradient(90deg, #0b45ff 0%, #7338a0 60%, #a200ff 100%);
      transition: width .2s ease;
      border-radius: 99px;
    }

    #bmteTool .table-wrap{
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow:hidden;
      background:#fff;
    }
    #bmteTool table{
      width:100%;
      border-collapse: collapse;
      font-size: 14px;
    }
    #bmteTool thead th{
      text-align:left;
      padding: 12px 12px;
      font-size: 12px;
      color:#6b7280;
      font-weight:700;
      background:#f9fafb;
      border-bottom: 1px solid var(--border);
      letter-spacing:.03em;
      text-transform: uppercase;
    }
    #bmteTool tbody td{
      padding: 12px 12px;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
    }
    #bmteTool tbody tr:last-child td{ border-bottom:0; }
    #bmteTool .url-cell{
      max-width: 320px;
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
    }
    #bmteTool .title-cell{
      max-width: 320px;
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
    }
    #bmteTool .desc-cell{
      max-width: 420px;
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
      color:#374151;
    }
    #bmteTool .status-pill{
      display:inline-flex;
      align-items:center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: 999px;
      font-weight: 700;
      font-size: 12px;
      border:1px solid var(--border);
      background:#fff;
    }
    #bmteTool .status-pill.ok{
      border-color: rgba(22,163,74,.25);
      background: rgba(22,163,74,.08);
      color: #065f46;
    }
    #bmteTool .status-pill.fail{
      border-color: rgba(239,68,68,.25);
      background: rgba(239,68,68,.08);
      color: #7f1d1d;
    }

    #bmteTool details.meta{
      margin-top: 6px;
    }
    #bmteTool details.meta summary{
      cursor:pointer;
      color: var(--blue);
      font-size: 12px;
      font-weight: 700;
      list-style: none;
      display:inline-block;
    }
    #bmteTool details.meta summary::-webkit-details-marker{ display:none; }
    #bmteTool .kv{
      margin-top: 8px;
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow:hidden;
    }
    #bmteTool .kv-row{
      display:grid;
      grid-template-columns: 220px 1fr;
      gap: 0;
      border-top: 1px solid var(--border);
    }
    #bmteTool .kv-row:first-child{ border-top:0; }
    #bmteTool .kv-k,
    #bmteTool .kv-v{
      padding: 8px 10px;
      font-size: 12px;
      line-height: 1.35;
    }
    #bmteTool .kv-k{
      background:#f9fafb;
      color:#374151;
      font-weight:700;
      border-right:1px solid var(--border);
      word-break: break-word;
    }
    #bmteTool .kv-v{
      color:#111827;
      word-break: break-word;
    }

    #bmteTool .footer-note{
      margin-top: 10px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

        /* Remove the global container bottom gap for this tool page */
        .main > .container{
          margin-bottom: 0;
        }

    /* --- Content + FAQ (match site FAQ structure) --- */
    #bmteTool .content-card{
      margin-top: 100px; /* gap after tool section */
      padding: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      /* Use site default font for article/FAQ content */
    }
    /* Match SERP Preview tool article typography for headings */
    #bmteTool .content-card h2{
      margin: 0 0 12px 0;
      color: black;
      font-size: 30px;
      line-height: 1.25;
      font-weight: 700;
    }
    #bmteTool .content-card h3{
      margin: 18px 0 8px;
      color: black;
      font-size: 22px;
      line-height: 1.3;
      font-weight: 600;
    }
    /* Match SERP Preview tool article list styling */
    #bmteTool .content-card p{
      margin: 0 0 12px;
      color: black;
      font-size: 16px;
      line-height: 1.55;
      font-weight: 400;
    }
    #bmteTool .content-card ol,
    #bmteTool .content-card ul{
      margin: 0 0 12px;
      padding-left: 26px;
      list-style-position: outside;
      color: black;
      line-height: 1.55;
    }
    #bmteTool .content-card ul{ list-style: disc; }
    #bmteTool .content-card ol{ list-style: decimal; }
    #bmteTool .content-card li{
      margin: 0 0 8px;
      color: black;
      font-size: 16px;
      line-height: 1.55;
      font-weight: 400;
      display: list-item;
      padding-left: 6px;
    }

    /* FAQ CSS (copied from site styles; scoped to this page) */
    #bmteTool .bmte-faq.FaqSection .FaqTitle h2 { margin-bottom: 30px; }

    #bmteTool .bmte-faq.first-faq-block .accordian-wrapper {
      background: linear-gradient(138deg, #fff0 0%, #fff0 100%);
      padding: .15rem;
      border-radius: 15px;
      position: relative;
    }

    #bmteTool .bmte-faq.first-faq-block .faq-boxes {
      background-color: #fff;
      backdrop-filter: blur(10px);
      /* Padding moved to the button/body so the title+icon sit vertically centered */
      padding: 0;
      border-radius: 15px;
      border: 2px solid #a200ff38;
    }

    #bmteTool .bmte-faq.first-faq-block .faq-boxes.active {
      background-color: #FBF4FF;
      border: 2px solid #A200FF;
    }

    #bmteTool .bmte-faq .accordion-body {
      padding: 0 15px 18px 22px;
      font-size: 20px;
      font-weight: 400;
      color: #000;
    }

    #bmteTool .bmte-faq .accordion-button {
      position: relative;
      display: flex;
      align-items: center;
      width: 100%;
      padding: 18px 15px 18px 22px;
      font-size: 1rem;
      color: #212529;
      text-align: left;
      background-color: #fff0;
      border: 0;
      border-radius: 0;
      overflow-anchor: none;
      transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;
    }

    #bmteTool .bmte-faq .accordion-button h3 {
      font-weight: 600;
      font-size: 20px;
      margin: 0;
      line-height: 1.3;
    }

    #bmteTool .bmte-faq.first-faq-block .get-started-faq-inner .accordion .accordion-item .accordion-button:not(.collapsed)::before {
      border: 6px solid #c3dae7;
      background-color: #0582d2;
      top: 28%;
    }

    #bmteTool .bmte-faq .accordion-button:not(.collapsed) {
      color: #212529;
      background-color: #fff0;
      transition: 0.2s ease-in all;
      padding-bottom: 12px;
      border: 0;
      box-shadow: none;
    }

    #bmteTool .bmte-faq .accordion-button h3{ color: #000; }

    #bmteTool .bmte-faq .accordion-button:focus {
      z-index: 3;
      border-color: #cecbdc;
      outline: 0;
      box-shadow: 0 0 0 .25rem #fff0;
    }

    #bmteTool .bmte-faq.first-faq-block .accordion-item {
      background-color: #fff0;
      border: 0 solid rgb(0 0 0 / .125);
      margin-bottom: 20px;
    }

    #bmteTool .bmte-faq.first-faq-block .accordion-body p {
      font-size: 16px;
      color: #000;
      font-weight: 400;
      margin-bottom: 0;
      padding-right: 11%;
      line-height: 26px;
    }

    #bmteTool .bmte-faq.first-faq-block .accordion-body p a {
      color: #4A2574;
      font-size: 18px;
      line-height: 32px;
      text-decoration: none;
      font-weight: 400;
    }

    #bmteTool .bmte-faq.first-faq-block .accordion-button:not(.collapsed)::after {
      content: "–";
      transform: none;
    }

    #bmteTool .bmte-faq.first-faq-block .accordion-button::after {
      margin-left: auto;
      content: "+";
      width: 24px;
      height: 24px;
      min-width: 24px;
      flex: 0 0 24px;
      align-self: center;
      margin-right: 2px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      line-height: 1;
      font-weight: 700;
      color: #4A2574;
    }

    /* Collapse behavior (we implement via JS; keep same class names) */
    #bmteTool .bmte-faq .accordion-collapse{ display: none; }
    #bmteTool .bmte-faq .accordion-collapse.show{ display: block; }

    @media (max-width: 820px){
      #bmteTool .statbar{ grid-template-columns: 1fr; }
      #bmteTool .kv-row{ grid-template-columns: 1fr; }
      #bmteTool .kv-k{ border-right:0; border-bottom:1px solid var(--border); }
      #bmteTool .url-cell,
      #bmteTool .title-cell,
      #bmteTool .desc-cell{ max-width: 100%; }
    }

    @media (max-width: 480px){
      #bmteTool .bmte-faq.first-faq-block .faq-boxes{ padding-right: 18px; }
    }

