/* ST Collab Lite — Surf Trip Supply look: sky blue, cream, sun yellow, strong black type. */

@font-face {
  font-family: "PacificoPro";
  src: url("https://cdn.shopify.com/s/files/1/0315/6226/8812/files/PacificoPro-Regular.woff?v=1776134020") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --sky: #a9d3ed;
  --cream: #faf1e8;
  --sun: #fed228;
  --sun-soft: #fdeb92;
  --orange: #e39724;
  --ink: #111111;
  --ink-2: #3b3b3b;
  --muted: #5d6670;
  --line: rgba(17, 17, 17, 0.12);
  --ok: #17704a;
  --warn: #9a4b00;
  --danger: #a3261b;
  --radius: 14px;
  --gutter: 20px;
  --sans: "Funnel Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --script: "PacificoPro", "Funnel Sans", system-ui, sans-serif;
  --actions-h: 138px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
body.public { background: var(--sky); }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.muted { color: var(--muted); }
.ok { color: var(--ok); font-weight: 600; }
.warn { color: var(--warn); font-weight: 600; }

/* ---------- Top bar + tabs ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 8px) 14px 8px;
  background: var(--sky);
}
.brand img { display: block; height: 36px; width: auto; }
.tabs { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; }
.gear { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  flex: none; border-radius: 999px; color: var(--ink-2); }
.gear[aria-current="page"] { background: var(--ink); color: var(--cream); }
.tabs a {
  padding: 8px 7px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); white-space: nowrap;
}
.tabs a[aria-current="page"] { background: var(--ink); color: var(--cream); }

.page { max-width: 640px; margin: 0 auto; padding: 20px var(--gutter) 48px; }
.page.review { padding-bottom: calc(var(--actions-h) + env(safe-area-inset-bottom) + 64px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); border-color: var(--sun); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-wide { display: flex; width: 100%; }
.btn-big { min-height: 58px; font-size: 17px; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 13px; border-width: 1.5px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
.btnrow form { margin: 0; }

/* ---------- Review ---------- */
.page.review { padding-top: 14px; }
.name {
  font-size: clamp(26px, 7.5vw, 38px); line-height: 1.05; font-weight: 800;
  letter-spacing: -.01em; text-transform: uppercase; overflow-wrap: anywhere;
}
.sub { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.city { margin: 6px 0 0; font-size: 17px; color: var(--ink-2); }

.plats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 14px 0 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.plat { display: flex; flex-direction: column; min-width: 0; }
.plat h2, .block h2 {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.claimed { margin: 4px 0 0; font-size: 28px; font-weight: 800; line-height: 1.1; }
.check { margin: 2px 0 10px; font-size: 13px; min-height: 18px; }
.check .ok, .check .warn { font-weight: 700; }
.plat .btn { margin-top: auto; min-height: 44px; }
.small { font-size: 14px; margin: 6px 0 0; }
.minors { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.minor { display: flex; align-items: center; gap: 8px; }
.note { margin: 12px 0 0; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.more { margin: 12px 0 0; font-size: 15px; }
.hint-line { margin: 6px 0 0; font-size: 13px; color: var(--warn); overflow-wrap: anywhere; }

.actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 4px var(--gutter) calc(env(safe-area-inset-bottom) + 10px);
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.pager {
  display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; height: 46px;
  /* Clear space and a divider so aiming for an arrow never lands on Archive/Approve. */
  margin-bottom: 20px; position: relative;
}
.pager::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px;
  border-bottom: 1px solid var(--line);
}
.arrow {
  display: flex; align-items: center; justify-content: center; height: 46px;
  color: var(--ink); border-radius: 12px; -webkit-tap-highlight-color: transparent;
}
a.arrow:active { background: var(--line); }
.pos { text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pos strong { font-size: 18px; color: var(--ink); }
.act-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.act-row form { margin: 0; }
.act {
  width: 100%; height: 56px; border-radius: 16px; border: 2px solid var(--ink);
  font-size: 17px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.act:active { transform: translateY(1px); }
.act-archive { background: transparent; }
.act-approve { background: var(--sun); border-color: var(--sun); }
.act[disabled] { opacity: .5; }

.undo {
  position: fixed; left: var(--gutter); right: var(--gutter); z-index: 21;
  bottom: calc(var(--actions-h) + env(safe-area-inset-bottom) + 10px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 600px; margin: 0 auto;
  padding: 10px 10px 10px 18px; border-radius: 14px;
  background: var(--ink); color: var(--cream);
  font-size: 15px; transition: opacity .3s;
}
.undo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undo button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px;
  background: var(--sun); color: var(--ink);
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.undo.gone { opacity: 0; pointer-events: none; }

.empty { padding: 64px 0; text-align: center; }
.empty-title { margin: 0 0 6px; font-family: var(--script); font-size: 34px; }

.flash {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 12px;
  background: var(--sun-soft); font-weight: 600; transition: opacity .4s;
}
.flash-error { background: #f9d9d5; color: var(--danger); }
.flash.gone { opacity: 0; }

/* ---------- Lists + search ---------- */
.page-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.page-title .muted { font-weight: 600; font-size: 20px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.filters a {
  padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 14px; text-decoration: none;
}
.filters a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rowlink { display: grid; gap: 2px; padding: 14px 0; text-decoration: none; }
.row-name { font-weight: 800; font-size: 18px; text-transform: uppercase; }
.row-meta { color: var(--ink-2); font-size: 15px; }
.row-status { color: var(--muted); font-size: 13px; }
.empty-line { padding: 24px 0; }
.searchbox { display: flex; gap: 8px; margin: 0 0 16px; }
.searchbox input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: var(--radius); background: #fff;
  font-size: 17px;
}

/* ---------- Record ---------- */
.rec-head { margin-bottom: 18px; }
.rec-status {
  display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--sun-soft); font-size: 13px; font-weight: 700;
}
.contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; font-size: 15px; }
.block { padding: 22px 0; border-top: 1px solid var(--line); }
.block h2 { margin-bottom: 12px; }
.block h3 { margin: 18px 0 6px; font-size: 15px; }
.soc { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.soc-text { display: grid; min-width: 0; }
.soc-name { font-weight: 700; overflow-wrap: anywhere; }
.soc-counts { font-size: 15px; color: var(--ink-2); }
.facts { display: grid; gap: 8px; margin: 0 0 14px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.notes-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.plain { margin: 0; padding-left: 18px; font-size: 15px; }
.raw {
  margin: 10px 0 0; padding: 14px; border-radius: 12px; background: #fff;
  font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.disclose { margin: 14px 0 0; }
.disclose summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.inline-archive { display: flex; gap: 10px; margin-top: 14px; }
.inline-archive select { flex: 1; min-width: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; gap: 1px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.t-when { font-size: 13px; color: var(--muted); }
.t-what { font-weight: 600; }
.t-who { font-size: 13px; }

/* ---------- Forms ---------- */
.stack { display: grid; gap: 10px; margin: 0; }
.stack label { display: grid; gap: 4px; font-size: 15px; font-weight: 600; }
input:not([type="hidden"]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid rgba(17, 17, 17, .28); border-radius: 12px; background: #fff;
  font-size: 17px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .act:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}

/* ---------- Public pages ---------- */
.pub-head { display: flex; justify-content: center; padding: calc(env(safe-area-inset-top) + 24px) var(--gutter) 0; }
.pub-head img { height: 56px; width: auto; }
.pub { max-width: 560px; margin: 0 auto; padding: 24px var(--gutter) 56px; }
.embed .pub { padding-top: 8px; }
.script { font-family: var(--script); font-weight: 400; font-size: clamp(38px, 11vw, 54px); line-height: 1.1; text-align: center; }
.lede { margin: 12px 0 24px; text-align: center; font-size: 18px; color: var(--ink-2); }
.apply { display: grid; gap: 18px; padding: 24px 20px; border-radius: 20px; background: var(--cream); }
.apply fieldset { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; }
.apply legend { margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.req { color: var(--orange); }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.err { margin: 0; font-size: 14px; font-weight: 600; color: var(--danger); }
.has-error input { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { padding: 48px 0; text-align: center; }
.login { padding: 24px 20px; margin-top: 16px; border-radius: 20px; background: var(--cream); }

@media (min-width: 720px) {
  .actions { left: 50%; right: auto; width: 640px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; }
}
.linkbtn {
  margin-left: 6px; padding: 2px 8px; border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
}
.act-item { display: grid; gap: 2px; padding: 12px 0; }
.footer-link { margin-top: 32px; }
.check, .stack label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: 22px; min-height: 22px; }
.days { display: flex; flex-wrap: wrap; gap: 10px 18px; border: 0; padding: 0; margin: 0; }
.days legend { width: 100%; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.section-title { margin: 24px 0 6px; font-size: 20px; font-weight: 800; }
.signout { margin: 6px 0 0; }
@media (max-width: 560px) {
  /* Phones: logo, four tabs and the gear on one row. */
  .topbar { gap: 4px; padding: calc(env(safe-area-inset-top) + 8px) 10px 8px; }
  .brand { flex: none; }
  .brand img { height: 33px; }
  .tabs { flex: 1; min-width: 0; margin-left: 0; justify-content: space-evenly; gap: 0; overflow: visible; }
  .tabs a { padding: 7px 5px; font-size: 10.5px; letter-spacing: 0; }
  .gear { width: 28px; height: 28px; margin-left: 0; }
  .gear svg { width: 18px; height: 18px; }
}
@media (max-width: 370px) {
  /* Smallest phones: the logo keeps its size; the tab text gets a touch smaller. */
  .topbar { padding-left: 8px; padding-right: 6px; gap: 2px; }
  .tabs a { padding: 7px 3px; font-size: 9.5px; }
}
