/* Roberin pH calculator locale body · salary-first contract · 2026-06-21 */
.entry-content > article.roberin-article-body.ph-body-article,
article.roberin-article-body.ph-body-article {
  --ph-body-paper: #f8efe2;
  --ph-body-panel: #fffaf1;
  --ph-body-soft: #fbf0dc;
  --ph-body-line: #6b5745;
  --ph-body-ink: #2b2119;
  --ph-body-muted: #67584a;
  --ph-body-dash: rgba(107, 87, 69, 0.44);
  --ph-body-marker: #f7df9d;
  --ph-body-shadow: 5px 5px 0 rgba(72, 55, 40, 0.22);
  width: min(980px, calc(100vw - 32px)) !important;
  max-width: 980px !important;
  margin: 28px auto 34px !important;
  padding: 28px !important;
  color: var(--ph-body-ink) !important;
  background-color: var(--ph-body-paper) !important;
  background-image:
    linear-gradient(rgba(107, 87, 69, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 87, 69, 0.045) 1px, transparent 1px) !important;
  background-size: 22px 22px, 22px 22px !important;
  border: 2px solid var(--ph-body-line) !important;
  border-radius: 0 !important;
  box-shadow: var(--ph-body-shadow) !important;
  box-sizing: border-box !important;
  font-size: 16px !important;
  line-height: 1.72 !important;
  word-break: keep-all;
}

.ph-body-article,
.ph-body-article * {
  box-sizing: border-box;
}

.ph-body-article__hero {
  display: grid;
  gap: 12px;
  padding: 0 0 22px;
  border-bottom: 1px dashed var(--ph-body-dash);
}

.ph-body-article__kicker {
  justify-self: start;
  margin: 0 !important;
  padding: 5px 9px;
  color: var(--ph-body-ink) !important;
  background: var(--ph-body-panel);
  border: 1px solid var(--ph-body-line);
  border-radius: 0;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ph-body-article h2,
.ph-body-article h3,
.ph-body-article p {
  color: var(--ph-body-ink) !important;
  -webkit-text-fill-color: var(--ph-body-ink) !important;
}

.ph-body-article h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ph-body-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 28px !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.055em !important;
}

.ph-body-article h3 {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--ph-body-ink) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.035em !important;
}

.ph-body-article p {
  max-width: 820px;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.72 !important;
}

.ph-body-article code {
  display: inline-block;
  padding: 1px 5px;
  color: var(--ph-body-ink);
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid rgba(107, 87, 69, 0.32);
  border-radius: 0;
  font-size: 0.92em;
  line-height: 1.35;
}

.ph-body-article__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.ph-body-article__nav a {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--ph-body-ink) !important;
  background-color: #fffaf1 !important;
  border: 1px solid var(--ph-body-line);
  border-radius: 0;
  box-shadow: 2px 2px 0 rgba(72, 55, 40, 0.14);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
  text-decoration: none !important;
}

.ph-body-article__nav a:hover,
.ph-body-article__source-list a:hover {
  transform: translate(-1px, -1px);
}

.ph-body-article__section {
  display: grid;
  gap: 14px;
  padding: 24px 0 0;
  margin: 0;
}

.ph-body-article__section + .ph-body-article__section {
  margin-top: 24px;
  border-top: 1px dashed var(--ph-body-dash);
}

.ph-body-article__grid,
.ph-body-article__formula-grid,
.ph-body-article__walkthrough,
.ph-body-article__source-list {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 10px;
}

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

.ph-body-article__formula-grid,
.ph-body-article__walkthrough,
.ph-body-article__source-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ph-body-article__card,
.ph-body-article__formula,
.ph-body-article__walk-card,
.ph-body-article__notice,
.ph-body-article__faq-list details {
  background-color: #fffaf1 !important;
  border: 1px solid var(--ph-body-line) !important;
  border-radius: 0 !important;
  box-shadow: 2px 2px 0 rgba(72, 55, 40, 0.12);
}

.ph-body-article__card,
.ph-body-article__formula,
.ph-body-article__walk-card {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 13px;
}

.ph-body-article__formula strong,
.ph-body-article__walk-card strong,
.ph-body-article__card strong {
  color: var(--ph-body-ink) !important;
  font-weight: 950;
}

.ph-body-article__formula code {
  justify-self: start;
  font-weight: 900;
}

.ph-body-article__walk-card span,
.ph-body-article__walk-card em {
  color: var(--ph-body-ink) !important;
  font-style: normal;
  line-height: 1.55;
}

.ph-body-article__walk-card em {
  color: var(--ph-body-muted) !important;
  font-size: 14px;
  font-weight: 850;
}

.ph-body-article__notice {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--ph-body-soft) !important;
}

.ph-body-article__source-list a,
.ph-body-article__source-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  min-height: 74px;
  padding: 13px 14px;
  color: var(--ph-body-ink) !important;
  background: var(--ph-body-panel) !important;
  border: 2px solid var(--ph-body-line) !important;
  border-radius: 0 !important;
  box-shadow: 3px 3px 0 rgba(72, 55, 40, 0.16);
  text-decoration: none !important;
}

