/* ==========================================================================
   Xoventra - Deal Room profile
   Loaded after profile.css; every rule is scoped under .dr-page so the rest of
   the app (navbar, modals, post cards) is untouched.

   Colour discipline: teal is the brand. Amber is a single accent - it appears
   on the Request Pitch tint and the newest milestone marker. Nothing else.
   Fills are flat: no gradients on buttons, shadows kept shallow.
   ========================================================================== */

.dr-page {
  /* brand */
  --dr-teal: #06303f;
  --dr-teal-deep: #013f55;
  --dr-teal-mid: #026282;
  --dr-teal-600: #0a7397;
  --dr-teal-tint: #e6f1f4;
  --dr-teal-tint-2: #d0e5eb;

  /* accent - used sparingly, never as a second brand colour */
  --dr-amber: #e1932f;

  /* neutrals */
  --dr-ink: #123240;
  --dr-ink-2: #33424a;
  --dr-muted: #5d6b72;
  --dr-muted-2: #8a959b;
  --dr-line: rgba(14, 20, 23, 0.08);
  --dr-line-2: rgba(14, 20, 23, 0.14);
  --dr-bg: #eef2f3;
  --dr-card: #fff;

  /* glass */
  --dr-glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.52));
  --dr-glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.85);

  /* elevation - deliberately shallow */
  --dr-shadow-sm: 0 1px 2px rgba(14, 20, 23, 0.05);
  --dr-shadow-card: 0 1px 2px rgba(14, 20, 23, 0.04), 0 8px 20px -16px rgba(14, 20, 23, 0.28);
  --dr-shadow-lift: 0 2px 6px rgba(14, 20, 23, 0.05), 0 16px 32px -24px rgba(14, 20, 23, 0.32);

  --dr-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dr-radius: 18px;

  --dr-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --dr-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  background: var(--dr-card);
  color: var(--dr-ink);
  font-family: var(--dr-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body:has(.dr-page) {
  background: #fff;
}

/* profile.css sets `overflow-x: hidden` on html/body, which makes them scroll
   containers and stops position:sticky from ever engaging. `clip` suppresses
   the same overflow without creating a scrollport, so the tab bar can stick. */
html:has(.dr-page),
body:has(.dr-page) {
  overflow-x: clip;
}

/* Top navigation gets the landing page's frosted-glass bar. Scoped to the
   profile page so the rest of the app keeps its solid navbar. */
body:has(.dr-page) .navbar-container {
  background-color: transparent;
}

body:has(.dr-page) .navbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64));
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 0 1px rgba(14, 20, 23, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 12px 34px -20px rgba(14, 20, 23, 0.28);
}

.dr-page h1,
.dr-page h2,
.dr-page h3,
.dr-page h4,
.dr-page .dr-display {
  font-family: var(--dr-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dr-page button {
  font: inherit;
  cursor: pointer;
}

.dr-page :focus-visible {
  outline: 2px solid var(--dr-teal-mid);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Shell - full bleed, square, no card float
   -------------------------------------------------------------------------- */

.dr-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--dr-card);
  padding: 26px clamp(16px, 2.2vw, 34px) 60px;
}

/* The rail is out of the design but still resolves tabs for the shared JS. */
.dr-rail-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Layout - summary | content | side card
   -------------------------------------------------------------------------- */

.dr-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 296px;
  gap: clamp(20px, 2.2vw, 34px);
  align-items: start;
}

/* --------------------------------------------------------------------------
   Summary column
   -------------------------------------------------------------------------- */

.dr-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Identity - the page opens straight on who this is, no cover banner --------- */

.dr-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dr-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dr-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--dr-line-2);
  background: #fff;
  display: block;
}

.dr-avatar-edit {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--dr-teal-mid);
  border: 1px solid var(--dr-line-2);
  font-size: 10.5px;
  box-shadow: var(--dr-shadow-sm);
}

.dr-identity-text {
  min-width: 0;
}

.dr-identity-name {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
  color: var(--dr-teal);
  overflow-wrap: anywhere;
}

.dr-identity-role {
  margin-top: 5px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dr-teal-mid);
}

.dr-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--dr-muted);
}

/* Action panel ------------------------------------------------------------- */
/* Wraps the existing {% block edit_buttons %} markup, so linkup/spark/pitch
   keep their JS hooks and only their skin changes. */

.dr-actions {
  padding: 14px;
  border-radius: 16px;
  background: var(--dr-glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(14, 20, 23, 0.07);
  box-shadow: var(--dr-glass-hi);
}

.dr-actions-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
}

.dr-actions-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dr-muted-2);
  font-weight: 700;
}

.dr-actions-head[aria-expanded="false"] .dr-acc-chev {
  transform: rotate(-90deg);
}

.dr-actions-body {
  margin-top: 11px;
}

.dr-actions-body[hidden] {
  display: none;
}

/* Bare pencil affordance - every edit entry point on the page uses this. */
.dr-icon-edit {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--dr-line-2);
  background: #fff;
  color: var(--dr-teal-mid);
  font-size: 12px;
  transition:
    background 0.2s var(--dr-ease),
    border-color 0.2s var(--dr-ease);
}

.dr-icon-edit:hover {
  background: var(--dr-teal-tint);
  border-color: var(--dr-teal-tint-2);
}

.dr-actions .edit-btns-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 9px !important;
  margin: 0 !important;
}

.dr-actions .left-buttons {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 9px !important;
  width: 100% !important;
}

.dr-actions .linkup-container {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  line-height: normal !important;
}

/* The anchor is only a wrapper - profile.css gives .left-buttons a its own
   border and padding, which would double up around the inner .create-post. */
