/* ROBERIN sleep time calculator redesign - Phase 1 v2, 2026-05-30 */
body.postid-3378 {
  --sleep-paper: #fff7e8;
  --sleep-paper-soft: #fbf0dc;
  --sleep-ink: #2b2119;
  --sleep-muted: #67584a;
  --sleep-line: #6b5745;
  --sleep-line-soft: rgba(107, 87, 69, 0.26);
  --sleep-green: #e3efd2;
  --sleep-green-ink: #2f4e2e;
  --sleep-blue: #dfeef8;
  --sleep-blue-ink: #28455a;
  --sleep-amber: #f7df9d;
  --sleep-amber-ink: #4d3615;
  --sleep-red: #a43e2d;
  --sleep-white: #fffdf7;
  --sleep-shadow: 4px 4px 0 rgba(72, 55, 40, 0.22);
  --sleep-shadow-soft: 2px 2px 0 rgba(72, 55, 40, 0.14);
  --sleep-main-grid-columns: minmax(0, 0.92fr) minmax(0, 1.12fr) minmax(0, 0.88fr);
  --sleep-main-grid-gap: 8px;
  background:
    linear-gradient(90deg, rgba(107, 87, 69, 0.025) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(107, 87, 69, 0.022) 1px, transparent 1px) 0 0 / 18px 18px,
    #faf2e8;
}

body.postid-3378 .cs-site-content > .cs-container,
body.postid-3378 .cs-main-content,
body.postid-3378 .cs-content-area,
body.postid-3378 .cs-entry__container,
body.postid-3378 .cs-entry__content-wrap {
  width: 100%;
  max-width: none;
}

body.postid-3378 .cs-breadcrumbs,
body.postid-3378 .cs-entry__header,
body.postid-3378 .sleep-time-wrapper {
  width: min(950px, calc(100vw - 32px));
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.postid-3378 .cs-entry__header {
  margin-top: 18px;
  margin-bottom: 14px;
  text-align: left;
}

body.postid-3378 .cs-entry__title {
  color: var(--sleep-ink);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.sleep-time-wrapper,
.sleep-time-wrapper *,
.sleep-time-wrapper *::before,
.sleep-time-wrapper *::after {
  box-sizing: border-box;
}

.sleep-time-wrapper {
  margin-top: 0;
  margin-bottom: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--sleep-ink);
}

.sleep-time-container {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: 14px;
  overflow: hidden;
  color: var(--sleep-ink);
  background: var(--sleep-paper);
  border: 2px solid var(--sleep-line);
  border-radius: 0;
  box-shadow: var(--sleep-shadow);
  line-height: 1.52;
}

.sleep-time-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(107, 87, 69, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 87, 69, 0.045) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.sleep-time-container br {
  display: none !important;
}

.sleep-time-container .calculator-header {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0 0 10px;
  text-align: left;
  border-bottom: 2px solid var(--sleep-line);
}

.sleep-time-container .calculator-header h2 {
  margin: 0;
  color: var(--sleep-ink);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.14;
  font-weight: 950;
  letter-spacing: -0.045em;
  text-shadow: none;
  word-break: keep-all;
}

.sleep-time-container .subtitle {
  max-width: 680px;
  margin: 0;
  color: var(--sleep-muted);
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 700;
  word-break: keep-all;
}

.sleep-time-container .quick-actions,
.sleep-time-container .calculator-main {
  display: grid;
  grid-template-columns: var(--sleep-main-grid-columns);
  gap: var(--sleep-main-grid-gap);
}

.sleep-time-container .quick-actions {
  margin: 0 0 10px;
}

.sleep-time-container .btn-quick,
.sleep-time-container .btn-reset,
.sleep-time-container .btn-calculate,
.sleep-time-container .btn-copy {
  appearance: none;
  border-radius: 0;
  font-family: inherit;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, color 120ms ease;
}

.sleep-time-container .btn-quick,
.sleep-time-container .btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--sleep-ink);
  background: var(--sleep-green);
  border: 1px solid var(--sleep-line);
  box-shadow: var(--sleep-shadow-soft);
  font-size: 13.5px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
}

