.docs {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: var(--wp-space-3xl);
  align-items: start;
}
.contents {
  position: sticky;
  top: var(--wp-space-xl);
  max-height: calc(100vh - 2 * var(--wp-space-xl));
  /* Make room for focus rings */
  margin-inline: calc(-1 * var(--wp-space-2xs));
  padding-inline: var(--wp-space-2xs);
  padding-block-end: var(--wp-space-xs);
  overflow-y: auto;
  scroll-padding-block: var(--wp-space-xs);
}
.contents h2 {
  font-size: var(--wp-font-size-sm);
  margin-bottom: var(--wp-space-xs);
}
.contents h3 {
  margin-top: var(--wp-space-xl);
  margin-bottom: var(--wp-space-2xs);
  font-size: var(--wp-font-size-sm);
  color: var(--wp-text-subtle);
}
.contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contents a {
  display: block;
  padding: var(--wp-space-2xs) 0;
  color: var(--wp-text);
  text-decoration: none;
}
.contents a:hover,
.contents a[aria-current] {
  color: var(--wp-link);
}
.contents a[aria-current] {
  font-weight: 600;
}
section {
  scroll-margin-top: var(--wp-space-xl);
}
section + section {
  margin-top: var(--wp-space-3xl);
  padding-top: var(--wp-space-3xl);
  border-top: 1px solid var(--wp-border-strong);
}
.wp-page-head h1 {
  font-size: var(--wp-font-size-3xl);
}
section > h2 {
  margin-bottom: var(--wp-space-md);
  font-size: var(--wp-font-size-2xl);
}
section > h3 {
  margin-top: var(--wp-space-xl);
}
/* Add space under blocks with no bottom margin */
section > :is(.wp-grid, .wp-table) {
  margin-bottom: var(--wp-space-md);
}
section > :last-child {
  margin-bottom: 0;
}
.demo {
  margin-bottom: var(--wp-space-md);
  padding: var(--wp-space-md);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
}
.demo:has(+ .markup) {
  margin-bottom: 0;
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}
.demo .wp-header {
  margin-bottom: var(--wp-space-md);
  border-radius: var(--wp-radius);
}
.demo .wp-footer {
  border-radius: var(--wp-radius);
}
.demo > :first-child {
  margin-top: 0;
}
.demo > :last-child,
.demo > :is(:last-child, [role="tabpanel"]) > :last-child {
  margin-bottom: 0;
}
.specimens {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--wp-space-xl) var(--wp-space-2xl);
  padding: var(--wp-space-lg);
}
.specimen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--wp-space-xs);
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
.specimen-block {
  flex: 1 1 100%;
  align-items: stretch;
}
.specimen > * {
  margin-block: 0;
}
/* Keep block specimens from stretching the Read more button */
.specimen > .wp-link-button {
  align-self: flex-start;
}
.specimen > figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--wp-space-sm);
  font-size: var(--wp-font-size-sm);
  color: var(--wp-text-subtle);
  overflow-wrap: anywhere;
}
.specimen > figcaption code {
  padding: 0;
  background: none;
}
.specimen-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wp-space-xs);
}
.markup {
  margin-bottom: var(--wp-space-md);
  background: var(--wp-sunken-bg);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
}
.demo + .markup {
  border-top: 0;
  border-start-start-radius: 0;
  border-start-end-radius: 0;
}
.markup > summary {
  padding: var(--wp-space-2xs) var(--wp-space-md);
  font-size: var(--wp-font-size-sm);
  color: var(--wp-text-subtle);
  cursor: pointer;
}
@media (pointer: coarse) {
  .markup > summary {
    padding-block: var(--wp-space-xs);
  }
}
.markup > .wp-code {
  margin: 0;
  padding-top: 0;
  background: none;
  border: 0;
}
.narrow-header {
  display: block;
  width: 100%;
  max-width: 360px;
  border: 0;
  color-scheme: light dark;
}
@media print, (max-width: 760px) {
  .narrow-demo,
  #sidebar-demo {
    display: none;
  }
}
@media (max-width: 960px) {
  .wp-sidebar .narrow-demo {
    display: none;
  }
}
:is(.spec, #tokens .wp-table) > tbody > tr:last-child > * {
  border-bottom: 0;
}
.spec th {
  width: 36%;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.spec th > code {
  display: inline-block;
  margin-block: var(--wp-space-3xs);
}
.spec td > :last-child {
  margin-bottom: 0;
}
.spec td > ul {
  margin-top: 0;
  padding-inline-start: 1.25em;
}
#swatches {
  --wp-grid-min: 8.5rem;
}
.swatch {
  font-size: var(--wp-font-size-sm);
}
/* Show translucent colors over frame background */
.swatch i {
  display: block;
  margin-bottom: var(--wp-space-2xs);
  overflow: hidden;
  font-family: var(--wp-font-mono);
  font-style: normal;
  background: var(--wp-bg);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
}
.swatch span {
  display: grid;
  place-items: center;
  height: var(--wp-control-height);
}
.swatch-bar i {
  padding: var(--wp-space-2xs);
  background: var(--wp-bar-bg);
}
.swatch-bar span {
  height: calc(var(--wp-control-height) - 2 * var(--wp-space-2xs));
}
#tokens th code {
  white-space: nowrap;
}
#tokens td:nth-child(3) code {
  overflow-wrap: break-word;
}
#breakpoints > ul > li + li {
  margin-top: var(--wp-space-xs);
}
#combobox .wp-grid > * {
  margin-bottom: 0;
}
/* Hide Safari's summary marker */
#details .demo summary::-webkit-details-marker {
  display: none;
}
/* Same values as the overriding-tokens example */
.theme-demo {
  --wp-brand: #1b6e3a;
  --wp-brand-hover: #145229;
  --wp-link: #1b6e3a;
  --wp-link-hover: #145229;
  --wp-bar-current: #4caf6e;
  --wp-border-strong: #6b8a74;
  --wp-radius: 12px;
  --wp-focus-ring: 0 0 0 2px var(--wp-card-bg), 0 0 0 4px var(--wp-link);
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-demo {
    --wp-brand-hover: #23874a;
    --wp-link: #6fcf97;
    --wp-link-hover: #9de0b8;
    --wp-border-strong: #7a9a83;
  }
}
@media screen {
  :root[data-theme="dark"] .theme-demo {
    --wp-brand-hover: #23874a;
    --wp-link: #6fcf97;
    --wp-link-hover: #9de0b8;
    --wp-border-strong: #7a9a83;
  }
}
.theme-demo .wp-field {
  max-width: 20rem;
}
/* Style demo h3s like page h1s */
.demo :is(.wp-page-head, .wp-message-page) h3 {
  font-size: var(--wp-font-size-2xl);
}
.demo .wp-page-head h3 {
  margin-bottom: var(--wp-space-2xs);
}
/* Home */
.home main {
  display: flex;
}
.hero {
  --light-x: 25%;
  --light-y: 50%;
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  color: #f3f1ec;
  background: radial-gradient(
    ellipse 90% 120% at var(--light-x) var(--light-y),
    #000000,
    #3d3b37
  );
}
/* Grain */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 2.2 0 0 0 -0.9'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.14;
}
.hero-inner {
  position: relative;
  padding-block: calc(2 * var(--wp-space-3xl));
}
.hero .wp-lead {
  color: #d9d6cf;
}
/* Sidebar breakpoint */
@media (max-width: 960px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--wp-space-xl);
  }
  .contents {
    position: static;
    max-height: none;
  }
  .contents ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--wp-space-xl);
  }
}
@media (max-width: 600px) {
  .specimens {
    gap: var(--wp-space-lg);
    padding: var(--wp-space-md);
  }
  .spec th,
  .spec td {
    display: block;
    padding-inline: 0;
  }
  .spec th {
    width: auto;
    padding-bottom: var(--wp-space-2xs);
    border-bottom: 0;
  }
}
