.profiles-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  overflow: hidden;
  background: var(--teal-900);
}

.profiles-hero-image,
.profiles-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.profiles-hero-image {
  object-fit: cover;
  object-position: center 42%;
}

.profiles-hero-shade {
  background: linear-gradient(90deg, rgba(8, 42, 48, 0.95) 0%, rgba(8, 42, 48, 0.82) 54%, rgba(8, 42, 48, 0.44) 100%);
}

.profiles-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.65fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: end;
  padding: 88px 0 72px;
  color: var(--white);
}

.profiles-hero h1 {
  max-width: 790px;
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.3rem;
  line-height: 1.03;
}

.profiles-hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

.profiles-hero-copy .button {
  margin-top: 28px;
}

.profile-featured-brief {
  border-top: 5px solid #a87829;
  background: #f3ead8;
  padding: clamp(54px, 7vw, 84px) 0;
}

.profile-featured-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 8vw, 106px);
  align-items: center;
}

.profile-featured-brief .eyebrow {
  color: var(--teal-700);
}

.profile-featured-brief h2 {
  margin: 7px 0 0;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.03;
}

.profile-featured-brief-grid > div:last-child > p {
  margin-top: 0;
  color: var(--charcoal);
  font-size: 1.04rem;
}

.profile-featured-brief .button {
  margin-top: 14px;
}

.profile-explorer {
  padding: clamp(72px, 9vw, 112px) 0;
  background: var(--paper);
}

.profile-library-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 86px);
  align-items: end;
  margin-bottom: 38px;
}

.profile-library-heading .eyebrow,
.profile-methodology .eyebrow,
.profile-detail .eyebrow {
  color: var(--teal-700);
}

.profile-library-heading > p {
  max-width: 660px;
  margin: 0;
  color: var(--charcoal);
  font-size: 1.06rem;
}

.profile-app {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  align-items: start;
  border-top: 2px solid var(--teal-800);
  background: var(--white);
}

.profile-search-panel {
  position: sticky;
  top: 87px;
  max-height: calc(100vh - 87px);
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.profile-search-controls {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 28px;
}

.profile-search-controls label {
  margin-top: 8px;
  color: var(--teal-900);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-search-controls input,
.profile-search-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #9daaa4;
  border-radius: 4px;
  background: var(--white);
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

.profile-search-controls input:focus,
.profile-search-controls select:focus {
  outline: 3px solid rgba(31, 89, 96, 0.24);
  outline-offset: 2px;
}

.profile-search-controls p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-result-heading {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 18px 10px 28px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.profile-result-heading button {
  border: 0;
  background: transparent;
  padding: 7px 9px;
  color: var(--teal-700);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.profile-results {
  max-height: calc(100vh - 355px);
  overflow-y: auto;
}

.profile-result {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 16px 20px 16px 28px;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.profile-result:hover,
.profile-result[aria-selected="true"] {
  background: var(--sage-soft);
}

.profile-result strong,
.profile-result small {
  display: block;
}

.profile-result strong {
  color: var(--teal-900);
  font-size: 0.94rem;
}

.profile-result small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.profile-result > span:last-child {
  align-self: center;
  color: var(--teal-700);
  font-weight: 800;
}

.profile-empty-results {
  padding: 24px 28px;
  color: var(--muted);
}

.profile-detail {
  min-width: 0;
  padding: clamp(30px, 5vw, 62px);
}

.profile-loading {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--teal-900);
}

.profile-loading p {
  color: var(--muted);
}

.profile-title-row {
  display: flex;
  gap: 24px;
  align-items: start;
  justify-content: space-between;
}

.profile-title-row h2 {
  max-width: 760px;
  margin: 0;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.02;
}

.profile-vintage {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.profile-actions button,
.profile-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--teal-800);
  border-radius: 4px;
  background: var(--white);
  padding: 9px 12px;
  color: var(--teal-900);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.profile-actions a:first-child,
.profile-actions button:first-child {
  background: var(--teal-900);
  color: var(--white);
}

.profile-action-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.profile-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 36px 0 48px;
  border: 1px solid var(--line);
  background: var(--line);
}

.profile-metric {
  min-height: 150px;
  background: var(--white);
  padding: 22px;
}

.profile-metric span,
.mini-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-metric strong {
  display: block;
  margin-top: 14px;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.profile-metric small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.74rem;
}

.profile-section {
  border-top: 1px solid var(--line);
  padding: 42px 0;
}

.profile-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: 34px;
  margin-bottom: 28px;
}

.profile-section-heading h3 {
  margin: 0;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.06;
}

.profile-section-heading p {
  margin: 0;
  color: var(--muted);
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 2px solid var(--teal-800);
  background: var(--line);
}

.signal-list article {
  min-height: 230px;
  background: var(--paper);
  padding: 26px;
}

.signal-list span {
  color: var(--teal-700);
  font-weight: 800;
}

.signal-list h4 {
  margin: 28px 0 12px;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.signal-list p {
  margin: 0;
  color: var(--charcoal);
  font-size: 0.92rem;
}

.profile-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.profile-subsection h4 {
  margin: 0 0 18px;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.profile-subsection > p {
  color: var(--muted);
}

.bar-list {
  display: grid;
  gap: 18px;
}

.bar-label {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  color: var(--charcoal);
  font-size: 0.85rem;
}

.bar-label strong {
  color: var(--teal-900);
  white-space: nowrap;
}

.bar-track {
  height: 8px;
  margin-top: 7px;
  overflow: hidden;
  background: #e1e5e1;
}

.bar-fill {
  height: 100%;
  background: var(--teal-700);
}

.business-summary,
.mini-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.mini-metric {
  border-left: 3px solid var(--sage);
  background: var(--sage-soft);
  padding: 18px;
}

.mini-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.question-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: profile-question;
}

.question-list li {
  counter-increment: profile-question;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.question-list li::before {
  content: "0" counter(profile-question);
  color: var(--teal-700);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
}

.profile-caution {
  border-left: 4px solid var(--sage);
  background: var(--sage-soft);
  padding: 20px 22px;
  color: var(--charcoal);
}

.profile-caution strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-900);
}

.profile-methodology {
  padding: clamp(72px, 9vw, 112px) 0;
  background: var(--charcoal);
  color: var(--white);
}

.methodology-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(42px, 8vw, 100px);
}

.profile-methodology h2,
.profile-methodology .eyebrow {
  color: var(--white);
}

.methodology-grid > div:last-child > p {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.source-notes {
  margin-top: 30px;
}

.source-notes ul {
  margin: 0;
  padding-left: 20px;
}

.source-notes li {
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.76);
}

.source-notes a {
  color: var(--white);
}

.methodology-grid a {
  color: var(--white);
  font-weight: 700;
}

.profile-static-hero {
  min-height: 470px;
}

.profile-static-hero .profiles-hero-content {
  align-items: end;
}

.profile-static-hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
}

