.fl-tools {
  --fl-ink: #332a2b;
  --fl-muted: #605557;
  --fl-rose: #883748;
  --fl-rose-dark: #6e2938;
  --fl-paper: #fff4f3;
  --fl-line: #e7d7d9;
  --fl-leaf: #416251;
  --fl-leaf-paper: #f0f6f2;
  color: var(--fl-ink);
}

.fl-tools-page .navbar-brand {
  max-width: calc(100% - 4.5rem);
}

.fl-tools-page .navbar-brand img {
  max-width: 100%;
}

.fl-tools .fl-wrap {
  max-width: 1160px;
  padding-bottom: 2.75rem;
}

.fl-tools h1,
.fl-tools h2 {
  font-family: "PT Serif", Georgia, serif;
}

.fl-tools a:not(.btn) {
  color: var(--fl-rose);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.fl-tools a:not(.btn):hover {
  color: var(--fl-rose-dark);
}

.fl-tools :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--fl-rose);
  outline-offset: 2px;
}

.fl-tools .fl-primary {
  background: var(--fl-rose);
  border-color: var(--fl-rose);
  color: #fff;
}

.fl-tools .fl-primary:hover,
.fl-tools .fl-primary:focus-visible,
.fl-tools .fl-primary:active {
  background: var(--fl-rose-dark);
  border-color: var(--fl-rose-dark);
  color: #fff;
}

.fl-tools .fl-outline {
  background: #fff;
  border-color: var(--fl-line);
  color: var(--fl-rose);
}

.fl-tools .fl-outline:hover,
.fl-tools .fl-outline:focus-visible {
  background: var(--fl-paper);
  border-color: var(--fl-rose);
  color: var(--fl-rose-dark);
}

.fl-tools .fl-text-button {
  color: var(--fl-rose);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.fl-tools .btn {
  min-height: 42px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
}

.fl-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 1.15rem 0;
  color: var(--fl-muted);
  font-size: 0.9rem;
}

.fl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  border: 1px solid var(--fl-line);
  border-radius: 0.8rem;
  background: var(--fl-paper);
  overflow: hidden;
  margin: 0 0 1.65rem;
}

.fl-hero--tool {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.53fr);
}

.fl-hero-copy {
  align-self: center;
  padding: clamp(1.3rem, 4vw, 3rem);
}

.fl-hero--tool .fl-hero-copy {
  padding-block: clamp(1.15rem, 3vw, 2rem);
}

.fl-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.fl-hero p,
.fl-tool-card p,
.fl-reference p {
  color: var(--fl-muted);
  line-height: 1.65;
  margin: 0;
}

.fl-hero p {
  font-size: 1.06rem;
  max-width: 47ch;
}

.fl-hero img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 196px;
  max-height: 285px;
  object-fit: cover;
}

@media (min-width: 576px) {
  .fl-hero--tool {
    min-height: 210px;
  }

  .fl-hero--tool img {
    height: 0;
    min-height: 100%;
    max-height: none;
  }
}
.fl-hub-grid,
.fl-workbench {
  display: grid;
  gap: 1.4rem;
}

.fl-hub-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fl-tool-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--fl-line);
  border-radius: 0.8rem;
  background: #fff;
}

.fl-tool-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.2;
  object-fit: cover;
}

.fl-tool-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.3rem 1.45rem;
}

.fl-tool-card h2,
.fl-form h2,
.fl-result h2,
.fl-reference h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin: 0 0 0.7rem;
}

.fl-tools .fl-tool-card h2 a {
  color: var(--fl-ink);
  text-decoration: none;
}

.fl-tools .fl-tool-card h2 a:hover {
  color: var(--fl-rose);
  text-decoration: underline;
}

.fl-tool-card p {
  flex: 1;
  margin-bottom: 1rem;
}

.fl-tool-card--stems .fl-primary {
  background: var(--fl-leaf);
  border-color: var(--fl-leaf);
}

.fl-tool-card--stems .fl-primary:hover,
.fl-tool-card--stems .fl-primary:focus-visible {
  background: #314c3e;
  border-color: #314c3e;
}

.fl-workbench {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  align-items: start;
}

.fl-form,
.fl-result {
  min-width: 0;
  padding: clamp(1rem, 2.6vw, 1.65rem);
  border: 1px solid var(--fl-line);
  border-radius: 0.8rem;
  background: #fff;
}

