
/*
 * Double Eagle shared design system.
 * Loaded by WordPress on the public site and inside Gutenberg's iframe.
 */

:root {
  --devds-logo-blue: #232cbc;
  --devds-action-blue: #232cbc;
  --devds-action-hover: #171f8f;
  --devds-canvas: #f7f9fa;
  --devds-surface: #ffffff;
  --devds-ink: #171a1f;
  --devds-body-text: #3b4754;
  --devds-muted-text: #5b6875;
  --devds-border: #dce3e8;
  --devds-slate: #3b5570;
  --devds-emt-green: #82b800;
  --devds-emt-text: #587d00;
  --devds-emt-soft: #f1f6e5;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper) {
  color: var(--devds-body-text);
  background-color: var(--devds-canvas) !important;
  background-image:
    linear-gradient(rgba(35, 44, 188, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 44, 188, 0.024) 1px, transparent 1px) !important;
  background-size: 30px 30px !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  :is(h1, h2, h3, h4, h5, h6):not(.has-text-color):not(.wp-block-cover *) {
  color: var(--devds-ink) !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  :is(p, li):not(.has-text-color):not(.wp-block-cover *) {
  color: var(--devds-body-text);
}

/*
 * Stable content-heading tokens.
 * Viewport units render differently inside Gutenberg's narrower iframe, so
 * content headings intentionally use rem values in both views.
 */
:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  h2.wp-block-heading:not(.wp-block-cover *) {
  font-size: 2.4rem !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  h3.wp-block-heading:not(.wp-block-cover *) {
  font-size: 1.75rem !important;
  line-height: 1.15 !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  :is(.wp-block-column, .wp-block-group).has-background:not(.has-main-background-color) {
  border-color: var(--devds-border) !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  .wp-block-column.has-background:not(.has-main-background-color):not(.has-primary-background-color) {
  background-color: var(--devds-surface) !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  :is(.wp-block-button__link, .wp-element-button) {
  color: #fff !important;
  background-color: var(--devds-action-blue) !important;
  border-color: var(--devds-action-blue) !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  a:not(.wp-block-button__link):not(.wp-element-button) {
  color: var(--devds-logo-blue);
}

/* About components use durable block classes and therefore match in both views. */
:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  .devds-about-section-label:not(.wp-block-cover *):not(.devds-about-cta *) {
  color: var(--devds-emt-text) !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper) .devds-about-proof {
  color: #fff !important;
  background-color: var(--devds-slate) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 10px 28px rgba(23, 26, 31, 0.1) !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  .devds-about-proof .devds-about-proof__value {
  color: #fff !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  .devds-about-proof :is(p, li):not(.devds-about-proof__value) {
  color: #e8eef3 !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  .devds-about-proof > .wp-block-column + .wp-block-column {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper) .devds-about-intro {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
  column-gap: clamp(2rem, 4vw, 4rem) !important;
  row-gap: 1rem !important;
  align-items: start !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper) .devds-about-intro > h2 {
  grid-row: 1 / span 2 !important;
  margin: 0 !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper) .devds-about-intro > p {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  font-size: 1.0625rem !important;
  line-height: 1.65 !important;
}

/* Keep the About service grid and CTA spacing identical in both canvases. */
:where(.entry-content.wp-block-post-content, .editor-styles-wrapper) .devds-about-services {
  display: grid !important;
  gap: 0.75rem !important;
  row-gap: 0.75rem !important;
  column-gap: 0.75rem !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper) .devds-about-services > li {
  min-height: 0 !important;
  height: auto !important;
  align-self: stretch !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper) .devds-about-cta {
  margin-block: 1rem !important;
}

/* Structured Cabling expert-tips panel, shared by frontend and editor. */
:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  > .wp-block-columns.alignwide:has(a[href*="five-expert-tips"]) {
  background-color: var(--wp--preset--color--tertiary, #f8f7f9) !important;
  border: 0 !important;
  border-radius: 0.875rem !important;
  padding: clamp(1.25rem, 2.5vw, 2rem) !important;
  overflow: hidden !important;
}

:where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
  > .wp-block-columns.alignwide:has(a[href*="five-expert-tips"]) > .wp-block-column {
  width: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

@media (max-width: 48.875rem) {
  :where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
    h2.wp-block-heading:not(.wp-block-cover *) {
    font-size: 2rem !important;
  }

  :where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
    h3.wp-block-heading:not(.wp-block-cover *) {
    font-size: 1.5rem !important;
  }

  :where(.entry-content.wp-block-post-content, .editor-styles-wrapper) .devds-about-intro {
    grid-template-columns: 1fr !important;
  }

  :where(.entry-content.wp-block-post-content, .editor-styles-wrapper) .devds-about-intro > h2 {
    grid-row: auto !important;
  }

  :where(.entry-content.wp-block-post-content, .editor-styles-wrapper) .devds-about-services {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  :where(.entry-content.wp-block-post-content, .editor-styles-wrapper)
    > .wp-block-columns.alignwide:has(a[href*="five-expert-tips"]) {
    display: flex !important;
  }
}

