/* ROBERIN Pi Calculator v2 — Phase 1 tool redesign */
.pi-calculator-container,
.pi-calculator-container *,
.pi-calculator-container *::before,
.pi-calculator-container *::after {
  box-sizing: border-box;
}

.pi-calculator-container {
  --pi-shell: #f8efe2;
  --pi-paper: #fff8ed;
  --pi-panel: #f9f1e7;
  --pi-accent-paper: #e2edd8;
  --pi-text: #34281f;
  --pi-muted: #574838;
  --pi-line: #6b5745;
  --pi-emphasis: #7a412f;
  --pi-mustard: #d2aa55;
  --pi-focus: #4f7d94;
  --pi-danger: #8d4937;
  --pi-shadow: rgba(82, 65, 50, 0.28);
  --pi-soft-shadow: rgba(82, 65, 50, 0.15);
  --pi-grid-line: rgba(107, 87, 69, 0.13);

  width: min(100%, 960px);
  max-width: calc(100vw - 24px);
  min-width: 0;
  margin: 12px auto 24px;
  padding: clamp(14px, 2.4vw, 22px);
  color: var(--pi-text);
  background:
    linear-gradient(90deg, var(--pi-grid-line) 1px, transparent 1px),
    linear-gradient(0deg, var(--pi-grid-line) 1px, transparent 1px),
    var(--pi-shell);
  background-size: 18px 18px, 18px 18px, auto;
  border: 2px solid var(--pi-line);
  border-radius: 14px;
  box-shadow: 8px 10px 0 var(--pi-shadow);
  font-family: 'Noto Sans KR', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  overflow: hidden;
  isolation: isolate;
}

body[data-scheme="dark"] .pi-calculator-container,
body[data-scheme="inverse"] .pi-calculator-container,
html[data-scheme="dark"] .pi-calculator-container,
html[data-scheme="inverse"] .pi-calculator-container {
  --pi-shell: #2b2119;
  --pi-paper: #241c15;
  --pi-panel: #33271d;
  --pi-accent-paper: #344a32;
  --pi-text: #f2e4cf;
  --pi-muted: #f0dfc5;
  --pi-line: #a98b6b;
  --pi-emphasis: #f0dfc5;
  --pi-mustard: #d2aa55;
  --pi-focus: #d2aa55;
  --pi-danger: #e5a889;
  --pi-shadow: rgba(0, 0, 0, 0.34);
  --pi-soft-shadow: rgba(0, 0, 0, 0.22);
  --pi-grid-line: rgba(169, 139, 107, 0.18);
}

.pi-tool-header {
  display: grid;
  gap: 7px;
  padding: 0 0 14px;
  border-bottom: 2px dashed var(--pi-line);
}

.pi-tool-kicker {
  width: fit-content;
  margin: 0;
  padding: 4px 9px;
  color: var(--pi-emphasis);
  background: var(--pi-accent-paper);
  border: 1px solid var(--pi-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pi-tool-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pi-tool-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--pi-text);
  background: var(--pi-paper);
  border: 2px solid var(--pi-line);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--pi-soft-shadow);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.pi-tool-header h2 {
  margin: 0;
  color: var(--pi-text);
  -webkit-text-fill-color: currentColor;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.pi-tool-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--pi-muted);
  -webkit-text-fill-color: currentColor;
  font-size: clamp(14px, 1.9vw, 16px);
  font-weight: 650;
}

.pi-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
  min-width: 0;
}

.pi-tool-card {
  min-width: 0;
  padding: clamp(12px, 2vw, 16px);
  color: var(--pi-text);
  background: var(--pi-panel);
  border: 2px solid var(--pi-line);
  border-radius: 12px;
  box-shadow: 5px 6px 0 var(--pi-soft-shadow);
}

