/* WildJournal Business.
   Same engineering shape as the admin console (plain CSS, no build step, no
   framework) but a deliberately different voice: the admin console is an
   operator tool — dense, ink-on-paper. This is partner-facing, so it reads
   like a prospectus: forest green, sand, wide measure, serif display.

   It stays quieter than the consumer app on purpose. A hotelier deciding
   whether to hand over their inventory is not looking for delight; the whole
   surface is a business document, and it should read like one.

   Source of truth: apps/partner_web/. server/portal/ is a build output. */

:root {
  --forest: #1f3d2f;
  --forest-deep: #16291f;
  --sand: #fbf9f4;
  --card: #ffffff;
  --line: #ddd6c6;
  --amber: #c0803a;
  --amber-soft: #f3e6d2;
  --ink: #23261f;
  --muted: #6f6c60;
  --ok: #1a7a4a;
  --bad: #a03123;
  --warn: #8a5a12;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 15px/1.6 -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, legend, .brandtext {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

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

/* ── top bar ─────────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 14px 28px; background: var(--forest); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
/* Real artwork (inlined from brand/wildjournal-business-mark.svg), not the "WJ"
   text tile this used to be — so it needs a size and nothing else. The paths
   carry their own fills, and the artwork carries its own rounded plate, so a
   border-radius here would clip the corners of the mark rather than round it. */
.mark { width: 30px; height: 30px; display: block; flex: none; }
.brandtext { font-size: 18px; }
/* The qualifier, set as the Business lockup sets it: a plain grotesque, small
   and widely tracked, under a serif wordmark. Read brand/README.md before
   touching the tracking — in the lockup it is tuned to justify to the wordmark,
   and that relationship is why the block looks deliberate. */
.brandtext em {
  font-style: normal; font-weight: 600;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  opacity: .72; margin-left: 9px; vertical-align: 2px;
}

#nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
#nav a {
  color: rgba(255,255,255,.82); text-decoration: none; padding: 6px 13px;
  border-radius: 999px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase;
}
#nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
#nav a.current { background: var(--amber); color: var(--forest-deep); font-weight: 700; }
.linkish {
  background: none; border: none; color: rgba(255,255,255,.55); cursor: pointer;
  font: inherit; font-size: 12px; padding: 6px 4px;
}
.linkish:hover { color: #fff; }

main { max-width: 940px; margin: 0 auto; padding: 34px 24px 90px; }

/* ── hero / landing ──────────────────────────────────────────────────── */
.hero { padding: 10px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.eyebrow {
  margin: 0 0 10px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); font-weight: 700;
}
h1 { font-size: 40px; line-height: 1.12; margin-bottom: 14px; }
.lede { font-size: 17.5px; max-width: 62ch; color: #3a3d34; margin: 0 0 22px; }
.lede.small { font-size: 15.5px; }
.lede em { font-style: italic; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.fineprint { font-size: 12.5px; color: var(--muted); }

.section-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); margin: 34px 0 16px; font-family: inherit; font-weight: 700;
}

/* The "what this is" row. Three plain columns with no card chrome — the four
   partner-type cards immediately below are the panel-shaped thing on this page,
   and two banks of cards in a row read as one undifferentiated grid. */
.pitch { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px 28px; }
.pitch h3 { font-size: 17px; margin-bottom: 7px; }
.pitch p { margin: 0; color: #3f4239; font-size: 14.5px; }

.aside {
  margin: 16px 0 0; max-width: 72ch; color: var(--muted); font-size: 13.5px;
  border-left: 2px solid var(--line); padding-left: 14px;
}

.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.type {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px; position: relative;
}
.type .glyph {
  font: 700 11px/1 -apple-system, sans-serif; letter-spacing: .1em;
  color: var(--amber); display: block; margin-bottom: 8px;
}
.type h3 { font-size: 21px; margin-bottom: 8px; }
.type p { margin: 0 0 12px; color: #3f4239; font-size: 14.5px; }
.type ul { margin: 0 0 16px; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.type li { margin-bottom: 4px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; max-width: 66ch; }
.steps li {
  position: relative; padding: 0 0 14px 40px; margin: 0;
  border-left: 2px solid var(--line); margin-left: 12px; padding-left: 26px;
}
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: -13px; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--forest); color: #fff;
  font: 700 11px/24px -apple-system, sans-serif; text-align: center;
}
.steps li:last-child { border-left-color: transparent; }

/* The terms list. A two-column dl on a wide screen and a stacked one below the
   panel breakpoint, because a 12ch term column beside a 60ch definition is
   unreadable on a phone. */
.terms { margin: 0; max-width: 74ch; display: grid; grid-template-columns: 150px 1fr; gap: 2px 24px; }
.terms dt {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line);
}
.terms dd {
  margin: 0; padding: 10px 0; font-size: 14.5px; color: #3f4239;
  border-top: 1px solid var(--line);
}

.hero-actions.closing { margin-top: 30px; }

.privacy-note {
  margin-top: 34px; background: var(--amber-soft); border: 1px solid #e6d3b4;
  border-radius: 10px; padding: 20px 22px;
}
.privacy-note h3 { font-size: 17px; margin-bottom: 8px; }
.privacy-note p { margin: 0; font-size: 14.5px; color: #4a4433; }

/* ── forms & panels ──────────────────────────────────────────────────── */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; margin: 0 0 16px; border-width: 1px;
}
.panel.dashed { border-style: dashed; }
.panel.narrow { max-width: 460px; }
fieldset.panel { border: 1px solid var(--line); }
legend {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); padding: 0 8px; font-family: inherit; font-weight: 700;
  display: block; margin-bottom: 12px; padding-left: 0;
}
fieldset legend { padding-left: 8px; margin-left: -8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
label { display: block; font-size: 12.5px; font-weight: 600; color: #43463c; }
label.full { margin-top: 14px; }
.req { color: var(--bad); font-weight: 400; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; margin-top: 3px; }

input, textarea, select {
  font: inherit; font-size: 14px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px;
  width: 100%; margin-top: 5px; font-weight: 400;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--amber); outline-offset: -1px; border-color: var(--amber);
}
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row input { width: auto; margin-top: 0; }
.submitrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }

/* type chooser */
.chooser { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.chooser label {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer;
  background: #fff; font-size: 14px; font-weight: 600; display: block; margin: 0;
}
.chooser label:hover { border-color: var(--amber); }
.chooser label.sel { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: #f4f7f3; }
.chooser input { display: none; }
.chooser .sub { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 7px;
  padding: 10px 18px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  text-decoration: none; text-align: center;
}
.btn.primary { background: var(--forest); color: #fff; }
.btn.ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn.small { padding: 6px 12px; font-size: 12.5px; background: #fff; color: var(--forest); border-color: var(--line); }
.btn.danger { background: #fff; color: var(--bad); border-color: var(--bad); padding: 6px 12px; font-size: 12.5px; }
.btn.good { background: var(--ok); color: #fff; padding: 6px 12px; font-size: 12.5px; }
.btn:hover { opacity: .88; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ── status / results ────────────────────────────────────────────────── */
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: #e9e5da; color: var(--muted);
}
.pill.approved, .pill.active, .pill.published { background: #d9ecdf; color: var(--ok); }
.pill.rejected, .pill.suspended { background: #f6dedb; color: var(--bad); }
.pill.submitted, .pill.pending, .pill.under_review, .pill.draft { background: var(--amber-soft); color: var(--warn); }
.pill.archived { background: #e5e2da; color: var(--muted); }

.result h2 { font-size: 24px; margin-bottom: 8px; }
.tokenbox {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: #f4f2ec; border: 1px dashed var(--line); border-radius: 8px;
  padding: 12px 14px; margin: 12px 0;
}
.tokenbox code {
  font: 13.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all; flex: 1; min-width: 200px;
}

.banner {
  background: #f6dedb; border: 1px solid #e3b9b2; color: #6d2119;
  border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px;
}

.dashhead { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dashhead h1 { font-size: 30px; }
.dashhead .pill { margin-left: auto; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab {
  background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); padding: 10px 14px;
}
.tab.active { color: var(--forest); border-bottom-color: var(--amber); }

.listing { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; }
.listing .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.listing .head .pill { margin-left: auto; }
.listing .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 14px; }
dl.kv dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; padding-top: 2px; }
dl.kv dd { margin: 0; }

footer {
  border-top: 1px solid var(--line); padding: 18px 24px 40px; text-align: center;
  color: var(--muted); font-size: 12.5px;
}
footer .sep { margin: 0 8px; opacity: .5; }

#toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--forest-deep); color: #fff; padding: 11px 20px; border-radius: 8px;
  font-size: 13.5px; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 20;
  max-width: 90vw;
}
#toast.show { opacity: 1; }
#toast.bad { background: var(--bad); }

.hidden { display: none !important; }

@media (max-width: 620px) {
  h1 { font-size: 30px; }
  .lede { font-size: 16px; }
  main { padding: 24px 18px 70px; }
  .topbar { padding: 12px 18px; }
  .terms { grid-template-columns: 1fr; gap: 0; }
  .terms dd { border-top: none; padding-top: 0; }
}


/* ── parent-company endorsement ─────────────────────────────────────────── */
footer .endorse {
  display: inline-flex; align-items: baseline; gap: 7px;
  text-decoration: none; margin-left: auto;
}
footer .endorse__pre {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .55;
}
footer .endorse__word {
  font-size: 14px; letter-spacing: .07em; color: #A68A64;
}
footer .endorse:hover .endorse__word { color: #c9a97a; }
