/* Niche Job Board — plain, readable styles.
   Brand colors come from config.php as --brand (buttons/links) and --brand-dark (top bar). */
:root { --brand: #0f5c63; --brand-dark: #0f2a3d; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #0f172a; background: #f8fafc; }
a { color: var(--brand); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 20px; padding-bottom: 40px; }
footer.wrap { padding-bottom: 30px; }
h1 { font-size: 26px; line-height: 1.25; margin: 6px 0; }
h2 { font-size: 19px; margin: 24px 0 8px; }
.card h2, .signup h2 { margin-top: 0; }
code { background: #e2e8f0; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.muted { color: #64748b; }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.error { color: #6b21a8; }
.ok { color: #0f5c63; font-weight: 700; }

.top { background: var(--brand-dark); padding: 12px 0; }
.top a { color: #fff; text-decoration: none; margin-left: 14px; }
.top .brand { margin-left: 0; font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.brand img { height: 28px; width: auto; }
.brand .by { font-weight: 400; font-size: 13px; opacity: .8; }
html.embedded .site-footer { display: none; }
html.embedded .top { padding: 8px 0; }
.btn-light { border: 1px solid rgba(255,255,255,.5); padding: 6px 12px; border-radius: 6px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero { padding: 18px 0 8px; }
.hero h1 { font-size: 32px; }

.filters { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1.2fr auto; gap: 8px; align-items: center; margin: 14px 0; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } .filters input[name=q] { grid-column: 1 / -1; } }

input, select, textarea { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; background: #fff; }
label { display: block; font-weight: 600; font-size: 14px; }
label input, label select, label textarea { margin-top: 4px; font-weight: 400; }
button, .btn { display: inline-block; background: var(--brand); color: #fff; border: 0; padding: 10px 18px; border-radius: 6px; font: inherit; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { filter: brightness(.9); }
button.secondary { background: #fff; color: #0f2a3d; border: 1px solid #cbd5e1; }
.small-btn { padding: 5px 10px; font-size: 13px; }

.jobs { display: grid; gap: 10px; }
.job { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; text-decoration: none; color: inherit; }
.job:hover { border-color: var(--brand); }
.job-title { font-weight: 700; font-size: 17px; color: #0f2a3d; }
.tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 12px; background: #e0f2f1; color: #0f5c63; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.tag.example { background: #f3e8ff; color: #6b21a8; }

.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; margin: 14px 0; }
.narrow { max-width: 460px; margin: 30px auto; }
.narrow.wide { max-width: 680px; }
.description { margin: 18px 0; }
.flash { background: #e0e7ff; border: 1px solid #a5b4fc; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.notice { background: #f3e8ff; border: 1px solid #d8b4fe; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.errors { background: #f3e8ff; border: 1px solid #d8b4fe; border-radius: 8px; padding: 4px 14px; margin: 12px 0; color: #581c87; }

.signup { background: var(--brand-dark); color: #fff; border-radius: 12px; padding: 22px; margin-top: 30px; }
.signup .muted { color: #cbd5e1; }
.row-form { display: flex; gap: 8px; max-width: 480px; }
.row-form button { white-space: nowrap; background: #fff; color: var(--brand-dark); font-weight: 700; }
.signup-msg { background: rgba(255,255,255,.12); padding: 8px 12px; border-radius: 6px; }

.stack { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: 1fr 1fr 0.7fr; gap: 12px; }
@media (max-width: 560px) { .two, .three { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.pay-box { border: 1px dashed #94a3b8; border-radius: 8px; padding: 14px; margin: 16px 0; background: #f8fafc; }

.tabs { display: flex; gap: 6px; margin: 14px 0; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 6px; text-decoration: none; background: #e2e8f0; color: #0f2a3d; }
.tabs a.active { background: var(--brand-dark); color: #fff; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
th { font-size: 13px; color: #475569; background: #f8fafc; }
.inline { display: inline-block; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cols .card { margin: 14px 0 0; }
ul.plain { padding-left: 18px; }
h3 { font-size: 15px; margin: 18px 0 6px; }
code { word-break: break-all; }
textarea.code { font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; background: #f8fafc; }
.narrow-form { max-width: 360px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.actions form { margin: 2px 0; }
.notice-card { border-color: #c7d2fe; background: #eef2ff; }
.status { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #e2e8f0; color: #334155; }
.status.approved { background: #ccfbf1; color: #0f5c63; }
.status.pending { background: #dbeafe; color: #1d4ed8; }
