/* HACOY Partners. Black ink on pure white, the faces of the new website: the logo is the
   Modern Space wordmark file, Domine speaks, Quicksand carries structure. Colours and faces come from tokens.json (block partners.root);
   change them there, never inside a marker block. Like the website it stays white on a device
   in dark mode too. No accent colour, no italics, no uppercase labels. */

/* tokens:partners.root · edit tokens.json, not here */
:root{
  color-scheme:light;
  --paper:#FFFFFF;
  --surface:#FFFFFF;
  --soft:#F5F5F4;
  --hover:#EFEFEE;
  --ink:#111111;
  --muted:#757575;
  --line:#E7E7E7;
  --btn:#000000;
  --btn-text:#FFFFFF;
  --radius:18px;
  --r-md:12px;
  --serif:"Domine",Georgia,"Times New Roman",serif;
  --sans:"Quicksand",-apple-system,"Helvetica Neue",Arial,sans-serif;
  --display-weight:400;
  --logo-filter:none;
}
/* /tokens:partners.root */


/* Quicksand, the HACOY text face since 21.10.2026, self hosted from the website's own files (29.10.2026), so no page
   asks Google for a font; SIL OFL 1.1 */
@font-face{font-family:'Quicksand';font-style:normal;font-weight:300 700;font-display:swap;src:url(fonts/quicksand-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Quicksand';font-style:normal;font-weight:300 700;font-display:swap;src:url(fonts/quicksand-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Domine, the HACOY headline face since 11.10.2026, self hosted as on the website, SIL OFL 1.1 */
@font-face{font-family:'Domine';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/domine-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Domine';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/domine-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 .9rem; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: var(--display-weight, 400); line-height: 1.06; letter-spacing: -.02em; }
em { font-style: italic; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; padding: .5rem 1rem; background: var(--ink); color: var(--paper); z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }
.icon { vertical-align: middle; flex: none; }
img { display: block; max-width: 100%; }

/* ------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 2rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: .25rem;
  background: var(--paper);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: .6rem; padding: .25rem .5rem; min-height: 28px; }
.brand .logo { height: 17px; width: auto; filter: var(--logo-filter); align-self: center; }
.brand-sub { font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.brand-text { font-family: var(--serif); font-size: 1.4rem; line-height: 1; }
.sidebar-rule { height: 1px; background: var(--line); margin: 1.4rem 0 1.4rem; }

.user-chip {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem .6rem; border-radius: var(--r-md);
  margin-bottom: 1.4rem;
}
.user-chip:hover { background: var(--hover); }
.user-name { font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.chev { color: var(--muted); display: inline-flex; }

.avatar {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--soft); color: var(--ink); font-weight: 600; font-size: .8rem; letter-spacing: .02em;
  box-shadow: 0 0 0 1px var(--line); flex: none;
}
.avatar.lg { width: 64px; height: 64px; font-size: 1.05rem; }
.ring-purple { background: var(--ink); color: var(--paper); box-shadow: none; }
.ring-pink { background: var(--soft); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.ring-yellow { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.nav-label { font-size: .82rem; color: var(--muted); margin: 1rem .6rem .35rem; font-weight: 400; }
.nav { display: flex; flex-direction: column; gap: .1rem; }
.nav a, .nav-form button {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem .6rem; border-radius: var(--r-md);
  color: var(--ink); font: inherit; font-weight: 400; font-size: .95rem;
  background: none; border: 0; width: 100%; text-align: left; cursor: pointer; opacity: .82;
}
.nav a .icon, .nav-form button .icon { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--ink); }
.nav a:hover, .nav-form button:hover { background: var(--hover); opacity: 1; }
.nav a.active { font-weight: 600; opacity: 1; background: var(--hover); }
.sidebar-foot { margin-top: auto; padding: 1.5rem .5rem 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.sidebar-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sidebar-foot a:hover { color: var(--ink); }

.main { padding: 2.75rem 3rem 4rem; min-width: 0; max-width: 1480px; }

/* ------------------------------------------------------------ topbar */
.topbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.hero { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: var(--display-weight, 400); letter-spacing: -.02em; line-height: 1.03; max-width: 18ch; }
/* Domine has no italic: a word the template marks stays upright, as on the website */
.hero em, h1 em, h2 em, h3 em { font-style: normal; font-weight: inherit; }
.topbar-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding-bottom: .4rem; }

.pill, button.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.3rem; border-radius: 999px;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap;
  transition: border-color .2s, opacity .2s, transform .2s;
}
.pill:hover { border-color: var(--ink); }
.pill.icon-only { padding: .75rem; }
.pill.dark, .pill.accent { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.pill.dark:hover, .pill.accent:hover { opacity: .88; transform: translateY(-1px); }
.pill.sm { padding: .5rem .95rem; font-size: .85rem; }
.pill.ghost { border-color: transparent; }
.pill.ghost:hover { border-color: var(--line); }
.pill.danger:hover { border-color: var(--ink); }
.pill.disabled { opacity: .45; pointer-events: none; }

/* ------------------------------------------------------------ grid and cards */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.row > * { flex: 1 1 14rem; }

/* Stat cards: white, one line around, the one emphasis is black. */
.stat {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 1.4rem 1.6rem; min-height: 170px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
}
.stat.purple, .stat.pink, .stat.yellow { background: var(--surface); }
.stat.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
a.stat:hover { border-color: var(--ink); }
.stat-label { font-size: .85rem; color: var(--muted); display: block; }
.stat.dark .stat-label { color: var(--paper); opacity: .72; }
.stat-value { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; }
.stat-value a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.stat-sub { font-size: .88rem; color: var(--muted); margin-top: .45rem; }
.stat.dark .stat-sub { color: var(--paper); opacity: .72; }
.stat-topright { position: absolute; right: 1.3rem; top: 1.3rem; font-size: .78rem; color: var(--muted); }

.tile {
  position: relative; border-radius: var(--radius); padding: 1.4rem 1.5rem; min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.tile.purple, .tile.pink, .tile.yellow, .tile.soft { background: var(--surface); }
.tile.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tile-icon { position: absolute; top: 1.2rem; right: 1.2rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.tile.dark .tile-icon { background: var(--ink); color: var(--paper); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.tile-label { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.tile-sub { font-size: .88rem; color: var(--muted); }
.tile.dark .tile-sub { color: var(--paper); opacity: .72; }
.tile-value { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; letter-spacing: -.02em; margin: .2rem 0; }
.tile.link { transition: border-color .2s; }
.tile.link:hover { border-color: var(--ink); }

/* ------------------------------------------------------------ panels */
.panel { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.panel-head { display: flex; align-items: center; gap: .9rem; padding: 1.25rem 1.5rem .5rem; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.5rem; font-weight: 400; flex: 1; min-width: 10rem; overflow-wrap: anywhere; hyphens: auto; }
.panel-head .meta { flex: none; }
.panel-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--soft); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.panel-icon.purple, .panel-icon.pink, .panel-icon.yellow { background: var(--soft); color: var(--ink); }
.panel-tools { display: flex; gap: .5rem; align-items: center; margin-left: auto; }
.panel-body { padding: .5rem 1.5rem 1.5rem; }
.panel.collapsed .panel-body { display: none; }
.panel-toggle { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.panel-toggle:hover { border-color: var(--ink); }

.prose p { max-width: 62ch; color: var(--ink); font-size: 17px; line-height: 1.6; }   /* the website's body text */
.prose .lead { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; font-weight: 400; }
.meta, .hint, .quiet { color: var(--muted); font-size: .88rem; }
.hint { margin: -.2rem 0 .6rem; }
.notice { display: flex; gap: .8rem; align-items: center; padding: .9rem 1.1rem; border-radius: var(--r-md); background: var(--soft); color: var(--ink); font-weight: 500; font-size: .92rem; border: 1px solid var(--line); }
.notice.warn, .notice.pink { background: var(--soft); color: var(--ink); }
.verified { color: var(--ink); font-weight: 600; font-size: .82rem; }
.verified::before { content: "✓ "; }

/* chips and states: filled is done or open, soft is pending, outlined is closed */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.chip::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.chip.open, .chip.approved, .chip.accepted, .chip.done, .chip.sent { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.selective, .chip.pending, .chip.in_progress, .chip.active, .chip.draft, .chip.waitlisted { background: var(--soft); color: var(--ink); }
.chip.closed, .chip.declined, .chip.rejected, .chip.completed, .chip.upcoming, .chip.suppressed { background: transparent; color: var(--muted); }

/* ------------------------------------------------------------ lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 12rem; }
.list .title { font-weight: 500; }
.list form.inline { display: inline; }

.people { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: .5rem 0 .25rem; }
.person { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 96px; text-align: center; }
.person .avatar { width: 64px; height: 64px; font-size: .95rem; }
.person span.name { font-size: .8rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.person.add .avatar { background: transparent; color: var(--muted); box-shadow: 0 0 0 1px var(--line); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.4rem; border: 1px solid var(--line); display: flex; flex-direction: column; gap: .6rem; transition: border-color .2s; }
.card:hover { border-color: var(--ink); }
.card-top { display: flex; align-items: center; gap: .9rem; }
.card h2, .card h3 { font-size: 1.35rem; font-weight: 400; }
.card p { margin: 0; }
.card .card-foot { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: auto; padding-top: .5rem; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.5rem; margin: 0; }
.dl dt { color: var(--muted); font-size: .88rem; }
.dl dd { margin: 0; }
.dl.stacked { grid-template-columns: 1fr; gap: .2rem; }
.dl.stacked dt { margin-top: 1rem; font-weight: 600; color: var(--ink); }
.dl.stacked dd { white-space: pre-line; }

.amounts { display: flex; flex-wrap: wrap; gap: .8rem; }
.amount { padding: 1rem 1.4rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; }

/* ------------------------------------------------------------ forms */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form h2 { font-size: 1.4rem; font-weight: 400; margin-top: 1rem; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .45rem; }
.field legend { padding: 0; }
.field label.choice { font-weight: 400; display: flex; gap: .6rem; align-items: center; padding: .6rem .9rem; border-radius: var(--r-md); border: 1px solid var(--line); margin: 0 0 .45rem; cursor: pointer; background: var(--surface); }
.field label.choice:hover { border-color: var(--ink); }
.field label.choice:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .45rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], input[type="date"], input[type="month"], input[type="file"], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: .75rem 1rem;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; }
input:disabled { color: var(--muted); background: var(--soft); }
textarea { resize: vertical; min-height: 6rem; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--ink); width: 1.05rem; height: 1.05rem; margin: 0; }
.field-error, .form-error { color: var(--ink); font-size: .88rem; margin: .4rem 0 0; font-weight: 600; }
.form-error { padding: .8rem 1rem; border-radius: var(--r-md); border: 1px solid var(--ink); margin: 0; }
[aria-invalid="true"] { border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-show-for] { display: none; }
[data-show-for].visible { display: block; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .5rem; }
.inline-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.inline-row input[type="text"] { flex: 1 1 14rem; width: auto; }
.inline-row select { width: auto; }
/* Order sheet and starter set: a row of small labelled number fields. */
.qty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .75rem; align-items: end; }
.qty-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); }
.qty-grid input { width: 100%; flex: none; }
.pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.pick-row .grow { flex: 1 1 14rem; }
.pick-row label { display: flex; flex-direction: column; gap: .2rem; align-items: center; font-size: .82rem; color: var(--muted); }
.pick-row input { width: 4.75rem; flex: none; }
.visually-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Photos: samples and evidence on an order line, the store photo. Previews link to the full photo. */
.photo-block { margin-top: 1rem; }
.photo-head { font-weight: 600; margin: 1rem 0 .5rem; }
.photos { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .75rem; }
.photos li { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; color: var(--muted); min-width: 0; }
.photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--soft); }
.photos form { margin: 0; }
img.photo { display: block; max-width: 16rem; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--soft); margin-bottom: .75rem; }
.photo-form input[type="file"] { flex: 1 1 14rem; width: auto; min-width: 0; max-width: 100%; }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .9rem; align-items: end; }
.filters label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; }

