/*
Theme Name: OpenConsult
Description: Humanised GOV.UK-styled theme for OpenConsult: public consultation documents made searchable, citable and answerable. Light theme only by design.
Version: 1.1.0
Author: OpenConsult
License: MIT
Text Domain: openconsult
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0b0c0c;
  --muted: #505a5f;
  --line: #d8dadb;
  --line-strong: #b1b4b6;
  --accent: #1d70b8;
  --accent-dark: #003078;
  --accent-ink: #ffffff;
  --accent-soft: #e8f1f8;
  --panel: #f3f2f1;
  --mark: #ffdd00;
  --danger: #0b0c0c;
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(11, 12, 12, .05), 0 4px 14px rgba(11, 12, 12, .06);
  --shadow-lift: 0 2px 6px rgba(11, 12, 12, .08), 0 10px 30px rgba(11, 12, 12, .1);
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
}
body.oc-ctx { padding-bottom: 80px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 720px; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--mark); outline-offset: 0; box-shadow: none;
}
img { max-width: 100%; height: auto; }

/* ---------- masthead and banners ---------- */
.masthead { padding: 24px 0 14px; border-bottom: 6px solid var(--accent); }
.brand {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.brand-icon { margin-right: 10px; font-size: 1.2em; vertical-align: -2px; }
.mast-crumb { margin: 0 0 8px; font-size: .85rem; }
.mast-crumb a { color: var(--muted); text-decoration: none; }
.mast-crumb a:hover { color: var(--accent-dark); text-decoration: underline; }
.strap { margin: 4px 0 0; color: var(--muted); }
.crumb { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }
.crumb a { color: var(--muted); }

.deadline {
  background: var(--accent); color: var(--accent-ink);
  padding: 9px 0; font-weight: 600; font-size: .95rem;
}
.deadline a { color: inherit; }

/* ---------- buttons ---------- */
button, .button {
  font: inherit; cursor: pointer; border-radius: var(--radius-s); text-decoration: none;
  display: inline-block;
}
.ghost {
  background: none; border: 1px solid var(--line-strong); color: var(--muted);
  padding: 6px 14px; font-size: .88rem; border-radius: 999px;
}
.ghost:hover { border-color: var(--ink); color: var(--ink); }
.primary, .primary.button {
  background: var(--accent); color: var(--accent-ink); border: none;
  padding: 11px 20px; font-weight: 700; box-shadow: var(--shadow);
  text-decoration: none; transition: background .12s, transform .08s;
}
.primary:hover { background: var(--accent-dark); color: var(--accent-ink); }
.primary:active { transform: translateY(1px); }

/* ---------- landing ---------- */
body.home .masthead { padding: 34px 0 18px; }
.mission { margin: 34px 0 42px; }
.mission h1 {
  font-size: 2.05rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.18;
  margin: 0 0 22px; text-align: left;
}
.mission p { margin: 0 0 14px; }
.prose { max-width: 66ch; }
.lede-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 28px; align-items: center; margin: 0 0 6px;
}
.cartoon { margin: 0; }
.cartoon img { display: block; width: 100%; border-radius: var(--radius); }
@media (max-width: 700px) {
  .lede-row { grid-template-columns: 1fr; }
  .cartoon { max-width: 340px; margin: 0 auto; }
  .mission h1 { font-size: 1.7rem; }
}
.cta-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin: 36px 0; box-shadow: var(--shadow);
}
.cta-panel h2 { margin: 0 0 8px; font-size: 1.2rem; }
.cta-panel p { margin: 0 0 14px; color: var(--muted); max-width: 60ch; }
.home h2 { font-size: 1.15rem; margin: 0 0 12px; }
.consultation {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; text-decoration: none;
  color: var(--ink); margin-bottom: 14px; box-shadow: var(--shadow);
  transition: box-shadow .15s, border-color .15s;
}
.consultation:hover { border-color: var(--accent); box-shadow: var(--shadow-lift); }
.consultation h3 { margin: 0 0 6px; font-size: 1.15rem; }
.consultation .facts { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.consultation .facts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.consultation .go { color: var(--accent); font-weight: 650; font-size: .95rem; }
.deadline-chip {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 4px 14px; font-size: .86rem; font-weight: 700;
  margin-bottom: 10px;
}
.deadline-chip.closed { background: var(--panel); color: var(--ink); }
.invite { margin: 34px 0; color: var(--muted); font-size: .95rem; }
.closed-list { margin: 26px 0; }
.closed-list summary {
  cursor: pointer; color: var(--muted); font-size: .95rem; font-weight: 600;
  padding: 10px 0;
}
.closed-list summary:hover { color: var(--accent-dark); }
.closed-list ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: .92rem; }
.closed-list li { margin-bottom: 7px; }
.closed-list li b { color: var(--ink); }

