/* ---------------------------------------------------------------------
 * My dog hub. Loaded after styles.css on /my-dog only.
 * --------------------------------------------------------------------- */
.md-view { padding-bottom: 2rem; }
.md-hero { display: grid; gap: 1.6rem; padding: 2.2rem 0 1rem; }
@media (min-width: 900px) { .md-hero { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: start; } }
.md-hero h1 { margin: 0.4rem 0 0.7rem; max-width: 18ch; }
/* The loading, check your email and new password views are h2s (one h1 per page) that look like the h1. */
h2.md-h1 { font-size: clamp(2.05rem, 1.55rem + 2.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.032em; margin: 0 0 0.5em; }
@media (max-width: 639px) { .page-head h2.md-h1 { margin-bottom: 0.5rem; } }
.md-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.6rem; }
.md-points li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.md-points li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--brand); }
.md-points strong { color: var(--ink); }
.md-hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.md-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.md-tab { background: none; border: 0; border-bottom: 2px solid transparent; min-height: 44px; padding: 0.55rem 0.8rem; font: inherit; font-weight: 650; color: var(--ink-faint); cursor: pointer; white-space: nowrap; margin-bottom: -1px; transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.md-tab:hover { color: var(--ink); }
.md-tab[aria-selected="true"] { color: var(--brand-ink); border-bottom-color: var(--brand); }
.md-count { display: inline-block; min-width: 1.4em; padding: 0 0.35em; border-radius: var(--radius-pill); background: var(--amber-soft); color: var(--amber); font-size: 0.78rem; text-align: center; margin-left: 0.2rem; }
.md-form { display: grid; gap: 0.9rem; }
.md-form .field input { width: 100%; }
.md-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; line-height: 1.45; cursor: pointer; }
.md-check input { margin-top: 0.15rem; flex: none; width: 1.25rem; height: 1.25rem; }
.md-submit { width: 100%; }
.md-submit.is-busy { opacity: 0.6; cursor: progress; }
.md-link { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; color: var(--brand-ink); text-decoration: underline; cursor: pointer; }
/* Undo, Skip and Cancel sit next to a button. On a touch screen they are the
 * same size as one, so a thumb aiming at Skip cannot land on Done instead. */
@media (pointer: coarse) {
  .md-item-actions .md-link, .md-done-row .md-link, .md-topbar .md-link, td .md-link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.3rem;
  }
}
.md-danger { color: var(--danger) !important; }
.md-error { color: var(--danger); background: var(--danger-soft); border-radius: var(--radius-xs); padding: 0.5rem 0.7rem; font-size: 0.88rem; margin: 0; }
/* ---------------------------------------------------------------------
 * The life walkthrough on the signed out page. One band per stage: a
 * photograph on one side, copy and real plan items on the other, sides
 * alternating. No cards, no icon grid, no three across feature row.
 * --------------------------------------------------------------------- */
.md-life { padding: 2.5rem 0 1rem; }
.md-life-head { max-width: 42rem; margin: 0 0 1rem; }
.md-life-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.7rem);
  letter-spacing: -0.03em;
}
.md-life-head .lede { margin-bottom: 0.7rem; }
.md-life-foot { margin-top: 2.4rem; max-width: 42rem; }

