.beauty-editorial {
  --beauty-ink: var(--navy);
  --beauty-paper: var(--paper);
  --beauty-stone: var(--tint);
  --beauty-muted: var(--ink-soft);
  --beauty-bronze: var(--gold);
  --beauty-gold: var(--gold-light);
  --beauty-rule: var(--line);
  --beauty-dark-rule: var(--on-navy-border);
  background: var(--beauty-paper);
  color: var(--beauty-ink);
}

.beauty-editorial-opening,
.beauty-editorial-scope {
  background: var(--beauty-ink);
  color: var(--beauty-paper);
}

.beauty-editorial-lead {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(26px, 4vw, 72px);
  padding-block: clamp(38px, 6vw, 88px);
}

.beauty-editorial-copy { min-width: 0; }

.beauty-editorial-back {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  color: var(--on-navy-muted);
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: .35em;
}

.beauty-editorial-back:hover { color: var(--beauty-gold); }

.beauty-editorial-product {
  inline-size: max-content;
  max-inline-size: 100%;
  margin: clamp(15px, 2vw, 29px) 0 0;
  color: var(--beauty-gold);
  font: 600 .78rem/1.5 Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.beauty-editorial h1 {
  margin: 10px 0 18px;
  color: var(--beauty-paper);
  font-size: clamp(2.1rem, 3.45vw, 4rem);
  line-height: 1.43;
}

.beauty-editorial :is(.beauty-editorial-opening, .beauty-editorial-scope) em {
  color: var(--beauty-gold);
  font-weight: 300;
  font-style: normal;
}

.beauty-editorial-description,
.beauty-editorial-scope p {
  max-inline-size: 52ch;
  margin: 0;
  color: var(--on-navy-muted);
  font-size: clamp(.9375rem, 1.18vw, 1.0625rem);
  line-height: 1.95;
}

.beauty-editorial .button.gold {
  background: var(--beauty-gold);
  border: 1px solid var(--beauty-gold);
  border-radius: 0;
  color: var(--beauty-ink);
}

.beauty-editorial .button.gold:hover,
.beauty-editorial .button.gold:focus-visible {
  background: color-mix(in srgb, var(--paper) 25%, var(--gold-light));
  color: var(--beauty-ink);
}

.beauty-editorial-try {
  gap: 12px;
  margin-block-start: 24px;
}

.beauty-editorial-try .icon { width: 17px; height: 17px; }

.beauty-editorial-preview-note {
  max-inline-size: 47ch;
  margin: 13px 0 0;
  color: var(--on-navy-muted);
  font-size: .8rem;
  line-height: 1.85;
}

.beauty-editorial-evidence {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: clamp(13px, 2.5vw, 32px);
  border: 1px solid var(--beauty-dark-rule);
  background: var(--navy-raised);
}

.beauty-editorial .beauty-capture > img {
  border: 1px solid var(--beauty-rule);
  box-shadow: none;
}

.beauty-editorial-evidence .beauty-capture > img { border-color: var(--on-navy-border); }

.beauty-editorial .beauty-capture > span {
  position: absolute;
  inset-inline-end: 9px;
  inset-block-end: 9px;
  display: inline-flex;
  gap: 6px;
  min-height: 34px;
  padding: 4px 9px;
  background: var(--beauty-ink);
  color: var(--beauty-paper);
  font-size: .72rem;
}

.beauty-editorial .beauty-capture:hover > span,
.beauty-editorial .beauty-capture:focus-visible > span { color: var(--beauty-gold); }

.beauty-editorial .beauty-capture:focus-visible {
  outline: 2px solid var(--beauty-bronze);
  outline-offset: 4px;
}

.beauty-editorial-evidence figcaption {
  color: var(--on-navy-muted);
  font-size: .82rem;
  line-height: 1.65;
}

.beauty-editorial-nav { border-block-end: 1px solid var(--beauty-rule); }

.beauty-editorial-nav-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.beauty-editorial-nav a {
  display: grid;
  place-items: center;
  min-block-size: 54px;
  padding: 9px 5px;
  color: var(--beauty-ink);
  font-size: clamp(.75rem, 1.12vw, .95rem);
  line-height: 1.55;
  text-align: center;
}

.beauty-editorial-nav a + a { border-inline-start: 1px solid var(--beauty-rule); }

.beauty-editorial-nav a:hover {
  background: var(--beauty-stone);
  text-decoration: underline;
  text-underline-offset: .32em;
}

.beauty-editorial .section { padding-block: clamp(46px, 6.35vw, 100px); }
.beauty-editorial section[id] { scroll-margin-block-start: 100px; }

.beauty-editorial-section-head {
  margin-block-end: clamp(20px, 3.5vw, 40px);
  padding-block-end: 14px;
  border-block-end: 1px solid var(--beauty-rule);
}

.beauty-editorial :is(.beauty-editorial-section-head, .system-explorer, .beauty-editorial-scope) h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.1vw, 3.15rem);
  line-height: 1.45;
}

.beauty-editorial .system-explorer {
  --explorer-text: var(--beauty-muted);
  --explorer-rule: var(--beauty-rule);
  --explorer-gold: var(--beauty-bronze);
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: var(--beauty-ink);
}

