/* ==========================================================================
   adstxt-checker.css — Ads.txt Validator (/adstxt-checker/ + /result/)
   Loaded after site.css + inner.css, which supply the reset, the fixed-header
   body offset and the shared chrome. This file carries ONLY the tool itself:

     1. page shell   — hero, file-type toggle, domain form, "why" cards and the
                       result-page title bar. All classes are `atxc-` prefixed
                       because the prototype's names (.hero, .check-form,
                       .explain, .pill-btn) collide with site.css /
                       check-web-vitals.css. Ported from the prototype's
                       shell.css minus its header/footer/nav (the shared SSI
                       chrome replaces those) and minus its global reset.
     2. report widget — verbatim from the prototype's widget.css; fully scoped
                       under `.atx` and self-contained, so it stays embeddable.
   ========================================================================== */

/* ==========================================================================
   1. PAGE SHELL
   ========================================================================== */

/* -------------------------------------------------------------------- hero */

.atxc-hero {
  position: relative;
  background:
    radial-gradient(120% 160% at 88% 30%, rgba(219, 68, 55, 0.92) 0%, rgba(163, 39, 62, 0.72) 34%, rgba(60, 26, 90, 0.25) 62%, rgba(13, 18, 64, 0) 78%),
    linear-gradient(112deg, #10164e 0%, #1a1f5f 34%, #55245f 62%, #a3273e 86%, #c8323c 100%);
  color: #fff;
  overflow: hidden;
}

/* hexagon wireframe overlay */
.atxc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='97' viewBox='0 0 168 97'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.5'%3E%3Cpath d='M42 0 84 24.25v48.5L42 97 0 72.75v-48.5z'/%3E%3Cpath d='M126 0 168 24.25v48.5L126 97 84 72.75v-48.5z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 168px 97px;
  pointer-events: none;
}

.atxc-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 32px 120px;
  text-align: center;
}

.atxc-hero h1 {
  font-size: 74px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  color: #fff;
}
.atxc-hero h1 em {
  font-style: normal;
  color: #F1706B;
}

.atxc-hero-sub {
  max-width: 620px;
  margin: 0 auto 48px;
  font-size: 22px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

/* file-type segmented toggle — navy pill matching the form aesthetic */

.atxc-file-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 0 auto 18px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 60px;
}
.atxc-file-toggle-opt {
  border: 0;
  border-radius: 60px;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.atxc-file-toggle-opt:hover { color: #fff; }
.atxc-file-toggle-opt.is-active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(221, 66, 66, 0.4);
}

/* domain form — white pill with fused red button */

.atxc-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border-radius: 60px;
  padding: 5px;
  box-shadow: 0 14px 40px rgba(13, 18, 64, 0.28);
}
.atxc-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 14px 16px 14px 26px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.atxc-form input::placeholder {
  color: #9BA0B8;
  text-transform: uppercase;
  font-size: 13px;
}
.atxc-form input:focus { outline: none; }
.atxc-form button {
  flex: none;
  border: 0;
  border-radius: 60px;
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 34px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.atxc-form button:hover { background: var(--red-dark); }

/* floating ads.txt file card — hero signature */

.atxc-hero-file {
  position: relative;
  max-width: 660px;
  margin: 76px auto 0;
  text-align: left;
}

.atxc-file-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(10, 12, 40, 0.45);
  overflow: hidden;
  transform: rotate(-1deg);
}
.atxc-file-card-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid #E8EAF2;
}
.atxc-file-card-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #E1E4EF; }
.atxc-file-card-bar .name {
  margin-left: 6px;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #7A7F99;
}
.atxc-file-card-body {
  padding: 18px 22px 22px;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 2.1;
  color: #3D4364;
  white-space: nowrap;
  overflow: hidden;
}
.atxc-file-card-body .ln {
  display: inline-block;
  width: 30px;
  color: #B9BDD1;
  user-select: none;
}
.atxc-file-card-body .row { display: block; }
.atxc-file-card-body .row-bad {
  background: #FBE5E3;
  border-radius: 6px;
  margin: 0 -8px;
  padding: 0 8px;
}
.atxc-file-card-body .row-warn {
  background: #FBF3D2;
  border-radius: 6px;
  margin: 0 -8px;
  padding: 0 8px;
}

/* CWV-style callout tags */
.atxc-callout {
  position: absolute;
  z-index: 2;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(10, 12, 40, 0.35);
  padding: 12px 18px;
  line-height: 1.35;
  white-space: nowrap;
}
.atxc-callout::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 28px;
  border: 9px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}
