/* PAGE DESIGN ROLL — Grower Pass (account)
   Layout: tabbed panels in kraft passbook
   Cards: seed-packet label forms
   Dividers: hairline with sprout icon
   Motion: dew bead on active tab
   Signature: wheat vent latch on active tab + checkout gate centered pass card
   All auth/dash IDs preserved. Not A113 passport · permit window · Pass Leaf
 */

.pl-main {
  padding-top: clamp(0.85rem, 2vw, 1.35rem);
  padding-bottom: clamp(2rem, 5vw, 3.4rem);
}

.page-a114-growerpass .pg-mast,
.page-a114-growerpass .pg-mast {
  margin-bottom: 0.35rem;
}

.pl-main > .a114-notice#accountLoading {
  margin: 0.75rem 0 1rem;
}

.pl-auth-shell {
  width: min(100%, 28rem);
  margin-inline: auto;
}

.page-a114-growerpass.is-checkout-gate .pg-mast {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
}

.page-a114-growerpass.is-checkout-gate .pg-mast h1 {
  font-size: clamp(1.45rem, 3.6vw, 2rem);
}

.pl-id {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--bf-paper);
  border-radius: var(--bf-radius);
  box-shadow: var(--bf-shadow);
  border: 1px solid rgba(24, 74, 50, 0.08);
}

.pl-id h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
}

.pl-id > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pl-tabs,
.pl-tickets {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.pl-tabs button,
.pl-tickets button {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(24, 74, 50, 0.1);
  border-radius: var(--bf-pill);
  background: var(--bf-paper);
  color: var(--bf-ink);
  font-family: var(--bf-display);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--bf-shadow);
  white-space: nowrap;
}

.pl-tabs button.is-active,
.pl-tickets button.is-active {
  background: var(--bf-wheat);
  color: var(--bf-ink);
  border-color: var(--bf-wheat);
}

.pl-tabs button:focus-visible,
.pl-tickets button:focus-visible {
  outline: 2px solid var(--bf-wheat);
  outline-offset: 2px;
}

.pl-tabs button.is-active::after {
  content: "";
  position: absolute;
  top: 0.28rem;
  right: 0.5rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--bf-sap);
  box-shadow: 0 0 0 2px rgba(255, 243, 194, 0.65);
}

.dash-panel,
.auth-form {
  background: var(--bf-paper);
  border-radius: var(--bf-radius);
  padding: clamp(1rem, 2.4vw, 1.2rem);
  box-shadow: var(--bf-shadow);
  border: 1px solid rgba(24, 74, 50, 0.08);
  display: grid;
  gap: 0.75rem;
}

#tabSignin,
#tabRegister {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.dash-panel[hidden],
#tabRegister[hidden] {
  display: none;
}

#authTimerGate {
  display: grid;
  gap: 0.85rem;
}

#tabSignin > .auth-form:first-of-type {
  margin-top: 0;
}

.auth-form h3 {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: var(--bf-forest);
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--bf-ink);
}

.auth-form label input {
  font-weight: 400;
}

.auth-form .a114-btn {
  justify-self: start;
  width: 100%;
}

#forgotPasswordForm {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--bf-line);
}

.notice {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--bf-radius-sm);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}

.notice.success {
  background: rgba(47, 163, 107, 0.12);
  color: var(--bf-forest);
  border: 1px solid rgba(47, 163, 107, 0.35);
}

.notice.warning {
  background: rgba(201, 146, 18, 0.14);
  color: var(--bf-ink);
  border: 1px solid rgba(201, 146, 18, 0.4);
}

.profile-grid {
  display: grid;
  gap: 0;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--bf-line);
}

.profile-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-item .k {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bf-mute);
}

.profile-item .v {
  font-weight: 700;
  color: var(--bf-ink);
  text-align: right;
  word-break: break-word;
}

.profile-item .v.mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.order-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.order-list .mini-copy {
  color: var(--bf-mute);
  font-size: 0.86rem;
  line-height: 1.4;
}

.order-list .order-row {
  margin-bottom: 0;
}

.order-list .order-row .a114-btn,
.order-list .order-row .btn-soft {
  min-height: 44px;
  padding-inline: 1rem;
  white-space: nowrap;
}

#dashPrefs {
  gap: 0.35rem;
}

#dashPrefs label {
  display: flex;
  gap: 0.55rem;
  min-height: 44px;
  align-items: center;
  padding: 0.45rem 0;
  font-weight: 600;
  color: var(--bf-ink);
  border-bottom: 1px solid var(--bf-line);
}

#dashPrefs label:last-child {
  border-bottom: 0;
}

.pl-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
}

.pl-benefits li {
  padding: 0.42rem 0.75rem;
  border-radius: var(--bf-pill);
  background: var(--bf-pith);
  color: var(--bf-forest);
  font-weight: 700;
  font-size: 0.78rem;
  border: 1px solid rgba(24, 74, 50, 0.1);
  text-align: center;
}

.page-a114-growerpass.is-checkout-gate .pl-tickets {
  justify-content: center;
}

.pl-main .toast.success {
  background: var(--bf-forest);
  border: 1px solid var(--bf-sap);
}

.pl-main .toast.error {
  background: #6b1428;
  border: 1px solid rgba(255, 243, 194, 0.2);
}

.pl-main .toast.warning {
  background: #5a4510;
  border: 1px solid var(--bf-wheat);
}

@media (min-width: 720px) {
  .auth-form .a114-btn {
    width: auto;
    min-width: 12rem;
  }

  #dashPassword .auth-form .a114-btn,
  #tabSignin .auth-form:first-of-type .a114-btn,
  #tabRegister .auth-form .a114-btn {
    width: 100%;
  }
}

@media (max-width: 719px) {
  .pl-id > div {
    width: 100%;
  }

  .pl-id > div .a114-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    font-size: 0.78rem;
    padding-inline: 0.75rem;
  }

  .order-list .order-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .order-list .order-row .a114-btn,
  .order-list .order-row .btn-soft {
    width: 100%;
    justify-content: center;
  }
}
