/* ROBERIN Biorhythm Calculator v2 - warm retro paper tool UI */
.biorhythm-tool-shell,
.biorhythm-tool-shell *,
.biorhythm-tool-shell *::before,
.biorhythm-tool-shell *::after { box-sizing: border-box; }

.biorhythm-tool-shell {
  --bio-page: #f9f1e7;
  --bio-panel: #f8efe2;
  --bio-card: #fff8ed;
  --bio-soft: #e2edd8;
  --bio-ink: #34281f;
  --bio-muted: #574838;
  --bio-line: #6b5745;
  --bio-accent: #d2aa55;
  --bio-accent-ink: #241c15;
  --bio-focus: #4f7d94;
  --bio-physical: #a94f3f;
  --bio-emotional: #5f7f4c;
  --bio-intellectual: #4f7d94;
  --bio-danger: #9a4638;
  --bio-shadow: 4px 4px 0 rgba(82, 65, 50, 0.24);
  --bio-shadow-soft: 2px 2px 0 rgba(82, 65, 50, 0.16);
  width: min(100%, 1040px);
  margin: 10px auto 0;
  padding: 0 12px;
  color: var(--bio-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.55;
  -webkit-text-fill-color: currentColor;
}

body[data-scheme="dark"] .biorhythm-tool-shell,
body[data-scheme="inverse"] .biorhythm-tool-shell {
  --bio-page: #201811;
  --bio-panel: #2b2119;
  --bio-card: #33271d;
  --bio-soft: #344a32;
  --bio-ink: #f2e4cf;
  --bio-muted: #f0dfc5;
  --bio-line: #a98b6b;
  --bio-accent: #d2aa55;
  --bio-accent-ink: #241c15;
  --bio-focus: #d2aa55;
  --bio-physical: #de806f;
  --bio-emotional: #95b77b;
  --bio-intellectual: #84abc3;
  --bio-danger: #e58b79;
  --bio-shadow: 4px 4px 0 rgba(0, 0, 0, 0.36);
  --bio-shadow-soft: 2px 2px 0 rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  body:not([data-scheme="light"]) .biorhythm-tool-shell:not(.light) {
    --bio-page: #201811;
    --bio-panel: #2b2119;
    --bio-card: #33271d;
    --bio-soft: #344a32;
    --bio-ink: #f2e4cf;
    --bio-muted: #f0dfc5;
    --bio-line: #a98b6b;
    --bio-accent: #d2aa55;
    --bio-accent-ink: #241c15;
    --bio-focus: #d2aa55;
    --bio-physical: #de806f;
    --bio-emotional: #95b77b;
    --bio-intellectual: #84abc3;
    --bio-danger: #e58b79;
    --bio-shadow: 4px 4px 0 rgba(0, 0, 0, 0.36);
    --bio-shadow-soft: 2px 2px 0 rgba(0, 0, 0, 0.28);
  }
}

.biorhythm-tool {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2.2vw, 24px);
  background:
    linear-gradient(rgba(107, 87, 69, 0.045) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(107, 87, 69, 0.038) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--bio-panel);
  border: 2px solid var(--bio-line);
  border-radius: 0;
  box-shadow: var(--bio-shadow);
}

body[data-scheme="dark"] .biorhythm-tool,
body[data-scheme="inverse"] .biorhythm-tool {
  background:
    linear-gradient(rgba(229, 196, 139, 0.055) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(229, 196, 139, 0.045) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--bio-panel);
}

.biorhythm-tool__header {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  text-align: center;
}

