/* ───────────────────────────────────────────────────────────
   What can (A)I do today? — editorial cream-paper aesthetic
   ─────────────────────────────────────────────────────────── */

:root {
  --paper:        #f4ede0;
  --paper-tint:   #ebe2cf;
  --surface:      #fbf6ea;
  --ink:          #1c1916;
  --ink-2:        #4a443d;
  --ink-3:        #7a7269;
  --rule:         #ddd1b8;
  --rule-soft:    #e6dcc4;
  --accent:       #b5341c;
  --accent-hover: #8e2614;
  --pos:          #2f6b3a;
  --warn:         #8a6614;
  --neg:          #a14848;
  --shadow:       0 4px 16px rgba(28, 25, 22, 0.10);
  --shadow-lg:    0 14px 40px rgba(28, 25, 22, 0.16);

  --serif: 'Newsreader', 'Georgia', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s, color 0.12s;
}
a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

button {
  font-family: inherit;
  font-size: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

input, select { font-family: inherit; }

kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  padding: 1px 6px;
  border-radius: 3px;
}

/* ───────────── Topbar ───────────── */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.topbar-row {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.top-row {
  padding-top: 18px;
  padding-bottom: 12px;
}
.filter-row {
  padding-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 32px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--surface);
  padding: 8px 7px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  width: 100%;
}

.topbar-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
  border-bottom: 0;
  color: inherit;
  cursor: pointer;
}
.topbar-brand:hover { border-bottom: 0; }
.masthead {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.topbar-brand:hover .masthead em,
.topbar-brand:hover .paren { color: var(--accent-hover); }
.byline {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-3);
  letter-spacing: 0;
}
.dateline { display: none; }
.masthead em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.masthead .paren {
  color: var(--accent);
  font-weight: 400;
  margin: 0 -2px;
}
.dateline {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.submit-btn {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 3px;
  border: 1px solid var(--ink);
  transition: background 0.12s, color 0.12s;
}
.submit-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}


/* ───── Hero search ───── */
.hero-search {
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
}
.hero-search-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 28px 28px;
  text-align: center;
}
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 2px 0 0 var(--ink);
  transition: box-shadow 0.1s, transform 0.1s;
}
.search-form:focus-within {
  box-shadow: 0 3px 0 0 var(--accent);
}
.search-icon {
  font-size: 22px;
  color: var(--ink-3);
  padding: 0 4px 0 18px;
  flex-shrink: 0;
}
.hero-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 20px;
  padding: 16px 12px 16px 8px;
  color: var(--ink);
  min-width: 0;
}
.hero-input::placeholder {
  color: var(--ink-3);
  font-style: italic;
}
.search-go {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  margin: 6px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
}
.search-go:hover {
  background: var(--accent);
}
.ai-flag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 0 8px;
  flex-shrink: 0;
  animation: aiFlag 0.3s ease-out;
}
.ai-flag[hidden] { display: none; }
@keyframes aiFlag {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.hero-hint {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
  margin: 14px 0 0;
}
.hero-hint kbd {
  margin: 0 2px;
}

.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
}

