/* ============================================================
   NON-RESIDENT TAX RETURNS LANDING PAGE
   (core/templates/core/service_pages/non-resident-tax-returns.html)

   Loaded with service-pages.css, which supplies the shared pieces (.cs-grid,
   sticky .cs-rail, cards, quote factors, FAQ grid, reviews, offices, related).
   Everything here is prefixed .nr- and is this page's own look.

   DESIGN BRIEF: every CRA page must look different. This one is MIDNIGHT NAVY
   with ICE BLUE. The hero is cut on a diagonal: a dark text block on the left
   and a light panel on the right holding a small globe and six tap-to-select
   "pins" (kinds of Canadian income or events). Below the hero the body shows
   the residency ties as three cards, the two ways Canada taxes a non-resident
   side by side (alternatives, so no steps or numbers), an income table, the
   section 116 property-sale process as a timeline (a true sequence) and
   split cards for the section 216 election and the 90% rule.

   Palette: navy #0b1f3a / #0f2d54 (white text on it is 15:1 / 13:1), sky #38bdf8
   / #7dd3fc (accents on dark), sky-800 #075985 for text on light (7:1), ice
   tints #f0f9ff / #e0f2fe / #bae6fd, slate text #0f172a / #1e293b / #334155 /
   #475569, amber #fffbeb with #92400e for warnings. No red anywhere, and
   nothing loops: the only motion is a short hover lift.
   ============================================================ */

.nr-hero {
    position: relative;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
    color: #0b1f3a;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-bottom: 4px solid #38bdf8;
    padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1.75rem, 3.5vw, 2.75rem) !important;
    overflow: hidden;
}
/* The dark block on the left, cut on a diagonal. */
.nr-hero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 60%;
    background:
        radial-gradient(520px 320px at 0% 0%, rgba(56, 189, 248, 0.28) 0%, rgba(56, 189, 248, 0) 70%),
        linear-gradient(160deg, #0b1f3a 0%, #0f2d54 100%);
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    z-index: 0;
}
/* Same left/right edge as the rest of the redesign (see .cs-body in service-pages.css). */
.nr-hero > .container {
    position: relative;
    z-index: 1;
    max-width: none;
    width: 100%;
    padding-left: clamp(1.5rem, 6vw, 7rem);
    padding-right: clamp(1.5rem, 6vw, 7rem);
}
@media (min-width: 1280px) {
    .nr-hero > .container { padding-right: max(clamp(1.5rem, 6vw, 7rem), 108px); }
}

