/* Native links reuse preview's forgotPreview styling without changing its CSS. */
.loginCard a.forgotPreview {
  display: inline-block;
  border-radius: 8px;
  text-decoration: none;
}
.loginCard a.forgotPreview:hover {
  background: #edf5f4;
}

.serviceGrid>.servicePreview{padding:24px;text-align:right;border:1px solid #dbe5e9;background:white;border-radius:12px}
.guestForm{max-width:760px;margin:10px auto 40px}.guestForm h1{font-size:28px;margin:0 0 18px}.guestForm .actions{margin-top:16px}.account-kind{border:0;padding:0;margin:0 0 16px}.account-kind legend{font-size:13px;color:var(--muted);margin-bottom:6px;padding:0}

/* Login and public pages: the same navy and logo as the inside sidebar. */
.publicBar{background:var(--navy,#102b3b);color:#fff;margin-bottom:28px}
.publicBar .publicHeader .brand{color:#fff;border:0}
.publicBar .brand .brandMark{display:block;width:118px;height:auto}
.publicBar .brand small{color:#d3e3ea;margin-top:9px}
.publicBar nav button:not(.primary){color:#e2eef3}
.publicBar nav button:not(.primary):hover{background:#ffffff14}
.publicBar nav button.primary{background:var(--teal,#087f78);color:#fff;border-radius:8px;padding:9px 18px}.publicBar nav button.primary:hover{background:#0a958c}

/* A refused login or form says so in a red box, not as a plain bullet. */
.errorlist{list-style:none;margin:0 0 14px;padding:0;color:#a8322a;font-size:14px}
.errorlist.nonfield{background:#fdecea;border:1px solid #f3c7c2;border-radius:8px;padding:10px 12px}

/* The home (decision 56): no login form; the services fill one screen, each with its ad picture or story. */
.publicBar nav button.loginButton{color:#fff;border:1px solid #ffffff66;border-radius:8px;padding:8px 18px;background:transparent}
.publicBar nav button.loginButton:hover{background:#ffffff14}
.publicHome{--story-h:clamp(220px,calc(100vh - 550px),530px);margin:0;padding:0 48px;box-sizing:border-box}
/* The bar and the home use the whole width of the screen (phones keep their own padding). */
@media (min-width:901px){.publicBar .publicHeader{max-width:none;padding-left:48px;padding-right:48px}}
.homeHead{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.homeHead h1{margin:6px 0 4px;font-size:28px;color:var(--ink)}
.homeHead p{margin:0;color:var(--muted);font-size:15px}
.homeHead button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 16px;white-space:nowrap}
.homeServices{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(210px,1fr);gap:18px;overflow-x:auto;padding-bottom:10px}
.homeService{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #dbe5e9;border-radius:16px;padding:10px 10px 14px;text-align:right}
.homeStory{position:relative;height:var(--story-h);border-radius:12px;overflow:hidden;background:var(--navy);cursor:pointer}
.homeStory figure{margin:0;height:100%}
.homeStory figure[hidden]{display:none}
.homeStory img{display:block;width:100%;height:100%;object-fit:cover}
.homeStory figcaption{position:absolute;inset:auto 0 0 0;padding:44px 14px 14px;background:linear-gradient(transparent,#000000a8);color:#fff;font-weight:700;font-size:15px}
.homeStory figcaption small{display:block;margin-top:3px;font-weight:500;font-size:12px;opacity:.9}
.storyBars{position:absolute;top:10px;right:10px;left:10px;display:flex;gap:4px;z-index:1}
.storyBars button{flex:1;height:4px;border:0;padding:0;border-radius:2px;background:#ffffff70;cursor:pointer}
.storyBars button.on{background:#fff}
.storyEmpty{height:100%;display:grid;place-items:center;align-content:center;gap:12px;color:#d3e3ea;font-size:13px}
.storyEmpty img{width:min(52%,190px);height:auto;opacity:.92}
.homeService h3{margin:6px 4px 0;font-size:17px;line-height:1.5;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.homeService p{margin:0 4px;color:var(--muted);font-size:13px;line-height:1.5;height:3em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.homeService button.primary{margin:2px 4px 0;border-radius:10px;padding:10px 14px}
[data-refused] .error{background:#fdecea;border:1px solid #f3c7c2;border-radius:8px;padding:10px 12px;color:#a8322a;font-size:14px}
