#hlcTool{
  /* Uses the global .tool-shell container styling.
     Keep only tool-specific overrides scoped to this tool. */
  --hlc-green: #3e5c4b;
  --hlc-red: #b8543a;
  --hlc-amber: #8a6320;
  --hlc-blue: #3d566e;
  --hlc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Tool container (same visual language as other tools using .tool-shell) */
#hlcTool.tool-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: #fbf8f1;
  box-shadow: 0 1px 2px rgba(30, 27, 21, 0.04), 0 10px 28px rgba(30, 27, 21, 0.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

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

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

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

#hlcTool .hlc-lede{
  font-size: 14px;
  line-height: 1.5;
  color: var(--berry-black-60-opacity80);
  margin: 0 0 16px;
  max-width: 760px;
}

#hlcTool .hlc-pane-label{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--berry-black-60);
  margin-bottom: 6px;
  cursor: pointer;
}

#hlcTool .hlc-optional{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--berry-black-60-opacity60);
  margin-right: auto;
}

#hlcTool .hlc-count{
  font-size: 12px;
  font-weight: 600;
  color: var(--berry-black-60-opacity60);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#hlcTool .hlc-field{
  margin-bottom: 16px;
  min-width: 0;
}

#hlcTool .hlc-field-label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--berry-black-60);
  margin-bottom: 6px;
}

#hlcTool .hlc-text{
  width: 100%;
  height: 50px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity33);
  background: var(--white);
  padding: 0 14px;
  font-family: var(--hlc-mono);
  font-size: 13px;
  color: var(--berry-black-60);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#hlcTool .hlc-input{
  width: 100%;
  min-height: 230px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity33);
  background: var(--white);
  padding: 14px;
  font-family: var(--hlc-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--berry-black-60);
  white-space: pre;
  overflow: auto;
  resize: vertical;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#hlcTool .hlc-text:focus,
#hlcTool .hlc-input:focus{
  border-color: rgba(166, 67, 31, 0.55);
  box-shadow: 0 0 0 4px rgba(166, 67, 31, 0.12);
}

#hlcTool .hlc-output{
  min-height: 180px;
  background: #fdfcf8;
}

#hlcTool .hlc-hint{
  font-size: 12px;
  color: var(--berry-black-60-opacity60);
  margin: 8px 0 0;
  line-height: 1.45;
}

#hlcTool .hlc-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

#hlcTool .tool-btn{
  width: auto;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  gap: 10px;
  white-space: nowrap;
  border: 0;
  background: var(--clay-600);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(30, 27, 21, 0.04), 0 10px 28px rgba(30, 27, 21, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#hlcTool .tool-btn:hover{
  transform: translateY(-1px);
  filter: brightness(0.96) saturate(1.05);
}

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

#hlcTool .tool-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(208, 138, 99, 0.20), 0 20px 38px rgba(30, 27, 21, 0.18);
}

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

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

#hlcTool .btn-ghost{
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--ink-2);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(30, 27, 21, 0.04), 0 10px 28px rgba(30, 27, 21, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#hlcTool .btn-ghost:hover{
  transform: translateY(-1px);
  filter: brightness(0.96) saturate(1.05);
}

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

#hlcTool .btn-ghost:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(207, 138, 114, 0.24), 0 20px 38px rgba(30, 27, 21, 0.18);
}

#hlcTool .btn-ghost:disabled{
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

#hlcTool .hlc-status{
  min-height: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--berry-black-60-opacity80);
  margin-top: 10px;
  line-height: 1.45;
}

#hlcTool .hlc-status.is-ok{ color: var(--hlc-green); }
#hlcTool .hlc-status.is-warn{ color: var(--hlc-red); }

/* Results */
#hlcTool .hlc-results{
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--berry-black-60-opacity10);
}

#hlcTool .hlc-verdict{
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity33);
  background: var(--white);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--berry-black-60);
}

#hlcTool .hlc-verdict.is-pass{
  border-color: rgba(62, 92, 75, 0.45);
  background: #f1f5f0;
  color: var(--hlc-green);
}

#hlcTool .hlc-verdict.is-warn{
  border-color: rgba(138, 99, 32, 0.45);
  background: #faf3e6;
  color: var(--hlc-amber);
}

#hlcTool .hlc-verdict.is-error{
  border-color: rgba(184, 84, 58, 0.45);
  background: #f8ece5;
  color: var(--hlc-red);
}

#hlcTool .hlc-stats{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

#hlcTool .hlc-stat{
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: var(--white);
  padding: 12px 14px;
}

#hlcTool .hlc-stat-num{
  display: block;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--berry-black-60);
  font-variant-numeric: tabular-nums;
}

#hlcTool .hlc-stat-label{
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--berry-black-60-opacity60);
}

