/* A member's own page, round two: A, the credential, refined. On the page system's frame (site.css): its header, its
   blue rule and label line, its title at 48, its sections, its foot. Measures are ink to ink at his window (1728). */
:root { --paper: #fff; --ink: #000; --tint: #F3F5FA; --card-line: #8E9CC0; --ease: cubic-bezier(.2, .7, .2, 1); }
body.m-page { background: var(--paper); color: var(--ink); }

/* ---- the head: the name and their own words; the credential carries the rest ------------------------------------ */
.m-head > .ps-main > * { max-width: calc(7 * (100% + var(--ps-gap)) / 8 - var(--ps-gap)); }
.m-head > .ps-main > .ps-where, .m-head > .ps-main > .m-name { max-width: none; }
.ps .m-name { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; font: 700 var(--ps-title)/var(--ps-title-lh) "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 50; color: var(--blue); text-box: trim-both cap alphabetic; }
.m-off { font: 600 var(--ps-label)/1 "Libre Franklin", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
/* the pronouns and the badge on one line, 20 under the name; what they do 20 under that */
.ps .m-marks { margin-top: 20px; display: flex; align-items: center; gap: 16px; font: 500 var(--ps-small)/22px "Libre Franklin", sans-serif; color: var(--quiet); }
.m-marks .avail { margin: 0; font-size: 14px; line-height: 18px; padding: 3px 10px 3px; min-width: 0; }
.ps .m-line { margin-top: 20px; font: 400 var(--ps-stand)/var(--ps-stand-lh) "Libre Franklin", sans-serif; text-box: trim-both cap alphabetic; }
.ps .m-words { margin-top: var(--ps-step); font: 400 var(--ps-body)/30px "Libre Franklin", sans-serif; }
.ps .m-words p { text-box: trim-both cap alphabetic; text-wrap: pretty; }
.m-act { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.ps .m-act .btn { height: 56px; padding: 0 28px; }
.m-contact[aria-expanded="true"] { box-shadow: inset 0 -4px 0 var(--dome); }

/* ---- the credential: drawn from the 2008 DNC hall credential, field for field --------------------------------- */
.cred { position: relative; width: 100%; aspect-ratio: 2 / 3; perspective: 3200px; cursor: pointer; outline: 0; }
.cr-in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--rot, 0deg)); transition: transform .72s var(--ease); }
.cred.flip { --rot: 180deg; }
.cr-side { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cr-side::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--dome); }
.cr-front { display: grid; grid-template-columns: 64px minmax(0, 1fr); background: var(--paper); box-shadow: inset 0 0 0 1px var(--card-line); }
.cr-back { transform: rotateY(180deg); background: var(--blue); color: #fff; padding: 32px 32px 0; display: flex; flex-direction: column; }
/* the strip: the number large at its foot, "Founding member" at its head, both read upward */
.cr-strip { background: var(--blue); color: #fff; display: flex; flex-direction: column-reverse; justify-content: space-between; align-items: center; padding: 32px 0 40px; }
.cr-strip > span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.cr-no { font: 700 44px/1 "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 50; }
.cr-ev { font: 600 13px/16px "Libre Franklin", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dome); }
/* the body: one left edge, 32 in from the strip and from the card's right edge */
.cr-body { display: flex; flex-direction: column; padding: 32px 32px 40px; min-width: 0; }
.cr-zone { font: 700 52px/1 "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 50; color: var(--blue); text-box: trim-both cap alphabetic; }
.cr-day { margin-top: 16px; font: 500 15px/20px "Libre Franklin", sans-serif; color: var(--quiet); text-box: trim-both cap alphabetic; }
.cr-cat { margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--blue); font: 700 15px/20px "Libre Franklin", sans-serif; letter-spacing: .12em; text-transform: uppercase; text-box: trim-both cap alphabetic; }
.cr-ph { display: block; margin-top: 32px; width: 196px; aspect-ratio: 1; box-shadow: 0 0 0 1px var(--card-line); overflow: hidden; background: var(--tint); }
.cr-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cr-org { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); font: 600 17px/22px "Libre Franklin", sans-serif; text-box: trim-both cap alphabetic; }
/* the back: their skills, their link, two things to do */
.cr-k { font: 600 13px/16px "Libre Franklin", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dome); text-box: trim-both cap alphabetic; }
.cr-skills { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .3); }
.cr-skills li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .3); font: 500 16px/20px "Libre Franklin", sans-serif; }
.cr-skills li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--dome); }
.cr-share { margin-top: auto; padding-bottom: 40px; }
.cr-url { margin-top: 12px; font: 600 17px/22px "Libre Franklin", sans-serif; }
.cr-acts { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.ps .cr-acts .btn { height: 44px; padding: 0 16px; font-size: 15px; }
.btn.white { background: #fff; color: var(--blue); }
.btn.line.onb { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn[data-copied] { background: var(--dome); color: #0B1F4D; }
.cr-why { margin-top: 16px; font: 400 14px/20px "Libre Franklin", sans-serif; color: var(--on-blue); }

/* ---- the turn: PDP's reverse arrow, two arrows chasing each other ------------------------------------------- */
.m-turn { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--blue); font: 600 17px/1 "Libre Franklin", sans-serif; }
.m-turn-b { display: grid; place-items: center; width: 56px; height: 56px; background: var(--blue); color: #fff; transition: background .2s; }
.rev { width: 44px; height: 44px; fill: currentColor; transform: rotate(var(--spin, 0deg)); transition: transform .72s var(--ease); }
.m-turn[aria-pressed="true"] { --spin: 180deg; }
.m-turn:hover .m-turn-b { background: #15306F; }
.m-turn:hover .rev { transform: rotate(calc(var(--spin, 0deg) + 24deg)); transition-duration: .3s; }
.m-turn:focus-visible { outline: 0; } .m-turn:focus-visible .m-turn-b { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---- the note Contact opens, under the head --------------------------------------------------------------- */
.m-note { margin-top: var(--ps-section-gap); }
.m-note[hidden] { display: none; }
.m-note.open .m-note-in { animation: m-open .42s var(--ease) both; }
.m-form label { display: block; margin-top: 20px; font: 600 15px/20px "Libre Franklin", sans-serif; }
.m-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } .m-f2 label { margin-top: 0; }
.m-form input, .m-form textarea { display: block; width: 100%; margin-top: 8px; height: 52px; border: 0; border-bottom: 2px solid var(--blue); border-radius: 0; background: var(--tint); padding: 0 14px; font: 400 17px/1.4 "Libre Franklin", sans-serif; color: var(--ink); }
.m-form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.m-form .bad input, .m-form .bad textarea { border-bottom-color: #B3261E; }
.m-send { margin-top: 24px; }
.ps .m-sent { font: 700 var(--ps-item)/32px "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 50; color: var(--blue); outline: 0; }
.m-sent:not([hidden]) { animation: m-open .42s var(--ease) both; }

/* ---- the others in the county ---------------------------------------------------------------------------- */
.m-note[hidden] + .m-body, .m-body { margin-top: var(--ps-section-gap); }
.m-near-l { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--ps-gap); row-gap: 32px; }
.m-near-l a { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: center; color: inherit; text-decoration: none; }
.nf { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--blue); color: #fff; display: grid; place-items: center; font: 700 17px "Libre Franklin", sans-serif; transition: box-shadow .2s; }
.nf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-near-l b { font: 600 17px/22px "Libre Franklin", sans-serif; align-self: end; }
.m-near-l i { font: 400 15px/20px "Libre Franklin", sans-serif; font-style: normal; color: var(--quiet); align-self: start; }
.m-near-l a:hover b { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.m-near-l a:hover .nf, .m-near-l a:focus-visible .nf { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--blue); }
.m-ways { display: flex; gap: 32px; margin-top: var(--ps-group); padding-top: 20px; border-top: 1px solid var(--rule); }

/* ---- alive: the arrival, the hover ----------------------------------------------------------------------- */
@keyframes m-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes m-drop { 0% { opacity: 0; transform: translateY(-36px) rotate(-5deg); } 60% { opacity: 1; transform: translateY(4px) rotate(1deg); } 100% { transform: none; } }
@keyframes m-open { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.arrive .rise { animation: m-rise .5s var(--ease) both; }
.arrive .rise:nth-child(2) { animation-delay: .06s; } .arrive .rise:nth-child(3) { animation-delay: .12s; } .arrive .rise:nth-child(4) { animation-delay: .18s; }
.arrive .rise:nth-child(5) { animation-delay: .24s; } .arrive .rise:nth-child(6) { animation-delay: .3s; }
.arrive .cred { animation: m-drop .8s var(--ease) .15s both; transform-origin: 50% 0; }
.arrive .m-turn { animation: m-rise .5s var(--ease) .7s both; }
.cred .cr-in { box-shadow: 0 0 0 rgba(13, 31, 77, 0); transition: transform .72s var(--ease), box-shadow .3s; }
@media (hover: hover) { .cred:hover .cr-in { box-shadow: 0 18px 36px -24px rgba(13, 31, 77, .55); } }
.frozen .cr-in, .frozen .rev { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .arrive .rise, .arrive .cred, .arrive .m-turn, .m-note.open .m-note-in, .m-sent:not([hidden]) { animation: none !important; }
  .cr-in, .rev { transition: none !important; }
}

/* ---- the phone: its own page: who, what they do, how to reach them, their words, then the card -------------- */
@media (max-width: 760px) {
  .m-head > .ps-main > * { max-width: none; }
  .ps .m-name { margin-top: 24px; flex-direction: column; align-items: flex-start; row-gap: 12px; }
  .ps .m-marks, .ps .m-line { margin-top: 16px; }
  .m-head .m-act { order: 4 !important; margin-top: 28px; }
  .m-head .m-words { order: 5 !important; margin-top: 32px; }
  .m-head > .ps-aside { order: 6 !important; margin-top: 40px; }
  .ps .m-act .btn { flex: 1 1 auto; justify-content: center; height: 52px; padding: 0 20px; }
  .ps .m-act .m-contact { flex-basis: 100%; }
  .cr-strip { padding: 24px 0 32px; } .cr-front { grid-template-columns: 52px minmax(0, 1fr); }
  .cr-no { font-size: 36px; }
  .cr-body { padding: 24px 24px 32px; }
  .cr-zone { font-size: 40px; }
  .cr-cat { margin-top: 20px; padding-top: 14px; font-size: 13px; }
  .cr-ph { width: 128px; margin-top: 24px; }
  .cr-back { padding: 24px 24px 0; }
  .cr-skills li { padding: 8px 0; font-size: 15px; }
  .cr-share { padding-bottom: 32px; }
  .cr-why { display: none; }
  .m-f2 { grid-template-columns: minmax(0, 1fr); gap: 0; } .m-f2 label + label { margin-top: 20px; }
  .m-near-l { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .m-ways { gap: 24px; flex-wrap: wrap; }
}
@media (min-width: 761px) and (max-width: 1100px) { .m-near-l { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cred { max-width: 400px; } }

/* ---- dark: the deep navy (his ruling of November 11), as the home page draws it ------------------------------- */
[data-theme="dark"] { --paper: #131B33; --ink: #ECEFF6; --quiet: #AAB4CD; --line: #4D5B7E; --rule: #28324F; --tint: #1A2340; --card-line: #4D5B7E; color-scheme: dark; }
[data-theme="dark"] body { background: #131B33; color: #ECEFF6; }
[data-theme="dark"] .ps .ps-label, [data-theme="dark"] .ps .ps-section, [data-theme="dark"] .ps .m-name, [data-theme="dark"] .m-off,
[data-theme="dark"] .ps .ps-go, [data-theme="dark"] .m-turn,
[data-theme="dark"] .cr-zone, [data-theme="dark"] .ps .m-sent, [data-theme="dark"] .m-near-l a:hover b { color: #B6C5F0; }
[data-theme="dark"] .ps-head { border-top-color: #B6C5F0; }
[data-theme="dark"] .cr-cat { border-top-color: #B6C5F0; }
[data-theme="dark"] .btn { background: #2D4FAE; color: #F6F7FA; }
[data-theme="dark"] .btn.line { background: transparent; color: #ECEFF6; box-shadow: inset 0 0 0 2px #B6C5F0; }
[data-theme="dark"] .btn.white { background: #ECEFF6; color: #131B33; }
[data-theme="dark"] .cr-front { background: #1F2949; }
[data-theme="dark"] .cr-strip, [data-theme="dark"] .cr-back { background: #1D3C8F; }
[data-theme="dark"] .m-turn-b { background: #2D4FAE; }
[data-theme="dark"] .m-form input, [data-theme="dark"] .m-form textarea { border-bottom-color: #B6C5F0; }
[data-theme="dark"] .avail.open { color: #131B33; }
/* what they do and the county: on the card at the laptop; on the phone, where the card comes later, under the name too */
.m-line { display: none; }
@media (max-width: 760px) { .m-line { display: block; } }
/* the words no wider than the name over them: five columns at his window */
.m-head > .ps-main > .m-words { max-width: calc(5 * (100% + var(--ps-gap)) / 8 - var(--ps-gap)); }
@media (max-width: 760px) { .m-head > .ps-main > .m-words { max-width: none; } }
/* measured mends (first screen at 1728): the title 32 under the label's line, not 41; the badge 20 under the title's
   baseline, not 30; the county's B sat 2 right of the card's text edge; the photograph's hairline 1 outside it; the strip's
   words 4 under the county's capitals and its number 4 above the firm's baseline */
.ps .m-name { margin-top: 23px; }
.ps .m-marks { margin-top: 10px; }
.cr-zone { margin-left: -2px; }
.cr-ph { box-shadow: none; outline: 1px solid var(--card-line); outline-offset: -1px; }
.cr-strip { padding: 28px 0 36px; }
@media (max-width: 760px) { .ps .m-name { margin-top: 16px; } .ps .m-marks { margin-top: 8px; } .cr-strip { padding: 22px 0 28px; } }

.m-act { margin-top: 42px; }
.ps .m-marks { margin-top: 11px; }
.ps .m-name { margin-top: 24px; }

/* a neighbour with no line: the name centred on the face, as the others sit */
.m-near-l a > b:last-child { grid-row: 1 / 3; align-self: center; }

/* ==== second pass, after the fresh reader (control's seven mends) ============================================= */
/* the card leads with what the member does; the county is the small line */
.cr-role { font: 700 40px/44px "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 50; color: var(--blue); text-box: trim-both cap alphabetic; text-wrap: balance; margin-left: -1px; }
.cr-where { margin-top: 20px; font: 600 13px/16px "Libre Franklin", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-box: trim-both cap alphabetic; }
.cr-day { margin-top: 10px; }
/* one object at size: the photograph across the card's text width, whole and square, at no more than its own size */
.cr-ph { width: 100%; max-width: 272px; margin-top: 24px; }
/* the firm's row at the foot, and the reverse arrow on the card's own corner, in that row */
.cr-org { margin-top: auto; padding: 0 72px 0 0; border-top: 1px solid var(--rule); height: 72px; display: flex; align-items: flex-end; padding-bottom: 19px; text-box: none; line-height: 22px; }
.cr-body { padding-bottom: 32px; }
.cred { cursor: default; }
.cr-turn { position: absolute; right: 32px; bottom: 40px; z-index: 2; width: 56px; height: 56px; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: var(--blue); color: #fff; transition: background .3s, color .3s, transform .2s; }
.cr-turn .rev { width: 40px; height: 40px; }
.cred.flip .cr-turn { background: #fff; color: var(--blue); }
.cr-turn[aria-pressed="true"] { --spin: 180deg; }
.cr-turn:hover { transform: scale(1.06); } .cr-turn:hover .rev { transform: rotate(calc(var(--spin, 0deg) + 30deg)); transition-duration: .3s; }
.cr-turn:focus-visible { outline: 3px solid var(--dome); outline-offset: 3px; }
.cr-turn:active { transform: scale(.96); }
/* the back: the member's founding member card, as the site makes it for them to post, and the link */
.cr-back { padding: 32px 32px 0; }
.cb-logo { display: block; width: 180px; height: auto; margin-left: calc(180px * -0.03227); }
.cb-ph { display: block; width: 136px; aspect-ratio: 1; margin-top: 28px; overflow: hidden; outline: 1px solid rgba(255,255,255,.35); outline-offset: -1px; }
.cb-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-nm { margin-top: 28px; font: 700 26px/30px "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 50; text-box: trim-both cap alphabetic; }
.cb-dw { margin-top: 14px; font: 500 15px/20px "Libre Franklin", sans-serif; color: var(--on-blue); text-box: trim-both cap alphabetic; }
.cb-no { margin-top: 16px; font: 600 13px/16px "Libre Franklin", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dome); text-box: trim-both cap alphabetic; }
.cr-share { margin-top: auto; padding: 20px 0 40px; border-top: 1px solid rgba(255,255,255,.3); }
.cr-acts { margin-top: 16px; padding-right: 72px; }
.ps .cr-acts .btn { height: 56px; padding: 0 16px; }
.cr-why, .cr-skills { display: none; }
/* what a hirer came for, seen without turning: the skills under the words */
.m-skills { margin-top: 32px; }
.m-skills .ps-label { text-box: trim-both cap alphabetic; }
.m-skills ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.m-skills li { padding: 7px 12px; box-shadow: inset 0 0 0 1px var(--line); font: 500 16px/20px "Libre Franklin", sans-serif; }
.m-head > .ps-main > .m-skills { max-width: calc(5 * (100% + var(--ps-gap)) / 8 - var(--ps-gap)); }
.m-act { margin-top: 40px; }
.m-turn { display: none; }
/* the neighbours' rows: one height whether or not a member gave a photograph or a line */
.m-near-l a { min-height: 56px; grid-template-rows: auto auto; align-content: center; }
[data-theme="dark"] .cr-role { color: #B6C5F0; } [data-theme="dark"] .cr-turn { background: #2D4FAE; } [data-theme="dark"] .cred.flip .cr-turn { background: #ECEFF6; color: #1D3C8F; }
[data-theme="dark"] .m-skills li { box-shadow: inset 0 0 0 1px #4D5B7E; }
@media (prefers-reduced-motion: reduce) { .cr-turn, .cr-turn .rev { transition: none !important; } }
/* the phone: who, what they do, how to reach them, the card, the skills, then the words */
@media (max-width: 760px) {
  .m-head .m-act { order: 4 !important; }
  .m-head > .ps-aside { order: 5 !important; margin-top: 32px; }
  .m-head .m-skills { order: 6 !important; margin-top: 32px; max-width: none !important; }
  .m-head .m-words { order: 7 !important; margin-top: 32px; }
  .cr-role { font-size: 30px; line-height: 34px; }
  .cr-where { margin-top: 16px; font-size: 12px; }
  .cr-day { font-size: 13px; margin-top: 8px; white-space: nowrap; }
  .cr-ph { margin-top: 20px; width: 100%; max-width: none; }
  .cr-org { height: 64px; padding-bottom: 15px; font-size: 15px; }
  .cr-turn { right: 24px; bottom: 32px; width: 52px; height: 52px; }
  .cr-back { padding: 24px 24px 0; }
  .cb-ph { width: 104px; margin-top: 20px; } .cb-nm { margin-top: 20px; font-size: 22px; line-height: 26px; }
  .cr-share { padding-bottom: 32px; } .cr-acts { padding-right: 64px; gap: 8px; } .ps .cr-acts .btn { height: 52px; padding: 0 12px; font-size: 14px; }
}

/* measured: the firm sits on the line the number and the arrow end on (y 728 at his window); the skills 32 under the words */
.cr-org { padding-bottom: 3px; }
.m-skills { margin-top: 35px; }
@media (max-width: 760px) { .cr-org { padding-bottom: 3px; } .m-skills { margin-top: 32px; } }

/* the reverse arrow lives on each face of the card and turns with it: blue on the front, white on the back */
.cr-front .cr-turn, .cred.flip .cr-front .cr-turn { background: var(--blue); color: #fff; }
.cr-turn-b, .cred.flip .cr-turn-b { background: #fff; color: var(--blue); }
[data-theme="dark"] .cr-front .cr-turn, [data-theme="dark"] .cred.flip .cr-front .cr-turn { background: #2D4FAE; color: #fff; }
[data-theme="dark"] .cr-turn-b, [data-theme="dark"] .cred.flip .cr-turn-b { background: #ECEFF6; color: #1D3C8F; }
.cr-turn .rev { transform: none; }
.cr-turn:hover .rev { transform: rotate(30deg); }

/* ==== the photograph back to his ruling (November 7, 2026: "Make sure photos on the new profile drawings are smaller.
   We can't expect folks to have high quality headshots. Me included."): no larger than the founding card's face, 196.
   The card is as tall as its front's own lines, so nothing floats in its middle. */
.cred { aspect-ratio: auto; }
.cr-in { position: relative; inset: auto; }
.cr-front { position: relative; }
.cr-ph { width: 196px; max-width: 196px; }
.cr-org { margin-top: 24px; }
.cb-ph { width: 104px; margin-top: 20px; }
.cb-nm { margin-top: 20px; }
.cr-share { padding-top: 16px; padding-bottom: 40px; }
.cr-acts { margin-top: 12px; }
@media (max-width: 760px) { .cr-ph { width: 160px; max-width: 160px; } .cb-ph { width: 88px; margin-top: 16px; } .cb-nm { margin-top: 16px; } .cr-share { padding-bottom: 32px; } }

/* ==== the card in the hand (Taylor: "Make it dynamic and engaging."): it follows a held pointer or a finger, tips a
   little toward a mouse, lifts its edge once on arrival to show it turns; the hidden face is out of the way */
.m-head { align-items: stretch; }
.m-head > .ps-aside { display: flex; flex-direction: column; }
.cred { flex: 1; display: flex; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.cred:active { cursor: grabbing; }
.cr-in { flex: 1; position: relative; transform: rotateX(var(--tx, 0deg)) rotateY(calc(var(--rot, 0deg) + var(--ty, 0deg)));
  transition: transform .72s var(--ease), box-shadow .3s; }
.cred.dragging .cr-in { transition: transform .06s linear; }
.cred:not(.dragging) .cr-in:hover { transition: transform .72s var(--ease), box-shadow .3s; }
.cr-front { position: relative; height: 100%; }
.cr-back { position: absolute; inset: 0; }
.cred.flip { --rot: initial; }
/* the back: their skills, and their link */
.cr-back { padding: 32px 32px 0; }
.cr-skills { display: block; list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .3); }
.cr-skills li { display: flex; align-items: center; gap: 12px; height: 44px; border-bottom: 1px solid rgba(255, 255, 255, .3); font: 500 17px/22px "Libre Franklin", sans-serif; }
.cr-skills li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--dome); }
.cr-share { margin-top: auto; border-top: 0; padding: 0 0 40px; }
.cr-url { margin-top: 0; font: 600 16px/22px "Libre Franklin", sans-serif; color: var(--on-blue); text-box: trim-both cap alphabetic; }
.cr-acts { margin-top: 16px; padding-right: 72px; }
.ps .cr-acts .btn { height: 56px; padding: 0 20px; font-size: 16px; }
.cr-role { margin-left: 0; }
.m-skills { display: none; }
@media (max-width: 760px) {
  .m-head { align-items: start; }
  .cr-skills li { height: 40px; font-size: 16px; }
  .cr-back { padding: 24px 24px 0; } .cr-share { padding-bottom: 32px; } .ps .cr-acts .btn { height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .cr-in { transition: none !important; } }

/* the number's line box holds its letters (the check: "No. 1" ran past its box) */
.cr-no { line-height: 1.32; }

/* the firm on the card's foot, on the line the number and the arrow end on, however tall the head makes the card */
.cr-body { min-height: 100%; box-sizing: border-box; }
.cr-org { margin-top: auto; }
.cr-ph + .cr-org { margin-top: max(24px, auto); }

/* the phone's back holds its six skills and Copy link inside the front's height */
@media (max-width: 760px) { .cr-skills { margin-top: 12px; } .cr-skills li { height: 34px; font-size: 15px; } .cr-url { display: none; } .cr-acts { margin-top: 0; } .cr-share { padding-top: 16px; } }

/* ==== the card, mended after use (Taylor: "There are some usability bugs with the card feature itself (the spinning
   etc.)"): one turn the script sets, a short lift on arrival, no tilt under the pointer */
.cr-in { transform: rotateY(calc(var(--rot, 0deg) + var(--peek, 0deg))) !important; transition: transform .6s var(--ease), box-shadow .3s; }
.cred.dragging .cr-in { transition: box-shadow .3s !important; }
.cr-url a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 4px; }
.cr-url a:hover { color: #fff; text-decoration-color: #fff; }
.cr-url a:focus-visible { outline: 3px solid var(--dome); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .cred { cursor: pointer; } }

/* ---- B, the county map, an option only ------------------------------------------------------------------------ */
.m-map { margin: 32px 0 0; }
.m-map .mmap { display: block; width: 100%; height: auto; }
.m-map path { fill: var(--paper); stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.m-map path.open { fill: var(--blue); stroke: var(--paper); }
[data-theme="dark"] .m-map path.open { fill: #B6C5F0; }
.m-map figcaption { margin-top: 16px; font: 500 15px/20px "Libre Franklin", sans-serif; color: var(--quiet); }
.m-map ~ * { }

/* ==== after the testers (control's pass, November 15, evening) ================================================== */
/* the photograph is not dragged by the browser; the card is */
.cr-ph img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
/* the card's drop on arrival never makes the page wider than the screen */
body.m-page { overflow-x: clip; }
/* the links: beside Contact at a laptop; on a phone after the card, so the card and its arrow come on the first screen */
.m-links { display: none; }
@media (max-width: 760px) {
  .m-act .btn.line { display: none; }
  .m-head .m-links { order: 6 !important; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
  .ps .m-links .btn { flex: 1 1 auto; justify-content: center; height: 52px; padding: 0 20px; }
  .m-head .m-words { order: 7 !important; }
  .m-head > .ps-aside { margin-top: 28px; }
  .cr-ph { width: 136px !important; max-width: 136px !important; }
  /* the back holds its six skills, the link and Copy link */
  .cr-url { display: block !important; font-size: 14px; }
  .cr-skills li { height: 32px; font-size: 15px; }
  .cr-share { padding-top: 12px; } .cr-acts { margin-top: 12px !important; }
}
/* a phone turned sideways: the card fits the screen's height */
@media (max-height: 480px) and (orientation: landscape) {
  .cr-ph { width: 96px !important; max-width: 96px !important; margin-top: 16px; }
  .cr-role { font-size: 28px; line-height: 32px; }
  .cr-org { height: 60px; }
  .cr-skills li { height: 30px; font-size: 15px; }
}

html:has(body.m-page), .m-head > .ps-aside { overflow-x: clip; }
.m-head > .ps-aside { overflow-y: visible; overflow-clip-margin: 0; }

/* ==== round three: the county map in the row with "Also based in" (November 15, about 10 p.m.) ====================
   Taylor: "Why wouldn't the map go in the same row as "Also based in Berkeley County"?" The row takes the site's own
   section shape (.ps-sec: the label and heading in columns 1 to 3, the matter beside them). The others move beside the
   heading, three across in columns 4 to 12, each the same three columns wide it was. The map sits under the county's
   name, two faces and the gap between them tall (144 px), its left edge on the page's margin. Under a one-line name
   its top is on the second row of faces and its bottom on the third; a name that runs to two lines (Charleston County)
   keeps the same 40 px above the map. No new words; the map is a picture of the heading
   beside it, hidden from a reader. With eight others the row is no taller than before; with one or two it is taller. */
.ps-sec.ps-top.m-near { grid-template-rows: auto 1fr; }
.ps-sec.ps-top.m-near > .ps-side { grid-column: 1 / 4; grid-row: 1; box-sizing: border-box; min-height: 88px; padding-bottom: 40px; }
.ps-sec.ps-top.m-near > .m-cmap { grid-column: 1 / 4; grid-row: 2; justify-self: start; align-self: start; display: block; width: auto; height: 144px; overflow: visible; }
.ps-sec.ps-top.m-near > .m-near-l { grid-column: 4 / -1; grid-row: 1 / 3; margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* the state in the page's line blue a tenth of the way to its blue (3.1 to 1 on white), the county in the blue (3.2 to 1 on
   the state, 10 to 1 on white); in dark the dark line blue 15 per cent toward the heading blue (3.2 to 1 on the navy), the
   county in the heading blue (3.1 to 1 on the state, 9.9 on the navy) */
.m-cmap path { fill: #8392BB; stroke: var(--paper); stroke-width: .75; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.m-cmap path.on { fill: var(--blue); }
[data-theme="dark"] .m-cmap path { fill: #5D6B8F; }
[data-theme="dark"] .m-cmap path.on { fill: #B6C5F0; }
/* a tablet (761 to 1100): the others two across, their lines too uneven to sit a map beside; the row stays as it was and
   the map stands at its right end beside the county's name, from the label's capitals to the heading's baseline */
@media (min-width: 761px) and (max-width: 1100px) {
  .ps-sec.ps-top.m-near { grid-template-rows: auto auto; }
  .ps-sec.ps-top.m-near > .ps-side { grid-column: 1 / 12; grid-row: 1; min-height: 0; padding-bottom: 0; }
  .ps-sec.ps-top.m-near > .m-cmap { grid-column: 12; grid-row: 1; justify-self: end; height: 100%; }
  .ps-sec.ps-top.m-near > .m-near-l { grid-column: 1 / -1; grid-row: 2; margin-top: var(--ps-group); grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* a phone: the others run in one column, so there is nothing beside them; the map goes on its own line under the
   county's name, 96 px tall (about a third of the phone's width), on the page's margin, and the others run under it
   as they do today. At that size the lines between counties are left out: the state and theirs. */
@media (max-width: 760px) {
  .ps-sec.ps-top.m-near { grid-template-rows: auto auto auto; }
  .ps-sec.ps-top.m-near > .ps-side { grid-column: 1 / -1; grid-row: 1; min-height: 0; padding-bottom: 0; }
  .ps-sec.ps-top.m-near > .m-cmap { grid-column: 1 / -1; grid-row: 2; justify-self: start; height: 96px; margin-top: var(--ps-step); }
  .ps-sec.ps-top.m-near > .m-near-l { grid-column: 1 / -1; grid-row: 3; margin-top: var(--ps-group); grid-template-columns: minmax(0, 1fr); }
  .m-cmap path { stroke: #8392BB; } .m-cmap path.on { stroke: var(--blue); }
  [data-theme="dark"] .m-cmap path { stroke: #5D6B8F; } [data-theme="dark"] .m-cmap path.on { stroke: #B6C5F0; }
}