.md-band {
  display: grid; gap: 1.5rem; align-items: center;
  padding: 2.6rem 0; border-top: 1px solid var(--line);
}
.md-band-photo img {
  width: 100%; height: auto; border-radius: var(--radius);
  background: var(--surface-alt);
}
.md-band-copy > *:last-child { margin-bottom: 0; }
.md-band-age {
  margin: 0 0 0.5rem;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-ink);
}
.md-band h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.4rem, 1.05rem + 1.6vw, 2.05rem);
  letter-spacing: -0.025em; line-height: 1.12;
}
.md-band p { font-size: 1.02rem; line-height: 1.66; color: var(--ink-soft); }
.md-band-list {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.md-band-list li {
  display: flex; justify-content: space-between; gap: 1.2rem; align-items: baseline;
  margin: 0; padding: 0.72rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.md-band-item { color: var(--ink); font-weight: 600; }
.md-band-due { color: var(--ink-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.md-band-note { margin: 0.9rem 0 0; font-size: 0.86rem; color: var(--ink-faint); }

/* Only the vaccination band changes with the country, so only it is emitted
 * more than once. app.js stamps data-country on <html>; with no script at all
 * the United States list is the one that shows. */
.md-band-list[data-c] { display: none; }
html[data-country="AU"] .md-band-list[data-c~="AU"],
html[data-country="US"] .md-band-list[data-c~="US"],
html[data-country="UK"] .md-band-list[data-c~="UK"],
html[data-country="CA"] .md-band-list[data-c~="CA"],
html[data-country="NZ"] .md-band-list[data-c~="NZ"],
html:not([data-country]) .md-band-list[data-c~="US"] { display: block; }

.md-cta {
  display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center;
  margin: 0; padding: 2.2rem 0; border-top: 1px solid var(--line);
}
.md-cta-end { border-top: 0; padding: 1.6rem 0 0; }

@media (min-width: 860px) {
  .md-life { padding: 3.5rem 0 1rem; }
  .md-life-head { margin-bottom: 1.5rem; }
  .md-band { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4.5rem 0; }
  .md-band.is-flipped .md-band-photo { order: 2; }
  .md-band-copy { max-width: 32rem; }
  .md-band.is-flipped .md-band-copy { margin-left: auto; }
}

.md-how { padding: 1rem 0 2rem; }
.md-topbar { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between; padding: 1.4rem 0 1rem; }
.md-topbar-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.md-dogs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.md-chip { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.3rem 0.85rem 0.3rem 0.3rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); font: inherit; font-weight: 650; color: var(--ink); cursor: pointer; transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.md-chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.md-chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.md-chip img, .md-chip-initial { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--on-brand); font-size: 0.85rem; }
.md-dog-form-grid { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .md-dog-form-grid { grid-template-columns: 200px 1fr; } }
.md-photo { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
.md-photo-preview { width: 160px; height: 160px; border-radius: 50%; background: var(--surface-alt); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 4rem; overflow: hidden; }
.md-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.md-photo-btn { cursor: pointer; }
.md-head { display: grid; gap: 1rem; grid-template-columns: 84px 1fr; align-items: center; margin-top: 0.4rem; }
@media (min-width: 760px) { .md-head { grid-template-columns: 112px 1fr auto; } }
.md-head-photo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; }
@media (min-width: 760px) { .md-head-photo { width: 112px; height: 112px; } }
.md-head-photo img { width: 100%; height: 100%; object-fit: cover; }
.md-head h1 { margin: 0 0 0.2rem; font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.3rem); }
.md-head-meta { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.md-stage { margin: 0.4rem 0 0; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.md-head-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; grid-column: 1 / -1; }
@media (min-width: 760px) { .md-head-actions { grid-column: auto; flex-direction: column; align-items: stretch; } }
.md-strip { grid-column: 1 / -1; margin-top: 0.6rem; padding-top: 0.2rem; }
.md-strip-bar { position: relative; height: 8px; border-radius: var(--radius-pill); background: var(--surface-alt); border: 1px solid var(--line); }
.md-strip-fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--brand-line), var(--brand)); }
.md-strip-now { position: absolute; top: -6px; width: 2px; height: 18px; background: var(--ink); transform: translateX(-1px); }
.md-strip-now span { position: absolute; top: -1.3rem; left: 50%; transform: translateX(-50%); font-size: 0.72rem; font-weight: 700; color: var(--ink); }
.md-strip-marks { position: relative; height: 3.2rem; margin-top: 0.4rem; }
.md-strip-marks span:nth-child(even) { top: 1.25rem; }
.md-strip-marks span:nth-child(even) i { height: 1.4rem; margin-top: -1.2rem; }
.md-strip-marks span { position: absolute; top: 0; transform: translateX(-50%); font-size: 0.72rem; color: var(--ink-faint); white-space: nowrap; text-align: center; }
.md-strip-marks span i { display: block; width: 1px; height: 6px; background: var(--line-strong); margin: 0 auto 2px; }
.md-strip-marks span.is-past { color: var(--brand-ink); }
.md-strip-marks span:first-child { transform: none; text-align: left; }
.md-strip-marks span:first-child i { margin-left: 0; }
.md-strip-marks span:last-child { transform: translateX(-100%); text-align: right; }
.md-strip-marks span:last-child i { margin-right: 0; }
.md-tabs-hub { margin-top: 1.4rem; }
/* All five hub tabs fit a phone screen, so the row never scrolls sideways
 * and no label is ever cut off at the right edge. */