/* ------------------------------------------------------------ project workspace */
.phases { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.phase { flex: 1 1 150px; border-radius: var(--r-md); padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .35rem; min-height: 110px; }
.phase-upcoming { color: var(--muted); }
.phase-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.phase-active .meta { color: var(--paper); opacity: .72; }
.phase-done { background: var(--soft); }
.phase-num { font-family: var(--serif); font-size: 1rem; opacity: .7; }
.phase-title { font-weight: 600; }
.phase form { margin-top: auto; }

.tasks { list-style: none; margin: 0; padding: 0; }
.task { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task-title { flex: 1; font-weight: 500; }
.task-done .task-title { color: var(--muted); text-decoration: line-through; }
button.check { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--paper); padding: 0; flex: none; }
button.check:hover { border-color: var(--ink); }
.task-done button.check { background: var(--ink); border-color: var(--ink); }

.updates { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.update { display: flex; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.update .avatar { width: 36px; height: 36px; font-size: .72rem; }
.update-system { border-style: dashed; }
.update-system p:last-child { color: var(--muted); }
.update p { margin: 0 0 .2rem; white-space: pre-line; }

.draft-body { white-space: pre-wrap; font: inherit; font-size: .92rem; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.1rem; overflow-x: auto; margin: .5rem 0 0; }
.review-questions { border-radius: var(--r-md); background: var(--soft); border: 1px solid var(--line); color: var(--ink); padding: 1.1rem 1.4rem; }
.review-questions ol { margin: .4rem 0 .4rem 1.2rem; padding: 0; }
details summary { cursor: pointer; color: var(--muted); font-size: .9rem; }

.page-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.page-foot nav { display: flex; gap: 1.25rem; }
.page-foot a { color: var(--muted); }
.page-foot a:hover { color: var(--ink); }

/* Anything marked hidden stays hidden, whatever display a list or card sets (19.10.2026). */
[hidden] { display: none !important; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 1.1rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-rule { margin: .8rem 0; }
  /* On a phone each menu is one row you swipe sideways, so the page starts near the top (19.10.2026). */
  .nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: .25rem; margin: 0 -1rem .25rem; padding: .1rem 1rem;
         scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav-form button { width: auto; flex: none; white-space: nowrap; padding: .45rem .7rem; }
  .nav-form { display: inline; flex: none; }
  .nav-label { display: none; }
  .sidebar-foot { display: none; }
  .user-chip { margin-bottom: .5rem; }
  .main { padding: 1.5rem 1rem 3rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .stat { min-height: 140px; }
}

/* ------------------------------------------------------------ photographs and the start page
   Real HACOY production and campaign photographs (static/img, from the new website), shown
   whole and sharp like on the website; no text is ever laid over a photograph. Black and white
   only, the tokens above, nothing new. */
figure { margin: 0; }
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1.25rem; height: clamp(320px, 40vw, 560px); }
.mosaic figure, .banner, .role-photo, .step figure, .place-card figure { border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.mosaic .m-main { grid-row: span 2; }
.mosaic img, .banner img, .role-photo img, .step figure img, .place-card figure img { width: 100%; height: 100%; object-fit: cover; }
.mosaic img { transition: transform 1.2s ease; }
.mosaic figure:hover img { transform: scale(1.03); }
.banner { height: clamp(150px, 15vw, 220px); margin: -.75rem 0 1.75rem; }

.block { margin-top: 3.75rem; }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.block-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); flex: 1 1 100%; }
.block-head .quiet { max-width: 62ch; margin: 0; font-size: 1rem; line-height: 1.55; }

/* who works here: one part of the chain at a time */
.tabs { display: flex; flex-wrap: wrap; gap: .6rem; padding: .25rem .15rem 1.5rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: flex; align-items: center; gap: .7rem; padding: .35rem 1.1rem .35rem .35rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.tab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.role-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.25rem; align-items: center; margin-bottom: 1.75rem; }
.js .role-panel { display: none; }
.js .role-panel.on { display: grid; }
.role-photo { aspect-ratio: 4 / 3; }
.role-panel.on .role-photo img { animation: rise .6s ease both; }
.role-text h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .9rem; }
.role-text p { max-width: 52ch; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: .25rem 0 1.1rem; }
.tags li { padding: .32rem .85rem; border-radius: 999px; background: var(--soft); font-size: .85rem; font-weight: 600; }

/* from brief to piece: a strip that scrolls, the dots fill as it goes */
.steps-nav { display: flex; gap: .5rem; margin-left: auto; }
.flip { display: inline-flex; transform: scaleX(-1); }
.steps.fits .steps-nav { visibility: hidden; }
.strip { list-style: none; margin: 0; padding: .25rem 0 .5rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.tick { position: relative; display: block; height: 12px; margin-bottom: 1rem; }
.tick::before { content: ""; position: absolute; left: 12px; right: -1.25rem; top: 5.5px; height: 1px; background: var(--line); transition: background .3s; }
.step:last-child .tick::before { display: none; }
.tick i { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background .3s; }
.step.on .tick i { background: var(--ink); }
.step.run .tick::before { background: var(--ink); }
.strip::-webkit-scrollbar { display: none; }
.step { scroll-snap-align: start; }
.step figure { aspect-ratio: 4 / 5; margin-bottom: 1rem; }
.step figure img { transition: transform 1.2s ease; }
.step:hover figure img { transform: scale(1.03); }
.step h3 { font-size: 1.4rem; margin-bottom: .45rem; }
.step p { max-width: 34ch; }

/* where HACOY is made: a quiet map, points by their real coordinates */
.where-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.25rem; align-items: start; }
.netmap svg { display: block; width: 100%; height: auto; overflow: visible; }
.netmap .grid circle { fill: var(--line); }
.netmap .arcs path { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .6; animation: flow 16s linear infinite; }
.node { cursor: pointer; outline: none; }
.node .hit { fill: transparent; }
.node .pt { fill: var(--ink); transform-box: fill-box; transform-origin: center; transition: transform .25s ease; }
.node.open .pt { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.node .ring { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.node text { font-family: var(--sans); font-size: 18px; font-weight: 500; fill: var(--ink); }
.node.made text { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.node:hover .pt, .node.on .pt, .node:focus-visible .pt { transform: scale(1.5); }
.node.on text { font-weight: 700; }
.node:focus-visible .hit { stroke: var(--ink); stroke-width: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.legend .key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .5rem; vertical-align: -1px; }
.legend .key.made { background: var(--ink); }
.legend .key.open { box-shadow: inset 0 0 0 2px var(--ink); }
.place-card { margin-bottom: 2rem; }
.place-card figure { aspect-ratio: 3 / 2; margin-bottom: 1.1rem; }
.place-card h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .7rem; }
.place-card p { max-width: 46ch; }
.place-card:focus { outline: none; }
.js .place-card { display: none; }
.js .place-card.on { display: block; animation: rise .45s ease both; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes flow { to { stroke-dashoffset: -180; } }
@media (prefers-reduced-motion: reduce) {
  .netmap .arcs path, .role-panel.on .role-photo img, .js .place-card.on { animation: none; }
  .mosaic img, .step figure img, .node .pt { transition: none; }
  .strip { scroll-behavior: auto; }
}
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; gap: .75rem; }
  .mosaic .m-main { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
  .mosaic .m-side { aspect-ratio: 1; }
  .banner { margin-top: -.5rem; }
  .role-panel, .where-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .strip { grid-auto-columns: 78%; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
  .block { margin-top: 2.75rem; }
  .node text { font-size: 28px; }
  .node.made text { font-size: 30px; }
  .node.open text { display: none; }
}

/* Pass: the passports from the Studio, one row each, opened in place */
.filter { width: 100%; max-width: 420px; margin: .4rem 0 1.1rem; padding: .75rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .95rem; }
.filter:focus { outline: none; border-color: var(--ink); }
.passes { display: flex; flex-direction: column; gap: .5rem; }
.pass { border-radius: var(--r-md); }
.pass summary { display: flex; align-items: center; gap: 1rem; padding: .5rem; border-radius: var(--r-md); cursor: pointer; list-style: none; }
.pass summary::-webkit-details-marker { display: none; }
.pass summary:hover, .pass[open] summary { background: var(--hover); }
.pass summary img, .pass-blank { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--soft); }
.pass-head { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pass-name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; }
.pass .chev { transition: transform .2s; }
.pass[open] .chev { transform: rotate(90deg); }
.pass-body { padding: .6rem .5rem 1rem calc(56px + 1.5rem); }
.pass-body .meta { margin: .8rem 0 .2rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: .12rem 0; }
@media (max-width: 860px) { .pass-body { padding-left: .5rem; } }

/* ------------------------------------------------------------ the piece picker (20.10.2026) */
.picker-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .2rem; }
.picker-tools .filter { margin: 0; flex: 1 1 14rem; }
.picker-types { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.picker-types::-webkit-scrollbar { display: none; }
.picker-types .pill { flex: none; white-space: nowrap; }
.pill.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.picker-grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.piece { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; transition: box-shadow .15s; }
.piece.has { box-shadow: 0 0 0 2px var(--ink); }
.piece-photo { aspect-ratio: 4 / 5; background: var(--soft); display: grid; place-items: center; }
.piece-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.piece-photo span { font-family: Domine, Georgia, serif; font-size: 2.4rem; color: var(--muted); }
.piece-body { padding: .75rem .85rem 1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.piece-title { font-weight: 600; line-height: 1.3; }
.sizes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .6rem; }
.size-step { display: inline-flex; align-items: center; gap: .1rem; border: 1px solid var(--line); border-radius: 999px; padding: .15rem; }
.size-step.on { border-color: var(--ink); }
.size-step .size { font-weight: 600; font-size: .85rem; padding: 0 .35rem 0 .45rem; }
.size-step input { width: 2.2rem; text-align: center; border: 0; background: transparent; font: inherit; padding: .2rem 0; -moz-appearance: textfield; }
.size-step input::placeholder { color: var(--muted); opacity: .6; }
.size-step input::-webkit-outer-spin-button, .size-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size-step button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); font-size: 1.05rem; line-height: 1; cursor: pointer; }
.size-step button:hover { background: var(--hover); }
.taps { display: flex; flex-wrap: wrap; gap: .45rem; }
.size-chip, .tap { position: relative; }
.size-chip input, .tap input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tap span { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.size-chip span { display: inline-block; min-width: 2.6rem; text-align: center; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.size-chip input:checked + span, .tap input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size-chip input:focus-visible + span, .tap input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.picker-bar { position: sticky; bottom: .75rem; z-index: 5; display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; margin-top: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .07); }
.cap-track { height: 6px; background: var(--soft); border-radius: 6px; overflow: hidden; margin-top: .45rem; }
.cap-fill { height: 100%; width: 0; background: var(--ink); transition: width .2s; }
.picker-bar .grow { flex: 1; min-width: 0; }
.picker-bar > :last-child { flex: none; }
.picker-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
  .picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .piece-body { padding: .6rem .65rem .8rem; }
  .size-step { width: 100%; }
  .size-step input { flex: 1; min-width: 0; }
  .size-step button { width: 28px; height: 28px; flex: none; }
  .picker-bar { gap: .7rem; padding: .7rem .8rem; }
}
.picker-bar.still { position: static; box-shadow: none; }
@media (max-width: 520px) { .picker-bar.still { flex-wrap: wrap; } .picker-bar.still .grow { flex-basis: 100%; } .picker-bar.still .pill { width: 100%; justify-content: center; } }
.list .thumb { width: 44px; height: 55px; border-radius: 10px; overflow: hidden; background: var(--soft); flex: none; }
.list .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ------------------------------------------------------------ an ambassador's way (20.10.2026) */
ol.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
ol.steps li { flex: 0 1 auto; display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem .55rem .55rem; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; color: var(--muted); }
ol.steps .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-weight: 600; font-size: .85rem; flex: none; }
ol.steps .dot svg { width: 15px; height: 15px; }
ol.steps li.done { color: var(--ink); }
ol.steps li.done .dot { background: var(--ink); color: var(--paper); }
ol.steps li.now { color: var(--ink); border-color: var(--ink); }
.next-step { margin: .9rem 0 0; font-size: 1.05rem; }
.share-link { font-weight: 600; word-break: break-all; margin: 0 0 .6rem; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.how li { display: flex; gap: .7rem; align-items: flex-start; }
.how .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-weight: 600; font-size: .85rem; flex: none; }
.thumbs { display: flex; gap: .4rem; margin-top: .5rem; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 860px) { .amb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } .amb-stats > :first-child { grid-column: 1 / -1; } }
input[type="file"]::file-selector-button { border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); padding: .45rem .95rem; margin-right: .8rem; font: inherit; font-weight: 600; cursor: pointer; }
.amb-stats .stat-value { overflow-wrap: anywhere; }