.sleep-time-container .btn-reset {
  background: #f3dfd3;
  color: #743528;
}

.sleep-time-container .btn-calculate,
.sleep-time-container .btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  color: #241c15;
  background: var(--sleep-amber);
  border: 2px solid var(--sleep-line);
  box-shadow: var(--sleep-shadow);
  font-size: 14.5px;
  line-height: 1.1;
  font-weight: 950;
  white-space: nowrap;
}

.sleep-time-container .btn-copy {
  min-height: 36px;
  margin-top: 8px;
  background: var(--sleep-green);
  color: var(--sleep-green-ink);
  border-width: 1px;
  box-shadow: var(--sleep-shadow-soft);
  font-size: 13.5px;
}

.sleep-time-container .btn-quick:hover,
.sleep-time-container .btn-reset:hover,
.sleep-time-container .btn-calculate:hover,
.sleep-time-container .btn-copy:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(72, 55, 40, 0.16);
}

.sleep-time-container .btn-quick:focus-visible,
.sleep-time-container .btn-reset:focus-visible,
.sleep-time-container .btn-calculate:focus-visible,
.sleep-time-container .btn-copy:focus-visible,
.sleep-time-container .number-input:focus-visible {
  outline: 3px solid #d6a62b;
  outline-offset: 2px;
}

.sleep-time-container .input-section,
.sleep-time-container .result-section,
.sleep-time-container .special-section,
.sleep-time-container .info-card {
  min-width: 0;
  background: var(--sleep-white);
  border: 1px solid var(--sleep-line);
  border-radius: 0;
  box-shadow: var(--sleep-shadow-soft);
}

.sleep-time-container .input-section,
.sleep-time-container .result-section,
.sleep-time-container .special-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.sleep-time-container .section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--sleep-ink);
  font-size: 15.5px;
  line-height: 1.22;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.sleep-time-container .input-group {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
}

.sleep-time-container .sleep-time-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.sleep-time-container label {
  color: var(--sleep-muted);
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 900;
}

.sleep-time-container .number-input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--sleep-ink);
  -webkit-text-fill-color: var(--sleep-ink);
  background: var(--sleep-paper-soft);
  border: 1px solid var(--sleep-line);
  border-radius: 0;
  box-shadow: inset 2px 2px 0 rgba(107, 87, 69, 0.08);
  font: inherit;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 900;
}

.sleep-time-container .number-input::placeholder {
  color: rgba(103, 88, 74, 0.72);
  -webkit-text-fill-color: rgba(103, 88, 74, 0.72);
}

.sleep-time-input-note,
.sleep-time-basis-note {
  margin: 0;
  color: var(--sleep-muted);
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 700;
  word-break: keep-all;
}

.sleep-time-container .result-display {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.sleep-time-container .result-display[hidden],
.sleep-time-container .no-result[hidden] {
  display: none !important;
}

.sleep-time-container .main-result,
.sleep-time-container .no-result {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 104px;
  padding: 12px;
  color: var(--sleep-ink);
  background: var(--sleep-green);
  border: 1px solid var(--sleep-line);
  box-shadow: inset 2px 2px 0 rgba(107, 87, 69, 0.12);
  text-align: center;
}

.sleep-time-container .no-result strong {
  color: var(--sleep-ink);
  font-size: 15px;
  font-weight: 950;
}

.sleep-time-container .no-result span,
.sleep-time-container .result-label,
.sleep-time-container #sleepPrimaryMeta {
  color: var(--sleep-muted);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 800;
}

.sleep-time-container #sleepPrimaryTime {
  color: var(--sleep-green-ink);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.sleep-time-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.sleep-time-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
  min-width: 0;
  padding: 8px;
  color: var(--sleep-ink);
  background: var(--sleep-paper-soft);
  border: 1px dashed var(--sleep-line-soft);
}

