/* Newsroom: the index at /newsroom/ and articles at /newsroom/YYYY/MM/slug/ */

.nr-page {
    background: var(--white);
    padding: 128px 0 clamp(72px, 9vw, 112px);
}

.nr-wrap {
    width: min(1080px, 100% - 48px);
    margin-inline: auto;
}

.nr-col {
    width: min(720px, 100% - 48px);
    margin-inline: auto;
}

.nr-wide {
    width: min(1040px, 100% - 32px);
    margin-inline: auto;
}

.nr-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.nr-kicker time {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.nr-link {
    color: var(--sky-deep);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nr-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 2.5px solid var(--ink);
    box-shadow: 0 3px 0 var(--ink);
    background: var(--white);
    font-weight: 900;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.nr-pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--ink);
}

.nr-pill-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--ink);
}

.nr-pill-btn.is-yellow { background: var(--yellow); }
.nr-pill-btn.is-done { background: var(--mint); }

.nr-pill-btn svg {
    width: 16px;
    height: 16px;
    flex: none;
}

/* ---------- Index ---------- */

.nr-masthead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    padding-bottom: 22px;
    margin-bottom: 36px;
    border-bottom: 2px solid rgba(21, 51, 74, 0.12);
}

.nr-masthead h1 {
    font-size: clamp(2.6rem, 6.4vw, 4.2rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.nr-masthead p {
    margin-top: 10px;
    color: var(--ink-soft);
    font-weight: 700;
}

.nr-masthead-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nr-feature {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    border-radius: 28px;
    overflow: hidden;
    background: #f2f5f7;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nr-feature:hover,
.nr-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -26px rgba(21, 51, 74, 0.55);
}

.nr-feature img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.nr-feature-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(26px, 3.4vw, 44px);
}

.nr-feature-body h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.nr-feature-body p {
    color: var(--ink-soft);
    font-weight: 600;
}

.nr-feature-body .nr-kicker:last-child {
    margin-top: auto;
}

.nr-section-title {
    margin: clamp(48px, 7vw, 72px) 0 22px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.015em;
}

.nr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.nr-tile {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    background: #f2f5f7;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nr-tile img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.nr-tile-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 20px 22px 22px;
}

.nr-tile-body h3 {
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.25;
}

.nr-tile-body .nr-kicker:last-child {
    margin-top: auto;
}

.nr-resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nr-resource {
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 24px 26px;
    border-radius: 24px;
    border: 3px solid var(--ink);
    box-shadow: 0 6px 0 var(--ink);
    background: var(--tint, var(--sky-soft));
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nr-resource:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 var(--ink);
}

.nr-resource strong {
    font-size: 1.15rem;
    font-weight: 900;
}

.nr-resource span {
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ---------- Article ---------- */

.nr-article-head {
    margin-bottom: clamp(30px, 4vw, 44px);
}

.nr-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 26px;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--muted);
}

.nr-breadcrumb a {
    text-decoration: none;
}

.nr-breadcrumb a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.nr-breadcrumb li + li::before {
    content: '\203A';
    margin-right: 6px;
}

.nr-title {
    margin: 14px 0 18px;
    font-size: clamp(2.1rem, 5.2vw, 3.5rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.028em;
}

.nr-dek {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.45;
    font-weight: 700;
    color: var(--ink-soft);
}

.nr-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.nr-figure {
    margin: clamp(36px, 5vw, 56px) auto;
}

.nr-figure > img,
.nr-hero img {
    width: 100%;
    border-radius: 26px;
    background: var(--sky-soft);
}

.nr-caption {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    width: min(720px, 100% - 16px);
    margin: 14px auto 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--muted);
}

.nr-caption a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
}

.nr-caption a:hover {
    color: var(--sky-deep);
}

.nr-caption svg {
    width: 15px;
    height: 15px;
}

.nr-hero {
    margin-top: 0;
}

.nr-body > p,
.nr-body > ul {
    font-size: 1.14rem;
    line-height: 1.72;
    font-weight: 600;
    color: #23435a;
}

.nr-body > p + p,
.nr-body > p + ul {
    margin-top: 1.15em;
}

.nr-body > h2 {
    margin: 2.2em 0 0.6em;
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.nr-body > ul {
    display: grid;
    gap: 0.7em;
    padding-left: 1.25em;
    list-style: disc;
}

.nr-body strong {
    color: var(--ink);
    font-weight: 900;
}

/* Phone screenshots on a tinted panel */

.nr-panel {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(14px, 3vw, 36px);
    padding: clamp(28px, 5vw, 56px) clamp(14px, 3vw, 40px);
    border-radius: 28px;
    background-color: var(--tint, var(--sky-soft));
    background-image: radial-gradient(rgba(255, 255, 255, 0.5) 2px, transparent 2.6px);
    background-size: 22px 22px;
}

.nr-panel.is-night {
    background-color: var(--night);
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2.6px);
}

.nr-phone {
    --w: 260px;
    flex: 0 1 var(--w);
    min-width: 0;
    padding: calc(var(--w) * 0.03);
    border-radius: 17% / 8.1%;
    background: #0b0b0d;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 30px 50px -26px rgba(21, 51, 74, 0.7);
}

