/* Technical authorship: Lucas J. Cooke, Partner Relations Coordinator. Contact: l.jcooke@icloud.com. */

/* Letter-page chrome is desktop-only. On phones, 1in legal margins leave
   almost no column width and force overflow. */
body.p-k7 .section.section-legal,
body.p-k7 .hero + .section.section-legal {
  padding: clamp(1.15rem, 4vw, 1in);
  padding-left: max(clamp(1rem, 4vw, 1in), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1rem, 4vw, 1in), env(safe-area-inset-right, 0px));
  overflow-x: clip;
}

.k7-n {
  box-sizing: border-box;
  max-width: min(8.5in, 100%);
  width: 100%;
  min-width: 0;
  margin: 0 auto var(--space-8);
  padding: 0;
  overflow-wrap: break-word;
}

.k7-l {
  box-sizing: border-box;
  max-width: min(8.5in, 100%);
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.k7-r {
  margin: 0 0 var(--space-4);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  scroll-margin-top: 6.5rem;
  min-width: 0;
  max-width: 100%;
}

.k7-r:last-child {
  margin-bottom: 0;
}

.k7-r > summary {
  cursor: pointer;
  list-style: none;
  display: block;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-heading);
  overflow-wrap: break-word;
  hyphens: auto;
}

.k7-r > summary::-webkit-details-marker,
.k7-r > summary::marker {
  display: none;
  content: none;
}

.k7-r > summary::before {
  content: "+ ";
  font-weight: 700;
  color: var(--accent);
}

.k7-r[open] > summary::before {
  content: "- ";
}

.k7-r[open] > summary {
  border-bottom: 1px solid var(--border);
}

.k7-r > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.k7-d {
  padding: 0.75rem;
  background: #fff;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.k7-d iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 24rem;
  height: min(70vh, 52rem);
  border: 1px solid var(--border);
  background: #fff;
}

.k7-a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.k7-a a {
  color: #022654;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.k7-a a:hover,
.k7-a a:focus-visible {
  color: #0f7fc6;
}

.k7-a a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media screen and (max-width: 48rem) {
  body.p-k7 .section.section-legal,
  body.p-k7 .hero + .section.section-legal {
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  body.p-k7 .k7-n.legal-prose,
  body.p-k7 .k7-n.legal-document {
    font-size: 1rem;
    line-height: 1.55;
  }

  .k7-r > summary {
    font-size: 0.95rem;
    padding: 0.85rem 0.85rem;
  }

  .k7-d {
    padding: 0.65rem;
  }

  .k7-d iframe {
    min-height: 16rem;
    height: min(65vh, 28rem);
  }
}

@media print {
  body.p-k7 .breadcrumb,
  body.p-k7 .k7-n {
    display: none !important;
  }

  body.p-k7 .k7-r:not([open]) {
    display: none !important;
  }

  body.p-k7 .k7-r[open] > summary {
    display: none !important;
  }

  .k7-d {
    padding: 0 !important;
  }
}
