/* socialpreview.tools global styles (shared .tools family template) */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: #f8f8f6;
  color: #131313;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: #131313; text-decoration: underline; text-underline-offset: 3px; }
a:hover { background: oklch(0.9 0.18 95); }
::selection { background: oklch(0.9 0.18 95); }
button:focus-visible, a:focus-visible { outline: 2px solid #131313; outline-offset: 2px; }
textarea:focus { outline: 2px solid #131313; outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

main { max-width: 1000px; width: 100%; margin: 0 auto; padding: 0 20px 100px; flex: 1 0 auto; }

.spacer { flex: 1 1 auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.meta { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: #6b6b6b; }

/* Site header + animated logo */
.site-head { padding: 56px 0 0; }
.site-head-inner { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.logo { display: inline-block; position: relative; width: 210px; text-decoration: none; }
.logo:hover { background: transparent; }
.logo img { display: block; width: 100%; height: auto; }

.logo-type {
  position: absolute;
  left: 8.5%;
  top: 2%;
  height: 68%;
  display: flex;
  align-items: center;
  font-family: "Archivo", Helvetica, sans-serif;
  font-size: 19px;
  line-height: 1;
  transform: translateY(2px);
  letter-spacing: 0;
  white-space: nowrap;
}
.logo-index { font-weight: 800; color: #1a1a19; }
.logo-check { font-weight: 500; color: #fccd4d; }
.logo-caret {
  display: inline-block;
  width: 3px;
  height: 0.78em;
  margin-left: 3px;
  background: #1a1a19;
  animation: caret-blink 0.85s step-end infinite;
}
.logo-caret.done { display: none; }
/* Without JS the logo text is never typed, so render it statically.
   Kept in the stylesheet because the CSP forbids inline <style>. */
.no-js .logo-index::after { content: "ROBOTS"; }
.no-js .logo-check::after { content: "CHECK"; }
.no-js .logo-caret { display: none; }
@keyframes caret-blink { 50% { opacity: 0; } }

@media (max-width: 480px) {
  .site-head { padding: 16px 0 0; }
  .logo { width: 162px; }
  .logo-type { font-size: 15px; }
}

/* Hero */
.hero { padding: 56px 0 44px; }

h1 {
  margin: 0 0 16px;
  font-family: "Archivo", Helvetica, sans-serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 22ch;
}
.hl { background: oklch(0.9 0.18 95); padding: 0 0.04em; }

.lede { margin: 0 0 40px; font-size: 17px; line-height: 1.55; color: #565656; max-width: none; }
code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9em;
  background: #f2f2f2;
  padding: 1px 5px;
  border-radius: 3px;
}

/* Paste box */
.paste-box { background: #fff; border: 1px solid #e2e2e2; border-radius: 4px; margin-top: 28px; }

.scan-input {
  display: block;
  width: 100%;
  border: 0;
  padding: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  color: #131313;
  background: transparent;
}
.scan-input:focus { outline: 2px solid #131313; outline-offset: -2px; }
.scan-input:disabled { opacity: 0.6; }

.scan-progress {
  height: 4px;
  background: #ececea;
  overflow: hidden;
  position: relative;
}
.scan-progress-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%;
  background: #131313;
  animation: scan-slide 1.1s ease-in-out infinite;
}
@keyframes scan-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(330%); }
}
@media (prefers-reduced-motion: reduce) {
  .scan-progress-bar { animation: none; width: 100%; opacity: 0.35; }
}

.paste-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #e2e2e2;
}

button { cursor: pointer; }

.btn-primary {
  background: #131313;
  color: oklch(0.9 0.18 95);
  border: 0;
  font-family: "Archivo", Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 6px;
}
.btn-primary:hover { background: #2e2e2e; }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  border: 0;
  color: #6b6b6b;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13.5px;
  padding: 12px 8px;
  min-height: 44px;
}
.btn-ghost:hover:not(:disabled) { color: #131313; }
.btn-ghost:disabled { color: #c9c9c9; cursor: not-allowed; }

/* Audit report */
.report-page {
  padding-top: 8px;
}
.report-page > .scan-progress {
  margin-bottom: 18px;
}
.results-page-title {
  display: block;
  min-width: 0;
}
.results-page-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.results-url-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.report-favicon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  padding: 2px;
  border: 1px solid #e2e2e2;
  border-radius: 2px;
  object-fit: contain;
  background: #fff;
}
.results-url {
  min-width: 0;
  font-family: "Archivo", Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #131313;
  text-decoration: none;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.results-url:hover {
  color: #131313;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#results { scroll-margin-top: 24px; }
.results-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 20px;
  margin: 8px 0 16px;
}
.results-head-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.results-head-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  min-width: 0;
}
.results-title {
  margin: 0;
  font-family: "Archivo", Helvetica, sans-serif;
  font-size: 24px;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.results-head .meta {
  font-size: 13px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-score {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  width: 140px;
  height: 140px;
  flex: 0 0 auto;
  padding: 12px 14px;
  background: oklch(0.9 0.18 95);
  border-radius: 4px;
  transition: background 0.3s ease;
}
.audit-score.is-idle { background: #f2f2ef; }
.audit-score.is-idle .audit-score-label,
.audit-score.is-idle .audit-score-value { color: #c2c2be; }
.audit-score.is-idle .audit-score-max { color: #c2c2be; opacity: 1; }
.audit-score.is-idle .audit-score-seg { background: #e6e6e2; }
.audit-score-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #131313;
  text-align: center;
  width: 100%;
}
.audit-score-digits {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
  line-height: 0.85;
}
.audit-score-value {
  font-family: "Archivo", Helvetica, sans-serif;
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #131313;
  font-variant-numeric: tabular-nums;
}
.audit-score-max {
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  color: #131313;
  opacity: 0.6;
}
.audit-score-meter {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
}
.audit-score-seg {
  height: 3px;
  border-radius: 1px;
  background: rgba(19, 19, 19, 0.1);
  transform: none;
  transition: background 0.18s ease;
}
.audit-score-seg.is-on {
  background: rgba(19, 19, 19, 0.45);
  border-radius: 2px;
}
.audit-score.is-low .audit-score-seg.is-on { background: rgba(138, 46, 31, 0.55); }

@media (max-width: 620px) {
  .results-head {
    gap: 12px;
  }
  .results-head .spacer { display: none; }

  .audit-score {
    width: 105px;
    height: 105px;
    gap: 6px;
    padding: 9px 11px;
  }
  .audit-score-label { font-size: 9px; letter-spacing: 0.14em; }
  .audit-score-value { font-size: 45px; }
  .audit-score-max { font-size: 13px; }
  .audit-score-seg { height: 3px; }

  .results-url { font-size: 18px; }
}


.btn-export {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 2px;
  min-height: 44px;
  border: 0;
  background: transparent;
  border-bottom: 3px solid oklch(0.9 0.18 95);
  color: #131313;
}
.btn-export:disabled { border-bottom-color: #ececea; color: #ababab; cursor: not-allowed; }

.audit-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 0;
}
.summary-guide {
  margin: 0 0 20px;
  max-width: none;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5a5a5a;
}
.summary-guide.is-error { color: #8a2e1f; }
.summary-guide.is-warn { color: #6a5200; }
.summary-guide.is-ok { color: #3a5a48; }
.sum-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  padding: 4px 0;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sum-chip.is-pending { opacity: 0; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) {
  .sum-chip.is-pending { opacity: 1; transform: none; }
}
.sum-chip::before {
  margin-right: 6px;
  font-weight: 600;
}
.sum-idle { color: #ababab; }
.sum-pass { color: #131313; }
.sum-pass::before { content: "\2713"; color: #2f7a52; }
.sum-warn { color: #8a6a00; }
.sum-warn::before { content: "\0021"; color: #b58900; }
.sum-error { color: #b2402f; }
.sum-error::before { content: "\2715"; color: #b2402f; }
.audit-note { flex: 1 1 100%; margin: 0; }

.audit-report { border-top: 2px solid #131313; }

.audit-section {
  position: relative;
  border-bottom: 1px solid #ececec;
  background: #fff;
  opacity: 1;
  transform: none;
  transition: opacity 0.34s ease, transform 0.34s ease;
}
.audit-section.is-pending {
  opacity: 0;
  transform: translateY(10px);
}
.audit-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: oklch(0.9 0.18 95);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
}
.audit-section:not(.is-pending)::after {
  animation: card-underline 0.9s ease forwards;
}
@keyframes card-underline {
  0% { transform: scaleX(0); opacity: 1; }
  70% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .audit-section.is-pending { opacity: 1; transform: none; }
  .audit-section::after { animation: none; opacity: 0; }
}
.audit-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
  padding: 14px 12px;
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease;
}
.audit-summary-row::-webkit-details-marker { display: none; }
.audit-summary-row:hover { background: #faf9f6; }
.audit-summary-row:focus-visible { outline: 2px solid #131313; outline-offset: -2px; }

.audit-summary-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 220px; }
.audit-summary-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.audit-summary-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.audit-chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid #6b6b6b;
  border-bottom: 2px solid #6b6b6b;
  transform: rotate(-45deg);
  transition: transform 0.26s ease, border-color 0.18s ease;
}
.audit-section[open] > .audit-summary-row .audit-chevron { transform: rotate(45deg); }
.audit-summary-row:hover .audit-chevron { border-color: #131313; }

.audit-section-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.audit-section-title {
  font-family: "Archivo", Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.audit-help {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #c9c9c9;
  border-radius: 50%;
  background: #fff;
  color: #6b6b6b;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: help;
}
.audit-help:hover,
.audit-help:focus-visible {
  color: #131313;
  border-color: #131313;
  background: oklch(0.9 0.18 95);
  outline: none;
}
.audit-help-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  width: min(280px, 70vw);
  padding: 10px 12px;
  border: 1px solid #131313;
  background: #fff;
  color: #131313;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  box-shadow: 0 8px 20px rgba(19, 19, 19, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
}
.audit-help-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #131313;
}
.audit-help:hover .audit-help-tip,
.audit-help:focus-visible .audit-help-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.audit-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  color: #6b6b6b;
  overflow-wrap: anywhere;
}
.audit-preview-bit { margin-right: 2px; }
.audit-preview-sep {
  margin: 0 7px 0 5px;
  color: #c9c9c9;
}

.section-wrap {
  overflow: hidden;
  transition: height 0.26s ease;
}
@media (prefers-reduced-motion: reduce) {
  .section-wrap { transition: none; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: lowercase;
  white-space: nowrap;
}
.pill::before {
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}
.pill-pass { color: #131313; }
.pill-pass::before { content: "\2713"; color: #2f7a52; }
.pill-warning { color: #8a6a00; }
.pill-warning::before { content: "\0021"; color: #b58900; }
.pill-error { color: #b2402f; }
.pill-error::before { content: "\2715"; color: #b2402f; }

.section-body {
  padding: 4px 12px 24px;
  border-top: 1px solid #f2f2f0;
}
.block-label {
  margin: 22px 0 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-body > .block-label:first-child { margin-top: 16px; }

.issue-list { list-style: none; margin: 16px 0 0; padding: 0; }
.issue {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 12px;
  border-left: 3px solid #ececec;
  background: #fafafa;
  border-radius: 0 4px 4px 0;
  margin-bottom: 6px;
}
.issue-sev {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.issue-error { border-left-color: #b2402f; background: #fdf5f3; }
.issue-error .issue-sev { color: #b2402f; }
.issue-warning { border-left-color: #fccd4d; background: #fffaef; }
.issue-warning .issue-sev { color: #8a6a00; }
.issue-info .issue-sev { color: #6b6b6b; }

.kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}
.kv th {
  text-align: left;
  font-weight: 500;
  color: #6b6b6b;
  width: 160px;
  padding: 10px 16px 10px 0;
  vertical-align: top;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-top: 1px solid #f2f2f0;
}
.kv td {
  padding: 10px 0;
  vertical-align: top;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  border-top: 1px solid #f2f2f0;
  line-height: 1.5;
}
.kv tr:first-child th, .kv tr:first-child td { border-top: 0; }
@media (max-width: 560px) {
  .kv th { width: 120px; }
}

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 16px; }
.data-table th, .data-table td {
  text-align: left;
  padding: 9px 12px 9px 0;
  border-top: 1px solid #f2f2f0;
  vertical-align: top;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.data-table th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #6b6b6b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-top: 0;
}
.data-table tr:nth-child(even) td { background: #fafafa; }
.mono { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; }

.img-audit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.img-audit-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid #ececea;
  border-radius: 4px;
  background: #fff;
}
.img-audit-row.is-missing,
.img-audit-row.is-empty {
  border-color: #e8b4ab;
  background: #fdf5f3;
  box-shadow: inset 3px 0 0 #b2402f;
}
.img-audit-row.is-placeholder {
  border-color: #e8d49a;
  background: #fffaef;
  box-shadow: inset 3px 0 0 #fccd4d;
}
.img-audit-thumb {
  width: 88px;
  height: 66px;
  border-radius: 3px;
  overflow: hidden;
  background: #ececea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: #6b6b6b;
}
.img-audit-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-audit-row.is-missing .img-audit-thumb,
.img-audit-row.is-empty .img-audit-thumb {
  outline: 2px solid #b2402f;
  outline-offset: -2px;
}
.img-audit-row.is-placeholder .img-audit-thumb {
  outline: 2px solid #fccd4d;
  outline-offset: -2px;
}
.img-audit-info { min-width: 0; }
.img-audit-status {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.img-status-missing,
.img-status-empty { color: #b2402f; font-weight: 600; }
.img-status-placeholder { color: #8a6a00; font-weight: 600; }
.img-status-ok { color: #6b6b6b; }
.img-audit-src {
  overflow-wrap: anywhere;
  margin-bottom: 4px;
  color: #3a3a3a;
}
.img-audit-alt {
  font-size: 13.5px;
  line-height: 1.45;
  color: #565656;
}
@media (max-width: 560px) {
  .img-audit-row { grid-template-columns: 64px 1fr; gap: 10px; padding: 10px; }
  .img-audit-thumb { width: 64px; height: 48px; }
}

.code-block {
  margin: 0 0 12px;
  padding: 16px;
  background: #f7f7f5;
  border: 1px solid #ececea;
  border-radius: 4px;
  overflow: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  max-height: 320px;
}

.heading-outline { list-style: none; margin: 16px 0 0; padding: 0; }
.heading-outline li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  border-top: 1px solid #f2f2f0;
}
.heading-outline li:first-child { border-top: 0; }
.h-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #6b6b6b;
  width: 26px;
  flex: 0 0 auto;
  padding-top: 2px;
}
.h-level-2 { padding-left: 16px; }
.h-level-3 { padding-left: 32px; }
.h-level-4 { padding-left: 48px; }
.h-level-5 { padding-left: 64px; }
.h-level-6 { padding-left: 80px; }

.social-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  margin: 8px 0 16px;
  max-width: 560px;
}
.social-card-img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #ececea;
}
.social-card-img.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #6b6b6b;
}
.social-card-body { padding: 14px 16px; }
.social-card-site { font-size: 12px; color: #6b6b6b; margin-bottom: 4px; }
.social-card-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.social-card-desc { font-size: 13.5px; color: #3a3a3a; margin-bottom: 8px; }
.social-card-url { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: #6b6b6b; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .social-card { grid-template-columns: 1fr; }
  .social-card-img, .social-card-img.is-empty { height: 160px; }
}

/* Copy sections (home body + utility pages) */
.copy { max-width: none; padding-top: 72px; }

.copy h2, .page-title {
  margin: 0 0 20px;
  font-family: "Archivo", Helvetica, sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.copy h3 {
  margin: 40px 0 10px;
  font-family: "Archivo", Helvetica, sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.copy h4 { margin: 26px 0 8px; font-size: 16.5px; font-weight: 600; }

.copy p { margin: 0 0 16px; font-size: 16px; line-height: 1.65; color: #3a3a3a; }
.copy ul { margin: 0 0 16px; padding-left: 22px; }
.copy li { font-size: 16px; line-height: 1.65; color: #3a3a3a; margin-bottom: 6px; }

/* Utility pages */
.page { max-width: 1000px; padding-top: 48px; }
.page h1 {
  font-size: clamp(32px, 5vw, 48px);
  max-width: none;
}
.page .lede { max-width: none; }
.page .copy { padding-top: 8px; }

/* Footer */
footer { background: #131313; margin-top: 80px; flex: 0 0 auto; }

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: #ababab;
}

.footer-logo { display: inline-block; }
.footer-logo:hover { background: transparent; }
.footer-logo img { display: block; width: 130px; height: auto; }

.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-inner nav a {
  color: #ababab;
  text-decoration: none;
  padding-bottom: 2px;
  background-color: transparent;
  background-image: linear-gradient(#ffb703 0 0);
  background-repeat: no-repeat;
  background-size: 0% 32%;
  background-position: 0 calc(90% + 2px);
  transition: background-size 0.35s ease, color 0.35s ease;
}
.footer-inner nav a:hover {
  color: #fff;
  background-color: transparent;
  background-size: 100% 32%;
  text-decoration: none;
}

/* Tool tabs (home: checker / generator) */
.tool-tabs {
  display: flex;
  gap: 26px;
  margin-top: 34px;
  border-bottom: 2px solid #131313;
}
.tool-tab {
  background: transparent;
  border: 0;
  padding: 8px 2px 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6b6b6b;
  cursor: pointer;
  position: relative;
}
.tool-tab:hover { color: #131313; }
.tool-tab.is-active { color: #131313; font-weight: 600; }
.tool-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  background: #fccd4d;
}
.tool-tab:focus-visible { outline: 2px solid #131313; outline-offset: 2px; }
.tool-panel .paste-box { margin-top: 24px; }

/* Generator */
.gen { margin-top: 24px; }
.gen-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 18px;
}
.gen-presets-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gen-preset { text-decoration: underline; text-underline-offset: 3px; }

.gen-bots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.gen-group {
  margin: 0;
  padding: 14px 16px 10px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  background: #fff;
  min-width: 0;
}
.gen-group legend {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 6px;
}
.gen-bot {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  cursor: pointer;
}
.gen-bot input { accent-color: #131313; cursor: pointer; }
.gen-bot-name { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; }
.gen-bot-note { font-size: 12px; color: #6b6b6b; }
.gen-group-default { background: #fafafa; }

.gen-options { margin-top: 18px; display: grid; gap: 14px; max-width: 560px; }
.gen-field { display: block; }
.gen-field-label {
  display: block;
  font-size: 13.5px;
  color: #3a3a3a;
  margin-bottom: 6px;
}
.gen-textarea, .gen-number {
  display: block;
  width: 100%;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  background: #fff;
  padding: 10px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: #131313;
}
.gen-number { max-width: 140px; }
.gen-textarea:focus, .gen-number:focus { outline: 2px solid #131313; outline-offset: -2px; }

.gen-out { margin-top: 24px; }
.gen-output {
  min-height: 120px;
  margin-top: 0;
  white-space: pre;
  overflow-x: auto;
}
.gen-out-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
}

/* Directives section: user-agent groups */
.ua-group {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #ececea;
  border-radius: 4px;
  background: #fff;
}
.ua-group-head { margin: 0 0 6px; font-size: 14px; }
.ua-group-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 6px;
}
.ua-group-line {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #6b6b6b;
  margin-left: 10px;
}
.ua-rules { list-style: none; margin: 0; padding: 0; }
.ua-rule { padding: 3px 0; font-size: 13px; overflow-wrap: anywhere; }
.ua-rule.is-disallow .mono { color: #8a2e1f; }
.ua-rule.is-allow .mono { color: #3a5a48; }

/* Bot access + path tester verdicts */
.verdict {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 3px;
}
.verdict.is-allowed { background: #eaf3ee; color: #2f6a4a; }
.verdict.is-blocked { background: #131313; color: #fccd4d; }

.bot-table .bot-name { display: block; }
.bot-table .bot-note { display: block; font-size: 11.5px; color: #6b6b6b; }
.bot-table .bot-verdict { white-space: nowrap; }
.bot-table .bot-why { font-size: 12.5px; color: #3a3a3a; }
.sm-ok { color: #2f6a4a; }
.sm-fail { color: #b2402f; }

/* Syntax section: the file with line numbers */
.robots-lines {
  margin: 8px 0 0;
  padding: 14px 0;
  list-style: none;
  counter-reset: robotsline;
  background: #131313;
  color: #e8e8e6;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
}
.robots-lines li {
  counter-increment: robotsline;
  padding: 0 16px 0 0;
  white-space: pre;
}
.robots-lines li::before {
  content: counter(robotsline);
  display: inline-block;
  width: 44px;
  padding-right: 14px;
  text-align: right;
  color: #6a6a68;
  user-select: none;
}
.robots-lines li.is-flagged { background: #2e2410; }
.robots-lines li.is-flagged::before { color: #fccd4d; font-weight: 600; }

/* Path tester */
.path-tester { margin-top: 56px; }
.path-tester h2 {
  margin: 0 0 6px;
  font-family: "Archivo", Helvetica, sans-serif;
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.path-tester > .meta { display: block; margin-bottom: 4px; }
.path-input {
  resize: vertical;
  min-height: 74px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  line-height: 1.6;
}
.path-results { margin-top: 8px; }
.path-table-scroll { overflow-x: auto; }
.path-table { min-width: 480px; }
.path-table .path-col { max-width: 220px; }
.path-group-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 16px;
}
.path-cell { white-space: nowrap; }

/* Report head file meta */
.report-filemeta { margin: 6px 0 0; }

/* Home copy extras */
.home-copy code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  background: #f0f0ee;
  padding: 1px 5px;
  border-radius: 3px;
}
.home-note { max-width: none; }

@media (max-width: 560px) {
  .tool-tabs { gap: 18px; }
  .gen-bots { grid-template-columns: 1fr; }
}

/* Top-right minimal link (google.com style) */
.site-head-inner { position: relative; }
.head-links {
  position: absolute;
  top: 22px;
  right: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
}
.head-links a { color: #6b6b6b; text-decoration: none; }
.head-links a:hover { color: #131313; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .head-links { top: 16px; }
}
.head-links-label { color: #6b6b6b; margin-right: 6px; }

/* Path tester: trigger + modal */
.path-tester-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.path-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 20px 22px 24px;
  background: #f8f8f6;
}
.path-modal::backdrop { background: rgba(19, 19, 19, 0.55); }
.path-modal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.path-modal-head h2 {
  margin: 0;
  font-family: "Archivo", Helvetica, sans-serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.path-modal > .meta { display: block; margin: 6px 0 2px; }

/* blog styles */
/* index cards */
.blog-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:28px;margin-top:24px}
.blog-card{display:flex;flex-direction:column}
.blog-card-imglink{display:block;border-radius:8px;overflow:hidden;line-height:0}
.blog-card-imglink:hover,.blog-card-imglink:focus{background:none}
.blog-card-hero{display:block;width:100%;height:auto}
.blog-card-title{font-family:"Archivo",Helvetica,sans-serif;font-size:19px;line-height:1.3;margin:12px 0 4px}
.blog-card-title a{color:inherit;text-decoration:none}
.blog-card-meta{opacity:.7;font-size:13px;margin:2px 0 8px}
.blog-card-excerpt{font-size:15px;line-height:1.6;color:#3a3a3a;margin:0 0 8px}
.blog-card-more{font-weight:600;font-size:14px}
.blog-card-more:hover,.blog-card-more:focus{background:none;text-decoration:underline;text-underline-offset:3px}
/* article page */
.blog-hero{display:block;width:100%;height:auto;border-radius:8px;margin:0 0 20px}
.blog-byline{opacity:.7;font-size:14px;margin:0 0 20px}
/* code: dark boxed panel that scrolls inside itself, never widening the page */
.blog-post pre{margin:0 0 20px;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;background:#1e1e22;color:#f2f2ee;border:1px solid #2c2c31;border-radius:8px;padding:16px 18px;font-family:"IBM Plex Mono",monospace;font-size:13px;line-height:1.6;tab-size:2}
.blog-post pre code{display:block;background:none;color:inherit;padding:0;border-radius:0;font-size:inherit;white-space:pre}
.blog-post :not(pre)>code{background:#f0f0ec;color:#131313;padding:1px 6px;border-radius:4px;font-size:.9em;overflow-wrap:anywhere}
/* tables */
.blog-post table{width:100%;border-collapse:separate;border-spacing:0;margin:12px 0 24px;font-size:14px;border:1px solid #e4e4e0;border-radius:8px;overflow:hidden}
.blog-post th,.blog-post td{text-align:left;padding:11px 14px;border-top:1px solid #e4e4e0;vertical-align:top;line-height:1.55;overflow-wrap:anywhere}
.blog-post thead th,.blog-post tr:first-child th{background:#131313;color:#f2f2ee;border-top:0;font-family:"IBM Plex Mono",monospace;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.blog-post tbody tr:nth-child(even) td,.blog-post table tr:nth-child(even) td{background:#f7f7f5}
.blog-post table :is(th,td):first-child{padding-left:16px}
.blog-post table :is(th,td):last-child{padding-right:16px}
.blog-post td code{background:#ecece8;font-size:12.5px}
/* related + pagination */
.blog-related{margin:40px 0 0;padding-top:20px;border-top:1px solid #e4e4e0}
.blog-related h2{font-size:16px;margin:0 0 10px}
.blog-related-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.blog-related-list a{font-weight:500}
.blog-pagination{display:flex;gap:8px;align-items:center;justify-content:center;margin:32px 0 0;flex-wrap:wrap}
.blog-pagination a,.blog-pagination .pg-cur{padding:6px 12px;border:1px solid #e4e4e0;border-radius:6px;text-decoration:none;font-size:14px;min-width:40px;text-align:center}
.blog-pagination .pg-cur{background:#131313;color:#fff;border-color:#131313}
.blog-pagination .pg-arrow{font-weight:600}
/* authors page */
.authors{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:28px;margin-top:24px}
.author-card{display:flex;gap:16px;align-items:flex-start}
.author-photo{width:88px;height:88px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:#eee}
.author-card h2{font-size:18px;margin:0 0 2px}
.author-title{opacity:.7;font-size:13px;margin:0 0 8px}
.author-body p{font-size:15px;line-height:1.6;margin:0}


/* socialpreview.tools: builder styles from the htaccess.tools sheet */
.tool-hero { padding-bottom: 30px; }
/* Presets */
.presets { margin-top: 4px; }
.presets-label {
  display: block;
  margin-bottom: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
}
.presets-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-preset {
  background: #fff;
  border: 1px solid #d8d8d2;
  border-radius: 4px;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #131313;
  padding: 9px 15px;
  min-height: 40px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-preset:hover { border-color: #131313; background: oklch(0.9 0.18 95); }
.btn-preset.is-active {
  border-color: #131313;
  background: #131313;
  color: oklch(0.9 0.18 95);
  font-weight: 600;
}
.btn-preset-clear { color: #6b6b6b; border-style: dashed; }
.btn-preset-clear:hover { color: #131313; }

/* Builder layout */
.builder {
  display: grid;
  /* The output panel gets the wider track: config lines are long. */
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 36px;
  align-items: start;
}
/* minmax(0, ...) on every track, and min-width on the items: without it the
   automatic minimum size stretches a column to the longest line of output
   instead of letting that line scroll inside its own panel. */
.builder-options, .builder-output { min-width: 0; }
@media (max-width: 980px) {
  .builder { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

.apache-note {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #565656;
  border-left: 3px solid oklch(0.9 0.18 95);
  padding-left: 12px;
}
.apache-note strong { font-weight: 600; }

.conflict-box { margin-bottom: 18px; }
.conflict-box .issue-list { margin-top: 0; }

/* Option groups */
.builder-options { border-top: 2px solid #131313; }

.opt-group {
  border-bottom: 1px solid #e4e4e0;
  background: #fff;
}
.opt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 14px;
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease;
}
.opt-head::-webkit-details-marker { display: none; }
.opt-head:hover { background: #faf9f6; }
.opt-head:focus-visible { outline: 2px solid #131313; outline-offset: -2px; }

.opt-title {
  font-family: "Archivo", Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.opt-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.audit-chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid #6b6b6b;
  border-bottom: 2px solid #6b6b6b;
  transform: rotate(-45deg);
  transition: transform 0.26s ease, border-color 0.18s ease;
}
.opt-group[open] > .opt-head .audit-chevron { transform: rotate(45deg); }
.opt-head:hover .audit-chevron { border-color: #131313; }

.section-wrap {
  overflow: hidden;
  transition: height 0.26s ease;
}
@media (prefers-reduced-motion: reduce) {
  .section-wrap { transition: none; }
}

.opt-body {
  padding: 6px 14px 24px;
  border-top: 1px solid #f2f2f0;
}

/* Checkbox rows */
.opt-check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 11px 0;
  cursor: pointer;
  border-bottom: 1px solid #f4f4f1;
}
.opt-check:last-child { border-bottom: 0; }
.opt-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #131313;
  cursor: pointer;
}
.opt-check-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.opt-check-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.opt-check-note { font-size: 13px; line-height: 1.5; color: #6a6a6a; }

.opt-check-sm { padding: 7px 0; border-bottom: 0; }
.opt-check-sm .opt-check-title { font-size: 13.5px; font-weight: 500; font-family: "IBM Plex Mono", monospace; }
.opt-check-sm .opt-check-note { font-size: 12.5px; }

/* Mutually exclusive choices: a master checkbox turns the rule on, radios
   pick which direction. Two contradictory rules cannot be selected at all. */
.radio-set {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}
.opt-radio {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid transparent;
}
.opt-radio:hover { background: #f2f2ee; }
.opt-radio input[type="radio"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #131313;
  cursor: pointer;
}
.opt-radio:has(input:checked) {
  background: #fff;
  border-color: #dcdcd6;
  box-shadow: inset 2px 0 0 oklch(0.9 0.18 95);
}
.opt-radio .opt-check-title { font-size: 14.5px; font-weight: 600; }
.opt-radio .opt-check-note { font-size: 12.5px; }

.opt-block { padding: 14px 0 4px; border-bottom: 1px solid #f4f4f1; }
.opt-block > .opt-check-title { display: block; font-size: 15px; font-weight: 600; }
.opt-block > .opt-check-note { display: block; font-size: 13px; line-height: 1.5; color: #6a6a6a; margin-top: 3px; }

/* Sub panels revealed by their parent checkbox */
.opt-sub {
  margin: 2px 0 14px 28px;
  padding: 14px 16px;
  background: #faf9f6;
  border-left: 2px solid #e4e4e0;
  transition: opacity 0.2s ease;
}
.opt-sub.is-off { opacity: 0.42; }
.opt-sub.is-off .field-input { background: #f2f2ee; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; flex: 1 1 200px; }
.field:last-child { margin-bottom: 0; }
.field-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b6b6b;
}
.field-input {
  width: 100%;
  border: 1px solid #dcdcd6;
  border-radius: 3px;
  background: #fff;
  padding: 9px 10px;
  min-height: 40px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: #131313;
}
.field-input:disabled { cursor: not-allowed; }
.field-area { min-height: 88px; resize: vertical; line-height: 1.5; }
.field-narrow { flex: 0 1 190px; }
.field-note { margin: -6px 0 12px; font-size: 12.5px; line-height: 1.45; color: #6b6b6b; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.field-row-wrap { gap: 0 16px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0 16px;
}

.warn-inline {
  margin: 0 0 14px;
  padding: 9px 12px;
  background: #fffaef;
  border-left: 3px solid #fccd4d;
  font-size: 13px;
  line-height: 1.5;
  color: #6a5200;
}

/* Single redirect rows */
.single-rows { margin-top: 12px; }
.single-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #faf9f6;
  border-left: 2px solid #e4e4e0;
}
.single-row .field { margin-bottom: 8px; }
.btn-row-remove {
  background: transparent;
  border: 0;
  color: #6b6b6b;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  padding: 10px 4px;
  min-height: 40px;
  margin-bottom: 8px;
}
.btn-row-remove:hover { color: #b2402f; text-decoration: underline; }
.btn-add { padding-left: 0; }

/* Notices */
.issue-list { list-style: none; margin: 16px 0 0; padding: 0; }
.issue {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 12px;
  border-left: 3px solid #ececec;
  background: #fafafa;
  border-radius: 0 4px 4px 0;
  margin-bottom: 6px;
}
.issue-sev {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.issue-error { border-left-color: #b2402f; background: #fdf5f3; }
.issue-error .issue-sev { color: #b2402f; }
.issue-warning { border-left-color: #fccd4d; background: #fffaef; }
.issue-warning .issue-sev { color: #8a6a00; }
.issue-info .issue-sev { color: #6b6b6b; }

/* Output panel */
.builder-output {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  max-height: min(calc(100vh - 40px), 600px);
}
@media (max-width: 980px) {
  .builder-output { position: static; max-height: none; }
}

.output-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 0 0 12px;
  border-bottom: 2px solid #131313;
}
.output-title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.output-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  font-weight: 600;
}
.output-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #6b6b6b;
}
.output-actions { display: flex; gap: 8px; }

.output-code {
  margin: 0;
  padding: 20px;
  background: #131313;
  color: #f2f2ee;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 320px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  line-height: 1.65;
  /* Long directives (a CSP value, a FilesMatch pattern) wrap instead of
     forcing a horizontal scrollbar, which would eat height off the panel and
     bring a vertical scrollbar with it. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
/* One block per line, with a hanging indent so a wrapped continuation is
   never mistaken for a new directive. */
.output-code span {
  display: block;
  min-height: 1.65em;
  padding-left: 2.4ch;
  text-indent: -2.4ch;
}
.output-code:focus-visible { outline: 2px solid #fccd4d; outline-offset: -2px; }
.ln-comment { color: #8f8f88; }
.ln-tag { color: #fccd4d; }
.ln-dir { color: #f2f2ee; }
.output-status { padding-top: 10px; }


.tool-copy { padding-top: 80px; }


/* socialpreview.tools additions */
.home-note { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: #55554f; }
.tool-panel .paste-box { margin-top: 24px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin: 22px 0 10px; }
.preview { min-width: 0; }
.preview-label { display: block; margin: 0 0 8px; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: #131313; font-weight: 600; }
.preview-label .meta { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: 2px; }
.pv { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid #e2e2de; max-width: 520px; }
.pv-img { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: #ececea; }
.pv-img.is-empty { display: flex; align-items: center; justify-content: center; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #6b6b6b; }
.pv-body { padding: 10px 12px 12px; }
.pv-site { font-size: 12px; color: #6b6b66; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 3px; }
.pv-title { font-weight: 600; font-size: 15px; line-height: 1.3; color: #131313; }
.pv-desc { font-size: 13.5px; line-height: 1.4; color: #4a4a46; margin-top: 3px; }
.pv-url { font-size: 12px; color: #6b6b66; margin-top: 4px; overflow-wrap: anywhere; }
/* platform flavours */
.pv-x { border-radius: 16px; border-color: #cfd9de; position: relative; }
.pv-x .pv-body { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,0.75); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 13px; max-width: calc(100% - 24px); }
.pv-x .pv-title { color: #fff; font-weight: 400; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-x .pv-desc, .pv-x .pv-site { display: none; }
.pv-x-summary { display: grid; grid-template-columns: 120px 1fr; }
.pv-x-summary .pv-img { aspect-ratio: 1 / 1; height: 100%; }
.pv-x-summary .pv-body { position: static; background: none; color: #131313; padding: 12px; }
.pv-x-summary .pv-title { color: #131313; font-weight: 600; font-size: 14px; white-space: normal; }
.pv-x-summary .pv-desc { display: block; }
.pv-x-summary .pv-site { display: block; }
.pv-x-url { font-size: 13px; color: #536471; margin-top: 4px; padding: 0 2px; }
.pv-fb { border-radius: 0; background: #f0f2f5; border-color: #dadde1; }
.pv-fb .pv-body { padding: 10px 12px; }
.pv-fb .pv-site { color: #65676b; }
.pv-fb .pv-title { font-size: 16px; color: #050505; }
.pv-fb .pv-desc { color: #65676b; }
.pv-li { border-radius: 2px; }
.pv-li .pv-body { background: #eef3f8; }
.pv-li .pv-title { font-size: 14px; }
.pv-li .pv-site { text-transform: none; font-size: 12px; }
.pv-dc { border-radius: 4px; background: #2b2d31; border-color: #2b2d31; border-left: 4px solid #5865f2; color: #dbdee1; max-width: 432px; }
.pv-dc .pv-body { padding: 12px 16px; }
.pv-dc .pv-site { color: #dbdee1; text-transform: none; }
.pv-dc .pv-title { color: #00a8fc; }
.pv-dc .pv-desc { color: #dbdee1; }
.pv-dc .pv-img { border-radius: 4px; margin: 8px 16px 16px; width: calc(100% - 32px); aspect-ratio: 1.91 / 1; }
.pv-dc .pv-img.is-thumb { width: 80px; aspect-ratio: 1 / 1; float: right; margin: 12px 16px 0 0; }
.pv-sl { border-radius: 8px; border: 0; padding: 4px 0 4px 12px; border-left: 4px solid #ddd; background: transparent; }
.pv-sl .pv-site { text-transform: none; font-weight: 700; color: #1d1c1d; font-size: 14px; }
.pv-sl .pv-title { color: #1264a3; }
.pv-sl .pv-desc { color: #1d1c1d; }
.pv-sl .pv-img { max-width: 360px; border-radius: 8px; margin-top: 8px; }
.pv-im { border-radius: 18px; background: #e9e9eb; border: 0; max-width: 300px; }
.pv-im .pv-body { padding: 10px 12px; }
.pv-im .pv-title { font-size: 14px; }
.pv-im .pv-site { text-transform: none; font-size: 12px; color: #8a8a8e; margin-top: 2px; }
.pv-im .pv-desc { display: none; }
.pv-google { border: 0; background: transparent; }
.pv-google .pv-title { color: #1a0dab; font-weight: 400; font-size: 18px; }
.pv-google .pv-url { color: #202124; font-size: 13px; order: -1; }
.pv-google .pv-desc { color: #4d5156; font-size: 14px; }
.pv-google .pv-body { display: flex; flex-direction: column; padding: 4px 0; }
.tags-table td { vertical-align: top; }
.tags-table .mono { font-size: 12.5px; overflow-wrap: anywhere; }
.tag-state { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 11px; padding: 2px 7px; border-radius: 4px; }
.tag-state.is-ok { background: #e4f4e1; color: #1f5d18; }
.tag-state.is-fallback { background: #fff1c2; color: #6b4d00; }
.tag-state.is-missing { background: #fde2dd; color: #8a2116; }
.img-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; margin: 8px 0; }
.gen-preview { margin-top: 18px; }
.report-foot { margin-top: 36px; }

.issue-fix { margin-top: 5px; font-size: 12.5px; overflow-wrap: anywhere; }
.issue-fix code { background: #f2f2ef; padding: 1px 6px; border-radius: 3px; }

/* icons + hero illustration + coverage list */
.ic { display: inline-block; vertical-align: -4px; flex: 0 0 auto; }
.ic-tab { vertical-align: -3px; margin-right: 4px; }
.ic-sec { color: #131313; }
.btn-ic { display: inline-flex; align-items: center; gap: 8px; }
.btn-ic .ic { vertical-align: 0; }
a.btn-secondary { text-decoration: none; }
.audit-section-heading { display: inline-flex; align-items: center; gap: 10px; }
.cover-lead { margin: 0 0 18px; font-size: 16px; color: #3a3a3a; }
.cover { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.cover li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: #3a3a3a; }
.cover strong { display: block; font-family: "Archivo", Helvetica, sans-serif; font-size: 16px; letter-spacing: -0.01em; color: #131313; margin-bottom: 2px; }
.cover-ic { width: 40px; height: 40px; border-radius: 8px; background: #fccd4d; color: #131313; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.cover-ic .ic { vertical-align: 0; }
.cover-foot { margin: 6px 0 0; font-size: 15px; color: #3a3a3a; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-split h1 { font-size: clamp(34px, 4.2vw, 48px); }
.hero-split .lede { margin-bottom: 0; }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-tools { grid-column: 1 / -1; }
.hero-tools .tool-tabs { margin-top: 28px; }
@media (max-width: 760px) { .hero-split { grid-template-columns: 1fr; } .hero-art { max-width: 360px; } .cover { grid-template-columns: 1fr; } }

/* head-links-wrap: eleven sister tools now; let the top-right list wrap in two right-aligned rows clear of the logo */
.head-links { max-width: 58%; text-align: right; line-height: 1.9; }
.head-links a { white-space: nowrap; margin-left: 10px; }
.head-links-label { white-space: nowrap; }
@media (max-width: 760px) { .head-links { position: static; max-width: none; text-align: left; padding: 8px 0 0; } }

/* tools directory (/tools) */
.copy .tools-grid { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.copy .tools-card { margin: 0; }
.copy .tools-card::marker { content: ""; }
.copy .tools-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: #3a3a3a; }
.copy .tools-card p a { color: #131313; text-underline-offset: 3px; white-space: nowrap; }
.tools-logo { display: inline-block; }
.tools-logo:hover, .tools-logo:focus { background: transparent; }
.tools-logo img { display: block; width: 100%; max-width: 200px; height: auto; }
@media (max-width: 640px) { .copy .tools-grid { grid-template-columns: 1fr; } }
/* header: three random sister tools plus the directory link */
.head-links { max-width: none; line-height: 1.5; top: 12px; }