.biorhythm-tool__eyebrow {
  justify-self: center;
  padding: 4px 10px;
  color: var(--bio-ink);
  background: var(--bio-soft);
  border: 2px solid var(--bio-line);
  box-shadow: var(--bio-shadow-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.biorhythm-tool__header h2 {
  margin: 0;
  color: var(--bio-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.045em;
  -webkit-text-fill-color: currentColor;
}

.biorhythm-tool__header p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--bio-muted);
  font-size: 14.5px;
  word-break: keep-all;
  -webkit-text-fill-color: currentColor;
}

.biorhythm-tool__quick-actions,
.biorhythm-actions,
.biorhythm-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.biorhythm-tool__quick-actions {
  justify-content: center;
  margin: 0 0 14px;
}

.biorhythm-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  padding: 9px 13px;
  color: var(--bio-ink);
  background: var(--bio-card);
  border: 2px solid var(--bio-line);
  border-radius: 0;
  box-shadow: var(--bio-shadow-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
  -webkit-text-fill-color: currentColor;
}

.biorhythm-button:hover,
.biorhythm-button:focus-visible {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(82, 65, 50, 0.18);
  outline: 3px solid color-mix(in srgb, var(--bio-focus) 45%, transparent);
  outline-offset: 2px;
}

.biorhythm-button:active { transform: translate(2px, 2px); box-shadow: none; }
.biorhythm-button--primary { background: var(--bio-accent); color: var(--bio-accent-ink); min-width: 180px; }
.biorhythm-button--secondary { background: var(--bio-soft); }
.biorhythm-button--chip { min-height: 34px; padding: 7px 10px; font-size: 13px; }

.biorhythm-tool__main {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
  align-items: stretch;
}

.biorhythm-card,
.biorhythm-chart,
.biorhythm-guide {
  min-width: 0;
  padding: clamp(13px, 1.7vw, 18px);
  color: var(--bio-ink);
  background: var(--bio-card);
  border: 2px solid var(--bio-line);
  border-radius: 0;
  box-shadow: var(--bio-shadow-soft);
  -webkit-text-fill-color: currentColor;
}

.biorhythm-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--bio-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  -webkit-text-fill-color: currentColor;
}

.biorhythm-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--bio-accent-ink);
  background: var(--bio-accent);
  border: 2px solid var(--bio-line);
  font-weight: 950;
  line-height: 1;
}

.biorhythm-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.biorhythm-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.biorhythm-field > span {
  color: var(--bio-ink);
  font-size: 13px;
  font-weight: 850;
  -webkit-text-fill-color: currentColor;
}

.biorhythm-field input[type="date"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--bio-ink);
  background: var(--bio-card);
  border: 2px solid var(--bio-line);
  border-radius: 0;
  box-shadow: inset 2px 2px 0 rgba(82, 65, 50, 0.08);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  color-scheme: light;
  -webkit-text-fill-color: currentColor;
}

body[data-scheme="dark"] .biorhythm-field input[type="date"],
body[data-scheme="inverse"] .biorhythm-field input[type="date"] { color-scheme: dark; }

.biorhythm-field input[type="date"]:focus {
  outline: 3px solid color-mix(in srgb, var(--bio-focus) 42%, transparent);
  outline-offset: 2px;
}

.biorhythm-field small,
.biorhythm-note,
.biorhythm-chart__head p,
.biorhythm-guide-card p,
.biorhythm-empty p,
.biorhythm-result__meta,
.biorhythm-result-card small,
.biorhythm-advice p {
  margin: 0;
  color: var(--bio-muted);
  font-size: 13px;
  -webkit-text-fill-color: currentColor;
}

.biorhythm-actions { margin-top: 12px; }
.biorhythm-actions .biorhythm-button { flex: 1 1 150px; }
.biorhythm-note { margin-top: 12px; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--bio-line) 72%, transparent); }
.biorhythm-note strong { color: var(--bio-ink); font-weight: 900; -webkit-text-fill-color: currentColor; }

.biorhythm-result { min-height: 250px; }
.biorhythm-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 236px;
  padding: 18px;
  text-align: center;
  border: 2px dashed color-mix(in srgb, var(--bio-line) 70%, transparent);
  background: color-mix(in srgb, var(--bio-soft) 28%, transparent);
}

.biorhythm-empty__mark { color: var(--bio-line); font-size: 42px; line-height: 1; }
.biorhythm-empty strong { color: var(--bio-ink); font-size: 17px; -webkit-text-fill-color: currentColor; }

.biorhythm-result-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  text-align: center;
  background: var(--bio-soft);
  border: 2px solid var(--bio-line);
}

.biorhythm-result-summary strong {
  color: var(--bio-ink);
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
  font-weight: 950;
  -webkit-text-fill-color: currentColor;
}

.biorhythm-result-summary span { color: var(--bio-muted); font-size: 13px; -webkit-text-fill-color: currentColor; }

