/* growth.css: what only Growth, Partners, Trust and Ask draw. Every rule here hangs on a `gr-` class
 * (or Ask's own `.ask`); what the whole console shares is in `bank.css`. */

/* ---------------------------------------------------------------- shared small pieces */


.gr-h { margin: 6px 0 0; font: 600 13px var(--text); color: var(--muted); }
.gr-held { margin: 0; display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 18px; background: var(--surface); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.gr-held .ico { inline-size: 16px; block-size: 16px; flex: none; margin-block-start: 2px; }

/* The next few of a queue, beside a hero number. */
.gr-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gr-next li { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 20px; background: color-mix(in srgb, currentColor 10%, transparent); min-inline-size: 0; }
[dir="rtl"] .gr-next li { padding: 8px 8px 8px 12px; }
.gr-next img, .gr-next .glyph { inline-size: 44px; block-size: 44px; border-radius: 14px; object-fit: cover; flex: none; }
.gr-next .main { flex: 1; min-inline-size: 0; line-height: 1.25; }
.gr-next b { display: block; font: 600 14.5px var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-next small { display: block; font-size: 12.5px; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- the wide panel: two sides */

.gr-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
.gr-side { display: grid; gap: 12px; min-inline-size: 0; }
.gr-prev .t { inline-size: 100%; block-size: 280px; display: block; }
.gr-copy { padding: 14px 16px; border-radius: 20px; background: var(--surface); }
.gr-copy small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-block-end: 4px; }
.gr-copy p { margin: 0; font-size: 15px; line-height: 1.5; }
.gr-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 16px var(--display); }
.gr-form { display: grid; gap: 12px; }
.gr-form:empty { display: none; }
.gr-reason { display: grid; gap: 12px; }
.gr-reason .chip { background: var(--surface); min-block-size: 44px; white-space: normal; text-align: start; }
.gr-reason .chip[aria-pressed="true"] { background: var(--inv); color: var(--inv-ink); }
.gr-reason textarea.inp { min-block-size: 72px; }

/* Checks: passed, failed, or not run, as a short list of marks. */
.gr-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gr-checks li { display: flex; align-items: center; gap: 12px; min-block-size: 44px; }
.gr-checks .mark { inline-size: 28px; block-size: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface2); color: var(--muted); }
.gr-checks .mark .ico { inline-size: 15px; block-size: 15px; stroke-width: 2.4; }
.gr-checks li.ok .mark { background: var(--mint); color: var(--mint-ink); }
.gr-checks li.bad .mark { background: var(--coral); color: var(--coral-ink); }
.gr-checks li.warn .mark { background: var(--amber); color: var(--amber-ink); }
.gr-checks b { display: block; font: 600 14.5px var(--text); }
.gr-checks small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.gr-checks li.na b { color: var(--muted); font-weight: 500; }

@media (max-width: 899px) {
  .gr-split { grid-template-columns: minmax(0, 1fr); }
  .gr-prev .t { block-size: 220px; }
}

/* ---------------------------------------------------------------- campaigns */

.gr-prev.short .t { block-size: 200px; }
.gr-more { grid-column: 1 / -1; display: flex; justify-content: center; padding-block-start: 4px; }

/* The send schedule: seven days side by side, each send a small picture and two lines. */
.gr-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; flex: 1 1 auto; }
.gr-week .day { display: flex; flex-direction: column; gap: 6px; padding: 8px 6px; border-radius: 20px; background: var(--bg); min-inline-size: 0; }
.gr-week .d { display: grid; justify-items: center; line-height: 1.1; padding-block-end: 4px; }
.gr-week .d small { font-size: 12px; font-weight: 600; color: var(--muted); }
.gr-week .d b { font: 700 20px var(--display); letter-spacing: -0.02em; }
.gr-week .send { flex: none; display: grid; gap: 6px; padding: 6px; border-radius: 16px; background: var(--surface); text-align: start; min-block-size: 44px; min-inline-size: 0; }
.gr-week .send img, .gr-week .send .glyph { inline-size: 100%; block-size: 56px; border-radius: 12px; object-fit: cover; }
.gr-week .send b { display: block; font: 600 12.5px/1.25 var(--text); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.gr-week .send small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.gr-week .send.held { box-shadow: inset 0 0 0 2px var(--coral); }
.gr-week .send.held small { color: var(--bad); font-weight: 600; }
.gr-week .send.plan { box-shadow: inset 0 0 0 2px var(--blue); }

.gr-clash { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gr-clash li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, currentColor 10%, transparent); }
.gr-clash b { font: 600 15px var(--text); }
.gr-clash small { font-size: 12.5px; font-weight: 600; opacity: 0.8; }
.gr-clash span { grid-column: 1 / -1; font-size: 13px; line-height: 1.4; opacity: 0.85; }

/* ---------------------------------------------------------------- rules */

.gr-rule { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.gr-rule .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gr-rule .top b { font: 600 18px/1.2 var(--display); letter-spacing: -0.02em; }
.gr-rule .flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: start; flex: 1 1 auto; }
.gr-rule .flow .side { display: grid; gap: 8px; align-content: start; min-inline-size: 0; }
.gr-rule .flow em { font: 600 12px var(--text); font-style: normal; color: var(--muted); }
.gr-rule .flow .arrow { inline-size: 22px; block-size: 22px; color: var(--muted); margin-block-start: 46px; }
.gr-rule .cats { display: flex; flex-wrap: wrap; gap: 8px; }
.gr-rule .cat { display: grid; gap: 4px; justify-items: start; inline-size: 76px; }
.gr-rule .cat img, .gr-rule .cat .glyph { inline-size: 64px; block-size: 64px; border-radius: 20px; object-fit: cover; }
.gr-rule .cat .glyph .ico { inline-size: 24px; block-size: 24px; }
.gr-rule .cat small { font-size: 12px; font-weight: 600; line-height: 1.25; }
.gr-rule .chip { background: var(--surface2); }