.dr-actions .create-post-link {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* Shared button shape for every action in the panel. */
.dr-actions .edit-btns-section button,
.dr-actions .edit-btns-section .create-post,
.dr-actions .edit-btns-section .verify-profile {
  width: 100% !important;
  min-height: 42px !important;
  padding: 11px 16px !important;
  border-radius: 10px !important;
  font-family: var(--dr-sans) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  cursor: pointer !important;
  box-shadow: var(--dr-shadow-sm) !important;
  transition:
    background 0.2s var(--dr-ease),
    border-color 0.2s var(--dr-ease),
    color 0.2s var(--dr-ease) !important;
}

/* Primary - Linkup, Edit profile. Flat fill. */
.dr-actions .linkup-btn,
.dr-actions .edit-profile {
  background: var(--dr-teal-mid) !important;
  border: 1px solid var(--dr-teal-mid) !important;
  color: #fff !important;
}

.dr-actions .linkup-btn:hover,
.dr-actions .edit-profile:hover {
  background: var(--dr-teal-deep) !important;
  border-color: var(--dr-teal-deep) !important;
}

.dr-actions .linkup-btn .linkup-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dr-actions .linkup-btn .linkup-caret {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin-left: 2px;
}

/* Linked / pending read as settled states, not as calls to action. */
.dr-actions .linkup-btn.linked,
.dr-actions .linkup-btn.pending,
.dr-actions .linkup-btn.blocked {
  background: #fff !important;
  color: var(--dr-teal-mid) !important;
  border: 1px solid var(--dr-line-2) !important;
}

.dr-actions .linkup-btn.linked .linkup-caret,
.dr-actions .linkup-btn.pending .linkup-caret {
  color: var(--dr-muted-2);
}

.dr-actions .linkup-btn.pending {
  color: var(--dr-muted) !important;
}

.dr-actions .linkup-btn.blocked {
  color: #b4453a !important;
  border-color: rgba(180, 69, 58, 0.28) !important;
  cursor: not-allowed !important;
}

.dr-actions .linkup-btn.received {
  background: var(--dr-teal-mid) !important;
  border-color: var(--dr-teal-mid) !important;
  color: #fff !important;
}

/* Secondary - Spark, Create post, Verify profile. */
.dr-actions .message-btn,
.dr-actions .create-post,
.dr-actions .verify-profile {
  background: #fff !important;
  border: 1px solid var(--dr-line-2) !important;
  color: var(--dr-teal-mid) !important;
}

.dr-actions .message-btn:hover,
.dr-actions .create-post:hover,
.dr-actions .verify-profile:hover {
  background: var(--dr-teal-tint) !important;
  border-color: var(--dr-teal-tint-2) !important;
}

.dr-actions .verify-profile {
  color: var(--dr-muted) !important;
  border-style: dashed !important;
}

/* Accent - amber tint, not an amber slab. Linkup stays the loudest button;
   Request Pitch is distinguished by hue rather than by weight. */
.dr-actions .request-pitch-btn {
  background: rgba(225, 147, 47, 0.12) !important;
  border: 1px solid rgba(225, 147, 47, 0.42) !important;
  color: #8a5a12 !important;
}

.dr-actions .request-pitch-btn:hover {
  background: rgba(225, 147, 47, 0.2) !important;
  border-color: rgba(225, 147, 47, 0.62) !important;
}

.dr-actions .request-pitch-btn.is-sent {
  background: var(--dr-teal-tint) !important;
  color: var(--dr-teal-mid) !important;
  border: 1px solid var(--dr-teal-tint-2) !important;
  cursor: default !important;
}

/* Dropdown sits over the panel. */
.dr-actions .linkup-menu {
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--dr-line-2);
  box-shadow: var(--dr-shadow-lift);
  overflow: hidden;
  padding: 4px;
}

.dr-actions .linkup-menu .menu-item {
  min-height: 0 !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  justify-content: flex-start !important;
  font-weight: 500 !important;
  color: var(--dr-ink-2) !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dr-actions .linkup-menu .menu-item:hover {
  background: var(--dr-teal-tint) !important;
}

/* Quick Facts -------------------------------------------------------------- */

.dr-qf {
  background: #fff;
  border: 1px solid var(--dr-line);
  border-radius: var(--dr-radius);
  padding: 18px;
  box-shadow: var(--dr-shadow-card);
}

.dr-qf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dr-qf-head .dr-acc-head {
  width: auto;
  flex: 1;
  min-width: 0;
}

.dr-chip-sm {
  padding: 6px 12px;
  font-size: 12px;
  flex-shrink: 0;
}

.dr-acc-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--dr-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--dr-teal);
}

.dr-acc-chev {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dr-line-2);
  color: var(--dr-teal-mid);
  font-size: 10.5px;
  transition: transform 0.25s var(--dr-ease);
}

.dr-acc-head[aria-expanded="false"] .dr-acc-chev {
  transform: rotate(-90deg);
}

.dr-facts {
  margin-top: 6px;
}

.dr-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--dr-line);
  padding: 11px 0;
}

.dr-fact:last-child {
  border-bottom: 0;
}

.dr-fact-k {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dr-muted-2);
  font-weight: 700;
  flex-shrink: 0;
}

