/* THC My Page 0.1.0 (WB-134 Lane 1). Colors are the theme's tokens (--thc-*, then the block presets, then the brand
   literals), so THC Core's Display switch flips them for Dark and High contrast with no rules of our own. Fonts come from
   the theme; sizes in rem/em so the text-size switch carries through. Phone first: one column, tap targets at least
   44px, no sideways scroll at 390px. No floating, fixed or sticky elements. */

.thc-me {
  --me-raised: var(--thc-surface-raised, var(--wp--preset--color--accent-5, #fcf8ef));
  --me-muted: var(--thc-surface-muted, var(--wp--preset--color--accent-4, #ece4d9));
  --me-border: var(--thc-border, var(--wp--preset--color--accent-6, #d9d0bc));
  --me-text: var(--thc-text, var(--wp--preset--color--contrast, #332d25));
  --me-leaf: var(--thc-leaf, var(--wp--preset--color--accent-1, #5e7d53));
  --me-deep: var(--thc-leaf-deep, var(--wp--preset--color--accent-3, #3f5c3b));
  --me-error: var(--thc-error, #a13d2d);
  --me-radius: var(--thc-radius-md, 10px);
  color: var(--me-text);
  margin-top: 1rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.thc-me *, .thc-me *::before, .thc-me *::after { box-sizing: border-box; }
.thc-me [hidden] { display: none !important; }

.thc-me__status { margin: 0 0 .75rem; min-height: 1.5em; }
.thc-me__status:empty { min-height: 0; margin: 0; }
.thc-me__status.is-error, .thc-me__error { color: var(--me-error); font-weight: 600; }
.thc-me__status.is-ok { font-weight: 600; }
.thc-me__muted, .thc-me__note { opacity: .85; }
.thc-me__note { display: block; font-size: .95em; margin: 0 0 .75rem; }
.thc-me__h { margin: 0 0 .5rem; }
.thc-me__lede { font-size: 1.1em; }
.thc-me__list { margin: 0 0 1rem; padding-left: 1.25rem; }
.thc-me__list li { margin: .25rem 0; }

/* Buttons and links */
.thc-me__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.thc-me__btn {
  align-items: center;
  background: transparent;
  border: 1.5px solid var(--me-border);
  border-radius: var(--me-radius);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  padding: .5rem 1rem;
  text-decoration: none;
}
.thc-me__btn:hover, .thc-me__btn:focus-visible { background: var(--me-muted); }
.thc-me__btn--primary { background: var(--me-deep); border-color: var(--me-deep); color: #fff; }
.thc-me__btn--primary:hover, .thc-me__btn--primary:focus-visible { background: var(--me-leaf); border-color: var(--me-leaf); }
:root[data-thc-theme="dark"] .thc-me__btn--primary { color: #15130f; background: var(--me-leaf); border-color: var(--me-leaf); }
.thc-me__btn[disabled] { cursor: not-allowed; opacity: .55; }
.thc-me__link {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-height: 44px;
  padding: .25rem 0;
  text-decoration: underline;
}
.thc-me a:focus-visible, .thc-me button:focus-visible, .thc-me select:focus-visible, .thc-me summary:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* Greeting and tier strip (always shown) */
.thc-me__hello { font-size: 1.2em; font-weight: 600; margin: 0 0 .75rem; }
.thc-me__tier {
  background: var(--me-raised);
  border: 1.5px solid var(--me-border);
  border-radius: var(--me-radius);
  margin: 0 0 1.25rem;
  padding: .75rem 1rem;
}
.thc-me__tier p { margin: 0; }
.thc-me__tier-link { display: inline-block; font-weight: 600; padding: .6rem 0; }
.thc-me__badge {
  background: var(--me-muted);
  border: 1px solid var(--me-border);
  border-radius: 999px;
  display: inline-block;
  font-size: .9em;
  font-weight: 700;
  margin-right: .25rem;
  padding: .1rem .6rem;
}
.thc-me__badge--done { background: var(--me-deep); border-color: var(--me-deep); color: #fff; }
:root[data-thc-theme="dark"] .thc-me__badge--done { background: var(--me-leaf); border-color: var(--me-leaf); color: #15130f; }
/* 0.6.2: role badges given by THC (Admin, Instructor): an outlined pill in the text color, so it holds its contrast on
   every palette, in dark mode and in high contrast, and reads as a different kind of badge from "Completed". */
.thc-me__role-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 .6rem; padding: 0; }
.thc-me__role-list > li { margin: 0; padding: 0; }
.thc-me__badge--role { background: transparent; border: 2px solid currentColor; color: inherit; margin-right: 0; padding: .15rem .75rem; }
.thc-me__tag { border: 1px solid var(--me-border); border-radius: 999px; font-size: .85em; padding: 0 .5rem; }

/* Place */
.thc-me__place { margin: 0 0 1.25rem; }
.thc-me__place-name { font-size: 1.1em; font-weight: 700; margin: 0; }
.thc-me__picker { border: 1.5px dashed var(--me-border); border-radius: var(--me-radius); margin-top: .75rem; padding: .75rem 1rem; }
.thc-me__locate { display: flex; flex-direction: column; gap: .4rem; margin: 0 0 .75rem; }
.thc-me__locate .thc-me__btn { align-self: flex-start; }
.thc-me__fields { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .thc-me__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.thc-me__field { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
.thc-me__field select {
  background: var(--me-raised);
  border: 1.5px solid var(--me-border);
  border-radius: var(--me-radius);
  color: inherit;
  font: inherit;
  font-weight: 400;
  max-width: 100%;
  min-height: 44px;
  padding: .4rem .6rem;
  width: 100%;
}

/* Sections */
.thc-me__sections { display: flex; flex-direction: column; gap: .75rem; margin: 0 0 1.5rem; }
.thc-me__sec { border: 1.5px solid var(--me-border); border-radius: var(--me-radius); }
.thc-me__sum {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  list-style: none;
  min-height: 44px;
  padding: .75rem 2.5rem .75rem 1rem;
  position: relative;
}
.thc-me__sum::-webkit-details-marker { display: none; }
/* 0.7.4 (Micha: "make the sections on there expandable rather than just the minus option to remove"): a turning arrow
   (down: tap to open; up: tap to fold) instead of plus and minus, so it never reads as remove. */
.thc-me__sum::after {
  border-bottom: 3px solid currentColor;
  border-right: 3px solid currentColor;
  content: "";
  height: .6rem;
  position: absolute;
  right: 1.15rem;
  top: 1.05rem;
  transform: rotate(45deg);
  transition: transform .15s ease;
  width: .6rem;
}
.thc-me__sec[open] > .thc-me__sum::after { top: 1.35rem; transform: rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .thc-me__sum::after { transition: none; } }
.thc-me__sec:not([open]) > .thc-me__sum:hover .thc-me__sum-label { text-decoration: underline; }
.thc-me__sum-label { font-weight: 700; font-size: 1.1em; }
.thc-me__sum-note { font-size: .95em; opacity: .85; }
.thc-me__body { padding: 0 1rem; }
.thc-me__body > p:first-child { margin-top: 0; }
.thc-me__hide { border-top: 1px solid var(--me-border); margin: .5rem 0 0; padding: 0 1rem; }
.thc-me__lead { margin-bottom: .25rem; }

.thc-me__counts { display: grid; gap: .25rem; list-style: none; margin: .5rem 0; padding: 0; }
.thc-me__counts li { border-bottom: 1px solid var(--me-border); display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; padding: .35rem 0; }
.thc-me__count-label { font-weight: 600; }

.thc-me__courses { list-style: none; margin: 0; padding: 0; }
.thc-me__course { border-bottom: 1px solid var(--me-border); padding: .5rem 0; }
.thc-me__course p { margin: .2rem 0; }
.thc-me__course-title { font-weight: 700; }
.thc-me__course a { display: inline-block; padding: .55rem 0; }
.thc-me__progress { align-items: center; display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.thc-me__bar { background: var(--me-muted); border-radius: 999px; display: inline-block; height: .6rem; overflow: hidden; width: 8rem; max-width: 100%; }
.thc-me__bar span { background: var(--me-leaf); display: block; height: 100%; }
.thc-me__plain { margin: .25rem 0 .75rem; padding-left: 1.25rem; }
.thc-me__plain li a { display: inline-block; padding: .55rem 0; }
/* 0.8.2 (WB-134 A66, Lane 7 review): the bullet sat beside the second line of a title that wrapped (the link is an
   inline-block, so the marker took its last line). A drawn bullet on a baseline-aligned row stays with the first line. */
.thc-me__plain { list-style: none; padding-left: .25rem; }
.thc-me__plain > li { display: flex; align-items: baseline; column-gap: .45em; }
.thc-me__plain > li::before { content: "\2022"; flex: none; }
.thc-me__plain > li > a { flex: 0 1 auto; min-width: 0; }
.thc-me__choices .thc-me__plain > li { display: list-item; }
.thc-me__choices .thc-me__plain > li::before { content: none; }

/* Shelf */
.thc-me__shelf { margin: 0 0 1.5rem; }
.thc-me__group { font-size: 1.05em; margin: 1rem 0 .5rem; }
.thc-me__cards { display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .thc-me__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .thc-me__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.thc-me__cards li { margin: 0; }
.thc-me__card {
  border: 1.5px solid var(--me-border);
  border-radius: var(--me-radius);
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  height: 100%;
  min-height: 56px;
  padding: .6rem .85rem;
  text-decoration: none;
}
.thc-me__card .thc-me__btn { align-self: flex-start; margin-top: .4rem; }
.thc-me__card--link:hover, .thc-me__card--link:focus-visible { background: var(--me-raised); }
.thc-me__card-label { font-weight: 600; }
.thc-me__card-note { font-size: .92em; opacity: .85; }
.thc-me__land { font-size: .95em; }
.thc-me__land a { display: inline-block; padding: .55rem 0; }

@media print {
  .thc-me__hide, .thc-me__picker, .thc-me__shelf, .thc-me__actions { display: none; }
}

/* 0.1.1: the ZIP and postal code box */
.thc-me__zip { margin: 0 0 .75rem; }
.thc-me__zip-line { display: flex; flex-wrap: wrap; gap: .5rem; }
.thc-me__zip input {
  background: var(--me-raised);
  border: 1.5px solid var(--me-border);
  border-radius: var(--me-radius);
  color: inherit;
  flex: 1 1 10rem;
  font: inherit;
  font-weight: 400;
  max-width: 16rem;
  min-height: 44px;
  min-width: 0;
  padding: .4rem .6rem;
}
.thc-me__choices .thc-me__plain { list-style: none; padding: 0; }
.thc-me__choices li { margin: .4rem 0; }
.thc-me__choices .thc-me__btn { text-align: left; }

/* 0.2.0: generated sections (Generate, Last updated, Refresh, out of date) */
.thc-me__gen-sum > :first-child { margin-top: 0; }
.thc-me__gen-when { font-size: .95em; opacity: .85; margin: .5rem 0; }
.thc-me__gen-stale { font-weight: 600; }
.thc-me__gen-msg:empty { display: none; }
.thc-me__gen-msg.is-error { color: var(--me-error); font-weight: 600; }
.thc-me__gen-msg.is-ok { font-weight: 600; }
.thc-me__gen-list { margin: .25rem 0 .75rem; padding-left: 1.25rem; }
.thc-me__gen-list li { margin: .15rem 0; }
.thc-me__cw-level { min-width: 2.5em; text-align: center; }

/* 0.2.5: the signed-out preview shows only Your place and What Lives Near Me, then the way to keep them */
.thc-me.is-preview [data-thc-me-hello],
.thc-me.is-preview [data-thc-me-tier],
.thc-me.is-preview .thc-me__shelf,
.thc-me.is-preview .thc-me__land,
.thc-me.is-preview .thc-me__hide { display: none; }
.thc-me.is-preview .thc-me__in { margin-top: 1.5rem; border-top: 1px solid var(--me-border); padding-top: 1rem; }
.thc-me__preview-cta { background: var(--me-raised); border: 1px solid var(--me-border); border-radius: var(--me-radius); padding: .75rem 1rem; margin: 1rem 0; }

/* 0.3.0: the views toggle (in the page's flow, never fixed or sticky) and the view panels */
.thc-me__tabs {
  border-bottom: 2px solid var(--me-border);
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 1rem 0 .25rem;
}
.thc-me__tab {
  align-items: center;
  border: 1.5px solid transparent;
  border-bottom: 0;
  border-radius: var(--me-radius) var(--me-radius) 0 0;
  color: inherit;
  display: inline-flex;
  flex: 1 1 auto;
  font-weight: 600;
  justify-content: center;
  margin-bottom: -2px;
  min-height: 44px;
  padding: .5rem .55rem;
  text-decoration: none;
  white-space: nowrap;
}
.thc-me__tab:hover { background: var(--me-muted); }
.thc-me__tab.is-active, .thc-me__tab[aria-selected="true"] {
  background: var(--me-raised);
  border-color: var(--me-border);
  border-bottom: 2px solid var(--me-raised);
  box-shadow: inset 0 3px 0 var(--me-deep);
}
:root[data-thc-theme="dark"] .thc-me__tab[aria-selected="true"] { box-shadow: inset 0 3px 0 var(--me-leaf); }
.thc-me__tab:focus-visible { outline: 3px solid currentColor; outline-offset: -3px; }
@media (min-width: 600px) { .thc-me__tab { flex: 0 0 auto; padding: .5rem 1.1rem; } }
.thc-me__default { font-size: .95em; margin: 0 0 .75rem; min-height: 44px; display: flex; align-items: center; }
/* 0.7.3: five tabs (Settings added) stay on one row on a phone. */
@media (max-width: 599px) { .thc-me__tabs { flex-wrap: nowrap; gap: .15rem; } .thc-me__tab { flex: 1 1 auto; font-size: .86em; padding: .5rem .2rem; } }
@media (max-width: 359px) { .thc-me__tab { font-size: .76em; padding: .5rem .1rem; } }
/* 0.7.3: the Settings view, and iNaturalist's own place under the species lists on Profile. */
.thc-me__set { margin: 1.25rem 0; }
.thc-me__set-open { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0; }
.thc-me__set-open select { min-height: 44px; font: inherit; padding: .35rem .6rem; }
.thc-me__set-links { list-style: none; margin: .5rem 0 0; padding: 0; border-top: 1px solid var(--me-border); }
.thc-me__set-links > li { margin: 0; padding: 0; border-bottom: 1px solid var(--me-border); }
.thc-me__set-links a { display: flex; flex-direction: column; justify-content: center; gap: .1rem; min-height: 44px; padding: .55rem .25rem; text-decoration: none; color: inherit; }
.thc-me__set-links a:hover .thc-me__set-link, .thc-me__set-links a:focus-visible .thc-me__set-link { text-decoration: underline; }
.thc-me__set-link { font-weight: 600; }
.thc-me__set-links .thc-me__note { margin: 0; }
.thc-me__inat-own { margin: 1.25rem 0 0; }
.thc-me__inat-own:empty { margin: 0; }
.thc-me__default:empty { min-height: 0; margin: 0 0 .5rem; }
.thc-me__view:focus { outline: none; }
.thc-me__view > .thc-me__sections:empty { display: none; }
.thc-me__badges { margin: 0 0 1rem; }
.thc-me__badge-list { list-style: none; margin: 0; padding: 0; }
.thc-me__badge-list li { border-bottom: 1px solid var(--me-border); padding: .45rem 0; }
/* 0.7.4: Completed courses, one heading over a plain list */
.thc-me__done-h { font-size: 1em; margin: .4rem 0 .25rem; }
.thc-me__done-list { list-style: none; margin: 0; padding: 0; }
.thc-me__done-list li { border-bottom: 1px solid var(--me-border); padding: .45rem 0; }
.thc-me__done-list li:last-child { border-bottom: 0; }
.thc-me__badge-title { font-weight: 600; }
.thc-me__profile-soon { margin-top: 1rem; } /* 0.7.5: no longer printed (the share bar says it) */
.thc-me__care-empty { margin: 0 0 1rem; }
.thc-me__care-empty a { display: inline-block; font-weight: 600; padding: .55rem 0; }
.thc-me__shelf .thc-me__h { margin-top: .5rem; }
.thc-me.is-preview .thc-me__tabs,
.thc-me.is-preview .thc-me__default { display: none; }

/* 0.3.1: the profile card. A palette sets --pal-l-* and --pal-d-* on the card (from thc_me_palettes(), every pair
   checked for contrast); without one, or in high contrast mode, the card keeps the page's own colors. */
.thc-me__pcard {
  --pal-bg: var(--pal-l-bg); --pal-text: var(--pal-l-text); --pal-accent: var(--pal-l-accent); --pal-band: var(--pal-l-band);
  border: 1.5px solid var(--me-border);
  border-radius: var(--me-radius);
  margin: 0 0 1rem;
  overflow: hidden;
}
:root[data-thc-theme="dark"] .thc-me__pcard { --pal-bg: var(--pal-d-bg); --pal-text: var(--pal-d-text); --pal-accent: var(--pal-d-accent); --pal-band: var(--pal-d-band); }
.thc-me__pcard.has-palette { background: var(--pal-bg); color: var(--pal-text); border-color: var(--pal-band); }
.thc-me__pcard.has-palette a { color: var(--pal-accent); }
.thc-me__pcard.has-palette .thc-me__badge--done { background: var(--pal-accent); border-color: var(--pal-accent); color: var(--pal-bg); }
:root[data-thc-contrast="high"] .thc-me__pcard.has-palette { background: inherit; color: inherit; border-color: currentColor; }
:root[data-thc-contrast="high"] .thc-me__pcard.has-palette a { color: inherit; }
.thc-me__pcover { aspect-ratio: 3 / 1; background: var(--pal-band, var(--me-muted)); max-height: 16rem; width: 100%; }
.thc-me__pcard:not(.has-palette) .thc-me__pcover { background: var(--me-muted); }
.thc-me__pcover img { display: block; height: 100%; object-fit: cover; width: 100%; }
.thc-me__phead { align-items: flex-end; display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: -3.5rem; padding: 0 1rem; }
/* 0.4.1 (Micha, 2026-11-12: "Profile pic should be bigger"): 7.5rem (120 px) on phones, 11rem (176 px, twice 0.4.0's
   5.5rem) from 600 px up. Display only; the stored picture is 400 x 400. */
.thc-me__pavatar {
  align-items: center;
  background: var(--me-deep);
  border: 4px solid var(--me-raised);
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-size: 2.6rem;
  font-weight: 700;
  height: 7.5rem;
  justify-content: center;
  overflow: hidden;
  width: 7.5rem;
}
@media (min-width: 600px) {
  .thc-me__phead { margin-top: -5rem; }
  .thc-me__pavatar { font-size: 3.6rem; height: 11rem; width: 11rem; }
}
.thc-me__pcard.has-palette .thc-me__pavatar { background: var(--pal-accent); border-color: var(--pal-bg); color: var(--pal-bg); }
:root[data-thc-theme="dark"] .thc-me__pcard:not(.has-palette) .thc-me__pavatar { background: var(--me-leaf); color: #15130f; }
.thc-me__pavatar img { display: block; height: 100%; object-fit: cover; width: 100%; }
.thc-me__pname { font-size: 1.3em; font-weight: 700; margin: 0 0 .25rem; overflow-wrap: anywhere; }
/* 0.7.4 (Micha, 2026-11-13: "The name needs to be bigger, like 2.5 times what it is"): 2.5 times the 0.7.3 size (1.3em,
   so 3.25rem) on the owner's card and the shared page alike; on narrow phones it scales with the screen (13vw) so a name
   still fits, and a long name drops below the picture onto its own line. */
.thc-me__phead .thc-me__pname, h1.thc-me__pname { font-size: clamp(2.25rem, 13vw, 3.25rem); line-height: 1.1; margin: 0 0 .35rem; overflow-wrap: break-word; }
.thc-me__phead .thc-me__pname { min-width: 0; }
.thc-me__pbody { padding: .5rem 1rem 0; }
.thc-me__pbio { white-space: pre-line; }
/* 0.7.5: the Location line under the bio: the flag (decoration) then "Place, Country" */
.thc-me__ploc { align-items: center; display: flex; gap: .5rem; margin: 0 0 .75rem; }
.thc-me__flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); display: block; flex: 0 0 auto; height: 18px; width: 24px; }
.thc-me__pabout { margin: .5rem 0; }
.thc-me__pabout div { display: flex; flex-wrap: wrap; gap: 0 .5rem; padding: .2rem 0; }
.thc-me__pabout dt { font-weight: 700; }
.thc-me__pabout dt::after { content: ":"; }
.thc-me__pabout dd { margin: 0; }
.thc-me__plinks { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: .5rem 0; padding: 0; }
.thc-me__plinks a { display: inline-block; font-weight: 600; padding: .6rem 0; }
/* 0.7.4: links as icons (44 px to tap; the words on hover and for screen readers) */
.thc-me__plinks--icons { gap: .25rem .5rem; }
.thc-me__plinks--icons .thc-me__plink { align-items: center; border: 1.5px solid currentColor; border-radius: 50%; box-sizing: border-box; display: inline-flex; height: 44px; justify-content: center; padding: 0; width: 44px; }
.thc-me__plink:hover, .thc-me__plink:focus-visible { background: color-mix(in srgb, currentColor 14%, transparent); }
.thc-me__plink-icon { display: block; height: 22px; width: 22px; }
.thc-me__pcard .thc-me__badges { padding: 0 1rem .5rem; }

/* 0.4.3: recent iNaturalist observations (owner's card and the public page) */
.thc-me__pcard .thc-me__inat { padding: 0 0 .5rem; }
.thc-me__pcard > .thc-me__inat { padding: 0 1rem .5rem; }
.thc-me__inat-from { margin: 0 0 .5rem; }
.thc-me__inat-from a { display: inline-block; font-weight: 600; padding: .6rem 0; }
.thc-me__inat-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0 0 .5rem; padding: 0; }
@media (min-width: 600px) { .thc-me__inat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.thc-me__inat-item { min-width: 0; }
.thc-me__inat-link { color: inherit; display: block; text-decoration: none; }
.thc-me__inat-link img { aspect-ratio: 1 / 1; background: var(--me-muted); border-radius: var(--me-radius); display: block; height: auto; object-fit: cover; width: 100%; }
.thc-me__inat-link:hover .thc-me__inat-name, .thc-me__inat-link:focus-visible .thc-me__inat-name { text-decoration: underline; }
.thc-me__inat-name { display: block; font-weight: 600; margin-top: .3rem; overflow-wrap: anywhere; }
.thc-me__inat-sci { display: block; font-style: italic; font-size: .9em; overflow-wrap: anywhere; }
.thc-me__inat-date, .thc-me__inat-credit { display: block; font-size: .85em; opacity: .85; }
.thc-me__inat-credit a { display: inline-block; padding: .2rem 0; }

/* 0.3.1: the profile editor */
.thc-me__pform { border: 1.5px dashed var(--me-border); border-radius: var(--me-radius); margin: 0 0 1.25rem; padding: .75rem 1rem; }
.thc-me__pset { border: 0; margin: 1rem 0 0; min-width: 0; padding: 0; }
.thc-me__pset legend { font-size: 1.05em; font-weight: 700; margin-bottom: .25rem; padding: 0; }
.thc-me__pfield { margin: .75rem 0; }
.thc-me__input {
  background: var(--me-raised);
  border: 1.5px solid var(--me-border);
  border-radius: var(--me-radius);
  box-sizing: border-box;
  color: inherit;
  font: inherit;
  margin: .25rem 0;
  max-width: 100%;
  min-height: 44px;
  padding: .45rem .6rem;
  width: 100%;
}
textarea.thc-me__input { resize: vertical; }
.thc-me__input[aria-invalid="true"] { border-color: var(--me-error); }
.thc-me__perr { color: var(--me-error); font-weight: 600; margin: .1rem 0 0; }
.thc-me__perr:empty { display: none; }
[data-thc-me-count].is-over { color: var(--me-error); font-weight: 600; }
.thc-me__checks, .thc-me__swatches { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.thc-me__check, .thc-me__swatch { align-items: center; cursor: pointer; display: inline-flex; gap: .4rem; min-height: 44px; }
.thc-me__check input, .thc-me__swatch input { height: 1.2rem; width: 1.2rem; }
.thc-me__swatch-chip { border: 3px solid; border-radius: 50%; display: inline-block; height: 1.8rem; width: 1.8rem; }
.thc-me__swatch-chip--none { background: var(--me-raised); border-color: var(--me-border); }
.thc-me__pimg { margin: .5rem 0; }
.thc-me__pimg-label { margin: 0; }

/* 0.4.0: Share my profile (the owner's panel on the Profile view) */
.thc-me__share { border-top: 1.5px solid var(--me-border); margin: 1.5rem 0 1rem; padding-top: 1rem; }
.thc-me__steps { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.thc-me__step { border: 1.5px solid var(--me-border); border-radius: var(--me-radius); margin: 0 0 .75rem; padding: .5rem 1rem; }
.thc-me__step.is-done { border-style: dashed; }
.thc-me__step > p { margin: .4rem 0; }
.thc-me__step-h { align-items: center; display: flex; gap: .5rem; }
.thc-me__step-n {
  align-items: center;
  background: var(--me-muted);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 700;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}
.thc-me__step.is-done .thc-me__step-n { background: var(--me-deep); color: #fff; }
:root[data-thc-theme="dark"] .thc-me__step.is-done .thc-me__step-n { background: var(--me-leaf); color: #15130f; }
.thc-me__switches { display: grid; gap: 0 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .thc-me__switches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.thc-me__switch { align-items: center; cursor: pointer; display: flex; gap: .5rem; min-height: 44px; }
.thc-me__switch input { flex: 0 0 auto; height: 1.3rem; width: 1.3rem; }
.thc-me__notice { border: 2px solid var(--me-border); border-radius: var(--me-radius); margin: .5rem 0 1rem; padding: .25rem 1rem; }
.thc-me__notice.is-warn { border-color: var(--me-error); }
.thc-me__share-on { align-items: center; display: flex; flex-wrap: wrap; gap: .4rem .6rem; }
.thc-me__share-on a { display: inline-block; font-weight: 600; padding: .55rem 0; word-break: break-all; }
.thc-me__addr, .thc-me__addr-base { overflow-wrap: anywhere; }
.thc-me__addr-base { display: block; font-size: .9em; }
.thc-me__spreview { border: 2px dashed var(--me-deep); border-radius: var(--me-radius); margin: 1rem 0; padding: .75rem 1rem; }
.thc-me__spreview .thc-me__h:focus { outline: none; }

/* 0.4.0: a member's shared page (/me/<name>/) */
.thc-me__pub-label, .thc-me__pub-frame > .thc-me__pub-label { font-size: .95em; margin: 0 0 .75rem; opacity: .85; }
.thc-me__pcard--public .thc-me__phead { margin-bottom: .25rem; }
.thc-me__pub-label a { box-sizing: border-box; display: inline-block; font-weight: 600; min-height: 44px; padding: .65rem 0; } /* 0.6.3: Create your own profile here (44 px tall with the line) */
.thc-me.is-public .thc-me__built, .thc-me[data-thc-me-current="profile"] .thc-me__built, .thc-me[data-thc-me-current="settings"] .thc-me__built { display: none; } /* 0.6.3: no no-AI note on profiles; 0.8.2 (A87): nor on Settings, where no tool results show */
/* 0.6.3: the shared page's one H1, by the picture; 0.7.4 sizes it with the owner's card (see .thc-me__pname above) */
.thc-me__pub-none { margin: 1rem 0; }
.thc-me__report { border-top: 1px solid var(--me-border); margin: 1.5rem 0 0; padding-top: .25rem; }
.thc-me__report-sum { cursor: pointer; display: inline-flex; align-items: center; font-weight: 600; min-height: 44px; }
.thc-me__report-form { margin: .25rem 0 0; }
.thc-me__report-form .thc-me__checks { flex-direction: column; gap: 0; }
[data-thc-me-report-count].is-over { color: var(--me-error); font-weight: 600; }
.thc-me__trap { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }

/* 0.5.0: photos and albums (owner), and the full-size viewer (a native dialog, so nothing here floats) */
.thc-me__photos { border-top: 1px solid var(--me-border); margin: 1.5rem 0 0; padding-top: .5rem; }
.thc-me__photos .thc-me__h:focus, .thc-me__album-h:focus { outline: none; }
.thc-me__photos-count { margin: .25rem 0; }
.thc-me__photos-progress { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.thc-me__photos-progress progress { flex: 1 1 10rem; height: 1rem; max-width: 20rem; }
.thc-me__gen-msg.is-warn { font-weight: 600; }
.thc-me__btn--danger { border-color: var(--me-error); color: var(--me-error); }
:root[data-thc-theme="dark"] .thc-me__btn--danger { color: #f2b3a8; border-color: #f2b3a8; }
.thc-me__confirm { align-self: center; font-weight: 600; }
.thc-me__albums { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0 0 1rem; padding: 0; }
@media (min-width: 600px) { .thc-me__albums { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.thc-me__album-card {
  background: var(--me-raised);
  border: 1.5px solid var(--me-border);
  border-radius: var(--me-radius);
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  gap: .2rem;
  min-height: 44px;
  padding: .5rem;
  text-align: left;
  width: 100%;
}
.thc-me__album-card:hover, .thc-me__album-card:focus-visible { border-color: var(--me-deep); }
.thc-me__album-title { font-weight: 700; overflow-wrap: anywhere; }
.thc-me__photo-thumb { aspect-ratio: 1 / 1; background: var(--me-muted); border-radius: calc(var(--me-radius) - 4px); display: block; overflow: hidden; width: 100%; }
.thc-me__photo-thumb img { display: block; height: 100%; object-fit: cover; width: 100%; }
.thc-me__photo-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: .5rem 0 1rem; padding: 0; }
@media (min-width: 600px) { .thc-me__photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .thc-me__photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.thc-me__photo { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.thc-me__photo-open { background: none; border: 0; border-radius: var(--me-radius); cursor: zoom-in; display: block; min-height: 44px; padding: 0; width: 100%; }
.thc-me__photo-open:focus-visible { outline: 3px solid var(--me-deep); outline-offset: 2px; }
.thc-me__photo-cap { font-size: .95em; margin: 0; overflow-wrap: anywhere; }
.thc-me__photo-cap:empty { display: none; }
.thc-me__photo-more > summary { align-items: center; cursor: pointer; display: inline-flex; font-weight: 600; min-height: 44px; }
.thc-me__photo-tools { border-left: 3px solid var(--me-border); padding-left: .5rem; }
.thc-me__photo-tools .thc-me__btn { flex: 1 1 auto; }
.thc-me__album-form { margin: .5rem 0 1rem; }
.thc-me__album-desc { overflow-wrap: anywhere; white-space: pre-line; }
.thc-me__viewer { background: var(--me-raised); border: 1.5px solid var(--me-border); border-radius: var(--me-radius); color: var(--me-text); max-height: 94vh; max-width: min(96vw, 72rem); padding: .75rem; width: 100%; }
.thc-me__viewer::backdrop { background: rgba(0, 0, 0, .7); }
.thc-me__viewer-fig { margin: 0; }
.thc-me__viewer-img { align-items: center; display: flex; justify-content: center; min-height: 8rem; }
.thc-me__viewer-img img { display: block; height: auto; max-height: 72vh; max-width: 100%; object-fit: contain; }
.thc-me__viewer-cap { margin: .5rem 0 0; overflow-wrap: anywhere; }
.thc-me__viewer-cap:empty { display: none; }
.thc-me__viewer-pos { font-size: .9em; margin: .25rem 0 0; opacity: .85; }
.thc-me__viewer-nav { margin-bottom: 0; }
.thc-me__viewer-nav [hidden] { display: none; }

/* 0.5.1: photos on the shared page, the public switches, THC's hold, Report this photo */
.thc-me__badge--pub { align-self: flex-start; }
.thc-me__album-card .thc-me__badge--pub { margin-top: .2rem; }
.thc-me__photo-held { font-size: .95em; margin: 0; padding: .25rem .5rem; }
.thc-me__album-pub { margin: .5rem 0 1rem; }
.thc-me__pphotos { border-top: 1px solid var(--pal-band, var(--me-border)); margin-top: 1rem; padding-top: .25rem; }
.thc-me__pcard .thc-me__pphotos { padding: .25rem 1rem .5rem; } /* 0.7.5: in line with the other sections, not against the edge */
.thc-me__pphotos .thc-me__h:focus, .thc-me__pphotos .thc-me__album-h:focus { outline: none; }
/* 0.7.5 (Micha: "the albums need to be more distinct from the background"): a raised tile, a clearer edge and a shadow. */
.thc-me__pcard .thc-me__album-card {
  background: color-mix(in srgb, var(--pal-text, var(--me-text)) 9%, var(--pal-bg, var(--me-raised)));
  border: 2px solid color-mix(in srgb, var(--pal-accent, var(--me-deep)) 55%, var(--pal-bg, var(--me-raised)));
  box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
}
.thc-me__pcard .thc-me__album-card:hover, .thc-me__pcard .thc-me__album-card:focus-visible { border-color: var(--pal-accent, var(--me-deep)); }
.thc-me__albums .thc-me__album-card { box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.thc-me__report-what { border-left: 3px solid var(--me-deep); margin: .5rem 0; padding-left: .75rem; }
/* An open "Photo options" takes the whole row, so its controls aren't squeezed into one narrow column. */
.thc-me__photo:has(> details[open]) { grid-column: 1 / -1; }
.thc-me__photo:has(> details[open]) .thc-me__photo-open { max-width: 12rem; }

/* 0.6.0: the life list (Wild view). Plain rows with a real checkbox; 44px targets; groups as details blocks. */
.thc-me__life-prog { background: var(--me-raised); border: 1.5px solid var(--me-border); border-radius: var(--me-radius); margin: 0 0 1rem; padding: .5rem 1rem; }
.thc-me__life-prog p { margin: .35rem 0; }
.thc-me__life-group { border-top: 1px solid var(--me-border); }
.thc-me__life-group:last-of-type { border-bottom: 1px solid var(--me-border); }
.thc-me__life-sum { align-items: center; cursor: pointer; display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; min-height: 44px; padding: .4rem 0; }
.thc-me__life-sum { list-style: none; }
.thc-me__life-sum::-webkit-details-marker { display: none; }
.thc-me__life-sum .thc-me__count-label::before { content: "\25B8"; display: inline-block; margin-right: .4rem; width: .8em; }
.thc-me__life-group[open] > .thc-me__life-sum .thc-me__count-label::before { content: "\25BE"; }
.thc-me__life-gn { opacity: .85; }
.thc-me__life-list { list-style: none; margin: 0 0 .75rem; padding: 0; }
.thc-me__life-row { border-bottom: 1px dashed var(--me-border); padding: .15rem 0; }
.thc-me__life-row:last-child { border-bottom: 0; }
.thc-me__life-check { align-items: center; display: flex; width: 100%; }
.thc-me__life-check input { flex: 0 0 auto; height: 1.35rem; margin: 0 .5rem 0 0; width: 1.35rem; }
.thc-me__life-name { font-weight: 600; }
.thc-me__life-sci { opacity: .85; }
.thc-me__life-meta { display: flex; flex-wrap: wrap; gap: 0 .75rem; margin: 0 0 .25rem 1.85rem; align-items: center; }
.thc-me__life-note { font-style: italic; }
.thc-me__life-form, .thc-me__life-ask { margin: 0 0 .5rem 1.85rem; }
.thc-me__life-ask p { margin: .25rem 0; }
.thc-me__input--year { max-width: 7rem; }
/* 0.6.4: Select photos (bulk move, delete, show, hide). The whole thumbnail ticks the box; the tick row is 44 px tall. */
.thc-me__select-bar { margin: .5rem 0; }
.thc-me__select-h { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin: 0 0 .25rem; }
.thc-me__photo-pick { border-radius: var(--me-radius); cursor: pointer; display: block; outline: 3px solid transparent; outline-offset: 2px; }
.thc-me__photo.is-picked .thc-me__photo-pick { outline-color: var(--me-deep); }
.thc-me__photo.is-picked .thc-me__photo-thumb { opacity: .8; }
.thc-me__photo-tick { align-items: center; display: flex; font-weight: 600; gap: .5rem; min-height: 44px; }
.thc-me__photo-tick input { height: 1.4rem; margin: 0; width: 1.4rem; }
.thc-me__photo-pick:has(input:focus-visible) { outline-color: var(--me-deep); }
:root[data-thc-contrast="high"] .thc-me__photo.is-picked .thc-me__photo-pick { outline-color: currentColor; }
/* 0.7.0: Species kept and Species observed. */
.thc-me__lists { margin: 1.5rem 0; }
.thc-me__lblock { margin: 0 0 1.25rem; }
/* 0.7.4: the list's heading with Edit list beside it; names only until editing */
.thc-me__lhead { align-items: center; display: flex; flex-wrap: wrap; gap: .25rem .75rem; justify-content: space-between; }
.thc-me__lhead .thc-me__h { margin: 0; }
.thc-me__lblock:not(.is-editing) .thc-me__lentries li { min-height: 0; padding: .35rem 0; }
.thc-me__favs { border-top: 1px dashed var(--me-border); padding-top: .5rem; }
.thc-me__lentries { list-style: none; margin: .25rem 0 .5rem; padding: 0; }
.thc-me__lentries li { align-items: center; border-bottom: 1px solid var(--me-border); display: flex; flex-wrap: wrap; gap: .25rem .75rem; justify-content: space-between; padding: .2rem 0; }
.thc-me__lname { min-width: 0; overflow-wrap: anywhere; }
.thc-me__sci { font-style: italic; }
/* 0.7.5 (Micha: the common name and binomial "still run together a bit ... perhaps also make the binomial a shade
   darker"): the binomial a quieter shade than the name, slightly smaller, with clear space before it. */
.thc-me__lname .thc-me__sci, .thc-me__plist .thc-me__sci, .thc-me__combo-opt .thc-me__sci { font-size: .94em; margin-left: .35em; opacity: .72; }
.thc-me__lname > .thc-me__sci:first-child, .thc-me__plist li > .thc-me__sci:first-child { margin-left: 0; opacity: 1; }
.thc-me__btn--small { min-height: 44px; padding: .35rem .8rem; }
.thc-me__combo { position: relative; }
.thc-me__combo-list { background: var(--me-raised); border: 1.5px solid var(--me-border); border-radius: var(--me-radius); list-style: none; margin: .25rem 0 0; padding: .25rem 0; } /* at most 8 options, so the whole list shows without its own scroll */
.thc-me__combo-opt { align-items: baseline; cursor: pointer; display: flex; flex-wrap: wrap; gap: 0 .5rem; min-height: 44px; padding: .55rem .75rem; box-sizing: border-box; }
.thc-me__combo-opt:hover, .thc-me__combo-opt.is-active { background: var(--me-muted); outline: 2px solid var(--me-deep); outline-offset: -2px; }
.thc-me__combo-n { font-weight: 600; }
.thc-me__plist { padding: 0 1rem .5rem; }
.thc-me__plist-ul { columns: 1; list-style: none; margin: .25rem 0; padding: 0; }
@media (min-width: 600px) { .thc-me__plist-ul { columns: 2; column-gap: 2rem; } }
.thc-me__plist-ul li { break-inside: avoid; padding: .15rem 0; }
.thc-me__plist-more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
:root[data-thc-contrast="high"] .thc-me__combo-opt.is-active { outline-color: currentColor; }
.thc-me__combo-via { flex-basis: 100%; font-size: .9em; opacity: .85; } /* 0.7.1: "also called …" under an option found by another name */

/* 0.7.5: the share bar above the profile card. Public: the buttons in full color; private: greyed (still focusable, and
   they say why when pressed). */
.thc-me__sharebar { align-items: center; background: var(--me-raised); border: 1.5px solid var(--me-border); border-radius: var(--me-radius); display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; margin: 1rem 0 .75rem; padding: .5rem .75rem; }
.thc-me__sharebar:empty { display: none; }
.thc-me__sb-state { align-items: center; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.thc-me__sb-pill { align-items: center; border: 1.5px solid currentColor; border-radius: 999px; display: inline-flex; gap: .35rem; line-height: 1.2; padding: .15rem .6rem; }
.thc-me__sharebar.is-public .thc-me__sb-pill { color: var(--me-deep); }
.thc-me__sb-dot { background: currentColor; border-radius: 50%; display: inline-block; height: .55rem; width: .55rem; }
.thc-me__sb-manage { align-items: center; display: inline-flex; font-weight: 600; min-height: 44px; }
.thc-me__sb-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.thc-me__sb-btn { align-items: center; background: var(--me-deep); border: 1.5px solid var(--me-deep); border-radius: 999px; color: #fff; cursor: pointer; display: inline-flex; font: inherit; font-weight: 600; gap: .35rem; min-height: 44px; padding: .2rem .85rem; text-decoration: none; }
.thc-me__sb-btn:hover, .thc-me__sb-btn:focus-visible { filter: brightness(1.12); color: #fff; }
.thc-me__sb-btn svg { flex: 0 0 auto; }
.thc-me__sharebar.is-private .thc-me__sb-btn { background: transparent; border-color: var(--me-border); color: var(--me-text); cursor: not-allowed; opacity: .55; }
.thc-me__sharebar.is-private .thc-me__sb-btn:hover, .thc-me__sharebar.is-private .thc-me__sb-btn:focus-visible { filter: none; opacity: .75; }
.thc-me__sb-msg { flex: 1 1 100%; font-size: .95em; margin: 0; }
.thc-me__sb-msg:empty { display: none; }
:root[data-thc-theme="dark"] .thc-me__sb-btn { background: var(--me-leaf); border-color: var(--me-leaf); color: #15130f; }
:root[data-thc-theme="dark"] .thc-me__sb-btn:hover, :root[data-thc-theme="dark"] .thc-me__sb-btn:focus-visible { color: #15130f; }
:root[data-thc-theme="dark"] .thc-me__sharebar.is-public .thc-me__sb-pill { color: var(--me-leaf); }
@media (max-width: 599px) { .thc-me__sb-btn span:not(.screen-reader-text) { font-size: .95em; } }

/* 0.7.5: Arrange albums / Arrange photos, and the cover choice in Edit album */
.thc-me__arrange { margin: .5rem 0 1rem; }
.thc-me__arrange-list { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: .5rem 0 1rem; padding: 0; }
@media (min-width: 600px) { .thc-me__arrange-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .thc-me__arrange-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.thc-me__arrange-item { background: var(--me-raised); border: 1.5px solid var(--me-border); border-radius: var(--me-radius); display: flex; flex-direction: column; gap: .3rem; min-width: 0; padding: .4rem; }
.thc-me__arrange-item:focus-within { border-color: var(--me-deep); }
.thc-me__arrange-pos { font-size: .95em; }
.thc-me__arrange-name { font-weight: 600; overflow-wrap: anywhere; }
.thc-me__arrange-btns { display: flex; flex-wrap: wrap; gap: .3rem; }
.thc-me__arrange-btns .thc-me__btn { flex: 1 1 auto; gap: .25rem; justify-content: center; }
.thc-me__cover-grid { display: grid; gap: .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: .5rem 0 0; padding: 0; }
@media (min-width: 600px) { .thc-me__cover-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.thc-me__cover-opt { border: 2px solid transparent; border-radius: var(--me-radius); cursor: pointer; display: flex; flex-direction: column; gap: .2rem; padding: .25rem; position: relative; }
.thc-me__cover-opt input { height: 1.25rem; left: .45rem; margin: 0; position: absolute; top: .45rem; width: 1.25rem; z-index: 1; }
.thc-me__cover-opt:has(input:checked) { border-color: var(--me-deep); }
.thc-me__cover-opt:has(input:focus-visible) { outline: 3px solid var(--me-deep); outline-offset: 2px; }
.thc-me__cover-cap { font-size: .9em; overflow-wrap: anywhere; }

/* 0.8.0: Settings, Help from THC staff */
.thc-me__staff-shows { margin: 0 0 .5rem; padding-left: 1.25rem; }
.thc-me__staff-shows li { margin: 0 0 .25rem; }
