/* Shared sidebar, newsletter ending, and footer. Original theme type and rail widths remain in place. */
.ys-shell .ys-skip-link { position: fixed; top: .5rem; left: 1rem; z-index: 3000; transform: translateY(-200%); padding: .65rem .85rem; border: 1px solid #111; background: #fff; color: #000; font-size: 16px; line-height: 1.4; }
.ys-shell .ys-skip-link:focus { transform: none; }
.ys-shell #main-content:focus { outline: none; }
.ys-shell #contact { scroll-margin-top: 1.5rem; }
.ys-shell .ys-primary-navigation .sidebar-nav a { font-size: 16px; }
.ys-shell .ys-primary-navigation .nav-section-current > a { font-weight: 600; }
.ys-shell .sidebar-menu { display: block; }
.ys-shell .ys-sidebar-newsletter { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #111; }
.ys-shell .ys-newsletter-label { font-size: 16px; line-height: 1.4; color: #666; margin: 0 0 .3rem; }
.ys-shell .ys-sidebar-newsletter h2 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 0 0 .75rem; }
.ys-shell .sidebar-dfos { display: block; margin-top: 1.5rem; padding: 1rem 0 0; border: 0; border-top: 1px solid #e0e0e0; border-radius: 0; background: transparent; color: #000; font-size: 16px; line-height: 1.5; text-decoration: underline; text-underline-offset: .12em; }
.ys-shell .sidebar-dfos:hover { background: transparent; color: #000; text-decoration: none; }

/* Native member forms, shared by the compact sidebar and full page ending. */
.ys-shell .ys-newsletter-form { margin: 0; }
.ys-shell .ys-form-field { position: relative; display: flex; flex-direction: column; width: 100%; border: 1px solid #111; }
.ys-shell .ys-form-field:focus-within { outline: 2px solid #111; outline-offset: 3px; }
.ys-shell .ys-form-field input { flex: 1; width: 100%; min-width: 0; min-height: 44px; padding: .65rem .7rem; border: 0; border-radius: 0; background: #fff; color: #000; font-family: inherit; font-size: 16px; line-height: 1.4; }
.ys-shell .ys-form-field input:focus { outline: none; }
.ys-shell .ys-form-field input::placeholder { color: #666; }
.ys-shell .ys-form-field button { min-height: 44px; padding: .6rem .7rem; border: 0; border-top: 1px solid #111; border-radius: 0; background: #000; color: #fff; font-family: inherit; font-size: 16px; line-height: 1.4; cursor: pointer; }
.ys-shell .ys-form-field button:hover { background: #222; }
.ys-shell .ys-signup-success, .ys-shell .ys-signup-error { font-size: 16px; line-height: 1.5; margin: .7rem 0 0; }
.ys-shell .ys-signup-success { display: none; color: #000; }
.ys-shell .ys-signup-error { color: #b00020; }
.ys-shell .ys-signup-error:empty { display: none; }
.ys-shell .ys-newsletter-form.success .ys-form-field { display: none; }
.ys-shell .ys-newsletter-form.success .ys-signup-success { display: block; }
.ys-shell .ys-newsletter-form.loading button { opacity: .5; pointer-events: none; }
.ys-shell .ys-account-link { display: block; min-height: 44px; padding: .6rem .7rem; border: 1px solid #111; font-size: 16px; line-height: 1.4; text-align: center; }
.ys-shell .ys-newsletter { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); align-items: center; gap: 1.5rem; width: 100%; max-width: 688px; margin: 3rem 0 0; padding: 1.5rem; border: 1px solid #111; }
.ys-shell .ys-newsletter .yg-letter-copy { min-width: 0; }
.ys-shell .ys-newsletter .yg-letter-copy h2 { font-size: 24px; font-weight: 600; line-height: 1.3; margin: 0 0 .75rem; }
.ys-shell .ys-newsletter .yg-eyebrow { color: #666; font-size: 16px; line-height: 1.4; margin: 0 0 .4rem; }
.ys-shell .ys-newsletter .yg-copy { font-size: 18px; line-height: 1.5; }
.ys-shell .ys-newsletter .yg-copy p { margin: 0 0 .75rem; }
.ys-shell .ys-newsletter .yg-copy > :last-child { margin-bottom: 0; }
.ys-shell .ys-newsletter .yg-copy img { max-width: 100%; height: auto; }
.ys-shell .ys-newsletter .ys-newsletter-form, .ys-shell .ys-newsletter > .ys-account-link { min-width: 0; }

/* Every saved secondary navigation link is rendered, in its saved order. */
.ys-shell .footer { font-size: 16px; }
.ys-shell .ys-footer-inner { width: 100%; max-width: 688px; }
.ys-shell .ys-footer-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .65rem 1.5rem; }
.ys-shell .ys-copyright { color: #666; font-size: 16px; line-height: 1.5; margin: 0; }
.ys-shell .ys-back-to-top { color: #000; font-size: 16px; line-height: 1.5; }
.ys-shell .ys-footer-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-top: 1rem; font-size: 16px; line-height: 1.5; }
.ys-shell .ys-footer-links a { color: #000; overflow-wrap: anywhere; }
.ys-shell .sidebar a:focus-visible, .ys-shell .sidebar button:focus-visible, .ys-shell .footer a:focus-visible, .ys-shell .ys-newsletter a:focus-visible, .ys-shell .ys-newsletter button:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.ys-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 768px) {
    .ys-shell .sidebar { max-height: 100vh; max-height: 100dvh; overflow: hidden; overflow: clip; }
    .ys-shell .sidebar-header { gap: 1rem; }
    .ys-shell .hamburger { display: none; flex: 0 0 44px; width: 44px; height: 44px; padding: 13px 10px; }
    .ys-shell.ys-nav-ready .hamburger { display: flex; }
    .ys-shell .hamburger span { width: 24px; height: 2px; }
    .ys-shell .sidebar-menu { position: relative; max-height: calc(100vh - var(--ys-header-height, 80px) - 1px); max-height: calc(100dvh - var(--ys-header-height, 80px) - 1px); overflow-y: auto; overscroll-behavior: contain; }
    .ys-shell.ys-nav-ready .sidebar-menu { display: none; }
    .ys-shell.ys-nav-ready .sidebar.menu-open .sidebar-menu { display: block; }
    .ys-shell .ys-primary-navigation .sidebar-nav a { display: flex; align-items: center; min-height: 44px; line-height: 1.5; padding: .35rem 0; }
    .ys-shell .main { margin-top: var(--ys-header-height, 80px); }
    .ys-shell #main-content, .ys-shell #contact { scroll-margin-top: calc(var(--ys-header-height, 80px) + 1rem); }
    .ys-shell:not(.ys-nav-ready) .sidebar { position: static; max-height: none; }
    .ys-shell:not(.ys-nav-ready) .sidebar-menu { max-height: none; overflow: visible; }
    .ys-shell:not(.ys-nav-ready) .main { margin-top: 0; }
}
@media (max-width: 600px) {
    .ys-shell .ys-newsletter { grid-template-columns: 1fr; padding: 1.1rem; gap: 1.25rem; margin-top: 2rem; }
    .ys-shell .ys-newsletter .ys-newsletter-form { max-width: 440px; }
}
@media (prefers-reduced-motion: reduce) {
    .ys-shell .hamburger span { transition: none; }
}