.dr-fact-v {
  font-family: var(--dr-display);
  font-size: 14px;
  color: var(--dr-ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.dr-fact-v.is-empty {
  color: var(--dr-muted-2);
  font-weight: 400;
}

/* Founders stack under their label rather than sitting on the same row. */
.dr-fact-block {
  display: block;
}

.dr-founders {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.dr-founder {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--dr-teal-tint);
  border: 1px solid var(--dr-teal-tint-2);
  color: var(--dr-teal-mid);
  font-size: 12.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.dr-founder i {
  font-size: 10px;
  opacity: 0.7;
}

/* Only the first two show until "Show more" is pressed. */
.dr-founders .dr-founder.is-extra {
  display: none;
}

.dr-founders.is-open .dr-founder.is-extra {
  display: inline-flex;
}

.dr-founders-toggle {
  margin-top: 10px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dr-teal-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dr-founders-toggle:hover {
  color: var(--dr-teal-deep);
}

/* --------------------------------------------------------------------------
   Take the tour

   Sits inside the sticky .dr-side, directly under the identity card, as a way
   back into the welcome walkthrough that is otherwise offered once at signup.
   A full-width outlined row rather than a bare text line so it is findable,
   but tinted rather than solid so it stays quieter than the card above it.
   -------------------------------------------------------------------------- */

.dr-tour-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--dr-teal-mid);
  border-radius: 12px;
  background: rgba(2, 98, 130, 0.06);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dr-teal-deep);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dr-tour-link i {
  font-size: 14px;
  color: var(--dr-teal-mid);
  transition: color 0.15s ease;
}

.dr-tour-link:hover {
  background: rgba(2, 98, 130, 0.12);
  border-color: var(--dr-teal-deep);
  color: var(--dr-teal-deep);
}

.dr-tour-link:hover i {
  color: var(--dr-teal-deep);
}

.dr-tour-link:focus-visible {
  outline: 2px solid var(--dr-teal-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Fund Seeking summary
   -------------------------------------------------------------------------- */

.dr-fundbox {
  background: #fff;
  border: 1px solid var(--dr-line);
  border-left: 3px solid var(--dr-teal-mid);
  border-radius: var(--dr-radius);
  padding: 18px;
  box-shadow: var(--dr-shadow-card);
}

.dr-fundbox[hidden] {
  display: none;
}

.dr-fundbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.dr-fundbox-head h3 {
  font-size: 16px;
  color: var(--dr-teal);
  margin: 0;
}

.dr-fundrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--dr-line);
}

.dr-fundrow:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dr-fundrow-k {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dr-muted-2);
  flex-shrink: 0;
}

.dr-fundrow-k i {
  font-size: 11px;
  color: var(--dr-teal-mid);
  opacity: 0.75;
}

.dr-fundrow-v {
  font-family: var(--dr-display);
  font-size: 14px;
  color: var(--dr-teal);
  text-align: right;
  overflow-wrap: anywhere;
}

/* The description needs the full width, so its label sits on its own line. */
.dr-fundrow-block {
  display: block;
}

.dr-fundrow-text {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dr-ink-2);
  overflow-wrap: anywhere;
}

.dr-side {
  min-width: 0;
  position: sticky;
  top: 84px;
}

/* --------------------------------------------------------------------------
   Content panels
   -------------------------------------------------------------------------- */

.dr-panels {
  min-width: 0;
}

/* Sticky frosted tab bar, matching the landing nav's glass treatment. */
.dr-tabbar {
  position: sticky;
  top: 66px;
  z-index: 18;
  margin: 0 -6px 0;
  padding: 10px 6px;
}

/* White bar, teal pill for the current tab. Frosted glass so page content
   reads softly through it once the bar is stuck. */
.dr-tabs {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px;
  gap: 4px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.7));
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(14, 20, 23, 0.05),
    var(--dr-glass-hi),
    0 8px 22px -18px rgba(14, 20, 23, 0.3);
  transition:
    box-shadow 0.3s var(--dr-ease),
    background 0.3s var(--dr-ease);
}

/* Deepens and frosts harder once it detaches from the top of the panel. */
.dr-tabbar.is-stuck .dr-tabs {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  -webkit-backdrop-filter: blur(26px) saturate(1.9);
  backdrop-filter: blur(26px) saturate(1.9);
  box-shadow:
    0 0 0 1px rgba(14, 20, 23, 0.06),
    var(--dr-glass-hi),
    0 16px 36px -18px rgba(14, 20, 23, 0.36);
}

.dr-tabs button {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-family: var(--dr-display);
  font-weight: 500;
  color: var(--dr-ink-2);
  transition:
    background 0.25s var(--dr-ease),
    color 0.25s var(--dr-ease);
}

.dr-tabs button:hover {
  background: rgba(2, 98, 130, 0.08);
  color: var(--dr-teal-mid);
}

.dr-tabs button[aria-selected="true"] {
  background: var(--dr-teal-mid);
  color: #fff;
  font-weight: 600;
}

.dr-tabs button[aria-selected="true"]:hover {
  background: var(--dr-teal-deep);
  color: #fff;
}

.dr-panel {
  margin-top: 22px;
}

.dr-cards {
  display: grid;
  gap: 18px;
}

.dr-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dr-card {
  background: #fff;
  border: 1px solid var(--dr-line);
  border-radius: var(--dr-radius);
  padding: 22px;
  box-shadow: var(--dr-shadow-card);
  transition: box-shadow 0.25s var(--dr-ease);
  min-width: 0;
}

.dr-card:hover {
  box-shadow: var(--dr-shadow-lift);
}

.dr-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dr-muted-2);
}

.dr-kicker span:first-child {
  color: var(--dr-teal-mid);
}

.dr-card h4,
.dr-card-title {
  margin-top: 10px;
  font-size: 18px;
  color: var(--dr-teal);
  overflow-wrap: anywhere;
}

.dr-body {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--dr-ink-2);
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.dr-body-empty {
  color: var(--dr-muted-2);
  font-style: italic;
  white-space: normal;
}