@media (max-width: 899px) {
  .gr-week { grid-template-columns: repeat(7, 120px); overflow-x: auto; scrollbar-width: none; }
}

/* ---------------------------------------------------------------- partners and revenue */

.gr-phead { display: flex; align-items: center; gap: 14px; }
.gr-phead > img, .gr-phead > .glyph { inline-size: 72px; block-size: 72px; border-radius: 24px; object-fit: cover; flex: none; }
.gr-phead > span { flex: 1; min-inline-size: 0; }
.gr-phead b { display: block; font: 600 17px var(--display); }
.gr-phead small { display: block; font-size: 13px; color: var(--muted); }
.gr-phead .q.good { color: var(--good); }
.gr-phead .q.warn { color: var(--amber); }
.gr-phead .q.bad { color: var(--coral); }
.gr-phead .q b { color: var(--ink); }
.t-list.gr-amber { background: var(--amber); color: var(--amber-ink); }
.t-list.gr-amber .row .main small { color: inherit; opacity: 0.75; }
.t-list.gr-amber .rows > li + li { border-color: color-mix(in srgb, currentColor 16%, transparent); }
.t-card .gr-more { padding-block-start: 12px; }

.gr-donut { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 24px; align-items: center; flex: 1 1 auto; }
.gr-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gr-legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.gr-legend i { inline-size: 12px; block-size: 12px; border-radius: 4px; flex: none; }
.gr-legend span { flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.gr-legend b { font: 600 14px var(--display); font-variant-numeric: tabular-nums; }
.gr-spot { display: grid; gap: 22px; flex: 1 1 auto; align-content: start; }
.gr-spot > b { font: 600 17px/1.25 var(--display); letter-spacing: -0.01em; }
.gr-spot small { display: block; font-size: 12.5px; font-weight: 600; opacity: 0.8; }
.gr-spot .big { font-size: 34px; }

/* ---------------------------------------------------------------- trust and access */

.gr-text { margin: 0; font-size: 15px; line-height: 1.55; }
.gr-checks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.gr-role { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: start; }
.gr-role > b { font: 600 18px/1.2 var(--display); letter-spacing: -0.02em; }
.gr-role > p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.gr-role > small { margin-block-start: auto; padding-block-start: 10px; font-size: 12.5px; font-weight: 600; }
.gr-role > .pill { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; }
.gr-role > b { padding-inline-end: 84px; }
.gr-abil { display: grid; gap: 8px; }
.gr-abil > small { font-size: 12px; font-weight: 600; color: var(--muted); }
.gr-abil .pill::before { display: none; }
.gr-abil .pill { background: var(--surface); white-space: normal; block-size: auto; min-block-size: 26px; padding-block: 4px; }

/* ---------------------------------------------------------------- ask */

.ask .bubble p { margin: 0; }
.ask .bubble.ana { display: grid; gap: 12px; min-inline-size: 0; }
.ask .bubble.ana:has(.gr-art) { inline-size: 78%; }
.gr-art { padding: 14px 16px; border-radius: 20px; background: color-mix(in srgb, #fff 55%, transparent); color: var(--ink); display: grid; gap: 8px; min-inline-size: 0; }
[data-theme="dark"] .gr-art { background: color-mix(in srgb, #000 22%, transparent); color: inherit; }
.gr-art .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gr-art .top b { font: 600 15px var(--text); }
.gr-art .more { font-size: 12.5px; opacity: 0.75; }
.gr-art .rank .pos { color: inherit; opacity: 0.6; }
.gr-art .tbl th { color: inherit; opacity: 0.7; }
.gr-verify { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 1.45; opacity: 0.85; }
.gr-verify .ico { inline-size: 14px; block-size: 14px; flex: none; margin-block-start: 2px; }
.gr-refused { display: flex; align-items: center; gap: 8px; font: 600 14px var(--text); }
.gr-refused .ico { inline-size: 18px; block-size: 18px; }
.gr-try { display: grid; gap: 8px; }
.gr-try > small { font-size: 12px; font-weight: 600; color: var(--muted); padding-inline: 4px; }
.gr-try .chip { min-block-size: 44px; }
.ask .composer { z-index: 2; }

@media (max-width: 899px) {
  .gr-donut { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .gr-checks.two { grid-template-columns: minmax(0, 1fr); }
  .ask .bubble.ana:has(.gr-art) { inline-size: 100%; max-inline-size: 100%; }
}

/* A campaign's picture tile: its name is a few words, so it is set to fit on two or three lines. */
.t-photo.gr-card .big { font-size: 26px; line-height: 1.1; -webkit-line-clamp: 3; }
.cgrid > .s3.t-photo.gr-card .big { font-size: 21px; line-height: 1.15; }
.gr-prev .t-photo .big { font-size: 26px; line-height: 1.1; -webkit-line-clamp: 3; }
.t-card > .fill.gr-mid { justify-content: center; }
.t-kpi.gr-tier[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--ink); }
.zone > a.gr-reset { font-weight: 600; }
.gr-week .more { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding-block: 2px; }
.gr-num.bad { color: var(--bad); }
.gr-due { font: 600 12.5px var(--text); color: var(--muted); white-space: nowrap; }
