/* Investor portal: sticky brand masthead with accent rule, photo hero that the cards overlap, white cards on paper. */
:root { --accent: var(--growth); --pshadow: 0 18px 50px rgba(0,0,0,0.12); }
body.portal { background: #F3F1EC; }
.pwrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.demo-strip { background: var(--ink); color: #CFCFCB; font-size: 13px; text-align: center; padding: 7px 16px; }
/* login */
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: calc(100vh - 34px); }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } }
.login-brand { color: var(--paper); padding: clamp(32px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 18px; position: relative; }
.login-brand img { width: min(320px, 70%); height: auto; }
.login-brand h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--paper); }
.login-brand p { color: var(--on-forest-muted); font-size: 1.1rem; max-width: 40ch; }
.login-brand .back { position: absolute; top: 24px; left: clamp(32px, 6vw, 80px); color: var(--on-forest-muted); font-size: 14px; text-decoration: none; }
.login-form { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 6vw, 80px) 24px; background: var(--white); }
.login-form form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.login-form h2 { font-size: 2rem; }
.login-form .sub { color: var(--muted); font-size: 15px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }
.login-form input[type=email], .login-form input[type=password] { font: 400 16px var(--body); padding: 13px 14px; border: 1px solid #CFCAC0; border-radius: 6px; }
.login-form input:focus { outline: 2px solid var(--forest); border-color: var(--forest); }
.li-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.check { flex-direction: row !important; align-items: center; font-weight: 400 !important; gap: 8px !important; }
.li-msg { min-height: 1.2em; font-size: 14px; color: #9B2C1F; margin: 0; }
.li-foot { font-size: 13.5px; color: var(--muted); }
/* buttons */
.pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--body); padding: 12px 20px; border-radius: 6px; border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.pbtn-primary { background: var(--forest); color: var(--paper); }
.pbtn-primary:hover { background: var(--ink); color: var(--paper); }
.pbtn-ghost { background: transparent; border-color: #CFCAC0; color: var(--forest-text); align-self: flex-start; }
.pbtn-ghost:hover { border-color: var(--forest); }
.pbtn-block { width: 100%; padding: 14px; }
.linkish { background: none; border: 0; color: var(--on-forest-muted); font: 500 14px var(--body); cursor: pointer; }
.linkish:hover { color: var(--paper); }
/* masthead */
.mast { position: sticky; top: 0; z-index: 30; background: var(--forest); border-top: 3px solid var(--accent); }
.mast .pwrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.mbrand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.mbrand img { height: 40px; width: auto; }
.mbrand span { color: var(--paper); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; }
.ptabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.ptabs a { color: var(--on-forest-muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 23px 12px 20px; border-bottom: 3px solid transparent; white-space: nowrap; }
.ptabs a:hover { color: var(--paper); }
.ptabs a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--accent); }
.acct { display: flex; align-items: center; gap: 12px; flex: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
@media (max-width: 760px) { .mbrand span, .linkish { display: none; } .mast .pwrap { gap: 12px; } }
/* hero */
.phero { background: var(--forest) url("img/sp-lot.jpg") center 40% / cover; position: relative; color: var(--paper); padding: 48px 0 130px; }
.phero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,44,25,0.92), rgba(1,44,25,0.7)); }
.phero .pwrap { position: relative; display: flex; flex-direction: column; gap: 12px; }
.phero h1 { color: var(--paper); font-size: clamp(2rem, 4vw, 3rem); }
.phero .eyebrow, .phead .eyebrow { color: var(--accent); }
.hstats { display: flex; flex-wrap: wrap; gap: 20px 44px; margin-top: 10px; }
.hstats div { display: flex; flex-direction: column; }
.hstats b { font-family: var(--display); font-size: 1.9rem; font-weight: 400; color: var(--paper); line-height: 1.15; }
.hstats span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-forest-muted); font-weight: 600; }
.overlap { margin-top: -96px; position: relative; display: flex; flex-direction: column; gap: 24px; padding-bottom: 56px; }
.phead { background: var(--forest) url("laurel-pattern.svg"); background-size: 128px auto; color: var(--paper); padding: 44px 0 40px; }
.phead h1 { color: var(--paper); font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 8px 0 6px; }
.phead p { color: var(--on-forest-muted); }
.pbody { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
/* cards */
.pcard { background: var(--white); border: 1px solid #E2DED4; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.pad { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.grid2.top { margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.deal-card { overflow: hidden; cursor: pointer; box-shadow: var(--pshadow); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); transition: transform .15s; }
.deal-card:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .deal-card { grid-template-columns: 1fr; } }
.dc-img { min-height: 260px; background-size: cover; background-position: center; position: relative; }
.dc-img .pill { position: absolute; top: 14px; left: 14px; }
.dc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.dc-body h2 { font-size: 1.9rem; }
.k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #E2DED4; border-bottom: 1px solid #E2DED4; }
.dc-stats div { padding: 12px 8px 12px 0; display: flex; flex-direction: column; }
.dc-stats b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--forest-text); }
.dc-stats span { font-size: 12.5px; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.progress { height: 8px; background: #ECE9E2; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 5px 12px; letter-spacing: 0.06em; text-transform: uppercase; align-self: flex-start; }
.pill-live { background: var(--white); color: var(--forest-text); }
.pill-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2E9E5B; box-shadow: 0 0 0 4px rgba(46,158,91,0.2); }
.pill-soon { background: rgba(255,255,255,0.9); color: var(--ink); }
.feed { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--pshadow); }
.feed ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li { padding: 12px 0 12px 18px; border-bottom: 1px solid #ECE9E2; position: relative; display: flex; flex-direction: column; gap: 2px; }
.feed li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.feed b { font-size: 15px; } .feed span { font-size: 13.5px; color: var(--muted); }
.soon { padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.soon h3 { font-size: 1.5rem; margin: 4px 0; } .soon p { color: var(--muted); }
.offer-ph { overflow: hidden; }
.ph-plate { aspect-ratio: 16/9; display: flex; align-items: flex-start; padding: 14px; }
.how { padding: 24px 26px; }
.how ol { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.how b { display: block; }
.how li { color: var(--muted); font-size: 15px; }
.empty-slot { border-style: dashed; min-height: 200px; display: grid; place-items: center; color: var(--muted); padding: 24px; text-align: center; }
.emptystate { padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.emptystate img { width: 140px; opacity: 0.25; }
.emptystate p { color: var(--muted); max-width: 52ch; }
/* deal detail */
.dhero { background-size: cover; background-position: center; position: relative; color: var(--paper); padding: 40px 0 36px; }
.dhero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,44,25,0.92), rgba(1,44,25,0.55)); }
.dhero .pwrap { position: relative; display: flex; flex-direction: column; gap: 10px; }
.dhero h1 { color: var(--paper); font-size: clamp(2.2rem, 4vw, 3.2rem); }
.dhero p { color: var(--on-forest-muted); }
.crumb { color: var(--on-forest-muted); text-decoration: none; font-size: 14px; }
.dtabs { display: flex; gap: 4px; border-bottom: 1px solid #DCD8CC; overflow-x: auto; }
.dtabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 16px; font: 600 15px var(--body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.dtabs button[aria-selected="true"] { color: var(--forest-text); border-bottom-color: var(--accent); }
.dpanel { display: flex; flex-direction: column; gap: 20px; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.kgrid div { background: var(--white); border: 1px solid #E2DED4; border-radius: 10px; padding: 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.kgrid b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--forest-text); line-height: 1.1; }
.kgrid span { font-size: 13.5px; color: var(--muted); }
.stack-bar { display: flex; height: 56px; border-radius: 8px; overflow: hidden; }
.sb { border: 0; cursor: pointer; color: var(--paper); font: 600 14px var(--body); display: flex; align-items: center; justify-content: center; }
.sb-debt { background: var(--forest); } .sb-eq { background: var(--accent); color: var(--ink); }
.sb:hover, .sb[aria-pressed="true"] { filter: brightness(1.12); }
.terms { margin: 0; display: grid; grid-template-columns: 1fr auto; }
.terms dt, .terms dd { margin: 0; padding: 9px 0; border-bottom: 1px solid #ECE9E2; font-size: 15px; }
.terms dt { color: var(--muted); } .terms dd { font-weight: 600; text-align: right; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checklist li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid #ECE9E2; font-size: 15px; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid #B9B4AA; border-radius: 50%; box-sizing: border-box; }
.checklist li.done { color: var(--ink); } .checklist li.done::before { background: var(--forest); border-color: var(--forest); }
.checklist li.next { color: var(--ink); font-weight: 600; } .checklist li.next::before { border-color: var(--accent); border-width: 4px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid #DCD8CC; display: flex; flex-direction: column; gap: 22px; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid #E2DED4; border-radius: 10px; padding: 18px 20px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #F3F1EC; }
.timeline span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.timeline p { color: var(--muted); font-size: 15px; }
/* documents */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.doc { border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; cursor: pointer; font: inherit; color: inherit; }
.sheet { position: relative; aspect-ratio: 8.5/11; background: var(--white); border: 1px solid #E2DED4; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.06); transition: transform .15s, box-shadow .15s; }
.doc:hover .sheet { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); }
.sheet .hd { background: var(--forest); border-top: 3px solid var(--accent); height: 24%; padding: 10px; display: flex; align-items: flex-end; }
.sheet .hd i { font-style: normal; font-family: var(--display); color: var(--paper); font-size: 11px; line-height: 1.2; }
.sheet .ln { height: 5px; background: #ECE9E2; border-radius: 3px; margin: 9px 10px 0; }
.sheet .ln.s { width: 55%; } .sheet .ln.m { width: 75%; }
.sheet .blk { height: 20%; margin: 10px; background: #F1EEE6; border-radius: 4px; }
.sheet .lock { position: absolute; inset: 0; background: rgba(243,241,236,0.7); display: grid; place-items: center; color: var(--forest-text); font-weight: 700; font-size: 12.5px; text-align: center; padding: 10px; }
.doc b { font-size: 14.5px; line-height: 1.3; }
.doc small { color: var(--muted); font-size: 13px; }
.doc.is-hidden { display: none; }
.pfoot { border-top: 1px solid #DCD8CC; padding: 22px 0; font-size: 14px; color: var(--muted); }
.pfoot .pwrap { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.pfoot a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 99; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.offers { align-items: stretch; }
.offer { overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.offer:hover { transform: translateY(-2px); box-shadow: var(--pshadow); }
.offer .dc-body { flex: 1; }
.offer .pbtn { margin-top: auto; }
.pill-open { background: var(--accent); color: var(--ink); }
.pill-closed { background: var(--ink); color: var(--paper); }
.how-row { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 28px !important; padding-left: 20px; }
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: #F3F1EC; overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,0.25); }
.drawer-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); font-size: 26px; line-height: 1; cursor: pointer; }
.dr-hero { height: 200px; display: flex; align-items: flex-end; padding: 18px 24px; background-color: var(--forest); background-size: 128px auto; }
.dr-body { padding: 22px 26px 36px; display: flex; flex-direction: column; gap: 14px; }
.dr-body h2 { font-size: 2rem; } .dr-body h3 { font-size: 1.2rem; margin-top: 8px; }
.dr-body > p { color: var(--muted); }
.dr-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.dr-docs { display: flex; flex-direction: column; gap: 8px; }
.dr-doc { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--white); border: 1px solid #E2DED4; border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.dr-doc em { font-style: normal; font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px) { .dr-doc { grid-template-columns: auto 1fr; } .dr-doc em { grid-column: 2; } }
.dr-body .kgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 520px) { .dr-body .kgrid { grid-template-columns: 1fr; } }
/* "Back to mcginvestments.net": white on the green panel, and in the flow on phones so it never sits over the crest */
.login-brand .back { color: #FFFFFF; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; z-index: 2; }
.login-brand .back:hover, .login-brand .back:focus-visible { text-decoration-color: #FFFFFF; }
@media (max-width: 900px) {
  .login-brand .back { position: static; display: inline-block; align-self: flex-start; margin: 0 0 22px; }
}
