/* ============================================================
   Heading Tag Checker  -  #htcTool
   Prefix: htc
   ============================================================ */

#htcTool {
  --htc-ink: var(--berry-black-60, #1a0a35);
  --htc-border: var(--berry-black-60-opacity10, rgba(26, 10, 53, 0.1));
  --htc-border-strong: var(--berry-black-60-opacity33, rgba(26, 10, 53, 0.33));
  --htc-surface: rgba(255, 255, 255, 0.92);
  --htc-muted: rgba(26, 10, 53, 0.68);
  --htc-accent: var(--turquoise-specialdark, #00b8de);
  --htc-success: #15803d;
  --htc-warning: #b45309;
  --htc-danger: #dc2626;
  --htc-info: #2563eb;
  --htc-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

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

#htcTool.tool-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--htc-border);
  background: var(--htc-surface);
  box-shadow: 0 18px 40px rgba(10, 5, 35, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#htcTool .section-title {
  margin: 2px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--htc-ink);
}

#htcTool .htc-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

#htcTool #urlInput {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--htc-border-strong);
  background: #fff;
  color: var(--htc-ink);
  font-size: 16px;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

#htcTool .tool-btn {
  width: auto;
  flex-shrink: 0;
  height: 50px;
  min-height: 50px;
  margin-top: 0;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)), var(--htc-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 16px 30px rgba(10, 5, 35, 0.14);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

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

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

#htcTool .tool-btn .icon svg,
#htcTool .btn-success .icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

#htcTool .tool-alert {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 12px;
  background: rgba(254, 242, 242, 0.95);
  color: #991b1b;
  font-size: 14px;
  font-weight: 600;
}

#htcTool .progress {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--htc-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

#htcTool .progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--htc-muted);
  font-size: 14px;
  font-weight: 600;
}

#htcTool .progress-spin svg {
  width: 22px;
  height: 22px;
  color: var(--htc-accent);
  animation: htc-spin 0.85s linear infinite;
}

@keyframes htc-spin {
  to {
    transform: rotate(360deg);
  }
}

#htcTool .results-head {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

#htcTool .results-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--htc-ink);
}

#htcTool .tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 6px;
  color: var(--htc-muted);
  font-size: 13px;
}

#htcTool .result-url {
  display: inline-block;
  margin-top: 8px;
  color: var(--htc-info);
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

#htcTool .results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

#htcTool .btn-toggle-html {
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--htc-border-strong);
  background: rgba(255, 255, 255, 0.94);
  color: var(--htc-ink);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#htcTool .btn-toggle-html:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 106, 255, 0.35);
  background: rgba(239, 246, 255, 0.96);
  color: var(--htc-info);
}

#htcTool .btn-toggle-html[aria-pressed="true"] {
  border-color: rgba(0, 106, 255, 0.35);
  background: rgba(239, 246, 255, 0.96);
  color: var(--htc-info);
}

#htcTool .btn-success {
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--htc-success);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 5, 35, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#htcTool .btn-success:hover {
  transform: translateY(-1px);
  filter: brightness(0.96) saturate(1.05);
  box-shadow: 0 12px 28px rgba(10, 5, 35, 0.16);
}

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

#htcContent.content-card {
  margin-top: 100px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

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

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

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

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

#htcContent ul {
  list-style: disc;
}

#htcContent ol {
  list-style: decimal;
}

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

#htcContent .serp-faq.FaqSection .FaqTitle h2 {
  margin-bottom: 30px;
}

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

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

#htcContent .serp-faq.first-faq-block .faq-boxes.active {
  background-color: #fbf4ff;
  border: 2px solid #a200ff;
}

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

#htcContent .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 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
}

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

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

#htcContent .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;
}

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

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

#htcContent .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;
}

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

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

#htcContent .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;
}

#htcContent .serp-faq .accordion-collapse {
  display: none;
}

#htcContent .serp-faq .accordion-collapse.show {
  display: block;
}

#htcTool .stats-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

#htcTool .stat-card {
  padding: 14px 12px;
  border: 1px solid var(--htc-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  text-align: center;
}

#htcTool .stat-card-total {
  background: linear-gradient(135deg, rgba(0, 184, 222, 0.14), rgba(37, 99, 235, 0.1));
}

#htcTool .stat-label {
  display: block;
  color: var(--htc-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#htcTool .stat-value {
  display: block;
  margin-top: 6px;
  color: var(--htc-ink);
  font-size: 26px;
  line-height: 1;
}

#htcTool .issues-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--htc-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

#htcTool .issues-title {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--htc-ink);
}