.nr-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #bae6fd;
    margin-bottom: clamp(0.9rem, 2.5vw, 1.4rem);
}
.nr-crumbs a { display: inline-flex; align-items: center; min-height: 36px; color: #e0f2fe; text-decoration: none; }
.nr-crumbs a:hover { color: #7dd3fc; text-decoration: underline; }
.nr-crumbs span[aria-current] { color: #ffffff; }
.nr-crumbs span[aria-hidden] { color: #7aa3c4; }

.nr-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.nr-hero-main { color: #ffffff; }
.nr-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #7dd3fc;
    background: rgba(125, 211, 252, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.5);
    border-radius: 999px;
    padding: 0.32rem 0.85rem;
    margin-bottom: 1rem;
}
.nr-hero h1 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.9rem, 4.2vw, 3.3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 1.1rem;
}
.nr-hero-intro { font-size: 1.04rem; line-height: 1.7; color: #dbeafe; max-width: 620px; margin: 0 0 1.1rem; }
.nr-hero-points { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.45rem; }
.nr-hero-points li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.93rem; font-weight: 600; line-height: 1.45; color: #f0f9ff; }
.nr-hero-points .cs-ico { flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.05rem; padding: 3px; border-radius: 50%; color: #0b1f3a; background: #7dd3fc; stroke-width: 3; }
.nr-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.nr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.8rem 1.45rem;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.nr-btn .cs-ico { width: 17px; height: 17px; }
.nr-btn-sky { color: #0b1f3a; background: #7dd3fc; box-shadow: 0 4px 0 #0369a1; }
.nr-btn-ghost { color: #ffffff; background: transparent; border-color: rgba(255, 255, 255, 0.5); }
.nr-btn:focus-visible, .nr-pin:focus-visible, .nr-send:focus-visible { outline: 3px solid #0ea5e9; outline-offset: 3px; }
.nr-btn-sky:focus-visible, .nr-btn-ghost:focus-visible { outline-color: #7dd3fc; }

/* The globe panel (right) */
/* A light card, so it reads the same whether it sits on the ice side or crosses the diagonal. */
.nr-hero-globe { padding: 1.2rem 1.2rem 1.3rem; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 22px; box-shadow: 0 30px 50px -34px rgba(11, 31, 58, 0.7); }
/* Side by side (992px and up) the text block stays in view beside the taller result list. The header is not sticky at any width, so nothing overlaps it. */
@media (min-width: 992px) {
    .nr-hero-main { position: sticky; top: 1.25rem; }
}
.nr-globe { position: relative; width: 150px; height: 150px; margin: 0 auto 0.9rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e0f2fe 0%, #7dd3fc 45%, #0369a1 100%); box-shadow: 0 18px 30px -18px rgba(3, 105, 161, 0.7); overflow: hidden; }
.nr-globe-ring { position: absolute; left: 0; right: 0; top: 50%; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 50%; }
.nr-globe-ring-1 { height: 55%; margin-top: -27.5%; }
.nr-globe-ring-2 { height: 100%; margin-top: -50%; transform: scaleX(0.45); }
.nr-globe-meridian { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.55); }
.nr-globe-dot { position: absolute; width: 12px; height: 12px; background: #0b1f3a; border: 3px solid #ffffff; border-radius: 50%; }
.nr-globe-dot-a { left: 30%; top: 32%; }
.nr-globe-dot-b { left: 62%; top: 62%; }
.nr-hero-globe h2 { margin: 0; text-align: center; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; color: #0b1f3a; }
.nr-tool-sub { margin: 0.2rem 0 0.9rem; text-align: center; font-size: 0.86rem; color: #334155; }
.nr-pins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.nr-pin {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 54px;
    padding: 0.45rem 0.7rem;
    font: inherit;
    text-align: left;
    color: #0b1f3a;
    background: #ffffff;
    border: 1.5px solid #bae6fd;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.nr-pin-ico { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #7dd3fc; background: #0b1f3a; border-radius: 50% 50% 50% 8px; }
.nr-pin-ico .cs-ico { width: 18px; height: 18px; }
.nr-pin-label { font-size: 0.86rem; font-weight: 700; line-height: 1.3; }
.nr-pin[aria-pressed="true"] { color: #ffffff; background: #0f2d54; border-color: #0b1f3a; }
.nr-pin[aria-pressed="true"] .nr-pin-ico { color: #0b1f3a; background: #7dd3fc; }
.nr-ties { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.9rem 0 0; font-size: 0.85rem; line-height: 1.45; color: #1e293b; cursor: pointer; }
.nr-ties input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 0.1rem; accent-color: #0f2d54; }

.nr-result { margin-top: 1rem; }
.nr-result[hidden] { display: none; }
.nr-res-warn { padding: 0.85rem 1rem; margin-bottom: 0.7rem; color: #1e293b; background: #fffbeb; border: 1.5px solid #f0cf7f; border-radius: 14px; }
.nr-res-warn strong::before { content: "!"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 0.5rem; font-size: 0.8rem; font-weight: 800; color: #ffffff; background: #b45309; border-radius: 50%; vertical-align: 0.1em; }
.nr-res-warn strong { display: block; margin-bottom: 0.2rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #92400e; }
.nr-res-warn p { margin: 0; font-size: 0.85rem; line-height: 1.55; }
.nr-res-head { margin: 0 0 0.5rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #075985; }
.nr-res-card { margin-bottom: 0.6rem; padding: 0.85rem 1rem; background: #ffffff; border: 1px solid #bae6fd; border-radius: 14px; }
.nr-res-card h4::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 0.5rem; background: #0ea5e9; border-radius: 50%; }
.nr-res-card h4 { margin: 0 0 0.35rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0b1f3a; }
.nr-res-card ul { margin: 0; padding-left: 1.05rem; display: grid; gap: 0.3rem; }
.nr-res-card li { font-size: 0.85rem; line-height: 1.5; color: #1e293b; }
.nr-res-card li::marker { color: #0369a1; }
.nr-send { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 0.4rem; padding: 0.6rem 0.9rem; font: inherit; font-size: 0.92rem; font-weight: 800; color: #ffffff; background: #0f2d54; border: 0; border-radius: 12px; box-shadow: 0 4px 0 #0b1f3a; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.nr-send:active { transform: translateY(2px); box-shadow: 0 2px 0 #0b1f3a; }
.nr-disclaimer { display: block; margin-top: 0.55rem; font-size: 0.76rem; line-height: 1.4; color: #475569; text-align: center; }

/* ---------- Body ---------- */
.nr-body .cs-sec h2::after { content: ""; display: block; width: 54px; height: 4px; margin-top: 0.55rem; background: linear-gradient(90deg, #0f2d54, #38bdf8); border-radius: 4px; }
.nr-body .cs-jump a:hover { background: #e0f2fe; color: #075985; }
.nr-sub { margin: 2rem 0 0.25rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.3rem; color: #0b1f3a; }
.nr-note { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1rem 0 0; padding: 0.95rem 1.1rem; background: #f0f9ff; border: 1px dashed #38bdf8; border-radius: 14px; }
.nr-note .cs-ico { flex-shrink: 0; width: 22px; height: 22px; margin-top: 0.1rem; color: #0369a1; }
.nr-note span { font-size: 0.9rem; line-height: 1.6; color: #1e293b; }
.nr-more { margin: 0.8rem 0 0; }
.nr-more a { display: inline-flex; align-items: center; min-height: 36px; font-size: 0.92rem; font-weight: 800; color: #075985; text-decoration: underline; text-underline-offset: 3px; }

/* Residency ties */
.nr-ties-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.nr-tie { padding: 1.1rem 1rem 1.1rem; border-radius: 16px; border: 1px solid; }
.nr-tie-sig { background: #0f2d54; border-color: #0f2d54; color: #ffffff; }
.nr-tie-sec { background: #e0f2fe; border-color: #7dd3fc; color: #0b1f3a; }
.nr-tie-days { background: #ffffff; border-color: #bae6fd; color: #0b1f3a; }
.nr-tie-ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 0.6rem; border-radius: 12px; }
.nr-tie-ico .cs-ico { width: 22px; height: 22px; }
.nr-tie-sig .nr-tie-ico { color: #0b1f3a; background: #7dd3fc; }
.nr-tie-sec .nr-tie-ico, .nr-tie-days .nr-tie-ico { color: #7dd3fc; background: #0b1f3a; }
.nr-tie-tag { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.nr-tie-sig .nr-tie-tag { color: #bae6fd; }
.nr-tie-sec .nr-tie-tag, .nr-tie-days .nr-tie-tag { color: #075985; }
.nr-tie h3 { margin: 0.2rem 0 0.5rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.1rem; }
.nr-tie-sig h3 { color: #ffffff; }
.nr-tie ul { margin: 0; padding-left: 1.05rem; display: grid; gap: 0.3rem; }
.nr-tie li { font-size: 0.86rem; line-height: 1.5; }
.nr-tie-sig li { color: #e0f2fe; }
.nr-tie-sig li::marker { color: #7dd3fc; }
.nr-tie-sec li, .nr-tie-days li { color: #1e293b; }
.nr-tie-sec li::marker, .nr-tie-days li::marker { color: #0369a1; }

/* Two ways of being taxed: alternatives, drawn side by side */
.nr-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.nr-way { padding: 1.2rem 1.1rem 1.15rem; background: #ffffff; border: 1.5px solid #bae6fd; border-radius: 18px; }
.nr-way:first-child { background: #f0f9ff; }
.nr-way-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 0.6rem; color: #7dd3fc; background: #0b1f3a; border-radius: 13px; }
.nr-way-ico .cs-ico { width: 23px; height: 23px; }
.nr-way-tag { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #075985; }
.nr-way h3 { margin: 0.15rem 0 0.2rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.2rem; color: #0b1f3a; }
.nr-way-lead { margin: 0 0 0.7rem; font-size: 0.92rem; font-weight: 700; color: #0f2d54; }
.nr-way ul { margin: 0; padding-left: 1.05rem; display: grid; gap: 0.4rem; }
.nr-way li { font-size: 0.86rem; line-height: 1.55; color: #1e293b; }
.nr-way li::marker { color: #0369a1; }

/* Must file */
.nr-must { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.nr-must-col { padding: 1.1rem 1.1rem 1.15rem; border-radius: 16px; border: 1px solid; }
.nr-must-yes { background: #e0f2fe; border-color: #7dd3fc; }
.nr-must-no { background: #f8fafc; border-color: #cbd5e1; }
.nr-must-col h4 { margin: 0 0 0.6rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.08rem; color: #0b1f3a; }
.nr-must-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.nr-must-col li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.55; color: #1e293b; }
.nr-must-col li .cs-ico { flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.2rem; }
.nr-must-yes li .cs-ico { color: #0369a1; }
.nr-must-no li .cs-ico { color: #475569; }

/* Tables */
.nr-table-wrap { overflow-x: auto; border: 1px solid #bae6fd; border-radius: 16px; background: #ffffff; }
.nr-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.nr-table thead th { padding: 0.8rem 1rem; text-align: left; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #ffffff; background: #0f2d54; }
.nr-table tbody th, .nr-table tbody td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; line-height: 1.55; color: #1e293b; border-top: 1px solid #e0f2fe; }
.nr-table tbody th { width: 26%; font-weight: 700; color: #0b1f3a; }
.nr-table-2 tbody th { width: 32%; }
.nr-table tbody tr:nth-child(even) { background: #f7fbff; }

/* Sale: a real sequence, as a vertical timeline */
.nr-timeline { list-style: none; margin: 0; padding: 0 0 0 0.2rem; position: relative; display: grid; gap: 1.05rem; }
.nr-timeline::before { content: ""; position: absolute; left: 22px; top: 22px; bottom: 22px; width: 3px; background: linear-gradient(180deg, #0f2d54, #7dd3fc); border-radius: 3px; }
.nr-timeline li { position: relative; display: flex; gap: 0.9rem; align-items: flex-start; }
.nr-timeline-dot { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; color: #7dd3fc; background: #0f2d54; border: 4px solid #ffffff; border-radius: 50%; box-shadow: 0 0 0 2px #7dd3fc; }
.nr-timeline-dot .cs-ico { width: 21px; height: 21px; }
.nr-timeline h3 { margin: 0.25rem 0 0.15rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; color: #0b1f3a; }
.nr-timeline p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: #334155; }

/* Section 216 election */
.nr-elect { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.nr-elect-card { padding: 1.1rem 1.1rem 1.15rem; border-radius: 16px; border: 1.5px solid; }
.nr-elect-plain { background: #f8fafc; border-color: #cbd5e1; }
.nr-elect-elect { background: #e0f2fe; border-color: #38bdf8; }
.nr-elect-card h3 { margin: 0 0 0.6rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.1rem; color: #0b1f3a; }
.nr-elect-card ul { margin: 0; padding-left: 1.05rem; display: grid; gap: 0.4rem; }
.nr-elect-card li { font-size: 0.88rem; line-height: 1.55; color: #1e293b; }
.nr-elect-card li::marker { color: #0369a1; }
.nr-dates-box { margin-top: 0.9rem; padding: 1rem 1.1rem 1.05rem; background: #0f2d54; border-radius: 16px; }
.nr-dates-box h3 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.5rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; color: #ffffff; }
.nr-dates-box h3 .cs-ico { width: 21px; height: 21px; color: #7dd3fc; }
.nr-dates-box ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.nr-dates-box li { font-size: 0.88rem; line-height: 1.55; color: #e0f2fe; }
.nr-dates-box li::marker { color: #7dd3fc; }

/* Credits */
.nr-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.nr-split-card { padding: 1.1rem 1.1rem 1.15rem; border-radius: 16px; border: 1.5px solid; }
.nr-split-full { background: #0f2d54; border-color: #0f2d54; }
.nr-split-limited { background: #ffffff; border-color: #7dd3fc; }
.nr-split-card h3 { margin: 0 0 0.6rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.1rem; }
.nr-split-full h3 { color: #ffffff; }
.nr-split-limited h3 { color: #0b1f3a; }
.nr-split-card ul { margin: 0; padding-left: 1.05rem; display: grid; gap: 0.4rem; }
.nr-split-card li { font-size: 0.88rem; line-height: 1.55; }
.nr-split-full li { color: #e0f2fe; }
.nr-split-full li::marker { color: #7dd3fc; }
.nr-split-limited li { color: #1e293b; }
.nr-split-limited li::marker { color: #0369a1; }
.nr-credit-notes { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.nr-credit-notes li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.8rem 0.9rem; background: #ffffff; border: 1px solid #bae6fd; border-radius: 14px; }
.nr-cn-ico { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: #0b1f3a; background: #e0f2fe; border-radius: 11px; }
.nr-cn-ico .cs-ico { width: 20px; height: 20px; }
.nr-credit-notes h3 { margin: 0 0 0.1rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 0.98rem; color: #0b1f3a; }
.nr-credit-notes p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: #334155; }

/* Leaving Canada */
.nr-leave { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.nr-leave-card { padding: 1rem 0.95rem 1.05rem; background: linear-gradient(175deg, #e0f2fe 0%, #ffffff 70%); border: 1px solid #bae6fd; border-radius: 16px; }
.nr-leave-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 0.55rem; color: #7dd3fc; background: #0b1f3a; border-radius: 12px; }
.nr-leave-ico .cs-ico { width: 21px; height: 21px; }
.nr-leave-card h3 { margin: 0 0 0.25rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0b1f3a; }
.nr-leave-card p { margin: 0; font-size: 0.84rem; line-height: 1.55; color: #334155; }

/* Penalties */
.nr-pen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.nr-pen li { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem 1rem; background: #fffbeb; border: 1px solid #f0cf7f; border-radius: 16px; }
.nr-pen li:last-child { background: #e0f2fe; border-color: #7dd3fc; }
.nr-pen-ico { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: #92400e; background: #fde68a; border-radius: 11px; }
.nr-pen li:last-child .nr-pen-ico { color: #075985; background: #bae6fd; }
.nr-pen-ico .cs-ico { width: 20px; height: 20px; }
.nr-pen h3 { margin: 0 0 0.15rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0b1f3a; }
.nr-pen p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #1e293b; }

/* Mistakes */
.nr-mistakes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.nr-mistake { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem 1.05rem; background: #ffffff; border: 1.5px dashed #e0b050; border-radius: 16px; }
.nr-mistake-num { flex: 0 0 30px; display: grid; place-items: center; width: 30px; height: 30px; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 0.95rem; font-weight: 700; color: #ffffff; background: #b45309; border-radius: 50%; }
.nr-mistake h3 { margin: 0 0 0.2rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0b1f3a; }
.nr-mistake p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #1e293b; }

/* Included, decides, sources */
.nr-incl .cs-tile, .nr-decides .cs-tile { color: #0b1f3a; background: linear-gradient(140deg, #f0f9ff, #bae6fd); border-color: #7dd3fc; transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.25s, color 0.25s; }
.nr-incl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1.25rem; }
.nr-incl li { display: flex; gap: 0.8rem; align-items: flex-start; }
.nr-incl h3 { margin: 0 0 0.15rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0b1f3a; }
.nr-incl p { margin: 0; font-size: 0.87rem; line-height: 1.55; color: #334155; }
.nr-decides { display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 1.2rem; padding: 1.05rem 1.2rem; background: #0f2d54; border-radius: 16px; }
.nr-decides .cs-tile { flex-shrink: 0; }
.nr-decides strong { display: block; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; color: #7dd3fc; margin-bottom: 0.2rem; }
.nr-decides p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #e0f2fe; }
.nr-sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.nr-source { display: flex; align-items: center; gap: 0.8rem; min-height: 62px; padding: 0.75rem 0.9rem; color: inherit; text-decoration: none; background: #ffffff; border: 1px solid #bae6fd; border-radius: 14px; box-shadow: 0 2px 0 #e0f2fe; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.nr-source:focus-visible { outline: 3px solid #0ea5e9; outline-offset: 2px; }
.nr-source-ico { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: #7dd3fc; background: #0b1f3a; border-radius: 11px; }
.nr-source-ico .cs-ico { width: 20px; height: 20px; }
.nr-source-text { flex: 1 1 auto; min-width: 0; }
.nr-source-text strong { display: block; font-size: 0.92rem; line-height: 1.3; color: #0b1f3a; }
.nr-source-text em { display: block; font-style: normal; font-size: 0.78rem; font-weight: 600; color: #475569; }
.nr-source-go { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #0b1f3a; background: #7dd3fc; border-radius: 50%; transition: transform 0.2s ease; }
.nr-source-go .cs-ico { width: 16px; height: 16px; }

/* ---------- Hover (mouse only) ---------- */
@media (hover: hover) and (pointer: fine) {
    .nr-btn-sky:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #0369a1, 0 16px 26px -14px rgba(125, 211, 252, 0.7); }
    .nr-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #7dd3fc; }
    .nr-pin:hover { transform: translateY(-3px); border-color: #0ea5e9; }
    .nr-pin[aria-pressed="true"]:hover { border-color: #0b1f3a; }
    .nr-send:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #0b1f3a, 0 14px 22px -12px rgba(11, 31, 58, 0.6); }
    .nr-incl li:hover .cs-tile { transform: rotate(-8deg) scale(1.1); color: #7dd3fc; background: #0b1f3a; border-color: transparent; }
    .nr-source:hover { border-color: #0ea5e9; background: #f0f9ff; transform: translateY(-3px); box-shadow: 0 2px 0 #e0f2fe, 0 16px 26px -16px rgba(11, 31, 58, 0.5); }
    .nr-source:hover .nr-source-go { transform: translate(2px, -2px); }
}
@media (prefers-reduced-motion: reduce) {
    .nr-btn, .nr-pin, .nr-send, .nr-incl .cs-tile, .nr-source, .nr-source-go { transition: none !important; }
    .nr-btn:hover, .nr-pin:hover, .nr-send:hover, .nr-incl li:hover .cs-tile, .nr-source:hover, .nr-source:hover .nr-source-go { transform: none !important; }
}

/* ============ Responsive ============ */
@media (max-width: 1200px) {
    .nr-leave { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nr-ties-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991px) {
    /* Stacked: the whole hero is navy, and the pins sit on a light panel. */
    .nr-hero { background: linear-gradient(160deg, #0b1f3a 0%, #0f2d54 100%) !important; }
    .nr-hero::before { display: none; }
    .nr-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .nr-hero-globe { padding: 1.1rem 1rem 1.2rem; }
    .nr-globe { width: 110px; height: 110px; }
}
@media (max-width: 767px) {
    .nr-ways, .nr-must, .nr-elect, .nr-split, .nr-credit-notes, .nr-pen, .nr-mistakes, .nr-incl, .nr-sources { grid-template-columns: minmax(0, 1fr); }
    .nr-table-wrap { border: 0; background: transparent; overflow: visible; }
    .nr-table, .nr-table thead, .nr-table tbody, .nr-table tr, .nr-table th, .nr-table td { display: block; }
    .nr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .nr-table tbody tr { margin-bottom: 0.75rem; background: #ffffff; border: 1px solid #bae6fd; border-radius: 14px; overflow: hidden; }
    .nr-table tbody tr:nth-child(even) { background: #ffffff; }
    .nr-table tbody th, .nr-table tbody td, .nr-table-2 tbody th { width: auto; border-top: 0; padding: 0.55rem 0.95rem; }
    .nr-table tbody th { background: #e0f2fe; padding-top: 0.75rem; }
    .nr-table tbody td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 0.1rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #475569; }
}
@media (max-width: 640px) {
    .nr-hero-actions .nr-btn { width: 100%; }
    .nr-leave { grid-template-columns: minmax(0, 1fr); }
    .nr-send { width: 100%; }
    .nr-timeline::before { left: 19px; }
    .nr-timeline-dot { flex: 0 0 40px; width: 40px; height: 40px; }
}
@media (max-width: 400px) {
    .nr-pins { grid-template-columns: minmax(0, 1fr); }
}