.beauty-editorial .system-explorer-head { padding: 0 0 17px; }

/* The opening already presents the system name, demo action and scope. */
.beauty-editorial .system-explorer-head :is(.system-explorer-context, .system-explorer-play, .system-explorer-notice) {
  display: none;
}

.beauty-editorial :is(.system-explorer-roles, .system-explorer-sections) {
  gap: 0;
  padding-inline: 0;
}

.beauty-editorial .system-explorer-roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block-start: 1px solid var(--beauty-rule);
}

.beauty-editorial .system-explorer-roles > button {
  min-block-size: 53px;
  padding: 7px 3px;
  font-size: clamp(.72rem, 1.17vw, 1rem);
}

.beauty-editorial .system-explorer-roles > button + button {
  border-inline-start: 1px solid var(--beauty-rule);
}

.beauty-editorial :is(.system-explorer-roles, .system-explorer-sections) > button[aria-selected="true"] {
  background: var(--beauty-stone);
  color: var(--beauty-ink);
  font-weight: 700;
}

.beauty-editorial .system-explorer button:hover { color: var(--beauty-ink); }
.beauty-editorial .system-explorer-role { background: transparent; }

.beauty-editorial .system-explorer-sections {
  gap: 6px 14px;
  padding-block: 12px 16px;
}

.beauty-editorial .system-explorer-sections > button {
  padding-inline: 10px;
  border: 1px solid var(--beauty-rule);
}

.beauty-editorial .system-explorer-sections > button[aria-selected="true"] {
  border-color: var(--beauty-bronze);
}

.beauty-editorial .system-explorer-section { padding: 0; }

.beauty-editorial .system-explorer-photo {
  max-block-size: 620px;
  border: 1px solid var(--beauty-rule);
  border-radius: 0;
  background: var(--tint);
  grid-template-rows: minmax(0, 1fr);
}

.beauty-editorial .system-explorer-portrait img {
  padding-block: 14px;
  max-inline-size: 100%;
}

.beauty-editorial .system-explorer-section figcaption { margin-block-start: 12px; }
.beauty-editorial .system-explorer-section figcaption small { color: var(--beauty-muted); }

.beauty-editorial .beauty-workflow {
  border-block: 1px solid var(--beauty-rule);
  background: var(--beauty-stone);
}

.beauty-editorial .beauty-workflow-grid {
  gap: clamp(28px, 3.3vw, 49px);
  align-items: start;
}

.beauty-editorial .beauty-workflow-grid article {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-self: stretch;
}

.beauty-editorial .beauty-workflow-grid h3 {
  margin: 0 0 9px;
  font-size: clamp(1.14rem, 2.15vw, 1.75rem);
}

.beauty-editorial .beauty-workflow-grid p { margin-block-end: 16px; }
.beauty-editorial .beauty-apps { background: var(--beauty-paper); }

.beauty-editorial .beauty-app-showcase {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(19px, 3.2vw, 44px);
  margin-block-start: 0;
  align-items: stretch;
}

.beauty-editorial .staff-explorer,
.beauty-editorial .beauty-app-customer {
  padding: clamp(15px, 2.7vw, 36px);
  border: 1px solid var(--beauty-rule);
  border-radius: 0;
  background: var(--beauty-stone);
  color: var(--beauty-ink);
}

.beauty-editorial .staff-choice span { border-radius: 0; }
.beauty-editorial .staff-phone { box-shadow: none; }
.beauty-editorial .beauty-app-showcase .beauty-app-customer .beauty-app-phone {
  max-inline-size: 220px;
  padding: 0;
  background: transparent;
}

.beauty-editorial .beauty-app-phone .portrait img { border: 5px solid var(--beauty-ink); }
.beauty-editorial .beauty-app-phone .portrait > span { inset-block-end: 14px; inset-inline-end: 14px; }

.beauty-editorial .beauty-apps .beauty-evidence-note { margin-block-start: 18px !important; }

.beauty-editorial-scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px clamp(32px, 6.4vw, 105px);
  align-items: center;
  padding-block: clamp(46px, 7.5vw, 108px);
}

.beauty-editorial-scope .button { margin-block-start: 23px; }

html[lang="ar"] .beauty-editorial :is(.beauty-editorial-description, .beauty-editorial-scope p) {
  text-align: justify;
  text-align-last: right;
  text-justify: inter-word;
}

@media (max-width: 1000px) {
  .beauty-editorial-lead {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 27px;
  }
}

@media (max-width: 800px) {
  .beauty-editorial-lead,
  .beauty-editorial .beauty-app-showcase { grid-template-columns: minmax(0, 1fr); }

  .beauty-editorial h1 { font-size: clamp(2rem, 5.8vw, 3.15rem); }
  .beauty-editorial .system-explorer-portrait { min-block-size: 330px; }
}

@media (max-width: 600px) {
  .beauty-editorial-lead { padding-block: 28px; }
  .beauty-editorial-scope-layout { grid-template-columns: minmax(0, 1fr); }
  .beauty-editorial section[id] { scroll-margin-block-start: 78px; }
  .beauty-editorial .system-explorer-sections { gap: 5px; }
  .beauty-editorial .system-explorer-sections > button { padding-inline: 7px; }
}
