/* personal.media (media/media-personal.html), after charte.css and
   landing.css (charter V4, 20/11): the site's colour (--a, the bubble of
   its mark, pmcharte/sites.go: keep the two the same), a touch only, never
   a text colour; the two fields beside the hero's card (a hairline under
   each); the person's addresses under it, one per .pm, aligned on « / »
   like datamix.io's board; a dot of its colour before each colour's name;
   the .pm of each moment of the day, by their logos. Everything else is
   landing.css. Decorations are clipped (overflow-x: clip), never the page
   widened. */

:root[data-pm='personal'] { --a: #A855F7; }
html[data-pm='personal'] body { overflow-x: clip; }
/* the header's mark: 30 px as on every landing; a phone keeps it at 26 px
   (its « .media » still in outline), the name being longer than a .pm's */
@media (max-width: 420px) { .ld-top .ld-logo .wm { font-size: 26px; } }
@supports not (overflow-x: clip) { html[data-pm='personal'] body { overflow-x: hidden; } }

/* the hero: the claim | the card, its fields, its addresses */
.mp-hero h1 { max-width: 12ch; }
.mp-try { min-width: 0; }

.mp-fields[hidden] { display: none; }
.mp-fields { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.mp-fields legend { padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--soft); }
.mp-fields label { font-size: 12px; color: var(--faint); }
.mp-fields input { width: 100%; min-height: 44px; margin: 0 0 18px; padding: 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); caret-color: var(--accent); transition: border-color .25s ease, box-shadow .25s ease; }
.mp-fields input:last-child { margin-bottom: 0; }
.mp-fields input::placeholder { color: var(--faint); }
.mp-fields input:hover { border-bottom-color: var(--soft); }
.mp-fields input:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 2px; border-bottom-color: var(--ink); }

/* the addresses: bubble | host « / » path | what it is */
.mp-addrs { list-style: none; margin: 32px 0 0; padding: 0; font-variant-numeric: tabular-nums; }
.mp-addrs li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--rule); }
.mp-addrs li:last-child { border-bottom: 1px solid var(--rule); }
/* the line lit when the name changes: its rule drawn in the site's colour */
.mp-addrs li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.mp-addrs li.is-lit::before { transform: scaleX(1); }
.mp-b { display: flex; }
.mp-b svg { width: 30px; height: 30px; display: block; }
.mp-a { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; color: var(--soft); }
.mp-a b { font-weight: 500; color: var(--ink); }
.mp-a [data-mp-slug] { color: var(--ink); }
.mp-r { font-size: 13px; color: var(--faint); white-space: nowrap; }
@media (max-width: 520px) { .mp-r { display: none; } .mp-addrs { margin-top: 28px; } }

.mp-colors button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.mp-colors button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sw, var(--faint)); }

/* the day: each moment's .pm by its logo, under its text */
.mp-day .ld-fine { margin-top: 8px; }
.mp-pms { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0 !important; }
.mp-pms a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-radius: 6px; }
.mp-pms .wm { font-size: 17px; }
.mp-pms .wm > svg { margin-top: -6px; }
@media (hover: hover) { .mp-pms a:hover .wm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; } }

@media (max-width: 640px) {
  .mp-hero h1 { max-width: none; }
  .ld-proof#mp-card { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { .mp-addrs li::before { transition: none; } }
