@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
/* Saltmade Hub: same tokens, type and parts as saltmade.pages.dev */
:root {
  --cobalt: #0a6f8f;
  --cobalt-deep: #064a63;
  --tint: #a8e6ea;
  --fog: #eef6f5;
  --ink: #06202c;
  --ink-soft: #46616c;
  --sun: #ff8a5b;
  --white: #ffffff;
  --line: rgba(12, 14, 19, .11);
  --line-light: rgba(255, 255, 255, .18);
  --good: #137a52;
  --bad: #c4321c;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: max(16px, clamp(1rem, 4vw, 3rem));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--cobalt) var(--fog); scrollbar-width: thin; }
body { margin: 0; background: var(--fog); color: var(--ink); font: 400 1.0625rem/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--cobalt); color: var(--white); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 84rem; margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

/* Type, as on the site */
.view-head h1, .empty h1 { font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.4rem); font-weight: 640; font-stretch: 125%; line-height: .96; letter-spacing: -.035em; }
.view-head p { max-width: 34rem; font-size: clamp(1.02rem, 1rem + .25vw, 1.15rem); color: var(--ink-soft); }
h2 { font-size: 1.25rem; font-weight: 640; font-stretch: 115%; letter-spacing: -.015em; line-height: 1.15; }
h3 { font-size: 1.0625rem; font-weight: 620; }

/* Buttons, as on the site */
.btn {
  --bg: var(--ink); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.4rem; padding: 0 1.6rem;
  font: inherit; font-weight: 600; font-stretch: 112%; font-size: 1.0625rem; letter-spacing: -.005em;
  color: var(--fg); background: var(--bg); border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--cobalt); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn:disabled { opacity: .65; cursor: progress; }