.biorhythm-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.biorhythm-result-card {
  min-width: 0;
  padding: 10px;
  background: color-mix(in srgb, var(--bio-card) 86%, var(--bio-soft));
  border: 2px solid var(--bio-line);
}

.biorhythm-result-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.biorhythm-result-card b { color: var(--bio-ink); font-size: 13px; font-weight: 900; -webkit-text-fill-color: currentColor; }
.biorhythm-result-card strong { display: block; margin-bottom: 4px; font-size: 22px; line-height: 1; font-weight: 950; -webkit-text-fill-color: currentColor; }
.biorhythm-result-card[data-rhythm="physical"] strong { color: var(--bio-physical); }
.biorhythm-result-card[data-rhythm="emotional"] strong { color: var(--bio-emotional); }
.biorhythm-result-card[data-rhythm="intellectual"] strong { color: var(--bio-intellectual); }

.biorhythm-meter {
  position: relative;
  height: 10px;
  overflow: hidden;
  margin-top: 8px;
  background: color-mix(in srgb, var(--bio-line) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--bio-line) 65%, transparent);
}
.biorhythm-meter span { display: block; height: 100%; min-width: 2px; background: currentColor; }
.biorhythm-result-card[data-rhythm="physical"] .biorhythm-meter { color: var(--bio-physical); }
.biorhythm-result-card[data-rhythm="emotional"] .biorhythm-meter { color: var(--bio-emotional); }
.biorhythm-result-card[data-rhythm="intellectual"] .biorhythm-meter { color: var(--bio-intellectual); }

