/* A single accent treatment for the editorial guide's four surfaces.
   The public theme and earlier tool styles set important rules on these controls. */
body.wn-librarian-journey-guide.wn-site-20261116 #page #content #post-5670577 .entry-content .wn-studio-journey {
  /* Warm paper uses 70% Palette 03 yellow 050 (#fffbea) mixed with white. */
  --guide-warm-paper: #fffcf0;
  --guide-ink: #302934;
  --guide-teal-ink: #365c58;
  --guide-edge: #d8ded7;
  --guide-paper: linear-gradient(112deg, #fffdf8 1%, #fcfbf7 43%, #f3f8f4 76%, #f0f6f3 100%);
  --guide-tray: linear-gradient(102deg, #faf7f1, #f3f5f0 55%, #eaf2ee);
  --guide-action: linear-gradient(108deg, #fffefb 0%, #fbf6fa 57%, #f2e7f0 100%);
  --guide-action-hover: linear-gradient(108deg, #fcf7fb 0%, #f4e9f3 57%, #eddfeb 100%);
  --guide-quiet-action: linear-gradient(110deg, #fffdfb 0%, #fbf5fb 55%, #f4e9f2 100%);
  --guide-shadow: 0 1px 2px rgb(49 40 42 / 6%), 0 10px 22px -18px rgb(41 64 59 / 30%);

  & #library-builder .wn-intake, & #bookshelf-demo.wn-shelf, & #scratch .wn-scratch-sheet {
    background: var(--guide-paper) !important;
    border-color: var(--guide-edge) !important;
    box-shadow: var(--guide-shadow) !important;
  }
  & #library-builder .wn-intake .wn-intake-methods,
  & #bookshelf-demo.wn-shelf .wn-shelf-band:not([hidden]),
  & #scratch .wn-scratch-sheet .wn-scratch-tray {
    background: var(--guide-tray) !important;
    border-color: var(--guide-edge) !important;
  }
  & #library-builder .wn-intake .wn-intake-submit,
  & #bookshelf-demo.wn-shelf .button.primary,
  & #scratch .wn-scratch-sheet :is(#scratch-search-form button,.source-actions button.primary),
  & > .journey-finish a.button.signup {
    background: var(--guide-action) !important;
    color: #672a65 !important;
    border: 1px solid #c3a5bc !important;
    box-shadow: inset 0 1px #fff, 0 1px 2px rgb(76 44 72 / 8%) !important;
  }
  & #library-builder .wn-intake .wn-intake-submit:hover,
  & #bookshelf-demo.wn-shelf .button.primary:hover,
  & #scratch .wn-scratch-sheet :is(#scratch-search-form button,.source-actions button.primary):not(:disabled):hover,
  & > .journey-finish a.button.signup:hover {
    background: var(--guide-action-hover) !important;
    color: #581854 !important;
    border-color: #985d91 !important;
  }
  & #library-builder .wn-intake .wn-intake-submit svg {
    flex: none; width: 23px; height: 23px; padding: 3px; box-sizing: border-box;
    border-radius: 5px; background: #f0e1ee; color: #842780 !important;
  }
  & #bookshelf-demo.wn-shelf .wn-icon-button svg, & #scratch .wn-scratch-sheet #scratch-search-form button svg {
    color: #80277d !important;
  }
  & #bookshelf-demo.wn-shelf #bookshelf-field {
    color: #35483f !important; border-color: #919c90 !important;
    background-color: #f5f6f0 !important;
  }
  & #library-builder .wn-intake .wn-intake-submit span { font: inherit !important; }

  & #library-builder .wn-intake #journey-builder-next.wn-guide-handoff:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    margin: 0 !important;
    padding: .7rem var(--intake-gutter) !important;
    border: 0 !important;
    border-top: 1px solid #d3ded7 !important;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(108deg,#f8faf5,#edf5ef 70%,#edf2ee) !important;
  }
  & #library-builder .wn-intake #journey-added-count {
    flex: 1 1 13rem;
    width: auto !important;
    margin: 0 !important;
    color: var(--guide-teal-ink) !important;
    font: normal .97rem/1.35 "Times New Roman", Times, serif !important;
  }
  & #library-builder .wn-intake #journey-view-library,
  & #bookshelf-demo.wn-shelf #bookshelf-to-scratch {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: .4rem !important;
    width: auto !important;
    max-width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: .32rem .65rem .32rem .48rem !important;
    margin: 0 !important;
    border: 1px solid #c9a8c3 !important;
    border-radius: 8px;
    background: var(--guide-quiet-action) !important;
    color: #672a65 !important;
    box-shadow: inset 0 1px rgb(255 255 255 / 80%), 0 1px 2px rgb(83 52 76 / 9%) !important;
    font: normal 1.02rem/1.24 "Times New Roman", Times, serif !important;
    text-decoration: none !important;
  }
  & #library-builder .wn-intake #journey-view-library:hover,
  & #bookshelf-demo.wn-shelf #bookshelf-to-scratch:hover {
    background: linear-gradient(110deg,#fbf2fa,#efdfec) !important;
    border-color: #9d6b97 !important;
  }
  & .wn-handoff-mark { display: grid; place-items: center; width: 25px; height: 25px; flex: none; }
  & .wn-handoff-mark img { display: block; width: 25px; height: 25px; }
  & .wn-handoff-arrow { margin-inline-start: .14rem; font-size: 1.03em; }
  & #scratch .wn-scratch-mark img, & #scratch .wn-scratch-tray a img { width: 24px; height: 24px; flex: none; display: block; }
  & #scratch .wn-scratch-sheet #scratch-search-panel:not([hidden]) {
    background: linear-gradient(105deg, #fdfcf6 1%, #f4f7f0 44%, #eaf4ef 100%) !important;
    border-color: #cdded4 !important;
  }
  & #scratch .wn-scratch-sheet #scratch-search-panel:not([hidden]) {
    display: grid; grid-template-columns: minmax(0,1fr) auto;
    align-items: center; column-gap: .5rem;
  }
  & #scratch-search-panel > :not(.wn-scratch-heading):not(#scratch-refine) { grid-column: 1 / -1; }
  & #scratch-search-panel > .wn-scratch-heading { grid-column: 1; grid-row: 1; margin: 0 !important; }
  & #scratch .wn-scratch-sheet #scratch-refine {
    min-width: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important;
  }
  & #scratch #scratch-refine:not([open]) { grid-column: 2; grid-row: 1; }
  & #scratch #scratch-refine[open] { grid-column: 1 / -1; grid-row: 2; }
  & #scratch .wn-scratch-sheet #scratch-refine > summary {
    display: inline-flex; align-items: center; gap: .48rem;
    width: fit-content; min-height: 44px; box-sizing: border-box; padding: .2rem .1rem !important;
    margin: 0 !important; border: 0 !important; background: transparent !important;
    list-style: none; color: #663663 !important; cursor: pointer;
    font: normal .93rem/1.25 "Times New Roman", Times, serif !important;
  }
  & #scratch-refine > summary::-webkit-details-marker { display: none; }
  & #scratch-refine > summary::marker { content: ""; }
  & #scratch-refine > summary::after {
    content: ""; display: inline-block; width: .4rem; height: .4rem;
    border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg);
  }
  & #scratch-refine[open] > summary::after { transform: rotate(225deg); }
  & #scratch-refine > summary:focus-visible { outline: 2px solid #772077 !important; outline-offset: 2px; }
  & #scratch .wn-scratch-sheet .source-notice:not(:empty) {
    color: var(--guide-teal-ink);
  }

  /* Individual sources keep a small bound-book silhouette. The title and
     source details have the rest of the width even when there is just one hit. */
  & #bookshelf-demo.wn-shelf #bookshelf:not(:empty) {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,20rem),1fr)) !important;
    align-items: start;
    gap: .65rem .9rem;
    padding: 0 0 1rem !important;
  }
  & #bookshelf-demo.wn-shelf .shelf-item {
    min-width: 0;
    padding: 0 !important;
    border: 1px solid #d4d9d1 !important;
    border-radius: 9px;
    background: linear-gradient(112deg, var(--guide-warm-paper), #fbfcf9);
    box-shadow: inset 0 1px #fff, 0 1px 2px rgb(42 52 44 / 4%) !important;
  }
  & #bookshelf-demo.wn-shelf .shelf-item:only-child { grid-column: 1 / -1; }
  & #bookshelf-demo.wn-shelf button.shelf-book {
    --binding-top: #a25097;
    --binding-bottom: #62325f;
    position: relative;
    display: grid !important;
    grid-template-columns: 2.5rem minmax(0,1fr) auto;
    align-items: center;
    gap: .8rem;
    box-sizing: border-box;
    width: 100% !important;
    min-height: 0 !important;
    height: auto;
    margin: 0 !important;
    padding: .73rem .9rem !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--guide-ink) !important;
    box-shadow: none !important;
    text-align: left;
    filter: none !important;
    transform: none !important;
  }
  & #bookshelf-demo.wn-shelf button.shelf-book:hover { background: #f3f3ec !important; }
  & #bookshelf-demo.wn-shelf button.book-colour-1 { --binding-top: #579085; --binding-bottom: #335c54; }
  & #bookshelf-demo.wn-shelf button.book-colour-2 { --binding-top: #a28067; --binding-bottom: #715546; }
  & #bookshelf-demo.wn-shelf button.book-colour-3 { --binding-top: #7e7387; --binding-bottom: #5c5064; }
  & #bookshelf-demo.wn-shelf .wn-book-binding {
    position: relative;
    display: block;
    width: 2.2rem;
    height: 3rem;
    box-sizing: border-box;
    border: 1px solid rgb(53 39 47 / 28%);
    border-radius: 2px 4px 4px 2px;
    background: linear-gradient(90deg,rgb(33 26 30 / 24%) 0 8%,transparent 9% 16%,rgb(255 255 255 / 15%) 17% 19%,transparent 20%), linear-gradient(145deg,var(--binding-top),var(--binding-bottom));
    box-shadow: 1px 1px #faf5ea, 2px 2px #cdc5b7, 3px 3px 3px rgb(77 65 68 / 12%);
  }
  & #bookshelf-demo.wn-shelf .wn-book-binding::before {
    content: ""; position: absolute; inset: 19% 18% auto 29%; height: 10%;
    border-block: 1px solid rgb(255 239 207 / 68%);
  }
  & #bookshelf-demo.wn-shelf .shelf-book .book-cover {
    display: flex;
    align-items: start;
    gap: .15rem;
    min-width: 0;
    min-height: 0 !important;
    padding: 0 !important;
    color: var(--guide-ink) !important;
  }
  & #bookshelf-demo.wn-shelf .shelf-book .book-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.25;
    font-size: 1.1rem;
    color: var(--guide-ink) !important;
  }
  & #bookshelf-demo.wn-shelf .wn-book-credit,
  & #bookshelf-demo.wn-shelf .shelf-book .book-example {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #555d56 !important;
    font: normal .88rem/1.35 "Times New Roman", Times, serif !important;
    text-transform: none;
    letter-spacing: normal;
  }
  & #bookshelf-demo.wn-shelf .wn-book-open { color: #795377 !important; font: normal 1.45rem/1 "Times New Roman", Times, serif; }
  & #bookshelf-demo.wn-shelf .book-match-label, & #bookshelf-demo.wn-shelf .book-match-text {
    margin: .1rem .9rem .6rem !important;
    color: #40534d !important;
  }
  & #bookshelf-demo.wn-shelf .book-match-label { margin-bottom: .15rem !important; font-size: .85rem !important; }
  & #bookshelf-demo.wn-shelf :is(#bookshelf-reader-title,.book-title) { letter-spacing: -.012em; }

  & > .journey-finish {
    position: relative;
    align-items: center;
    border-color: #cfdcd3 !important;
    background: radial-gradient(ellipse at 100% 112%,rgb(200 221 211 / 37%),transparent 55%), linear-gradient(104deg, var(--guide-warm-paper) 0%, #fbfaf4 47%, #f0f6ee 100%) !important;
    box-shadow: var(--guide-shadow) !important;
  }
  & > .journey-finish::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px;
    background: linear-gradient(#d7c7d4,#eee5d1);
    pointer-events: none;
  }
  & > .journey-finish h2 {
    color: #3c3040 !important;
    padding-bottom: 0 !important;
    line-height: 1.16 !important;
  }
  & > .journey-finish > p:not(:has(a.signup)):not(:empty) { color: #40534d !important; max-width: 63ch; }
  & > .journey-finish > p:has(a.signup) {
    border: 0 !important;
    background: transparent !important;
    padding-inline-start: .4rem !important;
  }
  & > .journey-finish a.button.signup {
    gap: .8rem !important;
    border-radius: 8px !important;
    padding: .55rem .65rem .55rem 1rem !important;
  }
  & > .journey-finish a.button.signup::after {
    display: inline-grid; place-items: center;
    width: 1.5rem; height: 1.5rem;
    border-radius: 50%;
    background: #842e80; color: #fff;
    font: normal 1rem/1 "Times New Roman", Times, serif;
  }
}
@media (max-width: 680px) {
  body.wn-librarian-journey-guide.wn-site-20261116 #page #content #post-5670577 .entry-content .wn-studio-journey > .journey-finish > p:has(a.signup) {
    padding: 0 var(--finish-gutter) 1.15rem !important;
  }
}
@media (forced-colors:active) {
  #bookshelf-demo .wn-book-binding, #bookshelf-demo .shelf-item { border: 1px solid CanvasText !important; }
}