.atxc-callout .k { font-size: 17px; font-weight: 700; color: var(--navy); margin-right: 8px; }
.atxc-callout .v { font-size: 15px; font-weight: 600; }
.atxc-callout .d { display: block; font-size: 14px; color: #7A7F99; }
.atxc-callout--error .v { color: #DB4437; }
.atxc-callout--warn .v { color: #B8860B; }
.atxc-callout--1 { top: -54px; left: -40px; }
.atxc-callout--2 { top: -34px; right: -56px; }
.atxc-callout--2::after { left: auto; right: 30px; }

/* ---------------------------------------------------------------- sections */

.atxc-explain {
  background: var(--tint);
  padding: 96px 32px;
}
.atxc-explain-inner { max-width: 1100px; margin: 0 auto; }
.atxc-explain h2 {
  text-align: center;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.atxc-explain-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 19px;
  line-height: 1.55;
  color: #4A5070;
}
.atxc-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.atxc-explain-card {
  background: #FBFBFB;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(13, 18, 64, 0.06);
  padding: 36px 32px;
}
.atxc-explain-card .icon {
  width: 46px;
  height: 46px;
  color: var(--red);
  margin-bottom: 20px;
}
.atxc-explain-card .icon svg { width: 100%; height: 100%; }
.atxc-explain-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.atxc-explain-card p { font-size: 15.5px; line-height: 1.6; color: #4A5070; }

.atxc-explain-learn {
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
  color: #4A5070;
}
.atxc-explain-learn a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.atxc-explain-learn a:hover { text-decoration: underline; }
.atxc-explain-learn-sep { margin: 0 12px; color: #B9BDD1; }

/* ------------------------------------------------------- result page title */

.atxc-result-page { background: var(--tint); }

.atxc-result-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.atxc-back-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 18, 64, 0.1);
  color: var(--red);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.atxc-back-btn:hover {
  transform: translateX(-2px);
  box-shadow: 0 10px 28px rgba(13, 18, 64, 0.16);
}
.atxc-back-btn svg { width: 22px; height: 22px; }
.atxc-result-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.atxc-result-main { padding-bottom: 90px; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .atxc-explain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .atxc-hero-inner { padding: 60px 20px 80px; }
  .atxc-hero h1 { font-size: 42px; }
  .atxc-hero-sub { font-size: 17px; margin-bottom: 36px; }

  .atxc-form { flex-direction: column; border-radius: 24px; padding: 8px; }
  .atxc-form input { padding: 14px 16px; text-align: center; }
  .atxc-form button { padding: 15px 24px; }

  .atxc-hero-file { margin-top: 96px; }
  .atxc-callout { padding: 9px 13px; }
  .atxc-callout .k { font-size: 14px; }
  .atxc-callout .v { font-size: 12.5px; }
  .atxc-callout .d { display: none; }
  .atxc-callout--1 { top: -46px; left: 0; }
  .atxc-callout--2 { top: -78px; right: 0; }
  .atxc-file-card-body { font-size: 11px; }

  .atxc-explain { padding: 64px 20px; }
  .atxc-explain h2 { font-size: 30px; }
  .atxc-explain-sub { font-size: 16px; margin-bottom: 36px; }

  .atxc-result-top { grid-template-columns: auto 1fr; gap: 16px; padding: 24px 20px 20px; }
  .atxc-back-btn { width: 44px; height: 44px; }
  .atxc-result-title { text-align: left; font-size: 18px; }
  .atxc-result-top > .spacer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .atxc-hero *, .atxc-explain *, .atxc-result-top *, .atx * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.atxc-hero :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ==========================================================================
   2. REPORT WIDGET (verbatim from the prototype's widget.css)
   ========================================================================== */

/* ==========================================================================
   widget.css — Ads.txt Validator result widget
   Self-contained: everything is scoped under .atx so the widget can be
   embedded into the Tilda page shell without collisions.
   Design system: clickio.com
   ========================================================================== */

.atx {
  /* --- clickio.com tokens --- */
  --atx-navy: #0D1240;
  --atx-navy-soft: #1B2160;
  --atx-red: #DD4242;
  --atx-red-dark: #C93A3A;
  --atx-link: #202A7A;
  --atx-green: #29A38A;
  --atx-mint: #D8FDF5;
  --atx-yellow: #B8860B;
  --atx-yellow-raw: #DEBC43;
  --atx-yellow-bg: #FBF3D2;
  --atx-error: #DB4437;
  --atx-error-bg: #FBE5E3;
  --atx-info: #7C86AD;
  --atx-info-bg: #EAEEF6;
  --atx-bg: #F0F4F8;
  --atx-card: #FBFBFB;
  --atx-white: #FFFFFF;
  --atx-border: #DFE2EA;
  --atx-text: #0D1240;
  --atx-muted: #7A7F99;
  --atx-shadow: 0 10px 30px rgba(13, 18, 64, 0.06);
  --atx-radius: 18px;
  --atx-mono: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--atx-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.atx *, .atx *::before, .atx *::after { box-sizing: border-box; }
.atx a { color: var(--atx-link); }
.atx button { font-family: inherit; }

/* --------------------------------------------------------------- layout */

.atx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.atx-layout > * { min-width: 0; }

/* ----------------------------------------------------------- report card */

.atx-card {
  background: var(--atx-card);
  border-radius: var(--atx-radius);
  box-shadow: var(--atx-shadow);
  overflow: hidden;
}

.atx-section {
  padding: 34px 40px;
}
.atx-section + .atx-section {
  border-top: 1px solid var(--atx-border);
}

/* card header */

.atx-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.atx-domain-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.atx-domain {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  word-break: break-all;
}

.atx-ext {
  display: inline-flex;
  flex: none;
  color: var(--atx-red);
  transition: transform 0.15s ease;
}
.atx-ext:hover { transform: translate(1px, -1px); }
.atx-ext svg { width: 20px; height: 20px; display: block; }

.atx-fetched-url {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--atx-muted);
  word-break: break-all;
}

.atx-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--atx-red);
  cursor: pointer;
}
.atx-copy:hover { text-decoration: underline; }
.atx-copy svg { width: 15px; height: 15px; }
.atx-copy.is-copied { color: var(--atx-green); }

/* status pill */

.atx-status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.atx-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 600;
}
.atx-pill--valid   { color: var(--atx-green);  background: var(--atx-mint); }
.atx-pill--issues  { color: var(--atx-yellow); background: var(--atx-yellow-bg); }
.atx-pill--missing { color: var(--atx-error);  background: var(--atx-error-bg); }

.atx-status-note {
  font-size: 14px;
  color: var(--atx-muted);
}

.atx-checked-at {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--atx-muted);
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------- stat row */

.atx-stats {
  display: flex;
  align-items: stretch;
}

.atx-stat {
  flex: 1;
  padding: 0 26px;
  min-width: 0;
}
.atx-stat:first-child { padding-left: 0; }
.atx-stat + .atx-stat { border-left: 1px solid var(--atx-border); }

.atx-stat-num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.atx-stat-label {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atx-muted);
}

/* combined issues cell */
.atx-stat--issues .atx-issue-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.25;
}
.atx-stat--issues .atx-issue-line + .atx-issue-line { margin-top: 2px; }
.atx-issue-num { font-size: 26px; font-weight: 700; }
.atx-issue-word { font-size: 14px; font-weight: 500; }
.atx-issue-line--error   { color: var(--atx-error); }
.atx-issue-line--warning { color: var(--atx-yellow); }
.atx-issue-line--none    { color: var(--atx-green); }

/* ---------------------------------------------------------- section titles */

.atx-h2 {
  margin: 0 0 22px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.atx-h2 .atx-count {
  color: var(--atx-muted);
  font-weight: 600;
  font-size: 18px;
  margin-left: 6px;
}
.atx-h2-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.atx-h2-row .atx-h2 { margin-bottom: 0; }
.atx-help-link {
  flex: none;
  color: var(--atx-red);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.atx-help-link:hover { text-decoration: underline; }

/* -------------------------------------------------------------- findings */

.atx-finding {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
}
.atx-finding + .atx-finding { border-top: 1px solid var(--atx-border); }

.atx-line-chip {
  flex: none;
  min-width: 72px;
  text-align: center;
  padding: 5px 10px;
  border: 1px solid var(--atx-border);
  border-radius: 8px;
  background: var(--atx-white);
  font-size: 13px;
  font-weight: 600;
  color: var(--atx-link);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.atx-line-chip:hover {
  border-color: var(--atx-link);
  box-shadow: 0 2px 8px rgba(13, 18, 64, 0.08);
}
.atx-line-chip:disabled { cursor: default; }

/* File-level findings have no line: a static, non-interactive chip. */
.atx-line-chip--file {
  color: var(--atx-muted);
  background: var(--atx-bg, #f6f7fb);
  cursor: default;
}
.atx-line-chip--file:hover {
  border-color: var(--atx-border);
  box-shadow: none;
}

.atx-sev {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 9px;
}
.atx-sev--error   { background: var(--atx-error); }
.atx-sev--warning { background: var(--atx-yellow-raw); }
.atx-sev--info    { background: var(--atx-info); }

.atx-finding-msg {
  font-size: 16px;
  line-height: 1.5;
  padding-top: 2px;
  min-width: 0;
}
.atx-finding-code {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--atx-muted);
  font-family: var(--atx-mono);
}

/* severity group label */
.atx-sev-group {
  margin: 20px 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.atx-sev-group:first-of-type { margin-top: 0; }
.atx-sev-group--error   { color: var(--atx-error); }
.atx-sev-group--warning { color: var(--atx-yellow); }
.atx-sev-group--info    { color: var(--atx-info); }
.atx-sev-group + .atx-finding { border-top: 0; }

/* empty state */
.atx-findings-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--atx-mint);
  border-radius: 12px;
  color: var(--atx-green);
}
.atx-findings-empty svg { flex: none; width: 28px; height: 28px; }
.atx-findings-empty strong { display: block; font-size: 17px; }
.atx-findings-empty span { font-size: 14px; opacity: 0.85; }

/* -------------------------------------------- show-all / expander pill */

.atx-show-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 24px;
  background: var(--atx-white);
  border: 1px solid var(--atx-border);
  border-radius: 60px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--atx-link);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.atx-show-all:hover {
  border-color: var(--atx-link);
  box-shadow: 0 2px 10px rgba(13, 18, 64, 0.08);
}
.atx-show-all svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.atx-show-all.is-open svg { transform: rotate(180deg); }

/* collapsed overflow inside a warnings / notes group */
.atx-findings-rest[hidden] { display: none; }
.atx-findings-rest .atx-finding:first-child { border-top: 1px solid var(--atx-border); }
.atx-findings-more-btn { margin-top: 16px; }

/* ------------------------------------------------------- unified file view */

.atx-file {
  margin-top: 4px;
  background: var(--atx-navy);
  border-radius: 12px;
  overflow: hidden;
}
.atx-file-scroll {
  max-height: 520px;
  overflow: auto;
  padding: 12px 0;
}

.atx-file-line {
  display: flex;
  align-items: stretch;
  font-family: var(--atx-mono);
  font-size: 13px;
  line-height: 1.85;
  white-space: pre;
}
.atx-file-gutter {
  flex: none;
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.atx-file-num {
  flex: none;
  width: 48px;
  padding-right: 16px;
  text-align: right;
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}
.atx-file-text { color: #C8CDE8; padding-right: 24px; }

/* severity-tinted lines (reused palette from the former raw view) */
.atx-file-line--error   { background: rgba(219, 68, 55, 0.18);  box-shadow: inset 3px 0 0 var(--atx-error); }
.atx-file-line--warning { background: rgba(222, 188, 67, 0.14); box-shadow: inset 3px 0 0 var(--atx-yellow-raw); }
.atx-file-line--info    { background: rgba(124, 134, 173, 0.16); box-shadow: inset 3px 0 0 var(--atx-info); }
.atx-file-line--error .atx-file-text   { color: #FFD9D5; }
.atx-file-line--warning .atx-file-text { color: #F4E7B8; }

/* gutter / message severity dots — same colours as the findings-list dots */
.atx-file-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.atx-file-dot--error   { background: var(--atx-error); }
.atx-file-dot--warning { background: var(--atx-yellow-raw); }
.atx-file-dot--info    { background: var(--atx-info); }

/* inline finding message shown beneath a highlighted line */
.atx-file-msg {
  display: flex;
  align-items: flex-start;
  position: sticky;
  left: 0;
  /* left padding aligns the message with the code text (gutter 26px + line no. 48px) */
  padding: 5px 24px 8px 74px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: normal;
}
.atx-file-msg--error   { background: rgba(219, 68, 55, 0.14);  box-shadow: inset 3px 0 0 var(--atx-error); }
.atx-file-msg--warning { background: rgba(222, 188, 67, 0.11); box-shadow: inset 3px 0 0 var(--atx-yellow-raw); }
.atx-file-msg--info    { background: rgba(124, 134, 173, 0.12); box-shadow: inset 3px 0 0 var(--atx-info); }
.atx-file-msg-text { color: rgba(255, 255, 255, 0.78); }
.atx-file-msg--error .atx-file-msg-text   { color: #FFD9D5; }
.atx-file-msg--warning .atx-file-msg-text { color: #F4E7B8; }
.atx-file-msg-code {
  margin-left: 8px;
  font-family: var(--atx-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

@keyframes atx-flash {
  0%, 60% { filter: brightness(1.9); }
  100% { filter: brightness(1); }
}
.atx-file-line--flash { animation: atx-flash 1.4s ease; }

/* -------------------------------------------------------------- sidebar */

.atx-side { display: flex; flex-direction: column; gap: 26px; }

.atx-side-card {
  background: var(--atx-white);
  border-radius: var(--atx-radius);
  box-shadow: var(--atx-shadow);
  padding: 30px 28px;
}
.atx-side-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}
.atx-side-card p {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4A5070;
}
.atx-side-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--atx-red);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.atx-side-link:hover { text-decoration: underline; }
.atx-side-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--atx-red);
}
.atx-side-icon svg { width: 100%; height: 100%; }

.atx-btn {
  display: inline-block;
  padding: 13px 30px;
  border: 0;
  border-radius: 60px;
  background: var(--atx-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.atx-btn:hover {
  background: var(--atx-red-dark);
  box-shadow: 0 6px 18px rgba(221, 66, 66, 0.35);
}
.atx-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* navy lead-gen panel */

.atx-lead {
  background: var(--atx-navy);
  border-radius: var(--atx-radius);
  padding: 32px 28px;
  color: #fff;
}
.atx-lead h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}
.atx-lead > p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #B9BFDF;
}
.atx-lead input {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--atx-text);
}
.atx-lead input::placeholder { color: #9BA0B8; }
.atx-lead input:focus {
  outline: 2px solid var(--atx-red);
  outline-offset: 1px;
}
.atx-lead .atx-btn { width: 100%; margin-top: 6px; }
.atx-lead-note {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #8E95BE;
}

/* ---------------------------------------------------------------- states */

/* loading skeleton */
@keyframes atx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.atx-skel {
  border-radius: 8px;
  background: #E4E8F0;
  animation: atx-pulse 1.5s ease-in-out infinite;
}
.atx-skel--title { height: 44px; width: 46%; }
.atx-skel--pill  { height: 30px; width: 120px; margin-top: 18px; border-radius: 6px; }
.atx-skel--stat  { height: 64px; flex: 1; }
.atx-skel--row   { height: 20px; margin: 20px 0; }
.atx-skel--row:nth-child(2) { width: 88%; }
.atx-skel--row:nth-child(3) { width: 72%; }
.atx-skel-stats { display: flex; gap: 24px; }
.atx-loading-note {
  margin: 26px 0 0;
  font-size: 14px;
  color: var(--atx-muted);
}

/* error / not-found panels */
.atx-state {
  text-align: center;
  padding: 64px 48px;
}
.atx-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.atx-state-icon svg { width: 30px; height: 30px; }
.atx-state-icon--red { background: var(--atx-error-bg); color: var(--atx-error); }
.atx-state-icon--grey { background: var(--atx-info-bg); color: #5A6080; }
.atx-state h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.atx-state p {
  max-width: 460px;
  margin: 0 auto 26px;
  font-size: 16px;
  line-height: 1.6;
  color: #4A5070;
}
.atx-state code {
  font-family: var(--atx-mono);
  font-size: 14px;
  background: var(--atx-info-bg);
  border-radius: 6px;
  padding: 2px 8px;
  word-break: break-all;
}
.atx-state .atx-btn { margin-top: 4px; }
.atx-state-secondary {
  display: block;
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--atx-link);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .atx-layout { grid-template-columns: 1fr; }
  .atx-side { flex-direction: row; flex-wrap: wrap; }
  .atx-side > * { flex: 1 1 300px; }
}

@media (max-width: 640px) {
  .atx-section { padding: 26px 20px; }
  .atx-domain { font-size: 28px; }
  .atx-head { flex-direction: column; }
  .atx-copy { padding: 0; }
  .atx-stats { flex-wrap: wrap; row-gap: 20px; }
  .atx-stat { flex: 1 1 40%; padding: 0 14px; }
  .atx-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .atx-stat-num { font-size: 30px; }
  .atx-h2 { font-size: 22px; }
  .atx-finding { gap: 12px; }
  .atx-line-chip { min-width: 60px; padding: 4px 8px; }
  .atx-state { padding: 44px 22px; }
  .atx-file-gutter { width: 22px; }
  .atx-file-num { width: 38px; padding-right: 12px; }
  .atx-file-msg { padding-left: 60px; } /* gutter 22px + line no. 38px */
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .atx *, .atx *::before, .atx *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* visible keyboard focus */
.atx :focus-visible {
  outline: 2px solid var(--atx-link);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Site-integration overrides (applied after the widget block above).
   The prototype's lead card held a <form>; on the site it is a single
   full-width link to /contact/, which needs its label centred.
   -------------------------------------------------------------------------- */
.atx-lead .atx-btn { text-align: center; }
