#mrtcTool{
  /* Uses the global .tool-shell container styling.
     Keep only tool-specific overrides scoped to this tool. */
  --mrtc-green: #16a34a;
  --mrtc-red: #ef4444;
  --mrtc-blue: var(--blue-100);
  --mrtc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Tool container (same visual language as other tools using .tool-shell) */
#mrtcTool.tool-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(10, 5, 35, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#mrtcTool [hidden]{
  display:none !important;
}

#mrtcTool *,
#mrtcTool *::before,
#mrtcTool *::after{ box-sizing:border-box; }

#mrtcTool .section-title{
  font-weight: 700;
  color: var(--berry-black-60);
  margin: 2px 0 10px;
  font-size: 18px;
}

#mrtcTool textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--berry-black-60-opacity33);
  background: var(--white);
  padding: 12px;
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  min-height: 190px;
  resize: vertical;
  line-height: 1.45;
  color: var(--berry-black-60);
  margin-bottom: 10px;
}

#mrtcTool textarea:focus{
  border-color: rgba(0, 106, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.12);
}

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

#mrtcTool .subtle{
  color: var(--berry-black-60-opacity60);
  font-size: 12px;
}

#mrtcTool .actions{
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 720px){
  #mrtcTool .actions{ width: 100%; justify-content: flex-start; gap: 8px; }
  #mrtcTool .tool-btn,
  #mrtcTool .btn-ghost{ flex: 1 1 0; }
}

#mrtcTool .tool-btn{
  width: auto;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  gap: 10px;
  white-space: nowrap;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.00)), var(--turquoise-specialdark);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(10, 5, 35, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#mrtcTool .tool-btn:hover{
  transform: translateY(-1px);
  filter: brightness(0.96) saturate(1.05);
  box-shadow: 0 20px 38px rgba(10, 5, 35, 0.18);
}

#mrtcTool .tool-btn:active{
  transform: translateY(0);
  filter: brightness(0.94) saturate(1.05);
}

#mrtcTool .tool-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 184, 222, 0.20), 0 20px 38px rgba(10, 5, 35, 0.18);
}

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

@media (max-width: 480px){
  /* Match Canonical URL Checker mobile sizing */
  #mrtcTool .actions{ width: 100%; gap: 8px; }
  #mrtcTool .tool-btn,
  #mrtcTool .btn-ghost{ flex: 1 1 0; }

  #mrtcTool .tool-btn,
  #mrtcTool .btn-ghost,
  #mrtcTool .btn-success{
    height: 48px;
    padding: 0 18px;
    font-size: 15px;
  }

  #mrtcTool .tool-btn .icon,
  #mrtcTool .btn-success .icon{
    width: 16px;
    height: 16px;
  }
  #mrtcTool .tool-btn .icon svg,
  #mrtcTool .btn-success .icon svg{ width: 16px; height: 16px; }
}

#mrtcTool .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

#mrtcTool .btn:active{ transform: translateY(1px); }

#mrtcTool .btn-ghost{
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.00)), var(--salmon);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(10, 5, 35, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#mrtcTool .btn-ghost:hover{
  transform: translateY(-1px);
  filter: brightness(0.96) saturate(1.05);
  box-shadow: 0 20px 38px rgba(10, 5, 35, 0.18);
}

#mrtcTool .btn-ghost:active{
  transform: translateY(0);
  filter: brightness(0.94) saturate(1.05);
}

#mrtcTool .btn-ghost:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 128, 114, 0.24), 0 20px 38px rgba(10, 5, 35, 0.18);
}

#mrtcTool .btn-success{
  height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--mrtc-green);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(10, 5, 35, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#mrtcTool .btn-success:hover{
  transform: translateY(-1px);
  filter: brightness(0.96) saturate(1.05);
  box-shadow: 0 20px 38px rgba(10, 5, 35, 0.18);
}

#mrtcTool .btn-success:active{
  transform: translateY(0);
  filter: brightness(0.94) saturate(1.05);
}

#mrtcTool .btn-success:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.24), 0 20px 38px rgba(10, 5, 35, 0.18);
}

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

#mrtcTool .btn-success .icon svg{ display: block; }

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

#mrtcTool .progress{
  margin-top: 14px;
  border: 1px solid var(--berry-black-60-opacity10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
}

#mrtcTool .progress-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--berry-black-60-opacity80);
  font-weight: 600;
}

#mrtcTool .bar{
  height: 10px;
  background: var(--berry-black-60-opacity10);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

