.tag-mgmt-hero {
    background-color: #03213D;
    color: #FFFFFF;
    padding: 160px 0 80px 0;
}

.tag-mgmt-container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
}

.tag-mgmt-hero-content {
    max-width: 800px;
    margin-bottom: 60px;
}

.tag-mgmt-h1 {
    font-family: sans-serif;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 700;
}

.tag-mgmt-hero-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #FFFFFF;
}

.tag-mgmt-accent {
    color: #FF8A3D;
    font-weight: 700;
}

.tag-mgmt-hero-media {
    text-align: center;
}

.tag-mgmt-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.tag-mgmt-split {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.tag-mgmt-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tag-mgmt-split-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.tag-mgmt-h2 {
    font-family: sans-serif;
    font-size: 2.25rem;
    line-height: 1.3;
    color: #03213D;
    margin-bottom: 24px;
    font-weight: 700;
}

.tag-mgmt-split-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #03213D;
    margin-bottom: 20px;
}

.tag-mgmt-action {
    margin-top: 32px;
}

.tag-mgmt-btn {
    display: inline-block;
    background-color: #FF8A3D;
    color: #03213D;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.tag-mgmt-btn:hover {
    transform: translateY(-2px);
    background-color: #FF7A2F;
}

.tag-mgmt-features {
    padding: 100px 0;
    background-color: #E2EEF4;
}

.tag-mgmt-features-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.tag-mgmt-features-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #03213D;
    margin-bottom: 20px;
}

.tag-mgmt-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.tag-mgmt-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #03213D;
}

.tag-mgmt-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #54ABDF;
    font-weight: bold;
}

.tag-mgmt-features-sidebar {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tag-mgmt-testimonial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    border: 4px solid #E2EEF4;
}

.tag-mgmt-quote-author {
    color: #03213D;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tag-mgmt-quote-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #03213D;
    font-style: italic;
}

@media (max-width: 900px) {
    .tag-mgmt-split-grid, .tag-mgmt-features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tag-mgmt-hero {
        padding-top: 120px;
    }

    .tag-mgmt-h1 {
        font-size: 2.25rem;
    }

    .tag-mgmt-h2 {
        font-size: 1.85rem;
    }
}

@media (max-width: 640px) {

    .tag-mgmt-hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .tag-mgmt-split, .tag-mgmt-features {
        padding: 60px 0;
    }
}

