/* Content and community primitives shared by the public site and portal demos. */
.content-demo-note{padding:14px 18px;border:1px solid #d5deea;border-left:3px solid #f3193e;border-radius:10px;background:#fff;color:#536179;font-size:.88rem;margin:0 0 28px;line-height:1.6}
.community-editor-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:28px;align-items:start}
.content-form,.community-note,.blog-admin-card{padding:28px;background:#fff;border:1px solid #d9e1eb;border-radius:18px;min-width:0}
.content-form{display:grid;gap:20px;scroll-margin-top:110px}
.content-form h2,.community-note h2{font-size:clamp(1.4rem,2.5vw,2rem);line-height:1.15;color:#0b1832;margin:0}
.content-form>p,.community-note p{color:#5d6c82;font-size:.95rem;line-height:1.7;margin:0}
.content-form label{display:grid;gap:8px;font-weight:700;color:#14233c;font-size:.9rem;min-width:0}
.content-form input:not([type=radio]),.content-form textarea,.content-form select{width:100%;min-width:0;padding:13px 14px;border:1px solid #bcc9da;border-radius:9px;background:#fbfcff;color:#101c31;font-weight:400;line-height:1.5;font-family:inherit;font-size:1rem}
.content-form textarea{resize:vertical;min-height:84px;max-height:600px}
.content-form small{font-size:.78rem;color:#63718a;font-weight:400;line-height:1.6}
.content-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.kyc-inline-editor{display:flex;flex:1 1 100%;flex-wrap:wrap;gap:10px;align-items:flex-start;min-width:0}
.kyc-inline-editor input,.kyc-inline-editor textarea,.kyc-inline-editor select{flex:1 1 240px;min-width:0;padding:13px 14px;border:1px solid #bcc9da;border-radius:9px;background:#fbfcff;color:#101c31;font-weight:400;line-height:1.5;font-family:inherit;font-size:1rem}
.kyc-inline-editor textarea{width:100%;min-height:84px;max-height:600px;resize:vertical}
.kyc-inline-editor :is(input,textarea,select):focus-visible{outline:3px solid #f32146;outline-offset:4px}
.content-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #ef1235;background:linear-gradient(130deg,#ff2445,#c80027);border-radius:9px;padding:11px 16px;min-height:44px;color:#fff;font-weight:700;font-size:.9rem;line-height:1.4;font-family:inherit;cursor:pointer;text-decoration:none}
.content-button:hover{filter:brightness(1.08)}
.content-button.secondary{background:#fff;border-color:#bdc8d8;color:#14233c}
.content-button:focus-visible,.content-form :is(input,textarea,select):focus-visible,.journal-copy summary:focus-visible,.content-link:focus-visible{outline:3px solid #f32146;outline-offset:4px}
.content-status{min-height:1.5em;color:#2a4666!important;font-size:.85rem!important;line-height:1.6}
.community-note{background:linear-gradient(140deg,#09172f,#142949);color:#fff;display:grid;gap:22px;border-color:#1c3458}
.community-note h2{color:#fff}.community-note p{color:#c7d3e6}.community-note .content-link{color:#ff9aaa}
.content-kicker{font-weight:800;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:#a80022;line-height:1.6;margin:0 0 10px}
.content-link{font-size:.9rem;color:#b00026;font-weight:700;text-underline-offset:4px}
.content-muted{color:#697991;font-size:.8rem;line-height:1.7}
.content-empty{padding:24px;border:1px dashed #c1ccda;border-radius:12px;color:#586a80;line-height:1.7;background:#fff}
.rating-field{border:0;padding:0;margin:0}.rating-field legend{font-size:.9rem;font-weight:700;color:#14233c;margin-bottom:10px}
.rating-options{display:flex;gap:8px;flex-wrap:wrap}.rating-options label{position:relative;cursor:pointer}.rating-options input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.rating-options span{padding:12px 15px;border:1px solid #bcc9da;border-radius:9px;color:#495b76;background:#fff}
.rating-options input:checked+span{background:#091a35;color:white;border-color:#091a35;box-shadow:inset 0 -3px #ff2445}
.rating-options input:focus-visible+span{outline:3px solid #f32146;outline-offset:3px}
.content-list-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 20px}.content-list-heading h2{font-size:1.25rem}
.blog-admin-list{display:grid;gap:16px}.blog-admin-card h3{font-size:1.25rem;line-height:1.3;margin:8px 0;overflow-wrap:anywhere}.blog-admin-card>p:not(.content-kicker){color:#63718a;font-size:.9rem;line-height:1.6;margin:0 0 20px;overflow-wrap:anywhere}
.delete-confirmation{margin-top:16px;padding:16px;background:#fff1f4;border:1px solid #ffbdca;border-radius:10px;display:flex;gap:10px;flex-wrap:wrap}.delete-confirmation p{flex-basis:100%;font-size:.9rem;margin:0}
.blog-admin-card{transition:opacity .22s ease,transform .22s ease,max-height .22s ease,margin .22s ease,padding .22s ease,border-width .22s ease}
.blog-admin-card.is-deleting{opacity:0;transform:translateY(-6px);pointer-events:none}
.community-section-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:28px;color:#0b1832}.community-section-heading h2{font-family:var(--display-font);font-size:clamp(2rem,4vw,3.2rem);line-height:1.05;margin:12px 0 0;letter-spacing:-.04em}.community-section-heading>p{max-width:350px;color:#62718a;font-size:.95rem;line-height:1.7}
.journal-posts{display:grid;gap:28px}.journal-card{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);border-radius:22px;background:white;border:1px solid #d9e1eb;overflow:hidden;box-shadow:0 15px 35px #0b183208;color:#0b1832}.journal-card:not(:has(.journal-image)){grid-template-columns:1fr}
.journal-image{margin:0;position:relative;min-height:290px;background:#0b1832}.journal-image img{display:block;width:100%;height:100%;max-height:520px;object-fit:cover}.journal-image figcaption{position:absolute;bottom:0;left:0;right:0;padding:22px 18px 12px;background:linear-gradient(transparent,#071124e8);font-size:.7rem;color:white}.journal-image figcaption a{color:white}
.journal-copy{padding:36px;min-width:0}.journal-copy h3{font-family:var(--display-font);font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.1;letter-spacing:-.035em;margin:10px 0 18px;overflow-wrap:anywhere}.journal-copy>p:not(.content-kicker){color:#5d6c82;line-height:1.75}.journal-copy details{margin-top:22px}.journal-copy summary{color:#b00026;cursor:pointer;font-size:.9rem;font-weight:800;min-height:44px;padding-top:10px}.journal-body{font-size:.95rem;line-height:1.8;color:#475a73;overflow-wrap:anywhere}.journal-body p{margin-bottom:16px}.journal-body a{color:#a80022}
.community-reviews{margin-top:76px;padding-top:56px;border-top:1px solid #d0dae6}.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.review-perspective>h3{color:#0b1832;font-size:1.1rem;margin:0 0 16px}.review-perspective>.content-link{display:inline-block;margin-top:18px}.review-card{padding:28px;background:white;border:1px solid #d9e1eb;border-radius:16px;color:#0b1832}.review-stars{color:#c80027;letter-spacing:.12em;margin:0 0 18px;font-size:1.4rem}.review-card blockquote{font-size:1.1rem;line-height:1.75;margin:0 0 24px;white-space:pre-wrap;overflow-wrap:anywhere}.review-card strong{overflow-wrap:anywhere}
@media(max-width:980px){.community-editor-layout{grid-template-columns:1fr}.journal-copy{padding:26px}.community-section-heading{align-items:start;flex-direction:column;gap:12px}}
@media(max-width:640px){.journal-card,.review-grid{grid-template-columns:1fr}.journal-image{min-height:0;aspect-ratio:1.5}.journal-image img{height:100%}.content-form,.community-note{padding:22px}.community-reviews{margin-top:48px;padding-top:36px}.rating-options span{padding:12px}.content-list-heading{align-items:start;flex-direction:column;gap:10px}}

.blog-cover-preview:not([hidden]){display:grid;gap:12px;justify-items:start;padding:14px;background:#f1f4f9;border:1px solid #d3dce8;border-radius:12px}
.blog-cover-preview img{display:block;max-width:100%;width:auto;max-height:240px;object-fit:contain;border-radius:8px}
.content-button:disabled{opacity:.55;cursor:wait}
.review-login{appearance:none;background:none;border:0;padding:10px 0;min-height:44px;font-family:inherit;cursor:pointer;text-align:left}
.review-login:focus-visible{outline:3px solid #ff4865;outline-offset:4px}
.auth-context:not(:empty){padding:12px 16px;border-left:3px solid #ff2948;background:#fff1f4;color:#722239;line-height:1.6;font-size:.9rem}
.hero-reviews{position:relative;z-index:2;padding-block:36px 46px;border-top:1px solid #ffffff26}
.hero-review-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}.hero-review-heading h2{font-size:clamp(1.4rem,2.4vw,2rem);line-height:1.15;color:white;margin:9px 0 0;font-family:var(--display-font)}.hero-review-heading .review-login{color:#ffb0bd}.hero-review-heading .eyebrow{margin:0}
.hero-review-slides{position:relative;display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#526580 transparent;padding:4px 0 14px;align-items:stretch}
.hero-review-card{flex:0 0 calc(50% - 10px);min-width:0;scroll-snap-align:start;display:flex;flex-direction:column;gap:14px;padding:26px;border:1px solid #67779666;border-radius:16px;background:linear-gradient(130deg,#182944d9,#0b142bdd);color:white}.hero-review-card .review-stars{color:#ff647e;margin:0;font-size:1.1rem}.hero-review-card blockquote{margin:0;font-size:1rem;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap;flex:1}.hero-review-card strong{font-size:.95rem;overflow-wrap:anywhere}.hero-review-card small{font-size:.8rem;color:#c1cce0}.hero-review-empty{width:100%;padding:26px;border:1px dashed #7686a36b;border-radius:14px;color:#c2cee2;line-height:1.7}
.hero-review-controls:not([hidden]){display:flex;gap:10px;justify-content:flex-end;margin-top:14px}.hero-review-controls button{width:44px;height:44px;border:1px solid #7485a1;background:#112440;color:white;border-radius:50%;font-size:1.25rem;cursor:pointer}.hero-review-controls button:focus-visible{outline:3px solid #ff4865;outline-offset:3px}
.review-perspective .review-card+.review-card{margin-top:16px}
@media(max-width:640px){.hero-review-card{flex-basis:90%;padding:22px}.hero-review-heading{align-items:start;flex-direction:column;gap:12px}}

.review-public-reply,.review-own-reply{display:grid;gap:5px;margin-top:12px;padding:12px 14px;border-left:3px solid var(--navy-900,#071426);border-radius:7px;background:#f7f9fc}
.review-public-reply strong,.review-own-reply strong{font-size:.74rem}
.review-public-reply p,.review-own-reply p{margin:0;font-size:.78rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.review-own-reply[hidden]{display:none!important}
