/* Newton storefront design system
 * Keeps every public page on the same visual rail and palette as the homepage.
 */
:root {
    --nb-site-navy: #071d55;
    --nb-site-navy-deep: #041238;
    --nb-site-blue: #0c327e;
    --nb-site-orange: #ff6900;
    --nb-site-ink: #102150;
    --nb-site-muted: #65718d;
    --nb-site-line: #e2e7f1;
    --nb-site-soft: #f6f8fc;
    --nb-site-white: #fff;
    --nb-site-rail: 1360px;
    --nb-site-gutter: 32px;

    /* Modern page aliases used by About, Contact, Blog, FAQ and policies. */
    --nb-modern-ink: var(--nb-site-ink);
    --nb-modern-muted: var(--nb-site-muted);
    --nb-modern-line: var(--nb-site-line);
    --nb-modern-soft: var(--nb-site-soft);
    --nb-modern-warm: #fff4eb;
    --nb-modern-blue: var(--nb-site-blue);
    --nb-modern-green: var(--nb-site-blue);
    --nb-modern-accent: var(--nb-site-orange);

    /* Commerce aliases used by the shop and product pages. */
    --nb-ink: var(--nb-site-ink);
    --nb-muted: var(--nb-site-muted);
    --nb-line: var(--nb-site-line);
    --nb-paper: var(--nb-site-soft);
    --nb-green: var(--nb-site-blue);
    --nb-orange: var(--nb-site-orange);
}

html { color: var(--nb-site-ink); }
body { background: var(--nb-site-white); }

#content.site-content,
.site-content,
.bg-punch-light {
    color: var(--nb-site-ink);
}

.bg-punch-light { background-color: var(--nb-site-soft) !important; }
.entry-title,
.card-title,
.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce h4 { color: var(--nb-site-ink); }
.h-primary,
.text-primary,
.text-info { color: var(--nb-site-blue) !important; }
.border,
.border-bottom,
.card,
.shop_table th,
.shop_table td { border-color: var(--nb-site-line) !important; }
.card-header,
.shop_table thead { background-color: var(--nb-site-soft); }

