/* Two-sided marketplace: Taskfield, an invented marketplace for freelancers and teachers. White, ink navy and an electric violet accent with Trebuchet headings. Two audiences, one search and fair fees are the product. */

.tm-page {
  --tm-canvas: #ffffff;
  --tm-surface: #ffffff;
  --tm-band: #f4f3fb;
  --tm-ink: #14142b;
  --tm-muted: #55557a;
  --tm-line: #e2e1f0;
  --tm-line-strong: #7f7f9e;
  --tm-accent: #5b2bd9;
  --tm-accent-hover: #4720b0;
  --tm-on-accent: #ffffff;
  --tm-tint: #ece6fd;
  --tm-success: #1f7a4a;
  --tm-danger: #b3261e;
  --tm-focus: #5b2bd9;
  --tm-star: #8a5a00;
  --tm-head: "Trebuchet MS", "Segoe UI", sans-serif;
  --tm-body: "Segoe UI", system-ui, sans-serif;
  --tm-r: 12px;

  background: var(--tm-canvas);
  color: var(--tm-ink);
  font-family: var(--tm-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Dark mode, the default (PRD section 13.10): night navy with a lifted violet. Only this template's
   tokens change. */
@media screen {
  :root[data-theme="dark"] .tm-page {
    --tm-canvas: #0f0f1e;
    --tm-surface: #17172b;
    --tm-band: #131325;
    --tm-ink: #efeefb;
    --tm-muted: #b4b3d0;
    --tm-line: #2c2c48;
    --tm-line-strong: #7d7c9e;
    --tm-accent: #b49cff;
    --tm-accent-hover: #cdbcff;
    --tm-on-accent: #1a0b45;
    --tm-tint: #2a2350;
    --tm-success: #7fd6a4;
    --tm-danger: #ff8a80;
    --tm-focus: #b49cff;
    --tm-star: #f2c14e;
    color-scheme: dark;
  }
}

.tm-page [hidden] { display: none !important; }
:where(.tm-page) :is(p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset, figure, blockquote) { margin: 0; }
:where(.tm-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.tm-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.tm-page) a { color: var(--tm-accent); }
:where(.tm-page) :is(h1, h2, h3, h4) { color: inherit; }
.tm-page :focus-visible { outline: 3px solid var(--tm-focus); outline-offset: 2px; }
.tm-page :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--tm-accent); }
html:has(.tm-page) { scroll-behavior: smooth; }
.tm-page section[id] { scroll-margin-top: 72px; }
.tm-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.tm-header { position: sticky; top: 0; z-index: 20; background: var(--tm-canvas); border-bottom: 1px solid var(--tm-line); }
.tm-header-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.tm-logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1.1 var(--tm-head); color: var(--tm-ink) !important; text-decoration: none; }
.tm-logo-mark { width: 30px; height: 30px; flex: none; fill: var(--tm-tint); stroke: var(--tm-accent); stroke-width: 2; stroke-linejoin: round; }
.tm-nav { margin-left: auto; }
.tm-nav ul { display: flex; gap: 22px; }
.tm-nav a { color: var(--tm-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.tm-nav a:hover { color: var(--tm-accent); text-decoration: underline; text-underline-offset: 4px; }
.tm-menu-btn { display: none; }
.tm-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--tm-line-strong); border-radius: var(--tm-r); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.tm-theme-btn:hover { background: var(--tm-tint); }

.tm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--tm-accent); border-radius: var(--tm-r); font: 700 1rem/1.2 var(--tm-head); text-decoration: none; cursor: pointer; text-align: center;
}
.tm-btn--fill { background: var(--tm-accent); color: var(--tm-on-accent) !important; }
.tm-btn--fill:hover { background: var(--tm-accent-hover); border-color: var(--tm-accent-hover); }
.tm-btn--line { background: transparent; color: var(--tm-accent) !important; }
.tm-btn--line:hover { background: var(--tm-tint); }
.tm-btn--big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.tm-btn:disabled { background: var(--tm-band); border-color: var(--tm-line-strong); color: var(--tm-muted) !important; cursor: not-allowed; }

