/*
 * oilsignal.io/insights: the WordPress styles the Insights theme relies on,
 * as insights.oilsignal.io serves them (WordPress 6.9 with Gutenberg 24.4 and
 * Jetpack 16.5): theme.json global styles, block layout, the blocks on the
 * article page and the sharing buttons. Loaded before the theme's osi.css,
 * as on WordPress, so the theme's rules win ties.
 */

:root {
  --wp--preset--color--white: #ffffff;
  --wp--preset--color--ink: #111318;
  --wp--preset--color--slate: #59616d;
  --wp--style--global--content-size: 720px;
  --wp--style--global--wide-size: 1240px;
  --wp--style--block-gap: 1.5rem;
}

a:where(:not(.wp-element-button)) {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--osi-font-display);
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

:root :where(.is-layout-flow) > :first-child,
:root :where(.is-layout-constrained) > :first-child {
  margin-block-start: 0;
}

:root :where(.is-layout-flow) > :last-child,
:root :where(.is-layout-constrained) > :last-child {
  margin-block-end: 0;
}

:root :where(.is-layout-flow) > *,
:root :where(.is-layout-constrained) > * {
  margin-block-start: 1.5rem;
  margin-block-end: 0;
}

:root :where(.is-layout-flex) {
  gap: 1.5rem;
}

.is-layout-constrained > .aligncenter,
.is-layout-flow > .aligncenter {
  margin-left: auto !important;
  margin-right: auto !important;
}

.is-layout-constrained
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto !important;
  margin-right: auto !important;
}

.is-layout-constrained > .alignwide {
  max-width: var(--wp--style--global--wide-size);
}

body .is-layout-flex {
  display: flex;
}

.is-layout-flex {
  flex-wrap: wrap;
  align-items: center;
}

.is-layout-flex > :is(*, div) {
  margin: 0;
}

/* The article header's own content width (820px in the Single template). */
.wp-container-core-group-is-layout-372beed2
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.wp-container-core-group-is-layout-372beed2 > .alignwide {
  max-width: 820px;
}

.wp-block-group {
  box-sizing: border-box;
}

:where(.wp-block-group.wp-block-group-is-layout-constrained) {
  position: relative;
}

.wp-block-post-content {
  display: flow-root;
}

.wp-block-post-title {
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: normal;
}

.wp-block-post-terms,
.wp-block-post-time-to-read {
  box-sizing: border-box;
}

.wp-block-post-featured-image {
  position: relative;
  margin-left: 0;
  margin-right: 0;
}

.wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  box-sizing: border-box;
  vertical-align: bottom;
}

:where(figure) {
  margin: 0 0 1em;
}

:root :where(.wp-block-post-content a:where(:not(.wp-element-button))) {
  color: var(--wp--preset--color--ink);
  text-decoration: underline;
}

:root :where(.wp-block-post-content a:where(:not(.wp-element-button)):hover) {
  color: #1d4ed8;
}

:root :where(.wp-block-post-content h2) {
  font-size: clamp(26px, 2.2vw, 32px);
}

:root :where(.wp-block-post-content h3) {
  font-size: clamp(21px, 1.7vw, 24px);
}

:root :where(.wp-block-post-content h4) {
  font-size: 19px;
}

:root
  :where(
    .wp-element-caption,
    .wp-block-image figcaption,
    .wp-block-table figcaption
  ) {
  color: var(--wp--preset--color--slate);
  font-size: 14px;
}

/* Jetpack sharing buttons (LinkedIn, X, Email; "icon and text"). */
.jetpack-sharing-buttons__services-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  list-style-type: none;
  margin: 5px;
  padding: 0;
}

.jetpack-sharing-buttons__services-list.has-normal-icon-size {
  font-size: 16px;
}

.jetpack-sharing-button__list-item {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
  list-style-type: none;
  padding: 0;
}

a.jetpack-sharing-button__button {
  color: inherit;
}

.jetpack-sharing-button__button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: auto;
  margin: 4px 4px 0;
  padding: 4px 9px 3px;
  border-radius: 4px;
  background: #fff;
  box-shadow:
    0 1px 2px #0000001f,
    0 0 0 1px #0000001f;
  color: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: 23px;
  text-decoration: none;
  cursor: default;
}

.jetpack-sharing-button__button svg {
  width: 1.5em;
  height: 1.5em;
  fill: currentColor;
}

.jetpack-sharing-button__button:hover {
  box-shadow:
    0 1px 2px #00000038,
    0 0 0 1px #00000038;
  cursor: pointer;
}

.jetpack-sharing-button__button.style-icon-text {
  margin-inline-end: 4px;
  padding-inline-end: 11px;
}

.jetpack-sharing-button__list-item:first-child .jetpack-sharing-button__button {
  margin-inline-start: 0;
}

.style-icon-text .jetpack-sharing-button__service-label {
  margin-inline-start: 5px;
}

@media print {
  .jetpack-sharing-buttons__services-list {
    display: none !important;
  }
}