/* ------------------------------------------------------------ the calm way into an application (20.10.2026)
   One photo and a few sentences first, then the form one question at a time. Without JavaScript everything
   stands below each other; with it, the form waits behind the button and each step fades in slowly. */
.journey-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin: .5rem 0 3rem; }
.journey-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.journey-photo { position: relative; }
.journey-photo.wide { aspect-ratio: 3 / 2; }
.journey-photo img { width: 100%; height: 100%; object-fit: cover; }
.journey-photo figcaption { position: absolute; left: 1rem; bottom: .9rem; color: #FFFFFF; font-size: .82rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.journey-lead { font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.45; margin-bottom: 1.6rem; max-width: 34ch; }
.journey-points { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .85rem; max-width: 46ch; }
.journey-points li { display: flex; gap: .75rem; align-items: flex-start; }
.journey-points .icon { width: 18px; height: 18px; margin-top: .3rem; }
.journey-form { max-width: 640px; margin: 0 auto 2rem; }
.jstep { padding: 2rem 0; border-top: 1px solid var(--line); }
.jstep:first-of-type { border-top: 0; }
.jstep .field label:not(.choice):not(.tap), .jstep .field legend { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; margin-bottom: 1rem; }
.jstep input[type=text], .jstep input[type=email], .jstep input[type=password], .jstep input[type=url], .jstep textarea { font-size: 1.1rem; }
.jstep .field + .field { margin-top: 1.4rem; }
.journey-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; color: var(--muted); font-size: .9rem; }
.journey-bar .track { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.journey-bar .fill { height: 100%; background: var(--ink); transition: width .6s ease; }
.journey-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.journey-msg { font-size: .92rem; font-weight: 600; margin: .8rem 0 0; min-height: 1.4em; }
.journey-aside { text-align: center; color: var(--muted); font-size: .92rem; }
.journey-aside a { border-bottom: 1px solid var(--line); }

.js .journey-intro { animation: calm 1.1s ease both; }
.js .journey-intro .journey-text { animation: calm 1.1s ease .25s both; }
.js [data-journey] { display: none; }
.js [data-journey].is-open { display: block; animation: calm .8s ease both; }
.js [data-journey] .jstep { display: none; border-top: 0; padding: 0; }
.js [data-journey] .jstep.is-current { display: block; animation: calm .6s ease both; }
.js .journey-intro.is-done { display: none; }
.js .journey-aside { display: none; }
.js .journey-aside.is-open { display: block; }
@keyframes calm { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .journey-intro, .js .journey-intro .journey-text, .js [data-journey].is-open, .js [data-journey] .jstep.is-current { animation: none; }
  .journey-bar .fill { transition: none; }
}
@media (max-width: 860px) {
  .journey-intro { grid-template-columns: 1fr; margin-bottom: 2rem; }
  .journey-photo { aspect-ratio: 4 / 3; }
}
/* A yes to tick at the end of an application: a card like the other choices, with room to breathe (20.10.2026). */
.field label.choice.consent { align-items: flex-start; gap: 1rem; padding: 1.15rem 1.3rem; line-height: 1.5; font-size: 1.05rem; }
.field label.choice.consent input { margin-top: .3rem; flex: none; width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.field label.choice.consent small { display: block; margin-top: .45rem; color: var(--muted); font-size: .9rem; }
.privacy-line { margin-top: 1.2rem; }
/* A brand photo beside each question (20.10.2026); without JavaScript the form stands alone as before. */
.journey-stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin: .5rem 0 2rem; }
.journey-stage .journey-form { max-width: none; margin: 0; }
.journey-step-photo img { transition: opacity .3s ease; }
.journey-step-photo img.is-out { opacity: 0; }
.js .journey-stage .journey-step-photo { display: none; }
.js .journey-stage.is-open .journey-step-photo { display: block; animation: calm .8s ease both; }
@media (prefers-reduced-motion: reduce) {
  .journey-step-photo img { transition: none; }
  .js .journey-stage.is-open .journey-step-photo { animation: none; }
}
@media (max-width: 860px) {
  .journey-stage { grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
  .journey-step-photo { aspect-ratio: 16 / 9; }
}

/* Leitlinien (21.10.2026): the topics two by two, one below the other on a phone. */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.guide-grid .journey-points { margin: 0; }
@media (max-width: 860px) { .guide-grid { grid-template-columns: 1fr; } }