.biorhythm-copy { width: 100%; margin-top: 10px; }
.biorhythm-chart,
.biorhythm-guide { margin-top: 14px; }
.biorhythm-chart[hidden] { display: none !important; }
.biorhythm-chart__head { display: grid; gap: 4px; margin-bottom: 10px; }
.biorhythm-chart__head h3 { margin: 0; color: var(--bio-ink); font-size: 16px; font-weight: 900; -webkit-text-fill-color: currentColor; }
.biorhythm-chart__frame { min-width: 0; overflow: hidden; background: color-mix(in srgb, var(--bio-card) 88%, var(--bio-soft)); border: 2px solid var(--bio-line); }
.biorhythm-chart__frame svg { display: block; width: 100%; height: auto; min-height: 210px; color: var(--bio-ink); }
.biorhythm-chart__axis { stroke: color-mix(in srgb, var(--bio-line) 62%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.biorhythm-chart__zero { stroke: var(--bio-line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.biorhythm-chart__line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.biorhythm-chart__line--physical { stroke: var(--bio-physical); }
.biorhythm-chart__line--emotional { stroke: var(--bio-emotional); }
.biorhythm-chart__line--intellectual { stroke: var(--bio-intellectual); }
.biorhythm-chart__today { stroke: var(--bio-accent); stroke-width: 2.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.biorhythm-chart text { fill: var(--bio-muted); font-size: 11px; font-weight: 700; -webkit-text-fill-color: currentColor; }
.biorhythm-legend { justify-content: center; margin-top: 10px; color: var(--bio-muted); font-size: 13px; font-weight: 800; -webkit-text-fill-color: currentColor; }
.biorhythm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.biorhythm-dot { width: 11px; height: 11px; border: 1px solid var(--bio-line); display: inline-block; }
.biorhythm-dot--physical { background: var(--bio-physical); }
.biorhythm-dot--emotional { background: var(--bio-emotional); }
.biorhythm-dot--intellectual { background: var(--bio-intellectual); }

.biorhythm-guide__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.biorhythm-guide-card {
  min-width: 0;
  padding: 11px;
  background: color-mix(in srgb, var(--bio-card) 90%, var(--bio-soft));
  border: 2px solid var(--bio-line);
}
.biorhythm-guide-card strong { display: flex; justify-content: space-between; gap: 8px; color: var(--bio-ink); font-size: 14px; font-weight: 900; -webkit-text-fill-color: currentColor; }
.biorhythm-guide-card span { color: var(--bio-accent-ink); background: var(--bio-accent); border: 1px solid var(--bio-line); padding: 0 6px; }

.biorhythm-advice { display: grid; gap: 8px; margin-top: 12px; }
.biorhythm-advice-item { padding: 10px; background: color-mix(in srgb, var(--bio-soft) 35%, transparent); border: 1px dashed var(--bio-line); }
.biorhythm-advice-item strong { display: block; color: var(--bio-ink); margin-bottom: 3px; font-size: 13.5px; -webkit-text-fill-color: currentColor; }

.biorhythm-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: grid;
  gap: 2px;
  max-width: min(330px, calc(100vw - 32px));
  padding: 10px 12px;
  color: var(--bio-ink);
  background: var(--bio-card);
  border: 2px solid var(--bio-line);
  box-shadow: var(--bio-shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  -webkit-text-fill-color: currentColor;
}
.biorhythm-toast.show { opacity: 1; transform: translateY(0); }
.biorhythm-toast strong { font-size: 13px; font-weight: 900; }
.biorhythm-toast span { color: var(--bio-muted); font-size: 12.5px; }

.biorhythm-tool-shell.is-invalid .biorhythm-card--input { outline: 3px solid color-mix(in srgb, var(--bio-danger) 35%, transparent); outline-offset: 2px; }

@media (max-width: 860px) {
  .biorhythm-tool__main { grid-template-columns: 1fr; }
  .biorhythm-result { min-height: 0; }
  .biorhythm-empty { min-height: 180px; }
}

@media (max-width: 560px) {
  .biorhythm-tool-shell { padding: 0 8px; margin-top: 8px; }
  .biorhythm-tool { padding: 12px; }
  .biorhythm-tool__header { text-align: left; }
  .biorhythm-tool__eyebrow { justify-self: start; }
  .biorhythm-tool__quick-actions { justify-content: flex-start; }
  .biorhythm-button { width: 100%; }
  .biorhythm-button--chip { width: auto; flex: 1 1 calc(50% - 8px); }
  .biorhythm-result-grid,
  .biorhythm-guide__grid { grid-template-columns: 1fr; }
  .biorhythm-chart__frame svg { min-height: 190px; }
  .biorhythm-toast { right: 10px; bottom: 10px; }
}

@media (max-width: 380px) {
  .biorhythm-tool-shell { padding: 0 6px; }
  .biorhythm-tool { padding: 10px; }
  .biorhythm-card,
  .biorhythm-chart,
  .biorhythm-guide { padding: 10px; }
  .biorhythm-button--chip { flex-basis: 100%; }
}

/* Keep after-tool ad visually centered between the tool and article. */
#biorhythm-calculator-container + .roberin-qa-ad-placeholder,
#biorhythm-calculator-container + ins.adsbygoogle {
  margin-bottom: 0 !important;
}

#biorhythm-calculator-container + .roberin-qa-ad-placeholder + article,
#biorhythm-calculator-container + ins.adsbygoogle + script + article {
  margin-top: -16px !important;
}

@media (max-width: 560px) {
  #biorhythm-calculator-container + .roberin-qa-ad-placeholder + article,
  #biorhythm-calculator-container + ins.adsbygoogle + script + article {
    margin-top: -16px !important;
  }
}

/* ROBERIN Biorhythm Calculator Phase 2 article body - PDF reference rhythm with target namespace */
.entry-content article.roberin-article-body.biorhythm-article,
.biorhythm-article {
  --bio-article-panel: #f8efe2;
  --bio-article-card: #fff8ed;
  --bio-article-accent-paper: #e2edd8;
  --bio-article-mustard: #d2aa55;
  --bio-article-mustard-soft: #efdfb7;
  --bio-article-text: #34281f;
  --bio-article-muted: #574838;
  --bio-article-line: #6b5745;
  --bio-article-line-soft: rgba(107, 87, 69, 0.34);
  --bio-article-shadow: rgba(82, 65, 50, 0.22);
  --bio-article-soft-shadow: rgba(82, 65, 50, 0.16);
  --bio-article-focus: #4f7d94;
  position: relative !important;
  z-index: 0 !important;
  display: grid !important;
  gap: 18px !important;
  box-sizing: border-box !important;
  width: min(980px, calc(100vw - 32px)) !important;
  max-width: 980px !important;
  min-width: 0 !important;
  margin: -16px auto clamp(24px, 4vw, 42px) !important;
  padding: clamp(16px, 3vw, 28px) !important;
  color: var(--bio-article-text) !important;
  -webkit-text-fill-color: var(--bio-article-text) !important;
  background:
    linear-gradient(rgba(107, 87, 69, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 87, 69, 0.04) 1px, transparent 1px),
    var(--bio-article-panel) !important;
  background-size: 28px 28px, 28px 28px, auto !important;
  border: 2px solid var(--bio-article-line) !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 var(--bio-article-shadow) !important;
  overflow: hidden !important;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.72 !important;
  word-break: keep-all !important;
}

.biorhythm-article,
.biorhythm-article *,
.biorhythm-article *::before,
.biorhythm-article *::after {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.biorhythm-article :is(p, li, td, th, summary, span, strong, code, h2, h3) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

.bio-article__hero,
.bio-article__section {
  display: grid !important;
  gap: 13px !important;
  min-width: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bio-article__hero {
  padding: 0 0 22px !important;
  border: 0 !important;
  border-bottom: 1px dashed var(--bio-article-line-soft) !important;
}

.bio-article__section {
  padding: 0 !important;
  border: 0 !important;
}

.bio-article__section + .bio-article__section {
  margin-top: 6px !important;
  padding-top: 22px !important;
  border-top: 1px dashed var(--bio-article-line-soft) !important;
}

.bio-article__kicker {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 26px !important;
  margin: 0 !important;
  padding: 5px 9px !important;
  color: var(--bio-article-text) !important;
  -webkit-text-fill-color: var(--bio-article-text) !important;
  background: var(--bio-article-accent-paper) !important;
  border: 1px solid var(--bio-article-line) !important;
  border-radius: 0 !important;
  box-shadow: 2px 2px 0 var(--bio-article-soft-shadow) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
}

.biorhythm-article h2,
.biorhythm-article h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bio-article-text) !important;
  -webkit-text-fill-color: var(--bio-article-text) !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
  border-left-width: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  letter-spacing: -0.02em !important;
  word-break: keep-all !important;
}

.biorhythm-article h2 {
  font-size: clamp(25px, 3vw, 30px) !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
}

.biorhythm-article h3 {
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

.biorhythm-article p,
.biorhythm-article li,
.biorhythm-article summary {
  margin: 0 !important;
  color: var(--bio-article-muted) !important;
  -webkit-text-fill-color: var(--bio-article-muted) !important;
  font-size: 15px !important;
  font-weight: 680 !important;
  line-height: 1.72 !important;
  overflow-wrap: anywhere !important;
}

.biorhythm-article strong {
  color: var(--bio-article-text) !important;
  -webkit-text-fill-color: var(--bio-article-text) !important;
  font-weight: 920 !important;
}

.bio-article__nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

.bio-article__nav a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 6px 10px !important;
  color: var(--bio-article-text) !important;
  -webkit-text-fill-color: var(--bio-article-text) !important;
  text-decoration: none !important;
  background: var(--bio-article-card) !important;
  border: 1px solid var(--bio-article-line) !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.bio-article__nav a:hover,
.bio-article__nav a:focus-visible {
  background: var(--bio-article-mustard-soft) !important;
  outline: 2px solid var(--bio-article-focus) !important;
  outline-offset: 2px !important;
}

.bio-article__grid,
.bio-article__process-grid,
.bio-article__use-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.bio-article__use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.bio-article__card,
.bio-article__process,
.bio-article__use,
.bio-article__notice,
.biorhythm-article details {
  display: grid !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 12px !important;
  color: var(--bio-article-muted) !important;
  -webkit-text-fill-color: var(--bio-article-muted) !important;
  background: var(--bio-article-card) !important;
  border: 1px solid var(--bio-article-line) !important;
  border-radius: 0 !important;
  box-shadow: 3px 3px 0 var(--bio-article-soft-shadow) !important;
}

.bio-article__notice {
  background: rgba(239, 225, 188, 0.64) !important;
  border-style: dashed !important;
}

.bio-article__process {
  background: rgba(226, 237, 216, 0.70) !important;
}

.bio-article__use span,
.bio-article__process span {
  color: var(--bio-article-muted) !important;
  -webkit-text-fill-color: var(--bio-article-muted) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
}

.biorhythm-article code {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 5px 8px !important;
  color: var(--bio-article-text) !important;
  -webkit-text-fill-color: var(--bio-article-text) !important;
  background: var(--bio-article-card) !important;
  border: 1px solid var(--bio-article-line-soft) !important;
  border-radius: 0 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  font-size: 0.92em !important;
  font-weight: 780 !important;
  line-height: 1.48 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.biorhythm-article :is(ul, ol) {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.biorhythm-article ol,
.biorhythm-article ol.bio-article__steps {
  counter-reset: bio-article-step !important;
}

.biorhythm-article :is(ul, ol) > li {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow-wrap: anywhere !important;
}

.biorhythm-article :is(ul, ol) > li::before {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  box-sizing: border-box !important;
  color: var(--bio-article-text) !important;
  -webkit-text-fill-color: var(--bio-article-text) !important;
  border-radius: 0 !important;
}

.biorhythm-article ul > li::before {
  content: "" !important;
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  background: var(--bio-article-mustard) !important;
  border: 1px solid var(--bio-article-line) !important;
  box-shadow: 1px 1px 0 rgba(82, 65, 50, 0.22) !important;
  line-height: 1 !important;
}

.biorhythm-article ol > li,
.biorhythm-article ol.bio-article__steps > li {
  counter-increment: bio-article-step !important;
}

.biorhythm-article ol > li::before,
.biorhythm-article ol.bio-article__steps > li::before {
  content: counter(bio-article-step) !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 20px !important;
  height: 20px !important;
  background: var(--bio-article-mustard-soft) !important;
  border: 1px solid var(--bio-article-line) !important;
  box-shadow: 1px 1px 0 rgba(82, 65, 50, 0.22) !important;
  font-size: 11px !important;
  font-weight: 920 !important;
  line-height: 1 !important;
}

.bio-article__li-text {
  display: block !important;
  min-width: 0 !important;
  align-self: center !important;
}

.biorhythm-article details {
  margin: 0 !important;
}

.biorhythm-article summary {
  display: list-item !important;
  list-style-position: inside !important;
  cursor: pointer !important;
  color: var(--bio-article-text) !important;
  -webkit-text-fill-color: var(--bio-article-text) !important;
  font-weight: 950 !important;
  line-height: 1.45 !important;
}

.biorhythm-article summary::after {
  content: none !important;
  display: none !important;
}

.biorhythm-article details[open] summary {
  margin-bottom: 8px !important;
}

body[data-scheme="dark"] .entry-content article.roberin-article-body.biorhythm-article,
body[data-scheme="inverse"] .entry-content article.roberin-article-body.biorhythm-article,
body[data-scheme="dark"] .biorhythm-article,
body[data-scheme="inverse"] .biorhythm-article {
  --bio-article-panel: #33271d;
  --bio-article-card: #33271d;
  --bio-article-accent-paper: #344a32;
  --bio-article-mustard-soft: #4a3826;
  --bio-article-text: #f2e4cf;
  --bio-article-muted: #f0dfc5;
  --bio-article-line: #a98b6b;
  --bio-article-line-soft: rgba(169, 139, 107, 0.48);
  --bio-article-shadow: rgba(32, 24, 17, 0.52);
  --bio-article-soft-shadow: rgba(32, 24, 17, 0.52);
  --bio-article-focus: #d2aa55;
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
  background-image:
    linear-gradient(rgba(169, 139, 107, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 139, 107, 0.06) 1px, transparent 1px) !important;
  background-color: #33271d !important;
  border-color: #a98b6b !important;
}

body[data-scheme="dark"] .biorhythm-article :is(h2, h3, strong, summary),
body[data-scheme="inverse"] .biorhythm-article :is(h2, h3, strong, summary) {
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-scheme="dark"] .biorhythm-article :is(p, li, span),
body[data-scheme="inverse"] .biorhythm-article :is(p, li, span) {
  color: #f0dfc5 !important;
  -webkit-text-fill-color: #f0dfc5 !important;
}

body[data-scheme="dark"] .bio-article__card,
body[data-scheme="dark"] .bio-article__process,
body[data-scheme="dark"] .bio-article__use,
body[data-scheme="dark"] .bio-article__notice,
body[data-scheme="dark"] .biorhythm-article details,
body[data-scheme="dark"] .bio-article__nav a,
body[data-scheme="inverse"] .bio-article__card,
body[data-scheme="inverse"] .bio-article__process,
body[data-scheme="inverse"] .bio-article__use,
body[data-scheme="inverse"] .bio-article__notice,
body[data-scheme="inverse"] .biorhythm-article details,
body[data-scheme="inverse"] .bio-article__nav a {
  background-color: #33271d !important;
  border-color: rgba(169, 139, 107, 0.72) !important;
  box-shadow: 3px 3px 0 rgba(32, 24, 17, 0.52) !important;
}

body[data-scheme="dark"] .bio-article__notice,
body[data-scheme="dark"] .bio-article__process,
body[data-scheme="inverse"] .bio-article__notice,
body[data-scheme="inverse"] .bio-article__process {
  background-color: rgba(36, 28, 21, 0.56) !important;
}

body[data-scheme="dark"] .biorhythm-article code,
body[data-scheme="inverse"] .biorhythm-article code {
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
  background: #241c15 !important;
  border-color: rgba(169, 139, 107, 0.56) !important;
}

body[data-scheme="dark"] .biorhythm-article :is(ul, ol) > li::before,
body[data-scheme="inverse"] .biorhythm-article :is(ul, ol) > li::before {
  border-color: #a98b6b !important;
}

@media (max-width: 920px) {
  .bio-article__use-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .entry-content article.roberin-article-body.biorhythm-article,
  .biorhythm-article {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-top: -16px !important;
    padding: 12px !important;
    box-shadow: 4px 4px 0 rgba(82, 65, 50, 0.16) !important;
  }

  .bio-article__grid,
  .bio-article__process-grid,
  .bio-article__use-grid {
    grid-template-columns: 1fr !important;
  }

  .biorhythm-article h3 { font-size: 18px !important; }
}

@media (max-width: 370px) {
  .biorhythm-article h2 { font-size: 25.2px !important; }
}

/* Phase 2 QA fix: article-ad spacing and list marker normal-flow override. */
#biorhythm-calculator-container + .roberin-qa-ad-placeholder + article.biorhythm-article,
#biorhythm-calculator-container + ins.adsbygoogle + script + article.biorhythm-article {
  margin-top: 24px !important;
}

.entry-content article.roberin-article-body.biorhythm-article :is(ul, ol) > li::before,
body .entry-content article.roberin-article-body.biorhythm-article :is(ul, ol) > li::before {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  box-sizing: border-box !important;
  color: var(--bio-article-text) !important;
  -webkit-text-fill-color: var(--bio-article-text) !important;
  border-radius: 0 !important;
}

.entry-content article.roberin-article-body.biorhythm-article ul > li::before,
body .entry-content article.roberin-article-body.biorhythm-article ul > li::before {
  content: "" !important;
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  background: var(--bio-article-mustard) !important;
  border: 1px solid var(--bio-article-line) !important;
  box-shadow: 1px 1px 0 rgba(82, 65, 50, 0.22) !important;
  line-height: 1 !important;
}

.entry-content article.roberin-article-body.biorhythm-article ol > li::before,
.entry-content article.roberin-article-body.biorhythm-article ol.bio-article__steps > li::before,
body .entry-content article.roberin-article-body.biorhythm-article ol > li::before,
body .entry-content article.roberin-article-body.biorhythm-article ol.bio-article__steps > li::before {
  content: counter(bio-article-step) !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 20px !important;
  height: 20px !important;
  background: var(--bio-article-mustard-soft) !important;
  border: 1px solid var(--bio-article-line) !important;
  box-shadow: 1px 1px 0 rgba(82, 65, 50, 0.22) !important;
  font-size: 11px !important;
  font-weight: 920 !important;
  line-height: 1 !important;
}

@media (max-width: 560px) {
  #biorhythm-calculator-container + .roberin-qa-ad-placeholder + article.biorhythm-article,
  #biorhythm-calculator-container + ins.adsbygoogle + script + article.biorhythm-article {
    margin-top: 8px !important;
  }
}

/* Phase 2 strict body verifier fix: direct rhythm sections and headings remain transparent. */
.entry-content article.roberin-article-body.biorhythm-article > header.bio-article__hero,
.entry-content article.roberin-article-body.biorhythm-article > section.bio-article__section,
body .entry-content article.roberin-article-body.biorhythm-article > header.bio-article__hero,
body .entry-content article.roberin-article-body.biorhythm-article > section.bio-article__section {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-width: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.entry-content article.roberin-article-body.biorhythm-article > section.bio-article__section + section.bio-article__section,
body .entry-content article.roberin-article-body.biorhythm-article > section.bio-article__section + section.bio-article__section {
  border-top: 0 !important;
  padding-top: 22px !important;
}

.entry-content article.roberin-article-body.biorhythm-article :is(h2, h3),
body .entry-content article.roberin-article-body.biorhythm-article :is(h2, h3),
body[data-scheme="dark"] .entry-content article.roberin-article-body.biorhythm-article :is(h2, h3),
body[data-scheme="inverse"] .entry-content article.roberin-article-body.biorhythm-article :is(h2, h3) {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bio-article-text) !important;
  -webkit-text-fill-color: var(--bio-article-text) !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-width: 0 !important;
  border-left: 0 !important;
  border-left-width: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Phase 2 cross-verifier fix: distinguish actual date value from placeholder text-fill in dark mode. */
.biorhythm-field input[type="date"]::placeholder {
  color: rgba(87, 72, 56, 0.68) !important;
  -webkit-text-fill-color: rgba(87, 72, 56, 0.68) !important;
  font-weight: 620 !important;
  opacity: 1 !important;
}

body[data-scheme="dark"] .biorhythm-field input[type="date"]::placeholder,
body[data-scheme="inverse"] .biorhythm-field input[type="date"]::placeholder {
  color: rgba(242, 228, 207, 0.62) !important;
  -webkit-text-fill-color: rgba(242, 228, 207, 0.62) !important;
  font-weight: 620 !important;
  opacity: 1 !important;
}



/* Phase 2 v8: make the required empty date state visibly lighter than filled date values for dark-mode QA. Chromium date inputs do not reliably expose ::placeholder styles, so the empty required state acts as the placeholder-like visual state. */
.biorhythm-field input[type="date"]:required:invalid {
  color: rgba(87, 72, 56, 0.68) !important;
  -webkit-text-fill-color: rgba(87, 72, 56, 0.68) !important;
  font-weight: 620 !important;
}

.biorhythm-field input[type="date"]:required:valid {
  color: var(--bio-ink) !important;
  -webkit-text-fill-color: var(--bio-ink) !important;
  font-weight: 750 !important;
}

body[data-scheme="dark"] .biorhythm-field input[type="date"]:required:invalid,
body[data-scheme="inverse"] .biorhythm-field input[type="date"]:required:invalid {
  color: rgba(242, 228, 207, 0.62) !important;
  -webkit-text-fill-color: rgba(242, 228, 207, 0.62) !important;
  font-weight: 620 !important;
}

body[data-scheme="dark"] .biorhythm-field input[type="date"]:required:valid,
body[data-scheme="inverse"] .biorhythm-field input[type="date"]:required:valid {
  color: var(--bio-ink) !important;
  -webkit-text-fill-color: var(--bio-ink) !important;
  font-weight: 750 !important;
}


/* Phase 2 v9: restore PDF-reference rhythm dividers. These dashed dividers are not card borders; they are the reference article rhythm and must not be zeroed by anti-overcarded overrides. */
.entry-content article.roberin-article-body.biorhythm-article > header.bio-article__hero,
body .entry-content article.roberin-article-body.biorhythm-article > header.bio-article__hero {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px dashed var(--bio-article-line-soft) !important;
  box-shadow: none !important;
}

.entry-content article.roberin-article-body.biorhythm-article > section.bio-article__section,
body .entry-content article.roberin-article-body.biorhythm-article > section.bio-article__section {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.entry-content article.roberin-article-body.biorhythm-article > section.bio-article__section + section.bio-article__section,
body .entry-content article.roberin-article-body.biorhythm-article > section.bio-article__section + section.bio-article__section {
  margin-top: 6px !important;
  padding-top: 22px !important;
  border-top: 1px dashed var(--bio-article-line-soft) !important;
}