.dr-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--dr-line-2);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dr-teal-mid);
  background: #fff;
  text-decoration: none;
  transition: background 0.2s var(--dr-ease);
}

.dr-chip:hover {
  background: var(--dr-teal-tint);
}

.dr-chip-on {
  background: var(--dr-teal-mid);
  border-color: var(--dr-teal-mid);
  color: #fff;
}

.dr-chip-on:hover {
  background: var(--dr-teal-deep);
  border-color: var(--dr-teal-deep);
  color: #fff;
}

.dr-card-foot {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* Section heading inside a panel. */
.dr-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dr-section-head h3 {
  font-size: 20px;
  color: var(--dr-teal);
  margin: 0;
}

.dr-section-head p {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--dr-muted);
}

.dr-section {
  margin-top: 34px;
}

.dr-empty {
  border: 1px dashed var(--dr-line-2);
  border-radius: var(--dr-radius);
  padding: 32px 22px;
  text-align: center;
  color: var(--dr-muted);
  font-size: 14px;
}

.dr-empty i {
  display: block;
  font-size: 24px;
  color: var(--dr-teal-tint-2);
  margin-bottom: 10px;
}

/* Goals - masonry columns, not a grid. A grid aligns rows to the tallest card,
   which leaves a hole under a short one as soon as "Show more" adds a row. */
.dr-goals .contribution-cards {
  /* profile.css makes this a flex row; multicol only applies to block boxes. */
  display: block;
  columns: 2;
  column-gap: 18px;
  margin: 0;
  padding: 0;
}

.dr-goals .contribution-card {
  background: #fff;
  border: 1px solid var(--dr-line);
  border-left: 3px solid var(--dr-teal-mid);
  border-radius: var(--dr-radius);
  padding: 22px;
  margin: 0 0 18px;
  box-shadow: var(--dr-shadow-card);
  transition: box-shadow 0.25s var(--dr-ease);
  min-width: 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.dr-goals .contribution-card:hover {
  box-shadow: var(--dr-shadow-lift);
}

.dr-goals .contribution-card h4 {
  font-family: var(--dr-display);
  font-size: 18px;
  color: var(--dr-teal);
  margin: 0 0 10px;
}

.dr-goals .contribution-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--dr-ink-2);
  margin: 0;
}

/* Only the first two goals show until "Show more" is pressed. */
.dr-goals .contribution-card.is-extra {
  display: none;
}

.dr-goals .contribution-cards.is-open .contribution-card.is-extra {
  display: block;
}

.dr-goals .contribution-card.hidden {
  display: none;
}

.dr-goals .contribution-cards .dr-empty {
  column-span: all;
}

.dr-showmore {
  margin-top: 16px;
  border: 1px solid var(--dr-line-2);
  background: #fff;
  color: var(--dr-teal-mid);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s var(--dr-ease);
}

.dr-showmore:hover {
  background: var(--dr-teal-tint);
}

.dr-goals .contribution-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--dr-line);
}

.dr-goals .contribution-detail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--dr-teal-tint);
  color: var(--dr-teal-mid);
  font-size: 12.5px;
  font-weight: 600;
}

.dr-goals .contribution-detail i {
  font-size: 11px;
  opacity: 0.8;
}

.dr-goals .view-more-contributions {
  margin-top: 16px;
  border: 1px solid var(--dr-line-2);
  background: #fff;
  color: var(--dr-teal-mid);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
}

.dr-goals .view-more-contributions:hover {
  background: var(--dr-teal-tint);
}

/* Glimpse - a smooth, snapping horizontal rail ----------------------------- */

.dr-glimpse .profile-main-video-section,
.dr-glimpse .profile-gallery-section {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.dr-glimpse .profile-main-video-details {
  display: none;
}

.dr-glimpse .glimpse-collage {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 12px;
  margin: 0 -2px;
  scrollbar-width: thin;
  scrollbar-color: var(--dr-teal-tint-2) transparent;
  overscroll-behavior-x: contain;
}

.dr-glimpse .glimpse-collage::-webkit-scrollbar {
  height: 8px;
}

.dr-glimpse .glimpse-collage::-webkit-scrollbar-track {
  background: transparent;
}

.dr-glimpse .glimpse-collage::-webkit-scrollbar-thumb {
  background: var(--dr-teal-tint-2);
  border-radius: 999px;
}

.dr-glimpse .glimpse-collage::-webkit-scrollbar-thumb:hover {
  background: var(--dr-teal-mid);
}

/* Exactly two fit the visible width; the rest scroll. Fixing the basis this way
   means cards never shrink to fit more in. */
.dr-glimpse .glimpse-item {
  flex: 0 0 calc((100% - 16px) / 2);
  width: auto;
  height: 220px;
  border-radius: 14px;
  scroll-snap-align: start;
  border: 1px solid var(--dr-line);
}

/* --------------------------------------------------------------------------
   Use-of-funds allocation
   -------------------------------------------------------------------------- */

.dr-funding-split {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.dr-alloc {
  background: #fff;
  border: 1px solid var(--dr-line);
  border-radius: var(--dr-radius);
  padding: 22px;
  box-shadow: var(--dr-shadow-card);
  min-width: 0;
}

.dr-alloc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dr-alloc-head h4 {
  font-size: 17px;
  color: var(--dr-teal);
  margin: 0;
}

/* Segmented bar - the whole raise at a glance. */
.dr-alloc-stack {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--dr-teal-tint);
  margin-bottom: 20px;
}

.dr-alloc-seg {
  display: block;
  height: 100%;
  min-width: 2px;
  transition: width 0.6s var(--dr-ease);
}

.dr-alloc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dr-alloc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
}

