/*
 * Poly Theme's own styles: the dark half of the palette, the top bar, the footer and the landing template. Everything
 * else is theme.json's. It reads WordPress's variables only; the scheme attribute on <html> is the plugin's.
 */

/* Dark: each role swatch takes its dark one, so a block coloured "Page" or "Accent" turns dark with the community. */
:root[data-poly-scheme="dark"] {
  --wp--preset--color--base: var(--wp--preset--color--base-dark);
  --wp--preset--color--surface: var(--wp--preset--color--surface-dark);
  --wp--preset--color--contrast: var(--wp--preset--color--contrast-dark);
  --wp--preset--color--secondary: var(--wp--preset--color--secondary-dark);
  --wp--preset--color--muted: var(--wp--preset--color--muted-dark);
  --wp--preset--color--border: var(--wp--preset--color--border-dark);
  --wp--preset--color--accent: var(--wp--preset--color--accent-dark);
  --wp--preset--color--on-accent: var(--wp--preset--color--on-accent-dark);
  --wp--preset--color--accent-soft: var(--wp--preset--color--accent-soft-dark);
  --wp--preset--color--topbar: var(--wp--preset--color--topbar-dark);
  --wp--preset--color--topbar-text: var(--wp--preset--color--topbar-text-dark);
  --wp--preset--color--danger: var(--wp--preset--color--danger-dark);
  --wp--preset--color--success: var(--wp--preset--color--success-dark);
  --wp--preset--color--warning: var(--wp--preset--color--warning-dark);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-poly-scheme="auto"] {
    --wp--preset--color--base: var(--wp--preset--color--base-dark);
    --wp--preset--color--surface: var(--wp--preset--color--surface-dark);
    --wp--preset--color--contrast: var(--wp--preset--color--contrast-dark);
    --wp--preset--color--secondary: var(--wp--preset--color--secondary-dark);
    --wp--preset--color--muted: var(--wp--preset--color--muted-dark);
    --wp--preset--color--border: var(--wp--preset--color--border-dark);
    --wp--preset--color--accent: var(--wp--preset--color--accent-dark);
    --wp--preset--color--on-accent: var(--wp--preset--color--on-accent-dark);
    --wp--preset--color--accent-soft: var(--wp--preset--color--accent-soft-dark);
    --wp--preset--color--topbar: var(--wp--preset--color--topbar-dark);
    --wp--preset--color--topbar-text: var(--wp--preset--color--topbar-text-dark);
    --wp--preset--color--danger: var(--wp--preset--color--danger-dark);
    --wp--preset--color--success: var(--wp--preset--color--success-dark);
    --wp--preset--color--warning: var(--wp--preset--color--warning-dark);
      color-scheme: dark;
  }
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* The template's pieces meet edge to edge. */
.wp-site-blocks > * {
  margin-block: 0;
}

/* The top bar: the header part. */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 60;
  border-bottom: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--topbar);
  color: var(--wp--preset--color--topbar-text);
}

/* At 600px and under WordPress's toolbar scrolls away with the page: the bar sticks at the window's top. */
@media screen and (max-width: 600px) {
  .wp-site-blocks > header.wp-block-template-part {
    top: 0;
  }
}

.pt-bar {
  gap: 8px;
  align-items: center;
  max-width: var(--wp--style--global--wide-size);
  /* The bar's height, its bottom edge included, is theme.json's shell.bar: what sits under it reads the same value. */
  height: calc(var(--wp--custom--shell--bar, 61px) - 1px);
  margin: 0 auto;
}

.pt-bar > .wp-block-site-logo img {
  border-radius: var(--wp--custom--radius--button);
}

.pt-title {
  margin: 0 12px 0 0;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
}

.pt-title a {
  color: inherit;
  text-decoration: none;
}

/* The site title with the tagline under it. */
.pt-title > * {
  margin: 0;
}