.pi-tool-card h3 {
  margin: 0 0 10px;
  color: var(--pi-text);
  -webkit-text-fill-color: currentColor;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.pi-card-note,
.pi-result-helper,
.pi-input-helper {
  margin: 0;
  color: var(--pi-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 13px;
  font-weight: 600;
}

.pi-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  min-width: 0;
}

.pi-input-group,
.pi-unit-group {
  min-width: 0;
}

.pi-input-group label,
.pi-unit-group label {
  display: grid;
  gap: 5px;
  color: var(--pi-text);
  -webkit-text-fill-color: currentColor;
  font-size: 13px;
  font-weight: 850;
}

.pi-input-label-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.pi-input-symbol {
  color: var(--pi-emphasis);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 900;
  white-space: nowrap;
}

.pi-input-group input,
.pi-unit-group input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 11px;
  color: var(--pi-text);
  -webkit-text-fill-color: currentColor;
  background: var(--pi-paper);
  border: 2px solid var(--pi-line);
  border-radius: 10px;
  box-shadow: inset 2px 2px 0 var(--pi-soft-shadow);
  font: 800 16px/1.2 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pi-input-group input::placeholder,
.pi-unit-group input::placeholder {
  color: var(--pi-muted);
  -webkit-text-fill-color: currentColor;
  opacity: 0.7;
}

.pi-input-group input:focus,
.pi-unit-group input:focus,
.pi-tool-button:focus-visible,
.pi-copy-button:focus-visible {
  outline: 3px solid var(--pi-focus);
  outline-offset: 2px;
}

.pi-unit-row {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  min-width: 0;
}

.pi-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pi-tool-button,
.pi-copy-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 2px solid var(--pi-line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--pi-text);
  -webkit-text-fill-color: currentColor;
  background: var(--pi-paper);
  box-shadow: 3px 3px 0 var(--pi-soft-shadow);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.pi-tool-button {
  flex: 1 1 138px;
  padding: 10px 14px;
  font-size: 14px;
}

.pi-tool-button--primary {
  color: #241c15;
  -webkit-text-fill-color: #241c15;
  background: var(--pi-mustard);
}

.pi-tool-button:hover,
.pi-copy-button:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--pi-soft-shadow);
}

.pi-tool-button:active,
.pi-copy-button:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.pi-tool-message {
  min-height: 24px;
  margin-top: 10px;
  color: var(--pi-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 13px;
  font-weight: 750;
}

.pi-tool-message.is-error {
  color: var(--pi-danger);
  -webkit-text-fill-color: currentColor;
}

.pi-result-panel {
  display: grid;
  gap: 10px;
}

.pi-result-summary {
  display: grid;
  gap: 3px;
  padding: 12px;
  color: var(--pi-text);
  background: var(--pi-paper);
  border: 2px solid var(--pi-line);
  border-radius: 10px;
  box-shadow: inset 2px 2px 0 var(--pi-soft-shadow);
}

.pi-result-summary strong {
  color: var(--pi-emphasis);
  -webkit-text-fill-color: currentColor;
  font-size: 13px;
  font-weight: 950;
}

.pi-result-summary span {
  color: var(--pi-text);
  -webkit-text-fill-color: currentColor;
  font-size: clamp(18px, 2.7vw, 24px);
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
  word-break: break-word;
}

.pi-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

.pi-result-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  background: var(--pi-paper);
  border: 1.5px solid var(--pi-line);
  border-radius: 10px;
}

.pi-result-text {
  min-width: 0;
}

.pi-result-label {
  display: block;
  color: var(--pi-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 12px;
  font-weight: 850;
}

.pi-result-value {
  display: block;
  margin-top: 2px;
  color: var(--pi-text);
  -webkit-text-fill-color: currentColor;
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-weight: 900;
  word-break: break-word;
}

.pi-copy-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  color: var(--pi-emphasis);
}

.pi-copy-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.pi-copy-button[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.pi-formula-card {
  margin-top: 14px;
  padding: 12px;
  color: var(--pi-muted);
  background: var(--pi-accent-paper);
  background: color-mix(in srgb, var(--pi-accent-paper) 55%, var(--pi-panel));
  border: 1.5px dashed var(--pi-line);
  border-radius: 10px;
}

.pi-formula-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--pi-text);
  -webkit-text-fill-color: currentColor;
  font-size: 13px;
  font-weight: 950;
}