.dr-alloc-key {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dr-ink-2);
  min-width: 0;
  overflow-wrap: anywhere;
}

.dr-alloc-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.dr-alloc-pct {
  font-family: var(--dr-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--dr-teal);
  white-space: nowrap;
}

.dr-alloc-bar {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--dr-teal-tint);
  overflow: hidden;
}

.dr-alloc-bar>i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s var(--dr-ease);
}

/* Six-step ramp: teal for the bulk, amber reserved for the smallest slice so
   the accent still appears exactly once. */
.dr-alloc-c1 {
  background: var(--dr-teal-mid);
}

.dr-alloc-c2 {
  background: var(--dr-teal-600);
}

.dr-alloc-c3 {
  background: #3f97b5;
}

.dr-alloc-c4 {
  background: #7bb9cd;
}

.dr-alloc-c5 {
  background: #a9d2df;
}

.dr-alloc-c6 {
  background: var(--dr-amber);
}

.dr-empty-cta p {
  margin-bottom: 14px;
}

/* The plan behind the raise - full width beneath both funding cards. */
.dr-plan {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--dr-line);
  border-left: 3px solid var(--dr-amber);
  border-radius: var(--dr-radius);
  padding: 22px;
  box-shadow: var(--dr-shadow-card);
}

.dr-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dr-plan-head h4 {
  font-size: 17px;
  color: var(--dr-teal);
  margin: 0;
}

.dr-plan-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--dr-ink-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.dr-plan-text.is-empty {
  color: var(--dr-muted-2);
  font-style: italic;
  white-space: normal;
}

/* Milestones --------------------------------------------------------------- */
/* profile.css styles this timeline through #actual-milestones-display, so these
   selectors carry the id too in order to win the cascade. */

#actual-milestones-display.dr-timeline .milestone-item {
  display: flex;
  gap: 16px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transition: none;
}

#actual-milestones-display.dr-timeline .milestone-item:hover {
  transform: none;
  box-shadow: none;
}

#actual-milestones-display.dr-timeline .milestone-item:last-child {
  margin-bottom: 0;
}

#actual-milestones-display.dr-timeline .milestone-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 24px;
  width: 12px;
}

#actual-milestones-display.dr-timeline .milestone-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dr-teal-mid);
  box-shadow: 0 0 0 4px var(--dr-teal-tint);
  flex-shrink: 0;
}

/* The most recent milestone is the one an investor reads first. */
#actual-milestones-display.dr-timeline .milestone-item:first-child .milestone-dot {
  background: var(--dr-amber);
  box-shadow: 0 0 0 4px rgba(225, 147, 47, 0.18);
}

#actual-milestones-display.dr-timeline .milestone-line {
  flex: 1;
  width: 1px;
  height: auto;
  background: var(--dr-line-2);
  margin-top: 8px;
}

#actual-milestones-display.dr-timeline .milestone-item:last-child .milestone-line {
  display: none;
}

#actual-milestones-display.dr-timeline .milestone-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--dr-line);
  border-radius: var(--dr-radius);
  padding: 20px 22px;
  box-shadow: var(--dr-shadow-card);
  transition: box-shadow 0.25s var(--dr-ease);
}

#actual-milestones-display.dr-timeline .milestone-content:hover {
  box-shadow: var(--dr-shadow-lift);
}

#actual-milestones-display.dr-timeline .milestone-item:first-child .milestone-content {
  border-left: 3px solid var(--dr-amber);
}

#actual-milestones-display.dr-timeline .milestone-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

#actual-milestones-display.dr-timeline .milestone-header h4 {
  font-family: var(--dr-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--dr-teal);
  margin: 0;
  overflow-wrap: anywhere;
}

#actual-milestones-display.dr-timeline .milestone-date {
  font-family: var(--dr-sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dr-muted-2);
  white-space: nowrap;
  background: var(--dr-teal-tint);
  border: 1px solid var(--dr-teal-tint-2);
  border-radius: 999px;
  padding: 4px 10px;
}

#actual-milestones-display.dr-timeline .milestone-content p {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--dr-ink-2);
  overflow-wrap: anywhere;
}

/* Posts / funding wrappers ------------------------------------------------- */

.dr-panel .recent-activity {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dr-panel .recent-activity>div:first-child {
  display: none;
}

/* Posts - fixed width, natural height --------------------------------------- */
/* The feed pins media to a hard 430px, which overflows the narrower profile
   column. Width here follows the column instead, while each template keeps its
   own height, so a tall post stays tall. `contain` means nothing is sliced
   through the middle. */

/* Masonry columns so cards flow tight against each other like the real feed;
   a grid would align rows to the tallest card and leave holes. */
.dr-panel #activity-posts {
  columns: 2;
  column-gap: 20px;
  display: block;
}

.dr-panel #activity-posts-left,
.dr-panel #activity-posts-right {
  display: contents;
}