.pt-title > .pt-sub {
  font-family: var(--wp--preset--font-family--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  opacity: 0.62;
}

.pt-menu {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
}

.pt-menu .wp-block-navigation__container {
  gap: 2px;
}

.pt-menu .wp-block-navigation-item__content {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px !important;
  border-radius: var(--wp--custom--radius--button);
  color: var(--wp--preset--color--secondary);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Under the pointer or the keyboard: a soft fill of the text's colour, light or dark alike. */
.pt-menu .wp-block-navigation-item__content:hover,
.pt-menu .wp-block-navigation-item__content:focus-visible {
  background: color-mix(in srgb, var(--wp--preset--color--contrast) 7%, transparent);
  color: var(--wp--preset--color--contrast);
}

.pt-menu .wp-block-navigation-item__content:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

.pt-menu .current-menu-item > .wp-block-navigation-item__content:hover,
.pt-menu .wp-block-navigation-item__content[aria-current="page"]:hover {
  background: color-mix(in srgb, var(--wp--preset--color--accent) 16%, var(--wp--preset--color--accent-soft));
  color: var(--wp--preset--color--accent);
}

.pt-menu .current-menu-item > .wp-block-navigation-item__content,
.pt-menu .wp-block-navigation-item__content[aria-current="page"] {
  background: var(--wp--preset--color--accent-soft);
  color: var(--wp--preset--color--accent);
}

/* A link's parent while one of its links is the page shown. */
.pt-menu .current-menu-ancestor > .wp-block-navigation-item__content {
  color: var(--wp--preset--color--accent);
}

/* A link's icon (Poly Community's menu item icons). */
.pt-menu .poly-menu-icon {
  flex: none;
  margin-inline-end: 7px;
}

/* The links in the bar's middle: what stands either side of them takes equal room. Folded, the menu button follows
   the logo. Not while the bar is measured: the title is measured at its whole width. */
.pt-bar:not(.pt-measuring):has(> .pt-menu.items-justified-center:not(.pt-folded)) > :has(+ .pt-menu),
.pt-bar:not(.pt-measuring):has(> .pt-menu.items-justified-center:not(.pt-folded)) > .pt-menu + * {
  /* Over the plugin's own sizing of its buttons. */
  flex: 1 1 0 !important;
}

.pt-bar > .pt-menu.items-justified-center:not(.pt-folded) {
  flex: 0 1 auto;
}

.pt-bar > .pt-menu + * {
  justify-content: flex-end;
}

.pt-bar > .pt-menu.pt-folded {
  justify-content: flex-start;
}

/* A link with links under it: its arrow inside its own pill. */
.pt-menu .has-child > .wp-block-navigation-item__content {
  padding-inline-end: 30px !important;
}

.pt-menu .has-child > .wp-block-navigation__submenu-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 12px;
  height: 12px;
  margin: 0;
  transform: translateY(-50%);
  color: inherit;
}

.pt-menu .has-child:hover > .wp-block-navigation__submenu-icon,
.pt-menu .has-child:focus-within > .wp-block-navigation__submenu-icon {
  color: var(--wp--preset--color--contrast);
}

.pt-menu .wp-block-navigation__submenu-container {
  gap: 2px;
  min-width: 220px !important;
  padding: 6px !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: calc(var(--wp--custom--radius--button) + 4px);
  background: var(--wp--preset--color--surface) !important;
  box-shadow: 0 12px 32px -8px rgb(0 0 0 / 18%);
}

/* The list opens a little under its link; the room between still counts as the link's, so the pointer can cross it. */
.pt-menu:not(.pt-folded) .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
  top: calc(100% + 6px);
}

.pt-menu .has-child > .wp-block-navigation__submenu-container::before {
  content: "";
  position: absolute;
  inset: -8px 0 auto;
  height: 8px;
}

.pt-menu .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
  top: -7px;
  left: calc(100% + 6px);
}

.pt-menu .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container::before {
  inset: 0 auto 0 -8px;
  width: 8px;
  height: auto;
}

