/* science.environmentalflows.com: paper gallery (/papers/), P3.4. Source: Sites\science\src\gallery.css (build.py
   copies it to site\assets\gallery.css). Uses the tokens stamped into site.css. */
main.papers { max-width: 1080px; }
.g-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin: 6px 0 10px; }
.g-search label { width: 100%; font-weight: 600; font-size: 15px; }
.g-search input { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 16px; padding: 8px 10px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; }
.g-search button, .g-pager button, .g-ftoggle { font: 500 15px var(--body); background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.g-pager button[disabled] { opacity: .45; cursor: default; }
.g-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.g-bar p { margin: 0; font-size: 15px; color: var(--muted); }
.g-bar label { font-size: 14px; }
.g-bar select { font: inherit; font-size: 14px; padding: 4px 6px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; }
.g-ftoggle { display: none; }
.g-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 26px; align-items: start; }
.g-facets { font-size: 14px; }
.g-fh { font-size: 20px; margin: 0 0 6px; }
.g-facet { border-top: 1px solid var(--line); padding: 6px 0; }
.g-facet > summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 2px 0; }
.g-nsel { display: inline-block; font: 600 11px/1.6 var(--mono); background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 6px; }
.g-opts { list-style: none; padding: 0; margin: 4px 0; }
.g-opts li { margin: 2px 0; display: flex; gap: 6px; align-items: baseline; }
.g-opts li.g-sub { display: block; margin: 8px 0 2px; font-size: 13px; color: var(--muted); }
.g-opts li.g-sub ul { list-style: none; padding: 0 0 0 2px; margin: 2px 0 0; color: var(--ink); font-size: 14px; }
.g-opts input { margin: 0; flex: none; }
.g-opts label, .g-switch label { cursor: pointer; }
.g-opts input:disabled + label { color: var(--muted); opacity: .6; cursor: default; }
.n { font: 12px var(--mono); color: var(--muted); }
.g-switch { display: flex; gap: 6px; align-items: baseline; margin: 8px 0 2px; }
.g-hint, .g-none { font-size: 13px; color: var(--muted); margin: 2px 0 4px; }
.g-link { font: inherit; font-size: 13px; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.g-active { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.g-active:empty { display: none; }
.g-x { font: 13px var(--body); background: var(--soft); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.g-x:hover { border-color: var(--accent); }
.g-list { list-style: none; padding: 0; margin: 0; }
.g-card { border-top: 1px solid var(--line); padding: 14px 0; margin: 0; }
.g-card h3 { font-family: var(--body); font-size: 18px; font-weight: 600; line-height: 1.35; margin: 0 0 4px; }
.g-card h3 a { color: var(--ink); text-decoration: none; }
.g-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.g-meta { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.g-badges { margin: 0 0 6px; line-height: 1.9; }
.g-badge { display: inline-block; font: 600 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; color: var(--muted); background: var(--panel); }
.g-badge.to { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); cursor: help; }
.g-badge.oa { color: var(--ink); }
a.g-badge.ai { text-decoration: none; }
.g-sum { margin: 0 0 8px; }
.g-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
a.g-issue { font-family: var(--body); font-size: 13px; padding: 1px 8px; border-left-width: 4px; }
a.g-issue.gA { border-left-color: var(--gA); } a.g-issue.gB { border-left-color: var(--gB); } a.g-issue.gC { border-left-color: var(--gC); }
a.g-issue.gD { border-left-color: var(--gD); } a.g-issue.gE { border-left-color: var(--gE); }
.g-tags li { font-size: 12px; }
.g-empty, .g-loading { color: var(--muted); padding: 14px 0; }
.g-error { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); border-radius: 6px; padding: 8px 12px; }
.g-pager { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; padding: 14px 0 4px; border-top: 1px solid var(--line); }
.g-pager:empty { display: none; }
.g-more { width: 100%; text-align: center; font-size: 14px; color: var(--muted); margin: 0; }
.g-record { max-width: 760px; }
.g-record h1 { font-family: var(--body); font-size: 28px; font-weight: 600; line-height: 1.3; }
.g-record h2 { font-size: 22px; margin: 18px 0 6px; }
.g-links { font-size: 15px; }
.g-rissues { list-style: none; padding: 0; }
.g-rissues li { margin: 6px 0; }
.g-more-link { font-size: 13px; margin-left: 6px; }
.g-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0 0 12px; font-size: 15px; }
.g-dl dt { color: var(--muted); }
.g-dl dd { margin: 0; }
.g-note { font-size: 14px; color: var(--muted); }
.g-back { font-size: 15px; }
.g-record h1:focus { outline: none; }
@media (max-width: 760px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .g-ftoggle { display: inline-block; }
  .g-facets { display: none; }
  #gallery.filters-open .g-facets { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--panel); }
  .g-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .g-dl dd { margin: 0 0 6px; }
  .g-record h1 { font-size: 23px; }
}