#htcTool .issues-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#htcTool .issue-pill {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--htc-border);
  background: #fff;
}

#htcTool .issue-pill-title {
  font-size: 14px;
  font-weight: 700;
}

#htcTool .issue-pill-detail {
  margin-top: 4px;
  color: var(--htc-muted);
  font-size: 13px;
  line-height: 1.5;
}

#htcTool .tone-success {
  border-color: rgba(21, 128, 61, 0.18);
  background: rgba(240, 253, 244, 0.96);
  color: var(--htc-success);
}

#htcTool .tone-warning {
  border-color: rgba(180, 83, 9, 0.18);
  background: rgba(255, 247, 237, 0.96);
  color: var(--htc-warning);
}

#htcTool .tone-danger {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.96);
  color: var(--htc-danger);
}

#htcTool .tone-info {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(239, 246, 255, 0.96);
  color: var(--htc-info);
}

#htcTool .filter-tabs {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#htcTool .filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--htc-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--htc-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#htcTool .filter-tab.active {
  background: var(--htc-ink);
  border-color: var(--htc-ink);
  color: #fff;
}

#htcTool .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(26, 10, 53, 0.09);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
}

#htcTool .filter-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
}

#htcTool .empty-state {
  margin-top: 16px;
  padding: 18px;
  border: 1px dashed var(--htc-border-strong);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--htc-muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

#htcTool .heading-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

#htcTool .heading-card {
  margin-inline-start: calc((var(--level) - 1) * 16px);
  padding: 14px 16px;
  border: 1px solid var(--htc-border);
  border-left-width: 5px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 8px 24px rgba(10, 5, 35, 0.05);
}

#htcTool .heading-card[data-level="1"] { border-left-color: #0f766e; }
#htcTool .heading-card[data-level="2"] { border-left-color: #2563eb; }
#htcTool .heading-card[data-level="3"] { border-left-color: #7c3aed; }
#htcTool .heading-card[data-level="4"] { border-left-color: #db2777; }
#htcTool .heading-card[data-level="5"] { border-left-color: #ea580c; }
#htcTool .heading-card[data-level="6"] { border-left-color: #4f46e5; }

#htcTool .heading-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#htcTool .heading-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#htcTool .heading-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#htcTool .level-pill {
  color: #fff;
}

#htcTool .level-pill-1 { background: #0f766e; }
#htcTool .level-pill-2 { background: #2563eb; }
#htcTool .level-pill-3 { background: #7c3aed; }
#htcTool .level-pill-4 { background: #db2777; }
#htcTool .level-pill-5 { background: #ea580c; }
#htcTool .level-pill-6 { background: #4f46e5; }

#htcTool .meta-pill {
  background: rgba(26, 10, 53, 0.08);
  color: var(--htc-ink);
}

#htcTool .meta-pill-warning {
  background: rgba(251, 191, 36, 0.16);
  color: var(--htc-warning);
}

#htcTool .meta-pill-danger {
  background: rgba(248, 113, 113, 0.16);
  color: var(--htc-danger);
}

#htcTool .heading-order {
  color: var(--htc-muted);
  font-size: 13px;
  font-weight: 700;
}

#htcTool .heading-text {
  margin-top: 10px;
  color: var(--htc-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

#htcTool .heading-empty {
  color: var(--htc-danger);
}

#htcTool .heading-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--htc-muted);
  font-size: 13px;
  font-weight: 600;
}

#htcTool .heading-meta a {
  color: var(--htc-info);
}

#htcTool .heading-snippet {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--htc-ink);
  font-family: var(--htc-code);
  font-size: 12px;
  line-height: 1.55;
  word-break: break-word;
}

@media (max-width: 1024px) {
  #htcTool .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #htcTool.tool-shell {
    padding: 16px 14px;
    border-radius: 14px;
  }

  #htcTool .htc-input-row {
    flex-direction: column;
    gap: 12px;
  }

  #htcTool #urlInput,
  #htcTool .tool-btn {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    margin-top: 0 !important;
  }

  #htcTool #urlInput {
    padding: 0 18px;
    border-radius: 16px;
  }

  #htcTool .tool-btn {
    padding: 0 20px;
    line-height: 1;
  }

  #htcTool .results-head {
    flex-direction: column;
  }

  #htcTool .issues-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #htcTool .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #htcTool .heading-card {
    margin-inline-start: calc((var(--level) - 1) * 10px);
  }
}

@media (max-width: 520px) {
  #htcTool .heading-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  #htcTool .heading-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  #htcTool .heading-card {
    margin-inline-start: calc((var(--level) - 1) * 6px);
  }

  #htcContent .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;
}