/* Fab-shop template styles. The generator sets --shop-* from the shop's profile theme;
   shop-page.js sets them again on load. */
:root {
  --shop-primary: #1f4d3a;
  --shop-accent: #9a5b0b;
  --shop-surface: #f4f7f2;
  --shop-ink: #16241d;
  --line: color-mix(in srgb, var(--shop-ink) 14%, transparent);
  --muted: color-mix(in srgb, var(--shop-ink) 68%, white);
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--shop-ink);
  background: var(--shop-surface);
}
a { color: var(--shop-primary); }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.site-header { background: var(--shop-primary); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 2px rgb(255 255 255 / .25); }
.brand-name { display: block; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.brand-sub { display: block; font-size: .82rem; opacity: .85; }
.site-header nav { display: flex; gap: 18px; }
.site-header nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .9; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; }
.demo-banner { margin: 0; padding: 8px 20px; text-align: center; font-size: .88rem; background: color-mix(in srgb, var(--shop-accent) 14%, white); color: var(--shop-ink); border-bottom: 1px solid var(--line); }

.hero { padding: 40px 0 8px; max-width: 760px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em; }
.hero p { margin: 0; color: var(--muted); font-size: 1.05rem; }

h2 { font-size: 1.3rem; margin: 0 0 6px; }
h3 { font-size: 1.05rem; margin: 0 0 10px; }
h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }
.lede { margin: 0 0 16px; color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

.columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.panel, .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
#jobs, #assistant { margin-top: 24px; }
.card + .card { margin-top: 16px; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: .93rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); }
td { text-align: right; font-family: var(--mono); font-size: .88rem; white-space: nowrap; padding-left: 12px; }
th { font-weight: 500; }

fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; margin-bottom: 12px; }
.field-grid .field { margin-bottom: 0; }
.field.wide { margin-top: 12px; }
input, select, textarea {
  font: inherit; font-weight: 400; font-size: 1rem; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--shop-ink) 30%, transparent);
  border-radius: 7px; background: #fff; color: var(--shop-ink); width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--shop-accent) 70%, white); outline-offset: 1px; }
details.more { margin-top: 12px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--shop-primary); margin-bottom: 10px; }
button.primary { font: inherit; font-weight: 700; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--shop-primary); color: #fff; cursor: pointer; }
button.primary:hover { background: color-mix(in srgb, var(--shop-primary) 85%, black); }
.form-message { color: #a3261b; font-weight: 600; margin: 10px 0 0; min-height: 1em; }
.form-message:empty { display: none; }

#quote-result:not(:empty) { margin-top: 20px; padding-top: 18px; border-top: 2px dashed var(--line); }
.quote-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.quote-total { margin: 0; font: 700 2rem/1 var(--mono); color: var(--shop-primary); }
.quote-sub { margin: 0; color: var(--muted); }
.checks { margin: 12px 0 0; padding-left: 20px; font-size: .9rem; }
.checks li::marker { content: "✓  "; color: var(--shop-primary); font-weight: 700; }
#job-form { margin-top: 20px; padding: 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--shop-primary) 6%, white); }

.job-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.job { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.job p { margin: 0; }
.job-ref { font-family: var(--mono); font-weight: 700; color: var(--shop-primary); }
.empty { color: var(--muted); }

.site-footer { margin-top: 48px; background: var(--shop-ink); color: #e9ece9; padding: 32px 0 40px; font-size: .93rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1rem; margin-bottom: 8px; }
.site-footer p { margin: 0 0 4px; }
.site-footer ul { margin: 0; padding-left: 18px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

@media (max-width: 860px) {
  .columns, .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Assistant (from the agentify-website skill's assistant.css) ---- */
.assistant-note { font-size: .88rem; color: var(--muted); }
#assistant-status { font-size: .9rem; font-weight: 600; }
#agent-app {
  --ns-font: system-ui, sans-serif;
  --ns-bg: #ffffff;
  --ns-fg: var(--shop-ink);
  --ns-primary: var(--shop-primary);
  --ns-accent: var(--shop-accent);
  --ns-border: #d5dad6;
  --ns-panelbg: #ffffff;
  --ns-msgbg: var(--shop-surface);
  --ns-muted: #59636e;
}
.assistant-panels { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; margin-top: 16px; }
#agent-app.ns-composed-app [data-ns-slot="chat"] { height: 640px; }
#agent-app .ns-chat { background: var(--ns-bg); }
#agent-app input[type="checkbox"], #agent-app input[type="radio"] { width: auto; }
#agent-app .ns-header { flex-wrap: wrap; }
#agent-app .ns-settings-body label { margin: 4px 0; font-weight: 400; }
#agent-app .ns-w-label { font-family: inherit; }
#agent-app .ns-widget label { margin: 0; }
#agent-app .ns-w-radio label, #agent-app .ns-w-multi label, #agent-app .ns-w-toggle { font-weight: 400; }
#agent-app .ns-w-toggle { font-size: 13px; }
#agent-app button { margin: 0; }
#agent-app .ns-w-choice { color: var(--ns-fg); }
#agent-app .ns-devtoggle:not(.on):hover, #agent-app .ns-modal-close:hover { background: transparent; }
#agent-app .ns-w-choice:disabled:hover { background: #fafbfc; }
#agent-app .ns-consent { background: #fffbeb; }
#agent-app .ns-msgs:has(.ns-consent-actions) > .ns-turn-status { display: none; }
#agent-app .ns-msg { overflow-wrap: break-word; }
#agent-app .ns-consent-actions { flex-wrap: wrap; }
#agent-app .ns-consent-actions button { white-space: nowrap; }
#agent-app input, #agent-app select, #agent-app textarea { width: auto; }
body > dialog h2 { margin: 0 0 12px; font: 700 1.25em system-ui, sans-serif; }
body > dialog button { margin-right: 8px; }
.assistant-review { max-width: 640px; width: 85%; max-height: 85vh; overflow: auto; border: 1px solid #888; border-radius: 12px; padding: 24px; font: 16px system-ui, sans-serif; }
.assistant-review dl { display: grid; grid-template-columns: fit-content(40%) 1fr; gap: 4px 16px; margin: 12px 0; }
.assistant-review dt { font-weight: 600; }
.assistant-review dd { margin: 0; overflow-wrap: anywhere; }
.assistant-review details { margin: 12px 0; }
.assistant-review pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-review button { font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 8px; border: 0; background: var(--shop-primary); color: #fff; cursor: pointer; }
.assistant-review .assistant-decline { background: transparent; color: inherit; border: 1px solid currentColor; }
@media (max-width: 760px) {
  .assistant-panels { grid-template-columns: 1fr; }
  .assistant-review dl { grid-template-columns: 1fr; gap: 0; }
  .assistant-review dd { margin-bottom: 8px; }
}
