/* Public minisite styles — minimalist, hand-written, responsive.
 *
 * Every themed color comes from --primary-color, which lib/public-router.js
 * injects per site (`:root{--primary-color:<site color>}`) and app.js also
 * sets from window.__SITE__. No framework, no build step.
 */

:root {
  --primary-color: #2563eb;
  --text: #1f2933;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --page-bg: #f8fafc;
  --radius: 8px;
  --wrap: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--primary-color);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  /* Left-aligned, not centered (VAL-UI-003): the hero (branded header), the
   * page content, and the footer all hug the left content margin instead of a
   * `margin: 0 auto` centered column. The max-width still caps line length on
   * wide screens. */
  margin-left: 0;
  margin-right: auto;
  padding: 0 20px;
}

/* ---- Header ---- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-top: 4px solid var(--primary-color);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  flex: 0 0 auto;
}

.site-name {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.site-name a {
  text-decoration: none;
  color: inherit;
}

.site-tagline {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- Content ---- */

.content {
  padding-top: 24px;
  padding-bottom: 40px;
}

.page-heading {
  margin: 0 0 16px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---- Filters ---- */

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.filter-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-field input,
.filter-field select {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.filter-field input:focus,
.filter-field select:focus,
.btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 1px;
}

/* ---- Role-type quick filter (VAL-SEO-014) ----
   A row of crawlable links to /?category=<role type>. It sits directly under
   the filter form so non-retail (B2B/SaaS/professional) roles are one click
   away. Compact and wrapping so it never competes with the form. */
.role-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -8px 0 20px;
}
.role-filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.role-filter-link {
  display: inline-block;
  padding: 5px 11px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.role-filter-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.role-filter-link.is-active {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* ---- Supporting content: category hub + category/guide pages (VAL-SEO-015) ----
   All rules are namespaced under .category-* / .guide-* / .supporting-links so
   they cannot leak onto other pages. */
.category-hub {
  margin: -8px 0 20px;
}
.category-hub-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.category-hub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-card {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.category-card-link {
  font-weight: 600;
  text-decoration: none;
}
.category-card-count {
  font-size: 0.8rem;
}
.category-hub-guides {
  margin: 10px 0 0;
  font-size: 0.9rem;
}
.category-page,
.category-index,
.guide-page,
.guide-index {
  max-width: 760px;
}
.category-title,
.guide-title {
  margin: 4px 0 6px;
}
.category-back,
.guide-back {
  margin: 0 0 6px;
  font-size: 0.9rem;
}
.category-count {
  margin: 0 0 12px;
}
.category-intro,
.guide-intro {
  font-size: 1.02rem;
}
.category-cta {
  margin: 16px 0;
}
.category-section,
.guide-section {
  margin: 18px 0;
}
.category-section-title,
.guide-section-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.category-list {
  margin: 0;
  padding-left: 20px;
}
.category-links {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.category-more {
  margin: 0 0 6px;
  font-weight: 600;
}
.category-links-list,
.guide-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-list {
  flex-direction: column;
  gap: 12px;
}
.guide-card-link {
  font-weight: 600;
  text-decoration: none;
}
.guide-card-intro {
  margin: 4px 0 0;
}
.supporting-links {
  margin: 28px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.supporting-links-label {
  font-weight: 600;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 9px 16px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  border-color: var(--primary-color);
}

.btn.primary {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--border);
}

/* ---- Job list ---- */

.job-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.job-card {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius);
}

.job-card-title {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.job-card-title a {
  text-decoration: none;
}

.job-card-title a:hover {
  text-decoration: underline;
}

.job-card-company {
  margin: 0;
  font-weight: 600;
}

.job-card-meta,
.job-card-salary {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.job-card-salary {
  color: var(--text);
  font-weight: 600;
}

/* The selected card. The marker itself is aria-current on the card (exposed to
   assistive tech); this rule keys the visual treatment off that same attribute
   so a card can never look selected without being announced as selected.
   The affordance is the border plus an inset ring in the primary color: no
   background tint, which would lower the contrast of the muted meta line
   (.job-card-meta) below WCAG AA. */
.job-card[aria-current="true"] {
  border-color: var(--primary-color);
  box-shadow: inset 0 0 0 1px var(--primary-color);
}

.job-card[aria-current="true"] .job-card-title a {
  text-decoration: underline;
}

.job-count {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

/* ---- Pagination ---- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.page-info {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-range {
  color: var(--muted);
}

/* ---- Job detail ---- */

.job-detail {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.job-detail-back {
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.job-detail-title {
  margin: 0 0 6px;
  font-size: 1.6rem;
  line-height: 1.25;
}

.job-detail-company {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
}

.job-detail-location,
.job-detail-type,
.job-detail-category,
.job-detail-posted {
  display: inline-block;
  margin: 0 10px 8px 0;
  padding: 3px 10px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.job-detail-salary {
  margin: 4px 0 12px;
  font-weight: 600;
}

.job-detail-description {
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Enriched job-detail sections (VAL-SEO-013): summary, responsibilities,
   requirements, location, the full description, and the internal links. */
.job-detail-section {
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.job-detail-section-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
}

.job-detail-summary {
  margin: 0;
}

.job-detail-list {
  margin: 0;
  padding-left: 20px;
}

.job-detail-list li {
  margin: 2px 0;
}

.job-detail-category-links {
  margin: 16px 0 0;
  font-size: 0.92rem;
}

.job-detail-related .job-related-list {
  list-style: none;
  padding-left: 0;
}

.job-related-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.job-detail-apply {
  margin: 20px 0 0;
}

.apply-btn {
  padding: 11px 24px;
}

/* ---- States ---- */

.state {
  padding: 32px 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.state h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.state p {
  margin: 0 0 14px;
  color: var(--muted);
}

.state .btn {
  margin: 0 4px;
}

.state.loading {
  border-style: dashed;
  color: var(--muted);
}

.state.error {
  border-color: var(--primary-color);
}

/* ---- Footer ----
 *
 * The footer is shared by every public template (index/section/article/job)
 * and by the server-rendered shells, so it carries the sitemap link and the
 * Stuckomatic attribution on every public page. All footer rules are scoped
 * under .site-footer, so they cannot leak onto other pages.
 */

.site-footer {
  padding: 20px 0 28px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-links {
  margin-top: 8px;
}

.site-footer .footer-links a + a {
  margin-left: 12px;
}

.site-footer a {
  color: var(--primary-color);
}

.site-footer .footer-attribution {
  margin-top: 6px;
  color: var(--muted);
}

/* ---- Split view workspace (base = narrow, list-only) ----
 *
 * The workspace container holds two columns: the job list (.results) and the
 * detail pane (.detail-col). The narrow layout is the base layer, so a width
 * below the breakpoint is list-only: the pane is not rendered beside the list
 * at all (it is either hidden, or shown on its own in mobile detail mode).
 * The two-pane grid is layered on by @media (min-width: 900px) below — the
 * same breakpoint public/app.js uses for its layoutMode helper.
 */

.workspace {
  display: block;
}

.results {
  display: block;
}

.detail-col {
  display: none;
  min-width: 0;
}

.detail-pane-inner {
  min-width: 0;
}

/* Mobile detail mode: the pane takes over the content area. The list and the
   filter bar (a sibling of the workspace inside <main>) step aside so the
   detail is not shown underneath them. */
.workspace[data-detail-open] .results {
  display: none;
}

.workspace[data-detail-open] .detail-col {
  display: block;
}

.workspace[data-detail-open] .mobile-detail-bar {
  display: block;
}

.content[data-detail-open] .filters {
  display: none;
}

/* The homepage news teasers now sit directly under the search field (above the
   listings), so they are list-page chrome too: in mobile detail mode they would
   otherwise push the detail pane down under the back bar. Hidden here and
   re-enabled in the desktop block below, exactly like .filters. The class is
   homepage-only, so section/article/job pages are unaffected. */
.content[data-detail-open] .home-news-block {
  display: none;
}

/* Mobile detail mode also drops the page heading ("Open positions"). Like the
   filter bar it is chrome for the list, not the detail; left visible it pushes
   the detail title far down the content area under the back bar. Scoped to
   .content[data-detail-open], which only the listings page ever sets (the
   standalone /job.html has no workspace and never gets the attribute). */
.content[data-detail-open] .page-heading {
  display: none;
}

/* The mobile detail bar holds the "Back to results" control. Outside mobile
   detail mode it is not rendered at all. */
.mobile-detail-bar {
  display: none;
  margin: 0;
}

.back-to-results {
  width: 100%;
}

/* The .btn class sets `display: inline-block`, which would otherwise beat the
   browser's [hidden] { display: none } rule and make the [hidden] attribute
   cosmetic. This keeps the attribute authoritative for the back control, so
   "hidden by default" is true of the control itself and not only of its
   container. */
.back-to-results[hidden] {
  display: none;
}

/* Screen-reader-only text (the back control names the job it returns from). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Page-level overflow guard for the narrow layout. */
html,
body {
  overflow-x: clip;
}

/* ---- Two-pane layout (>= 900px) ----
 *
 * Horizontally adjacent columns, both visible: the list is its own scroll
 * region so it scrolls independently, while the detail pane stays in the
 * viewport (sticky).
 *
 * Everything below is SCOPED to the split view. public/styles.css is shared
 * with the standalone /job.html, which also uses class="results" (and
 * class="wrap content"), so an unscoped `.results { max-height; overflow-y }`
 * would give the fallback detail page a second scrollbar at >=900px and push
 * its Apply link below the clipped box at a short viewport.
 */
@media (min-width: 900px) {
  /* The workspace is the only split-view-specific child of <main>, so it is
     what distinguishes the listings page from /job.html. (A descendant
     selector cannot express this: .content is the workspace's parent.)
     Left-aligned to match the header/footer (VAL-UI-003); the max-width still
     caps the widened line length. */
  .content:has(> .workspace) {
    max-width: 1180px;
    margin-left: 0;
    margin-right: auto;
  }

  .workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
  }

  .workspace .results {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .detail-col {
    display: block;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }

  /* Desktop always shows both panes: the mobile detail takeover never applies
     (the attribute is mobile-only, and this keeps the stylesheet honest even
     if it were left set). */
  .workspace[data-detail-open] .results {
    display: block;
  }

  .content[data-detail-open] .filters {
    display: grid;
  }

  /* Desktop also always shows the homepage news block, exactly as it shows the
     filters: the mobile takeover is a mobile-only state. */
  .content[data-detail-open] .home-news-block {
    display: grid;
  }

  /* Desktop always shows the page heading, exactly as it always shows the
     filters: the mobile takeover is a mobile-only state. */
  .content[data-detail-open] .page-heading {
    display: block;
  }

  .mobile-detail-bar {
    display: none;
  }
}

/* ---- Responsive ---- */

@media (max-width: 720px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .filter-search {
    grid-column: 1 / -1;
  }

  .filter-actions {
    grid-column: 1 / -1;
  }

  .filter-actions .btn {
    width: 100%;
  }

  .job-detail-title {
    font-size: 1.35rem;
  }

  .mobile-detail-bar {
    margin-bottom: 14px;
  }
}

@media (max-width: 460px) {
  .wrap {
    padding: 0 14px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 10px;
  }

  .site-logo {
    width: 36px;
    height: 36px;
  }

  .pagination {
    justify-content: center;
  }
}

/* ---- News (sections, articles, homepage teasers) ----
 *
 * Scoped to the news surfaces only. The class names (news-item, article-body,
 * home-news, lang-toggle, site-nav, header-actions) do not appear on the job
 * listings or the standalone /job.html, so none of these rules can leak onto
 * the split view. The language toggle and site nav, however, are shared chrome
 * present on every page; they use their own classes so the existing layout is
 * untouched.
 */

.header-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---- Basket (client-side saved jobs, VAL-UI-004) ----
 *
 * The header control (button + count badge) and the overlay panel it opens.
 * Scoped to .basket-btn/.basket-overlay/.basket-panel so nothing leaks onto
 * the split view, the news pages, or the footer. The badge is hidden (via the
 * [hidden] attribute the markup sets) while the basket is empty.
 */

.basket-btn {
  gap: 6px;
}

.basket-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 18px;
  color: #fff;
  text-align: center;
  background: var(--primary-color);
  border-radius: 999px;
}

.basket-count[hidden] {
  display: none;
}

.basket-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  background: rgba(15, 23, 42, 0.4);
}

.basket-overlay[hidden] {
  display: none;
}

.basket-panel {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
}

.basket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.basket-title {
  margin: 0;
  font-size: 1.2rem;
}

.basket-close {
  padding: 2px 10px;
  font-size: 1.2rem;
  line-height: 1;
}

.basket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.basket-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.basket-item-main {
  min-width: 0;
}

.basket-item-title {
  font-weight: 600;
  text-decoration: none;
}

.basket-item-title:hover {
  text-decoration: underline;
}

.basket-item-meta {
  margin: 4px 0 0;
  font-size: 0.85rem;
}

.basket-remove {
  flex: 0 0 auto;
  padding: 5px 12px;
  font-size: 0.85rem;
}

.basket-empty {
  margin: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  text-decoration: underline;
}

.lang-toggle {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-option {
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}

.lang-option[aria-current="true"] {
  color: #fff;
  background: var(--primary-color);
}

/* ---- Post a job (public self-serve posting flow, VAL-POST-001/002) ----
 *
 * The header entry point, the three-product tier picker, and the job form.
 * Scoped under .post-job-* so none of these rules leak onto the split view,
 * the news pages, or the basket. The tier picker uses the board's own
 * --primary-color so the flow is branded per board.
 */

.post-job-btn {
  white-space: nowrap;
}

.site-nav-post-job {
  font-weight: 600;
}

.post-job-form {
  max-width: 720px;
}

.post-job-intro {
  margin: 0 0 16px;
  color: var(--muted);
}

.post-job-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.post-job-tiers legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-job-tier {
  display: block;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-radius: var(--radius);
}

.post-job-tier:has(input:checked) {
  border-color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.post-job-tier input {
  margin-right: 8px;
}

.post-job-tier-body {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  vertical-align: top;
}

.post-job-tier-name {
  font-weight: 700;
}

.post-job-tier-price {
  font-size: 1.25rem;
  font-weight: 700;
}

.post-job-tier-currency {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.post-job-tier-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.post-job-tier-badge {
  align-self: flex-start;
  padding: 1px 8px;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary-color);
  border-radius: 999px;
}

.post-job-heading {
  margin: 24px 0 12px;
  font-size: 1.05rem;
}

.post-job-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.post-job-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-job-field input,
.post-job-field textarea {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.post-job-field input:focus,
.post-job-field textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 1px;
}

.post-job-field.has-error input,
.post-job-field.has-error textarea {
  border-color: #b91c1c;
}

.post-job-error {
  margin: 0;
  font-size: 0.85rem;
  color: #b91c1c;
}

.post-job-errors {
  padding: 10px 14px;
  margin: 0 0 16px;
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

.post-job-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.post-job-total {
  margin: 0;
  font-weight: 700;
}

.post-job-confirm {
  padding: 16px 18px;
  margin: 0 0 20px;
  background: var(--surface);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius);
}

.post-job-confirm h3 {
  margin: 0 0 6px;
}

.post-job-confirm-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

/* Checkout states (post-job-payment, VAL-POST-003/004). Scoped under
   .post-job-* like the rest of the flow so they never leak onto other pages. */
.post-job-notice {
  padding: 12px 14px;
  margin: 0 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius);
}

.post-job-success {
  padding: 16px 18px;
  margin: 0 0 20px;
  background: var(--surface);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius);
}

.post-job-success h3 {
  margin: 0 0 6px;
}

.post-job-cancelled {
  padding: 16px 18px;
  margin: 0 0 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius);
}

.post-job-cancelled h3 {
  margin: 0 0 6px;
}

.post-job-secure-note {
  margin: 10px 0 0;
  font-size: 0.85rem;
}

.news-region,
.article-region {
  min-width: 0;
}

.news-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.news-item {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius);
}

.news-item-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.news-item-title a {
  text-decoration: none;
}

.news-item-title a:hover {
  text-decoration: underline;
}

.news-item-date {
  margin: 0 0 8px;
  font-size: 0.85rem;
}

.news-item-excerpt {
  margin: 0 0 10px;
}

.news-item-more {
  font-weight: 600;
  text-decoration: none;
}

.news-item-more:hover {
  text-decoration: underline;
}

.article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-back {
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.article-title {
  margin: 0 0 6px;
  font-size: 1.7rem;
  line-height: 1.25;
}

.article-date {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.article-body {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.article-body p {
  margin: 0 0 14px;
}

.home-news-block {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.home-news {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.home-news-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-news-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.home-news-title a {
  text-decoration: none;
}

.home-news-title a:hover {
  text-decoration: underline;
}

.home-news-excerpt {
  margin: 0 0 10px;
}

.home-news-more {
  font-weight: 600;
  text-decoration: none;
}

.home-news-section {
  margin: 10px 0 0;
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .home-news-block {
    grid-template-columns: 1fr 1fr;
  }
}