.pt-menu .wp-block-navigation__submenu-container .wp-block-navigation-item {
  width: 100%;
}

.pt-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  width: 100%;
  box-sizing: border-box;
  color: var(--wp--preset--color--contrast);
}

.pt-menu .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content,
.pt-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content[aria-current="page"] {
  color: var(--wp--preset--color--accent);
}

.pt-menu.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
  padding: 12px 16px 24px;
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--contrast);
}

/* The open menu covers the whole window, the community's tab bar too. */
html.has-modal-open .wp-site-blocks > header.wp-block-template-part {
  z-index: 100000;
}

.pt-menu .is-menu-open .wp-block-navigation__responsive-container-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--wp--custom--radius--button);
  top: 0;
  right: 0;
}

.pt-menu .is-menu-open .wp-block-navigation__responsive-container-close:hover {
  background: color-mix(in srgb, var(--wp--preset--color--contrast) 7%, transparent);
}

.pt-menu .is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 56px;
}

/* The open menu covers WordPress's toolbar, so it keeps no room for it. */
.has-modal-open .admin-bar .pt-menu .is-menu-open .wp-block-navigation__responsive-dialog {
  margin-top: 0;
}

.pt-menu .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
  width: 100%;
  gap: 4px;
}

.pt-menu .is-menu-open .wp-block-navigation-item {
  width: 100%;
}

.pt-menu .is-menu-open .wp-block-navigation-item__content {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  color: var(--wp--preset--color--contrast);
  font-size: 17px;
}

.pt-menu .is-menu-open .current-menu-item > .wp-block-navigation-item__content,
.pt-menu .is-menu-open .wp-block-navigation-item__content[aria-current="page"] {
  color: var(--wp--preset--color--accent);
}

.pt-menu .is-menu-open .wp-block-navigation-item__content:focus-visible {
  outline-offset: -2px;
}

/* In the open menu a link's links stand under it, set in. */
.pt-menu .is-menu-open .has-child > .wp-block-navigation-item__content {
  padding-inline-end: 12px !important;
}

.pt-menu .is-menu-open .wp-block-navigation__container,
.pt-menu .is-menu-open .wp-block-navigation__submenu-container,
.pt-menu .is-menu-open .wp-block-navigation-item {
  align-items: stretch !important;
}

.pt-menu .is-menu-open .wp-block-navigation__submenu-container {
  width: 100%;
  box-sizing: border-box;
  min-width: 0 !important;
  padding: 0 0 0 20px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none;
}

.pt-menu .is-menu-open .wp-block-navigation__submenu-container::before {
  content: none;
}

/* When the links don't fit (assets/theme.js): the title goes first, then links from the end into More; with none
   left the button reads Menu. Measured with everything at its natural width. */
.pt-bar.pt-measuring > * {
  flex: none !important;
}

.pt-bar.pt-measuring > .pt-title {
  overflow: visible;
}

.pt-bar.pt-compact > .pt-title,
.pt-bar.pt-bare > .wp-block-site-logo,
.pt-menu .pt-overflow,
.pt-menu .pt-more[hidden] {
  display: none !important;
}

.pt-bar > .wp-block-site-logo {
  flex: none;
}

/* With the title gone the logo is the left side the links centre against. */
.pt-bar.pt-compact:has(> .pt-menu.items-justified-center:not(.pt-folded)) > .wp-block-site-logo {
  flex: 1 1 0 !important;
}

