/* Locally interactive previews of the tools on the public studio site. */
.g24-hero-copy h1 {
  max-width: 13.5ch;
  font-size: clamp(2.7rem, 4.75vw, 5.2rem);
  line-height: 1.01;
  letter-spacing: -0.065em;
}
.g24-hero-copy h1 em {
  font-size: 1.14em;
}
.g24-workshop {
  --work-ink: #1c2940;
  --work-muted: #465771;
  --work-blue: #24449a;
  --work-border: #d4dbe7;
  padding-block: clamp(44px, 6vw, 88px);
  background: #f0f3fb;
  color: var(--work-ink);
}
.g24-workshop :focus-visible {
  outline: 3px solid #22469f;
  outline-offset: 3px;
}
.work-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 4rem;
  margin-bottom: 1.5rem;
}
.work-heading h2 {
  max-width: 17ch;
  color: #172944;
  font-size: clamp(2.2rem, 4.7vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
  font-weight: 520;
}
.work-heading p {
  max-width: 47ch;
  color: var(--work-muted);
  line-height: 1.55;
  text-wrap: pretty;
}
.work-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-block: 1.4rem 1rem;
}
.work-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.56rem 1rem;
  border: 1px solid #bac5d8;
  border-radius: 2rem;
  background: transparent;
  color: #314562;
  font-size: 0.915rem;
  font-weight: 630;
  line-height: 1.25;
}
.work-tabs button:hover {
  background: #e0e6f7;
  color: #172b59;
}
.work-tabs button[aria-pressed="true"] {
  border-color: #233c70;
  background: #213962;
  color: #fff;
}
.work-scene {
  display: grid;
  grid-template-columns: minmax(230px, 0.88fr) minmax(0, 1.19fr);
  align-items: stretch;
  border: 1px solid #d4dbe6;
  border-radius: 1.35rem;
  overflow: clip;
  background: #fff;
}
.work-scene + .work-scene {
  margin-top: 1rem;
}
.work-scene[hidden] + .work-scene {
  margin-top: 0;
}
.work-controls {
  min-width: 0;
  align-self: center;
  padding: clamp(1.25rem, 3.4vw, 3.65rem);
}
.work-controls h3 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.55rem, 2.6vw, 2.7rem);
  line-height: 1.09;
  font-weight: 550;
  letter-spacing: -0.054em;
}
.work-controls p.work-intro {
  max-width: 46ch;
  margin: 0.85rem 0 0;
  color: var(--work-muted);
  font-size: 1rem;
  line-height: 1.55;
}
.work-inputs {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.35rem;
  max-width: 30rem;
}
.work-field {
  display: grid;
  gap: 0.34rem;
  min-width: 0;
}
.work-field > span,
.work-inputs legend {
  font-size: 0.84rem;
  color: #2a3b55;
  font-weight: 690;
}
.work-field input,
.work-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  border: 1px solid #aab8ce;
  border-radius: 0.45rem;
  background: #fcfdff;
  color: #1a2e48;
  font-size: 1rem;
  line-height: 1.35;
}
.work-field textarea {
  resize: vertical;
}
.work-inputs fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}
.work-inputs legend {
  margin-bottom: 0.33rem;
  padding: 0;
}
.work-inputs fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 0.37rem;
  min-height: 40px;
  padding: 0.38rem 0.7rem;
  position: relative;
  border: 1px solid #bdc7d7;
  border-radius: 0.45rem;
  color: #314561;
  font-size: 0.86rem;
  line-height: 1.2;
  cursor: pointer;
}
.work-inputs fieldset label:has(input:checked) {
  border-color: #304d8e;
  box-shadow: inset 0 0 0 1px #304d8e;
  background: #f1f5ff;
  color: #1f3974;
  font-weight: 650;
}
.work-inputs fieldset label:has(input:focus-visible) {
  outline: 3px solid #22469f;
  outline-offset: 2px;
}
.work-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.work-inputs fieldset input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.work-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #253b372e;
}
.work-dot.leaf {
  background: #b7d6a6;
}
.work-dot.apricot {
  background: #efb59b;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  margin-top: 0.65rem;
  color: var(--work-blue);
  font-size: 0.875rem;
  font-weight: 630;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.work-link:hover {
  color: #142b60;
}
.work-canvas {
  display: grid;
  min-width: 0;
}
.work-paper-stage,
.work-search-stage,
.work-report-stage {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(1rem, 3.3vw, 3.15rem);
  min-width: 0;
}
.work-paper-stage {
  background: linear-gradient(125deg, #d6deeb, #e8e6dc 55%, #d8dfb9);
}
.work-page-sample {
  width: 100%;
  max-width: 620px;
  background: #f7f5e9;
  color: #1a352d;
  border: 1px solid #88968899;
  border-radius: 0.25rem;
  box-shadow: 0 0.8rem 2.3rem #3543342a;
  overflow: hidden;
}
.work-brand-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid #758a8040;
}
.work-brand-line b,
.work-ad div span {
  font:
    400 1.3rem / 1 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -0.025em;
}
.work-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 255px;
  background: #d3e4c4;
  color: #1d3728;
}
.work-page-grid > div {
  min-width: 0;
  align-self: center;
  padding: 1.4rem clamp(0.8rem, 1.7vw, 1.65rem);
}
.work-page-grid > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 43% center;
}
.work-page-grid span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.work-page-grid strong {
  display: block;
  margin-block: 0.8rem 1.5rem;
  font:
    normal clamp(1.8rem, 3.7vw, 4rem) / 0.97 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -0.043em;
  overflow-wrap: anywhere;
}
.work-page-grid small,
.work-ad small {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.73rem;
  line-height: 1.1;
  font-weight: 650;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}
