:root {
  --ink: #171717;
  --ink-soft: #3a3a3a;
  --muted: #727272;
  --line: #e7e7e7;
  --line-strong: #d8d8d8;
  --bg: #ffffff;
  --paper: #f7f7f7;
  --purple: #8950e8;
  --purple-deep: #7140ed;
  --purple-hover: #7640b6;
  --purple-soft: #f4f0fa;
  --purple-ring: #a879f1;
  --hero: #171717;
  --header-h: 68px;
  --content: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--hero);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--purple-ring);
  outline-offset: 4px;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 23, 23, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 4%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { flex-shrink: 0; }
.brand img { width: 168px; height: 43px; }

.header-inner > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-header:not(.is-wide) .site-nav {
  margin-left: auto;
}

.menu-button {
  anchor-name: --menu-button;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
}

.site-header.is-wide .menu-button {
  display: none;
}

.site-menu {
  box-sizing: border-box;
  list-style: none;
}

/* Higher specificity than the UA [popover] inset/margin:auto rules. */
.site-header:not(.is-wide) .site-menu {
  position: fixed;
  inset: auto;
  /* Fallback roughly matching header height; browsers without anchor() keep this. */
  inset-block-start: calc(var(--header-h) + 8px);
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inset-inline-start: auto;
  inline-size: min(80dvw, 24rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 6rem);
  margin: 0.5rem 0 0 0;
  padding: 8px 0 12px;
  overflow: auto;
  background: #171717;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Hide the collapsed menu unless it is open. :is() keeps the rule valid
   where :popover-open is unknown; the polyfill class is included too. */
.site-header:not(.is-wide) .site-menu:not(:is(:popover-open, .\:popover-open, .is-fallback-open)) {
  display: none;
}

.site-menu li { margin: 0; }

.site-menu a {
  display: block;
  padding: 10px 16px;
  color: #ddd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-menu a:hover { color: #fff; }

.site-menu a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 3px 0 0 var(--purple);
}

.nav-account {
  margin-top: 8px;
  padding: 10px 16px 4px;
  color: #cfcfcf;
  font-size: 14px;
}

.nav-account a {
  display: inline;
  padding: 0;
  border-bottom: 0;
  color: #ddd;
}

.nav-account a:hover { color: #fff; }

.nav-account a[aria-current="page"] {
  box-shadow: none;
  border-bottom: 2px solid var(--purple);
}

.header-cta { flex-shrink: 0; }

.site-header.is-wide .header-cta {
  margin-left: auto;
}

.site-header.is-wide .site-menu {
  position: static;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-header.is-wide .site-menu::backdrop {
  display: none;
}

.site-header.is-wide .site-menu a {
  display: inline;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  box-shadow: none;
  font-size: 14px;
}

.site-header.is-wide .site-menu a:hover { color: #fff; }

.site-header.is-wide .site-menu a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--purple);
  box-shadow: none;
}

.site-header.is-wide .nav-account {
  margin: 0 0 0 8px;
  padding: 0;
  font-size: 14px;
}

.site-header.is-wide .nav-account a {
  border-bottom: 2px solid transparent;
}

.site-header.is-wide .nav-account a[aria-current="page"] {
  border-bottom-color: var(--purple);
}

.site-header.is-measuring,
.site-header.is-measuring * {
  transition: none !important;
}


.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #171717;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.pill:hover { background: #f3eefe; color: var(--purple-hover); }

/* Hero */
.hero {
  color: #fff;
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.hero .eyebrow {
  margin: 0 0 16px;
  color: #c4b0ee;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.28;
  font-weight: 700;
  margin: 0 0 16px;
}

.hero .lede {
  margin: 0 0 28px;
  font-size: 18px;
  color: #bfbfbf;
  line-height: 1.8;
}

.search {
  background: #fff;
  border-radius: 11px;
  display: flex;
  max-width: 640px;
  padding: 6px;
  margin: 0 0 20px;
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  color: var(--ink);
  outline-offset: 0;
}

.search button {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 12px 22px;
  flex-shrink: 0;
}
.search button:hover { background: #2a2a2a; }

.page-main .search {
  border: 1px solid var(--line-strong);
  max-width: 640px;
  margin: 0 0 32px;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.topics button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #eee;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
}
.topics button:hover,
.topics button[aria-pressed="true"] {
  border-color: #c4b0ee;
  background: rgba(137, 80, 232, 0.28);
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: #fff;
  color: var(--ink);
}
.btn-primary:hover { background: #f3eefe; color: var(--purple-hover); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #2a2a2a; }

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple-hover); }

/* Main */
.page-main {
  background: var(--bg);
  border-radius: 30px 30px 0 0;
  padding: 56px max(24px, calc((100% - var(--content)) / 2)) 80px;
  color: var(--ink);
  flex: 1;
}

.page-head {
  margin: 0 0 36px;
}

.page-head h1 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin: 0 0 10px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 40em;
}

.page-head a,
.form-wrap a:not(.btn),
.article-body a {
  color: var(--purple-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

section { margin-bottom: 72px; }

.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.heading h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  line-height: 1.3;
}

.heading a {
  font-size: 14px;
  color: #757575;
  white-space: nowrap;
}
.heading a:hover { color: var(--purple-hover); }

.sub {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.label { font-size: 12px; color: #8050ac; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  overflow: visible;
  padding: 4px;
}

@media (max-width: 760px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
}

.filters button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 9px 16px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--ink);
}

.filters button.active,
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.sample-note {
  margin: 0 0 20px;
  padding: 10px 14px;
  background: var(--purple-soft);
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
}

.sample-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #69409e;
  background: #efe7fa;
  border-radius: 4px;
  padding: 3px 8px;
}

/* Request cards */
.request-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.request-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: inherit;
  min-height: 100%;
}
.request-card:hover { border-color: var(--purple); }
.request-card h3 {
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  font-weight: 650;
}
.request-card:hover h3 { color: var(--purple-hover); }
.request-card .req-cat {
  margin: 0;
  font-size: 13px;
  color: #8050ac;
}
.request-card .req-budget {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
}