/* ───────────── Dropdown filters ───────────── */
.dropdown { position: relative; }
.dd-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color 0.1s, background 0.1s;
}
.dd-btn:hover { border-color: var(--ink-3); background: #fff; }
.dd-btn.has-value { border-color: var(--ink); background: #fff; }
.dd-label {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.dd-value {
  font-weight: 500;
  color: var(--ink);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-btn.has-value .dd-value { color: var(--accent); }
.dd-caret { font-size: 10px; color: var(--ink-3); margin-left: 2px; transition: transform 0.12s; }
.dropdown.open .dd-caret { transform: rotate(180deg); }

.dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  max-width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: #fffaef;
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: none;
  padding: 6px 0;
}
.dropdown.open .dd-panel { display: block; }

.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.dd-item:hover { background: var(--paper-tint); color: var(--ink); }
.dd-item.active { color: var(--accent); font-weight: 500; }

.dd-check {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink-3);
  background: var(--surface);
  position: relative;
  flex-shrink: 0;
  border-radius: 2px;
}
.dd-item.active .dd-check {
  background: var(--accent);
  border-color: var(--accent);
}
.dd-item.active .dd-check::after {
  content: '';
  position: absolute;
  left: 3px;
  top: -1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.dd-text { flex: 1; }
.dd-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
}
.dd-item.active .dd-count { color: var(--accent); }

.reset-btn {
  background: transparent;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 2px 0;
  font-size: 12px;
  margin-left: auto;
}
.reset-btn:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

.saved-btn {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.saved-btn + .reset-btn { margin-left: 8px; }
.saved-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.saved-btn.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.saved-btn[hidden] { display: none; }

.fav-btn {
  background: transparent;
  border: 0;
  color: var(--ink-3);
  font-size: 22px;
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.12s, transform 0.12s;
}
.fav-btn:hover { color: var(--accent); transform: scale(1.1); }
.fav-btn.on { color: var(--accent); }

/* ───────────── Radio check in dropdowns ───────────── */
.dd-check.radio { border-radius: 50%; }
.dd-item.active .dd-check.radio { background: var(--accent); border-color: var(--accent); }
.dd-item.active .dd-check.radio::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 4px; height: 4px;
  background: #fff;
  border: none;
  border-radius: 50%;
  transform: none;
}

/* ───────────── Feed ───────────── */
.feed {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 28px 80px;
  min-width: 0;
}

.feed-head {
  display: flex;
  align-items: baseline;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.feed-count {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.feed-context {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-3);
  margin-left: 14px;
}

.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.feed-item:last-child { border-bottom: 0; }

.feed-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.feed-row1 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.feed-title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.feed-title a { color: inherit; border-bottom: 0; }
.feed-title a:hover { color: var(--accent); }
.feed-title .arrow {
  display: inline-block;
  margin-left: 6px;
  font-style: normal;
  font-size: 14px;
  color: var(--ink-3);
  transition: transform 0.12s, color 0.12s;
}
.feed-title a:hover .arrow { color: var(--accent); transform: translate(2px, -2px); }

.feed-pricing {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
  background: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.feed-pricing.free    { color: var(--pos); }
.feed-pricing.freemium{ color: var(--warn); }
.feed-pricing.paid    { color: var(--neg); }

.feed-problem {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-2);
  margin: 4px 0 10px;
}
a.feed-problem-link,
a.feed-problem-link:visited {
  color: var(--ink-2);
  border-bottom: 0;
  text-decoration: none;
}
a.feed-problem-link:hover {
  color: var(--ink);
  border-bottom: 0;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 10px;
  align-items: center;
}
.feed-meta .dot { color: var(--rule); margin: 0 -3px; }
.feed-meta strong { font-weight: 500; color: var(--ink-2); }
.feed-meta .by { color: var(--ink-3); }
.feed-meta .by a {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.feed-meta .by a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.feed-meta .dates {
  font-variant-numeric: tabular-nums;
}
.feed-meta .dates .dim { color: var(--ink-3); }

.homepage-link {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.homepage-link:hover {
  border-bottom-color: var(--accent);
}

.platform-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1px 7px;
  border-radius: 2px;
  line-height: 1.5;
}

.feed-install {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 8px 12px;
  border-radius: 2px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}
.feed-install::before {
  content: '$';
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}
.feed-install.no-prompt::before { content: '→'; color: var(--ink-3); }
.feed-install .cmd { flex: 1; min-width: 0; }

.feed-install .copy,
.feed-install .help {
  margin-left: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--paper);
  flex-shrink: 0;
  font-family: var(--sans);
  font-weight: 500;
}
.feed-install .copy:hover, .feed-install .help:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}
.feed-install .help:hover { color: var(--accent); border-color: var(--accent); }
.feed-install .copy.copied { color: var(--pos); border-color: var(--pos); }
.feed-install .help.copied { color: var(--pos); border-color: var(--pos); background: rgba(47,107,58,0.06); }

.feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.tag {
  font-size: 11px;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 1px 7px;
  border-radius: 999px;
}

.feed-rate {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 10px;
}
.stars { display: inline-flex; gap: 2px; }
.star {
  font-size: 17px;
  line-height: 1;
  color: var(--rule);
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
  font-family: var(--serif);
}
.star:hover { transform: scale(1.15); }
.star.on { color: var(--accent); }
.star.hover { color: var(--accent-hover); }
.rate-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.rate-meta strong { color: var(--ink-2); font-weight: 500; }
.rate-cta {
  font-size: 11px;
  color: var(--ink-3);
  font-style: italic;
}

.feed-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-3);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}

/* Noscript fallback — hidden by default (browser only renders <noscript> when JS off) */
.noscript-feed { display: none; }

/* ───────────── Tool & category pages ───────────── */
.masthead-link { color: inherit; border-bottom: 0; }
.masthead-link:hover .masthead em,
.masthead-link:hover .paren { color: var(--accent-hover); }

.breadcrumb {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.breadcrumb a { color: var(--ink-2); border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.tool-main, .cat-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 28px 100px;
}

.tool-hero {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}
.tool-title {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}
.tool-go {
  display: inline-block;
  margin-left: 8px;
  font-style: normal;
  font-size: 24px;
  color: var(--ink-3);
  border-bottom: 0;
}
.tool-title:hover .tool-go { color: var(--accent); }

.tool-problem {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 8px 0 28px;
}

.tool-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  margin: 0 0 28px;
}
.tool-meta div { margin: 0; }
.tool-meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 4px;
}
.tool-meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}
.tool-meta dd.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-meta dd a { color: var(--accent); border-bottom: 1px solid transparent; }
.tool-meta dd a:hover { border-bottom-color: var(--accent); }

.tool-install h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
}
.tool-install .feed-install { font-size: 14px; padding: 12px 16px; }

.tool-tags { margin: 24px 0; }
.tool-tags .tag { font-size: 12px; padding: 2px 10px; }

.tool-cta { margin-top: 28px; }
.cta-primary {
  display: inline-block;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  border-radius: 3px;
  border-bottom: 0;
}
.cta-primary:hover { background: var(--accent); color: #fff; border-bottom: 0; }

/* Category page */
.cat-hero { padding-bottom: 14px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }
.cat-h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 6px;
}
.cat-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-3);
  margin: 0;
}

