.yas-banner, .yas-dialog, .yas-gateway { --yas-ink: #143750; --yas-muted: #536a7a; --yas-blue: #135c9e; }
.yas-banner, .yas-banner *, .yas-dialog, .yas-dialog *, .yas-gateway, .yas-gateway * { box-sizing: border-box; }
.yas-banner { width: calc(100% - 40px); max-width: 1000px; margin: 36px auto 30px; }
.yas-banner-content { position: relative; display: flex; align-items: center; min-height: 440px; padding: 40px; overflow: hidden; isolation: isolate; background: #f7fbfd; border: 1px solid #dae9f2; border-radius: 24px; box-shadow: 0 12px 36px #14375008; }
.yas-banner-visual { position: absolute; inset: 0; z-index: -1; }
.yas-banner .yas-hero-art { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: left top; filter: none; }
.yas-banner-copy { width: 45%; text-align: right; }
.yas-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--yas-ink); font-size: .8rem; font-weight: bold; }
.yas-brand img { display: block; width: 26px; height: 26px; object-fit: contain; }
.yas-brand-divider { color: #7893a5; font-weight: normal; }
.yas-banner .yas-brand { padding: 7px 10px; margin-bottom: 20px; border: 1px solid #dae9f2; border-radius: 10px; background: #ffffffb8; }
.yas-banner h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: bold; line-height: 1.65; margin: 0 0 14px; letter-spacing: -.6px; color: var(--yas-ink); }
.yas-banner h2 > span { display: block; }
.yas-banner h2 > span:last-child { color: var(--yas-blue); }
.yas-banner p, .yas-dialog p, .yas-gateway p { color: var(--yas-muted); font-size: .9rem; line-height: 1.95; margin: 0; }
.yas-banner p { max-width: 350px; margin-bottom: 22px; }
a.yas-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 54px; padding: 12px 18px; border-radius: 12px; background: var(--yas-blue); color: #fff; text-decoration: none; font-size: .9rem; font-weight: bold; box-shadow: 0 6px 16px #135c9e20; transition: background .18s, box-shadow .18s; }
a.yas-cta:hover { background: #104a80; box-shadow: 0 8px 20px #135c9e30; }
.yas-cta-arrow { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #ffffff1a; font: 22px/1 sans-serif; }
.yas-banner-footnote { display: block; color: var(--yas-muted); font-size: .72rem; line-height: 1.8; margin-top: 12px; }
.yas-dialog { width: min(540px, calc(100% - 40px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #ffffff60; border-radius: 24px; box-shadow: 0 28px 100px #0c263647; color: var(--yas-ink); background: #fff; font-family: inherit; overflow: hidden; margin: auto; }
.yas-dialog[open] { display: flex; flex-direction: column; }
.yas-dialog:not([open]) { display: none; }
.yas-dialog::backdrop { background: #102b3f8c; backdrop-filter: blur(5px); }
.yas-modal-art { display: block; flex: 0 0 auto; width: 100%; height: 160px; object-fit: cover; background: #edf7fc; }
.yas-dialog-content { padding: 24px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.yas-dialog-eyebrow { display: block; color: #577588; font-size: .74rem; margin-bottom: 6px; }
.yas-dialog h2 { font-size: 1.5rem; line-height: 1.6; margin: 0 0 8px; color: var(--yas-ink); }
.yas-dialog #yas-grade-description { max-width: 390px; font-size: .85rem; }
.yas-close { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #d8e7f1; border-radius: 50%; background: #fffffff2; color: #143750; box-shadow: 0 2px 10px #14375010; cursor: pointer; font: 28px/1 sans-serif; z-index: 1; }
.yas-close:hover { background: #edf6fc; }
.yas-grades { display: grid; gap: 10px; margin: 20px 0 16px; }
a.yas-grade { display: flex; align-items: center; gap: 14px; min-height: 78px; padding: 13px 16px; border: 1px solid #dfeaf1; border-radius: 14px; background: #fff; color: var(--yas-ink); text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
a.yas-grade:hover { background: #f4f9fd; border-color: #8cbddb; box-shadow: 0 3px 12px #135c9e0a; }
a.yas-grade:active { background: #e8f4fb; }
.yas-grade-number { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 12px; background: #e9f3ff; color: #185f9f; font-size: 1.1rem; font-weight: bold; }
[data-yas-grade="11"] .yas-grade-number { background: #e5f6f2; color: #17685c; }
[data-yas-grade="12"] .yas-grade-number { background: #fff3df; color: #815714; }
.yas-grade-copy { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.yas-grade-copy strong { font-size: .95rem; font-weight: bold; }
.yas-grade-copy > span { font-size: .75rem; color: var(--yas-muted); }
.yas-grade-arrow { color: #607f92; font: 22px/1 sans-serif; }
.yas-cta:focus-visible, .yas-grade:focus-visible, .yas-close:focus-visible { outline: 3px solid #287cb9; outline-offset: 3px; }
p.yas-note { font-size: .72rem; line-height: 1.9; padding-top: 12px; border-top: 1px solid #edf1f5; color: var(--yas-muted); }
.yas-eyebrow { display: block; color: #526174; font-size: .8rem; margin-bottom: 10px; }
.yas-gateway { max-width: 650px; margin: 48px auto; padding: 32px 24px; background: white; border-radius: 18px; }
.yas-gateway h1 { font-size: 1.4rem; margin: 0 0 16px; }
.yas-home-link { display: inline-block; color: #526174; font-size: .8rem; margin-top: 24px; }
body.yas-modal-open { overflow: hidden; }
@media (min-width: 641px) and (max-width: 900px) {
  .yas-banner-content { padding: 28px; min-height: 410px; }
  .yas-banner-visual { right: auto; width: 51%; }
  .yas-banner-copy { width: 47%; }
  .yas-banner h2 { font-size: 1.55rem; }
  .yas-banner p { font-size: .82rem; }
  .yas-banner .yas-cta { font-size: .8rem; gap: 12px; padding-inline: 12px; }
}
@media (max-width: 640px) {
  .yas-banner { width: calc(100vw - 32px); max-width: none; margin: 24px calc((100% - 100vw + 32px) / 2); }
  .yas-banner-content { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 0; border-radius: 20px; }
  .yas-banner-visual { position: relative; inset: auto; height: 190px; overflow: hidden; z-index: auto; background: #edf7fc; }
  .yas-banner .yas-hero-art { width: 140%; height: 100%; object-fit: cover; object-position: left top; position: absolute; left: 0; }
  .yas-banner-copy { width: 100%; padding: 20px; background: #fff; }
  .yas-banner .yas-brand { font-size: .72rem; padding: 0; border: 0; background: none; margin-bottom: 12px; }
  .yas-brand img { width: 23px; height: 23px; }
  .yas-banner h2 { font-size: 1.4rem; line-height: 1.6; margin-bottom: 10px; letter-spacing: -.4px; }
  .yas-banner p { font-size: .82rem; line-height: 1.9; margin-bottom: 16px; }
  .yas-banner .yas-cta { display: flex; width: 100%; min-height: 52px; font-size: .83rem; padding: 11px 14px; gap: 8px; }
  .yas-banner-footnote { text-align: center; font-size: .66rem; margin-top: 10px; }
  .yas-dialog { width: 100%; max-width: 540px; max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); margin: auto auto 0; border: 0; border-radius: 24px 24px 0 0; }
  .yas-modal-art { height: 118px; }
  .yas-dialog-content { padding: 20px 20px max(20px, env(safe-area-inset-bottom)); }
  .yas-dialog h2 { font-size: 1.35rem; }
  .yas-dialog #yas-grade-description { font-size: .8rem; }
  .yas-dialog .yas-grades { margin-top: 16px; }
  a.yas-grade { min-height: 74px; padding: 11px 14px; gap: 12px; }
  .yas-grade-copy strong { font-size: .9rem; }
  .yas-close { top: 10px; left: 10px; }
  .yas-gateway { margin: 24px 12px; padding: 28px 20px; }
}
@media (max-width: 360px) {
  .yas-banner-visual { height: 158px; }
  .yas-banner-copy { padding: 18px 16px; }
  .yas-banner h2 { font-size: 1.22rem; }
  .yas-banner .yas-cta { font-size: .75rem; }
  .yas-dialog-content { padding-inline: 16px; }
}
@media (max-height: 600px) {
  .yas-dialog .yas-modal-art { height: 80px; }
  .yas-dialog-content { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  a.yas-cta, a.yas-grade { transition: none; }
}
