.rh-check {
  --rh-ink: #294a46;
  --rh-muted: #566762;
  padding: clamp(36px, 5vw, 66px) 0 12px;
  scroll-margin-top: var(--header-height, 100px);
  color: var(--rh-ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.rh-check-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(80px, 10vw, 120px);
  align-items: center;
  gap: 12px;
  padding: clamp(20px, 2.5vw, 32px) clamp(22px, 4vw, 54px);
  border-radius: 24px;
  background: #f5eade;
}
.rh-check-intro-copy { padding-block: 14px; }
.rh-check h2 {
  margin: 0;
  color: var(--rh-ink);
  font-size: clamp(26px, 3.3vw, 42px);
  line-height: 1.23;
  letter-spacing: -.045em;
}
.rh-check-intro-copy > p { margin: 10px 0 12px; font-size: 16px; line-height: 1.6; color: #505e54; }
.rh-check-art { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.rh-criteria { max-width: 565px; }
.rh-check summary { cursor: pointer; }
.rh-criteria summary { width: fit-content; color: #594e40; font-size: 14px; font-weight: 650; }
.rh-criteria dl { margin: 13px 0 7px; font-size: 14px; }
.rh-criteria dl div { display: flex; gap: 12px; margin: 4px 0; }
.rh-criteria dt { flex: none; font-weight: 800; }
.rh-criteria dd { margin: 0; }
.rh-criteria p { margin: 0; color: #4c5952; font-size: 14px; line-height: 1.6; }
.rh-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.rh-question {
  --rh-accent: #93523b;
  --rh-tint: #f8e9de;
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 1.7vw, 24px);
  border: 1px solid #dedfd6;
  border-radius: 18px;
  background: #fffefa;
}
.rh-frequency { --rh-accent: #3e625e; --rh-tint: #e5eee8; }
.rh-impact { --rh-accent: #715d38; --rh-tint: #f3ead3; }
.rh-question-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 17px; }
.rh-question h3 { margin: 0; font-size: 24px; letter-spacing: -.04em; line-height: 1.35; color: var(--rh-ink); }
.rh-question-head p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--rh-muted); }
.rh-picto { display: grid; place-items: center; position: relative; height: 50px; width: 50px; border-radius: 16px; background: var(--rh-tint); color: var(--rh-accent); }
.rh-picto i, .rh-picto i::before, .rh-picto i::after { display: block; position: absolute; box-sizing: border-box; }
.rh-picto i::before, .rh-picto i::after { content: ""; }
.rh-tissue i { width: 30px; height: 14px; bottom: 11px; border: 2px solid currentColor; border-radius: 3px; background: #e8b39a; transform: rotate(-5deg); }
.rh-tissue i::before { width: 15px; height: 13px; left: 7px; bottom: 10px; border: 2px solid currentColor; border-radius: 3px 8px 1px 1px; background: #fffcf5; transform: skew(-11deg); }
.rh-calendar i { width: 28px; height: 25px; border: 2px solid currentColor; border-radius: 5px; background: linear-gradient(to bottom, #a1c4ac 6px, #fffdf3 6px); transform: rotate(-5deg); }
.rh-calendar i::before { width: 3px; height: 7px; top: -5px; left: 4px; border-radius: 3px; background: currentColor; box-shadow: 13px 0 currentColor; }
.rh-calendar i::after { width: 4px; height: 4px; top: 10px; left: 4px; border-radius: 1px; background: currentColor; box-shadow: 7px 0 currentColor, 0 6px currentColor; }
.rh-moon i { left: 11px; bottom: 12px; width: 27px; height: 26px; border-radius: 50%; background: #ac803c; }
.rh-moon i::before { top: -3px; left: 9px; width: 22px; height: 22px; background: var(--rh-tint); border-radius: 50%; }
.rh-moon i::after { left: 22px; top: 0; width: 8px; height: 8px; background: #956c30; clip-path: polygon(50% 0,62% 35%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 35%); }
.rh-choices { display: grid; gap: 6px; }
.rh-choices label, .rh-segments label > span {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #d9ded5;
  border-radius: 10px;
  background: #fff;
  color: #30423e;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}
.rh-choices label { gap: 10px; padding: 8px 12px; }
.rh-choices input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--rh-accent, var(--rh-ink)); }
.rh-choices label:has(:checked), .rh-segments input:checked + span {
  border-color: var(--rh-accent, var(--rh-ink));
  background: var(--rh-tint, #e5eee8);
  color: #233f3b;
  font-weight: 700;
}
.rh-period-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.rh-period-group + .rh-period-group { margin-top: 22px; }
.rh-period-group legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 650; }
.rh-segments { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.rh-segments label { position: relative; }
.rh-segments input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rh-segments label > span { justify-content: center; height: 100%; padding: 5px 3px; font-size: 14px; text-align: center; }
.rh-check summary:focus-visible, .rh-choices label:has(input:focus-visible), .rh-segments input:focus-visible + span { outline: 3px solid #2b5d69; outline-offset: 2px; }
@media (hover: hover) {
  .rh-choices label:hover, .rh-segments label:hover > span { border-color: var(--rh-accent, var(--rh-ink)); }
}
.rh-trigger { margin-top: 15px; padding: 0 18px; border: 1px solid #dce1d8; border-radius: 13px; background: #f4f6ef; }
.rh-trigger summary { min-height: 46px; padding-block: 12px; font-size: 15px; font-weight: 650; }
.rh-trigger small { margin-left: 4px; font-size: 13px; font-weight: 450; color: var(--rh-muted); }
.rh-trigger .rh-choices { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 0 14px; }
.rh-trigger label { border-radius: 22px; padding-inline: 14px; }
.rh-check .pattern-actions:not([hidden]) { margin-top: 20px; }
.rh-check .pattern-actions .btn { border-radius: 22px; min-height: 44px; }
.rh-check .pattern-card { margin-top: 20px; border-radius: 18px; background: #eef3ec; }
.rh-check .pattern-card dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.rh-check .pattern-card dl > div { padding: 12px 14px; border-radius: 10px; background: #fffefa; }
.rh-check .pattern-card dt { font-size: 14px; color: var(--rh-muted); }
.rh-check .pattern-card dd { margin: 3px 0 0; font-size: 19px; font-weight: 800; color: var(--rh-ink); }
@media (max-width: 940px) {
  .rh-check-grid { grid-template-columns: 1fr; gap: 12px; }
  .rh-question-head { flex-direction: row; align-items: center; gap: 14px; }
  .rh-question .rh-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .rh-check-intro { grid-template-columns: minmax(0, 1fr) clamp(48px, 14vw, 68px); padding: 18px 16px; border-radius: 16px; gap: 8px; }
  .rh-check-intro-copy { padding: 0; }
  .rh-check-intro-copy > p { font-size: 15px; }
  .rh-check-intro:has(details[open]) { grid-template-columns: minmax(0, 1fr); }
  .rh-check-intro:has(details[open]) .rh-check-art { display: none; }
  .rh-check h2 { font-size: 26px; }
  .rh-check-grid { margin-top: 12px; }
  .rh-question { padding: 18px 16px; }
  .rh-question h3 { font-size: 21px; }
  .rh-question .rh-choices { grid-template-columns: 1fr; }
  .rh-check .pattern-card dl { grid-template-columns: 1fr; gap: 6px; }
  .rh-check .pattern-card dl > div { display: flex; align-items: baseline; gap: 12px; }
  .rh-check .pattern-card dd { margin: 0; font-size: 17px; }
}
@media (forced-colors: active) {
  .rh-segments input:checked + span { outline: 2px solid Highlight; outline-offset: -3px; }
}
