/* The members' area in its new design: the top row on every site page, and its
   members' area menu. The top row takes the club's top strip colours; the menu
   keeps the design's own. */

:root {
  --pd-brand: #13235B;
  --pd-brand-tint: #E6E8EF;
  --pd-avatar: #DEE0E8;
  --pd-ink: #141A33;
  --pd-muted: #4A5068;
  --pd-line: #E4E7EF;
  --pd-hover: #F1F3F8;
  --pd-alert: #B42318;
  --pd-focus: #C8371F;
}

#pd-top {
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid #E2E4EA;
  font-family: var(--pd-font, 'Open Sans', Arial, sans-serif);
  font-size: 14px;
  background: var(--pd-top-back);
}

/* Over the club's background image, or with the top strip's outer colour, the
   colour keeps to the club's column, as the old top strip's did */
#pd-top.pd-in-column { background: var(--pd-top-outer, none); border-bottom: 0; }
#pd-top.pd-in-column .pd-top-inner {
  background: var(--pd-top-back);
  border-bottom: 1px solid #E2E4EA;
}

#pd-top a { color: inherit; text-decoration: none; }
#pd-top a:focus-visible, #pd-top button:focus-visible {
  outline: 3px solid var(--pd-focus);
  outline-offset: 2px;
}

.pd-top-inner {
  max-width: var(--pd-top-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--pd-top-pad, 24px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
}

.pd-top-links, .pd-top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
}

.pd-top-links { flex: 1; min-width: 0; }

.pd-top-link {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 8px;
}

.pd-top-link input { height: 28px; padding: 0 8px; font: inherit; }

#pd-top .pd-login {
  display: flex;
  align-items: center;
  height: 36px;
  margin-left: 4px;
  padding: 0 14px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--pd-brand);
  border-radius: 8px;
}

.pd-member { position: relative; }

.pd-member-button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-left: 4px;
  padding: 0 10px 0 3px;
  font: inherit;
  font-weight: 700;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
}

.pd-member-button[aria-expanded="true"] { background: rgba(127, 135, 160, 0.18); }
.pd-member-button[aria-expanded="true"] > svg { transform: rotate(180deg); }

.pd-avatar {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pd-avatar);
  color: var(--pd-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.pd-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.pd-avatar-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--pd-alert);
  border: 2px solid #FFFFFF;
}

.pd-avatar-dot[hidden] { display: none; }

.pd-avatar-large { width: 46px; height: 46px; font-size: 17px; }

.pd-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: 760px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(20, 26, 51, 0.18);
  color: var(--pd-ink);
  text-align: left;
  overflow: hidden;
}

.pd-menu[hidden] { display: none; }

.pd-menu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 16px 18px;
  background: #F8F9FC;
  border-bottom: 1px solid var(--pd-line);
}

.pd-menu-who { flex: 1 1 200px; display: flex; flex-direction: column; gap: 1px; }
.pd-menu-who strong { font-size: 16px; font-weight: 800; }
.pd-menu-who span { font-size: 13px; color: var(--pd-muted); }

#pd-top .pd-button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--pd-brand);
  border-radius: 10px;
}

#pd-top .pd-button-outline {
  padding: 0 12px;
  color: var(--pd-brand);
  background: transparent;
  border: 1.5px solid #D5D9E6;
}

.pd-menu-sections {
  margin: 0;
  padding: 14px 12px 8px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px 8px;
}

.pd-menu-sections li { min-width: 0; }
.pd-menu-sections ul { margin: 0; padding: 0; list-style: none; }

.pd-menu-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-menu-title > span:first-of-type { flex: 1; min-width: 0; }

.pd-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--pd-alert);
  color: #FFFFFF;
  font-size: 11px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#pd-top .pd-menu-sections a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--pd-ink);
}

#pd-top .pd-menu a:hover { background: var(--pd-hover); }
#pd-top .pd-menu .pd-button:hover { background: var(--pd-brand); opacity: 0.92; }
#pd-top .pd-menu .pd-button-outline:hover { background: var(--pd-hover); opacity: 1; }

#pd-top .pd-menu-sections a.pd-current {
  font-weight: 700;
  color: var(--pd-brand);
  background: var(--pd-brand-tint);
}

.pd-menu-foot {
  display: flex;
  justify-content: flex-end;
  padding: 8px 18px 14px;
  border-top: 1px solid var(--pd-hover);
}

#pd-top .pd-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  font-weight: 700;
  color: var(--pd-muted);
  border-radius: 8px;
}

/* Phone: icons only in the row, and the menu opens full width under it */
@media (max-width: 640px) {
  .pd-top-inner { padding: 0 12px; }
  #pd-top .pd-wide { display: none; }
  .pd-member { position: static; }
  .pd-menu {
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    border-radius: 0;
    border-width: 1px 0 0;
  }
}

/* ---- The members' area pages ---- */

.pd-portal {
  --pd-head: var(--pd-font, 'Space Grotesk', system-ui, sans-serif);
  --pd-bg: #F5F6F9;
  --pd-tint: #E7E9EF;
  --pd-row-line: #EEF0F5;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0;
  box-sizing: border-box;
  font-family: var(--pd-font, 'Inter', system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.45;
  color: var(--pd-ink);
  background: var(--pd-bg);
  /* The grey reaches the window's edges while the page fills the club's column */
  box-shadow: 0 0 0 100vmax var(--pd-bg);
  clip-path: inset(0 -100vmax);
  text-align: left;
}

/* Over the club's background image or page outer colour the grey stops at the
   club's column */
#page > .inner:has(#pd-portal.pd-in-column) { overflow-x: clip; }

#pd-portal a { color: var(--pd-brand); }
#pd-portal a:focus-visible, #pd-portal button:focus-visible,
#pd-portal summary:focus-visible {
  outline: 3px solid var(--pd-focus);
  outline-offset: 2px;
}

.pd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.pd-head-text { display: flex; flex-direction: column; gap: 6px; }

#pd-portal .pd-head-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  background: #C8371F;
  border-radius: 10px;
  text-decoration: none;
}

.pd-tab-count {
  margin-left: 4px;
  padding: 1px 7px;
  font-size: 12px;
  color: #FFFFFF;
  background: var(--pd-brand);
  border-radius: 999px;
}

.pd-crumbs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--pd-muted);
}

.pd-crumbs li + li::before { content: '/'; margin-right: 8px; }
#pd-portal .pd-crumbs a { color: var(--pd-muted); }

#pd-portal .pd-title {
  margin: 0;
  padding: 0;
  border-bottom: 0;
  background-color: transparent;
  font-family: var(--pd-head);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--pd-brand);
  background: none;
  border: 0;
  text-align: left;
}

/* A section's pages: tabs on wider screens, a switcher on phones */
.pd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1.5px solid #DDE1EB;
}

#pd-portal .pd-tabs a {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 16px;
  margin-bottom: -1.5px;
  font-size: 16px;
  font-weight: 700;
  color: var(--pd-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

#pd-portal .pd-tabs a.pd-current {
  color: var(--pd-brand);
  border-bottom-color: var(--pd-brand);
}

.pd-switcher { display: none; position: relative; z-index: 30; }

.pd-switcher summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 6px 14px;
  list-style: none;
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
  border-radius: 12px;
  cursor: pointer;
}

.pd-switcher summary::-webkit-details-marker { display: none; }
.pd-switcher summary svg { flex: none; color: var(--pd-brand); }
.pd-switcher[open] summary svg { transform: rotate(180deg); }
.pd-switcher-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pd-switcher-where { font-size: 12px; font-weight: 700; color: var(--pd-muted); }
.pd-switcher-text strong { font-size: 17px; font-weight: 800; }

.pd-switcher ul {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20, 26, 51, 0.18);
}

#pd-portal .pd-switcher ul a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--pd-ink);
  text-decoration: none;
}

#pd-portal .pd-switcher ul a.pd-current {
  font-weight: 800;
  color: var(--pd-brand);
  background: var(--pd-tint);
}

/* A page not yet rebuilt sits in a card, under the section's own title */
.pd-body {
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 16px;
}

.pd-body > h1.portal:first-child { display: none; }

/* Cards and rows */
.pd-card {
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 16px;
  overflow: hidden;
}

.pd-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 10px;
}

.pd-card-head a { font-size: 14px; font-weight: 700; }

#pd-portal .pd-card-title {
  margin: 0;
  padding: 0;
  letter-spacing: normal;
  text-align: left;
  font-family: var(--pd-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--pd-ink);
  background: none;
  border: 0;
}

#pd-portal .pd-card > .pd-card-title { padding: 16px 20px 10px; }
.pd-card-count { font-size: 15px; color: var(--pd-brand); }
.pd-empty { margin: 0; padding: 4px 20px 18px; color: var(--pd-muted); }

.pd-rows { margin: 0; padding: 0; list-style: none; }

.pd-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid var(--pd-row-line);
}

.pd-rows > li > a.pd-row { color: var(--pd-ink); text-decoration: none; }
.pd-rows > li > a.pd-row:hover { background: #F8F9FC; }

.pd-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pd-row-text strong, .pd-row-title { font-size: 16px; font-weight: 700; }
.pd-row-text > span:last-child { font-size: 14px; color: var(--pd-muted); }
.pd-row-link { flex: none; font-size: 14px; font-weight: 700; }

.pd-attention-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pd-portal .pd-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid #D5D9E6;
  font-size: 15px;
  font-weight: 700;
  color: #262B48;
  background: #FFFFFF;
  text-decoration: none;
}

#pd-portal .pd-action-primary {
  color: #FFFFFF;
  background: #C8371F;
  border-color: #C8371F;
}

