/* Member entry and public updates only; enrolment/dashboard styles stay separate. */
.portal-entry {
  --entry-ink: #262327;
  --entry-muted: #6f686c;
  --entry-burgundy: #5b1735;
  --entry-line: #ded6d2;
  margin: 0;
  color: var(--entry-ink);
  background: #fbf8f2;
  font: 1rem/1.55 Inter, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.portal-entry *, .portal-entry *::before, .portal-entry *::after { box-sizing: border-box; }
.portal-entry [hidden] { display: none !important; }
.portal-entry a { color: var(--entry-burgundy); text-underline-offset: .25em; }
.portal-entry button, .portal-entry input { font: inherit; }
.portal-entry :focus-visible { outline: 3px solid var(--entry-burgundy); outline-offset: 4px; }
.entry-page { width: min(68rem, 100%); min-height: 100vh; min-height: 100svh; margin: auto; padding: 2rem 1.5rem 1.25rem; display: flex; flex-direction: column; }
.entry-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.entry-brand { display: inline-flex; align-items: center; gap: .9rem; min-height: 44px; text-decoration: none; }
.entry-brand strong { font: 2.5rem/1 Georgia, serif; letter-spacing: -.04em; }
.entry-brand > span { border-left: 1px solid var(--entry-line); padding-left: .9rem; font-size: .875rem; line-height: 1.3; }
.entry-quiet-link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; font-size: .875rem; text-decoration: none; }
.entry-quiet-link svg { flex: 0 0 auto; }
.entry-quiet-link:hover { text-decoration: underline; }
.entry-content { flex: 1; display: grid; place-items: center; padding: 3rem 0; }
.member-card { width: min(100%, 28rem); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--entry-line); border-radius: 1rem; background: #fffdfa; box-shadow: 0 12px 36px #3b0d2206; }
.entry-eyebrow { margin: 0 0 .6rem; color: var(--entry-burgundy); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.portal-entry h1 { margin: 0; color: #3b0d22; font: 400 clamp(1.625rem, 3vw, 1.875rem)/1.2 Georgia, serif; }
.entry-intro { margin: .9rem 0 1.6rem; color: var(--entry-muted); }
.member-card form { display: grid; }
.member-card label { margin-bottom: .4rem; font-size: .875rem; font-weight: 600; }
.member-card input { width: 100%; min-width: 0; min-height: 48px; padding: .7rem .85rem; margin-bottom: 1.15rem; border: 1px solid #c9bfbc; border-radius: .5rem; background: #fff; color: var(--entry-ink); }
.entry-primary { min-height: 48px; border: 1px solid var(--entry-burgundy); border-radius: .5rem; padding: .65rem 1rem; background: var(--entry-burgundy); color: #fff; font-weight: 600; cursor: pointer; }
.entry-primary:hover { background: #3b0d22; }
.entry-full-button { width: 100%; }
.member-card .entry-primary:disabled { background: #a89b9f; border-color: #a89b9f; cursor: not-allowed; }
.member-card input:disabled { background: #f3f0ed; border-color: #ddd6d2; cursor: not-allowed; }
.member-card .form-message { margin: .8rem 0 0; color: #a33434; font-size: .875rem; overflow-wrap: anywhere; }
.member-card .form-message[data-state="success"] { color: #276348; }
.member-card .form-message:empty { margin: 0; }
.entry-note { margin: 1.4rem 0 0; color: var(--entry-muted); font-size: .875rem; }
.entry-note a { display: inline-flex; align-items: center; min-height: 44px; }
.entry-explore { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 1.25rem 0 0; padding-top: .65rem; border-top: 1px solid var(--entry-line); color: var(--entry-muted); font-size: .875rem; }
.entry-explore a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; }
.entry-footer { text-align: center; color: var(--entry-muted); font-size: .75rem; }
.entry-footer p { margin: .3rem 0; }
.entry-skip { position: absolute; left: 1rem; top: -8rem; padding: .6rem; background: #fff; z-index: 5; }
.entry-skip:focus { top: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.updates-card { width: min(100%, 44rem); min-width: 0; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid #e0e2d2; border-radius: 1rem; background: #f5f8e8; }
.updates-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid #d5944860; }
.updates-toggle { min-height: 44px; padding: .4rem .75rem; color: var(--entry-burgundy); background: transparent; border: 1px solid #5b173540; border-radius: 2rem; font-size: .875rem !important; cursor: pointer; }
.updates-toggle:hover { background: #fff8; }
.updates-help { color: var(--entry-muted); font-size: .875rem; margin: .8rem 0 1rem; }
.updates-viewport { max-height: 28rem; max-height: min(28rem, 58svh); overflow: auto; scrollbar-width: thin; scrollbar-color: #985467 #f5f8e8; padding: .4rem .75rem .4rem 0; }
.updates-group { display: grid; gap: 1rem; padding: 0 0 1rem 1.6rem; position: relative; }
.updates-group::before { content: ""; position: absolute; left: .35rem; top: 0; bottom: 0; width: 1px; background: #5b173560; }
.update-item { position: relative; padding: 1.1rem 1.2rem; background: #fbfcf2; border: 1px solid #061b3617; border-radius: .75rem; box-shadow: 0 5px 16px #061b3606; overflow-wrap: anywhere; }
.update-item::before { content: ""; position: absolute; left: -1.6rem; top: 2rem; height: .7rem; width: .7rem; border-radius: 50%; background: var(--entry-burgundy); }
.update-tag { display: inline-block; color: var(--entry-burgundy); background: #eee9d9; border-radius: 2rem; padding: .2rem .55rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.update-item h2 { margin: .65rem 0 .45rem; color: #172235; font-size: 1.125rem; line-height: 1.3; }
.update-item p { margin: 0; color: #4b5565; }
.update-item time { display: block; margin-top: .8rem; text-align: right; color: var(--entry-burgundy); font-size: .75rem; }
.update-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .4rem; font-size: .875rem; font-weight: 600; }
.updates-viewport.is-scrolling { overflow: hidden; mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent); }
.is-scrolling .updates-track { animation: portal-news-scroll 36s linear infinite; }
.updates-viewport:hover .updates-track { animation-play-state: paused; }
.updates-group[data-loop-copy] { display: none; }
.is-scrolling .updates-group[data-loop-copy] { display: grid; }
@keyframes portal-news-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (max-width: 480px) {
  .entry-page { padding: 1.25rem 1rem 1rem; }
  .entry-brand { gap: .65rem; }
  .entry-brand strong { font-size: 2rem; }
  .entry-brand > span { padding-left: .65rem; font-size: .75rem; }
  .entry-content { padding: 2rem 0; }
  .member-card { padding: 1.5rem; }
  .entry-footer { max-width: 23rem; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .is-scrolling .updates-track { animation: none; transform: none; }
  .updates-viewport.is-scrolling { overflow: auto; mask-image: none; }
  .is-scrolling .updates-group[data-loop-copy] { display: none; }
}
.member-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; padding: 0; border: 0; margin: 0 0 1rem; }
.member-roles legend { font-size: .8rem; color: #5e5955; margin-bottom: .6rem; }
#login-form .member-roles label { position: relative; margin: 0; cursor: pointer; }
#login-form .member-roles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.member-roles span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid #d8d0c7; border-radius: 9px; font-size: .86rem; }
.member-roles input:checked + span { border-color: #722f43; background: #f5ebed; color: #722f43; font-weight: 600; }
.member-roles input:focus-visible + span { outline: 2px solid #722f43; outline-offset: 3px; }
.member-workspace { width: min(100%, 720px); }
.member-workspace h2 { font-size: 1.05rem; }
.member-workspace article { border-top: 1px solid #ddd4c8; padding: 1rem 0; }
.member-workspace input { box-sizing: border-box; width: 100%; padding: .8rem; margin: .5rem 0; }
.member-workspace button { min-height: 48px; }
.member-workspace ul { padding-left: 1.2rem; }
.member-workspace li { margin: .75rem 0; }
.member-workspace .entry-quiet-link { border: 0; background: transparent; cursor: pointer; font: inherit; }
.publishing-desk { width: min(100%, 58rem); }
.publishing-desk select, .publishing-desk textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .7rem; border: 1px solid #c9bfbc; border-radius: .5rem; margin: .5rem 0 1rem; }
.publishing-desk textarea { resize: vertical; }
.publishing-desk #content-fields { display: grid; gap: .8rem; }
.publishing-desk label { display: block; }
.publishing-nav { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.publishing-nav button { padding: .6rem .9rem; border: 1px solid #d8d0c7; border-radius: .5rem; background: transparent; color: #5b1735; min-height: 44px; cursor: pointer; }
.publishing-confirm input { width: auto; min-height: auto; }
