/* BiblioIndex v2 — sign in / register / onboarding */
*,*::before,*::after{box-sizing:border-box}
::selection{background:#2F7A55;color:#fff}
body.ax{margin:0;background:#F5F3EE;color:#1F2421;font-family:'Hanken Grotesk',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
.ax button{font-family:inherit}
.ax-serif{font-family:'Cormorant Garamond',serif}

/* split layout */
.ax-split{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));min-height:100vh;container-type:inline-size}
.ax-hero{background:#1B2420;color:#C3CBC5;padding:36px clamp(20px,5cqw,48px) 0;display:flex;flex-direction:column;min-height:100vh;overflow:hidden;scroll-snap-align:start}
.ax-brand{display:flex;align-items:center;gap:11px}
.ax-logo{width:32px;height:32px;border-radius:8px;background:#2F7A55;color:#fff;display:grid;place-items:center;font-family:'Cormorant Garamond',serif;font-weight:600;font-size:20px}
.ax-wordmark{font-family:'Cormorant Garamond',serif;font-size:22px;font-weight:600;color:#F4F1EA}
.ax-wordmark span{color:#7FC9A1}
.ax-hero-body{margin-top:auto;max-width:460px;padding:48px 0 40px}
.ax-hero h2{font-family:'Cormorant Garamond',serif;font-size:46px;font-weight:500;line-height:1.08;color:#F4F1EA;text-wrap:balance;margin:0}
.ax-hero p{margin:18px 0 0;font-size:15px;line-height:1.6;color:#8E9A93;text-wrap:pretty}
.ax-more{display:none;text-decoration:none;margin-top:28px;align-items:center;gap:8px;height:44px;padding:0 20px;border:1px solid rgba(244,241,234,.28);border-radius:22px;background:transparent;color:#F4F1EA;font-size:14px;font-weight:600;cursor:pointer}
.ax-more:hover{border-color:#F4F1EA}
.ax-shelf{-webkit-user-select:none;user-select:none;margin-top:auto;display:flex;flex-wrap:wrap;column-gap:2px;height:170px;overflow:hidden}
.ax-slot{flex:none;height:170px;display:flex;align-items:flex-end}
.ax-board{height:12px;margin:0 -48px;background:linear-gradient(#8E6D4A,#6F5236);flex-shrink:0}
.ax-spine{width:100%;border-radius:2px 2px 0 0;padding:10px 0;display:flex;justify-content:center;overflow:hidden;box-shadow:inset 2px 0 0 rgba(255,255,255,.12),inset -2px 0 0 rgba(0,0,0,.18)}
.ax-spine span{writing-mode:vertical-rl;transform:rotate(180deg);font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* form panel */
.ax-panel{display:flex;justify-content:center;align-items:center;padding:48px 32px;min-height:100vh;scroll-snap-align:start}
.ax-inner{max-width:380px;width:100%;display:flex;flex-direction:column;min-height:100%;}
.ax-inner>.ax-content{width:100%}
.ax-spacer{flex:1;min-height:44px}
.ax-eyebrow{font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:#2F7A55}
.ax h1{font-family:'Cormorant Garamond',serif;font-weight:500;font-size:40px;line-height:1.08;margin:10px 0 8px;text-wrap:balance}
.ax-lead{margin:0 0 28px;font-size:14px;line-height:1.55;color:#6B6F68}
.ax-link{border:0;background:none;padding:0;color:#2F7A55;font-weight:600;cursor:pointer;font-size:inherit;text-decoration:none}
.ax-link:hover{text-decoration:underline}
.ax-notice{padding:12px 14px;border-radius:9px;background:#EAF2EC;color:#1F5C3E;font-size:13px;font-weight:600;margin-bottom:18px}
.ax-fields{display:flex;flex-direction:column;gap:16px}
.ax-label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.ax-opt{font-weight:500;color:#9A9C94}
.ax-labelrow{display:flex;justify-content:space-between;align-items:baseline}
.ax-labelrow .ax-link{font-size:13px}
.ax-input{height:44px;padding:0 12px;border:1px solid #DCD7CC;border-radius:8px;background:#fff;font:inherit;font-size:14px;color:#1F2421;outline:none;width:100%}
.ax-input:focus,.ax-slug:focus-within{border-color:#2F7A55;box-shadow:0 0 0 3px rgba(47,122,85,.15)}
.ax-err{font-size:13px;color:#A03A34;font-weight:600}
.ax-btn{width:100%;height:46px;border:0;border-radius:9px;background:#2F7A55;color:#fff;font-size:15px;font-weight:600;cursor:pointer}
.ax-btn:hover{background:#286B4A}
.ax-btn.sm{width:auto;height:44px;padding:0 22px}
.ax-btn2{height:46px;padding:0 16px;border:1px solid #CFC9BB;border-radius:9px;background:transparent;color:#1F2421;font-size:14px;font-weight:600;cursor:pointer;width:100%}
.ax-btn2:disabled{color:#9A9C94;cursor:default}
.ax-btn2.dash{width:auto;height:40px;border-radius:8px;border-style:dashed;border-color:#9CC5AE;color:#1F5C3E}
.ax-info{display:flex;gap:12px;padding:14px 16px;border-radius:10px;background:#F0ECE3;font-size:13px;line-height:1.5;color:#4A4E48}
.ax-info i{width:8px;height:8px;border-radius:50%;background:#D4A04A;margin-top:6px;flex-shrink:0}
.ax-back{display:inline-flex;align-items:center;gap:6px;color:#2F7A55;font-weight:600;font-size:13px;margin-top:22px;text-decoration:none;border:0;background:none;padding:0;cursor:pointer}

/* password meter */
.ax-meter{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:8px}
.ax-meter span{height:4px;border-radius:2px;background:#E4E0D6}
.ax-meter-label{font-size:12px;color:#6B6F68;margin-top:6px}

/* terms checkbox */
.ax-terms{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;color:#4A4E48;cursor:pointer}
.ax-terms input{position:absolute;opacity:0;pointer-events:none}
.ax-box{width:18px;height:18px;flex-shrink:0;margin-top:1px;border-radius:5px;border:1.5px solid #CFC9BB;background:#fff;color:#fff;font-size:11px;font-weight:700;line-height:1;display:grid;place-items:center}
.ax-terms.err .ax-box{border-color:#C76A63}
.ax-terms input:checked+.ax-box{background:#2F7A55;border-color:#2F7A55}
.ax-terms input:checked+.ax-box::after{content:'✓'}
.ax-terms input:focus-visible+.ax-box{box-shadow:0 0 0 3px rgba(47,122,85,.25)}
.ax-terms a{color:#2F7A55;font-weight:600}

/* footer */
.ax-foot{padding-top:18px;border-top:1px solid #E4E0D6;font-size:12px;color:#9A9C94;display:flex;flex-direction:column;gap:10px}

/* pending timeline */
.ax-tl{display:flex;flex-direction:column}
.ax-step{display:flex;gap:14px}
.ax-step-rail{display:flex;flex-direction:column;align-items:center;flex-shrink:0}
.ax-dot{width:26px;height:26px;border-radius:50%;border:2px solid;display:grid;place-items:center;font-size:12px;font-weight:700}
.ax-line{flex:1;width:2px;min-height:14px;margin:4px 0;border-radius:1px}
.ax-step-body{padding-bottom:20px}
.ax-step-title{font-size:14px;font-weight:600}
.ax-step-sub{font-size:13px;color:#6B6F68;margin-top:2px}
.ax-signout{border:0;background:none;padding:0;color:#6B6F68;font-weight:600;font-size:13px;cursor:pointer}

/* onboarding */
.ax-ob{min-height:100vh;display:flex;justify-content:center;padding:36px 24px 64px}
.ax-ob-in{width:100%;max-width:620px}
.ax-ob-head{display:flex;align-items:center;justify-content:space-between}
.ax-ob-head .ax-logo{width:30px;height:30px;font-size:19px}
.ax-ob-head .ax-wordmark{font-size:21px;color:#1F2421}
.ax-ob-head .ax-wordmark span{color:#2F7A55}
.ax-prog{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:28px 0 32px}
.ax-prog div i{display:block;height:4px;border-radius:2px;background:#E4E0D6}
.ax-prog div b{display:block;font-size:12px;font-weight:600;margin-top:8px;color:#9A9C94}
.ax-prog div.on i{background:#2F7A55}
.ax-prog div.on b{color:#1F2421}
.ax-card{background:#FCFBF8;border:1px solid #E4E0D6;border-radius:12px;padding:32px}
.ax-card h1{font-size:36px}
.ax-idrow{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px}
.ax-slug{display:flex;align-items:center;height:44px;border:1px solid #DCD7CC;border-radius:8px;background:#fff;overflow:hidden}
.ax-slug span{padding-left:12px;font-family:'JetBrains Mono',monospace;font-size:12px;color:#9A9C94;white-space:nowrap}
.ax-slug input{flex:1;min-width:0;height:100%;border:0;outline:none;background:transparent;font-family:'JetBrains Mono',monospace;font-size:13px;color:#1F2421;padding:0 12px 0 1px}
.ax-pub{display:flex;gap:16px;align-items:flex-start;padding-top:16px;border-top:1px solid #EEEAE1}
.ax-pub>div{flex:1}
.ax-pub b{display:block;font-size:14px;font-weight:600}
.ax-pub small{display:block;font-size:13px;color:#6B6F68;margin-top:2px;line-height:1.5}
.ax-case{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid #EEEAE1}
.ax-case>span{flex:1;font-family:'Cormorant Garamond',serif;font-size:21px;font-weight:500}
.ax-case-name{flex:1;min-width:0;display:flex;align-items:center;gap:8px;color:#9A9C94;cursor:text}
.ax-case-name input{flex:0 1 auto;min-width:0;width:100%;max-width:260px;border:0;border-bottom:1px dashed transparent;background:transparent;padding:2px 0;font-family:'Cormorant Garamond',serif;font-size:21px;font-weight:500;color:#1F2421;outline:none}
.ax-case-name:hover input,.ax-case-name input:focus{border-bottom-color:#B9C9BF}
.ax-case-name .ico{flex:none;width:15px;height:15px}
.ax-stepper{display:flex;align-items:center;border:1px solid #DCD7CC;border-radius:8px;background:#fff;height:34px}
.ax-stepper button{width:32px;height:100%;border:0;background:transparent;cursor:pointer;font-size:16px;color:#4A4E48}
.ax-stepper span{min-width:74px;text-align:center;font-size:13px;font-weight:600}
.ax-x{width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:#9A9C94;cursor:pointer;font-size:16px}
.ax-x:hover{background:#F0ECE3}
.ax-add{display:flex;gap:10px;padding-top:14px;border-top:1px solid #EEEAE1}
.ax-add .ax-input{flex:1;height:40px}
.ax-add .ax-btn2{width:auto;height:40px;border-radius:8px}
.ax-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.ax-chip{height:30px;padding:0 12px;border:1px dashed #9CC5AE;border-radius:15px;background:transparent;color:#2F7A55;font-size:13px;font-weight:600;cursor:pointer}
.ax-choices{display:flex;flex-direction:column;gap:10px}
.ax-choice{text-align:left;padding:16px 18px;border-radius:10px;border:1px solid #E4E0D6;background:#fff;cursor:pointer;color:#1F2421}
.ax-choice{display:block;position:relative}
.ax-choice input{position:absolute;opacity:0;pointer-events:none}
.ax-choice:has(input:checked){border-color:#2F7A55;background:#EAF2EC}
.ax-choice:has(input:focus-visible){box-shadow:0 0 0 3px rgba(47,122,85,.25)}
.ax-default{position:absolute;width:0;height:0;padding:0;border:0;opacity:0;overflow:hidden}
.ax-sw{flex-shrink:0;position:relative;width:42px;height:24px;cursor:pointer}
.ax-sw input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.ax-sw span{position:absolute;inset:0;border-radius:12px;background:#CFC9BB;transition:background .15s;pointer-events:none}
.ax-sw span::after{content:'';position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
.ax-sw input:checked+span{background:#2F7A55}
.ax-sw input:checked+span::after{transform:translateX(18px)}
.ax-sw input:disabled{cursor:not-allowed}
.ax-sw input:disabled+span{opacity:.55}
.ax-sw input:focus-visible+span{box-shadow:0 0 0 3px rgba(47,122,85,.25)}
.ax-choice b{display:block;font-family:'Cormorant Garamond',serif;font-size:21px;font-weight:500}
.ax-choice small{display:block;font-size:13px;color:#6B6F68;margin-top:2px}
.ax-nav{display:flex;justify-content:space-between;align-items:center;margin-top:28px}
.ax-nav .ax-back{margin:0;font-size:14px}

/* compact: snap between shelf and form */
@media (max-width:899px){
  html.ax-snap{scroll-snap-type:y mandatory}
  .ax-hero-body{margin-top:clamp(24px,8vh,72px)}
  .ax-more{display:inline-flex}
  .ax-panel{align-items:stretch;padding:48px 32px 28px}
}
@media (max-width:480px){.ax-card{padding:24px 20px}.ax-idrow{grid-template-columns:90px minmax(0,1fr)}.ax-hero h2{font-size:38px}}

/* social + footer extras */
.ax-social{display:flex;align-items:center;justify-content:center;height:44px;border:1px solid #DCD7CC;border-radius:9px;background:#fff;color:#1F2421;font-size:14px;font-weight:600;text-decoration:none}
.ax-social:hover{border-color:#1F2421}
.ax-social.dark{background:#1F2421;border-color:#1F2421;color:#fff}
.ax-social.dark:hover{background:#000}
.ax-or{display:flex;align-items:center;gap:12px;margin:22px 0;font-size:12px;color:#9A9C94}
.ax-or span{flex:1;height:1px;background:#E4E0D6}
.ax-foot-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ax-lang{display:flex;align-items:center;gap:2px;padding:2px;border:1px solid #E4E0D6;border-radius:999px}
.ax-lang button{display:flex;align-items:center;height:26px;padding:0 9px;border:0;border-radius:999px;background:transparent;cursor:pointer}
.ax-lang button.on{background:#1F2421}
.ax-legal{display:flex;flex-wrap:wrap;gap:6px 16px}
.ax-legal a{color:#6B6F68;text-decoration:none}
.ax-legal a:hover{text-decoration:underline}

/* toasts (CSS only: auto-hide after 6s, or close via the label) */
#ax-toast-off{position:fixed;top:0;left:0;opacity:0;pointer-events:none}
.ax-toasts{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(27,36,32,.45);backdrop-filter:blur(2px);animation:ax-hide .3s 6s forwards}
#ax-toast-off:checked~.ax-toasts{display:none}
.ax-toast-bg{position:absolute;inset:0;cursor:pointer}
.ax-toast{position:relative;display:flex;align-items:center;gap:16px;width:min(440px,100%);padding:20px 20px 20px 22px;border-radius:14px;background:#FCFBF8;border:1px solid #E4E0D6;border-top:5px solid #C76A63;box-shadow:0 24px 60px rgba(0,0,0,.35);animation:ax-pop .22s cubic-bezier(.2,.9,.3,1.2)}
.ax-toast.ok{border-top-color:#2F7A55}
.ax-toast-ico{flex:none;width:40px;height:40px;border-radius:50%;background:#A03A34;color:#fff;display:grid;place-items:center;font-size:22px;font-weight:700}
.ax-toast.ok .ax-toast-ico{background:#2F7A55}
.ax-toast-msg{flex:1;font-size:16px;font-weight:600;line-height:1.4;color:#1F2421}
.ax-toast-x{flex:none;width:32px;height:32px;border-radius:8px;color:#6B6F68;font-size:22px;line-height:32px;text-align:center;cursor:pointer}
.ax-toast-x:hover{background:#F0ECE3}
@keyframes ax-pop{from{opacity:0;transform:scale(.92) translateY(8px)}}
@keyframes ax-hide{to{opacity:0;visibility:hidden}}

html{scroll-behavior:smooth}

/* legal pages */
.lg:not(.cover){min-height:100vh;background:#F7F5F0;color:#1F2421}
.lg-head{position:sticky;top:0;z-index:5;background:rgba(247,245,240,.94);backdrop-filter:blur(8px);border-bottom:1px solid #E4E0D6}
.lg-head-in{max-width:1080px;margin:0 auto;padding:14px clamp(16px,4.5vw,40px);display:flex;align-items:center;justify-content:space-between;gap:16px}
.lg-back{height:36px;padding:0 14px;border:1px solid #DCD7CC;border-radius:8px;background:#fff;color:#1F2421;font-size:13px;font-weight:600;display:flex;align-items:center;gap:6px;text-decoration:none}
.lg-back:hover{border-color:#B9B3A6}
.lg-wrap{max-width:1080px;margin:0 auto;padding:clamp(24px,5vw,56px) clamp(16px,4.5vw,40px) 96px;display:flex;flex-wrap:wrap;gap:clamp(24px,5vw,64px);align-items:flex-start}
.lg-navwrap{position:sticky;top:90px;flex:1 1 190px;max-width:230px;min-width:0}
.lg-nav{display:flex;flex-direction:column;gap:2px}
.lg-nav>a{padding:9px 12px;border-radius:8px;color:#6B6F68;font-size:14px;font-weight:500;text-decoration:none;white-space:nowrap}
.lg-nav>a:hover{background:#EFEBE3}
.lg-nav>a.on{background:#EFEBE3;color:#1F2421;font-weight:600}
.lg-nav>.lg-sub{display:flex;flex-direction:column;gap:1px;margin:2px 0 8px 14px;padding-left:10px;border-left:1px solid #E4E0D6}
.lg-sub a{display:flex;gap:8px;padding:5px 8px;border-radius:6px;color:#6B6F68;font-size:13px;line-height:1.35;text-decoration:none}
.lg-sub a span{font-family:'JetBrains Mono',monospace;font-size:11px;color:#9A9C94;padding-top:2px}
.lg-sub a:hover{background:#EFEBE3;color:#1F2421}
.lg-sub a.on{color:#1F2421;font-weight:600}.lg-sub a.on span{color:#2F7A55}
.lg-sec{scroll-margin-top:90px}
.lg-nav-h{font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#9A9C94;padding:0 12px 10px}
.lg-nav-q{margin-top:18px;padding:14px 12px 0;border-top:1px solid #E4E0D6;font-size:12px;line-height:1.55;color:#6B6F68}
.lg-nav-q a{color:#2F7A55;padding:0;display:inline;background:none}
.lg-art{flex:999 1 440px;min-width:0;max-width:700px}
.lg-art a{color:#2F7A55;text-decoration:underline;text-underline-offset:2px}
.lg-art a:hover{color:#286B4A}
.lg-title{font-family:'Cormorant Garamond',serif;font-weight:500;font-size:clamp(38px,6vw,54px)!important;line-height:1.05;margin:10px 0 12px!important}
.lg-upd{font-size:13px;color:#9A9C94}
.lg-intro{font-size:16px;line-height:1.65;color:#4A4E48;margin:24px 0 0;text-wrap:pretty}.lg-intro p{margin:0 0 10px}.lg-intro p:last-child{margin-bottom:0}.lg-intro ul,.lg-intro ol{margin:0 0 10px;padding-left:22px}
.lg-sec{margin-top:40px}
.lg-sec h2,.lg-h2,.lg-prefs h2{font-family:'Cormorant Garamond',serif;font-weight:500;margin:0}
.lg-sec h2{display:flex;gap:12px;align-items:baseline;font-size:28px;line-height:1.15;margin-bottom:12px}
.lg-sec h2 span{font-family:'JetBrains Mono',monospace;font-size:13px;color:#2F7A55}
.lg-sec p,.lg-sec li{font-size:15px;line-height:1.7;color:#4A4E48;margin:0 0 12px;text-wrap:pretty}
.lg-sec ul,.lg-sec ol{margin:0 0 12px;padding-left:22px}.lg-sec li{margin:0 0 4px}.lg-sec strong{color:#2A2E29}.lg-sec a,.lg-intro a{color:#2F7A55}.lg-sec h3{font-size:16px;font-weight:700;color:#2A2E29;margin:18px 0 6px}
.lg-rows{margin-top:32px;background:#FCFBF8;border:1px solid #E4E0D6;border-radius:12px;overflow:hidden}
.lg-rows>div{display:flex;flex-wrap:wrap;gap:4px 24px;padding:14px 22px;border-top:1px solid #EEEAE1}
.lg-rows>div:first-child{border-top:0}
.lg-rows .k{flex:0 0 200px;font-size:13px;font-weight:600;color:#6B6F68}
.lg-rows .v{flex:1 1 240px;min-width:0;font-size:14px;line-height:1.5}
.lg-prefs{margin-top:32px;background:#FCFBF8;border:1px solid #E4E0D6;border-radius:12px;padding:24px}
.lg-prefs h2{font-size:26px}
.lg-prefs .note{margin:4px 0 6px;font-size:13px;color:#6B6F68}
.lg-prefs .row{display:flex;gap:16px;align-items:flex-start;padding:16px 0;border-top:1px solid #EEEAE1;margin-top:10px}
.lg-prefs .row>div{flex:1;min-width:0}
.lg-prefs .row b{display:block;font-size:14px;font-weight:600}
.lg-prefs .row small{display:block;font-size:13px;line-height:1.5;color:#6B6F68;margin-top:2px}
.lg-prefs .actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding-top:16px;border-top:1px solid #EEEAE1}
.lg-save{height:40px;padding:0 18px;border:0;border-radius:8px;background:#2F7A55;color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.lg-save:hover{background:#25664A}
.lg-all{height:40px;padding:0 16px;border:1px solid #DCD7CC;border-radius:8px;background:#fff;color:#1F2421;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.lg-withdraw{height:40px;padding:0 16px;border:1px solid transparent;border-radius:8px;background:none;color:#9B3A2E;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.lg-withdraw:hover{background:#F8E1DE}
.lg-prefs .withdraw-note{margin:10px 0 0;font-size:12.5px;color:#6B6F68}
.lg-prefs .consent-id{margin:14px 0 0;font-size:13px;color:#4A4E48}
.lg-prefs .consent-id code{font-family:'JetBrains Mono',monospace;font-size:12.5px;background:#F1EEE6;border-radius:4px;padding:2px 6px;user-select:all}
.lg-prefs .consent-id small{display:block;margin-top:4px;font-size:12px;color:#6B6F68}
.lg-h2{font-size:28px;margin:44px 0 6px!important}
.lg-cookies{display:flex;flex-direction:column;border:1px solid #E4E0D6;border-radius:12px;overflow:hidden;background:#fff}
.lg-cookies>div{padding:14px 18px;border-top:1px solid #EEEAE1;display:flex;flex-direction:column;gap:4px}
.lg-cookies>div:first-child{border-top:0}
.lg-cookies .top{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline}
.lg-cookies .n{font-family:'JetBrains Mono',monospace;font-size:13px;font-weight:600}
.lg-cookies .c{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.lg-cookies .c.necessary{color:#2F7A55}.lg-cookies .c.analytics{color:#9A6A1E}.lg-cookies .c.preferences{color:#5A6FA0}
.lg-cookies .d{margin-left:auto;font-size:12px;color:#9A9C94}
.lg-cookies .p{font-size:13px;line-height:1.5;color:#4A4E48}

@media (max-width:899px){
  .lg-navwrap{position:relative;top:auto;flex:1 1 100%;max-width:none}
  .lg-nav{flex-direction:row;overflow-x:auto;scrollbar-width:none;padding-bottom:12px;border-bottom:1px solid #E4E0D6;gap:4px}
  .lg-nav::-webkit-scrollbar{display:none}
  .lg-nav>a{padding:0 14px;min-height:44px;display:flex;align-items:center;flex-shrink:0}
  .lg-nav-h,.lg-nav-q,.lg-nav>.lg-sub{display:none}
}
/* language switch: the same flag files as the book languages (public/flags) */
.ax-flag{display:block;width:24px;height:18px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.08)}

/* Sidebar preview on the profile step */
.ax-prev{margin:0 0 22px;border-radius:14px;background:#1B2420;padding:14px 16px;display:flex;flex-direction:column;gap:14px;max-width:300px}
.ax-prev-top,.ax-prev-foot{display:flex;align-items:center;gap:11px;min-width:0}
.ax-prev-top{padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.08)}
.ax-prev-mark{flex:none;width:32px;height:32px;border-radius:9px;background:#2F7A55;color:#fff;display:grid;place-items:center;font-family:'Cormorant Garamond',serif;font-weight:600;font-size:18px}
.ax-prev-brand{display:block;font-family:'Cormorant Garamond',serif;font-size:19px;font-weight:600;color:#F4F1EA;line-height:1.1}
.ax-prev-brand i{font-style:normal;color:#7FC9A1}
.ax-prev small{display:block;font-size:11.5px;color:#8E9A93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ax-prev-avatar{flex:none;width:34px;height:34px;border-radius:50%;background:#33433B;color:#DDEBE2;display:grid;place-items:center;font-size:12px;font-weight:700;letter-spacing:.04em}
.ax-prev-foot b{display:block;font-size:13.5px;color:#fff;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ax-prev-foot>span:last-child,.ax-prev-top>span:last-child{min-width:0}

.ax-credit{color:inherit;text-decoration:none;border-bottom:1px solid transparent}
.ax-credit:hover{color:#2F7A55;border-bottom-color:currentColor}

/* No double-tap zoom on a touch screen (pinch zoom is switched off by the viewport tag and, on iOS Safari, by a gesturestart handler) */
@media (pointer: coarse) { html { touch-action: manipulation; } }