.nr-phone img,
.nr-phone video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14.9% / 6.85%;
}

.nr-panel[data-video] {
    position: relative;
}

.nr-video-toggle {
    position: absolute;
    right: clamp(14px, 2vw, 22px);
    bottom: clamp(14px, 2vw, 22px);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(21, 51, 74, 0.72);
    color: var(--white);
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.nr-video-toggle:hover {
    background: var(--ink);
}

.nr-video-toggle:focus-visible {
    outline: 3px solid var(--sky-deep);
    outline-offset: 3px;
}

.nr-video-toggle svg {
    width: 18px;
    height: 18px;
}

.nr-video-toggle .is-play,
.nr-video-toggle.is-paused .is-pause {
    display: none;
}

.nr-video-toggle.is-paused .is-play {
    display: block;
}

.nr-panel.is-trio .nr-phone {
    --w: 236px;
}

.nr-detail {
    flex: 0 1 440px;
    align-self: center;
    padding: 20px;
    border-radius: 26px;
    background: var(--white);
    box-shadow: 0 30px 50px -30px rgba(21, 51, 74, 0.6);
}

/* Gallery */

.nr-gallery {
    position: relative;
}

.nr-gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 28px;
}

.nr-gallery-track::-webkit-scrollbar {
    display: none;
}

.nr-gallery-track > .nr-panel {
    scroll-snap-align: center;
    border-radius: 0;
}

.nr-gallery-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    width: min(720px, 100% - 16px);
    margin: 14px auto 0;
}

.nr-gallery-bar .nr-caption {
    margin: 0;
    width: auto;
}

.nr-gallery-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.nr-gallery-nav button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2.5px solid var(--ink);
    box-shadow: 0 3px 0 var(--ink);
    background: var(--white);
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.nr-gallery-nav button:disabled {
    opacity: 0.35;
    cursor: default;
}

.nr-gallery-nav button:not(:disabled):active {
    transform: translateY(2px);
}

.nr-gallery-nav svg {
    width: 16px;
    height: 16px;
}

.nr-gallery-count {
    min-width: 3.2em;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--muted);
}

/* End matter */

.nr-end {
    margin-top: clamp(48px, 6vw, 72px);
    padding-top: 32px;
    border-top: 2px solid rgba(21, 51, 74, 0.12);
}

.nr-end h2 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 900;
}

.nr-end p {
    font-weight: 600;
    color: var(--ink-soft);
}

.nr-end + .nr-end {
    margin-top: 32px;
}

.nr-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.nr-contacts address {
    font-style: normal;
    font-weight: 700;
    line-height: 1.6;
}

.nr-contacts address strong {
    display: block;
    font-weight: 900;
}

.nr-media {
    margin-top: clamp(56px, 7vw, 88px);
    padding: clamp(28px, 4vw, 44px);
    border-radius: 32px;
    background: #f2f5f7;
}

.nr-media-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.nr-media-head h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -0.015em;
}

.nr-media-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.nr-media-item {
    position: relative;
    display: grid;
    gap: 10px;
    align-content: start;
}

.nr-media-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(21, 51, 74, 0.78);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 900;
}

.nr-media-item.is-wide {
    grid-column: span 4;
}

.nr-media-item img {
    width: 100%;
    aspect-ratio: 603 / 1311;
    object-fit: cover;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 0 0 1px rgba(21, 51, 74, 0.08);
}

.nr-media-item.is-wide img {
    aspect-ratio: auto;
    height: auto;
}
.nr-media-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1.3;
    text-decoration: none;
}

.nr-media-item a:hover {
    color: var(--sky-deep);
}

.nr-media-item svg {
    width: 14px;
    height: 14px;
    flex: none;
}

.nr-more {
    margin-top: clamp(56px, 7vw, 88px);
}

.nr-more .nr-section-title {
    margin-top: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .nr-feature {
        grid-template-columns: 1fr;
    }

    .nr-grid,
    .nr-resources {
        grid-template-columns: 1fr 1fr;
    }

    .nr-media-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .nr-panel.is-trio .nr-phone:nth-child(3),
    .nr-detail {
        display: none;
    }
}

@media (max-width: 640px) {
    .nr-page {
        padding-top: 112px;
    }

    .nr-grid,
    .nr-resources {
        grid-template-columns: 1fr;
    }

    .nr-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nr-media-item.is-wide {
        grid-column: span 2;
    }

    .nr-caption,
    .nr-gallery-bar {
        flex-direction: column;
        gap: 10px;
    }

    .nr-figure > img,
    .nr-hero img,
    .nr-panel,
    .nr-gallery-track {
        border-radius: 20px;
    }

    .nr-body > p,
    .nr-body > ul {
        font-size: 1.06rem;
    }

    .nr-video-toggle {
        right: 8px;
        bottom: 8px;
        width: 34px;
        height: 34px;
    }

    .nr-video-toggle svg {
        width: 14px;
        height: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nr-feature,
    .nr-tile,
    .nr-resource,
    .nr-pill-btn {
        transition: none;
    }

    .nr-gallery-track {
        scroll-behavior: auto;
    }
}
