/* DotCode Ebooks OPAC look (Task 7). Everything is scoped to html.ux (set by gate.js; ?ux=0 shows plain Koha).
   Started from the UHAS golden layer in the demo kit, rebuilt lean for phones on mobile data.
   Tokens: ink #0E1B2C, teal #0F766E, amber #F59E0B, paper #FAF7F2. Fonts: Source Serif 4 (headings), Inter (text), self-hosted.
   Bump ?v= in the Apache vhost after every edit. */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/ebooks-brand/fonts/inter-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/ebooks-brand/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(/ebooks-brand/fonts/source-serif-4-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(/ebooks-brand/fonts/source-serif-4-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* Koha's fontfaceobserver asks for NotoSans by name: that name now points at our Inter file, so Koha's font is never fetched. */
@font-face{font-family:NotoSans;font-style:normal;font-weight:400;font-display:swap;src:url(/ebooks-brand/fonts/inter-latin-wght-normal.woff2) format("woff2")}
@font-face{font-family:NotoSans;font-style:normal;font-weight:700;font-display:swap;src:url(/ebooks-brand/fonts/inter-latin-wght-normal.woff2) format("woff2")}
@font-face{font-family:NotoSans;font-style:italic;font-weight:400;font-display:swap;src:url(/ebooks-brand/fonts/inter-latin-wght-normal.woff2) format("woff2")}
@font-face{font-family:NotoSans;font-style:italic;font-weight:700;font-display:swap;src:url(/ebooks-brand/fonts/inter-latin-wght-normal.woff2) format("woff2")}

html.ux{--ink:#0E1B2C;--ink2:#1A2B40;--teal:#0F766E;--teal-d:#0B5E58;--amber:#F59E0B;--paper:#FAF7F2;--sheet:#fff;
  --soft:#EFE8DC;--line:rgba(14,27,44,.12);--muted:#4A5666;--on-ink:#FAF7F2;--on-ink-2:#C9D3DE;
  --serif:"Source Serif 4",Georgia,"Times New Roman",serif;--sans:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --gut:16px;--max:1240px;--r:10px;--shadow:0 1px 2px rgba(14,27,44,.10),0 6px 18px rgba(14,27,44,.08);
  -webkit-text-size-adjust:100%;scroll-padding-top:80px}
@media (min-width:768px){html.ux{--gut:32px}}
html.ux body{background:var(--paper);color:var(--ink);font:400 16px/1.5 var(--sans);-webkit-font-smoothing:antialiased;overflow-x:hidden}
html.ux *{font-family:inherit!important}
html.ux body,html.ux input,html.ux button,html.ux select,html.ux textarea{font-family:var(--sans)!important}
html.ux h1,html.ux h2,html.ux h3,html.ux .dc-serif,html.ux #logo .navbar-brand,html.ux .dc-drawn .dc-t,html.ux .searchresults a.title,
html.ux #catalogue_detail_biblio .results_summary.summary,html.ux .dc-lh p,html.ux .dc-foot b{font-family:var(--serif)!important}
html.ux .dc-group-h,html.ux #search-facets h2,html.ux #search-facets h3,html.ux #catalogue_detail_biblio .results_summary.summary .label{font-family:var(--sans)!important}
html.ux h1,html.ux h2,html.ux h3{color:var(--ink);letter-spacing:-.01em}
html.ux #wrapper{padding:0!important;margin:0;max-width:none}
html.ux .main{border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;font-size:100%}
html.ux .term{background:none!important;color:inherit!important;box-shadow:inset 0 -.32em rgba(245,158,11,.35)}
html.ux .resource_list .separator,html.ux .results_summary .separator{display:none}
html.ux .resource_list li::after,html.ux .resource_list li::before{content:none!important}
/* Names are "Surname, First", so lists are split with "; " (", " would read as two people). */
html.ux #catalogue_detail_biblio ul.resource_list li + li::before,html.ux .searchresults ul.author li + li::before{content:";\00a0"!important;color:var(--muted)}
html.ux .dc-clamp{max-height:12.6em;overflow:hidden;-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
html.ux .dc-more{background:none;border:0;padding:6px 0;color:var(--teal);font-weight:600;font-size:15px;cursor:pointer;text-decoration:underline}
html.ux a{color:var(--teal)}
html.ux a:hover{color:var(--teal-d)}
html.ux :focus-visible{outline:3px solid var(--teal-d)!important;outline-offset:2px!important;box-shadow:none!important}
html.ux #header-region :focus-visible,html.ux #header-region + .container-fluid :focus-visible,html.ux .dc-foot :focus-visible,
html.ux .dc-lh :focus-visible{outline-color:var(--amber)!important}
html.ux .dc-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html.ux svg.dc-i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
/* Koha's icon font is never drawn (it would cost a 150 KB download): our icons are inline SVG. */
html.ux #header-region i[class*="fa-"],html.ux #opac-main-search i[class*="fa-"],html.ux .searchresults i[class*="fa-"],
html.ux #search-facets i[class*="fa-"],html.ux #catalogue_detail_biblio i[class*="fa-"],html.ux #opac-auth i[class*="fa-"],
html.ux #numresults i[class*="fa-"],html.ux .dc-home i[class*="fa-"]{display:none!important}

/* ---------- Koha parts we do not use ---------- */
html.ux #scrolltocontent{position:absolute;left:8px;top:8px;transform:translateY(-300%);z-index:99}
html.ux #scrolltocontent:focus{transform:none}
html.ux #cart-list-nav,html.ux #cartDetails,html.ux #moresearches,html.ux #breadcrumbs,html.ux #changelanguage,
html.ux .selections-toolbar,html.ux #toolbar,html.ux .results_summary.ratings,html.ux .actions-menu,html.ux td.selectcol,
html.ux .results_summary.availability,html.ux .results_summary.type,html.ux .results_material_type,html.ux #bibliodescriptions,
html.ux #ulactioncontainer,html.ux #export,html.ux .br-wrapper,html.ux #opac-detail .bookcover,html.ux #searchheader .dropdown,
html.ux .koha_url,html.ux #opac-detail .results_summary.ratings,html.ux .Z3988,html.ux #opac-detail #catalogue_detail_biblio > .bookcover,
html.ux #nologininstructions,html.ux #opac-detail .results_summary.online_resources,html.ux #numresults + .pagination-sm,
html.ux #top-pages .pagination,html.ux #opac-detail .nav_results{display:none!important}

/* ---------- header ---------- */
html.ux #header-region{background:var(--ink);color:var(--on-ink);position:sticky;top:0;z-index:40;border:0}
html.ux #header-region .navbar{max-width:var(--max);margin:0 auto;padding:10px var(--gut);gap:12px;min-height:60px;background:none;flex-wrap:nowrap}
html.ux #logo{flex:none;margin:0;background:none!important;width:auto!important;border:0}
html.ux #logo a{height:auto!important;padding:6px 0!important;width:auto!important;overflow:visible!important;white-space:nowrap}
html.ux #logo .navbar-brand{display:flex;align-items:center;gap:10px;color:var(--on-ink);font:650 20px/1 var(--serif);letter-spacing:-.01em;padding:6px 0;margin:0;background:none!important;text-indent:0;width:auto;height:auto}
html.ux #logo .navbar-brand::before{content:"";width:22px;height:26px;flex:none;border-radius:2px;
  background:linear-gradient(90deg,var(--amber) 0 5px,transparent 5px 8px,#5CC8B9 8px 13px,transparent 13px 16px,var(--on-ink) 16px 22px)}
html.ux .dc-via{flex:1;min-width:0;color:var(--on-ink-2);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:14px;border-left:1px solid rgba(250,247,242,.2)}
html.ux .dc-via b{color:var(--on-ink);font-weight:600}
html.ux #members{margin-left:auto;flex:none}
html.ux #members .nav-link,html.ux #members a.logout{color:var(--on-ink)!important;font-size:15px;padding:8px 10px;border-radius:8px;display:inline-flex;align-items:center;gap:6px}
html.ux #members .nav-link:hover{background:rgba(250,247,242,.1)}
html.ux #members .dropdown-toggle::after{border-top-color:var(--on-ink)}
html.ux #members .dropdown-menu{border-radius:12px;border:1px solid var(--line);box-shadow:var(--shadow);padding:8px}
html.ux #members .dropdown-menu a{color:var(--ink)}
html.ux #members .clearsh,html.ux #members .divider-vertical{display:none}
@media (max-width:767px){
  html.ux .dc-via{display:none}
  html.ux #members .userlabel{display:inline!important;max-width:7em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html.ux #logo .navbar-brand{font-size:18px}
}
html.ux .dc-via-m{display:none}
@media (max-width:767px){html.ux .dc-via-m{display:block;margin:0 0 10px;color:var(--on-ink-2);font-size:14px}html.ux .dc-via-m b{color:var(--on-ink);font-weight:600}}

/* the search band under the header (every page) */
html.ux #header-region + .container-fluid,html.ux #wrapper > .container-fluid:has(#opac-main-search){background:var(--ink);padding:0 var(--gut) 16px;margin:0}
html.ux #opac-main-search,html.ux .dc-via-m{max-width:calc(var(--max) - 2 * var(--gut));margin-left:auto;margin-right:auto}
html.ux #opac-main-search{padding:0;background:none;border:0}
html.ux #opac-main-search .row{margin:0;flex-wrap:nowrap;gap:8px}
html.ux #opac-main-search .row > *{padding:0;width:auto}
html.ux #opac-main-search .col{flex:1;min-width:0}
html.ux #opac-main-search .form-select,html.ux #opac-main-search .form-control{height:48px;border-radius:24px;border:0;font-size:16px}
html.ux #opac-main-search .form-control{padding:0 20px;background:var(--sheet);color:var(--ink);text-align:left}
html.ux #opac-main-search .form-control::placeholder{font-style:normal;color:#5B6675;text-align:left;opacity:1}
html.ux #opac-main-search .form-select{background-color:var(--ink2);color:var(--on-ink);padding:0 36px 0 18px;max-width:11rem}
html.ux #opac-main-search #searchsubmit{height:48px;min-width:48px;border-radius:24px;border:0;background:var(--amber);color:var(--ink);display:inline-grid;place-items:center;padding:0 18px;font-weight:600}
html.ux #opac-main-search #searchsubmit:hover{background:#FBBF24}
@media (max-width:767px){html.ux #opac-main-search .order-2{display:none}}
html.ux .dc-hello{max-width:calc(var(--max) - 2 * var(--gut));margin:0 auto;padding:18px 0 18px;color:var(--on-ink)}
html.ux .dc-hello h1{color:var(--on-ink);font:600 clamp(28px,5vw,44px)/1.1 var(--serif);margin:0 0 6px}
html.ux .dc-hello p{margin:0;color:var(--on-ink-2);font-size:16px}

/* ---------- page body ---------- */
html.ux .main{background:var(--paper);padding:0}
html.ux .main > .container-fluid,html.ux #loggedin,html.ux .main > .container,html.ux .maincontent{max-width:var(--max);margin:0 auto}
html.ux .main > .container-fluid{padding:24px var(--gut) 40px}
html.ux #loggedin > .row > .col-lg-3{display:none}
html.ux #loggedin > .row > div{flex:0 0 100%;max-width:100%;width:100%}
html.ux .dc-foot{background:var(--ink);color:var(--on-ink-2);font-size:14px;padding:28px var(--gut) 36px;margin-top:24px}
html.ux .dc-foot > div{max-width:calc(var(--max) - 2 * var(--gut));margin:0 auto;display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between}
html.ux .dc-foot b{color:var(--on-ink);font-family:var(--serif);font-size:17px;font-weight:600}
html.ux .dc-foot a{color:var(--on-ink)}

/* ---------- covers: one component everywhere ---------- */
html.ux .dc-cover{position:relative;display:block;aspect-ratio:2/3;width:100%;height:auto;border-radius:4px 7px 7px 4px;overflow:hidden;background:var(--soft);
  box-shadow:0 1px 1px rgba(14,27,44,.18),0 6px 14px rgba(14,27,44,.14)}
html.ux .dc-cover img{display:block;width:100%;height:100%;object-fit:cover}
html.ux .dc-cover.dc-fit{background:#fff}
html.ux .dc-cover.dc-fit img{object-fit:contain}
html.ux .dc-cover.dc-wrap img{object-position:100% 50%}
html.ux .dc-cover::after{content:"";position:absolute;inset:0 auto 0 0;width:6px;background:linear-gradient(90deg,rgba(0,0,0,.18),rgba(255,255,255,.12) 60%,transparent);pointer-events:none}
html.ux .dc-drawn{container-type:inline-size;background:var(--bg,#0E1B2C);color:var(--fg,#FAF7F2);display:flex;flex-direction:column}
html.ux .dc-drawn .dc-t{margin:11cqw 9cqw 0 12cqw;font:600 min(13cqw,calc(122cqw / var(--l,10)))/1.16 var(--serif);
  hyphens:auto;-webkit-hyphens:auto;overflow-wrap:normal;word-break:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}
html.ux .dc-drawn .dc-r{display:block;width:22cqw;height:max(2px,1.6cqw);background:var(--ac,#F59E0B);margin:7cqw 0 0 12cqw;flex:none}
html.ux .dc-drawn .dc-m{margin:auto 9cqw 9cqw 12cqw;font:600 max(8px,7.2cqw)/1.2 var(--sans);opacity:.85}
html.ux .dc-cover.dc-small .dc-m,html.ux .dc-cover.dc-small .dc-r{display:none}

/* ---------- rails ---------- */
html.ux .dc-home{display:flex;flex-direction:column;gap:12px}
html.ux .dc-rail{position:relative;padding:18px 0 4px}
html.ux .dc-rail + .dc-rail{border-top:1px solid var(--line)}
html.ux .dc-rail-h{display:flex;align-items:flex-end;gap:12px;margin:0 0 10px}
html.ux .dc-rail-t{flex:1;min-width:0}
html.ux .dc-rail-t h2,html.ux .dc-rail-t h3{font:600 clamp(22px,3vw,28px)/1.15 var(--serif);margin:0}
html.ux .dc-rail-t h3{font-size:clamp(20px,2.4vw,24px)}
html.ux .dc-rail-t p{margin:2px 0 0;color:var(--muted);font-size:15px}
html.ux h1.dc-rail-h{display:block;font:600 clamp(28px,4vw,40px)/1.15 var(--serif);margin:4px 0 6px}
html.ux .dc-all{font-weight:600;font-size:15px;text-decoration:none;white-space:nowrap;padding:8px 2px}
html.ux .dc-all:hover{text-decoration:underline}
html.ux .dc-progs{margin-top:10px;padding:6px 0 8px;border-top:3px solid var(--ink)}
html.ux .dc-group-h{font:600 15px/1.3 var(--sans);color:var(--teal-d)!important;letter-spacing:0;margin:14px 0 -8px}
html.ux .dc-row{list-style:none;margin:0 calc(-1 * var(--gut));padding:6px var(--gut) 14px;display:grid;grid-auto-flow:column;grid-auto-columns:clamp(118px,30vw,158px);gap:18px;
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding:0 var(--gut);scrollbar-width:thin;-webkit-overflow-scrolling:touch}
html.ux .dc-row > li{scroll-snap-align:start;min-width:0}
html.ux .dc-book{display:block;color:var(--ink);text-decoration:none;border-radius:8px}
html.ux .dc-book:hover{color:var(--ink)}
html.ux .dc-book .dc-cover{transition:transform .2s ease,box-shadow .2s ease}
@media (hover:hover){html.ux .dc-book:hover .dc-cover{transform:translateY(-3px);box-shadow:0 2px 2px rgba(14,27,44,.16),0 12px 24px rgba(14,27,44,.18)}}
html.ux .dc-bt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:9px;font-size:14px;line-height:1.35;font-weight:500}
html.ux .dc-pc{display:block;margin-top:4px;color:var(--muted);font-size:13px}
html.ux .dc-bar{display:block;height:4px;border-radius:2px;background:var(--soft);margin-top:8px;overflow:hidden}
html.ux .dc-bar i{display:block;height:100%;background:var(--amber)}
html.ux .dc-nav{display:none!important}
@media (hover:hover) and (min-width:900px){
  html.ux .dc-scroll .dc-nav{display:flex!important;gap:6px}
  html.ux .dc-nav button{width:36px;height:36px;border-radius:18px;border:1px solid var(--line);background:var(--sheet);color:var(--ink);display:grid;place-items:center;cursor:pointer;padding:0}
  html.ux .dc-nav button:hover{border-color:var(--teal);color:var(--teal)}
  html.ux .dc-nav button:disabled{opacity:.35;cursor:default}
}
html.ux .dc-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:22px 18px}
html.ux .dc-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:28px 0 0}
html.ux .dc-back{display:inline-block;margin:0 0 8px;font-weight:600;text-decoration:none}
html.ux .dc-empty{background:var(--sheet);border-radius:var(--r);padding:20px;color:var(--muted)}

/* ---------- buttons ---------- */
html.ux .dc-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;border-radius:26px;
  font:600 17px/1 var(--sans);text-decoration:none;border:2px solid transparent;cursor:pointer}
html.ux .dc-btn.pri{background:var(--teal);color:#fff}
html.ux .dc-btn.pri:hover{background:var(--teal-d);color:#fff}
html.ux .dc-btn.out{border-color:var(--ink);color:var(--ink);background:transparent}
html.ux .dc-btn.out:hover{background:var(--ink);color:var(--on-ink)}
html.ux .dc-btn.sm{min-height:40px;padding:0 18px;font-size:15px}

/* ---------- results ---------- */
html.ux #results .main > .container-fluid > .row{flex-wrap:wrap}
html.ux #numresults{font:600 clamp(22px,3vw,28px)/1.2 var(--serif);margin:0 0 4px}
html.ux #numresults a{color:inherit}
html.ux .searchresults table,html.ux .searchresults tbody,html.ux .searchresults tr{display:block;width:100%;border:0;background:none}
html.ux .searchresults table{margin:8px 0 0}
html.ux .searchresults tr{display:flex;gap:16px;align-items:flex-start;padding:16px 0;border-top:1px solid var(--line)}
html.ux .searchresults td{border:0;padding:0;background:none!important;box-shadow:none!important}
html.ux .searchresults .title_summary{background:none!important}
html.ux #results .main .row{margin-left:0;margin-right:0}
html.ux #results .main .row > [class*="col"]{padding-left:0;padding-right:0}
@media (min-width:992px){html.ux #results .main .row > .col-lg-2{padding-right:28px}}
html.ux #numresults{color:var(--ink)!important}
html.ux #userresults{margin:0!important}
html.ux .searchresults td.numcolhidden,html.ux .searchresults td.numcol{display:none}
html.ux .searchresults td.dc-cc{flex:none;width:84px}
html.ux .searchresults td.bibliocol{flex:1;min-width:0}
html.ux .searchresults a.title{display:block;color:var(--ink);font:600 19px/1.3 var(--serif);text-decoration:none;overflow-wrap:anywhere}
html.ux .searchresults a.title:hover{color:var(--teal)}
html.ux .searchresults .byAuthor,html.ux .searchresults .label{display:none}
html.ux .searchresults ul.author{display:inline;list-style:none;padding:0;margin:0;font-size:15px}
html.ux .searchresults ul.author li{display:inline}
html.ux .searchresults ul.author a{color:var(--muted)}
html.ux .searchresults ul.author ~ .results_summary.languages::before{content:"\00a0\00B7\00a0"}
html.ux .searchresults .results_summary{display:block;font-size:14px;color:var(--muted);margin:2px 0 0;overflow-wrap:anywhere}
html.ux .searchresults .results_summary.languages{display:inline}
html.ux .searchresults .results_summary.rda264{display:inline}
html.ux .searchresults .results_summary.languages + .results_summary.rda264::before{content:"\00a0\00B7\00a0"}
html.ux .searchresults .results_summary.online_resources{display:none}
html.ux .dc-tag{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-size:13px;font-weight:600;border-radius:14px;padding:4px 12px;text-decoration:none}
html.ux .dc-tag.here{background:rgba(15,118,110,.12);color:var(--teal-d)}
html.ux .dc-tag.away{background:var(--soft);color:var(--ink)}
html.ux #availability_facet,html.ux #holdingbranch_id,html.ux #itype_id{display:none!important}
html.ux #search-facets,html.ux #facetcontainer{font-size:14px;background:none!important;border:0!important}
html.ux #search-facets > h2,html.ux #search-facets .menu-collapse-toggle{background:none!important;border:0!important;padding:0!important;font-size:17px!important;text-align:left}
html.ux #search-facets h2,html.ux #search-facets h3{font:600 15px/1.3 var(--sans);margin:16px 0 6px}
html.ux #search-facets ul{list-style:none;padding:0}
html.ux #search-facets li{margin:3px 0;overflow-wrap:anywhere}
html.ux .dc-filter{display:none}
@media (max-width:991px){
  html.ux .dc-filter{display:inline-flex}
  html.ux #results .col-lg-2:has(#search-facets),html.ux #facetcontainer{display:none;order:2}
  html.ux body.dc-facets-open #facetcontainer,html.ux body.dc-facets-open .col-lg-2:has(#search-facets){display:block;width:100%;max-width:100%;flex:0 0 100%}
}
html.ux .pagination{flex-wrap:wrap;gap:4px;margin:20px 0}
html.ux .pagination .page-link{border-radius:8px;color:var(--teal);border-color:var(--line)}
html.ux .pagination .active .page-link{background:var(--teal);border-color:var(--teal);color:#fff}
@media (max-width:767px){html.ux .searchresults td.dc-cc{width:64px}html.ux .searchresults a.title{font-size:17px}}

/* ---------- record ---------- */
html.ux #catalogue_detail_biblio{max-width:none}
html.ux .dc-rec{display:grid;grid-template-columns:minmax(150px,260px) 1fr;gap:40px;align-items:start;margin:8px 0 24px}
html.ux .dc-rec-c .dc-cover{max-width:260px}
html.ux #catalogue_detail_biblio h1.title{font:600 clamp(26px,3.6vw,40px)/1.15 var(--serif);margin:0 0 10px;overflow-wrap:anywhere}
html.ux #catalogue_detail_biblio .results_summary{display:block;font-size:15px;color:var(--muted);margin:4px 0;overflow-wrap:anywhere}
html.ux #catalogue_detail_biblio .results_summary.author{font:400 17px/1.45 var(--sans);color:var(--ink)}
html.ux #catalogue_detail_biblio .results_summary .label{font-weight:600;color:var(--ink)}
html.ux #catalogue_detail_biblio .results_summary.author .label,html.ux #catalogue_detail_biblio .byAuthor{display:none}
html.ux #catalogue_detail_biblio ul.resource_list{display:inline-flex;flex-wrap:wrap;list-style:none;padding:0;margin:0;vertical-align:top}
html.ux #catalogue_detail_biblio ul.resource_list li{display:inline}
html.ux #catalogue_detail_biblio .results_summary.summary{font:400 18px/1.6 var(--serif);color:var(--ink);max-width:40em;margin-top:18px}
html.ux #catalogue_detail_biblio .results_summary.summary .label{display:block;font:600 15px/1.4 var(--sans);margin-bottom:4px}
html.ux .dc-act{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin:22px 0 8px}
html.ux .dc-lic{font-size:14px;color:var(--muted);margin:6px 0 0;max-width:40em}
html.ux .dc-lic a{color:var(--muted);text-decoration:underline}
html.ux .dc-note{font-size:14px;color:var(--muted);margin:0}
@media (max-width:767px){
  html.ux .dc-rec{grid-template-columns:1fr;gap:20px}
  html.ux .dc-rec-c{display:flex;justify-content:center}
  html.ux .dc-rec-c .dc-cover{width:52vw;max-width:220px}
  html.ux .dc-rec-c .dc-cover{width:40vw;max-width:170px}
  html.ux #catalogue_detail_biblio h1.title{text-align:center;font-size:26px}
  html.ux .dc-act{position:fixed;left:0;right:0;bottom:0;z-index:35;margin:0;padding:10px var(--gut) calc(10px + env(safe-area-inset-bottom,0px));
    background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -6px 18px rgba(14,27,44,.08);gap:4px}
  html.ux .dc-act .dc-btn{width:100%;min-height:50px}
  html.ux .dc-act .dc-note{width:100%;text-align:center;font-size:13px}
  html.ux body.dc-has-bar{padding-bottom:96px}
}

/* ---------- login (OPAC home while logged out) ---------- */
html.ux #opac-login-page #header-region,html.ux #opac-login-page #header-region + .container-fluid{display:none}
html.ux #opac-login-page .main{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
html.ux #opac-login-page .main > .container-fluid{grid-column:2;align-self:center;width:100%;max-width:520px;padding:48px var(--gut)}
html.ux #opac-login-page .main > .container-fluid .row{margin:0}
html.ux #opac-login-page .main > .container-fluid .row > div{width:100%;max-width:100%;flex:0 0 100%;padding:0}
html.ux .dc-lh{grid-column:1;grid-row:1;background:var(--ink);color:var(--on-ink);position:relative;overflow:hidden;
  display:flex;flex-direction:column;justify-content:center;padding:64px clamp(32px,6vw,88px)}
html.ux .dc-lh h1::before{content:"";display:block;width:30px;height:36px;border-radius:2px;margin:0 0 28px;
  background:linear-gradient(90deg,var(--amber) 0 7px,transparent 7px 11px,#5CC8B9 11px 18px,transparent 18px 22px,var(--on-ink) 22px 30px)}
html.ux .dc-lh h1{color:var(--on-ink);font:650 clamp(40px,5.6vw,72px)/1.02 var(--serif);letter-spacing:-.02em;margin:0 0 20px}
html.ux .dc-lh p{font:400 clamp(18px,1.8vw,22px)/1.45 var(--serif);color:var(--on-ink-2);max-width:26em;margin:0}
html.ux .dc-shelf{list-style:none;margin:48px 0 0;padding:0 0 0 4px;display:flex;align-items:flex-end;gap:14px;position:relative;min-height:190px}
html.ux .dc-shelf::after{content:"";position:absolute;left:-200px;right:-200px;bottom:-10px;height:10px;background:var(--amber);border-radius:2px}
html.ux .dc-shelf li{flex:none;width:118px}
html.ux .dc-shelf li:nth-child(2){width:132px}
html.ux .dc-shelf li:nth-child(3){width:110px;transform:rotate(4deg);transform-origin:bottom left}
html.ux .dc-shelf li:nth-child(4){width:124px}
html.ux .dc-shelf li:nth-child(5){width:104px;transform:rotate(-5deg);transform-origin:bottom right}
html.ux .dc-shelf .dc-cover{box-shadow:0 2px 3px rgba(0,0,0,.35),0 14px 28px rgba(0,0,0,.3)}
html.ux #opac-auth{background:var(--sheet);border-radius:16px;box-shadow:var(--shadow);padding:32px;border:1px solid var(--line)}
html.ux #opac-auth h1{font:600 28px/1.2 var(--serif);margin:0 0 20px}
html.ux #opac-auth .form-group{margin:0 0 16px}
html.ux #opac-auth label{display:block;font-weight:600;font-size:15px;margin:0 0 6px}
html.ux #opac-auth .show-password-toggle,html.ux #opac-auth .form-check{display:flex;align-items:center;gap:8px;font-weight:500}
html.ux #opac-auth input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--teal)}
html.ux #opac-auth label[for*=show],html.ux #opac-auth input[type=checkbox] + label{display:inline;margin:0;font-weight:500}
html.ux #opac-auth .form-control{height:52px;border-radius:10px;border:1.5px solid #C7CED6;font-size:17px;padding:0 14px;width:100%}
html.ux #opac-auth .form-control:focus{border-color:var(--teal)}
html.ux #opac-auth fieldset{border:0;padding:0;margin:0}
html.ux #opac-auth fieldset.action{margin-top:20px}
html.ux #opac-auth .btn-primary{width:100%;height:52px;border-radius:26px;background:var(--teal);border:0;font:600 17px/1 var(--sans);margin-top:6px}
html.ux #opac-auth .btn-primary:hover{background:var(--teal-d)}
html.ux #opac-auth .alert{border-radius:10px;font-size:15px}
html.ux .dc-ask{margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line);font-size:16px}
html.ux .dc-ask p{margin:0 0 8px}
html.ux .dc-ask a{font-weight:600}
html.ux #opac-login-page .dc-foot{display:none}
@media (max-width:899px){
  html.ux #opac-login-page .main{display:block;min-height:0}
  html.ux .dc-lh{padding:20px var(--gut) 84px}
  html.ux .dc-lh h1::before{display:none}
  html.ux .dc-lh h1{font-size:30px;margin-bottom:8px}
  html.ux .dc-lh p{font-size:16px}
  html.ux .dc-shelf{margin-top:14px;min-height:0;gap:10px}
  html.ux .dc-shelf li{width:48px!important}
  html.ux .dc-shelf li:nth-child(n+5){display:none}
  html.ux #opac-login-page .main > .container-fluid{margin:-76px auto 0;position:relative;padding:0 var(--gut) 32px}
  html.ux #opac-auth{padding:18px 20px 18px}
  html.ux #opac-auth h1{font-size:22px;margin-bottom:10px}
  html.ux #opac-auth label{margin-bottom:4px}
  html.ux #opac-auth .form-group{margin-bottom:10px}
  html.ux #opac-auth .form-control{height:46px}
  html.ux #opac-auth fieldset.action{margin-top:12px}
  html.ux .dc-ask{margin-top:14px;padding-top:12px;font-size:15px}
  html.ux .dc-ask p{margin-bottom:4px}
}

@media (prefers-reduced-motion:reduce){html.ux *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