.tm-eyebrow { font-weight: 700; color: var(--tm-accent); font-size: .92rem; letter-spacing: .02em; }
.tm-title { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--tm-head); }
.tm-sub { color: var(--tm-muted); margin-top: 8px; max-width: 64ch; }
.tm-head { margin-bottom: 26px; }
.tm-sec { padding: 72px 0; }
.tm-band { background: var(--tm-band); }
.tm-muted { color: var(--tm-muted); }
.tm-small { font-size: .9rem; color: var(--tm-muted); }

.tm-hero { padding: 64px 0 56px; }
.tm-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.tm-hero-title { font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--tm-head); margin-top: 10px; }
.tm-lede { font-size: 1.15rem; color: var(--tm-muted); margin-top: 16px; max-width: 54ch; }
.tm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tm-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--tm-muted); font-size: .95rem; }
.tm-facts strong { color: var(--tm-ink); }
.tm-panel { padding: 24px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: calc(var(--tm-r) + 4px); box-shadow: 0 24px 40px -30px var(--color-shadow); }
.tm-panel-title { font: 700 1.1rem var(--tm-head); margin-bottom: 12px; }

.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.tm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tm-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-r); }
.tm-card h3 { font: 700 1.15rem/1.25 var(--tm-head); }
.tm-card p { color: var(--tm-muted); font-size: .96rem; }
.tm-card .tm-btn { margin-top: auto; align-self: flex-start; }
.tm-card.is-on { border: 2px solid var(--tm-accent); }
.tm-art { height: 120px; margin: -22px -22px 6px; border-radius: var(--tm-r) var(--tm-r) 0 0; background: var(--tm-tint); position: relative; overflow: hidden; }
.tm-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 22%; background: var(--tm-canvas); opacity: .7; }
.tm-price { font: 700 1.5rem var(--tm-head); color: var(--tm-ink); }
.tm-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--tm-line-strong); font-size: .82rem; font-weight: 600; color: var(--tm-ink); }
.tm-badge--on { background: var(--tm-tint); border-color: var(--tm-accent); }
.tm-badge--bad { border-color: var(--tm-danger); color: var(--tm-danger); }
.tm-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--tm-muted); }

.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tm-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--tm-line-strong); border-radius: 999px; background: var(--tm-surface); color: var(--tm-ink); font: 600 .95rem var(--tm-body); cursor: pointer; }
.tm-chip:hover { border-color: var(--tm-accent); }
.tm-chip[aria-pressed="true"] { background: var(--tm-accent); border-color: var(--tm-accent); color: var(--tm-on-accent); }
.tm-count { font-weight: 600; margin-bottom: 14px; }
.tm-empty { padding: 28px; text-align: center; border: 1px dashed var(--tm-line-strong); border-radius: var(--tm-r); }

.tm-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: st; }
.tm-steps li { padding: 22px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-r); counter-increment: st; }
.tm-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--tm-accent); color: var(--tm-on-accent); font-weight: 700; }
.tm-steps h3 { font: 700 1.1rem var(--tm-head); }
.tm-steps p { color: var(--tm-muted); font-size: .95rem; margin-top: 4px; }

.tm-table { width: 100%; border-collapse: collapse; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-r); overflow: hidden; }
.tm-table th, .tm-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--tm-line); vertical-align: top; }
.tm-table th { font-size: .88rem; color: var(--tm-muted); background: var(--tm-band); }
.tm-table td.tm-num, .tm-table th.tm-num { text-align: right; font-variant-numeric: tabular-nums; }

.tm-meter { height: 10px; border-radius: 999px; background: var(--tm-line); overflow: hidden; }
.tm-meter span { display: block; height: 100%; background: var(--tm-accent); border-radius: inherit; }
.tm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.tm-stat strong { display: block; font: 700 2rem/1.1 var(--tm-head); }
.tm-stat span { color: var(--tm-muted); font-size: .92rem; }

.tm-faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.tm-qs details { border-bottom: 1px solid var(--tm-line); }
.tm-qs summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.tm-qs p { padding: 0 0 16px; color: var(--tm-muted); }