/* Tag language illustration within the existing feature section. */
main .tag-mgmt-series-figure {
    max-width: 700px;
    margin: 32px 0;
}
main .tag-mgmt-series-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* V38: one stable media collection; only the two misspelled assignments change. */
main #tags-merge { scroll-margin-top: 110px; }
main .tag-mgmt-split-text { max-width: 960px; margin-bottom: 48px; }
main .tag-merge-demo { margin: 0; padding: 36px; background: #E2EEF4; color: #03213D; border-radius: 12px; font-family: 'Open Sans', sans-serif; }
main .tag-merge-demo__heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
main .tag-merge-demo__heading h3 { margin: 0; max-width: 680px; text-wrap: balance; font: 600 28px/1.3 'Montserrat', sans-serif; }
main .tag-merge-demo__count { margin: 0; white-space: nowrap; font-size: 14px; }
main .tag-merge-demo__groups { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; margin-bottom: 20px; position: relative; min-height: 44px; }
main .tag-merge-demo__group { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px 10px; border-bottom: 2px solid #216D99; font-size: 14px; }
main .tag-merge-demo__group strong { font-size: 17px; }
main .tag-merge-demo__group--all { position: absolute; inset: 0; visibility: hidden; background: #E2EEF4; border-bottom: 3px solid #03213D; }
main .tag-merge-demo[data-merged="true"] .tag-merge-demo__group--all { visibility: visible; }
main .tag-merge-demo[data-merged="true"] .tag-merge-demo__group--before { visibility: hidden; }
main .tag-merge-demo__media { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
main .tag-merge-demo__asset { min-width: 0; margin: 0; }
main .tag-merge-demo__asset img { width: 100%; height: auto; aspect-ratio: 3/2; display: block; border: 5px solid white; border-radius: 7px; box-shadow: 0 10px 22px rgb(3 33 61 / .12); }
main .tag-merge-demo__info { position: relative; margin: -18px 10px 0; padding: 14px 16px; background: white; border-radius: 5px; box-shadow: 0 8px 18px rgb(3 33 61 / .08); }
main .tag-merge-demo__file { margin: 0 0 10px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
main .tag-merge-demo__tag { margin: 0; display: flex; gap: 10px; align-items: center; font-size: 14px; }
main .tag-merge-demo__tag strong { display: inline-block; border: 1px solid #216D99; border-radius: 4px; padding: 4px 12px; font-size: 16px; font-weight: 600; background: #E2EEF4; }
main .tag-merge-demo__change { margin: 10px 0 0; min-height: 20px; font-size: 12px; line-height: 20px; color: #216D99; }
main .tag-merge-demo[data-merged="true"] [data-original-tag="Trainig"] { background: #B7FF3C; border-color: #03213D; }
main .tag-merge-demo__action-area { display: grid; margin-top: 30px; }
main .tag-merge-demo__action-area > * { grid-area: 1 / 1; }
main .tag-merge-demo__controls { display: flex; align-items: center; gap: 24px; margin: 0; visibility: hidden; }
main .tag-merge-demo[data-render-ready="tag-merge-example"] .tag-merge-demo__controls { visibility: visible; }
main .tag-merge-demo__controls button { min-height: 46px; padding: 11px 18px; border: 1px solid #03213D; border-radius: 5px; background: #03213D; color: white; cursor: pointer; font: 600 14px/1.5 'Open Sans',sans-serif; }
main .tag-merge-demo__controls [aria-disabled="true"] { background: #E2EEF4; border-color: #216D99; color: #216D99; cursor: default; text-decoration: none; }
main .tag-merge-demo__controls button:focus-visible { outline: 3px solid #03213D; outline-offset: 4px; box-shadow: 0 0 0 3px white; }
main .tag-merge-demo__status { margin: 18px 0 0; min-height: 44px; font-size: 14px; line-height: 22px; font-weight: 600; }
main .tag-merge-demo__fallback { margin: 0; align-self: center; font-size: 14px; line-height: 1.6; }
main .tag-merge-demo[data-render-ready="tag-merge-example"] .tag-merge-demo__fallback { visibility: hidden; }
@media (max-width: 900px) {
  main .tag-merge-demo { padding: 24px; }
  main .tag-merge-demo__heading { align-items: start; flex-direction: column; gap: 12px; }
}
@media (max-width: 600px) {
  main .tag-mgmt-split-text { margin-bottom: 32px; }
  main .tag-merge-demo { padding: 20px 16px; margin-inline: -8px; }
  main .tag-merge-demo__heading h3 { font-size: 22px; }
  main .tag-merge-demo__groups { gap: 12px; grid-template-columns: 1fr 1fr; }
  main .tag-merge-demo__group { flex-direction: column; align-items: start; gap: 0; font-size: 12px; }
  main .tag-merge-demo__group--all { flex-direction: row; align-items: center; }
  main .tag-merge-demo__media { grid-template-columns: 1fr; gap: 18px; }
  main .tag-merge-demo__asset { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; }
  main .tag-merge-demo__asset img { border-width: 3px; }
  main .tag-merge-demo__info { margin: 0 0 0 -8px; padding: 10px; }
  main .tag-merge-demo__file { font-size: 12px; margin-bottom: 8px; }
  main .tag-merge-demo__tag { gap: 6px; font-size: 12px; }
  main .tag-merge-demo__tag strong { font-size: 14px; padding: 3px 9px; }
  main .tag-merge-demo__change { font-size: 11px; margin-top: 5px; }
  main .tag-merge-demo__action-area { margin-top: 24px; }
  main .tag-merge-demo__controls { flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; }
  main .tag-merge-demo__status { min-height: 66px; }
  main .tag-mgmt-features-sidebar { padding: 28px; }
}
