.apma-ph-main {
  --apma-red: #AB2D26;
  --apma-red-dark: #8F211C;
  --apma-blue: #152342;
  --apma-blue-soft: #23385F;
  --apma-ink: #343A40;
  --apma-muted: #5F6670;
  --apma-light: #F6F6F3;
  --apma-line: #D9D9D2;
  --apma-white: #FFFFFF;
  --apma-max: 1320px;
  color: var(--apma-ink);
  background: var(--apma-white);
  font-family: Arial, Helvetica, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

.apma-ph-main *,
.apma-ph-main *::before,
.apma-ph-main *::after {
  box-sizing: border-box;
  border-radius: 0;
}

.apma-ph-main a {
  color: inherit;
}

.apma-ph-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apma-ph-section {
  padding: 84px 0;
  border-top: 1px solid rgba(21, 35, 66, 0.12);
  background: var(--apma-white);
}

.apma-ph-section--light {
  background: var(--apma-light);
}

.apma-ph-section--navy {
  background: var(--apma-blue);
  color: var(--apma-white);
}

.apma-ph-container {
  width: min(var(--apma-max), calc(100% - 48px));
  margin: 0 auto;
}

.apma-ph-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--apma-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-transform: uppercase;
}

.apma-ph-label::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--apma-red);
}

.apma-ph-title {
  max-width: 880px;
  margin: 0;
  color: var(--apma-blue);
  font-size: clamp(1.66rem, 2.02vw, 2.16rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.16;
}

.apma-ph-copy {
  max-width: 840px;
  margin: 18px 0 0;
  color: var(--apma-muted);
  font-size: 1rem;
  line-height: 1.62;
}

.apma-ph-section--navy .apma-ph-label,
.apma-ph-section--navy .apma-ph-title {
  color: var(--apma-white);
}

.apma-ph-section--navy .apma-ph-copy {
  color: rgba(255, 255, 255, 0.82);
}

.apma-ph-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.apma-ph-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid var(--apma-blue);
  background: var(--apma-white);
  color: var(--apma-blue);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.apma-ph-main .apma-ph-button {
  color: var(--apma-blue);
}

.apma-ph-main .apma-ph-button--primary {
  border-color: var(--apma-red);
  background: var(--apma-red);
  color: var(--apma-white);
}

.apma-ph-main .apma-ph-button:hover,
.apma-ph-main .apma-ph-button--primary:hover {
  border-color: var(--apma-blue);
  background: var(--apma-blue);
  color: var(--apma-white);
}

.apma-ph-main .apma-ph-section--navy .apma-ph-button {
  border-color: rgba(255, 255, 255, 0.64);
  background: transparent;
  color: var(--apma-white);
}

.apma-ph-main .apma-ph-section--navy .apma-ph-button--primary {
  border-color: var(--apma-red);
  background: var(--apma-red);
  color: var(--apma-white);
}

.apma-ph-hero {
  padding: 76px 0 86px;
  border-top: 0;
}

.apma-ph-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(520px, 1.06fr);
  gap: 52px;
  align-items: stretch;
}

.apma-ph-hero__content {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: center;
  padding: 34px 0 34px 30px;
  border-left: 5px solid var(--apma-red);
}

.apma-ph-hero h1,
.apma-ph-article-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--apma-blue);
  font-size: clamp(2.18rem, 3.05vw, 3.38rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.apma-ph-hero__support,
.apma-ph-note {
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid var(--apma-line);
  border-left: 6px solid var(--apma-red);
  background: var(--apma-light);
  color: var(--apma-blue);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.48;
}

.apma-ph-visual {
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  min-height: 620px;
  border: 1px solid var(--apma-line);
  background: var(--apma-light);
}

.apma-ph-visual__image {
  min-height: 360px;
}

.apma-ph-visual__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  border-top: 6px solid var(--apma-red);
  background: var(--apma-blue);
  color: var(--apma-white);
}

