/* Company board builder (/teams/builder, T9). House look from the tool pages: Fraunces, Instrument Sans,
   JetBrains Mono on warm paper. Everything the page needs is in this file. */
@font-face { font-family: Fraunces; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/fraunces.woff2) format('woff2'); }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 500; font-display: swap; src: url(/assets/fonts/fraunces-italic.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/instrument-sans.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-500.woff2) format('woff2'); }

:root { --paper:#fbf3e8; --card:#fffdf9; --ink:#1c1917; --ink-2:#44403c; --muted:#6b645e; --line:rgb(28 25 23 / .1); --line-2:rgb(28 25 23 / .18); --peach:#e4732f; --peach-deep:#b64e19; --peach-soft:#f9d0ad; --btn:#b64e19; --btn-hover:#9c4214; --ok:#2f7d4f; --bad:#b42318; --bad-soft:#fdecea; }
* { box-sizing: border-box; }
body { margin:0; background: radial-gradient(1000px 560px at 10% -10%, #fff8ef 0%, transparent 60%), var(--paper); color:var(--ink); font-family:'Instrument Sans', system-ui, sans-serif; font-size:18px; line-height:1.7; -webkit-font-smoothing:antialiased; }
a { color: var(--peach-deep); text-underline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
nav.top { display:flex; align-items:center; justify-content:space-between; padding:20px 0; gap: 16px; }
.logo { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); font-family:Fraunces, serif; font-weight:600; font-size:22px; }
.logo img { width:28px; height:28px; }
.links { display:flex; align-items:center; gap:20px; font-size:15px; }
.links a { color:var(--ink-2); text-decoration:none; }
.links a:hover { color: var(--ink); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--btn); color:#fff !important; text-decoration:none; font-weight:600; padding:12px 20px; border-radius:12px; font-size:16px; line-height:1.3; box-shadow: 0 10px 24px -12px rgb(156 66 20 / .9); border:0; cursor:pointer; font-family:inherit; }
.btn:hover { background: var(--btn-hover); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: var(--card); color: var(--ink) !important; border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: #fff; border-color: rgb(28 25 23 / .35); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
article { max-width: 980px; margin: 0 auto; padding: 18px 0 40px; }
.crumbs { font-family:'JetBrains Mono', monospace; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
h1 { font-family:Fraunces, serif; font-weight:600; font-size: clamp(34px, 5vw, 52px); line-height:1.07; letter-spacing:-.02em; margin: 14px 0 0; }
h2 { font-family:Fraunces, serif; font-weight:600; font-size: clamp(25px, 3vw, 31px); line-height:1.15; letter-spacing:-.01em; margin: 46px 0 0; }
h3 { font-size: 19px; margin: 28px 0 0; }
p, ul, ol { margin: 14px 0 0; }
li { margin: 6px 0; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 760px; }
code { font-family:'JetBrains Mono', monospace; font-size: 14px; background: rgb(255 255 255 / .7); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-word; }
.note { margin-top: 22px; padding: 14px 18px; background: #fff7ee; border: 1px solid #f1d6bb; border-radius: 14px; font-size: 16px; }
.note strong:first-child { color: var(--peach-deep); }
.gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; padding: 0; list-style: none; }
.gets li { margin: 0; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 16px; line-height: 1.5; }
.gets b { display: block; font-size: 17px; margin-bottom: 4px; }
.faq h3 { margin-top: 24px; }
.sources { margin-top: 36px; font-size: 14px; color: var(--muted); }
.sources h2 { font-size: 15px; font-family: 'Instrument Sans', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.sources ul { padding-left: 18px; margin-top: 8px; }
.sources a { color: var(--muted); word-break: break-word; }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 46px; color: var(--muted); font-size: 14px; }
footer .cols { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
footer .fh { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 8px; }
footer ul { list-style:none; padding:0; margin:0; }
footer li { margin: 5px 0; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- the tool ---------- */
.tool { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 30px 70px -48px rgb(130 56 28 / .6); }
.private { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); background: #eef7f1; border: 1px solid #cfe7d8; padding: 3px 10px; border-radius: 999px; }
.step { display: flex; align-items: center; gap: 10px; font-family: Fraunces, serif; font-weight: 600; font-size: 21px; line-height: 1.2; margin: 30px 0 0; }
.step:first-of-type { margin-top: 16px; }
.step .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--peach-deep); color: #fff; font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 15px; font-weight: 600; flex: none; }
.hint { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; }
.drop { display: grid; place-items: center; text-align: center; gap: 6px; padding: 22px 18px; margin-top: 14px; border: 2px dashed rgb(182 78 25 / .35); border-radius: 16px; background: #fffaf3; cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over, .drop:focus-visible { background: #fff1e2; border-color: var(--peach); outline: none; }
.drop b { font-size: 17px; }
.drop small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.drop input { display: none; }
.status { margin-top: 12px; font-size: 15px; color: var(--ink-2); min-height: 1.5em; }
.status.err { color: var(--bad); }
.status.ok { color: var(--ok); }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tool input[type=text], .tool input[type=url] { font: inherit; font-size: 15px; line-height: 1.4; width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); }
.tool input:focus { outline: 2px solid var(--peach); outline-offset: 1px; }
.tool input.bad { border-color: var(--bad); background: var(--bad-soft); }
.tool label.opt { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.tool label.opt input { margin-top: 4px; flex: none; }
.company { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-top: 14px; }

.spaces { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.space { border: 1px solid var(--line-2); border-radius: 16px; background: #fffaf3; padding: 14px; min-width: 0; }
.space-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.space-head input[data-f=emoji] { text-align: center; font-size: 18px; padding: 6px 4px; }
.stacks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.stack { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 10px; min-width: 0; }
.stack-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.stack-head input { font-weight: 600; }
.links-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.links-list li { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: start; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.links-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.link-fields { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.link-fields input[data-f=url] { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.err-line { font-size: 12.5px; color: var(--bad); line-height: 1.35; }
.tools { display: inline-flex; gap: 2px; flex: none; }
.ico { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); font: 600 15px/1 'Instrument Sans', system-ui, sans-serif; cursor: pointer; }
.ico:hover { background: #fff; border-color: var(--line-2); color: var(--ink); }
.ico:focus-visible { outline: 2px solid var(--peach); outline-offset: 1px; }
.ico[disabled] { opacity: .3; cursor: default; background: none; border-color: transparent; }
.ico.rm:hover { color: var(--bad); }
.add { margin-top: 8px; border: 1px dashed var(--line-2); background: none; color: var(--ink-2); font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 10px; cursor: pointer; }
.add:hover { border-color: var(--peach); color: var(--peach-deep); background: #fff; }
.add.big { font-size: 15px; padding: 10px 16px; margin-top: 14px; }
.empty { font-size: 15px; color: var(--muted); padding: 16px; border: 1px dashed var(--line-2); border-radius: 14px; text-align: center; }

.ann { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; margin-top: 14px; }

/* preview: a small board the way people will see it */
.preview { margin-top: 14px; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: #fbf3e8; font-size: 13px; line-height: 1.35; }
.pv-ann { display: flex; align-items: center; gap: 10px; padding: 7px 12px; background: var(--ink); color: #f7efe6; }
.pv-ann a { color: var(--peach-soft); }
.pv-ann .x { margin-left: auto; opacity: .6; }
.pv-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 170px; }
.pv-side { background: #f3e6d6; border-right: 1px solid var(--line); padding: 10px 8px; min-width: 0; }
.pv-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 4px 4px; }
.pv-space { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.pv-space.on { background: #fff; color: var(--ink); font-weight: 600; }
.pv-space .lock { margin-left: auto; font-size: 10px; opacity: .55; }
.pv-mine { margin-top: 10px; }
.pv-main { padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; align-content: start; min-width: 0; }
.pv-stack { background: #fffdf9; border: 1px solid var(--line); border-radius: 10px; padding: 7px; min-width: 0; }
.pv-stack b { display: block; font-size: 12px; margin: 0 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-link { display: block; padding: 4px 6px; border-radius: 6px; background: #fff; border: 1px solid rgb(28 25 23 / .06); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-more { color: var(--muted); font-size: 11.5px; margin: 4px 4px 0; }
.pv-none { color: var(--muted); padding: 6px; }

/* outputs */
.counts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.count { padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 96px; }
.count b { display: block; font-family: Fraunces, serif; font-size: 24px; line-height: 1.1; }
.count span { font-size: 13px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tab { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer; }
.tab[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
.panel { margin-top: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.panel h3 { margin: 0; font-size: 18px; }
.panel ol { padding-left: 22px; margin-top: 10px; font-size: 16px; line-height: 1.55; }
.panel ol li { margin: 6px 0; }
.panel .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.panel pre { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.5; background: #fbf7f1; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 12px 0 0; max-height: 340px; overflow: auto; white-space: pre; }
.panel .file { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--muted); }
.panel .fine { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

@media (max-width: 860px) {
  .gets { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .links a.hide-sm { display: none; }
  footer .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tool { padding: 16px; border-radius: 16px; }
  .space { padding: 10px; }
  .space-head { grid-template-columns: 52px minmax(0, 1fr); }
  .space-head .tools { grid-column: 1 / -1; justify-content: flex-end; }
  .stacks { grid-template-columns: minmax(0, 1fr); }
  .ann { grid-template-columns: minmax(0, 1fr); }
  .pv-body { grid-template-columns: 112px minmax(0, 1fr); }
  .pv-main { grid-template-columns: minmax(0, 1fr); }
}

/* Teams pack 2: start here, go links, brand and locks */
.tool label.opt.start-here { margin-top: 8px; font-size: 14px; }
.go-list { margin-top: 10px; }
.go-fields { display: grid; grid-template-columns: auto minmax(0, 0.8fr) minmax(0, 1.4fr); align-items: center; gap: 6px; }
.go-fields .err-line { grid-column: 1 / -1; }
.go-prefix { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); }
.go-fields input[data-g=url] { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.colour { display: flex; align-items: center; gap: 8px; }
.colour input[type=color] { width: 40px; height: 38px; flex: none; padding: 2px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.colour input[type=text] { font-family: 'JetBrains Mono', monospace; }
.row.locks { flex-direction: column; align-items: flex-start; gap: 6px; }
.pv-brand { margin: 0 4px 6px; font-weight: 700; font-size: 13px; color: var(--pv-accent, var(--ink)); }
.pv-start { margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 9.5px; font-weight: 700; line-height: 16px; background: var(--peach-soft); color: var(--peach-deep); }
.preview[style*="--pv-accent: #"] .pv-start { background: var(--pv-accent); color: #fff; }
@media (max-width: 720px) {
  .go-fields { grid-template-columns: auto minmax(0, 1fr); }
  .go-fields input[data-g=url] { grid-column: 1 / -1; }
}
