/* Hreflang generator. Tool under a short heading; explanation below. */

.hf-top { padding: 0.35rem 0 0.75rem; }
.hf-top h1 { margin-bottom: 0.35rem; max-width: 18ch; }
.hf-dek {
  max-width: 42rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.45;
}
.hf-band { padding-top: 0; }
.hf-shell { padding: clamp(0.85rem, 2vw, 1.25rem); }
.hf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: 1rem 1.15rem;
  align-items: start;
}
.hf-note, .hf-hint { margin: 0 0 0.75rem; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.45; }
.hf-row {
  margin: 0 0 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.hf-row-top, .hf-block-top, .hf-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.hf-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 0.4rem; }
.hf-row-label { margin: 0; color: var(--white); font: 700 0.95rem/1.2 var(--font-display); }
.hf-remove, .hf-csv summary {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font: 700 0.78rem/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hf-remove:disabled { opacity: 0.35; }
.hf-check {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  color: var(--white);
}
.hf-check input { accent-color: var(--orange); width: 1.1rem; height: 1.1rem; }
.hf-combo { position: relative; }
.hf-menu {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% - 1.4rem);
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: #1c1c1c;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  max-height: 14rem;
  overflow: auto;
}
.hf-menu li {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--white);
}
.hf-menu li:hover, .hf-menu li:focus { background: rgba(255, 100, 45, 0.16); }
.hf-summary {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(52, 168, 83, 0.1);
  border: 1px solid rgba(52, 168, 83, 0.35);
}
.hf-summary:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.hf-kicker {
  margin: 0 0 0.25rem;
  color: var(--green);
  font: 700 0.72rem/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hf-plain { margin: 0; color: var(--white); line-height: 1.45; }
.hf-issues { margin: 0.75rem 0; padding-left: 1.1rem; color: var(--text-secondary); }
.hf-issues li { margin: 0.35rem 0; }
.hf-issues .is-error { color: var(--white); }
.hf-issues strong { color: var(--orange); }
.hf-pass { margin: 0.75rem 0; color: var(--text-secondary); }
.hf-outputs { display: grid; gap: 0.75rem; }
.hf-block {
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: #0c0c0c;
}
.hf-block-title {
  margin: 0;
  color: var(--white);
  font: 700 0.95rem/1.2 var(--font-display);
}
.hf-code {
  max-height: 16rem;
  margin: 0.65rem 0 0;
  padding: 0.75rem;
  overflow: auto;
  border-radius: 10px;
  background: #070707;
  color: #f4f4f4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre;
}
.hf-code:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.hf-csv { margin-top: 0.8rem; }
.hf-csv textarea { width: 100%; margin-bottom: 0.5rem; }
.hf-below { max-width: 46rem; }
.hf-below a { color: var(--white); border-bottom: 1px solid var(--orange); }

@media (max-width: 900px) {
  .hf-layout { grid-template-columns: 1fr; }
  .hf-code { white-space: pre-wrap; overflow-wrap: anywhere; }
}