.dr-panel .activity-post {
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.dr-panel .activity-post-media,
.dr-panel .activity-post-media.template-square,
.dr-panel .activity-post-media.template-portrait,
.dr-panel .activity-post-media.template-tall {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  background: #fff;
}

/* Heights restored per template, expressed as ratios so they scale with the
   column rather than snapping back to the 430px-derived pixel values. */
.dr-panel .activity-post-media.template-square {
  aspect-ratio: 430 / 402 !important;
}

.dr-panel .activity-post-media.template-portrait {
  aspect-ratio: 430 / 499.5 !important;
}

.dr-panel .activity-post-media.template-tall {
  aspect-ratio: 430 / 705.3 !important;
}

/* Plain white behind the letterbox - the grey/tinted backing read as a glow.
   profile.css sets these with !important, so match it. */
.dr-panel .activity-post-media img.carousel-item,
.dr-panel .activity-post-media video.carousel-item,
.dr-panel .activity-post-media .carousel-item,
.dr-panel .activity-post-media .carousel-view,
.dr-panel .activity-post-media .carousel-track {
  object-fit: contain !important;
  background-image: none !important;
}

.dr-panel .activity-post-media.carousel-container {
  border-radius: 14px;
  overflow: hidden;
}

.dr-panel .view-more {
  margin-top: 20px;
  border: 1px solid var(--dr-line-2);
  background: #fff;
  color: var(--dr-teal-mid);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
}

.dr-panel .view-more:hover {
  background: var(--dr-teal-tint);
}

.dr-panel .funding-tab-header {
  margin: 0 0 22px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dr-panel .funding-tab-cards {
  padding: 0 !important;
}

.dr-panel .fund-seeking-empty {
  border: 1px dashed var(--dr-line-2);
  border-radius: var(--dr-radius);
  background: transparent;
  box-shadow: none;
}

/* Composer prompt (owner) - links to the real publish flow. */
.dr-composer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  background: var(--dr-glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(14, 20, 23, 0.07);
  box-shadow: var(--dr-glass-hi);
  margin-bottom: 20px;
  text-decoration: none;
}

.dr-composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
}

.dr-composer-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--dr-muted);
}

/* --------------------------------------------------------------------------
   Edit-modal repeaters (founders, use-of-funds) - outside .dr-page because the
   lightbox is rendered at the end of the document.
   -------------------------------------------------------------------------- */

.entry-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.entry-row .entry-row-main {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.entry-row .entry-row-pct {
  width: 96px;
  flex-shrink: 0;
  margin: 0;
}

.entry-row .remove-contribution-btn {
  flex-shrink: 0;
  margin-bottom: 4px;
}

.dr-purpose-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #f4f6f7;
  border: 1px solid rgba(14, 20, 23, 0.1);
  font-size: 13.5px;
  color: #5d6b72;
}

.dr-purpose-total strong {
  font-size: 15px;
  color: #b4453a;
}

.dr-purpose-total.is-valid {
  background: rgba(2, 98, 130, 0.08);
  border-color: rgba(2, 98, 130, 0.25);
}

.dr-purpose-total.is-valid strong {
  color: #026282;
}

.dr-purpose-total.is-over strong {
  color: #b4453a;
}

#add-founder-btn:disabled,
#add-purpose-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Request Pitch dialog
   Lives outside .dr-page (re-parented to <body>), so it carries its own tokens.
   -------------------------------------------------------------------------- */

/* Both pitch dialogs share one look. :is() keeps id-level specificity so these
   beat the legacy #id rules in profile.css. */
:is(#request-pitch-popup, #pitch-deck-popup).dr-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* Frosts the entire page - profile card, tabs and all. */
  background: rgba(6, 48, 63, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}

body.dr-modal-open {
  overflow: hidden;
}

:is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(14, 20, 23, 0.08);
  border-radius: 22px;
  padding: 30px;
  margin: 0;
  text-align: left;
  box-shadow:
    0 2px 8px rgba(14, 20, 23, 0.06),
    0 40px 80px -40px rgba(6, 48, 63, 0.5);
  /* Opens directly - no slide-in. */
  animation: none;
}

:is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(14, 20, 23, 0.14);
  background: #fff;
  color: #5d6b72;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

:is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-close:hover {
  background: #e6f1f4;
  color: #026282;
}

:is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-kicker {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #026282;
}

:is(#request-pitch-popup, #pitch-deck-popup) h2 {
  margin: 9px 0 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #06303f;
  text-align: left;
}

:is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-sub {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5d6b72;
}

:is(#request-pitch-popup, #pitch-deck-popup) form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 22px;
}

:is(#request-pitch-popup, #pitch-deck-popup) .form-label {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5d6b72;
  margin: 0 0 8px;
}

:is(#request-pitch-popup, #pitch-deck-popup) label[for="id_message"] {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5d6b72;
  margin: 0 0 8px;
}

:is(#request-pitch-popup, #pitch-deck-popup) input[type="text"],
:is(#request-pitch-popup, #pitch-deck-popup) textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(14, 20, 23, 0.14);
  background: #fbfcfc;
  font-family: inherit;
  font-size: 14.5px;
  color: #123240;
  margin-bottom: 18px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

:is(#request-pitch-popup, #pitch-deck-popup) input[type="text"]:focus,
:is(#request-pitch-popup, #pitch-deck-popup) textarea:focus {
  outline: none;
  background: #fff;
  border-color: #026282;
  box-shadow: 0 0 0 3px rgba(2, 98, 130, 0.12);
}

:is(#request-pitch-popup, #pitch-deck-popup) textarea {
  resize: vertical;
  min-height: 116px;
  line-height: 1.6;
}

/* File picker - the native control is hidden behind a full-width drop area. */
#pitch-deck-popup .dr-file-drop {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(14, 20, 23, 0.2);
  background: #fbfcfc;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

#pitch-deck-popup .dr-file-drop:hover {
  border-color: #026282;
  background: #f2f8fa;
}

#pitch-deck-popup .dr-file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#pitch-deck-popup .dr-file-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e6f1f4;
  color: #026282;
  font-size: 16px;
}

#pitch-deck-popup .dr-file-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#pitch-deck-popup .dr-file-text strong {
  font-size: 14.5px;
  font-weight: 600;
  color: #026282;
}

#pitch-deck-popup .dr-file-text small {
  font-size: 12.5px;
  color: #8a959b;
}