#mrtcTool #progressBar{
  height: 100%;
  width: 0%;
  background: var(--mrtc-green);
  border-radius: 999px;
  transition: width 180ms ease;
}

#mrtcTool .results-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

#mrtcTool .results-left{
  display:flex;
  flex-direction:column;
  gap: 4px;
}

#mrtcTool .results-actions{
  margin-left: auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

#mrtcTool .results-title{
  font-weight: 700;
  color: var(--berry-black-60);
  font-size: 18px;
}

#mrtcTool .tool-meta{
  color: var(--berry-black-60-opacity60);
  font-size: 12px;
}

#mrtcTool .table-wrap{
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--berry-black-60-opacity10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

#mrtcTool table{
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

#mrtcTool thead th{
  text-align: left;
  padding: 12px;
  background: rgba(10, 5, 35, 0.03);
  border-bottom: 1px solid var(--berry-black-60-opacity10);
  font-size: 13px;
  color: var(--berry-black-60);
}

#mrtcTool tbody td{
  padding: 12px;
  border-bottom: 1px solid var(--berry-black-60-opacity10);
  vertical-align: top;
  font-size: 14px;
  color: var(--berry-black-60);
}

#mrtcTool tbody tr:last-child td{ border-bottom: 0; }

#mrtcTool .pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--berry-black-60-opacity10);
  background: var(--white);
  white-space: nowrap;
}

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

#mrtcTool .pill .pill-icon svg{
  width: 18px;
  height: 18px;
  display: block;
}

#mrtcTool .pill.is-found{
  border-color: rgba(22, 163, 74, 0.28);
  background: rgba(22, 163, 74, 0.10);
  color: var(--mrtc-green);
}

#mrtcTool .pill.is-notfound{
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.10);
  color: var(--mrtc-red);
}

#mrtcTool .pill.is-error{
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.10);
  color: var(--mrtc-red);
}

#mrtcTool .url-cell{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 240px;
}

#mrtcTool .url-cell a{
  color: var(--berry-black-60);
  text-decoration: none;
  overflow-wrap: anywhere;
}

#mrtcTool .url-cell a:hover{ text-decoration: underline; }

#mrtcTool .ext-icon{
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--berry-black-60-opacity60);
  flex: 0 0 auto;
}

#mrtcTool .robots-val{
  font-family: inherit;
  font-size: 14px;
  color: var(--berry-black-60);
  overflow-wrap: anywhere;
}

@media (max-width: 720px){
  /* On mobile, keep URLs on a single line and rely on horizontal scroll. */
  #mrtcTool .url-cell a{ white-space: nowrap; }
  #mrtcTool table{ min-width: 860px; }
}

/* --- Content + FAQ (match SERP Preview Tool styling) --- */
#mrtcContent.content-card{
  margin-top: 100px; /* gap after tool section */
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#mrtcContent h2{
  margin: 0 0 12px 0;
  color: black;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}

#mrtcContent h3{
  margin: 18px 0 8px;
  color: black;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

#mrtcContent p{
  margin: 0 0 12px;
  color: black;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

#mrtcContent ol,
#mrtcContent ul{
  margin: 0 0 12px;
  padding-left: 26px;
  list-style-position: outside;
  color: black;
  line-height: 1.55;
}

#mrtcContent ul{ list-style: disc; }
#mrtcContent ol{ list-style: decimal; }

#mrtcContent li{
  margin: 0 0 8px;
  color: black;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  display: list-item;
  padding-left: 6px;
}

/* FAQ styles (accordion, matching SERP Preview Tool) */
#mrtcContent .serp-faq.FaqSection .FaqTitle h2 { margin-bottom: 30px; }

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

#mrtcContent .serp-faq.first-faq-block .faq-boxes {
  background-color: #fff;
  backdrop-filter: blur(10px);
  padding: 0;
  border-radius: 15px;
  border: 2px solid #a200ff38;
}

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

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

#mrtcContent .serp-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;
  cursor: pointer;
}

#mrtcContent .serp-faq .accordion-button h3 {
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  line-height: 1.3;
  color: #000;
}

#mrtcContent .serp-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%;
}

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

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

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

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

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

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

#mrtcContent .serp-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) */
#mrtcContent .serp-faq .accordion-collapse{ display: none; }
#mrtcContent .serp-faq .accordion-collapse.show{ display: block; }

@media (max-width: 480px){
  #mrtcContent .serp-faq.first-faq-block .faq-boxes{ padding-right: 18px; }
}
/* Remove the global container bottom gap for this tool page */
.main > .container {
  margin-bottom: 0;
}