/*
 * Standard Gutenberg pages.
 *
 * This foundation applies only to regular WordPress pages. Demo compositions
 * and dedicated visual families keep their own CSS and are intentionally
 * excluded through the progesto-demo-page body class.
 */

body.page:not(.home):not(.progesto-demo-page) {
  background: #f7fafb;
}

body.page:not(.home):not(.progesto-demo-page) .entry--page {
  background: #fff;
}

body.page:not(.home):not(.progesto-demo-page) .entry-header--standard {
  background:
    radial-gradient(circle at 88% 10%, rgb(168 198 60 / 0.14), transparent 24rem),
    radial-gradient(circle at 8% 100%, rgb(0 125 154 / 0.1), transparent 30rem),
    linear-gradient(180deg, #f8fbfc 0%, #eef6f7 100%);
  border-bottom: 1px solid rgb(4 77 118 / 0.1);
  padding-block: clamp(8.5rem, 14vw, 12rem) clamp(3.25rem, 7vw, 6rem);
}

body.page:not(.home):not(.progesto-demo-page) .entry-header--standard h1 {
  color: var(--wp--preset--color--ink);
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin: 0;
  max-width: 13ch;
  text-wrap: balance;
  text-transform: uppercase;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content {
  padding-block: clamp(3rem, 6vw, 5rem) 0;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content > :where(p, ul, ol, blockquote, table, .wp-block-table, .wp-block-file, .wp-block-buttons, .wp-block-details) {
  color: rgb(16 52 69 / 0.82);
}

body.page:not(.home):not(.progesto-demo-page) .entry-content > p {
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.18rem);
  line-height: 1.72;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content > p:first-child {
  font-size: clamp(1.2rem, 1.08rem + 0.55vw, 1.5rem);
  line-height: 1.58;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content :where(h2, h3, h4, h5, h6) {
  color: var(--wp--preset--color--ink);
  text-wrap: balance;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content > h2 {
  font-size: clamp(2.25rem, 1.75rem + 2.4vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-block-start: clamp(4rem, 8vw, 7rem);
  max-width: 18ch;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content > h3 {
  font-size: clamp(1.65rem, 1.4rem + 1.1vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-block-start: clamp(2.75rem, 5vw, 4.5rem);
}

body.page:not(.home):not(.progesto-demo-page) .entry-content :where(ul, ol) {
  line-height: 1.65;
  padding-left: 1.35rem;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content li + li {
  margin-top: 0.55rem;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-image img,
body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-cover,
body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-media-text {
  border-radius: clamp(1rem, 2vw, 1.75rem);
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-image img {
  display: block;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content > .wp-block-image,
body.page:not(.home):not(.progesto-demo-page) .entry-content > .wp-block-cover,
body.page:not(.home):not(.progesto-demo-page) .entry-content > .wp-block-media-text {
  margin-block: clamp(2.25rem, 5vw, 4rem);
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-columns {
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

body.page:not(.home):not(.progesto-demo-page) .entry-content > .wp-block-columns {
  margin-block: clamp(2.5rem, 5vw, 4.5rem);
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-group.has-background:not(.alignfull),
body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-column > .wp-block-group.has-background {
  border-radius: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-group.has-background > :first-child {
  margin-top: 0;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-group.has-background > :last-child {
  margin-bottom: 0;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-quote {
  background: var(--wp--preset--color--mist);
  border-left: 4px solid var(--wp--preset--color--green);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  margin-block: clamp(2.25rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-quote p {
  font-size: clamp(1.2rem, 1.05rem + 0.65vw, 1.6rem);
  line-height: 1.5;
  margin-top: 0;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-separator {
  border-color: var(--wp--preset--color--line);
  margin-block: clamp(3rem, 7vw, 6rem);
  opacity: 1;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-file {
  align-items: center;
  background: var(--wp--preset--color--mist);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--radius-m);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-file > a:first-child {
  color: var(--wp--preset--color--ink);
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.2rem);
  font-weight: 700;
  text-decoration: none;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-file__button {
  margin-left: auto;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-table {
  overflow-x: auto;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-table table {
  border-collapse: collapse;
  min-width: 34rem;
  width: 100%;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-table :where(th, td) {
  border-color: var(--wp--preset--color--line);
  padding: 0.9rem 1rem;
  text-align: left;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-table th {
  background: var(--wp--preset--color--mist);
  color: var(--wp--preset--color--ink);
  font-weight: 700;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-details {
  border-bottom: 1px solid var(--wp--preset--color--line);
  padding-block: 1rem;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-details summary {
  color: var(--wp--preset--color--ink);
  cursor: pointer;
  font-weight: 700;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-buttons {
  gap: 0.75rem;
  margin-block: 1.75rem;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-button.is-style-outline .wp-element-button {
  background: transparent;
  color: var(--wp--preset--color--blue-dark);
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-button.is-style-outline .wp-element-button:hover {
  background: var(--wp--preset--color--blue-dark);
  border-color: var(--wp--preset--color--blue-dark);
  color: #fff;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content .alignwide {
  width: 100%;
}

body.page:not(.home):not(.progesto-demo-page) .entry-content > .alignfull.has-background {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

body.page:not(.home):not(.progesto-demo-page) .entry-content > .alignfull.has-background > * {
  margin-left: auto;
  margin-right: auto;
  max-width: calc(var(--wide) + var(--site-gutter) * 2);
}

@media (max-width: 47.5rem) {
  body.page:not(.home):not(.progesto-demo-page) .entry-header--standard {
    padding-block: 7.5rem 3rem;
  }

  body.page:not(.home):not(.progesto-demo-page) .entry-header--standard h1 {
    font-size: clamp(2.75rem, 13vw, 4.75rem);
  }

  body.page:not(.home):not(.progesto-demo-page) .entry-content {
    padding-top: 2.5rem;
  }

  body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-file {
    align-items: flex-start;
    flex-direction: column;
  }

  body.page:not(.home):not(.progesto-demo-page) .entry-content .wp-block-file__button {
    margin-left: 0;
  }
}
