/*
 * WordPress Theme Overrides -- Atlassian Design System
 * Scoped to body:not(.cormass-app) so it never fights app-shell.css.
 */

body:not(.cormass-app) {
  background: var(--ds-surface-sunken);
}

body:not(.cormass-app) h1 {
  font: var(--ds-font-heading-xxlarge);
  color: var(--ds-text);
  margin: 0 0 var(--ds-space-200);
  letter-spacing: -0.008em;
}

body:not(.cormass-app) h2 {
  font: var(--ds-font-heading-xlarge);
  color: var(--ds-text);
  margin: var(--ds-space-400) 0 var(--ds-space-150);
  letter-spacing: -0.006em;
}

body:not(.cormass-app) h3 {
  font: var(--ds-font-heading-large);
  color: var(--ds-text);
  margin: var(--ds-space-300) 0 var(--ds-space-100);
}

body:not(.cormass-app) h4 {
  font: var(--ds-font-heading-medium);
  color: var(--ds-text);
  margin: var(--ds-space-300) 0 var(--ds-space-100);
}

body:not(.cormass-app) h5 {
  font: var(--ds-font-heading-small);
  color: var(--ds-text);
  margin: var(--ds-space-250) 0 var(--ds-space-050);
}

body:not(.cormass-app) h6 {
  font: var(--ds-font-heading-xsmall);
  color: var(--ds-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: var(--ds-space-250) 0 var(--ds-space-050);
}

body:not(.cormass-app) p,
body:not(.cormass-app) li,
body:not(.cormass-app) td,
body:not(.cormass-app) th,
body:not(.cormass-app) dd,
body:not(.cormass-app) blockquote {
  font: var(--ds-font-body);
  color: var(--ds-text);
}

body:not(.cormass-app) small {
  font: var(--ds-font-body-small);
  color: var(--ds-text-subtlest);
}

body:not(.cormass-app) code,
body:not(.cormass-app) pre {
  font: var(--ds-font-code);
  background: var(--ds-background-neutral-default);
  border-radius: var(--ds-radius-100);
}

body:not(.cormass-app) code {
  padding: 0.125em 0.375em;
}

body:not(.cormass-app) pre {
  padding: var(--ds-space-200);
  border-radius: var(--ds-radius-200);
  overflow-x: auto;
}

body:not(.cormass-app) .wp-site-blocks,
body:not(.cormass-app) .entry-content,
body:not(.cormass-app) .page-content {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--ds-space-300);
}

body:not(.cormass-app) article.post,
body:not(.cormass-app) article.page,
body:not(.cormass-app) .wp-block-post {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-200);
  box-shadow: var(--ds-shadow-raised);
  padding: var(--ds-space-400);
  margin-bottom: var(--ds-space-300);
}

body:not(.cormass-app) .wp-block-navigation,
body:not(.cormass-app) header.wp-block-template-part {
  background: var(--ds-surface);
  border-bottom: 1px solid var(--ds-border);
}

body:not(.cormass-app) .wp-block-navigation a {
  color: var(--ds-text);
  font-weight: var(--ds-font-weight-medium);
  padding: var(--ds-space-100) var(--ds-space-150);
  border-radius: var(--ds-radius-100);
  transition: background 120ms ease;
}

body:not(.cormass-app) .wp-block-navigation a:hover {
  background: var(--ds-background-neutral-subtle-hovered);
  text-decoration: none;
  color: var(--ds-text);
}

body:not(.cormass-app) .wp-block-button__link,
body:not(.cormass-app) .wp-element-button,
body:not(.cormass-app) button[type="submit"],
body:not(.cormass-app) input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-100);
  padding: var(--ds-space-075) var(--ds-space-150);
  font: var(--ds-font-body);
  font-weight: var(--ds-font-weight-semibold);
  border-radius: var(--ds-radius-100);
  border: 0;
  cursor: pointer;
  transition: background 120ms ease, box-shadow 120ms ease;
  background: var(--ds-background-brand-bold-default);
  color: var(--ds-text-inverse);
  text-decoration: none;
  line-height: 1;
  min-height: 32px;
}

body:not(.cormass-app) .wp-block-button__link:hover,
body:not(.cormass-app) .wp-element-button:hover,
body:not(.cormass-app) button[type="submit"]:hover,
body:not(.cormass-app) input[type="submit"]:hover {
  background: var(--ds-background-brand-bold-hovered);
  text-decoration: none;
  color: var(--ds-text-inverse);
}

body:not(.cormass-app) .wp-block-button__link:active,
body:not(.cormass-app) .wp-element-button:active,
body:not(.cormass-app) button[type="submit"]:active,
body:not(.cormass-app) input[type="submit"]:active {
  background: var(--ds-background-brand-bold-pressed);
}

body:not(.cormass-app) .wp-block-button__link:focus-visible,
body:not(.cormass-app) .wp-element-button:focus-visible,
body:not(.cormass-app) button[type="submit"]:focus-visible,
body:not(.cormass-app) input[type="submit"]:focus-visible {
  outline: 2px solid var(--ds-border-focused);
  outline-offset: 2px;
}

body:not(.cormass-app) .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--ds-link);
  border: 1px solid var(--ds-border);
}

body:not(.cormass-app) .is-style-outline .wp-block-button__link:hover {
  background: var(--ds-background-neutral-subtle-hovered);
  color: var(--ds-link-pressed);
}