/* The header, footer and page content all resolve to the same shared content width. */
.container,
.nb-wrap,
.nb-modern-container,
.nbx-shop-shell,
.nb-detail-header__inner,
.nb-detail-shell,
.nb-taxonomy-wrap,
.nb-account__wrap,
.nb-tracking__wrap,
.nb-reviews-wrap,
.nb-architecture__wrap {
    width: min(var(--nb-site-rail), calc(100% - (var(--nb-site-gutter) * 2)));
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

.nb-detail-shell {
    padding-top: 38px;
    padding-bottom: 0;
}

.nb-commerce,
.nb-modern-page,
.nb-blog-page,
.nb-taxonomy-page,
.nb-account,
.nb-tracking,
.nb-reviews-page,
.nb-architecture,
.modern-page-skin,
.plaint_tt,
.nb-auth-page {
    color: var(--nb-site-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nb-account {
    --nb-account-ink: var(--nb-site-ink);
    --nb-account-muted: var(--nb-site-muted);
    --nb-account-line: var(--nb-site-line);
    --nb-account-soft: var(--nb-site-soft);
    --nb-account-green: var(--nb-site-blue);
    --nb-account-rust: var(--nb-site-orange);
    background: var(--nb-site-white);
}

.nb-tracking {
    --nb-track-ink: var(--nb-site-ink);
    --nb-track-muted: var(--nb-site-muted);
    --nb-track-line: var(--nb-site-line);
    --nb-track-soft: var(--nb-site-soft);
    --nb-track-green: var(--nb-site-blue);
    --nb-track-rust: var(--nb-site-orange);
    background: var(--nb-site-white);
}

.nb-commerce a:hover,
.nb-modern-page a:hover,
.nb-blog-page a:hover,
.modern-page-skin a:hover { color: var(--nb-site-orange); }

/* Section and page-heading treatment. */
.nb-page-hero,
.nb-about-hero,
.nb-about-section--soft,
.nb-contact-hero,
.nb-blog-page__hero,
.nb-taxonomy-hero,
.nb-account__hero,
.nb-tracking__hero,
.nb-detail-header,
.page-header,
.nb-section--paper,
.nb-section--formats,
.nb-architecture__section--soft {
    border-color: var(--nb-site-line) !important;
    background: var(--nb-site-soft);
}

/* Editorial pages may keep narrower reading columns, but their major grids
 * start and finish on the same rail as the global navigation and footer. */
.nb-about-hero__grid,
.nb-about-story__grid,
.nb-about-cta {
    max-width: none;
}

.nb-page-title,
.nb-taxonomy-hero h1,
.nb-account__hero h1,
.nb-account-page__title,
.nb-tracking__hero h1,
.nb-reviews-title,
.page-title,
.plaint_tt h1,
.nb-auth-card header h1,
.nb-auth-card header h2,
.nb-auth-status h1 {
    color: var(--nb-site-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
}

.nb-page-kicker,
.nb-taxonomy-eyebrow,
.nb-account__eyebrow,
.nb-account-page__eyebrow,
.nb-tracking__eyebrow,
.nb-review-kicker,
.nb-eyebrow,
.nb-auth-eyebrow {
    color: var(--nb-site-orange);
}

.nb-page-copy,
.nb-taxonomy-hero p:last-child,
.nb-account__hero-email,
.nb-account-page__intro,
.nb-tracking__hero p:last-child,
.nb-reviews-copy,
.nb-lede,
.nb-auth-subtitle,
.nb-auth-status-copy,
.plaint_tt p,
.plaint_tt li {
    color: var(--nb-site-muted);
}

/* Reusable cards, tables and controls. */
.nb-taxonomy-group,
.nb-account__sidebar,
.nb-account-panel,
.nb-account-action-card,
.nb-account-table-wrap,
.nb-address-card,
.nb-account-empty,
.nb-wishlist-item,
.nb-order-summary,
.nb-tracking__status-card,
.nb-tracking-card,
.nb-tracking-search__card,
.nb-reviews-hero,
.nb-review-form-card,
.nb-reviews-list,
.nb-auth-card,
.plaint_tt section {
    border-color: var(--nb-site-line);
    background: var(--nb-site-white);
    box-shadow: 0 12px 34px rgba(7, 29, 85, .055);
}

.nb-taxonomy-group__head,
.nb-account-panel__head,
.nb-account-table th,
.nb-account-modal .modal-header,
.nb-review-book,
.nb-auth-note,
.nb-password-requirements,
.plaint_tt section {
    border-color: var(--nb-site-line);
    background: var(--nb-site-soft);
}

.modern-page-skin input,
.modern-page-skin select,
.modern-page-skin textarea,
.nb-modern-page input,
.nb-modern-page select,
.nb-modern-page textarea,
.nb-blog-page input,
.nb-blog-page select,
.nb-blog-page textarea,
.nb-auth-card input,
.nb-auth-card select,
.nb-auth-card textarea {
    border-color: var(--nb-site-line);
    color: var(--nb-site-ink);
}

.modern-page-skin input:focus,
.modern-page-skin select:focus,
.modern-page-skin textarea:focus,
.nb-modern-page input:focus,
.nb-modern-page select:focus,
.nb-modern-page textarea:focus,
.nb-blog-page input:focus,
.nb-blog-page select:focus,
.nb-blog-page textarea:focus,
.nb-auth-card input:focus,
.nb-auth-card select:focus,
.nb-auth-card textarea:focus {
    border-color: var(--nb-site-blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(12, 50, 126, .12);
}

/* Shared actions and active states. */
.nb-button,
.nb-account-button,
.nb-tracking__button,
.nb-review-button,
.btn-primary,
.btn-dark {
    border-color: var(--nb-site-navy);
    background: var(--nb-site-navy);
    color: var(--nb-site-white) !important;
}

.nb-button:hover,
.nb-account-button:hover,
.nb-tracking__button:hover,
.nb-review-button:hover,
.btn-primary:hover,
.btn-dark:hover {
    border-color: var(--nb-site-blue);
    background: var(--nb-site-blue);
    color: var(--nb-site-white) !important;
}

.nb-architecture__button,
.btn-warning {
    border-color: var(--nb-site-orange);
    background: var(--nb-site-orange);
    color: var(--nb-site-white) !important;
}

.nb-account__nav li.is-active a,
.page-item.active .page-link {
    border-color: var(--nb-site-navy);
    background: var(--nb-site-navy);
    color: var(--nb-site-white);
}

.nb-reviews-page { background: var(--nb-site-soft); }
.nb-reviews-back { color: var(--nb-site-blue); }
.nb-reviews-hero { border-top-color: var(--nb-site-navy); }
.nb-review-stars input:checked ~ label,
.nb-rating-stars,
.nb-rating-fill { color: var(--nb-site-orange); }
.nb-rating-fill { background: var(--nb-site-orange); }
.nb-verified-badge,
.nb-review-alert { color: var(--nb-site-blue); background: #edf3ff; }
.nb-review-alert { border-left-color: var(--nb-site-blue); }

.plaint_tt {
    width: min(var(--nb-site-rail), calc(100% - (var(--nb-site-gutter) * 2)));
    max-width: none;
    padding: 70px 0 90px;
}
.plaint_tt h2,
.plaint_tt a { color: var(--nb-site-blue); }
.plaint_tt .highlight { color: var(--nb-site-orange); }

@media (max-width: 600px) {
    :root { --nb-site-gutter: 14px; }

    .container,
    .nb-wrap,
    .nb-modern-container,
    .nbx-shop-shell,
    .nb-detail-header__inner,
    .nb-detail-shell,
    .nb-taxonomy-wrap,
    .nb-account__wrap,
    .nb-tracking__wrap,
    .nb-reviews-wrap,
    .nb-architecture__wrap {
        width: calc(100% - 28px);
        padding-right: 0;
        padding-left: 0;
    }

    .plaint_tt {
        width: calc(100% - 28px);
        padding: 44px 0 60px;
    }
}

/* Page and header styles include local and inline widths. Keep outer wrappers
   on one shared rail, without changing inner grids or full-width backgrounds. */
.container,
.nb-wrap,
.nb-rwrap,
.nb-modern-container,
.nbx-shop-shell,
.nb-detail-header__inner,
.nb-detail-shell,
.nb-taxonomy-wrap,
.nb-account__wrap,
.nb-tracking__wrap,
.nb-reviews-wrap,
.nb-architecture__wrap,
.plaint_tt,
.nb-nav .nb-nav__row,
.nb-nav .nb-nav__utility-inner,
body:has(.nb-reference-home) .nb-nav .nb-nav__row,
body:has(.nb-reference-home) .nb-nav .nb-nav__utility-inner,
body:has(.nb-reference-home) .nb-footer-modern .container {
    box-sizing: border-box;
    width: min(var(--nb-site-rail), calc(100% - var(--nb-site-gutter) * 2)) !important;
    max-width: none !important;
    margin-inline: auto;
    padding-inline: 0 !important;
}
/* Footer ends the page; keep its brand artwork identical to the header. */
body { margin-bottom: 0; padding-bottom: 0; }
.site-footer_v2_newton { margin-bottom: 0; padding-bottom: 0; background: var(--nb-site-navy); }
.nb-footer-modern .nb-footer-modern__brand > a {
    padding: 10px 12px;
    border-radius: 5px;
    background: #fff;
}
.nb-footer-modern .nb-footer-modern__brand .nb-home-v2-footer__logo {
    height: 48px;
    width: auto;
    filter: none;
}
.nb-footer-modern__bottom { opacity: 1 !important; transform: none !important; }
.nb-footer-modern .nb-footer-modern__brand > a { padding: 0; background: transparent; border-radius: 0; }
/* The footer asset keeps the mark white and preserves its orange accent. */
.nb-footer-modern .nb-footer-modern__brand .nb-home-v2-footer__logo { filter: none; }
/* A calmer footer with a distinct signup area and readable navigation. */
.nb-footer-modern { background: #071a43 !important; border-top: 1px solid #ffffff14 !important; }
body:has(.nb-reference-home) .nb-footer-modern .nb-footer-modern__main {
    grid-template-columns: 1.6fr repeat(3, 1fr);
    padding: 44px 0 36px;
    gap: 64px;
}
.nb-footer-modern .nb-footer-modern__brand p { max-width: 285px; font-size: 13px; line-height: 1.8; color: #aebcda !important; }
.nb-footer-modern .nb-footer-modern__main h4 { margin-bottom: 18px; font-size: 12px; letter-spacing: .09em; color: #fff !important; }
.nb-footer-modern .nb-footer-modern__main li + li { margin-top: 12px; }
.nb-footer-modern .nb-footer-modern__main li a { font-size: 14px; color: #c8d3e9 !important; }
.nb-footer-modern .nb-footer-modern__main li a:hover { color: #ff8a25 !important; }
.nb-footer-modern .nb-footer-modern__social { display: flex; gap: 10px; margin-top: 22px; }
.nb-footer-modern .nb-footer-modern__social a { width: 34px; height: 34px; border: 1px solid #ffffff20; background: #ffffff08; border-radius: 8px; }
.nb-footer-modern .nb-footer-modern__bottom { border-top: 1px solid #ffffff20; padding: 20px 0; }
.nb-footer-modern .nb-footer-modern__bottom p { margin: 0; color: #aebcda !important; font-size: 12px; }
.nb-footer-modern .nb-footer-modern__payment { max-width: 175px; height: auto; }
.nb-rnewsletter { background: #0b2353; }
.nb-rnewsletter__inner { padding-block: 32px; }
.nb-rnewsletter__intro > i { font-size: 42px; }
#nb-home-newsletter input, .nb-footer-modern__form input { color: #102150 !important; caret-color: #102150; }
#nb-home-newsletter input::placeholder, .nb-footer-modern__form input::placeholder { color: #687895 !important; opacity: 1 !important; }
#nb-home-newsletter input:focus-visible { outline: 2px solid #ff8a25; outline-offset: 3px; }
#nb-home-newsletter .nb-footer-modern__form { gap: 8px; }
#nb-home-newsletter input, #nb-home-newsletter button { height: 50px; }
@media (max-width: 760px) {
    body:has(.nb-reference-home) .nb-footer-modern .nb-footer-modern__main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; padding-block: 32px; }
    .nb-footer-modern .nb-footer-modern__main li a { font-size: 12px; }
    .nb-footer-modern .nb-footer-modern__main h4 { font-size: 10px; }
    .nb-rnewsletter__intro { gap: 16px; }
}

/* Footer polish and explicit field hints, including the relocated home signup. */
.nb-footer-modern .nb-footer-modern__main { padding-block: 52px 40px; }
.nb-footer-modern .nb-footer-modern__main h4::after { content: ''; display: block; width: 24px; height: 2px; margin-top: 12px; background: #ff8a25; }
.nb-footer-modern .nb-footer-modern__social a:hover { background: #ffffff14 !important; border-color: #ff8a25; }
.nb-footer-modern a:focus-visible { outline: 2px solid #ff8a25; outline-offset: 5px; }
.nb-rnewsletter .nb-rnewsletter__inner { padding-block: 38px; gap: 40px; }
.nb-rnewsletter .nb-rnewsletter__intro > i { display: grid; place-items: center; flex: 0 0 72px; height: 72px; border: 1px solid #ffffff20; border-radius: 16px; background: #ffffff08; font-size: 36px; }
#nb-home-newsletter { min-width: 0; }
#nb-home-newsletter .nb-footer-modern__form { gap: 10px; }
#nb-home-newsletter .nb-footer-modern__form input,
.nb-footer-modern .nb-footer-modern__form input { background: #fff; color: #102150 !important; -webkit-text-fill-color: #102150; }
#nb-home-newsletter .nb-footer-modern__form input::placeholder,
.nb-footer-modern .nb-footer-modern__form input::placeholder,
.nb-quote-card .form-control::placeholder { color: #66728a !important; -webkit-text-fill-color: #66728a; opacity: 1 !important; }
#nb-home-newsletter .nb-footer-modern__form button { font-size: 13px; font-weight: 700; transition: background .15s ease; }
#nb-home-newsletter .nb-footer-modern__form button:hover { background: #df5800; }
#nb-home-newsletter::after { text-align: left; color: #bccbe5; font-size: 11px; margin-top: 12px; }
.nb-quote-help { display: block; margin-top: 7px; color: #66728a; font-size: 12px; line-height: 1.5; }
.nb-quote-card .form-control:focus-visible { outline: 2px solid #071d55; outline-offset: 2px; }
@media (max-width: 760px) {
    .nb-rnewsletter .nb-rnewsletter__inner { gap: 22px; padding-block: 28px; }
    .nb-rnewsletter .nb-rnewsletter__intro > i { flex-basis: 52px; height: 52px; border-radius: 12px; font-size: 28px; }
    .nb-footer-modern .nb-footer-modern__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
    #nb-home-newsletter .nb-footer-modern__form { flex-direction: column; }
    #nb-home-newsletter .nb-footer-modern__form button { flex: auto; width: 100%; min-height: 48px; }
    .nb-footer-modern .nb-footer-modern__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* The shared footer must keep the same contrast on every storefront page. */
.site-footer_v2_newton .nb-footer-modern { --nb-footer-ink: #fff; --nb-footer-text: #e5ecfa; --nb-footer-muted: #b9c7e0; --nb-footer-line: #ffffff26; }
.site-footer_v2_newton .nb-footer-modern h5 { color: #fff !important; }
.site-footer_v2_newton .nb-footer-modern__newsletter p { color: #b9c7e0 !important; }
.site-footer_v2_newton .nb-footer-modern__social a,
.site-footer_v2_newton .nb-footer-modern__social a i { color: #e5ecfa !important; }
.site-footer_v2_newton .nb-footer-modern__form button { background: #ff6900; color: #fff; }
.nb-footer-modern .nb-footer-modern__main { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .75fr)) minmax(0, 1.2fr); gap: 32px; }
.nb-footer-modern__main > * { min-width: 0; }
.nb-reader-actions { gap: 9px; right: 16px; bottom: 16px; }
@media (max-width: 1100px) {
 .nb-footer-modern .nb-footer-modern__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .nb-footer-modern .nb-footer-modern__brand { grid-column: 1 / -1; }
 .nb-footer-modern .nb-footer-modern__newsletter { grid-column: 1 / -1; max-width: 480px; }
}
@media (max-width: 560px) {
 .nb-footer-modern .nb-footer-modern__main { gap: 28px 14px; }
 .nb-footer-modern .nb-footer-modern__bottom { flex-wrap: wrap; padding-right: 48px; }
 .nb-reader-actions { right: 10px; bottom: 10px; }
 .nb-reader-chat__panel { max-width: calc(100vw - 20px); right: 10px; }
}

.nb-nav .nb-nav__search-inline { position: relative; overflow: visible; }
.nb-nav__search-inline input { border-radius: 6px 0 0 6px; }
.nb-nav__search-inline > button { border-radius: 0 6px 6px 0; }
.nb-live-search[hidden] { display: none; }
.nb-live-search { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; max-height: min(540px, 70vh); overflow-y: auto; border: 1px solid #dce4ef; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px #071d5526; padding: 12px; }
.nb-live-search p { margin: 4px 8px 12px; font-size: 12px; color: #63718a; }
.nb-live-search__item { display: flex; gap: 14px; padding: 12px; border-radius: 8px; color: #102150; text-decoration: none; }
.nb-live-search__item:hover, .nb-live-search__item:focus-visible { background: #f1f5fc; }
.nb-live-search__item img { width: 48px; height: 68px; object-fit: contain; flex-shrink: 0; }
.nb-live-search__item span { display: grid; gap: 5px; }
.nb-live-search__item strong { font-size: 14px; line-height: 1.4; }
.nb-live-search__item small { font-size: 12px; color: #63718a; }
.nb-live-search__item b { font-size: 13px; }
.nb-live-search__all { display: block; padding: 14px 12px; border-top: 1px solid #e0e7f1; color: #b84c00; font-size: 13px; font-weight: 700; }
.nb-nav .nb-nav__icon-link, .nb-nav .nb-nav__account-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; border-radius: 12px; }
.nb-nav__icons svg { width: 22px; height: 22px; flex-shrink: 0; }
.nb-nav .nb-nav__icon-link:hover, .nb-nav .nb-nav__account-toggle:hover { background: #f3f6fb; }
.nb-nav .nb-nav__cart-count { top: 0; right: 0; width: 17px; height: 17px; border: 2px solid #fff; font-size: 9px; }
.nb-nav .nb-nav__links a[aria-current="page"] { background: transparent !important; color: #d95700 !important; font-weight: 800; }
@media (min-width: 992px) { .nb-nav .nb-nav__mobile-search { display: none; } }

/* A unified search surface with quiet borders and clear focus feedback. */
.nb-nav .nb-nav__search-inline {
 height: 48px; padding: 4px; gap: 4px; border: 1px solid transparent;
 border-radius: 4px; background: #f3f5f9;
 transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.nb-nav .nb-nav__search-inline:hover { background: #eef1f6; }
.nb-nav .nb-nav__search-inline:focus-within {
 background: #fff; border-color: #bbc9df; box-shadow: 0 0 0 3px #071d5508;
}
.nb-nav .nb-nav__search-inline input {
 height: 100%; padding: 0 12px; border: 0; border-radius: 4px;
 background: transparent; font-size: 14px; color: #102150; box-shadow: none;
}
.nb-nav .nb-nav__search-inline input::placeholder { color: #69778e; opacity: 1; }
.nb-nav .nb-nav__search-inline > button {
 display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px;
 padding: 0; border-radius: 4px; background: transparent; color: #102150; font-size: 18px;
}
.nb-nav .nb-nav__search-inline > button:hover { background: #e5ebf5; }
.nb-nav .nb-nav__search-inline > button:focus-visible { outline: 2px solid #d95700; outline-offset: 1px; }
.nb-nav .nb-live-search {
 top: calc(100% + 12px); padding: 10px; border: 1px solid #e8edf4;
 border-radius: 4px; box-shadow: 0 18px 48px -12px #10215030, 0 3px 8px #10215006;
 scrollbar-width: thin; scrollbar-color: #d3dce9 transparent;
}
.nb-nav .nb-live-search p { margin: 8px 12px 12px; color: #6b7890; font-size: 12px; font-weight: 600; }
.nb-nav .nb-live-search__item {
 align-items: center; gap: 16px; padding: 12px; border-radius: 4px;
 transition: background .15s ease; text-decoration: none;
}
.nb-nav .nb-live-search__item:hover { background: #f5f7fb; color: #102150; }
.nb-nav .nb-live-search__item:focus-visible { outline: 2px solid #bbc9df; outline-offset: -2px; }
.nb-nav .nb-live-search__item img { width: 44px; height: 64px; border-radius: 3px; }
.nb-nav .nb-live-search__item span { min-width: 0; gap: 4px; }
.nb-nav .nb-live-search__item strong { font-weight: 700; letter-spacing: -.015em; }
.nb-nav .nb-live-search__item b { margin-top: 2px; color: #102150; font-weight: 700; }
.nb-nav .nb-live-search__all {
 margin-top: 8px; padding: 13px 16px; border: 0; border-radius: 4px;
 background: #fff3e9; color: #a84300; text-align: center;
}
.nb-nav .nb-live-search__all:hover { background: #ffe9d8; }
.nb-nav .nb-live-search__all:focus-visible { outline: 2px solid #d95700; outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
 .nb-nav .nb-nav__search-inline, .nb-nav .nb-live-search__item { transition: none; }
}

.nb-reader-chat__message--assistant { white-space: normal; overflow-wrap: anywhere; line-height: 1.65; }
.nb-reader-chat__message p { margin: 0 0 10px; }
.nb-reader-chat__message p:last-child { margin-bottom: 0; }
.nb-reader-chat__message ul, .nb-reader-chat__message ol { padding-left: 21px; margin: 8px 0 12px; }
.nb-reader-chat__message li { margin: 5px 0; }
.nb-reader-chat__message h3 { font-size: 14px; line-height: 1.4; margin: 12px 0 7px; color: inherit; }
.nb-reader-chat__message a { color: #174b95; text-decoration: underline; }
.nb-reader-chat__message code { color: inherit; background: #10215009; border-radius: 4px; padding: 1px 4px; }
.nb-chat-dots { display: inline-flex; align-items: center; gap: 5px; padding: 8px 3px; }
.nb-chat-dots span { width: 6px; height: 6px; border-radius: 50%; background: #7b8ba7; animation: nb-chat-typing 1.2s ease-in-out infinite; }
.nb-chat-dots span:nth-child(2) { animation-delay: .15s; }
.nb-chat-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes nb-chat-typing { 0%,60%,100% { opacity: .4; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.nb-reader-chat__form button:disabled { opacity: .45; cursor: wait; }
@media(prefers-reduced-motion:reduce) { .nb-chat-dots span { animation: none; } }

/* Keep the commerce drawers compact while preserving their tap targets. */
#sidebarContent1.cart_sidebar_ .nb-cart-drawer-item { padding: 16px 20px !important; }
#sidebarContent1.cart_sidebar_ .nb-cart-drawer-item__image { width: 60px !important; height: 90px !important; object-fit: contain; }
#sidebarContent1.cart_sidebar_ .nb-cart-drawer-item .media-body { margin-left: 14px !important; }
#sidebarContent1.cart_sidebar_ .nb-cart-drawer-item__title { font-size: 14px; line-height: 1.3; }
#sidebarContent1.cart_sidebar_ .nb-cart-drawer-item__author { font-size: 12px; }
#sidebarContent1.cart_sidebar_ .nb-cart-drawer-qty { margin-top: 8px; }
#sidebarContent1.cart_sidebar_ .nb-cart-drawer-qty__button,
#sidebarContent1.cart_sidebar_ .nb-cart-drawer-qty__input { width: 34px; height: 34px; font-size: 12px; }
#sidebarContent1.cart_sidebar_ .nb-cart-drawer-button { min-height: 48px; padding: 12px 16px !important; font-size: 13px; }

/* The saved-books drawer enters from the right like the cart drawer. */
@keyframes nb-wishlist-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
#nb-wishlist-drawer[open] { animation: nb-wishlist-drawer-in .24s ease-out both; }
@media (prefers-reduced-motion: reduce) { #nb-wishlist-drawer[open] { animation: none; } }

@media (max-width: 991.98px) {
  .nb-nav__row { gap: 8px !important; }
  .nb-nav__brand { margin-right: 0 !important; }
  .nb-nav__brand img { width: 34px !important; height: 34px !important; object-fit: contain; }
  .nb-nav__account, .nb-nav__account-login { display: none !important; }
  .nb-nav__right { gap: 2px !important; }
  .nb-nav__icons { gap: 0 !important; }
  .nb-nav .nb-nav__icon-link, .nb-nav .nb-nav__account-toggle { min-width: 38px; min-height: 38px; padding: 7px; }
  .nb-nav__icons svg { width: 18px; height: 18px; }
  .nb-nav__mobile-search i { font-size: 20px; }
}
@media (max-width: 767.98px) {
  #sidebarContent1.cart_sidebar_, #nb-wishlist-drawer { width: 100vw !important; max-width: 100vw !important; }
  #sidebarContent1.cart_sidebar_ .nb-cart-drawer-item { padding: 12px 14px !important; }
  #sidebarContent1.cart_sidebar_ .nb-cart-drawer-item__image { width: 52px !important; height: 76px !important; }
  #sidebarContent1.cart_sidebar_ .nb-cart-drawer-item .media-body { margin-left: 10px !important; }
  #sidebarContent1.cart_sidebar_ .nb-cart-drawer-item__title { font-size: 13px; }
  #sidebarContent1.cart_sidebar_ .nb-cart-drawer-button { min-height: 44px; }
}

@media (max-width: 575.98px) {
  .nb-nav ~ .nb-search-overlay { top: 108px; bottom: 0; align-items: flex-start; padding: 2px 14px 14px; }
  .nb-nav ~ .nb-search-overlay .nb-search-overlay__panel { max-height: calc(100dvh - 110px); }
}

@media (max-width: 760px) {
  /* Let benefits form a compact two-column mobile card instead of scrolling. */
  .nb-rbenefits__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 0; padding: 10px 6px; }
  .nb-rbenefits__grid > div { min-width: 0; width: auto; flex: none; padding: 9px 8px; border-right: 1px solid var(--nr-line); }
  .nb-rbenefits__grid > div:nth-child(2n) { border-right: 0; }
  .nb-rbenefits__grid > div:nth-child(n+3) { border-top: 1px solid var(--nr-line); }
  .nb-rbenefits b { font-size: 11px; }
  .nb-rbenefits small { font-size: 10px; }
  .nb-rhero__backdrop { aspect-ratio: 1.8 / 1; min-height: 190px; }
  .nb-rhero__backdrop img { min-height: 190px; }
}

.u-sidebar .h-primary i { width: 20px; color: var(--nb-brand-blue); }
.u-sidebar .h-primary:hover, .u-sidebar .h-primary:focus, .u-sidebar .h-primary.nb-menu-active { color: var(--nb-brand-blue) !important; }

#nb-wishlist-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(27rem, 90vw); max-width: 90vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; background: #fff; color: #102150; overflow-y: auto; }
#nb-wishlist-drawer::backdrop { background: rgb(10 10 10 / 42%); }
#nb-wishlist-drawer header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 20px; border-bottom: 1px solid #e1e5eb; }
#nb-wishlist-drawer h2 { margin: 0; font-size: 20px; }
#nb-wishlist-drawer header button { border: 1px solid #e1e5eb; border-radius: 50%; background: #fff; color: inherit; width: 36px; height: 36px; font-size: 24px; cursor: pointer; }
[data-nb-wishlist-items] { padding: 20px; }
.nb-saved-book { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #e1e5eb; }
.nb-saved-book img { width: 72px; height: 108px; object-fit: contain; }
.nb-saved-book h3 { font-size: 15px; line-height: 1.4; margin: 0 0 10px; }
.nb-saved-book a { color: inherit; }
.nb-saved-book p { color: #63718a; font-size: 13px; }
.nb-saved-link { display: block; padding: 16px; background: #102150; color: #fff; text-align: center; border-radius: 4px; }
.nb-saved-link:hover { color: #fff; background: #17316e; }
