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

/* Tool container (same visual language as other tools using .tool-shell) */
#kctTool.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;
}

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

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

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

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

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

#kctTool .kct-input{
  width: 100%;
  min-height: 240px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity33);
  background: var(--white);
  padding: 14px;
  font-family: var(--kct-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;
}

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

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

#kctTool .kct-field{
  margin-top: 16px;
  min-width: 0;
}

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

#kctTool .kct-file-row{
  margin-top: 16px;
}

#kctTool .kct-file{
  display: block;
  width: 100%;
  max-width: 420px;
  font-family: inherit;
  font-size: 13px;
  color: var(--berry-black-60-opacity80);
  cursor: pointer;
}

#kctTool .kct-file::file-selector-button{
  height: 38px;
  padding: 0 16px;
  margin-right: 10px;
  border: 1px solid var(--berry-black-60-opacity33);
  border-radius: 999px;
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--berry-black-60);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

#kctTool .kct-file::file-selector-button:hover{
  border-color: rgba(166, 67, 31, 0.55);
  background: var(--clay-50);
}

#kctTool .kct-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#kctTool .kct-select{
  width: 100%;
  height: 50px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity33);
  background: var(--white);
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--berry-black-60);
  outline: none;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#kctTool .kct-select:focus{
  border-color: rgba(166, 67, 31, 0.55);
  box-shadow: 0 0 0 4px rgba(166, 67, 31, 0.12);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#kctTool .kct-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);
}

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

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

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

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

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

#kctTool .kct-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);
}

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

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

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

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

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

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

#kctTool .kct-issue-body{ min-width: 0; }

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

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

/* Cluster tables */
#kctTool .kct-table-wrap{
  margin-top: 10px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: var(--white);
  overflow-x: auto;
}

#kctTool .kct-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#kctTool .kct-table th,
#kctTool .kct-table td{
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--berry-black-60-opacity10);
  vertical-align: top;
  line-height: 1.45;
}

#kctTool .kct-table thead th{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--berry-black-60-opacity60);
  background: rgba(30, 27, 21, 0.03);
  white-space: nowrap;
}

#kctTool .kct-table tbody tr:last-child td{ border-bottom: 0; }

#kctTool .kct-table .kct-col-num{
  width: 44px;
  color: var(--berry-black-60-opacity60);
  font-variant-numeric: tabular-nums;
}

#kctTool .kct-table .kct-col-text{
  min-width: 220px;
  color: var(--berry-black-60);
  overflow-wrap: anywhere;
}

#kctTool .kct-table .kct-col-fig{
  width: 92px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#kctTool .kct-table .kct-col-tag{
  width: 112px;
  white-space: nowrap;
}

#kctTool .kct-table tbody .kct-col-fig{ color: var(--berry-black-60); }

#kctTool .kct-flag{
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

#kctTool .kct-flag.is-warn{ background: #faf3e6; color: var(--kct-amber); }
#kctTool .kct-flag.is-info{ background: #eef2f6; color: var(--kct-blue); }
#kctTool .kct-flag.is-primary{ background: #f1f5f0; color: var(--kct-green); }

#kctTool .kct-role{
  font-size: 12px;
  color: var(--berry-black-60-opacity60);
}

#kctTool .kct-cluster{
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: #fdfcf8;
}

#kctTool .kct-cluster-head{
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

#kctTool .kct-cluster-num{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--berry-black-60-opacity60);
}

#kctTool .kct-cluster-label{
  font-size: 16px;
  font-weight: 700;
  color: var(--berry-black-60);
  overflow-wrap: anywhere;
}

#kctTool .kct-cluster-meta{
  font-size: 12px;
  font-weight: 600;
  color: var(--berry-black-60-opacity60);
  font-variant-numeric: tabular-nums;
}

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

#kctTool .kct-table-note-top{ margin: 6px 0 2px; }

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

@media (max-width: 860px){
  #kctTool .kct-grid{ grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px){
  #kctTool .kct-stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #kctTool .kct-table th,
  #kctTool .kct-table td{ padding: 8px 10px; }
  #kctTool .kct-input{ min-height: 180px; }
  #kctTool .kct-table .kct-col-text{ min-width: 170px; }
  #kctTool .kct-cluster{ padding: 12px 10px; }
}

@media (max-width: 480px){
  #kctTool .tool-btn,
  #kctTool .btn-ghost{
    height: 48px;
    padding: 0 18px;
    font-size: 15px;
    flex: 1 1 0;
  }
  #kctTool .kct-issue{ flex-direction: column; gap: 8px; }
}

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

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

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

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

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

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

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

#kctContent .kct-code{
  font-family: var(--kct-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) */
#kctContent .serp-faq.FaqSection .FaqTitle h2 { margin-bottom: 30px; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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