/* Membership components (membership.js): chips, buttons, the offer card, the described sections of a member profile
   and the unlock dialog. Tokens come from site.css and ux.css. A locked section is styled as an ordinary card: nothing
   is blurred, faded or faked, because nothing is there to hide. Section numbers are CSS counters, never page text. */
.hdf-m-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; line-height: 1;
  padding: .3rem .5rem; border-radius: 999px; white-space: nowrap; vertical-align: middle; letter-spacing: 0; }
.hdf-m-chip--locked { background: var(--hdf-teal-light); color: var(--hdf-ink); }
.hdf-m-chip--member { background: var(--hdf-ink); color: #fff; }
.hdf-m-chip--sample, .hdf-m-chip--free { border: 1px solid var(--hdf-teal); color: var(--hdf-teal); background: var(--surface); }
.hdf-m-chip--unavailable { border: 1px solid var(--rule); color: var(--ink-soft); background: var(--surface); }
.hdf-m-lock { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hdf-m-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .6rem 1.1rem;
  border: 2px solid var(--hdf-ink); border-radius: var(--hdf-radius); background: var(--surface); color: var(--hdf-ink);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; }
.hdf-m-btn:hover { background: var(--hdf-teal-light); color: var(--hdf-ink); }
.hdf-m-btn:visited { color: var(--hdf-ink); }
.hdf-m-btn--solid, .hdf-m-btn--solid:visited { background: var(--hdf-ink); color: #fff; }
.hdf-m-btn--solid:hover { background: var(--hdf-ink-2); color: #fff; }

.hdf-m-year { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .9rem 0 0; font-size: .9375rem; max-width: none; }
.hdf-m-year select { min-height: 44px; padding: .45rem .6rem; border: 1px solid #8a8a8a; border-radius: 4px; background: var(--surface); font: inherit; }

.hdf-m-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 1.25rem; align-items: start; margin-top: 1.5rem; }
.hdf-m-free, .hdf-m-offer, .hdf-m-sec { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--hdf-radius); padding: 1.25rem; }
.hdf-m-free h2, .hdf-m-offer h2 { font-size: 1rem; margin: 0 0 .6rem; }
.hdf-m-free ul { list-style: none; margin: 0; padding: 0; }
.hdf-m-free li { padding: .7rem 0; border-top: 1px solid var(--rule); max-width: none; }
.hdf-m-free li:first-child { border-top: 0; padding-top: 0; }
.hdf-m-free small { display: block; color: var(--ink-soft); font-size: .8125rem; }

.pf-member.hdf-m-offer { margin: 0; max-width: none; border: 1px solid var(--hdf-ink); border-top: 4px solid var(--hdf-ink); }
.hdf-m-offer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; }
.hdf-m-offer-head h2 { margin: 0; }
.hdf-m-price { font-weight: 700; color: var(--hdf-ink); white-space: nowrap; }
.hdf-m-offer-head .hdf-m-price { font-size: 1.375rem; }
.hdf-m-offer p { margin: .5rem 0; }
.hdf-m-offer .hdf-m-btn { width: 100%; margin: .5rem 0 .25rem; }
.hdf-m-terms { font-size: .8125rem; color: var(--ink-soft); }
.hdf-m-links { font-size: .875rem; }
.pf-member.hdf-m-offer--closing { margin: 2rem 0 1rem; max-width: 34rem; }  /* a sample's one offer, after its sources */

.hdf-m-nav { counter-reset: hdf-m-sec; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 2rem 0 0; padding: .75rem 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: .875rem; }
.hdf-m-nav b { margin-right: .4rem; align-self: center; }
.hdf-m-nav a { display: inline-flex; align-items: center; gap: .25rem; padding: .35rem 0; color: var(--hdf-ink); text-decoration: none; }
.hdf-m-nav a:hover { text-decoration: underline; }
.hdf-m-nav .hdf-m-lock { width: 11px; height: 11px; stroke: var(--ink-soft); stroke-width: 2.2; }

.hdf-m-sec { counter-increment: hdf-m-sec; position: relative; margin-top: 1rem; padding-left: 4rem; scroll-margin-top: 1rem; }
.hdf-m-sec::before { content: counter(hdf-m-sec); position: absolute; left: 1.25rem; top: 1.4rem; font-weight: 700; font-size: .9375rem; color: var(--ink-soft); }
.hdf-m-sec h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; font-size: 1.125rem; }
.hdf-m-sec p { margin: .5rem 0 0; max-width: 68ch; }
#m-review[data-state="locked"] { border-color: var(--hdf-ink); }
.hdf-m-sec[data-state="free"] { background: #fbfdfc; }
.hdf-m-why { color: var(--ink-soft); }
.hdf-m-get { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 0; padding: 0; }
.hdf-m-get li { font-size: .8125rem; padding: .25rem .55rem; border: 1px dashed #b5b5b5; border-radius: 4px; color: var(--ink-soft); background: #fafafa; max-width: none; }
.hdf-m-sec .hdf-m-avail { font-size: .8125rem; color: var(--ink-soft); }
.hdf-m-sec .hdf-m-act { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .9rem; font-size: .9375rem; }

.hdf-m-strip { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.hdf-m-note { color: var(--ink-soft); font-size: .9375rem; margin: 0 0 1rem; }
.pf-name .hdf-m-chip { margin-left: .5rem; }

.hdf-unlock { width: min(30rem, calc(100vw - 2rem)); padding: 1.5rem; border: 0; border-radius: var(--hdf-radius);
  box-shadow: 0 12px 40px rgba(15, 42, 51, .3); color: inherit; }
.hdf-unlock::backdrop { background: rgba(15, 42, 51, .55); }
.hdf-unlock h2 { margin: 0 2.5rem .5rem 0; font-size: 1.25rem; line-height: 1.3; }
.hdf-unlock ul { margin: .5rem 0 1rem; padding-left: 1.1rem; }
.hdf-unlock .hdf-m-btn { width: 100%; margin-top: .75rem; }
.hdf-unlock-x { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border: 0; background: none;
  font-size: 1.5rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }

/* Home and pricing (templates/_membership.html): the feature table and the plan card. On a phone each row becomes its
   label with the two columns named beneath it (the cells carry data-label), so nothing scrolls sideways. */
.hdf-m-features { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9375rem; }
.hdf-m-features caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.hdf-m-features th, .hdf-m-features td { padding: .65rem .75rem; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.hdf-m-features thead th, .hdf-m-features thead td { border-top: 0; white-space: nowrap; }
.hdf-m-features tbody th { font-weight: 400; }
.hdf-m-features td { overflow-wrap: normal; word-break: normal; }
.hdf-m-features td:last-child, .hdf-m-features thead th:last-child { background: var(--hdf-teal-light); font-weight: 600; }
.hdf-m-plan { border: 1px solid var(--hdf-ink); border-top: 4px solid var(--hdf-ink); }
.hdf-m-offer-head h3 { margin: 0; font-size: 1rem; }
.hdf-m-plan .hdf-m-links a, .hdf-pricing .hdf-m-links a, .hdf-pricing .hdf-plan .hdf-ws-copy { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
@media (max-width: 30rem) {
  .hdf-m-features thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hdf-m-features tr { display: block; padding: .65rem 0; border-top: 1px solid var(--rule); }
  .hdf-m-features tbody th, .hdf-m-features td { display: block; border: 0; padding: .15rem 0; }
  .hdf-m-features tbody th { font-weight: 600; }
  .hdf-m-features td::before { content: attr(data-label) ": "; color: var(--ink-soft); font-weight: 400; }
  .hdf-m-features td:last-child { background: none; }
}

@media (max-width: 820px) {
  .hdf-m-lead { grid-template-columns: minmax(0, 1fr); }
  .hdf-m-lead .hdf-m-offer { order: -1; }
  .hdf-m-sec { padding-left: 1.25rem; }
  .hdf-m-sec::before { content: none; }
  .hdf-m-act .hdf-m-btn { width: 100%; }
}
