@font-face {
  font-family: Vazir;
  src: url("/assets/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f5f7f8;
  color: #223d3a;
  font-family: Vazir, Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #de972c;
  outline-offset: 3px;
}
button {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 1.8rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.muted {
  color: #657873;
}
.small {
  font-size: 0.875rem;
}
.eyebrow {
  font-size: 0.875rem;
  color: #498174;
  font-weight: 600;
}
.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.btn {
  border: 1px solid #dce5e2;
  background: white;
  border-radius: 12px;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.6;
}
.btn:hover {
  background: #eff5f2;
}
.primary {
  background: #12594f;
  border-color: #12594f;
  color: white;
}
.primary:hover {
  background: #0b423a;
}
.soft {
  background: #e7f1ec;
  border-color: #e7f1ec;
  color: #12594f;
}
.danger {
  color: #a53939;
}
.ghost {
  background: transparent;
  border: 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.icon-btn:hover {
  background: #eff5f2;
}
.skip {
  position: fixed;
  top: -100px;
  right: 10px;
  z-index: 100;
  background: #fff;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: 236px;
  background: #fff;
  border-left: 1px solid #e1e8e5;
  padding: 30px 23px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 40px;
}
.brand img {
  width: 43px;
  height: 43px;
}
.brand strong {
  font-size: 1.55rem;
  display: block;
  line-height: 1.4;
}
.brand small {
  font-size: 0.75rem;
  color: #768780;
}
.nav-links {
  display: grid;
  gap: 7px;
}
.nav-link {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 12px;
  color: #657671;
  min-height: 49px;
}
.nav-link.active {
  background: #e9f3ed;
  color: #12594f;
  font-weight: 700;
}
.nav-link.active .icon {
  stroke-width: 2.3;
}
.nav-link:hover {
  background: #f0f5f3;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  background: #f5f8f6;
  border: 1px solid #e7eeea;
  padding: 17px;
  border-radius: 15px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.sidebar-note strong {
  display: block;
  margin: 7px 0;
}
.shell {
  margin-right: 236px;
}
.topbar {
  height: 84px;
  border-bottom: 1px solid #e1e8e5;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 16px;
}
.topbar-title {
  font-weight: 600;
}
.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #e9dfcc;
  color: #685331;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.teal {
  background: #dceee5;
  color: #12594f;
}
main {
  max-width: 1400px;
  padding: 30px 40px 35px;
  margin: auto;
  min-height: calc(100vh - 145px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.page-heading p {
  margin: 0;
  color: #6a7c77;
}
.demo-strip {
  background: #fff8e8;
  border: 1px solid #f0dfbd;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 0.81rem;
  color: #715925;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-strip button {
  font-size: 0.81rem;
  margin-right: auto;
  flex-shrink: 0;
}
.discovery-cover {
  position: relative;
  isolation: isolate;
  min-height: 250px;
  border-radius: 22px;
  overflow: hidden;
  background: #174d43;
  margin-bottom: 24px;
  color: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.discovery-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.discovery-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(5, 43, 35, 0.91),
    rgba(5, 43, 35, 0.48) 60%,
    rgba(5, 43, 35, 0.1)
  );
  z-index: -1;
}
.discovery-cover h1 {
  font-size: 2rem;
}
.discovery-cover p {
  color: #e4eee8;
  margin-bottom: 22px;
}
.cover-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #ffffff20;
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border: 1px solid #ffffff50;
  border-radius: 30px;
  font-size: 0.75rem;
}
.search-form {
  display: flex;
  gap: 10px;
  max-width: 630px;
  background: white;
  border-radius: 14px;
  padding: 7px;
  color: #254038;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 0 10px;
  min-width: 0;
}
.search-field input {
  border: 0;
  padding: 8px 0;
  outline: none !important;
  width: 100%;
  min-width: 0;
  background: white;
}
.search-field .icon {
  color: #7b8d85;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 26px;
  align-items: start;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 15px;
}
.section-title h2 {
  margin: 0;
}
.link {
  color: #126555;
  background: none;
  border: 0;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 3px 1px 12px;
  scrollbar-width: thin;
  max-width: 100%;
}
.chip {
  white-space: nowrap;
  border: 1px solid #dde7e2;
  background: white;
  border-radius: 30px;
  padding: 8px 15px;
  font-size: 0.875rem;
  min-height: 44px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.chip.active {
  background: #12594f;
  color: white;
  border-color: #12594f;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.trip-card {
  background: #fff;
  border: 1px solid #e2e9e5;
  border-radius: 17px;
  overflow: hidden;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.trip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px #1b4b3510;
}
.trip-image {
  height: 174px;
  background: #ddebe5;
  position: relative;
  overflow: hidden;
}
.trip-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trip-image .badge {
  position: absolute;
  top: 13px;
  right: 13px;
  background: #fffffff0;
}
.image-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  background: #e3ede7;
  color: #5b8071;
}
.image-fallback .icon {
  width: 48px;
  height: 48px;
}
.card-body {
  padding: 17px;
  flex: 1;
}
.card-body h3 {
  margin-top: 8px;
}
.meta {
  color: #71837b;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
}
.meta .icon {
  width: 16px;
  height: 16px;
}
.card-footer {
  border-top: 1px solid #edf1ee;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.875rem;
}
.card-footer strong {
  color: #12594f;
}
.badge {
  font-size: 0.75rem;
  color: #326b53;
  background: #edf5ee;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge.amber {
  color: #7b5b21;
  background: #fff3d9;
}
.badge.gray {
  color: #5d6f68;
  background: #eef1ef;
}
.rail {
  display: grid;
  gap: 20px;
}
.panel {
  border: 1px solid #e1e8e4;
  background: #fff;
  border-radius: 17px;
  padding: 22px;
}
.club-panel {
  background: #12594f;
  color: white;
  position: relative;
  overflow: hidden;
}
.club-panel p {
  color: #d3e6db;
  font-size: 0.875rem;
}
.club-panel .badge {
  background: #ffffff20;
  color: #f5d996;
}
.club-panel h3 {
  font-size: 1.2rem;
  margin: 15px 0 10px;
}
.club-panel .btn {
  background: #f1c176;
  border: 0;
  color: #264638;
  width: 100%;
}
.club-panel .icon.large {
  width: 48px;
  height: 48px;
  margin-top: 10px;
  color: #f1cf90;
}
.rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 15px;
  font-size: 0.875rem;
}
.rule-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rule-list .icon {
  color: #498574;
  margin-top: 3px;
}
.callout {
  background: #edf5f0;
  border-right: 3px solid #5d9a79;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #486759;
}
.post {
  background: #fff;
  border: 1px solid #e1e8e4;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 22px;
}
.post-head {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 18px 20px;
}
.post-head button:first-child {
  padding: 0;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: right;
}
.post-head .report-button {
  margin-right: auto;
}
.post-text {
  padding: 0 20px 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.post-image {
  width: 100%;
  max-height: 410px;
  object-fit: cover;
}
.post-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #f0f3f1;
}
.post-actions button {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 0.875rem;
}
.post-actions .saved {
  margin-right: auto;
}
.selected {
  color: #13604f !important;
  font-weight: 700;
}
.composer {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 1px solid #e1e8e4;
  background: white;
  border-radius: 16px;
  padding: 17px;
  color: #7a8982;
  text-align: right;
  margin-bottom: 22px;
}
.composer .icon {
  margin-right: auto;
  color: #407c65;
}
.empty {
  padding: 45px 25px;
  text-align: center;
  border: 1px dashed #cddcd3;
  border-radius: 16px;
  background: #fff;
  grid-column: 1/-1;
}
.empty .icon {
  width: 38px;
  height: 38px;
  color: #69917a;
  margin-bottom: 10px;
}
.empty h3 {
  margin-bottom: 8px;
}
.empty p {
  color: #718279;
  margin-bottom: 15px;
}
.loading {
  padding: 60px;
  text-align: center;
  color: #74867b;
}
.loading:before {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  border: 3px solid #dbe8e0;
  border-top-color: #12594f;
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-grid {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  gap: 17px;
}
.form-grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.full {
  grid-column: 1/-1;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d4e0d8;
  background: #fff;
  border-radius: 10px;
  min-height: 47px;
  color: #294236;
  resize: vertical;
}
.field textarea {
  min-height: 105px;
  line-height: 1.8;
}
.field small {
  font-weight: 400;
  color: #77887d;
}
.field input[type="file"] {
  font-size: 0.8rem;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}
.form-error {
  color: #a03131;
  padding: 10px 13px;
  background: #fff0ed;
  border-radius: 9px;
  margin-bottom: 13px;
  font-size: 0.875rem;
}
.form-error:empty {
  display: none;
}
.detail-cover {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 17px;
  margin-bottom: 25px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 25px;
}
.detail-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 17px;
  margin: 22px 0;
}
.fact {
  background: #f3f7f4;
  border-radius: 12px;
  padding: 13px;
}
.fact small {
  display: block;
  color: #6b8173;
  font-size: 0.81rem;
}
.fact strong {
  font-size: 0.94rem;
}
.stack {
  display: grid;
  gap: 16px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.row.wrap {
  flex-wrap: wrap;
}
.person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.divider {
  border: 0;
  border-top: 1px solid #e5ece7;
  margin: 22px 0;
}
.message {
  background: #f1f6f2;
  border-radius: 12px;
  padding: 12px 15px;
  overflow-wrap: anywhere;
}
.message p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}
.message small {
  font-size: 0.75rem;
  color: #718378;
}
.request {
  border: 1px solid #e1e9e3;
  border-radius: 13px;
  padding: 15px;
}
.request p {
  margin-bottom: 10px;
}
.profile-cover {
  height: 105px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(120deg, #12594f, #337c66);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 25px;
  color: #d8b274;
}
.profile-panel {
  padding: 0;
  overflow: hidden;
}
.profile-info {
  padding: 0 26px 25px;
}
.profile-info > .avatar {
  width: 75px;
  height: 75px;
  border: 5px solid white;
  margin-top: -37px;
  font-size: 1.7rem;
  position: relative;
}
.profile-info h1 {
  margin-top: 13px;
}
.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  padding: 20px;
  background: #fff;
  border: 1px solid #e1e9e3;
  border-radius: 15px;
  text-align: center;
}
.stat strong {
  display: block;
  color: #12594f;
  font-size: 1.75rem;
}
.stat span {
  font-size: 0.875rem;
  color: #647a6c;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 22px 0;
}
.achievement {
  background: #fff;
  border: 1px solid #e1e9e3;
  border-radius: 16px;
  padding: 24px 15px;
  text-align: center;
}
.achievement .medal {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f3f1;
  color: #8c9b91;
  margin: 0 auto 13px;
}
.achievement.earned .medal {
  background: #f9e5b8;
  color: #9e711c;
}
.medal .icon {
  width: 30px;
  height: 30px;
}
.achievement p {
  font-size: 0.81rem;
  color: #6f8075;
  margin: 0;
}
.achievement h3 {
  font-size: 0.94rem;
}
.progress-card {
  background: #12594f;
  color: white;
  padding: 28px;
  border-radius: 18px;
}
.progress-card p {
  color: #d7e8db;
}
.progress-card progress {
  width: 100%;
  height: 12px;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  accent-color: #f1c176;
}
.progress-card progress::-webkit-progress-bar {
  background: #ffffff30;
}
.progress-card progress::-webkit-progress-value {
  background: #f1c176;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.tabs .btn.active {
  background: #12594f;
  color: white;
}
.pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 25px 0;
}
dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: 90dvh;
  border: 0;
  border-radius: 22px;
  padding: 0;
  color: #223d3a;
  box-shadow: 0 25px 100px #143c3540;
}
dialog::backdrop {
  background: #102d2855;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-head h2 {
  margin: 0;
}
.modal-body {
  padding: 22px 24px 26px;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: #183e32;
  color: white;
  border-radius: 13px;
  box-shadow: 0 8px 25px #123b3230;
  z-index: 100;
  max-width: 90%;
  font-size: 0.94rem;
}
.toast.error {
  background: #8a3e31;
}
footer {
  max-width: 1400px;
  margin: auto;
  padding: 0 40px 25px;
  color: #829087;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.mobile-nav {
  display: none;
}
#connection {
  background: #fff0d5;
  color: #785729;
  padding: 9px 30px;
  font-size: 0.875rem;
}
.offline-page {
  max-width: 550px;
  padding: 80px 25px;
}
.offline-page img {
  margin-bottom: 22px;
}
.list-entry {
  background: #fff;
  border: 1px solid #e2e9e4;
  border-radius: 13px;
  padding: 17px;
  margin-bottom: 12px;
}
.list-entry h3 {
  margin: 0;
}
.list-entry p {
  margin: 8px 0;
  color: #6a7e70;
}
.btn.block {
  width: 100%;
}
.info-copy {
  max-width: 820px;
}
.info-copy li {
  margin: 8px 0;
}
.alert {
  background: #fff7e7;
  color: #755925;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
}
.grow {
  flex: 1;
  min-width: 0;
}
.nowrap {
  white-space: nowrap;
}
time {
  font-size: 0.8rem;
  color: #748578;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6a8072;
  margin-bottom: 20px;
  font-size: 0.875rem;
}
.listing-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #12594f;
}
.hidden {
  display: none !important;
}
@media (min-width: 1600px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding: 25px 17px;
  }
  .shell {
    margin-right: 205px;
  }
  main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 20px;
  }
  .rail .panel {
    padding: 17px;
  }
  .card-body {
    padding: 14px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
}
@media (max-width: 1000px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .rail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout > .stack {
    grid-row: 1;
  }
  .discovery-cover h1 {
    font-size: 1.8rem;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    height: 67px;
    padding: 0 18px;
  }
  .topbar-title {
    font-size: 1.1rem;
  }
  .topbar-actions .name,
  .desktop-only {
    display: none;
  }
  .topbar .btn {
    padding: 8px 12px;
    font-size: 0.81rem;
  }
  main {
    padding: 22px 17px 30px;
  }
  .page-heading {
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 1.5rem;
  }
  .page-heading p {
    font-size: 0.875rem;
  }
  .page-heading > .btn {
    padding: 9px 12px;
    font-size: 0.81rem;
    flex-shrink: 0;
  }
  .discovery-cover {
    padding: 24px 20px;
    min-height: 258px;
    border-radius: 18px;
  }
  .discovery-cover h1 {
    font-size: 1.6rem;
    max-width: 240px;
  }
  .discovery-cover p {
    font-size: 0.875rem;
    max-width: 230px;
    margin-bottom: 18px;
  }
  .cover-tag {
    font-size: 0.68rem;
    top: 12px;
    left: 12px;
  }
  .search-form {
    gap: 0;
  }
  .search-form .btn {
    padding: 8px 12px;
  }
  .cards {
    gap: 13px;
  }
  .trip-image {
    height: 145px;
  }
  .card-body {
    padding: 12px;
  }
  .card-body h3 {
    font-size: 0.94rem;
  }
  .card-footer {
    padding: 10px 12px;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 6px;
  }
  .meta {
    font-size: 0.76rem;
  }
  .rail {
    grid-template-columns: 1fr;
  }
  .rail .panel:not(.club-panel) {
    display: none;
  }
  .mobile-nav {
    position: fixed;
    display: flex;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 25;
    justify-content: space-around;
    background: #fffffffa;
    border-top: 1px solid #dce7df;
    padding: 8px 4px max(8px, env(safe-area-inset-bottom));
    backdrop-filter: blur(10px);
  }
  .mobile-nav a {
    display: grid;
    gap: 3px;
    justify-items: center;
    align-content: center;
    min-width: 55px;
    min-height: 45px;
    color: #75877b;
    font-size: 0.69rem;
    border-radius: 10px;
  }
  .mobile-nav a.active {
    color: #12594f;
    font-weight: 700;
  }
  .mobile-nav a.active .icon {
    stroke-width: 2.5;
  }
  .mobile-nav .icon {
    width: 22px;
    height: 22px;
  }
  footer {
    padding: 0 18px 95px;
    font-size: 0.7rem;
    flex-direction: column;
    gap: 6px;
  }
  .toast {
    bottom: 90px;
    min-width: 240px;
    text-align: center;
  }
  .demo-strip {
    font-size: 0.72rem;
    padding: 8px 11px;
  }
  .demo-strip button {
    font-size: 0.72rem;
    padding: 5px;
    min-height: 34px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 14px 7px;
  }
  .stat strong {
    font-size: 1.5rem;
  }
  .stat span {
    font-size: 0.76rem;
  }
  .badge-grid {
    gap: 8px;
  }
  .achievement {
    padding: 18px 8px;
  }
  .achievement h3 {
    font-size: 0.81rem;
  }
  .achievement p {
    font-size: 0.72rem;
  }
  .achievement .medal {
    width: 50px;
    height: 50px;
  }
  .form-grid.two {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-head {
    padding: 15px;
  }
  .post-text {
    padding: 0 15px 15px;
  }
  .post-image {
    max-height: 350px;
  }
  .post-actions {
    gap: 4px;
    padding: 8px;
  }
  .post-actions button {
    padding: 8px;
  }
  .detail-cover {
    height: 220px;
  }
  .panel {
    padding: 19px;
  }
  .form-actions .btn {
    flex: 1;
  }
  .detail-layout > .stack {
    grid-row: auto;
  }
  .profile-info {
    padding: 0 20px 20px;
  }
}
@media (max-width: 390px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .trip-image {
    height: 190px;
  }
  .search-field {
    padding: 0 4px;
  }
  .search-form .btn {
    padding: 8px;
  }
  .topbar-actions {
    gap: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
/* Grid children must shrink below their horizontal filter strip's intrinsic width. */
.content-grid > *,
.detail-layout > *,
.cards > * {
  min-width: 0;
}
.search-form > .btn {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .cover-tag {
    display: none;
  }
}
/* DamZea: warm daylight, quiet forest greens and generous breathing room. */
body {
  background: #f6f5ef;
  color: #263e36;
}
.brand-latin {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 2px;
  font-weight: 500;
  color: #74816b;
  line-height: 1.2;
}
.brand small {
  font-size: 0.7rem;
}
.sidebar {
  background: #fafaf5;
}
.nav-link {
  padding-top: 9px;
  padding-bottom: 9px;
}
.sidebar-bottom {
  margin-top: 20px;
}
.topbar {
  background: rgba(250, 250, 245, 0.95);
}
.page-heading {
  gap: 20px;
}
.quick-paths {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 30px;
}
.quick-paths a {
  border: 1px solid #dce4d7;
  background: #fffefa;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
}
.journal-cover {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.journal-placeholder {
  height: 170px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #e3eadc, #f5e4c8);
  color: #416852;
}
.journal-placeholder .icon {
  width: 64px;
  height: 64px;
}
.journey-media {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 16px;
  background: #edf0e6;
}
.journal-gallery {
  display: grid;
  gap: 18px;
}
.journal-text {
  font-size: 1.06rem;
  line-height: 2.3;
}
.journey-stops {
  padding-right: 24px;
}
.journey-stops li {
  padding: 0 0 24px 0;
}
.journey-stops a {
  display: block;
}
.stop-row {
  background: #f3f5ed;
  padding: 16px;
  border-radius: 12px;
  margin: 10px 0;
}
.route-summary {
  background: #eaf1e5;
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
  display: grid;
  gap: 4px;
}
.route-summary strong {
  font-size: 1.3rem;
}
.route-summary span {
  font-size: 0.8rem;
}
.forecast-days {
  display: flex;
  overflow: auto;
  gap: 12px;
  padding-bottom: 8px;
}
.forecast-day {
  min-width: 135px;
  max-width: 165px;
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #fafaf6;
  border: 1px solid #e1e6d9;
  border-radius: 14px;
}
.forecast-day small {
  font-size: 0.72rem;
}
.planning-fields {
  background: #fafbf6;
  border-radius: 16px;
  padding: 18px;
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.chat-log .message {
  max-width: 85%;
  align-self: flex-end;
  min-width: 130px;
}
.chat-log .mine {
  align-self: flex-start;
  background: #e5eee0;
}
.review-actions {
  margin: 12px 0;
}
.gear-grid {
  display: grid;
  gap: 20px;
}
.gear-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
}
.gear-card > img {
  width: 170px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}
.gear-symbol {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  border-radius: 16px;
  background: #edf0e3;
  color: #5c7453;
}
.gear-symbol .icon {
  width: 54px;
  height: 54px;
}
.nearby-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.nearby-layout > * {
  min-width: 0;
}
.nearby-results {
  margin-top: 24px;
}
.radar {
  position: relative;
  margin: 24px auto 10px;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #e1ebd8 0, #f1f5eb 67%, transparent 68%);
  overflow: hidden;
}
.radar-ring {
  position: absolute;
  border: 1px solid #aebf9c;
  border-radius: 50%;
  inset: 5%;
}
.radar-ring.r2 {
  inset: 20%;
}
.radar-ring.r3 {
  inset: 35%;
}
.radar-self {
  position: absolute;
  inset: 42%;
  display: grid;
  place-items: center;
  background: #43614c;
  color: white;
  border-radius: 50%;
}
.radar-person {
  position: absolute;
  z-index: 1;
}
.radar-person.p0 {
  top: 13%;
  left: 48%;
}
.radar-person.p1 {
  top: 39%;
  left: 16%;
}
.radar-person.p2 {
  top: 67%;
  left: 38%;
}
.radar-person.p3 {
  top: 36%;
  right: 8%;
}
.radar-person.p4 {
  top: 12%;
  left: 20%;
}
.radar-person.p5 {
  top: 67%;
  right: 17%;
}
.radar-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.74rem;
  color: #48634b;
}
.center {
  text-align: center;
}
.ready-card {
  background: linear-gradient(125deg, #eff3df, #faf7e9);
  border: 1px solid #d4debd;
}
.ready-seal {
  background: #416147;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 0.82rem;
}
.choice-card {
  border: 1px solid #e4d8b8;
  background: #fffdf5;
}
.choice-medal {
  color: #8a691f;
}
.choice-rules {
  line-height: 2;
}
.form-grid > * {
  min-width: 0;
}
.form-grid input[type="file"] {
  max-width: 100%;
}
@media (max-width: 800px) {
  .nearby-layout {
    grid-template-columns: 1fr;
  }
  .gear-card {
    grid-template-columns: 95px 1fr;
    gap: 14px;
  }
  .gear-card > img,
  .gear-symbol {
    width: 95px;
    height: 95px;
  }
  .gear-card h2 {
    font-size: 1.05rem;
  }
  .journal-cover {
    height: 200px;
  }
  .topbar-actions > .btn {
    font-size: 0.75rem;
    padding: 8px;
  }
  .topbar-actions {
    gap: 6px;
  }
  .topbar .person .name {
    display: none;
  }
  .planning-fields {
    padding: 12px;
  }
  .quick-paths {
    gap: 8px;
  }
  .quick-paths a {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .page-heading {
    align-items: flex-start;
  }
  .radar {
    max-width: 310px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* Visual discovery keeps the images prominent and the controls quiet. */
.discovery-heading {
  padding: 12px 0 16px;
  max-width: 700px;
}
.discovery-heading h1 {
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -1px;
}
.content-tabs {
  display: flex;
  gap: 9px;
  overflow: auto;
  padding: 6px 0 18px;
  white-space: nowrap;
}
.explore-filters {
  padding: 16px 20px;
  margin-bottom: 24px;
}
.explore-filters summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.explore-filters form {
  margin-top: 18px;
}
.discovery-grid {
  column-count: 3;
  column-gap: 18px;
}
/* The router restores position after replacing a view; browser anchoring must
   not apply a second offset when enhanced controls finish their layout. */
#main {
  overflow-anchor: none;
}
.discover-tile {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  vertical-align: top;
  margin-bottom: 18px;
  min-width: 0;
  background: #fffefa;
  border-radius: 22px;
  padding: 8px 8px 15px;
  border: 1px solid #e6e8de;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.discover-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #253e3310;
}
.discover-media {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background: #edf0e7;
}
.discover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-0 .discover-media {
  aspect-ratio: 4 / 5;
}
.media-1 .discover-media {
  aspect-ratio: 1;
}
.media-2 .discover-media {
  aspect-ratio: 5 / 4;
}
.media-3 .discover-media {
  aspect-ratio: 3 / 4;
}
.text-tile .discover-media {
  aspect-ratio: auto;
}
.text-tile .discover-text-cover {
  height: auto;
  min-height: 190px;
  padding-top: 52px;
}
.discover-text-cover > span {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.95;
}
.media-1 .discover-text-cover {
  background: linear-gradient(145deg, #e2eee7, #f3eddc);
}
.media-3 .discover-text-cover {
  background: linear-gradient(145deg, #f4ead9, #e2e9de);
}
.discovery-grid > .empty {
  column-span: all;
}
.discover-caption .icon-btn {
  flex-shrink: 0;
}
.discover-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 6px 7px;
}
.discover-caption .avatar {
  width: 29px;
  height: 29px;
  font-size: 0.7rem;
}
.discover-caption .person {
  gap: 7px;
  min-width: 0;
}
.discover-caption strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 140px;
}
.discover-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 8px;
  font-size: 0.83rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.discover-tile > .muted {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 6px 8px 0;
  font-size: 0.72rem;
}
.media-kind {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #173a2ec9;
  color: white;
  padding: 3px 9px;
  border-radius: 18px;
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
}
.discover-text-cover,
.discover-video-cover {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(140deg, #e6ecdc, #efe4cb);
  color: #35523f;
  font-size: 1.05rem;
  text-align: center;
}
.discover-video-cover {
  background: linear-gradient(140deg, #2d4f48, #6a8669);
  color: #fff;
}
.discover-video-cover > .icon {
  width: 50px;
  height: 50px;
}
.liked {
  color: #bd5460 !important;
}
.liked .icon {
  fill: #bd546019;
}
.map-field {
  padding: 14px;
  border: 1px solid #e1e7d8;
  border-radius: 14px;
  background: #fffef9;
}
.map-field .coordinates {
  margin: 12px 0;
}
.coordinates summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: #596f5b;
}
.coordinates .form-grid {
  margin-top: 12px;
}
.destination-map {
  height: 310px;
  width: 100%;
  direction: ltr;
  border-radius: 12px;
  z-index: 0;
  background: #e8eee2;
}
.map-holder {
  margin-top: 12px;
}
.map-selection {
  margin: 8px 0 0;
}
.destination-pin span {
  display: block;
  width: 27px;
  height: 27px;
  background: #245d4c;
  border: 3px solid white;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px #0005;
}
.destination-pin span:after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f1d291;
  margin: 7px;
}
.leaflet-container {
  font-family: Vazir, Tahoma, sans-serif;
}
.leaflet-control-attribution {
  font-family: Arial, sans-serif;
  font-size: 10px !important;
}
.recommendation {
  font-weight: 600;
  font-size: 0.85rem;
  color: #526349;
}
@media (max-width: 1100px) {
  .discovery-grid {
    column-count: 2;
    column-gap: 15px;
  }
}
@media (max-width: 600px) {
  .discovery-grid {
    column-gap: 10px;
  }
  .discover-tile {
    margin-bottom: 10px;
  }
  .text-tile .discover-text-cover {
    min-height: 145px;
    padding: 40px 12px 18px;
  }
  .discover-text-cover > span {
    -webkit-line-clamp: 7;
  }
  .discover-tile {
    border-radius: 16px;
    padding: 5px 5px 10px;
  }
  .discover-media {
    border-radius: 12px;
  }
  .discover-caption {
    margin: 8px 2px 5px;
    gap: 3px;
  }
  .discover-caption .avatar {
    display: none;
  }
  .discover-caption strong {
    font-size: 0.68rem;
    max-width: 76px;
  }
  .discover-caption .icon-btn {
    gap: 2px;
    padding: 2px;
    font-size: 0.7rem;
    min-width: 36px;
  }
  .discover-caption .icon {
    width: 18px;
    height: 18px;
  }
  .discover-title {
    font-size: 0.73rem;
    margin: 0 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .media-kind {
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
  }
  .discovery-heading h1 {
    font-size: 1.7rem;
  }
  .explore-filters {
    padding: 14px;
  }
  .destination-map {
    height: 280px;
  }
  .map-field {
    padding: 9px;
  }
  .discover-text-cover {
    font-size: 0.78rem;
    padding: 15px;
    gap: 8px;
  }
  .discover-text-cover .icon {
    width: 30px;
    height: 30px;
  }
}

.discover-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.discover-media:has(video) .media-kind {
  pointer-events: none;
}
video.journey-media {
  min-height: 180px;
}

.avatar {
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.profile-photo-preview .avatar {
  width: 88px;
  height: 88px;
  font-size: 2rem;
}
.interest-fields {
  border: 1px solid var(--line, #dfe6de);
  border-radius: 14px;
  padding: 16px;
  min-width: 0;
}
.interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.interest-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid #d6dfd6;
  border-radius: 22px;
  cursor: pointer;
}
.interest-options label:has(:checked) {
  background: #e6f1e7;
  border-color: #4b795e;
}
.interest-options input,
.photo-remove input {
  width: auto;
  accent-color: #2d6550;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  min-height: 48px;
  color: #294b3d;
  background: #fafbf6;
  border: 1px solid #cfdacd;
  border-radius: 12px;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.select-trigger:hover,
.select-trigger[aria-expanded="true"] {
  border-color: #548468;
  background: #f1f6ed;
}
.select-trigger:focus-visible {
  outline: 3px solid #91b79a;
  outline-offset: 2px;
}
.select-trigger > span:last-child {
  display: flex;
}
.select-trigger[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.select-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 6px;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #d3ddce;
  border-radius: 14px;
  background: #fffef9;
  color: #294b3d;
  box-shadow: 0 12px 36px #25493626;
  font: inherit;
  direction: rtl;
  z-index: 2000;
}
.select-menu [role="option"] {
  padding: 11px 13px;
  min-height: 44px;
  border-radius: 9px;
  cursor: pointer;
  line-height: 1.5;
}
.select-menu [aria-selected="true"] {
  background: #e1eedc;
  color: #275638;
  font-weight: 700;
}
.select-menu [role="option"]:hover,
.select-menu .focused {
  background: #edf3e7;
  outline: 1px solid #bed2b9;
  outline-offset: -1px;
}
.select-menu [aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}
select[hidden] {
  display: none !important;
}

/* Keep a visible, calm scroll affordance across page, dialogs and menus. */
* {
  scrollbar-width: thin;
  scrollbar-color: #87a38e #f0f3eb;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: #f0f3eb;
  border-radius: 12px;
}
*::-webkit-scrollbar-thumb {
  background: #87a38e;
  border: 2px solid #f0f3eb;
  border-radius: 12px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #557d63;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
.modal-body,
.chat-log,
.select-menu {
  scrollbar-gutter: stable;
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
}

:root {
  --brand-primary: #155e54;
  --brand-accent: #e8bd72;
  --brand-background: #f8f7f1;
}
body {
  background: var(--brand-background);
}
.btn.primary,
.progress-card {
  background: var(--brand-primary);
}
.chip.active,
.content-tabs .active {
  background: var(--brand-primary);
  color: white;
}
.btn.soft,
.global-message {
  border-color: color-mix(in srgb, var(--brand-primary) 25%, white);
}
.progress-card .badge,
.cover-tag {
  background: var(--brand-accent);
}
.admin-tabs {
  margin-bottom: 24px;
}
.admin-content {
  max-width: 1140px;
}
.admin-content > .panel {
  margin-bottom: 22px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.admin-health {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  border-radius: 18px;
  background: #edf3e9;
}
.health-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #43835a;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.policy-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dbe4d7;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
}
.policy-option:has(:checked) {
  background: #eef5e9;
}
.policy-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-primary);
}
.theme-swatch {
  border: 3px solid var(--brand-accent);
  background: var(--brand-background);
  color: var(--brand-primary);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
input[type="color"] {
  height: 50px;
  max-width: 260px;
  cursor: pointer;
}
.global-message {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid #ccdac4;
  border-radius: 16px;
  background: #eef4e7;
  padding: 18px 22px;
  margin-bottom: 24px;
}
.global-message p {
  margin: 5px 0 0;
  white-space: pre-wrap;
}
.notification-bell {
  position: relative;
}
[data-notification-count]:not([hidden]) {
  position: absolute;
  top: -2px;
  right: -4px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  min-width: 19px;
  font-size: 11px;
}
.review-preview {
  display: grid;
  gap: 12px;
}
@media (max-width: 700px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .global-message {
    align-items: flex-start;
    flex-direction: column;
  }
}

.topbar-context {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.back-button {
  min-height: 44px;
  flex-shrink: 0;
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fffefa;
}
@media (max-width: 600px) {
  .topbar-context {
    gap: 6px;
  }
  .topbar-context:has(.back-button) .topbar-title {
    display: none;
  }
  .back-button {
    padding-inline: 10px;
  }
}

.profile-photo-button {
  display: block;
  position: relative;
  margin-top: -37px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: zoom-in;
}
.profile-photo-button > .avatar {
  width: 75px;
  height: 75px;
  border: 5px solid white;
  font-size: 1.7rem;
}
.profile-photo-button:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 4px;
}
.profile-photo-full {
  display: block;
  width: 100%;
  max-height: 72dvh;
  object-fit: contain;
  border-radius: 14px;
}