.pd-date {
  flex: none;
  width: 50px;
  height: 54px;
  border-radius: 12px;
  background: var(--pd-tint);
  color: var(--pd-brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.pd-date span { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.pd-date strong { font-family: var(--pd-head); font-size: 22px; font-weight: 700; }

#pd-portal .pd-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-top: 1px solid var(--pd-row-line);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

/* The home page */
.pd-home-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.pd-greeting { display: flex; flex-direction: column; gap: 4px; }
.pd-greeting > span { font-size: 16px; color: var(--pd-muted); }
#pd-portal .pd-greeting .pd-title { font-size: 38px; }
.pd-greeting-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-checkin { padding: 14px 18px; }
/* The check-in buttons show only on phones, so the card does too */
@media (min-width: 601px) {
  .pd-checkin { display: none; }
}

/* Today at the club: the weather and tides */
.pd-conditions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 12px 18px;
}
.pd-conditions-head { flex: 1 1 100%; display: flex; align-items: baseline; gap: 10px; }
#pd-portal .pd-conditions .pd-card-title { font-size: 18px; }
.pd-conditions-head .pd-muted { font-size: 13px; }
.pd-weather { display: flex; align-items: center; gap: 10px; }
#pd-portal .pd-weather i.wi { font-size: 30px; color: #E0A126; }
.pd-weather-temp { font-family: var(--pd-head); font-size: 28px; line-height: 1; }
.pd-weather-text,
.pd-wind-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.3;
  color: var(--pd-muted);
}
.pd-wind {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: var(--pd-brand);
  background: #F5F6F9;
  border-radius: 10px;
}
.pd-wind svg { stroke-width: 2.4; }
.pd-wind-text strong { font-size: 15px; font-weight: 800; color: var(--pd-ink); }
.pd-wind-text span { font-size: 12px; }
.pd-weather-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  font-size: 13px;
}
.pd-weather-facts div { display: flex; gap: 5px; }
.pd-weather-facts dt { color: var(--pd-muted); }
.pd-weather-facts dd { margin: 0; font-weight: 700; }
.pd-tides {
  flex: 1 1 360px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--pd-row-line);
}
.pd-tides.pd-tides-only { flex-basis: 100%; padding-left: 0; border-left: 0; }
#pd-portal .pd-tides h3 {
  flex: none;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-muted);
}
.pd-tides ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pd-tides li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 9px;
  font-size: 13px;
  white-space: nowrap;
  border: 1.5px solid var(--pd-line);
  border-radius: 8px;
}
.pd-tides li.pd-tide-past { opacity: 0.55; }
.pd-tides li.pd-tide-next { border-color: var(--pd-brand); background: var(--pd-tint); }
.pd-tide-kind {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pd-muted);
}
.pd-tide-next .pd-tide-kind { color: var(--pd-brand); }
.pd-tides li strong { font-weight: 800; }
.pd-tide-badge {
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--pd-brand);
  border-radius: 999px;
}
.pd-club-content { padding: 16px 20px 18px; }
#pd-portal .pd-club-content > .pd-card-title { padding: 0 0 8px; }

/* The club's own text, such as its welcome page, in the members' area's type
   rather than the type of the club's pages */
#pd-portal .pd-prose {
  font-family: var(--pd-font, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pd-ink);
  overflow-wrap: anywhere;
}
#pd-portal .pd-prose > :first-child { margin-top: 0; }
#pd-portal .pd-prose > :last-child { margin-bottom: 0; }
#pd-portal .pd-prose p, #pd-portal .pd-prose ul, #pd-portal .pd-prose ol,
#pd-portal .pd-prose blockquote, #pd-portal .pd-prose table {
  margin: 0 0 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pd-ink);
}
#pd-portal .pd-prose h1, #pd-portal .pd-prose h2, #pd-portal .pd-prose h3,
#pd-portal .pd-prose h4, #pd-portal .pd-prose h5, #pd-portal .pd-prose h6 {
  margin: 20px 0 8px;
  padding: 0;
  font-family: var(--pd-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--pd-ink);
  background: none;
  border: 0;
  text-transform: none;
  text-align: left;
}
#pd-portal .pd-prose h1 { font-size: 24px; }
#pd-portal .pd-prose h2 { font-size: 20px; }
#pd-portal .pd-prose h3 { font-size: 18px; }
#pd-portal .pd-prose h4, #pd-portal .pd-prose h5, #pd-portal .pd-prose h6 { font-size: 16px; }
#pd-portal .pd-prose ul, #pd-portal .pd-prose ol { padding-left: 22px; }
#pd-portal .pd-prose ul { list-style: disc; }
#pd-portal .pd-prose ol { list-style: decimal; }
#pd-portal .pd-prose li { margin: 0 0 4px; }
#pd-portal .pd-prose a {
  font-weight: 600;
  color: var(--pd-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#pd-portal .pd-prose img, #pd-portal .pd-prose iframe, #pd-portal .pd-prose video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
#pd-portal .pd-prose blockquote {
  padding: 10px 16px;
  color: var(--pd-muted);
  background: #F8F9FC;
  border: 0;
  border-radius: 10px;
}
#pd-portal .pd-prose table { width: 100%; border-collapse: collapse; }
#pd-portal .pd-prose th, #pd-portal .pd-prose td {
  padding: 8px 10px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--pd-line);
}
#pd-portal .pd-prose hr { margin: 18px 0; border: 0; border-top: 1px solid var(--pd-line); }
.pd-club-files { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
#pd-portal .pd-club-files a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pd-brand);
  text-decoration: none;
  border: 1.5px solid #D5D9E6;
  border-radius: 10px;
}

.pd-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.pd-unread .pd-dot { background: var(--pd-brand); }
.pd-message-from {
  flex: none;
  width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-message-subject {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-unread .pd-message-from, .pd-unread .pd-message-subject { font-weight: 700; }
.pd-message-when { flex: none; font-size: 13px; color: var(--pd-muted); }

.pd-everything { display: flex; flex-direction: column; gap: 12px; }

.pd-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

#pd-portal .pd-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #FFFFFF;
  border: 1.5px solid var(--pd-line);
  border-radius: 14px;
  color: var(--pd-ink);
  text-decoration: none;
}

#pd-portal .pd-tile:hover { border-color: #9AA3D9; }
.pd-tile strong { font-size: 16px; font-weight: 700; }
.pd-tile > span:last-child {
  font-size: 14px;
  line-height: 1.4;
  color: var(--pd-muted);
}

.pd-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pd-tint);
  color: var(--pd-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .pd-portal { padding: 16px 0; }
  #pd-portal .pd-title { font-size: 28px; }
  #pd-portal .pd-greeting .pd-title { font-size: 30px; }
  .pd-tabs { display: none; }
  .pd-switcher { display: block; }
  .pd-body { padding: 14px; }
  .pd-row { padding: 12px 14px; flex-wrap: wrap; }
  .pd-row-text { flex-basis: calc(100% - 64px); }
  .pd-message-from { width: auto; flex: 1 1 auto; }
  .pd-message-subject { flex: 1 1 100%; order: 3; padding-left: 22px; }
  .pd-conditions { gap: 8px 12px; padding: 10px 12px 12px; }
  .pd-tides { flex-basis: 100%; padding-left: 0; border-left: 0; }
  #pd-portal .pd-tides h3 { display: none; }
  .pd-tides ol {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-tides li { flex-wrap: wrap; gap: 0 4px; min-width: 0; padding: 4px 7px; }
  .pd-tide-kind { font-size: 10px; letter-spacing: 0; }
  .pd-tide-badge {
    width: 7px;
    height: 7px;
    margin-left: auto;
    padding: 0;
    align-self: center;
    font-size: 0;
  }
}

/* ---- Pages not rebuilt: their forms, tables and buttons in the design's style ---- */

#pd-portal .pd-body:has(> form .style-portal, > .style-portal) {
  padding: 0;
  background: none;
  border: 0;
}

#pd-portal .pd-body .style-portal {
  margin: 0 0 16px;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 16px;
}

#pd-portal .pd-body > h1:first-child { display: none; }

#pd-portal .pd-body h1, #pd-portal .pd-body h2, #pd-portal .pd-body h3 {
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--pd-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--pd-ink);
  background: none;
  border: 0;
  text-align: left;
}

#pd-portal .pd-body label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #262B48;
}

#pd-portal .pd-body p { margin: 0 0 14px; }

#pd-portal .pd-body input[type="text"], #pd-portal .pd-body input[type="email"],
#pd-portal .pd-body input[type="tel"], #pd-portal .pd-body input[type="number"],
#pd-portal .pd-body input[type="password"], #pd-portal .pd-body input[type="date"],
#pd-portal .pd-body input[type="datetime-local"],
#pd-portal .pd-body input[type="url"], #pd-portal .pd-body input[type="search"],
#pd-portal .pd-body input:not([type]), #pd-portal .pd-body select,
#pd-portal .pd-body textarea {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--pd-ink);
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
  border-radius: 10px;
  box-shadow: none;
}

#pd-portal .pd-body select { padding-right: 32px; }
#pd-portal .pd-body textarea { min-height: 96px; line-height: 1.45; }

#pd-portal .pd-body input:focus, #pd-portal .pd-body select:focus,
#pd-portal .pd-body textarea:focus {
  outline: none;
  border-color: var(--pd-brand);
  box-shadow: 0 0 0 3px rgba(19, 35, 91, 0.15);
}

#pd-portal .pd-body input[type="checkbox"], #pd-portal .pd-body input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0 6px 0 0;
  vertical-align: -3px;
  accent-color: var(--pd-brand);
}

#pd-portal .pd-body label:has(> input[type="checkbox"]),
#pd-portal .pd-body label:has(> input[type="radio"]) { font-weight: 600; }

#pd-portal .pd-body input[type="submit"], #pd-portal .pd-body button,
#pd-portal .pd-body .button, #pd-portal .pd-body a.ui-button,
#pd-portal .pd-body .ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--pd-brand);
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
}

#pd-portal .pd-body .button.small, #pd-portal .pd-body .ui-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
}

#pd-portal .pd-body hr {
  height: 0;
  margin: 16px 0;
  border: 0;
  border-top: 1px solid var(--pd-row-line);
}

#pd-portal .pd-body table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

#pd-portal .pd-body th {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--pd-muted);
  background: none;
  border: 0;
  border-bottom: 1.5px solid #DDE1EB;
}

#pd-portal .pd-body td {
  padding: 12px;
  vertical-align: top;
  background: none;
  border: 0;
  border-top: 1px solid var(--pd-row-line);
}

#pd-portal .pd-body .important {
  margin: 0 0 16px;
  padding: 14px 18px;
  color: #5C3A00;
  background: #FFF1D6;
  border: 1.5px solid #F3D08A;
  border-radius: 14px;
}

#pd-portal .pd-body .style-portal:not(:has(*)) { display: none; }

#pd-portal .pd-body span.label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #262B48;
}

#pd-portal .pd-body .adderdiv { padding: 0; background: none; }

#pd-portal .pd-body a.tag-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin: 0 6px 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--pd-ink);
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
  border-radius: 999px;
}

#pd-portal .pd-body a.tag-button.on {
  color: #FFFFFF;
  background: var(--pd-brand);
  border-color: var(--pd-brand);
}

/* ---- Rebuilt pages ---- */

#pd-portal .pd-body.pd-designed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  background: none;
  border: 0;
}

.pd-intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #262B48;
  max-width: 70ch;
}
#pd-portal .pd-body .pd-intro { margin: 0; }
#pd-portal .pd-empty-top { padding-top: 18px; }
.pd-list { margin: 0; padding: 0; list-style: none; }
.pd-list > .pd-row:first-child { border-top: 0; }
.pd-list > .pd-row { align-items: flex-start; flex-wrap: wrap; gap: 8px 14px; }

.pd-row-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pd-tint);
  color: var(--pd-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-list .pd-row-text { flex: 1 1 220px; }

.pd-row-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

#pd-portal .pd-row-text > span.pd-row-note { font-size: 14px; color: #262B48; }

.pd-badge-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pd-row-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 700;
}

#pd-portal .pd-danger { color: #B42318; }

