/* Base */
:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #17211c; background: #f5f7f5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #16734a; text-decoration: none; }
a:hover { color: #0d5133; }
.page-shell { width: min(100% - 40px, 960px); margin: 0 auto; padding: 64px 0 88px; }
.page-shell-narrow { width: min(100% - 40px, 720px); }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.eyebrow { margin: 0 0 10px; color: #5a7566; font-size: 12px; font-weight: 750; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); line-height: 1.1; letter-spacing: -.04em; }
.page-intro { margin: 12px 0 0; color: #66736c; font-size: 16px; line-height: 1.55; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; font: inherit; font-weight: 650; cursor: pointer; }
.button-primary { background: #176b47; color: white; }
.button-primary:hover { background: #105638; color: white; }
.button-secondary { border: 1px solid #d5e1d8; background: white; color: #176b47; }
.header-actions { display: flex; gap: 10px; }
.answer-card { margin-top: 24px; padding: 26px; border: 1px solid #dce8df; border-radius: 14px; background: white; }
.answer-card h2, .answer-card h3 { margin-top: 0; }
.answer-body { line-height: 1.7; }
.answer-sources { display: grid; gap: 10px; padding-left: 22px; }
.answer-sources span { color: #718077; font-size: 13px; }
.posting-list { display: grid; gap: 14px; }
.posting-card, .posting-detail, .posting-form, .empty-state { border: 1px solid #e1e8e2; border-radius: 14px; background: white; box-shadow: 0 4px 18px rgb(21 54 36 / 4%); }
.posting-card { padding: 22px 24px; }
.posting-card-heading { display: flex; justify-content: space-between; gap: 20px; }
.posting-source { margin: 0 0 7px; color: #6c7f73; font-size: 13px; font-weight: 650; }
.posting-card h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.posting-company { margin: 9px 0 0; color: #405348; font-weight: 600; }
.posting-description { margin: 14px 0 0; color: #68766e; line-height: 1.6; white-space: pre-line; }
.posting-date { color: #758178; font-size: 13px; white-space: nowrap; }
.empty-state { padding: 56px 28px; text-align: center; }
.empty-state h2 { margin: 0; font-size: 23px; }
.empty-state p { margin: 10px 0 24px; color: #68766e; }
.back-link { display: inline-block; margin-bottom: 28px; color: #53675b; font-weight: 600; }
.form-header { margin-bottom: 28px; }
.posting-form { display: grid; gap: 20px; padding: 28px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-size: 14px; font-weight: 650; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #d7e0d9; border-radius: 8px; padding: 12px 13px; background: #fff; color: #17211c; font: inherit; }
.form-field input:focus, .form-field textarea:focus { outline: 3px solid #d9eee1; border-color: #31825a; }
.form-field textarea { resize: vertical; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.cancel-link { color: #66736c; font-weight: 600; }
.form-errors { padding: 14px 16px; border-radius: 8px; background: #fff0ed; color: #922f20; }
.form-errors p { margin: 0 0 6px; font-weight: 650; }
.form-errors ul { margin: 0; padding-left: 20px; }
.posting-detail { padding: 32px; }
.posting-detail h1 { font-size: clamp(30px, 5vw, 40px); }
.detail-company { margin: 12px 0 0; color: #405348; font-size: 19px; font-weight: 600; }
.posting-meta { display: grid; gap: 14px; margin: 28px 0; padding: 20px 0; border-top: 1px solid #e8ede9; border-bottom: 1px solid #e8ede9; }
.posting-meta div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.posting-meta dt { color: #718077; font-size: 14px; }
.posting-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.description-section h2 { margin: 0 0 14px; font-size: 19px; }
.description-body { line-height: 1.7; overflow-wrap: anywhere; }
.description-body p:first-child { margin-top: 0; }
@media (max-width: 640px) {
  .page-shell { padding-top: 36px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .page-header .button { width: 100%; }
  .header-actions { width: 100%; flex-direction: column; }
  .posting-card-heading { flex-direction: column; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .posting-form, .posting-detail { padding: 21px; }
  .posting-meta div { grid-template-columns: 1fr; gap: 4px; }
}
