/* indexnow.com layout. Colours, fonts and radius come from tokens.css. */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  scroll-margin-top: 5rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 1.5rem 0 0.75rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 500;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

code,
.url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header and footer */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
}

.brand-logo,
.brand-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--fg);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
}

.nav-list,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a,
.footer-links a {
  display: inline-block;
  padding: 0.6rem 0;
  min-height: 44px;
}

.nav-list a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 3px;
}

.operated-by {
  margin: 0 0 0 auto;
  color: var(--muted-fg);
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-fg);
}

.site-footer p {
  margin: 0 0 0.5rem;
  max-width: 70ch;
}

/* Buttons and form controls */

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
input,
select {
  min-height: 44px;
}

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

/* Content pages */

.prose {
  max-width: 70ch;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.prose .lead {
  font-size: 1.2rem;
}

.callout {
  border-left: 4px solid var(--primary);
  background: var(--card);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin: 0 0 1.5rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  text-align: center;
  line-height: 2rem;
  font-weight: 700;
}

.steps > li > h3 {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

/* Tool */

.tool {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0 2rem;
}

.field {
  margin: 0 0 1.25rem;
}

fieldset.field {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem 1rem;
  min-width: 0;
}

legend {
  padding: 0 0.5rem;
  font-weight: 700;
}

label {
  display: block;
  font-weight: 500;
  margin: 0.5rem 0 0.25rem;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="file"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: var(--radius);
}

input,
textarea,
select {
  border: 1px solid var(--input-border);
}

textarea {
  resize: vertical;
}

.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.input-row input {
  flex: 1 1 14rem;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-field input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  min-height: 0;
  margin-top: 0.5rem;
}

.checkbox-field label {
  margin: 0.25rem 0;
  min-height: 44px;
  font-weight: 400;
}

.hint {
  margin: 0.25rem 0 0;
  color: var(--muted-fg);
  font-size: 0.95rem;
}

.error {
  margin: 0.25rem 0 0;
  color: var(--danger);
  font-weight: 500;
}

.error:empty {
  display: none;
}

summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 500;
}

[role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

[role="tablist"][hidden],
[hidden] {
  display: none !important;
}

[role="tab"] {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

[role="tab"][aria-selected="true"] {
  border-bottom-color: var(--primary);
  font-weight: 700;
}

[role="tabpanel"] + [role="tabpanel"] {
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-secondary {
  background: transparent;
  color: var(--link);
}

.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.guided-help {
  display: none;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  border-left: 4px solid var(--primary);
  background: var(--bg);
}

.guided .guided-help {
  display: block;
}

.review-list {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.review-list li {
  overflow-wrap: anywhere;
}

.band,
.result-card {
  border-left: 4px solid var(--primary);
  background: var(--card);
  padding: 0.75rem 1rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 70ch;
}

.result-card {
  margin: 1rem 0;
}

/* The verification widget may be wider than a 320px viewport; it scrolls inside its own box. */
#turnstile {
  max-width: 100%;
  overflow-x: auto;
}