.pd-add > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--pd-brand);
  border: 2px dashed #B9C0D4;
  border-radius: 14px;
  cursor: pointer;
}

.pd-add > summary::-webkit-details-marker { display: none; }
.pd-add[open] > summary { display: none; }

#pd-portal .pd-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--pd-brand);
  overflow: visible;
}

.pd-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

#pd-portal .pd-form-grid input, #pd-portal .pd-form-grid select { width: 100%; }

.pd-file {
  padding: 14px;
  border: 1.5px dashed #B9C0D4;
  border-radius: 12px;
}

.pd-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#pd-portal .pd-row-text > span.pd-row-meta { font-size: 14px; color: var(--pd-muted); }

#pd-portal .pd-body .ui-alert {
  margin: 0 0 16px;
  padding: 14px 16px;
  color: var(--pd-ink);
  background: #F8F9FC;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
}

#pd-portal .pd-body .ui-alert.ui-clean { background: #FFFFFF; }

#pd-portal .pd-body .ui-alert.ui-warning, #pd-portal .pd-body .ui-alert.ui-chunky,
#pd-portal .pd-body .ui-alert.ui-note {
  color: #5C3A00;
  background: #FFF1D6;
  border: 1.5px solid #F3D08A;
}

#pd-portal .pd-body .ui-alert.ui-danger {
  color: #7A1A10;
  background: #FDE7E5;
  border: 1.5px solid #F4B6AE;
}

#pd-portal .pd-body .ui-alert.ui-success, #pd-portal .pd-body .ui-alert.ui-promote {
  color: #0B4A43;
  background: #DDF3EE;
  border: 1.5px solid #9AD8CB;
  box-shadow: none;
}

#pd-portal .pd-body .ui-alert.ui-promote a { color: #0B4A43; }

#pd-portal .pd-body form, #pd-portal .pd-body div.as-form {
  margin: 0 0 16px;
  padding: 0;
  background: none;
  border-radius: 0;
}

#pd-portal .pd-body form.pd-form {
  padding: 18px;
  background: #FFFFFF;
  border-radius: 16px;
}

/* Payments */
.pd-tiles-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pd-stat {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
}

.pd-stat > span { font-size: 14px; color: var(--pd-muted); }
.pd-stat > span:last-child { font-size: 13px; }
.pd-stat strong { font-family: var(--pd-head); font-size: 26px; font-weight: 700; }
.pd-stat-alert { border-color: #F2C4BF; }
.pd-stat-alert strong { color: #B42318; }
.pd-row-alert { background: #FFFBFA; }
.pd-invoice { flex-wrap: wrap; }
.pd-invoice .pd-row-text { flex: 1 1 260px; }

.pd-amount {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.pd-amount strong { font-size: 16px; font-variant-numeric: tabular-nums; }

/* Older lists shown as they were, each heading starting a card */
.pd-old:empty { display: none; }
#pd-portal .pd-old h1.portal {
  margin: 8px 0 10px;
  padding: 0;
  font-family: var(--pd-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--pd-ink);
  background: none;
  border: 0;
  text-align: left;
}
#pd-portal .pd-old table {
  margin-bottom: 16px !important;
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
#pd-portal .pd-old td:first-child, #pd-portal .pd-old th:first-child {
  padding-left: 18px;
}
.pd-row-aside { color: var(--pd-muted); font-style: italic; }
#pd-portal .pd-negative { color: #B42318; }
.pd-statement-row .pd-amount span { font-size: 13px; color: var(--pd-muted); }
.pd-note {
  margin: 0;
  padding: 10px 20px 14px;
  font-size: 13px;
  color: var(--pd-muted);
}

/* Bookings and duties */
.pd-actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-badge-info { color: #1B2A8C; background: #E7E9F8; }
.pd-row-title a { color: inherit; }

/* Boats and berths */
.pd-boats { display: flex; flex-direction: column; gap: 14px; }
.pd-boat-main { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 18px; }

.pd-boat-tile {
  flex: none;
  width: 150px;
  height: 112px;
  box-sizing: border-box;
  padding: 10px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-radius: 12px;
  overflow: hidden;
  color: #FFFFFF;
  background: var(--pd-brand);
}

.pd-boat-tile svg { stroke-width: 1.6; }
.pd-boat-tile strong { font-family: var(--pd-head); font-size: 20px; font-weight: 700; }
.pd-boat-tile:has(img) { padding: 0; }
.pd-boat-tile img { width: 100%; height: 100%; object-fit: cover; }

.pd-boat-text {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#pd-portal .pd-body .pd-boat-name {
  margin: 0;
  padding: 0;
  font-family: var(--pd-head);
  font-size: 21px;
  font-weight: 700;
  color: var(--pd-ink);
  background: none;
  border: 0;
}

.pd-boat-owner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #262B48;
}

.pd-boat-owner > span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--pd-brand);
}
.pd-boat-text .pd-row-meta { font-size: 15px; color: var(--pd-muted); }

.pd-facts {
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px 18px;
}

.pd-facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-facts dd { margin: 0; font-size: 15px; font-weight: 600; }

.pd-boat-band {
  padding: 12px 18px;
  background: #F8F9FC;
  border-top: 1px solid var(--pd-row-line);
}

#pd-portal .pd-boat-band p { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
#pd-portal .pd-boat-band p + p { margin-top: 6px; }
.pd-boat-band span { font-size: 14px; color: var(--pd-muted); }

.pd-boat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 18px;
  border-top: 1px solid #F1F3F8;
  font-size: 14px;
  font-weight: 700;
}

.pd-boat-links:empty { display: none; }

@media (max-width: 640px) {
  .pd-boat-tile { width: 100%; }
}

#pd-portal .pd-add-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 2px dashed #B9C0D4;
  border-radius: 14px;
}

#pd-portal .pd-body .ui-empty {
  margin: 0 0 16px;
  padding: 16px 18px;
  font-style: normal;
  color: var(--pd-muted);
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
}

#pd-portal .pd-body > table {
  margin-bottom: 16px;
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

/* Messages */
#pd-portal .pd-messages table { margin: 0; border: 0; border-radius: 0; }
#pd-portal .pd-messages td:first-child,
#pd-portal .pd-messages th:first-child {
  padding-left: 20px;
}
#pd-portal .pd-messages p { margin: 0; padding: 12px 20px; font-weight: 700; }
#pd-portal tr.unread td { font-weight: 700; background: #F5F7FF; }

#pd-portal tr.unread td:first-child::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 8px 1px -14px;
  border-radius: 50%;
  background: var(--pd-brand);
}

/* Crew finder */
#pd-portal .pd-body #head-box {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #F8F9FC;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
}

/* Club directory */
#pd-portal .pd-body .uix-az {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 14px;
}

#pd-portal .pd-body .uix-az a, #pd-portal .pd-body .uix-az span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

#pd-portal .pd-body .uix-az a { color: var(--pd-brand); background: var(--pd-tint); }
#pd-portal .pd-body .uix-az span { color: #A9AFC2; }

#pd-portal .pd-body form.uix-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#pd-portal .pd-body form.uix-bar input[type="text"] { flex: 1 1 240px; }

#pd-portal .pd-body p a.on {
  padding: 2px 10px;
  color: #FFFFFF;
  background: var(--pd-brand);
  border: 0;
  border-radius: 999px;
}

/* Berths and spaces */
.pd-stack { display: flex; flex-direction: column; gap: 10px; }

#pd-portal .pd-body .pd-section-title {
  margin: 0;
  font-family: var(--pd-head);
  font-size: 19px;
  font-weight: 700;
}

.pd-berth { display: flex; flex-wrap: wrap; align-items: stretch; }
.pd-berth-due { border-color: #E8C27A; }

.pd-berth-tile {
  flex: 0 0 140px;
  box-sizing: border-box;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  color: var(--pd-brand);
  background: var(--pd-tint);
}

.pd-berth-tile span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pd-berth-tile strong {
  font-family: var(--pd-head);
  font-size: 30px;
  font-weight: 700;
}

.pd-berth-text {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
}

.pd-berth-text .pd-row-heading strong { font-size: 17px; }
.pd-berth-text .pd-row-meta { font-size: 14px; color: var(--pd-muted); }

.pd-berth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

.pd-berth-links:empty { display: none; }

.pd-place { flex: none; display: flex; align-items: baseline; gap: 6px; }
.pd-place strong {
  font-family: var(--pd-head);
  font-size: 28px;
  color: var(--pd-brand);
}
.pd-place span { font-size: 14px; color: var(--pd-muted); }

#pd-portal .pd-card-text { margin: 0; padding: 0 20px 12px; color: var(--pd-muted); }

.pd-apply-boats {
  margin: 0;
  padding: 0 18px 18px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.pd-apply-boats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1.5px solid var(--pd-line);
  border-radius: 12px;
}

.pd-apply-boats span { font-size: 14px; color: var(--pd-muted); }
#pd-portal .pd-apply-boats .pd-action { margin-top: 6px; justify-content: center; }

.pd-past > summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .pd-berth-tile { flex-basis: 100%; }
}
#pd-portal .pd-body .pd-section-note {
  margin: 0;
  font-size: 14px;
  color: var(--pd-muted);
}

/* Filter chips */
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }

#pd-portal .pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #262B48;
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}

#pd-portal .pd-chip.pd-on, #pd-portal .pd-chip:has(input:checked) {
  color: #FFFFFF;
  background: var(--pd-brand);
  border-color: var(--pd-brand);
}

#pd-portal .pd-chip input { position: absolute; opacity: 0; pointer-events: none; }

.pd-link-cards { display: flex; flex-wrap: wrap; gap: 10px; }

#pd-portal .pd-link-card {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pd-ink);
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  text-decoration: none;
}

.pd-link-card span { font-weight: 500; color: var(--pd-muted); }

/* The duty roster */
#pd-portal .pd-body form.pd-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
}

#pd-portal .pd-filters > label {
  flex: 0 1 280px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  color: var(--pd-muted);
}

#pd-portal .pd-filters select { width: 100%; font-weight: 600; }
#pd-portal .pd-filters .pd-chips { flex: 1 1 100%; }

#pd-portal .pd-body .pd-chips label.pd-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: 14px;
  color: #262B48;
}

#pd-portal .pd-body .pd-chips label.pd-chip:has(input:checked) { color: #FFFFFF; }

.pd-callout {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.pd-callout-alert { color: #7A1A10; background: #FDE7E5; border: 1.5px solid #F4B6AE; }

.pd-roster-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  background: #F8F9FC;
  border-bottom: 1px solid var(--pd-row-line);
}

.pd-roster-head .pd-date { height: auto; padding: 5px 0; }
.pd-roster-head .pd-date span:last-child { font-size: 11px; }
.pd-roster-head .pd-row-text { flex: 1 1 200px; }

.pd-fill {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #115E55;
}

.pd-fill-bar {
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: var(--pd-line);
  overflow: hidden;
}

.pd-fill-bar span { display: block; height: 100%; background: #115E55; }

#pd-portal .pd-body table.pd-roster-table {
  margin: 0;
  border: 0;
  border-radius: 0;
  font-size: 15px;
}

#pd-portal .pd-roster-table thead th {
  padding: 8px 12px 4px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 0;
}

