/* Scoped to the editorial pages; the shared landing stylesheet supplies the brand. */
.news-skip-link { position: fixed; top: -8rem; left: 1rem; z-index: 100; padding: 1rem; background: #fff; border-radius: .8rem; }
.news-skip-link:focus { top: 1rem; }
.news-page :focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.news-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.7rem; color: var(--muted); font-size: .85rem; }
.news-breadcrumbs a { text-decoration: none; }
.news-breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.news-page .news-eyebrow { display: inline-block; margin: 0 0 .7rem; color: var(--blue); font-size: .9rem; font-weight: 750; text-decoration: none; }
.news-page h1 { font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.12; overflow-wrap: anywhere; }
.news-page .news-lead { color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.news-intro { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; }
.news-intro-image { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1.6rem; }
.news-intro-count { margin-bottom: 0; color: var(--blue); font-weight: 650; font-size: .9rem; }
.news-topics { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.6rem 0; }
.news-topics a { display: inline-flex; align-items: center; gap: .7rem; padding: .85rem 1.05rem; border: 1px solid rgba(255,255,255,.9); border-radius: 1rem; background: rgba(255,255,255,.75); text-decoration: none; font-size: .92rem; }
.news-topics a:hover { color: var(--blue); background: #fff; }
.news-topics span { display: inline-grid; place-items: center; min-width: 1.5rem; min-height: 1.5rem; color: var(--blue); background: #e9f0ff; border-radius: .5rem; font-size: .8rem; }
.news-group, .news-article-content section { scroll-margin-top: 8rem; }
.news-page main > .news-group { padding: clamp(1.2rem, 3vw, 2.4rem); }
.news-group-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }
.news-page .news-group h2 { margin: .2rem 0 1.1rem; font-size: clamp(1.6rem, 2.5vw, 2.3rem); }
.news-group-heading > a { color: var(--muted); font-size: .9rem; text-underline-offset: .2em; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.news-page .news-card { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; overflow: hidden; background: rgba(255,255,255,.82); border: 1px solid #fff; border-radius: 1.4rem; box-shadow: 0 10px 30px rgba(57,75,126,.06); }
.news-card-image { display: block; overflow: hidden; }
.news-card-image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.news-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.news-page .news-card-meta { margin: 0 0 .7rem; color: var(--blue); font-size: .76rem; font-weight: 650; line-height: 1.5; }
.news-page .news-card h3 { margin: 0 0 .8rem; font-size: 1.2rem; line-height: 1.3; overflow-wrap: anywhere; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { color: var(--blue); }
.news-card-body > p:not(.news-card-meta) { margin: 0 0 1.3rem; font-size: .9rem; line-height: 1.65; }
.news-read-link { align-self: flex-start; margin-top: auto; color: var(--blue); font-size: .9rem; font-weight: 650; text-decoration: none; }
.news-read-link:hover { text-decoration: underline; }
.news-page .news-cta h2 { max-width: 850px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.news-article { margin: 1.4rem 0; padding: clamp(1.25rem, 4.5vw, 4rem); border: 1px solid var(--line); border-radius: clamp(1.5rem, 4vw, 3rem); background: rgba(255,255,255,.78); box-shadow: var(--shadow); }
.news-article-header { max-width: 960px; }
.news-article-header h1 { max-width: 950px; }
.news-article-meta { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .85rem; }
.news-page .news-article-cover { margin: 1.8rem 0 2.6rem; padding: 0; border: 0; background: transparent; box-shadow: none; }
.news-article-cover img { border-radius: 1.4rem; }
.news-article-cover figcaption { padding: .65rem 0 0; font-size: .75rem; }
.news-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; grid-template-areas: 'content toc'; align-items: start; gap: clamp(1.5rem, 4vw, 3rem); }
.news-toc { grid-area: toc; position: sticky; top: 8rem; padding: 1.2rem; border: 1px solid #dce6f7; border-radius: 1.2rem; background: #f4f7fd; }
.news-page .news-toc h2 { margin: 0 0 1rem; font-size: 1rem; letter-spacing: 0; }
.news-toc ol { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.news-toc li { margin: 0 0 .8rem; padding-left: .1rem; font-size: .85rem; line-height: 1.5; }
.news-toc a { text-decoration: none; }
.news-toc a:hover { color: var(--blue); text-decoration: underline; }
.news-back-link { display: inline-block; margin-top: .4rem; color: var(--blue); font-size: .85rem; font-weight: 650; }
.news-article-content { grid-area: content; min-width: 0; }
.news-page .news-article-content h2 { margin: 0 0 1.1rem; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.25; }
.news-article-content section { margin: 0 0 2.8rem; }
.news-article-content p, .news-article-content li { font-size: 1rem; line-height: 1.85; color: #465674; }
.news-article-content p { margin: 0 0 1.1rem; }
.news-article-content li { margin-bottom: .7rem; }
.news-article-content ul { padding-left: 1.4rem; }
.news-article-content p a { color: #215bce; text-underline-offset: .18em; }
.news-inline-cta { padding: 1.6rem; background: #eaf1ff; border-radius: 1.4rem; }
.news-inline-cta .section-actions { gap: .7rem; }
.news-inline-cta .button { min-width: 0; font-size: .9rem; }
.news-pagination { display: flex; align-items: center; gap: 1rem; margin: 1.8rem 0; }
.news-pagination a { flex: 1; min-width: 0; padding: 1.1rem; border-radius: 1.2rem; background: rgba(255,255,255,.8); text-decoration: none; }
.news-pagination a:hover { color: var(--blue); background: #fff; }
.news-pagination small { display: block; margin-bottom: .6rem; color: var(--muted); }
.news-pagination span { font-size: .9rem; line-height: 1.5; }
.news-pagination .news-pagination-all { flex: 0 0 auto; color: var(--blue); font-size: .9rem; text-align: center; }
@media (max-width: 1000px) {
    .news-intro { grid-template-columns: 1fr; }
    .news-intro-image { max-height: 420px; object-position: center; }
    .news-article-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'toc' 'content'; }
    .news-toc { position: static; }
}
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .news-grid { grid-template-columns: minmax(0, 1fr); }
    .news-page main > .news-intro, .news-page main > .news-cta { padding: 1.4rem; }
    .news-topics { gap: .5rem; }
    .news-topics a { padding: .7rem .8rem; font-size: .85rem; }
    .news-pagination { flex-direction: column; align-items: stretch; }
    .news-pagination .news-pagination-all { order: 3; }
    .news-article-content p, .news-article-content li { line-height: 1.75; }
    .news-inline-cta { padding: 1.1rem; }
    .news-breadcrumbs { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { .news-page { scroll-behavior: auto; } }
/* One standard app-promotion CTA at the end of each article. */
.news-section-cta { container-type: inline-size; margin: 1.8rem 0 0; }
.news-section-cta > .app-promo {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    overflow: hidden;
    margin: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    color: #fff;
    border: 1px solid rgba(164, 185, 255, .3);
    border-radius: 1.4rem;
    background: radial-gradient(ellipse at 85% 28%, #4660a0 0%, transparent 55%), linear-gradient(125deg, #111e3b, #1c2a50 55%, #29386c);
    box-shadow: 0 20px 50px rgba(31, 46, 86, .16), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.news-page .news-section-cta .app-promo h2 { max-width: 22ch; color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.12; }
.news-section-cta .app-promo .app-promo-eyebrow { color: #b7ccff; font-size: .85rem; line-height: 1.6; }
.news-section-cta .app-promo .app-promo-lead { color: #d5def0; font-size: 1rem; line-height: 1.75; }
.news-section-cta .app-promo .app-promo-note { color: #aabbdc; font-size: .8rem; line-height: 1.6; }
.news-section-cta .app-promo .app-promo-template-caption { color: #b8c8e6; font-size: .8rem; line-height: 1.6; }
.news-section-cta .app-promo-platforms { margin: 1.2rem 0; }
.news-section-cta .app-promo-devices { max-width: 390px; height: 405px; }
.news-section-cta .app-promo-phone { width: 150px; border-radius: 26px; }
.news-section-cta .app-promo-phone--store { width: 175px; left: calc(50% - 87.5px); }
.news-section-cta .app-promo-screen { border-radius: 20px; }
.news-section-cta .app-promo-phone--restaurant { left: 0; }
.news-section-cta .app-promo-phone--grocery { right: 0; }
@container (min-width: 760px) {
    .news-section-cta > .app-promo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .news-section-cta .app-promo h2 { max-width: 17ch; }
}
@media (max-width: 380px) {
    .news-section-cta .app-promo-devices { height: 355px; }
    .news-section-cta .app-promo-phone { width: 125px; }
    .news-section-cta .app-promo-phone--store { width: 150px; left: calc(50% - 75px); }
}
