/* Independent PRONI Search — visual homage to the PRONI eCatalogue.
   Title in a Rockwell slab-serif (as PRONI headings); body in Verdana (as PRONI
   body text). Brand navy #053B83. */
:root {
  --brand: #053B83;         /* Civgraph navy — logo, title, dotted line */
  --navy: #16375e;
  --navy-dark: #0f2947;
  --navy-light: #24507f;
  --accent: #1a73c2;
  --accent-dark: #135a9a;
  --ink: #1b2733;
  --muted: #5c6b7a;
  --line: #d9e0e8;
  --bg: #fbfcfe;            /* white-ish page, like the PRONI eCatalogue background */
  --card: #ffffff;
  --panel-blue: #e9f1fa;    /* light-blue search box, like PRONI's search-fields box */
  --radius: 8px;
  --shadow: 0 1px 3px rgba(16, 40, 70, .12), 0 1px 2px rgba(16, 40, 70, .08);
  /* PRONI's fonts: Rockwell slab-serif for headings; Verdana for all body and
     label text — PRONI sets Repository:/PRONI Reference: etc. in Verdana. */
  --serif: "Rockwell Bold", Rockwell, Georgia, "Palatino Linotype", Palatino, "URW Palladio L", Times, "Times New Roman", serif;
  --sans: Verdana, Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
a { color: var(--accent-dark); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header — no bar, transparent over the page background */
.ps-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem 1.25rem; flex-wrap: nowrap;
  max-width: 1080px; margin: 0 auto; padding: 1.1rem clamp(0.75rem, 3vw, 2rem) 0.6rem;
}
/* the title takes the remaining width and wraps; the "provided by" lockup keeps
   its natural size, anchored to the top-right, so the two never overlap */
.ps-header__title { flex: 1 1 auto; min-width: 0; }
.ps-header__title h1 { font-family: var(--serif); color: var(--brand); font-size: clamp(1.5rem, 3.6vw, 2.15rem); margin: 0; font-weight: 500; letter-spacing: .2px; overflow-wrap: anywhere; }
.ps-header__title h1 a { color: inherit; text-decoration: none; }
.ps-header__title h1 a:hover { color: var(--navy-light); }
.ps-header__title p { font-family: var(--sans); font-weight: 700; color: var(--muted); margin: 0.15rem 0 0; font-size: 0.85rem; }

.ps-provided { flex: 0 0 auto; display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 0.55rem; text-decoration: none; }
.ps-provided__by { grid-column: 1; grid-row: 1; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); align-self: center; }
.ps-provided__logo { grid-column: 2; grid-row: 1; height: 34px; width: auto; display: block; }
.ps-provided__note { grid-column: 2; grid-row: 2; font-family: var(--sans); font-size: 0.7rem; color: var(--muted); text-align: right; margin-top: 1px; }

/* PRONI-style dotted divider (border-bottom: .125em dotted on the original) */
.ps-divider { max-width: 1080px; margin: 0.35rem auto 0.9rem; height: 0; border-top: 2px dotted var(--brand); padding: 0 clamp(0.75rem, 3vw, 2rem); }

/* main + search */
.ps-main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(0.75rem, 3vw, 2rem) 3rem; }
.ps-search { background: var(--panel-blue); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1rem 0.85rem; }
.ps-search__bar { display: flex; align-items: center; gap: 0.6rem; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 0.15rem 0.75rem; transition: border-color .12s, box-shadow .12s; }
.ps-search__bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,115,194,.15); }
.ps-search__icon { color: var(--muted); font-size: 1.2rem; }
.ps-search__input { flex: 1; border: none; outline: none; font-family: var(--sans); font-size: 1.05rem; padding: 0.65rem 0; background: transparent; color: var(--ink); }
.ps-search__clear { border: none; background: none; font-size: 1.6rem; color: var(--muted); cursor: pointer; line-height: 1; padding: 0 .2rem; }
.ps-search__clear:hover { color: var(--ink); }