[data-colour="apricot"] .work-page-grid {
  color: #492c22;
  background: #efc2ad;
}
.work-search-stage {
  background: #dce8ee;
}
.work-search-sheet {
  width: 100%;
  max-width: 590px;
  padding: clamp(1rem, 2.5vw, 2.3rem);
  background: #fff;
  border-top: 0.22rem solid #27625e;
  border-radius: 0.5rem;
  box-shadow: 0 0.8rem 2rem #1b424b17;
}
.work-query {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 1px solid #cbd3df;
  border-radius: 3rem;
  font-size: 0.9rem;
  color: #445568;
}
.work-search-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-block: 1.55rem 0.45rem;
}
.work-search-row b,
.work-search-row small {
  display: block;
  line-height: 1.3;
  font-size: 0.85rem;
}
.work-search-row small {
  color: #5b6674;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}
.work-search-mark {
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  color: #244231;
  background: #d3e4c4;
  font:
    normal 1.25rem "Instrument Serif",
    Georgia,
    serif;
}
.work-result-title {
  display: block;
  font:
    500 clamp(1.1rem, 1.8vw, 1.4rem) / 1.2 Geist,
    sans-serif;
  color: #1d4096;
  overflow-wrap: anywhere;
}
.work-search-sheet p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #455364;
  line-height: 1.45;
  font-size: 0.91rem;
  margin-top: 0.45rem;
}
.work-source {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  color: var(--work-muted);
}
.work-source img {
  width: 55px;
  height: 57px;
  object-fit: cover;
  border-radius: 0.25rem;
}
.work-source b,
.work-source p,
.work-local-note {
  font-size: 0.83rem;
  line-height: 1.45;
}
.work-source b {
  color: #25384c;
}
.work-creative-stage {
  display: grid;
  align-items: center;
  justify-items: center;
  background: #173e39;
  padding: clamp(1rem, 2.8vw, 2.6rem);
}
.work-creative-stage figure {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 600px;
  color: #eef8ef;
}
.work-creative-stage figure > img,
.work-creative-stage video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 365px;
  aspect-ratio: 1.5;
  object-fit: contain;
  background: #153833;
  border-radius: 0.32rem;
}
.work-creative-stage figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}
.work-ad {
  display: grid;
  position: relative;
  isolation: isolate;
  margin-inline: auto;
  width: min(100%, 310px);
  aspect-ratio: 1;
  overflow: hidden;
  color: #efffda;
  background: #153833;
}
.work-ad > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.work-ad::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #08231dfc, #08231d33 70%);
}
.work-ad div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: 1.15rem;
}
.work-ad div span {
  margin-bottom: auto;
  padding: 0.23rem 0.55rem;
  border-radius: 2rem;
  background: #173b2f;
  color: #ecf0df;
  font-size: 1.2rem;
}
.work-ad strong {
  font:
    400 clamp(1.6rem, 2.6vw, 2.5rem) / 0.97 "Instrument Serif",
    Georgia,
    serif;
  max-width: 13ch;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.work-ad small {
  margin-top: 0.55rem;
}
.work-report-stage {
  background: #e2dfed;
}
.work-report {
  width: 100%;
  max-width: 510px;
  border-radius: 0.7rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0.8rem 2.3rem #3a2a5721;
}
.work-report header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  background: #2b3458;
  color: #fff;
}
.work-report header span {
  font-size: 0.77rem;
  padding: 0.14rem 0.47rem;
  background: #455276;
  border-radius: 2rem;
}
.work-report ol {
  list-style: none;
  margin: 0;
  padding: 0.3rem 1rem;
}
.work-report li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.8rem 0;
  border-bottom: 1px solid #e2e5eb;
}
.work-report li:last-child {
  border-bottom: 0;
}
.work-event-symbol {
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  background: #ececf6;
  color: #41456b;
}
.work-report li[data-recorded] .work-event-symbol {
  background: #dbedcb;
  color: #26452d;
}
.work-report li b,
.work-report li small {
  display: block;
  line-height: 1.35;
}
.work-report li b {
  font-size: 0.93rem;
}
.work-report li small {
  font:
    0.76rem / 1.35 ui-monospace,
    monospace;
  color: #596779;
}
.work-report li strong {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: #2e456b;
  font-size: 1.35rem;
}
.work-campaign-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem 0.7rem;
  flex-wrap: wrap;
}
.work-campaign-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 40px;
  border-radius: 0.45rem;
  background: transparent;
  color: #334c74;
  border: 0;
  font-size: 0.86rem;
  font-weight: 620;
}
.work-campaign-actions [data-work-next] {
  padding: 0.5rem 0.8rem;
  background: #274579;
  color: #fff;
}
.work-campaign-actions [data-work-next]:hover {
  background: #152e58;
}
.work-campaign-actions [data-work-reset]:disabled {
  opacity: 0.65;
  cursor: default;
}
.work-local-note {
  color: #56647b;
}
@media (prefers-reduced-motion: no-preference) {
  .work-page-grid,
  .work-tabs button,
  .work-event-symbol {
    transition:
      background-color 0.21s ease,
      color 0.21s ease;
  }
  .work-scene:not([hidden]) .work-canvas,
  .work-creative-stage figure:not([hidden]) {
    animation: work-reveal 0.26s ease both;
  }
  @keyframes work-reveal {
    from {
      opacity: 0.64;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (max-width: 860px) {
  .work-heading {
    align-items: start;
    gap: 0.75rem;
    flex-direction: column;
  }
  .work-scene {
    grid-template-columns: minmax(230px, 0.93fr) minmax(0, 1.06fr);
  }
  .g24-hero-copy h1 {
    font-size: clamp(2.4rem, 5.55vw, 3.55rem);
  }
}
@media (max-width: 760px) {
  .g24-hero-copy h1 {
    max-width: 15ch;
  }
  .work-tabs {
    margin-block: 1rem 0.75rem;
  }
  .work-tabs button {
    font-size: 0.86rem;
  }
  .work-scene {
    grid-template-columns: minmax(0, 1fr);
  }
  .work-controls {
    padding: 1.2rem;
  }
  .work-canvas {
    border-block-start: 1px solid #d5dce5;
  }
  .work-inputs {
    max-width: none;
    gap: 0.7rem;
    margin-top: 0.9rem;
  }
  .work-controls h3 {
    max-width: 28ch;
  }
  .work-page-grid {
    min-height: 155px;
  }
  .work-page-grid > img {
    max-height: 245px;
  }
  .work-canvas > div {
    min-height: 215px;
  }
}
@media (max-width: 480px) {
  .work-heading h2 {
    font-size: 2.35rem;
  }
  .work-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
  }
  .work-tabs button {
    justify-content: flex-start;
    padding: 0.4rem 0.55rem;
    border-radius: 0.6rem;
  }
  .work-source {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .work-source img {
    width: 44px;
    height: 49px;
  }
  .work-controls h3 {
    font-size: 1.65rem;
  }
  .work-creative-stage figure > img,
  .work-creative-stage video {
    max-height: 270px;
  }
  .work-ad {
    width: min(100%, 245px);
  }
}
.work-experiment,
.work-feed {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: 0.6rem;
  padding: clamp(1rem, 2.6vw, 2.3rem);
  box-shadow: 0 0.8rem 2rem #31405824;
}
.work-experiment > b {
  font-size: 1.15rem;
  color: #343e63;
}
.work-experiment > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin-top: 1rem;
}
.work-experiment meter {
  width: 100%;
  height: 1.1rem;
  grid-column: 1 / -1;
  accent-color: #2b477e;
}
.work-experiment strong {
  color: #263c68;
  font-variant-numeric: tabular-nums;
}
.work-experiment small {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: #53647d;
}
.work-field.work-range input {
  padding: 0;
  accent-color: #315096;
  cursor: pointer;
}
.work-feed-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(1rem, 3.3vw, 3.15rem);
  background: #dbe7da;
}
.work-feed header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #d4ded7;
}
.work-feed header img {
  width: 52px;
  height: 58px;
  object-fit: cover;
  border-radius: 0.25rem;
}
.work-feed header b,
.work-feed header small {
  display: block;
}
.work-feed header b {
  font-size: 1.15rem;
}
.work-feed header small {
  color: #53675a;
}
.work-feed dl {
  margin: 0.55rem 0 0;
}
.work-feed dl > div {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  align-items: center;
  padding-block: 0.32rem;
}
.work-feed dt,
.work-feed dd {
  margin: 0;
  font:
    0.85rem / 1.5 ui-monospace,
    monospace;
  color: #486252;
  overflow-wrap: anywhere;
}
.work-feed dd {
  text-align: right;
  color: #183d29;
}
