@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@400;500;600;700;800&display=swap');
/* Fully namespaced to avoid impacting the original SJOH TFC header. */
body:has(#sbooks-site-header) { padding-top:56px !important; }
#sbooks-site-header, #sbooks-site-header *, #sbooks-mobile-menu, #sbooks-mobile-menu * { box-sizing:border-box; }
#sbooks-site-header { width:100%;height:56px;position:fixed!important;top:0;left:0;right:0;z-index:999999;background:#fffaf4!important;border-bottom:3px solid #0B2545!important;box-shadow:none!important;font-family:'Source Sans 3',sans-serif; }
.admin-bar #sbooks-site-header { top:32px!important; }
#sbooks-site-header .sbooks-header-inner { max-width:1720px;margin:0 auto;padding:0 22px;height:53px;display:flex;align-items:center;gap:28px; }
#sbooks-site-header .sbooks-logo { flex:none;display:inline-flex;align-items:center;text-decoration:none!important; }
#sbooks-site-header .sbooks-logo-box { height:38px;min-width:185px;padding:0 12px;border-radius:4px;background:#d36e21;display:flex;flex-direction:column;align-items:center;justify-content:center; }
#sbooks-site-header .sbooks-logo-title { font-family:'Playfair Display',serif;font-size:13px;font-weight:700;letter-spacing:1.3px;text-transform:uppercase;white-space:nowrap;color:white;line-height:1.2; }
#sbooks-site-header .sbooks-logo-sub { display:flex;align-items:center;gap:8px;margin-top:4px; }
#sbooks-site-header .sbooks-logo-line { display:block;width:28px;height:1px;background:rgba(255,255,255,.65); }
#sbooks-site-header .sbooks-logo-text { color:white;font-size:8px;font-weight:700;letter-spacing:2.6px;text-transform:uppercase;line-height:1; }
#sbooks-site-header .sbooks-desktop-nav { display:flex;align-items:center;gap:30px;height:100%;flex:1;min-width:0;margin-left:auto;justify-content:flex-end; }
#sbooks-site-header .sbooks-nav-dropdown { position:relative;height:100%;display:flex;align-items:center; }
#sbooks-site-header .sbooks-books-dropdown { gap:4px; }
#sbooks-site-header .sbooks-books-toggle { padding:5px 3px!important;min-width:18px!important;width:18px;height:30px;background:transparent!important;border:0!important;box-shadow:none!important;color:#0B2545!important;display:inline-flex;align-items:center;justify-content:center;cursor:pointer; }
#sbooks-site-header .sbooks-books-toggle:hover,#sbooks-site-header .sbooks-books-dropdown.is-open .sbooks-books-toggle { color:#d36e21!important; }
#sbooks-site-header .sbooks-books-dropdown .sbooks-dropdown-panel { width:510px;min-width:510px; }
#sbooks-site-header .sbooks-books-dropdown.is-open .sbooks-nav-link { color:#d36e21!important; }
#sbooks-site-header .sbooks-dropdown-toggle,
#sbooks-site-header .sbooks-nav-link { font-family:inherit!important;font-size:15px!important;letter-spacing:.5px;font-weight:800!important;text-transform:uppercase;white-space:nowrap;display:inline-flex;align-items:center;gap:7px;color:#0B2545!important;text-decoration:none!important;background:transparent!important;border:0!important;padding:0!important;margin:0!important;line-height:1.25!important;box-shadow:none!important;cursor:pointer; }
#sbooks-site-header .sbooks-nav-link:hover,#sbooks-site-header .sbooks-dropdown-toggle:hover,#sbooks-site-header .sbooks-nav-dropdown.is-open .sbooks-dropdown-toggle { color:#d36e21!important; }
#sbooks-site-header .sbooks-chevron { width:10px;height:7px;fill:currentColor;transition:transform .2s; }
#sbooks-site-header .sbooks-nav-dropdown.is-open .sbooks-chevron { transform:rotate(180deg); }
#sbooks-site-header .sbooks-dropdown-panel { display:none;position:absolute;top:100%;left:-14px;width:490px;min-width:490px;background:white;border-top:3px solid #d36e21;box-shadow:0 10px 35px rgba(14,31,61,.18);border-radius:0 0 8px 8px;z-index:1000001;overflow:hidden; }
#sbooks-site-header .sbooks-nav-dropdown.is-open .sbooks-dropdown-panel,
#sbooks-site-header .sbooks-nav-dropdown:hover .sbooks-dropdown-panel { display:flex; }
#sbooks-site-header .sbooks-dropdown-heading { background:#0B2545;width:155px;flex:none;color:#fff;display:flex;flex-direction:column;padding:26px 18px;gap:12px; }
#sbooks-site-header .sbooks-dropdown-heading strong { font-family:'Playfair Display',serif;font-size:18px;line-height:1.25;color:white; }
#sbooks-site-header .sbooks-drop-bar { width:32px;height:3px;background:rgba(255,255,255,.5);border-radius:3px; }
#sbooks-site-header .sbooks-dropdown-links { flex:1;padding:11px 0; }
#sbooks-site-header .sbooks-dropdown-links a { font-size:14px!important;display:block!important;padding:10px 20px!important;line-height:1.45;color:#0e1f3d!important;font-weight:600!important;text-decoration:none!important;border-left:3px solid transparent;white-space:normal; }
#sbooks-site-header .sbooks-dropdown-links a:hover,#sbooks-site-header .sbooks-dropdown-links a:focus { background:#fff2e5!important;color:#d36e21!important;border-left-color:#d36e21!important; }
#sbooks-site-header .sbooks-search-wrap { position:relative;display:flex;align-items:center; }
#sbooks-site-header .sbooks-search-button { width:38px!important;height:38px!important;min-width:38px!important;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(11,37,69,.22)!important;background:#fff!important;color:#0B2545!important;border-radius:4px!important;padding:0!important;margin:0!important;box-shadow:none!important;cursor:pointer; }
#sbooks-site-header .sbooks-search-button:hover,#sbooks-site-header .sbooks-search-button[aria-expanded="true"] { background:#d36e21!important;border-color:#d36e21!important;color:white!important; }
#sbooks-site-header .sbooks-search-button svg { width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round; }
#sbooks-site-header .sbooks-search-panel { width:340px;position:absolute;top:47px;right:0;z-index:1000001;padding:12px;background:white;box-shadow:0 10px 35px rgba(14,31,61,.18);border-top:3px solid #d36e21;border-radius:0 0 8px 8px; }
#sbooks-site-header .sbooks-search-panel[hidden] { display:none!important; }
#sbooks-site-header .sbooks-search-panel form { display:flex;align-items:stretch;margin:0; }
#sbooks-site-header .sbooks-search-panel input { flex:1;min-width:0;height:39px;border:1px solid #cbd5e1;border-radius:4px 0 0 4px;padding:0 10px;background:white;color:#0e1f3d;font:14px 'Source Sans 3',sans-serif; }
#sbooks-site-header .sbooks-search-panel button { border:0!important;border-radius:0 4px 4px 0!important;background:#d36e21!important;color:#fff!important;font:700 13px 'Source Sans 3',sans-serif!important;padding:0 12px!important;cursor:pointer; }
#sbooks-site-header .sbooks-btn,#sbooks-mobile-menu .sbooks-btn { display:inline-flex!important;align-items:center;justify-content:center;height:37px;min-width:90px;padding:0 14px!important;border-radius:4px!important;font:800 13px 'Source Sans 3',sans-serif!important;letter-spacing:.5px;text-decoration:none!important;text-transform:uppercase;white-space:nowrap;transition:background .15s,color .15s; }
#sbooks-site-header .sbooks-btn-outline,#sbooks-mobile-menu .sbooks-btn-outline { color:#0B2545!important;background:#fff!important;border:1px solid #d36e21!important; }
#sbooks-site-header .sbooks-btn-outline:hover,#sbooks-mobile-menu .sbooks-btn-outline:hover { background:#fff2e5!important; }
#sbooks-site-header .sbooks-btn-primary,#sbooks-mobile-menu .sbooks-btn-primary { color:#fff!important;background:#d36e21!important;border:1px solid #d36e21!important; }
#sbooks-site-header .sbooks-btn-primary:hover,#sbooks-mobile-menu .sbooks-btn-primary:hover { background:#a85417!important; }
#sbooks-site-header .sbooks-hamburger { display:none!important;margin-left:auto!important;align-items:center;flex-direction:column;justify-content:center;gap:5px;width:38px;height:38px;background:transparent!important;border:0!important;padding:5px!important;box-shadow:none!important;cursor:pointer; }
#sbooks-site-header .sbooks-hamburger span { display:block;width:25px;height:3px;background:#0B2545;border-radius:2px; }
#sbooks-mobile-menu { font-family:'Source Sans 3',sans-serif;position:fixed;top:56px;left:0;right:0;z-index:999998;background:white;box-shadow:0 8px 24px rgba(0,0,0,.15);padding:10px 22px 18px;max-height:calc(100vh - 56px);overflow-y:auto; }
#sbooks-mobile-menu[hidden] { display:none!important; }
#sbooks-mobile-menu summary,#sbooks-mobile-menu .sbooks-mobile-link { display:block;width:100%;color:#0B2545!important;background:transparent;font-size:15px!important;font-weight:700!important;padding:12px 0;border:0;border-bottom:1px solid #e2e5ea;text-decoration:none!important;cursor:pointer; }
#sbooks-mobile-menu summary { display:flex;justify-content:space-between;list-style:none; }
#sbooks-mobile-menu summary::-webkit-details-marker { display:none; }
#sbooks-mobile-menu .sbooks-mobile-children { padding:2px 0 5px 14px;background:#fff8f0; }
#sbooks-mobile-menu .sbooks-mobile-children a { display:block!important;color:#0e1f3d!important;text-decoration:none!important;font-weight:600!important;font-size:14px!important;padding:10px 8px;border-bottom:1px solid #e2e5ea; }
#sbooks-mobile-menu .sbooks-mobile-children a:last-child { border-bottom:none; }
#sbooks-mobile-menu .sbooks-mobile-search { display:flex;gap:8px;padding:15px 0 10px;margin:0; }
#sbooks-mobile-menu .sbooks-mobile-search input { min-width:0;flex:1;padding:10px;border:1px solid #cbd5e1;border-radius:4px;font-size:14px; }
#sbooks-mobile-menu .sbooks-mobile-search button { background:#0B2545;color:#fff;border:0;border-radius:4px;padding:0 12px;font:700 13px 'Source Sans 3',sans-serif; }
#sbooks-mobile-menu .sbooks-mobile-actions { display:flex;gap:10px; }
#sbooks-mobile-menu .sbooks-mobile-actions .sbooks-btn { flex:1; }
@media (max-width:1200px) and (min-width:1025px) {
  #sbooks-site-header .sbooks-header-inner { gap:16px;padding:0 16px; }
  #sbooks-site-header .sbooks-desktop-nav { gap:18px; }
  #sbooks-site-header .sbooks-nav-link,#sbooks-site-header .sbooks-dropdown-toggle { font-size:13px!important; }
  #sbooks-site-header .sbooks-logo-box { min-width:168px; }
}
@media(max-width:1024px) {
  #sbooks-site-header .sbooks-desktop-nav { display:none!important; }
  #sbooks-site-header .sbooks-hamburger { display:flex!important; }
}
@media(max-width:782px) {
  .admin-bar #sbooks-site-header { top:46px!important; }
  .admin-bar #sbooks-mobile-menu { top:102px!important;max-height:calc(100vh - 102px); }
}
@media(max-width:768px) {
  body:has(#sbooks-site-header) { padding-top:52px!important; }
  #sbooks-site-header { height:52px!important; }
  #sbooks-site-header .sbooks-header-inner { height:49px;padding:0 16px; }
  #sbooks-site-header .sbooks-logo-box { height:35px;min-width:158px; }
  #sbooks-site-header .sbooks-logo-title { font-size:11px; }
  #sbooks-site-header .sbooks-logo-line { width:22px; }
  #sbooks-mobile-menu { top:52px;max-height:calc(100vh - 52px); }
}
@media (prefers-reduced-motion:reduce){ #sbooks-site-header *,#sbooks-mobile-menu * { transition:none!important; } }

/* ===== SAFE Books specific brand and navigation styling ===== */
#sbooks-site-header {height:64px!important;border-bottom:3px solid #e8871e!important;background:#fffaf4!important;}
#sbooks-site-header .sbooks-header-inner {height:61px;max-width:1650px;gap:28px;padding:0 28px;}
body:has(#sbooks-site-header) {padding-top:64px!important;}
#sbooks-site-header .sbooks-brand {display:inline-flex;align-items:center;gap:10px;flex:none;text-decoration:none!important;min-width:225px;}
#sbooks-site-header .sbooks-brand-icon {width:41px;height:41px;background:#0b2545;border-radius:8px;display:flex;align-items:center;justify-content:center;flex:none;}
#sbooks-site-header .sbooks-brand-icon svg {width:27px;height:27px;fill:none;stroke:#f3a257;stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round;}
#sbooks-site-header .sbooks-brand-wordmark {display:flex;flex-direction:column;justify-content:center;gap:1px;}
#sbooks-site-header .sbooks-brand-title {font-family:'Playfair Display',Georgia,serif;font-size:23px;line-height:1.14;font-weight:700;color:#0b2545!important;white-space:nowrap;}
#sbooks-site-header .sbooks-brand-title em {font-style:normal;color:#c45d11!important;}
#sbooks-site-header .sbooks-brand-caption {font-family:'Source Sans 3',Arial,sans-serif;font-size:8.5px;letter-spacing:1.3px;color:#617085!important;font-weight:800;white-space:nowrap;}
#sbooks-site-header .sbooks-desktop-nav {gap:24px;}
#sbooks-site-header .sbooks-menu-link,#sbooks-site-header .sbooks-menu-toggle {font-family:'Source Sans 3',Arial,sans-serif!important;font-size:14px!important;font-weight:800!important;text-decoration:none!important;text-transform:uppercase;white-space:nowrap;color:#0b2545!important;display:inline-flex;gap:7px;align-items:center;line-height:1.3;letter-spacing:.45px;background:transparent!important;border:none!important;padding:0!important;margin:0!important;box-shadow:none!important;cursor:pointer;}
#sbooks-site-header .sbooks-menu-link:hover,#sbooks-site-header .sbooks-menu-toggle:hover,#sbooks-site-header .sbooks-nav-dropdown.is-open .sbooks-menu-toggle {color:#c45d11!important;}
#sbooks-site-header .sbooks-current-section {color:#c45d11!important;}
#sbooks-site-header .sbooks-books-nav {gap:4px;}
#sbooks-site-header .sbooks-books-caret {border:0!important;box-shadow:none!important;background:transparent!important;color:#0b2545!important;display:flex;align-items:center;justify-content:center;cursor:pointer;width:22px;height:34px;padding:4px!important;margin:0!important;}
#sbooks-site-header .sbooks-books-caret:hover {color:#c45d11!important;}
#sbooks-site-header .sbooks-chevron {width:10px;height:7px;fill:currentColor;transition:transform .2s;}
#sbooks-site-header .sbooks-nav-dropdown.is-open .sbooks-chevron {transform:rotate(180deg);}
#sbooks-site-header .sbooks-dropdown-panel {display:none;position:absolute;top:100%;left:-15px;width:495px;min-width:495px;min-height:205px;background:#fff!important;border-top:3px solid #e8871e;box-shadow:0 14px 34px rgba(11,37,69,.16);z-index:1000001;border-radius:0 0 7px 7px;overflow:hidden;}
#sbooks-site-header .sbooks-books-nav .sbooks-dropdown-panel {width:515px;min-width:515px;}
#sbooks-site-header .sbooks-nav-dropdown.is-open .sbooks-dropdown-panel,#sbooks-site-header .sbooks-nav-dropdown:hover .sbooks-dropdown-panel {display:flex;}
#sbooks-site-header .sbooks-panel-aside {width:163px;flex:none;background:#0b2545;color:#fff;padding:24px 20px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;}
#sbooks-site-header .sbooks-panel-rule {width:34px;height:3px;background:#e8871e;border-radius:2px;}
#sbooks-site-header .sbooks-panel-aside strong {font:700 20px/1.3 'Playfair Display',Georgia,serif;color:white;}
#sbooks-site-header .sbooks-panel-aside small {font-size:12px;line-height:1.5;color:#d8e5f0;}
#sbooks-site-header .sbooks-panel-links {flex:1;padding:10px 0;}
#sbooks-site-header .sbooks-panel-links a {display:block!important;padding:11px 18px!important;border-left:3px solid transparent;color:#23324c!important;font:600 14px/1.35 'Source Sans 3',sans-serif!important;text-decoration:none!important;background:transparent!important;}
#sbooks-site-header .sbooks-panel-links a:hover,#sbooks-site-header .sbooks-panel-links a:focus {background:#fff4e9!important;color:#a85417!important;border-left-color:#e8871e;}
#sbooks-site-header .sbooks-panel-links a.sbooks-panel-cta {font-weight:800!important;color:#b35312!important;}
#sbooks-site-header .sbooks-search-button {color:#0b2545!important;border-color:#e3d8c9!important;}
#sbooks-site-header .sbooks-search-button:hover,#sbooks-site-header .sbooks-search-button[aria-expanded='true'] {background:#0b2545!important;border-color:#0b2545!important;color:#fff!important;}
#sbooks-site-header .sbooks-search-panel {top:49px;border-top-color:#e8871e;}
#sbooks-site-header .sbooks-search-panel button {background:#0b2545!important;}
#sbooks-site-header .sbooks-auth-outline,#sbooks-mobile-menu .sbooks-auth-outline {background:transparent!important;color:#0b2545!important;border-color:#0b2545!important;}
#sbooks-site-header .sbooks-auth-solid,#sbooks-mobile-menu .sbooks-auth-solid {background:#0b2545!important;border-color:#0b2545!important;color:#fff!important;}
#sbooks-site-header .sbooks-auth-solid:hover,#sbooks-mobile-menu .sbooks-auth-solid:hover {background:#1b416b!important;}
#sbooks-mobile-menu {top:64px;max-height:calc(100vh - 64px);}
#sbooks-mobile-menu .sbooks-mobile-link,#sbooks-mobile-menu summary {color:#0b2545!important;}
#sbooks-mobile-menu .sbooks-mobile-children {background:#fff8ef;}
#sbooks-mobile-menu .sbooks-mobile-children a.sbooks-mobile-proposal {color:#bd5c14!important;font-weight:800!important;}
#sbooks-mobile-menu .sbooks-mobile-search button {background:#0b2545!important;}
@media (max-width:1200px) and (min-width:1025px) {
 #sbooks-site-header .sbooks-header-inner{gap:12px;padding:0 16px;}
 #sbooks-site-header .sbooks-desktop-nav{gap:14px;}
 #sbooks-site-header .sbooks-brand {min-width:200px;}
 #sbooks-site-header .sbooks-brand-title{font-size:20px;}
 #sbooks-site-header .sbooks-menu-link,#sbooks-site-header .sbooks-menu-toggle{font-size:13px!important;}
}
@media (max-width:782px) {
 .admin-bar #sbooks-mobile-menu {top:110px!important;max-height:calc(100vh - 110px);}
}
@media (max-width:768px) {
 body:has(#sbooks-site-header) {padding-top:58px!important;}
 #sbooks-site-header {height:58px!important;}
 #sbooks-site-header .sbooks-header-inner {height:55px;padding:0 16px;}
 #sbooks-site-header .sbooks-brand {min-width:0;gap:9px;}
 #sbooks-site-header .sbooks-brand-icon {width:35px;height:35px;}
 #sbooks-site-header .sbooks-brand-icon svg {width:23px;height:23px;}
 #sbooks-site-header .sbooks-brand-title {font-size:20px;}
 #sbooks-site-header .sbooks-brand-caption {font-size:7px;letter-spacing:.8px;}
 #sbooks-mobile-menu {top:58px;max-height:calc(100vh - 58px);}
}
@media (prefers-reduced-motion:reduce) {#sbooks-site-header *,#sbooks-mobile-menu *{transition:none!important;}}
/* Accessible account action buttons (desktop and mobile) */
#sbooks-site-header .sbooks-auth,#sbooks-mobile-menu .sbooks-auth {
 display:inline-flex!important;align-items:center;justify-content:center;
 min-height:37px;min-width:87px;padding:0 14px!important;border-radius:4px!important;
 font:800 13px/1.2 'Source Sans 3',Arial,sans-serif!important;
 text-transform:uppercase;letter-spacing:.4px;white-space:nowrap;text-decoration:none!important;
 transition:background .15s,color .15s;
}
#sbooks-mobile-menu .sbooks-mobile-actions .sbooks-auth {flex:1;}
#sbooks-site-header a:focus-visible,#sbooks-site-header button:focus-visible,
#sbooks-mobile-menu a:focus-visible,#sbooks-mobile-menu button:focus-visible,
#sbooks-mobile-menu summary:focus-visible {outline:2px solid #e8871e!important;outline-offset:2px;}

/* Updated brand logo image */
#sbooks-site-header .sbooks-brand{min-width:0!important;max-width:420px;}
#sbooks-site-header .sbooks-brand-logo{display:block;height:44px;width:auto;max-width:100%;object-fit:contain;}
@media (max-width:1200px) and (min-width:1025px){
  #sbooks-site-header .sbooks-brand{max-width:340px;}
  #sbooks-site-header .sbooks-brand-logo{height:40px;}
}
@media (max-width:768px){
  #sbooks-site-header .sbooks-brand{max-width:240px;gap:0;}
  #sbooks-site-header .sbooks-brand-logo{height:34px;}
}

/* v1.0.2: Standalone embedded SAFE Books logo — no broken WordPress asset URL. */
#sbooks-site-header {background:#ffffff!important;}
#sbooks-site-header .sbooks-brand {flex:0 0 auto!important;min-width:0!important;max-width:250px!important;}
#sbooks-site-header .sbooks-brand-logo {display:block!important;width:auto!important;height:39px!important;max-width:245px!important;object-fit:contain!important;}
@media(max-width:1200px) and (min-width:1025px){
  #sbooks-site-header .sbooks-brand-logo{height:36px!important;max-width:225px!important;}
}
@media(max-width:768px){
  #sbooks-site-header .sbooks-brand-logo{height:31px!important;max-width:196px!important;}
}

/* v1.0.3: smaller SAFE Books logo with subtitle below */
#sbooks-site-header .sbooks-brand{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:1px!important;flex:0 0 auto!important;min-width:0!important;max-width:245px!important;line-height:1!important;}
#sbooks-site-header .sbooks-brand-logo{display:block!important;width:auto!important;height:31px!important;max-width:215px!important;object-fit:contain!important;}
#sbooks-site-header .sbooks-brand-subtitle{display:block!important;font-family:'Source Sans 3',Arial,sans-serif!important;font-size:8px!important;line-height:1.05!important;letter-spacing:1.2px!important;font-weight:800!important;color:#617085!important;white-space:nowrap!important;text-transform:uppercase!important;}
@media (max-width:1200px) and (min-width:1025px){
  #sbooks-site-header .sbooks-brand{max-width:225px!important;}
  #sbooks-site-header .sbooks-brand-logo{height:29px!important;max-width:200px!important;}
  #sbooks-site-header .sbooks-brand-subtitle{font-size:7.2px!important;letter-spacing:1px!important;}
}
@media (max-width:768px){
  #sbooks-site-header .sbooks-brand{max-width:180px!important;gap:1px!important;}
  #sbooks-site-header .sbooks-brand-logo{height:25px!important;max-width:170px!important;}
  #sbooks-site-header .sbooks-brand-subtitle{font-size:6.2px!important;letter-spacing:.8px!important;}
}

/* v1.0.4: smaller logo and label strictly underneath (not alongside). */
#sbooks-site-header a.sbooks-brand {display:block!important;width:160px!important;min-width:160px!important;max-width:160px!important;flex:0 0 160px!important;}
#sbooks-site-header a.sbooks-brand > .sbooks-brand-stack {display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;width:160px!important;text-align:center!important;white-space:nowrap!important;}
#sbooks-site-header a.sbooks-brand .sbooks-brand-stack > img.sbooks-brand-logo {display:block!important;width:156px!important;height:auto!important;max-height:29px!important;max-width:156px!important;object-fit:contain!important;margin:0 auto!important;}
#sbooks-site-header a.sbooks-brand .sbooks-brand-stack > .sbooks-brand-subtitle {display:block!important;width:160px!important;margin:0!important;padding:0!important;font:700 8.2px/11px Arial,sans-serif!important;letter-spacing:.35px!important;white-space:nowrap!important;text-align:center!important;color:#334660!important;}

/* ===== v1.0.5: visible SAFE Books links, left-aligned over banner ===== */
@media(min-width:1351px){
  #sbooks-site-header .sbooks-header-inner{max-width:1372px!important;width:100%!important;padding-left:0!important;padding-right:0!important;gap:0!important;}
  #sbooks-site-header .sbooks-desktop-nav{flex:1 1 auto!important;min-width:0!important;margin-left:96px!important;justify-content:flex-start!important;gap:15px!important;}
  #sbooks-site-header .sbooks-menu-link, #sbooks-site-header .sbooks-menu-toggle{font-size:12.3px!important;letter-spacing:.1px!important;font-weight:800!important;}
  #sbooks-site-header .sbooks-search-wrap{margin-left:auto!important;}
  #sbooks-site-header .sbooks-auth{min-width:77px!important;padding:0 10px!important;font-size:12px!important;}
  #sbooks-site-header .sbooks-dropdown-panel{width:395px!important;min-width:395px!important;min-height:130px!important;}
  #sbooks-site-header .sbooks-panel-aside{width:137px!important;padding:22px 15px!important;}
  #sbooks-site-header .sbooks-panel-links a{font-size:13.5px!important;padding:12px 16px!important;}
}
@media(min-width:1351px) and (max-width:1450px){
  #sbooks-site-header .sbooks-header-inner{padding:0 18px!important;}
  #sbooks-site-header .sbooks-desktop-nav{margin-left:76px!important;gap:12px!important;}
  #sbooks-site-header .sbooks-menu-link,#sbooks-site-header .sbooks-menu-toggle{font-size:11.8px!important;}
}
@media(max-width:1350px){
  #sbooks-site-header .sbooks-desktop-nav{display:none!important;}
  #sbooks-site-header .sbooks-hamburger{display:flex!important;}
}
#sbooks-site-header .sbooks-menu-proposal{color:#b25a18!important;}
#sbooks-site-header .sbooks-menu-proposal:hover{color:#0b2545!important;}
#sbooks-mobile-menu .sbooks-mobile-proposal{font-weight:800!important;color:#b25a18!important;}

/* v1.0.8: dedicated two-logo HORIZONTAL brand area. Does not reuse old brand CSS. */
#sbooks-site-header .sbooks-brand-pair {
  display:inline-flex!important;
  flex-flow:row nowrap!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  align-self:center!important;
  gap:10px!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  height:45px!important;
  max-height:45px!important;
  padding:0!important;
  margin:0!important;
  position:static!important;
  overflow:visible!important;
  white-space:nowrap!important;
}
#sbooks-site-header .sbooks-brand-pair > a.sbooks-publisher-mark,
#sbooks-site-header .sbooks-brand-pair > a.sbooks-books-mark {
  display:inline-flex!important;
  flex-flow:row nowrap!important;
  flex:0 0 auto!important;
  justify-content:center!important;
  align-items:center!important;
  width:auto!important;
  height:44px!important;
  max-height:44px!important;
  min-height:0!important;
  line-height:1!important;
  background:transparent!important;
  border:0!important;
  padding:0!important;
  margin:0!important;
  position:static!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  text-decoration:none!important;
}
#sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image,
#sbooks-site-header .sbooks-brand-pair .sbooks-books-image {
  display:block!important;
  position:static!important;
  vertical-align:middle!important;
  width:auto!important;
  height:32px!important;
  max-height:32px!important;
  max-width:none!important;
  object-fit:contain!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
#sbooks-site-header .sbooks-brand-pair .sbooks-books-image {
  height:29px!important;max-height:29px!important;
}
#sbooks-site-header .sbooks-brand-pair > .sbooks-brand-separator {
  display:block!important;
  flex:0 0 1px!important;
  width:1px!important;
  height:27px!important;
  min-height:27px!important;
  max-height:27px!important;
  border:0!important;
  padding:0!important;
  margin:0!important;
  background:#aeb5bd!important;
  position:static!important;
}
/* Let the navigation start just after the paired logos rather than reserving
   the previous 96px spacer, with enough room for every requested link. */
@media (min-width:1351px) {
 #sbooks-site-header .sbooks-header-inner {gap:0!important;}
 #sbooks-site-header .sbooks-desktop-nav {margin-left:24px!important;gap:13px!important;}
}
@media (min-width:1351px) and (max-width:1450px) {
 #sbooks-site-header .sbooks-desktop-nav {margin-left:18px!important;gap:11px!important;}
}
@media (max-width:768px) {
 #sbooks-site-header .sbooks-brand-pair {gap:6px!important;height:40px!important;max-height:40px!important;}
 #sbooks-site-header .sbooks-brand-pair > a.sbooks-publisher-mark,
 #sbooks-site-header .sbooks-brand-pair > a.sbooks-books-mark {height:38px!important;max-height:38px!important;}
 #sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image{height:24px!important;max-height:24px!important;}
 #sbooks-site-header .sbooks-brand-pair .sbooks-books-image{height:22px!important;max-height:22px!important;}
 #sbooks-site-header .sbooks-brand-pair > .sbooks-brand-separator{height:22px!important;min-height:22px!important;max-height:22px!important;}
}
@media (max-width:410px) {
 #sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image{height:20px!important;max-height:20px!important;}
 #sbooks-site-header .sbooks-brand-pair .sbooks-books-image{height:19px!important;max-height:19px!important;}
 #sbooks-site-header .sbooks-brand-pair > .sbooks-brand-separator{height:20px!important;min-height:20px!important;max-height:20px!important;}
}

/* v1.0.9: move brand block left, enlarge publisher logo, reduce SAFE Books logo */
#sbooks-site-header .sbooks-header-inner{max-width:none!important;width:100%!important;padding-left:14px!important;padding-right:18px!important;gap:14px!important;justify-content:flex-start!important;}
#sbooks-site-header .sbooks-brand-pair{flex:0 0 auto!important;margin-right:26px!important;gap:8px!important;justify-content:flex-start!important;align-items:center!important;}
#sbooks-site-header .sbooks-brand-pair > a.sbooks-publisher-mark{height:42px!important;max-height:42px!important;}
#sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image{height:30px!important;max-height:30px!important;width:auto!important;max-width:190px!important;object-fit:contain!important;}
#sbooks-site-header .sbooks-brand-pair > a.sbooks-books-mark{height:40px!important;max-height:40px!important;}
#sbooks-site-header .sbooks-brand-pair .sbooks-books-image{height:24px!important;max-height:24px!important;width:auto!important;max-width:125px!important;object-fit:contain!important;}
#sbooks-site-header .sbooks-brand-pair > .sbooks-brand-separator{height:28px!important;min-height:28px!important;max-height:28px!important;background:#b9c0c8!important;}
#sbooks-site-header .sbooks-desktop-nav{margin-left:0!important;justify-content:flex-start!important;flex:1 1 auto!important;gap:18px!important;}
@media (max-width:1400px){
  #sbooks-site-header .sbooks-header-inner{padding-left:12px!important;padding-right:14px!important;gap:10px!important;}
  #sbooks-site-header .sbooks-brand-pair{margin-right:18px!important;}
  #sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image{height:28px!important;max-width:176px!important;}
  #sbooks-site-header .sbooks-brand-pair .sbooks-books-image{height:22px!important;max-width:116px!important;}
}
@media (max-width:1024px){
  #sbooks-site-header .sbooks-header-inner{padding-left:12px!important;padding-right:12px!important;}
}
@media (max-width:768px){
  #sbooks-site-header .sbooks-header-inner{padding-left:10px!important;padding-right:10px!important;}
  #sbooks-site-header .sbooks-brand-pair{gap:6px!important;margin-right:10px!important;}
  #sbooks-site-header .sbooks-brand-pair > a.sbooks-publisher-mark{height:34px!important;max-height:34px!important;}
  #sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image{height:24px!important;max-width:148px!important;}
  #sbooks-site-header .sbooks-brand-pair > a.sbooks-books-mark{height:32px!important;max-height:32px!important;}
  #sbooks-site-header .sbooks-brand-pair .sbooks-books-image{height:19px!important;max-width:98px!important;}
  #sbooks-site-header .sbooks-brand-pair > .sbooks-brand-separator{height:22px!important;min-height:22px!important;max-height:22px!important;}
}

/* v1.1.0: stronger left alignment, bigger publisher logo, smaller SAFE Books logo */
#sbooks-site-header .sbooks-header-inner{padding-left:4px!important;padding-right:16px!important;gap:10px!important;justify-content:flex-start!important;}
#sbooks-site-header .sbooks-brand-pair{margin-right:18px!important;gap:7px!important;justify-content:flex-start!important;align-items:center!important;}
#sbooks-site-header .sbooks-brand-pair > a.sbooks-publisher-mark{height:46px!important;max-height:46px!important;}
#sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image{height:34px!important;max-height:34px!important;max-width:215px!important;width:auto!important;object-fit:contain!important;opacity:1!important;}
#sbooks-site-header .sbooks-brand-pair > a.sbooks-books-mark{height:36px!important;max-height:36px!important;}
#sbooks-site-header .sbooks-brand-pair .sbooks-books-image{height:21px!important;max-height:21px!important;max-width:112px!important;width:auto!important;object-fit:contain!important;}
#sbooks-site-header .sbooks-brand-pair > .sbooks-brand-separator{height:30px!important;min-height:30px!important;max-height:30px!important;background:#b8bfc7!important;}
#sbooks-site-header .sbooks-desktop-nav{margin-left:0!important;gap:17px!important;justify-content:flex-start!important;}
@media (max-width:1400px){
  #sbooks-site-header .sbooks-header-inner{padding-left:4px!important;padding-right:12px!important;}
  #sbooks-site-header .sbooks-brand-pair{margin-right:14px!important;}
  #sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image{height:31px!important;max-width:196px!important;}
  #sbooks-site-header .sbooks-brand-pair .sbooks-books-image{height:20px!important;max-width:105px!important;}
}
@media (max-width:768px){
  #sbooks-site-header .sbooks-header-inner{padding-left:8px!important;padding-right:10px!important;}
  #sbooks-site-header .sbooks-brand-pair{margin-right:8px!important;gap:6px!important;}
  #sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image{height:24px!important;max-width:150px!important;}
  #sbooks-site-header .sbooks-brand-pair .sbooks-books-image{height:17px!important;max-width:90px!important;}
  #sbooks-site-header .sbooks-brand-pair > .sbooks-brand-separator{height:22px!important;min-height:22px!important;max-height:22px!important;}
}

/* v1.1.1: hard left alignment and visual size hierarchy. */
#sbooks-site-header .sbooks-header-inner{
 width:100%!important;max-width:none!important;margin:0!important;
 padding-left:12px!important;padding-right:16px!important;gap:0!important;
 justify-content:flex-start!important;
}
#sbooks-site-header .sbooks-brand-pair{
 display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
 justify-content:flex-start!important;flex:0 0 auto!important;gap:8px!important;
 margin:0!important;padding:0!important;height:54px!important;max-height:54px!important;
}
#sbooks-site-header .sbooks-brand-pair > a.sbooks-publisher-mark,
#sbooks-site-header .sbooks-brand-pair > a.sbooks-books-mark{
 height:52px!important;max-height:52px!important;display:flex!important;align-items:center!important;
}
#sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image{
 display:block!important;height:46px!important;max-height:46px!important;max-width:none!important;
 width:auto!important;opacity:1!important;filter:none!important;
}
#sbooks-site-header .sbooks-brand-pair .sbooks-books-image{
 display:block!important;height:19px!important;max-height:19px!important;max-width:none!important;width:auto!important;
}
#sbooks-site-header .sbooks-brand-pair > .sbooks-brand-separator{
 height:31px!important;min-height:31px!important;max-height:31px!important;
 width:1px!important;flex:0 0 1px!important;background:#b0b9c2!important;
}
#sbooks-site-header .sbooks-desktop-nav{
 margin-left:22px!important;gap:17px!important;flex:1 1 auto!important;
 justify-content:flex-start!important;min-width:0!important;
}
@media (min-width:1351px) and (max-width:1550px){
 #sbooks-site-header .sbooks-desktop-nav{gap:12px!important;margin-left:16px!important;}
}
@media (max-width:1350px){
 #sbooks-site-header .sbooks-header-inner{padding-left:12px!important;padding-right:12px!important;}
 #sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image{height:42px!important;max-height:42px!important;}
 #sbooks-site-header .sbooks-brand-pair .sbooks-books-image{height:18px!important;max-height:18px!important;}
}
@media (max-width:768px){
 #sbooks-site-header .sbooks-header-inner{padding-left:10px!important;padding-right:10px!important;}
 #sbooks-site-header .sbooks-brand-pair{gap:6px!important;height:46px!important;max-height:46px!important;}
 #sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image{height:28px!important;max-height:28px!important;}
 #sbooks-site-header .sbooks-brand-pair .sbooks-books-image{height:15px!important;max-height:15px!important;}
 #sbooks-site-header .sbooks-brand-pair > .sbooks-brand-separator{height:22px!important;min-height:22px!important;max-height:22px!important;}
}
@media (max-width:360px){
 #sbooks-site-header .sbooks-brand-pair .sbooks-publisher-image{height:24px!important;max-height:24px!important;}
 #sbooks-site-header .sbooks-brand-pair .sbooks-books-image{height:14px!important;max-height:14px!important;}
}

/* v1.1.2: align About Us with SAFE BOOKS banner; slightly enlarge Books mark. */
@media (min-width:1351px) {
  #sbooks-site-header .sbooks-brand-pair .sbooks-books-image {
    height:23px!important;
    max-height:23px!important;
  }
  #sbooks-site-header .sbooks-desktop-nav {
    margin-left:35px!important;
  }
}
@media (min-width:769px) and (max-width:1350px) {
  #sbooks-site-header .sbooks-brand-pair .sbooks-books-image {
    height:21px!important;
    max-height:21px!important;
  }
}
@media (min-width:361px) and (max-width:768px) {
  #sbooks-site-header .sbooks-brand-pair .sbooks-books-image {
    height:18px!important;
    max-height:18px!important;
  }
}
@media (max-width:360px) {
  #sbooks-site-header .sbooks-brand-pair .sbooks-books-image {
    height:16px!important;
    max-height:16px!important;
  }
}