/* ---------- explorer ---------- */
.explorer-intro { margin: 24px 0 4px; }
.explorer-intro p { margin: 0 0 10px; }
.explorer-intro p:last-child { color: var(--muted); font-size: .95rem; }
.searchbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 14px 0 10px; }
#q {
  width: 100%; padding: 13px 18px; font-size: 1.08rem;
  border: 2px solid var(--ink); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); outline: none;
}
#q:focus { border-color: var(--ink); outline: 3px solid var(--mark); }
.filters { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.pills {
  display: flex; gap: 6px; overflow-x: auto; flex: 1;
  scrollbar-width: none; padding-bottom: 2px;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: 0 0 auto; padding: 6px 15px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink);
  font-size: .9rem; cursor: pointer; white-space: nowrap; transition: background .12s;
}
.pill:hover { background: var(--accent-soft); border-color: var(--accent); }
.pill[aria-selected="true"] {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  font-weight: 700;
}
select {
  padding: 8px 12px; border-radius: var(--radius-s); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: .9rem; max-width: 180px;
}
textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); font: inherit; font-size: .95rem;
}
.count { color: var(--muted); font-size: .92rem; margin: 14px 2px 10px; }

/* ---------- filter panel and chips ---------- */
.filter-btn { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.filter-btn .badge {
  background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  font-size: .78rem; font-weight: 700; padding: 1px 8px; min-width: 22px; text-align: center;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chip {
  border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 999px; padding: 4px 13px; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.chip:hover { background: var(--accent); color: var(--accent-ink); }
.chip span { margin-left: 4px; }
/* Left-hand drawer; the whole drawer scrolls, no inner scroll areas. */
#filter-panel {
  position: fixed; inset: 0 auto 0 0; margin: 0;
  height: 100vh; max-height: 100vh; width: min(380px, 92vw);
  border-radius: 0 16px 16px 0; overflow-y: auto; padding: 24px 26px 32px;
  animation: oc-drawer-in .18s ease-out;
}
@keyframes oc-drawer-in {
  from { transform: translateX(-40px); opacity: .4; }
  to { transform: none; opacity: 1; }
}
#filter-panel .facet { border: none; margin: 16px 0 0; padding: 0; }
#filter-panel legend { font-weight: 700; font-size: .95rem; padding: 0 0 8px; }
.facet-options { display: flex; flex-direction: column; gap: 7px; }
.facet-options label {
  display: flex; align-items: center; gap: 9px; font-size: .95rem; cursor: pointer;
  padding: 3px 2px; border-radius: var(--radius-s);
}
.facet-options label:hover { background: var(--panel); }
.facet-options input { accent-color: var(--accent); width: 17px; height: 17px; }
.fcount { margin-left: auto; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.facet select { width: 100%; max-width: none; }
.facet-foot { display: flex; gap: 8px; margin-top: 18px; }
@media (max-width: 560px) {
  #filter-panel { width: 100vw; max-width: 100vw; border-radius: 0; }
}
.themes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px; margin-top: 16px;
}
.theme-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; cursor: pointer;
  box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s;
}
.theme-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lift); }
.theme-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.theme-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.theme-card .n { color: var(--accent); font-weight: 650; font-size: .84rem; }
.overview-head { margin: 18px 0 4px; }
.overview-head h2 { margin: 0 0 6px; font-size: 1.55rem; letter-spacing: -.01em; }
.overview-head p { margin: 0; color: var(--muted); }
.loading { color: var(--muted); text-align: center; padding: 40px 0; }
.more { display: block; margin: 16px auto 8px; }

