/* AI1000 save (bookmark) control and its once-a-visit account offer. Uses the site tokens; works on pages with or without site.css. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.savebtn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-width: 2.25rem; min-height: 2.25rem; padding: 0.3rem; background: none; border: 0; border-radius: 8px; color: var(--ink-3); font: inherit; font-size: 0.9rem; cursor: pointer; flex: none; }
.savebtn svg { width: 20px; height: 20px; }
.savebtn:hover { color: var(--ink); background: var(--leaf-2); }
.savebtn[aria-pressed="true"] { color: var(--red); }
.savebtn span { color: var(--ink-2); }
.savedlink { color: var(--ink) !important; display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.savedlink[hidden] { display: none !important; }
.savedlink svg { width: 15px; height: 15px; color: var(--red); }
header.mast .savedlink { order: 2; text-decoration: none; font-weight: 500; }
header.mast .savedlink:hover { text-decoration: underline; }
@media (max-width: 640px) {
  header.mast nav.main { order: 5; }
  header.mast .savedlink { order: 1; }
  header.mast .savedlink .w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.savepop { position: absolute; z-index: 30; background: var(--leaf); border: 1px solid var(--rule); border-radius: 12px; padding: 0.9rem 1rem 1rem; box-shadow: 0 24px 50px -24px rgba(0,0,0,0.8); color: var(--ink-2); font-size: 0.93rem; line-height: 1.45; }
.savepop p { margin: 0 0 0.6rem; max-width: none; color: var(--ink-2); }
.savepop .t { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.35rem; }
.savepop .chk { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.2rem 0 0.8rem; color: var(--ink-2); font-size: 0.9rem; cursor: pointer; }
.savepop .chk input { accent-color: var(--red); margin-top: 0.2rem; }
.savepop .acts { display: flex; align-items: center; gap: 0.9rem; }
.savepop .btn.sm, .savepop .btn { border: 0; background: var(--red-deep); color: #fff; font: inherit; font-weight: 600; font-size: 0.9rem; border-radius: 8px; padding: 0.5rem 0.9rem; cursor: pointer; }
.savepop .btn:hover { background: var(--red-hover); }
.savepop .later { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.savepop .later:hover { color: var(--ink); }
.savepop .minform { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; margin: 0.2rem 0 0.6rem; }
.savepop .minform input { width: 100%; }
.savepop .minform input { flex: 1; min-width: 0; background: var(--cloth); border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); font: inherit; font-size: 0.92rem; padding: 0.45rem 0.65rem; }
.savepop .minform input { flex: none; }
.savepop .minform input:focus { outline: 0; border-color: var(--ink-3); }
.savepop .fine { color: var(--ink-3); font-size: 0.85rem; margin: 0; }
/* Sign in / Account, in the masthead. It's a button that opens the account popover, styled like the nav links. */
.acctbtn { order: 2; background: none; border: 0; padding: 0.3rem 0; font: inherit; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.acctbtn:hover { color: var(--ink); text-decoration: underline; }
.acctbtn:focus-visible { outline: 2px solid var(--ink-3); outline-offset: 3px; border-radius: 4px; }
.acctbtn svg { display: none; width: 22px; height: 22px; }
@media (max-width: 640px) {
  body header.mast .wrap { column-gap: 0.6rem; }
  header.mast .acctbtn { order: 1; display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; min-height: 2.25rem; padding: 0; margin-right: -0.4rem; color: var(--ink); }
  header.mast .acctbtn svg { display: block; }
  header.mast .acctbtn .w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.savepop .err { margin: 0; color: var(--ink); font-size: 0.9rem; border-left: 3px solid var(--red); padding-left: 0.55rem; }
.savepop .err[hidden] { display: none; }
.savepop .btn[disabled] { opacity: 0.7; cursor: default; }
.savepop b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