.profile-answer-band {
  border-top: 5px solid #a87829;
  background: #f3ead8;
  padding: clamp(54px, 7vw, 88px) 0;
}

.profile-answer-grid,
.profile-source-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(42px, 8vw, 104px);
  align-items: start;
}

.profile-answer-band .eyebrow,
.profile-source-band .eyebrow,
.profile-faq-band .eyebrow {
  color: var(--teal-700);
}

.profile-answer-band h2,
.profile-source-band h2,
.profile-faq-band h2,
.profile-related-band h2,
.profile-section-heading h2 {
  margin: 7px 0 0;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.06;
}

.profile-answer-band h2,
.profile-source-band h2,
.profile-faq-band h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.7rem);
}

.profile-answer-grid > div:last-child > p:first-child {
  margin-top: 0;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.45;
}

.profile-answer-note {
  max-width: 700px;
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-static-overview {
  background: var(--paper);
  padding: clamp(68px, 8vw, 104px) 0;
}

.profile-static-overview .profile-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.profile-static-overview .profile-section-heading {
  align-items: start;
}

.profile-section-heading h2 {
  font-size: clamp(1.85rem, 3vw, 2.8rem);
}

.profile-static-overview .signal-list h3 {
  margin: 28px 0 12px;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.12;
}

.profile-static-overview .profile-subsection h3 {
  margin: 0 0 18px;
  color: var(--teal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.profile-caution p {
  margin: 0;
}

.profile-source-band {
  background: var(--charcoal);
  padding: clamp(70px, 8vw, 106px) 0;
  color: var(--white);
}

.profile-source-band h2,
.profile-source-band .eyebrow {
  color: var(--white);
}

.profile-source-grid > div:last-child > p:first-child {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
}

.profile-source-band a {
  color: var(--white);
  font-weight: 700;
}

.profile-faq-band {
  background: var(--white);
  padding: clamp(72px, 9vw, 112px) 0;
}

.profile-related-band {
  background: var(--sage-soft);
  padding: clamp(68px, 8vw, 100px) 0;
}

.profile-related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0;
  border-top: 2px solid var(--teal-800);
  background: var(--line);
}

.profile-related-links a {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  padding: 22px;
  color: var(--teal-900);
  text-decoration: none;
}

.profile-related-links a:hover {
  background: var(--paper);
}

.profile-related-links span {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 1080px) {
  .profiles-hero-content,
  .profile-library-heading,
  .methodology-grid,
  .profile-answer-grid,
  .profile-source-grid {
    grid-template-columns: 1fr;
  }

  .profile-app {
    grid-template-columns: 310px minmax(0, 1fr);
  }

  .profile-metric-grid,
  .signal-list,
  .profile-static-overview .profile-metric-grid,
  .profile-related-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .profiles-hero {
    min-height: 590px;
  }

  .profiles-hero-content {
    align-content: end;
    padding: 76px 0 58px;
  }

  .profiles-hero h1 {
    font-size: 3.15rem;
  }

  .profile-app {
    display: block;
  }

  .profile-search-panel {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-results {
    max-height: 360px;
  }

  .profile-two-column,
  .profile-section-heading {
    grid-template-columns: 1fr;
  }

  .profile-static-hero .profiles-hero-content {
    gap: 24px;
  }

  .profile-title-row {
    display: block;
  }

  .profile-actions {
    justify-content: flex-start;
    margin-top: 24px;
  }

  .profile-action-status {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .profiles-hero h1 {
    font-size: 2.7rem;
  }

  .profile-detail {
    padding: 30px 20px;
  }

  .profile-metric-grid,
  .signal-list,
  .business-summary,
  .mini-metric-grid,
  .profile-static-overview .profile-metric-grid,
  .profile-related-links {
    grid-template-columns: 1fr;
  }

  .profile-metric,
  .signal-list article {
    min-height: auto;
  }

  .profile-actions button,
  .profile-actions a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .profile-featured-brief-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .profile-featured-brief .button {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  .site-header,
  .site-footer,
  .profiles-hero,
  .profile-library-heading,
  .profile-search-panel,
  .profile-methodology,
  .contact,
  .profile-actions,
  .profile-action-status {
    display: none !important;
  }

  .profile-explorer,
  .profile-detail {
    padding: 0;
    background: var(--white);
  }

  .profile-app {
    display: block;
    border: 0;
  }

  .profile-section {
    break-inside: avoid;
  }
}