.ph-body-article__source-list a strong {
  grid-column: 1;
  grid-row: 1;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.ph-body-article__source-list a span {
  grid-column: 1;
  grid-row: 2;
  color: var(--ph-body-muted) !important;
  font-size: 14px;
  line-height: 1.45;
}

.ph-body-article__source-list a::after,
.ph-body-article__source-link::after {
  content: "열기";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  padding: 4px 7px;
  color: var(--ph-body-ink);
  background: var(--ph-body-marker);
  border: 1px solid var(--ph-body-line);
  border-radius: 0;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.ph-body-article__steps,
.ph-body-article__checklist {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ph-body-article__steps {
  counter-reset: phBodyStep;
}

.ph-body-article__steps > li,
.ph-body-article__checklist > li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  color: var(--ph-body-ink) !important;
  background: var(--ph-body-panel);
  border: 1px solid var(--ph-body-line);
  border-radius: 0;
  box-shadow: 2px 2px 0 rgba(72, 55, 40, 0.1);
}

.ph-body-article__steps > li {
  counter-increment: phBodyStep;
}

.ph-body-article__steps > li::before,
.ph-body-article__checklist > li::before {
  display: inline-grid;
  place-items: center;
  align-self: center;
  width: 28px;
  height: 28px;
  margin-top: 0;
  color: var(--ph-body-ink);
  background: var(--ph-body-marker);
  border: 1px solid var(--ph-body-line);
  border-radius: 0;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.ph-body-article__steps > li::before {
  content: counter(phBodyStep);
}

.ph-body-article__checklist > li::before {
  content: "✓";
}

.ph-body-article__li-text {
  min-width: 0;
  color: var(--ph-body-ink) !important;
  line-height: 1.62;
}

.ph-body-article__li-text strong {
  color: var(--ph-body-ink) !important;
  font-weight: 950;
}

.ph-body-article__faq-list {
  display: grid;
  gap: 9px;
  width: 100%;
}

.ph-body-article__faq-list details {
  overflow: hidden;
}

.ph-body-article__faq-list summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ph-body-ink) !important;
  cursor: pointer;
  font-weight: 950;
  line-height: 1.36;
  list-style: none;
}

.ph-body-article__faq-list summary::-webkit-details-marker {
  display: none;
}

.ph-body-article__faq-list summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  align-self: center;
  width: 24px;
  height: 24px;
  margin-top: 0;
  color: var(--ph-body-ink);
  background-color: #f7df9d;
  border: 1px solid var(--ph-body-line);
  border-radius: 0;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.ph-body-article__faq-list details[open] summary::before {
  content: "−";
}

.ph-body-article__faq-list details p {
  max-width: none;
  padding: 0 14px 14px 54px;
  color: var(--ph-body-ink) !important;
}

body[data-scheme="dark"] .ph-body-article,
body.dark-mode .ph-body-article,
html[data-scheme="dark"] body .ph-body-article {
  --ph-body-paper: #2b2119;
  --ph-body-panel: #3a2d22;
  --ph-body-soft: #33271e;
  --ph-body-line: #a98b6b;
  --ph-body-ink: #fff1dd;
  --ph-body-muted: #ead6b8;
  --ph-body-dash: rgba(234, 214, 184, 0.38);
  --ph-body-marker: #e7c56b;
  --ph-body-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
  background-color: var(--ph-body-paper) !important;
  background-image:
    linear-gradient(rgba(234, 214, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 214, 184, 0.045) 1px, transparent 1px) !important;
}

body[data-scheme="dark"] .ph-body-article__nav a,
body.dark-mode .ph-body-article__nav a,
html[data-scheme="dark"] body .ph-body-article__nav a,
body[data-scheme="dark"] .ph-body-article__card,
body.dark-mode .ph-body-article__card,
html[data-scheme="dark"] body .ph-body-article__card,
body[data-scheme="dark"] .ph-body-article__formula,
body.dark-mode .ph-body-article__formula,
html[data-scheme="dark"] body .ph-body-article__formula,
body[data-scheme="dark"] .ph-body-article__walk-card,
body.dark-mode .ph-body-article__walk-card,
html[data-scheme="dark"] body .ph-body-article__walk-card,
body[data-scheme="dark"] .ph-body-article__faq-list details,
body.dark-mode .ph-body-article__faq-list details,
html[data-scheme="dark"] body .ph-body-article__faq-list details,
body[data-scheme="dark"] .ph-body-article__source-list a,
body.dark-mode .ph-body-article__source-list a,
html[data-scheme="dark"] body .ph-body-article__source-list a {
  color: var(--ph-body-ink) !important;
  background-color: var(--ph-body-panel) !important;
  border-color: var(--ph-body-line) !important;
}

body[data-scheme="dark"] .ph-body-article code,
body.dark-mode .ph-body-article code,
html[data-scheme="dark"] body .ph-body-article code {
  color: var(--ph-body-ink);
  background: rgba(255, 241, 221, 0.08);
  border-color: rgba(234, 214, 184, 0.28);
}

@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .ph-body-article,
  body:not([data-scheme]) .ph-body-article {
    --ph-body-paper: #2b2119;
    --ph-body-panel: #3a2d22;
    --ph-body-soft: #33271e;
    --ph-body-line: #a98b6b;
    --ph-body-ink: #fff1dd;
    --ph-body-muted: #ead6b8;
    --ph-body-dash: rgba(234, 214, 184, 0.38);
    --ph-body-marker: #e7c56b;
    --ph-body-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 760px) {
  body .entry-content > article.roberin-article-body.ph-body-article,
  body article.roberin-article-body.ph-body-article {
    width: min(100% - 26px, 980px) !important;
    padding: 20px !important;
    margin-top: 22px !important;
  }

  .ph-body-article h2 {
    font-size: 24px !important;
    line-height: 1.22 !important;
  }

  .ph-body-article__grid--three,
  .ph-body-article__formula-grid,
  .ph-body-article__walkthrough,
  .ph-body-article__source-list {
    grid-template-columns: 1fr;
  }

  .ph-body-article__source-list a,
  .ph-body-article__source-link {
    min-height: 0;
  }
}

@media (max-width: 380px) {
  body .entry-content > article.roberin-article-body.ph-body-article,
  body article.roberin-article-body.ph-body-article {
    width: min(100% - 22px, 980px) !important;
    padding: 18px !important;
  }

  .ph-body-article__nav a {
    flex: 1 1 calc(50% - 7px);
  }

  .ph-body-article__steps > li,
  .ph-body-article__checklist > li,
  .ph-body-article__faq-list summary {
    gap: 8px;
  }
}

/* High-specificity tail: loaded before global roberin-custom.css, so out-rank its !important body defaults. */
.entry-content article.roberin-article-body.ph-body-article.ph-body-article h2,
article.roberin-article-body.ph-body-article.ph-body-article h2 {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ph-body-ink) !important;
  -webkit-text-fill-color: var(--ph-body-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 28px !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
}

.entry-content article.roberin-article-body.ph-body-article.ph-body-article .ph-body-article__nav a {
  display: inline-grid !important;
  align-items: center !important;
  justify-items: center !important;
  padding: 7px 11px !important;
  color: var(--ph-body-ink) !important;
  -webkit-text-fill-color: var(--ph-body-ink) !important;
  background-color: #fffaf1 !important;
  border: 1px solid var(--ph-body-line) !important;
  border-radius: 0 !important;
  font-weight: 950 !important;
}

.entry-content article.roberin-article-body.ph-body-article.ph-body-article .ph-body-article__source-list a,
.entry-content article.roberin-article-body.ph-body-article.ph-body-article .ph-body-article__source-link {
  border: 2px solid var(--ph-body-line) !important;
  background-color: var(--ph-body-panel) !important;
  color: var(--ph-body-ink) !important;
  -webkit-text-fill-color: var(--ph-body-ink) !important;
}

.entry-content article.roberin-article-body.ph-body-article.ph-body-article ol.ph-body-article__steps {
  counter-reset: phBodyStep 0 !important;
  list-style: none !important;
}

.entry-content article.roberin-article-body.ph-body-article.ph-body-article ol.ph-body-article__steps > li,
.entry-content article.roberin-article-body.ph-body-article.ph-body-article ul.ph-body-article__checklist > li {
  position: static !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 12px !important;
  margin: 0 !important;
  list-style: none !important;
}

.entry-content article.roberin-article-body.ph-body-article.ph-body-article ol.ph-body-article__steps > li {
  counter-increment: phBodyStep 1 !important;
}

.entry-content article.roberin-article-body.ph-body-article.ph-body-article ol.ph-body-article__steps > li::before,
.entry-content article.roberin-article-body.ph-body-article.ph-body-article ul.ph-body-article__checklist > li::before {
  position: static !important;
  left: auto !important;
  top: auto !important;
  display: inline-grid !important;
  align-self: center !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  margin-top: 0 !important;
  background: var(--ph-body-marker) !important;
  border: 1px solid var(--ph-body-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.entry-content article.roberin-article-body.ph-body-article.ph-body-article ol.ph-body-article__steps > li::before {
  content: counter(phBodyStep) !important;
}

.entry-content article.roberin-article-body.ph-body-article.ph-body-article ul.ph-body-article__checklist > li::before {
  content: "✓" !important;
}

/* Locale overflow guard · Japanese long inline phrases · 2026-06-21 */
article.roberin-article-body.ph-body-article[data-locale="ja"],
article.roberin-article-body.ph-body-article[data-locale="ja"] :where(h2, h3, p, li, a, strong, span, em, code, summary) {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

article.roberin-article-body.ph-body-article[data-locale="ja"] .ph-body-article__grid,
article.roberin-article-body.ph-body-article[data-locale="ja"] .ph-body-article__card,
article.roberin-article-body.ph-body-article[data-locale="ja"] .ph-body-article__formula,
article.roberin-article-body.ph-body-article[data-locale="ja"] .ph-body-article__walk-card,
article.roberin-article-body.ph-body-article[data-locale="ja"] .ph-body-article__notice,
article.roberin-article-body.ph-body-article[data-locale="ja"] .ph-body-article__faq-list details {
  min-width: 0 !important;
}