.tm-form { max-width: 760px; margin-inline: auto; padding: 32px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: calc(var(--tm-r) + 4px); display: flex; flex-direction: column; gap: 18px; }
.tm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tm-field--full { grid-column: 1 / -1; }
.tm-field label, .tm-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.tm-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--tm-line-strong); border-radius: calc(var(--tm-r) - 2px); background: var(--tm-canvas); color: var(--tm-ink); font: 1rem var(--tm-body); }
.tm-field textarea { min-height: 110px; resize: vertical; }
.tm-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--tm-danger); }
.tm-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.tm-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--tm-accent); }
.tm-hint { font-size: .88rem; color: var(--tm-muted); margin-top: 6px; }
.tm-error { color: var(--tm-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.tm-error::before { content: "! "; }
.tm-status { font-weight: 600; }
.tm-status.is-ok { padding: 14px 16px; border-radius: calc(var(--tm-r) - 2px); background: var(--tm-tint); border-left: 4px solid var(--tm-success); }

.tm-footer { padding: 28px 0; border-top: 1px solid var(--tm-line); color: var(--tm-muted); font-size: .92rem; }
.tm-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .tm-header-in { flex-wrap: wrap; gap: 10px; }
  .tm-theme-btn { margin-left: auto; }
  .tm-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--tm-line-strong); border-radius: var(--tm-r); background: transparent; color: var(--tm-ink); font: 600 .95rem var(--tm-body); cursor: pointer;
  }
  .tm-nav { display: none; order: 5; width: 100%; margin: 0; }
  .tm-nav.is-open { display: block; padding-bottom: 12px; }
  .tm-nav ul { flex-direction: column; gap: 0; }
  .tm-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--tm-line); }
  .tm-header-cta { display: none; }
  .tm-hero-in, .tm-faq-in, .tm-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .tm-sec { padding: 52px 0; }
  .tm-fields { grid-template-columns: minmax(0, 1fr); }
  .tm-form { padding: 20px; }
  .tm-table thead { display: none; }
  .tm-table, .tm-table tbody, .tm-table tr, .tm-table td { display: block; width: 100%; }
  .tm-table tr { border-bottom: 1px solid var(--tm-line-strong); padding: 6px 0; }
  .tm-table td { border: 0; padding: 6px 14px; text-align: left !important; }
  .tm-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--tm-muted); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.tm-page) { scroll-behavior: auto; }
}

@media print {
  .tm-header, .tm-theme-btn, .tm-form { display: none; }
}

/* This template's own sections */
.tm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tm-band); }
.tm-seg-btn { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--tm-ink); font: 700 1rem var(--tm-body); cursor: pointer; }
.tm-seg-btn[aria-pressed="true"] { background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-aud-text { margin-top: 14px; color: var(--tm-muted); }
.tm-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tm-tools input, .tm-tools select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--tm-line-strong); border-radius: var(--tm-r); background: var(--tm-surface); color: var(--tm-ink); font: inherit; }
.tm-tools input { flex: 1 1 260px; }
.tm-pro { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: var(--tm-r); }
.tm-pro-top { display: flex; gap: 12px; align-items: center; }
.tm-avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tm-tint); color: var(--tm-accent); font: 700 1.05rem var(--tm-head); }
.tm-pro h3 { font: 700 1.1rem var(--tm-head); }
.tm-pro .tm-role { color: var(--tm-muted); font-size: .92rem; }
.tm-rating { color: var(--tm-star); font-weight: 700; }
.tm-rating span { color: var(--tm-muted); font-weight: 400; }
.tm-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-skills li { padding: 2px 8px; border-radius: 999px; background: var(--tm-band); font-size: .85rem; }
.tm-pro-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--tm-line); }
.tm-rate { font: 700 1.15rem var(--tm-head); }
.tm-tabs { display: inline-flex; gap: 4px; margin-top: 12px; border-bottom: 1px solid var(--tm-line); }
.tm-tabs button { min-height: 44px; padding: 8px 16px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--tm-muted); font: 700 1rem var(--tm-body); cursor: pointer; }
.tm-tabs [aria-selected="true"] { color: var(--tm-ink); border-bottom-color: var(--tm-accent); }
.tm-fees { display: grid; gap: 40px; align-items: center; }
.tm-label { display: block; font-weight: 700; margin: 20px 0 8px; }
.tm-fees input[type="range"] { width: 100%; }
.tm-split div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--tm-line); }
.tm-split dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-split-big { border-bottom: 0 !important; font: 700 1.3rem var(--tm-head); }