.pt-menu .pt-more > .wp-block-navigation-item__content {
  gap: 4px;
  padding-inline-end: 10px !important;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.pt-menu .pt-more > .wp-block-navigation-item__content:not(:hover, :focus-visible) {
  background: transparent;
}

.pt-menu .pt-more > .wp-block-navigation-item__content .wp-block-navigation__submenu-icon {
  display: flex;
  margin: 0;
}

/* As Menu, the bar's only link: no more room than its word and arrow. */
.pt-menu.pt-folded > .wp-block-navigation__container {
  justify-content: flex-start;
}

.pt-menu.pt-folded .pt-more > .wp-block-navigation-item__content {
  padding: 0 8px !important;
}

.pt-menu .pt-more-end > .wp-block-navigation__submenu-container {
  right: 0;
  left: auto;
}

.pt-menu .pt-more > .wp-block-navigation__submenu-container {
  top: calc(100% + 6px);
  max-height: calc(100vh - var(--wp--custom--shell--bar, 61px) - 16px);
  overflow-y: auto;
}

/* Core's open list is overflow: visible; this one scrolls, down to what the script measured free above a tab bar. */
.pt-bar .pt-menu .pt-more > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
  max-height: var(--pt-more-room, calc(100vh - var(--wp--custom--shell--bar, 61px) - 16px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--wp--preset--color--border) transparent;
}

/* On a phone the list is a sheet under the bar, the screen's width less a gutter. */
@media (max-width: 600px) {
  .pt-bar .pt-menu .pt-more > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
    position: fixed;
    top: var(--pt-more-top, 66px);
    right: 12px;
    left: 12px;
    width: auto !important;
    min-width: 0 !important;
    z-index: 75;
  }
}

/* In More, a link's own links stand under it, set in. */
.pt-menu .pt-more-list .wp-block-navigation__submenu-container {
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: visible !important;
  padding: 0 0 0 14px !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none;
}

.pt-menu .pt-more-list .wp-block-navigation__submenu-container::before {
  content: none;
}

.pt-menu .pt-more-list .wp-block-navigation-item {
  flex-direction: column;
  align-items: stretch;
}

.pt-menu .pt-more-list .has-child > .wp-block-navigation-item__content {
  padding-inline-end: 12px !important;
}

/* The member's buttons, after the menu, at the bar's end. */
.pt-bar > :last-child:not(.pt-menu) {
  margin-inline-start: auto;
}

/* The footer. */
.wp-site-blocks > footer.wp-block-template-part {
  border-top: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--muted);
  font-size: 13px;
}

.pt-footer-inner {
  gap: 16px;
  align-items: center;
  max-width: var(--wp--style--global--wide-size);
  margin: 0 auto;
  padding-block: 20px;
}

.pt-footer-inner > * {
  margin: 0;
}

.pt-footer-name {
  color: var(--wp--preset--color--contrast);
  font-size: 13px;
  font-weight: 650;
}

/* The Landing template: the page's own content, the whole width. */
.pt-landing {
  padding-block: 48px;
}

/*
 * Landing sections, by class on core groups, on either Landing template: a hero (.pt-hero, its text and a .pt-signal),
 * a section (.pt-section) with rows (.pt-rows > .pt-row: picture, text, links), a tinted band (.pt-band) and two
 * halves (.pt-split).
 */
:where(.pt-hero, .pt-section, .pt-band) {
  margin-block: 0;
}

/* Room at the sides on a wider screen, so the sections never run to the column's edges. */
@media (min-width: 782px) {
  :where(.pt-hero, .pt-section, .pt-band) {
    margin-inline: clamp(0px, 4.5vw, 72px);
  }
}

.pt-hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 750;
  text-wrap: balance;
}

:is(.pt-section, .pt-band) h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.pt-row h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.pt-lead {
  color: var(--wp--preset--color--secondary);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  text-wrap: pretty;
}

:is(.pt-hero, .pt-section, .pt-band) .wp-block-button__link {
  padding: 14px 22px;
}

:is(.pt-hero, .pt-section, .pt-band) .wp-block-button.is-style-outline > .wp-block-button__link {
  border: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--contrast);
}

:is(.pt-hero, .pt-section, .pt-band) .wp-block-button.is-style-outline > .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--contrast);
}

/* The hero: the words, the signal beside them while there is room (the window, or the column beside a navigation). */
.pt-hero {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(16px, 4vw, 48px) clamp(8px, 2vw, 24px);
}

