.xh-feedback {
  --feedback-night: #102c3c;
  --feedback-ink: #142e3e;
  --feedback-muted: #4b626e;
  --feedback-blue: #176681;
  --feedback-rule: #cedcde;
  --feedback-paper: #f6f7f3;
  color: var(--feedback-ink);
  background: var(--feedback-paper);
}

.xh-feedback-width {
  width: min(1280px, calc(100% - 2 * clamp(1.15rem, 5.55vw, 5rem)));
  margin-inline: auto;
}

.xh-feedback h1,
.xh-feedback h2,
.xh-feedback h3 {
  margin: 0;
  line-height: 1.17;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.xh-feedback h2 { font-size: clamp(1.85rem, 3.3vw, 3.15rem); }
.xh-feedback p { margin: 0; line-height: 1.75; }

.xh-feedback :is(a, button, [role="tabpanel"]):focus-visible {
  outline: 2px solid var(--feedback-blue);
  outline-offset: 4px;
}

.xh-feedback [hidden] { display: none; }

.xh-feedback-hero {
  padding-block: clamp(1.9rem, 4.1vw, 4.25rem);
  background: var(--feedback-night);
  color: #fff;
}

.xh-feedback-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(1.5rem, 4.1vw, 4rem);
}

.xh-feedback .xh-feedback-hero__context {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .95rem;
  color: #a9d9e6;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.xh-feedback-hero__context::before {
  content: "";
  width: 1.65rem;
  height: 2px;
  background: currentColor;
}

.xh-feedback-hero h1 {
  font-size: clamp(2rem, 4.1vw, 4.15rem);
}

.xh-feedback .xh-feedback-hero__lead {
  max-width: 27em;
  margin-top: clamp(.85rem, 2vw, 1.3rem);
  color: #d6e5ea;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  text-wrap: balance;
}

.xh-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem clamp(1rem, 2.1vw, 1.8rem);
  margin-top: clamp(1.25rem, 2.7vw, 2.25rem);
}

.xh-feedback-primary,
.xh-feedback-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 46px;
  font-size: .94rem;
  font-weight: 700;
}

.xh-feedback-primary {
  justify-content: space-between;
  min-width: 9.2rem;
  padding: .6rem .9rem;
  color: var(--feedback-night);
  background: #bde7ef;
}

.xh-feedback-primary:hover { background: #e2f5f8; }

.xh-feedback-link {
  color: var(--feedback-blue);
  text-decoration: underline;
  text-underline-offset: .24em;
}

.xh-feedback-hero .xh-feedback-link { color: #f1f9fb; }
.xh-feedback-hero a:focus-visible { outline-color: #bde7ef; }

.xh-feedback-photo {
  position: relative;
  margin: 0;
  background: #dbe7e9;
}

.xh-feedback-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.62;
  object-fit: cover;
}

.xh-feedback-photo figcaption {
  position: absolute;
  inset: auto .75rem .75rem auto;
  max-width: calc(100% - 1.5rem);
  padding: .28rem .55rem;
  color: #fff;
  background: #102c3ce8;
  font-size: .75rem;
  line-height: 1.45;
}

.xh-feedback-examples,
.xh-feedback-agreement {
  padding-block: clamp(2.65rem, 5.1vw, 4.8rem);
}

.xh-feedback-examples { scroll-margin-top: 5rem; }

.xh-feedback-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .55rem 1.5rem;
  margin-bottom: clamp(1.2rem, 2.3vw, 2rem);
}

.xh-feedback-section-head p {
  color: var(--feedback-muted);
  font-size: 1rem;
}

.xh-feedback-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #e9eff0;
  border: 1px solid var(--feedback-rule);
}

.xh-feedback-tabs button {
  min-height: 54px;
  padding: .65rem .55rem;
  border: 0;
  border-right: 1px solid var(--feedback-rule);
  color: var(--feedback-ink);
  background: transparent;
  font-weight: 700;
}

.xh-feedback-tabs button:last-child { border-right: 0; }
.xh-feedback-tabs button:hover { background: #dce9eb; }
.xh-feedback-tabs button[aria-selected="true"] {
  color: #fff;
  background: #1c536a;
  box-shadow: inset 0 -3px #8dd1df;
}

.xh-feedback-tabs button:focus-visible { outline-offset: -6px; }
.xh-feedback-tabs button[aria-selected="true"]:focus-visible { outline-color: #fff; }

.xh-feedback-example {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas: "photo content";
  margin-top: .75rem;
  border: 1px solid var(--feedback-rule);
  background: #fff;
}

.xh-feedback-example .xh-feedback-photo { grid-area: photo; }
.xh-feedback-example .xh-feedback-photo img { height: 100%; }
.xh-feedback-example__body {
  grid-area: content;
  align-self: center;
  padding: clamp(1rem, 4.2vw, 4rem);
}

.xh-feedback-example h3 { font-size: clamp(1.45rem, 2.6vw, 2.45rem); }
.xh-feedback-example p {
  max-width: 28em;
  margin-top: .7rem;
  color: var(--feedback-muted);
}

.xh-feedback-example dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .2rem .85rem;
  margin: clamp(.9rem, 2.3vw, 1.65rem) 0 0;
  padding-top: .85rem;
  border-top: 1px solid var(--feedback-rule);
  font-size: .93rem;
  line-height: 1.55;
}

.xh-feedback-example dt { color: var(--feedback-blue); font-weight: 700; }
.xh-feedback dd { margin: 0; }

.xh-feedback-agreement {
  background: #e9f0f0;
  border-top: 1px solid var(--feedback-rule);
}

.xh-feedback-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(1.15rem, 2.4vw, 2rem) 0 .8rem;
  border-block: 1px solid #b9cecf;
}

.xh-feedback-checks > div {
  padding: 1.15rem clamp(.75rem, 2.4vw, 2rem) 1.3rem;
  border-right: 1px solid #b9cecf;
}

.xh-feedback-checks > div:first-child { padding-left: 0; }
.xh-feedback-checks > div:last-child { border-right: 0; }
.xh-feedback-checks dt { margin-bottom: .25rem; font-size: 1.14rem; font-weight: 700; }
.xh-feedback-checks dd { color: var(--feedback-muted); line-height: 1.7; }

@media (max-width: 720px) {
  .xh-feedback-hero__layout { grid-template-columns: 1fr; }
  .xh-feedback-hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .xh-feedback-example {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "content";
  }
  .xh-feedback-example .xh-feedback-photo img { height: auto; aspect-ratio: 1.82; }
  .xh-feedback-example__body { padding: 1.15rem; }
}

@media (max-width: 520px) {
  .xh-feedback-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xh-feedback-tabs button:nth-child(even) { border-right: 0; }
  .xh-feedback-tabs button:nth-child(-n + 2) { border-bottom: 1px solid var(--feedback-rule); }
  .xh-feedback-checks { grid-template-columns: 1fr; }
  .xh-feedback-checks > div {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid #b9cecf;
  }
  .xh-feedback-checks > div:last-child { border-bottom: 0; }
}
