.nb-row {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #d7dee7;
    border-radius: 16px;
    background: #ffffff;
}

.nb-row--body {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.nb-row--aside {
    border-left: 6px solid #f59e0b;
    background: #fffaf0;
}

.nb-row--wide {
    border-left: 6px solid #0f766e;
    background: #f3fbf9;
}

.nb-row--highlight {
    border-left: 6px solid #4338ca;
    background: #f5f3ff;
}

.nb-row--faq {
    border-left: 6px solid #7c3aed;
    background: #faf5ff;
}

.nb-row--sources {
    border-left: 6px solid #475569;
    background: #f8fafc;
}

.nb-article-matrix-shell {
    display: block;
}

.nb-article-matrix-shell .wp-block-columns {
    align-items: flex-start;
    gap: 32px;
    flex-wrap: nowrap; /* Prevent 62+38+gap from stacking in narrow templates */
}

@media (max-width: 781px) {
    .nb-article-matrix-shell .wp-block-columns {
        flex-wrap: wrap;
    }
}

.nb-article-matrix-shell .wp-block-column {
    min-width: 0;
}

/* Commented out to let theme handle global styles
.nb-article-matrix-shell p,
.nb-article-matrix-shell li,
.nb-article-matrix-shell details,
.nb-article-matrix-shell summary {
    color: #7A7A7A;
    font-family: "Roboto", sans-serif;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: normal;
}

.nb-article-matrix-shell a {
    color: #6665FF;
    text-decoration: none;
}

.nb-article-matrix-shell a:hover,
.nb-article-matrix-shell a:focus {
    color: #120033;
    text-decoration: underline;
}

.nb-article-matrix-shell h1,
.nb-article-matrix-shell h2,
.nb-article-matrix-shell h3,
.nb-article-matrix-shell h4,
.nb-article-matrix-shell h5,
.nb-article-matrix-shell h6,
.nb-article-matrix-shell .wp-block-heading {
    color: #02015A;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nb-article-matrix-shell h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.nb-article-matrix-shell h3 {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.nb-article-matrix-shell h4 {
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
}
*/

.nb-article-matrix-shell img {
    display: block;
    max-width: 100%;
    height: auto;
}

.nb-article-matrix-shell .wp-block-image {
    margin-top: 0;
    margin-bottom: 0;
}

.nb-article-matrix-shell .nb-row--body > *:first-child,
.nb-article-matrix-shell .nb-row--aside > *:first-child,
.nb-article-matrix-shell .nb-row--faq > *:first-child,
.nb-article-matrix-shell .nb-row--wide > *:first-child,
.nb-article-matrix-shell .nb-row--highlight > *:first-child {
    margin-top: 0;
}

.nb-article-matrix-shell .nb-row--body > *:last-child,
.nb-article-matrix-shell .nb-row--aside > *:last-child,
.nb-article-matrix-shell .nb-row--faq > *:last-child,
.nb-article-matrix-shell .nb-row--wide > *:last-child,
.nb-article-matrix-shell .nb-row--highlight > *:last-child {
    margin-bottom: 0;
}

.nb-brand-profiles {
    margin: 0;
}

.nb-brand-profiles__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.nb-brand-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.nb-brand-card__row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.nb-brand-card__row--bottom {
    align-items: start;
}

.nb-brand-card__logo,
.nb-brand-card__logo--ghost {
    width: 64px;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nb-brand-card__logo-image,
.nb-brand-card__logo-fallback {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.nb-brand-card__logo-image {
    object-fit: contain;
    padding: 8px;
}

.nb-brand-card__logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #334155;
}

.nb-brand-card__identity,
.nb-brand-card__description {
    min-width: 0;
}

.nb-brand-card__name {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.nb-brand-card__name strong {
    font-weight: 700;
}

.nb-brand-card__link {
    color: #4338ca;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.nb-brand-card__link--muted {
    color: #64748b;
    font-weight: 500;
}

.nb-brand-card__description {
    margin: 0;
    color: #334155;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

@media (max-width: 781px) {
    .nb-brand-profiles__grid {
        grid-template-columns: 1fr;
    }
}