/* ---------- section cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; margin: 14px 0;
  box-shadow: var(--shadow);
}
.card .top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ref {
  font-weight: 700; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 2px 12px; font-size: .9rem; white-space: nowrap;
}
.card h3 { margin: 0; font-size: 1.22rem; flex: 1 1 200px; line-height: 1.3; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.pages { color: var(--muted); font-size: .86rem; white-space: nowrap; text-decoration: none; }
.pages:hover { color: var(--accent); }
.snippet { margin: 10px 0 0; color: var(--ink); font-size: .98rem; line-height: 1.6; }
.snippet mark, .fulltext mark { background: var(--mark); color: var(--ink); padding: 0 2px; border-radius: 3px; }
.snippet .human-tag {
  color: var(--accent-dark); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 3px;
}
.tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: .78rem; color: var(--muted); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 2px 11px; background: none; cursor: pointer;
  text-decoration: none;
}
.tag:hover { color: var(--accent); border-color: var(--accent); }
.card .expand {
  margin-top: 10px; background: none; border: none; color: var(--accent);
  padding: 0; font-weight: 600; font-size: .9rem;
}
.fulltext {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong);
  white-space: pre-wrap; font-size: 1.02rem; line-height: 1.7; max-height: 32em;
  overflow-y: auto;
}
.card .actions, .section-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.card .actions a, .card .actions button, .section-actions a, .section-actions button {
  font-size: .88rem; padding: 8px 14px; border: 1px solid var(--line-strong);
  background: none; color: var(--ink); border-radius: var(--radius-s); text-decoration: none;
}
.card .actions .respond, .section-actions .respond {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  font-weight: 700; box-shadow: var(--shadow);
}
.card .actions .respond:hover, .section-actions .respond:hover { background: var(--accent-dark); }

/* ---------- my response basket ---------- */
.basket-toggle {
  font-size: .88rem; padding: 8px 14px; border: 1px solid var(--line-strong);
  background: none; color: var(--ink); border-radius: var(--radius-s); cursor: pointer;
}
.basket-toggle[aria-pressed="true"] {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark);
  font-weight: 700;
}
.basket-link { display: inline-flex; text-decoration: none; }
.basket-link .n {
  background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  font-size: .82rem; font-weight: 700; min-width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 8px;
}
.basket-link:hover .n { background: var(--accent-dark); }
.response-item { position: relative; }
.response-item .top { padding-right: 96px; }
.response-item .remove { position: absolute; top: 18px; right: 18px; }
.response-item textarea { margin-top: 10px; min-height: 72px; }
.response-empty { color: var(--muted); padding: 30px 0; }
.draftbox {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin: 22px 0;
}
.draftbox h2 { margin: 0 0 8px; font-size: 1.1rem; }
.draftbox textarea { min-height: 220px; background: var(--surface); font-size: .9rem; }
.draftbox .note { color: var(--muted); font-size: .84rem; margin: 8px 0 0; }
.copy-row { margin: 8px 0 4px; text-align: right; }
.btn-small { font-size: .82rem; padding: 5px 13px; }
.send-steps { padding-left: 22px; margin: 14px 0 4px; }
.send-steps li { margin-bottom: 18px; }
.send-steps li > strong { display: block; margin-bottom: 6px; }
.send-steps select { width: 100%; max-width: 420px; display: block; }
.send-steps .doboth { max-width: 420px; }
.doboth[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.doboth[disabled]:hover { background: var(--accent); }
.send-steps .button {
  border: 1px solid var(--line-strong); color: var(--ink); padding: 9px 16px;
  font-size: .92rem; border-radius: var(--radius-s); text-decoration: none;
}

/* ---------- single section ---------- */
.section-head { margin: 26px 0 8px; }
.section-head .kicker { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.section-head h1 {
  font-size: 1.8rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.2;
  margin: 0 0 8px; text-wrap: balance;
}
.section-head .pagesline { color: var(--muted); font-size: .92rem; margin: 0; }
.human {
  background: var(--accent-soft); border-left: 6px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 22px 0;
}
.human h2 {
  margin: 0 0 8px; font-size: .84rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--accent-dark);
}
.human h2 .byline { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.human p { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.6; }
.human .disclaimer { color: var(--muted); font-size: .82rem; margin: 8px 0 0; }
.official { margin: 26px 0; }
.official h2 { font-size: 1.05rem; margin: 0 0 4px; }
.official .note { color: var(--muted); font-size: .86rem; margin: 0 0 12px; }
.official .fulltext { border-top: none; margin-top: 0; padding-top: 0; max-height: none; }
.backlink { display: inline-block; margin-top: 18px; }

/* ---------- archives ---------- */
.archive-head { margin: 26px 0 8px; }
.archive-head h1 { font-size: 1.7rem; margin: 0 0 6px; letter-spacing: -.015em; }
.archive-head p { color: var(--muted); margin: 0; }
.pagination { margin: 20px 0; font-size: .95rem; }
.pagination .page-numbers {
  padding: 5px 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); text-decoration: none; margin-right: 4px;
}
.pagination .current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- appendices ---------- */
.appendix-list { list-style: none; padding: 0; margin: 18px 0; }
.appendix-list li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 18px; margin-bottom: 9px;
  box-shadow: var(--shadow);
}
.appendix-list b { display: block; margin-bottom: 2px; }
.appendix-list span { color: var(--muted); font-size: .92rem; }