.apma-ph-visual__statement {
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.apma-ph-visual__statement span,
.apma-ph-card__meta,
.apma-ph-meta-label {
  display: block;
  color: var(--apma-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.apma-ph-visual__statement strong {
  display: block;
  margin-top: 10px;
  color: var(--apma-white);
  font-size: 1.16rem;
  line-height: 1.28;
}

.apma-ph-visual__stats {
  display: grid;
}

.apma-ph-visual__stat {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.apma-ph-visual__stat:last-child {
  border-bottom: 0;
}

.apma-ph-visual__stat strong {
  display: block;
  color: var(--apma-white);
  font-size: 1.44rem;
  line-height: 1;
}

.apma-ph-visual__stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  line-height: 1.35;
}

.apma-ph-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(320px, 0.32fr);
  gap: 46px;
  align-items: end;
  margin-bottom: 34px;
}

.apma-ph-category-info {
  display: grid;
  grid-template-columns: minmax(300px, 0.34fr) minmax(0, 0.66fr);
  gap: 46px;
  align-items: start;
}

.apma-ph-category-info__rail {
  display: grid;
  gap: 18px;
  align-content: start;
}

.apma-ph-category-info .apma-ph-label {
  margin: 0;
}

.apma-ph-category-info .apma-ph-title {
  max-width: none;
  padding-top: 18px;
  border-top: 4px solid var(--apma-red);
}

.apma-ph-category-info .apma-ph-copy {
  max-width: none;
  margin: 0;
  padding: 30px 34px;
  border: 1px solid var(--apma-line);
  border-top: 4px solid var(--apma-red);
  background: var(--apma-white);
  color: var(--apma-ink);
}

.apma-ph-category-info .apma-ph-copy p {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(21, 35, 66, 0.12);
  font-size: 0.98rem;
  line-height: 1.72;
}

.apma-ph-category-info .apma-ph-copy p:first-child {
  padding-top: 0;
  border-top: 0;
}

.apma-ph-category-info .apma-ph-note {
  width: 100%;
  margin-top: 0;
}

.apma-ph-card-grid {
  display: grid;
  gap: 18px;
}

.apma-ph-card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apma-ph-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apma-ph-card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.apma-ph-card {
  min-height: 100%;
  padding: 24px 22px;
  border: 1px solid var(--apma-line);
  border-top: 4px solid var(--apma-red);
  background: var(--apma-white);
}

.apma-ph-card h3 {
  margin: 8px 0 0;
  color: var(--apma-blue);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
}

.apma-ph-card h3:first-child {
  margin-top: 0;
}

.apma-ph-card h3 a {
  color: inherit;
  text-decoration: none;
}

.apma-ph-card h3 a:hover {
  color: var(--apma-red);
}

.apma-ph-card p {
  margin: 12px 0 0;
  color: var(--apma-muted);
  font-size: 0.94rem;
  line-height: 1.56;
}

.apma-ph-card__action {
  display: inline-flex;
  margin-top: 18px;
  color: var(--apma-red);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.apma-ph-category-card {
  display: grid;
  min-height: 330px;
  grid-template-rows: 160px 1fr;
  padding: 0;
  overflow: hidden;
}

.apma-ph-category-card .apma-ph-card__body {
  padding: 22px;
}

.apma-ph-category-card .apma-ph-card__image {
  min-height: 160px;
  border-bottom: 4px solid var(--apma-red);
}

.apma-ph-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--apma-line);
  background: var(--apma-white);
}

.apma-ph-matrix__cell {
  min-height: 190px;
  padding: 26px 24px;
  border-right: 1px solid var(--apma-line);
  border-bottom: 1px solid var(--apma-line);
}

.apma-ph-matrix__cell:nth-child(4n) {
  border-right: 0;
}

.apma-ph-matrix__cell:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.apma-ph-matrix__cell strong {
  display: block;
  color: var(--apma-blue);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
}

.apma-ph-matrix__cell strong::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 16px;
  background: var(--apma-red);
}

.apma-ph-matrix__cell span {
  display: block;
  margin-top: 16px;
  color: var(--apma-muted);
  font-size: 0.94rem;
  line-height: 1.56;
}

.apma-ph-az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.apma-ph-az-nav a {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--apma-line);
  background: var(--apma-white);
  color: var(--apma-blue);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.apma-ph-az-group {
  margin-top: 34px;
  border: 1px solid var(--apma-line);
  background: var(--apma-white);
}

.apma-ph-az-letter {
  padding: 18px 24px;
  border-bottom: 1px solid var(--apma-line);
  border-left: 6px solid var(--apma-red);
  color: var(--apma-blue);
  font-size: 1.24rem;
  font-weight: 800;
}

.apma-ph-az-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.apma-ph-az-item {
  padding: 18px 22px;
  border-right: 1px solid var(--apma-line);
  border-bottom: 1px solid var(--apma-line);
}

.apma-ph-az-item:nth-child(2n) {
  border-right: 0;
}

.apma-ph-az-item a {
  color: var(--apma-blue);
  font-weight: 800;
  text-decoration: none;
}

.apma-ph-az-item a:hover {
  color: var(--apma-red);
}

.apma-ph-az-item span {
  display: block;
  margin-top: 6px;
  color: var(--apma-muted);
  font-size: 0.88rem;
}

.apma-ph-article-hero {
  padding: 66px 0;
  border-top: 0;
}

.apma-ph-article-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.42fr);
  gap: 44px;
  align-items: stretch;
}

.apma-ph-article-hero__content {
  padding-left: 30px;
  border-left: 5px solid var(--apma-red);
}

.apma-ph-article-hero__image {
  min-height: 360px;
  border: 1px solid var(--apma-line);
  border-bottom: 6px solid var(--apma-red);
  background: var(--apma-light);
}

.apma-ph-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  border: 1px solid var(--apma-line);
  background: var(--apma-white);
}

.apma-ph-meta-item {
  min-height: 112px;
  padding: 20px;
  border-right: 1px solid var(--apma-line);
}

.apma-ph-meta-item:last-child {
  border-right: 0;
}

.apma-ph-meta-item strong {
  display: block;
  margin-top: 8px;
  color: var(--apma-blue);
  font-size: 0.96rem;
  line-height: 1.28;
}