/* Entry / empty */
.entry-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--paper);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.empty-state p,
.entry-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}
.empty-state .btn,
.entry-panel .btn { margin-right: 8px; margin-top: 4px; }

.entry-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

/* Guides / cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

#skill-grid.grid {
  grid-template-columns: 1fr;
}

.card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: inherit;
  width: 100%;
}

.art {
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art strong {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
  margin: 16px;
  line-height: 1.4;
}

.art.has-image strong { display: none; }

.violet { background: #e9defc; color: #69409e; }
.lime { background: #e4edba; color: #405719; }
.peach { background: #f4d7ca; color: #914b32; }
.blue { background: #d2e7f1; color: #285978; }
.black { background: #202020; color: #f2f2f2; }

.tag {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 4px;
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  background: #ffffffd9;
  color: #333;
}

.card h3 {
  font-size: 20px;
  line-height: 1.5;
  margin: 16px 0 8px;
}
.card:hover h3 { color: var(--purple-hover); }

.card p {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
  margin: 0;
}

.meta {
  font-size: 12px;
  color: #777;
  margin: 12px 0 0;
}

/* News */
.news-list {
  display: flex;
  flex-direction: column;
}

.news {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.news h3 {
  font-size: 20px;
  line-height: 1.55;
  margin: 8px 0 10px;
}
.news h3 a:hover { color: var(--purple-hover); }

.news p {
  color: #777;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.news ol {
  margin: 10px 0 0;
  padding-left: 1.3em;
  color: #555;
  font-size: 14px;
  line-height: 1.75;
}
.news ol li { margin: 0 0 8px; }
.news ol li:last-child { margin-bottom: 0; }

.news--lead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
  padding-top: 8px;
  border-top: 0;
  margin-bottom: 8px;
}

.news-cover {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 16 / 9;
}
.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news.has-cover:not(.news--lead) {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.news.has-cover:not(.news--lead) .news-cover { aspect-ratio: 16 / 10; }

/* Tools */
.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
}
.tool:hover { border-color: var(--purple); }

.icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  overflow: hidden;
}
.icon.has-image {
  color: transparent;
  font-size: 0;
}
.icon img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.tool h3 { margin: 0 0 7px; font-size: 17px; }
.tool:hover h3 { color: var(--purple-hover); }
.tool p { margin: 0; font-size: 13px; color: #777; line-height: 1.6; }

/* Closing + footer */
.closing {
  padding: 40px;
  border-radius: 16px;
  background: var(--purple-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.closing h2 {
  font-size: 24px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.closing p { color: #777; margin: 0; line-height: 1.8; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

#search-status {
  margin: 24px 0 0;
  min-height: 1.2em;
}

.site-footer {
  color: #aaa;
  padding: 40px 5% 32px;
  background: var(--hero);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-brand img { width: 168px; height: 43px; margin-bottom: 14px; }
.footer-brand p {
  margin: 0;
  max-width: 28em;
  line-height: 1.7;
  font-size: 13px;
  color: #9a9a9a;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  justify-content: flex-end;
}
.footer-links a:hover { color: #fff; }

.footer-meta {
  max-width: 1120px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #888;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Dialog */
dialog {
  border: 0;
  border-radius: 18px;
  padding: 36px;
  max-width: 650px;
  width: calc(100% - 32px);
  line-height: 1.9;
  font-family: var(--sans);
  color: var(--ink);
}
dialog:modal {
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #0009;
  overflow: hidden;
  overscroll-behavior: contain;
}
dialog h2 { line-height: 1.5; }
dialog#detail > form[method="dialog"] {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}
dialog .dialog-close,
dialog #close {
  border: 0;
  background: #eee;
  padding: 8px 15px;
  border-radius: 6px;
  color: var(--ink);
}
dialog#detail { max-height: calc(100vh - 32px); overflow: auto; }
dialog#detail p:first-child { margin: 0 0 8px; color: #888; font-size: 13px; }
dialog#detail h2 { margin: 0 0 16px; font-size: 26px; }
dialog#detail ol { margin: 0 0 22px; padding-left: 1.35em; }
dialog#detail ol li { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: #222; }
dialog#detail ol li:last-child { margin-bottom: 0; }
dialog#detail a { color: var(--purple-hover); }
dialog .sample-note { margin: 0 0 16px; }

.empty { color: #777; padding: 20px; }

/* Forms */
.form-wrap { max-width: 720px; }
.demo-note {
  margin: 0 0 24px;
  padding: 12px 14px;
  background: #fff6e8;
  border: 1px solid #f0d9a8;
  border-radius: var(--radius-sm);
  color: #5c4a22;
  font-size: 14px;
  line-height: 1.7;
}
.process-note {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--purple-soft);
  border: 1px solid #e4d7f8;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
}
.process-note p { margin: 0 0 10px; }
.process-note p:last-child { margin: 0; }
.form-row { margin: 0 0 20px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}
.req-mark { color: #c0392b; margin-left: 2px; }
.hint {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row input[type="url"],
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover { border-color: #bbb; }

.form-req-legend {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.error-msg {
  display: none;
  color: #c0392b;
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0 0;
  font-weight: 400;
}

.form-row :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: #c0392b;
  background-color: #fdecea;
}

.form-row :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.budget-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.form-feedback {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--purple-soft);
  color: var(--ink);
  line-height: 1.7;
}
.form-feedback.is-error {
  background: #fdecea;
  color: #7a1f16;
}

.article-body { max-width: 720px; }
.article-body .label { display: inline-block; margin-bottom: 8px; }
.article-body h1 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin: 0 0 16px;
}
.article-body p,
.article-body li { line-height: 1.85; }
.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 28px;
  aspect-ratio: 16 / 9;
  background: var(--paper);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Responsive */
@media (max-width: 900px) {
  .request-grid,
  .grid,
  .tools { grid-template-columns: 1fr 1fr; }
  .entry-split { grid-template-columns: 1fr; }
  .news--lead { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero { padding: 40px 20px 48px; }
  .hero .lede { font-size: 16px; }
  .page-main { padding: 36px 20px 56px; border-radius: 22px 22px 0 0; }
  .heading { flex-wrap: wrap; align-items: flex-start; }
  .heading h2 { font-size: 24px; }
  .request-grid,
  .grid,
  .tools,
  .news-list { grid-template-columns: 1fr; }
  .news.has-cover:not(.news--lead) { grid-template-columns: 1fr; }
  .closing { display: block; padding: 25px; }
  .closing-actions { margin-top: 20px; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .budget-pair { grid-template-columns: 1fr; }
  dialog { padding: 20px 18px; width: calc(100% - 16px); border-radius: 14px; }
  dialog#detail h2 { font-size: 22px; margin: 0 0 14px; }
  dialog#detail ol li { font-size: 15px; margin: 0 0 10px; }
  .brand img,
  .footer-brand img { width: 150px; height: 39px; }
}

@media (max-width: 420px) {
  .header-inner { padding-left: 16px; padding-right: 16px; }
  .hero-actions,
  .closing-actions { flex-direction: column; align-items: stretch; }
  .search { flex-direction: column; }
  .search button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .site-menu,
  dialog,
  dialog::backdrop {
    animation: none !important;
    transition: none !important;
  }
}
