/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10000;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--accent-light);
  border-radius: 0.4rem;
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* Legacy recipe reference/process tables rely on visible cell boundaries. */
.section-block table,
.recipe-card-section table {
  border-collapse: collapse;
  max-width: 100%;
}

.section-block table,
.section-block th,
.section-block td,
.recipe-card-section table,
.recipe-card-section th,
.recipe-card-section td {
  border: 1px solid var(--accent);
}

.section-block th,
.section-block td,
.recipe-card-section th,
.recipe-card-section td {
  padding: 0.12rem 0.3rem;
  vertical-align: middle;
}


/* SECURITY_UI_STYLE_UTILITIES */
.is-visible { display: block !important; }
.display-contents { display: contents; }
.mt-1rem { margin-top: 1rem; }
.mb-1rem { margin-bottom: 1rem; }
.mt-halfrem { margin-top: .5rem; }
.mt-04rem { margin-top: .4rem; }
.mt-125rem { margin-top: 1.25rem; }
.max-w-30rem { max-width: 30rem; }
.inline-form-spaced { display: inline-block; margin: .5rem .5rem 0 0; }
.clipboard-copy-input { position: fixed; opacity: 0; pointer-events: none; }
.preview-is-fading { opacity: 0 !important; }