#hlcTool .hlc-group-title{
  font-weight: 700;
  color: var(--berry-black-60);
  font-size: 15px;
  margin: 22px 0 10px;
}

#hlcTool .hlc-issues{
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#hlcTool .hlc-issue{
  display: flex;
  gap: 12px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity10);
  border-left-width: 4px;
  background: var(--white);
  padding: 12px 14px;
}

#hlcTool .hlc-issue.is-error{ border-left-color: var(--hlc-red); }
#hlcTool .hlc-issue.is-warn{ border-left-color: var(--hlc-amber); }
#hlcTool .hlc-issue.is-info{ border-left-color: #4b6b8a; }
#hlcTool .hlc-issue.is-pass{ border-left-color: var(--hlc-green); }

#hlcTool .hlc-badge{
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

#hlcTool .is-error .hlc-badge{ background: #f8ece5; color: var(--hlc-red); }
#hlcTool .is-warn .hlc-badge{ background: #faf3e6; color: var(--hlc-amber); }
#hlcTool .is-info .hlc-badge{ background: #eef2f6; color: var(--hlc-blue); }
#hlcTool .is-pass .hlc-badge{ background: #f1f5f0; color: var(--hlc-green); }

#hlcTool .hlc-issue-body{ min-width: 0; }

#hlcTool .hlc-issue-title{
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--berry-black-60);
}

#hlcTool .hlc-issue-detail{
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--berry-black-60-opacity80);
  overflow-wrap: anywhere;
}

/* Parsed tag table */
#hlcTool .table-wrap{
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--berry-black-60-opacity10);
  border-radius: 4px;
  background: #fbf8f1;
}

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

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

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

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

#hlcTool .hlc-mono-cell{
  font-family: var(--hlc-mono);
  font-size: 13px;
}

#hlcTool .pill{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

#hlcTool .pill.is-pass{ background: #f1f5f0; color: var(--hlc-green); }
#hlcTool .pill.is-warn{ background: #faf3e6; color: var(--hlc-amber); }
#hlcTool .pill.is-error{ background: #f8ece5; color: var(--hlc-red); }

#hlcTool .hlc-table-note{
  font-size: 12px;
  color: var(--berry-black-60-opacity60);
  margin: 8px 0 0;
  line-height: 1.45;
}

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

@media (max-width: 860px){
  #hlcTool table{ min-width: 720px; }
}

@media (max-width: 760px){
  #hlcTool .hlc-stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #hlcTool .hlc-input{ min-height: 180px; }
  #hlcTool .hlc-output{ min-height: 160px; }
}

@media (max-width: 480px){
  /* Four buttons squeezed onto one row truncate their labels at this width,
     so wrap them two-up instead. The 5px is half the 10px flex gap. */
  #hlcTool .tool-btn,
  #hlcTool .btn-ghost{
    height: 48px;
    padding: 0 12px;
    font-size: 15px;
    min-width: 0;
    flex: 1 1 calc(50% - 5px);
  }
  #hlcTool .hlc-issue{ flex-direction: column; gap: 8px; }
}

/* --- Content + FAQ (match the other tool pages) --- */
#hlcContent.content-card{
  margin-top: 100px; /* gap after tool section */
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

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

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

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

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

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

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

#hlcContent .hlc-code{
  font-family: var(--hlc-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-size: 14px;
  background: rgba(30, 27, 21, 0.05);
  border-radius: 3px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

/* FAQ styles (accordion, matching the other tool pages) */
#hlcContent .serp-faq.FaqSection .FaqTitle h2 { margin-bottom: 30px; }

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

#hlcContent .serp-faq.first-faq-block .faq-boxes {
  background-color: #fbf8f1;
  backdrop-filter: none;
  padding: 0;
  border-radius: 4px;
  border: 2px solid #b25f4438;
}

#hlcContent .serp-faq.first-faq-block .faq-boxes.active {
  background-color: #f8ece5;
  border: 2px solid #a6431f;
}

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

#hlcContent .serp-faq .accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 15px 18px 22px;
  font-size: 1rem;
  color: #2a261d;
  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;
}

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

#hlcContent .serp-faq.first-faq-block .get-started-faq-inner .accordion .accordion-item .accordion-button:not(.collapsed)::before {
  border: 6px solid #e3bda9;
  background-color: #a6431f;
  top: 28%;
}

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

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

#hlcContent .serp-faq.first-faq-block .accordion-item {
  background-color: #fff0;
  border: 0 solid rgba(30, 27, 21, .125);
  margin-bottom: 20px;
}

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

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

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

#hlcContent .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: #4a1e0d;
}

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

@media (max-width: 480px){
  #hlcContent .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;
}

/* The rule above also zeroed the gap above the footer, leaving the
   article flush against it. Restore the 96px the shared shell uses. */
.main {
  padding-bottom: 96px;
}