#pitch-deck-popup .dr-file-name {
  margin: 10px 0 18px;
  font-size: 13px;
  color: #026282;
  font-weight: 600;
  overflow-wrap: anywhere;
}

#pitch-deck-popup .dr-file-name:empty {
  margin: 0 0 18px;
}

:is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

:is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-actions button {
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

:is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-cancel {
  background: #fff;
  border: 1px solid rgba(14, 20, 23, 0.14);
  color: #5d6b72;
}

:is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-cancel:hover {
  background: #e6f1f4;
  color: #026282;
}

:is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-submit {
  background: #026282;
  border: 1px solid #026282;
  color: #fff;
}

:is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-submit:hover {
  background: #013f55;
  border-color: #013f55;
}

:is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  :is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-card {
    padding: 22px;
    border-radius: 18px;
  }

  :is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-actions {
    flex-direction: column-reverse;
  }

  :is(#request-pitch-popup, #pitch-deck-popup) .dr-modal-actions button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Edit Profile modal
   Rendered outside .dr-page, so it carries literal brand values rather than
   the custom properties. Loaded after profile.css; selectors match or exceed
   the originals so they win on order.
   ========================================================================== */

.lightbox-overlay {
  background: rgba(6, 48, 63, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  padding: 24px;
  animation: none;
}

.lightbox-modal {
  max-width: 1060px;
  height: min(88vh, 820px);
  max-height: min(88vh, 820px);
  border-radius: 22px;
  border: 1px solid rgba(14, 20, 23, 0.08);
  box-shadow:
    0 2px 8px rgba(14, 20, 23, 0.06),
    0 40px 80px -40px rgba(6, 48, 63, 0.5);
  animation: none;
}

/* Header ------------------------------------------------------------------- */

.lightbox-header {
  background: #fff;
  color: #06303f;
  border-bottom: 1px solid rgba(14, 20, 23, 0.08);
  border-radius: 22px 22px 0 0;
  padding: 22px 26px;
  align-items: flex-start;
}

.lightbox-header h2 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #06303f;
  margin: 0;
}

.lightbox-header .dr-modal-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #026282;
}

#close-lightbox {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(14, 20, 23, 0.14);
  background: #fff;
  color: #5d6b72;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

#close-lightbox:hover {
  background: #e6f1f4;
  color: #026282;
}

/* Layout - section rail on the left, panel on the right --------------------- */

#profile-form {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  flex: 1;
  min-height: 0;
}

.profile-edit-tab-navigation {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 2px;
  align-content: start;
  padding: 16px 12px;
  border-bottom: 0;
  border-right: 1px solid rgba(14, 20, 23, 0.08);
  background: #fbfcfc;
  overflow-y: auto;
  min-height: 0;
}

.profile-edit-tab-btn {
  flex: 0 0 auto;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: 10px;
  border-bottom: 0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #5d6b72;
  white-space: normal;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.profile-edit-tab-btn:hover {
  background: #e6f1f4;
  color: #026282;
}

.profile-edit-tab-btn.active {
  background: #026282;
  border-bottom-color: transparent;
  color: #fff;
  font-weight: 600;
}

.profile-edit-lightbox-content {
  grid-column: 2;
  grid-row: 1;
  padding: 26px 28px 30px;
}

/* The grid places the footer, so the flex-era spacer is dead weight. */
.profile-edit-footer-spacer {
  display: none;
}

/* Section headings --------------------------------------------------------- */

.profile-edit-section-title {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #06303f;
  margin: 0 0 6px;
}

.profile-edit-section-subtitle {
  font-size: 13.5px;
  line-height: 1.6;
  color: #5d6b72;
  margin: 0 0 22px;
}

/* Fields ------------------------------------------------------------------- */

.profile-edit-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.profile-edit-form-group {
  margin-bottom: 18px;
}

.profile-edit-form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5d6b72;
  margin-bottom: 8px;
}

.profile-edit-form-group input,
.profile-edit-form-group textarea,
.profile-edit-form-group select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(14, 20, 23, 0.14);
  background: #fbfcfc;
  font-family: inherit;
  font-size: 14.5px;
  color: #123240;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-edit-form-group input:focus,
.profile-edit-form-group textarea:focus,
.profile-edit-form-group select:focus {
  outline: none;
  background: #fff;
  border-color: #026282;
  box-shadow: 0 0 0 3px rgba(2, 98, 130, 0.12);
}

.profile-edit-form-group textarea {
  resize: vertical;
  min-height: 104px;
  line-height: 1.6;
}

.character-count {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: #8a959b;
}

/* Repeater sections -------------------------------------------------------- */

.profile-edit-lightbox-content .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
}

.profile-edit-lightbox-content .section-header h4 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #06303f;
  margin: 0;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #026282;
  border: 1px solid #026282;
  color: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.add-btn:hover {
  background: #013f55;
  border-color: #013f55;
  transform: none;
}

/* Entry cards (goals, milestones) */
.contribution-item,
.entry-card {
  background: #fff;
  border: 1px solid rgba(14, 20, 23, 0.08);
  border-left: 3px solid #026282;
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 16px;
  box-shadow: 0 1px 2px rgba(14, 20, 23, 0.04);
}

.contribution-header,
.entry-card .entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.contribution-header h4 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #06303f;
  margin: 0;
}

.contribution-divider {
  height: 1px;
  background: rgba(14, 20, 23, 0.08);
  margin: 12px 0 16px;
  border: 0;
}

.entry-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.entry-header-actions .move-btn,
.entry-header-actions .remove-contribution-btn,
.remove-contribution-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(14, 20, 23, 0.14);
  background: #fff;
  color: #5d6b72;
  font-size: 11.5px;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.entry-header-actions .move-btn:hover {
  background: #e6f1f4;
  color: #026282;
}