.pt-hero > .pt-hero-text {
  flex: 1 1 340px;
  margin: 0;
}

.pt-hero > .pt-signal {
  flex: 0 1 420px;
  margin: 0;
}

.pt-hero-text > * {
  margin: 0;
}

.pt-hero-text > * + * {
  margin-block-start: 24px;
}

.pt-hero-text > .wp-block-buttons {
  margin-block-start: 36px;
}

/* Bands spreading from the lower left corner, as from a signal's source; up to four pictures sit on them. */
.pt-signal {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(circle farthest-corner at 0 100%, var(--pt-band-1) 0 33%, var(--pt-band-2) 33% 53%, var(--pt-band-3) 53% 73%, var(--pt-band-4) 73%);
  isolation: isolate;
}

/* The bands, from the accent: darker at the source, lighter outwards. */
:is(.pt-signal, .pt-band) {
  --pt-band-1: color-mix(in srgb, var(--wp--preset--color--accent) 82%, #000);
  --pt-band-2: var(--wp--preset--color--accent);
  --pt-band-3: color-mix(in srgb, var(--wp--preset--color--accent) 82%, #fff);
  --pt-band-4: color-mix(in srgb, var(--wp--preset--color--accent) 62%, #fff);
}

.pt-signal::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 140%;
  aspect-ratio: 1;
  border: 2px solid rgb(255 255 255 / 0.55);
  border-radius: 50%;
  transform: translate(-50%, 50%) scale(0);
  animation: pt-signal 4.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

@keyframes pt-signal {
  0% {
    transform: translate(-50%, 50%) scale(0);
    opacity: 1;
  }

  80%,
  100% {
    transform: translate(-50%, 50%) scale(2.1);
    opacity: 0;
  }
}

.pt-signal > .wp-block-image {
  position: absolute;
  margin: 0;
  padding: clamp(10px, 1.1vw, 14px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.12), 0 12px 32px -8px rgb(15 23 42 / 0.35);
  transform: translate(-50%, 50%);
  line-height: 0;
}

.pt-signal > .wp-block-image a {
  display: block;
}

.pt-signal > .wp-block-image img {
  width: clamp(40px, 4.4vw, 60px) !important;
  height: auto !important;
}

.pt-signal > :nth-child(1) {
  left: 19%;
  bottom: 19%;
}

.pt-signal > :nth-child(2) {
  left: 24%;
  bottom: 62%;
}

.pt-signal > :nth-child(3) {
  left: 70%;
  bottom: 34%;
}

.pt-signal > :nth-child(4) {
  left: 76%;
  bottom: 78%;
}

@media (prefers-reduced-motion: reduce) {
  .pt-signal::before {
    animation: none;
  }
}

/* A section: its heading, then its content. */
.pt-section {
  padding-block: clamp(36px, 4.5vw, 60px);
  scroll-margin-top: 24px;
}

.pt-section > h2 + * {
  margin-block-start: 32px;
}

.pt-section > h2 + .pt-lead {
  margin-block-start: 12px;
}

.pt-section > .pt-lead + * {
  margin-block-start: 32px;
}

/* A line after the rows. */
.pt-section > .pt-rows + p {
  margin-block-start: 24px;
  color: var(--wp--preset--color--secondary);
}

/* Rows: a picture, the words, the links; a rule between them. */
.pt-rows > * {
  margin-block: 0;
}

.pt-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding-block: 28px;
  border-top: 1px solid var(--wp--preset--color--border);
  scroll-margin-top: 96px;
}

.pt-row:last-child {
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.pt-row > * {
  margin: 0;
}

.pt-row > .wp-block-image {
  padding: 8px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 16px;
  background: #fff;
  line-height: 0;
}

.pt-row > .wp-block-image img {
  width: 100% !important;
  height: auto !important;
}

.pt-row-text > * {
  margin: 0;
}

.pt-row-text p {
  margin-block-start: 6px;
  color: var(--wp--preset--color--secondary);
}

/* A stage beside a name (Preview, Beta), and a line on what it means. */
.pt-tag {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--wp--preset--color--accent-soft);
  color: var(--wp--preset--color--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.4;
  vertical-align: 3px;
}

.pt-row-text p.pt-note {
  margin-block-start: 2px;
  color: var(--wp--preset--color--muted);
  font-size: 14px;
}

.pt-row-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-block-start: 4px;
  font-size: 15px;
  font-weight: 600;
}

.pt-row-links a {
  color: var(--wp--preset--color--accent);
  text-decoration: none;
  white-space: nowrap;
}

.pt-row-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* A tinted band, its words and its action on one line, the signal's bands in its corner. */
.pt-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 28px;
  background: var(--wp--preset--color--accent-soft);
  isolation: isolate;
}

.pt-band::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 240px;
  aspect-ratio: 1;
  background: radial-gradient(circle farthest-corner at 100% 100%, var(--pt-band-1) 0 33%, var(--pt-band-2) 33% 53%, var(--pt-band-3) 53% 73%, var(--pt-band-4) 73%);
  opacity: 0.14;
  border-top-left-radius: 100%;
}