@media (max-width: 559px) {
  .md-tabs-hub { gap: 0; }
  .md-tabs-hub .md-tab { padding: 0.55rem 0.45rem; font-size: 0.92rem; }
  .md-tabs-hub .md-count { margin-left: 0.1rem; padding: 0 0.25em; font-size: 0.72rem; }
}
.md-h2 { font-size: 1.1rem; margin: 1.4rem 0 0.6rem; }
.md-month { font-size: 0.85rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; margin: 1rem 0 0.4rem; }
.md-item { display: grid; grid-template-columns: 2rem 1fr; gap: 0.8rem; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 0.55rem; align-items: start; }
@media (min-width: 640px) { .md-item { grid-template-columns: 2rem 1fr auto; } }
.md-item.is-overdue, .md-item.is-today { border-left: 4px solid var(--amber); }
.md-item.is-soon { border-left: 4px solid var(--brand); }
.md-item.is-done, .md-item.is-skipped, .md-item.is-history { opacity: 0.72; }
.md-item-icon { font-size: 1.4rem; line-height: 1; padding-top: 0.15rem; }
.md-item h3 { margin: 0 0 0.15rem; font-size: 1.02rem; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.md-item-when { margin: 0 0 0.35rem; font-size: 0.86rem; font-weight: 650; color: var(--ink-soft); }
.md-item-advice { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.md-item-links { margin: 0; font-size: 0.8rem; color: var(--ink-faint); }
.md-item-links a { color: var(--brand-ink); }
.md-item-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; grid-column: 2; }
@media (min-width: 640px) { .md-item-actions { grid-column: auto; flex-direction: column; align-items: flex-end; } }
.md-done-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; font-size: 0.86rem; }
.md-done-row label { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; min-width: 0; max-width: 100%; }
/* The row is small print, so without a floor the date field would inherit
 * 13.8px, and iOS zooms the page in on any field under 16px and does not
 * zoom back. The shared rule in styles.css sets the floor; this keeps the
 * box inside the item card it belongs to. */
