/* Tacklebox Digital brand v2.0: teal #00B3B8, charcoal #4E4E4E, light grey #F5F5F5.
   Gotham Pro / Proxima Nova when installed, else Helvetica (Light for headings). */
:root {
  --teal: #00B3B8; --teal-dark: #008a8e; --teal-tint: #e0f5f6;
  --charcoal: #4E4E4E; --ink: #2A2A2A; --grey: #F5F5F5; --line: #dedede; --white: #fff;
  --red: #c0392b; --red-tint: #fdecea; --amber: #b9770e; --amber-tint: #fdf3e0; --green: #2e8b57; --green-tint: #e6f4ec;
  --radius: 8px;
  --body: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --head: "Gotham Pro", Gotham, "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-wrap: anywhere; margin: 0; background: var(--grey); color: var(--charcoal); font: 16px/1.6 var(--body); }
h1, h2, h3 { font-family: var(--head); font-weight: 300; color: var(--charcoal); line-height: 1.25; margin: 0 0 .6rem; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; font-weight: 700; font-family: var(--body); }
.section-title { font: 700 .8rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--teal); margin: 1.6rem 0 .6rem; }
a { color: var(--teal-dark); text-decoration: none; } a:hover { text-decoration: underline; }
.muted { color: #7a7a7a; } .small { font-size: .85rem; } .right { margin-left: auto; }

/* header */
.topbar { background: var(--white); border-bottom: 3px solid var(--teal); position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: 1400px; margin: 0 auto; padding: .5rem 1rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.logo img { height: 34px; display: block; }
.nav { display: flex; gap: .25rem; overflow-x: auto; flex: 1; }
.nav a, .nav button { color: var(--charcoal); padding: .5rem .85rem; border-radius: 6px; font-weight: 700; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.nav a:hover, .nav button:hover { background: var(--grey); text-decoration: none; }
.nav a.active { color: var(--teal-dark); box-shadow: inset 0 -3px 0 var(--teal); border-radius: 0; }
main { max-width: 1400px; margin: 0 auto; padding: 1.2rem 1rem 4rem; }
.pagehead { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.pagehead h1 { margin: 0; }
.stale { background: var(--amber-tint); color: var(--amber); border-radius: var(--radius); padding: .5rem .8rem; margin-bottom: 1rem; }

/* buttons & forms */
.btn { display: inline-block; background: var(--teal); color: #fff; border: 0; border-radius: 6px; padding: .6rem 1.1rem; font: 700 .95rem var(--body); cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--teal-dark); text-decoration: none; }
.btn.ghost { background: var(--white); color: var(--charcoal); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--grey); }
.btn.small { min-height: 36px; padding: .35rem .8rem; font-size: .85rem; }
label { display: block; font-weight: 700; font-size: .85rem; margin: .8rem 0 .25rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #c9c9c9; border-radius: 6px; padding: .55rem .7rem; min-height: 44px; }
textarea { min-height: 7rem; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(0,179,184,.45); outline-offset: 1px; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--teal); flex: none; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.formbar { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.status { font-size: .9rem; } .status.ok { color: var(--green); } .status.err { color: var(--red); }

/* cards */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.tile { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 1rem; display: block; color: inherit; }
.tile:hover { text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.tile h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.tile .meta { font-size: .85rem; color: #6d6d6d; margin-top: .4rem; }
.tile.inactive { border-top-color: #bbb; opacity: .75; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .55rem; border-radius: 99px; background: var(--grey); color: var(--charcoal); border: 1px solid var(--line); }
.badge.Positive { background: var(--green-tint); color: var(--green); border-color: transparent; }
.badge.Neutral { background: var(--teal-tint); color: var(--teal-dark); border-color: transparent; }
.badge.Concerned { background: var(--amber-tint); color: var(--amber); border-color: transparent; }
.badge.At-risk { background: var(--red-tint); color: var(--red); border-color: transparent; }
.badge.late { background: var(--red-tint); color: var(--red); border-color: transparent; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: .7rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 12rem; }
.empty { color: #8a8a8a; font-style: italic; padding: .4rem 0; }
.progress { font-size: .8rem; font-weight: 700; color: var(--teal-dark); }
.bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: .4rem; }
.bar > i { display: block; height: 100%; background: var(--teal); }
.checklist label { display: flex; align-items: center; gap: .7rem; font-weight: 400; font-size: 1rem; margin: 0; padding: .5rem 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.checklist label:last-child { border-bottom: 0; }
.checklist input:checked + span { color: #8a8a8a; text-decoration: line-through; }

/* boards */
.board { display: flex; gap: .8rem; align-items: flex-start; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x proximity; }
.col { background: #ebebeb; border-radius: var(--radius); flex: 0 0 260px; min-height: 140px; padding: .6rem; scroll-snap-align: start; }
.col.drag-over { outline: 3px dashed var(--teal); }
.col h3 { font: 700 .75rem var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--charcoal); margin: .1rem .2rem .6rem; display: flex; justify-content: space-between; }
.card { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 6px; padding: .6rem .7rem; margin-bottom: .6rem; font-size: .92rem; }
.card[draggable=true] { cursor: grab; }
.card.dragging { opacity: .4; }
.card a.title { font-weight: 700; color: var(--ink); display: block; }
.card .sub { font-size: .8rem; color: #777; }
.card select { min-height: 36px; font-size: .85rem; margin-top: .5rem; padding: .25rem .4rem; }
.card.late { border-left-color: var(--red); }
.closed-col { flex: 0 0 220px; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin: .3rem 0 1rem; }
.chip { padding: .3rem .8rem; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: .85rem; color: var(--charcoal); }
.chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip:hover { text-decoration: none; background: var(--teal-tint); } .chip.on:hover { background: var(--teal-dark); }

/* tables (archive) */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark); background: #fafafa; }
.tablewrap { overflow-x: auto; }

/* login */
.auth { max-width: 420px; margin: 8vh auto; padding: 0 1rem; }
.auth .panel { padding: 1.6rem; } .auth .logo img { height: 46px; margin-bottom: 1rem; }
.err-box { background: var(--red-tint); color: var(--red); padding: .6rem .8rem; border-radius: 6px; margin: .8rem 0; }
.ok-box { background: var(--green-tint); color: var(--green); padding: .6rem .8rem; border-radius: 6px; margin: .8rem 0; }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 8px; z-index: 50; max-width: 90vw; }
.toast.err { background: var(--red); }
.pre { white-space: pre-wrap; }
.kv { display: grid; grid-template-columns: 11rem 1fr; gap: .3rem 1rem; } .kv dt { font-weight: 700; font-size: .85rem; } .kv dd { margin: 0; }

@media (max-width: 720px) {
  h1 { font-size: 1.5rem; }
  .logo img { height: 28px; }
  .topbar-in { gap: .4rem; }
  .nav { flex-wrap: wrap; overflow: visible; flex-basis: 100%; }
  .nav a, .nav button { padding: .45rem .6rem; }
  .nav .right { margin-left: 0; }
  /* one column at a time on a phone: swipe sideways to see the next step */
  .board { scroll-snap-type: x mandatory; }
  .col, .closed-col { flex: 0 0 100%; min-width: 0; }
  .board::before { content: none; }
  .kv { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  main { padding: .8rem .7rem 4rem; }
}
