/*
 * Hero from TurboGrading_Hero_Ready_To_Use_HTML_CSS_SVG.zip.
 * Scoped to .tgh3. The supplied 16px-based rem values are scaled by 0.8
 * for this site's 20px root, preserving the design and relative sizing.
 */
.tgh3 {
  --tgh-ink: #133047;
  --tgh-muted: #587084;
  --tgh-accent: #c94716;
  --tgh-accent-hover: #a7350d;
  --tgh-blue: #147eba;
  --tgh-background: #f7fafc;
  --tgh-max-width: 1480px;
  --tgh-font: Arial, Helvetica, sans-serif;
  --tgh-space: clamp(1.2rem, 2.4vw, 2.2rem);
  box-sizing: border-box;
  isolation: isolate;
  color: var(--tgh-ink);
  background:
    radial-gradient(ellipse at 19% 84%, #eaf4f878 0, transparent 47%),
    var(--tgh-background);
  padding: var(--tgh-space) clamp(0.9rem, 2.1vw, 1.8rem);
  font-family: var(--tgh-font);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.tgh3 *, .tgh3 *::before, .tgh3 *::after { box-sizing: border-box; }
.tgh3__inner {
  width: min(100%, var(--tgh-max-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  align-items: center;
}
/* Logical reading order is copy then diagram; wide screens place the diagram left. */
.tgh3__copy { grid-column: 2; grid-row: 1; min-width: 0; padding-block: 0.4rem; }
.tgh3__visual { grid-column: 1; grid-row: 1; min-width: 0; margin: 0; }
.tgh3__diagram { display: block; width: 100%; max-width: 100%; height: auto; }
.tgh3 .tgh3__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.32rem;
  color: #b83c13;
  font-size: clamp(0.5rem, 0.84vw, 0.7rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tgh3 .tgh3__eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: #db4d1e;
  box-shadow: 0 0 0 0.24rem #ffede4;
  margin-inline-start: 0.24rem;
}
.tgh3 h1 {
  margin: 0 0 1.28rem;
  color: var(--tgh-ink);
  font-family: var(--tgh-font);
  font-size: clamp(1.76rem, 3.33vw, 3.04rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: none;
  overflow-wrap: normal;
}
.tgh3 h1 > span { display: block; }
.tgh3 h1 > .tgh3__accent { color: var(--tgh-accent); }
.tgh3 .tgh3__intro {
  margin: 0;
  color: var(--tgh-muted);
  font-size: clamp(0.8rem, 1.11vw, 0.984rem);
  line-height: 1.66;
}
.tgh3 .tgh3__intro strong { color: var(--tgh-ink); font-weight: 700; }
.tgh3__benefits { display: grid; gap: 1.04rem; margin: 1.44rem 0; }
.tgh3__benefit { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); align-items: start; column-gap: 0.8rem; }
.tgh3__benefit-icon {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  color: var(--tgh-blue);
  background: #fff9;
  border-radius: 50%;
}
.tgh3__benefit-icon .tgh3__icon { width: 1.4rem; height: 1.4rem; }
.tgh3__benefit h2 {
  margin: 0 0 0.2rem;
  color: var(--tgh-ink);
  font-family: var(--tgh-font);
  font-size: clamp(0.8rem, 1.13vw, 0.968rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: none;
}
.tgh3__benefit p { margin: 0; color: var(--tgh-muted); font-size: clamp(0.7rem, 1vw, 0.848rem); line-height: 1.55; }
.tgh3__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 1.56rem; }
.tgh3__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.6rem;
  max-width: 100%;
  margin: 0;
  padding: 0.72rem 1.04rem;
  border: 1px solid transparent;
  border-radius: 0.52rem;
  font: 700 clamp(0.7rem, 1.03vw, 0.86rem)/1.4 var(--tgh-font);
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.tgh3__button--primary, .tgh3__button--primary:visited {
  color: #fff;
  background: var(--tgh-accent);
  box-shadow: 0 5px 14px #c947161a;
}
.tgh3__button--primary:hover { color: #fff; background: var(--tgh-accent-hover); box-shadow: 0 7px 18px #c9471623; }
.tgh3__button--secondary, .tgh3__button--secondary:visited { color: var(--tgh-ink); background: transparent; border-color: #7691a8; }
.tgh3__button--secondary:hover { color: var(--tgh-ink); background: #eaf1f7; border-color: #496f89; }
.tgh3__button .tgh3__icon { width: 1rem; height: 1rem; flex: none; }
.tgh3 .tgh3__button:focus-visible, .tgh3__mobile-workflow > summary:focus-visible { outline: 3px solid #0c6897; outline-offset: 5px; }
.tgh3 .tgh3__note { max-width: 28.8rem; margin: 0.68rem 0 0; color: #617687; font-size: 0.6rem; line-height: 1.65; }
.tgh3__mobile-workflow, .tgh3__mobile-platforms { display: none; }

/* Optional: add .tgh3--visual-right to put the illustration on the right. */
.tgh3--visual-right .tgh3__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.82fr); }
.tgh3--visual-right .tgh3__copy { grid-column: 1; }
.tgh3--visual-right .tgh3__visual { grid-column: 2; }

/* Switch layout before the SVG text becomes too small. */
@media (max-width: 1279px) {
  .tgh3 { padding: 1.8rem 1.4rem; }
  .tgh3__inner, .tgh3--visual-right .tgh3__inner { display: flex; flex-direction: column; gap: 1.44rem; }
  .tgh3__copy { width: 100%; max-width: 42.4rem; padding: 0; }
  .tgh3__visual { width: 100%; max-width: 52.8rem; }
  .tgh3 .tgh3__eyebrow { font-size: 0.6rem; margin-bottom: 1rem; }
  .tgh3 h1 { font-size: clamp(1.8rem, 4.65vw, 2.68rem); letter-spacing: -0.04em; max-width: 39.2rem; margin-bottom: 1.08rem; }
  .tgh3 h1 > span { display: inline; }
  .tgh3 .tgh3__intro { font-size: 0.86rem; max-width: 37.6rem; }
  .tgh3__benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.12rem; margin: 1.44rem 0 1.2rem; }
  .tgh3__benefit { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .tgh3__benefit h2 { font-size: 0.8rem; }
  .tgh3__benefit p { font-size: 0.72rem; }
  .tgh3__actions { margin-top: 1.24rem; }
  .tgh3__button { font-size: 0.8rem; }
  .tgh3 .tgh3__note { max-width: 37.6rem; }
}
@media (max-width: 720px) {
  .tgh3 { padding: 1.52rem 1rem 1.36rem; }
  .tgh3__inner { gap: 1.04rem; }
  .tgh3__copy, .tgh3__visual { max-width: 27.2rem; }
  .tgh3 .tgh3__eyebrow { gap: 0.56rem; margin-bottom: 1rem; font-size: 0.512rem; letter-spacing: 0.105em; }
  .tgh3 h1 { font-size: clamp(1.6rem, 8.7vw, 2.24rem); line-height: 1.13; letter-spacing: -0.044em; }
  .tgh3 h1 > span { display: block; }
  .tgh3 .tgh3__intro { font-size: 0.8rem; line-height: 1.65; }
  .tgh3__benefits { grid-template-columns: 1fr; gap: 0.8rem; margin-block: 1.12rem; }
  .tgh3__benefit { grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.64rem; }
  .tgh3__benefit-icon { width: 2rem; height: 2rem; }
  .tgh3__benefit-icon .tgh3__icon { width: 1.24rem; height: 1.24rem; }
  .tgh3__benefit h2 { font-size: 0.76rem; margin-bottom: 0.144rem; }
  .tgh3__benefit p { font-size: 0.704rem; }
  .tgh3__actions { gap: 0.5rem; margin-top: 1.2rem; }
  .tgh3__button { font-size: 0.68rem; padding: 0.64rem 0.8rem; min-height: 2.4rem; gap: 0.48rem; }
  .tgh3 .tgh3__note { font-size: 0.576rem; }
  .tgh3__wide-workflow { display: none; }
  .tgh3__mobile-platforms { display: flex; flex-wrap: wrap; gap: 1.16rem; margin: 0 0 0.88rem; align-items: center; }
  .tgh3__platform { display: flex; align-items: center; gap: 0.4rem; }
  .tgh3__platform > svg { display: block; width: 3.2rem; height: auto; }
  .tgh3__platform--bb > svg { width: 1.6rem; }
  .tgh3__platform > span { font-size: 0.56rem; line-height: 1.4; color: var(--tgh-muted); }
  .tgh3__mobile-workflow { display: block; border-top: 1px solid #d7e3ec; padding-top: 0.08rem; }
  .tgh3__mobile-workflow > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-height: 2.4rem; padding: 0.56rem 0; cursor: pointer; font-size: 0.72rem; font-weight: 700; color: var(--tgh-ink); }
  .tgh3__mobile-workflow > summary::-webkit-details-marker { display: none; }
  .tgh3__disclosure-mark { flex: none; position: relative; width: 0.8rem; height: 0.8rem; }
  .tgh3__disclosure-mark::before, .tgh3__disclosure-mark::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
  .tgh3__disclosure-mark::before { width: 0.8rem; height: 2px; top: 7px; left: 0; }
  .tgh3__disclosure-mark::after { width: 2px; height: 0.8rem; left: 7px; top: 0; }
  .tgh3__mobile-workflow[open] .tgh3__disclosure-mark::after { display: none; }
  .tgh3__mobile-workflow[open] > .tgh3__diagram { margin-top: 0.8rem; }
}
@media (max-width: 359px) {
  .tgh3 { padding-inline: 0.8rem; }
  .tgh3 h1 { font-size: 1.56rem; }
  .tgh3__actions { display: grid; grid-template-columns: 1fr; }
  .tgh3__button { width: 100%; }
  .tgh3__mobile-platforms { gap: 0.8rem; }
  .tgh3__platform > svg { width: 2.8rem; }
  .tgh3__platform--bb > svg { width: 1.36rem; }
  .tgh3__platform > span { font-size: 0.528rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tgh3__button { transition: none; }
}
@media (forced-colors: active) {
  .tgh3__button { border: 2px solid ButtonText; }
  .tgh3__benefit-icon { border: 1px solid CanvasText; }
  .tgh3 .tgh3__eyebrow::before { background: CanvasText; box-shadow: none; }
  /* Preserve the diagram's source colors, since its labels and fills work together. */
  .tgh3__diagram { forced-color-adjust: none; }
}