#pd-portal .pd-roster-table tbody th {
  padding: 10px 12px 10px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pd-ink);
  text-transform: none;
  letter-spacing: 0;
  border-top: 1px solid #F1F3F8;
  border-bottom: 0;
}

#pd-portal .pd-roster-table td { padding: 8px 12px; border-top: 1px solid #F1F3F8; }
#pd-portal .pd-roster-table thead th:first-child { padding-left: 16px; }
.pd-roster-note {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pd-muted);
}

.pd-volunteer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
  line-height: 1.25;
}

.pd-volunteer > span:last-child { display: flex; flex-direction: column; }
.pd-volunteer small { font-size: 12px; font-weight: 600; color: var(--pd-muted); }

.pd-initials {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--pd-brand);
  background: var(--pd-tint);
}

#pd-portal .pd-body form.pd-volunteer-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 4px 0 0;
}

.pd-needed { font-size: 14px; font-weight: 700; color: #8A5300; }

#pd-portal .pd-volunteer-form input[type="submit"] {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 9px;
}

.pd-pages { justify-content: center; }
#pd-portal .pd-chip:has(input:focus-visible) {
  outline: 3px solid var(--pd-focus);
  outline-offset: 2px;
}

/* Older duty pages: their views as chips, season summary as a card */
#pd-portal .pd-body .ui-view-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 14px;
}

#pd-portal .pd-body .ui-view-list .ui-view-label:after { content: none; }

#pd-portal .pd-body .ui-view-list a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  font-weight: 700;
  color: #262B48;
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
  border-radius: 999px;
  text-decoration: none;
}

#pd-portal .pd-body .ui-view-list .ui-on a {
  color: #FFFFFF;
  background: var(--pd-brand);
  border-color: var(--pd-brand);
}

#pd-portal .pd-body #special {
  margin: 0 0 16px;
  padding: 16px 18px;
  text-align: left;
  color: var(--pd-ink);
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 16px;
}

#pd-portal .pd-body table.pretty tbody tr.group-begin td {
  border-top: 2px solid var(--pd-line);
}

/* A boat's own page */
.pd-boat-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 18px;
  padding: 18px;
}
.pd-boat-hero .pd-boat-tile { width: 260px; height: 168px; padding: 14px 16px; }
.pd-boat-hero .pd-boat-tile svg { width: 64px; height: 64px; }
.pd-boat-hero .pd-boat-tile strong { font-size: 28px; }

.pd-boat-hero-text {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#pd-portal .pd-boat-hero-text .pd-title { font-size: 38px; }
.pd-boat-class { font-size: 16px; color: #262B48; }
.pd-boat-hero-text .pd-actions-row { margin-top: auto; padding-top: 10px; }

#pd-portal .pd-action-brand {
  color: #FFFFFF;
  background: var(--pd-brand);
  border-color: var(--pd-brand);
}

.pd-boat-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 18px;
  align-items: start;
}

.pd-boat-column { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

#pd-portal .pd-card > .pd-card-title.pd-card-ruled {
  padding: 14px 18px;
  border-bottom: 1px solid var(--pd-row-line);
}

.pd-facts-card {
  padding: 14px 18px 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pd-facts-card dd { margin-top: 2px; }

.pd-card-padded {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  font-size: 15px;
}

#pd-portal .pd-card-padded > .pd-card-title { padding: 0; }
.pd-card-padded > a { margin-top: 4px; font-size: 14px; font-weight: 700; }
.pd-muted { font-size: 14px; color: var(--pd-muted); }

#pd-portal .pd-card-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  border-top: 1px solid #F1F3F8;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.pd-crew-row { padding: 10px 18px; }
.pd-crew-row .pd-initials { width: 30px; height: 30px; }

.pd-boat-finder {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px;
  border-top: 1px solid #F1F3F8;
}

.pd-boat-finder span { font-size: 14px; color: var(--pd-muted); }

@media (max-width: 760px) {
  .pd-boat-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-boat-hero .pd-boat-tile { width: 100%; }
  .pd-facts-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pd-portal .pd-boat-hero-text .pd-title { font-size: 30px; }
}

#pd-portal .pd-body .pd-card-title { margin: 0; }

#pd-portal .pd-body .pd-boat-hero-text .pd-title {
  margin: 0;
  font-size: 38px;
  line-height: 1.1;
  color: var(--pd-brand);
}

@media (max-width: 760px) {
  #pd-portal .pd-body .pd-boat-hero-text .pd-title { font-size: 30px; }
}

/* A boat's crew and owners */
.pd-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.pd-card-head.pd-card-ruled { border-bottom: 1px solid var(--pd-row-line); }
.pd-card-head .pd-muted { font-size: 14px; }
.pd-table-scroll { overflow-x: auto; }

#pd-portal .pd-body table.pd-crew-table {
  margin: 0;
  border: 0;
  border-radius: 0;
  font-size: 15px;
}

#pd-portal .pd-crew-table th {
  padding: 10px 12px;
  letter-spacing: 0.04em;
  border-bottom: 0;
}
#pd-portal .pd-crew-table td { padding: 10px 12px; vertical-align: middle; }
#pd-portal .pd-crew-table th:first-child, #pd-portal .pd-crew-table td:first-child {
  padding-left: 18px;
}
#pd-portal .pd-crew-table td:last-child { padding-right: 18px; text-align: right; }
#pd-portal .pd-crew-table td.manager select {
  min-height: 36px;
  padding: 4px 28px 4px 10px;
}

#pd-portal .pd-crew-table .pri {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #115E55;
  background: #DDF3EE;
  border-radius: 999px;
}

#pd-portal .pd-pill-link {
  display: inline-block;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: #1B2A8C;
  background: #E7E9F8;
  border-radius: 999px;
  text-decoration: none;
}

#pd-portal .pd-crew-table .pd-row-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
#pd-portal .pd-body form.pd-crew-add {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pd-finder-rows { margin: 0 -18px; border-bottom: 1px solid var(--pd-row-line); }

.pd-callout-note { color: #5C3A00; background: #FFF1D6; border: 1.5px solid #F3D08A; }

.pd-boat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
}

#pd-portal .pd-boat-cards form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
#pd-portal .pd-boat-cards form > label {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

#pd-portal .pd-body input.pd-outline-button,
#pd-portal .pd-body button.pd-outline-button {
  align-self: flex-start;
  color: var(--pd-ink);
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
}

#pd-portal .pd-body input.pd-danger-button {
  align-self: flex-start;
  background: #B42318;
}
.pd-crew-add .pd-form-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.pd-log-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
}

#pd-portal .pd-log-empty p { margin: 0; }

/* The logbook */
.pd-log-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pd-date-plain { background: #F1F3F8; color: #262B48; }
.pd-log-row { align-items: flex-start; }
#pd-portal .pd-log-row a.pd-row-note { font-size: 14px; font-weight: 700; }
.pd-log-time { flex: none; font-size: 15px; font-weight: 700; color: #262B48; }
#pd-portal .pd-body .button-group:not(:has(a)) { display: none; }

/* Applying for a berth or space */
.pd-apply-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }

#pd-portal .pd-body form.pd-apply-form {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.pd-apply-aside { flex: 1 1 260px; position: sticky; top: 16px; }
#pd-portal .pd-apply-aside p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #262B48;
}
.pd-step { gap: 14px; }
.pd-step-head { display: flex; align-items: center; gap: 12px; }

.pd-step-number {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--pd-brand);
  background: var(--pd-tint);
}

.pd-choices {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 10px;
}

#pd-portal .pd-choices legend { margin-bottom: 8px; font-size: 14px; font-weight: 700; }

#pd-portal .pd-body label.pd-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pd-ink);
  background: #FFFFFF;
  border: 2px solid var(--pd-line);
  border-radius: 12px;
  cursor: pointer;
}

#pd-portal .pd-body label.pd-choice:has(input:checked) {
  background: var(--pd-tint);
  border-color: var(--pd-brand);
}

#pd-portal .pd-body label.pd-choice input { margin-top: 2px; }
.pd-choice > span { display: flex; flex-direction: column; gap: 2px; }
.pd-choice small { font-size: 13px; font-weight: 500; color: var(--pd-muted); }
#pd-portal .pd-body input.pd-accent-button { background: #C8371F; }
.pd-sent { border: 2px solid #9AD8CB; }

.pd-sent-tick {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0E7C6B;
  background: #DDF3EE;
}

#pd-portal .pd-sent p { margin: 0; font-size: 16px; line-height: 1.55; }
.pd-sent-facts { padding: 14px 16px; background: var(--pd-bg); border-radius: 12px; }
.pd-form-actions { align-items: center; }
#pd-portal .pd-body .pd-form-actions input[type="submit"] { margin: 0; }
#pd-portal .pd-sent .pd-card-title { font-size: 24px; }

/* My schedule as a calendar */
.pd-view-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pd-segments {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #E9ECF3;
  border-radius: 10px;
}

#pd-portal .pd-segments a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pd-muted);
  border-radius: 8px;
  text-decoration: none;
}

#pd-portal .pd-segments a.pd-on {
  color: var(--pd-ink);
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(20, 26, 51, 0.15);
}

.pd-month-nav { display: flex; align-items: center; gap: 6px; }
#pd-portal .pd-month-nav .pd-section-title { min-width: 160px; text-align: center; }

#pd-portal .pd-month-step {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--pd-ink);
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
  border-radius: 10px;
  text-decoration: none;
}

.pd-cal-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.pd-cal-weekday {
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pd-muted);
  background: #F8F9FC;
  border-bottom: 1px solid var(--pd-line);
}

.pd-cal-day {
  min-width: 0;
  min-height: 112px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--pd-row-line);
  border-bottom: 1px solid var(--pd-row-line);
}

.pd-cal-day:nth-child(7n) { border-right: 0; }
.pd-cal-other { background: #FAFBFD; }
.pd-cal-other .pd-cal-number { color: #A9AFC2; }
.pd-cal-picked { background: var(--pd-tint); }

#pd-portal .pd-cal-number {
  align-self: flex-start;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--pd-ink);
  text-decoration: none;
}

#pd-portal .pd-cal-today .pd-cal-number { color: #FFFFFF; background: var(--pd-brand); }

.pd-cal-entry {
  display: block;
  padding: 3px 6px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--pd-kind);
  background: #F5F6FA;
  border-left: 3px solid var(--pd-kind);
  border-radius: 6px;
}

#pd-portal .pd-cal-more { padding: 0 4px; font-size: 12px; font-weight: 700; }
.pd-cal-dots { display: none; gap: 3px; justify-content: center; }
.pd-cal-dots span { width: 6px; height: 6px; border-radius: 3px; }

