/*
  The approved `/your-claims` body layer, ported rule for rule from the reference build
  (`ndic-reference/css/public/your-claims-revamp.css:167-527`).

  WHAT THIS IS FOR. The approved page presents the filing guide as a collapsible disclosure with the
  claim form permanently visible beneath it. This build had a two-tab bar instead, with the form in a
  panel carrying `hidden` — so the form was unreachable without JavaScript, and a visitor who came to
  file a claim saw a wall of instructions and no form.

  ONLY THE `yx-*` RULES ARE HERE. The source file also carries the `.px-page .sc-*` form layer, and
  54 of those 58 rules are already byte-identical in `px-shared.css`; copying them would be the
  duplicate-that-drifts this project has been bitten by twice. The four it does not carry
  (`.sc-claim-other`, `.sc-required`, and two for `.sc-field--upload`) are not emitted by this build —
  three of them style the file-upload field, which does not exist here yet.

  THIS LAYER NEEDS `.px-page`. Every rule below reads `--px-*` custom properties, and those are
  declared on `.px-page` and nowhere else. `claim_forms_hub` therefore wraps its body in one, exactly
  as `policy_prose` does. See core-public-site-technical § "`.px-page` is a token scope".
*/

.yx-section {
  padding: clamp(28px, 4vw, 56px) 0;
}
.yx-section-head {
  max-width: 60ch;
  margin: 0 0 clamp(28px, 3.4vw, 44px);
}
.yx-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--px-ink);
  margin: 10px 0 0;
}
.yx-section-sub {
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.6;
  color: var(--px-muted);
  margin: 10px 0 0;
}
.yx-kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--px-brand-2);
}

/* Steps — numbered timeline */
.yx-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.yx-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  padding: 0 0 clamp(28px, 3.4vw, 44px);
}
.yx-step:last-child {
  padding-bottom: 0;
}
.yx-step-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.yx-step-num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--px-brand-soft);
  color: var(--px-brand);
  border: 1px solid rgba(44, 46, 129, 0.16);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.yx-step-rail::after {
  content: "";
  position: absolute;
  top: 52px;
  bottom: calc(-1 * clamp(28px, 3.4vw, 44px) - 8px);
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    var(--px-line) 0%,
    var(--px-line) 82%,
    transparent 100%
  );
}
.yx-step:last-child .yx-step-rail::after {
  display: none;
}
.yx-step-body {
  min-width: 0;
  padding-top: 6px;
}
.yx-step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--px-ink);
  margin: 0 0 10px;
}
.yx-step-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--px-text);
  margin: 0 0 12px;
}
.yx-subheading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--px-ink-2);
  margin: 18px 0 8px;
}
.yx-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.yx-list li {
  position: relative;
  padding-left: 20px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--px-text);
}
.yx-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--px-brand-2);
}
.yx-list li strong {
  color: var(--px-ink-2);
  font-weight: 600;
}
.yx-list li a {
  color: var(--px-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yx-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--px-radius-sm);
  border: 1px solid var(--px-line);
  background: var(--px-gray);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--px-text);
}
.yx-note-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--px-brand-2);
  margin-top: calc((1.6em - 18px) / 2);
}
.yx-address {
  margin: 10px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--px-brand-2);
  background: var(--px-gray);
  border-radius: 0 var(--px-radius-sm) var(--px-radius-sm) 0;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--px-text);
}

.yx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}
.yx-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--px-brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    background 0.28s var(--px-ease),
    transform 0.28s var(--px-ease);
}
.yx-cta:hover {
  background: var(--px-brand-2);
  color: #fff;
  transform: translateY(-1px);
}
.yx-cta--outline {
  background: #fff;
  color: var(--px-ink-2);
  border-color: var(--px-line);
}
.yx-cta--outline:hover {
  background: var(--px-gray);
  color: var(--px-ink);
}

