/* Ridgefront Business Suite — charcoal and gold (Wendy's ruling,
   Nov 30, 2026): deep charcoal surfaces, cream text, gold accents. */
:root {
  --bg: #26262b;
  --surface: #2e2e35;
  --surface-2: #3a3a42;
  --field: #1d1d21;
  --border: #4a4a55;
  --text: #f7f4ec;
  --dim: #c9c2b2;
  --gold: #d9b64a;
  --gold-deep: #8a6d1f;
  --danger: #e88a7a;
  --ok: #9fd48a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.45;
}
a { color: var(--gold); }
button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--gold-deep);
  background: var(--gold);
  color: #26262b;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-weight: bold;
}
button.secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
  font-weight: normal;
}
button.danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
  font-weight: normal;
}
button:disabled { opacity: 0.5; cursor: default; }
input, select, textarea {
  font: inherit;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); }
label { display: block; margin: 0.6rem 0 0.25rem; color: var(--dim); font-size: 0.9rem; }
h1, h2, h3 { color: var(--text); margin: 0.4em 0; }
h1 .gold, .gold { color: var(--gold); }
.dim { color: var(--dim); }
.error { color: var(--danger); }
.ok { color: var(--ok); }

.topbar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: #1d1d21; border-bottom: 2px solid var(--gold-deep);
  padding: 0.7rem 1rem;
}
.topbar .brand { font-size: 1.25rem; font-weight: bold; }
.topbar .spacer { flex: 1; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin: 0 0 1rem;
}
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.8rem; }
.tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.9rem; text-align: left; width: 100%;
  color: var(--text); font-weight: normal;
}
/* The gold highlight belongs to real pointers. Unguarded, a
   :hover rule traps touch taps: the first tap only applies the
   highlight and the tap that opens the company has to come
   second (Candy's two-tries report, Nov 30, 2026). A press
   still flashes gold through :active, which never traps. */
@media (hover: hover) and (pointer: fine) {
  .tile:hover { border-color: var(--gold); }
}
.tile:active { border-color: var(--gold); }
.tile .t { font-weight: bold; font-size: 1.05rem; color: var(--text); }
.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.tabs button { background: var(--surface-2); color: var(--text); border-color: var(--border); font-weight: normal; }
.tabs button.active { background: var(--gold); color: #26262b; border-color: var(--gold-deep); font-weight: bold; }
table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; }
th, td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.row-actions { white-space: nowrap; }
.row-actions button { padding: 0.2rem 0.55rem; font-size: 0.85rem; margin-left: 0.3rem; }
.inline { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: end; }
.inline > div { flex: 1; min-width: 140px; }
.notice {
  border: 1px solid var(--gold-deep); background: #33302a;
  border-radius: 10px; padding: 0.8rem 1rem; margin: 0 0 1rem;
}
.flag { color: var(--danger); font-weight: bold; }
.pill {
  display: inline-block; border: 1px solid var(--gold-deep); color: var(--gold);
  border-radius: 999px; padding: 0 0.55rem; font-size: 0.8rem; margin-left: 0.4rem;
}
.check { display: block; margin: 0.3rem 0; color: var(--text); font-size: 0.95rem; }
/* The Dec 2, 2026 fill-out: area introductions, summary strips,
   the Getting Started steps, and the what-next strip — all in
   the same charcoal and gold. */
.intro { max-width: 65ch; }
.strip {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.6rem 1rem; margin: 0 0 1rem;
}
.strip p { margin: 0.25rem 0; }
.steps li { margin: 0.45rem 0; }
.steps li.done { color: var(--dim); }
.steps button { padding: 0.15rem 0.6rem; font-size: 0.85rem; margin-left: 0.4rem; }
.nextsteps {
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--border); padding-top: 0.8rem; margin-top: 0.5rem;
}
.switcher { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.switcher button { border: 0; border-radius: 0; background: var(--surface-2); color: var(--dim); font-weight: normal; }
.switcher button.active { background: var(--gold); color: #26262b; font-weight: bold; }
.authbox { max-width: 430px; margin: 3rem auto; }
.pw-wrap { display: flex; gap: 0.5rem; }
.pw-wrap input { flex: 1; min-width: 0; }
.pw-wrap button { white-space: nowrap; }
.money-pos { color: var(--ok); }
.money-neg { color: var(--danger); }
/* The Ask a Question finder (Dec 3, 2026): its results stack
   full-width under the search box, and the lesson a result
   opened carries the gold edge. */
.hits { display: grid; gap: 0.8rem; margin-top: 0.5rem; }
.card.hit { border-color: var(--gold); }
.ridgefront-ai-preview[hidden],.ridgefront-ai-preview [hidden]{display:none!important}
.ridgefront-ai-preview{box-sizing:border-box;min-width:0;max-width:100%;margin:12px 0;padding:12px;border:1px solid #a5b4fc;border-radius:12px;background:#fff;color:#18203a;font:inherit}
.ridgefront-ai-preview button{min-height:44px;max-width:100%;border:1px solid #3730a3;border-radius:8px;padding:8px 14px;margin:4px 8px 4px 0;background:#3730a3;color:#fff;font:inherit;font-weight:700;white-space:normal;cursor:pointer}
.ridgefront-ai-preview button:disabled{background:#e2e8f0;color:#475569;cursor:not-allowed;border-color:#94a3b8}
.ridgefront-ai-preview textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;padding:10px;margin:8px 0;border:1px solid #64748b;border-radius:8px;font:inherit;resize:vertical;background:#fff;color:#18203a}
.ridgefront-ai-preview .raip-status{font-size:.9em;color:#475569}
.ridgefront-ai-preview h2{font-size:1.1em;margin:8px 0}

/* The calendar week, the statement sheet, and link-buttons
   (December 2026 expansion). */
.cal-wrap { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; min-width: 660px; }
.cal-day { border: 1px solid var(--line, #ddd); border-radius: 8px; padding: 6px 8px; }
.cal-day h4 { margin: 2px 0 6px; font-size: 0.85rem; }
.cal-day.today { outline: 2px solid var(--gold-deep); }
.cal-e { margin: 4px 0; font-size: 0.85rem; }
a.btnlink {
  display: inline-block; font: inherit; cursor: pointer; text-decoration: none;
  border: 1px solid var(--gold-deep); background: var(--gold); color: #26262b;
  border-radius: 8px; padding: 4px 10px;
}
@media print {
  body * { visibility: hidden; }
  #statement-sheet, #statement-sheet * { visibility: visible; }
  #statement-sheet { position: absolute; inset: 0; border: none; }
  #statement-sheet button, #statement-sheet form { display: none; }
}