.ps-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.8rem; }
.ps-btn { font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 0.45rem 0.8rem; }
.ps-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.ps-btn--ghost { border-color: var(--accent); color: var(--accent-dark); }
.ps-btn:disabled, .ps-btn[disabled] { opacity: 0.5; cursor: default; }

/* export row */
.ps-export { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; margin: 0.9rem 0 0; padding-top: 0.85rem; border-top: 1px solid var(--line); }
a.ps-btn--export { text-decoration: none; display: inline-flex; align-items: center; }
.ps-btn--export { color: var(--brand); border-color: var(--accent); }
.ps-btn--export:not([disabled]):hover { background: #f2f8ff; }
.ps-export__note { flex: 1 1 14rem; min-width: 12rem; font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

.ps-dates { display: flex; align-items: center; gap: 0.6rem; }
.ps-date { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; color: var(--muted); }
.ps-date__input { font: inherit; font-size: 0.85rem; padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.ps-date__input:focus { outline: none; border-color: var(--accent); }

.ps-sort { display: flex; align-items: center; gap: 0.45rem; margin-left: auto; }
.ps-sort__label { font-size: 0.82rem; color: var(--muted); }
.ps-select { font: inherit; font-size: 0.85rem; padding: 0.4rem 0.5rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.ps-sortdir { display: inline-flex; align-items: center; gap: 0.3rem; font: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer; border: 1px solid var(--brand); border-radius: 6px; background: var(--brand); color: #fff; padding: 0.4rem 0.6rem; line-height: 1; }
.ps-sortdir:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.ps-sortdir__arrow { font-size: 1.1rem; line-height: 1; }

.ps-advanced { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.7rem 1rem; margin: 0.9rem 0 0; padding: 0.9rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); background: #f7fafd; }
.ps-advanced[hidden] { display: none; }
.ps-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.ps-field input, .ps-field select { font: inherit; font-size: 0.92rem; font-weight: 400; color: var(--ink); padding: 0.45rem 0.55rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ps-field input:focus, .ps-field select:focus { outline: none; border-color: var(--accent); }

/* A-Z centred across two rows */
.ps-az { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.32rem; max-width: 33rem; margin: 0.9rem auto 0; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.ps-az__btn { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; width: 2.1rem; height: 2rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--brand); cursor: pointer; }
.ps-az__btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.ps-az__btn.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.ps-az__clear { font-size: 0.75rem; font-weight: 700; height: 2rem; padding: 0 0.7rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); cursor: pointer; }

/* status + results */
.ps-status { color: var(--muted); font-size: 1rem; margin: 1.1rem 0.2rem 0.6rem; min-height: 1.2em; }
.ps-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.ps-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.9rem 1.1rem; }
.ps-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.ps-card__title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--brand); }
.ps-card__ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; color: var(--accent-dark); white-space: nowrap; }
.ps-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--muted); }
.ps-card__meta b { color: var(--ink); font-weight: 700; }
.ps-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 0.1rem 0.45rem; border-radius: 999px; background: #eef4fb; color: var(--accent-dark); }
.ps-badge--digi { background: #e9f7ee; color: #1a7a3e; }
.ps-card__desc { margin: 0.6rem 0 0; font-size: 1rem; color: #2a3846; }
.ps-card__more { margin-top: 0.35rem; background: none; border: none; padding: 0; color: var(--accent-dark); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.ps-card__more:hover { text-decoration: underline; }

.ps-empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.ps-sentinel { height: 1px; }
.ps-loading { text-align: center; color: var(--muted); padding: 1.2rem; font-size: 0.85rem; }

/* modal */
.ps-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ps-modal[hidden] { display: none; }
.ps-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 41, 71, .55); }
.ps-modal__panel { position: relative; background: #fff; border-radius: var(--radius); max-width: 720px; width: 100%; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.ps-modal__close { position: absolute; top: 0.5rem; right: 0.7rem; border: none; background: none; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; }
.ps-modal__close:hover { color: var(--ink); }
.ps-modal__body { padding: 1.4rem 1.5rem 1.6rem; overflow: auto; }
.ps-modal__body h2 { font-family: var(--serif); margin: 0 1.5rem 0.2rem 0; color: var(--brand); font-size: 1.3rem; }
.ps-modal__ref { font-family: ui-monospace, monospace; color: var(--accent-dark); font-size: 0.9rem; }
.ps-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 1rem 0; }
.ps-dl dt { font-weight: 700; color: var(--muted); font-size: 0.85rem; }
.ps-dl dd { margin: 0; }
.ps-modal__descheading { font-size: 0.85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 1rem 0 0.4rem; }
.ps-modal__desc { white-space: pre-wrap; line-height: 1.6; max-height: 40vh; overflow: auto; padding: 0.75rem 0.9rem; background: #f7fafd; border: 1px solid var(--line); border-radius: 6px; }
.ps-modal__link { display: inline-block; margin-top: 1rem; font-weight: 700; }

/* footer */
.ps-footer { background: var(--navy); color: #cfdcec; border-top: 3px solid var(--navy-dark); padding: 1.1rem clamp(1rem, 4vw, 2.5rem); font-size: 0.82rem; }
.ps-footer a { color: #9fc4ec; }
.ps-footer p { margin: 0; max-width: 1000px; margin-inline: auto; line-height: 1.6; }
.ps-footer p + p { margin-top: 0.7rem; }

/* ===================== card: head (title + ref) + meta + body ===================== */
.ps-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem 1.25rem; flex-wrap: wrap; }
.ps-card__title { font-family: var(--sans); font-size: 1.1rem; font-weight: 800; color: var(--ink); text-decoration: none; cursor: pointer; flex: 1 1 15rem; min-width: 0; overflow-wrap: anywhere; }
.ps-card__title:hover { text-decoration: underline; }
/* reference block pinned to the card's top-right; ref+copy on one row, the
   "View on PRONI eCatalogue" link on the line below */
.ps-card__head .ps-refwidget { flex: 0 0 auto; margin: 0; text-align: right; }
.ps-card__head .ps-refwidget__row { justify-content: flex-end; }
.ps-card__head .ps-ecatlink { margin-top: 0.25rem; }
.ps-card__meta { margin-top: 0.5rem; }
.ps-card__actions { margin-top: 0.55rem; }
.ps-card__body { margin-top: 0.5rem; }
.ps-card__body:empty { margin: 0; }

.ps-expand { flex: none; display: inline-flex; align-items: center; gap: 0.3rem; font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--accent-dark); background: #eef4fb; border: 1px solid var(--line); border-radius: 6px; padding: 0.32rem 0.65rem; cursor: pointer; white-space: nowrap; }
.ps-expand:hover { border-color: var(--accent); background: #e2eefb; }
.ps-expand.is-open { background: var(--brand); color: #fff; border-color: var(--brand); }
.ps-expand__icon { font-size: 0.7rem; }

/* an expanded card pins its whole header block — title, reference and details —
   while the children scroll beneath; nested headers stack by depth */
.ps-card.is-expanded > .ps-card__sticky {
  position: sticky; top: calc(var(--depth, 0) * 5rem); z-index: 6;
  background: var(--card); padding: 0.5rem 0.15rem; margin: -0.3rem -0.15rem 0.1rem;
  border-bottom: 2px solid var(--brand); box-shadow: 0 3px 8px rgba(16, 40, 70, .14); border-radius: 4px;
}

.ps-children { list-style: none; margin: 0.75rem 0 0.15rem; padding: 0 0 0 1.25rem; display: grid; gap: 0.7rem; border-left: 2px dashed #c4d3e4; }
.ps-children[hidden] { display: none; }
.ps-children__empty { color: var(--muted); font-size: 0.85rem; padding: 0.3rem 0; }

/* ===================== reference widget (ref + copy + link) ===================== */
.ps-refwidget { margin: 0.55rem 0 0; }
.ps-refwidget__row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem 0.6rem; }
.ps-refwidget__label { font-weight: 800; color: var(--ink); font-size: 0.85rem; }
.ps-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; color: var(--accent-dark); font-size: 0.95rem; }
.ps-copy { font: inherit; font-size: 0.72rem; font-weight: 700; color: var(--accent-dark); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0.22rem 0.5rem; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.ps-copy:hover { border-color: var(--accent); }
.ps-copy.is-copied { background: #e9f7ee; color: #1a7a3e; border-color: #bfe6cd; }
.ps-ecatlink { display: inline-block; margin-top: 0.3rem; font-size: 0.8rem; font-weight: 700; color: var(--accent-dark); text-decoration: none; border-bottom: 1px dotted var(--accent-dark); }
.ps-ecatlink:hover { color: var(--brand); border-bottom-style: solid; }

/* ===================== record page ===================== */
.ps-rec__toolbar { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0.6rem 1.1rem; margin: 1rem 0 0.9rem; }
.ps-back { flex: none; display: inline-flex; align-items: center; gap: 0.3rem; font: inherit; font-size: 0.85rem; font-weight: 700; color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: 6px; padding: 0.42rem 0.85rem; text-decoration: none; cursor: pointer; }
.ps-back:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
/* levels above the record, stacked vertically, each with its title */
.ps-levels { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.82rem; padding-top: 0.1rem; }
.ps-levels__item { color: var(--accent-dark); text-decoration: none; }
.ps-levels__item:hover { text-decoration: underline; }
.ps-levels__item .ps-ref, .ps-levels__current .ps-ref { font-size: 0.82rem; }
.ps-levels__t { color: inherit; }
.ps-levels__current { font-weight: 700; color: var(--ink); }
.ps-levels__current .ps-ref { color: var(--brand); }

.ps-rec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.3rem 1.5rem; }
.ps-rec__title { font-family: var(--sans); color: var(--ink); font-size: 1.4rem; font-weight: 800; margin: 0 0 0.8rem; }
.ps-rec__additional { margin: 1.5rem 0 0.3rem; }
.ps-rec__addhead { font-family: var(--serif); color: var(--brand); font-size: 1.05rem; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.ps-rec__addtag { font-family: var(--sans); font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--accent-dark); background: #eef4fb; border: 1px solid var(--line); border-radius: 999px; padding: 0.12rem 0.5rem; }
.ps-rec__datetags { color: var(--muted); font-size: 0.85rem; }

.ps-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; margin: 0.6rem 0; padding: 0.4rem; background: #eef2f7; border: 1px solid var(--line); border-radius: 6px; }
.ps-pager__btn { font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--accent-dark); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 0.32rem 0.7rem; text-decoration: none; cursor: pointer; }
.ps-pager__btn:hover { border-color: var(--accent); background: #f2f8ff; }
.ps-pager__btn.is-disabled { color: #9aa8b6; background: #f4f6f9; cursor: default; pointer-events: none; }
.ps-pager__count { font-size: 0.82rem; font-weight: 700; color: var(--muted); margin: 0 0.3rem; }

.ps-rec__table { width: 100%; border-collapse: collapse; margin: 0.4rem 0; font-size: 1rem; }
.ps-rec__table tr { border-bottom: 1px solid var(--line); }
.ps-rec__table tr:nth-child(odd) { background: #f5f8fb; }
.ps-rec__table th { text-align: left; vertical-align: top; font-weight: 700; color: var(--ink); width: 12.5rem; max-width: 40%; padding: 0.6rem 0.9rem; white-space: nowrap; }
.ps-rec__table td { vertical-align: top; padding: 0.6rem 0.9rem; color: #2a3846; }
.ps-rec__desc { white-space: pre-wrap; line-height: 1.6; max-height: 46vh; overflow: auto; }
@media (max-width: 640px) {
  .ps-rec__table th { white-space: normal; width: 8.5rem; }
}

.ps-rec__children { margin-top: 1.3rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.ps-rec__children h3 { font-family: var(--serif); color: var(--brand); font-size: 1.05rem; margin: 0 0 0.6rem; }
.ps-rec__count { color: var(--muted); font-weight: 400; font-family: var(--sans); font-size: 0.85rem; }
.ps-rec__children ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.ps-rec__children a { text-decoration: none; color: var(--ink); }
.ps-rec__children a:hover { color: var(--accent-dark); text-decoration: underline; }
.ps-rec__morenote { color: var(--muted); font-size: 0.82rem; font-style: italic; }

/* ===================== "View on PRONI eCatalogue" guide ===================== */
.ps-guide { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.4rem 1.6rem; max-width: 820px; }
.ps-guide__title { font-family: var(--serif); color: var(--brand); font-size: 1.35rem; margin: 0 0 1rem; }
.ps-guide__steps { margin: 0; padding-left: 1.4rem; display: grid; gap: 1.4rem; }
.ps-guide__steps > li { padding-left: 0.3rem; }
.ps-guide__lead { margin: 0 0 0.6rem; font-weight: 700; font-size: 1.02rem; }
.ps-guide__reffield { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.6rem; font-weight: 700; color: var(--brand); background: #f2f7fd; border: 2px dashed var(--accent); border-radius: 8px; padding: 0.9rem 1.1rem; cursor: pointer; user-select: all; word-break: break-all; transition: background .12s; }
.ps-guide__reffield:hover { background: #e7f1fc; }
.ps-guide__reffield.is-copied { background: #e9f7ee; border-color: #2f9a56; color: #1a7a3e; }
.ps-guide__copied { display: inline-block; margin-top: 0.45rem; font-size: 0.85rem; font-weight: 700; color: #1a7a3e; }
/* frame the screenshot as an obvious browser-window screenshot, not live UI */
.ps-shotframe { margin: 0.5rem 0 0; max-width: 640px; background: #fff; border: 1px solid #c4d0dd; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(16, 40, 70, .2); }
.ps-shotframe__bar { display: flex; align-items: center; gap: 0.6rem; background: linear-gradient(#f1f4f8, #e3e9f1); border-bottom: 1px solid #cfd8e3; padding: 0.45rem 0.7rem; }
.ps-shotframe__dots { display: inline-flex; gap: 0.3rem; flex: none; }
.ps-shotframe__dots i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #cdd6e1; display: block; }
.ps-shotframe__dots i:nth-child(1) { background: #ff5f57; }
.ps-shotframe__dots i:nth-child(2) { background: #febc2e; }
.ps-shotframe__dots i:nth-child(3) { background: #28c840; }
.ps-shotframe__url { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; color: #5c6b7a; background: #fff; border: 1px solid #d5dee8; border-radius: 999px; padding: 0.2rem 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-guide__shot { display: block; margin: 0; width: 100%; height: auto; border: 0; }
.ps-shotframe__cap { font-size: 0.75rem; font-style: italic; color: var(--muted); background: #f7fafd; border-top: 1px solid #e3e9f0; padding: 0.45rem 0.7rem; text-align: center; }
.ps-guide__cta { display: inline-block; margin-top: 1.6rem; font-size: 1.05rem; font-weight: 800; color: #fff; background: var(--brand); border-radius: 8px; padding: 0.85rem 1.4rem; text-decoration: none; box-shadow: var(--shadow); }
.ps-guide__cta:hover { background: var(--navy-dark); }

@media (max-width: 640px) {
  .ps-sort { margin-left: 0; }
  .ps-guide__reffield { font-size: 1.25rem; }
}
/* keep the lockup at the top-right on small screens (no longer stacked below the
   title); shrink it so the wrapping title keeps enough room */
@media (max-width: 560px) {
  .ps-provided__by { font-size: 0.68rem; }
  .ps-provided__logo { height: 26px; }
  .ps-provided__note { font-size: 0.6rem; }
}
