.ptn-guide {
  margin: 2.25rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 2px solid var(--heading, #26222f);
  border-radius: 18px;
  color: var(--text, #4c455f);
  background: var(--surface, #fff);
  box-shadow: 8px 8px 0 var(--yellow, #f8da66);
}

.ptn-guide__eyebrow {
  margin-bottom: .4rem;
  color: var(--purple-dark, #6d4cc7);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.article-body .ptn-guide__title,
.ptn-guide__title {
  margin: 0 0 .75rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.ptn-guide__formula {
  margin: .25rem 0 1.25rem;
  padding: .6rem .8rem;
  border-radius: 8px;
  color: var(--heading, #26222f);
  background: var(--purple-soft, #eee9ff);
}

.ptn-guide__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.ptn-guide__field {
  min-width: 0;
  margin: 0;
}

.ptn-guide__field label {
  display: block;
  margin-bottom: .35rem;
  color: var(--heading, #26222f);
  font-weight: 700;
}

.ptn-guide__input-wrap {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.ptn-guide input,
.ptn-guide select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: .65rem .75rem;
  border: 1px solid var(--muted, #746e80);
  border-radius: 8px;
  color: var(--heading, #26222f);
  background: var(--surface, #fff);
  font: inherit;
}

.ptn-guide__input-wrap input {
  border-radius: 8px 0 0 8px;
}

.ptn-guide__unit {
  display: inline-flex;
  min-width: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  border: 1px solid var(--muted, #746e80);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: var(--heading, #26222f);
  background: var(--soft, #f7f7f8);
  font-weight: 700;
}

.ptn-guide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}

.ptn-guide__actions button {
  min-height: 48px;
  padding: .7rem 1rem;
  border: 2px solid var(--heading, #26222f);
  border-radius: 8px;
  color: #fff;
  background: var(--purple-dark, #6d4cc7);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.ptn-guide__actions .ptn-guide__reset {
  color: var(--heading, #26222f);
  background: var(--surface, #fff);
}

.ptn-guide__actions button:hover {
  transform: translateY(-1px);
}

.ptn-guide__result {
  margin-top: 1.25rem;
  padding: 1rem;
  border-left: 5px solid var(--purple-dark, #6d4cc7);
  color: var(--heading, #26222f);
  background: var(--purple-soft, #eee9ff);
}

.ptn-guide__result[hidden] {
  display: none;
}

.ptn-guide__result strong {
  display: block;
  margin-bottom: .35rem;
}

.ptn-guide__result p,
.ptn-guide__result ul {
  margin: .4rem 0 0;
}

.ptn-guide__result--error {
  border-left-color: #9c1c1c;
  background: #fff0f0;
}

.ptn-guide__privacy,
.ptn-guide__note,
.ptn-guide__noscript {
  margin: 1rem 0 0;
  font-size: .93rem;
}

.ptn-guide__privacy {
  color: var(--heading, #26222f);
}

@media (max-width: 620px) {
  .ptn-guide {
    padding: 1.1rem;
    box-shadow: 5px 5px 0 var(--yellow, #f8da66);
  }

  .ptn-guide__fields {
    grid-template-columns: 1fr;
  }

  .ptn-guide__actions button {
    width: 100%;
  }
}

@media print {
  .ptn-guide {
    box-shadow: none;
  }

  .ptn-guide__actions {
    display: none;
  }
}
