/* RussianPassport.ca editorial refresh. Load after portal.css. */
@media screen {
  :root {
    --rhp-rule: #dfd8cf;
    --rhp-surface: #f8f4ed;
    --rhp-focus: #236398;
    --rhp-focus-dark: #9ed3ff;
    --rhp-radius: 12px;
    --rhp-shadow: 0 12px 35px rgba(11, 35, 65, .09);
  }
  html { scroll-padding-top: 100px; }
  body { background: #fffdfa; }
  h1, h2 { text-wrap: balance; }
  h2 { font-size: clamp(1.8rem, 3.6vw, 3.1rem); }
  h3 { line-height: 1.2; }
  :where(h1, h2, h3, .footer-contact a, .article-body a) { overflow-wrap: break-word; }
  :lang(ru) :is(h1, h2, h3) { letter-spacing: -.035em; }
  .eyebrow { margin-bottom: 12px; letter-spacing: .14em; line-height: 1.4; }
  :lang(ru) .eyebrow { letter-spacing: .10em; }
  :is(a, button, summary, input, select, textarea):focus-visible {
    outline: 2px solid var(--rhp-focus);
    outline-offset: 3px;
  }
  :is(.topbar, .mega-menu__intro, .section--navy, .cta-band, .site-footer, .source-panel, .aside-notice, .contact-card--primary, .service-summary)
    :is(a, button, summary):focus-visible { outline-color: var(--rhp-focus-dark); }
  :is(.article-body, .legal-prose, .prose, .faq-list) p a,
  :is(.article-body, .legal-prose, .prose) li a {
    color: var(--red-dark); text-decoration: underline; text-underline-offset: .18em;
  }

  .topbar { font-size: .74rem; }
  .topbar__inner { min-height: 34px; }
  .site-header { background: #fffdfa; border-color: var(--rhp-rule); backdrop-filter: none; }
  .site-header .brand { min-width: 0; }
  .site-header .brand span { margin-left: 0; }
  .header__inner { gap: clamp(14px, 2vw, 25px); }
  .primary-nav { gap: clamp(13px, 1.6vw, 22px); }
  .primary-nav > a, .nav-services > summary { line-height: 1.25; }
  .primary-nav > a::after { bottom: 22px; }
  .language-link { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .24em; }
  .language-link:hover, .language-link:focus-visible { text-decoration: underline; }
  .mega-menu__intro { border-radius: 8px; }
  .mega-menu__service { padding-right: 12px; }
  .mega-menu__service:hover, .mega-menu__service:focus-visible { transform: none; background: var(--rhp-surface); }
  .mega-menu__intro .mega-menu__tool:hover { color: var(--gold-soft); }
  .mega-menu__service > b[aria-hidden="true"] { display: none; }
  .mega-menu__service span { font-size: .94rem; }
  .mega-menu__service small { font-size: .72rem; line-height: 1.45; }
  .button { border-radius: 6px; letter-spacing: .01em; min-height: 48px; }
  .button--small { min-height: 44px; }
  .button:hover { transform: none; box-shadow: none; }
  .text-link:hover, .service-card__footer a:hover,
  .service-card h3 a:hover, .article-card h3 a:hover { text-decoration: underline; text-underline-offset: .18em; }

  .hero--home {
    padding: clamp(35px, 5.25vw, 76px) 0;
    background: linear-gradient(90deg, #f8f4ed, #f2ebe0);
    border-bottom: 1px solid var(--rhp-rule);
  }
  .hero--home .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5.25vw, 76px); }
  .hero--home .hero__content { min-width: 0; padding: 0; }
  .hero--home h1 {
    margin-bottom: clamp(16px, 2.3vw, 26px);
    font-size: clamp(2.4rem, 4.6vw, 4.45rem);
    line-height: 1.04;
  }
  .hero--home .hero__lead { max-width: 58ch; margin-bottom: 24px; font-size: clamp(1rem, 1.45vw, 1.15rem); line-height: 1.62; }
  .hero--home .hero__visual {
    position: relative; align-self: center;
    height: clamp(340px, 40vw, 530px); min-height: 0;
    isolation: isolate;
  }
  .hero--home .hero__visual > img {
    display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 53%;
    border-radius: 76px var(--rhp-radius) var(--rhp-radius) var(--rhp-radius);
    box-shadow: 0 20px 48px rgba(11, 35, 65, .15);
  }
  .hero--home .hero__visual::before { inset: 16px 16px auto auto; width: 56px; height: 56px; }
  .hero--home .hero__seal {
    left: 18px; bottom: 18px; max-width: calc(100% - 36px);
    gap: 8px; padding: 6px 16px 6px 8px;
    background: #fffdfa; border: 1px solid rgba(11, 35, 65, .12);
    border-radius: 999px; box-shadow: var(--rhp-shadow);
  }
  .hero--home .hero__seal img { width: 54px; height: 54px; flex: 0 0 54px; object-fit: contain; }
  .hero--home .hero__seal span { font-size: .62rem; line-height: 1.35; overflow-wrap: anywhere; }
  .hero--home .hero__seal b { font-size: 1rem; }
  .trust-row { margin-top: 28px; padding-top: 16px; gap: clamp(15px, 3.3vw, 36px); flex-wrap: wrap; border-color: var(--rhp-rule); }
  .notice-strip { background: #f4e8d4; border-bottom: 1px solid #e8d9c0; }
  .notice-strip .shell { min-height: 0; padding-block: 14px; align-items: baseline; font-size: .83rem; }
  .section { padding-block: clamp(42px, 6.3vw, 90px); }
  .section-heading { margin-bottom: clamp(24px, 3.8vw, 44px); }
  .section-heading h2 { text-wrap: pretty; }
  .section-heading p { max-width: 53ch; }
  .page-hero {
    padding-block: clamp(30px, 5.4vw, 72px);
    background: linear-gradient(105deg, #f8f4ed, #efe6d8);
    border-color: var(--rhp-rule);
  }
  .page-hero > .shell { margin-inline: auto; max-width: none; }
  .page-hero h1 { max-width: 23ch; margin-bottom: 17px; font-size: clamp(2.15rem, 4.45vw, 4.3rem); line-height: 1.05; }
  .page-hero p { max-width: 68ch; font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.62; }
  .breadcrumbs { margin-bottom: clamp(16px, 2.9vw, 32px); color: #545d68; }
  .breadcrumbs a:hover { text-decoration: underline; text-underline-offset: .2em; }

  /* City imagery provides local context, never a promise of a local office. */
  .page-hero.city-hero { padding-block: clamp(26px, 4.7vw, 64px); }
  .city-hero .city-hero__grid {
    display: grid; align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(24px, 4.5vw, 64px); max-width: none; margin-inline: auto;
  }
  .city-hero__copy, .city-hero__visual { min-width: 0; }
  .city-hero .city-hero__copy h1 { max-width: 22ch; margin-bottom: 14px; font-size: clamp(2.05rem, 3.9vw, 3.9rem); text-wrap: pretty; }
  .city-hero .city-hero__copy p + p { margin-top: .7rem; }
  .city-hero__copy .button-row, .city-hero__copy p + .button { margin-top: 20px; }
  .city-hero__copy .breadcrumbs { margin-bottom: clamp(14px, 2.4vw, 25px); }
  .city-hero__visual { margin: 0; }
  .city-hero__visual img {
    width: 100%; height: auto; display: block; aspect-ratio: 4 / 3;
    object-fit: cover; object-position: var(--city-image-position, center);
    border-radius: var(--rhp-radius); background: #e4dfd6;
    box-shadow: var(--rhp-shadow);
  }
  .city-hero__visual figcaption {
    margin-top: 8px; color: #505d6e; font-size: .75rem; line-height: 1.45; overflow-wrap: anywhere;
  }
  .city-hero__visual figcaption a { text-decoration: underline; text-underline-offset: .14em; }
  .city-hero + .section { padding-top: clamp(28px, 4.5vw, 62px); }

  .service-card, .article-card, .values-grid article {
    min-width: 0; padding: clamp(19px, 2.3vw, 29px);
    border: 1px solid var(--rhp-rule); border-radius: var(--rhp-radius);
    box-shadow: 0 2px 10px rgba(11, 35, 65, .035);
  }
  .service-card, .article-card { min-height: 0; }
  .service-card:hover, .service-card:focus-within, .article-card:focus-within {
    transform: none; border-color: #b3956b; box-shadow: var(--rhp-shadow);
  }
  .service-card::after { content: none; }
  .service-card__number {
    align-self: flex-start; margin-bottom: 18px; padding: 3px 9px;
    border-radius: 4px; background: #f5eee1; color: #735729;
  }
  .service-card h3 { padding-right: 0; margin-bottom: 11px; }
  .service-card p, .article-card p { font-size: .94rem; line-height: 1.55; margin-bottom: 20px; }
  .service-card__footer { flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding-top: 13px; }
  .service-card__footer > span { flex: 1 1 120px; min-width: 0; overflow-wrap: break-word; }
  .service-card__footer a { white-space: nowrap; }
  .service-card__footer b[aria-hidden="true"] { display: none; }
  .article-card__meta { flex-wrap: wrap; gap: 4px 12px; }
  .article-card h3 { margin: 16px 0 10px; }
  .article-card > b { display: none; }
  .article-layout { padding-block: clamp(34px, 6vw, 76px); }
  .article-body :is(p, li) { line-height: 1.73; }
  .article-body :is(p, ul, ol) { max-width: 74ch; }
  .faq-list summary:hover { color: var(--red-dark); }
  .faq-list summary:focus-visible { outline-offset: -1px; }
  .service-main > section { padding-bottom: clamp(28px, 4.5vw, 58px); }
  .service-main > section + section { padding-top: clamp(28px, 4.5vw, 58px); }
  .values-grid h3 { margin-top: 18px; }
  .contact-card { min-width: 0; padding: clamp(20px, 3vw, 34px); border-radius: var(--rhp-radius); }
  .contact-card a { overflow-wrap: anywhere; }
  .contact-card > span { margin-bottom: 14px; }

  .intake-layout, .tool-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: clamp(28px, 4vw, 52px);
  }
  .intake-form, .tool-card, .checklist-tool {
    min-width: 0; padding: clamp(18px, 3.4vw, 42px);
    border-color: var(--rhp-rule); border-radius: var(--rhp-radius); box-shadow: var(--rhp-shadow);
  }
  .form-section { padding-bottom: clamp(24px, 3.7vw, 44px); }
  .form-section + .form-section { padding-top: clamp(24px, 3.7vw, 44px); }
  .field-grid, .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid > *, fieldset { min-width: 0; }
  .field-grid label, .intake-form legend { font-size: .86rem; }
  :is(.intake-form, .tool-card, .checklist-tool) :is(select, textarea, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])) { font-size: 1rem; }
  .intake-form > .privacy-prompt { display: block; margin: 0 0 24px; background: #f8f1e4; border: 1px solid #ecdfc9; border-left: 3px solid #ae8545; line-height: 1.55; }
  .intake-aside > div:first-child { background: #f8f4ed; border-color: var(--rhp-rule); }
  .tool-step.is-active { animation: none; }
  .tool-progress { margin-bottom: 30px; }

  .cta-band { padding-block: clamp(34px, 4.6vw, 55px); }
  .site-footer { padding-top: clamp(38px, 6vw, 68px); }
  .footer-grid { gap: clamp(20px, 3vw, 44px); }
  .footer-grid h3 { margin-bottom: 13px; }
  .footer-grid li { margin: 7px 0; }
  .footer-grid a:hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: .2em; }
  .footer-bottom { margin-top: clamp(24px, 4vw, 48px); color: #b0bccd; }
  .footer-contact small { color: #aab7c8; }
}

@media screen and (min-width: 901px) {
  /* Align the wide menu to the viewport instead of an unpredictable translated label. */
  .site-header .nav-services { position: static; }
  .site-header .service-menu {
    top: calc(100% + 1px); left: 50%; transform: translateX(-50%);
    width: min(920px, calc(100vw - 40px));
    max-height: min(670px, calc(100dvh - 94px)); overflow: auto;
  }
}

@media screen and (max-width: 900px) {
  .primary-nav { overscroll-behavior: contain; }
  .hero--home .hero__grid, .intake-layout, .tool-layout { grid-template-columns: minmax(0, 1fr); }
  .hero--home .hero__visual { height: clamp(255px, 51vw, 430px); }
  .hero--home .hero__visual > img { border-top-left-radius: 52px; }
  .hero--home h1 { max-width: 18ch; }
  .city-hero .city-hero__grid { gap: 23px; }
  .city-hero .city-hero__copy h1 { font-size: clamp(1.95rem, 4.5vw, 3rem); }
}

@media screen and (max-width: 680px) {
  .city-hero .city-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .city-hero__visual img { height: clamp(150px, 45vw, 254px); aspect-ratio: auto; }
  .city-hero .city-hero__copy h1 { max-width: 25ch; }
}

@media screen and (max-width: 620px) {
  .topbar { font-size: .68rem; }
  .header__inner { gap: 9px; }
  .nav-toggle { width: 44px; height: 44px; }
  .hero--home { padding-top: 32px; padding-bottom: 26px; }
  .hero--home h1, .page-hero h1 { font-size: clamp(2rem, 8.2vw, 3.1rem); }
  .hero--home .hero__grid { gap: 22px; }
  .hero--home .hero__visual { height: clamp(205px, 54vw, 315px); }
  .hero--home .hero__visual::before { width: 41px; height: 41px; inset: 12px 12px auto auto; }
  .hero--home .hero__seal { left: 10px; bottom: 10px; }
  .hero--home .hero__seal img { height: 43px; width: 43px; flex-basis: 43px; }
  .hero--home .button-row .button, .city-hero .button-row .button { flex: 1 1 10rem; }
  .trust-row { justify-content: flex-start; margin-top: 21px; }
  .notice-strip .shell { align-items: flex-start; gap: 3px; }
  .section-heading { gap: 12px; }
  .field-grid, .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band__inner { gap: 20px; }
}
@media screen and (max-width: 380px) {
  :lang(ru) .page-hero h1, :lang(ru) .hero--home h1 {
    font-size: clamp(1.8rem, 8.5vw, 2.2rem); overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :is(.button, .service-card, .primary-nav, .primary-nav > a::after, .nav-toggle span, .nav-services > summary::after, .tool-step.is-active) {
    transition: none; animation: none;
  }
}
