/* Identity reference pages only. Shared shell, intake and design profiles stay owner-controlled. */
.identity-guide {
  --identity-ink: #102235;
  --identity-muted: #43576a;
  --identity-line: #dbe4ec;
  color: var(--identity-ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.identity-guide :where(h1, h2, h3, p, li, a) {
  overflow-wrap: anywhere;
}

.identity-guide > .hero {
  grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.125rem, 4vw, 3.5rem);
  background: #fff;
  color: var(--identity-ink);
  border-bottom: 1px solid var(--identity-line);
}

.identity-guide h1 {
  max-width: 23ch;
  margin-bottom: 1.25rem;
  font: 700 clamp(2rem, 3.8vw, 3.25rem)/1.14 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

.identity-guide h2 {
  max-width: 34ch;
  margin-bottom: 1.125rem;
  font: 700 clamp(1.5rem, 2.4vw, 2.125rem)/1.24 Georgia, "Times New Roman", serif;
  letter-spacing: -.01em;
}

.identity-guide h3 {
  margin-bottom: .75rem;
  font: 700 1.25rem/1.35 Georgia, "Times New Roman", serif;
}

.identity-guide .hero-text {
  max-width: 58ch;
  color: var(--identity-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.identity-guide .eyebrow {
  color: #755213;
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .045em;
  margin-bottom: .75rem;
}

.identity-guide .actions {
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
}

.identity-guide .button {
  max-width: 100%;
  min-height: 3rem;
  padding: .75rem 1.125rem;
  border-radius: 6px;
  text-align: center;
  white-space: normal;
  font-size: 1rem;
  line-height: 1.45;
}

.identity-guide .button.primary {
  color: #102235;
  background: #d9a63a;
  border: 1px solid #b78113;
}

.identity-guide .button.secondary {
  color: #14304a;
  background: #fff;
  border: 1px solid #9cadba;
}

.identity-guide a:not(.button) {
  color: #14304a;
  text-decoration: underline;
  text-decoration-thickness: .075em;
  text-underline-offset: .19em;
}

.identity-guide .actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-size: 1rem;
}

.identity-guide .hero .actions .text-link,
.identity-guide .hero .actions .text-link:hover,
.identity-guide .hero .actions .text-link:focus-visible {
  color: #14304a;
}

.identity-guide a:hover {
  text-decoration-thickness: .15em;
}

.identity-guide .button:hover {
  border-color: #14304a;
  box-shadow: inset 0 0 0 1px #14304a;
}

.identity-guide :where(a, button, summary):focus-visible {
  outline: 3px solid #805000;
  outline-offset: 4px;
}

.identity-guide .trust-panel {
  padding: 1.5rem 0 1.5rem 1.5rem;
  border: 0;
  border-left: 3px solid #d9a63a;
  border-radius: 0;
  background: #f7fafc;
  box-shadow: none;
}

.identity-guide .trust-panel h2 {
  font-size: 1.375rem;
}

.identity-guide .trust-panel ul {
  padding: 0 1.25rem 0 1.125rem;
}

.identity-guide .trust-panel li {
  color: var(--identity-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  margin: .75rem 0;
}

.identity-guide__contents {
  padding: 1.5rem clamp(1.125rem, 4vw, 3.5rem);
  background: #f7fafc;
  border-bottom: 1px solid var(--identity-line);
}

.identity-guide__contents h2 {
  margin: 0 0 .75rem;
  font: 700 1rem/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.identity-guide__contents ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.identity-guide__contents a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .375rem 0;
  font-weight: 600;
  line-height: 1.45;
}

.identity-guide > .section {
  padding: clamp(2rem, 4.5vw, 3.5rem) clamp(1.125rem, 4vw, 3.5rem);
  background: #fff;
  border-bottom: 1px solid var(--identity-line);
}

.identity-guide > .section::before,
.identity-guide .section-header::after,
.identity-guide .contact-card::before {
  content: none;
}

.identity-guide > .split {
  grid-template-columns: minmax(0, 1.65fr) minmax(15rem, .85fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.identity-guide .section-header {
  max-width: 68ch;
  padding: 0;
  margin-bottom: 1.75rem;
}

.identity-guide .section :where(p, ul, ol) {
  max-width: 68ch;
  color: var(--identity-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
}

.identity-guide .section p {
  margin-bottom: 1.25rem;
}

.identity-guide .section li + li {
  margin-top: .5rem;
}

.identity-guide .section .eyebrow {
  color: #755213;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: .75rem;
}

.identity-guide .contact-card {
  padding: 1.25rem 0 0 1.25rem;
  background: transparent;
  border: 0;
  border-left: 2px solid #dbe4ec;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.identity-guide .contact-card h2 {
  font-size: 1.375rem;
  line-height: 1.3;
}

.identity-guide .contact-card > :last-child {
  margin-bottom: 0;
}

.identity-guide .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2.5rem;
}

.identity-guide .card-grid article,
.identity-guide .card-grid article.emphasized {
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 2px solid var(--identity-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.identity-guide .card-grid article > span {
  display: block;
  width: auto;
  margin-bottom: .5rem;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #755213;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.identity-guide .main-workflows .card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.identity-guide .main-workflows .card-grid article {
  border-top-color: #d9a63a;
}

.identity-guide .section[id] {
  scroll-margin-top: 7rem;
}

.identity-guide .section[tabindex="-1"]:focus {
  outline: 2px solid #805000;
  outline-offset: -3px;
}

@media (max-width: 62rem) {
  .identity-guide > .hero,
  .identity-guide > .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .identity-guide .trust-panel {
    max-width: 68ch;
  }

  .identity-guide__contents ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-guide .contact-card {
    max-width: 68ch;
  }
}

@media (max-width: 40rem) {
  .identity-guide .card-grid,
  .identity-guide .main-workflows .card-grid,
  .identity-guide__contents ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .identity-guide .actions {
    align-items: stretch;
  }

  .identity-guide .actions .button {
    width: 100%;
  }

  .identity-guide .actions .text-link {
    width: 100%;
    min-width: 0;
  }

  .identity-guide .trust-panel {
    padding-left: 1rem;
  }
}

@media print {
  .identity-guide > .hero,
  .identity-guide > .split,
  .identity-guide .card-grid,
  .identity-guide .main-workflows .card-grid {
    display: block;
  }

  .identity-guide__contents {
    display: none;
  }

  .identity-guide .contact-card,
  .identity-guide .trust-panel,
  .identity-guide .card-grid article {
    break-inside: avoid;
  }
}
