:root {
  --ink: #14202b;
  --ink-soft: #5b6b7a;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --accent: #0f766e;
  --accent-soft: #2dd4bf;
  --warn-bg: #fff8e6;
  --warn-line: #e8c46a;
  --warn-ink: #6b4e0a;
  --radius: 8px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 48px 20px; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
a { color: var(--accent); }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 11px 20px; border-radius: var(--radius); text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 1px solid var(--accent); cursor: pointer;
}
.btn:hover { background: #0c5f59; }
.btn-sm { padding: 8px 15px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--bg-alt); }

/* ---------- hero ---------- */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 68px 0 60px; }
.hero h1 { max-width: 16ch; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- sample notice ---------- */
.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink);
  border-radius: var(--radius); padding: 15px 18px; margin: 26px 0; font-size: .95rem;
}
.notice a { color: var(--warn-ink); }

.badge {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 4px; margin-right: 8px;
  vertical-align: middle;
}
.badge-sample { background: var(--warn-line); color: #4a3506; }

/* ---------- load cards ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.link-more, .link-clear { font-size: .93rem; text-decoration: none; }

.load-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 22px; }
.load-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); }
.load-card.is-sample { background: #fffdf7; }
.load-lane { font-weight: 600; margin: 6px 0 14px; }
.arrow { color: var(--accent-soft); padding: 0 2px; }

.load-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0 0 14px; }
.load-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.load-meta dd { margin: 0; font-size: .95rem; font-weight: 500; }
.rate { color: var(--accent); font-weight: 700; }
.load-link { font-size: .9rem; text-decoration: none; font-weight: 600; }

/* ---------- filters + table ---------- */
.filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin: 24px 0 10px; }
.filters label { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; color: var(--ink-soft); }
.filters select { padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; background: #fff; }
.result-count { color: var(--ink-soft); font-size: .9rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.load-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 860px; }
.load-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt);
}
.load-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.load-table tr:last-child td { border-bottom: 0; }
.load-table tr.is-sample { background: #fffdf7; }
.lane { font-weight: 600; display: inline-block; }
.commodity { display: block; color: var(--ink-soft); font-size: .84rem; margin-top: 3px; }

/* ---------- detail ---------- */
.back-link { display: inline-block; margin-bottom: 18px; text-decoration: none; font-size: .92rem; }
.detail-lane { margin-bottom: .2em; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin: 28px 0; padding: 22px; background: var(--bg-alt); border-radius: var(--radius); }
.detail-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.detail-grid dd { margin: 4px 0 0; font-weight: 600; }
.detail-contact { border-top: 1px solid var(--line); padding-top: 24px; }
.detail-contact p { margin: 4px 0; }

/* ---------- forms ---------- */
.post-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; }
.post-form legend { font-weight: 600; padding: 0 8px; font-size: .95rem; }
.post-form label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; font-size: .8rem; color: var(--ink-soft); flex: 1 1 160px; }
.post-form input, .post-form select, .post-form textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; color: var(--ink); background: #fff;
}
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; font-size: .93rem; }
.flash-error { background: #fdeaea; border: 1px solid #e9a4a4; color: #7d1f1f; }

/* ---------- articles ---------- */
.article-list { display: grid; gap: 26px; margin-top: 26px; }
.article-item h2, .article-item h3 { margin-bottom: .2em; font-size: 1.2rem; }
.article-item a { text-decoration: none; }
.article-item a:hover { text-decoration: underline; }

.prose { font-size: 1.03rem; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent-soft); color: var(--ink-soft); }
.prose code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; padding-top: 44px; padding-bottom: 28px; }
.footer-inner a { display: block; text-decoration: none; font-size: .93rem; margin-bottom: 7px; color: var(--ink-soft); }
.footer-inner a:hover { color: var(--accent); }
.footer-brand { font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
.footer-brand span { color: var(--accent); }
.footer-head { font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin: 0 0 10px; }
.footer-inner .hours { margin: 8px 0 0; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 26px; }
.footer-legal p { margin: 0; font-size: .87rem; }

@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .section { padding: 34px 20px; }
  .hero { padding: 46px 0 40px; }
}
