/* The pharmacy header, signature, service navigation and footer retain their shared styles. */
.kb-page main {
  --edit-ink: #35252d;
  --edit-berry: #792d4a;
  --edit-green: #163e34;
  --edit-pink: #f7d9d8;
  --edit-paper: #fffaf7;
  --edit-rule: #d9c7c6;
  color: var(--edit-ink);
  background: var(--edit-paper);
}
.kb-page main :focus-visible { outline: 3px solid #185846; outline-offset: 4px; }
.beauty-cover { background: var(--edit-pink); }
.beauty-cover-grid {
  max-width: 1600px; margin: auto; display: grid;
  grid-template-columns: 46fr 54fr; align-items: stretch;
}
.beauty-cover-copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(34px,4.2vw,73px) clamp(24px,4.8vw,76px);
}
.beauty-byline, .kb-page .beauty-brand {
  font-family: 'DM Sans','Helvetica Neue',sans-serif; font-weight: 700;
  margin: 0; font-size: 12px; line-height: 1.4; text-transform: uppercase;
  color: var(--edit-berry); letter-spacing: .12em;
}
.beauty-byline { display: flex; align-items: center; gap: 12px; }
.beauty-byline::before { content: ''; width: 26px; height: 1px; background: currentColor; }
.kb-page .beauty-cover h1 {
  margin: clamp(17px,2.4vw,38px) 0 17px; color: var(--edit-ink);
  font: 500 clamp(62px,7.9vw,122px)/.91 'Helvetica Neue','DM Sans',sans-serif;
  letter-spacing: -.075em;
}
.kb-page .beauty-cover h1 em {
  font-family: 'Bodoni Moda',Georgia,serif; font-weight: 400; color: var(--edit-berry);
}
html[lang=ko] .kb-page .beauty-cover h1 {
  font-family: 'Black Han Sans','Apple SD Gothic Neo',sans-serif !important; font-weight: 400;
  font-size: clamp(62px,7.1vw,110px); letter-spacing: -.055em; line-height: 1.02;
}
html[lang=ko] .kb-page .beauty-cover h1 em { font: inherit; }
html[lang=ko] .beauty-byline { letter-spacing: .035em; }
html[lang=ko] .kb-page main {
  --font-ko: 'Noto Sans KR', 'Pretendard Variable', 'Apple SD Gothic Neo', sans-serif;
  font-family: var(--font-ko);
}
html[lang=ko] .kb-page main button { font-family: var(--font-ko); }
.beauty-intro { margin: 0; max-width: 37ch; color: #513a43; font-size: clamp(16px,1.25vw,20px); line-height: 1.62; }
html[lang=ko] .beauty-intro { max-width: 29em; word-break: keep-all; }
.beauty-cover-links { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; margin-top: clamp(17px,2vw,32px); }
.beauty-cover-links a { display: inline-flex; min-height: 46px; align-items: center; gap: 12px; font-weight: 650; font-size: 14px; }
.beauty-cover-links .beauty-primary {
  background: var(--edit-green); color: #fffaf3; text-decoration: none; border-radius: 100px; padding: 0 23px;
}
.beauty-primary:hover { background: #255142; }
.beauty-secondary { color: var(--edit-ink); text-underline-offset: .28em; }
.beauty-cover-photo { position: relative; margin: 0; min-height: 350px; overflow: hidden; }
.beauty-cover-photo img { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:55% 53%; }
.beauty-cover-photo figcaption {
  position: absolute; right: 16px; bottom: 12px; margin: 0; padding: 4px 9px;
  border-radius: 3px; background: #fff9f1ed; color: #4c343a; font-size: 11px; line-height: 1.5;
}
.kb-page #trending-products {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 20px;
  scroll-margin-top: 100px; padding: clamp(32px,4.5vw,72px) 0 clamp(42px,5vw,78px);
}
.kb-page .kb-shelf-heading { margin:0!important; color: var(--edit-green); letter-spacing: -.045em; }
.kb-page .kb-shelf-filter { margin:0; gap:5px; justify-self:end; }
.kb-page .kb-shelf-filter button { border-color: #d1bfbf; background:transparent; color: var(--edit-ink); }
.kb-page .kb-shelf-filter button[aria-pressed=true] { background:var(--edit-green); border-color:var(--edit-green); color:white; }
.kb-page .kb-shelf-grid { grid-column:1/-1; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:25px; gap:clamp(12px,1.7vw,26px); }
.kb-page .kb-product-card { border:0; border-radius:0; background:transparent; display:flex; }
.kb-page .kb-product-card[hidden] { display:none; }
.kb-page .kb-product-card > a { display:flex; flex-direction:column; width:100%; color: var(--edit-ink); }
.beauty-swatch {
  width:100%; aspect-ratio:1; background-image:url('/assets/royal-beauty-texture-atlas.jpg');
  background-size:200% 200%; background-repeat:no-repeat; border-radius:12px;
}
.swatch-sheet { background-position:0 0; background-color:#e8b3c3; }
.swatch-wrap { background-position:100% 0; background-color:#edc4a9; }
.swatch-pads { background-position:0 100%; background-color:#c5cde6; }
.swatch-cream { background-position:100% 100%; background-color:#d9e0c7; }
.kb-page .kb-card-copy { display:flex; flex:1; flex-direction:column; align-items:start; gap:0; padding:16px 1px 14px; border-bottom:1px solid var(--edit-rule); }
.kb-page .kb-card-copy h3 { font-size:clamp(18px,1.63vw,27px); line-height:1.17; margin:5px 0 0; color:var(--edit-ink); }
.kb-page .kb-card-copy .beauty-brand { font-size:11px; }
.kb-page .kb-card-copy .beauty-pack-name { color:#6b535d; margin-top:6px; font-size:12px; line-height:1.35; }
.kb-page .kb-card-copy .beauty-caption { color:#564b4c; margin:10px 0 16px; font-size:14px; line-height:1.6; }
.kb-page .kb-card-action { display:flex; gap:8px; align-items:center; margin-top:auto; font-size:13px; color:var(--edit-green); }
.kb-page .beauty-guide { border-top:3px solid var(--edit-pink); }
.beauty-guide-cover { display:grid; grid-template-columns:1fr minmax(145px,24%); align-items:center; gap:clamp(16px,4vw,52px); margin:24px 0 30px; background:#fae9e8; border-radius:16px; overflow:hidden; }
.beauty-guide-cover .kb-product-intro { padding:clamp(20px,3.4vw,52px); }
.beauty-guide-cover .kb-product-intro h1 { font-size:clamp(29px,3.9vw,61px); color:var(--edit-ink); }
.beauty-guide-cover .beauty-swatch { border-radius:0; }
.beauty-guide .kb-kicker, .beauty-guide .kb-kicker a, .beauty-guide .kb-block h2 { color:var(--edit-berry); }
.beauty-guide .kb-format-frame, .beauty-guide .kb-watch { border-color:var(--edit-rule); }
.beauty-guide .kb-feature { border-color:var(--edit-rule); }
.beauty-guide .kb-compare thead { background:var(--edit-green); }
.beauty-guide .kb-label-note { background:#e9ecdf; }
@media(max-width:920px) {
  .kb-page #trending-products { grid-template-columns:1fr; gap:14px; }
  .kb-page .kb-shelf-filter { justify-self:start; }
  .kb-page .kb-shelf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:0; }
}
@media(max-width:720px) {
  .beauty-cover-grid { grid-template-columns:1fr; }
  .beauty-cover-copy { padding:27px 5% 24px; }
  .kb-page .beauty-cover h1, html[lang=ko] .kb-page .beauty-cover h1 { font-size:clamp(40px,9.7vw,66px); margin:12px 0 10px; }
  .beauty-cover h1 br { display:none; }
  .beauty-cover h1 em::before { content:' '; }
  .beauty-intro { max-width:46ch; font-size:15px; }
  .beauty-cover-links { margin-top:14px; }
  .beauty-cover-photo { min-height:0; aspect-ratio:2 / 1; }
  .beauty-cover-photo img { object-position:50% 52%; }
  .beauty-cover-photo figcaption { font-size:10px; right:8px; bottom:7px; }
  .beauty-guide-cover { grid-template-columns:1fr; margin:16px 0; gap:0; }
  .beauty-guide-cover .beauty-swatch { display:none; }
  .kb-page .kb-shelf-filter button { padding:6px 13px; font-size:14px; }
  .kb-page .kb-card-copy { padding-top:12px; }
}
@media(max-width:374px) {
  .kb-page .kb-shelf-filter { gap:4px; }
  .kb-page .kb-shelf-filter button { padding-inline:10px; }
  .kb-page .kb-shelf-grid { gap:12px; }
}

/* Product identification in the guide list. Keep the maker's full photo and label visible. */
.kb-product-card .beauty-packshot {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #ead7d7;
  border-radius: 12px;
  background: #fff;
}
.kb-product-card .beauty-packshot img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.kb-page .kb-product-card .kb-card-copy h3[lang="en"] {
  font-family: 'Helvetica Neue', 'DM Sans', Arial, sans-serif !important;
  font-weight: 650;
  letter-spacing: -.035em;
}
.kb-page .kb-product-card .beauty-local-name {
  margin-top: 5px;
  color: #644551;
  font-size: 14px;
  line-height: 1.45;
}
