/*TWO-COLUMN SIDEBAR PAGES */

.tn-account-interests-page .tn-page-layout--two-column,
.tn-account-memberships-page .tn-page-layout--two-column,
.tn-account-update-page .tn-page-layout--two-column,
.tn-upcoming-events-page .tn-page-layout--two-column {
  display: grid !important;
  grid-template-columns: 200px 1fr;
  column-gap: 3rem;
  align-items: start;
}

/* Sidebar nav */
.tn-account-interests-page .tn-area-nav,
.tn-account-memberships-page .tn-area-nav,
.tn-account-update-page .tn-area-nav,
.tn-upcoming-events-page .tn-area-nav {
  padding: 0;
}

.tn-account-interests-page .tn-page-layout__header-container,
.tn-account-memberships-page .tn-page-layout__header-container,
.tn-account-update-page .tn-page-layout__header-container,
.tn-upcoming-events-page .tn-page-layout__header-container {
  margin-bottom: 0.75rem;
}


.tn-account-interests-page .tn-area-nav__list,
.tn-account-memberships-page .tn-area-nav__list,
.tn-account-update-page .tn-area-nav__list,
.tn-upcoming-events-page .tn-area-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tn-account-interests-page .tn-area-nav__list-item,
.tn-account-memberships-page .tn-area-nav__list-item,
.tn-account-update-page .tn-area-nav__list-item,
.tn-upcoming-events-page .tn-area-nav__list-item {
  font-size: var(--dpg-font-size-base);
  padding: 0.35rem 0;
  color: var(--dpg-neutral-3);
  border: none;
}

.tn-account-interests-page .tn-area-nav__list-item[aria-current="page"],
.tn-account-memberships-page .tn-area-nav__list-item[aria-current="page"],
.tn-account-update-page .tn-area-nav__list-item[aria-current="page"],
.tn-upcoming-events-page .tn-area-nav__list-item[aria-current="page"] {
  font-weight: 700;
  color: var(--dpg-purple);
}

.tn-account-interests-page .tn-area-nav__list-item a,
.tn-account-memberships-page .tn-area-nav__list-item a,
.tn-account-update-page .tn-area-nav__list-item a,
.tn-upcoming-events-page .tn-area-nav__list-item a {
  color: var(--dpg-neutral-3);
  text-decoration: none;
  font-size: var(--dpg-font-size-base);
  display: block;
  transition: color 0.15s ease;
}

.tn-account-interests-page .tn-area-nav__list-item a:hover,
.tn-account-memberships-page .tn-area-nav__list-item a:hover,
.tn-account-update-page .tn-area-nav__list-item a:hover,
.tn-upcoming-events-page .tn-area-nav__list-item a:hover {
  color: var(--dpg-purple);
}


/* Responsive — stack below 640px */
@media (max-width: 640px) {
  .tn-account-interests-page .tn-page-layout--two-column,
  .tn-account-memberships-page .tn-page-layout--two-column,
  .tn-account-update-page .tn-page-layout--two-column,
  .tn-upcoming-events-page .tn-page-layout--two-column {
    grid-template-columns: 1fr !important;
  }

  .tn-account-interests-page .tn-page-layout__nav-container,
  .tn-account-memberships-page .tn-page-layout__nav-container,
  .tn-account-update-page .tn-page-layout__nav-container,
  .tn-upcoming-events-page .tn-page-layout__nav-container {
    border-right: none;
    border-bottom: 1.5px solid var(--dpg-neutral-2);
    padding-right: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* ACCOUNT LOGIN PAGE */

.tn-account-login-page .tn-utility-nav,
.tn-account-login-page #tn-error-message-template,
.tn-account-login-page #tn-alert-message-template {
  display: none;
}

.tn-account-login-page .tn-header-component {
  margin-bottom: 2rem;
}


.tn-account-login-page .tn-login-component legend {
  display: none;
}

/* Form layout (JS-injected grid wrappers) */
.tn-account-create-page .dpg-account-create-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.tn-account-create-page .dpg-account-row--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  align-items: start;
}

@media (max-width: 767px) {
  .tn-account-create-page .dpg-account-row--two-col {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
}

.tn-account-create-page [data-control-group-for="Patron.PrefixId"] {
  max-width: calc(50% - 12px);
}

.tn-account-create-page .tn-address-component fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.tn-account-create-page .dpg-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 20px;
  align-items: start;
}

.tn-account-create-page [data-control-group-for="Address.CountryId"] {
  grid-column: 1 / -1;
}

@media (max-width: 767px) {
  .tn-account-create-page .dpg-address-grid {
    grid-template-columns: 1fr;
  }
  .tn-account-create-page [data-control-group-for="Address.CountryId"] {
    grid-column: 1;
  }
}