/* ---------- essay ---------- */
.essay { max-width: 720px; }
.essay h1 { font-size: 1.9rem; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; margin: 26px 0 10px; text-wrap: balance; }
.essay .standfirst { font-size: 1.08rem; color: var(--muted); margin: 0 0 26px; }
.essay h2 { font-size: 1.25rem; margin: 34px 0 10px; letter-spacing: -.01em; }
.essay p { margin: 0 0 14px; }
.essay li { margin-bottom: 8px; }
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.45rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .85rem; }
table.reading { width: 100%; border-collapse: collapse; margin: 16px 0 6px; font-size: .95rem; }
table.reading th, table.reading td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-strong); }
table.reading td:nth-child(2), table.reading td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.reading th { color: var(--muted); font-weight: 600; font-size: .84rem; }
.bigno { font-size: 3rem; font-weight: 750; color: var(--ink); letter-spacing: -.02em; margin: 4px 0 12px; line-height: 1; }
.headlines { list-style: none; padding: 0; margin: 16px 0; }
.headlines li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 16px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.headlines b { font-variant-numeric: tabular-nums; }
.headlines a { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.method { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 30px 0; font-size: .9rem; color: var(--muted); }
.method h2 { font-size: 1rem; margin: 0 0 8px; color: var(--ink); }
.essay .pageref { color: var(--muted); font-size: .88rem; }

/* ---------- act bar and dialog ---------- */
.actbar {
  position: fixed; inset: auto 0 0 0; background: var(--surface);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(11, 12, 12, .07);
  padding: 12px 0; z-index: 6;
}
.actbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#act-days { font-size: .93rem; color: var(--muted); }
#act-days strong { color: var(--danger); }
.actbar .grp { display: flex; align-items: center; gap: 8px; }
dialog {
  border: none; border-radius: 16px; padding: 28px;
  width: min(560px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lift);
}
dialog::backdrop { background: rgba(11, 12, 12, .6); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-head h2 { margin: 0; font-size: 1.4rem; }
.close { border: none; font-size: 1rem; background: none; }
.act-context {
  background: var(--accent-soft); border-radius: var(--radius-s); padding: 10px 14px;
  font-size: .9rem; margin-top: 10px;
}
.act-steps { padding-left: 20px; margin: 14px 0 6px; }
.act-steps li { margin-bottom: 22px; font-size: 1.02rem; }
.act-steps .button, .act-steps .primary { margin-top: 8px; }
.act-steps a.button:not(.primary) {
  border: 1px solid var(--line-strong); color: var(--ink); padding: 8px 16px;
  font-size: .92rem; border-radius: var(--radius-s);
}
.ward-pick { margin-top: 8px; }
.ward-pick select { max-width: 100%; width: 100%; }
#cllr-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
#cllr-list a {
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 9px 13px;
  text-decoration: none; color: var(--ink); font-size: .92rem;
}
#cllr-list a:hover { border-color: var(--accent); }
#cllr-list .who { font-weight: 600; }
#cllr-list .meta { color: var(--muted); font-size: .84rem; }
#find-cllr { display: inline-block; margin-top: 8px; font-size: .9rem; }
.smallprint { color: var(--muted); font-size: .84rem; margin-bottom: 0; }
.doboth {
  display: block; width: 100%; text-align: center; margin-top: 10px;
  background: var(--accent); color: var(--accent-ink); border: none;
  padding: 12px 18px; font-weight: 700; font-size: .98rem; border-radius: var(--radius-s);
  box-shadow: var(--shadow); transition: background .12s;
}
.doboth:hover { background: var(--accent-dark); }
.orsep { color: var(--muted); font-size: .84rem; margin: 10px 0 4px; }

/* ---------- submit drawer (right side) ---------- */
#submit-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  height: 100vh; max-height: 100vh; width: min(420px, 92vw);
  border-radius: 16px 0 0 16px; overflow-y: auto; padding: 24px 26px 32px;
  border: none; background: var(--surface); box-shadow: var(--shadow-lift);
  animation: oc-drawer-in-right .18s ease-out;
}
@keyframes oc-drawer-in-right {
  from { transform: translateX(40px); opacity: .4; }
  to { transform: none; opacity: 1; }
}
#submit-drawer::backdrop { background: rgba(11, 12, 12, .6); }
#submit-drawer .drawer-note { color: var(--muted); font-size: .92rem; }
@media (max-width: 560px) {
  #submit-drawer { width: 100vw; max-width: 100vw; border-radius: 0; }
}
.gform_wrapper textarea,
.gform_wrapper input[type="email"],
#submit-drawer .gform_wrapper input[type="url"],
#submit-drawer .gform_wrapper input[type="text"] {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem;
  border: 2px solid var(--ink); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink);
}
#submit-drawer .gform_wrapper .gfield_label { font-weight: 700; font-size: .95rem; }
#submit-drawer .gform_wrapper .gfield_description { color: var(--muted); font-size: .86rem; }
.gform_wrapper .gfield { margin-bottom: 14px; }
.gform_wrapper .gfield_label { font-weight: 700; font-size: .95rem; }
.gform_wrapper .gfield_description { color: var(--muted); font-size: .86rem; }
.gform_wrapper textarea { min-height: 140px; }
.gform_wrapper .gform_button,
#submit-drawer .gform_wrapper .gform_button {
  background: var(--accent); color: var(--accent-ink); border: none;
  padding: 11px 20px; font: inherit; font-weight: 700; border-radius: var(--radius-s);
  box-shadow: var(--shadow); cursor: pointer; margin-top: 12px;
}
#submit-drawer .gform_wrapper .gform_button:hover { background: var(--accent-dark); }
#submit-drawer .gform_wrapper .gform_validation_errors,
#submit-drawer .gform_wrapper .validation_message { color: #942514; font-size: .88rem; }
#submit-drawer .gform_confirmation_message { font-size: 1.02rem; }

/* ---------- footer ---------- */
.site-footer { margin: 44px 0 20px; color: var(--muted); font-size: .86rem; }
.site-footer p { margin: 6px 0; }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.footer-links a, .footer-links .linklike {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 15px;
  text-decoration: none; color: var(--ink); font-size: .88rem; background: none;
  font: inherit; cursor: pointer;
}
.footer-links a:hover, .footer-links .linklike:hover { border-color: var(--accent); color: var(--accent-dark); }

@media (max-width: 560px) {
  .filters { flex-wrap: wrap; }
  select { max-width: none; flex: 1; }
  .actbar .wrap { justify-content: center; }
  /* On small screens the bar waits until the reader is into the content. */
  .actbar { transform: translateY(110%); transition: transform .25s ease-out; }
  .actbar.shown { transform: none; }
}