.remove-contribution-btn:hover {
  background: rgba(180, 69, 58, 0.1);
  border-color: rgba(180, 69, 58, 0.3);
  color: #b4453a;
}

.contribution-char-count {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #8a959b;
}

/* Footer ------------------------------------------------------------------- */

.lightbox-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  position: static;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: #fff;
  border-top: 1px solid rgba(14, 20, 23, 0.08);
  border-radius: 0 0 22px 22px;
}

.lightbox-footer .cancel-btn,
.lightbox-footer .save-btn {
  border-radius: 999px;
  padding: 11px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.cancel-btn {
  background: #fff;
  border: 1px solid rgba(14, 20, 23, 0.14);
  color: #5d6b72;
  box-shadow: none;
}

.cancel-btn:hover {
  background: #e6f1f4;
  color: #026282;
  transform: none;
}

.save-btn {
  background: #026282;
  border: 1px solid #026282;
  color: #fff;
  box-shadow: none;
}

.save-btn:hover {
  background: #013f55;
  border-color: #013f55;
  transform: none;
}

.save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Uploads ------------------------------------------------------------------ */

.profile-edit-lightbox-content .upload-area {
  border: 1px dashed rgba(14, 20, 23, 0.2);
  border-radius: 14px;
  background: #fbfcfc;
  padding: 26px 20px;
  text-align: center;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.profile-edit-lightbox-content .upload-area:hover,
.profile-edit-lightbox-content .upload-area.dragover {
  border-color: #026282;
  background: #f2f8fa;
}

.profile-edit-lightbox-content .upload-icon {
  font-size: 20px;
  color: #026282;
  opacity: 0.55;
}

.profile-edit-lightbox-content .upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(14, 20, 23, 0.14);
  color: #026282;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.profile-edit-lightbox-content .upload-btn:hover {
  background: #e6f1f4;
  border-color: #d0e5eb;
}

.profile-edit-lightbox-content .upload-text {
  margin-top: 12px;
  font-size: 12.5px;
  color: #8a959b;
}

/* Keep profile.css's auto-fill square grid; only soften the corners. */
.profile-edit-lightbox-content .image-preview,
.profile-edit-lightbox-content .image-preview img {
  border-radius: 12px;
}

.profile-edit-lightbox-content .image-preview {
  border: 1px solid rgba(14, 20, 23, 0.1);
}

/* Empty states inside the modal */
.profile-edit-lightbox-content .empty-state {
  border: 1px dashed rgba(14, 20, 23, 0.18);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  color: #8a959b;
  font-size: 13.5px;
  background: transparent;
}

/* Validation --------------------------------------------------------------- */

.validation-errors,
.fund-seeking-error-panel {
  background: rgba(180, 69, 58, 0.07);
  border: 1px solid rgba(180, 69, 58, 0.28);
  border-radius: 14px;
  color: #8a3a31;
}

.profile-edit-form-group.field-error input,
.profile-edit-form-group.field-error select,
.profile-edit-form-group.field-error textarea {
  border-color: #b4453a;
  box-shadow: 0 0 0 3px rgba(180, 69, 58, 0.12);
}

.profile-edit-form-group.field-error label {
  color: #b4453a;
}

@media (max-width: 820px) {

  /* Rail folds into a scrolling row above the panel. */
  #profile-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .profile-edit-tab-navigation {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(14, 20, 23, 0.08);
    scrollbar-width: none;
  }

  .profile-edit-tab-navigation::-webkit-scrollbar {
    display: none;
  }

  .profile-edit-tab-btn {
    width: auto;
    white-space: nowrap;
  }

  .profile-edit-lightbox-content {
    grid-column: 1;
    grid-row: 2;
    padding: 20px 18px 24px;
  }

  .lightbox-footer {
    grid-row: 3;
  }
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.dr-page .dr-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s var(--dr-ease),
    transform 0.5s var(--dr-ease);
}

.dr-page .dr-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1400px) {
  .dr-layout {
    grid-template-columns: 310px minmax(0, 1fr) 260px;
  }
}

@media (max-width: 1180px) {

  /* Side card drops under the summary column. */
  .dr-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .dr-side {
    grid-column: 1;
    grid-row: 2;
    position: static;
  }

  .dr-panels {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 900px) {
  .dr-shell {
    padding: 32px 16px 48px;
  }

  .dr-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dr-summary,
  .dr-side,
  .dr-panels {
    grid-column: 1;
    grid-row: auto;
  }

  .dr-grid2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .dr-goals .contribution-cards,
  .dr-panel #activity-posts {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .dr-shell {
    padding: 32px 12px 40px;
  }

  .dr-cover {
    height: 220px;
  }

  .dr-cover-meta {
    gap: 11px;
    padding: 11px 12px;
  }

  .dr-cover-name {
    font-size: 18px;
  }

  .dr-card,
  .dr-goals .contribution-card,
  #actual-milestones-display.dr-timeline .milestone-content {
    padding: 18px;
  }

  .dr-tabs {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px;
  }

  .dr-tabs::-webkit-scrollbar {
    display: none;
  }

  .dr-tabs button {
    padding: 7px 12px;
    font-size: 12.5px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .dr-glimpse .glimpse-collage {
    gap: 12px;
  }

  .dr-glimpse .glimpse-item {
    height: 150px;
  }

  #actual-milestones-display.dr-timeline .milestone-marker {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .dr-page *,
  .dr-page *::before,
  .dr-page *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .dr-page .dr-reveal {
    opacity: 1;
    transform: none;
  }
}