/* =====================================================================
   SIMPAN DI: repository/public/assets/public.css
   Tampilan halaman PUBLIK (beranda, jelajah, pencarian, detail karya).
   Dimuat setelah style.css (komponen dasar: tombol, badge, alert, form).
   ===================================================================== */

/* ---------- Dasar & tipografi ---------- */
body.public {
  display: flex; flex-direction: column; min-height: 100vh;   /* footer selalu menempel di bawah */
  font-size: 16px; line-height: 1.65; background: #fff; color: var(--ink);
  text-rendering: optimizeLegibility;
}
body.public > main { flex: 1 0 auto; }
body.public h1 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.35rem); font-weight: 750; letter-spacing: -.022em; line-height: 1.2; }
body.public h2 { font-size: 1.32rem; font-weight: 700; letter-spacing: -.012em; margin: 0 0 .75em; }
body.public h3 { font-size: 1.06rem; font-weight: 650; margin: 0 0 .5em; }
body.public p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.section.alt { background: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; }
.link-more .icon { transition: transform .15s; }
.link-more:hover .icon { transform: translateX(3px); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g-600); }
.text-muted { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(6, 40, 25, .35); }
.site-header .container { display: flex; align-items: center; gap: 20px; height: 70px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a.nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px; color: var(--ink-2);
  font-weight: 550; font-size: .93rem; text-decoration: none; transition: background .15s, color .15s; }
.site-nav a.nav-link .icon { color: var(--muted); transition: color .15s; }
.site-nav a.nav-link:hover { background: var(--g-50); color: var(--g-700); }
.site-nav a.nav-link:hover .icon, .site-nav a.nav-link.on .icon { color: var(--g-600); }
.site-nav a.nav-link.on { background: var(--g-50); color: var(--g-700); }
.header-search { position: relative; width: 240px; }
.header-search input { width: 100%; height: 40px; padding: 0 12px 0 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: inherit; font-size: .9rem; transition: border-color .15s, box-shadow .15s, background .15s; }
.header-search input:focus { outline: none; background: #fff; border-color: var(--g-500); box-shadow: 0 0 0 3px var(--g-100); }
.header-search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.nav-cta { margin-left: 8px; }
.nav-burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.35rem; color: var(--ink); cursor: pointer; }

/* Drawer menu (HP) */
.drawer-bg { position: fixed; inset: 0; background: rgba(4, 30, 18, .45); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 81; transform: translateX(100%);
  transition: transform .25s ease, visibility .25s; display: flex; flex-direction: column; visibility: hidden; }