.pd-cal-key {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--pd-muted);
}

.pd-cal-key li { display: inline-flex; align-items: center; gap: 6px; }
.pd-cal-key span { width: 10px; height: 10px; border-radius: 3px; }

@media (max-width: 640px) {
  .pd-cal-day { min-height: 52px; padding: 2px; align-items: center; }
  .pd-cal-entry, #pd-portal .pd-cal-more { display: none; }
  .pd-cal-dots { display: flex; }
  #pd-portal .pd-cal-number {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    font-size: 14px;
  }
}

/* My duties and swaps */
.pd-badge-warn { color: #8A5300; background: #FFF1D6; }
.pd-badge-ok { color: #115E55; background: #DDF3EE; }
.pd-badge-grey { color: #4A5068; background: #EEF0F5; }

.pd-quota {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 18px;
}

.pd-quota > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
#pd-portal .pd-quota p { margin: 0; }

#pd-portal .pd-body .pd-quota-title {
  margin: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
}

.pd-quota-bar {
  flex: 1 1 200px;
  max-width: 320px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}

.pd-quota-bar span { height: 10px; border-radius: 5px; background: var(--pd-line); }
.pd-quota-bar span.pd-on { background: #0E8A7A; }

.pd-request {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 18px;
  background: #EEF1FB;
  border: 1.5px solid #C5CCEB;
}

.pd-request-text {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
  line-height: 1.45;
}

.pd-quote { font-style: italic; color: var(--pd-muted); }
.pd-request-actions, .pd-duty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

#pd-portal .pd-body .pd-request-actions form,
#pd-portal .pd-body .pd-duty-actions form,
#pd-portal .pd-body .pd-row form {
  margin: 0;
}

.pd-duty-main { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; }
.pd-date-duty { height: auto; padding: 6px 0; color: #8A5300; background: #FFF1D6; }
.pd-date-duty span:last-child { font-size: 11px; }
.pd-duty .pd-row-text { gap: 3px; }
.pd-duty-actions { margin-top: 6px; font-size: 14px; font-weight: 700; }
.pd-duty-actions .pd-muted { font-weight: 400; }
#pd-portal .pd-duty-actions input[type="submit"] { min-height: 40px; font-size: 14px; }

.pd-swap-panel { border-top: 1px solid var(--pd-line); }

.pd-swap-panel > summary {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin: 0 16px 14px 82px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pd-brand);
  list-style: none;
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
  border-radius: 10px;
  cursor: pointer;
}

.pd-swap-panel > summary::-webkit-details-marker { display: none; }
.pd-swap-panel:not([open]) { border-top: 0; }
.pd-swap-panel[open] > summary { margin-top: 14px; }

.pd-swap-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  background: #F8F9FC;
  border-top: 1px solid var(--pd-line);
}

.pd-swap-question { font-size: 16px; font-weight: 700; }

#pd-portal a.pd-choice {
  display: flex;
  padding: 12px 14px;
  color: var(--pd-ink);
  background: #FFFFFF;
  border: 2px solid var(--pd-line);
  border-radius: 12px;
  text-decoration: none;
}

#pd-portal a.pd-choice:hover { border-color: #8D96B3; }
.pd-segment-count { opacity: 0.75; }
.pd-done-row { gap: 10px; font-size: 15px; }
.pd-tick { color: #0E8A7A; font-weight: 700; }

@media (max-width: 640px) {
  .pd-swap-panel > summary { margin-left: 16px; }
}

/* Crew finder: my availability */
#pd-portal .pd-body form.pd-crew-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pd-switch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 18px;
}

.pd-switch-row + .pd-switch-row { border-top: 1px solid #F1F3F8; }

#pd-portal .pd-switch-row .pd-row-text label,
#pd-portal .pd-switch-row .pd-row-text strong {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--pd-ink);
}

#pd-portal .pd-body input.pd-switch-input {
  position: relative;
  flex: none;
  width: 52px;
  height: 30px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #C9CEDC;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.15s;
}

#pd-portal .pd-body input.pd-switch-input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: left 0.15s;
}

#pd-portal .pd-body input.pd-switch-input:checked { background: #0E8A7A; }
#pd-portal .pd-body input.pd-switch-input:checked::after { left: 25px; }

.pd-pills {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#pd-portal .pd-pills legend { margin-bottom: 8px; font-size: 15px; font-weight: 700; }

#pd-portal .pd-body .pd-pills label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  margin: 0;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #262B48;
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
  border-radius: 999px;
  cursor: pointer;
}

#pd-portal .pd-body .pd-pills input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#pd-portal .pd-body .pd-pills label:has(input:checked) {
  color: #FFFFFF;
  background: var(--pd-brand);
  border-color: var(--pd-brand);
}

#pd-portal .pd-body .pd-pills label:has(input:checked) span::before { content: '✓ '; }

#pd-portal .pd-body .pd-pills label:has(input:focus-visible) {
  outline: 3px solid var(--pd-focus);
  outline-offset: 2px;
}

#pd-portal .pd-crew-form textarea { width: 100%; }
#pd-portal .pd-crew-form .pd-form-grid input,
#pd-portal .pd-crew-form .pd-form-grid select {
  width: 100%;
}

#pd-portal .pd-body a.inline-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pd-brand);
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
  border-radius: 10px;
  text-decoration: none;
}
#pd-portal .pd-body form.pd-form > .pd-card-title { margin: 0; }

/* Crew available and Boats wanting crew */
.pd-finder-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#pd-portal .pd-body .pd-finder-count {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pd-muted);
}
.pd-finder-count a { font-weight: 700; }

.pd-finder-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pd-finder-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1.5px solid #E4E7EF;
  border-radius: 16px;
  overflow: hidden;
}
.pd-finder-card.pd-finder-match { border-color: #9AD8CB; }

.pd-finder-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.pd-finder-head { display: flex; align-items: center; gap: 12px; }

.pd-finder-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FFFFFF;
}
.pd-finder-person { border-radius: 50%; }
.pd-finder-boat { border-radius: 12px; }

.pd-finder-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
#pd-portal .pd-finder-name a {
  font-size: 17px;
  font-weight: 700;
  color: #262B48;
  text-decoration: none;
}
#pd-portal .pd-finder-name a:hover { text-decoration: underline; }
.pd-finder-name span { font-size: 14px; color: var(--pd-muted); }

.pd-match {
  flex: none;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #115E55;
  background: #DDF3EE;
  border-radius: 999px;
}

.pd-finder-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-finder-tags span {
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 600;
  color: #262B48;
  background: #F1F3F8;
  border-radius: 999px;
}

.pd-finder-when { font-size: 14px; font-weight: 700; color: var(--pd-brand); }
.pd-finder-note { font-size: 15px; line-height: 1.45; color: #262B48; }

#pd-portal .pd-finder-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid #F1F3F8;
  font-size: 14px;
}
.pd-finder-foot a { font-weight: 700; }
#pd-portal .pd-finder-sent { font-weight: 700; color: #115E55; }
#pd-portal .pd-finder-sent[hidden] { display: none; }

.pd-finder-offer > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: 12px 16px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pd-brand);
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
  border-radius: 10px;
  list-style: none;
  cursor: pointer;
}
.pd-finder-offer > summary::-webkit-details-marker { display: none; }
.pd-finder-offer[open] > summary { display: none; }

#pd-portal .pd-body form.pd-finder-send {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  background: #F8F9FC;
  border: 0;
  border-top: 1px solid #E4E7EF;
  border-radius: 0;
}
#pd-portal .pd-body .pd-finder-send label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
#pd-portal .pd-body .pd-finder-send textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  border: 1.5px solid #B9C0D4;
  border-radius: 10px;
  resize: vertical;
}
.pd-finder-send-actions { display: flex; gap: 8px; }
#pd-portal .pd-body .pd-finder-send-actions input,
#pd-portal .pd-body .pd-finder-send-actions button {
  flex: 1;
  align-self: stretch;
  margin: 0;
}

.pd-ask { scroll-margin-top: 16px; }

@media (max-width: 760px) {
  .pd-finder-cards { grid-template-columns: minmax(0, 1fr); }
  #pd-portal .pd-finder-bar .pd-head-button { flex: 1 1 100%; }
}

/* The Quill text editor keeps its own small toolbar, link box and text, which
   the members' area's buttons, fields and headings would otherwise take over */
#pd-portal .pd-body .ql-toolbar button {
  display: inline-block;
  float: left;
  width: 28px;
  height: 24px;
  min-height: 0;
  padding: 3px 5px;
  background: none;
  border: none;
  border-radius: 0;
}
#pd-portal .pd-body .ql-tooltip input[type="text"] {
  width: 170px;
  height: 26px;
  min-height: 0;
  margin: 0;
  padding: 3px 5px;
  font-size: 13px;
  border: 1px solid #CCCCCC;
  border-radius: 0;
}
#pd-portal .pd-body .ql-editor p { margin: 0; }
#pd-portal .pd-body .ql-editor h1, #pd-portal .pd-body .ql-editor h2,
#pd-portal .pd-body .ql-editor h3 {
  margin: 0;
  font-family: inherit;
  color: inherit;
}
#pd-portal .pd-body .ql-editor h1 { font-size: 2em; }
#pd-portal .pd-body .ql-editor h2 { font-size: 1.5em; }
#pd-portal .pd-body .ql-editor h3 { font-size: 1.17em; }

/* A logbook entry's hours and minutes, wide enough for two digits once padded */
#pd-portal .pd-body .group-hh-mm input {
  width: 4.5em !important;
  padding: 8px 6px;
  text-align: center;
}

/* A logbook entry's started and stopped times sit under their names */
#pd-portal .pd-body #editor input[type="datetime-local"] { display: block; margin-top: 6px; }

/* The club's own pages on the members' area home, as boxes */
.pd-club-pages { display: flex; flex-direction: column; gap: 12px; }
.pd-club-boxes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.pd-club-box {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1.5px solid #E4E7EF;
  border-radius: 14px;
  overflow: hidden;
}
#pd-portal .pd-club-box-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  color: var(--pd-ink);
  text-decoration: none;
}
#pd-portal .pd-club-box-page:hover strong { text-decoration: underline; }
.pd-club-box-head { display: flex; align-items: center; gap: 12px; }
div.pd-club-box-head { padding: 16px 16px 8px; }
.pd-club-box-head strong, #pd-portal .pd-club-box-head h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.pd-club-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pd-brand);
  background: var(--pd-tint);
  border-radius: 10px;
}
.pd-club-summary { font-size: 14px; line-height: 1.4; color: var(--pd-muted); }
.pd-club-box-pages { margin: 0; padding: 0 8px 8px; list-style: none; }
#pd-portal .pd-club-box-pages a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pd-brand);
  text-decoration: none;
  border-radius: 8px;
}
#pd-portal .pd-club-box-pages a:hover { background: var(--pd-hover); }
.pd-club-box-pages a span:first-child { flex: 1; min-width: 0; }
.pd-club-lock { flex: none; display: inline-flex; color: #8A5300; }

/* My membership: renewal banner, card and facts, people, history */
.pd-member-renew {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 18px 20px;
  background: #FFF6E5;
  border: 1.5px solid #E8C27A;
  border-radius: 16px;
}
.pd-member-renew-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A5300;
  background: #FFE3B0;
  border-radius: 12px;
}
.pd-member-renew-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; }
#pd-portal .pd-body .pd-member-renew h2 { margin: 0; font-family: inherit; font-size: 18px; }
#pd-portal .pd-body .pd-member-renew p { margin: 0; font-size: 15px; line-height: 1.45; color: #5C4410; }
.pd-member-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.pd-member-card {
  flex: 1 1 320px;
  max-width: 420px;
  min-height: 210px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--pd-brand) 0%, #0C1740 100%);
  border-radius: 18px;
}
.pd-member-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pd-member-club { font-family: var(--pd-head); font-size: 17px; font-weight: 700; }
.pd-member-year {
  flex: none;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}
