
/* the space above the section is the page's one section gap (index.html, THE SECTION SPACING), not a padding here */
.dg { grid-column: 1 / -1; padding: 0 !important; border-width: 0;
  --dg-w: min(1206px, 87.5vw);
  --ap-ink: rgba(0, 0, 0, 0.88); --dg-card: rgb(245, 245, 247); --dg-ink: rgba(0, 0, 0, 0.88); --dg-sub: rgba(0, 0, 0, 0.56);
  --dg-solid: var(--grid-light, #4951b6); --dg-solid-ink: #ffffff; --dg-solid-sub: rgba(255, 255, 255, 0.82);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dg { --ap-ink: rgb(235, 235, 235); --dg-card: rgb(44, 44, 46); --dg-ink: rgb(235, 235, 235);
    --dg-sub: rgba(235, 235, 235, 0.6); --dg-solid-ink: #0c0e14; --dg-solid-sub: rgba(12, 14, 20, 0.72); }
}
:root[data-theme="dark"] .dg { --ap-ink: rgb(235, 235, 235); --dg-card: rgb(44, 44, 46); --dg-ink: rgb(235, 235, 235);
  --dg-sub: rgba(235, 235, 235, 0.6); --dg-solid-ink: #0c0e14; --dg-solid-sub: rgba(12, 14, 20, 0.72); }

/* the grid: centred on the section's middle, as the answer pages (round 2) */
.dg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px; width: var(--dg-w); margin-inline-start: calc(50% - var(--dg-w) / 2); }

.dg-card { position: relative; display: flex; flex-direction: column; max-width: 591px; width: 100%;
  justify-self: center; border-radius: 28px; overflow: hidden; background: var(--dg-card); color: var(--dg-ink);
  text-align: start; --dg-k-ink: var(--dg-sub); }
/* the plain cards take the plans cards' drawing, as .ap-card does (answer-pages.css): the page's colour inside a band
   of the page's one frame colour, 8 px (6 px at 734 px and below). The two solid cards take the same band in their
   own fill, so every card's picture sits in the same box and every card's edge reads the same width. */
.dg-card:not(.dg-card--solid) { box-sizing: border-box; border: 8px solid var(--card-frame, var(--dg-card)); background: var(--page); }
@media (max-width: 734px) { .dg-card:not(.dg-card--solid) { border-width: 6px; } }
.dg-card--solid { background: var(--dg-solid); color: var(--dg-solid-ink); --dg-k-ink: var(--dg-solid-sub); }
.dg-card--solid { box-sizing: border-box; border: 8px solid var(--dg-solid); }
@media (max-width: 734px) { .dg-card--solid { border-width: 6px; } }
.dg-cover { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.dg-text { display: flex; flex-direction: column; gap: 16px; padding: 40px 64px; }
.dg-k { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dg-k-ink); }
.dg-q { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.dg-pic img { display: block; width: 100%; height: auto; aspect-ratio: 1260 / 680; }
/* the slideshow's light and dark pictures, as the slideshow shows them (index.html .gx-shot-light/-dark) */
.dg-shot-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dg-shot-light { display: none !important; }
  :root:not([data-theme="light"]) .dg-shot-dark { display: block !important; }
}
:root[data-theme="dark"] .dg-shot-light { display: none !important; }
:root[data-theme="dark"] .dg-shot-dark { display: block !important; }

/* the back face: the slide's text, over the card */
.dg-more { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-start; overflow-y: auto;
  padding: 40px 40px 96px; visibility: hidden; pointer-events: none; }
.dg-card.is-more .dg-more { visibility: visible; pointer-events: auto; }
.dg-card.is-turning .dg-more { visibility: visible; }
.dg-more-text { margin: 0; max-width: 34em; font-size: 18px; line-height: 28px; font-weight: 400; }

.dg-plus { position: absolute; z-index: 4; bottom: 24px; inset-inline-end: 24px; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--gx-ctl); color: var(--gx-glyph);
  cursor: pointer; }
.dg-plus svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dg-plus[aria-expanded="true"] { background: var(--gx-btn); color: var(--gx-btn-ink); }
.dg-plus[aria-expanded="true"] svg { transform: rotate(45deg); }
.dg-plus[aria-expanded="true"]:hover { background: rgb(0, 118, 223); }
.dg-plus:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* with no script the + would open nothing, so it is not shown */
html:not(.grid-js) .dg-plus { display: none; }

/* the states: the front's words leave 1.5rem up, the picture fades, the back's words arrive from 1.5rem below */
.dg-more-text { opacity: 0; translate: 0 1.5rem; }
.dg-card.is-more .dg-more-text { opacity: 1; translate: 0 0; }
.dg-card.is-more .dg-pic { opacity: 0; }
.dg-card.is-more .dg-text { opacity: 0; translate: 0 -1.5rem; }

@media (min-width: 1440px) { .dg-more { padding: 64px 64px 96px; } }
@media (max-width: 1023px) {
  .dg { --dg-w: min(591px, calc(100vw - 32px)); }
  .dg-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dg-card { max-width: none; }
  .dg-text { padding: 24px 32px; }
  .dg-q { font-size: 24px; line-height: 30px; }
  .dg-more { padding: 24px 32px 76px; }
  .dg-more-text { font-size: 16px; line-height: 24px; }
  .dg-plus { width: 44px; height: 44px; bottom: 16px; inset-inline-end: 16px; }
}
@media (max-width: 480px) { .dg-text, .dg-more { padding-inline: 22px; } }

