/* Provider / inspection portal — DESIGN.md */
.portal-body {
  font-family: 'Satoshi', 'Manrope', system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 195, 130, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(53, 30, 16, 0.06), transparent 50%),
    #ededec;
  color: #1C1610;
  min-height: 100vh;
  padding-bottom: 5rem;
}

.portal-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.portal-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.portal-brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.portal-brand span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.portal-card {
  background: #fff;
  border: 1px solid #E8DCC4;
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 2px rgba(28, 22, 16, 0.04);
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease-out, transform 0.15s ease-out;
}

.portal-btn:active {
  transform: scale(0.97);
}

.portal-btn--gold {
  background: #e8c382;
  color: #351e10;
}

.portal-btn--gold:hover {
  background: #f5d078;
}

.portal-btn--ghost {
  background: #fff;
  color: #1C1610;
  border: 1px solid #E8DCC4;
}

.portal-input {
  width: 100%;
  border: 1px solid #E8DCC4;
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: #fff;
  font-size: 0.9rem;
  color: #1C1610;
}

.portal-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 195, 130, 0.35);
  border-color: #e8c382;
}

.portal-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #A67B2D;
  margin-bottom: 0.35rem;
}

.portal-mission-row {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid #F0E8DA;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease-out;
}

.portal-mission-row:last-child {
  border-bottom: none;
}

.portal-mission-row:hover {
  opacity: 0.85;
}

.portal-badge {
  display: inline-flex;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #FDF6E8;
  color: #854D0E;
}

.portal-toast {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 50;
  max-width: 20rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: #FDF6E8;
  color: #854D0E;
  border: 1px solid #E8DCC4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.portal-toast--err {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

/* Compact lang switch for portal headers */
.hx-lang-switch { display: inline-flex; }
.hx-lang-dropdown { position: relative; }
.hx-lang-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #E8DCC4;
  background: #fff;
  color: #1C1610;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.hx-lang-dropdown__chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15rem;
}
.hx-lang-dropdown.is-open .hx-lang-dropdown__chevron {
  transform: rotate(-135deg);
  margin-top: 0.1rem;
}
.hx-lang-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid #E8DCC4;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(28, 22, 16, 0.1);
  display: none;
  min-width: 4rem;
  z-index: 40;
}
.hx-lang-dropdown.is-open .hx-lang-dropdown__menu { display: block; }
.hx-lang-dropdown__option {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.hx-lang-dropdown__option:hover { background: #FDF6E8; }

@media (prefers-reduced-motion: reduce) {
  .portal-btn,
  .portal-mission-row {
    transition: none;
  }
}
