:root {
  --paper: #f6f8f6;
  --paper-deep: #e3ece8;
  --ink: #162422;
  --muted: #61716f;
  --line: #c6d4ce;
  --green: #11624f;
  --red: #b74835;
  --blue: #1f6f9b;
  --amber: #a26a13;
  --white: #ffffff;
  --cyan-soft: #dff3f0;
  --amber-soft: #f3e7c8;
  --red-soft: #f5ded9;
  --shadow: 0 18px 46px rgba(19, 32, 31, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(36, 95, 130, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(20, 107, 85, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 10px;
  background: rgba(246, 248, 246, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(198, 212, 206, 0.9);
}

.brand,
.topbar-links a {
  text-decoration: none;
}

.brand {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #33413f;
  font-size: 13px;
  font-weight: 900;
}

.topbar-links a:hover,
.topbar-links a:focus-visible {
  border-color: var(--line);
  background: var(--white);
  outline: none;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 28px;
  align-items: stretch;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 22px;
  border-bottom: 1px solid var(--line);
}

.site-header > *,
.header-copy,
.header-side,
.radar-panel,
.hero-search,
.primary-tool,
.company-card,
.featured-card {
  min-width: 0;
}

.compact-header {
  align-items: start;
}

.kicker {
  width: fit-content;
  margin: 0 0 18px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

h1 {
  max-width: 760px;
  font-size: clamp(44px, 5.5vw, 70px);
  line-height: 1;
  overflow-wrap: anywhere;
}

h1 span { display: block; }

.lede {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-search {
  display: grid;
  gap: 8px;
  max-width: 740px;
  margin-top: 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-search label {
  color: #435350;
}

.hero-search div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.hero-search input {
  min-height: 52px;
  border-color: transparent;
  background: #f8fbfa;
}

.hero-search button,
.panel-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.quick-queries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin-top: 12px;
}

.quick-queries button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #33413f;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  cursor: pointer;
}

.quick-queries button:hover,
.quick-queries button:focus-visible {
  border-color: var(--green);
  outline: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions a,
.visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero-actions a:first-child,
.visit {
  background: var(--green);
  color: white;
}

.header-side {
  display: grid;
  gap: 14px;
}

.radar-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(223, 243, 240, 0.72)),
    var(--white);
  box-shadow: var(--shadow);
}

.radar-panel-top,
.resource-panel-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.radar-panel-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.radar-panel-top strong {
  font-size: 13px;
}

.radar-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.radar-metrics div {
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.radar-metrics strong {
  display: block;
  font-size: 31px;
  line-height: 1;
}

.radar-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.radar-panel p {
  margin: 0;
  color: #435350;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.panel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.panel-actions a:last-child {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--paper-deep);
}

.contact-card h2 {
  font-size: 28px;
  line-height: 1.15;
}

.contact-card p { margin: 0; }

.contact-label {
  width: fit-content;
  padding: 4px 8px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.wechat-id {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #f9f3e5;
  font-weight: 900;
}

.wechat-id code {
  font: inherit;
  color: var(--green);
}

.wechat-qr {
  width: min(230px, 100%);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.contact-note {
  color: var(--muted);
  font-size: 13px;
}

.map-visual {
  display: block;
  width: 100%;
  max-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(19, 32, 31, 0.08);
  object-fit: cover;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.primary-tool {
  margin: 22px 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 34px rgba(19, 32, 31, 0.08);
}

.primary-title {
  padding-top: 0;
  border-top: 0;
}

.compact-toolbar {
  padding: 0 0 14px;
}

.featured-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.featured-card {
  display: grid;
  gap: 10px;
  min-height: 214px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.featured-top {
  display: grid;
  gap: 8px;
}

.featured-top h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.featured-card p {
  margin: 0;
  color: #435350;
  font-size: 14px;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
}

.featured-meta span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.featured-card a {
  width: fit-content;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 22px 0 8px;
}

.intro-grid article,
.stats div,
.company-card,
.quality-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.intro-grid article {
  min-height: 142px;
  padding: 16px;
}

.intro-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.intro-grid p { margin: 0; color: var(--muted); }

.community-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  margin: 14px 0 28px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff6df;
  box-shadow: 8px 8px 0 var(--paper-deep);
}

.community-contact .kicker { margin-bottom: 14px; }

.community-copy h2 {
  font-size: 48px;
  line-height: 1.05;
}

.community-copy p {
  max-width: 760px;
  color: #354035;
}

.community-note {
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  background: rgba(31, 122, 77, 0.08);
}

.community-card {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: center;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  text-align: center;
}

.community-card strong {
  font-size: 15px;
  color: var(--muted);
}

.wechat-id {
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.community-card img {
  width: min(220px, 100%);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
}

.community-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.domestic-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
  margin: 18px 0 28px;
  padding: 22px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.domestic-entry h2,
.lead-form-section h2,
.form-placeholder h2 {
  font-size: 36px;
  line-height: 1.12;
}

.domestic-entry p,
.lead-form-section p,
.form-placeholder p {
  color: var(--muted);
}

.domestic-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.domestic-actions a {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--paper-deep);
}

.domestic-actions strong {
  font-size: 17px;
  line-height: 1.25;
}

.domestic-actions span {
  color: var(--muted);
  font-size: 13px;
}

.form-placeholder {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 28px;
  padding: 20px;
  border: 2px dashed var(--ink);
  border-radius: 8px;
  background: #fffaf0;
}

.form-placeholder button {
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #edf1ef;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
}

.lead-form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: 18px;
  align-items: start;
  margin: 18px 0 28px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 8px 8px 0 var(--paper-deep);
}

.form-copy {
  display: grid;
  gap: 12px;
}

.form-copy ul {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding-left: 20px;
  color: #354035;
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: #344240;
  font-size: 13px;
  font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--ink);
  font: 15px/1.5 "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.lead-form textarea {
  min-height: 96px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-line {
  display: flex !important;
  grid-template-columns: none;
  gap: 9px !important;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9f3e5;
}

.check-line input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

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

.form-submit-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.form-submit-row button {
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.form-submit-row button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-status[data-state="success"] { color: var(--green); }
.form-status[data-state="error"] { color: var(--red); }

.template-section {
  display: grid;
  gap: 14px;
  padding: 18px 0 48px;
}

.template-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--paper-deep);
}

.template-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.template-top h3 {
  margin: 0;
  font-size: 22px;
}

.template-top button {
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.template-card textarea {
  min-height: 210px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfa;
  color: var(--ink);
  font: 14px/1.7 "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.intent-panel {
  display: grid;
  gap: 18px;
  margin: 18px 0 28px;
  padding: 22px 0 26px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.section-heading {
  max-width: 820px;
}

.section-heading h2,
.trust-guide h2 {
  font-size: 36px;
  line-height: 1.12;
}

.section-heading p,
.trust-guide p {
  color: var(--muted);
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.intent-grid button,
.intent-grid a {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.intent-grid button:hover,
.intent-grid a:hover,
.intent-grid button:focus-visible,
.intent-grid a:focus-visible {
  outline: none;
  background: var(--cyan-soft);
  box-shadow: 4px 4px 0 var(--paper-deep);
}

.intent-grid strong {
  font-size: 17px;
  line-height: 1.25;
}

.intent-grid span {
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 220px) minmax(150px, 190px) minmax(160px, 210px);
  gap: 12px;
  padding: 18px 0;
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

input,
select {
  min-width: 0;
  min-height: 48px;
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  padding: 0 13px;
}

input:focus,
select:focus { border-color: var(--red); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 12px;
  padding-bottom: 14px;
}

.stats div {
  min-height: 96px;
  padding: 16px;
}

.stats strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.quality-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 28px;
}

.quality-strip div {
  min-height: 128px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(223, 243, 240, 0.92), rgba(255, 255, 255, 0.9)),
    var(--white);
  box-shadow: 5px 5px 0 var(--paper-deep);
}

.quality-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quality-strip strong {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-size: 38px;
  line-height: 1;
}

.quality-strip p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.trust-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
  margin: 0 0 28px;
  padding: 22px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.trust-guide ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-guide li {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.trust-guide strong {
  font-size: 16px;
}

.trust-guide span {
  color: var(--muted);
  font-size: 13px;
}

.section-title {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 2px solid var(--ink);
}

.section-title.primary-title {
  padding-top: 0;
  border-top: 0;
}

.section-title h2 { font-size: 34px; }
.section-title p { margin: 4px 0 0; color: var(--muted); }

.company-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 30px;
}

.company-card {
  display: grid;
  gap: 14px;
  min-height: 340px;
  padding: 20px;
  box-shadow: 6px 6px 0 var(--paper-deep);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.company-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--paper-deep);
}

.card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.company-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.district {
  flex: 0 0 auto;
  max-width: 110px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.category {
  width: fit-content;
  padding: 5px 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.verified { background: #dcf2e5; color: #1d5a39; }
.badge.profile { background: #dceefa; color: #275a7a; }
.badge.pending { background: var(--amber-soft); color: #7c4a14; }
.badge.outdated { background: var(--red-soft); color: #8a2418; }
.badge.unknown { background: #eceff3; color: #475569; }

.summary { margin: 0; color: #303832; }

.label-block {
  display: grid;
  gap: 6px;
}

.label-block strong {
  color: var(--muted);
  font-size: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tag.audience { border-color: #b8cfbd; color: #245b2f; }
.tag.opportunity { border-color: #d8c38a; color: var(--amber); }

.card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.source { color: var(--muted); font-size: 12px; }

.empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 2px dashed var(--ink);
  background: var(--white);
  color: var(--muted);
  text-align: center;
}

.empty.mini {
  padding: 16px;
  font-size: 14px;
}

.resource-title {
  margin-top: 18px;
}

.resource-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 52px;
}

.resource-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  box-shadow: 6px 6px 0 var(--paper-deep);
}

.resource-panel.wide {
  grid-column: 1 / -1;
}

.resource-panel-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.resource-panel h3 {
  margin: 0;
  font-size: 22px;
}

.resource-panel p {
  margin: 0;
  color: var(--muted);
}

.resource-panel-top a,
.resource-card a {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
}

.resource-list {
  display: grid;
  gap: 10px;
}

.source-lead-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.resource-card.compact {
  min-height: 136px;
}

.resource-card strong {
  line-height: 1.35;
}

.resource-card p {
  color: #465046;
  font-size: 14px;
}

.resource-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 36px;
  border-top: 2px solid var(--ink);
  color: var(--muted);
}

.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer a { font-weight: 800; }

@media (max-width: 980px) {
  h1 { font-size: 68px; }
  .community-copy h2 { font-size: 40px; }
  .intro-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domestic-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quality-strip,
  .resource-dashboard,
  .source-lead-list,
  .community-contact,
  .lead-form-section,
  .domestic-entry,
  .trust-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    width: min(1180px, calc(100% - 32px));
  }

  .topbar-links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .topbar-links a {
    flex: 0 0 auto;
  }

  .site-header,
  .header-side,
  .toolbar,
  .stats,
  .featured-list,
  .quality-strip,
  .company-list,
  .resource-dashboard,
  .source-lead-list,
  .intro-grid,
  .community-contact,
  .lead-form-section,
  .domestic-entry,
  .domestic-actions,
  .form-row,
  .form-submit-row,
  .intent-grid,
  .trust-guide,
  .trust-guide ul {
    grid-template-columns: 1fr;
  }

  .site-header {
    width: min(1180px, calc(100% - 32px));
    padding-top: 34px;
  }

  main,
  .site-footer {
    width: min(1180px, calc(100% - 32px));
  }

  .hero-search div {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    width: 100%;
  }

  .quick-queries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-queries button {
    width: 100%;
  }

  .radar-metrics,
  .panel-actions {
    grid-template-columns: 1fr;
  }

  .radar-metrics div {
    min-height: auto;
  }

  .map-visual { max-height: none; }

  .section-title,
  .site-footer,
  .card-top,
  .card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-tool { padding: 14px; }

  h1 { font-size: 42px; }
  .community-copy h2,
  .section-heading h2,
  .domestic-entry h2,
  .lead-form-section h2,
  .form-placeholder h2,
  .trust-guide h2 { font-size: 32px; }

  .form-placeholder,
  .template-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

.noscript-card {
  margin: 1rem auto 0;
  max-width: 1120px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.noscript-card a {
  color: var(--accent);
}
