/* Palm & Face content phase 1. Every rule is scoped to an .am-pf-* root. */
.am-pf-library {
  --am-pf-ink: #263f52;
  --am-pf-muted: #53697a;
  --am-pf-gold: #aa8a53;
  --am-pf-line: rgba(87, 111, 129, .16);
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: clamp(42px, 6vw, 76px) auto 24px;
  padding: clamp(26px, 4vw, 46px);
  color: var(--am-pf-ink);
  border: 1px solid rgba(180, 153, 105, .24);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 253, 247, .88), rgba(240, 247, 249, .82));
  box-shadow: 0 18px 48px rgba(37, 61, 78, .08);
}
.am-pf-library * { box-sizing: border-box; }
.am-pf-library__intro { max-width: 850px; margin: 0 auto 30px; text-align: center; }
.am-pf-library__eyebrow,
.am-pf-article__category {
  display: inline-flex;
  align-items: center;
  color: #967844;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.am-pf-library__title {
  margin: 8px 0 12px;
  color: #24465f;
  font: 700 clamp(28px, 3.1vw, 38px)/1.3 "Songti SC", "Noto Serif SC", Georgia, serif;
  letter-spacing: .04em;
}
.am-pf-library__summary {
  max-width: 820px;
  margin: 0 auto;
  color: var(--am-pf-muted);
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 500;
  line-height: 1.8;
}
.am-pf-library__directions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.am-pf-library__group {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--am-pf-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
}
.am-pf-library__group-title {
  margin: 0 0 14px;
  color: #294b62;
  font: 700 21px/1.4 "Songti SC", "Noto Serif SC", Georgia, serif;
}
.am-pf-library__topics { display: flex; flex-wrap: wrap; gap: 9px; }
.am-pf-library__topic {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(114, 143, 157, .2);
  border-radius: 999px;
  background: rgba(246, 249, 248, .9);
  color: #526b7b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.am-pf-library__featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(176, 145, 88, .24);
  border-radius: 20px;
  background: linear-gradient(110deg, rgba(255, 255, 255, .9), rgba(250, 246, 235, .8));
}
.am-pf-library__featured-copy { min-width: 0; }
.am-pf-library__featured-label {
  margin: 0 0 8px;
  color: #9c7940;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}
.am-pf-library__featured-title {
  margin: 0 0 10px;
  color: #264861;
  font: 700 clamp(20px, 2.1vw, 27px)/1.45 "Songti SC", "Noto Serif SC", Georgia, serif;
}
.am-pf-library__featured-summary {
  margin: 0;
  color: var(--am-pf-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
}
.am-pf-library__read-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(164, 128, 66, .58);
  border-radius: 999px;
  background: rgba(255, 252, 244, .92);
  color: #775b2e;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}
.am-pf-library__read-link:hover { background: #fff; transform: translateY(-1px); }
.am-pf-article-shell {
  box-sizing: border-box;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0 70px;
  color: #273f51;
}
.am-pf-article-shell * { box-sizing: border-box; }
.am-pf-article__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: min(100%, 860px);
  margin: 0 auto 22px;
  color: #6a7d89;
  font-size: 14px;
  line-height: 1.6;
}
.am-pf-article__breadcrumb a { color: #77613b; text-decoration: none; }
.am-pf-article__breadcrumb a:hover { text-decoration: underline; }
.am-pf-article {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(163, 153, 130, .2);
  border-radius: 26px;
  background: rgba(255, 253, 248, .84);
  box-shadow: 0 22px 58px rgba(36, 57, 72, .09);
}
.am-pf-article__hero { padding-bottom: 28px; border-bottom: 1px solid var(--am-pf-line); }
.am-pf-article__category { letter-spacing: .12em; }
.am-pf-article__title {
  margin: 12px 0 16px;
  color: #21455f;
  font: 700 clamp(34px, 5vw, 54px)/1.24 "Songti SC", "Noto Serif SC", Georgia, serif;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}
.am-pf-article__deck {
  max-width: 760px;
  margin: 0;
  color: #627582;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.7;
}
.am-pf-article__prose { width: 100%; margin: 0 auto; color: #334d60; }
.am-pf-article__prose > p,
.am-pf-article__section > p,
.am-pf-article__section li {
  color: #3c5364;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.85;
}
.am-pf-article__prose > p { margin: 24px 0; }
.am-pf-article__lead {
  margin: 24px 0 30px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--am-pf-line);
}
.am-pf-article__lead p {
  margin: 12px 0;
  color: #334d60;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.85;
}
.am-pf-article__lead p:first-child { margin-top: 0; }
.am-pf-article__lead p:last-child { margin-bottom: 0; }
.am-pf-article__section { margin: 42px 0 0; scroll-margin-top: 32px; }
.am-pf-article__section-title {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: 0 0 18px;
  color: #274a62;
  font: 700 clamp(23px, 2.6vw, 31px)/1.4 "Songti SC", "Noto Serif SC", Georgia, serif;
}
.am-pf-article__section-number { flex: 0 0 auto; color: #ad8e58; font: 600 14px/1.4 "Avenir Next", Arial, sans-serif; letter-spacing: .08em; }
.am-pf-article__section p { margin: 12px 0; }
.am-pf-article__section ul { padding-left: 1.35em; }
.am-pf-article__section ol { padding-left: 1.5em; }
.am-pf-article__section li { margin: 7px 0; padding-left: .2em; }
.am-pf-article__subhead {
  margin: 26px 0 8px;
  color: #8a6c38;
  font: 700 17px/1.55 "Songti SC", "Noto Serif SC", Georgia, serif;
}
.am-pf-article__bridge {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid rgba(178, 148, 89, .72);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(100deg, rgba(243, 247, 248, .9), rgba(250, 247, 239, .85));
  color: #2d4a60;
  font-size: 18px !important;
  line-height: 1.75 !important;
}
.am-pf-article__note {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 3px solid rgba(178, 148, 89, .72);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(100deg, rgba(243, 247, 248, .9), rgba(250, 247, 239, .85));
  color: #4d6372;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}
.am-pf-comparison {
  width: 100%;
  min-width: 700px;
  margin: 0;
  border: 1px solid rgba(99, 123, 137, .2);
  border-radius: 16px;
  border-spacing: 0;
  background: rgba(255, 255, 255, .8);
  table-layout: fixed;
}
.am-pf-comparison th,
.am-pf-comparison td {
  width: 33.333%;
  padding: 14px 13px;
  border-right: 1px solid rgba(99, 123, 137, .14);
  border-bottom: 1px solid rgba(99, 123, 137, .14);
  color: #405969;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}
.am-pf-comparison th { background: #eef3f3; color: #2d4b5d; font-weight: 700; }
.am-pf-comparison th:first-child { border-radius: 15px 0 0 0; }
.am-pf-comparison th:last-child { border-radius: 0 15px 0 0; }
.am-pf-comparison tr:last-child td { border-bottom: 0; }
.am-pf-comparison th:last-child,
.am-pf-comparison td:last-child { border-right: 0; }
.am-pf-comparison-scroll {
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(170, 138, 83, .55) rgba(87, 111, 129, .08);
}
.am-pf-comparison-hint {
  display: block;
  margin: -9px 0 10px;
  color: #8a7758;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}
.am-pf-approved-illustration figcaption {
  max-width: 700px;
  margin: 12px auto 0;
  color: #687c88;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  text-align: center;
}
.am-pf-question-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.am-pf-question-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--am-pf-line);
  border-radius: 17px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(241, 246, 247, .8));
}
.am-pf-question-card__number { display: block; margin-bottom: 10px; color: #a88a53; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.am-pf-question-card p { margin: 0; color: #334e61; font-size: 17px; font-weight: 600; line-height: 1.65; }
.am-pf-article__conclusion {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid rgba(180, 151, 91, .24);
  border-radius: 18px;
  background: linear-gradient(115deg, rgba(249, 245, 234, .85), rgba(238, 245, 246, .86));
}
.am-pf-article__conclusion p { margin: 8px 0; color: #2d4a60; font-size: 18px; font-weight: 600; line-height: 1.75; }
.am-pf-article__conclusion h2 {
  margin: 0 0 10px;
  color: #274a62;
  font: 700 clamp(22px, 2.5vw, 29px)/1.4 "Songti SC", "Noto Serif SC", Georgia, serif;
}
.am-pf-article__disclaimer {
  margin-top: 42px;
  padding: 18px 20px;
  border-top: 1px solid var(--am-pf-line);
  color: #647782;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}
.am-pf-article__end-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--am-pf-line);
}
.am-pf-article__end-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: #765e36;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.am-pf-article__end-links a:hover { text-decoration: underline; }
.am-pf-article .am-pf-primary-cta {
  display: inline-flex;
  min-width: min(320px, 100%);
  min-height: 60px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 26px;
  border: 1px solid rgba(198, 138, 50, .58);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff4cf 0%, #e8c46d 42%, #d39a3d 100%);
  box-shadow: 0 14px 30px rgba(188, 132, 46, .18), inset 0 1px 0 rgba(255, 255, 255, .68);
  color: #123f5c;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.am-pf-article__conclusion { text-align: center; }
.am-pf-article__conclusion p { max-width: 680px; margin: 8px auto; }
.am-pf-article .am-pf-primary-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #fff8da 0%, #efd184 46%, #d9a44a 100%);
  box-shadow: 0 18px 34px rgba(188, 132, 46, .24), inset 0 1px 0 rgba(255, 255, 255, .74);
}
.am-pf-article__end-links { display: block; }
.am-pf-article__end-links h2 {
  margin: 0 0 12px;
  color: #274a62;
  font: 700 21px/1.4 "Songti SC", "Noto Serif SC", Georgia, serif;
}
.am-pf-product-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.am-pf-product-links a {
  display: flex;
  min-width: 0;
  height: 68px;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(180, 151, 91, .38);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #fbf8f1 100%);
  color: #274a62;
  text-align: center;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}
.am-pf-product-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 128, 66, .62);
  background: #fffdfa;
  box-shadow: 0 5px 14px rgba(58, 67, 70, .07);
}
.am-pf-product-links strong { color: #274a62; font-size: 15px; font-weight: 650; line-height: 1.4; }
.am-pf-product-links a:hover strong { color: #775b2e; }
@media (max-width: 760px) {
  .am-pf-library { margin-top: 38px; padding: 24px 18px; border-radius: 20px; }
  .am-pf-library__directions { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 22px 0; }
  .am-pf-library__group { padding: 18px; }
  .am-pf-library__featured { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 18px; }
  .am-pf-library__read-link { justify-self: start; }
  .am-pf-article-shell { width: min(100% - 28px, 860px); padding-top: 30px; }
  .am-pf-article { padding: 24px 18px; border-radius: 20px; }
  .am-pf-article__lead p { font-size: 16px; }
  .am-pf-question-cards { grid-template-columns: minmax(0, 1fr); }
  .am-pf-product-links { grid-template-columns: minmax(0, 1fr); }
  .am-pf-article__section { margin-top: 34px; }
}
@media (max-width: 480px) {
  .am-pf-article__breadcrumb { font-size: 13px; }
  .am-pf-comparison th,
  .am-pf-comparison td { padding: 10px 9px; font-size: 13px; line-height: 1.6; }
  .am-pf-comparison th:first-child,
  .am-pf-comparison td:first-child { width: 150px; }
  .am-pf-comparison th:nth-child(2),
  .am-pf-comparison td:nth-child(2),
  .am-pf-comparison th:nth-child(3),
  .am-pf-comparison td:nth-child(3) { width: 275px; }
  .am-pf-article__prose > p,
  .am-pf-article__section > p,
  .am-pf-article__section li { font-size: 16px; }
  .am-pf-article__section-title { gap: 9px; }
  .am-pf-approved-illustration figcaption { padding: 0 8px; font-size: 13px; }
  .am-pf-article .am-pf-primary-cta { min-width: 100%; padding: 0 18px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .am-pf-library__read-link { transition: none; }
  .am-pf-article .am-pf-primary-cta { transition: none; }
  .am-pf-product-links a { transition: none; }
}

/* Palm & Face phase-one local refinements */
.am-pf-service-open {
  display: flex;
  justify-content: center;
  margin: 18px auto 4px;
}
.am-pf-service-open .detail-button {
  min-width: 220px;
  min-height: 46px;
  border-radius: 999px;
  letter-spacing: .035em;
}
.am-pf-service-open--face { margin-top: 18px; }
.am-pf-editorial-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 12px 20px;
  border: 1px solid rgba(173, 142, 88, .58);
  border-radius: 999px;
  color: #675435;
  background: rgba(255, 253, 247, .78);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.am-pf-editorial-cta:hover { background: #fff; transform: translateY(-1px); }
@media (max-width: 600px) {
  .am-pf-service-open .detail-button { min-width: min(220px, 82vw); }
}

.am-pf-approved-illustration {
  width: min(100%, 760px);
  margin: 28px auto 38px;
}
.am-pf-approved-illustration img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