.fl-result {
  background: var(--fl-paper);
}

.fl-stem-tool .fl-result {
  background: var(--fl-leaf-paper);
  border-color: #d7e6dc;
}

.fl-form h2,
.fl-result h2 {
  margin-bottom: 1.1rem;
}

.fl-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fl-field {
  display: grid;
  gap: 0.3rem;
  align-content: start;
  min-width: 0;
  font-weight: 700;
}

.fl-field span,
.fl-field small,
.fl-field-note {
  color: var(--fl-muted);
  font-weight: 400;
}

.fl-field small {
  line-height: 1.4;
}

.fl-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border-color: #cdbfc1;
}

.fl-field textarea {
  resize: vertical;
}

.fl-field :is(input, select, textarea):focus {
  border-color: var(--fl-rose);
  box-shadow: none;
}

.fl-wide {
  grid-column: 1 / -1;
}

.fl-form > button[type="submit"] {
  margin-top: 1.25rem;
}

.fl-result-prompt,
.fl-result-note,
.fl-notice,
.fl-feedback {
  color: var(--fl-muted);
}

.fl-result-prompt,
.fl-feedback {
  margin: 0;
}

.fl-feedback:not(:empty) {
  margin-top: 0.5rem;
}

.fl-result-note {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0.85rem 0;
}

.fl-copy-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.fl-brief {
  margin-bottom: 0.85rem;
  min-height: 11rem;
  resize: vertical;
}

.fl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.fl-field-note {
  margin: 1rem 0 0.75rem;
  font-size: 0.92rem;
}

.fl-ingredient {
  min-width: 0;
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--fl-line);
  border-radius: 0.55rem;
}

.fl-ingredient legend {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.fl-ingredient-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.fl-ingredient .fl-remove {
  min-height: 36px;
  margin-top: 0.65rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
}

.fl-recipe-context {
  color: var(--fl-muted);
  margin-bottom: 0.65rem;
}

.fl-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid #ccdcd0;
  margin-bottom: 0.7rem;
}

.fl-stats > div {
  padding: 0.65rem 0.45rem;
}

.fl-stats > div + div {
  border-left: 1px solid #ccdcd0;
}

.fl-stats dt {
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--fl-muted);
}

.fl-stats dd {
  margin: 0.25rem 0 0;
  font-weight: 700;
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}

.fl-result-table {
  width: 100%;
  table-layout: fixed;
  font-size: 0.92rem;
  line-height: 1.35;
}

.fl-result-table th,
.fl-result-table td {
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid #ccdcd0;
  overflow-wrap: anywhere;
}

.fl-result-table thead th:first-child {
  width: 42%;
}

.fl-result-table td,
.fl-result-table thead th:not(:first-child) {
  text-align: right;
}

.fl-result-table small {
  display: block;
  color: var(--fl-muted);
}

.fl-reference {
  max-width: 76ch;
  margin-top: 2.1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--fl-line);
}

.fl-reference p + p {
  margin-top: 0.65rem;
}

.fl-reference blockquote {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--fl-paper);
  border-left: 3px solid var(--fl-rose);
}

.fl-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  margin-top: 1.4rem;
}

.fl-print-only,
.fl-tools [hidden] {
  display: none !important;
}

.fl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .fl-workbench {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .fl-hero,
  .fl-hub-grid {
    grid-template-columns: 1fr;
  }

  .fl-hero img {
    height: clamp(130px, 35vw, 190px);
    min-height: 0;
  }

  .fl-hero--tool img {
    height: clamp(105px, 30vw, 150px);
  }

  .fl-field :is(input, select, textarea) {
    font-size: 1rem;
  }

  .fl-ingredient-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fl-ingredient-fields .fl-field:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 359.98px) {
  .fl-fields {
    grid-template-columns: 1fr;
  }
}

@media print {
  body.fl-tool-page > :not(main),
  .fl-tool-page :is(.fl-crumbs, .fl-hero, .fl-form, .fl-reference, .fl-related, .fl-actions, .fl-screen-only, .fl-copy-label, .fl-brief, .fl-feedback) {
    display: none !important;
  }

  .fl-tool-page :is(.fl-wrap, .fl-workbench, .fl-result) {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    background: #fff;
  }

  .fl-tool-page .fl-print-only {
    display: block !important;
  }

  .fl-print-brief {
    color: #000;
    font: inherit;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}