.pd-member-who { display: flex; flex-direction: column; gap: 2px; }
.pd-member-who strong { font-family: var(--pd-head); font-size: 26px; font-weight: 700; }
.pd-member-who span { font-size: 15px; opacity: 0.9; }
.pd-member-card-facts { margin: 0; display: flex; gap: 22px; font-size: 13px; }
.pd-member-card-facts dt { opacity: 0.75; }
.pd-member-card-facts dd { margin: 0; font-size: 16px; font-weight: 700; }
.pd-member-facts { flex: 1 1 320px; display: flex; flex-direction: column; }
.pd-member-dl { margin: 0; padding: 4px 18px 8px; }
.pd-member-dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: 15px;
  border-bottom: 1px solid #F1F3F8;
}
.pd-member-dl dt { color: var(--pd-muted); }
.pd-member-dl dd { margin: 0; font-weight: 600; text-align: right; }
.pd-member-actions { margin-top: auto; padding: 6px 18px 16px; }
.pd-member-head { padding: 14px 18px 12px; border-bottom: 1px solid var(--pd-line); }
#pd-portal .pd-body .pd-member-head .pd-card-title { margin: 0 0 4px; padding: 0; }
#pd-portal .pd-body .pd-member-head p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--pd-muted); }
.pd-member-person { flex-wrap: wrap; }
#pd-portal .pd-member-avatar { width: 40px; height: 40px; font-size: 14px; color: #FFFFFF; }
.pd-member-badge {
  flex: none;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--pd-muted);
  background: #EEF0F5;
  border-radius: 999px;
}
.pd-member-badge.pd-member-ok { color: #115E55; background: #DDF3EE; }
.pd-member-badge.pd-member-due { color: #8A5300; background: #FFF1D6; }
.pd-member-change {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 18px;
  background: #F8F9FC;
  border-top: 1px solid var(--pd-line);
}
.pd-body > .pd-member-change { border: 1px solid var(--pd-line); border-radius: 16px; }
#pd-portal .pd-body .pd-member-change p { flex: 1 1 260px; margin: 0; font-size: 15px; line-height: 1.45; }
.pd-member-table { width: 100%; border-collapse: collapse; font-size: 15px; }
#pd-portal .pd-body .pd-member-table th {
  padding: 10px 18px 10px 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
  color: var(--pd-muted);
  background: none;
  border: 0;
}
#pd-portal .pd-body .pd-member-table td {
  padding: 11px 18px 11px 8px;
  border: 0;
  border-top: 1px solid #F1F3F8;
  background: none;
}
#pd-portal .pd-body .pd-member-table :is(th, td):first-child { padding-left: 18px; font-weight: 600; }
#pd-portal .pd-body .pd-member-table .pd-num { text-align: right; }
#pd-portal .pd-member-table a { font-weight: 700; color: var(--pd-brand); }
@media (max-width: 760px) {
  .pd-member-card { max-width: none; }
}

/* Club directory: officers, members, boats and trophies */
.pd-officers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.pd-officers li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
}
#pd-portal .pd-officers .pd-dir-avatar { width: 42px; height: 42px; }
#pd-portal .pd-officers .pd-row-text a { font-size: 15px; font-weight: 700; color: var(--pd-ink); text-decoration: none; }
.pd-officer-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pd-brand);
}
#pd-portal .pd-dir-avatar { width: 40px; height: 40px; font-size: 14px; }
#pd-portal .pd-icon-link {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pd-brand);
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
  border-radius: 10px;
}
.pd-dir-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 18px 4px;
}
.pd-body > .pd-dir-tools { padding: 0; }
#pd-portal .pd-body .pd-dir-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}
.pd-dir-search svg { position: absolute; top: 13px; left: 14px; color: var(--pd-muted); }
#pd-portal .pd-body .pd-dir-search input { width: 100%; padding-left: 42px; }
.pd-az { gap: 4px; }
#pd-portal .pd-az .pd-chip { min-width: 34px; height: 34px; padding: 0 8px; justify-content: center; }
.pd-chip-count {
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 12px;
  color: #262B48;
  background: #EEF0F5;
  border-radius: 999px;
}
.pd-chip.pd-on .pd-chip-count { color: var(--pd-brand); background: #FFFFFF; }
.pd-dir-list { margin: 8px 0 0; padding: 0; list-style: none; }
.pd-dir-letter {
  padding: 10px 18px 4px;
  font-family: var(--pd-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--pd-brand);
  border-top: 1px solid var(--pd-line);
}
.pd-dir-list > li:first-child.pd-dir-letter { border-top: 0; }
.pd-dir-member > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  list-style: none;
  cursor: pointer;
}
.pd-dir-member > summary::-webkit-details-marker { display: none; }
.pd-dir-member > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin: 0 4px;
  border: solid #8A90AC;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pd-dir-member[open] > summary { background: #F8F9FC; }
