/* Shared editorial typography.
 * Measured from the existing Home News & Insights description in Chromium:
 * 18px/400, Inter Tight, #5c5c5c; 16px below 768px.
 * Justified desktop copy; left-aligned below 768px.
 */
:root {
    --arts-body-font-family:'Inter Tight',Arial,sans-serif;
    --arts-body-font-size:18px;
    --arts-body-font-weight:400;
    --arts-body-line-height:30px;
    --arts-body-color:var(--text);
    --arts-body-paragraph-space:20px;
    --arts-body-measure:65ch;
    --arts-body-alignment:justify;
    --arts-body-hyphens:auto;
}

/* Context tokens keep light copy on existing dark surfaces and image overlays. */
:where(.hero,.about,.industries,.contact-copy,.case-panel,
    .keysight-resource-section,.semiconductor-featured-copy,.careers-banner,
    .case-detail-hero,.blog-detail-hero,.industry-directory-card,
    .news-card-copy,.case-study-card-copy,.blog-card,.team-card,
    .product-card.featured,.arts-copy-light,.has-white-color) {
    --arts-copy-color:var(--white);
}
:where(.why .feature-card,.products-catalogue-card-has-image,
    .related-product-has-image,#products .product-card-has-image):is(:hover,:focus-within) {
    --arts-copy-color:var(--white);
}

/* Only descriptive copy; do not restyle UI text merely because it uses <p>.
 * Important declarations deliberately replace legacy page/ID-based type scales
 * (including editor inline type/color), without changing heading or UI styles.
 */
:where(.arts-body-copy,main p):not(:where(
    .eyebrow,.slide-status,.screen-reader-text,.product-banner-title,
    .partner-filter-selection,.partner-filter-help,.partner-filter-notice,
    .partner-filter-empty,.keysight-resource-empty,.news-no-results,
    [role='status'],[aria-live],.caption,.metadata,.meta,
    nav *,[role='navigation'] *,aside *,footer *,form *,
    figcaption *,caption *,table *,blockquote *,pre *,
    .team-card *,.wp-caption-text,.wp-block-post-date,.wp-block-post-author *,
    .gform_wrapper *,.gform_confirmation_wrapper *,.arts-careers-zoho *
)) {
    font-family:var(--arts-body-font-family) !important;
    font-size:var(--arts-body-font-size) !important;
    font-weight:var(--arts-body-font-weight) !important;
    line-height:var(--arts-body-line-height) !important;
    color:var(--arts-copy-color,var(--arts-body-color)) !important;
    letter-spacing:normal;
    word-spacing:normal !important;
    text-indent:0 !important;
    text-align:var(--arts-body-alignment) !important;
    text-justify:inter-word;
    text-align-last:start;
    /* Natural line filling avoids the short final lines produced by pretty
     * wrapping. Hyphenation gives justified lines more break opportunities
     * instead of distributing all spare width between a few words. */
    text-wrap:wrap;
    -webkit-hyphens:var(--arts-body-hyphens);
    hyphens:var(--arts-body-hyphens);
    hyphenate-limit-chars:6 3 3;
    hyphenate-limit-zone:8%;
    word-break:normal;
    overflow-wrap:break-word;
    max-width:var(--arts-body-measure) !important;
    margin-block:var(--arts-body-paragraph-before,0) var(--arts-body-paragraph-space) !important;
    margin-inline:0 !important;
}

/* These introductions originally separated the heading with paragraph top space. */
:where(.home-news-intro,.products-intro) {--arts-body-paragraph-before:var(--arts-body-paragraph-space);}

/* Paragraph collections use a single shared gap rather than margin plus gap. */
body main .overview-paragraphs {max-width:100%;gap:0;}

/* Descriptive cards follow the shared responsive alignment. */
main :where(.feature-card,.resources-page-card,.careers-benefit) p:not(.eyebrow) {
    text-align:var(--arts-body-alignment) !important;
    hyphens:var(--arts-body-hyphens);
}

/* Product-card descriptions use natural spacing and whole-word wrapping,
 * including nested descriptions on technology-partner catalogue cards. */
main :where(.product-card,.products-catalogue-card,.related-product-copy) p:not(.eyebrow) {
    text-align:left !important;
    text-align-last:start;
    word-spacing:normal !important;
    letter-spacing:normal;
    text-wrap:wrap;
    -webkit-hyphens:none;
    hyphens:none;
    word-break:normal;
}


/* Featured slider descriptions align with the centered heading and wrap
 * at spaces without stretching word gaps or hyphenating short banner copy. */
main .semiconductor-featured-copy > p:not(.eyebrow) {
    --arts-body-measure:100%;
    width:100%;
    text-align:center !important;
    text-align-last:center;
    word-spacing:normal !important;
    -webkit-hyphens:none;
    hyphens:none;
    word-break:normal;
}


/* Contact values follow the centered icons and titles rather than prose rules.
 * Reset last-line alignment too, including single-line email/phone values. */
main .contact-info-card > p {
    text-align:center !important;
    text-align-last:center;
    word-spacing:normal !important;
    -webkit-hyphens:none;
    hyphens:none;
    margin-inline:auto !important;
}


/* Resource summaries use natural word spacing and whole-word wrapping. */
main .resources-page-card > p {
    width:100%;
    --arts-body-measure:100%;
    text-align:left !important;
    text-align-last:start;
    word-spacing:normal !important;
    -webkit-hyphens:none;
    hyphens:none;
    word-break:normal;
    text-wrap:wrap;
}


/* Center the Resources introduction beneath its centered section heading. */
main .resources-heading > p:not(.eyebrow) {
    text-align:center !important;
    text-align-last:center;
    margin-inline:auto !important;
    word-spacing:normal !important;
    -webkit-hyphens:none;
    hyphens:none;
}

@media(max-width:767px) {
    :root {--arts-body-font-size:16px;--arts-body-line-height:26px;--arts-body-alignment:left;--arts-body-hyphens:none;}
}