body:not(.cormass-app) input[type="text"],
body:not(.cormass-app) input[type="email"],
body:not(.cormass-app) input[type="url"],
body:not(.cormass-app) input[type="password"],
body:not(.cormass-app) input[type="search"],
body:not(.cormass-app) input[type="number"],
body:not(.cormass-app) input[type="tel"],
body:not(.cormass-app) textarea,
body:not(.cormass-app) select {
  width: 100%;
  padding: var(--ds-space-100) var(--ds-space-100);
  font: var(--ds-font-body);
  color: var(--ds-text);
  background: var(--ds-background-input-default);
  border: 2px solid var(--ds-border-input);
  border-radius: var(--ds-radius-100);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

body:not(.cormass-app) input:hover,
body:not(.cormass-app) textarea:hover,
body:not(.cormass-app) select:hover {
  background: var(--ds-background-input-hovered);
}

body:not(.cormass-app) input:focus,
body:not(.cormass-app) textarea:focus,
body:not(.cormass-app) select:focus {
  border-color: var(--ds-border-focused);
  box-shadow: none;
  outline: none;
}

body:not(.cormass-app) label {
  font: var(--ds-font-body-small);
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-subtle);
  display: block;
  margin-bottom: var(--ds-space-050);
}

body:not(.cormass-app) table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-200);
}

body:not(.cormass-app) th {
  background: var(--ds-surface-sunken);
  font-weight: var(--ds-font-weight-semibold);
  text-align: left;
  padding: var(--ds-space-100) var(--ds-space-150);
  border-bottom: 2px solid var(--ds-border);
}

body:not(.cormass-app) td {
  padding: var(--ds-space-100) var(--ds-space-150);
  border-bottom: 1px solid var(--ds-border);
}

body:not(.cormass-app) tr:last-child td {
  border-bottom: 0;
}

body:not(.cormass-app) blockquote {
  border-left: 2px solid var(--ds-border-brand);
  padding: var(--ds-space-100) var(--ds-space-200);
  margin: var(--ds-space-200) 0;
  color: var(--ds-text-subtle);
}

body:not(.cormass-app) figure {
  margin: var(--ds-space-300) 0;
}

body:not(.cormass-app) figcaption {
  font: var(--ds-font-body-small);
  color: var(--ds-text-subtlest);
  margin-top: var(--ds-space-100);
  text-align: center;
}

body:not(.cormass-app) img {
  border-radius: var(--ds-radius-200);
}

body:not(.cormass-app) footer.wp-block-template-part {
  border-top: 1px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text-subtlest);
  padding: var(--ds-space-400) var(--ds-space-300);
  margin-top: var(--ds-space-600);
}

body:not(.cormass-app) .wp-block-search__button {
  background: var(--ds-background-brand-bold-default);
  color: var(--ds-text-inverse);
  border: 0;
  border-radius: 0 var(--ds-radius-100) var(--ds-radius-100) 0;
}

body:not(.cormass-app) .wp-block-tag-cloud a,
body:not(.cormass-app) .tag-cloud-link {
  display: inline-block;
  padding: var(--ds-space-025) var(--ds-space-100);
  font: var(--ds-font-body-small);
  font-weight: var(--ds-font-weight-medium);
  background: var(--ds-background-neutral-default);
  color: var(--ds-text-subtle);
  border-radius: var(--ds-radius-100);
  text-decoration: none;
  transition: background 100ms ease;
}

body:not(.cormass-app) .wp-block-tag-cloud a:hover,
body:not(.cormass-app) .tag-cloud-link:hover {
  background: var(--ds-background-neutral-hovered);
  text-decoration: none;
}

body:not(.cormass-app) .wp-block-query-pagination a,
body:not(.cormass-app) .nav-links a,
body:not(.cormass-app) .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 var(--ds-space-100);
  font-weight: var(--ds-font-weight-medium);
  border-radius: var(--ds-radius-100);
  color: var(--ds-text);
  transition: background 100ms ease;
}

body:not(.cormass-app) .wp-block-query-pagination a:hover,
body:not(.cormass-app) .nav-links a:hover {
  background: var(--ds-background-neutral-subtle-hovered);
  text-decoration: none;
}

body:not(.cormass-app) .page-numbers.current {
  background: var(--ds-background-selected-default);
  color: var(--ds-text-selected);
  font-weight: var(--ds-font-weight-semibold);
}

body:not(.cormass-app) hr,
body:not(.cormass-app) .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--ds-border);
  margin: var(--ds-space-400) 0;
}

body:not(.cormass-app) .comment-body {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-200);
  padding: var(--ds-space-200);
  margin-bottom: var(--ds-space-200);
}

body:not(.cormass-app) .comment-author .fn {
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text);
}

body:not(.cormass-app) .comment-metadata {
  font: var(--ds-font-body-small);
  color: var(--ds-text-subtlest);
}

body:not(.cormass-app) .widget {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-200);
  padding: var(--ds-space-200);
  margin-bottom: var(--ds-space-200);
}

body:not(.cormass-app) .widget-title {
  font: var(--ds-font-heading-xsmall);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ds-text-subtlest);
  margin-bottom: var(--ds-space-150);
  padding-bottom: var(--ds-space-100);
  border-bottom: 1px solid var(--ds-border);
}

@media (prefers-reduced-motion: reduce) {
  body:not(.cormass-app) *,
  body:not(.cormass-app) *::before,
  body:not(.cormass-app) *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
