/* Version: 0.2.1
 * Last updated (Europe/Athens): 2026-08-01 19:25:40 EEST
 * Author: thesservices.com
 * Changelog:
 *   2026-05-16 15:23 - Initial portal layout styles
 *   2026-08-01 19:17 - Secondary member menu / current-item styles
 *   2026-08-01 19:25 - CSS grid layout so content column cannot collapse
 */

.nefrothes-portal-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 14rem) minmax(0, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.nefrothes-portal-sidebar {
  min-width: 0;
}

.nefrothes-portal-nav,
.nefrothes-portal-nav ul,
.nefrothes-portal-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nefrothes-portal-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid transparent;
  text-decoration: none;
  color: inherit;
}

.nefrothes-portal-nav .current-menu-item > a,
.nefrothes-portal-nav .current_page_item > a {
  border-left-color: #1a3a5c;
  font-weight: 600;
  background: rgba(26, 58, 92, 0.06);
}

.nefrothes-portal-nav a:hover,
.nefrothes-portal-nav a:focus {
  background: rgba(26, 58, 92, 0.08);
}

.nefrothes-portal-content {
  min-width: 0;
  max-width: 100%;
}

.nefrothes-portal-content .entry-title,
.nefrothes-portal-content p {
  overflow-wrap: normal;
  word-break: normal;
}

.nefrothes-notice.success {
  color: #0a6b2d;
}

.nefrothes-notice.warning {
  color: #8a6d00;
}

@media (max-width: 768px) {
  .nefrothes-portal-layout {
    grid-template-columns: 1fr;
  }

  .nefrothes-portal-nav__list,
  .nefrothes-portal-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .nefrothes-portal-nav a {
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .nefrothes-portal-nav .current-menu-item > a,
  .nefrothes-portal-nav .current_page_item > a {
    border-left: none;
    border-bottom-color: #1a3a5c;
  }
}

.nefrothes-application-form fieldset {
  border: 1px solid #ddd;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
}

.nefrothes-application-form legend {
  font-weight: 600;
  padding: 0 0.5rem;
}

.nefrothes-application-form label {
  display: block;
  margin-bottom: 0.25rem;
}

.nefrothes-application-form input[type="text"],
.nefrothes-application-form input[type="email"],
.nefrothes-application-form input[type="tel"],
.nefrothes-application-form input[type="date"],
.nefrothes-application-form select,
.nefrothes-application-form textarea {
  width: 100%;
  max-width: 32rem;
}

.nefrothes-member-card {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  border: 1px solid #c9a227;
  border-radius: 4px;
  background: #faf8f3;
  margin-bottom: 1.5rem;
}

.nefrothes-member-card__photo img {
  object-fit: cover;
  border-radius: 4px;
}

.nefrothes-member-card__fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  margin: 0.5rem 0 0;
}

.nefrothes-member-card__fields dt {
  font-weight: 600;
  margin: 0;
}

.nefrothes-member-card__fields dd {
  margin: 0;
}

#nefrothes-signature-pad {
  border: 1px solid #ccc;
  background: #fff;
  max-width: 100%;
  display: block;
  margin: 0.5rem 0;
}