/* ACCOUNT INTERESTS PAGE */

.tn-account-interests-page .tn-page-layout__nav-container {
  padding-right: 2rem;
  border-right: none !important;
}

@media (max-width: 640px) {
  .tn-account-interests-page .tn-component__fieldset-radio {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ACCOUNT MEMBERSHIPS PAGE */

.tn-membership-summmary__organization {
  display:none;
}

/* Hide membership start date */
.tn-account-memberships-page .tn-membership-summary__inception-date {
  display: none;
}

/* ACCOUNT MEMBERSHIPS PAGE — benefit item copy */
.tn-account-memberships-page .tn-membership-benefits-list__item > div:not(.h5) {
  font-size: var(--dpg-font-size-base);
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.tn-account-memberships-page .tn-membership-benefits-list__item > div:not(.h5):last-child {
  font-size: var(--dpg-font-size-sm);
  color: var(--dpg-neutral-3);
  margin-bottom: 0;
}

/* Bootstrap row/col reset */
.tn-account-update-page #tn-update-form .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.tn-account-update-page #tn-update-form .row > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

/* Patron left, address right */
.tn-account-update-page .tn-patron-component,
.tn-account-update-page .tn-address-component {
  display: block;
}

.tn-account-update-page .tn-patron-component {
  padding-right: 3rem;
}

.tn-account-update-page #tn-update-form .col-sm-6 {
  float: none !important;
  display: inline-block;
  vertical-align: top;
  width: calc(50% - 1.5rem) !important;
  box-sizing: border-box;
}

/* Email row — half width */
.tn-account-update-page #tn-update-form > .row:first-of-type {
  margin-bottom: 1.5rem !important;
  overflow: hidden;
}

.tn-account-update-page #tn-update-form > .row:first-of-type > [class*="col-"] {
  width: calc(50% - 1.5rem) !important;
  float: none !important;
  display: block;
}

/* Inner row inside patron component — reset to single column */
.tn-account-update-page .tn-patron-component .row {
  display: block !important;
  margin: 0 !important;
}

.tn-account-update-page .tn-patron-component .row > [class*="col-"] {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

.tn-account-update-page fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.tn-account-update-page .tn-account-login-form__legend {
  display: none;
}

.tn-account-update-page .form-group {
  margin-bottom: 1rem;
}

.tn-account-update-page .tn-btn-wrapper {
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .tn-account-update-page #tn-update-form > .row:first-of-type > [class*="col-"] {
    max-width: 100%;
  }

  .tn-account-update-page #tn-update-form > .row:last-of-type {
    grid-template-columns: 1fr !important;
  }

  .tn-account-update-page #tn-update-form > .row:last-of-type > [class*="col-"]:last-child {
    border-left: none;
    border-top: 1.5px solid var(--dpg-neutral-2);
    padding-left: 0 !important;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
}


/*upcoming events pages*/

/* Spacing between items */
.tn-upcoming-events-page .tn-upcoming-event__list-item {
  margin-bottom: 1.5rem;
}

/* Event title */
.tn-upcoming-events-page .tn-upcoming-event__title {
  font-weight: 700;
  color: var(--dpg-purple);
  text-decoration: none;
}

.tn-upcoming-events-page .tn-upcoming-event__title:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Date — match event detail page typography */
.tn-upcoming-events-page .tn-upcoming-event__date-time {
  display: block;
  font-size: var(--dpg-font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dpg-neutral-3);
  margin-top: 0.2rem;
}

/* Hide external link icon inside View Tickets button */
.tn-upcoming-events-page .tn-upcoming-event__actions-list .tn-external-link-icon {
  display: none !important;
}


/* UPDATE PASSWORD PAGE */

.tn-account-update-password-page fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.tn-account-update-password-page legend {
  display: none;
}

.tn-account-update-password-page .form-group {
  margin-bottom: 1rem;
}

.tn-account-update-password-page #tn-password-update-form .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.tn-account-update-password-page #tn-password-update-form .row > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

#tn-password-update-button {
  background-color: var(--dpg-teal) !important;
  color: var(--dpg-purple) !important;
  border: none !important;
  border-radius: 999px;
  padding: 0.75rem 2.5rem;
  font-weight: 700;
  font-size: var(--dpg-font-size-base);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

#tn-password-update-button:hover,
#tn-password-update-button:focus {
  background-color: var(--dpg-purple) !important;
  color: var(--dpg-teal) !important;
  outline: none !important;
}

.tn-account-update-password-page > a {
  display: inline-block;
  margin-top: 1rem;
  font-size: var(--dpg-font-size-sm);
  color: var(--dpg-neutral-3);
  text-decoration: underline;
}

.tn-account-update-password-page > a:hover {
  color: var(--dpg-purple);
}
