/* The RE Photos Apps site's own styles (ADL-124), on top of Vista's stylesheet
   (copied in by build.sh): the same colours, buttons, sign-in card and account
   settings page, so the two look like one family. Only what is this site's own
   is here: the word mark, the top bar, the apps list, and the settings page
   shown as the page itself rather than over an app. */

/* The name, in place of a logo until RE Photos Apps has one (owner, 2026-11-18). */
.ra-wordmark{margin:0;font:700 26px/1.1 'Montserrat',var(--ui);color:var(--cyan);letter-spacing:-.01em;text-decoration:none}
.ra-wordmark span{color:var(--amber)}
.ra-wordmark.small{font-size:16px;white-space:nowrap}
:root[data-theme="dark"] .ra-wordmark{color:var(--text)}
:root[data-theme="dark"] .ra-wordmark span{color:var(--orange)}

/* Signed in: a bar along the top, then the page. Hidden until sign-in has
   checked who this is, as Vista's app is. */
.ra-shell{display:none;flex-direction:column;min-height:100%}
.ra-shell.on{display:flex}
.ra-bar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:10px 20px;background:var(--panel);border-bottom:1px solid var(--line);flex:none}
.ra-nav{display:flex;gap:4px}
.ra-nav a{padding:6px 10px;border-radius:7px;color:var(--text);text-decoration:none;font-size:13px}
.ra-nav a:hover{background:var(--hover)}
.ra-nav a[aria-current="page"]{background:var(--tint);color:var(--amber);font-weight:600}
.ra-who{margin-left:auto;display:flex;align-items:center;gap:10px;min-width:0;font-size:12.5px;color:var(--text-dim)}
.ra-logo{max-width:110px;max-height:30px;object-fit:contain}
.ra-agency{color:var(--text);font-weight:600}
.ra-agency select{width:auto;max-width:220px;padding:4px 6px;font-size:12.5px;background:var(--panel);border:1px solid var(--line);border-radius:6px}
.ra-email{overflow-wrap:anywhere}
.ra-back{display:block;padding:10px 20px 0;color:var(--amber);font-size:13px;font-weight:600;text-decoration:none}
.ra-back:hover,.ra-back:focus-visible{text-decoration:underline}
.ra-back[hidden]{display:none}

/* Home: the agency's apps, then the way into the account. */
.ra-home{width:100%;max-width:880px;margin:0 auto;padding:28px 20px 56px}
.ra-home h2{font-size:18px;margin:0 0 4px}
.ra-home section + section{margin-top:36px}
.ra-lead{margin:0 0 14px;color:var(--text-dim)}
.ra-apps{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:14px}
.ra-app{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--panel);
  color:var(--text);text-decoration:none;transition:border-color .12s,box-shadow .12s}
.ra-app:hover,.ra-app:focus-visible{border-color:var(--orange);box-shadow:0 6px 20px var(--shadow)}
.ra-app-name{font:700 17px 'Montserrat',var(--ui)}
.ra-app-by{font:500 12px var(--ui);color:var(--text-dim)}
.ra-app-about{color:var(--text-dim);font-size:13px;line-height:1.5}
.ra-app-open{margin-top:auto;color:var(--amber);font-weight:600;font-size:13px}
.ra-empty{margin:0;padding:18px;border:1px dashed var(--line);border-radius:12px;color:var(--text-dim)}
.ra-links{margin:8px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.ra-links a{color:var(--amber);font-weight:600;text-decoration:none}
.ra-links a:hover,.ra-links a:focus-visible{text-decoration:underline}
.ra-links li[hidden]{display:none}
.ra-notice{margin:0 0 20px;padding:10px 14px;border-radius:8px;background:var(--tint);color:var(--text)}
.ra-notice[hidden]{display:none}
[hidden].ra-home,[hidden].ra-account{display:none}
.ra-no-agency{margin:16px 20px 0;max-width:640px}
.ra-nav a[hidden]{display:none}

/* The account settings as the page itself: in the flow under the bar, not over
   an app, and with nothing to close. */
.ra-account{flex:1;min-height:0;display:flex;flex-direction:column}
.st-page.st-standalone{position:static;inset:auto;z-index:auto;flex:1;min-height:0}
.st-page.st-standalone .st-head{background:var(--bg);border-bottom:0;padding:16px 20px 4px}
.st-page.st-standalone .st-nav{background:var(--bg)}
/* On a wide screen the bar stays put and the settings scroll under it. */
@media (min-width:701px){
  .ra-shell.on{height:100%}
  .st-page.st-standalone .st-body{min-height:0}
}

@media (max-width:700px){
  .ra-bar{gap:10px;padding:10px 16px}
  .ra-who{margin-left:0;width:100%;flex-wrap:wrap}
  .ra-who .btn{margin-left:auto}
  .ra-home{padding:20px 16px 40px}
  .ra-back{padding:10px 16px 0}
  .ra-no-agency{margin:12px 16px 0}
  .st-page.st-standalone .st-head{padding:14px 16px 4px}
  .st-page.st-standalone .st-body{overflow:visible}
  .st-page.st-standalone .st-main{overflow:visible}
}