.apma-ph-article-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.28fr) minmax(0, 0.72fr);
  gap: 42px;
  align-items: start;
}

.apma-ph-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.apma-ph-sidebar__panel {
  padding: 22px;
  border: 1px solid var(--apma-line);
  border-left: 6px solid var(--apma-red);
  background: var(--apma-white);
}

.apma-ph-sidebar__panel h2,
.apma-ph-content-panel h2 {
  margin: 0;
  color: var(--apma-blue);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
}

.apma-ph-sidebar__panel p,
.apma-ph-sidebar__panel li {
  color: var(--apma-muted);
  font-size: 0.92rem;
  line-height: 1.52;
}

.apma-ph-sidebar__panel ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.apma-ph-content {
  display: grid;
  gap: 24px;
}

.apma-ph-content-panel {
  padding: 30px 32px;
  border: 1px solid var(--apma-line);
  background: var(--apma-white);
}

.apma-ph-content-panel--notice {
  border-left: 6px solid var(--apma-red);
  background: var(--apma-light);
}

.apma-ph-prose p {
  margin: 18px 0 0;
  color: var(--apma-ink);
  font-size: 1rem;
  line-height: 1.7;
}

.apma-ph-prose p:first-child {
  margin-top: 0;
}

.apma-ph-prose strong {
  color: var(--apma-blue);
}

.apma-ph-content-panel ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.apma-ph-content-panel li {
  margin-top: 8px;
  color: var(--apma-ink);
  line-height: 1.6;
}

.apma-ph-definition-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.apma-ph-definition-list div {
  padding: 16px 18px;
  border: 1px solid var(--apma-line);
  background: var(--apma-light);
}

.apma-ph-definition-list dt {
  color: var(--apma-blue);
  font-weight: 800;
}

.apma-ph-definition-list dd {
  margin: 6px 0 0;
  color: var(--apma-muted);
}

.apma-ph-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.apma-ph-related-grid a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--apma-line);
  border-left: 4px solid var(--apma-red);
  color: var(--apma-blue);
  font-weight: 800;
  text-decoration: none;
}

.apma-ph-related-grid a:hover {
  color: var(--apma-red);
}

@media (max-width: 1120px) {
  .apma-ph-hero__layout,
  .apma-ph-section-head,
  .apma-ph-article-hero__layout,
  .apma-ph-article-layout {
    grid-template-columns: 1fr;
  }

  .apma-ph-hero__content,
  .apma-ph-visual {
    min-height: auto;
  }

  .apma-ph-card-grid--four,
  .apma-ph-card-grid--three,
  .apma-ph-matrix,
  .apma-ph-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apma-ph-matrix__cell:nth-child(4n) {
    border-right: 1px solid var(--apma-line);
  }

  .apma-ph-matrix__cell:nth-child(2n),
  .apma-ph-meta-item:nth-child(2n) {
    border-right: 0;
  }

  .apma-ph-matrix__cell:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--apma-line);
  }

  .apma-ph-matrix__cell:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .apma-ph-sidebar {
    position: static;
  }

  .apma-ph-category-info {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .apma-ph-category-info__rail {
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .apma-ph-section,
  .apma-ph-hero,
  .apma-ph-article-hero {
    padding: 58px 0;
  }

  .apma-ph-container {
    width: min(100% - 40px, 680px);
  }

  .apma-ph-hero__content,
  .apma-ph-article-hero__content {
    padding-left: 20px;
  }

  .apma-ph-hero h1,
  .apma-ph-article-hero h1 {
    font-size: clamp(1.78rem, 7.4vw, 2.32rem);
  }

  .apma-ph-button-row,
  .apma-ph-button {
    width: 100%;
  }

  .apma-ph-card-grid--four,
  .apma-ph-card-grid--three,
  .apma-ph-card-grid--two,
  .apma-ph-matrix,
  .apma-ph-meta-grid,
  .apma-ph-visual__panel,
  .apma-ph-az-list,
  .apma-ph-related-grid {
    grid-template-columns: 1fr;
  }

  .apma-ph-visual__image,
  .apma-ph-article-hero__image {
    min-height: 260px;
  }

  .apma-ph-visual__statement {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .apma-ph-matrix__cell,
  .apma-ph-matrix__cell:nth-child(2n),
  .apma-ph-matrix__cell:nth-child(4n),
  .apma-ph-matrix__cell:nth-last-child(-n + 2),
  .apma-ph-matrix__cell:nth-last-child(-n + 4),
  .apma-ph-meta-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--apma-line);
  }

  .apma-ph-matrix__cell:last-child,
  .apma-ph-meta-item:last-child {
    border-bottom: 0;
  }

  .apma-ph-content-panel,
  .apma-ph-sidebar__panel,
  .apma-ph-note {
    padding: 22px;
  }

  .apma-ph-category-info .apma-ph-copy {
    padding: 24px 22px;
  }

  .apma-ph-category-info .apma-ph-title {
    padding-top: 15px;
  }
}
