/* The root carries the theme's .ry typography and reset; .ry.sph selectors keep this module's
   layout, sizes and colors over the theme's reset (.ry div, .ry span), paragraph and heading rules.
   Every setting arrives as a custom property on the root, written per instance in module.html,
   which also switches the sizes and spacing at the mobile breakpoint. */

.sph {
  --sph-inset: 1rem;
  --sph-top: #FFFFFF;
  --sph-bottom: #00544F;
  --sph-split-n: .5;
  --sph-below: 0px;
  color: #000000;
  font-family: "Roboto", sans-serif;
}

/* Bands. With Full-width colors on (.sph-bleed), each band paints its color as a border image that
   reaches 100vmax past both sides: wide enough for any screen, and, unlike a 100vw margin trick,
   it never adds a sideways scrollbar. The text and frame stay inside the section. The split band
   holds the frame and, as bottom padding, the space below it, so the colors change at
   --sph-split-n of the frame's height: of the band's height less that padding. */

.ry.sph .sph-top {
  padding-top: var(--sph-topsp, 0px);
  padding-bottom: calc(var(--sph-above) + var(--sph-room, 0px));
  background: var(--sph-top);
}

.ry.sph .sph-split {
  --sph-split-at: calc(var(--sph-split-n) * (100% - var(--sph-below)));
  position: relative;
  isolation: isolate;
  padding-bottom: var(--sph-below);
  background: linear-gradient(var(--sph-top) 0 var(--sph-split-at), var(--sph-bottom) var(--sph-split-at) 100%);
}

.ry.sph.sph-bleed .sph-band {
  background: none;
}

.ry.sph.sph-bleed .sph-top {
  border-image: linear-gradient(var(--sph-top) 0 0) fill 0 / / 0 100vmax;
}

.ry.sph.sph-bleed .sph-split {
  border-image: linear-gradient(var(--sph-top) 0 var(--sph-split-at), var(--sph-bottom) var(--sph-split-at) 100%) fill 0 / / 0 100vmax;
}

/* The bottom color and the next section's background meet at the hero's bottom edge, which can fall
   partway through a screen pixel (at a browser zoom or display scaling such as 110% or 150%). Each
   would then cover only part of that pixel row, and the page's white would show through as a pale
   line. A strip of the bottom color reaches 2px past the edge, so the two overlap instead: it sits
   under the next section when that paints above the hero, and covers its top 2px when the hero
   paints above it. It sits over the band's own colors and under the texture and the frame. */
.ry.sph .sph-split::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 4px;
  background: var(--sph-bottom);
  pointer-events: none;
}

.ry.sph.sph-bleed .sph-split::after {
  background: none;
  border-image: linear-gradient(var(--sph-bottom) 0 0) fill 0 / / 0 100vmax;
}

/* Bottom grain and Bottom paper: the same tiles as Scroll Showcase's and Side by Side Showcase's
   Frame grain and paper, over the bottom color only. The tiles are anchored to the hero's bottom
   edge and centered on the page, so a section below that anchors the same tiles to its top edge and
   centers them (Rotating Heading's Section grain and paper) carries the texture on without a seam. */