.btn-light { --bg: var(--white); --fg: var(--ink); }
.btn-light::before { background: var(--ink); }
.btn-light:hover { color: var(--white); }
.btn-ghost, .btn-small {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.1rem;
  font: inherit; font-size: .9375rem; font-weight: 550; color: var(--ink); background: transparent; text-decoration: none;
  border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(6, 32, 44, .22); cursor: pointer; transition: background .3s, color .3s, box-shadow .3s;
}
.btn-ghost:hover, .btn-small:hover { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-small { min-height: 2.4rem; padding: 0 .95rem; font-size: .875rem; }
.btn-small.danger { color: var(--bad); box-shadow: inset 0 0 0 1px rgba(196, 50, 28, .35); }
.btn-small.danger:hover { background: var(--bad); color: var(--white); }
.link-btn { font: inherit; background: none; border: 0; padding: .4rem 0; cursor: pointer; color: var(--ink); font-weight: 550; text-decoration: underline; text-underline-offset: .3em; transition: text-underline-offset .3s var(--ease); }
.link-btn:hover { text-underline-offset: .45em; }
.range, .filters { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.range button[aria-pressed="true"], .filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }

/* Fields */
label { display: block; font-weight: 560; font-size: .9375rem; margin-bottom: .4rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid rgba(6, 32, 44, .2); border-radius: 14px; padding: .8rem .95rem; min-height: 3.25rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8aa0a7; }
input:hover, select:hover, textarea:hover { border-color: rgba(6, 32, 44, .4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(10, 111, 143, .16); }
input, textarea { caret-color: var(--cobalt); }
.field-error { color: var(--bad); font-size: .9rem; }

/* ---------- Login: the site's hero ---------- */
.login { position: relative; min-height: 100vh; min-height: 100svh; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.login-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.login::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 32, 44, .55) 0%, rgba(6, 32, 44, .15) 30%, rgba(6, 32, 44, .55) 62%, rgba(6, 32, 44, .92) 100%); }
.login-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 650; font-stretch: 118%; letter-spacing: -.015em; font-size: 1.05rem; white-space: nowrap; color: inherit; }
.logo-mark { width: 2rem; height: 2rem; border-radius: 25%; box-shadow: 0 0 0 1px rgba(168, 230, 234, .25); transition: transform .5s var(--ease); flex: none; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo small { font-size: .8rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--cobalt); background: rgba(10, 111, 143, .1); padding: .1rem .5rem; border-radius: 999px; }
.login .logo small { color: var(--tint); background: rgba(168, 230, 234, .14); }
.login-head a.back { color: rgba(255, 255, 255, .88); font-size: .9688rem; font-weight: 500; text-decoration: none; }
.login-head a.back:hover { text-decoration: underline; }
.login-body { margin-top: auto; padding-top: 3rem; padding-bottom: clamp(2rem, 7vh, 4.5rem); display: grid; gap: clamp(1.25rem, 3vh, 2rem); }
.login-body h1 { font-size: clamp(2.9rem, 1.4rem + 6vw, 7.2rem); font-weight: 640; font-stretch: 125%; line-height: .92; letter-spacing: -.045em; max-width: 13ch; }
.login-body .lead { max-width: 30rem; font-size: clamp(1.06rem, 1rem + .3vw, 1.25rem); color: rgba(255, 255, 255, .85); }
.login-form { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 40rem; align-items: stretch; }
.login-form .fld { flex: 1 1 16rem; min-width: 0; }
.login-form input { min-height: 3.4rem; border-radius: 999px; padding: 0 1.4rem; background: rgba(255, 255, 255, .96); border-color: transparent; }
.login-form .btn { flex: 0 0 auto; }
.login .field-error { color: #ffc2b6; margin-top: .4rem; }
.login-note { font-size: .875rem; color: rgba(255, 255, 255, .7); }
.login .link-btn { color: var(--white); }
.login-credit { position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: .75rem; margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 560px) { .login-form .btn { width: 100%; } .login-credit { position: static; padding: 0 var(--gutter) .75rem; text-align: right; } }

/* ---------- App header: the site's solid header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--white); }
.top-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; flex-wrap: wrap; padding-block: .5rem; }
.tabs { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.tabs a { position: relative; text-decoration: none; font-size: .9688rem; font-weight: 500; padding-block: .55rem; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--ink-soft); transition: color .3s; }
.tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.tabs a:hover { color: var(--ink); }
.tabs a:hover::after { transform: scaleX(1); transform-origin: left; }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { transform: scaleX(1); }
.badge { background: var(--sun); color: var(--ink); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; line-height: 1.4; }
.top-right { margin-left: auto; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.top-right .text-link { font-size: .9375rem; font-weight: 550; text-underline-offset: .3em; }
.site-pick { margin: 0; min-width: 0; }
.site-pick select { min-height: 2.6rem; padding: .3rem 2rem .3rem .9rem; border-radius: 999px; font-size: .9375rem; width: auto; max-width: 16rem; }
@media (max-width: 900px) { .tabs { order: 3; width: 100%; gap: 1.1rem; } .top-inner { gap: .75rem 1rem; } }

/* ---------- Pages ---------- */
.main { padding-top: clamp(2rem, 6vw, 4.5rem); padding-bottom: 4rem; }
.view { display: grid; gap: 1.5rem; }
.view:not([hidden]) > * { animation: rise .7s var(--ease) both; }
.view:not([hidden]) > *:nth-child(2) { animation-delay: .06s; }
.view:not([hidden]) > *:nth-child(3) { animation-delay: .12s; }
.view:not([hidden]) > *:nth-child(n+4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.view-head { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap; padding-bottom: clamp(.5rem, 2vw, 1.5rem); }
.view-head > div:first-child { display: grid; gap: .9rem; min-width: 0; }

/* Numbers: the dark panel from the pricing section */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--ink); color: var(--white); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2.25rem) 0; box-shadow: 0 30px 60px -30px rgba(6, 32, 44, .45); }
.stat { padding: .25rem clamp(1.1rem, 2.5vw, 2rem); display: grid; gap: .35rem; align-content: start; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line-light); }
.stat .num { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4.4rem); font-weight: 640; font-stretch: 125%; letter-spacing: -.04em; line-height: .95; font-variant-numeric: tabular-nums; }
.stat .lbl { color: rgba(255, 255, 255, .72); font-size: .9375rem; }
.stat .chg { font-size: .8125rem; font-weight: 560; color: rgba(255, 255, 255, .6); }
.stat .chg.up { color: var(--tint); }
.stat .chg.down { color: #ffb4a8; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; padding: .5rem 0; } .stat { padding: 1.1rem 1.25rem; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line-light); } }

.card { background: var(--white); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; }
.card > h2 { margin-bottom: 1.1rem; }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.bars { display: grid; gap: .8rem; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; font-size: .9688rem; }
.bar-row .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .n { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.bar-row .track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--fog); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; background: var(--cobalt); border-radius: 999px; transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
a.bar-row:hover .label { text-decoration: underline; text-underline-offset: .25em; }
.chart { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .8125rem; color: var(--ink-soft); margin-top: .6rem; }
.chart-legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.empty { text-align: left; padding: 1rem 0 3rem; display: grid; gap: 1rem; max-width: 40rem; }
.card.empty { padding: clamp(1.5rem, 4vw, 2.5rem); }
.loading { color: var(--ink-soft); padding: 2rem 0; }

/* Enquiries: one list, hairlines between */
.enq-list { background: var(--white); border-radius: 28px; padding: .5rem clamp(.5rem, 2vw, 1rem); display: grid; }
.enq + .enq { border-top: 1px solid var(--line); }
.enq summary { list-style: none; cursor: pointer; padding: 1.1rem .75rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: center; border-radius: 16px; transition: background .2s; }
.enq summary:hover { background: var(--fog); }
.enq summary::-webkit-details-marker { display: none; }
.enq-who { font-weight: 620; font-stretch: 110%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enq-meta { color: var(--ink-soft); font-size: .875rem; grid-column: 1; }
.pill { font-size: .8125rem; font-weight: 600; border-radius: 999px; padding: .2rem .7rem; grid-row: 1 / span 2; grid-column: 2; white-space: nowrap; }
.pill.new { background: var(--sun); color: var(--ink); }
.pill.contacted { background: rgba(10, 111, 143, .12); color: var(--cobalt-deep); }
.pill.quoted { background: var(--tint); color: var(--ink); }
.pill.won { background: var(--ink); color: var(--white); }
.pill.lost { background: var(--fog); color: var(--ink-soft); }
.enq-body { padding: .25rem .75rem 1.4rem; display: grid; gap: 1.1rem; }
.enq-contact { display: flex; gap: .5rem; flex-wrap: wrap; }
.answers { display: grid; grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); gap: .5rem 1.5rem; font-size: .9688rem; margin: 0; padding: 1rem 1.1rem; background: var(--fog); border-radius: 16px; }
.answers dt { color: var(--ink-soft); }
.answers dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.enq-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.enq-actions label { margin: 0; color: var(--ink-soft); }
.enq-actions select { width: auto; min-width: 11rem; min-height: 2.6rem; padding: .3rem .9rem; border-radius: 999px; }
@media (max-width: 560px) { .answers { grid-template-columns: 1fr; gap: .1rem; } .answers dd { margin-bottom: .55rem; } }

/* Editor */
.edit-group { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .1rem; }
.field .hint { color: var(--ink-soft); font-size: .8125rem; margin-top: .3rem; }
.field .link-btn { justify-self: start; font-size: .9rem; }
.rows { display: grid; gap: .6rem; }
.hours-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .5rem; align-items: center; }
@media (max-width: 560px) { .hours-row { grid-template-columns: 1fr auto; } .hours-row input:nth-child(2) { grid-column: 1; } .hours-row .btn-small { grid-row: 1 / span 2; grid-column: 2; } }
.notice-edit { border-radius: 20px; padding: 1.1rem; display: grid; gap: .85rem; background: var(--fog); }
.notice-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .75rem; }
.notice-tools { display: flex; gap: .4rem; flex-wrap: wrap; }
/* Save bar: the dark pill from the site's intro */
.save-bar {
  position: sticky; bottom: max(14px, env(safe-area-inset-bottom, 0px)); z-index: 5; margin-top: .5rem;
  background: var(--ink); color: var(--white); border-radius: 999px; padding: .5rem .5rem .5rem 1.4rem;
  display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; box-shadow: 0 24px 50px -20px rgba(6, 32, 44, .6);
}
.save-bar .status { font-size: .9375rem; flex: 1 1 12rem; min-width: 0; color: rgba(255, 255, 255, .8); }
.save-bar .status.dirty { color: var(--white); font-weight: 560; }
.save-bar .status.dirty::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sun); margin-right: .55rem; vertical-align: 1px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.save-bar .btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1px var(--line-light); }
.save-bar .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.save-bar .btn { --bg: var(--white); --fg: var(--ink); min-height: 2.9rem; }
.save-bar .btn::before { background: var(--tint); }
@media (max-width: 560px) { .save-bar { border-radius: 24px; padding: .9rem; } .save-bar .btn, .save-bar .btn-ghost { flex: 1 1 auto; } }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9688rem; }
th, td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-soft); font-weight: 560; font-size: .8125rem; }
.form-row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); align-items: end; }