.pd-dir-member[open] > summary::after { transform: rotate(-135deg); }
.pd-dir-detail { padding: 6px 18px 16px 70px; background: #F8F9FC; }
.pd-dir-facts { margin: 0 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.pd-dir-facts div { display: contents; }
.pd-dir-facts dt { color: var(--pd-muted); }
.pd-dir-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pd-dir-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#pd-portal .pd-dir-more { align-self: center; margin: 12px auto; }
.pd-card > .pd-dir-more { display: flex; width: fit-content; }
.pd-dir-more.pd-loading { opacity: 0.6; pointer-events: none; }
#pd-portal .pd-body .pd-dir-note { margin: 0; font-size: 14px; color: var(--pd-muted); }
.pd-dir-trophies {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pd-dir-boat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#pd-portal .pd-body .pd-dir-boat h3, #pd-portal .pd-body .pd-dir-trophy h3 { margin: 0; font-size: 17px; }
#pd-portal .pd-dir-boat h3 a, #pd-portal .pd-dir-trophy h3 a { color: var(--pd-ink); text-decoration: none; }
.pd-dir-boat-facts { margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 14px; }
.pd-dir-boat-facts dt { color: var(--pd-muted); }
.pd-dir-boat-facts dd { margin: 0; font-weight: 600; }
.pd-dir-family {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #FFF6E5, #FFFFFF);
  border: 1.5px solid #E8C27A;
  border-radius: 16px;
}
.pd-dir-family-icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A5300;
  background: #FFE3B0;
  border-radius: 12px;
}
#pd-portal .pd-body .pd-dir-family h2 { margin: 0; font-family: inherit; font-size: 17px; }
.pd-dir-trophy {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1.5px solid var(--pd-line);
  border-radius: 16px;
  overflow: hidden;
}
.pd-dir-trophy-won { border-color: #E8C27A; }
.pd-dir-trophy-picture {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B7791F;
  background: radial-gradient(circle at 50% 40%, #FFF8E7, #F1E3C2);
}
.pd-dir-trophy-picture svg { stroke-width: 1.5; }
.pd-dir-trophy-picture img { width: 100%; height: 100%; object-fit: cover; }
.pd-dir-trophy-text { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.pd-dir-winner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; font-size: 14px; }
.pd-dir-family-badge { color: #8A5300; background: #FFF1D6; }
.pd-dir-past { background: #F8F9FC; border-top: 1px solid #F1F3F8; }
.pd-dir-past > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pd-brand);
  list-style: none;
  cursor: pointer;
}
.pd-dir-past > summary::-webkit-details-marker { display: none; }
.pd-dir-past[open] > summary svg { transform: rotate(180deg); }
.pd-dir-past ul { margin: 0; padding: 4px 16px 12px; list-style: none; }
.pd-dir-past li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid #ECEEF4;
}
.pd-dir-past li span:first-child { color: var(--pd-muted); font-variant-numeric: tabular-nums; }
.pd-dir-past li.pd-dir-past-yours { font-weight: 700; }
@media (max-width: 900px) {
  .pd-dir-trophies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pd-dir-detail { padding-left: 18px; }
  .pd-dir-trophies { grid-template-columns: minmax(0, 1fr); }
}

/* Editing a boat: its fields in two columns, who's on it, and its photo grid */
.pd-boat-edit { display: flex; flex-direction: column; gap: 18px; }
#pd-portal .pd-body form.pd-boat-edit { margin: 0; padding: 0; background: none; border: 0; }
.pd-boat-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  padding: 16px 18px 6px;
}
#pd-portal .pd-body .pd-boat-fields > p { margin: 0 0 12px; }
#pd-portal .pd-body .pd-boat-fields > p.help {
  grid-column: 1 / -1;
  margin: -8px 0 12px;
  font-size: 13px;
  font-style: normal;
  color: var(--pd-muted);
}
#pd-portal .pd-body .pd-boat-fields > hr, #pd-portal .pd-body .pd-boat-fields > #variants,
#pd-portal .pd-body .pd-boat-fields > p:has(textarea) { grid-column: 1 / -1; }
#pd-portal .pd-body .pd-boat-fields > hr { margin: 4px 0 12px; border: 0; border-top: 1px solid var(--pd-line); }
#pd-portal .pd-body .pd-boat-fields input[type="text"],
#pd-portal .pd-body .pd-boat-fields select,
#pd-portal .pd-body .pd-boat-fields textarea { width: 100%; }
.pd-boat-save { justify-content: flex-end; }
.pd-photo-intro { margin: 0; padding: 12px 18px 0; font-size: 15px; line-height: 1.45; color: var(--pd-muted); }
#pd-portal .pd-body .pd-photo-intro { margin: 0; }
#pd-portal .pd-body .pd-photo-status {
  margin: 12px 18px 0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #115E55;
  background: #DDF3EE;
  border-radius: 10px;
}
.pd-photos {
  margin: 0;
  padding: 16px 18px 18px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pd-photo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  border: 1.5px solid var(--pd-line);
  border-radius: 14px;
}
.pd-photo-picture { position: relative; aspect-ratio: 4 / 3; background: #EEF0F5; }
.pd-photo-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-photo-marks { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.pd-photo-mark {
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--pd-brand);
  border-radius: 999px;
}
.pd-photo-mark[hidden], .pd-photo-add[hidden], .pd-photo-none[hidden] { display: none; }
.pd-photo-body { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
#pd-portal .pd-body .pd-photo-body input[type="text"] { width: 100%; min-height: 40px; font-size: 14px; }
.pd-photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
#pd-portal .pd-body .pd-photo-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin: 0;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pd-brand);
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
  border-radius: 8px;
  cursor: pointer;
}
#pd-portal .pd-body .pd-photo-choice input { position: absolute; opacity: 0; pointer-events: none; }
#pd-portal .pd-body .pd-photo-choice:has(input:checked) {
  color: #FFFFFF;
  background: var(--pd-brand);
  border-color: var(--pd-brand);
}
#pd-portal .pd-body .pd-photo-choice:has(input:checked) span::before { content: '★ '; }
#pd-portal .pd-body .pd-photo-choice:has(input:focus-visible) { outline: 3px solid var(--pd-focus); outline-offset: 2px; }
#pd-portal .pd-body .pd-photo-remove {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
  color: #B42318;
  background: #FFFFFF;
  border: 1.5px solid #F2C4BF;
  border-radius: 8px;
}
.pd-photo-add { display: flex; }
#pd-portal .pd-body .pd-photo-add-button {
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  color: var(--pd-brand);
  background: #F8F9FC;
  border: 2px dashed #B9C0D4;
  border-radius: 14px;
  font-weight: 400;
}
.pd-photo-add-button span { font-size: 13px; color: var(--pd-muted); }
.pd-photo-add-button input[type="file"] { cursor: pointer; }
.pd-photo-none {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 18px 18px;
  padding: 12px;
  font-size: 14px;
  color: var(--pd-muted);
  background: #F8F9FC;
  border-radius: 12px;
}
.pd-photo-none .pd-boat-tile { width: 96px; height: 72px; }
@media (max-width: 760px) {
  .pd-boat-fields { grid-template-columns: minmax(0, 1fr); }
  .pd-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pd-callout-ok { display: flex; flex-wrap: wrap; gap: 6px 12px; color: #115E55; background: #DDF3EE; border: 1.5px solid #9AD8CB; }
#pd-portal .pd-dir-avatar { overflow: hidden; }
.pd-dir-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Profile: a card for each part, showing what the club has until Edit opens it */
.pd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#pd-portal .pd-body form.pd-profile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}
.pd-profile-complete { padding: 18px 22px 20px; overflow: visible; }
.pd-profile-card { padding: 0; overflow: visible; }
.pd-profile-card .pd-profile-head {
  padding: 14px 18px;
  border-bottom: 1px solid #EEF0F5;
}
.pd-profile-card .pd-profile-view { padding: 0 18px; }
.pd-profile-missing { border-color: #E8C27A; }
.pd-profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
#pd-portal .pd-profile-head .pd-card-title { margin: 0; padding: 0; }
.pd-profile-saved {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #115E55;
}
.pd-profile-missing-badge { color: #8A5300; background: #FFF1D6; }
#pd-portal .pd-body button.pd-profile-edit {
  margin-left: auto;
  min-height: 40px;
  color: var(--pd-brand);
  background: #FFFFFF;
  border: 1.5px solid #D5D9E6;
}
.pd-editing .pd-profile-edit, .pd-editing .pd-profile-view,
.pd-profile-fields { display: none; }
#pd-portal .pd-body .pd-editing .pd-profile-fields { display: block; padding: 16px 18px 18px; }
.pd-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 6px 0 12px;
}
.pd-profile-facts > div { padding: 10px 0; border-bottom: 1px solid #F1F3F8; }
.pd-profile-facts dt { font-size: 13px; font-weight: 700; color: var(--pd-muted); }
.pd-profile-facts dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pd-profile-facts .pd-badge-pill { margin-left: 6px; vertical-align: 1px; }
.pd-profile-none { font-weight: 400; color: #8A90AC; }
#pd-portal .pd-body .pd-profile-empty { margin: 0; padding: 16px 0; color: #262B48; }
#pd-portal .pd-profile-card .pd-note { padding: 0 0 14px; }
#pd-portal .pd-body .pd-profile-note {
  margin: 0;
  padding: 12px 16px;
  background: var(--pd-tint);
  border-radius: 12px;
}
#pd-portal .pd-body .pd-profile-fields input[type="text"],
#pd-portal .pd-body .pd-profile-fields select,
#pd-portal .pd-body .pd-profile-fields textarea { width: 100%; max-width: 520px; }
#pd-portal .pd-body .pd-profile-fields h2 { margin: 8px 0 10px; font-size: 16px; }
#pd-portal .pd-body #profile-address .pd-profile-fields #post > h2 { display: none; }
#pd-portal .pd-body .pd-profile-fields .field-options select { width: auto; }
#pd-portal .pd-body .pd-profile-fields .pd-form-actions { margin-top: 6px; }
#pd-portal .pd-body .pd-profile-cancel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 700;
}
.pd-profile-bar {
  flex: 1 1 160px;
  height: 8px;
  background: #E4E7EF;
  border-radius: 999px;
  overflow: hidden;
}
.pd-profile-bar span { display: block; height: 100%; background: var(--pd-brand); }
.pd-done .pd-profile-bar span { background: #0E8A7A; }
.pd-profile-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.pd-profile-checks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #8A5300;
  background: #FFF1D6;
  border-radius: 999px;
}
.pd-profile-checks li.pd-done { color: #115E55; background: #DDF3EE; }
@media (max-width: 760px) {
  .pd-profile-facts { grid-template-columns: minmax(0, 1fr); }
}
.pd-profile-photo { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
#pd-portal .pd-body .pd-editing button.pd-profile-edit { display: none; }
#pd-portal .pd-body .pd-profile-fields .address .controls > p,
#pd-portal .pd-body .pd-profile-fields .field-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 8px;
}
#pd-portal .pd-body .pd-profile-fields .address .controls > p > select { width: auto; }
#pd-portal .pd-body .pd-profile-fields .address .controls > p > input[type="text"] {
  flex: 1 1 260px;
}
#pd-portal .pd-body .pd-profile-fields .address .controls > p > br { display: none; }
#pd-portal .pd-body .pd-profile-fields .field-options label { margin: 0; }
#pd-portal .pd-body .pd-profile-fields .field-options .button.bad {
  min-height: 36px;
  color: #B42318;
  background: #FFFFFF;
  border: 1.5px solid #F4B6AE;
}
#pd-portal .pd-body .pd-profile-fields .address {
  padding: 12px 0;
  border-top: 1px solid var(--pd-row-line);
}

/* ---- Login and security ---- */

.pd-security-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 14px 20px;
}
.pd-security-item + .pd-security-item { border-top: 1px solid var(--pd-row-line); }
.pd-security-text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; }
.pd-security-label { font-size: 13px; font-weight: 700; color: var(--pd-muted); }
.pd-security-text strong { font-size: 16px; overflow-wrap: anywhere; }
.pd-security-text > span:last-child:not(.pd-security-label) {
  font-size: 14px;
  color: var(--pd-muted);
}
#pd-portal .pd-body .pd-security .pd-profile-fields { flex: 1 0 100%; margin-top: 4px; }
#pd-portal .pd-body .pd-security-form input:not([type="submit"]) {
  width: 100%;
  max-width: 420px;
  margin-bottom: 12px;
}
#pd-portal .pd-body .pd-security-form .pd-note { margin: 0 0 14px; padding: 0; }
#pd-portal .pd-body .pd-security-out { margin: 0 0 0 auto; }
#pd-portal .pd-body .pd-security-out button.pd-profile-edit { margin: 0; }
#pd-portal .pd-body .pd-security .pd-member-head { padding: 14px 20px 12px; }
#pd-portal .pd-body .pd-security .pd-member-head p {
  margin: 0;
  font-size: 14px;
  color: var(--pd-muted);
}

/* ---- Qualifications for several people ---- */

.pd-qualifications { display: flex; flex-direction: column; gap: 10px; }

#pd-portal .pd-qualifications-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  font-family: var(--pd-head);
  font-size: 19px;
  font-weight: 700;
}

#pd-portal .pd-qualifications-title .pd-dir-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

#pd-portal .pd-qualification-for { align-items: center; }
#pd-portal .pd-qualification-for legend { float: left; margin: 0 4px 0 0; }

.pd-qualification-uploads { margin: 0; padding: 0; list-style: none; }

.pd-qualification-uploads li {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  font-size: 15px;
}