.ry.sph .sph-tex-bottom {
  position: absolute;
  z-index: 0;
  top: var(--sph-split-at);
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

/* Top grain and Top paper: the same tiles over the top color, anchored to the hero's top edge so a
   section above that anchors them to its bottom edge carries the texture on without a seam. The top
   color is two pieces: the text band, and the frame band down to the color change. Each piece starts
   its tiles at its own top edge, so they can sit a fraction of a tile out of step where the bands meet,
   behind the frame's top. The pieces sit under the text and the frame. */

.ry.sph .sph-tex-top,
.ry.sph .sph-tex-mid {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  pointer-events: none;
}

.ry.sph .sph-tex-top {
  bottom: 0;
}

.ry.sph .sph-tex-mid {
  bottom: calc(100% - var(--sph-split-at));
}

.ry.sph .sph-top {
  position: relative;
  isolation: isolate;
}

/* The textures are inline SVGs module.html writes inside each texture box (see tex_svg there for why
   they aren't background images). The box keeps the positioning above; the SVG fills it. A background
   is laid out on the box's pixel-snapped edges, an SVG on its exact ones, which can be a fraction of a
   pixel apart. The bottom texture's tiles anchor to its bottom edge, so its SVG's size is rounded to a
   whole device pixel (--sph-snap: 1px, 1/2 on 2x screens, 1/3 on 3x) to put the tiles on the same
   pixels. The top and middle pieces anchor to their top edge; they overshoot by a pixel and the box
   clips them, so each ends on the box's snapped edge like a background would. */
.ry.sph .sph-tex > .sph-tex-svg {
  --sph-snap: 1px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  width: round(100%, var(--sph-snap));
  height: round(100%, var(--sph-snap));
  pointer-events: none;
}

.ry.sph .sph-tex-top,
.ry.sph .sph-tex-mid {
  overflow: clip;
}

.ry.sph .sph-tex-top > .sph-tex-svg,
.ry.sph .sph-tex-mid > .sph-tex-svg {
  height: calc(100% + 1px);
}

@media (min-resolution: 1.5dppx) {
  .ry.sph .sph-tex > .sph-tex-svg { --sph-snap: 0.5px; }
}

@media (min-resolution: 2.5dppx) {
  .ry.sph .sph-tex > .sph-tex-svg { --sph-snap: 0.3333px; }
}

.ry.sph.sph-bleed .sph-tex-bottom,
.ry.sph.sph-bleed .sph-tex-top,
.ry.sph.sph-bleed .sph-tex-mid {
  right: calc(50% - 50vw);
  left: calc(50% - 50vw);
}

/* With a shadow, the hero's section paints above the next one (see Frame), so the bottom color's
   2px strip covers the top of that section. The texture reaches over the strip too, its tiles still
   anchored to the hero's bottom edge, so the strip carries on the texture of the section it covers. */
.ry.sph.sph-shadow-soft .sph-tex-bottom,
.ry.sph.sph-shadow-strong .sph-tex-bottom {
  bottom: -2px;
}

/* 100vw includes a desktop scrollbar, so the section clips the full-width texture at its edges */
.dnd-section:has(.sph-bleed .sph-tex-bottom, .sph-bleed .sph-tex-top, .sph-bleed .sph-tex-mid, .sph-bleed .sph-globe-layer) {
  overflow-x: clip;
}

/* Top texture: Dot globe. The canvas sits behind the text and the frame and reaches from the hero's
   top to the color change; module.js sets its height and draws it. For the globe to show below the
   top band, beside and behind the frame, the bands drop their top color and the root paints it
   instead, under the canvas: root color, then canvas, then the split band (its bottom color and the
   frame), then the text band. Dots behind the text fade to 15% (an ellipse that module.js fits to
   the text through --sph-g*), and the bottom 20px fade out. */
.ry.sph.sph-globe {
  position: relative;
  isolation: isolate;
  background: var(--sph-top);
}

.ry.sph.sph-globe.sph-bleed {
  background: none;
  border-image: linear-gradient(var(--sph-top) 0 0) fill 0 / / 0 100vmax;
}

.ry.sph.sph-globe .sph-top {
  position: relative;
  z-index: 1;
  background: none;
  border-image: none;
}

.ry.sph.sph-globe .sph-split {
  background: linear-gradient(transparent 0 var(--sph-split-at), var(--sph-bottom) var(--sph-split-at) 100%);
}

.ry.sph.sph-globe.sph-bleed .sph-split {
  background: none;
  border-image: linear-gradient(transparent 0 var(--sph-split-at), var(--sph-bottom) var(--sph-split-at) 100%) fill 0 / / 0 100vmax;
}

.ry.sph .sph-globe-layer {
  --sph-clear: radial-gradient(ellipse var(--sph-grx, 1px) var(--sph-gry, 1px) at var(--sph-gx, 50%) var(--sph-gy, 0px), rgba(0, 0, 0, .15) 35%, #000 100%);
  --sph-fade: linear-gradient(#000 calc(100% - 20px), transparent 100%);
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  -webkit-mask-image: var(--sph-clear), var(--sph-fade);
  -webkit-mask-composite: source-in;
  mask-image: var(--sph-clear), var(--sph-fade);
  mask-composite: intersect;
}

.ry.sph.sph-bleed .sph-globe-layer {
  right: calc(50% - 50vw);
  left: calc(50% - 50vw);
}

.ry.sph .sph-globe-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Text. Sizes come from the theme unless Text styles are Custom (.sph-head-custom,
   .sph-main-custom), which size them from --sph-head and --sph-main. */

/* The text block and the frame share one width. Section width (.sph-w-section) is the section's
   content width less --sph-inset, so the frame's edges line up with content in sections of the same
   width and padding. Custom (.sph-w-custom) is Custom frame width, capped at the section's content
   width, or, with Full-width colors on, at the screen less --sph-edge on each side, so a wide frame
   reaches past the section's padding and maximum width. Equal margins (negative when the block is
   wider than the section) keep it centered. */

/* The theme pads DnD columns by 1rem a side above 767px (_dnd_layout.css). A module stacked with
   others sits in such a column; one placed alone in a section doesn't, so it takes the same inset
   itself and lines up with column content either way. */
.dnd-column .sph {
  --sph-inset: 0px;
}

@media (max-width: 767px) {
  .sph {
    --sph-inset: 0px;
  }
}

.ry.sph .sph-inner,
.ry.sph .sph-figure {
  --sph-w: calc(100% - 2 * var(--sph-inset));
  width: var(--sph-w);
  margin: 0 calc((100% - var(--sph-w)) / 2);
}

.ry.sph.sph-w-custom .sph-inner,
.ry.sph.sph-w-custom .sph-figure {
  --sph-w: min(var(--sph-frame-w, 1120px), 100%);
}

.ry.sph.sph-w-custom.sph-bleed .sph-inner,
.ry.sph.sph-w-custom.sph-bleed .sph-figure {
  --sph-w: min(var(--sph-frame-w, 1120px), calc(100vw - 2 * var(--sph-edge, 40px)));
}

.ry.sph .sph-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: var(--sph-text-w, 880px);
}

.ry.sph.sph-align-center .sph-text {
  align-items: center;
  margin: 0 auto;
  text-align: center;
}

.ry.sph .sph-text .sph-eyebrow {
  margin: 0 0 -8px;
  color: var(--sph-eyebrow-color, #666666);
}

/* The font comes from Eyebrow font: the theme's Roboto, or Roboto Serif through its serif class */
.ry.sph .sph-text .sph-eyebrow-eyebrow {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ry.sph .sph-text .sph-eyebrow-custom {
  font-size: var(--sph-eyebrow);
  font-weight: 500;
  line-height: 1.3;
}

.ry.sph .sph-text .sph-heading {
  margin: 0;
  color: var(--sph-heading-color, #000000);
  text-wrap: balance;
}

.ry.sph .sph-head-custom .sph-heading {
  font-size: var(--sph-head);
  line-height: 1.1;
}

.ry.sph .sph-text .sph-main,
.ry.sph .sph-text .sph-main p,
.ry.sph .sph-text .sph-main li {
  color: var(--sph-main-color, #666666);
}

.ry.sph .sph-main-custom .sph-main,
.ry.sph .sph-main-custom .sph-main p,
.ry.sph .sph-main-custom .sph-main li {
  font-size: var(--sph-main);
  line-height: 1.6;
}

.ry.sph .sph-text .sph-main > :first-child { margin-top: 0; }
.ry.sph .sph-text .sph-main > :last-child { margin-bottom: 0; }

.ry.sph .sph-text .sph-main a {
  color: var(--sph-c);
  font-weight: 600;
}

/* Buttons use the theme's .btn styles, colored from the accent unless the editor picks colors
   (the same rules as Side by Side Showcase) */

.ry.sph .sph-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.ry.sph.sph-align-center .sph-btns {
  justify-content: center;
}

.ry.sph .sph-btns a.btn.sph-btn.solid {
  border-color: var(--sph-btn-bg, var(--sph-c)) !important;
  background: var(--sph-btn-bg, var(--sph-c)) !important;
  color: var(--sph-btn-fg, var(--sph-on, #FFFFFF)) !important;
}

.ry.sph .sph-btns a.btn.sph-btn.outline {
  border-color: var(--sph-btn-bg, var(--sph-c)) !important;
  background: var(--sph-btn-fill, transparent) !important;
  color: var(--sph-btn-fg, var(--sph-btn-bg, var(--sph-c))) !important;
}

.ry.sph .sph-btns a.btn.sph-btn.plain {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--sph-btn-fg, var(--sph-btn-bg, var(--sph-c))) !important;
}

/* Icon after the text. The theme sizes it (20px) and moves it right on hover; it takes the text
   color unless the button sets an icon color. */
.ry.sph .sph-btns a.btn.sph-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ry.sph .sph-btns a.btn.sph-btn-icon svg {
  flex: none;
  fill: var(--sph-btn-icon, currentColor);
}

.ry.sph .sph-btns a.btn.sph-btn-icon svg path {
  fill: var(--sph-btn-icon, currentColor);
}

.ry.sph .sph-btns a.btn.sph-btn:focus-visible {
  outline: 3px solid var(--sph-btn-bg, var(--sph-c));
  outline-offset: 3px;
}

/* Frame */

/* Above the texture */
.ry.sph .sph-figure {
  position: relative;
  z-index: 1;
  padding: 0;
}

.ry.sph .sph-frame {
  position: relative;
  aspect-ratio: var(--sph-aspect, 16 / 9);
  box-sizing: border-box;
  overflow: hidden;
  border: var(--sph-border, 8px) solid var(--sph-border-c, #FFFFFF);
  border-radius: var(--sph-radius, 24px);
  background: var(--sph-frame-bg, #E6F6F5);
}

.ry.sph.sph-shadow-soft .sph-frame {
  box-shadow: 0 28px 56px -20px rgba(0, 40, 37, .32), 0 10px 24px -12px rgba(0, 40, 37, .22);
}

.ry.sph.sph-shadow-strong .sph-frame {
  box-shadow: 0 40px 80px -24px rgba(0, 40, 37, .48), 0 14px 32px -14px rgba(0, 40, 37, .32);
}

/* The shadow falls past the hero onto the next section: the hero's section sits a layer above it,
   and the next section's content a layer above that, so the shadow lands on that section's
   background and texture but under its text. A next section holding Rotating Heading's inline
   texture (.rth-sec-tex) is skipped by the last two rules: it isolates itself, so the hero
   (z-index 1) still paints its shadow over that section's top padding, and its absolutely
   positioned texture has to size to the section, not to the row. This assumes the hero is the last
   module in its section, as it's meant to be: a module stacked under it in the same column still
   gets the shadow over its text. */
.dnd-section:has(.sph-shadow-soft .sph-figure, .sph-shadow-strong .sph-figure) {
  position: relative;
  z-index: 1;
}

.dnd-section:has(.sph-shadow-soft .sph-figure, .sph-shadow-strong .sph-figure) + .dnd-section:not(:has(.rth-sec-tex)) {
  isolation: auto;
}

.dnd-section:has(.sph-shadow-soft .sph-figure, .sph-shadow-strong .sph-figure) + .dnd-section:not(:has(.rth-sec-tex)) > .row-fluid {
  position: relative;
  z-index: 1;
}

.ry.sph .sph-frame picture,
.ry.sph .sph-media {
  display: block;
  width: 100%;
  height: 100%;
}

.ry.sph img.sph-media,
.ry.sph video.sph-media {
  object-fit: var(--sph-fit, cover);
  object-position: var(--sph-focal, center);
}

/* Cards: a deck of 1-4 link cards on the color break, in place of the frame. The deck is the
   .sph-figure, so it takes the frame's width, centering and shadow-over-next-section rules. One row
   (--sph-n columns), 2 x 2 for four cards under 1200px. Each card is white, light, dark or custom
   through the --sph-c* values below. The phone layout is written per instance in module.html, at the
   breakpoint, as --sph-m-* values; every rule that reads one falls back to the desktop look. */

.ry.sph .sph-deck {
  --sph-n: 1;
  --sph-tile-px: 56px;
  --sph-icon-px: 28px;
  display: grid;
  grid-template-columns: var(--sph-m-cols, repeat(var(--sph-n), minmax(0, 1fr)));
  gap: var(--sph-m-gap, 24px);
  align-items: stretch;
}

.ry.sph .sph-deck-n2 { --sph-n: 2; }
.ry.sph .sph-deck-n3 { --sph-n: 3; }
.ry.sph .sph-deck-n4 { --sph-n: 4; }
.ry.sph .sph-deck-icon-small { --sph-tile-px: 44px; --sph-icon-px: 22px; }
.ry.sph .sph-deck-icon-large { --sph-tile-px: 72px; --sph-icon-px: 36px; }

@media (max-width: 1199px) {
  .ry.sph .sph-deck-n4 { --sph-n: 2; }
}

/* Card colors. Custom takes its three colors from the card's own style attribute; the icon and link
   color falls back to the text color, and the tile is a 12% wash of the icon color. */
.ry.sph .sph-card-white {
  --sph-cbg: #FFFFFF; --sph-ctitle: #000000; --sph-ctext: #666666;
  --sph-cicon: var(--sph-c); --sph-clink: var(--sph-c);
  --sph-ctile: var(--sph-tile, #E6F6F5); --sph-cline: #E6EBF2;
}

.ry.sph .sph-card-light {
  --sph-cbg: var(--sph-tile, #E6F6F5); --sph-ctitle: #000000; --sph-ctext: #666666;
  --sph-cicon: var(--sph-c); --sph-clink: var(--sph-c);
  --sph-ctile: #FFFFFF; --sph-cline: rgba(0, 42, 40, .06);
}

.ry.sph .sph-card-dark {
  --sph-cbg: #002A28; --sph-ctitle: #FFFFFF; --sph-ctext: rgba(255, 255, 255, .84);
  --sph-cicon: #A6E1DD; --sph-clink: #FFFFFF;
  --sph-ctile: rgba(255, 255, 255, .10); --sph-cline: rgba(255, 255, 255, .12);
}

.ry.sph .sph-card-custom {
  --sph-cbg: var(--sph-card-bg, #FFFFFF); --sph-ctitle: var(--sph-card-fg, #000000);
  --sph-ctext: color-mix(in srgb, var(--sph-card-fg, #000000) 85%, transparent);
  --sph-cicon: var(--sph-card-accent, var(--sph-card-fg, #000000)); --sph-clink: var(--sph-cicon);
  --sph-ctile: color-mix(in srgb, var(--sph-cicon) 12%, transparent);
  --sph-cline: color-mix(in srgb, var(--sph-card-fg, #000000) 12%, transparent);
}

.ry.sph .sph-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: var(--sph-m-card-ai, stretch);
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: var(--sph-m-pad, 32px 32px 30px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: var(--sph-m-radius, var(--sph-radius, 24px));
  background: var(--sph-cbg);
  color: var(--sph-ctitle);
  text-align: left;
}

.ry.sph .sph-deck-border .sph-card {
  border-color: var(--sph-cline);
}

.ry.sph.sph-shadow-soft .sph-card {
  box-shadow: 0 10px 30px rgba(0, 42, 40, .16);
}

.ry.sph.sph-shadow-strong .sph-card {
  box-shadow: 0 16px 40px rgba(0, 42, 40, .28);
}

.ry.sph .sph-deck-rise .sph-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.ry.sph .sph-deck-rise .sph-card-linked:hover {
  transform: translateY(-4px);
}

.ry.sph.sph-shadow-soft .sph-deck-rise .sph-card-linked:hover {
  box-shadow: 0 16px 38px rgba(0, 42, 40, .22);
}

.ry.sph.sph-shadow-strong .sph-deck-rise .sph-card-linked:hover {
  box-shadow: 0 22px 48px rgba(0, 42, 40, .34);
}

/* Background art in the bottom-right corner, behind the text. Text stays clear of it (Text and art:
   Text stays clear of the art) by limiting the text column; Art behind the text lets them overlap.
   The art sits at z-index -1 inside the card's own stacking context (isolation), over the card's
   background and under the text, so the text column needs no position of its own: the card stays
   the containing block of the stretched link, which then covers the padding too. */
.ry.sph .sph-card-bg {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  display: var(--sph-m-art, block);
  width: var(--sph-art-w, 40%);
  max-width: none;
  height: auto;
  margin: 0;
  pointer-events: none;
}

.ry.sph .sph-card-body {
  display: var(--sph-m-bd, flex);
  flex: 1 1 auto;
  flex-direction: column;
  grid-template-columns: var(--sph-m-bcols, none);
  column-gap: var(--sph-m-bgap, 0);
  row-gap: 0;
  align-content: center;
  min-width: 0;
}

.ry.sph .sph-card-art .sph-card-body {
  max-width: var(--sph-m-bmax, calc(100% - var(--sph-art-w, 40%) + 4%));
}

.ry.sph .sph-deck-art-behind .sph-card-art .sph-card-body {
  max-width: none;
}

/* Icon tile. Icon background None drops the tile and keeps the icon alone. */
.ry.sph .sph-card-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  box-sizing: border-box;
  width: var(--sph-m-tile, var(--sph-tile-px));
  height: var(--sph-m-tile, var(--sph-tile-px));
  border-radius: calc(var(--sph-m-tile, var(--sph-tile-px)) * .25);
  background: var(--sph-ctile);
  color: var(--sph-cicon);
  grid-column: 1;
  grid-row: 1 / span 2;
}

.ry.sph .sph-deck-bare .sph-card-icon {
  width: auto;
  height: auto;
  background: none;
}

/* Without a tile, an icon narrower than it is tall keeps its own width, so it lines up with the title */
.ry.sph .sph-deck-bare .sph-card-icon svg {
  width: auto;
}

.ry.sph .sph-card-icon svg {
  flex: none;
  width: var(--sph-m-icon, var(--sph-icon-px));
  height: var(--sph-m-icon, var(--sph-icon-px));
  fill: currentColor;
}

.ry.sph .sph-card-icon svg path {
  fill: currentColor;
}

/* A custom SVG repaints in the icon color through a mask; Keep the SVG's colors shows it as drawn */
.ry.sph .sph-card-icon .sph-card-svg {
  display: block;
  width: var(--sph-m-icon, var(--sph-icon-px));
  height: var(--sph-m-icon, var(--sph-icon-px));
  background: currentColor;
  -webkit-mask: var(--sph-svg) center / contain no-repeat;
  mask: var(--sph-svg) center / contain no-repeat;
}

.ry.sph .sph-card-icon img.sph-card-img {
  display: block;
  width: var(--sph-m-icon, var(--sph-icon-px));
  height: var(--sph-m-icon, var(--sph-icon-px));
  max-width: none;
  object-fit: contain;
}

/* Title and text: set in full, since the theme styles h2, h3, p and span */
.ry.sph .sph-card-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 0;
  color: var(--sph-ctitle);
  font-family: "Roboto", sans-serif;
  font-size: var(--sph-m-title, 24px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  overflow-wrap: anywhere;
}

.ry.sph .sph-card-icon + .sph-card-title {
  margin-top: var(--sph-m-tmt, 24px);
}

.ry.sph .sph-card-text {
  grid-column: 2;
  grid-row: 2;
  margin: var(--sph-m-xmt, 10px) 0 0;
  padding: 0;
  color: var(--sph-ctext);
  font-family: "Roboto", sans-serif;
  font-size: var(--sph-m-text, 17px);
  font-weight: 400;
  line-height: var(--sph-m-text-lh, 1.5);
  letter-spacing: 0;
}

/* Without an icon the grid (phone rows) has one column */
.ry.sph .sph-card-body:not(:has(.sph-card-icon)) {
  grid-template-columns: minmax(0, 1fr);
}

.ry.sph .sph-card-body:not(:has(.sph-card-icon)) > * {
  grid-column: 1;
}

/* Links. The title or the link line is the card's one link; its ::after stretches over the card. */
.ry.sph a.sph-card-link,
.ry.sph a.sph-card-link:hover,
.ry.sph a.sph-card-link:focus {
  text-decoration: none;
}

.ry.sph .sph-card-title a.sph-card-link {
  color: inherit;
}

.ry.sph .sph-card-link::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
}

.ry.sph a.sph-card-more {
  display: flex;
  grid-column: 2;
  grid-row: 3;
  align-items: center;
  gap: 8px;
  height: var(--sph-m-moreh, auto);
  margin: var(--sph-m-moremt, auto) 0 0;
  padding: var(--sph-m-morept, 22px) 0 0;
  color: var(--sph-clink);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.ry.sph .sph-card-more > span:not(.sph-sr),
.ry.sph .sph-card-more > svg {
  display: var(--sph-m-mored, inline-flex);
}

.ry.sph .sph-card-more > svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  transition: transform .2s ease;
}

.ry.sph .sph-card-linked:hover .sph-card-more > svg {
  transform: translateX(4px);
}

/* Compact rows' chevron: hidden except on phones */
.ry.sph .sph-card-chev {
  display: var(--sph-m-chev, none);
  flex: none;
  width: 20px;
  height: 20px;
  margin-left: 14px;
  color: var(--sph-clink);
  fill: none;
}

/* Keyboard focus: a ring around the whole card, not just the line of text */
.ry.sph a.sph-card-link:focus-visible {
  outline: 3px solid var(--sph-c, #00544F);
  outline-offset: 3px;
}

@supports selector(:has(a)) {
  .ry.sph a.sph-card-link:focus-visible {
    outline: none;
  }

  /* A white band fills the gap inside the accent ring, so the ring shows on the bottom color too */
  .ry.sph .sph-card:has(.sph-card-link:focus-visible) {
    outline: 3px solid var(--sph-c, #00544F);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #FFFFFF;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ry.sph .sph-deck-rise .sph-card,
  .ry.sph .sph-card-more > svg {
    transition: none;
  }

  .ry.sph .sph-deck-rise .sph-card-linked:hover,
  .ry.sph .sph-card-linked:hover .sph-card-more > svg {
    transform: none;
  }
}

/* The editor shows the cards still */
.ry.sph.sph-static .sph-deck-rise .sph-card,
.ry.sph.sph-static .sph-card-more > svg {
  transition: none;
}

.ry.sph.sph-static .sph-deck-rise .sph-card-linked:hover,
.ry.sph.sph-static .sph-card-linked:hover .sph-card-more > svg {
  transform: none;
}

/* Video: Side by Side Showcase's player in the hero's frame. The poster, the preview loop and the
   overlay fill the frame (it has no padding, so the frame's border and corners clip them); the
   full player replaces them in place (In the frame) or opens in the dialog (In a pop-up). */

.ry.sph .sph-stage,
.ry.sph .sph-stage > .sph-media,
.ry.sph .sph-overlay {
  position: absolute;
  inset: 0;
}

.ry.sph .sph-stage {
  overflow: hidden;
}

.ry.sph .sph-preview {
  opacity: 0;
  transition: opacity .4s ease;
}

.ry.sph .sph-preview.is-playing {
  opacity: 1;
}

/* Once the preview plays, the poster under it hides so no edge of it shows at the frame's rim */
.ry.sph .sph-video.is-previewing .sph-poster {
  visibility: hidden;
  transition: visibility 0s .4s;
}

/* Over the poster and the preview, under the play button; a click on it plays the video too */
.ry.sph .sph-overlay {
  z-index: 1;
  background: var(--sph-overlay, rgba(26, 36, 51, .3));
}

.ry.sph .sph-video[data-sph-ready] .sph-overlay {
  cursor: pointer;
}

.ry.sph .sph-stage .sph-player-slot {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #000000;
}

.ry.sph .sph-player-slot > *,
.ry.sph .sph-player-slot .sph-full,
.ry.sph .sph-player-slot .sph-embed {
  width: 100%;
  height: 100%;
  border: 0;
}

.ry.sph .sph-player-slot video.sph-full {
  display: block;
  object-fit: contain;
}

.ry.sph .sph-video.is-open .sph-play,
.ry.sph .sph-video.is-open .sph-overlay {
  visibility: hidden;
}

/* Play button: a real button over the frame, holding the icon (with the pill's or beside text) and,
   under it, the Text under button. Circle and square are --sph-play wide; the pill and the labelled
   shapes size to their text. */

.ry.sph .sph-play {
  --sph-play: var(--sph-play-d, 96px);
  --sph-play-inset: 32px;
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100% - 2 * var(--sph-play-inset));
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sph-play-fg, #FFFFFF);
  font: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ry.sph .sph-play.sph-at-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ry.sph .sph-play.sph-at-bottom_left {
  bottom: var(--sph-play-inset);
  left: var(--sph-play-inset);
  align-items: flex-start;
  text-align: left;
}

.ry.sph .sph-play.sph-at-bottom_right {
  right: var(--sph-play-inset);
  bottom: var(--sph-play-inset);
  align-items: flex-end;
  text-align: right;
}

.ry.sph .sph-play .sph-play-main {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ry.sph .sph-play .sph-play-icon {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--sph-play);
  height: var(--sph-play);
  border-radius: 50%;
  background: var(--sph-play-bg, var(--sph-c));
  box-shadow: 0 6px 20px rgba(26, 36, 51, .22);
  transition: transform .25s ease, filter .25s ease;
}

.ry.sph .sph-play-square .sph-play-icon {
  border-radius: calc(var(--sph-play) * .28);
}

.ry.sph .sph-play-icon svg {
  width: 42%;
  height: 42%;
  margin-left: 6%;
  fill: currentColor;
}

.ry.sph .sph-play-icon svg path {
  fill: currentColor;
}

.ry.sph .sph-play .sph-play-text {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sph-play-bg, var(--sph-c));
  color: var(--sph-play-fg, #FFFFFF);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(26, 36, 51, .22);
}

.ry.sph .sph-play .sph-play-time {
  margin-left: 6px;
  font-weight: 400;
  opacity: .85;
}

/* Pill: one rounded shape holding the icon and the text */
.ry.sph .sph-play-pill .sph-play-main {
  gap: 0;
  height: var(--sph-play);
  padding: 0 calc(var(--sph-play) * .36) 0 calc(var(--sph-play) * .12);
  border-radius: 999px;
  background: var(--sph-play-bg, var(--sph-c));
  box-shadow: 0 6px 20px rgba(26, 36, 51, .22);
  transition: scale .25s ease, filter .25s ease;
}

.ry.sph .sph-play-pill .sph-play-icon {
  width: calc(var(--sph-play) * .76);
  height: calc(var(--sph-play) * .76);
  background: none;
  box-shadow: none;
}

.ry.sph .sph-play-pill .sph-play-text {
  padding: 0;
  background: none;
  box-shadow: none;
  font-size: max(15px, calc(var(--sph-play) * .24));
}

/* Text under button: on the overlay, with a soft shadow to keep it readable over a busy frame */
.ry.sph .sph-play .sph-play-below {
  display: block;
  color: var(--sph-below-c, #FFFFFF);
  font-size: var(--sph-below-size, 18px);
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 12px rgba(10, 15, 25, .45);
}

.ry.sph .sph-hover-grow:hover .sph-play-icon {
  transform: scale(1.08);
}

.ry.sph .sph-hover-grow.sph-play-pill:hover .sph-play-main {
  scale: 1.06;
}

.ry.sph .sph-hover-grow.sph-play-pill:hover .sph-play-icon {
  transform: none;
}

.ry.sph .sph-hover-darken:hover .sph-play-icon,
.ry.sph .sph-hover-darken:hover .sph-play-text,
.ry.sph .sph-hover-darken.sph-play-pill:hover .sph-play-main {
  filter: brightness(.85);
}

.ry.sph .sph-pulse .sph-play-icon::after,
.ry.sph .sph-pulse.sph-play-pill .sph-play-main::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--sph-play-bg, var(--sph-c));
  border-radius: inherit;
  animation: sph-pulse 2.5s ease-out infinite;
  pointer-events: none;
}

.ry.sph .sph-pulse.sph-play-pill .sph-play-icon::after {
  content: none;
}

@keyframes sph-pulse {
  0% { opacity: .7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.45); }
}

.ry.sph .sph-play:focus-visible {
  outline: 3px solid #00544F;
  outline-offset: 3px;
}

/* The pop-up player sits on a dark scrim */
.sph-dialog .sph-close:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

/* Visually hidden, still read by screen readers */
.ry.sph .sph-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Pop-up player. The dialog sits in the browser's top layer, above the fixed header. */

.sph-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFFFFF;
}

.sph-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sph-dialog::backdrop {
  background: rgba(10, 15, 25, .85);
}

.sph-dialog .sph-dialog-box {
  position: relative;
  display: block;
  width: min(92vw, 1280px, 86vh * 16 / 9);
  width: min(92vw, 1280px, 86dvh * 16 / 9);
}

.sph-dialog .sph-dialog-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000000;
}

.sph-dialog .sph-dialog-media > *,
.sph-dialog .sph-full,
.sph-dialog .sph-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.sph-dialog .sph-close {
  position: absolute;
  top: -56px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #FFFFFF;
  cursor: pointer;
}

.sph-dialog .sph-close:hover {
  background: rgba(255, 255, 255, .26);
}

.sph-dialog .sph-close svg {
  width: 22px;
  height: 22px;
}

/* A short landscape phone has no room above the video, so the close button moves inside it */
@media (max-height: 520px) {
  .sph-dialog .sph-close {
    top: 8px;
    right: 8px;
    z-index: 1;
    background: rgba(0, 0, 0, .55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ry.sph .sph-pulse .sph-play-icon::after,
  .ry.sph .sph-pulse.sph-play-pill .sph-play-main::after {
    animation: none;
    opacity: 0;
  }

  .ry.sph .sph-play-icon,
  .ry.sph .sph-play-pill .sph-play-main {
    transition: none;
  }

  .ry.sph .sph-hover-grow:hover .sph-play-icon {
    transform: none;
  }

  .ry.sph .sph-hover-grow.sph-play-pill:hover .sph-play-main {
    scale: none;
  }
}

/* Floating tags, from the Floating Tags concepts (Drift pills, Icon chips). They sit in the text
   block's box, only where the text never reaches at any width: above the eyebrow (slots 1 and 2),
   beside the buttons (3 and 4, placed from the bottom so they follow the text down when the heading
   wraps, drifting away from them) and below the buttons (5). Every tag is one size, --sph-tag-fs, and the sizes below scale
   from it in em. The text gains room above it for the top tags: a tag's height, the second tag's
   drop (--sph-tag-stagger), Space from text (--sph-standoff) and 8px for the tilt. Each slot drifts
   and tilts at its own pace, the top ones upward, away from the text. The phone layouts are written
   per instance in module.html, at the breakpoint. */

.ry.sph.sph-has-tags {
  --sph-tag-stagger: 16px;
}

.ry.sph.sph-tags-pill {
  --sph-tag-h: calc(var(--sph-tag-fs, 16px) * 2.4);
}

.ry.sph.sph-tags-chip {
  --sph-tag-h: calc(var(--sph-tag-fs, 16px) * 3 + 2px);
}

.ry.sph.sph-has-tags .sph-text {
  position: relative;
  padding-top: calc(var(--sph-tag-h) + var(--sph-tag-stagger) + var(--sph-standoff, 16px) + 8px);
}

/* Tag 5 hangs below the buttons, so the space above the frame grows to fit it if needed */
.ry.sph.sph-tags-below .sph-top {
  padding-bottom: calc(max(var(--sph-above), calc(var(--sph-standoff, 16px) + var(--sph-tag-h) + 28px)) + var(--sph-room, 0px));
}

.ry.sph .sph-tags {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

@keyframes sph-tag-drift {
  0%, 100% { transform: translate(0, 0) rotate(var(--sph-r0)); }
  50% { transform: translate(var(--sph-dx), var(--sph-dy)) rotate(var(--sph-r1)); }
}

.ry.sph .sph-tags .sph-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  border-radius: 999px;
  font-family: "Roboto", sans-serif;
  font-size: var(--sph-tag-fs, 16px);
  font-weight: 600;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  transform: rotate(var(--sph-r0));
  animation: sph-tag-drift var(--sph-t) ease-in-out var(--sph-dl) infinite;
}

.ry.sph.sph-tags-still .sph-tags .sph-tag,
.ry.sph.sph-static .sph-tags .sph-tag {
  animation: none;
}

.ry.sph .sph-tags .sph-tag-text {
  color: inherit;
  font-size: inherit;
}

.ry.sph .sph-tags .sph-slot-1 { --sph-r0: -4deg; --sph-r1: 3deg; --sph-dx: 22px; --sph-dy: -8px; --sph-t: 10s; --sph-dl: -1s; }
.ry.sph .sph-tags .sph-slot-2 { --sph-r0: 3deg; --sph-r1: -3deg; --sph-dx: -18px; --sph-dy: -10px; --sph-t: 14s; --sph-dl: -6s; }
.ry.sph .sph-tags .sph-slot-3 { --sph-r0: -3deg; --sph-r1: 4deg; --sph-dx: 16px; --sph-dy: -12px; --sph-t: 12s; --sph-dl: -3s; }
.ry.sph .sph-tags .sph-slot-4 { --sph-r0: 4deg; --sph-r1: -2deg; --sph-dx: -18px; --sph-dy: -10px; --sph-t: 16s; --sph-dl: -9s; }
.ry.sph .sph-tags .sph-slot-5 { --sph-r0: -2deg; --sph-r1: 3deg; --sph-dx: 16px; --sph-dy: 4px; --sph-t: 13s; --sph-dl: -7s; }

/* Drift pills: a tint with darker text, or an outline in the color's main shade */
.ry.sph.sph-tags-pill .sph-tags .sph-tag {
  padding: .7em 1.15em;
  background: var(--sph-tag-bg);
  color: var(--sph-tag-ink);
}

.ry.sph.sph-tags-outline .sph-tags .sph-tag {
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px var(--sph-tag-solid);
}

/* Icon chips: white with a soft shadow, the icon in a tinted or solid circle */
.ry.sph.sph-tags-chip .sph-tags .sph-tag {
  gap: .7em;
  padding: .43em 1.15em .43em .43em;
  border: 1px solid #E1E7EF;
  background: #FFFFFF;
  box-shadow: 0 14px 30px -16px rgba(0, 40, 37, .38);
  color: #000000;
}

/* Without an icon, a chip keeps the same height */
.ry.sph.sph-tags-chip .sph-tags .sph-tag-noicon {
  padding: 1em 1.15em;
}

.ry.sph .sph-tags .sph-tag-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.14em;
  height: 2.14em;
  border-radius: 50%;
  background: var(--sph-tag-bg);
  color: var(--sph-tag-ink);
}

.ry.sph.sph-tags-solid .sph-tags .sph-tag-icon {
  background: var(--sph-tag-solid);
  color: #FFFFFF;
}

.ry.sph .sph-tags .sph-tag-icon svg {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
}

/* Slots, centered text: both ends of the top room and of the button row, tag 5 below the buttons */
.ry.sph.sph-tags-pill.sph-align-center .sph-slot-1 { left: 5%; top: 0; }
.ry.sph.sph-tags-pill.sph-align-center .sph-slot-2 { right: 6%; top: var(--sph-tag-stagger); }
.ry.sph.sph-tags-pill.sph-align-center .sph-slot-3 { right: 1%; bottom: 15px; }
.ry.sph.sph-tags-pill.sph-align-center .sph-slot-4 { left: 4%; bottom: -17px; }

.ry.sph.sph-tags-chip.sph-align-center .sph-slot-1 { left: 3%; top: 0; }
.ry.sph.sph-tags-chip.sph-align-center .sph-slot-2 { right: 4%; top: var(--sph-tag-stagger); }
.ry.sph.sph-tags-chip.sph-align-center .sph-slot-3 { right: 0; bottom: 6px; }
.ry.sph.sph-tags-chip.sph-align-center .sph-slot-4 { left: 6%; bottom: -38px; }

.ry.sph.sph-align-center .sph-tags .sph-slot-5 { left: 54%; top: calc(100% + var(--sph-standoff, 16px) + 8px); }

/* Slots, left-aligned text: the open space to the right */
.ry.sph.sph-tags-pill.sph-align-left .sph-slot-1 { left: 34%; top: 0; }
.ry.sph.sph-tags-pill.sph-align-left .sph-slot-2 { left: 66%; top: var(--sph-tag-stagger); }
.ry.sph.sph-tags-pill.sph-align-left .sph-slot-3 { left: 56%; bottom: 15px; }
.ry.sph.sph-tags-pill.sph-align-left .sph-slot-4 { left: 80%; bottom: -17px; }

.ry.sph.sph-tags-chip.sph-align-left .sph-slot-1 { left: 32%; top: 0; }
.ry.sph.sph-tags-chip.sph-align-left .sph-slot-2 { left: 64%; top: var(--sph-tag-stagger); }
.ry.sph.sph-tags-chip.sph-align-left .sph-slot-3 { left: 55%; bottom: 6px; }
.ry.sph.sph-tags-chip.sph-align-left .sph-slot-4 { left: 80%; bottom: -38px; }

.ry.sph.sph-align-left .sph-tags .sph-slot-5 { left: 30%; top: calc(100% + var(--sph-standoff, 16px) + 8px); }

@media (prefers-reduced-motion: reduce) {
  .ry.sph .sph-tags .sph-tag {
    animation: none;
  }
}