.md-done-row input { min-height: 44px; padding: 0.3rem 0.5rem; max-width: 100%; }
.md-stage-head { margin: 1.4rem 0 0.8rem; }
.md-stage-head h2 { margin: 0.2rem 0 0.3rem; }
.md-stage-grid { display: grid; gap: 0.8rem; }
@media (min-width: 760px) { .md-stage-grid { grid-template-columns: repeat(2, 1fr); } }
.md-stage-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1rem; }
.md-stage-block h3 { margin: 0 0 0.35rem; font-size: 0.98rem; }
.md-stage-block p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.md-stage-block ul { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.md-stage-watch { border-left: 4px solid var(--amber); }
.md-toys a { color: var(--brand-ink); }

/* Kit for this dog: one row per trait the breed actually has, each with the
 * reason and the source it came from. Nothing here names a product and
 * nothing here carries a price, so every link is a retailer search. */
.md-kit { margin: 1.4rem 0 0.4rem; }
.md-kit h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.md-kit-list { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
@media (min-width: 760px) { .md-kit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.md-kit-row {
  margin: 0; min-width: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.9rem 1rem;
}
.md-kit-row h4 { margin: 0 0 0.25rem; font-size: 0.98rem; }
.md-kit-row p { margin: 0 0 0.4rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.md-kit-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; }
.md-kit-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--brand-ink); font-weight: 600; overflow-wrap: anywhere;
}
.md-kit-src { margin: 0 !important; font-size: 0.8rem !important; }
.md-kit-src a { color: var(--ink-faint); }
.md-weight-form { margin-top: 1.2rem; }
.md-chart { width: 100%; height: auto; margin: 0.6rem 0 1rem; }
.md-chart polyline { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.md-chart circle { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.md-chart text { font-size: 11px; fill: var(--ink-faint); }
.md-chart-grid line { stroke: var(--line); stroke-width: 1; }
.md-foot { margin-top: 2rem; }

/* The four feature points used to sit between the lede and the sign up
 * form, which pushed the form below the first screen on a phone. They now
 * follow the form. */
.md-what { margin: 0.4rem 0 1.6rem; }
.md-what .md-points { margin-top: 0; }
@media (min-width: 760px) { .md-what .md-points { grid-template-columns: repeat(2, 1fr); gap: 0.8rem 2rem; } }

/* ---------------------------------------------------------------------
 * The dog dashboard on the signed out page (my-dog-try.js, v2 5 Oct 2026).
 * Colours and type only through the tokens in styles.css, so a palette or
 * font change there carries straight through.
 * --------------------------------------------------------------------- */
.md-try { margin: 0; }
.md-try h2 { margin: 0 0 0.3rem; font-size: 1.25rem; }
.md-try .field-grid { margin-bottom: 0.6rem; }
.md-try .btn-row { margin: 0.8rem 0 0.7rem; }
.md-try-out:empty { display: none; }
.md-save { margin: 2rem 0 1.4rem; display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .md-save { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; } }
.md-save-copy h2 { margin: 0 0 0.4rem; }
.md-save-copy p { color: var(--ink-soft); }

/* Once a dog is on show, the walkthrough for visitors without one folds away. */
#my-dog.has-dash .mdd-intro { display: none; }
#my-dog.has-dash .mdd-hero { padding-bottom: 0.4rem; }

.mdd-label { display: block; font-weight: 650; font-size: 0.92rem; margin-bottom: 0.3rem; }
.mdd-breed-line { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; min-height: 44px; }
.mdd-breed-line #mt-breed { font-weight: 600; overflow-wrap: anywhere; }
.mdd-breed-line .md-link { min-height: 44px; }

.mdd { display: grid; gap: 0; margin-top: 1.4rem; min-width: 0; }
.mdd-sec { padding: 2rem 0; border-top: 1px solid var(--line); min-width: 0; }
.mdd-sec > h2 { margin: 0 0 0.3rem; letter-spacing: -0.02em; }
.mdd-sub { margin: 0 0 1rem; max-width: 46rem; }
.mdd-ref { font-size: 0.7em; margin-left: 0.15em; line-height: 0; }
.mdd-ref a { text-decoration: none; color: var(--brand-ink); font-weight: 700; }
.mdd-ref a:hover { text-decoration: underline; }

/* The dog card */
.mdd-head {
  display: grid; gap: 1.2rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem; margin-bottom: 1.6rem; min-width: 0;
}
@media (min-width: 760px) { .mdd-head { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.8rem; padding: 1.6rem; } }
.mdd-photo { margin: 0; min-width: 0; }
.mdd-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-alt); }
.mdd-photo figcaption { font-size: 0.74rem; color: var(--ink-faint); margin-top: 0.35rem; overflow-wrap: anywhere; }
.mdd-photo figcaption a { color: inherit; }
.mdd-photo-empty {
  display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--brand-ink); border: 1px dashed var(--brand-line);
}
@media (min-width: 760px) { .mdd-photo-empty { aspect-ratio: 4 / 5; align-content: center; gap: 0.6rem; } }
/* No photo yet is an empty state, so Pip waits there on wide screens; the
 * phone's small circle keeps just the initial. */