/* THE MOTION, the slides' + as built. Reduce Motion: none of it; the colour, the glyph and the faces switch at once. */
@media (prefers-reduced-motion: no-preference) {
  .dg-plus { transition: transform 0.3s ease-out, background-color 0.1s linear, color 0.1s linear; }
  .dg-plus svg { transition: transform 0.3s ease-out; }
  .dg-plus:hover, .dg-plus:focus-visible { transform: scale(1.142); }
  .dg-card.is-turning .dg-plus { transition: transform 0.3s ease-out, background-color 0.3s ease-out, color 0.3s ease-out; }
  /* opening: Chrome's --flipped legs */
  .dg-card.is-turning.is-more .dg-pic { transition: opacity 0.3s ease-in; }
  .dg-card.is-turning.is-more .dg-text { transition: opacity 0.3s ease-in, translate 0.3s ease-in; }
  .dg-card.is-turning.is-more .dg-more-text { transition: opacity 0.3s ease-in 0.3s, translate 0.3s ease-in 0.3s; }
  .dg-card.is-turning:not(.is-more) .dg-more-text { transition: opacity 0.3s ease-out, translate 0.3s ease-out; }
  .dg-card.is-turning:not(.is-more) .dg-pic { transition: opacity 0.3s ease-out 0.3s; }
  .dg-card.is-turning:not(.is-more) .dg-text { transition: opacity 0.3s ease-out 0.3s, translate 0.3s ease-out 0.3s; }
}

/* ── ROUND 5, three fixes ─────────────────────────────────────────────────────────────────────────
   1. THE CORNERS (the Docs and My A.I feet). Round 4 laid the
      picture flush across the card's foot, so the card's 28-px corners clipped the PICTURE: the light pictures filled the
      bottom corners, the card's own colour was gone there, and against the white page only a thin curve was left. Now
      the picture is framed inside the card, with its own corners concentric with the card's, so all four corners of
      every card are the card's colour, top and bottom alike, light and dark. The frame was 12 px in round 5; round 6,
      the pictures almost to the box's corners, made it
      4 px (of 2, 4 and 6 tried), on the sides and the foot alike, the picture's corners 28 - 4 = 24. */
.dg-pic { margin: 0 4px 4px; border-radius: 24px; overflow: hidden; }

/* 2. THE PILL'S ICON: of the three tried, the
      sparkles: a four-point star and a small one, drawn
      by the pill itself as the mic is (answer-pages.css), its box cropped to the ink plus half the stroke, so
      0.72W is its visible height, in the same Chrome ratios as the ask pill; the stroke 2.2 of 24.2, as the
      mic's 3.5 of 36.25. */
.ap-pill--sparkles::before { aspect-ratio: 1 / 1; --ap-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-0.1 -1.1 24.2 24.2' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4C10.9 9.6 13.4 12.1 19 13C13.4 13.9 10.9 16.4 10 22C9.1 16.4 6.6 13.9 1 13C6.6 12.1 9.1 9.6 10 4Z'/%3E%3Cpath d='M19 0C19.4 2.5 20.5 3.6 23 4C20.5 4.4 19.4 5.5 19 8C18.6 5.5 17.5 4.4 15 4C17.5 3.6 18.6 2.5 19 0Z'/%3E%3C/svg%3E"); }

/* 3. THE FOOT, the space before the FAQ: the section ends at its last card. The sections take no whole rows and the
      page's ONE section gap stands between each pair (index.html, THE SECTION SPACING), so the grid keeps no end
      margin of its own. */
.dg-grid { margin-block-end: 0; }

/* ── ROUNDS 7–8, the space above the pictures, against Chrome's "Google Pay / Google Lens" cards: of three
   try-outs, the shorter card. A 640-px card held its text at the top and the whole 1260:680 picture at the foot, about 215 px of card
   empty between them. Now the card is as tall as its contents (no min-height, above): the text, then the WHOLE picture,
   with only the text's own 40-px bottom padding between the headline and the picture, which is Chrome's own space there
   (main.min.css e45452fd5d4e2ade: .chr-gallery-card-cover__text-wrapper padded --spacer-05, 40 px, from 1024).
   The headline from 1024 px: 32/40 (Chrome's .chr-headline-3 is set in a stylesheet NOT fetched: UNMEASURED; 32/40 is read from
   a picture of it). A 591-px card: 40 + 16 + 16 + 40 per headline line + 40, then the picture 583 x 315 and
   the 4-px foot: 471 px with a one-line headline, 511 with two.
   The two cards of a row share the row's height (the grid stretches them). When one headline wraps and its partner's
   does not, the partner is 40 px taller than its contents: its picture stays on the foot frame (.dg-cover's
   space-between), so its band is 80 px where the other's is 40. Below 1024 px the cards are one column and each is its
   own height. */
@media (min-width: 1024px) {
  .dg-q { font-size: 32px; line-height: 40px; }
}

/* "by" has no capital and its y hangs below the line, while the wordmark is set as a capital, so beside "by" the
   wordmark reads high; here only, it sits 0.054em lower (3 px at 56 px). */
#dg-h .ap-h-2 .cx-logo { position: relative; top: 0.054em; }
