/* ==========================================================================
   The planner card
   ==========================================================================
   The couple's single answer to "how do I reach her, and where's that
   document she sent me?" — so it gets the full row rather than a quarter of
   it, and it is the only card on the dashboard with a gradient.
   ========================================================================== */

.planner-card {
  grid-column: 1 / -1;
  padding: 26px 28px;
  background: linear-gradient(135deg, var(--pink-tint) 0%, #fdf6f9 46%, var(--teal-tint) 100%);
}

/* Identity block: logo beside the name, not stacked above it — stacking
   pushed the contact details below the fold on a phone. */
.planner-id {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

/* Same rule as the hero: constrain the height, let the width follow. */
.planner-logo {
  width: auto;
  max-width: 150px;
  height: 52px;
  flex: none;
  object-fit: contain;
}

.planner-id h3 { margin-bottom: 3px; }

.planner-name {
  margin: 0 0 3px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}


/* ---------- the ways of reaching you -------------------------------------- */

.planner-ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}

.planner-way {
  display: block;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: transform .13s ease, box-shadow .15s ease, background .15s ease;
}

.planner-way:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--shadow);
}

.planner-way-label {
  display: block;
  color: var(--ink-faint);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.planner-way-value {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  /* A phone number that wraps mid-digit is unusable. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The mobile is the one they need on the day, so it gets the brand colour
   and everything else stays quiet. */
.planner-way.is-mobile .planner-way-value { color: var(--pink-deep); }
.planner-way.is-mobile .planner-way-label { color: var(--pink); }


/* ---------- documents ----------------------------------------------------- */

.planner-docs {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .9);
}

.planner-docs h4 {
  margin: 0 0 11px;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.planner-doc-list { display: flex; flex-wrap: wrap; gap: 9px; }

.planner-doc {
  display: block;
  padding: 11px 17px 11px 38px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: transform .13s ease, box-shadow .15s ease, background .15s ease;
  position: relative;
}

/* A document mark drawn in CSS rather than an emoji — emoji render
   differently on every device and this needs to look deliberate. */
.planner-doc::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 15px;
  width: 11px;
  height: 14px;
  margin-top: -7px;
  border: 1.5px solid var(--pink);
  border-radius: 2px;
  border-top-right-radius: 5px;
  background:
    linear-gradient(var(--pink), var(--pink)) no-repeat 2px 4px / 5px 1.5px,
    linear-gradient(var(--pink), var(--pink)) no-repeat 2px 7px / 5px 1.5px;
}

.planner-doc:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--shadow);
}

.planner-doc-label {
  display: block;
  color: var(--ink);
  font-size: .89rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.planner-doc-note {
  display: block;
  color: var(--ink-soft);
  font-size: .77rem;
}


/* ---------- the same list, on the planner's settings screen --------------- */

.portal-links { display: grid; gap: 9px; margin-bottom: 16px; }

.portal-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.portal-link-label { font-size: .9rem; font-weight: 600; }

.portal-link-url {
  color: var(--teal-deep);
  font-size: .79rem;
  word-break: break-all;
}

/* ---------- who gets this document ----------------------------------------
   Folded away behind a summary, because the common answer is "everyone" and
   an always-open list of every couple under every link would bury the two
   things this row is actually for: the label and the URL.
   --------------------------------------------------------------------------- */

.portal-link-row > div { min-width: 0; }

.link-who { margin-top: 7px; font-size: .78rem; }

.link-who > summary {
  cursor: pointer;
  color: var(--ink-soft);
  list-style: none;
}
.link-who > summary::-webkit-details-marker { display: none; }
.link-who > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 5px;
  transition: transform .12s ease;
}
.link-who[open] > summary::before { transform: rotate(90deg); }
.link-who > summary .k { text-transform: uppercase; letter-spacing: .07em; }
.link-who > summary b { color: var(--ink); }

.link-who-opt {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0 4px 16px;
  font-size: .82rem;
}

/* Everyone is the switch; the couples below it are the detail. The rule
   separates the two so they never read as one flat list of equals. */
.link-who-opt.is-all {
  margin-top: 6px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line, #ece5e8);
}

.link-who-list { padding-top: 3px; }


@media (max-width: 620px) {
  .planner-id { flex-direction: column; align-items: flex-start; gap: 12px; }
  .planner-ways { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   The password on a handed-out link. Added 20 September, after a couple sent
   Gee their wedding website and its password and there was nowhere to put the
   second half.

   Quiet by design: most links have no password, the box reads "none" when it
   is empty, and it must not compete with the link itself for attention.
   --------------------------------------------------------------------------- */
.portal-link-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.portal-link-code > .k {
  color: var(--ink-faint);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Narrow on purpose — a website password is short, and a full-width box here
   would read as the most important thing in the row, which it is not. */
.portal-link-code > input {
  width: 190px;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .78rem;
}

.portal-link-code > input:focus-visible {
  outline: 2px solid var(--calm, #007c85);
  outline-offset: 1px;
}
