/* Self-hosted fonts (no requests to Google). Cyrillic headings use Roboto Condensed. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo-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; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo-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: "Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/plexmono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/plexmono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/plexmono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/plexmono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: "Roboto Condensed"; font-weight: 400 900; font-display: swap; src: url("/fonts/robotocondensed-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
:root {
  --paper: #f5f3ee;
  --white: #fff;
  --ink: #171715;
  --green: #171715;
  --muted: #5a5852;
  --line: #e2ded5;
  --sage: #ece9e2;
  --cream: #ece9e2;
  --blue: #ece9e2;
  --red: #8c352d;
  --daugava: #0a8494;
  --daugava-ink: #06606b;
  --daugava-soft: #cdeef1;
  --saule: #f5ac12;
  --display: "Archivo", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #bb7134;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 24px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
}
p {
  margin-bottom: 20px;
}
small {
  font-size: 0.875rem;
}
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}
.local-bar {
  background: #e8ebdf;
  font-size: 0.8125rem;
  border-bottom: 1px solid #d9dfd0;
}
.local-bar .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.local-bar a {
  white-space: nowrap;
}
.header {
  display: flex;
  align-items: center;
  gap: 64px;
  min-height: 108px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  text-decoration: none;
  font-size: 3rem;
  letter-spacing: -0.1em;
  font-weight: 800;
  line-height: 1;
}
.wordmark span {
  display: inline-block;
  font-size: 1.2rem;
  vertical-align: top;
  margin: 3px 0 0 6px;
  letter-spacing: 0;
}
.header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.header nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}
.header nav a.current {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.header-end {
  display: flex;
  gap: 12px;
  margin-left: auto;
  align-items: center;
}
.account-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 180px;
  text-decoration: none;
  line-height: 1.2;
}
.account-link small {
  color: var(--muted);
  font-size: 0.6875rem;
}
.account-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
}
.account-link:hover strong,
.account-link:focus-visible strong {
  text-decoration: underline;
}
.languages {
  display: flex;
  gap: 2px;
}
.languages button {
  border: 0;
  background: transparent;
  padding: 9px 7px;
  font-size: 0.8125rem;
  color: var(--muted);
  border-radius: 4px;
}
.languages .selected {
  background: var(--green);
  color: var(--white);
}
.logout-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.logout-button:hover {
  border-color: var(--green);
}
.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  padding: 40px 0 36px;
  align-items: center;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
  color: var(--green);
}
.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
  margin-bottom: 24px;
}
.hero h1 span {
  color: var(--green);
}
.hero-signature {
  font-family: "Snell Roundhand", "Segoe Script", "Apple Chancery", cursive;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--green);
  line-height: 1.5;
  margin: 0 0 24px;
}
.hero h1 { overflow-wrap: anywhere; }
.hero-type > div { text-align: center; text-transform: uppercase; line-height: 1.8; }
.intro {
  max-width: 480px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  font-size: 0.875rem;
}
.tiny-plus {
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  width: 20px;
  height: 20px;
}
.hero-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--green);
  border-left: 1px solid var(--line);
  padding-left: 35px;
  min-height: 235px;
}
.hero-type > span {
  font-weight: 800;
  font-size: clamp(8rem, 18vw, 14rem);
  letter-spacing: -0.13em;
  line-height: 1;
  transform: none;
  padding-right: 30px;
}
.hero-type .percent {
  font-size: 0.7em;
  vertical-align: top;
  line-height: 1.6;
}
.hero-type > div {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-top: 28px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin: 0;
}
.count {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  min-width: 28px;
  height: 28px;
  font-size: 0.8125rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-left: 12px;
  letter-spacing: 0;
}
.events-section {
  padding: 34px 0 55px;
  border-top: 1px solid var(--line);
}
.view-switch {
  display: flex;
  gap: 16px;
}
.view-switch button {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
}
.view-switch .selected {
  border-color: var(--green);
  color: var(--green);
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filters button {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 20px;
  border-radius: 30px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 0.875rem;
  min-height: 44px;
}
.filters .selected {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.filters button span {
  font-size: 1.1rem;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.event-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  min-height: 120px;
  background: var(--sage);
}
.connect .card-top {
  background: var(--cream);
}
.learn .card-top {
  background: var(--blue);
}
.tag {
  display: inline-block;
  border: 1px solid #244d3b40;
  border-radius: 20px;
  padding: 5px 12px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  background: #ffffff30;
  letter-spacing: 0;
}
.card-number {
  font-size: 3.6rem;
  line-height: 0.9;
  letter-spacing: -0.09em;
  color: var(--green);
  text-align: right;
  font-weight: 500;
}
.card-number > span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0;
  margin-top: 10px;
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-time {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.card-body h3 {
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 15px;
}
.card-location {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}
.card-bottom span:first-child {
  font-weight: 600;
}
.card-photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.empty-state {
  padding: 38px;
  text-align: center;
  border: 1px dashed #bfc8b7;
  border-radius: 10px;
  background: #eff1e7;
}
.empty-state h3 {
  margin-bottom: 10px;
}
.empty-state p {
  color: var(--muted);
}
.empty-state .actions {
  justify-content: center;
}
.empty-sign {
  font-size: 2rem;
  color: var(--green);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.sample-heading {
  margin-top: 35px;
}
.sample-heading h3 {
  margin-bottom: 8px;
}
.sample-heading p {
  font-size: 0.875rem;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--green);
  padding: 11px 20px;
  border-radius: 6px;
  text-decoration: none;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  gap: 8px;
  text-align: center;
}
.button:hover {
  background: #173c2c;
}
.button.secondary {
  background: transparent;
  color: var(--green);
  border-color: #bdc8ba;
}
.button.secondary:hover {
  background: #e8eee3;
}
.button.danger {
  background: #fff7f3;
  color: var(--red);
  border-color: #d8b6ac;
}
.button.wide {
  width: 100%;
  margin-top: 12px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  text-decoration: underline;
  font-size: 0.875rem;
}
.notice {
  padding: 18px 20px;
  background: var(--sage);
  border: 1px solid #d6decb;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.notice p:last-child {
  margin-bottom: 0;
}
.notice.error {
  background: #fff0e9;
  border-color: #e6bcae;
  color: #802c26;
}
.back {
  display: inline-block;
  margin: 30px 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr);
  gap: 70px;
  padding-bottom: 70px;
}
.detail-title {
  margin-top: 22px;
  font-size: clamp(2.5rem, 4.7vw, 4rem);
}
.host-line {
  font-size: 0.9375rem;
  color: var(--muted);
}
.host-line strong {
  color: var(--ink);
  margin-left: 4px;
}
.event-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 36px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.event-facts span,
.event-facts strong,
.event-facts small {
  display: block;
}
.event-facts span {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.event-facts small {
  color: var(--muted);
  margin-top: 6px;
}
.prose {
  white-space: pre-wrap;
  line-height: 1.8;
}
.detail-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}
.join-panel {
  padding: 30px;
  background: #eef1e7;
  border: 1px solid #dce2d3;
  border-radius: 10px;
  align-self: start;
  position: sticky;
  top: 24px;
}
.join-panel h2 {
  font-size: 2rem;
}
.join-panel > p {
  color: var(--muted);
}
.review-facts {
  margin: 26px 0;
}
.review-facts p {
  margin: 0;
  padding: 15px 0;
  border-top: 1px solid #dce2d3;
}
.review-facts span,
.review-facts strong,
.review-facts a {
  display: block;
  overflow-wrap: anywhere;
}
.review-facts span {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-bottom: 5px;
}
.places {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.places strong {
  font-size: 1.5rem;
  color: var(--green);
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 20px;
}
input,
textarea,
select {
  padding: 12px;
  border: 1px solid #bfc7b9;
  background: #fff;
  border-radius: 5px;
  width: 100%;
  color: var(--ink);
  min-width: 0;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 3px 0;
}
textarea {
  resize: vertical;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 400;
}
.check.compact {
  margin: 0;
  white-space: nowrap;
}
.form-error {
  font-size: 0.875rem;
  color: var(--red);
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 1.6rem;
  margin-bottom: 22px;
}
.auth-wrap {
  max-width: 520px;
  margin: 60px auto 100px;
}
.auth-wrap h1 {
  font-size: 2.8rem;
}
.auth-wrap > p {
  color: var(--muted);
}
.auth-wrap form {
  margin-top: 30px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 50px 0 36px;
}
.page-heading h1 {
  margin: 0;
}
.page-heading .eyebrow {
  margin-bottom: 12px;
}
.manage-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.manage-card h3 {
  margin-top: 20px;
}
.manage-card p {
  font-size: 0.875rem;
  color: var(--muted);
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 50px;
}
.panel {
  padding: 10px 30px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel > small,
label small {
  font-weight: 400;
  color: var(--muted);
}
.editor-note {
  padding: 30px 0;
}
.note-number {
  font-size: 5rem;
  letter-spacing: -0.07em;
  color: #a4b599;
  margin-bottom: 25px;
  line-height: 1;
}
.editor-note p {
  font-size: 0.9375rem;
  color: var(--muted);
}
.upload-preview {
  width: 180px;
  max-height: 150px;
  object-fit: cover;
  display: block;
  margin: 20px 0 8px;
  border-radius: 5px;
}
.registrations-section {
  padding: 50px 0;
}
.muted {
  color: var(--muted);
  font-size: 0.875rem;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}
th {
  font-size: 0.75rem;
  background: #edf0e7;
  font-weight: 600;
  padding: 16px;
  white-space: nowrap;
}
td {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
}
td small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
td .actions {
  margin: 0;
  flex-wrap: nowrap;
}
td .button {
  font-size: 0.75rem;
  padding: 8px 12px;
  min-height: 38px;
}
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  overflow-x: auto;
}
.tabs a {
  padding: 12px 0;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.9375rem;
}
.tabs .selected {
  border-bottom: 3px solid var(--green);
  color: var(--green);
  font-weight: 600;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  margin-bottom: 18px;
}
.stats > div {
  padding: 28px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child {
  border: 0;
}
.stats span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}
.stats strong {
  display: block;
  font-size: 3.6rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.4;
}
.stats strong small {
  font-size: 1.6rem;
}
.export-panel {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding: 32px 0;
}
.export-panel h2 {
  font-size: 1.4rem;
}
.mail-list {
  max-width: 850px;
}
.mail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  margin-bottom: 20px;
}
.mail-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.mail-card h2 {
  font-size: 1.4rem;
}
.mail-body {
  font-size: 0.875rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.mail-card p,
.mail-card small {
  color: var(--muted);
}
.privacy-page {
  max-width: 780px;
  margin: 65px auto 90px;
}
.privacy-page p {
  line-height: 1.9;
}
.footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding-top: 30px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer .small {
  font-size: 2rem;
  color: var(--green);
}
.footer p {
  margin: 0 auto 0 0;
}
.footer > span {
  white-space: nowrap;
}
.footer a {
  white-space: nowrap;
}
dialog {
  max-width: 740px;
  width: calc(100% - 32px);
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #15251ecc;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.dialog-top > span {
  font-size: 0.875rem;
  font-weight: 600;
}
.dialog-top .button {
  min-height: 38px;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 100;
  background: var(--green);
  color: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--green);
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  max-width: calc(100% - 32px);
  transition: all 0.15s;
  z-index: 100;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1400px) {
  .hero {
    padding-top: 46px;
    padding-bottom: 42px;
  }
}
@media (max-width: 900px) {
  .shell {
    padding-left: 24px;
    padding-right: 24px;
  }
  .header {
    gap: 35px;
  }
  .header nav {
    gap: 20px;
  }
  .hero {
    gap: 20px;
  }
  .hero-type {
    padding-left: 10px;
  }
  .event-grid {
    gap: 14px;
  }
  .card-body,
  .card-top {
    padding: 19px;
  }
  .detail-grid {
    gap: 32px;
    grid-template-columns: 1.2fr 1fr;
  }
  .editor-layout {
    gap: 28px;
  }
  .footer {
    flex-wrap: wrap;
  }
  .footer p {
    flex: 1;
  }
  .card-body h3 {
    font-size: 1.3rem;
  }
  .stats > div {
    padding: 22px;
  }
}
@media (max-width: 650px) {
  .shell {
    padding-left: 20px;
    padding-right: 20px;
  }
  .local-bar .shell {
    font-size: 0.75rem;
    align-items: center;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .local-bar span {
    max-width: 63%;
    line-height: 1.35;
  }
  .header {
    gap: 18px;
    min-height: 90px;
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .wordmark {
    font-size: 2.5rem;
  }
  .header nav {
    order: 3;
    flex-basis: 100%;
    gap: 24px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .header nav a {
    font-size: 0.875rem;
  }
  .header-end {
    margin-left: auto;
  }
  .account-link {
    max-width: 110px;
  }
  .account-link small {
    display: none;
  }
  .hero {
    display: block;
    padding: 38px 0 32px;
  }
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .eyebrow {
    font-size: 0.65rem;
    margin-bottom: 20px;
  }
  .hero-type {
    display: none;
  }
  .intro {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero-note {
    font-size: 0.8125rem;
  }
  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 1.5rem;
  }
  .view-switch {
    gap: 20px;
  }
  .filters {
    gap: 6px;
    margin-bottom: 20px;
  }
  .filters button {
    padding: 9px 14px;
    font-size: 0.8125rem;
    gap: 7px;
  }
  .event-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card-top {
    min-height: 105px;
    padding: 22px;
  }
  .card-body {
    padding: 24px;
  }
  .card-body h3 {
    font-size: 1.6rem;
  }
  .empty-state {
    padding: 28px 18px;
  }
  .empty-state .actions {
    flex-direction: column;
  }
  .detail-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  .detail-title {
    font-size: 2.6rem;
  }
  .join-panel {
    position: static;
    padding: 25px;
  }
  .event-facts {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .auth-wrap {
    margin: 36px auto 60px;
  }
  .auth-wrap h1 {
    font-size: 2.3rem;
  }
  .page-heading {
    margin: 35px 0 28px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 2.3rem;
  }
  .editor-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .panel {
    padding: 4px 20px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .editor-note {
    padding-bottom: 0;
  }
  .note-number {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stats > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }
  .stats strong {
    font-size: 2.5rem;
  }
  .stats span {
    max-width: 55%;
  }
  .tabs {
    gap: 22px;
  }
  .footer {
    gap: 18px;
    margin-top: 40px;
  }
  .footer p {
    flex-basis: 65%;
  }
  .footer > span {
    margin-left: auto;
  }
  .privacy-page {
    margin: 40px auto;
  }
  .privacy-page h1 {
    font-size: 2.5rem;
  }
  .mail-card {
    padding: 20px;
  }
  .mail-card > div:first-child {
    flex-wrap: wrap;
  }
  dialog {
    padding: 22px;
  }
  .card-photo {
    height: 190px;
  }
  input,
  select,
  textarea {
    font-size: 1rem;
  }
  .button {
    min-height: 48px;
  }
  .table-scroll {
    margin-left: -4px;
    margin-right: -4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.contact-panel { margin-top: 32px; max-width: 100%; }
.contact-panel textarea { resize: vertical; }

.booking-card h2 { margin: 18px 0 12px; overflow-wrap: anywhere; }
.booking-card .actions { flex-wrap: wrap; }

#location-tools { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:12px 0 24px; }
#location-tools p, #location-search, #location-map { flex-basis:100%; min-width:0; }
#location-search gmp-place-autocomplete { width:100%; max-width:100%; }
.location-map { width:100%; height:280px; border-radius:12px; }
@media (max-width:600px) { .location-map { height:220px; } #location-tools .button { width:100%; } }

.header .latvian-flag { display:inline-block; width:24px; height:12px; flex:none; margin-left:8px; align-self:center; background:linear-gradient(to bottom,#9e1b34 0 40%,#fff 40% 60%,#9e1b34 60% 100%); border-radius:1px; box-shadow:0 0 0 1px rgb(0 0 0 / 8%); }
.hero-purpose { margin-top:32px; max-width:640px; display:grid; gap:24px; }
.hero-purpose section h2 { font-size:13px; line-height:1.5; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--green); margin:0 0 8px; }
.hero-purpose section p { font-size:18px; line-height:1.65; color:var(--muted); margin:0; }
.hero-purpose section .hero-signature { font-family:"Snell Roundhand","Apple Chancery","URW Chancery L",cursive; font-size:32px; line-height:1.4; color:var(--green); }
@media(max-width:600px) { .hero-purpose { gap:20px; margin-top:24px; } .hero-purpose section p { font-size:16px; } .hero-purpose section .hero-signature { font-size:27px; } .header .latvian-flag { width:20px; height:10px; margin-left:5px; } }

.site-header { position:sticky; top:0; z-index:30; background:var(--paper); box-shadow:0 1px 0 var(--line); }
.ui-icon { display:inline-block; width:24px; height:24px; flex:none; vertical-align:middle; }
.wordmark > .ui-icon { width:22px; height:22px; vertical-align:top; margin:3px 0 0 6px; }
.wordmark.small > .ui-icon { width:16px; height:16px; }
.filters button { color:var(--ink); }
.filters button.selected { color:var(--paper); }
.filters .ui-icon { width:24px; height:24px; }
html { scroll-padding-top:120px; }
@media(max-width:650px) { html { scroll-padding-top:170px; } }

.host-name { font:inherit; font-weight:700; color:var(--green); border:0; background:none; padding:0; text-decoration:underline; cursor:pointer; }
.avatar { display:inline-flex; width:40px; height:40px; flex:none; align-items:center; justify-content:center; border-radius:50%; background:var(--sage); color:var(--green); font-size:14px; font-weight:700; border:2px solid var(--paper); overflow:hidden; }
.avatar img { width:100%; height:100%; object-fit:cover; }
.avatar-stack { display:flex; }
.avatar-stack .avatar + .avatar { margin-left:-10px; }
.attendee-cluster { margin:24px 0; padding:16px 0; width:100%; text-align:left; display:flex; flex-wrap:wrap; align-items:center; gap:12px; border:0; border-top:1px solid var(--line); background:none; color:var(--ink); cursor:pointer; font:inherit; }
.attendee-cluster small { flex-basis:100%; }
.attendee-row { display:flex; align-items:center; gap:14px; margin:14px 0; }
#attendees-dialog, #contact-dialog { width:min(520px,calc(100% - 32px)); max-height:85dvh; overflow:auto; }
.google-signin { background:white; color:#1f1f1f; border:1px solid #747775; border-radius:24px; font-family:Arial,sans-serif; font-size:16px; }
.google-signin:hover { background:#f0f2f4; }
.google-letter { color:#4285f4; font-weight:700; font-size:22px; margin-right:12px; }
.signin-link { padding:8px 14px; white-space:nowrap; }
@media(max-width:650px) { .header-end { gap:6px; } .signin-link { font-size:12px; padding:8px; } .languages button { padding:8px; } }
.google-icon { width:20px; height:20px; margin-right:12px; flex:none; }
.about-platform { padding:24px 0; border-top:1px solid var(--line); }
.about-platform summary { cursor:pointer; font-weight:700; }
.about-platform .hero-purpose { margin-bottom:24px; }
.event-description { grid-column:1; }
@media(max-width:650px) { .event-description { margin-top:28px; } }

/* One category palette shared by filters, cards and event tags. */
.filters [data-filter="move"],.event-card.move,.tag.move { --category:#e5eddf; --category-ink:#244a35; }
.filters [data-filter="connect"],.event-card.connect,.tag.connect { --category:#f5e6df; --category-ink:#743e2c; }
.filters [data-filter="learn"],.event-card.learn,.tag.learn { --category:#e5e8f5; --category-ink:#3b4778; }
.filters [data-filter="other"],.event-card.other,.tag.other { --category:#f3ebcd; --category-ink:#65521c; }
.filters button:not([data-filter="all"]) { background:var(--category); color:var(--category-ink); border-color:var(--category); }
.filters button.selected:not([data-filter="all"]) { box-shadow:inset 0 0 0 2px var(--category-ink); }
.event-card .card-top { background:var(--category,var(--sage)); color:var(--category-ink,var(--green)); }
.event-card .tag,.tag.move,.tag.connect,.tag.learn,.tag.other { background:var(--category); color:var(--category-ink); border-color:currentColor; }
.count { background:var(--green); color:#fff; border-color:var(--green); font-weight:700; }
.pagination { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:16px; margin:28px 0; }
.pagination button { min-height:44px; }
.pagination button:disabled { opacity:.45; cursor:default; }
.footer { justify-content:space-between; gap:24px; padding-top:24px; padding-bottom:max(24px,env(safe-area-inset-bottom)); }
.footer .languages { gap:6px; }
.footer .languages button { min-width:44px; min-height:44px; }
.host-tabs button { border:0; background:none; color:var(--muted); font:inherit; padding:12px 0; cursor:pointer; border-bottom:3px solid transparent; }
.host-tabs button.selected { border-color:var(--green); color:var(--green); font-weight:700; }
.host-empty { margin:32px 0 60px; color:var(--muted); }
.cancelled-badge,.cancelled-banner { background:#f8e5e1; color:#7b231d; border:1px solid #b25c52; font-weight:700; }
.cancelled-banner { padding:14px 18px; border-left-width:5px; border-radius:8px; }
.submit-action { display:flex; flex-direction:column; gap:8px; max-width:360px; }
.submit-action small { color:var(--muted); font-size:13px; }
.editor-layout { grid-template-columns:minmax(0,1fr); max-width:800px; }
.editor-note { padding:0; border:0; }
.form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.form-grid > *,label { min-width:0; }
input[type="datetime-local"] { display:block; min-width:0; width:100%; max-width:100%; min-inline-size:0; box-sizing:border-box; -webkit-appearance:none; }
input[type="datetime-local"]::-webkit-date-and-time-value { text-align:left; min-width:0; }
input[type="datetime-local"]::-webkit-datetime-edit { min-width:0; padding:0; }
.contact-delivery { padding:8px 0; }
@media(max-width:650px) {
 .form-grid { grid-template-columns:minmax(0,1fr); }
 .header { gap:14px; }
 .account-link { max-width:110px; }
 .header-end { margin-left:auto; }
 .footer { flex-direction:column; align-items:flex-start; }
 .pagination { gap:10px; }
 .pagination span { flex-basis:100%; text-align:center; order:-1; }
 .actions .submit-action { width:100%; max-width:none; }
 .submit-action .button { width:100%; }
}
/* Explicit display styles must not override the native hidden attribute. */
[hidden] { display:none !important; }

/* Event photos keep their whole frame in cards, details and the upload preview. */
.card-photo { display:block; height:220px; object-fit:contain; background:var(--paper); }
.detail-photo { display:block; height:auto; max-height:650px; object-fit:contain; background:var(--paper); }
.upload-preview { width:100%; max-width:480px; height:auto; max-height:360px; object-fit:contain; }

/* Profile identity doubles as a clear account settings link. */
.header .account-link { flex-direction:row; align-items:center; gap:9px; max-width:230px; min-height:44px; }
.account-copy { display:flex; flex-direction:column; min-width:0; gap:3px; }
.account-link .avatar { width:44px; height:44px; border:1px solid var(--line); }

/* Compact, manual carousel. Live text stays separate from the illustrations. */
.hero-carousel { --banner-bg:#f5e6df; --banner-ink:#743e2c; background:var(--banner-bg); color:var(--ink); margin:28px 0 0; border-radius:10px; padding:24px 32px 16px; }
.hero-carousel[data-tone="grow"] { --banner-bg:#e5e8f5; --banner-ink:#3b4778; }
.hero-carousel[data-tone="host"] { --banner-bg:#f3ebcd; --banner-ink:#65521c; }
.banner-stage { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:365px; gap:10px; text-align:center; }
.banner-copy h1 { margin:0; font-size:clamp(2rem,3.5vw,3.25rem); line-height:1.08; letter-spacing:-.04em; }
.banner-art { display:block; width:min(100%,560px); height:155px; object-fit:contain; flex:none; }
.banner-cta { background:var(--banner-ink); color:var(--white); font-size:.875rem; padding:10px 20px; min-height:44px; }
.banner-controls { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; padding-top:12px; border-top:1px solid color-mix(in srgb,var(--banner-ink) 23%,transparent); color:var(--banner-ink); }
.banner-dots,.banner-arrows { display:flex; align-items:center; gap:4px; }
.banner-arrows { justify-content:flex-end; gap:10px; }
.banner-dots button { display:grid; place-items:center; width:32px; height:44px; padding:0; background:none; border:0; color:inherit; }
.banner-dots span { width:9px; height:9px; border:1px solid currentColor; border-radius:50%; }
.banner-dots [aria-pressed="true"] span { background:currentColor; }
.banner-arrows button { width:44px; height:44px; display:grid; place-items:center; padding:10px; border:1px solid var(--banner-ink); border-radius:50%; background:transparent; color:var(--banner-ink); }
.banner-arrows button:last-child { background:var(--banner-ink); color:white; }
.banner-arrows svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.banner-position { font-size:.8125rem; font-variant-numeric:tabular-nums; }
.event-date { margin:0; padding:0; border:0; min-width:0; }
.event-date legend { font-weight:600; padding:0; margin-bottom:8px; }
.date-parts { display:grid; grid-template-columns:1fr 1.1fr 1fr; gap:8px; }
.date-parts label { display:flex; flex-direction:column; justify-content:flex-end; font-size:.8125rem; gap:4px; }
.date-parts input { width:100%; max-width:100%; min-width:0; padding:10px 7px; min-height:46px; -webkit-appearance:none; }
.date-parts input::-webkit-date-and-time-value { text-align:left; }
@media(max-width:650px) {
 .header .account-link { max-width:160px; }
 .account-link .avatar { width:40px; height:40px; }
 .account-copy strong { max-width:96px; }
 .header nav { gap:24px; }
 .hero-carousel { margin-top:20px; padding:22px 16px 10px; }
 .banner-stage { min-height:325px; gap:12px; }
 .banner-copy h1 { font-size:clamp(1.75rem,8vw,2.5rem); }
 .banner-art { height:125px; }
 .banner-controls { gap:6px; }
 .banner-dots { gap:0; }
 .banner-dots button { width:26px; }
 .banner-arrows { gap:8px; }
 .card-photo { height:220px; }
 .detail-photo { max-height:75vh; }
 .date-parts { gap:6px; }
}
@media(max-width:360px) {
 .header nav { gap:18px; }
 .header-end { gap:6px; }
 .header .account-link { max-width:132px; }
 .account-copy strong { max-width:80px; }
 .banner-copy h1 { font-size:1.7rem; }
}
.date-parts label { display:flex; flex-direction:column; justify-content:flex-end; }

/* Event flow: description, registration, then attendees in one reading order. */
.event-page { max-width:820px; margin:0 auto 48px; }
.event-page .event-description { margin:32px 0; }
.event-page .join-panel { position:static; width:100%; margin:28px 0; }
.event-participants { margin-top:32px; padding-top:24px; border-top:1px solid var(--line); }
.host-event-panel { padding:20px 24px; background:var(--sage); border:1px solid var(--line); border-radius:10px; }
.host-event-panel p { margin-bottom:12px; }
.card-photo,.detail-photo,.upload-preview { aspect-ratio:4/3; height:auto; max-height:none; object-fit:cover; object-position:center; }
.detail-photo { border-radius:8px; }
.upload-preview { max-width:480px; }

/* An explicit start/end summary opens a mobile-friendly calendar. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.event-schedule { min-width:0; margin:24px 0; padding:16px; border:1px solid var(--line); border-radius:10px; background:#eef1e7; }
.event-schedule legend { padding:0 6px; font-weight:600; }
.schedule-row { display:grid; grid-template-columns:76px minmax(0,1fr) 112px; gap:8px; align-items:center; margin-bottom:8px; }
.schedule-label { font-size:.875rem; color:var(--muted); }
.schedule-date { text-align:left; border:1px solid transparent; border-radius:7px; padding:12px; min-height:48px; background:#e3e9da; color:var(--ink); font-weight:600; min-width:0; }
.schedule-time { display:block; margin:0; min-width:0; }
.schedule-time input { width:100%; min-width:0; min-height:48px; padding:10px 6px; border:1px solid transparent; border-radius:7px; background:#e3e9da; -webkit-appearance:none; font-variant-numeric:tabular-nums; }
.schedule-time input::-webkit-date-and-time-value { text-align:center; }
.schedule-zone { margin:12px 0 0; font-size:.8125rem; color:var(--muted); }
#duration-preview { margin:4px 0 0; }
.date-picker { width:min(390px,calc(100% - 24px)); max-height:90dvh; padding:18px; overflow:auto; }
.calendar-top { display:grid; grid-template-columns:40px minmax(0,1fr) 76px 40px; align-items:center; gap:6px; margin-bottom:16px; }
.calendar-top label { margin:0; }
.calendar-top select,.calendar-top input { padding:8px 4px; width:100%; min-width:0; height:42px; }
.calendar-top button { height:42px; border:0; border-radius:6px; background:var(--sage); font-size:1.5rem; }
.calendar-weekdays,.calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px; text-align:center; }
.calendar-weekdays { margin-bottom:6px; color:var(--muted); }
.calendar-days button { min-width:0; aspect-ratio:1; border:1px solid transparent; border-radius:50%; background:none; color:var(--ink); padding:0; font-size:.9375rem; }
.calendar-days [aria-current="date"] { border-color:var(--green); }
.calendar-days [aria-pressed="true"] { background:var(--green); color:white; }
.date-picker > .button { margin-top:18px; width:100%; }
.photo-crop-dialog { width:min(650px,calc(100% - 24px)); max-height:94dvh; padding:24px; overflow:auto; }
.photo-crop-dialog h2 { font-size:1.5rem; margin:0; }
.crop-canvas { display:block; width:100%; height:auto; aspect-ratio:4/3; border-radius:8px; background:#eee; cursor:grab; touch-action:none; }
.crop-canvas:active { cursor:grabbing; }
.crop-controls { margin:16px 0; display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; }
.crop-controls label { font-size:.8125rem; margin:0; }
.crop-controls label:first-child { grid-column:1/-1; }
.crop-controls input[type="range"] { width:100%; height:36px; padding:0; accent-color:var(--green); }
.attendee-details { width:min(480px,calc(100% - 24px)); max-height:90dvh; overflow:auto; }
.attendee-details .dialog-top h2 { font-size:1.5rem; }
.attendee-identity { display:flex; align-items:center; gap:12px; margin:24px 0; }
.attendee-identity .avatar { width:60px; height:60px; font-size:1.25rem; }
.attendee-identity h3 { margin:0; }
.attendee-details dt { font-size:.8125rem; color:var(--muted); }
.attendee-details dd { margin:4px 0 18px; overflow-wrap:anywhere; }
.attendee-name { text-align:left; font-weight:600; padding:4px 0; }
@media(max-width:650px) {
 .event-schedule { padding:12px; }
 .schedule-row { grid-template-columns:52px minmax(0,1fr) 94px; gap:6px; }
 .schedule-date { padding:10px 7px; font-size:.875rem; }
 .schedule-label { font-size:.8125rem; }
 .schedule-time input { font-size:.9375rem; padding:10px 4px; }
 .calendar-top { grid-template-columns:32px minmax(0,1fr) 68px 32px; gap:4px; }
 .photo-crop-dialog { padding:16px; }
 .crop-controls { grid-template-columns:1fr; gap:8px; }
 .crop-controls label:first-child { grid-column:auto; }
 .event-page .join-panel { padding:22px; }
 .applications-table { min-width:580px; }
}
@media(max-width:650px) {
 .applications-table { display:block; width:100%; min-width:0; }
 .applications-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
 .applications-table tbody { display:block; }
 .applications-table tr { display:block; padding:14px 18px; border-bottom:1px solid var(--line); }
 .applications-table tr:last-child { border-bottom:0; }
 .applications-table td { display:block; padding:4px 0; border:0; overflow-wrap:anywhere; }
 .applications-table td[data-label]::before { content:attr(data-label) ": "; font-size:.75rem; color:var(--muted); }
 .applications-table .attendee-name { font-size:1rem; }
}
@media(max-width:360px) {
 .schedule-row { grid-template-columns:minmax(0,1fr) 94px; }
 .schedule-label { grid-column:1/-1; }
}

/* Mobile review: consistent event dates, lighter cards and a shorter carousel. */
.event-facts { display:block; }
.event-schedule-facts { margin-bottom:20px; }
.event-date-line { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px; margin:0 0 7px; font-size:1rem; }
.event-date-line > span,.event-date-line > strong { display:inline; margin:0; font-size:inherit; white-space:nowrap; }
.event-date-line > span { color:var(--muted); }
.event-date-line > strong { font-weight:600; }
.card-schedule { display:none; }
#enable-location-search { display:inline-flex; align-items:center; justify-content:center; gap:10px; }
#enable-location-search .google-icon { flex:none; width:20px; height:20px; }
.hero-carousel { padding:18px 28px 12px; }
.banner-stage { min-height:285px; gap:6px; padding:10px 0; }
.banner-copy h1 { font-size:clamp(1.8rem,3vw,2.65rem); }
.banner-art { height:112px; }
.banner-controls { padding-top:6px; }
.photo-crop-dialog { padding:16px; max-height:calc(100dvh - 20px); }
.photo-crop-dialog .dialog-top { margin-bottom:8px; }
.photo-crop-dialog > p { font-size:.8125rem; line-height:1.4; margin:0 0 10px; }
.crop-canvas { max-height:42dvh; object-fit:contain; }
.crop-controls { margin:10px 0; gap:4px 14px; }
.crop-controls label { line-height:1.3; }
.crop-controls input[type="range"] { height:32px; margin:2px 0 0; }
.photo-crop-dialog > .actions { position:sticky; bottom:-16px; margin:0 -16px -16px; padding:10px 16px 16px; background:var(--white); border-top:1px solid var(--line); z-index:1; }
@media(max-width:650px) {
 .header nav { display:grid; grid-template-columns:auto minmax(0,1fr) minmax(0,1fr); gap:8px; align-items:stretch; width:100%; }
 .header nav a { display:flex; align-items:center; justify-content:center; text-align:center; font-size:clamp(.72rem,3vw,.875rem); line-height:1.3; min-height:40px; padding:4px 0; white-space:normal; }
 .header nav:has(a[href="/admin"]) { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .event-date-line { font-size:clamp(.72rem,3.35vw,1rem); gap:3px; }
 .event-date-line > strong { letter-spacing:-.015em; }
 .card-top { align-items:center; gap:10px; padding:12px 14px; min-height:0; }
 .card-top .tag { flex:none; padding:4px 9px; font-size:.75rem; }
 .card-number,.card-body .event-time { display:none; }
 .card-schedule { display:block; min-width:0; text-align:right; font-size:.875rem; line-height:1.4; font-variant-numeric:tabular-nums; overflow-wrap:normal; }
 .card-body { padding:16px; }
 .card-body h3 { font-size:1.35rem; line-height:1.25; margin-bottom:10px; overflow-wrap:anywhere; }
 .card-location { margin-bottom:16px; }
 .card-bottom { padding-top:12px; }
 .hero-carousel { margin-top:16px; padding:14px 14px 8px; }
 .banner-stage { min-height:240px; gap:6px; padding:6px 0 10px; }
 .banner-copy h1 { font-size:clamp(1.6rem,7vw,2rem); }
 .banner-art { width:min(100%,420px); height:90px; }
 .banner-cta { padding:8px 16px; font-size:.8125rem; }
 .banner-controls { padding-top:4px; }
 .photo-crop-dialog { padding:12px; }
 .photo-crop-dialog h2 { font-size:1.1rem; }
 .photo-crop-dialog .dialog-top .button { padding:7px 10px; min-height:40px; font-size:.8125rem; }
 .crop-canvas { max-height:34dvh; }
 .crop-controls { grid-template-columns:1fr 1fr; gap:4px 12px; margin:8px 0; }
 .crop-controls label { font-size:.75rem; }
 .crop-controls label:first-child { grid-column:1/-1; }
 .crop-controls input[type="range"] { height:30px; }
 .photo-crop-dialog > .actions { bottom:-12px; margin:0 -12px -12px; padding:8px 12px 12px; flex-wrap:nowrap; }
 .photo-crop-dialog > .actions .button { min-height:44px; padding:9px 12px; font-size:.8125rem; }
 .photo-crop-dialog > .actions .button:first-child { flex:1; }
}
@media(max-height:600px) {
 .photo-crop-dialog > p { display:none; }
 .crop-canvas { max-height:28dvh; }
 .crop-controls { margin:4px 0; gap:0 12px; }
}

/* Keep canvas coordinates aligned with the visible image on short screens. */
.photo-crop-dialog .crop-canvas{width:min(100%,56dvh);height:auto;max-height:none;margin-inline:auto}
@media(max-width:680px){.photo-crop-dialog .crop-canvas{width:min(100%,45.33dvh)}}
@media(max-height:700px){.photo-crop-dialog .crop-canvas{width:min(100%,37.33dvh)}}

/* Legal text uses readable line lengths and wraps long translated headings. */
.privacy-page { max-width:760px; margin-inline:auto; }
.privacy-page h1 { font-size:clamp(1.65rem,5vw,3rem); line-height:1.15; overflow-wrap:anywhere; }
.privacy-page h2 { font-size:clamp(1.15rem,3vw,1.5rem); line-height:1.3; overflow-wrap:anywhere; }
.privacy-page p { line-height:1.65; overflow-wrap:anywhere; }
.privacy-page section { margin-block:28px; }

/* Slight emphasis for event-card schedules and remaining-place status. */
.event-card .card-number,
.event-card .card-schedule,
.event-card .event-time,
.event-card .card-bottom > span:last-child { font-weight:600; }

/* Host identity occupies the card's white information area. */
.card-summary { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:start; }
.card-copy { min-width:0; }
.card-host { display:flex; align-items:center; gap:7px; min-width:0; max-width:112px; padding-top:2px; }
.card-host .avatar { width:30px; height:30px; font-size:.75rem; border-width:1px; }
.card-host-copy { display:flex; flex-direction:column; min-width:0; }
.card-host-label { color:var(--muted); font-size:.65rem; line-height:1.3; }
.card-host-name { font-size:.75rem; font-weight:600; line-height:1.3; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
@media(max-width:650px) {
 .header nav a.current { text-decoration:none; box-shadow:inset 0 -2px 0 var(--green); }
 .card-host { max-width:100px; }
}

/* Profile framing mirrors the circular avatar and keeps actions in reach. */
.profile-photo-crop-dialog .profile-crop-canvas { aspect-ratio:1; border-radius:50%; width:min(100%,34dvh); }
#avatar-preview .avatar { width:76px; height:76px; font-size:1.5rem; }
#avatar-actions[hidden] { display:none; }
.card-location { overflow-wrap:anywhere; }
.selected-location { display:flex; align-items:center; gap:8px; flex-basis:100%; min-width:0; border:1px solid var(--line); border-radius:8px; padding:12px; background:var(--paper); }
.selected-location[hidden] { display:none; }
.selected-location strong { min-width:0; overflow-wrap:anywhere; font-size:.875rem; }
.selected-location .text-button { margin-left:auto; flex:0 1 auto; max-width:55%; white-space:normal; text-align:right; }
#location-status:empty { display:none; }
@media(max-height:700px) {
 .profile-photo-crop-dialog .profile-crop-canvas { width:min(100%,28dvh); }
}

/* Native search opens on the first tap, with a readable light surface on iOS. */
.location-picker { width:min(560px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:20px; overflow:auto; color-scheme:light; }
.location-picker .dialog-top { gap:12px; margin-bottom:16px; }
.location-picker h2 { margin:0; font-size:1.3rem; }
.location-picker label { margin:0; }
.location-picker input { width:100%; min-width:0; font-size:16px; background:var(--white); color:var(--ink); }
.location-picker .muted,.location-picker-status { font-size:.8125rem; line-height:1.4; margin:8px 0; }
.location-picker-status:empty { display:none; }
.location-results { display:grid; max-height:32dvh; overflow:auto; border-radius:8px; }
.location-option { display:grid; gap:3px; width:100%; padding:12px; min-height:52px; text-align:left; color:var(--ink); background:var(--white); border:1px solid var(--line); border-bottom:0; font:inherit; cursor:pointer; }
.location-option:last-child { border-bottom:1px solid var(--line); }
.location-option strong { font-size:.9375rem; }
.location-option small { font-size:.75rem; line-height:1.4; color:var(--muted); }
.location-option[aria-selected="true"],.location-option:hover { background:var(--green-pale); }
.maps-attribution { padding:10px 4px; color:#5e5e5e; font:400 13px/1.4 Arial,sans-serif; white-space:nowrap; }
.location-picker [hidden] { display:none; }
.location-chosen .location-map { height:180px; margin-bottom:14px; }
.location-chosen .text-button { margin-top:12px; }
.location-picker > .actions { position:sticky; bottom:-20px; background:var(--paper); margin:16px -20px -20px; padding:12px 20px 20px; border-top:1px solid var(--line); }
@media(max-width:650px) {
 .location-picker { padding:16px; }
 .location-picker h2 { font-size:1.125rem; }
 .location-picker > .actions { bottom:-16px; margin:14px -16px -16px; padding:12px 16px 16px; flex-wrap:wrap; }
 .location-picker > .actions .button { flex:1 1 auto; font-size:.875rem; }
 .location-chosen .location-map { height:min(180px,25dvh); }
}

.place-attribution { display:block; padding:0; margin-top:3px; font-size:12px; line-height:1.4; font-weight:400; }
.place-attribution[hidden] { display:none; }
.google-location-notice { font-size:.75rem; line-height:1.5; color:var(--muted); margin-block:20px; max-width:70ch; }
.selected-location-copy { flex:1; min-width:0; }
.event-facts strong > span { display:inline; color:inherit; font-size:inherit; }
.place-link { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.card-title-link { color:inherit; text-decoration:none; }
.event-card[data-event-url] { cursor:pointer; }
.place-link:focus-visible,.card-title-link:focus-visible { outline:2px solid var(--green); outline-offset:4px; }
.event-card[data-event-url] { position:relative; }
.card-title-link::after { content:""; position:absolute; inset:0; z-index:1; border-radius:inherit; }
.event-card .place-link { position:relative; z-index:2; }
.card-title-link:focus-visible::after { outline:2px solid var(--green); outline-offset:3px; }

/* Desktop keeps the compact phone card rhythm without stretching short cards. */
@media(min-width:651px) {
 .event-card .card-top { align-items:center; gap:12px; min-height:0; padding:14px 18px; }
 .event-card .card-top .tag { flex:none; }
 .event-card .card-number,
 .event-card .card-body > .event-time { display:none; }
 .event-card .card-schedule { display:block; min-width:0; margin-left:auto; text-align:right; font-size:.875rem; line-height:1.4; font-variant-numeric:tabular-nums; }
 .event-card .card-body { padding:20px; }
 .event-card .card-body h3 { margin:0 0 12px; font-size:clamp(1.35rem,1.65vw,1.65rem); line-height:1.2; overflow-wrap:anywhere; }
 .event-card .card-location { margin-bottom:18px; }
 .event-card .card-bottom { padding-top:14px; }
 .event-page { max-width:900px; }
 .event-page .detail-title { max-width:16ch; }
 .event-page .detail-photo { width:100%; }
 .hero-carousel { padding:14px 24px 8px; }
 .banner-stage { min-height:128px; flex-direction:row; gap:28px; padding:4px 5%; }
 .banner-copy { flex:0 1 330px; text-align:left; }
 .banner-copy h1 { font-size:clamp(1.65rem,2.25vw,2.35rem); }
 .banner-art { width:min(42%,420px); height:105px; }
 .banner-cta { flex:none; }
 .banner-controls { padding-top:5px; }
}

/* Sticky join bar on event pages: always one tap from joining. */
.join-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(36, 46, 41, 0.08); transition: transform 0.25s ease; }
.join-bar > span { display: grid; font-size: 15px; line-height: 1.25; }
.join-bar strong { font-size: 18px; }
.join-bar small { color: var(--muted); font-size: 14px; }
.join-bar .button { flex: none; min-height: 48px; padding-inline: 24px; }
.join-bar.tucked { transform: translateY(110%); }
#app:has(.join-bar) .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.join-legal { margin: 14px 0 4px; font-size: 14px; }
@media (min-width: 761px) {
  .join-bar { left: 50%; right: auto; bottom: 16px; width: min(560px, calc(100% - 32px)); transform: translateX(-50%); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 12px 20px; }
  .join-bar.tucked { transform: translate(-50%, calc(100% + 32px)); }
}


/* ===== Redesign 2026: calm base, colour only as accent ===== */
h1, h2, h3, .detail-title { font-family: var(--display); font-stretch: 75%; font-weight: 800; letter-spacing: -0.005em; text-wrap: balance; }
:focus-visible { outline-color: var(--saule); }

/* Header + navigation */
.site-header { box-shadow: none; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); }
.header { min-height: 60px; padding-block: 8px; gap: 20px; }
.wordmark { position: relative; font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 32px; line-height: 1; padding-bottom: 7px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark svg { position: absolute; left: -2px; bottom: 0; width: calc(100% + 4px); height: 8px; overflow: visible; }
.wordmark svg path { fill: none; stroke: var(--saule); stroke-width: 4; stroke-linecap: round; }
.header nav.topnav { display: flex; gap: 28px; margin-right: auto; margin-left: 24px; }
.header nav.topnav { gap: 4px; }
.header nav.topnav a { font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); }
.header nav.topnav a:hover { color: var(--ink); }
.header nav.topnav a.current { background: var(--sage); color: var(--ink); }
.account-link { gap: 10px; text-decoration: none; }
.account-copy strong { font-size: 14px; }
.logout-wide { margin-top: 28px; }

/* Buttons and chips */
.button { background: var(--daugava-ink); border: 1px solid var(--daugava-ink); color: var(--white); border-radius: 999px; font-weight: 700; min-height: 48px; transition: background-color .15s, border-color .15s; }
.button:hover { background: #044a52; border-color: #044a52; }
.button.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--white); border-color: var(--ink); }
.text-link { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; flex-wrap: nowrap; }
.filters::-webkit-scrollbar { display: none; }

html { scroll-padding-top: 90px; }

/* Section heading */
.events-section { margin-top: 28px; padding-top: 0; border-top: 0; }
.section-heading { align-items: baseline; margin-bottom: 14px; }
.section-heading h2 { font-size: 34px; display: flex; gap: 10px; align-items: center; }
.count { background: var(--ink); color: var(--paper); border-color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 13px; }

/* Event cards */
.event-grid { gap: 16px; margin-top: 16px; align-items: start; }
.event-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: none; transition: transform .2s ease, box-shadow .2s ease; }
.event-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(23, 23, 21, .45); }
.card-media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--sage); }
.card-media .card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--sage); margin: 0; border-radius: 0; }
.card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.card-placeholder svg { width: 40%; max-width: 140px; height: auto; opacity: .55; }
.event-card .card-body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.event-card .card-body .event-time, .my-row .event-time { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--daugava-ink); margin: 0; text-transform: uppercase; }
.event-card h3 { font-size: 26px; line-height: 1; margin: 2px 0 0; }
.event-card h3 a { text-decoration: none; }
.event-card .card-location { font-size: 14px; color: var(--muted); margin: 0; }
.event-card .card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; font-size: 14px; }
.card-host { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.card-host .avatar { width: 28px; height: 28px; font-size: 12px; }
.card-host > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-spots { font-weight: 700; white-space: nowrap; }
.card-spots.closed { color: var(--muted); }
.event-card .card-top, .event-card .card-number, .event-card .card-schedule, .card-host-copy { display: none; }

/* Event page */
.event-page { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.event-page .detail-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--sage); border-radius: 20px; margin: 0 0 18px; }
.event-page .detail-title { font-size: clamp(40px, 6.5vw, 64px); line-height: .95; margin: 14px 0 6px; max-width: none; }
.event-facts { display: grid; gap: 14px; margin: 18px 0; padding: 0; border: 0; background: none; grid-template-columns: minmax(0, 1fr); }
.fact { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.fact svg { width: 22px; height: 22px; margin-top: 2px; }
.fact strong { display: block; font-size: 16px; }
.fact small { display: block; color: var(--muted); font-size: 13px; }
.host-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-block: 1px solid var(--line); margin: 0; }
.host-line small { display: block; color: var(--muted); font-size: 13px; }
.host-line .avatar { width: 44px; height: 44px; }
.host-name { color: var(--daugava-ink); }
.event-participants { margin-top: 18px; }
.event-participants h2, .event-description h2 { font-size: 26px; margin-bottom: 8px; }
.attendee-cluster { margin: 0; padding: 6px 0; border: 0; background: none; display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; cursor: pointer; }
.avatar-stack { display: flex; gap: 6px; }
.avatar-stack .avatar + .avatar { margin-left: 0; }
.avatar-stack .avatar { width: 32px; height: 32px; font-size: 12px; }
.avatar.more { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px; }
.attendee-copy { display: grid; text-align: left; }
.attendee-copy small { color: var(--muted); font-size: 13px; }
.event-page .event-description { margin: 22px 0 0; }
.event-page .join-panel { position: sticky; top: 84px; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.join-panel h2 { font-size: 30px; }
.places { margin: 12px 0 8px; }
.places strong { font-family: var(--display); font-stretch: 75%; font-size: 40px; color: var(--ink); }
.meter { height: 8px; border-radius: 999px; background: var(--sage); overflow: hidden; margin-bottom: 14px; }
.meter i { display: block; height: 100%; background: var(--daugava); border-radius: inherit; }
.success-mark { background: var(--daugava); color: var(--white); border-color: var(--daugava); }

/* Mani */
.list-heading { font-size: 28px; margin: 26px 0 12px; }
.my-list { display: grid; gap: 10px; }
.my-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.my-thumb { width: 76px; height: 57px; border-radius: 12px; overflow: hidden; background: var(--sage); display: grid; place-items: center; color: var(--muted); }
.my-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-thumb svg { width: 60%; opacity: .55; }
.my-row h3 { font-size: 20px; margin: 0 0 2px; }
.my-row h3 a { text-decoration: none; }
.my-row .card-location { font-size: 13px; color: var(--muted); margin: 0; }
.my-row-end { display: grid; gap: 6px; justify-items: end; }
.my-row-end .tag { position: static; background: var(--sage); color: var(--ink); border: 0; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.empty-state.compact { padding: 24px; }
.empty-state .card-placeholder { position: static; color: var(--muted); }
.small-note { font-size: 13px; margin-top: 24px; }

/* Readability floor */
.card-location, .event-time, .attendee-copy small, .footer a { font-size: max(13px, 1em); }

@media (max-width: 900px) {
  .event-page { grid-template-columns: minmax(0, 1fr); }
  .event-page .join-panel { position: static; }
}
@media (max-width: 760px) {
  .header nav.topnav { display: none; }
  .account-copy { display: none; }
  .section-heading h2 { font-size: 28px; }
  #app:has(.join-bar)   .my-row { grid-template-columns: 64px minmax(0, 1fr); }
  .my-thumb { width: 64px; height: 48px; }
  .my-row-end { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; justify-content: start; gap: 12px; }
  .event-page .detail-title { font-size: 42px; }
}
/* On wide screens the sticky join card is always visible, so the floating bar is not needed. */
@media (min-width: 901px) { .join-bar { display: none; } }
/* Join celebration */
.burst-label { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.burst-piece { position: fixed; z-index: 59; pointer-events: none; width: 10px; height: 3px; border-radius: 2px; }
.burst-piece.burst-dot { width: 7px; height: 7px; border-radius: 50%; }
.burst-daugava { background: var(--daugava); }
.burst-saule { background: var(--saule); }
.burst-ink { background: var(--ink); }

/* Card grid: one column on phones, two on tablets, three on desktop */
@media (min-width: 720px) { .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .hero { padding: 48px 0 16px; max-width: 760px; }
  .hero h1 { font-size: 88px; }
  .lead { font-size: 19px; }
  .cta .button { flex: 0 0 auto; }
}
@media (min-width: 1080px) { .event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Category colours (as before) on chips and tags */
.filters button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; font-weight: 700; font-size: 14px; min-height: 42px; }
.filters button[data-filter="all"] { background: var(--white); color: var(--ink); padding-left: 16px; }
.filters button[data-filter="all"].selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button:not([data-filter="all"]) { background: var(--category); color: var(--category-ink); border-color: var(--category); }
.filters button.selected:not([data-filter="all"]) { box-shadow: inset 0 0 0 2px var(--category-ink); }
.filters .ui-icon { width: 20px; height: 20px; }
.event-page .tag { border: 0; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; background: var(--category); color: var(--category-ink); }

/* Photo frame: every photo in the same 4:3 frame, shown whole */
.card-media .card-photo { object-fit: contain; background: var(--sage); }

/* Six calm placeholders that rotate when there is no photo */
.card-placeholder svg.placeholder-art, .my-thumb svg.placeholder-art, .empty-state svg.placeholder-art { width: 46%; max-width: 160px; opacity: 1; }
.placeholder-art path, .placeholder-art circle { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.placeholder-art .fill { fill: var(--saule); stroke: none; }
.tone-0 { background: #e5eddf; color: #244a35; } .tone-1 { background: #f5e6df; color: #743e2c; } .tone-2 { background: #e5e8f5; color: #3b4778; }
.tone-3 { background: #f3ebcd; color: #65521c; } .tone-4 { background: #dce8e7; color: #06606b; } .tone-5 { background: #ece9e2; color: #5a5852; }
.tone-4 .fill, .tone-2 .fill { fill: var(--daugava); }


/* Logo lockup: 1% with the gold line, "better" in Daugava underneath */
.wordmark { display: inline-grid; justify-items: start; padding-bottom: 0; text-decoration: none; flex: none; }
.wordmark-mark { position: relative; display: block; padding-bottom: 7px; }
.wordmark-sub { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 13px; line-height: 1; letter-spacing: .02em; color: var(--daugava-ink); margin-top: 2px; }
.wordmark svg { bottom: 0; }

/* Header: logo, menu and sign-in on one line */
.header { flex-wrap: nowrap; }
.header nav.topnav { display: flex; align-items: center; }
.header nav.topnav a { font-weight: 700; color: var(--muted); }
.header nav.topnav a.current { color: var(--ink); background: var(--sage); font-weight: 800; }
.signin-link { white-space: nowrap; }

/* Cards: host line, bubbles and short spot count */
.event-card .card-location { display: flex; gap: 4px; align-items: baseline; }
.event-card .card-host { max-width: none; display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 14px; color: var(--muted); font-weight: 400; }
.event-card .card-host strong { color: var(--ink); font-weight: 700; }
.event-card .card-host .avatar { width: 24px; height: 24px; font-size: 11px; }
.going-bubbles { display: flex; align-items: center; }
.going-bubbles .avatar { width: 26px; height: 26px; font-size: 11px; border: 2px solid var(--white); margin-left: -6px; }
.going-bubbles .avatar:first-child { margin-left: 0; }
.avatar.blank { background: var(--sage); }
.going-bubbles .avatar.more { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 10px; width: auto; min-width: 26px; padding: 0 5px; border-radius: 999px; }

@media (max-width: 760px) {
  .header { gap: 8px; min-height: 56px; padding-block: 6px; }
  .wordmark-mark { font-size: 26px; padding-bottom: 6px; }
  .wordmark { font-size: 26px; }
  .wordmark-sub { font-size: 11px; }
  .header nav.topnav { display: flex; flex: 1 1 auto; flex-wrap: nowrap; order: 1; justify-content: space-between; align-items: center; gap: 2px; margin: 0; min-width: 0; width: auto; }
  .header-end { order: 2; }
  .header nav.topnav a { font-size: 12.5px; line-height: 1.15; padding: 6px 7px; text-align: center; white-space: normal; max-width: 9ch; }
  .header nav.topnav a[href="/"] { max-width: none; }
  .header-end { flex: none; }
  .signin-link { font-size: 12px; padding: 6px 10px; min-height: 32px; }
  .account-link .avatar { width: 32px; height: 32px; }
  .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .events-section { margin-top: 18px; }
}

@media (max-width: 760px) {
  .site-header .header { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); gap: 6px; }
  .header nav.topnav a { font-size: 12px; padding: 6px 5px; }
  .signin-link { font-size: 11.5px; padding: 5px 9px; min-height: 30px; }
}
@media (max-width: 380px) {
  .header nav.topnav a { font-size: 11.5px; padding: 6px 3px; }
  .wordmark-mark { font-size: 24px; }
}
.header nav.topnav a, .header nav.topnav a.current { border-bottom: 0; box-shadow: none; text-decoration: none; }

/* ===== Phone polish ===== */
/* Avatars: always a perfect circle, letter centred, photos cropped to the circle */
.avatar { display: inline-grid; place-items: center; aspect-ratio: 1; border-radius: 50%; overflow: hidden; padding: 0; line-height: 1; text-align: center; flex: none; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Logo: "1%" centred over "better" */
.wordmark { justify-items: center; }
.wordmark-sub { text-align: center; }

/* Navigation elements: icon + label */
.nav-icon { width: 20px; height: 20px; flex: none; }
.nav-short { display: none; }
.header nav.topnav a { display: inline-flex; align-items: center; gap: 6px; }

/* Cards: category label in the white area, same structure on every card */
.event-card .card-meta { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.event-card .card-meta .tag { position: static; flex: none; border: 0; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; background: var(--category); color: var(--category-ink); }
.event-card .card-meta .event-time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.event-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-card .card-location { display: flex; align-items: center; gap: 4px; min-width: 0; }
.event-card .place-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.event-card .place-text a { text-decoration: none; }
.event-card .place-attribution, .event-facts .place-attribution { display: none !important; }
.event-card { align-self: stretch; }
.event-card .card-body { grid-template-rows: auto auto auto auto 1fr; }
.event-card .card-bottom { align-self: end; }
.event-grid { align-items: stretch; }
.event-card .card-host .host-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.places-credit { color: var(--muted); font-size: 11px; flex-basis: 100%; order: 10; }

/* Filters: everything visible, no sideways scrolling */
.filters { flex-wrap: wrap; overflow: visible; }

@media (max-width: 760px) {
  .header nav.topnav { justify-content: space-evenly; gap: 0; }
  .header nav.topnav a { flex-direction: column; gap: 2px; padding: 4px 8px; font-size: 11px; max-width: none; line-height: 1; border-radius: 12px; }
  .header nav.topnav a.current { background: var(--sage); }
  .nav-long { display: none; }
  .nav-short { display: block; }
  .nav-icon { width: 22px; height: 22px; }
  .filters { gap: 6px; }
  .filters button { font-size: 13px; min-height: 36px; padding: 5px 10px 5px 8px; gap: 4px; }
  .filters button[data-filter="all"] { padding-left: 12px; padding-right: 12px; }
  .filters .ui-icon { width: 16px; height: 16px; }
  .event-grid { gap: 14px; }
  .event-card .card-body { padding: 12px 14px 14px; gap: 6px; }
  .event-card h3 { font-size: 22px; }
}
/* Equal card heights: titles always reserve two lines, the bottom row keeps its height */
.event-card h3 { line-height: 1.08; min-height: 2.16em; }
.event-card .card-bottom { min-height: 38px; }
/* Categories: all five on one even row on phones */
@media (max-width: 760px) {
  .filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .filters button, .filters button[data-filter="all"] { justify-content: center; padding: 5px 2px; font-size: 12.5px; gap: 3px; min-width: 0; }
  .filters .ui-icon { width: 13px; height: 13px; }
}

/* Logo: just "1%" with the gold underline, a bit larger */
.wordmark-mark { font-size: 40px; padding-bottom: 8px; }
.wordmark svg { height: 9px; }
@media (max-width: 760px) { .wordmark-mark { font-size: 34px; padding-bottom: 7px; } }
@media (max-width: 380px) { .wordmark-mark { font-size: 32px; } }

/* Card info area takes the category colour; the label turns white so it still stands out */
.event-card .card-body { background: var(--category, var(--white)); }
.event-card .card-meta .tag { background: var(--white); color: var(--category-ink); }
.event-card .card-bottom { border-top-color: color-mix(in srgb, var(--category-ink, var(--ink)) 18%, transparent); }
.event-card .going-bubbles .avatar { border-color: var(--category, var(--white)); }
.site-header .wordmark .wordmark-mark { font-size: 40px; line-height: 1; letter-spacing: -0.02em; font-weight: 900; color: var(--ink); }
@media (max-width: 760px) { .site-header .wordmark .wordmark-mark { font-size: 34px; } }
@media (max-width: 380px) { .site-header .wordmark .wordmark-mark { font-size: 32px; } }

/* ===== Compact cards ===== */
/* Same 4:3 photo, a little smaller: inset inside the card like a framed picture */
.event-card .card-media { margin: 10px 10px 0; border-radius: 14px; overflow: hidden; }
.event-card .card-body { padding: 10px 14px 12px; gap: 5px; }
.event-card h3 { font-size: 21px; }
/* Host on the left, who's going + spots on the right, one row, no divider */
.event-card .card-bottom { border-top: 0; padding-top: 2px; margin-top: 0; min-height: 30px; gap: 8px; align-items: center; }
.event-card .card-bottom .card-host { margin: 0; min-width: 0; flex: 1 1 auto; }
.event-card .card-end { display: flex; align-items: center; gap: 6px; flex: none; }
.event-card .card-spots { font-family: var(--mono); font-size: 12px; font-weight: 500; background: var(--white); color: var(--category-ink, var(--ink)); border-radius: 999px; padding: 3px 8px; }
.event-card .card-spots.closed { background: transparent; color: var(--muted); }
/* Only the place is underlined: it is the one thing that opens something else (Google Maps) */
.event-card .place-text a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; color: var(--ink); }
/* Bubbles that stand out on the coloured card */
.going-bubbles .avatar { width: 24px; height: 24px; border: 2px solid var(--white); }
.going-bubbles .avatar.blank { color: var(--white); }
.going-bubbles .avatar.blank svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.going-bubbles .avatar.blank-0 { background: var(--daugava); }
.going-bubbles .avatar.blank-1 { background: var(--saule); }
.going-bubbles .avatar.blank-2 { background: var(--ink); }
.going-bubbles .avatar.more { border: 2px solid var(--white); }
.event-card { background: var(--category, var(--white)); border-color: transparent; }
.event-card .card-media { width: auto; max-width: none; min-width: 0; margin: 12px 12px 0; }
.event-card .card-body { background: transparent; }
.event-card .card-bottom { min-width: 0; }
.event-card .card-bottom .card-host .host-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A clear outline around each event card so cards never blend together */
.event-card { border: 1.5px solid rgba(23, 23, 21, .55); }

/* Event page: host and attendees side by side on one line */
.people-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-block: 1px solid var(--line); }
.people-row .host-line { padding: 0; border: 0; min-width: 0; }
.people-row .host-line > div { min-width: 0; }
.people-row .host-line strong, .people-row .host-line a, .people-row .host-name { display: block; margin-left: 0; text-align: left; overflow-wrap: break-word; line-height: 1.25; }
.people-going { min-width: 0; padding-left: 14px; border-left: 1px solid var(--line); }
.people-going > small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.people-going .attendee-cluster { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0; color: inherit; text-decoration: none; }
.people-going .going-bubbles .avatar { width: 30px; height: 30px; font-size: 12px; }
.people-going .going-bubbles .avatar.more { min-width: 30px; }
.people-row .host-name { padding: 0; font-weight: 800; }
.people-going .first-join { font-size: 15px; color: var(--daugava-ink); }
/* Full-screen join celebration */
.joy { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(245, 243, 238, .9); backdrop-filter: blur(4px); overflow: hidden; cursor: pointer; animation: joy-in .25s ease-out; }
.joy.out { opacity: 0; transition: opacity .3s ease; }
.joy-card { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; text-align: center; }
.joy-mark { position: relative; display: block; font-family: var(--display); font-weight: 900; font-size: clamp(96px, 30vw, 180px); line-height: 1; letter-spacing: -0.04em; color: var(--ink); padding-bottom: 14px; }
.joy-mark svg { position: absolute; left: 4%; right: 4%; bottom: 0; width: 92%; height: 18px; overflow: visible; }
.joy-mark path { fill: none; stroke: var(--saule); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.joy-card strong { font-size: 28px; font-weight: 800; }
.joy-card small { font-size: 16px; color: var(--daugava-ink); font-weight: 700; }
.joy .burst-piece { width: 14px; height: 5px; }
.joy .burst-piece.burst-dot { width: 10px; height: 10px; }
@keyframes joy-in { from { opacity: 0; } to { opacity: 1; } }
/* Event page header: category and date on one line, a smaller title, everything moves up */
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0; }
.detail-meta .tag { margin: 0; }
.detail-when { color: var(--daugava-ink); font-weight: 800; font-size: 17px; line-height: 1.25; }
.event-page .detail-title { font-size: clamp(28px, 7.4vw, 48px); line-height: 1.02; margin: 10px 0 4px; }
.event-page .event-facts { margin: 12px 0 14px; }
/* Event page: less space above, so "Par pasākumu" shows on the first phone screen */
main > .back, .editor-page > .back { margin: 10px 0 10px; }
.event-page .detail-photo { margin-bottom: 12px; }
.event-page .people-row { padding: 10px 0; }
.event-page .event-description { margin: 16px 0 0; }
.event-page .event-description .prose { margin-bottom: 0; }
/* Join box: heading left, free places right, then the 1% line */
.join-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.join-head .eyebrow { display: block; margin-bottom: 2px; }
.join-head h2 { margin: 0; line-height: 1; }
.join-head .places { margin: 0; padding: 0; border: 0; text-align: right; font-size: 13px; color: var(--muted); line-height: 1.2; max-width: 50%; }
.join-head .places strong { display: block; font-size: 34px; line-height: 1; }
.join-panel .meter { margin-bottom: 12px; }
.join-panel .join-pitch { margin: 0 0 14px; color: var(--ink); font-weight: 800; font-size: 17px; line-height: 1.3; }
.event-page .join-panel { padding: 18px 20px; margin: 0; }
.join-panel #register-form > p { margin: 0 0 2px; font-weight: 700; }
.join-panel #register-form > small { display: block; margin: 0 0 12px; font-size: 12px; line-height: 1.35; color: var(--muted); }
/* Join box: the 1% line in brand gold on ink, so it pops and stays readable */
.join-panel .join-pitch { background: var(--ink); color: var(--saule); padding: 10px 12px; border-radius: 12px; text-align: center; font-size: clamp(13px, 3.85vw, 16px); }
/* Event page: photo cropped (not letterboxed) when shrunk to fit the first screen */
.event-page .detail-photo.fitted { object-fit: cover; aspect-ratio: auto; }
.event-page .people-row .host-line .avatar { width: 38px; height: 38px; }
.event-page .event-facts { margin: 10px 0 10px; }
.field-hint { display: block; margin: 6px 0 14px; font-size: 13px; color: var(--muted); }

/* ===== Brand palette (Nov 2026): Concrete page, Aquamarine for text, header and buttons, Burgundy for what is chosen and the 1% moments ===== */
:root {
  --paper: #ece6df;          /* Concrete */
  --white: #f8f5f1;          /* light surfaces on Concrete */
  --ink: #0f3f49;            /* Aquamarine */
  --green: #0f3f49;
  --muted: #56676a;
  --line: #d8cfc4;
  --sage: #e3dcd2; --cream: #e3dcd2; --blue: #e3dcd2;
  --daugava: #0f3f49; --daugava-ink: #0f3f49; --daugava-soft: #d2e2e4;
  --saule: #7f0508;          /* Burgundy */
  --burgundy: #7f0508;
  --burgundy-light: #c2453f; /* burgundy that still shows on Aquamarine */
  --aqua-deep: #0a2f37;
}
/* Each category keeps its own soft tone: dusty tints pulled toward Concrete, so they read as one family */
.filters [data-filter="move"],.event-card.move,.tag.move { --category:#d8e0d4; --category-ink:#2f5a4a; }
.filters [data-filter="connect"],.event-card.connect,.tag.connect { --category:#ebd6d2; --category-ink:#7f0508; }
.filters [data-filter="learn"],.event-card.learn,.tag.learn { --category:#d3e1e1; --category-ink:#0f3f49; }
.filters [data-filter="other"],.event-card.other,.tag.other { --category:#e0d2bc; --category-ink:#6e5532; }
.tone-0 { background: #d8e0d4; color: #2f5a4a; } .tone-1 { background: #ebd6d2; color: #7f0508; } .tone-2 { background: #d3e1e1; color: #0f3f49; }
.tone-3 { background: #e0d2bc; color: #6e5532; } .tone-4 { background: #d9d3ca; color: #0f3f49; } .tone-5 { background: #e3dcd2; color: #56676a; }
/* Header in Aquamarine */
.site-header { background: var(--ink); border-bottom-color: var(--ink); backdrop-filter: none; }
.site-header .wordmark .wordmark-mark { color: var(--paper); }
.wordmark svg path { stroke: var(--burgundy-light); }
.header nav.topnav a { color: #b9cdd0; }
.header nav.topnav a:hover { color: var(--paper); }
.header nav.topnav a.current { background: var(--burgundy); color: var(--paper); }
.site-header .signin-link { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-header .account-link .avatar { border-color: transparent; }
/* Buttons, dates and small accents */
.button:hover { background: var(--aqua-deep); border-color: var(--aqua-deep); }
.event-card { border-color: rgba(15, 63, 73, .55); }
.event-card:hover { box-shadow: 0 16px 30px -22px rgba(15, 63, 73, .5); }
.detail-when, .people-going .first-join { color: var(--burgundy); }
.going-bubbles .avatar.blank-2 { background: #2f5a4a; }
.join-panel .join-pitch { background: var(--burgundy); color: var(--paper); }
/* Join moment on Aquamarine */
.joy { background: var(--ink); backdrop-filter: none; }
.joy-mark, .joy-card strong { color: var(--paper); }
.joy-card small { color: #b9cdd0; }
.joy-mark path { stroke: var(--burgundy-light); }
.joy .burst-daugava { background: #9fc9c4; }
.joy .burst-saule { background: var(--burgundy-light); }
.joy .burst-ink { background: var(--paper); }
/* Forms, panels and older blocks in the palette */
.panel, .manage-card, .mail-card { background: var(--white); }
input, select, textarea { background: #fff; border-color: #b3a89b; }
.event-schedule { background: var(--sage); border-color: var(--line); }
.schedule-date, .schedule-time input { background: var(--white); }
.empty-state { background: var(--white); border-color: var(--line); }
.button.secondary { border-color: var(--line); }
.button.secondary:hover { background: var(--sage); }
.notice { border-color: var(--line); }
.review-facts p { border-top-color: var(--line); }
th { background: var(--sage); }
.note-number { color: var(--muted); }
/* Event page: the same red pin as on the cards */
.fact-place .fact-pin { width: 24px; text-align: center; font-size: 19px; line-height: 1.2; }
/* Phone: signed-in people join straight from the bottom bar, so the join box is not repeated */
@media (max-width: 900px) { .join-panel.bar-joins { display: none; } }
.join-bar .bar-info { display: grid; gap: 2px; min-width: 0; }
.join-bar .bar-info > span { white-space: nowrap; }
.join-bar .bar-visible { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.join-bar .bar-visible .avatar { width: 18px; height: 18px; font-size: 9px; flex: none; border: 0; }
.join-bar .button { white-space: nowrap; flex: none; }
.join-bar .bar-plus { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 800; }
/* Sign-in pop-up */
dialog.mail-sent { max-width: 380px; padding: 26px 22px 20px; text-align: center; border-radius: 22px; }
dialog.mail-sent h2 { font-size: 26px; margin: 6px 0 4px; }
dialog.mail-sent p { margin: 0 0 10px; }
dialog.mail-sent .mail-sent-to { font-weight: 800; overflow-wrap: anywhere; }
dialog.mail-sent .muted { font-size: 14px; margin-bottom: 16px; }
.mail-sent-icon { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.mail-sent-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.join-bar .bar-info > span { font-size: 15px; }
.join-bar .button[data-action="join-bar"] { padding-left: 16px; padding-right: 12px; }
/* Banner on the first page: the owner's ready-made designs, crossfading; compact on phones */
.photo-banner { position: relative; height: clamp(220px, 34vh, 290px); margin: 12px 0 20px; border-radius: 22px; overflow: hidden; background: var(--ink); touch-action: pan-y; user-select: none; }
@media (min-width: 761px) { .photo-banner { height: 380px; margin-top: 20px; } }
.pb-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.pb-slide.active { opacity: 1; pointer-events: auto; }
/* Each design's text is inside the picture, so the whole picture always shows, clear of the dots, and the design's own colour fills any spare space */
.pb-slide img { width: 100%; height: 100%; object-fit: contain; display: block; box-sizing: border-box; padding: 8px 0 30px; }
.pb-design-connect-grow, .pb-design-connect-grow img { background: #000080; }
.pb-design-move-meet, .pb-design-move-meet img { background: #8b1111; }
.pb-design-create-or-join-v2, .pb-design-create-or-join-v2 img { background: #5e17eb; }
.pb-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; }
.pb-dots button { width: 24px; height: 24px; border: 0; padding: 0; background: none; display: grid; place-items: center; }
.pb-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: width .3s ease; }
.pb-dots button[aria-current="true"]::before { width: 22px; border-radius: 999px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .pb-slide, .pb-dots button::before { transition: none; } }
.pb-dots button::before { box-shadow: 0 0 0 1px rgba(15, 63, 73, .35); }
/* Walking figure under the banner: a thin line, a small person, a fading "1%" every stride */
.photo-banner { margin-bottom: 4px; }
.walk-line { margin: 0 0 6px; }
.walk-line svg { width: 100%; height: 46px; display: block; overflow: hidden; }
.walk-ground { stroke: var(--ink); stroke-width: 1; opacity: .25; }
.walk-mark { font-family: var(--mono); font-size: 8px; fill: var(--burgundy); text-anchor: middle; }
.walk-figure line { stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; fill: none; }
.walk-figure circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.7; }
/* Host cards: Rediģēt + Dalībnieki side by side */
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.card-actions .button { min-height: 44px; }
.host-event-panel .card-actions { margin-top: 10px; }
/* Host attendee list with check-in: the whole row is the tap target */
.checkin-page { max-width: 560px; }
.checkin-page h1 { font-family: var(--display); font-stretch: 80%; font-size: clamp(28px, 7vw, 40px); line-height: 1.05; margin: 2px 0 4px; }
.checkin-when { font-weight: 800; color: var(--burgundy); margin: 0 0 14px; }
.checkin-count { font-family: var(--display); font-stretch: 80%; font-weight: 900; font-size: 22px; margin: 0; }
.checkin-list { display: grid; gap: 8px; margin: 12px 0 18px; }
.checkin-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; border-radius: 16px; background: var(--white); border: 1.5px solid var(--line); cursor: pointer; position: relative; }
.checkin-row .avatar { width: 40px; height: 40px; }
.checkin-who { display: grid; min-width: 0; }
.checkin-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkin-who small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkin-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkin-mark { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; color: var(--muted); white-space: nowrap; }
.checkin-mark::before { content: "○ "; }
.checkin-row:has(input:checked) { border-color: var(--good, #2f5a4a); background: #e3ebe0; }
.checkin-row input:checked + .checkin-mark { background: #2f5a4a; border-color: #2f5a4a; color: #fff; }
.checkin-row input:checked + .checkin-mark::before { content: "✓ "; }
.checkin-row input:disabled + .checkin-mark { opacity: .5; }
.checkin-row:has(input:disabled) { cursor: default; }
.checkin-row input:focus-visible + .checkin-mark { outline: 3px solid var(--burgundy-light); outline-offset: 2px; }
.checkin-row.is-cancelled { opacity: .55; cursor: default; }
.checkin-state { font-size: 13px; color: var(--muted); }
.cancelled-list { margin-top: 0; }
/* Event photos: host upload on the Dalībnieki page, and the private photo page */
.photo-share { margin: 6px 0 22px; padding: 16px; border-radius: 18px; background: var(--white); border: 1.5px solid var(--line); display: grid; gap: 10px; }
.photo-share h2 { font-size: 24px; margin: 0; }
.photo-share .muted { margin: 0; }
.share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.share-grid.big { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 14px 0; }
@media (min-width: 700px) { .share-grid.big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.share-grid figure { margin: 0; display: grid; gap: 4px; }
.share-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--sage); }
.share-grid.big img { aspect-ratio: auto; max-height: 70vh; object-fit: contain; }
.share-grid .text-button { font-size: 13px; min-height: 32px; }
.upload-button { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 48px; cursor: pointer; }
.upload-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-button.is-disabled { opacity: .5; pointer-events: none; }
.photos-sent { margin: 0; font-weight: 800; color: #2f5a4a; }
.small-print { font-size: 13px; }
.photos-page { max-width: 760px; }
.photos-page h1 { font-family: var(--display); font-stretch: 80%; font-size: clamp(28px, 7vw, 40px); line-height: 1.05; margin: 2px 0 4px; }
.photo-share.is-waiting { opacity: .75; }
.photo-share .upload-button.is-disabled { display: flex; }
/* Status labels on host cards and My bookings: one colour per meaning */
:is(.manage-card, .my-row-end) .tag[class*="status-"] { border: 1.5px solid transparent; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
:is(.manage-card, .my-row-end) .tag.status-on { background: #d6e7da; color: #1f5a3c; }
:is(.manage-card, .my-row-end) .tag.status-wait { background: #f4e2bd; color: #6b4708; }
:is(.manage-card, .my-row-end) .tag.status-draft { background: transparent; color: var(--ink); border: 1.5px dashed rgba(15, 63, 73, .45); }
:is(.manage-card, .my-row-end) .tag.status-done { background: #e3ddd4; color: #56676a; }
:is(.manage-card, .my-row-end) .tag.status-off { background: #f6dcd8; color: #7f0508; }
/* Host card buttons share one row on a phone: equal widths, slightly smaller text */
.card-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.card-actions .button { padding-inline: 8px; font-size: 14px; white-space: nowrap; }
/* Host cards: compact, date and places on one line */
.manage-card { padding: 16px; }
.manage-card h3 { margin: 10px 0 4px; }
.manage-card .manage-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
/* Event form: the main button first, preview and draft smaller under it */
.editor-actions { display: grid; gap: 10px; justify-items: start; }
.minor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.minor-actions .button { min-height: 38px; padding: 0 14px; font-size: 14px; }
.contact-summary { margin: 18px 0 14px; }
.contact-summary strong { color: var(--ink); overflow-wrap: anywhere; }
/* Categories: one neutral style for cards, labels and filters; each is told apart by its small icon, not a colour */
.filters [data-filter="move"],.event-card.move,.tag.move,
.filters [data-filter="connect"],.event-card.connect,.tag.connect,
.filters [data-filter="learn"],.event-card.learn,.tag.learn,
.filters [data-filter="other"],.event-card.other,.tag.other { --category: var(--white); --category-ink: var(--ink); }
.event-card .card-meta .tag, .event-page .tag, .detail-meta .tag { background: rgba(15, 63, 73, .08); color: var(--ink); }
.tag .ui-icon { width: 1.15em; height: 1.15em; margin: -2px 4px 0 -1px; vertical-align: middle; }
.filters button:not([data-filter="all"]) { background: var(--white); color: var(--ink); border-color: var(--line); }
.filters button.selected:not([data-filter="all"]) { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }
.event-card .card-spots { background: rgba(15, 63, 73, .08); color: var(--ink); }
/* Category symbols: each sits in a small bright circle with a navy drawing, the only place a category has its own colour
   (since 1 Nov 2026: coral Sporto, sky blue Satiec, yellow Mācies, lilac Cits; bright enough to stand out on the navy page). Cards stay calm. */
.filters .ui-icon, .tag .ui-icon { box-sizing: border-box; border-radius: 50%; padding: 3px; stroke-width: 2.4; color: #000080; background: var(--cat-bright, var(--ink)); }
.filters [data-filter="move"], .event-card.move, .tag.move { --cat-bright: #ff6b5b; }
.filters [data-filter="connect"], .event-card.connect, .tag.connect { --cat-bright: #5ab8ff; }
.filters [data-filter="learn"], .event-card.learn, .tag.learn { --cat-bright: #ffc940; }
.filters [data-filter="other"], .event-card.other, .tag.other { --cat-bright: #b48cff; }
.filters button.selected .ui-icon { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
.tag .ui-icon { width: 1.5em; height: 1.5em; margin: -3px 5px -2px -4px; }
.filters .ui-icon { width: 22px; height: 22px; }
@media (max-width: 760px) { .filters .ui-icon { width: 17px; height: 17px; padding: 2px; } }
/* Event dates on cards and in Mani pieteikumi: plain, easy-to-read text instead of typewriter capitals.
   On cards the date sits on the right of the category and wraps instead of being cut off. */
.event-card .card-body .event-time, .my-row .event-time { font-family: var(--body); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.event-card .card-meta { justify-content: space-between; }
.event-card .card-meta .event-time { margin-left: auto; text-align: right; white-space: normal; overflow: visible; }
/* ===== Five UX ideas (Oct 2026) ===== */
/* 1 · Easier to tap: buttons and links at least 44 px tall (thumb size); the host line on cards a little darker */
.site-header .signin-link { min-height: 44px; display: inline-flex; align-items: center; }
.filters button { min-height: 44px; }
.event-card .place-link::after { content: ""; position: absolute; left: -6px; right: -6px; top: -14px; bottom: -14px; }
main > .back, .editor-page > .back { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 2px; }
.event-card .host-text { color: #3d4f52; }
/* 2 · Small moves that confirm things: buttons dip when pressed, "Pievieno…" while joining,
   the new face pops into the attendee circles, grey placeholders while the first page loads */
.button { transition: background-color .15s, border-color .15s, color .15s, transform .12s ease; }
.button:active:not(:disabled), .filters button:active { transform: scale(.97); }
.button.is-busy { cursor: progress; opacity: .9; }
@keyframes join-pop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes join-ring { 0%, 70% { box-shadow: 0 0 0 3px var(--burgundy-light); } 100% { box-shadow: 0 0 0 3px transparent; } }
.going-bubbles.just-joined > :last-child { border-radius: 50%; animation: join-pop .7s cubic-bezier(.2, 1.4, .4, 1) both, join-ring 2.4s ease-out both; }
.skeleton { display: grid; gap: 14px; padding-top: 12px; }
.sk-banner, .sk-heading, .sk-photo, .sk-line { border-radius: 12px; background: linear-gradient(100deg, #e3dcd2 30%, #efe9e2 50%, #e3dcd2 70%) 0 0 / 300% 100%; animation: sk-shine 1.4s ease-in-out infinite; }
.sk-banner { height: clamp(220px, 34vh, 290px); border-radius: 22px; }
.sk-heading { height: 34px; width: 45%; margin-top: 6px; }
.sk-card { display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.sk-photo { aspect-ratio: 4 / 3; }
.sk-line { height: 18px; }
.sk-line.short { width: 60%; }
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .sk-banner, .sk-heading, .sk-photo, .sk-line, .going-bubbles.just-joined > :last-child { animation: none; }
  .button:active:not(:disabled), .filters button:active { transform: none; }
}
/* 4 · "Tavs nākamais pasākums" on top of the first page, only for people who joined something */
.next-event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px; border-radius: 18px; background: var(--white); border: 1.5px solid rgba(15, 63, 73, .55); color: var(--ink); text-decoration: none; box-shadow: 0 10px 24px -20px rgba(15, 63, 73, .6); }
.next-event:hover { border-color: var(--ink); }
.next-day { min-width: 66px; padding: 9px 10px; border-radius: 12px; background: var(--burgundy); color: #fff; font-family: var(--display); font-stretch: 80%; font-weight: 900; font-size: 17px; line-height: 1.1; text-align: center; }
.next-day::first-letter { text-transform: uppercase; }
.next-copy { display: grid; gap: 1px; min-width: 0; }
.next-copy small { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.next-copy strong { font-family: var(--display); font-stretch: 75%; font-size: 20px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-copy span { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-arrow { font-size: 22px; color: var(--burgundy); }
/* 5 · Long titles keep their size: narrower letters, and up to three lines on cards instead of being cut off */
.event-card h3.is-long { font-stretch: 62%; -webkit-line-clamp: 3; }
.detail-title.is-long { font-stretch: 62%; }
/* Phones: when the updated terms still need a tick, the hidden join box opens as a small sheet at the bottom */
.join-panel .sheet-close { display: none; }
@media (max-width: 900px) {
  .join-panel.bar-joins.as-sheet { display: block; position: fixed; top: auto; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 45; max-height: 75vh; overflow: auto; margin: 0; box-shadow: 0 24px 60px -12px rgba(15, 63, 73, .5); }
  .join-panel.as-sheet .sheet-close { display: block; margin: -6px -6px 4px auto; min-height: 44px; }
}
/* ===== Navy theme (owner's choice, 1 Nov 2026): the banner's navy blue as the main colour, white and black as extras =====
   Navy page, white top bar, white cards with navy titles and black reading text; navy buttons inside cards, white outlines on the navy page. */
:root {
  --navy: #000080;
  --navy-deep: #00005c;
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #111111;
  --green: #111111;
  --muted: #5c5c68;
  --line: #e2e2ea;
  --sage: #eff0f6; --cream: #eff0f6; --blue: #eff0f6;
  --daugava: #000080; --daugava-ink: #000080; --daugava-soft: #e6e6f5;
  --saule: #000080;
  --burgundy: #000080;
  --burgundy-light: #000080;
  --aqua-deep: #00005c;
  --on-navy: #ffffff;
  --on-navy-muted: rgba(255, 255, 255, .72);
  --on-navy-line: rgba(255, 255, 255, .5);
}
/* :root, not html: the first :root rule also sets a background and would win, leaving white below short pages */
:root, body { background: var(--navy); }
/* Top bar: white, the logo and menu in navy */
.site-header { background: #fff; border-bottom-color: #fff; box-shadow: none; backdrop-filter: none; }
.site-header .wordmark .wordmark-mark { color: var(--navy); }
.wordmark svg path { stroke: var(--navy); }
.header nav.topnav a { color: var(--navy); }
.header nav.topnav a:hover { color: var(--navy); }
.header nav.topnav a.current { background: var(--navy); color: #fff; }
.site-header .button.signin-link, .site-header .button.signin-link:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
/* Text that sits straight on the navy page is white */
.section-heading h2, .page-heading h1, .page-heading h2, .page-heading .eyebrow, .list-heading, main > .back, .editor-page > .back, .small-note,
.sample-heading h3, .sample-heading p, .pagination > span { color: var(--on-navy); }
.small-note, .text-link { color: var(--on-navy-muted); }
.count { background: #fff; color: var(--navy); border-color: #fff; }
.about-platform { border-top-color: var(--on-navy-line); color: var(--on-navy); }
.about-platform summary, .hero-purpose section h2, .hero-purpose section .hero-signature { color: var(--on-navy); }
.hero-purpose section p { color: var(--on-navy-muted); }
.footer { color: var(--on-navy-muted); border-top-color: var(--on-navy-line); }
.footer a, .footer .small { color: var(--on-navy); }
.places-credit { color: var(--on-navy-muted); }
.footer .languages button { background: transparent; color: var(--on-navy); border-color: var(--on-navy-line); }
.footer .languages .selected { background: #fff; color: var(--navy); border-color: #fff; }
/* Filters on navy: white outlines, solid white when chosen */
.filters button, .filters button[data-filter="all"], .filters button:not([data-filter="all"]) { background: transparent; color: var(--on-navy); border: 1.5px solid var(--on-navy-line); }
.filters button.selected, .filters button[data-filter="all"].selected, .filters button.selected:not([data-filter="all"]) { background: #fff; color: var(--navy); border-color: #fff; box-shadow: none; }
.filters .ui-icon { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
/* Walking figure in white */
.walk-ground { stroke: #fff; opacity: .35; }
.walk-figure line { stroke: #fff; }
.walk-figure circle { fill: var(--navy); stroke: #fff; }
.walk-mark { fill: #fff; }
/* Banner: its navy slide sits on the navy page, so a faint white edge keeps its shape */
.photo-banner { background: var(--navy); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
/* White cards with black text */
.event-card, .next-event, .my-row, .empty-state, .panel, .manage-card, .mail-card { background: #fff; border-color: #fff; }
.event-card:hover { box-shadow: 0 18px 34px -20px rgba(0, 0, 0, .6); }
.next-event:hover { border-color: #fff; }
.card-photo, .event-card .card-media, .event-page .detail-photo { background: var(--sage); }
.event-card .card-meta .tag, .event-page .tag, .detail-meta .tag, .event-card .card-spots { background: #eef0f6; color: var(--ink); }
.event-card .host-text { color: #444; }
/* Buttons: navy in white cards, white on the navy page */
.button { background: var(--navy); border-color: var(--navy); color: #fff; }
.button:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.button.secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.button.secondary:hover { background: var(--sage); }
/* Pages whose text sits on the page get a white sheet */
.event-page .event-main, .auth-wrap, .privacy-page, .checkin-page, .photos-page { background: #fff; border-radius: 24px; padding: 18px; }
@media (min-width: 761px) { .event-page .event-main, .auth-wrap, .privacy-page, .checkin-page, .photos-page { padding: 28px; } }
.event-page .join-panel { border-color: #fff; }
.join-panel .join-pitch { background: var(--navy); color: #fff; }
/* The +1% moment on navy */
.joy { background: var(--navy); }
.joy-card small { color: var(--on-navy-muted); }
.joy-mark path { stroke: #fff; }
.joy .burst-daugava { background: #9aa3ff; }
.joy .burst-saule, .joy .burst-ink { background: #fff; }
/* Titles on white surfaces are navy, so the blue carries the page; black stays for reading text */
.event-card h3, .event-card .card-title-link, .next-copy strong, .my-row h3, .manage-card h3, .empty-state h3, .event-main h1, .event-main h2,
.auth-wrap h1, .auth-wrap h2, .privacy-page h1, .privacy-page h2, .privacy-page h3, .checkin-page h1, .photos-page h1,
.panel h1, .panel h2, .panel h3, .mail-card h3, .stats strong, dialog h2 { color: var(--navy); }
/* More things that sit straight on the navy page: the main button turns white, tabs and notes are white */
.page-heading .button:not(.secondary), .page-heading .button:not(.secondary):hover { background: #fff; color: var(--navy); border-color: #fff; }
.tabs { border-bottom-color: var(--on-navy-line); }
.tabs a, .host-tabs button { color: var(--on-navy-muted); }
.tabs .selected { color: #fff; border-bottom-color: #fff; }
.host-tabs button.selected { color: #fff; border-color: #fff; }
main > .muted, .host-empty { color: var(--on-navy-muted); }
.export-panel { border-top-color: var(--on-navy-line); }
.export-panel h2 { color: #fff; }
dialog::backdrop { background: rgba(0, 0, 40, .72); }
/* The admin's event review page gets the same white sheet as the public event page */
.detail-grid > article { background: #fff; border-radius: 24px; padding: 18px; }
@media (min-width: 761px) { .detail-grid > article { padding: 28px; } }
.detail-grid > article h1, .detail-grid > article h2, .detail-grid .join-panel h2 { color: var(--navy); }
.detail-grid .join-panel { background: #fff; border-color: #fff; }
/* Grey placeholders while the first page loads: soft white on the navy page, light grey inside the white cards */
.sk-banner, .sk-heading { background: linear-gradient(100deg, rgba(255, 255, 255, .1) 30%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .1) 70%) 0 0 / 300% 100%; }
.sk-photo, .sk-line { background: linear-gradient(100deg, #e8e9f2 30%, #f3f4f9 50%, #e8e9f2 70%) 0 0 / 300% 100%; }
.sk-card { border-color: #fff; }
/* Pictures for events without a photo: soft tints of the category colours with a navy drawing */
.tone-0 { background: #ffe6e2; color: var(--navy); } .tone-1 { background: #e2f1ff; color: var(--navy); } .tone-2 { background: #fff3d1; color: var(--navy); }
.tone-3 { background: #eee5ff; color: var(--navy); } .tone-4 { background: #e8e9f2; color: var(--navy); } .tone-5 { background: #dfe0f0; color: var(--navy); }
/* The 1% in the top bar glitches for a moment now and then: a short shake with a coral and sky blue split (glitchLogo in app.js) */
.site-header .wordmark-mark.glitch { animation: logo-glitch .4s steps(1) 1; }
@keyframes logo-glitch {
  0% { transform: translate(-3px, 1px); text-shadow: 3px 0 #ff6b5b, -3px 0 #5ab8ff; }
  25% { transform: translate(3px, -1px) skewX(-8deg); text-shadow: -3px 0 #ff6b5b, 3px 0 #5ab8ff; }
  50% { transform: translate(-1px, 0); text-shadow: 2px 0 #ff6b5b, -2px 0 #5ab8ff; }
  75% { transform: translate(1px, 0); text-shadow: none; }
  100% { transform: none; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .site-header .wordmark-mark.glitch { animation: none; } }

/* Event form page: centred column on wide screens */
.editor-page { max-width: 800px; margin-inline: auto; }
/* Contact section above the footer */
.site-contact { margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--on-navy-line); color: var(--on-navy); }
.site-contact h2 { margin: 0 0 6px; color: var(--on-navy); }
.site-contact p { margin: 0 0 14px; color: var(--on-navy-muted); }
.site-contact ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.site-contact a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--on-navy-line); border-radius: 999px; color: var(--on-navy); text-decoration: none; font-weight: 600; }
.site-contact a:hover, .site-contact a:focus-visible { background: #fff; color: var(--navy); border-color: #fff; }
.site-contact + .footer { margin-top: 30px; }
.site-contact .site-contact-name { margin: 0 0 4px; color: var(--on-navy); font-weight: 700; }

/* Optional WhatsApp / Instagram contacts */
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.contact-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--navy); background: #fff; }
.contact-link:hover, .contact-link:focus-visible { border-color: var(--navy); }
.checkin-who .contact-links { margin-top: 6px; }
.contact-signin { display: inline-block; margin-top: 6px; font-size: 0.9em; }
.contact-extras { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 4px; margin: 18px 0; min-width: 0; }
.contact-extras legend { padding: 0 6px; font-weight: 700; }
.host-will-see { display: block; margin-top: 6px; }
.host-contact-choice small { display: block; font-weight: 400; color: var(--muted); }
.host-contact { margin: 14px 0 4px; }
.host-contact small { display: block; color: var(--muted); }
.host-contact .contact-links { margin-top: 6px; }
/* The join bar names the contacts the host will see; it may take two lines. */
.join-bar .bar-visible.bar-contacts { white-space: normal; line-height: 1.25; }
/* WhatsApp / Instagram marks in the profile fields and on the contact buttons */
.brand-icon { width: 22px; height: 22px; flex: none; display: block; }
.contact-link { gap: 8px; }
.contact-link.icon-only { width: 44px; padding: 0; justify-content: center; }
.contact-link.icon-only .brand-icon { width: 26px; height: 26px; }
.contact-input { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.contact-input .brand-icon { width: 32px; height: 32px; }
.contact-input input { flex: 1; min-width: 0; }

/* Site check fixes (5 Nov 2026) */
/* Phones show one card per row, so short titles need not reserve a second line */
@media (max-width: 719px) { .event-card h3 { min-height: 0; } }
/* Sign-in page: "or" between the two ways in, centred between thin lines */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; color: var(--muted); font-size: .875rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Readable phone menu and sign-in button */
@media (max-width: 760px) {
  .header nav.topnav a { font-size: 12.5px; }
  .site-header .signin-link { font-size: 13px; min-height: 40px; }
}
/* Finger-sized tap areas without changing the look */
.pb-dots button { position: relative; }
.pb-dots button::after { content: ""; position: absolute; inset: -10px; }
.section-heading .text-link { min-height: 44px; display: inline-flex; align-items: center; }
.editor-actions .button { min-height: 44px; }
.my-row [data-action="cancel-booking"] { white-space: nowrap; min-height: 44px; }
.not-found p { margin: 8px 0 20px; }
/* "Mani pieteikumi": status and "Atcelt dalību" wrap onto two lines instead of being cut off */
@media (max-width: 760px) { .my-row-end { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 0; } }
/* Join box: one "Pievienoties +1%" button, no repeated "Pievienojies" heading or slogan (5 Nov 2026) */
.join-head.only-places { justify-content: flex-start; }
.join-head.only-places .places { text-align: left; max-width: none; }
.join-panel .bar-plus { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 800; }
/* The phone sheet only asks for the one-time agreement; places are already in the bar below */
.join-panel.as-sheet .join-head, .join-panel.as-sheet .meter { display: none; }