/* Club directory: members as cards or a list, and a member's own page */
.pd-dir-section { display: flex; flex-direction: column; gap: 10px; }
.pd-dir-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}
.pd-dir-section > .pd-dir-tools { padding: 0; }
.pd-dir-section > .pd-card > .pd-dir-list { margin: 0; }
.pd-dir-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pd-dir-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 16px;
  text-align: center;
  background: #FFFFFF;
  border: 1.5px solid var(--pd-line);
  border-radius: 16px;
}
.pd-dir-card.pd-dir-you { border-color: #9AD8CB; }
#pd-portal .pd-dir-card-photo, #pd-portal .pd-officers li > a:first-child,
#pd-portal .pd-dir-page .pd-row > a:first-child { text-decoration: none; }
#pd-portal .pd-dir-card .pd-dir-avatar { width: 112px; height: 112px; font-size: 32px; }
.pd-dir-card-text { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; }
#pd-portal .pd-dir-card-text a {
  font-size: 16px;
  font-weight: 700;
  color: var(--pd-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
#pd-portal .pd-dir-card-action {
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  justify-content: center;
  font-size: 14px;
  color: var(--pd-brand);
}
.pd-dir-row { position: relative; }
.pd-dir-row > .pd-icon-link { position: absolute; top: 10px; right: 14px; }
.pd-dir-row .pd-dir-member > summary { padding-right: 68px; }
.pd-dir-boat-count {
  flex: none;
  width: 110px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #262B48;
}
.pd-dir-boat-count.pd-none { color: #8A90AC; }
.pd-dir-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}
#pd-portal .pd-body .pd-dir-detail h3 {
  margin: 0 0 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pd-muted);
}
#pd-portal .pd-body .pd-dir-detail h3 + * { margin-top: 0; }
#pd-portal .pd-body .pd-dir-detail p { margin: 0 0 10px; font-size: 15px; }
.pd-dir-boat-names { margin: 0 0 10px; padding: 0; list-style: none; }
.pd-dir-boat-names li { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 15px; font-weight: 600; }
.pd-dir-detail .pd-dir-facts { grid-template-columns: 16px 1fr; gap: 6px 8px; font-size: 15px; }
.pd-dir-detail .pd-dir-facts dt { padding-top: 2px; }
#pd-portal .pd-dir-facts a, #pd-portal .pd-dir-contact a { color: var(--pd-brand); text-decoration: none; }
.pd-dir-page-link { font-size: 14px; font-weight: 700; }
.pd-dir-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  padding: 24px;
}
#pd-portal .pd-dir-hero > .pd-dir-avatar { width: 160px; height: 160px; font-size: 52px; }
.pd-dir-hero-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#pd-portal .pd-dir-hero-text .pd-title { margin: 0; font-size: 40px; color: var(--pd-brand); }
.pd-dir-standing { font-size: 17px; color: #262B48; }
.pd-dir-role {
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pd-brand);
  background: var(--pd-tint);
  border-radius: 999px;
}
#pd-portal .pd-dir-hero .pd-action-brand { gap: 8px; }
.pd-dir-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.pd-dir-contact { margin: 0; padding: 6px 18px 14px; }
.pd-dir-contact > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #F1F3F8;
}
.pd-dir-contact > div:first-child { border-top: 0; }
.pd-dir-contact-icon {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pd-brand);
  background: var(--pd-tint);
  border-radius: 10px;
}
.pd-dir-contact dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pd-muted);
}
.pd-dir-contact dd { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.pd-dir-boat-rows .pd-boat-tile { width: 76px; height: 52px; overflow: hidden; }
.pd-dir-boat-rows .pd-boat-tile svg { display: none; }
#pd-portal .pd-dir-page .pd-row-title { color: var(--pd-brand); text-decoration: none; }
.pd-dir-page .pd-rows > .pd-row:first-child { border-top: 0; }
#pd-portal .pd-body .pd-dir-unlisted {
  margin: 0;
  padding: 12px 18px 14px;
  font-size: 14px;
  color: var(--pd-muted);
  border-top: 1px solid #F1F3F8;
}
#pd-portal .pd-body .pd-card-head + .pd-dir-unlisted { border-top: 0; }
.pd-dir-emergency { margin: 0; padding: 12px 18px 16px; list-style: none; font-size: 15px; }
.pd-dir-bio { padding: 12px 18px 16px; font-size: 15px; line-height: 1.5; }
.pd-dir-awards { grid-column: 1 / -1; }
.pd-dir-awards .pd-card-head { justify-content: flex-start; flex-wrap: wrap; }
.pd-dir-awards .pd-card-head a { margin-left: auto; }
.pd-dir-award-icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B7791F;
  background: radial-gradient(circle at 50% 40%, #FFF8E7, #F1E3C2);
  border-radius: 12px;
}
.pd-dir-award-year {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
#pd-portal .pd-dir-award-year .pd-member-badge { padding: 1px 8px; font-size: 12px; }
@media (max-width: 760px) {
  .pd-dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-dir-card { padding: 14px 10px; }
  #pd-portal .pd-dir-card .pd-dir-avatar { width: 80px; height: 80px; font-size: 24px; }
  .pd-dir-boat-count { width: auto; }
  .pd-dir-boat-count span { display: none; }
  .pd-dir-detail, .pd-dir-page { grid-template-columns: minmax(0, 1fr); }
  .pd-dir-hero { padding: 18px 16px; }
  #pd-portal .pd-dir-hero > .pd-dir-avatar { width: 112px; height: 112px; font-size: 36px; }
  #pd-portal .pd-dir-hero-text .pd-title { font-size: 30px; }
  .pd-dir-hero .pd-actions-row, #pd-portal .pd-dir-hero .pd-action { flex: 1 1 100%; justify-content: center; }
  .pd-dir-page .pd-row { flex-wrap: nowrap; }
  .pd-dir-boat-rows .pd-boat-tile { width: 60px; height: 44px; }
}

/* Boat directory: boats as cards or a list, and a boat's own page */
.pd-dir-filters { padding: 0; }
#pd-portal .pd-body .pd-dir-select { flex: 0 1 220px; min-width: 0; height: 44px; }
.pd-dir-boats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pd-dir-boat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  border: 1.5px solid var(--pd-line);
  border-radius: 16px;
}
.pd-dir-boat.pd-dir-you { border-color: #9AD8CB; }
#pd-portal .pd-dir-boat-photo { display: block; text-decoration: none; }
.pd-dir-boat .pd-boat-tile { width: 100%; height: 168px; padding: 10px 14px; border-radius: 0; }
.pd-dir-boat .pd-boat-tile svg { width: 34px; height: 34px; }
.pd-dir-boat .pd-boat-tile strong { font-size: 22px; }
.pd-dir-boat-text { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; font-size: 14px; }
.pd-dir-boat-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pd-dir-boat-heading .pd-member-badge { padding: 1px 8px; font-size: 12px; }
#pd-portal .pd-body .pd-dir-boat h3 { margin: 0; font-size: 18px; }
#pd-portal .pd-dir-boat h3 a, #pd-portal .pd-dir-boat-name a { color: var(--pd-ink); text-decoration: none; }
.pd-boat-tile img { display: block; }
.pd-member-badge.pd-role-owner { color: #1B2A8C; background: #E7E9F8; }
.pd-member-badge.pd-role-helm { color: #115E55; background: #DDF3EE; }
.pd-member-badge.pd-role-crew { color: #8A5300; background: #FFF1D6; }
.pd-member-badge.pd-role-other { color: #5B3A8A; background: #EEE7F8; }
.pd-dir-boat-list { margin: 0; padding: 0; list-style: none; }
.pd-dir-boat-row {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  padding: 12px 16px;
  border-top: 1px solid #F1F3F8;
  font-size: 15px;
}
.pd-dir-boat-row.pd-dir-you { background: #F3FBF9; }
.pd-dir-boat-header { padding: 10px 16px; border-top: 0; font-size: 13px; font-weight: 700; color: var(--pd-muted); background: #F8F9FC; }
.pd-dir-boat-thumb { flex: none; width: 64px; }
#pd-portal a.pd-dir-boat-thumb { text-decoration: none; }
.pd-dir-boat-thumb .pd-boat-tile { width: 64px; height: 44px; padding: 4px 6px; border-radius: 8px; justify-content: flex-end; }
.pd-dir-boat-thumb .pd-boat-tile svg { display: none; }
.pd-dir-boat-thumb .pd-boat-tile strong { font-size: 12px; }
.pd-dir-boat-name { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#pd-portal .pd-dir-boat-name a { font-family: var(--pd-head); font-size: 16px; font-weight: 700; }
.pd-dir-boat-sail { flex: none; width: 100px; font-weight: 600; }
.pd-dir-boat-owner { flex: 1 1 180px; min-width: 0; }
#pd-portal .pd-dir-boat-owner a { font-weight: 600; color: var(--pd-brand); }
.pd-dir-boat-owner strong { font-weight: 400; }
.pd-dir-boat-kept { flex: none; width: 170px; font-size: 14px; color: var(--pd-muted); }
.pd-dir-boat-header .pd-dir-boat-kept { font-size: 13px; }
.pd-dir-phone-only { display: none; }
.pd-dir-boat-hero { overflow: hidden; }
.pd-dir-boat-picture {
  position: relative;
  height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  box-sizing: border-box;
  color: #FFFFFF;
  background: var(--pd-brand);
}
.pd-dir-boat-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-dir-boat-picture > span, .pd-dir-boat-picture > strong { position: relative; }
.pd-dir-boat-picture > svg { stroke-width: 1.4; }
.pd-dir-boat-picture > strong { margin-left: auto; font-family: var(--pd-head); font-size: 30px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); }
.pd-dir-boat-caption { padding: 4px 10px; font-size: 13px; font-weight: 600; background: rgba(10, 14, 30, 0.45); border-radius: 999px; }
.pd-dir-boat-hero-body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 18px; padding: 18px 20px; }
.pd-dir-boat-hero-body .pd-dir-hero-text { gap: 4px; }
#pd-portal .pd-dir-boat-hero .pd-title { margin: 0; font-size: 40px; line-height: 1.1; color: var(--pd-brand); }
.pd-dir-boat-hero-body .pd-muted { font-size: 15px; }
#pd-portal .pd-dir-boat-hero .pd-action-brand { gap: 8px; height: 46px; }
.pd-dir-about { padding-bottom: 0; }
.pd-dir-about > :last-child { margin-bottom: 0; }
.pd-dir-boat-photos {
  margin: 0;
  padding: 14px 18px 18px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
#pd-portal .pd-dir-boat-photos button { display: block; width: 100%; padding: 0; font: inherit; text-align: left; color: inherit; background: none; border: 0; cursor: pointer; }
.pd-dir-boat-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; outline-offset: 2px; }
.pd-dir-boat-photos [aria-pressed="true"] img { outline: 3px solid var(--pd-brand); }
.pd-dir-boat-photos span { display: block; margin-top: 6px; overflow: hidden; font-size: 13px; color: var(--pd-muted); white-space: nowrap; text-overflow: ellipsis; }
.pd-dir-people-head { padding: 14px 18px; }
#pd-portal .pd-body .pd-dir-people-head .pd-card-title { padding: 0; }
#pd-portal .pd-body .pd-dir-people-head p { margin: 4px 0 0; }
#pd-portal .pd-dir-people .pd-dir-avatar { width: 42px; height: 42px; }
.pd-dir-people .pd-row { flex-wrap: nowrap; }
#pd-portal .pd-dir-people .pd-row-title { font-size: 16px; font-weight: 700; color: var(--pd-brand); text-decoration: none; }
.pd-dir-people .pd-row-text > strong { font-size: 16px; color: #262B48; }
.pd-dir-person-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--pd-muted); }
.pd-dir-person-meta .pd-member-badge { padding: 1px 8px; font-size: 12px; }
#pd-portal .pd-body .pd-dir-previously {
  margin: 0;
  padding: 12px 18px 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pd-muted);
  border-top: 1px solid var(--pd-row-line);
}
.pd-dir-previous { margin: 0; padding: 0 18px 14px; list-style: none; font-size: 14px; color: var(--pd-muted); }
.pd-dir-previous li { padding: 3px 0; }
#pd-portal .pd-dir-previous a { font-weight: 700; color: var(--pd-brand); }
.pd-dir-previous strong { color: #262B48; }
@media (max-width: 900px) {
  .pd-dir-boats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pd-dir-boats, .pd-dir-boat-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pd-portal .pd-body .pd-dir-select { flex: 1 1 140px; }
  .pd-dir-boat-header, .pd-dir-boat-sail, .pd-dir-boat-owner, .pd-dir-boat-kept { display: none; }
  .pd-dir-phone-only { display: inline; }
  .pd-dir-boat-picture { height: 220px; }
  #pd-portal .pd-dir-boat-hero .pd-title { font-size: 30px; }
  .pd-dir-boat-hero-body { padding: 16px; }
  #pd-portal .pd-dir-boat-hero .pd-action-brand { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .pd-dir-boats { grid-template-columns: minmax(0, 1fr); }
}