.yx-disclosure {
  --yx-guide-bg: var(--px-gray);
  border: 1px solid var(--px-line);
  border-radius: var(--px-radius);
  background: var(--yx-guide-bg);
  margin: 0 0 clamp(20px, 2.6vw, 30px);
}
.yx-disclosure:not([open]) {
  position: sticky;
  top: calc(var(--px-nav) + var(--px-nav-gap));
  z-index: 30;
  box-shadow: 0 6px 20px rgba(15, 16, 40, 0.06);
}
.yx-disclosure[open] {
  background: #fff;
}
.yx-disclosure[open] > summary {
  position: sticky;
  top: calc(var(--px-nav) + var(--px-nav-gap));
  z-index: 31;
  background: var(--yx-guide-bg);
  border-radius: var(--px-radius) var(--px-radius) 0 0;
}
.yx-disclosure > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(14px, 1.8vw, 18px) clamp(16px, 2.2vw, 22px);
  font-family: var(--font-body);
  border-radius: var(--px-radius);
}
.yx-disclosure > summary::-webkit-details-marker {
  display: none;
}
.yx-disclosure > summary:hover .yx-summary-action {
  background: var(--px-brand);
  border-color: var(--px-brand);
  color: #fff;
}
.yx-disclosure > summary:focus-visible {
  outline: 2px solid var(--px-brand-2);
  outline-offset: -2px;
}
.yx-summary-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--px-line);
  color: var(--px-brand);
}
.yx-summary-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}
.yx-summary-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  letter-spacing: -0.02em;
  color: var(--px-ink);
}
.yx-summary-hint {
  font-weight: 400;
  color: var(--px-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.yx-summary-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--px-line);
  background: #fff;
  color: var(--px-brand);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    background 0.24s var(--px-ease),
    color 0.24s var(--px-ease),
    border-color 0.24s var(--px-ease);
}
.yx-disclosure[open] .yx-label-show,
.yx-disclosure:not([open]) .yx-label-hide {
  display: none;
}
.yx-summary-caret {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-bottom: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--px-ease);
}
.yx-disclosure[open] > summary .yx-summary-caret {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.yx-disclosure-body {
  padding: clamp(20px, 2.6vw, 30px) clamp(18px, 2.4vw, 24px)
    clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--px-line);
  background: #fff;
  border-radius: 0 0 var(--px-radius) var(--px-radius);
}
@media (max-width: 640px) {
  .yx-summary-action .yx-label-show,
  .yx-summary-action .yx-label-hide {
    display: none;
  }
  .yx-disclosure[open] .yx-label-show {
    display: none;
  }
  .yx-summary-action {
    padding: 10px;
  }
  .yx-summary-caret {
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .yx-summary-caret {
    transition: none;
  }
}

/* Form area */
.yx-form-section {
  padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px);
}

/*
  The six rules the first pass missed, and the one that mattered visibly.

  `.yx-form-section .yx-disclosure` caps the guide at the same 920px measure as the form beneath it
  (`--px-form-max`). Without it the "How to file" panel ran the full container width while the form
  below sat at 920px — the mismatch that made the page look wrong. It lives at line 539 of the
  reference sheet, past the line-527 boundary the first extraction stopped at, which is what happens
  when a port is taken by line range instead of by rule.

  The other five are the ones px-shared.css does not carry: the anchor scroll offsets, the
  conditional "other" textarea's spacing, the required asterisk's colour, and the two that give the
  passport upload its column shape.
*/
.px-page #how-to-file,
.px-page #submit-a-claim {
  scroll-margin-top: calc(var(--px-nav) + 16px);
}
.yx-form-section .yx-disclosure {
  max-width: var(--px-form-max);
  margin-inline: auto;
}
.px-page .sc-claim-other {
  margin-top: 8px;
}
.px-page .sc-required {
  margin-left: 3px;
  font-weight: 700;
  color: #d21e1e;
}
.px-page .sc-field--upload {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.px-page .sc-field--upload .sc-upload {
  min-height: 180px;
}
