/* Ruty decision architecture, aligned to the shared CNW layout system. */
body.ruty-gemini-page .ruty-components {
  padding: 124px 0 132px !important;
  background: #f1f1ef !important;
  color: #101112 !important;
}

body.ruty-gemini-page .ruty-components-shell {
  width: min(1320px, calc(100% - 80px)) !important;
  max-width: 1320px !important;
  margin-inline: auto !important;
  padding: 0 !important;
}

body.ruty-gemini-page .ruty-components-head {
  display: block !important;
  max-width: 850px !important;
  margin: 0 auto 72px !important;
  padding: 0 !important;
  text-align: center !important;
}

body.ruty-gemini-page .ruty-components-head .cnw-eyebrow {
  margin: 0 0 18px !important;
  color: #626a70 !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

body.ruty-gemini-page .ruty-components-head .cnw-display {
  max-width: 18ch !important;
  margin: 0 auto !important;
  color: #101112 !important;
  font-size: 54px !important;
  font-weight: 550 !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

body.ruty-gemini-page .ruty-components-head > .cnw-body {
  max-width: 720px !important;
  margin: 24px auto 0 !important;
  color: #4f575e !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

body.ruty-gemini-page .ruty-architecture-map {
  position: relative;
  width: min(1200px, 100%);
  min-height: 620px;
  margin-inline: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.ruty-gemini-page .ruty-architecture-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 560px;
  pointer-events: none;
}

body.ruty-gemini-page #rutyFlowArrow path { fill: #899197; }

body.ruty-gemini-page .ruty-flow-line {
  fill: none;
  stroke: #899197;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  marker-end: url(#rutyFlowArrow);
  stroke-dasharray: 1400;
  stroke-dashoffset: 0;
}

body.ruty-gemini-page .ruty-architecture-map.visible .ruty-flow-line {
  animation: ruty-flow-draw .75s cubic-bezier(.22, 1, .36, 1) both;
}

body.ruty-gemini-page .ruty-flow-2 { animation-delay: .08s !important; }
body.ruty-gemini-page .ruty-flow-3 { animation-delay: .16s !important; }
body.ruty-gemini-page .ruty-flow-4 { animation-delay: .24s !important; }
body.ruty-gemini-page .ruty-flow-5 { animation-delay: .32s !important; }
body.ruty-gemini-page .ruty-flow-6 { animation-delay: .40s !important; }
body.ruty-gemini-page .ruty-flow-7 { animation-delay: .48s !important; }

body.ruty-gemini-page .ruty-flow-feedback {
  stroke-dasharray: 5 6;
  stroke-dashoffset: 0;
  animation-delay: .56s !important;
}

body.ruty-gemini-page .ruty-flow-note {
  fill: #7a848b;
  font: 600 9px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .06em;
}

@keyframes ruty-flow-draw {
  from { stroke-dashoffset: 1400; }
  to { stroke-dashoffset: 0; }
}

body.ruty-gemini-page .ruty-flow-node,
body.ruty-gemini-page .ruty-flow-output {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  width: 220px;
  height: 190px;
  min-height: 190px;
  padding: 18px 20px;
  border: 1px solid #d3d6d6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 17, 18, .035);
  opacity: 1 !important;
  transform: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease !important;
}

body.ruty-gemini-page .ruty-flow-node:hover {
  border-color: #7893a8;
  background: #f8fbfd;
  box-shadow: 0 14px 34px rgba(16, 42, 67, .08);
}

body.ruty-gemini-page .ruty-flow-node--state { left: 20px; top: 200px; width: 170px; }
body.ruty-gemini-page .ruty-flow-node--policy { left: 270px; top: 200px; }
body.ruty-gemini-page .ruty-flow-node--risk { left: 490px; top: 0; }
body.ruty-gemini-page .ruty-flow-node--signal { left: 710px; top: 200px; }
body.ruty-gemini-page .ruty-flow-node--sizing { left: 490px; top: 400px; }

body.ruty-gemini-page .ruty-flow-index {
  display: block;
  margin-bottom: 12px;
  color: #607384;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

body.ruty-gemini-page .ruty-flow-node h3 {
  margin: 0 0 7px !important;
  color: #101112 !important;
  font-size: 21px !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

body.ruty-gemini-page .ruty-flow-node p {
  margin: 0 !important;
  color: #505960 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
}

body.ruty-gemini-page .ruty-flow-node small {
  display: block;
  margin-top: 8px;
  color: #73808a;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.ruty-gemini-page .ruty-flow-output {
  right: 20px;
  top: 200px;
  width: 170px;
  height: 190px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: #102a43;
  background: #102a43;
  color: #fff;
}

body.ruty-gemini-page .ruty-flow-output span,
body.ruty-gemini-page .ruty-flow-output small {
  color: rgba(255, 255, 255, .68);
  font-size: 9px;
  letter-spacing: 0;
}

body.ruty-gemini-page .ruty-flow-output strong {
  margin: 8px 0 6px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

@media (max-width: 1260px) {
  body.ruty-gemini-page .ruty-components-shell { width: min(100% - 64px, 1080px) !important; }
  body.ruty-gemini-page .ruty-architecture-map { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  body.ruty-gemini-page .ruty-architecture-lines { display: none; }
  body.ruty-gemini-page .ruty-flow-node,
  body.ruty-gemini-page .ruty-flow-output {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 180px;
  }
}

@media (max-width: 760px) {
  body.ruty-gemini-page .ruty-components { padding: 84px 0 92px !important; }
  body.ruty-gemini-page .ruty-components-shell { width: calc(100% - 36px) !important; }
  body.ruty-gemini-page .ruty-components-head { margin-bottom: 50px !important; }
  body.ruty-gemini-page .ruty-components-head .cnw-display { font-size: 40px !important; }
  body.ruty-gemini-page .ruty-components-head > .cnw-body { font-size: 16px !important; }
  body.ruty-gemini-page .ruty-architecture-map { grid-template-columns: 1fr; }
  body.ruty-gemini-page .ruty-flow-node,
  body.ruty-gemini-page .ruty-flow-output { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.ruty-gemini-page .ruty-flow-line { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* Architecture and component composition.
   The decision grid has its own palette contract in ruty-decision-light.css;
   this file must not repaint that section. */
body.ruty-gemini-page .product-explainer__intro {
  grid-template-columns: minmax(0, 1fr) minmax(390px, .92fr) !important;
  gap: clamp(36px, 4vw, 64px) !important;
  align-items: start !important;
}

body.ruty-gemini-page .product-explainer__intro h2 {
  max-width: 13.5ch !important;
  color: #fff !important;
}

body.ruty-gemini-page .product-explainer__copy {
  max-width: 650px !important;
  margin: 0 !important;
  padding-top: clamp(34px, 4vw, 58px) !important;
  color: #fff !important;
}

body.ruty-gemini-page .product-explainer__copy strong {
  color: #fff !important;
}

body.ruty-gemini-page #plugins.ruty-components {
  padding: 104px 0 124px !important;
  background: #fff !important;
}

body.ruty-gemini-page .ruty-components-shell {
  width: min(1460px, calc(100% - 96px)) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding: 0 !important;
  background: transparent !important;
}

body.ruty-gemini-page .ruty-components-head {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 76px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .92fr) !important;
  gap: clamp(36px, 4vw, 64px) !important;
  align-items: start !important;
  text-align: left !important;
}

body.ruty-gemini-page .ruty-components-head .cnw-eyebrow {
  margin-bottom: 16px !important;
}

body.ruty-gemini-page .ruty-components-head .cnw-display {
  max-width: 13.5ch !important;
  margin: 0 !important;
  text-align: left !important;
}

body.ruty-gemini-page .ruty-components-head > .cnw-body {
  max-width: 650px !important;
  margin: 0 !important;
  padding-top: clamp(42px, 4.5vw, 68px) !important;
  text-align: left !important;
}

@media (max-width: 860px) {
  body.ruty-gemini-page .product-explainer__intro,
  body.ruty-gemini-page .ruty-components-head {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  body.ruty-gemini-page .product-explainer__copy,
  body.ruty-gemini-page .ruty-components-head > .cnw-body {
    padding-top: 0 !important;
  }

  body.ruty-gemini-page .ruty-components-shell {
    width: calc(100% - 36px) !important;
  }
}
