#grading-demo { scroll-margin-top: 6rem; }
.tg-community { background: #e7e8e9; border-bottom: 1px solid #d9dcde; }
.tg-community__layout { padding-top: clamp(1.8rem, 3vw, 2.6rem); padding-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.tg-community__copy h2 { margin: 0 0 0.65rem; color: var(--tg-ink); font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; text-wrap: balance; }
.tg-community__copy p { max-width: 42rem; margin: 0; color: var(--tg-ink-soft); font-size: 0.85rem; line-height: 1.6; }
.tg-community__logos { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6rem 1.2rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.tg-community__logos > li { max-width: 100%; }
.tg-community__member { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; max-width: 100%; color: var(--tg-ink-soft); }
.tg-community__member img { display: block; width: 180px; max-width: 100%; height: auto; }
.tg-community__label { font-size: 0.68rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.09em; text-transform: uppercase; }
.tg-founder { background: #fff; border-top: 1px solid var(--tg-line); scroll-margin-top: 5.5rem; }
.tg-founder > .tg-home-section { padding-block: clamp(1.6rem, 3vw, 2.5rem); }
.tg-founder__layout { display: grid; grid-template-columns: clamp(9rem, 20vw, 13rem) minmax(0, 1fr); align-items: center; gap: clamp(1.2rem, 3vw, 2.5rem); max-width: 52rem; margin: 0 auto; }
.tg-founder__portrait { margin: 0; border: 1px solid var(--tg-line); border-radius: 0.85rem; background: #f7f9fa; overflow: hidden; }
.tg-founder__portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.tg-founder__portrait figcaption { display: grid; gap: 0.15rem; padding: 0.7rem 0.8rem; }
.tg-founder__portrait strong { color: var(--tg-ink); font-family: "Space Grotesk", sans-serif; font-size: 0.9rem; }
.tg-founder__portrait figcaption span { font-size: 0.68rem; }
.tg-founder .tg-founder__copy .display-4 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 0.75rem; }
.tg-founder__copy .tg-eyebrow { font-size: 0.68rem; margin-bottom: 0.6rem; }
.tg-founder__copy .lead { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.7rem; }
.tg-founder__copy > p:not(.lead):not(.tg-eyebrow) { font-size: 0.8rem; line-height: 1.65; margin: 0.7rem 0 0.9rem; }
.tg-founder__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; font-size: 0.8rem; }
@media (max-width: 767.98px) {
    .tg-founder__layout { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
    .tg-founder__portrait { width: min(100%, 11rem); justify-self: center; }
}
@media (max-width: 575.98px) {
    .tg-community__member img { width: 150px; }
    .tg-founder__actions { align-items: flex-start; flex-direction: column; gap: 0.85rem; }
}

.tg-home-section {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.tg-home-page .display-4 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 0;
}

.tg-home-page .btn-primary {
    box-shadow: 0 0.3rem 0.7rem rgba(168, 51, 20, 0.1);
}

.tg-example-label {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--tg-line);
    border-radius: 0.3rem;
    color: var(--tg-ink-soft);
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.tg-home-example { background: #fff; scroll-margin-top: 5.5rem; }
.tg-home-section-heading, .tg-supported-files__heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: 1rem 3rem;
    margin-bottom: 2rem;
}

.tg-home-section-heading .lead, .tg-supported-files__heading .lead { margin: 0; max-width: 28rem; }
.tg-home-section-heading .tg-eyebrow { margin-bottom: 0.8rem; }

.tg-grading-example {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    border: 1px solid var(--tg-line);
    border-radius: 0.9rem;
    overflow: hidden;
    font-size: 0.85rem;
}

.tg-grading-example__inputs { background: #f7f9fa; padding: 1.7rem; }
.tg-grading-example__result { border-left: 1px solid var(--tg-line); padding: 1.7rem; }
.tg-example-input + .tg-example-input { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--tg-line); }
.tg-grading-example h3 { display: flex; align-items: baseline; gap: 0.6rem; font-size: 1rem; margin: 0 0 1rem; }
.tg-grading-example h3 > span { color: var(--tg-blue); font-size: 0.75rem; }
.tg-example-input > p, .tg-example-input blockquote p { margin-bottom: 0; }
.tg-example-input blockquote { padding: 0; margin: 0; border: 0; color: var(--tg-ink-soft); font-size: inherit; }
.tg-example-input blockquote::before, .tg-example-input blockquote::after { content: none; }
.tg-example-input .tg-example-input__note { margin-top: 0.85rem; color: #526674; font-size: 0.75rem; line-height: 1.6; }
.tg-example-result-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tg-example-result-heading h3 { margin: 0; }
.tg-example-score { padding: 1.15rem; border: 1px solid var(--tg-line); border-radius: 0.6rem; background: var(--tg-blue-soft); }
.tg-example-score > span { display: block; color: var(--tg-ink-soft); font-size: 0.75rem; }
.tg-example-score strong { display: block; margin: 0.2rem 0 0.45rem; color: var(--tg-blue); font-size: 2.5rem; line-height: 1.15; }
.tg-example-score small { font-size: 1.1rem; font-weight: 500; }
.tg-example-score p { margin: 0; font-size: 0.75rem; }
.tg-example-rubric { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.tg-example-rubric caption { caption-side: top; padding: 1rem 0 0.35rem; color: var(--tg-ink); font-size: 0.75rem; font-weight: 700; }
.tg-example-rubric th, .tg-example-rubric td { padding: 0.6rem 0; border-bottom: 1px solid var(--tg-line); }
.tg-example-rubric thead th { color: #526674; font-size: 0.68rem; font-weight: 600; }
.tg-example-rubric th:first-child { padding-right: 0.7rem; }
.tg-example-rubric tbody th { font-weight: 500; }
.tg-example-rubric tr > :last-child { text-align: right; white-space: nowrap; }
.tg-example-rubric td { color: var(--tg-ink); font-weight: 700; }
.tg-example-rubric tfoot th, .tg-example-rubric tfoot td { border: 0; padding-top: 0.85rem; color: var(--tg-blue); font-size: 0.9rem; }
.tg-example-feedback { margin-top: 1.2rem; }

.tg-example-feedback__tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--tg-line);
}

.tg-example-feedback__tabs button {
    flex: 1 1 0;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.65rem 0;
    color: #526674;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.tg-example-feedback__tabs button.active { color: var(--tg-accent-dark); border-bottom-color: var(--tg-accent); }
.tg-example-feedback__tabs button:hover { color: var(--tg-accent-dark); }
.tg-example-feedback :is(button, [role="tabpanel"]):focus-visible { outline: 3px solid var(--tg-blue); outline-offset: 3px; }
.tg-example-feedback .tab-content { margin-top: 0; padding-top: 1rem; min-height: 10.5rem; }
.tg-example-feedback .tab-pane > p { margin-bottom: 0.8rem; }
.tg-example-feedback__addition { padding: 0.7rem 0.9rem; border-left: 2px solid #32765a; background: #f0f7f2; }
.tg-example-feedback__addition span { display: block; margin-bottom: 0.3rem; color: #275e47; font-size: 0.7rem; font-weight: 700; }
.tg-example-guidance { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--tg-line); }
.tg-example-guidance h4 { margin-bottom: 0.4rem; font-size: 0.85rem; }
.tg-example-guidance p { margin: 0; color: var(--tg-ink-soft); font-size: 0.8rem; }

.tg-home-example__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 1.2rem; font-size: 0.8rem; }
.tg-home-example__footer p { display: flex; align-items: baseline; gap: 0.5rem; max-width: 43rem; margin: 0; }
.tg-home-example__footer i { color: var(--tg-blue); }
.tg-home-example__footer .tg-inline-link { flex-shrink: 0; }

.tg-supported-files { background: var(--tg-cream); border-top: 1px solid var(--tg-line); scroll-margin-top: 5.5rem; }
.tg-supported-files__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; list-style: none; padding: 0; margin: 0; }
.tg-file-card { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-content: start; align-items: center; gap: 0.6rem 0.7rem; min-width: 0; padding: 1rem; border: 1px solid var(--tg-line); border-radius: 0.65rem; background: #fff; }
.tg-file-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 0.5rem; background: var(--tg-blue-soft); }
.tg-file-card__icon img { display: block; width: 1.8rem; height: 1.8rem; }
.tg-file-card__icon--pdf, .tg-file-card__icon--slides { background: var(--tg-accent-soft); }
.tg-file-card__icon--sheets, .tg-file-card__icon--code { background: var(--tg-sage); }
.tg-file-card__icon--images { background: #f2eef9; }
.tg-file-card__icon--powerbi { background: #fcf5df; }
.tg-file-card__icon--zip { background: #f1f4f6; }
.tg-file-card__title { font-size: 0.9rem; line-height: 1.35; margin: 0; }
.tg-file-card__extensions { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.tg-file-card__extensions li { color: #526674; font-size: 0.68rem; line-height: 1.6; }
.tg-file-card__more { font-weight: 600; }
.tg-file-card__note { grid-column: 1 / -1; color: #526674; font-size: 0.65rem; line-height: 1.5; margin: 0; }
.tg-supported-files__note { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 1rem; color: #526674; font-size: 0.75rem; }
.tg-supported-files__note > i { flex-shrink: 0; color: var(--tg-blue); }

/* Match the homepage hero, workflow, and demo typography. */
.tg-home-page .tg-supported-files { font: 400 0.8rem/1.55 Arial, Helvetica, sans-serif; scroll-margin-top: 6rem; }
.tg-home-page .tg-supported-files > .tg-home-section { padding-block: clamp(2.6rem, 5.3vw, 4.4rem); }
.tg-home-page .tg-supported-files__heading { align-items: center; gap: 1.2rem 2.4rem; margin-bottom: 1.6rem; }
.tg-home-page .tg-supported-files__heading .tg-eyebrow { margin-bottom: 0.68rem !important; font-size: 0.656rem; font-weight: 700; line-height: 1.5; letter-spacing: 0.13em; }
.tg-home-page .tg-supported-files .display-4 { font: 700 clamp(1.6rem, 3vw, 2.24rem)/1.12 Arial, Helvetica, sans-serif; letter-spacing: -0.04em; }
.tg-home-page .tg-supported-files__heading .lead { font-size: 0.86rem; font-weight: 400; line-height: 1.6; }
.tg-home-page .tg-file-card { grid-template-columns: 1.96rem minmax(0, 1fr); gap: 0.56rem 0.64rem; padding: 0.8rem; border-radius: 0.56rem; }
.tg-home-page .tg-file-card__icon { width: 1.96rem; height: 1.96rem; border-radius: 0.56rem; }
.tg-home-page .tg-file-card__icon img { width: 1.4rem; height: 1.4rem; }
.tg-home-page .tg-file-card__title { font: 700 0.8rem/1.4 Arial, Helvetica, sans-serif; letter-spacing: -0.012em; overflow-wrap: anywhere; }
.tg-home-page .tg-file-card__extensions li,
.tg-home-page .tg-file-card__note { font-size: 0.7rem; line-height: 1.5; }

@media (max-width: 767.98px) {
    .tg-home-page .tg-supported-files__heading { grid-template-columns: minmax(0, 1fr); gap: 0.92rem; margin-bottom: 1.4rem; }
}
@media (max-width: 575.98px) {
    .tg-home-page .tg-supported-files > .tg-home-section { padding-block: 2.4rem; }
    .tg-home-page .tg-supported-files__heading .tg-eyebrow { font-size: 0.592rem; letter-spacing: 0.105em; }
    .tg-home-page .tg-supported-files__heading .lead { font-size: 0.8rem; }
    .tg-home-page .tg-file-card { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; padding: 0.65rem; }
}

.tg-home-setup { background: #fff; border-top: 1px solid var(--tg-line); }
.tg-home-setup__heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.tg-home-setup__heading .display-4 { max-width: 30rem; }
.tg-home-setup__actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; gap: 1.2rem; font-size: 0.85rem; }
.tg-home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 1.75rem 0 0; margin: 0; border-top: 1px solid var(--tg-line); }
.tg-home-steps li { display: flex; align-items: flex-start; gap: 0.9rem; padding-right: 1.5rem; }
.tg-home-steps li + li { border-left: 1px solid var(--tg-line); padding-left: 1.5rem; }
.tg-home-steps__number { font-family: "Space Grotesk", sans-serif; color: var(--tg-accent-dark); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.tg-home-steps h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 0.4rem; }
.tg-home-steps p { font-size: 0.82rem; margin: 0; }

@media (max-width: 1199.98px) {
    .tg-file-card { padding: 0.85rem; }
    .tg-grading-example__inputs, .tg-grading-example__result { padding: 1.2rem; }
    .tg-home-setup__heading { align-items: flex-start; }
    .tg-home-setup__actions { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
}

@media (max-width: 991.98px) {
    .tg-supported-files__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tg-home-section-heading, .tg-supported-files__heading { gap: 1.5rem; }
    .tg-grading-example { grid-template-columns: minmax(0, 1fr); }
    .tg-grading-example__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
    .tg-example-input + .tg-example-input { margin: 0; padding: 0 0 0 1.5rem; border-top: 0; border-left: 1px solid var(--tg-line); }
    .tg-grading-example__result { border-left: 0; border-top: 1px solid var(--tg-line); }
    .tg-example-feedback .tab-content { min-height: 9rem; }
    .tg-home-setup__heading { flex-direction: column; gap: 1.5rem; }
    .tg-home-setup__actions { flex-direction: row; align-items: center; gap: 1.3rem; }
}

@media (max-width: 575.98px) {
    .tg-home-section { padding-top: 2.4rem; padding-bottom: 2.4rem; }
    .tg-home-section-heading, .tg-supported-files__heading { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
    .tg-grading-example__inputs { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
    .tg-example-input + .tg-example-input { border-left: 0; border-top: 1px solid var(--tg-line); padding: 1.2rem 0 0; }
    .tg-grading-example__inputs, .tg-grading-example__result { padding: 1rem; }
    .tg-example-feedback__tabs { gap: 0.7rem; }
    .tg-example-feedback .tab-content { min-height: 13rem; }
    .tg-home-example__footer { margin-top: 1rem; }
    .tg-file-card { grid-template-columns: minmax(0, 1fr); padding: 0.85rem; gap: 0.5rem; }
    .tg-file-card__title { font-size: 0.85rem; }
    .tg-file-card__extensions { gap: 0.1rem 0.4rem; }
    .tg-file-card__extensions li { font-size: 0.65rem; }
    .tg-supported-files__grid { gap: 0.6rem; }
    .tg-home-steps { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-top: 1.5rem; }
    .tg-home-steps li { padding: 0; }
    .tg-home-steps li + li { border-left: 0; padding-left: 0; }
}
