:root {
  --content-diet-release: "20260726-content-diet-tutorials-os-1810";
}

[data-content-diet-deferred][hidden] {
  display: none !important;
}

.content-diet-strip {
  width: min(1120px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 8px auto 10px;
  padding: 9px 10px;
  border: 1px solid rgba(226, 111, 160, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 248, 252, 0.94), rgba(255, 250, 242, 0.86));
  color: var(--ink, #2a1722);
  box-shadow: 0 10px 22px rgba(102, 42, 74, 0.045);
}

.content-diet-strip-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.content-diet-strip-copy span,
.content-diet-guide-head span {
  color: #b57927;
  font-size: 10px;
  font-weight: 540;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-diet-strip-copy strong {
  color: var(--ink, #2a1722);
  font-size: 14px;
  font-weight: 540;
  line-height: 1.18;
}

.content-diet-strip-copy p {
  margin: 0;
  color: var(--muted, #765f6c);
  font-size: 12px;
  line-height: 1.3;
}

.content-diet-strip > a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(226, 111, 160, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 103, 165, 0.22), rgba(239, 184, 80, 0.18));
  color: var(--ink, #2a1722);
  font-size: 12px;
  font-weight: 520;
  text-decoration: none;
  white-space: nowrap;
}

.content-diet-strip > a svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.content-diet-guide {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(211, 150, 72, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 247, 251, 0.92), rgba(255, 252, 245, 0.84));
  box-shadow: 0 14px 30px rgba(102, 42, 74, 0.055);
}

.content-diet-guide-head {
  display: grid;
  gap: 4px;
}

.content-diet-guide-head h2 {
  margin: 0;
  color: var(--ink, #2a1722);
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.14;
}

.content-diet-guide-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted, #765f6c);
  font-size: 14px;
  line-height: 1.45;
}

.content-diet-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.content-diet-guide-list details {
  min-width: 0;
  border: 1px solid rgba(226, 111, 160, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #2a1722;
  overflow: hidden;
}

.content-diet-guide-list summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
  color: var(--ink, #2a1722);
  font-size: 14px;
  font-weight: 540;
}

.content-diet-guide-list summary::-webkit-details-marker {
  display: none;
}

.content-diet-guide-list summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #b57927;
  transition: transform 0.16s ease;
}

.content-diet-guide-list details[open] summary svg {
  transform: rotate(180deg);
}

.content-diet-guide-list details p {
  margin: 0;
  padding: 0 12px 8px;
  color: var(--muted, #765f6c);
  font-size: 13px;
  line-height: 1.42;
}

.content-diet-guide-list details a {
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  margin: 0 12px 12px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 103, 165, 0.12);
  color: #8f2f63;
  font-size: 12px;
  font-weight: 520;
  text-decoration: none;
}

body[data-theme="dark"] .content-diet-strip,
body[data-theme="dark"] .content-diet-guide,
body[data-theme="dark"] .content-diet-guide-list details {
  border-color: rgba(255, 137, 188, 0.2);
  background: rgba(43, 16, 34, 0.94);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .content-diet-strip-copy strong,
body[data-theme="dark"] .content-diet-guide-head h2,
body[data-theme="dark"] .content-diet-guide-list summary {
  color: #fff5fa;
}

body[data-theme="dark"] .content-diet-strip-copy p,
body[data-theme="dark"] .content-diet-guide-head p,
body[data-theme="dark"] .content-diet-guide-list details p {
  color: #e8cbd8;
}

body[data-theme="dark"] .content-diet-strip > a,
body[data-theme="dark"] .content-diet-guide-list details a {
  color: #fff5fa;
  background: linear-gradient(135deg, rgba(255, 103, 165, 0.22), rgba(239, 184, 80, 0.16));
}

@media (max-width: 760px) {
  .content-diet-strip,
  .content-diet-guide {
    width: calc(100% - 24px);
    margin: 8px auto 10px;
  }

  .content-diet-strip {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .content-diet-strip > a {
    width: 100%;
    min-height: 38px;
    white-space: normal;
  }

  .content-diet-strip-copy p {
    display: none;
  }

  .content-diet-guide-list {
    grid-template-columns: 1fr;
  }
}