.sleep-time-item.is-recommended {
  border-style: solid;
  background: var(--sleep-blue);
}

.sleep-time-duration,
.sleep-time-tag {
  min-width: 0;
  color: var(--sleep-muted);
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 850;
}

.sleep-time-value {
  grid-row: span 2;
  color: var(--sleep-blue-ink);
  font-size: 18px;
  line-height: 1;
  font-weight: 1000;
}

.sleep-time-basis {
  display: grid;
  gap: 6px;
  margin: 0;
}

.sleep-time-basis > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: var(--sleep-paper-soft);
  border: 1px dashed var(--sleep-line-soft);
}

.sleep-time-basis dt,
.sleep-time-basis dd {
  margin: 0;
  min-width: 0;
}

.sleep-time-basis dt {
  color: var(--sleep-muted);
  font-size: 12.5px;
  font-weight: 850;
}

.sleep-time-basis dd {
  color: var(--sleep-ink);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.sleep-time-container .info-section {
  display: grid;
  grid-template-columns: var(--sleep-main-grid-columns);
  gap: var(--sleep-main-grid-gap);
  margin-top: var(--sleep-main-grid-gap);
  align-items: stretch;
}

.sleep-time-container .info-card {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.sleep-time-container .info-card strong {
  color: var(--sleep-ink);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
}

.sleep-time-container .info-card span {
  color: var(--sleep-muted);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 700;
}

.sleep-time-status {
  display: none;
  margin-top: 10px;
  padding: 9px 10px;
  color: var(--sleep-ink);
  background: var(--sleep-blue);
  border: 1px solid var(--sleep-line);
  box-shadow: var(--sleep-shadow-soft);
  font-size: 13px;
  font-weight: 850;
}

.sleep-time-status.show {
  display: block;
}

.sleep-time-status[data-type="success"] { background: var(--sleep-green); }
.sleep-time-status[data-type="warning"] { background: #f3dfd3; color: #743528; }

body[data-scheme="dark"].postid-3378,
body[data-scheme="inverse"].postid-3378,
body.postid-3378.roberin-dark-mode {
  --sleep-paper: #2b2119;
  --sleep-paper-soft: #241c15;
  --sleep-ink: #f2e4cf;
  --sleep-muted: #f0dfc5;
  --sleep-line: #a98b6b;
  --sleep-line-soft: rgba(169, 139, 107, 0.34);
  --sleep-green: #344a32;
  --sleep-green-ink: #f2e4cf;
  --sleep-blue: #243746;
  --sleep-blue-ink: #f2e4cf;
  --sleep-amber: #d2aa55;
  --sleep-amber-ink: #241c15;
  --sleep-white: #33271d;
  --sleep-shadow: 4px 4px 0 rgba(0, 0, 0, 0.34);
  --sleep-shadow-soft: 2px 2px 0 rgba(0, 0, 0, 0.22);
  background:
    linear-gradient(90deg, rgba(210, 170, 85, 0.035) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(210, 170, 85, 0.03) 1px, transparent 1px) 0 0 / 18px 18px,
    #201811;
}

body[data-scheme="dark"].postid-3378 .cs-entry__title,
body[data-scheme="inverse"].postid-3378 .cs-entry__title,
body.postid-3378.roberin-dark-mode .cs-entry__title {
  color: var(--sleep-ink);
  -webkit-text-fill-color: var(--sleep-ink);
}

body[data-scheme="dark"] .sleep-time-container .number-input,
body[data-scheme="inverse"] .sleep-time-container .number-input,
body.roberin-dark-mode .sleep-time-container .number-input {
  color: var(--sleep-ink);
  -webkit-text-fill-color: var(--sleep-ink);
  background: #241c15;
}

body[data-scheme="dark"] .sleep-time-container .number-input::placeholder,
body[data-scheme="inverse"] .sleep-time-container .number-input::placeholder,
body.roberin-dark-mode .sleep-time-container .number-input::placeholder {
  color: rgba(242, 228, 207, 0.62);
  -webkit-text-fill-color: rgba(242, 228, 207, 0.62);
}

@media (max-width: 900px) {
  body.postid-3378 .cs-breadcrumbs,
  body.postid-3378 .cs-entry__header,
  body.postid-3378 .sleep-time-wrapper {
    width: min(100%, calc(100vw - 24px));
  }
}

@media (max-width: 760px) {
  .sleep-time-container {
    padding: 12px;
  }

  .sleep-time-container .quick-actions,
  .sleep-time-container .calculator-main,
  .sleep-time-container .info-section {
    grid-template-columns: 1fr;
  }

  .sleep-time-container .quick-actions {
    gap: 7px;
  }

  .sleep-time-container .sleep-time-fields,
  .sleep-time-list {
    grid-template-columns: 1fr;
  }

  .sleep-time-container #sleepPrimaryTime {
    font-size: 38px;
  }
}

@media (max-width: 390px) {
  body.postid-3378 .sleep-time-wrapper,
  body.postid-3378 .cs-entry__header,
  body.postid-3378 .cs-breadcrumbs {
    width: min(100%, calc(100vw - 18px));
  }

  .sleep-time-container {
    padding: 10px;
  }

  .sleep-time-container .input-section,
  .sleep-time-container .result-section,
  .sleep-time-container .special-section {
    padding: 10px;
  }
}

/* Keep the post-tool ad rhythm balanced after the Phase 1 tool reconstruction. */
body.postid-3378 .entry-content > .sleep-time-wrapper {
  margin-bottom: 24px !important;
}

body.postid-3378 .entry-content > .sleep-time-wrapper + .roberin-qa-ad-placeholder,
body.postid-3378 .entry-content > .sleep-time-wrapper + ins.adsbygoogle,
body.postid-3378 .entry-content > .sleep-time-wrapper + .aicp {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
}

body.postid-3378 .entry-content > .sleep-time-wrapper + .roberin-qa-ad-placeholder + article,
body.postid-3378 .entry-content > .sleep-time-wrapper + ins.adsbygoogle + article,
body.postid-3378 .entry-content > .sleep-time-wrapper + .aicp + article {
  margin-top: 0 !important;
}

@media (min-width: 761px) {
  body.postid-3378 .entry-content > .sleep-time-wrapper + .roberin-qa-ad-placeholder,
  body.postid-3378 .entry-content > .sleep-time-wrapper + ins.adsbygoogle,
  body.postid-3378 .entry-content > .sleep-time-wrapper + .aicp {
    margin-bottom: 8px !important;
  }
}

@media (min-width: 761px) {
  body.postid-3378 .entry-content > .sleep-time-wrapper + .roberin-qa-ad-placeholder,
  body.postid-3378 .entry-content > .sleep-time-wrapper + ins.adsbygoogle,
  body.postid-3378 .entry-content > .sleep-time-wrapper + .aicp {
    margin-bottom: -8px !important;
  }
}

@media (min-width: 761px) {
  body.postid-3378 .entry-content > .sleep-time-wrapper + .roberin-qa-ad-placeholder,
  body.postid-3378 .entry-content > .sleep-time-wrapper + ins.adsbygoogle,
  body.postid-3378 .entry-content > .sleep-time-wrapper + .aicp {
    margin-bottom: -24px !important;
  }
}

@media (min-width: 761px) {
  body.postid-3378 .entry-content > .sleep-time-wrapper + .roberin-qa-ad-placeholder,
  body.postid-3378 .entry-content > .sleep-time-wrapper + ins.adsbygoogle,
  body.postid-3378 .entry-content > .sleep-time-wrapper + .aicp {
    margin-bottom: -16px !important;
  }
}

/* ROBERIN sleep time calculator Phase 2 article - PDF reference role map with target namespace. */
body.postid-3378 {
  --sleep-article-page: #f9f1e7;
  --sleep-article-panel: #f8efe2;
  --sleep-article-card: #fff8ed;
  --sleep-article-accent-paper: #e2edd8;
  --sleep-article-text: #34281f;
  --sleep-article-muted: #574838;
  --sleep-article-line: #6b5745;
  --sleep-article-line-soft: rgba(107, 87, 69, .34);
  --sleep-article-mustard: #d2aa55;
  --sleep-article-mustard-soft: rgba(210, 170, 85, .24);
  --sleep-article-focus: #4f7d94;
  --sleep-article-shadow: rgba(82, 65, 50, .22);
  --sleep-article-soft-shadow: rgba(82, 65, 50, .13);
}

body.postid-3378[data-scheme="dark"],
body.postid-3378[data-scheme="inverse"],
body.postid-3378.roberin-dark-mode {
  --sleep-article-page: #201811;
  --sleep-article-panel: #33271d;
  --sleep-article-card: #2b2119;
  --sleep-article-accent-paper: #344a32;
  --sleep-article-text: #f2e4cf;
  --sleep-article-muted: #f0dfc5;
  --sleep-article-line: #a98b6b;
  --sleep-article-line-soft: rgba(169, 139, 107, .46);
  --sleep-article-mustard: #d2aa55;
  --sleep-article-mustard-soft: rgba(210, 170, 85, .22);
  --sleep-article-focus: #d2aa55;
  --sleep-article-shadow: rgba(0, 0, 0, .32);
  --sleep-article-soft-shadow: rgba(0, 0, 0, .2);
}

body.postid-3378 .entry-content article.roberin-article-body.sleep-time-article,
body.postid-3378 .sleep-time-article {
  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: clamp(24px, 4vw, 42px) auto !important;
  padding: clamp(16px, 3vw, 28px) !important;
  color: var(--sleep-article-text) !important;
  -webkit-text-fill-color: var(--sleep-article-text) !important;
  background:
    linear-gradient(rgba(107, 87, 69, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 87, 69, .04) 1px, transparent 1px),
    var(--sleep-article-panel) !important;
  background-size: 28px 28px, 28px 28px, auto !important;
  border: 2px solid var(--sleep-article-line) !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 var(--sleep-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;
  transform: none !important;
}

body.postid-3378 .entry-content > .sleep-time-wrapper + .roberin-qa-ad-placeholder + article.sleep-time-article,
body.postid-3378 .entry-content > .sleep-time-wrapper + ins.adsbygoogle + article.sleep-time-article,
body.postid-3378 .entry-content > .sleep-time-wrapper + .aicp + article.sleep-time-article {
  margin-top: 0 !important;
}

body.postid-3378 .sleep-time-article,
body.postid-3378 .sleep-time-article *,
body.postid-3378 .sleep-time-article *::before,
body.postid-3378 .sleep-time-article *::after {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

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

body.postid-3378 .sleep-time-article__hero,
body.postid-3378 .sleep-time-article__section {
  display: grid !important;
  gap: 13px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.postid-3378 .sleep-time-article__hero {
  padding-bottom: 22px !important;
  border-bottom: 1px dashed var(--sleep-article-line-soft) !important;
}

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

body.postid-3378 .sleep-time-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(--sleep-article-text) !important;
  -webkit-text-fill-color: var(--sleep-article-text) !important;
  background: var(--sleep-article-accent-paper) !important;
  border: 1px solid var(--sleep-article-line) !important;
  border-radius: 0 !important;
  box-shadow: 2px 2px 0 var(--sleep-article-soft-shadow) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  letter-spacing: .01em !important;
}

body.postid-3378 .sleep-time-article h2,
body.postid-3378 .sleep-time-article h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--sleep-article-text) !important;
  -webkit-text-fill-color: var(--sleep-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: -.02em !important;
  word-break: keep-all !important;
}

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

body.postid-3378 .sleep-time-article h3 {
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

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

body.postid-3378 .sleep-time-article strong {
  color: var(--sleep-article-text) !important;
  -webkit-text-fill-color: var(--sleep-article-text) !important;
  font-weight: 920 !important;
}

body.postid-3378 .sleep-time-article__nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

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

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

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

body.postid-3378 .sleep-time-article__use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

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

body.postid-3378 .sleep-time-article__notice {
  background: rgba(239, 225, 188, .64) !important;
  border-style: dashed !important;
}

body.postid-3378 .sleep-time-article__process {
  background: rgba(226, 237, 216, .70) !important;
}

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

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

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

body.postid-3378 .sleep-time-article ol,
body.postid-3378 .sleep-time-article ol.sleep-time-article__steps {
  counter-reset: sleep-time-article-step !important;
}

body.postid-3378 .sleep-time-article :is(ul, ol) > li {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow-wrap: anywhere !important;
}

body.postid-3378 .sleep-time-article :is(ul, ol) > li::before {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  align-self: flex-start !important;
  box-sizing: border-box !important;
  margin-top: 4px !important;
  color: var(--sleep-article-text) !important;
  -webkit-text-fill-color: var(--sleep-article-text) !important;
  border-radius: 0 !important;
}

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

body.postid-3378 .sleep-time-article ol > li,
body.postid-3378 .sleep-time-article ol.sleep-time-article__steps > li {
  counter-increment: sleep-time-article-step !important;
}

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

body.postid-3378 .sleep-time-article__li-text {
  display: block !important;
  min-width: 0 !important;
  align-self: flex-start !important;
  color: var(--sleep-article-muted) !important;
  -webkit-text-fill-color: var(--sleep-article-muted) !important;
}

body.postid-3378 .sleep-time-article details {
  margin: 0 !important;
}

body.postid-3378 .sleep-time-article summary {
  cursor: pointer !important;
  color: var(--sleep-article-text) !important;
  -webkit-text-fill-color: var(--sleep-article-text) !important;
  font-weight: 950 !important;
  line-height: 1.45 !important;
}

body.postid-3378 .sleep-time-article details[open] summary {
  margin-bottom: 8px !important;
}

body.postid-3378[data-scheme="dark"] .entry-content article.roberin-article-body.sleep-time-article,
body.postid-3378[data-scheme="inverse"] .entry-content article.roberin-article-body.sleep-time-article,
body.postid-3378.roberin-dark-mode .entry-content article.roberin-article-body.sleep-time-article,
body.postid-3378[data-scheme="dark"] .sleep-time-article,
body.postid-3378[data-scheme="inverse"] .sleep-time-article,
body.postid-3378.roberin-dark-mode .sleep-time-article {
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
  background-image:
    linear-gradient(rgba(169, 139, 107, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 139, 107, .06) 1px, transparent 1px) !important;
  background-color: #33271d !important;
  border-color: #a98b6b !important;
}

body.postid-3378[data-scheme="dark"] .sleep-time-article :is(h2, h3, strong, summary),
body.postid-3378[data-scheme="inverse"] .sleep-time-article :is(h2, h3, strong, summary),
body.postid-3378.roberin-dark-mode .sleep-time-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.postid-3378[data-scheme="dark"] .sleep-time-article :is(p, li, span),
body.postid-3378[data-scheme="inverse"] .sleep-time-article :is(p, li, span),
body.postid-3378.roberin-dark-mode .sleep-time-article :is(p, li, span) {
  color: #f0dfc5 !important;
  -webkit-text-fill-color: #f0dfc5 !important;
}

body.postid-3378[data-scheme="dark"] .sleep-time-article__card,
body.postid-3378[data-scheme="dark"] .sleep-time-article__process,
body.postid-3378[data-scheme="dark"] .sleep-time-article__use,
body.postid-3378[data-scheme="dark"] .sleep-time-article__notice,
body.postid-3378[data-scheme="dark"] .sleep-time-article details,
body.postid-3378[data-scheme="dark"] .sleep-time-article__nav a,
body.postid-3378[data-scheme="inverse"] .sleep-time-article__card,
body.postid-3378[data-scheme="inverse"] .sleep-time-article__process,
body.postid-3378[data-scheme="inverse"] .sleep-time-article__use,
body.postid-3378[data-scheme="inverse"] .sleep-time-article__notice,
body.postid-3378[data-scheme="inverse"] .sleep-time-article details,
body.postid-3378[data-scheme="inverse"] .sleep-time-article__nav a,
body.postid-3378.roberin-dark-mode .sleep-time-article__card,
body.postid-3378.roberin-dark-mode .sleep-time-article__process,
body.postid-3378.roberin-dark-mode .sleep-time-article__use,
body.postid-3378.roberin-dark-mode .sleep-time-article__notice,
body.postid-3378.roberin-dark-mode .sleep-time-article details,
body.postid-3378.roberin-dark-mode .sleep-time-article__nav a {
  background-color: #33271d !important;
  border-color: rgba(169, 139, 107, .72) !important;
  box-shadow: 3px 3px 0 rgba(32, 24, 17, .52) !important;
}

body.postid-3378[data-scheme="dark"] .sleep-time-article__notice,
body.postid-3378[data-scheme="dark"] .sleep-time-article__process,
body.postid-3378[data-scheme="inverse"] .sleep-time-article__notice,
body.postid-3378[data-scheme="inverse"] .sleep-time-article__process,
body.postid-3378.roberin-dark-mode .sleep-time-article__notice,
body.postid-3378.roberin-dark-mode .sleep-time-article__process {
  background-color: rgba(36, 28, 21, .56) !important;
}

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

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

@media (max-width: 920px) {
  body.postid-3378 .sleep-time-article__use-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  body.postid-3378 .entry-content article.roberin-article-body.sleep-time-article,
  body.postid-3378 .sleep-time-article {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 12px !important;
    box-shadow: 4px 4px 0 rgba(82, 65, 50, .16) !important;
    transform: none !important;
  }

  body.postid-3378 .sleep-time-article__grid,
  body.postid-3378 .sleep-time-article__process-grid,
  body.postid-3378 .sleep-time-article__use-grid {
    grid-template-columns: 1fr !important;
  }

  body.postid-3378 .sleep-time-article h3 {
    font-size: 18px !important;
  }
}

@media (max-width: 370px) {
  body.postid-3378 .sleep-time-article h2 {
    font-size: 25.2px !important;
  }
}

/* Phase 2 body QA repair: keep desktop after-tool ad gap symmetric with the PDF-reference rhythm. */
@media (min-width: 641px) {
  body.postid-3378 .entry-content > .sleep-time-wrapper + .roberin-qa-ad-placeholder + article.sleep-time-article,
  body.postid-3378 .entry-content > .sleep-time-wrapper + ins.adsbygoogle + article.sleep-time-article,
  body.postid-3378 .entry-content > .sleep-time-wrapper + .aicp + article.sleep-time-article {
    margin-top: 40px !important;
  }
}

/* Post-repair hardening: AICP ad wrappers use display:contents, so the real
   adsbygoogle slot must carry the balanced post-tool rhythm itself. */
body.postid-3378 .entry-content > .sleep-time-wrapper + .aicp {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.postid-3378 .entry-content > .sleep-time-wrapper + .aicp > ins.adsbygoogle {
  display: block !important;
  margin: 0 auto 24px !important;
  max-width: 100% !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.postid-3378 .entry-content > .sleep-time-wrapper + .roberin-qa-ad-placeholder + article.sleep-time-article,
body.postid-3378 .entry-content > .sleep-time-wrapper + ins.adsbygoogle + article.sleep-time-article,
body.postid-3378 .entry-content > .sleep-time-wrapper + .aicp + article.sleep-time-article {
  margin-top: 0 !important;
}
