@font-face{font-family:CommunityDevanagari;src:url('/fonts/NotoSansDevanagari.ttf') format('truetype');font-weight:100 900;font-display:swap}
body.library-page{background:#fff;color:#2c2924;font-family:CommunityDevanagari,system-ui,sans-serif}
.library-page *{letter-spacing:0}
.library-shell{max-width:1100px;margin:0 auto;padding:30px 30px 0}
.library-identity{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}
.library-identity h1{font-size:29px;line-height:1.45;font-weight:650;margin:0;min-width:0;overflow-wrap:anywhere}
.book-search{display:flex;align-items:center;gap:10px;width:260px;flex:0 0 260px;min-height:44px;padding:0 12px;border:1px solid #eadfca;border-radius:5px;background:#fffaf0;color:#62716a}
.book-search:focus-within{border-color:#85451f;outline:2px solid #85451f22;outline-offset:2px}
.book-search svg{flex:0 0 auto}
.book-search input{width:100%;min-width:0;height:42px;border:0;padding:0;background:transparent;color:#2c2924;font:inherit;font-size:13px;outline:none}
.library-section{margin-bottom:26px;padding-bottom:26px;border-bottom:1px solid #eadfca}
.library-heading,.library-shell .home-community-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.library-heading h2,.library-shell .home-community-heading h2{display:flex;align-items:center;gap:9px;margin:0;font-size:20px;line-height:1.5;font-weight:650}
.library-count{font-size:12px;color:#776e61;white-space:nowrap}
.section-action{display:inline-flex;align-items:center;min-height:36px;color:#85451f;font-size:13px;text-underline-offset:4px}
.books-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.books-grid:has(>.book-card:only-child){grid-template-columns:1fr}
.book-card{display:grid;grid-template-columns:150px minmax(0,1fr);min-width:0;background:#fff;border:1px solid #eadfca;border-radius:6px;overflow:hidden;color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.book-card:hover{border-color:#9b5a2b;box-shadow:0 3px 12px #3f2b1c0c}
.book-card-visual{display:grid;place-items:center;padding:20px 14px;background:#fff3dd;color:inherit;text-decoration:none}
.book-jacket{display:flex;flex-direction:column;align-items:center;justify-content:center;width:120px;min-height:176px;padding:9px 8px 10px 11px;background:#fffefb;border-left:5px solid #85451f;box-shadow:3px 4px 0 #e7dac1,0 2px 7px #3f2b1c10;text-align:center;color:#633a20}
.jacket-label{font-size:8px;font-weight:600;color:#97712e}
.book-jacket img{display:block;width:98px;height:72px;object-fit:contain;margin:4px 0}
.book-jacket strong{max-width:100%;font-size:13px;line-height:1.7;font-weight:650;overflow-wrap:anywhere}
.jacket-edition{font-size:7px;margin-top:7px;color:#68756d}
.book-scan-cover{width:120px;height:176px;object-fit:contain}
.book-card-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:22px;min-width:0}
.book-kind{font-size:10px;font-weight:650;color:#a55225;margin:0 0 9px}
.book-card h3{font-size:21px;line-height:1.55;font-weight:650;margin:0;overflow-wrap:anywhere}
.book-card h3 a{color:inherit;text-decoration:none}
.book-card h3 a:hover{text-decoration:underline;text-underline-offset:4px}
.book-meta{font-size:13px;color:#776e61;margin:8px 0 18px}
.book-card-open{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border-radius:50%;background:#7a3e1c;color:#fff;text-decoration:none}
.book-card-open svg{margin-left:3px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.book-card-open:hover{background:#713b1c}
.book-card-open svg{flex:0 0 auto}
.book-preview{grid-column:1/-1;min-width:0;border-top:1px solid #eadfca;padding:16px 22px}
.book-preview>p{font-size:12px;font-weight:650;color:#776e61;margin:0 0 8px}
.book-preview ul{list-style:none;margin:0;padding:0}
.book-preview li+li{border-top:1px solid #f2e9da}
.book-preview a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:8px 0;color:#85451f;text-decoration:none;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.book-preview a:hover{color:#a55225}
.book-preview a svg{width:15px;height:15px;flex:0 0 auto}
.library-page a:focus-visible,.library-page button:focus-visible{outline:2px solid #a55225;outline-offset:3px}
.book-search-empty{font-size:14px;color:#776e61;margin:20px 0 0}
.live-section{padding:18px 20px;background:#fffaf0;border-bottom:0;border-left:3px solid #a55225}
.live-section .library-heading{margin-bottom:7px}
.live-section h2>svg{color:#a55225;flex:0 0 auto}
.live-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.live-grid>p{grid-column:1/-1;color:#776e61;font-size:13px;line-height:1.7;margin:0}
.live-card{min-width:0;border:1px solid #eadfca;border-radius:5px;background:#fff;padding:16px}
.live-card h3{font-size:18px;line-height:1.5;margin:10px 0;overflow-wrap:anywhere}
.live-card p{font-size:13px;margin:8px 0}
.live-card a{color:#85451f}
.live-badge{display:inline-flex;align-items:center;gap:6px;color:#a55225;font-size:11px;font-weight:700}
.live-badge::before{content:"";width:6px;height:6px;background:currentColor;border-radius:50%}
.live-card-actions{display:flex;justify-content:space-between;gap:16px;margin-top:16px;font-size:12px}
.live-card-actions time{color:#776e61}
.library-shell .home-community{margin:0;padding:0 0 26px;border:0;background:transparent}
.library-shell .home-community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.library-shell .home-community-grid:has(>.samiti-card:only-child){grid-template-columns:1fr}
.library-shell .samiti-card{border-radius:6px;box-shadow:none;border-color:#eadfca}
.library-shell .samiti-card-media{aspect-ratio:16/8;background:#fff5e3}
.library-shell .samiti-card-body{padding:18px;min-width:0}
.library-shell .samiti-card h3{font-size:18px;line-height:1.5;font-weight:650;margin:8px 0}
.library-shell .card-location{display:flex;align-items:center;gap:6px;font-size:12px}
.library-shell .card-location svg{flex:0 0 auto}
.library-shell .card-activity{font-size:13px;margin-bottom:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.library-shell .card-link{font-size:12px;border-top:1px solid #eadfca;padding-top:10px;display:flex;justify-content:space-between;align-items:center}
.library-shell .samiti-card:only-child{display:grid;grid-template-columns:230px minmax(0,1fr)}
.library-shell .samiti-card:only-child .samiti-card-media{min-height:200px;height:100%;aspect-ratio:auto}
.library-shell .samiti-card:only-child .samiti-card-body{padding:20px 24px}
.library-shell .community-empty{padding:14px;gap:20px;background:#fffaf0;border-color:#eadfca;border-radius:6px}
.library-shell .community-empty img{width:100px}
.library-shell .community-empty h3{font-size:17px}
.library-shell .community-empty p{font-size:13px}
.library-shell .community-empty .community-button{font-size:12px;min-height:36px;padding:8px 12px}
.library-shell .home-community-join{margin:16px 0 0;padding-top:14px;border-top:1px solid #eadfca;text-align:right;font-size:12px}
.library-shell .home-events{margin-top:22px;padding-top:18px;border-top:1px solid #eadfca}
.library-shell .home-events h3{font-size:17px;margin:0 0 12px}
.library-shell .event-preview{font-size:14px;padding:12px 0}
.library-shell .event-preview small,.library-shell .event-preview time{font-size:12px}
.library-footer{max-width:1040px;margin:0 auto;border-top:1px solid #eadfca;padding:22px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px;color:#776e61}
.library-footer nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.library-footer a{color:inherit;text-underline-offset:3px}
.library-footer button{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.home-privacy-dialog{width:min(520px,calc(100% - 28px));padding:24px;border:1px solid #eadfca;border-radius:6px;color:#253d2e;background:#fff}
.home-privacy-dialog::backdrop{background:#0005}
.home-privacy-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.home-privacy-heading h2{margin:0;font-size:21px}
.home-privacy-heading button{display:grid;place-items:center;width:40px;height:40px;border:0;background:none;cursor:pointer;color:inherit}
.home-privacy-dialog p{font-size:14px;line-height:1.7;color:#776e61}
.home-privacy-dialog label{display:flex;align-items:flex-start;gap:10px;margin:20px 0;font-size:14px}
.home-privacy-dialog input{width:18px;height:18px;flex:0 0 auto;accent-color:#a35b26}
.live-editor{border-top:1px solid #eadfca;padding-top:22px;margin-top:24px}
.live-editor h2{font-size:20px}
.live-editor .form-actions{margin-bottom:12px}
.profile-live{margin:18px 0;padding:14px 0;border-bottom:1px solid #eadfca}
.profile-live a{color:#a55225;font-weight:600}
@media(min-width:1000px){.book-card:only-child{grid-template-columns:230px minmax(0,1fr) 280px}.book-card:only-child .book-preview{grid-column:auto;border-top:0;border-left:1px solid #eadfca;margin:24px 0;padding:8px 24px;align-self:center}.book-card:only-child .book-card-visual{padding:24px 30px}.book-card:only-child .book-card-copy{padding:24px 32px}.book-card:only-child h3{font-size:24px}.book-card:only-child .book-jacket{width:155px;min-height:220px}.book-card:only-child .book-jacket img{width:125px;height:94px}.book-card:only-child .book-jacket strong{font-size:16px}}
@media(max-width:759px){
  .library-shell{padding:22px 16px 0}.library-identity{flex-direction:column;align-items:stretch;gap:16px;margin-bottom:22px}.library-identity h1{font-size:24px}.book-search{width:100%;flex-basis:44px}
  .books-grid{grid-template-columns:1fr;gap:14px}.book-card{grid-template-columns:118px minmax(0,1fr)}.book-card-visual{padding:16px 11px}.book-jacket{width:94px;min-height:156px;border-left-width:4px;padding:7px 5px 8px 8px}.book-jacket img{width:78px;height:62px}.book-jacket strong{font-size:11px}.jacket-label{font-size:7px}.jacket-edition{font-size:6px}.book-scan-cover{width:94px;height:156px}.book-card-copy{padding:16px 13px}.book-card h3{font-size:17px;line-height:1.55}.book-kind{font-size:9px}.book-meta{font-size:12px;margin:8px 0 14px}.book-card-open{font-size:12px;min-height:36px;gap:14px;padding:8px 10px}.book-preview{padding:14px 16px}.book-preview a{font-size:12px;min-height:40px}
  .library-heading,.library-shell .home-community-heading{gap:12px}.library-heading h2,.library-shell .home-community-heading h2{font-size:18px}.section-action{font-size:12px;max-width:135px;flex-shrink:0;line-height:1.5;text-align:right}.library-section{margin-bottom:22px;padding-bottom:22px}
  .live-section{padding:14px 13px}.live-section .library-heading{align-items:flex-start}.live-section h2{font-size:17px}.live-section .section-action{max-width:132px}.live-grid{grid-template-columns:1fr}.live-grid>p{font-size:12px}
  .library-shell .home-community-grid{grid-template-columns:1fr}.library-shell .home-community-heading h2{max-width:230px}.library-shell .samiti-card h3{font-size:17px}.library-shell .samiti-card:only-child{display:block}.library-shell .samiti-card:only-child .samiti-card-media{min-height:0;height:auto;aspect-ratio:16/8}.library-shell .samiti-card:only-child .samiti-card-body{padding:16px}.library-shell .community-empty{flex-direction:row;gap:12px}.library-shell .community-empty img{width:72px;max-width:25%}.library-shell .community-empty h3{font-size:15px}.library-shell .community-empty p{font-size:12px}
  .library-footer{margin:0 16px;flex-direction:column;align-items:flex-start;gap:12px}.live-editor .form-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.book-card{transition:none}}

/* Homepage visual pass: editorial sections, with framing reserved for the book itself. */
body.library-page{background:#fffdf8}
.library-shell{max-width:1160px;padding-top:26px}
.library-identity{margin-bottom:24px}
.library-identity h1{font-size:31px;line-height:1.4;color:#342b21}
.book-search{border-color:#e4d4b8;background:#fff;color:#5c5348}
.library-section{margin-bottom:22px;padding-bottom:22px;border-color:#e9ddc9}
.library-heading h2,.library-shell .home-community-heading h2{color:#342b21;font-size:21px}
.book-card{grid-template-columns:170px minmax(0,1fr);border:0;border-radius:0;background:transparent;box-shadow:none}
.book-card:hover{border-color:transparent;box-shadow:none}
.book-card-visual{background:#f7eddb;border-top:2px solid #c99735}
.book-jacket{border-left-color:#9c4f24;box-shadow:3px 4px 0 #e4d7bf,0 5px 18px #4c321311}
.book-card-copy{padding:24px 30px}
.book-card h3{font-size:23px;line-height:1.48;color:#342b21}
.book-meta{margin-bottom:15px}
.book-card-open{width:46px;height:46px;background:#a55225}
.book-card-open:hover{background:#87431f}
.book-preview{border-top:0;border-left:1px solid #e9ddc9;padding:14px 22px}
.book-preview>p{color:#78664f}
.book-preview li+li{border-color:#eee5d7}
.live-section{padding:22px 24px;background:#faf1e3;border-top:1px solid #ead8b9;border-left:0}
.live-section .library-heading{margin-bottom:10px}
.live-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 22px}
.live-card{padding:14px 0;border:0;border-bottom:1px solid #eadcc7;border-radius:0;background:transparent}
.live-card h3{margin:8px 0;font-size:17px}
.live-card-actions{margin-top:12px}
.library-shell .home-community{padding:28px 0 24px}
.library-shell .home-community-grid{gap:24px}
.library-shell .samiti-card{border:0;border-radius:0;background:transparent}
.library-shell .samiti-card-media{aspect-ratio:16/9;background:#f5ead7}
.library-shell .samiti-card-media img{object-fit:cover}
.library-shell .samiti-card-body{padding:15px 0 0}
.library-shell .samiti-card h3{margin:6px 0 8px;font-size:19px;line-height:1.45}
.library-shell .card-activity{font-size:13px}
.library-shell .card-link{border:0;padding-top:5px;color:#91491f;font-weight:650}
.library-shell .samiti-card:only-child .samiti-card-body{padding:22px 28px}
.library-shell .community-empty{background:transparent;border:0;border-top:1px solid #e9ddc9;border-radius:0}
.library-shell .home-community-join{border-color:#e9ddc9}
.library-shell .home-events{border-color:#e9ddc9}
.library-shell .event-preview{border-color:#e9ddc9}
.library-footer{max-width:1100px}
@media(max-width:759px){
  .library-shell{padding:20px 16px 0}
  .library-identity{gap:12px;margin-bottom:20px}
  .library-identity h1{font-size:24px}
  .book-card{grid-template-columns:118px minmax(0,1fr)}
  .book-card-visual{border-top:0;border-left:2px solid #c99735}
  .book-card-copy{padding:16px 14px}
  .book-card h3{font-size:18px}
  .book-card-open{width:42px;height:42px}
  .book-preview{grid-column:1/-1;border-left:0;border-top:1px solid #e9ddc9;padding:12px 16px}
  .live-section{margin-inline:-3px;padding:17px 15px}
  .live-grid{grid-template-columns:1fr}
  .library-shell .home-community{padding:22px 0 20px}
  .library-shell .home-community-grid{gap:20px}
  .library-shell .samiti-card{display:grid;grid-template-columns:104px minmax(0,1fr);align-items:start;column-gap:14px}
  .library-shell .samiti-card-media{aspect-ratio:1/1}
  .library-shell .samiti-card-body{padding:0}
  .library-shell .samiti-card h3{font-size:16px;margin:2px 0 6px}
  .library-shell .card-location{margin-bottom:4px;font-size:11px}
  .library-shell .card-activity{margin-bottom:5px;font-size:12px}
  .library-shell .card-link{font-size:12px}
  .library-shell .samiti-card:only-child{display:grid;grid-template-columns:104px minmax(0,1fr)}
  .library-shell .samiti-card:only-child .samiti-card-media{min-height:104px;height:auto;aspect-ratio:1/1}
  .library-shell .samiti-card:only-child .samiti-card-body{padding:0}
  .library-shell .community-empty{padding:18px 0}
  .library-footer{margin:0 16px}
}