body.nav-open .drawer { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
body.nav-open .drawer-bg { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.drawer-body .header-search { width: 100%; margin-bottom: 14px; }
.drawer-body a.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; color: var(--ink); font-weight: 550; text-decoration: none; }
.drawer-body a.nav-link .icon { color: var(--g-600); font-size: 1.15rem; }
.drawer-body a.nav-link.on, .drawer-body a.nav-link:hover { background: var(--g-50); }

/* ---------- Hero beranda ---------- */
.hero { position: relative; overflow: hidden; color: #e6f6ee;
  background: radial-gradient(900px 420px at 85% -10%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(140deg, var(--g-800) 0%, var(--g-600) 100%);
  padding: 72px 0 84px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero::after { content: ""; position: absolute; right: -140px; bottom: -180px; width: 460px; height: 460px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .05); }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { color: #bff0d6; background: rgba(255, 255, 255, .1); padding: 6px 12px; border-radius: 99px; margin-bottom: 18px; }
.hero h1 { color: #fff; max-width: 780px; margin: 0 0 14px; }
.hero .lead { max-width: 640px; font-size: 1.08rem; color: #c9ecda; margin-bottom: 28px; }
.search-xl { display: flex; align-items: center; gap: 6px; max-width: 760px; background: #fff; padding: 7px; border-radius: 16px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .45); }
.search-xl .sx-input { position: relative; flex: 1; min-width: 0; }
.search-xl .sx-input .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; }
.search-xl input { width: 100%; height: 52px; border: 0; padding: 0 14px 0 46px; font: inherit; font-size: 1.02rem; color: var(--ink); background: transparent; }
.search-xl input:focus { outline: none; }
.search-xl select { height: 52px; border: 0; border-left: 1px solid var(--line); padding: 0 12px; font: inherit; font-size: .92rem; color: var(--ink-2); background: transparent; max-width: 210px; cursor: pointer; }
.search-xl select:focus { outline: none; }
.search-xl .btn { height: 52px; padding: 0 24px; border-radius: 12px; font-size: 1rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.chips .chip-label { color: #b9e3cc; font-size: .86rem; margin-right: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 99px; font-size: .85rem; font-weight: 550; text-decoration: none !important;
  background: rgba(255, 255, 255, .12); color: #effaf4; border: 1px solid rgba(255, 255, 255, .16); transition: background .15s; }
.chip:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 44px; max-width: 840px; }
.hero-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.hero-stat .icon { font-size: 1.4rem; color: #9fe3bf; }
.hero-stat strong { display: block; color: #fff; font-size: 1.45rem; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
.hero-stat span { font-size: .82rem; color: #c3e8d4; }

/* ---------- Kartu kategori jelajah ---------- */
.explore { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.explore a { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.explore a:hover { border-color: var(--g-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.explore .ex-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--g-50); color: var(--g-600); font-size: 1.35rem; margin-bottom: 8px; }
.explore strong { font-size: 1.02rem; }
.explore span { font-size: .88rem; color: var(--muted); }

/* ---------- Daftar karya ---------- */
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.work { position: relative; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.work:hover { border-color: var(--g-200); box-shadow: var(--shadow); transform: translateY(-1px); }
.work .w-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.type-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: var(--g-50); color: var(--g-700); font-size: .76rem; font-weight: 650; }
.lock-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; background: var(--amber-50); color: var(--amber); font-size: .76rem; font-weight: 650; }
.work .w-title { display: block; font-size: 1.1rem; font-weight: 650; line-height: 1.4; color: var(--ink); text-decoration: none; letter-spacing: -.005em; }
.work .w-title::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }  /* seluruh kartu bisa diklik */
.work .w-title:hover { color: var(--g-700); }
.work .w-meta { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: .88rem; }
.work .w-meta span { display: inline-flex; gap: 6px; align-items: center; }
.work .w-abs { margin: 10px 0 0; color: var(--ink-2); font-size: .93rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Header halaman dalam ---------- */
.page-top { background: linear-gradient(180deg, var(--g-50), #fff); border-bottom: 1px solid var(--line-2); padding: 34px 0 30px; }
.page-top h1 { margin: 10px 0 6px; }
.page-top .sub { color: var(--muted); margin: 0; font-size: 1rem; }
.bc { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: .86rem; color: var(--muted); list-style: none; margin: 0; padding: 0; }
.bc a { color: var(--muted); text-decoration: none; }
.bc a:hover { color: var(--g-700); }
.bc .icon { font-size: .72rem; opacity: .7; }

/* ---------- Jelajah: fakultas & prodi ---------- */
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.fac-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.fac-card .fc-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.fac-card .fc-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--g-600); color: #fff; display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.fac-card .fc-head a { color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.3; }
.fac-card .fc-head a:hover { color: var(--g-700); }
.fac-card .fc-head small { display: block; color: var(--muted); font-weight: 450; font-size: .82rem; }
.row-links { list-style: none; margin: 0; padding: 8px; }
.row-links a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .95rem; transition: background .12s; }
.row-links a:hover { background: var(--g-50); color: var(--g-800); }
.row-links a .rl-name { flex: 1; min-width: 0; }
.row-links a .count { min-width: 30px; padding: 1px 9px; border-radius: 99px; background: var(--g-100); color: var(--g-800); font-size: .8rem; font-weight: 700; text-align: center; }
.row-links a .count.zero { background: var(--line-2); color: var(--muted); font-weight: 550; }
.row-links a .icon.go { color: #b9c6bf; font-size: .8rem; transition: transform .15s, color .15s; }
.row-links a:hover .icon.go { color: var(--g-600); transform: translateX(2px); }

/* Jelajah: tahun & jenis */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none !important; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: var(--g-200); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.tile .t-big { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; color: var(--g-700); }
.tile .t-small { font-size: .85rem; color: var(--muted); }
.tile .t-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--g-50); color: var(--g-600); font-size: 1.2rem; margin-bottom: 8px; }
.tile-grid.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Jelajah: penulis */
.letter-bar { position: sticky; top: 70px; z-index: 5; background: #fff; padding: 12px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.letter-bar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.letter-bar a { min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-weight: 600; font-size: .87rem; text-decoration: none; transition: all .12s; }
.letter-bar a:hover { border-color: var(--g-400); color: var(--g-700); }
.letter-bar a.on { background: var(--g-600); border-color: var(--g-600); color: #fff; }
.name-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 20px; }

/* ---------- Pencarian ---------- */
.search-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.filter-panel { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.filter-panel summary { display: none; }
.filter-panel .fp-body { padding: 20px; display: grid; gap: 14px; }
.filter-panel label { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.filter-panel select, .filter-panel input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d3dcd7; border-radius: 10px; font: inherit; font-size: .92rem; background: #fff; }
.filter-panel select:focus, .filter-panel input:focus { outline: none; border-color: var(--g-500); box-shadow: 0 0 0 3px var(--g-100); }
.filter-panel .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.result-bar .count { color: var(--muted); }
.result-bar .count strong { color: var(--ink); }
.result-bar select { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: .88rem; background: #fff; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 99px; background: var(--g-50); border: 1px solid var(--g-100);
  color: var(--g-800); font-size: .84rem; text-decoration: none; }
.active-filters a .icon { font-size: .75rem; padding: 3px; border-radius: 50%; background: var(--g-100); }
.active-filters a:hover { border-color: var(--g-400); }

/* ---------- Detail karya ---------- */
.item-hero { background: linear-gradient(180deg, var(--g-50), #fff); border-bottom: 1px solid var(--line-2); padding: 30px 0 34px; }
.item-hero h1 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.05rem); margin: 14px 0 12px; max-width: 900px; }
.item-hero .authors { font-size: 1.04rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.item-hero .authors a { color: var(--g-700); font-weight: 600; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.meta-row span { display: inline-flex; align-items: center; gap: 7px; }
.item-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.item-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 24px 26px; margin-bottom: 22px; }
.panel > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; margin-bottom: 16px; }
.panel > h2 .icon { color: var(--g-600); }
.prose { font-size: 1.01rem; line-height: 1.8; color: var(--ink-2); text-align: justify; hyphens: auto; max-width: 75ch; }
.kw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kw a { padding: 5px 12px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; text-decoration: none; }
.kw a:hover { border-color: var(--g-400); color: var(--g-700); background: var(--g-50); }
.dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 0; font-size: .95rem; }
.dl dt, .dl dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.dl dt { color: var(--muted); font-weight: 550; padding-right: 14px; }
.dl dd { word-break: break-word; }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }
.side-sticky { position: sticky; top: 90px; }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); transition: border-color .12s, background .12s; }
.files li.ok:hover { border-color: var(--g-200); background: var(--g-50); }
.files .f-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; flex: none; background: #fdecea; color: #c2281d; }
.files li.lock .f-ico { background: var(--line-2); color: var(--muted); }
.files .f-txt { flex: 1; min-width: 0; line-height: 1.35; }
.files .f-txt strong { display: block; font-size: .93rem; font-weight: 600; color: var(--ink); }
.files .f-txt small { color: var(--muted); font-size: .8rem; }
.files li.lock .f-txt strong { color: var(--muted); }
.files a.f-dl { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--g-700); background: var(--g-50); border: 1px solid var(--g-100); text-decoration: none; }
.files a.f-dl:hover { background: var(--g-600); color: #fff; border-color: var(--g-600); }
.seg { display: inline-flex; padding: 3px; background: var(--line-2); border-radius: 10px; gap: 2px; margin-bottom: 12px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--g-700); box-shadow: var(--shadow-sm); }
.cite-out { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: .88rem; line-height: 1.6; color: var(--ink-2); word-break: break-word; }
.cite-out pre { margin: 0; white-space: pre-wrap; font: .8rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-pair div { padding: 14px; border-radius: 12px; background: var(--bg); text-align: center; }
.stat-pair strong { display: block; font-size: 1.35rem; font-weight: 750; color: var(--g-700); }
.stat-pair span { font-size: .8rem; color: var(--muted); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Kosong & paginasi publik ---------- */
.empty-pub { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); background: #fff; }
.empty-pub .icon { font-size: 2.6rem; color: var(--g-400); display: block; margin-bottom: 10px; }
.empty-pub strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { flex-shrink: 0; background: var(--g-950); color: #a7cdb9; font-size: .92rem; margin-top: 0; }
.site-footer .f-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding: 52px 0 36px; }
.site-footer h4 { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #d6efe2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand .b-name { color: #fff; }
.site-footer .brand .b-name small { color: #8fbfa6; }
.site-footer .f-about { margin-top: 14px; max-width: 360px; line-height: 1.6; }
.site-footer .f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .f-contact .icon { color: var(--g-400); margin-top: 3px; }
.site-footer .f-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: #86b39b; }

/* Tombol kembali ke atas */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--g-600); color: #fff; font-size: 1.15rem;
  box-shadow: 0 10px 24px -8px rgba(14, 124, 74, .6); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--g-700); }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .header-search { display: none; }
  .item-layout { grid-template-columns: 1fr; }
  .side-sticky { position: static; }
  .site-footer .f-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-burger { display: inline-grid; place-items: center; }
  .explore { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-layout { grid-template-columns: 1fr; gap: 18px; }
  .filter-panel { position: static; }
  .filter-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; cursor: pointer; font-weight: 650; list-style: none; }
  .filter-panel summary::-webkit-details-marker { display: none; }
  .filter-panel:not([open]) .fp-body { display: none; }
  .filter-panel[open] summary { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .site-header .container { height: 62px; }
  .letter-bar { top: 62px; }
  .brand .b-name small { display: none; }
  .hero { padding: 44px 0 52px; }
  .hero .lead { font-size: 1rem; }
  .search-xl { flex-wrap: wrap; padding: 8px; }
  .search-xl .sx-input { flex: 1 1 100%; }
  .search-xl select { flex: 1; border-left: 0; border-top: 1px solid var(--line); max-width: none; height: 46px; }
  .search-xl .btn { height: 46px; }
  .hero-stats { gap: 10px; margin-top: 32px; }
  .hero-stat { padding: 12px; }
  .hero-stat strong { font-size: 1.25rem; }
  .explore { gap: 12px; }
  .explore a { padding: 16px; }
  .work { padding: 16px; }
  .panel { padding: 20px 18px; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { padding-bottom: 0; border-bottom: 0; font-size: .82rem; }
  .fac-grid { grid-template-columns: 1fr; }
  .site-footer .f-top { grid-template-columns: 1fr; gap: 26px; padding-top: 40px; }
  .to-top { right: 14px; bottom: 14px; }
}
@media print {
  .site-header, .site-footer, .drawer, .drawer-bg, .to-top, .item-actions, .filter-panel { display: none !important; }
}
@media (max-width: 900px) { .hide-md { display: none !important; } }
.btn.copied { background: var(--g-50); color: var(--g-700); border-color: var(--g-200); }
.panel > h2 { margin-top: 0; }
@media (max-width: 640px) { .prose { text-align: left; hyphens: manual; } }