.mdd-photo-empty .mdd-photo-pip { display: none; aspect-ratio: auto; object-fit: contain; background: none; border-radius: 0; }
@media (min-width: 760px) { .mdd-photo-empty .mdd-photo-pip { display: block; width: 88px; height: auto; } }
.mdd-photo-empty span { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; }
@media (max-width: 759px) {
  .mdd-photo-empty { width: 5.5rem; aspect-ratio: 1; border-radius: var(--radius-pill); }
  .mdd-photo-empty span { font-size: 2.4rem; }
}
.mdd-id { min-width: 0; }
.mdd-kicker { margin: 0 0 0.2rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-ink); overflow-wrap: anywhere; }
.mdd-name { margin: 0 0 0.9rem; font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; overflow-wrap: anywhere; }
.mdd-name:focus { outline: none; }
.mdd-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; margin: 0 0 1.2rem; }
@media (min-width: 460px) { .mdd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mdd-facts > div { background: var(--surface-alt); border-radius: var(--radius-sm); padding: 0.65rem 0.8rem; min-width: 0; }
.mdd-facts dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.15rem; }
.mdd-facts dd { margin: 0; font-weight: 650; color: var(--ink); line-height: 1.35; }

.mdd-strip { margin: 0 0 1rem; }
.mdd-strip-bar { position: relative; height: 10px; border-radius: var(--radius-pill); background: var(--surface-alt); border: 1px solid var(--line); overflow: hidden; }
.mdd-seg { position: absolute; top: 0; bottom: 0; background: var(--brand-soft); border-right: 2px solid var(--surface); }
.mdd-seg.is-now { background: var(--brand-line); }
.mdd-strip-now { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--brand-ink); border-radius: 2px; }
.mdd-strip-labels { display: flex; justify-content: space-between; gap: 0.4rem; margin-top: 0.35rem; font-size: 0.72rem; color: var(--ink-faint); }
.mdd-strip-labels .is-now { color: var(--brand-ink); font-weight: 700; }
.mdd-photo-row { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; }
.mdd-photo-btn { cursor: pointer; }
.mdd-photo-btn input { font-size: 16px; } /* iOS zooms on any field under 16px */
.mdd-photo-row .md-link { min-height: 44px; }

/* The share card */
.mdd-share { display: grid; gap: 1.2rem; align-items: start; border-top: 0; padding-top: 0; }
@media (min-width: 760px) { .mdd-share { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 2rem; } }
.mdd-share-copy { min-width: 0; }
.mdd-share-copy h2 { margin: 0 0 0.3rem; }
.mdd-share-slot { margin-top: 0.9rem; }
.mdd-card-wrap { max-width: 260px; }
.mdd-card-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); background: var(--surface-alt); box-shadow: var(--shadow); }
.mdd-card-img:not([src]) { visibility: hidden; }