.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.cat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--ink-3);
}
.cat-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.cat-title a { color: var(--ink); border-bottom: 0; }
.cat-title a:hover { color: var(--accent); }
.cat-pricing {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
.cat-pricing.free    { color: var(--pos); background: rgba(47,107,58,0.07); }
.cat-pricing.freemium{ color: var(--warn); background: rgba(138,102,20,0.08); }
.cat-pricing.paid    { color: var(--neg); background: rgba(161,72,72,0.08); }
.cat-problem {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-2);
  margin: 4px 0 6px;
}
.cat-meta { font-size: 12.5px; color: var(--ink-3); margin: 0; }

@media (max-width: 600px) {
  .tool-title { font-size: 32px; }
  .tool-problem { font-size: 18px; }
  .cat-h1 { font-size: 28px; }
  .cat-title { font-size: 19px; }
  .cat-item { grid-template-columns: 32px 1fr; gap: 14px; }
}

/* ───────────── Submit modal ───────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 40px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 22, 0.55);
  backdrop-filter: blur(2px);
}
.modal-panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  padding: 28px 30px 24px;
  font-family: var(--sans);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.modal-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
}
.modal-close {
  font-size: 28px;
  line-height: 1;
  color: var(--ink-3);
  padding: 0 6px;
}
.modal-close:hover { color: var(--accent); }
.modal-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0 0 18px;
  line-height: 1.5;
}

.submit-form { display: flex; flex-direction: column; gap: 14px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}
.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field-label em {
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-left: 6px;
  text-transform: none;
  font-size: 10.5px;
}
.field-hint {}
.field input[type="text"],
.field input[type="url"],
.field textarea,
.field select {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.1s;
}
.field textarea { resize: vertical; min-height: 60px; font-family: var(--sans); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
}
.field-counter {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  background: rgba(251, 246, 234, 0.9);
  padding: 0 4px;
  border-radius: 2px;
  pointer-events: none;
}
.field-counter.warn { color: var(--neg); }

.field-row {
  display: flex;
  gap: 14px;
}
.field-half { flex: 1; }

.field-checks {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px 12px 12px;
  margin: 0;
}
.field-checks legend {
  padding: 0 4px;
}
.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 4px 12px;
  margin-top: 6px;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 2px 0;
}
.check input { accent-color: var(--accent); }

.field.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-foot {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.submit-rl {
  font-size: 11.5px;
  color: var(--neg);
  margin: 0;
  min-height: 14px;
  text-align: right;
}
.submit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.btn-primary, .btn-secondary {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 2px;
  font-family: var(--sans);
}
.btn-primary {
  color: #fff;
  background: var(--ink);
}
.btn-primary:hover { background: var(--accent); }
.btn-primary:disabled { background: var(--ink-3); cursor: not-allowed; }
.btn-secondary {
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--rule);
}
.btn-secondary:hover { color: var(--ink); border-color: var(--ink-2); }

.submit-success {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 0;
}
.submit-success p {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}

/* ───────────── Footer ───────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-tint);
  padding: 28px 0;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.footer-inner a { color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.footer-inner a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-inner .todo {
  font-style: italic;
  color: var(--ink-3);
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 1px;
}

/* ───────────── Mobile ───────────── */
@media (max-width: 880px) {
  .top-row { padding: 12px 18px 8px; gap: 12px; flex-wrap: wrap; }
  .filter-row {
    padding: 0 18px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .topbar-right { gap: 10px; flex-wrap: wrap; }
  .masthead { font-size: 28px; }
  .byline { font-size: 13px; }
  .submit-btn { padding: 7px 11px; font-size: 11.5px; }

  .hero-search-inner { padding: 22px 18px 18px; }
  .hero-input { font-size: 16px; padding: 12px 8px; }
  .search-icon { font-size: 18px; padding: 0 4px 0 14px; }
  .search-go { padding: 8px 16px; font-size: 12px; margin: 5px; }
  .hero-hint { font-size: 12px; }

  .dropdown { flex-shrink: 0; }
  .dd-btn { padding: 6px 10px; font-size: 12px; }
  .dd-label { font-size: 10px; }
  .dd-value { max-width: 110px; font-size: 12px; }
  .dd-panel { max-width: calc(100vw - 36px); }

  .feed { padding: 22px 18px 60px; }
  .feed-count { font-size: 24px; }
  .feed-context { font-size: 14px; }

  .feed-item { grid-template-columns: 30px 1fr; gap: 14px; padding: 18px 0; }
  .feed-num { font-size: 20px; }
  .feed-title { font-size: 19px; }
  .feed-problem { font-size: 15.5px; }
  .feed-install { font-size: 11.5px; padding: 8px 10px; }
  .feed-install .copy, .feed-install .help { padding: 2px 6px; }
  .feed-row1 { flex-wrap: wrap; }
}
stall .copy, .feed-install .help { padding: 2px 6px; }
  .feed-row1 { flex-wrap: wrap; }
}