.pt-band > * {
  margin: 0;
}

/* The words take the room the action leaves. */
.pt-band > .pt-band-text {
  flex: 1 1 360px;
}

.pt-band-text > * {
  margin: 0;
}

.pt-band-text p {
  margin-block-start: 12px;
  color: var(--wp--preset--color--secondary);
}

/* Two halves with a rule between. */
.pt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pt-split > * {
  margin: 0;
  padding-inline: 0 clamp(24px, 5vw, 64px);
}

.pt-split > * + * {
  padding-inline: clamp(24px, 5vw, 64px) 0;
  border-left: 1px solid var(--wp--preset--color--border);
}

.pt-split > * > * {
  margin: 0;
}

.pt-split > * > * + * {
  margin-block-start: 14px;
}

.pt-split p {
  color: var(--wp--preset--color--secondary);
}

.pt-split .wp-block-buttons {
  margin-block-start: 24px;
}

/* Halves where the second shows something live (a list from the community): wider, no rule, its own card. */
.pt-split-wide {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.pt-split-wide > *,
.pt-split-wide > * + * {
  padding-inline: 0;
  border-left: 0;
}

/* A list from the community there keeps its own plain links. */
.pt-split-live a:not(:hover) {
  text-decoration: none;
}

@media (max-width: 781px) {
  .pt-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px 18px;
  }

  .pt-row-links {
    grid-column: 2;
  }

  .pt-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pt-split > *,
  .pt-split > * + * {
    padding-inline: 0;
    border-left: 0;
  }

  .pt-split > * + * {
    padding-block-start: 40px;
    border-top: 1px solid var(--wp--preset--color--border);
  }
}

/* Without the plugin. */
.pt-fallback {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
  padding: 32px 24px;
}

@media (max-width: 781px) {
  .pt-title,
  .pt-title > * {
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    text-overflow: ellipsis;
  }
}

/* The shell: the community's columns, as wide as the site's wide size, a little room above and below. */
.pt-shell {
  padding-block: 24px 32px;
}

/* The bar and the footer keep the site's side room, as the content does. */
.pt-bar,
.pt-footer-inner {
  padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right);
  box-sizing: border-box;
}

@media (max-width: 781px) {
  .pt-shell {
    padding-block: 16px 24px;
    padding-inline: 12px;
  }
}

/* A short page keeps its footer at the window's bottom. */
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}

.wp-site-blocks > main {
  flex: 1 0 auto;
}

/* The full window (the community's Content width, carried on <html>): the bar, the footer and the columns span it. */
:root[data-poly-width="full"] .pt-bar,
:root[data-poly-width="full"] .pt-footer-inner,
:root[data-poly-width="full"] .wp-site-blocks > main > .alignwide {
  max-width: none;
}