/* Footer: the site's footer */
.hub-foot { background: var(--ink); color: var(--white); overflow: hidden; padding-top: clamp(3rem, 7vw, 5rem); margin-top: 2rem; }
.hub-wordmark {
  margin: 0; font-size: 12.4vw; font-weight: 700; font-stretch: 125%; letter-spacing: -.055em; line-height: .98; padding-bottom: .04em;
  white-space: nowrap; text-align: center; user-select: none; color: transparent; -webkit-text-stroke: 1.5px rgba(168, 230, 234, .45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'%3E%3Cpath d='M0 92 C50 72 100 72 150 92 S250 112 300 92 S350 72 400 92 V200 H0Z' fill='%2313a3b5'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'%3E%3Cpath d='M0 104 C50 120 100 120 150 104 S250 88 300 104 S350 120 400 104 V200 H0Z' fill='%230a6f8f'/%3E%3C/svg%3E");
  background-size: 50% 100%, 37% 100%; background-repeat: repeat-x; -webkit-background-clip: text; background-clip: text; animation: tide 12s linear infinite;
}
@keyframes tide { from { background-position: 0 6%, 0 0; } 50% { background-position: 50% -4%, -60% 6%; } to { background-position: 100% 6%, -120% 0; } }
.hub-foot-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .875rem; color: rgba(255, 255, 255, .6); padding-top: 1.25rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-light); }
.hub-foot-row a { color: rgba(255, 255, 255, .85); }

.toast {
  position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: var(--white); padding: .9rem 1.35rem; border-radius: 999px; max-width: calc(100% - 32px);
  font-weight: 550; box-shadow: 0 20px 50px -15px rgba(6, 32, 44, .5); animation: rise .4s var(--ease) both;
}
.toast.bad { background: var(--bad); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Saltmade mark + wordmark */
.logo-mark{border-radius:0;box-shadow:none}
.logo span{font-weight:800;font-stretch:125%;letter-spacing:-.045em;text-transform:lowercase}
.lm-dark{display:none}
.login .lm-dark{display:block}
.login .lm-light{display:none}