/* Coming up */
.mdd-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mdd-row { display: grid; grid-template-columns: 3rem 1.6rem minmax(0, 1fr); gap: 0.7rem; align-items: start; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.mdd-date { display: grid; justify-items: center; line-height: 1.05; padding: 0.35rem 0; border-radius: var(--radius-xs); background: var(--surface-alt); }
.mdd-date b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mdd-date span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); }
.mdd-row.is-now .mdd-date { background: var(--amber-soft); }
.mdd-row.is-now .mdd-date span { color: var(--amber); }
.mdd-row-icon { font-size: 1.1rem; line-height: 1.8; text-align: center; }
.mdd-row-body { min-width: 0; }
.mdd-row-t { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.mdd-row-s { margin: 0.15rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.mdd-why { margin-top: 0.35rem; font-size: 0.88rem; }
.mdd-why summary { cursor: pointer; color: var(--brand-ink); min-height: 32px; display: inline-flex; align-items: center; }
.mdd-why p { margin: 0.3rem 0 0; color: var(--ink-soft); line-height: 1.55; max-width: 46rem; }
.mdd-more { margin-top: 0.9rem; min-height: 44px; }
.mdd-empty { color: var(--ink-soft); }
.mdd-cal { margin-top: 1.4rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-line); }
.mdd-cal .btn { white-space: normal; text-align: center; }
.mdd-cal p { margin: 0.6rem 0 0; color: var(--ink-soft); max-width: 46rem; }

/* This stage */
.mdd-stage .eyebrow { margin: 0 0 0.3rem; }
.mdd-blocks { display: grid; gap: 0.8rem; margin-top: 1rem; }
@media (min-width: 760px) { .mdd-blocks { grid-template-columns: 1fr 1fr; } }
.mdd-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; min-width: 0; }
.mdd-block h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.mdd-block p, .mdd-block li { margin: 0; color: var(--ink-soft); line-height: 1.55; font-size: 0.94rem; }
.mdd-block ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.mdd-block-wide { grid-column: 1 / -1; }
.mdd-block-watch { background: var(--amber-soft); border-color: var(--amber-line); }
.mdd-block-watch h3 { color: var(--amber); }

/* Their breed */
.mdd-bcards { display: grid; gap: 0.9rem; }
.mdd-bcards.is-mix { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.mdd-bcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; min-width: 0; }
.mdd-bcard h3 { margin: 0 0 0.7rem; font-size: 1.15rem; }
.mdd-bcard h3 a { color: inherit; text-decoration: none; }
.mdd-bcard h3 a:hover { text-decoration: underline; }
.mdd-bfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 0.5rem; margin: 0 0 0.9rem; }
.mdd-bfacts > div { background: var(--surface-alt); border-radius: var(--radius-xs); padding: 0.5rem 0.65rem; min-width: 0; }
.mdd-bfacts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.mdd-bfacts dd { margin: 0.1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.mdd-bcard h4 { margin: 0 0 0.4rem; font-size: 0.92rem; }
.mdd-bcard ul { margin: 0 0 0.8rem; padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.92rem; display: grid; gap: 0.25rem; }
.mdd-blink { margin: 0; font-weight: 650; }

/* Tools */
.mdd-tool-list { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
@media (min-width: 760px) { .mdd-tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mdd-tool { display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; color: var(--ink); min-height: 44px; transition: border-color var(--dur-1) var(--ease); }
.mdd-tool:hover { border-color: var(--brand); }
.mdd-tool-t { font-weight: 700; color: var(--brand-ink); }
.mdd-tool-w { font-size: 0.9rem; color: var(--ink-soft); }

.mdd-linknote { margin: 1rem 0 0; }
.mdd-sources ol { margin: 0.6rem 0 0.8rem; padding-left: 1.4rem; display: grid; gap: 0.3rem; font-size: 0.88rem; }
.mdd-sources a { overflow-wrap: anywhere; }

/* Pip on the breed section's empty state (brand rule: Pip on empty states). */
.mdd-breed-empty .mdd-pip { display: block; width: 56px; height: auto; margin: 0 0 0.4rem; }

/* The email consent: the short line under the box, the opt in prompt for
 * accounts that never chose, and the "confirm your address" line. */
.md-consent-note { margin: -0.35rem 0 0 1.85rem; }
.md-email-prompt { margin: 0 0 1.25rem; }
.md-email-prompt h2 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.md-email-prompt p { margin: 0 0 0.75rem; }
.md-email-prompt .md-check { margin-bottom: 0.6rem; }
.md-email-prompt .btn-row { margin-top: 0.5rem; }
.md-email-status { margin: 0.5rem 0 0; padding: 0.6rem 0.8rem; border-radius: 0.6rem; background: var(--surface-alt); }
