@font-face {
  font-family: IbriJoin;
  src: url('/assets/arabic-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: IbriJoin;
  src: url('/assets/arabic-bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
.join-page {
  margin: 0;
  min-height: 100vh;
  color: #302423;
  background: #faf7f6;
  font: 16px/1.65 IbriJoin, Tahoma, Arial, sans-serif;
}
.join-page *, .join-page *::before { box-sizing: border-box; }
.join-page [hidden] { display: none !important; }
.join-page h1, .join-page h2, .join-page p { margin: 0; }
.join-page button, .join-page input { font: inherit; }
.join-width { width: min(100% - 36px, 540px); margin-inline: auto; }
.join-mast { background: white; border-bottom: 1px solid #e6d7d4; }
.join-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  color: #751c18;
  font-size: clamp(16px, 4vw, 20px);
}
.join-brand img { width: 54px; height: 54px; object-fit: contain; }
.join-main { margin-block: clamp(20px, 5vh, 54px) 48px; }
.join-summary {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: clamp(22px, 6vw, 36px);
  border-radius: 20px;
  color: white;
  background: #a7211a;
  border-bottom: 4px solid #d69c94;
}
.join-summary > p { color: #ffdfda; font-size: 14px; font-weight: 700; }
.join-summary h1 { font-size: clamp(26px, 6.5vw, 37px); line-height: 1.4; overflow-wrap: anywhere; }
.join-meta { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-top: 8px; font-size: 14px; }
.join-meta span { display: inline-flex; align-items: center; gap: 6px; }
.join-meta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.join-panel {
  margin-top: 14px;
  border: 1px solid #e5d4d1;
  border-radius: 20px;
  padding: clamp(20px, 5vw, 32px);
  background: white;
}
.join-panel h2 { color: #7d1c17; font-size: 22px; line-height: 1.5; }
.join-panel form label { display: block; margin: 18px 0 5px; font-weight: 700; }
.join-panel input {
  width: 100%;
  height: 49px;
  padding: 8px 12px;
  background: white;
  color: inherit;
  border: 1px solid #c3afaa;
  border-radius: 9px;
}
.join-page :focus-visible { outline: 3px solid #226b83; outline-offset: 3px; }
.join-page .join-help { color: #685650; font-size: 13px; margin-top: 5px; }
.join-submit, .join-retry {
  min-height: 46px;
  padding: 8px 18px;
  border: 1px solid #a7211a;
  border-radius: 9px;
  color: white;
  background: #a7211a;
  font-weight: 700 !important;
  cursor: pointer;
}
.join-submit { margin-top: 24px; width: 100%; }
.join-submit:disabled { opacity: .7; cursor: wait; }
.join-retry { margin-top: 14px; color: #7d1c17; background: white; }
.join-page .join-error { color: #a21e1b; margin-top: 12px; }
.join-page .join-message p { margin-top: 6px; }
.join-success h2 { color: #2b6344; }
.trip-invite { margin-bottom: 16px; }
.invite-layout { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.invite-layout canvas {
  width: 160px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.invite-tools { flex: 1 1 200px; min-width: 0; }
.invite-tools p { margin-bottom: 10px; }
.invite-tools .minor { min-height: 40px; }
.invite-tools .invite-address { width: 100%; direction: ltr; margin-top: 8px; font: 13px/1.5 monospace; }
.invite-tools .err:empty { display: none; }
@media (max-width: 490px) {
  .invite-layout { justify-content: center; }
  .invite-tools { flex-basis: 100%; }
}

.invite-schedule {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  max-width: 100%;
  text-align: center;
}
.invite-schedule figcaption {
  display: grid;
  gap: 2px;
  color: #622821;
  font-size: 15px;
  line-height: 1.6;
}
.invite-date { font-weight: 700; }