.pi-formula-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 800 13px/1.35 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pi-formula-list li {
  min-width: 0;
}

.pi-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .pi-calculator-container {
    max-width: calc(100vw - 20px);
    margin-top: 10px;
    box-shadow: 5px 6px 0 var(--pi-shadow);
  }

  .pi-tool-layout,
  .pi-input-grid,
  .pi-result-grid {
    grid-template-columns: 1fr;
  }

  .pi-tool-card {
    box-shadow: 4px 4px 0 var(--pi-soft-shadow);
  }
}

@media (max-width: 420px) {
  .pi-calculator-container {
    max-width: calc(100vw - 16px);
    padding: 12px;
    border-radius: 12px;
  }

  .pi-tool-title-row {
    align-items: flex-start;
  }

  .pi-tool-mark {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .pi-unit-row {
    grid-template-columns: 1fr;
  }

  .pi-tool-actions {
    flex-direction: column;
  }

  .pi-tool-button {
    width: 100%;
    flex-basis: auto;
  }

  .pi-result-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Phase 2 article, caution, and ad cleanup */
.roberin-pi-ad,
.pi-calculator-article,
.pi-calculator-article *,
.pi-calculator-article *::before,
.pi-calculator-article *::after {
  box-sizing: border-box;
}

.roberin-pi-ad {
  --pi-ad-shell: #f8efe2;
  --pi-ad-panel: #fff8ed;
  --pi-ad-text: #574838;
  --pi-ad-line: #6b5745;
  --pi-ad-shadow: rgba(82, 65, 50, 0.14);

  width: min(100%, 728px);
  max-width: calc(100vw - 24px);
  min-width: 0;
  min-height: 90px;
  margin: 18px auto 24px;
  padding: 8px;
  color: var(--pi-ad-text);
  -webkit-text-fill-color: currentColor;
  background: var(--pi-ad-shell);
  border: 1.5px dashed var(--pi-ad-line);
  border-radius: 12px;
  box-shadow: 4px 5px 0 var(--pi-ad-shadow);
  overflow: hidden;
  text-align: center;
}

.roberin-pi-ad ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  max-width: 728px !important;
  min-width: 0 !important;
  min-height: 90px !important;
  margin: 0 auto !important;
  background: var(--pi-ad-panel);
  border-radius: 8px;
  overflow: hidden;
}

.pi-calculator-article {
  --pi-article-shell: #f8efe2;
  --pi-article-paper: #fff8ed;
  --pi-article-panel: #f9f1e7;
  --pi-article-accent: #e2edd8;
  --pi-article-text: #34281f;
  --pi-article-muted: #574838;
  --pi-article-line: #6b5745;
  --pi-article-emphasis: #7a412f;
  --pi-article-mustard: #d2aa55;
  --pi-article-focus: #4f7d94;
  --pi-article-shadow: rgba(82, 65, 50, 0.22);
  --pi-article-soft-shadow: rgba(82, 65, 50, 0.12);
  --pi-article-grid-line: rgba(107, 87, 69, 0.12);

  width: min(100%, 960px);
  max-width: calc(100vw - 24px);
  min-width: 0;
  margin: 24px auto;
  padding: clamp(16px, 2.6vw, 26px);
  color: var(--pi-article-text);
  -webkit-text-fill-color: currentColor;
  background:
    linear-gradient(90deg, var(--pi-article-grid-line) 1px, transparent 1px),
    linear-gradient(0deg, var(--pi-article-grid-line) 1px, transparent 1px),
    var(--pi-article-shell);
  background-size: 20px 20px, 20px 20px, auto;
  border: 2px solid var(--pi-article-line);
  border-radius: 14px;
  box-shadow: 8px 10px 0 var(--pi-article-shadow);
  font-family: 'Noto Sans KR', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.68;
  overflow: hidden;
}

body[data-scheme="dark"] .roberin-pi-ad,
body[data-scheme="inverse"] .roberin-pi-ad,
html[data-scheme="dark"] .roberin-pi-ad,
html[data-scheme="inverse"] .roberin-pi-ad {
  --pi-ad-shell: #2b2119;
  --pi-ad-panel: #241c15;
  --pi-ad-text: #f0dfc5;
  --pi-ad-line: #a98b6b;
  --pi-ad-shadow: rgba(0, 0, 0, 0.24);
}

body[data-scheme="dark"] .pi-calculator-article,
body[data-scheme="inverse"] .pi-calculator-article,
html[data-scheme="dark"] .pi-calculator-article,
html[data-scheme="inverse"] .pi-calculator-article {
  --pi-article-shell: #2b2119;
  --pi-article-paper: #241c15;
  --pi-article-panel: #33271d;
  --pi-article-accent: #344a32;
  --pi-article-text: #f2e4cf;
  --pi-article-muted: #f0dfc5;
  --pi-article-line: #a98b6b;
  --pi-article-emphasis: #f0dfc5;
  --pi-article-mustard: #d2aa55;
  --pi-article-focus: #d2aa55;
  --pi-article-shadow: rgba(0, 0, 0, 0.34);
  --pi-article-soft-shadow: rgba(0, 0, 0, 0.22);
  --pi-article-grid-line: rgba(169, 139, 107, 0.17);
}

.pi-article-lead {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 2px dashed var(--pi-article-line);
}

.pi-article-kicker {
  width: fit-content;
  margin: 0;
  padding: 4px 9px;
  color: var(--pi-article-emphasis);
  -webkit-text-fill-color: currentColor;
  background: var(--pi-article-accent);
  border: 1px solid var(--pi-article-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.pi-article-lead p,
.pi-calculator-article p {
  margin: 0;
  color: var(--pi-article-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 15.5px;
  font-weight: 600;
}

.pi-article-lead p {
  max-width: 820px;
  color: var(--pi-article-text);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 750;
}

.pi-article-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.pi-article-section + .pi-article-section {
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1.5px dashed color-mix(in srgb, var(--pi-article-line) 65%, transparent);
}

.pi-calculator-article h2 {
  margin: 0;
  padding: 0;
  color: var(--pi-article-text);
  -webkit-text-fill-color: currentColor;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.pi-calculator-article h3 {
  margin: 0;
  color: var(--pi-article-emphasis);
  -webkit-text-fill-color: currentColor;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.pi-feature-grid,
.pi-example-grid,
.pi-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.pi-feature-card,
.pi-example-card,
.pi-faq-item {
  min-width: 0;
  padding: 14px;
  color: var(--pi-article-text);
  -webkit-text-fill-color: currentColor;
  background: var(--pi-article-panel);
  border: 1.5px solid var(--pi-article-line);
  border-radius: 12px;
  box-shadow: 4px 5px 0 var(--pi-article-soft-shadow);
}

.pi-feature-card strong,
.pi-example-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--pi-article-text);
  -webkit-text-fill-color: currentColor;
  font-size: 15px;
  font-weight: 950;
}

.pi-formula-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  color: var(--pi-article-text);
  -webkit-text-fill-color: currentColor;
  background: var(--pi-article-paper);
  border: 2px solid var(--pi-article-line);
  border-radius: 12px;
  box-shadow: inset 3px 3px 0 var(--pi-article-soft-shadow);
}

.pi-formula-panel code,
.pi-example-card code,
.pi-calculator-article kbd {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  color: var(--pi-article-text);
  -webkit-text-fill-color: currentColor;
  background: var(--pi-article-panel);
  border: 1px solid var(--pi-article-line);
  border-radius: 7px;
  font: 850 0.95em/1.35 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}

.pi-calculator-article ul,
.pi-calculator-article ol {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.pi-calculator-article li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 28px;
  color: var(--pi-article-muted);
  -webkit-text-fill-color: currentColor;
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.pi-calculator-article ul > li::before,
.pi-calculator-article ol > li::before {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  align-self: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: #241c15;
  -webkit-text-fill-color: #241c15;
  background: var(--pi-article-mustard);
  border: 1px solid var(--pi-article-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.pi-calculator-article ul > li::before {
  content: "π";
  font-family: Georgia, 'Times New Roman', serif;
}

.pi-calculator-article ol {
  counter-reset: pi-step;
}

.pi-calculator-article ol > li {
  counter-increment: pi-step;
}

.pi-calculator-article ol > li::before {
  content: counter(pi-step);
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pi-caution-box {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  color: var(--pi-article-text);
  -webkit-text-fill-color: currentColor;
  background: color-mix(in srgb, var(--pi-article-accent) 56%, var(--pi-article-panel));
  border: 2px solid var(--pi-article-line);
  border-radius: 12px;
  box-shadow: 4px 5px 0 var(--pi-article-soft-shadow);
}

.pi-caution-box strong {
  color: var(--pi-article-emphasis);
  -webkit-text-fill-color: currentColor;
  font-size: 15px;
  font-weight: 950;
}

.pi-faq-item h3 {
  margin-bottom: 7px;
  color: var(--pi-article-text);
}

.pi-calculator-article a {
  color: var(--pi-article-emphasis);
  -webkit-text-fill-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.pi-calculator-article a:focus-visible {
  outline: 3px solid var(--pi-article-focus);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 760px) {
  .pi-calculator-article {
    max-width: calc(100vw - 20px);
    margin: 18px auto;
    box-shadow: 5px 6px 0 var(--pi-article-shadow);
  }

  .pi-feature-grid,
  .pi-example-grid,
  .pi-faq-list {
    grid-template-columns: 1fr;
  }

  .roberin-pi-ad {
    max-width: calc(100vw - 20px);
    margin: 16px auto 20px;
    box-shadow: 3px 4px 0 var(--pi-ad-shadow);
  }
}

@media (max-width: 420px) {
  .pi-calculator-article {
    max-width: calc(100vw - 16px);
    padding: 14px;
    border-radius: 12px;
  }

  .pi-calculator-article h2 {
    font-size: 26px;
  }

  .pi-calculator-article h3 {
    font-size: 17px;
  }

  .pi-feature-card,
  .pi-example-card,
  .pi-faq-item,
  .pi-formula-panel,
  .pi-caution-box {
    padding: 12px;
  }

  .roberin-pi-ad {
    max-width: calc(100vw - 16px);
    padding: 6px;
  }
}

@media (max-width: 370px) {
  .pi-calculator-article h2 {
    font-size: 25.2px;
  }

  .pi-calculator-article p,
  .pi-calculator-article li {
    font-size: 14.5px;
  }
}

/* Phase 2 hard gate: keep article heading/list styles above later theme article rules. */
body .entry-content .roberin-article-body.pi-calculator-article h2,
body .cs-site-content .roberin-article-body.pi-calculator-article h2,
body .roberin-article-body.pi-calculator-article h2 {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--pi-article-text) !important;
  -webkit-text-fill-color: currentColor !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-width: 0 !important;
  box-shadow: none !important;
  font-size: 30px !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em !important;
}

body .entry-content .roberin-article-body.pi-calculator-article ul,
body .entry-content .roberin-article-body.pi-calculator-article ol,
body .cs-site-content .roberin-article-body.pi-calculator-article ul,
body .cs-site-content .roberin-article-body.pi-calculator-article ol,
body .roberin-article-body.pi-calculator-article ul,
body .roberin-article-body.pi-calculator-article ol {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  list-style-image: none !important;
}

body .entry-content .roberin-article-body.pi-calculator-article li,
body .cs-site-content .roberin-article-body.pi-calculator-article li,
body .roberin-article-body.pi-calculator-article li {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
  min-height: 28px !important;
  padding-left: 0 !important;
  color: var(--pi-article-muted) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  overflow-wrap: anywhere !important;
}

body .entry-content .roberin-article-body.pi-calculator-article ul > li::before,
body .entry-content .roberin-article-body.pi-calculator-article ol > li::before,
body .cs-site-content .roberin-article-body.pi-calculator-article ul > li::before,
body .cs-site-content .roberin-article-body.pi-calculator-article ol > li::before,
body .roberin-article-body.pi-calculator-article ul > li::before,
body .roberin-article-body.pi-calculator-article ol > li::before {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #241c15 !important;
  -webkit-text-fill-color: #241c15 !important;
  background: var(--pi-article-mustard) !important;
  border: 1px solid var(--pi-article-line) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body .entry-content .roberin-article-body.pi-calculator-article ul > li::before,
body .cs-site-content .roberin-article-body.pi-calculator-article ul > li::before,
body .roberin-article-body.pi-calculator-article ul > li::before {
  content: "π" !important;
  font-family: Georgia, 'Times New Roman', serif !important;
}

body .entry-content .roberin-article-body.pi-calculator-article ol,
body .cs-site-content .roberin-article-body.pi-calculator-article ol,
body .roberin-article-body.pi-calculator-article ol {
  counter-reset: pi-step !important;
}

body .entry-content .roberin-article-body.pi-calculator-article ol > li,
body .cs-site-content .roberin-article-body.pi-calculator-article ol > li,
body .roberin-article-body.pi-calculator-article ol > li {
  counter-increment: pi-step !important;
}

body .entry-content .roberin-article-body.pi-calculator-article ol > li::before,
body .cs-site-content .roberin-article-body.pi-calculator-article ol > li::before,
body .roberin-article-body.pi-calculator-article ol > li::before {
  content: counter(pi-step) !important;
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, monospace !important;
}

@media (max-width: 420px) {
  body .entry-content .roberin-article-body.pi-calculator-article h2,
  body .cs-site-content .roberin-article-body.pi-calculator-article h2,
  body .roberin-article-body.pi-calculator-article h2 {
    font-size: 26px !important;
  }
}

@media (max-width: 370px) {
  body .entry-content .roberin-article-body.pi-calculator-article h2,
  body .cs-site-content .roberin-article-body.pi-calculator-article h2,
  body .roberin-article-body.pi-calculator-article h2 {
    font-size: 25.2px !important;
  }
}

/* 2026-05-12 radius hard gate: ROBERIN tool/detail uses square retro paper boxes by default. */
body .pi-calculator-container,
body .pi-calculator-container .pi-tool-header,
body .pi-calculator-container .pi-tool-kicker,
body .pi-calculator-container .pi-tool-mark,
body .pi-calculator-container .pi-tool-card,
body .pi-calculator-container .pi-input-group input,
body .pi-calculator-container .pi-unit-group input,
body .pi-calculator-container .pi-tool-button,
body .pi-calculator-container .pi-copy-button,
body .pi-calculator-container .pi-tool-message,
body .pi-calculator-container .pi-result-summary,
body .pi-calculator-container .pi-result-item,
body .pi-calculator-container .pi-result-value,
body .pi-calculator-container .pi-formula-card,
body .pi-calculator-container .pi-formula-list li,
body .roberin-pi-ad,
body .roberin-pi-ad ins.adsbygoogle,
body .roberin-article-body.pi-calculator-article,
body .roberin-article-body.pi-calculator-article .pi-article-kicker,
body .roberin-article-body.pi-calculator-article .pi-feature-card,
body .roberin-article-body.pi-calculator-article .pi-example-card,
body .roberin-article-body.pi-calculator-article .pi-faq-item,
body .roberin-article-body.pi-calculator-article .pi-formula-panel,
body .roberin-article-body.pi-calculator-article .pi-formula-panel code,
body .roberin-article-body.pi-calculator-article .pi-example-card code,
body .roberin-article-body.pi-calculator-article kbd,
body .roberin-article-body.pi-calculator-article .pi-caution-box,
body .roberin-article-body.pi-calculator-article a:focus-visible {
  border-radius: 0 !important;
}

/* Allowed exception: list markers are functional circular indicators, not pill controls. */
body .entry-content .roberin-article-body.pi-calculator-article ul > li::before,
body .entry-content .roberin-article-body.pi-calculator-article ol > li::before,
body .cs-site-content .roberin-article-body.pi-calculator-article ul > li::before,
body .cs-site-content .roberin-article-body.pi-calculator-article ol > li::before,
body .roberin-article-body.pi-calculator-article ul > li::before,
body .roberin-article-body.pi-calculator-article ol > li::before {
  border-radius: 50% !important;
}
